@golstats/gsc-relevant-data 1.0.4 → 1.0.6

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 (37) hide show
  1. package/dist/{CardBaseAllIndividual-DW2NMKgR-HgCTNwsl.js → CardBaseAllIndividual-Din4dnnE-ClvswX2H.js} +13 -12
  2. package/dist/CardGeneral-70CyP1c9-DzGLKPLW.js +127 -0
  3. package/dist/{CardGeneralIndividual-KAcHT3zU-v50O2Zlq.js → CardGeneralIndividual-CFAG9SL3-Cm2WMulY.js} +83 -77
  4. package/dist/{CardGeneralTeams-CwKmM2ip-1ajycpU3.js → CardGeneralTeams-C1b59sT7-DKIH3pKd.js} +151 -146
  5. package/dist/{CardIndividual-OuxjYR6m-BJwKI5HZ.js → CardIndividual-BVJEvLuq-DNLGRnJn.js} +38 -37
  6. package/dist/CardIndividual1vs1-BEIdhWs1-CmX-Dpme.js +109 -0
  7. package/dist/{CardIndividualAreas-DGRNgB7W-BXnQ-9tF.js → CardIndividualAreas-T43vItFr-GlwzP3pQ.js} +22 -21
  8. package/dist/{CardIndividualCenters-0K7CYu6z-C1If3cnK.js → CardIndividualCenters-fZNKbbXo-CvIgTyZn.js} +121 -120
  9. package/dist/{CardIndividualDistance-DPP7-JWN-CiCspi8H.js → CardIndividualDistance-CcU2Vbnx-DlR0hivB.js} +32 -31
  10. package/dist/{CardIndividualFouls-CbvYRQjI-CVZKAmd3.js → CardIndividualFouls-BYcKqeFK-BGZfrm52.js} +111 -110
  11. package/dist/CardIndividualGoalParticipation-yPoWp2QU-DpNpWdqc.js +112 -0
  12. package/dist/{CardIndividualGoals-no1WpbpS-DaNagxNS.js → CardIndividualGoals-C69mSV2s-CBAHkKBm.js} +181 -180
  13. package/dist/CardIndividualGold-BxCrvpoF-BEc0OJ86.js +117 -0
  14. package/dist/{CardIndividualNoGoalReceived-Bg-pQ5GI-7vmSeaL6.js → CardIndividualNoGoalReceived-CqVz1A2y-Bkyl-TxG.js} +56 -55
  15. package/dist/CardIndividualPerformance-JjUTmJQy-8qdezjEh.js +104 -0
  16. package/dist/{CardIndividualSaves-DboDAV9z-DW3t5zbf.js → CardIndividualSaves-DEvTL6Uw-_tm_oIfl.js} +70 -65
  17. package/dist/{CardIndividualShotsOnGoal-Czqe0JAs-DQ1fY0Cd.js → CardIndividualShotsOnGoal-BxwPL-4b-8RHeYE0k.js} +55 -54
  18. package/dist/{CardIndividualStatistics-Chw1TBSy-EkmKWR9X.js → CardIndividualStatistics-DQRVwOUb-Cq_TJCc_.js} +35 -34
  19. package/dist/{CardPromTournament-BbjTP9KD-CWu7JvYP.js → CardPromTournament-HcWvduRV-BAoQc2Cb.js} +28 -27
  20. package/dist/CardSuccessfulPasses-D9ZpWlLr-u3HOsral.js +92 -0
  21. package/dist/CardTheMostProductive-CNNFBK3--DOPfJcMr.js +76 -0
  22. package/dist/{CircleWithDotsBig-EzIr2wuY-TMr2eIat.js → CircleWithDotsBig-DOPQy89I-Cv_-f5J6.js} +1 -1
  23. package/dist/{Shield-Dnuj3Yd--DAk7-Zio.js → Shield-COMdrYaO-CAc0Epy_.js} +60 -55
  24. package/dist/gsc-relevant-data.css +1 -1
  25. package/dist/gsc-relevant-data.js +2 -4918
  26. package/dist/gsc-relevant-data.umd.cjs +6 -6
  27. package/dist/index-Cb9m7Z8V.js +4933 -0
  28. package/dist/misc-CMAhmOsp-CuP1bOXh.js +163 -0
  29. package/package.json +3 -3
  30. package/dist/CardGeneral-Ck1sE8Nk-nYRMD1Jp.js +0 -116
  31. package/dist/CardIndividual1vs1-C6nQbFeh-DfQyFZf0.js +0 -487
  32. package/dist/CardIndividualGoalParticipation-DBwh-Kcv-DIgeIQTB.js +0 -108
  33. package/dist/CardIndividualGold-CkAyS4hx-DXmFVXpp.js +0 -112
  34. package/dist/CardIndividualPerformance-BZJ8PBWe-1n4ucmaO.js +0 -99
  35. package/dist/CardSuccessfulPasses-UsTNXLy8-Creea-3D.js +0 -426
  36. package/dist/CardTheMostProductive-BGExgYBM-twyrFU3-.js +0 -74
  37. package/dist/misc-CeQ5H5LP-DeaiNpCH.js +0 -168
@@ -0,0 +1,4933 @@
1
+ import { useCssVars as se, ref as F, onMounted as ge, onUnmounted as Jt, resolveComponent as $, openBlock as f, createElementBlock as p, createElementVNode as h, normalizeStyle as k, Fragment as P, renderList as A, toDisplayString as I, renderSlot as Z, createCommentVNode as S, createVNode as z, withCtx as M, normalizeClass as E, computed as W, createBlock as q, unref as ye, watch as fe, onBeforeMount as St, Transition as vt, withDirectives as Q, vShow as re, pushScopeId as ie, popScopeId as ne, mergeProps as Gt, defineAsyncComponent as x, resolveDynamicComponent as Vt, withModifiers as Xe, vModelText as Xt } from "vue";
2
+ function Zt(e) {
3
+ const r = F({ width: 0, height: 0 });
4
+ function t() {
5
+ const o = e.value.getBoundingClientRect();
6
+ r.value.width = o.width, r.value.height = o.height;
7
+ }
8
+ return ge(() => {
9
+ t(), window.addEventListener("resize", t);
10
+ }), Jt(() => {
11
+ window.removeEventListener("resize", t);
12
+ }), { elementSize: r };
13
+ }
14
+ const Kt = (e, r) => {
15
+ const t = e.__vccOpts || e;
16
+ for (const [o, s] of r)
17
+ t[o] = s;
18
+ return t;
19
+ }, ze = {
20
+ name: "ScrollableContainer",
21
+ props: {
22
+ backgroundColor: { type: String, default: "#0D1D29" },
23
+ pxScroll: { type: Number, default: 100 },
24
+ arrows: { type: Boolean, default: !0 },
25
+ arrowsHideOnNoScroll: { type: Boolean, default: !1 },
26
+ arrowsScrollHide: { type: Boolean, default: !1 },
27
+ arrowsColor: { type: String, default: "#CBEE6B" },
28
+ arrowsHeight: { type: Number, default: 15 },
29
+ arrowsWidth: { type: Number, default: 15 },
30
+ arrowsPadding: { type: Number, default: 5 },
31
+ arrowsMargin: { type: Number, default: 10 },
32
+ arrowsRadius: { type: String, default: "0%" },
33
+ arrowsBorder: { type: String, default: "none" },
34
+ arrowsBackground: { type: String, default: "#0D1D29" },
35
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
36
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
37
+ scrollColor: { type: String, default: "#c3e569" },
38
+ arrowsPosition: { type: String, default: "relative" },
39
+ height: { type: String, default: "100%" }
40
+ },
41
+ data() {
42
+ return {
43
+ showLeftArrow: !1,
44
+ showRightArrow: !0,
45
+ intervalid1: ""
46
+ };
47
+ },
48
+ mounted() {
49
+ this.getScroll(), this.arrowsHideOnNoScroll && window.addEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && this.listenerLoad();
50
+ },
51
+ beforeUnmount() {
52
+ this.arrowsHideOnNoScroll && window.removeEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && clearInterval(this.intervalid1);
53
+ },
54
+ computed: {
55
+ getViewBox() {
56
+ return `-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`;
57
+ },
58
+ hideShowLeftArrow() {
59
+ let e = "";
60
+ return this.arrowsPosition == "absolute" ? e = "leftAbsolute" : e = "leftRelative", this.arrowsScrollHide ? this.showLeftArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
61
+ },
62
+ hideShowRightArrow() {
63
+ let e = "";
64
+ return this.arrowsPosition == "absolute" ? e = "rightAbsolute" : e = "rightRelative", this.arrowsScrollHide ? this.showRightArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
65
+ }
66
+ },
67
+ methods: {
68
+ scrollLeft() {
69
+ this.$refs.content.scrollLeft -= this.pxScroll;
70
+ },
71
+ scrollRight() {
72
+ this.$refs.content.scrollLeft += this.pxScroll;
73
+ },
74
+ getScroll() {
75
+ let e = 0;
76
+ this.arrowsPosition == "relative" ? e = this.$refs.content.scrollWidth - this.$el.clientWidth + this.arrowsMargin * 2 + this.arrowsWidth * 4 : e = this.$refs.content.scrollWidth - this.$el.clientWidth, this.$refs.content.scrollLeft == 0 ? this.showLeftArrow = !1 : this.showLeftArrow = !0, e > 0 && (this.$refs.content.scrollLeft == e ? this.showRightArrow = !1 : this.showRightArrow = !0), this.arrowsHideOnNoScroll && this.$refs.content.clientWidth === this.$refs.content.scrollWidth && (this.showRightArrow = !1);
77
+ },
78
+ resizeSlider() {
79
+ this.getScroll();
80
+ let e;
81
+ clearTimeout(e), e = setTimeout(this.getScroll, 1e3);
82
+ },
83
+ listenerLoad() {
84
+ this.intervalid1 = setInterval((function() {
85
+ var e = this.$el.clientWidth, r = this.$refs.content.scrollWidth;
86
+ r > 0 && e > 0 && (r > e ? (this.showRightArrow = !0, clearInterval(this.intervalid1)) : clearInterval(this.intervalid1));
87
+ }).bind(this), 3e3);
88
+ }
89
+ }
90
+ }, Ze = () => {
91
+ se((e) => ({
92
+ "42d3dba6": e.backgroundColor,
93
+ "4de5d2cf": e.height,
94
+ "67bafa7b": e.arrowsPosition,
95
+ "61e1032e": e.arrowsPadding + "px",
96
+ "79a4ac00": e.arrowsBackground,
97
+ "6b8355c6": e.arrowsHeight * 2 + "px",
98
+ "29a58368": e.arrowsWidth * 2 + "px",
99
+ "3622fa64": e.arrowsRadius,
100
+ "1ba101fe": e.arrowsBorder,
101
+ "0bafb5e6": e.arrowsMargin + "px",
102
+ "423a44b8": e.arrowsContainerBgL,
103
+ "423a44be": e.arrowsContainerBgR,
104
+ "10b117ee": e.scrollColor
105
+ }));
106
+ }, Ke = ze.setup;
107
+ ze.setup = Ke ? (e, r) => (Ze(), Ke(e, r)) : Ze;
108
+ const Qt = {
109
+ ref: "gscScrollableContainer",
110
+ class: "scrollable-container"
111
+ }, Yt = { class: "scrollable-arrows" }, er = ["width", "height", "viewBox"], tr = ["stroke"], rr = { class: "scrollable-wrapper" }, or = { class: "scrollable-arrows" }, sr = ["width", "height", "viewBox"], ir = ["stroke"];
112
+ function nr(e, r, t, o, s, i) {
113
+ return f(), p("div", Qt, [
114
+ t.arrows ? (f(), p("div", {
115
+ key: 0,
116
+ class: E(["arrows-container", i.hideShowLeftArrow]),
117
+ onClick: r[0] || (r[0] = (...n) => i.scrollLeft && i.scrollLeft(...n))
118
+ }, [
119
+ h("div", Yt, [
120
+ (f(), p("svg", {
121
+ width: t.arrowsWidth,
122
+ height: t.arrowsHeight,
123
+ viewBox: i.getViewBox,
124
+ fill: "none",
125
+ xmlns: "http://www.w3.org/2000/svg"
126
+ }, [
127
+ h("path", {
128
+ d: "M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",
129
+ stroke: t.arrowsColor
130
+ }, null, 8, tr)
131
+ ], 8, er))
132
+ ])
133
+ ], 2)) : S("", !0),
134
+ h("div", {
135
+ class: "scrollable-content scrollable-content-slider",
136
+ ref: "content",
137
+ onScroll: r[1] || (r[1] = (...n) => i.getScroll && i.getScroll(...n))
138
+ }, [
139
+ h("div", rr, [
140
+ Z(e.$slots, "default", {}, void 0, !0)
141
+ ])
142
+ ], 544),
143
+ t.arrows ? (f(), p("div", {
144
+ key: 1,
145
+ id: "arrows-container-right",
146
+ class: E(["arrows-container", i.hideShowRightArrow]),
147
+ onClick: r[2] || (r[2] = (...n) => i.scrollRight && i.scrollRight(...n))
148
+ }, [
149
+ h("div", or, [
150
+ (f(), p("svg", {
151
+ width: t.arrowsWidth,
152
+ height: t.arrowsHeight,
153
+ viewBox: i.getViewBox,
154
+ fill: "none",
155
+ xmlns: "http://www.w3.org/2000/svg"
156
+ }, [
157
+ h("path", {
158
+ d: "M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",
159
+ stroke: t.arrowsColor
160
+ }, null, 8, ir)
161
+ ], 8, sr))
162
+ ])
163
+ ], 2)) : S("", !0)
164
+ ], 512);
165
+ }
166
+ const ar = /* @__PURE__ */ Kt(ze, [["render", nr], ["__scopeId", "data-v-b548a08d"]]), lr = (e, r) => {
167
+ const t = e.__vccOpts || e;
168
+ for (const [o, s] of r)
169
+ t[o] = s;
170
+ return t;
171
+ }, Fe = {
172
+ components: {
173
+ GSCSlider: ar
174
+ },
175
+ props: {
176
+ arrow: {
177
+ type: Boolean,
178
+ required: !0
179
+ },
180
+ buttons: {
181
+ type: Array,
182
+ required: !0
183
+ },
184
+ width: {
185
+ type: String,
186
+ default: "300px"
187
+ },
188
+ height: {
189
+ type: String,
190
+ default: "80px"
191
+ },
192
+ fontSize: {
193
+ type: String,
194
+ default: "16px"
195
+ },
196
+ colorFont: {
197
+ type: String,
198
+ default: "#ffffff"
199
+ },
200
+ backgroundOptionActive: {
201
+ type: String,
202
+ default: "#0d1d29"
203
+ },
204
+ colorOptionActive: {
205
+ type: String,
206
+ default: "#cbee6b"
207
+ },
208
+ colorOptionDisable: {
209
+ type: String,
210
+ default: "gray"
211
+ },
212
+ backgroundOptionDisable: {
213
+ type: String,
214
+ default: "#0d1d29"
215
+ },
216
+ fontFamily: {
217
+ type: String,
218
+ default: "Poppins-Semibold"
219
+ },
220
+ borderWidth: {
221
+ type: String,
222
+ default: "3px"
223
+ },
224
+ borderRadius: {
225
+ type: String,
226
+ default: "0px"
227
+ },
228
+ selectedOption: {
229
+ type: String,
230
+ default: ""
231
+ },
232
+ type: {
233
+ type: Number,
234
+ default: 0
235
+ },
236
+ borderWidthContainer: {
237
+ type: String,
238
+ default: "1px"
239
+ },
240
+ background: {
241
+ type: String,
242
+ default: "#0d1d29"
243
+ },
244
+ borderColorContainer: {
245
+ type: String,
246
+ default: "#505355"
247
+ },
248
+ pxScroll: { type: Number, default: 100 },
249
+ scrollColor: { type: String, default: "#c3e569" },
250
+ arrowsPosition: { type: String, default: "relative" },
251
+ arrowsScrollHide: { type: Boolean, default: !1 },
252
+ arrowsBackground: { type: String, default: "#0D1D29" },
253
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
254
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
255
+ arrowsMargin: { type: Number, default: 10 },
256
+ arrowsRadius: { type: String, default: "0%" },
257
+ arrowsBorder: { type: String, default: "none" }
258
+ },
259
+ setup() {
260
+ const e = F("myDivRef"), {
261
+ elementSize: r
262
+ } = Zt(e);
263
+ return {
264
+ myDivRef: e,
265
+ elementSize: r
266
+ };
267
+ },
268
+ methods: {
269
+ clickEmitEvent(e) {
270
+ this.$emit("input", e);
271
+ },
272
+ customGrid(e) {
273
+ var r = {};
274
+ return e.width > 768 ? r = {
275
+ fontSize: "16px"
276
+ } : e.width > 480 ? r = {
277
+ fontSize: "14px"
278
+ } : r = {
279
+ fontSize: "12px"
280
+ }, r;
281
+ }
282
+ }
283
+ }, Qe = () => {
284
+ se((e) => ({
285
+ cff4a118: e.fontSize,
286
+ "42aab7f6": e.borderWidth,
287
+ d29bcbd2: e.fontFamily,
288
+ df6c5a9c: e.background,
289
+ "09b32862": e.borderRadius,
290
+ "8c0d6daa": e.borderWidthContainer,
291
+ e8a86fa4: e.borderColorContainer,
292
+ "179494da": e.colorOptionActive,
293
+ cea5647c: e.width
294
+ }));
295
+ }, Ye = Fe.setup;
296
+ Fe.setup = Ye ? (e, r) => (Qe(), Ye(e, r)) : Qe;
297
+ const dr = { ref: "myDivRef" }, cr = {
298
+ key: 0,
299
+ class: "gs-switch-container"
300
+ }, ur = ["onClick"], hr = {
301
+ key: 1,
302
+ class: "gs-switch-container-type"
303
+ }, fr = ["onClick"], pr = {
304
+ key: 2,
305
+ class: "gs-switch-container-carousel"
306
+ }, mr = ["onClick"];
307
+ function gr(e, r, t, o, s, i) {
308
+ const n = $("GSCSlider");
309
+ return f(), p("div", dr, [
310
+ t.type == 0 ? (f(), p("div", cr, [
311
+ h("div", {
312
+ class: "gs-switch-container__control",
313
+ style: k([i.customGrid(o.elementSize)])
314
+ }, [
315
+ (f(!0), p(P, null, A(t.buttons, (l, a) => (f(), p("div", {
316
+ class: "gs-switch-container__control__button-option",
317
+ style: k([{ height: t.height }, t.selectedOption == l ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, color: "grey !important" }]),
318
+ key: a,
319
+ onClick: (c) => (t.selectedOption = l, i.clickEmitEvent(l))
320
+ }, I(l), 13, ur))), 128))
321
+ ], 4),
322
+ Z(e.$slots, t.selectedOption, {}, void 0, !0)
323
+ ])) : S("", !0),
324
+ t.type == 1 ? (f(), p("div", hr, [
325
+ h("div", {
326
+ class: "gs-switch-container-type__control",
327
+ style: k([i.customGrid(o.elementSize)])
328
+ }, [
329
+ (f(!0), p(P, null, A(t.buttons, (l, a) => (f(), p("div", {
330
+ class: "gs-switch-container-type__control__button-option-type",
331
+ style: k([{ height: t.height }, t.selectedOption == l ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, borderWidth: "0px", borderWidth: "0px !important", color: "grey !important", background: t.backgroundOptionDisable }]),
332
+ key: a,
333
+ onClick: (c) => (t.selectedOption = l, i.clickEmitEvent(l))
334
+ }, I(l), 13, fr))), 128))
335
+ ], 4)
336
+ ])) : S("", !0),
337
+ t.type == 2 ? (f(), p("div", pr, [
338
+ z(n, {
339
+ arrows: t.arrow,
340
+ "background-color": t.background,
341
+ "px-scroll": t.pxScroll,
342
+ "scroll-color": t.scrollColor,
343
+ "arrows-position": t.arrowsPosition,
344
+ arrowsScrollHide: t.arrowsScrollHide,
345
+ "arrows-background": t.arrowsBackground,
346
+ "arrows-container-bg-l": t.arrowsContainerBgL,
347
+ "arrows-container-bg-r": t.arrowsContainerBgR,
348
+ "arrows-margin": t.arrowsMargin,
349
+ "arrows-radius": t.arrowsRadius,
350
+ "arrows-border": t.arrowsBorder
351
+ }, {
352
+ default: M(() => [
353
+ (f(!0), p(P, null, A(t.buttons, (l, a) => (f(), p("div", {
354
+ class: "button-option-multi",
355
+ style: k([{ height: t.height }, t.selectedOption == l ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, color: "grey !important" }]),
356
+ key: a,
357
+ onClick: (c) => (t.selectedOption = l, i.clickEmitEvent(l))
358
+ }, I(l), 13, mr))), 128))
359
+ ]),
360
+ _: 1
361
+ }, 8, ["arrows", "background-color", "px-scroll", "scroll-color", "arrows-position", "arrowsScrollHide", "arrows-background", "arrows-container-bg-l", "arrows-container-bg-r", "arrows-margin", "arrows-radius", "arrows-border"])
362
+ ])) : S("", !0)
363
+ ], 512);
364
+ }
365
+ const yr = /* @__PURE__ */ lr(Fe, [["render", gr], ["__scopeId", "data-v-8a86dfaf"]]), wr = (e, r) => {
366
+ const t = e.__vccOpts || e;
367
+ for (const [o, s] of r)
368
+ t[o] = s;
369
+ return t;
370
+ }, We = {
371
+ props: {
372
+ type: { type: Number, default: 0 },
373
+ value: { type: Boolean, default: !1 },
374
+ textValue: String,
375
+ icon: String,
376
+ iconPosition: { type: String, default: "left" },
377
+ iconSize: String,
378
+ fontColor: { type: String, default: "#FFFFFF" },
379
+ textDecoration: String,
380
+ fontSize: { type: String, default: "16px" },
381
+ fontSizeStat: { type: String, default: "16px" },
382
+ fontStyle: String,
383
+ fontFamily: { type: String, default: "Poppins-Regular" },
384
+ height: { type: String, default: "fit-content" },
385
+ width: { type: String, default: "fit-content" },
386
+ borderRadius: { type: String, default: "0px" },
387
+ borderType: { type: String, default: "solid" },
388
+ borderWidth: { type: Number, default: 0 },
389
+ borderWidthBtn: { type: String, default: "2px" },
390
+ borderColor: String,
391
+ backgroundColor: { type: String, default: "none" },
392
+ activeBackgroundColor: { type: String, default: "#000000" },
393
+ activeBorderWidth: { type: Number, default: 2 },
394
+ activeBorderType: { type: String, default: "solid" },
395
+ activeBorderColor: { type: String, default: "#cbee6b" },
396
+ activeColorText: { type: String, default: "#FFFFFF" },
397
+ cursorType: { type: String, default: "default" },
398
+ typeOnOff: { type: Boolean, default: !1 },
399
+ textCategory: String,
400
+ textStat: String,
401
+ marginLeftStat: { type: String, default: "15%" }
402
+ },
403
+ watch: {
404
+ value: {
405
+ deep: !0,
406
+ immediate: !0,
407
+ handler(e) {
408
+ this.status = e;
409
+ }
410
+ }
411
+ },
412
+ data() {
413
+ return { status: !1 };
414
+ },
415
+ computed: {
416
+ customStyle() {
417
+ return {
418
+ height: this.height,
419
+ width: this.width,
420
+ backgroundColor: this.backgroundColor,
421
+ borderRadius: this.borderRadius,
422
+ border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
423
+ color: this.fontColor,
424
+ textDecoration: this.textDecoration,
425
+ cursor: this.cursorType,
426
+ fontSize: this.fontSize,
427
+ fontStyle: this.fontStyle,
428
+ fontFamily: `${this.fontFamily} !important`
429
+ };
430
+ },
431
+ customActive() {
432
+ return {
433
+ backgroundColor: this.activeBackgroundColor,
434
+ color: this.activeColorText,
435
+ border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
436
+ };
437
+ }
438
+ },
439
+ methods: {
440
+ btnClick(e) {
441
+ this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
442
+ }
443
+ }
444
+ }, et = () => {
445
+ se((e) => ({
446
+ "9d01acb4": e.height,
447
+ "14e95081": e.borderWidthBtn,
448
+ "38fec285": e.borderType,
449
+ 34353510: e.borderColor,
450
+ "20d20dc6": e.borderRadius,
451
+ 17130967: e.width,
452
+ "4ccb7d36": e.backgroundColor,
453
+ "5d1e86a2": e.cursorType,
454
+ ce65d4a2: e.fontSize,
455
+ fe4ac47a: e.fontStyle,
456
+ f98e44dc: e.fontFamily,
457
+ "93b87770": e.marginLeftStat,
458
+ c7f7beba: e.fontSizeStat
459
+ }));
460
+ }, tt = We.setup;
461
+ We.setup = tt ? (e, r) => (et(), tt(e, r)) : et;
462
+ const br = (e) => (ie("data-v-f3ee6b2b"), e = e(), ne(), e), Sr = ["src"], vr = {
463
+ key: 1,
464
+ class: "text"
465
+ }, Cr = ["src"], _r = { class: "stats" }, kr = /* @__PURE__ */ br(() => /* @__PURE__ */ h("img", {
466
+ class: "iconstats",
467
+ src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
468
+ }, null, -1)), Tr = { class: "numstats" }, Ir = { class: "leyend" };
469
+ function xr(e, r, t, o, s, i) {
470
+ return f(), p("div", null, [
471
+ t.type == 0 ? (f(), p("div", {
472
+ key: 0,
473
+ class: E(["button", s.status && t.typeOnOff && "button-active"]),
474
+ style: k([i.customStyle, s.status && t.typeOnOff && i.customActive]),
475
+ onClick: r[0] || (r[0] = (...n) => i.btnClick && i.btnClick(...n))
476
+ }, [
477
+ t.icon && t.iconPosition.toLowerCase() === "left" ? (f(), p("img", {
478
+ key: 0,
479
+ class: "icon",
480
+ style: k({ width: t.iconSize }),
481
+ src: t.icon
482
+ }, null, 12, Sr)) : S("", !0),
483
+ t.textValue ? (f(), p("div", vr, I(t.textValue), 1)) : S("", !0),
484
+ t.icon && t.iconPosition.toLowerCase() === "right" ? (f(), p("img", {
485
+ key: 2,
486
+ class: "icon",
487
+ style: k({ width: t.iconSize }),
488
+ src: t.icon
489
+ }, null, 12, Cr)) : S("", !0)
490
+ ], 6)) : S("", !0),
491
+ t.type == 1 ? (f(), p("div", {
492
+ key: 1,
493
+ class: "button-target",
494
+ onClick: r[1] || (r[1] = (...n) => i.btnClick && i.btnClick(...n))
495
+ }, [
496
+ h("div", _r, [
497
+ kr,
498
+ h("div", Tr, I(t.textStat), 1)
499
+ ]),
500
+ h("div", Ir, I(t.textCategory), 1)
501
+ ])) : S("", !0)
502
+ ]);
503
+ }
504
+ const Or = /* @__PURE__ */ wr(We, [["render", xr], ["__scopeId", "data-v-f3ee6b2b"]]), Pr = { class: "gsc-dropdown__main-container__item-selected" }, Ar = ["height", "width"], Rr = ["stroke"], Er = { class: "gsc-dropdown__items-container" }, Br = ["onClick"], Dr = {
505
+ key: 0,
506
+ class: "gsc-dropdown__items-footer"
507
+ }, Nr = {
508
+ __name: "GSC-Dropdown",
509
+ props: {
510
+ modelValue: {
511
+ type: [Object, Number, String],
512
+ default: () => null
513
+ },
514
+ height: {
515
+ type: String,
516
+ default: "fit-content"
517
+ },
518
+ width: {
519
+ type: String,
520
+ default: "fit-content"
521
+ },
522
+ fontSize: {
523
+ type: String,
524
+ default: "14px"
525
+ },
526
+ borderRadius: {
527
+ type: Number,
528
+ default: 5
529
+ },
530
+ arrowHeight: {
531
+ type: Number,
532
+ default: 24
533
+ },
534
+ arrowWidth: {
535
+ type: Number,
536
+ default: 24
537
+ },
538
+ borderType: {
539
+ type: String,
540
+ default: "solid",
541
+ validator: function(e) {
542
+ return ["solid", "dotted", "dashed"].includes(e);
543
+ }
544
+ },
545
+ borderWidth: {
546
+ type: Number,
547
+ default: 1
548
+ },
549
+ borderColor: {
550
+ type: String,
551
+ default: "black"
552
+ },
553
+ backgroundColor: {
554
+ type: String,
555
+ default: "grey"
556
+ },
557
+ color: {
558
+ type: String,
559
+ default: "black"
560
+ },
561
+ arrowColor: {
562
+ type: String,
563
+ default: "#CBEE6B"
564
+ },
565
+ items: {
566
+ type: Array,
567
+ default: () => []
568
+ },
569
+ defaultItemByIndex: {
570
+ type: Number,
571
+ default: 0
572
+ },
573
+ defaultItemByProp: {
574
+ type: Object,
575
+ default: null,
576
+ validator: (e) => ["propName", "value"].every((r) => r in e)
577
+ },
578
+ listBackgroundColor: {
579
+ type: String,
580
+ default: "white"
581
+ },
582
+ hoverBackgroundColor: {
583
+ type: String,
584
+ default: "#f1f1f1"
585
+ },
586
+ listMarginTop: {
587
+ type: String,
588
+ default: "0"
589
+ },
590
+ listContainerPadding: {
591
+ type: String,
592
+ default: "0"
593
+ },
594
+ listItemPadding: {
595
+ type: String,
596
+ default: "10px 12px"
597
+ },
598
+ listItemMargin: {
599
+ type: String,
600
+ default: "0"
601
+ },
602
+ listHeight: {
603
+ type: String,
604
+ default: "fit-content"
605
+ },
606
+ listItemSelectedColor: {
607
+ type: String,
608
+ default: "white"
609
+ },
610
+ listItemSelectedBackgroundColor: {
611
+ type: String,
612
+ default: "#399cfd"
613
+ },
614
+ listItemColor: {
615
+ type: String,
616
+ default: "black"
617
+ },
618
+ listBorderRadius: {
619
+ type: String,
620
+ default: "0"
621
+ },
622
+ listBorderColor: {
623
+ type: String,
624
+ default: ""
625
+ },
626
+ listBorderWidth: {
627
+ type: Number,
628
+ default: 1
629
+ },
630
+ listItemBorderRadius: {
631
+ type: String,
632
+ default: "0"
633
+ },
634
+ listAlignment: {
635
+ type: String,
636
+ default: "left"
637
+ },
638
+ isListSameWidth: {
639
+ type: Boolean,
640
+ default: !1
641
+ },
642
+ isMultipleOption: {
643
+ type: Boolean,
644
+ default: !1
645
+ },
646
+ footerBorderColor: {
647
+ type: String,
648
+ default: "#626970"
649
+ },
650
+ footerBorderWidth: {
651
+ type: Number,
652
+ default: 1
653
+ },
654
+ isFooterVisible: {
655
+ type: Boolean,
656
+ default: !1
657
+ },
658
+ isDisabled: {
659
+ type: Boolean,
660
+ default: !1
661
+ },
662
+ onlyFirstTime: {
663
+ type: Boolean,
664
+ default: !1
665
+ }
666
+ },
667
+ emits: ["input", "click-ready", "update:modelValue"],
668
+ setup(e, { emit: r }) {
669
+ const t = e, o = F({}), s = F(null), i = F(t.isMultipleOption ? -1 : 0), n = F(!1);
670
+ fe(
671
+ () => t.items,
672
+ (y, g) => {
673
+ if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && y && y.length) {
674
+ if (t.defaultItemByProp) {
675
+ const w = t.items.findIndex(
676
+ (b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
677
+ );
678
+ w !== -1 ? (i.value = w, o.value = y[w]) : (i.value = 0, o.value = y[0]);
679
+ } else
680
+ o.value = y[t.defaultItemByIndex];
681
+ r("input", o.value);
682
+ }
683
+ },
684
+ { immediate: !0 }
685
+ ), fe(
686
+ () => t.modelValue,
687
+ (y) => {
688
+ if (y) {
689
+ const g = t.items.findIndex((w) => typeof y == "object" ? JSON.stringify(w) === JSON.stringify(y) : w === y);
690
+ g !== -1 && (i.value = g, o.value = t.items[g], r("update:modelValue", o.value));
691
+ }
692
+ },
693
+ { immediate: !0 }
694
+ );
695
+ const l = W(() => ({
696
+ height: t.height,
697
+ width: t.width,
698
+ backgroundColor: t.backgroundColor,
699
+ borderRadius: `${t.borderRadius}px`,
700
+ border: `${t.borderType} ${t.borderWidth}px ${t.borderColor}`,
701
+ color: t.color,
702
+ "--hover-background-color": t.hoverBackgroundColor,
703
+ "--list-container-padding": t.listContainerPadding,
704
+ "--list-item-padding": t.listItemPadding,
705
+ "--list-item-margin": t.listItemMargin,
706
+ "--list-background-color": t.listBackgroundColor,
707
+ "--list-height": t.listHeight,
708
+ "--list-item-border-radius": t.listItemBorderRadius,
709
+ "--list-item-selected-color": t.listItemSelectedColor,
710
+ "--list-item-selected-background-color": t.listItemSelectedBackgroundColor,
711
+ "--list-item-color": t.listItemColor,
712
+ "--list-border-radius": `${t.listBorderRadius}`,
713
+ "--list-border-color": t.listBorderColor,
714
+ "--list-width": t.isListSameWidth ? t.width : "fit-content",
715
+ "--list-border-width": `${t.listBorderWidth}px`,
716
+ "--list-margin-top": t.listMarginTop,
717
+ "--list-left": t.listAlignment === "left" ? "0" : "auto",
718
+ "--list-right": t.listAlignment === "right" ? "0" : "auto",
719
+ "--footer-border": `${t.footerBorderWidth}px solid ${t.footerBorderColor}`,
720
+ "--dropdown-opacity": t.isDisabled ? "0.5" : "1",
721
+ "--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
722
+ "--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
723
+ })), a = W(() => ({
724
+ height: `${t.arrowHeight}px`,
725
+ width: `${t.arrowWidth}px`
726
+ }));
727
+ function c() {
728
+ t.isDisabled || (n.value = !n.value);
729
+ }
730
+ function u(y) {
731
+ s.value && !s.value.contains(y.target) && (n.value = !1);
732
+ }
733
+ function m(y, g) {
734
+ t.isMultipleOption ? i.value = -1 : (i.value = g, n.value = !1), o.value = y, r("input", o.value), r("update:modelValue", o.value);
735
+ }
736
+ function v() {
737
+ n.value = !1, r("click-ready");
738
+ }
739
+ return ge(() => {
740
+ document.addEventListener("click", u);
741
+ }), St(() => {
742
+ document.removeEventListener("click", u);
743
+ }), (y, g) => (f(), p("div", {
744
+ ref_key: "dropDown",
745
+ ref: s,
746
+ class: "gsc-dropdown",
747
+ style: k(l.value)
748
+ }, [
749
+ h("div", {
750
+ class: "gsc-dropdown__main-container",
751
+ style: k({ "padding-right": `${e.arrowWidth + 8}px` }),
752
+ onClick: c
753
+ }, [
754
+ h("div", Pr, [
755
+ Z(y.$slots, "default", { selectedItem: o.value })
756
+ ]),
757
+ h("div", {
758
+ class: E(["gsc-dropdown__main-container__icon", { "rotated-180": n.value }]),
759
+ style: k(a.value)
760
+ }, [
761
+ (f(), p("svg", {
762
+ height: e.arrowHeight,
763
+ width: e.arrowWidth,
764
+ viewBox: "0 0 24 24",
765
+ fill: "none",
766
+ xmlns: "http://www.w3.org/2000/svg"
767
+ }, [
768
+ h("path", {
769
+ d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
770
+ stroke: e.arrowColor
771
+ }, null, 8, Rr)
772
+ ], 8, Ar))
773
+ ], 6)
774
+ ], 4),
775
+ z(vt, null, {
776
+ default: M(() => [
777
+ Q(h("div", Er, [
778
+ h("div", null, [
779
+ h("div", {
780
+ class: "gsc-dropdown__items",
781
+ style: k({ "margin-top": `${t.borderWidth}px` })
782
+ }, [
783
+ (f(!0), p(P, null, A(e.items, (w, b) => (f(), p("div", {
784
+ class: E(["gsc-dropdown__items__item", { selected: b === i.value }]),
785
+ key: b,
786
+ onClick: (T) => m(w, b)
787
+ }, [
788
+ Z(y.$slots, "availableItem", { item: w })
789
+ ], 10, Br))), 128))
790
+ ], 4),
791
+ e.isFooterVisible ? (f(), p("div", Dr, [
792
+ z(ye(Or), {
793
+ "text-value": "Listo",
794
+ "border-color": "#cbee6b",
795
+ "font-size": "12px",
796
+ width: "72px",
797
+ height: "22px",
798
+ "border-radius": "62px",
799
+ "border-width": 0.8,
800
+ onClick: v
801
+ })
802
+ ])) : S("", !0)
803
+ ])
804
+ ], 512), [
805
+ [re, n.value]
806
+ ])
807
+ ]),
808
+ _: 3
809
+ })
810
+ ], 4));
811
+ }
812
+ }, $r = (e, r) => {
813
+ const t = e.__vccOpts || e;
814
+ for (const [o, s] of r)
815
+ t[o] = s;
816
+ return t;
817
+ }, Lr = { class: "season-name" }, zr = { class: "items-list-season" }, Fr = {
818
+ __name: "GSC-SeasonSelect",
819
+ props: {
820
+ seasons: {
821
+ type: Array,
822
+ default: () => []
823
+ },
824
+ currentSeasonId: {
825
+ type: Number,
826
+ default: 0
827
+ }
828
+ },
829
+ emits: ["input"],
830
+ setup(e, { emit: r }) {
831
+ const t = e, o = W(() => t.seasons.find((n) => n.id === t.currentSeasonId));
832
+ function s(n) {
833
+ r("input", n);
834
+ }
835
+ function i(n) {
836
+ r("input", n);
837
+ }
838
+ return (n, l) => (f(), q(ye(Nr), {
839
+ items: e.seasons,
840
+ "model-value": o.value,
841
+ height: "40px",
842
+ width: "179px",
843
+ "background-color": "#0d1d29",
844
+ color: "white",
845
+ "border-color": "rgba(255, 255, 255, 0.2)",
846
+ "font-family": "Poppins-Regular",
847
+ "border-radius": 8,
848
+ onInput: i,
849
+ "onUpdate:modelValue": s
850
+ }, {
851
+ default: M(({ selectedItem: a }) => [
852
+ h("div", Lr, [
853
+ h("span", null, I(a.name), 1)
854
+ ])
855
+ ]),
856
+ availableItem: M(({ item: a }) => [
857
+ h("span", zr, I(a.name), 1)
858
+ ]),
859
+ _: 1
860
+ }, 8, ["items", "model-value"]));
861
+ }
862
+ }, Wr = /* @__PURE__ */ $r(Fr, [["__scopeId", "data-v-d23e9ee2"]]), Mr = (e, r) => {
863
+ const t = e.__vccOpts || e;
864
+ for (const [o, s] of r)
865
+ t[o] = s;
866
+ return t;
867
+ }, Me = {
868
+ props: {
869
+ type: { type: Number, default: 0 },
870
+ value: { type: Boolean, default: !1 },
871
+ textValue: String,
872
+ icon: String,
873
+ iconPosition: { type: String, default: "left" },
874
+ iconSize: String,
875
+ fontColor: { type: String, default: "#FFFFFF" },
876
+ textDecoration: String,
877
+ fontSize: { type: String, default: "16px" },
878
+ fontSizeStat: { type: String, default: "16px" },
879
+ fontStyle: String,
880
+ fontFamily: { type: String, default: "Poppins-Regular" },
881
+ height: { type: String, default: "fit-content" },
882
+ width: { type: String, default: "fit-content" },
883
+ borderRadius: { type: String, default: "0px" },
884
+ borderType: { type: String, default: "solid" },
885
+ borderWidth: { type: Number, default: 0 },
886
+ borderWidthBtn: { type: String, default: "2px" },
887
+ borderColor: String,
888
+ backgroundColor: { type: String, default: "none" },
889
+ activeBackgroundColor: { type: String, default: "#000000" },
890
+ activeBorderWidth: { type: Number, default: 2 },
891
+ activeBorderType: { type: String, default: "solid" },
892
+ activeBorderColor: { type: String, default: "#cbee6b" },
893
+ activeColorText: { type: String, default: "#FFFFFF" },
894
+ cursorType: { type: String, default: "default" },
895
+ typeOnOff: { type: Boolean, default: !1 },
896
+ textCategory: String,
897
+ textStat: String,
898
+ marginLeftStat: { type: String, default: "15%" }
899
+ },
900
+ watch: {
901
+ value: {
902
+ deep: !0,
903
+ immediate: !0,
904
+ handler(e) {
905
+ this.status = e;
906
+ }
907
+ }
908
+ },
909
+ data() {
910
+ return { status: !1 };
911
+ },
912
+ computed: {
913
+ customStyle() {
914
+ return {
915
+ height: this.height,
916
+ width: this.width,
917
+ backgroundColor: this.backgroundColor,
918
+ borderRadius: this.borderRadius,
919
+ border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
920
+ color: this.fontColor,
921
+ textDecoration: this.textDecoration,
922
+ cursor: this.cursorType,
923
+ fontSize: this.fontSize,
924
+ fontStyle: this.fontStyle,
925
+ fontFamily: `${this.fontFamily} !important`
926
+ };
927
+ },
928
+ customActive() {
929
+ return {
930
+ backgroundColor: this.activeBackgroundColor,
931
+ color: this.activeColorText,
932
+ border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
933
+ };
934
+ }
935
+ },
936
+ methods: {
937
+ btnClick(e) {
938
+ this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
939
+ }
940
+ }
941
+ }, rt = () => {
942
+ se((e) => ({
943
+ "1c960139": e.height,
944
+ b2f635d8: e.borderWidthBtn,
945
+ "06e99898": e.borderType,
946
+ "55555c76": e.borderColor,
947
+ "23b6d320": e.borderRadius,
948
+ "22c97374": e.width,
949
+ "22bb09fa": e.backgroundColor,
950
+ c148da7c: e.cursorType,
951
+ cce756fc: e.fontSize,
952
+ cff98d60: e.fontStyle,
953
+ "5123b3a5": e.fontFamily,
954
+ "47bf58db": e.marginLeftStat,
955
+ cadc8414: e.fontSizeStat
956
+ }));
957
+ }, ot = Me.setup;
958
+ Me.setup = ot ? (e, r) => (rt(), ot(e, r)) : rt;
959
+ const jr = (e) => (ie("data-v-fb269a1e"), e = e(), ne(), e), Ur = ["src"], qr = {
960
+ key: 1,
961
+ class: "text"
962
+ }, Hr = ["src"], Jr = { class: "stats" }, Gr = /* @__PURE__ */ jr(() => /* @__PURE__ */ h("img", {
963
+ class: "iconstats",
964
+ src: "https://az755631.vo.msecnd.net/todoelfut/playdes.png"
965
+ }, null, -1)), Vr = { class: "numstats" }, Xr = { class: "leyend" };
966
+ function Zr(e, r, t, o, s, i) {
967
+ return f(), p("div", null, [
968
+ t.type == 0 ? (f(), p("div", {
969
+ key: 0,
970
+ class: E(["button", s.status && t.typeOnOff && "button-active"]),
971
+ style: k([i.customStyle, s.status && t.typeOnOff && i.customActive]),
972
+ onClick: r[0] || (r[0] = (...n) => i.btnClick && i.btnClick(...n))
973
+ }, [
974
+ t.icon && t.iconPosition.toLowerCase() === "left" ? (f(), p("img", {
975
+ key: 0,
976
+ class: "icon",
977
+ style: k({ width: t.iconSize }),
978
+ src: t.icon
979
+ }, null, 12, Ur)) : S("", !0),
980
+ t.textValue ? (f(), p("div", qr, I(t.textValue), 1)) : S("", !0),
981
+ t.icon && t.iconPosition.toLowerCase() === "right" ? (f(), p("img", {
982
+ key: 2,
983
+ class: "icon",
984
+ style: k({ width: t.iconSize }),
985
+ src: t.icon
986
+ }, null, 12, Hr)) : S("", !0)
987
+ ], 6)) : S("", !0),
988
+ t.type == 1 ? (f(), p("div", {
989
+ key: 1,
990
+ class: "button-target",
991
+ onClick: r[1] || (r[1] = (...n) => i.btnClick && i.btnClick(...n))
992
+ }, [
993
+ h("div", Jr, [
994
+ Gr,
995
+ h("div", Vr, I(t.textStat), 1)
996
+ ]),
997
+ h("div", Xr, I(t.textCategory), 1)
998
+ ])) : S("", !0)
999
+ ]);
1000
+ }
1001
+ const Kr = /* @__PURE__ */ Mr(Me, [["render", Zr], ["__scopeId", "data-v-fb269a1e"]]), Qr = { class: "gsc-dropdown__main-container__item-selected" }, Yr = ["height", "width"], eo = ["stroke"], to = { class: "gsc-dropdown__items-container" }, ro = ["onClick"], oo = {
1002
+ key: 0,
1003
+ class: "gsc-dropdown__items-footer"
1004
+ }, so = {
1005
+ __name: "GSC-Dropdown",
1006
+ props: {
1007
+ modelValue: {
1008
+ type: [Object, Number, String],
1009
+ default: () => null
1010
+ },
1011
+ height: {
1012
+ type: String,
1013
+ default: "fit-content"
1014
+ },
1015
+ width: {
1016
+ type: String,
1017
+ default: "fit-content"
1018
+ },
1019
+ fontSize: {
1020
+ type: String,
1021
+ default: "14px"
1022
+ },
1023
+ borderRadius: {
1024
+ type: Number,
1025
+ default: 5
1026
+ },
1027
+ arrowHeight: {
1028
+ type: Number,
1029
+ default: 24
1030
+ },
1031
+ arrowWidth: {
1032
+ type: Number,
1033
+ default: 24
1034
+ },
1035
+ borderType: {
1036
+ type: String,
1037
+ default: "solid",
1038
+ validator: function(e) {
1039
+ return ["solid", "dotted", "dashed"].includes(e);
1040
+ }
1041
+ },
1042
+ borderWidth: {
1043
+ type: Number,
1044
+ default: 1
1045
+ },
1046
+ borderColor: {
1047
+ type: String,
1048
+ default: "black"
1049
+ },
1050
+ backgroundColor: {
1051
+ type: String,
1052
+ default: "grey"
1053
+ },
1054
+ color: {
1055
+ type: String,
1056
+ default: "black"
1057
+ },
1058
+ arrowColor: {
1059
+ type: String,
1060
+ default: "#CBEE6B"
1061
+ },
1062
+ items: {
1063
+ type: Array,
1064
+ default: () => []
1065
+ },
1066
+ defaultItemByIndex: {
1067
+ type: Number,
1068
+ default: 0
1069
+ },
1070
+ defaultItemByProp: {
1071
+ type: Object,
1072
+ default: null,
1073
+ validator: (e) => ["propName", "value"].every((r) => r in e)
1074
+ },
1075
+ listBackgroundColor: {
1076
+ type: String,
1077
+ default: "white"
1078
+ },
1079
+ hoverBackgroundColor: {
1080
+ type: String,
1081
+ default: "#f1f1f1"
1082
+ },
1083
+ listMarginTop: {
1084
+ type: String,
1085
+ default: "0"
1086
+ },
1087
+ listContainerPadding: {
1088
+ type: String,
1089
+ default: "0"
1090
+ },
1091
+ listItemPadding: {
1092
+ type: String,
1093
+ default: "10px 12px"
1094
+ },
1095
+ listItemMargin: {
1096
+ type: String,
1097
+ default: "0"
1098
+ },
1099
+ listHeight: {
1100
+ type: String,
1101
+ default: "fit-content"
1102
+ },
1103
+ listItemSelectedColor: {
1104
+ type: String,
1105
+ default: "white"
1106
+ },
1107
+ listItemSelectedBackgroundColor: {
1108
+ type: String,
1109
+ default: "#399cfd"
1110
+ },
1111
+ listItemColor: {
1112
+ type: String,
1113
+ default: "black"
1114
+ },
1115
+ listBorderRadius: {
1116
+ type: String,
1117
+ default: "0"
1118
+ },
1119
+ listBorderColor: {
1120
+ type: String,
1121
+ default: ""
1122
+ },
1123
+ listBorderWidth: {
1124
+ type: Number,
1125
+ default: 1
1126
+ },
1127
+ listItemBorderRadius: {
1128
+ type: String,
1129
+ default: "0"
1130
+ },
1131
+ listAlignment: {
1132
+ type: String,
1133
+ default: "left"
1134
+ },
1135
+ isListSameWidth: {
1136
+ type: Boolean,
1137
+ default: !1
1138
+ },
1139
+ isMultipleOption: {
1140
+ type: Boolean,
1141
+ default: !1
1142
+ },
1143
+ footerBorderColor: {
1144
+ type: String,
1145
+ default: "#626970"
1146
+ },
1147
+ footerBorderWidth: {
1148
+ type: Number,
1149
+ default: 1
1150
+ },
1151
+ isFooterVisible: {
1152
+ type: Boolean,
1153
+ default: !1
1154
+ },
1155
+ isDisabled: {
1156
+ type: Boolean,
1157
+ default: !1
1158
+ },
1159
+ onlyFirstTime: {
1160
+ type: Boolean,
1161
+ default: !1
1162
+ }
1163
+ },
1164
+ emits: ["input", "click-ready", "update:modelValue"],
1165
+ setup(e, { emit: r }) {
1166
+ const t = e, o = F({}), s = F(null), i = F(t.isMultipleOption ? -1 : 0), n = F(!1);
1167
+ fe(
1168
+ () => t.items,
1169
+ (y, g) => {
1170
+ if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && y && y.length) {
1171
+ if (t.defaultItemByProp) {
1172
+ const w = t.items.findIndex(
1173
+ (b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
1174
+ );
1175
+ w !== -1 ? (i.value = w, o.value = y[w]) : (i.value = 0, o.value = y[0]);
1176
+ } else
1177
+ o.value = y[t.defaultItemByIndex];
1178
+ r("input", o.value);
1179
+ }
1180
+ },
1181
+ { immediate: !0 }
1182
+ ), fe(
1183
+ () => t.modelValue,
1184
+ (y) => {
1185
+ if (y) {
1186
+ const g = t.items.findIndex((w) => typeof y == "object" ? JSON.stringify(w) === JSON.stringify(y) : w === y);
1187
+ g !== -1 && (i.value = g, o.value = t.items[g], r("update:modelValue", o.value));
1188
+ }
1189
+ },
1190
+ { immediate: !0 }
1191
+ );
1192
+ const l = W(() => ({
1193
+ height: t.height,
1194
+ width: t.width,
1195
+ backgroundColor: t.backgroundColor,
1196
+ borderRadius: `${t.borderRadius}px`,
1197
+ border: `${t.borderType} ${t.borderWidth}px ${t.borderColor}`,
1198
+ color: t.color,
1199
+ "--hover-background-color": t.hoverBackgroundColor,
1200
+ "--list-container-padding": t.listContainerPadding,
1201
+ "--list-item-padding": t.listItemPadding,
1202
+ "--list-item-margin": t.listItemMargin,
1203
+ "--list-background-color": t.listBackgroundColor,
1204
+ "--list-height": t.listHeight,
1205
+ "--list-item-border-radius": t.listItemBorderRadius,
1206
+ "--list-item-selected-color": t.listItemSelectedColor,
1207
+ "--list-item-selected-background-color": t.listItemSelectedBackgroundColor,
1208
+ "--list-item-color": t.listItemColor,
1209
+ "--list-border-radius": `${t.listBorderRadius}`,
1210
+ "--list-border-color": t.listBorderColor,
1211
+ "--list-width": t.isListSameWidth ? t.width : "fit-content",
1212
+ "--list-border-width": `${t.listBorderWidth}px`,
1213
+ "--list-margin-top": t.listMarginTop,
1214
+ "--list-left": t.listAlignment === "left" ? "0" : "auto",
1215
+ "--list-right": t.listAlignment === "right" ? "0" : "auto",
1216
+ "--footer-border": `${t.footerBorderWidth}px solid ${t.footerBorderColor}`,
1217
+ "--dropdown-opacity": t.isDisabled ? "0.5" : "1",
1218
+ "--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
1219
+ "--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
1220
+ })), a = W(() => ({
1221
+ height: `${t.arrowHeight}px`,
1222
+ width: `${t.arrowWidth}px`
1223
+ }));
1224
+ function c() {
1225
+ t.isDisabled || (n.value = !n.value);
1226
+ }
1227
+ function u(y) {
1228
+ s.value && !s.value.contains(y.target) && (n.value = !1);
1229
+ }
1230
+ function m(y, g) {
1231
+ t.isMultipleOption ? i.value = -1 : (i.value = g, n.value = !1), o.value = y, r("input", o.value), r("update:modelValue", o.value);
1232
+ }
1233
+ function v() {
1234
+ n.value = !1, r("click-ready");
1235
+ }
1236
+ return ge(() => {
1237
+ document.addEventListener("click", u);
1238
+ }), St(() => {
1239
+ document.removeEventListener("click", u);
1240
+ }), (y, g) => (f(), p("div", {
1241
+ ref_key: "dropDown",
1242
+ ref: s,
1243
+ class: "gsc-dropdown",
1244
+ style: k(l.value)
1245
+ }, [
1246
+ h("div", {
1247
+ class: "gsc-dropdown__main-container",
1248
+ style: k({ "padding-right": `${e.arrowWidth + 8}px` }),
1249
+ onClick: c
1250
+ }, [
1251
+ h("div", Qr, [
1252
+ Z(y.$slots, "default", { selectedItem: o.value })
1253
+ ]),
1254
+ h("div", {
1255
+ class: E(["gsc-dropdown__main-container__icon", { "rotated-180": n.value }]),
1256
+ style: k(a.value)
1257
+ }, [
1258
+ (f(), p("svg", {
1259
+ height: e.arrowHeight,
1260
+ width: e.arrowWidth,
1261
+ viewBox: "0 0 24 24",
1262
+ fill: "none",
1263
+ xmlns: "http://www.w3.org/2000/svg"
1264
+ }, [
1265
+ h("path", {
1266
+ d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
1267
+ stroke: e.arrowColor
1268
+ }, null, 8, eo)
1269
+ ], 8, Yr))
1270
+ ], 6)
1271
+ ], 4),
1272
+ z(vt, null, {
1273
+ default: M(() => [
1274
+ Q(h("div", to, [
1275
+ h("div", null, [
1276
+ h("div", {
1277
+ class: "gsc-dropdown__items",
1278
+ style: k({ "margin-top": `${t.borderWidth}px` })
1279
+ }, [
1280
+ (f(!0), p(P, null, A(e.items, (w, b) => (f(), p("div", {
1281
+ class: E(["gsc-dropdown__items__item", { selected: b === i.value }]),
1282
+ key: b,
1283
+ onClick: (T) => m(w, b)
1284
+ }, [
1285
+ Z(y.$slots, "availableItem", { item: w })
1286
+ ], 10, ro))), 128))
1287
+ ], 4),
1288
+ e.isFooterVisible ? (f(), p("div", oo, [
1289
+ z(ye(Kr), {
1290
+ "text-value": "Listo",
1291
+ "border-color": "#cbee6b",
1292
+ "font-size": "12px",
1293
+ width: "72px",
1294
+ height: "22px",
1295
+ "border-radius": "62px",
1296
+ "border-width": 0.8,
1297
+ onClick: v
1298
+ })
1299
+ ])) : S("", !0)
1300
+ ])
1301
+ ], 512), [
1302
+ [re, n.value]
1303
+ ])
1304
+ ]),
1305
+ _: 3
1306
+ })
1307
+ ], 4));
1308
+ }
1309
+ }, io = (e, r) => {
1310
+ const t = e.__vccOpts || e;
1311
+ for (const [o, s] of r)
1312
+ t[o] = s;
1313
+ return t;
1314
+ }, no = { class: "tournament-select__selected-tournament" }, ao = { class: "tournament-select__selected-tournament__logo" }, lo = ["src"], co = { class: "tournament-select__selected-tournament__name" }, uo = "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments", ho = {
1315
+ __name: "GSCTournamentSelect",
1316
+ props: {
1317
+ apiUrl: {
1318
+ type: String,
1319
+ default: "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"
1320
+ },
1321
+ fontFamily: {
1322
+ type: String,
1323
+ default: "Poppins-Light"
1324
+ },
1325
+ logosUrl: {
1326
+ type: String,
1327
+ default: "https://golstatsimages.blob.core.windows.net/todoelfut/"
1328
+ },
1329
+ logoFileType: {
1330
+ type: String,
1331
+ default: "png"
1332
+ },
1333
+ height: {
1334
+ type: String,
1335
+ default: "40px"
1336
+ },
1337
+ width: {
1338
+ type: String,
1339
+ default: "179px"
1340
+ },
1341
+ borderRadius: {
1342
+ type: Number,
1343
+ default: 8
1344
+ },
1345
+ arrowHeight: {
1346
+ type: Number,
1347
+ default: 24
1348
+ },
1349
+ arrowWidth: {
1350
+ type: Number,
1351
+ default: 24
1352
+ },
1353
+ borderType: {
1354
+ type: String,
1355
+ default: "solid",
1356
+ validator: function(e) {
1357
+ return ["solid", "dotted", "dashed"].includes(e);
1358
+ }
1359
+ },
1360
+ borderWidth: {
1361
+ type: Number,
1362
+ default: 1
1363
+ },
1364
+ borderColor: {
1365
+ type: String,
1366
+ default: "rgba(255, 255, 255, 0.2)"
1367
+ },
1368
+ backgroundColor: {
1369
+ type: String,
1370
+ default: "#0d1d29"
1371
+ },
1372
+ color: {
1373
+ type: String,
1374
+ default: "white"
1375
+ },
1376
+ arrowColor: {
1377
+ type: String,
1378
+ default: "#CBEE6B"
1379
+ },
1380
+ items: {
1381
+ type: Array,
1382
+ default: () => []
1383
+ },
1384
+ defaultItemByIndex: {
1385
+ type: Number,
1386
+ default: 0
1387
+ },
1388
+ defaultItemByProp: {
1389
+ type: Object,
1390
+ default: null,
1391
+ validator: (e) => ["propName", "value"].every((r) => r in e)
1392
+ },
1393
+ currentSeasonId: {
1394
+ type: Number,
1395
+ default: 0
1396
+ },
1397
+ tournamentsIdsToInclude: {
1398
+ type: Set,
1399
+ default: () => /* @__PURE__ */ new Set()
1400
+ }
1401
+ },
1402
+ emits: ["input", "change-tournaments"],
1403
+ setup(e, { emit: r }) {
1404
+ const t = e, o = F([]), s = W(() => {
1405
+ const y = {};
1406
+ return t.fontFamily && (y["font-family"] = `${t.fontFamily}`), y;
1407
+ }), i = W(() => t.tournamentsIdsToInclude.size ? a(o.value) : o.value), n = W(() => i.value.find((y) => y.seasonsIds.has(t.currentSeasonId)) || i.value[0]);
1408
+ async function l() {
1409
+ try {
1410
+ if (t.items && t.items.length)
1411
+ o.value = [...t.items];
1412
+ else {
1413
+ const y = await u();
1414
+ r("change-tournaments", y), o.value = y.map((g) => ({
1415
+ ...g.tournament,
1416
+ seasons: g.seasons,
1417
+ seasonsIds: g.seasons.reduce((w, b) => (w.add(b.id), w), /* @__PURE__ */ new Set())
1418
+ })).sort((g, w) => g.order - w.order);
1419
+ }
1420
+ } catch (y) {
1421
+ throw new Error(y);
1422
+ }
1423
+ }
1424
+ function a(y) {
1425
+ return y.filter((g) => t.tournamentsIdsToInclude.has(g.id));
1426
+ }
1427
+ function c(y) {
1428
+ const g = new XMLHttpRequest(), w = `${t.logosUrl}${y}.${t.logoFileType}`;
1429
+ return g.open("HEAD", w, !1), g.send(), g.status !== 404;
1430
+ }
1431
+ async function u() {
1432
+ try {
1433
+ return (await fetch(t.apiUrl || uo)).json();
1434
+ } catch (y) {
1435
+ return Promise.reject(y);
1436
+ }
1437
+ }
1438
+ function m(y) {
1439
+ r("input", y);
1440
+ }
1441
+ function v(y) {
1442
+ r("input", y);
1443
+ }
1444
+ return ge(() => {
1445
+ l();
1446
+ }), (y, g) => (f(), p("div", {
1447
+ class: "tournament-select",
1448
+ style: k(s.value)
1449
+ }, [
1450
+ z(ye(so), Gt(t, {
1451
+ "model-value": n.value,
1452
+ items: i.value,
1453
+ onInput: m,
1454
+ "onUpdate:modelValue": v
1455
+ }), {
1456
+ default: M(({ selectedItem: w }) => [
1457
+ h("div", no, [
1458
+ h("div", ao, [
1459
+ c(w.id) ? (f(), p("img", {
1460
+ key: 0,
1461
+ src: `${t.logosUrl}${w.id}.${t.logoFileType}`,
1462
+ alt: ""
1463
+ }, null, 8, lo)) : S("", !0)
1464
+ ]),
1465
+ h("div", co, I(w.name), 1)
1466
+ ])
1467
+ ]),
1468
+ availableItem: M(({ item: w }) => [
1469
+ h("div", null, I(w.name), 1)
1470
+ ]),
1471
+ _: 1
1472
+ }, 16, ["model-value", "items"])
1473
+ ], 4));
1474
+ }
1475
+ }, fo = /* @__PURE__ */ io(ho, [["__scopeId", "data-v-5c8e9511"]]), po = (e, r) => {
1476
+ const t = e.__vccOpts || e;
1477
+ for (const [o, s] of r)
1478
+ t[o] = s;
1479
+ return t;
1480
+ }, je = {
1481
+ name: "ScrollableContainer",
1482
+ props: {
1483
+ backgroundColor: { type: String, default: "#0D1D29" },
1484
+ pxScroll: { type: Number, default: 100 },
1485
+ arrows: { type: Boolean, default: !0 },
1486
+ arrowsHideOnNoScroll: { type: Boolean, default: !1 },
1487
+ arrowsScrollHide: { type: Boolean, default: !1 },
1488
+ arrowsColor: { type: String, default: "#CBEE6B" },
1489
+ arrowsHeight: { type: Number, default: 15 },
1490
+ arrowsWidth: { type: Number, default: 15 },
1491
+ arrowsPadding: { type: Number, default: 5 },
1492
+ arrowsMargin: { type: Number, default: 10 },
1493
+ arrowsRadius: { type: String, default: "0%" },
1494
+ arrowsBorder: { type: String, default: "none" },
1495
+ arrowsBackground: { type: String, default: "#0D1D29" },
1496
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
1497
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
1498
+ scrollColor: { type: String, default: "#c3e569" },
1499
+ arrowsPosition: { type: String, default: "relative" },
1500
+ height: { type: String, default: "100%" }
1501
+ },
1502
+ data() {
1503
+ return {
1504
+ showLeftArrow: !1,
1505
+ showRightArrow: !0,
1506
+ intervalid1: ""
1507
+ };
1508
+ },
1509
+ mounted() {
1510
+ this.getScroll(), this.arrowsHideOnNoScroll && window.addEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && this.listenerLoad();
1511
+ },
1512
+ beforeUnmount() {
1513
+ this.arrowsHideOnNoScroll && window.removeEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && clearInterval(this.intervalid1);
1514
+ },
1515
+ computed: {
1516
+ getViewBox() {
1517
+ return `-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`;
1518
+ },
1519
+ hideShowLeftArrow() {
1520
+ let e = "";
1521
+ return this.arrowsPosition == "absolute" ? e = "leftAbsolute" : e = "leftRelative", this.arrowsScrollHide ? this.showLeftArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
1522
+ },
1523
+ hideShowRightArrow() {
1524
+ let e = "";
1525
+ return this.arrowsPosition == "absolute" ? e = "rightAbsolute" : e = "rightRelative", this.arrowsScrollHide ? this.showRightArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
1526
+ }
1527
+ },
1528
+ methods: {
1529
+ scrollLeft() {
1530
+ this.$refs.content.scrollLeft -= this.pxScroll;
1531
+ },
1532
+ scrollRight() {
1533
+ this.$refs.content.scrollLeft += this.pxScroll;
1534
+ },
1535
+ getScroll() {
1536
+ let e = 0;
1537
+ this.arrowsPosition == "relative" ? e = this.$refs.content.scrollWidth - this.$el.clientWidth + this.arrowsMargin * 2 + this.arrowsWidth * 4 : e = this.$refs.content.scrollWidth - this.$el.clientWidth, this.$refs.content.scrollLeft == 0 ? this.showLeftArrow = !1 : this.showLeftArrow = !0, e > 0 && (this.$refs.content.scrollLeft == e ? this.showRightArrow = !1 : this.showRightArrow = !0), this.arrowsHideOnNoScroll && this.$refs.content.clientWidth === this.$refs.content.scrollWidth && (this.showRightArrow = !1);
1538
+ },
1539
+ resizeSlider() {
1540
+ this.getScroll();
1541
+ let e;
1542
+ clearTimeout(e), e = setTimeout(this.getScroll, 1e3);
1543
+ },
1544
+ listenerLoad() {
1545
+ this.intervalid1 = setInterval((function() {
1546
+ var e = this.$el.clientWidth, r = this.$refs.content.scrollWidth;
1547
+ r > 0 && e > 0 && (r > e ? (this.showRightArrow = !0, clearInterval(this.intervalid1)) : clearInterval(this.intervalid1));
1548
+ }).bind(this), 3e3);
1549
+ }
1550
+ }
1551
+ }, st = () => {
1552
+ se((e) => ({
1553
+ "26acffa8": e.backgroundColor,
1554
+ "3d95bef4": e.height,
1555
+ "86ba1cc0": e.arrowsPosition,
1556
+ "140b6ada": e.arrowsPadding + "px",
1557
+ "7df46be5": e.arrowsBackground,
1558
+ "33f99798": e.arrowsHeight * 2 + "px",
1559
+ "1c8a858d": e.arrowsWidth * 2 + "px",
1560
+ "4a7876c9": e.arrowsRadius,
1561
+ "2ff67e63": e.arrowsBorder,
1562
+ "59c5dd08": e.arrowsMargin + "px",
1563
+ "6658215d": e.arrowsContainerBgL,
1564
+ 66582163: e.arrowsContainerBgR,
1565
+ e5900a2e: e.scrollColor
1566
+ }));
1567
+ }, it = je.setup;
1568
+ je.setup = it ? (e, r) => (st(), it(e, r)) : st;
1569
+ const mo = {
1570
+ ref: "gscScrollableContainer",
1571
+ class: "scrollable-container"
1572
+ }, go = { class: "scrollable-arrows" }, yo = ["width", "height", "viewBox"], wo = ["stroke"], bo = { class: "scrollable-wrapper" }, So = { class: "scrollable-arrows" }, vo = ["width", "height", "viewBox"], Co = ["stroke"];
1573
+ function _o(e, r, t, o, s, i) {
1574
+ return f(), p("div", mo, [
1575
+ t.arrows ? (f(), p("div", {
1576
+ key: 0,
1577
+ class: E(["arrows-container", i.hideShowLeftArrow]),
1578
+ onClick: r[0] || (r[0] = (...n) => i.scrollLeft && i.scrollLeft(...n))
1579
+ }, [
1580
+ h("div", go, [
1581
+ (f(), p("svg", {
1582
+ width: t.arrowsWidth,
1583
+ height: t.arrowsHeight,
1584
+ viewBox: i.getViewBox,
1585
+ fill: "none",
1586
+ xmlns: "http://www.w3.org/2000/svg"
1587
+ }, [
1588
+ h("path", {
1589
+ d: "M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",
1590
+ stroke: t.arrowsColor
1591
+ }, null, 8, wo)
1592
+ ], 8, yo))
1593
+ ])
1594
+ ], 2)) : S("", !0),
1595
+ h("div", {
1596
+ class: "scrollable-content scrollable-content-slider",
1597
+ ref: "content",
1598
+ onScroll: r[1] || (r[1] = (...n) => i.getScroll && i.getScroll(...n))
1599
+ }, [
1600
+ h("div", bo, [
1601
+ Z(e.$slots, "default", {}, void 0, !0)
1602
+ ])
1603
+ ], 544),
1604
+ t.arrows ? (f(), p("div", {
1605
+ key: 1,
1606
+ id: "arrows-container-right",
1607
+ class: E(["arrows-container", i.hideShowRightArrow]),
1608
+ onClick: r[2] || (r[2] = (...n) => i.scrollRight && i.scrollRight(...n))
1609
+ }, [
1610
+ h("div", So, [
1611
+ (f(), p("svg", {
1612
+ width: t.arrowsWidth,
1613
+ height: t.arrowsHeight,
1614
+ viewBox: i.getViewBox,
1615
+ fill: "none",
1616
+ xmlns: "http://www.w3.org/2000/svg"
1617
+ }, [
1618
+ h("path", {
1619
+ d: "M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",
1620
+ stroke: t.arrowsColor
1621
+ }, null, 8, Co)
1622
+ ], 8, vo))
1623
+ ])
1624
+ ], 2)) : S("", !0)
1625
+ ], 512);
1626
+ }
1627
+ const we = /* @__PURE__ */ po(je, [["render", _o], ["__scopeId", "data-v-7d0811ac"]]), ko = (e, r) => {
1628
+ const t = e.__vccOpts || e;
1629
+ for (const [o, s] of r)
1630
+ t[o] = s;
1631
+ return t;
1632
+ }, To = {
1633
+ key: 0,
1634
+ class: "card-container"
1635
+ }, Io = {
1636
+ __name: "GSC-DataCard",
1637
+ props: {
1638
+ data: {
1639
+ type: Object,
1640
+ required: !0
1641
+ },
1642
+ height: {
1643
+ type: String,
1644
+ default: "445px"
1645
+ },
1646
+ width: {
1647
+ type: String,
1648
+ default: "319px"
1649
+ },
1650
+ userId: {
1651
+ type: Number,
1652
+ default: 0
1653
+ }
1654
+ },
1655
+ setup(e) {
1656
+ const r = {
1657
+ CardGeneral: x(() => import("./CardGeneral-70CyP1c9-DzGLKPLW.js")),
1658
+ CardGeneralIndividual: x(() => import("./CardGeneralIndividual-CFAG9SL3-Cm2WMulY.js")),
1659
+ CardGeneralTeams: x(() => import("./CardGeneralTeams-C1b59sT7-DKIH3pKd.js")),
1660
+ CardIndividual: x(() => import("./CardIndividual-BVJEvLuq-DNLGRnJn.js")),
1661
+ CardIndividualDistance: x(() => import("./CardIndividualDistance-CcU2Vbnx-DlR0hivB.js")),
1662
+ CardIndividualAreas: x(() => import("./CardIndividualAreas-T43vItFr-GlwzP3pQ.js")),
1663
+ CardIndividualGoalParticipation: x(() => import("./CardIndividualGoalParticipation-yPoWp2QU-DpNpWdqc.js")),
1664
+ CardIndividualGoals: x(() => import("./CardIndividualGoals-C69mSV2s-CBAHkKBm.js")),
1665
+ CardIndividualShotsOnGoal: x(() => import("./CardIndividualShotsOnGoal-BxwPL-4b-8RHeYE0k.js")),
1666
+ CardIndividualFouls: x(() => import("./CardIndividualFouls-BYcKqeFK-BGZfrm52.js")),
1667
+ CardIndividualCenters: x(() => import("./CardIndividualCenters-fZNKbbXo-CvIgTyZn.js")),
1668
+ CardIndividualSaves: x(() => import("./CardIndividualSaves-DEvTL6Uw-_tm_oIfl.js")),
1669
+ CardIndividual1vs1: x(() => import("./CardIndividual1vs1-BEIdhWs1-CmX-Dpme.js")),
1670
+ CardIndividualStatistics: x(() => import("./CardIndividualStatistics-DQRVwOUb-Cq_TJCc_.js")),
1671
+ CardIndividualPerformance: x(() => import("./CardIndividualPerformance-JjUTmJQy-8qdezjEh.js")),
1672
+ CardIndividualGold: x(() => import("./CardIndividualGold-BxCrvpoF-BEc0OJ86.js")),
1673
+ CardPromTournament: x(() => import("./CardPromTournament-HcWvduRV-BAoQc2Cb.js")),
1674
+ CardIndividualNoGoalReceived: x(() => import("./CardIndividualNoGoalReceived-CqVz1A2y-Bkyl-TxG.js")),
1675
+ CardTheMostProductive: x(() => import("./CardTheMostProductive-CNNFBK3--DOPfJcMr.js")),
1676
+ CardSuccessfulPasses: x(() => import("./CardSuccessfulPasses-D9ZpWlLr-u3HOsral.js"))
1677
+ }, t = [
1678
+ {
1679
+ componentName: "CardGeneral",
1680
+ ids: [
1681
+ "1-g",
1682
+ "2-g",
1683
+ "3-g",
1684
+ "5-g",
1685
+ "8-g",
1686
+ "10-g",
1687
+ "17-g",
1688
+ "18-g",
1689
+ "21-g",
1690
+ "22-g",
1691
+ "23-g",
1692
+ "24-g",
1693
+ "25-g",
1694
+ "26-g"
1695
+ ]
1696
+ },
1697
+ {
1698
+ componentName: "CardGeneralIndividual",
1699
+ ids: [
1700
+ "4-g",
1701
+ "6-g",
1702
+ "7-g",
1703
+ "11-g",
1704
+ "15-g",
1705
+ "16-g",
1706
+ "19-g",
1707
+ "20-g"
1708
+ ]
1709
+ },
1710
+ {
1711
+ componentName: "CardGeneralTeams",
1712
+ ids: [
1713
+ "9-g",
1714
+ "12-g",
1715
+ "13-g",
1716
+ "14-g"
1717
+ ]
1718
+ },
1719
+ {
1720
+ componentName: "CardIndividual",
1721
+ ids: [
1722
+ "4-i",
1723
+ "5-i",
1724
+ "6-i",
1725
+ "1-e",
1726
+ "2-e",
1727
+ "3-e"
1728
+ ]
1729
+ },
1730
+ {
1731
+ componentName: "CardIndividualDistance",
1732
+ ids: [
1733
+ "77-i",
1734
+ "78-i",
1735
+ "36-e"
1736
+ ]
1737
+ },
1738
+ {
1739
+ componentName: "CardIndividualAreas",
1740
+ ids: [
1741
+ "71-i",
1742
+ "72-i",
1743
+ "73-i",
1744
+ "74-i",
1745
+ "75-i",
1746
+ "76-i",
1747
+ "34-e",
1748
+ "35-e"
1749
+ ]
1750
+ },
1751
+ {
1752
+ componentName: "CardIndividualGoalParticipation",
1753
+ ids: [
1754
+ "22-i",
1755
+ "23-i",
1756
+ "8-e"
1757
+ ]
1758
+ },
1759
+ {
1760
+ componentName: "CardIndividualGoals",
1761
+ ids: [
1762
+ "24-i",
1763
+ "25-i",
1764
+ "26-i",
1765
+ "27-i",
1766
+ "9-e"
1767
+ ]
1768
+ },
1769
+ {
1770
+ componentName: "CardIndividualShotsOnGoal",
1771
+ ids: [
1772
+ "28-i",
1773
+ "29-i",
1774
+ "30-i",
1775
+ "31-i",
1776
+ "32-i",
1777
+ "33-i",
1778
+ "34-i",
1779
+ "10-e",
1780
+ "11-e",
1781
+ "12-e"
1782
+ ]
1783
+ },
1784
+ {
1785
+ componentName: "CardIndividualFouls",
1786
+ ids: [
1787
+ "48-i",
1788
+ "49-i",
1789
+ "50-i",
1790
+ "51-i",
1791
+ "52-i",
1792
+ "53-i",
1793
+ "54-i",
1794
+ "55-i",
1795
+ "56-i",
1796
+ "20-e",
1797
+ "21-e",
1798
+ "22-e"
1799
+ ]
1800
+ },
1801
+ {
1802
+ componentName: "CardIndividualCenters",
1803
+ ids: [
1804
+ "35-i",
1805
+ "36-i",
1806
+ "37-i",
1807
+ "38-i",
1808
+ "39-i",
1809
+ "40-i",
1810
+ "41-i",
1811
+ "42-i",
1812
+ "43-i",
1813
+ "44-i",
1814
+ "45-i",
1815
+ "46-i",
1816
+ "47-i",
1817
+ "13-e",
1818
+ "14-e",
1819
+ "15-e",
1820
+ "16-e",
1821
+ "17-e",
1822
+ "18-e",
1823
+ "19-e"
1824
+ ]
1825
+ },
1826
+ {
1827
+ componentName: "CardIndividualSaves",
1828
+ ids: [
1829
+ "57-i",
1830
+ "58-i",
1831
+ "59-i",
1832
+ "60-i",
1833
+ "61-i",
1834
+ "62-i",
1835
+ "23-e",
1836
+ "24-e",
1837
+ "25-e",
1838
+ "26-e",
1839
+ "27-e"
1840
+ ]
1841
+ },
1842
+ {
1843
+ componentName: "CardIndividual1vs1",
1844
+ ids: [
1845
+ "19-i",
1846
+ "20-i",
1847
+ "21-i",
1848
+ "68-i",
1849
+ "69-i",
1850
+ "70-i",
1851
+ "7-e",
1852
+ "33-e"
1853
+ ]
1854
+ },
1855
+ {
1856
+ componentName: "CardIndividualStatistics",
1857
+ ids: [
1858
+ "81-i",
1859
+ "84-i",
1860
+ "87-i",
1861
+ "90-i",
1862
+ "93-i",
1863
+ "96-i",
1864
+ "99-i",
1865
+ "102-i",
1866
+ "105-i",
1867
+ "108-i",
1868
+ "111-i",
1869
+ "114-i",
1870
+ "117-i",
1871
+ "120-i",
1872
+ "123-i",
1873
+ "126-i",
1874
+ "129-i",
1875
+ "132-i",
1876
+ "135-i",
1877
+ "138-i",
1878
+ "141-i",
1879
+ "144-i",
1880
+ "147-i",
1881
+ "150-i",
1882
+ "153-i",
1883
+ "156-i",
1884
+ "159-i",
1885
+ "162-i",
1886
+ "165-i",
1887
+ "168-i",
1888
+ "171-i",
1889
+ "174-i",
1890
+ "176-i"
1891
+ ]
1892
+ },
1893
+ {
1894
+ componentName: "CardIndividualPerformance",
1895
+ ids: [
1896
+ "82-i",
1897
+ "88-i",
1898
+ "94-i",
1899
+ "100-i",
1900
+ "106-i",
1901
+ "112-i",
1902
+ "118-i",
1903
+ "124-i",
1904
+ "130-i",
1905
+ "136-i",
1906
+ "142-i",
1907
+ "148-i",
1908
+ "154-i",
1909
+ "160-i",
1910
+ "166-i",
1911
+ "172-i",
1912
+ "177-i",
1913
+ "182-i"
1914
+ ]
1915
+ },
1916
+ {
1917
+ componentName: "CardIndividualGold",
1918
+ ids: [
1919
+ "83-i",
1920
+ "85-i",
1921
+ "89-i",
1922
+ "91-i",
1923
+ "95-i",
1924
+ "97-i",
1925
+ "101-i",
1926
+ "103-i",
1927
+ "107-i",
1928
+ "109-i",
1929
+ "113-i",
1930
+ "115-i",
1931
+ "119-i",
1932
+ "121-i",
1933
+ "125-i",
1934
+ "127-i",
1935
+ "131-i",
1936
+ "133-i",
1937
+ "137-i",
1938
+ "139-i",
1939
+ "143-i",
1940
+ "145-i",
1941
+ "149-i",
1942
+ "151-i",
1943
+ "155-i",
1944
+ "157-i",
1945
+ "161-i",
1946
+ "163-i",
1947
+ "167-i",
1948
+ "169-i",
1949
+ "173-i",
1950
+ "178-i"
1951
+ ]
1952
+ },
1953
+ {
1954
+ componentName: "CardPromTournament",
1955
+ ids: [
1956
+ "86-i",
1957
+ "92-i",
1958
+ "98-i",
1959
+ "104-i",
1960
+ "110-i",
1961
+ "116-i",
1962
+ "122-i",
1963
+ "128-i",
1964
+ "134-i",
1965
+ "140-i",
1966
+ "146-i",
1967
+ "152-i",
1968
+ "158-i",
1969
+ "164-i",
1970
+ "170-i",
1971
+ "175-i"
1972
+ ]
1973
+ },
1974
+ {
1975
+ componentName: "CardIndividualNoGoalReceived",
1976
+ ids: [
1977
+ "63-i",
1978
+ "64-i",
1979
+ "65-i",
1980
+ "66-i",
1981
+ "67-i"
1982
+ ]
1983
+ },
1984
+ {
1985
+ componentName: "CardTheMostProductive",
1986
+ ids: [
1987
+ "79-i",
1988
+ "80-i",
1989
+ "37-e"
1990
+ ]
1991
+ },
1992
+ {
1993
+ componentName: "CardSuccessfulPasses",
1994
+ ids: [
1995
+ "10-i",
1996
+ "11-i",
1997
+ "12-i",
1998
+ "13-i",
1999
+ "14-i",
2000
+ "15-i",
2001
+ "16-i",
2002
+ "17-i",
2003
+ "18-i",
2004
+ "4-e",
2005
+ "5-e",
2006
+ "6-e"
2007
+ ]
2008
+ }
2009
+ ].reduce((l, { componentName: a, ids: c }) => (c.forEach((u) => {
2010
+ l.set(u, a);
2011
+ }), l), /* @__PURE__ */ new Map()), o = e, s = W(() => t.get(o.data.id)), i = W(() => r[s.value]), n = W(() => {
2012
+ const l = o.data.id.includes("-e"), a = o.data.id.includes("-g");
2013
+ return l || a ? o.data.is_finished ? 5 : 6 : o.data.player_id === o.userId ? o.data.is_finished ? 1 : 2 : o.data.is_finished ? 3 : 4;
2014
+ });
2015
+ return (l, a) => i.value ? (f(), p("div", To, [
2016
+ (f(), q(Vt(i.value), {
2017
+ data: e.data,
2018
+ height: e.height,
2019
+ width: e.width,
2020
+ "description-type": n.value
2021
+ }, null, 8, ["data", "height", "width", "description-type"]))
2022
+ ])) : S("", !0);
2023
+ }
2024
+ }, Ue = /* @__PURE__ */ ko(Io, [["__scopeId", "data-v-d23e4da2"]]);
2025
+ function Ct(e, r) {
2026
+ return function() {
2027
+ return e.apply(r, arguments);
2028
+ };
2029
+ }
2030
+ const { toString: xo } = Object.prototype, { getPrototypeOf: qe } = Object, be = /* @__PURE__ */ ((e) => (r) => {
2031
+ const t = xo.call(r);
2032
+ return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
2033
+ })(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (r) => be(r) === e), Se = (e) => (r) => typeof r === e, { isArray: Y } = Array, oe = Se("undefined");
2034
+ function Oo(e) {
2035
+ return e !== null && !oe(e) && e.constructor !== null && !oe(e.constructor) && L(e.constructor.isBuffer) && e.constructor.isBuffer(e);
2036
+ }
2037
+ const _t = j("ArrayBuffer");
2038
+ function Po(e) {
2039
+ let r;
2040
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && _t(e.buffer), r;
2041
+ }
2042
+ const Ao = Se("string"), L = Se("function"), kt = Se("number"), ve = (e) => e !== null && typeof e == "object", Ro = (e) => e === !0 || e === !1, ce = (e) => {
2043
+ if (be(e) !== "object")
2044
+ return !1;
2045
+ const r = qe(e);
2046
+ return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
2047
+ }, Eo = j("Date"), Bo = j("File"), Do = j("Blob"), No = j("FileList"), $o = (e) => ve(e) && L(e.pipe), Lo = (e) => {
2048
+ let r;
2049
+ return e && (typeof FormData == "function" && e instanceof FormData || L(e.append) && ((r = be(e)) === "formdata" || // detect form-data instance
2050
+ r === "object" && L(e.toString) && e.toString() === "[object FormData]"));
2051
+ }, zo = j("URLSearchParams"), [Fo, Wo, Mo, jo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), Uo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2052
+ function ae(e, r, { allOwnKeys: t = !1 } = {}) {
2053
+ if (e === null || typeof e > "u")
2054
+ return;
2055
+ let o, s;
2056
+ if (typeof e != "object" && (e = [e]), Y(e))
2057
+ for (o = 0, s = e.length; o < s; o++)
2058
+ r.call(null, e[o], o, e);
2059
+ else {
2060
+ const i = t ? Object.getOwnPropertyNames(e) : Object.keys(e), n = i.length;
2061
+ let l;
2062
+ for (o = 0; o < n; o++)
2063
+ l = i[o], r.call(null, e[l], l, e);
2064
+ }
2065
+ }
2066
+ function Tt(e, r) {
2067
+ r = r.toLowerCase();
2068
+ const t = Object.keys(e);
2069
+ let o = t.length, s;
2070
+ for (; o-- > 0; )
2071
+ if (s = t[o], r === s.toLowerCase())
2072
+ return s;
2073
+ return null;
2074
+ }
2075
+ const V = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, It = (e) => !oe(e) && e !== V;
2076
+ function Ee() {
2077
+ const { caseless: e } = It(this) && this || {}, r = {}, t = (o, s) => {
2078
+ const i = e && Tt(r, s) || s;
2079
+ ce(r[i]) && ce(o) ? r[i] = Ee(r[i], o) : ce(o) ? r[i] = Ee({}, o) : Y(o) ? r[i] = o.slice() : r[i] = o;
2080
+ };
2081
+ for (let o = 0, s = arguments.length; o < s; o++)
2082
+ arguments[o] && ae(arguments[o], t);
2083
+ return r;
2084
+ }
2085
+ const qo = (e, r, t, { allOwnKeys: o } = {}) => (ae(r, (s, i) => {
2086
+ t && L(s) ? e[i] = Ct(s, t) : e[i] = s;
2087
+ }, { allOwnKeys: o }), e), Ho = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Jo = (e, r, t, o) => {
2088
+ e.prototype = Object.create(r.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2089
+ value: r.prototype
2090
+ }), t && Object.assign(e.prototype, t);
2091
+ }, Go = (e, r, t, o) => {
2092
+ let s, i, n;
2093
+ const l = {};
2094
+ if (r = r || {}, e == null) return r;
2095
+ do {
2096
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
2097
+ n = s[i], (!o || o(n, e, r)) && !l[n] && (r[n] = e[n], l[n] = !0);
2098
+ e = t !== !1 && qe(e);
2099
+ } while (e && (!t || t(e, r)) && e !== Object.prototype);
2100
+ return r;
2101
+ }, Vo = (e, r, t) => {
2102
+ e = String(e), (t === void 0 || t > e.length) && (t = e.length), t -= r.length;
2103
+ const o = e.indexOf(r, t);
2104
+ return o !== -1 && o === t;
2105
+ }, Xo = (e) => {
2106
+ if (!e) return null;
2107
+ if (Y(e)) return e;
2108
+ let r = e.length;
2109
+ if (!kt(r)) return null;
2110
+ const t = new Array(r);
2111
+ for (; r-- > 0; )
2112
+ t[r] = e[r];
2113
+ return t;
2114
+ }, Zo = /* @__PURE__ */ ((e) => (r) => e && r instanceof e)(typeof Uint8Array < "u" && qe(Uint8Array)), Ko = (e, r) => {
2115
+ const o = (e && e[Symbol.iterator]).call(e);
2116
+ let s;
2117
+ for (; (s = o.next()) && !s.done; ) {
2118
+ const i = s.value;
2119
+ r.call(e, i[0], i[1]);
2120
+ }
2121
+ }, Qo = (e, r) => {
2122
+ let t;
2123
+ const o = [];
2124
+ for (; (t = e.exec(r)) !== null; )
2125
+ o.push(t);
2126
+ return o;
2127
+ }, Yo = j("HTMLFormElement"), es = (e) => e.toLowerCase().replace(
2128
+ /[-_\s]([a-z\d])(\w*)/g,
2129
+ function(t, o, s) {
2130
+ return o.toUpperCase() + s;
2131
+ }
2132
+ ), nt = (({ hasOwnProperty: e }) => (r, t) => e.call(r, t))(Object.prototype), ts = j("RegExp"), xt = (e, r) => {
2133
+ const t = Object.getOwnPropertyDescriptors(e), o = {};
2134
+ ae(t, (s, i) => {
2135
+ let n;
2136
+ (n = r(s, i, e)) !== !1 && (o[i] = n || s);
2137
+ }), Object.defineProperties(e, o);
2138
+ }, rs = (e) => {
2139
+ xt(e, (r, t) => {
2140
+ if (L(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
2141
+ return !1;
2142
+ const o = e[t];
2143
+ if (L(o)) {
2144
+ if (r.enumerable = !1, "writable" in r) {
2145
+ r.writable = !1;
2146
+ return;
2147
+ }
2148
+ r.set || (r.set = () => {
2149
+ throw Error("Can not rewrite read-only method '" + t + "'");
2150
+ });
2151
+ }
2152
+ });
2153
+ }, os = (e, r) => {
2154
+ const t = {}, o = (s) => {
2155
+ s.forEach((i) => {
2156
+ t[i] = !0;
2157
+ });
2158
+ };
2159
+ return Y(e) ? o(e) : o(String(e).split(r)), t;
2160
+ }, ss = () => {
2161
+ }, is = (e, r) => e != null && Number.isFinite(e = +e) ? e : r, Oe = "abcdefghijklmnopqrstuvwxyz", at = "0123456789", Ot = {
2162
+ DIGIT: at,
2163
+ ALPHA: Oe,
2164
+ ALPHA_DIGIT: Oe + Oe.toUpperCase() + at
2165
+ }, ns = (e = 16, r = Ot.ALPHA_DIGIT) => {
2166
+ let t = "";
2167
+ const { length: o } = r;
2168
+ for (; e--; )
2169
+ t += r[Math.random() * o | 0];
2170
+ return t;
2171
+ };
2172
+ function as(e) {
2173
+ return !!(e && L(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
2174
+ }
2175
+ const ls = (e) => {
2176
+ const r = new Array(10), t = (o, s) => {
2177
+ if (ve(o)) {
2178
+ if (r.indexOf(o) >= 0)
2179
+ return;
2180
+ if (!("toJSON" in o)) {
2181
+ r[s] = o;
2182
+ const i = Y(o) ? [] : {};
2183
+ return ae(o, (n, l) => {
2184
+ const a = t(n, s + 1);
2185
+ !oe(a) && (i[l] = a);
2186
+ }), r[s] = void 0, i;
2187
+ }
2188
+ }
2189
+ return o;
2190
+ };
2191
+ return t(e, 0);
2192
+ }, ds = j("AsyncFunction"), cs = (e) => e && (ve(e) || L(e)) && L(e.then) && L(e.catch), Pt = ((e, r) => e ? setImmediate : r ? ((t, o) => (V.addEventListener("message", ({ source: s, data: i }) => {
2193
+ s === V && i === t && o.length && o.shift()();
2194
+ }, !1), (s) => {
2195
+ o.push(s), V.postMessage(t, "*");
2196
+ }))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
2197
+ typeof setImmediate == "function",
2198
+ L(V.postMessage)
2199
+ ), us = typeof queueMicrotask < "u" ? queueMicrotask.bind(V) : typeof process < "u" && process.nextTick || Pt, d = {
2200
+ isArray: Y,
2201
+ isArrayBuffer: _t,
2202
+ isBuffer: Oo,
2203
+ isFormData: Lo,
2204
+ isArrayBufferView: Po,
2205
+ isString: Ao,
2206
+ isNumber: kt,
2207
+ isBoolean: Ro,
2208
+ isObject: ve,
2209
+ isPlainObject: ce,
2210
+ isReadableStream: Fo,
2211
+ isRequest: Wo,
2212
+ isResponse: Mo,
2213
+ isHeaders: jo,
2214
+ isUndefined: oe,
2215
+ isDate: Eo,
2216
+ isFile: Bo,
2217
+ isBlob: Do,
2218
+ isRegExp: ts,
2219
+ isFunction: L,
2220
+ isStream: $o,
2221
+ isURLSearchParams: zo,
2222
+ isTypedArray: Zo,
2223
+ isFileList: No,
2224
+ forEach: ae,
2225
+ merge: Ee,
2226
+ extend: qo,
2227
+ trim: Uo,
2228
+ stripBOM: Ho,
2229
+ inherits: Jo,
2230
+ toFlatObject: Go,
2231
+ kindOf: be,
2232
+ kindOfTest: j,
2233
+ endsWith: Vo,
2234
+ toArray: Xo,
2235
+ forEachEntry: Ko,
2236
+ matchAll: Qo,
2237
+ isHTMLForm: Yo,
2238
+ hasOwnProperty: nt,
2239
+ hasOwnProp: nt,
2240
+ // an alias to avoid ESLint no-prototype-builtins detection
2241
+ reduceDescriptors: xt,
2242
+ freezeMethods: rs,
2243
+ toObjectSet: os,
2244
+ toCamelCase: es,
2245
+ noop: ss,
2246
+ toFiniteNumber: is,
2247
+ findKey: Tt,
2248
+ global: V,
2249
+ isContextDefined: It,
2250
+ ALPHABET: Ot,
2251
+ generateString: ns,
2252
+ isSpecCompliantForm: as,
2253
+ toJSONObject: ls,
2254
+ isAsyncFn: ds,
2255
+ isThenable: cs,
2256
+ setImmediate: Pt,
2257
+ asap: us
2258
+ };
2259
+ function C(e, r, t, o, s) {
2260
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", r && (this.code = r), t && (this.config = t), o && (this.request = o), s && (this.response = s, this.status = s.status ? s.status : null);
2261
+ }
2262
+ d.inherits(C, Error, {
2263
+ toJSON: function() {
2264
+ return {
2265
+ // Standard
2266
+ message: this.message,
2267
+ name: this.name,
2268
+ // Microsoft
2269
+ description: this.description,
2270
+ number: this.number,
2271
+ // Mozilla
2272
+ fileName: this.fileName,
2273
+ lineNumber: this.lineNumber,
2274
+ columnNumber: this.columnNumber,
2275
+ stack: this.stack,
2276
+ // Axios
2277
+ config: d.toJSONObject(this.config),
2278
+ code: this.code,
2279
+ status: this.status
2280
+ };
2281
+ }
2282
+ });
2283
+ const At = C.prototype, Rt = {};
2284
+ [
2285
+ "ERR_BAD_OPTION_VALUE",
2286
+ "ERR_BAD_OPTION",
2287
+ "ECONNABORTED",
2288
+ "ETIMEDOUT",
2289
+ "ERR_NETWORK",
2290
+ "ERR_FR_TOO_MANY_REDIRECTS",
2291
+ "ERR_DEPRECATED",
2292
+ "ERR_BAD_RESPONSE",
2293
+ "ERR_BAD_REQUEST",
2294
+ "ERR_CANCELED",
2295
+ "ERR_NOT_SUPPORT",
2296
+ "ERR_INVALID_URL"
2297
+ // eslint-disable-next-line func-names
2298
+ ].forEach((e) => {
2299
+ Rt[e] = { value: e };
2300
+ });
2301
+ Object.defineProperties(C, Rt);
2302
+ Object.defineProperty(At, "isAxiosError", { value: !0 });
2303
+ C.from = (e, r, t, o, s, i) => {
2304
+ const n = Object.create(At);
2305
+ return d.toFlatObject(e, n, function(a) {
2306
+ return a !== Error.prototype;
2307
+ }, (l) => l !== "isAxiosError"), C.call(n, e.message, r, t, o, s), n.cause = e, n.name = e.name, i && Object.assign(n, i), n;
2308
+ };
2309
+ const hs = null;
2310
+ function Be(e) {
2311
+ return d.isPlainObject(e) || d.isArray(e);
2312
+ }
2313
+ function Et(e) {
2314
+ return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
2315
+ }
2316
+ function lt(e, r, t) {
2317
+ return e ? e.concat(r).map(function(s, i) {
2318
+ return s = Et(s), !t && i ? "[" + s + "]" : s;
2319
+ }).join(t ? "." : "") : r;
2320
+ }
2321
+ function fs(e) {
2322
+ return d.isArray(e) && !e.some(Be);
2323
+ }
2324
+ const ps = d.toFlatObject(d, {}, null, function(r) {
2325
+ return /^is[A-Z]/.test(r);
2326
+ });
2327
+ function Ce(e, r, t) {
2328
+ if (!d.isObject(e))
2329
+ throw new TypeError("target must be an object");
2330
+ r = r || new FormData(), t = d.toFlatObject(t, {
2331
+ metaTokens: !0,
2332
+ dots: !1,
2333
+ indexes: !1
2334
+ }, !1, function(w, b) {
2335
+ return !d.isUndefined(b[w]);
2336
+ });
2337
+ const o = t.metaTokens, s = t.visitor || u, i = t.dots, n = t.indexes, a = (t.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(r);
2338
+ if (!d.isFunction(s))
2339
+ throw new TypeError("visitor must be a function");
2340
+ function c(g) {
2341
+ if (g === null) return "";
2342
+ if (d.isDate(g))
2343
+ return g.toISOString();
2344
+ if (!a && d.isBlob(g))
2345
+ throw new C("Blob is not supported. Use a Buffer instead.");
2346
+ return d.isArrayBuffer(g) || d.isTypedArray(g) ? a && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
2347
+ }
2348
+ function u(g, w, b) {
2349
+ let T = g;
2350
+ if (g && !b && typeof g == "object") {
2351
+ if (d.endsWith(w, "{}"))
2352
+ w = o ? w : w.slice(0, -2), g = JSON.stringify(g);
2353
+ else if (d.isArray(g) && fs(g) || (d.isFileList(g) || d.endsWith(w, "[]")) && (T = d.toArray(g)))
2354
+ return w = Et(w), T.forEach(function(R, H) {
2355
+ !(d.isUndefined(R) || R === null) && r.append(
2356
+ // eslint-disable-next-line no-nested-ternary
2357
+ n === !0 ? lt([w], H, i) : n === null ? w : w + "[]",
2358
+ c(R)
2359
+ );
2360
+ }), !1;
2361
+ }
2362
+ return Be(g) ? !0 : (r.append(lt(b, w, i), c(g)), !1);
2363
+ }
2364
+ const m = [], v = Object.assign(ps, {
2365
+ defaultVisitor: u,
2366
+ convertValue: c,
2367
+ isVisitable: Be
2368
+ });
2369
+ function y(g, w) {
2370
+ if (!d.isUndefined(g)) {
2371
+ if (m.indexOf(g) !== -1)
2372
+ throw Error("Circular reference detected in " + w.join("."));
2373
+ m.push(g), d.forEach(g, function(T, O) {
2374
+ (!(d.isUndefined(T) || T === null) && s.call(
2375
+ r,
2376
+ T,
2377
+ d.isString(O) ? O.trim() : O,
2378
+ w,
2379
+ v
2380
+ )) === !0 && y(T, w ? w.concat(O) : [O]);
2381
+ }), m.pop();
2382
+ }
2383
+ }
2384
+ if (!d.isObject(e))
2385
+ throw new TypeError("data must be an object");
2386
+ return y(e), r;
2387
+ }
2388
+ function dt(e) {
2389
+ const r = {
2390
+ "!": "%21",
2391
+ "'": "%27",
2392
+ "(": "%28",
2393
+ ")": "%29",
2394
+ "~": "%7E",
2395
+ "%20": "+",
2396
+ "%00": "\0"
2397
+ };
2398
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
2399
+ return r[o];
2400
+ });
2401
+ }
2402
+ function He(e, r) {
2403
+ this._pairs = [], e && Ce(e, this, r);
2404
+ }
2405
+ const Bt = He.prototype;
2406
+ Bt.append = function(r, t) {
2407
+ this._pairs.push([r, t]);
2408
+ };
2409
+ Bt.toString = function(r) {
2410
+ const t = r ? function(o) {
2411
+ return r.call(this, o, dt);
2412
+ } : dt;
2413
+ return this._pairs.map(function(s) {
2414
+ return t(s[0]) + "=" + t(s[1]);
2415
+ }, "").join("&");
2416
+ };
2417
+ function ms(e) {
2418
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2419
+ }
2420
+ function Dt(e, r, t) {
2421
+ if (!r)
2422
+ return e;
2423
+ const o = t && t.encode || ms;
2424
+ d.isFunction(t) && (t = {
2425
+ serialize: t
2426
+ });
2427
+ const s = t && t.serialize;
2428
+ let i;
2429
+ if (s ? i = s(r, t) : i = d.isURLSearchParams(r) ? r.toString() : new He(r, t).toString(o), i) {
2430
+ const n = e.indexOf("#");
2431
+ n !== -1 && (e = e.slice(0, n)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
2432
+ }
2433
+ return e;
2434
+ }
2435
+ class ct {
2436
+ constructor() {
2437
+ this.handlers = [];
2438
+ }
2439
+ /**
2440
+ * Add a new interceptor to the stack
2441
+ *
2442
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
2443
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
2444
+ *
2445
+ * @return {Number} An ID used to remove interceptor later
2446
+ */
2447
+ use(r, t, o) {
2448
+ return this.handlers.push({
2449
+ fulfilled: r,
2450
+ rejected: t,
2451
+ synchronous: o ? o.synchronous : !1,
2452
+ runWhen: o ? o.runWhen : null
2453
+ }), this.handlers.length - 1;
2454
+ }
2455
+ /**
2456
+ * Remove an interceptor from the stack
2457
+ *
2458
+ * @param {Number} id The ID that was returned by `use`
2459
+ *
2460
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
2461
+ */
2462
+ eject(r) {
2463
+ this.handlers[r] && (this.handlers[r] = null);
2464
+ }
2465
+ /**
2466
+ * Clear all interceptors from the stack
2467
+ *
2468
+ * @returns {void}
2469
+ */
2470
+ clear() {
2471
+ this.handlers && (this.handlers = []);
2472
+ }
2473
+ /**
2474
+ * Iterate over all the registered interceptors
2475
+ *
2476
+ * This method is particularly useful for skipping over any
2477
+ * interceptors that may have become `null` calling `eject`.
2478
+ *
2479
+ * @param {Function} fn The function to call for each interceptor
2480
+ *
2481
+ * @returns {void}
2482
+ */
2483
+ forEach(r) {
2484
+ d.forEach(this.handlers, function(o) {
2485
+ o !== null && r(o);
2486
+ });
2487
+ }
2488
+ }
2489
+ const Nt = {
2490
+ silentJSONParsing: !0,
2491
+ forcedJSONParsing: !0,
2492
+ clarifyTimeoutError: !1
2493
+ }, gs = typeof URLSearchParams < "u" ? URLSearchParams : He, ys = typeof FormData < "u" ? FormData : null, ws = typeof Blob < "u" ? Blob : null, bs = {
2494
+ isBrowser: !0,
2495
+ classes: {
2496
+ URLSearchParams: gs,
2497
+ FormData: ys,
2498
+ Blob: ws
2499
+ },
2500
+ protocols: ["http", "https", "file", "blob", "url", "data"]
2501
+ }, Je = typeof window < "u" && typeof document < "u", De = typeof navigator == "object" && navigator || void 0, Ss = Je && (!De || ["ReactNative", "NativeScript", "NS"].indexOf(De.product) < 0), vs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2502
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs = Je && window.location.href || "http://localhost", _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2503
+ __proto__: null,
2504
+ hasBrowserEnv: Je,
2505
+ hasStandardBrowserEnv: Ss,
2506
+ hasStandardBrowserWebWorkerEnv: vs,
2507
+ navigator: De,
2508
+ origin: Cs
2509
+ }, Symbol.toStringTag, { value: "Module" })), B = {
2510
+ ..._s,
2511
+ ...bs
2512
+ };
2513
+ function ks(e, r) {
2514
+ return Ce(e, new B.classes.URLSearchParams(), Object.assign({
2515
+ visitor: function(t, o, s, i) {
2516
+ return B.isNode && d.isBuffer(t) ? (this.append(o, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2517
+ }
2518
+ }, r));
2519
+ }
2520
+ function Ts(e) {
2521
+ return d.matchAll(/\w+|\[(\w*)]/g, e).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
2522
+ }
2523
+ function Is(e) {
2524
+ const r = {}, t = Object.keys(e);
2525
+ let o;
2526
+ const s = t.length;
2527
+ let i;
2528
+ for (o = 0; o < s; o++)
2529
+ i = t[o], r[i] = e[i];
2530
+ return r;
2531
+ }
2532
+ function $t(e) {
2533
+ function r(t, o, s, i) {
2534
+ let n = t[i++];
2535
+ if (n === "__proto__") return !0;
2536
+ const l = Number.isFinite(+n), a = i >= t.length;
2537
+ return n = !n && d.isArray(s) ? s.length : n, a ? (d.hasOwnProp(s, n) ? s[n] = [s[n], o] : s[n] = o, !l) : ((!s[n] || !d.isObject(s[n])) && (s[n] = []), r(t, o, s[n], i) && d.isArray(s[n]) && (s[n] = Is(s[n])), !l);
2538
+ }
2539
+ if (d.isFormData(e) && d.isFunction(e.entries)) {
2540
+ const t = {};
2541
+ return d.forEachEntry(e, (o, s) => {
2542
+ r(Ts(o), s, t, 0);
2543
+ }), t;
2544
+ }
2545
+ return null;
2546
+ }
2547
+ function xs(e, r, t) {
2548
+ if (d.isString(e))
2549
+ try {
2550
+ return (r || JSON.parse)(e), d.trim(e);
2551
+ } catch (o) {
2552
+ if (o.name !== "SyntaxError")
2553
+ throw o;
2554
+ }
2555
+ return (0, JSON.stringify)(e);
2556
+ }
2557
+ const le = {
2558
+ transitional: Nt,
2559
+ adapter: ["xhr", "http", "fetch"],
2560
+ transformRequest: [function(r, t) {
2561
+ const o = t.getContentType() || "", s = o.indexOf("application/json") > -1, i = d.isObject(r);
2562
+ if (i && d.isHTMLForm(r) && (r = new FormData(r)), d.isFormData(r))
2563
+ return s ? JSON.stringify($t(r)) : r;
2564
+ if (d.isArrayBuffer(r) || d.isBuffer(r) || d.isStream(r) || d.isFile(r) || d.isBlob(r) || d.isReadableStream(r))
2565
+ return r;
2566
+ if (d.isArrayBufferView(r))
2567
+ return r.buffer;
2568
+ if (d.isURLSearchParams(r))
2569
+ return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
2570
+ let l;
2571
+ if (i) {
2572
+ if (o.indexOf("application/x-www-form-urlencoded") > -1)
2573
+ return ks(r, this.formSerializer).toString();
2574
+ if ((l = d.isFileList(r)) || o.indexOf("multipart/form-data") > -1) {
2575
+ const a = this.env && this.env.FormData;
2576
+ return Ce(
2577
+ l ? { "files[]": r } : r,
2578
+ a && new a(),
2579
+ this.formSerializer
2580
+ );
2581
+ }
2582
+ }
2583
+ return i || s ? (t.setContentType("application/json", !1), xs(r)) : r;
2584
+ }],
2585
+ transformResponse: [function(r) {
2586
+ const t = this.transitional || le.transitional, o = t && t.forcedJSONParsing, s = this.responseType === "json";
2587
+ if (d.isResponse(r) || d.isReadableStream(r))
2588
+ return r;
2589
+ if (r && d.isString(r) && (o && !this.responseType || s)) {
2590
+ const n = !(t && t.silentJSONParsing) && s;
2591
+ try {
2592
+ return JSON.parse(r);
2593
+ } catch (l) {
2594
+ if (n)
2595
+ throw l.name === "SyntaxError" ? C.from(l, C.ERR_BAD_RESPONSE, this, null, this.response) : l;
2596
+ }
2597
+ }
2598
+ return r;
2599
+ }],
2600
+ /**
2601
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
2602
+ * timeout is not created.
2603
+ */
2604
+ timeout: 0,
2605
+ xsrfCookieName: "XSRF-TOKEN",
2606
+ xsrfHeaderName: "X-XSRF-TOKEN",
2607
+ maxContentLength: -1,
2608
+ maxBodyLength: -1,
2609
+ env: {
2610
+ FormData: B.classes.FormData,
2611
+ Blob: B.classes.Blob
2612
+ },
2613
+ validateStatus: function(r) {
2614
+ return r >= 200 && r < 300;
2615
+ },
2616
+ headers: {
2617
+ common: {
2618
+ Accept: "application/json, text/plain, */*",
2619
+ "Content-Type": void 0
2620
+ }
2621
+ }
2622
+ };
2623
+ d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2624
+ le.headers[e] = {};
2625
+ });
2626
+ const Os = d.toObjectSet([
2627
+ "age",
2628
+ "authorization",
2629
+ "content-length",
2630
+ "content-type",
2631
+ "etag",
2632
+ "expires",
2633
+ "from",
2634
+ "host",
2635
+ "if-modified-since",
2636
+ "if-unmodified-since",
2637
+ "last-modified",
2638
+ "location",
2639
+ "max-forwards",
2640
+ "proxy-authorization",
2641
+ "referer",
2642
+ "retry-after",
2643
+ "user-agent"
2644
+ ]), Ps = (e) => {
2645
+ const r = {};
2646
+ let t, o, s;
2647
+ return e && e.split(`
2648
+ `).forEach(function(n) {
2649
+ s = n.indexOf(":"), t = n.substring(0, s).trim().toLowerCase(), o = n.substring(s + 1).trim(), !(!t || r[t] && Os[t]) && (t === "set-cookie" ? r[t] ? r[t].push(o) : r[t] = [o] : r[t] = r[t] ? r[t] + ", " + o : o);
2650
+ }), r;
2651
+ }, ut = Symbol("internals");
2652
+ function te(e) {
2653
+ return e && String(e).trim().toLowerCase();
2654
+ }
2655
+ function ue(e) {
2656
+ return e === !1 || e == null ? e : d.isArray(e) ? e.map(ue) : String(e);
2657
+ }
2658
+ function As(e) {
2659
+ const r = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2660
+ let o;
2661
+ for (; o = t.exec(e); )
2662
+ r[o[1]] = o[2];
2663
+ return r;
2664
+ }
2665
+ const Rs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2666
+ function Pe(e, r, t, o, s) {
2667
+ if (d.isFunction(o))
2668
+ return o.call(this, r, t);
2669
+ if (s && (r = t), !!d.isString(r)) {
2670
+ if (d.isString(o))
2671
+ return r.indexOf(o) !== -1;
2672
+ if (d.isRegExp(o))
2673
+ return o.test(r);
2674
+ }
2675
+ }
2676
+ function Es(e) {
2677
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, t, o) => t.toUpperCase() + o);
2678
+ }
2679
+ function Bs(e, r) {
2680
+ const t = d.toCamelCase(" " + r);
2681
+ ["get", "set", "has"].forEach((o) => {
2682
+ Object.defineProperty(e, o + t, {
2683
+ value: function(s, i, n) {
2684
+ return this[o].call(this, r, s, i, n);
2685
+ },
2686
+ configurable: !0
2687
+ });
2688
+ });
2689
+ }
2690
+ class N {
2691
+ constructor(r) {
2692
+ r && this.set(r);
2693
+ }
2694
+ set(r, t, o) {
2695
+ const s = this;
2696
+ function i(l, a, c) {
2697
+ const u = te(a);
2698
+ if (!u)
2699
+ throw new Error("header name must be a non-empty string");
2700
+ const m = d.findKey(s, u);
2701
+ (!m || s[m] === void 0 || c === !0 || c === void 0 && s[m] !== !1) && (s[m || a] = ue(l));
2702
+ }
2703
+ const n = (l, a) => d.forEach(l, (c, u) => i(c, u, a));
2704
+ if (d.isPlainObject(r) || r instanceof this.constructor)
2705
+ n(r, t);
2706
+ else if (d.isString(r) && (r = r.trim()) && !Rs(r))
2707
+ n(Ps(r), t);
2708
+ else if (d.isHeaders(r))
2709
+ for (const [l, a] of r.entries())
2710
+ i(a, l, o);
2711
+ else
2712
+ r != null && i(t, r, o);
2713
+ return this;
2714
+ }
2715
+ get(r, t) {
2716
+ if (r = te(r), r) {
2717
+ const o = d.findKey(this, r);
2718
+ if (o) {
2719
+ const s = this[o];
2720
+ if (!t)
2721
+ return s;
2722
+ if (t === !0)
2723
+ return As(s);
2724
+ if (d.isFunction(t))
2725
+ return t.call(this, s, o);
2726
+ if (d.isRegExp(t))
2727
+ return t.exec(s);
2728
+ throw new TypeError("parser must be boolean|regexp|function");
2729
+ }
2730
+ }
2731
+ }
2732
+ has(r, t) {
2733
+ if (r = te(r), r) {
2734
+ const o = d.findKey(this, r);
2735
+ return !!(o && this[o] !== void 0 && (!t || Pe(this, this[o], o, t)));
2736
+ }
2737
+ return !1;
2738
+ }
2739
+ delete(r, t) {
2740
+ const o = this;
2741
+ let s = !1;
2742
+ function i(n) {
2743
+ if (n = te(n), n) {
2744
+ const l = d.findKey(o, n);
2745
+ l && (!t || Pe(o, o[l], l, t)) && (delete o[l], s = !0);
2746
+ }
2747
+ }
2748
+ return d.isArray(r) ? r.forEach(i) : i(r), s;
2749
+ }
2750
+ clear(r) {
2751
+ const t = Object.keys(this);
2752
+ let o = t.length, s = !1;
2753
+ for (; o--; ) {
2754
+ const i = t[o];
2755
+ (!r || Pe(this, this[i], i, r, !0)) && (delete this[i], s = !0);
2756
+ }
2757
+ return s;
2758
+ }
2759
+ normalize(r) {
2760
+ const t = this, o = {};
2761
+ return d.forEach(this, (s, i) => {
2762
+ const n = d.findKey(o, i);
2763
+ if (n) {
2764
+ t[n] = ue(s), delete t[i];
2765
+ return;
2766
+ }
2767
+ const l = r ? Es(i) : String(i).trim();
2768
+ l !== i && delete t[i], t[l] = ue(s), o[l] = !0;
2769
+ }), this;
2770
+ }
2771
+ concat(...r) {
2772
+ return this.constructor.concat(this, ...r);
2773
+ }
2774
+ toJSON(r) {
2775
+ const t = /* @__PURE__ */ Object.create(null);
2776
+ return d.forEach(this, (o, s) => {
2777
+ o != null && o !== !1 && (t[s] = r && d.isArray(o) ? o.join(", ") : o);
2778
+ }), t;
2779
+ }
2780
+ [Symbol.iterator]() {
2781
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2782
+ }
2783
+ toString() {
2784
+ return Object.entries(this.toJSON()).map(([r, t]) => r + ": " + t).join(`
2785
+ `);
2786
+ }
2787
+ get [Symbol.toStringTag]() {
2788
+ return "AxiosHeaders";
2789
+ }
2790
+ static from(r) {
2791
+ return r instanceof this ? r : new this(r);
2792
+ }
2793
+ static concat(r, ...t) {
2794
+ const o = new this(r);
2795
+ return t.forEach((s) => o.set(s)), o;
2796
+ }
2797
+ static accessor(r) {
2798
+ const o = (this[ut] = this[ut] = {
2799
+ accessors: {}
2800
+ }).accessors, s = this.prototype;
2801
+ function i(n) {
2802
+ const l = te(n);
2803
+ o[l] || (Bs(s, n), o[l] = !0);
2804
+ }
2805
+ return d.isArray(r) ? r.forEach(i) : i(r), this;
2806
+ }
2807
+ }
2808
+ N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2809
+ d.reduceDescriptors(N.prototype, ({ value: e }, r) => {
2810
+ let t = r[0].toUpperCase() + r.slice(1);
2811
+ return {
2812
+ get: () => e,
2813
+ set(o) {
2814
+ this[t] = o;
2815
+ }
2816
+ };
2817
+ });
2818
+ d.freezeMethods(N);
2819
+ function Ae(e, r) {
2820
+ const t = this || le, o = r || t, s = N.from(o.headers);
2821
+ let i = o.data;
2822
+ return d.forEach(e, function(l) {
2823
+ i = l.call(t, i, s.normalize(), r ? r.status : void 0);
2824
+ }), s.normalize(), i;
2825
+ }
2826
+ function Lt(e) {
2827
+ return !!(e && e.__CANCEL__);
2828
+ }
2829
+ function ee(e, r, t) {
2830
+ C.call(this, e ?? "canceled", C.ERR_CANCELED, r, t), this.name = "CanceledError";
2831
+ }
2832
+ d.inherits(ee, C, {
2833
+ __CANCEL__: !0
2834
+ });
2835
+ function zt(e, r, t) {
2836
+ const o = t.config.validateStatus;
2837
+ !t.status || !o || o(t.status) ? e(t) : r(new C(
2838
+ "Request failed with status code " + t.status,
2839
+ [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
2840
+ t.config,
2841
+ t.request,
2842
+ t
2843
+ ));
2844
+ }
2845
+ function Ds(e) {
2846
+ const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2847
+ return r && r[1] || "";
2848
+ }
2849
+ function Ns(e, r) {
2850
+ e = e || 10;
2851
+ const t = new Array(e), o = new Array(e);
2852
+ let s = 0, i = 0, n;
2853
+ return r = r !== void 0 ? r : 1e3, function(a) {
2854
+ const c = Date.now(), u = o[i];
2855
+ n || (n = c), t[s] = a, o[s] = c;
2856
+ let m = i, v = 0;
2857
+ for (; m !== s; )
2858
+ v += t[m++], m = m % e;
2859
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), c - n < r)
2860
+ return;
2861
+ const y = u && c - u;
2862
+ return y ? Math.round(v * 1e3 / y) : void 0;
2863
+ };
2864
+ }
2865
+ function $s(e, r) {
2866
+ let t = 0, o = 1e3 / r, s, i;
2867
+ const n = (c, u = Date.now()) => {
2868
+ t = u, s = null, i && (clearTimeout(i), i = null), e.apply(null, c);
2869
+ };
2870
+ return [(...c) => {
2871
+ const u = Date.now(), m = u - t;
2872
+ m >= o ? n(c, u) : (s = c, i || (i = setTimeout(() => {
2873
+ i = null, n(s);
2874
+ }, o - m)));
2875
+ }, () => s && n(s)];
2876
+ }
2877
+ const pe = (e, r, t = 3) => {
2878
+ let o = 0;
2879
+ const s = Ns(50, 250);
2880
+ return $s((i) => {
2881
+ const n = i.loaded, l = i.lengthComputable ? i.total : void 0, a = n - o, c = s(a), u = n <= l;
2882
+ o = n;
2883
+ const m = {
2884
+ loaded: n,
2885
+ total: l,
2886
+ progress: l ? n / l : void 0,
2887
+ bytes: a,
2888
+ rate: c || void 0,
2889
+ estimated: c && l && u ? (l - n) / c : void 0,
2890
+ event: i,
2891
+ lengthComputable: l != null,
2892
+ [r ? "download" : "upload"]: !0
2893
+ };
2894
+ e(m);
2895
+ }, t);
2896
+ }, ht = (e, r) => {
2897
+ const t = e != null;
2898
+ return [(o) => r[0]({
2899
+ lengthComputable: t,
2900
+ total: e,
2901
+ loaded: o
2902
+ }), r[1]];
2903
+ }, ft = (e) => (...r) => d.asap(() => e(...r)), Ls = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, r) => (t) => (t = new URL(t, B.origin), e.protocol === t.protocol && e.host === t.host && (r || e.port === t.port)))(
2904
+ new URL(B.origin),
2905
+ B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
2906
+ ) : () => !0, zs = B.hasStandardBrowserEnv ? (
2907
+ // Standard browser envs support document.cookie
2908
+ {
2909
+ write(e, r, t, o, s, i) {
2910
+ const n = [e + "=" + encodeURIComponent(r)];
2911
+ d.isNumber(t) && n.push("expires=" + new Date(t).toGMTString()), d.isString(o) && n.push("path=" + o), d.isString(s) && n.push("domain=" + s), i === !0 && n.push("secure"), document.cookie = n.join("; ");
2912
+ },
2913
+ read(e) {
2914
+ const r = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
2915
+ return r ? decodeURIComponent(r[3]) : null;
2916
+ },
2917
+ remove(e) {
2918
+ this.write(e, "", Date.now() - 864e5);
2919
+ }
2920
+ }
2921
+ ) : (
2922
+ // Non-standard browser env (web workers, react-native) lack needed support.
2923
+ {
2924
+ write() {
2925
+ },
2926
+ read() {
2927
+ return null;
2928
+ },
2929
+ remove() {
2930
+ }
2931
+ }
2932
+ );
2933
+ function Fs(e) {
2934
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2935
+ }
2936
+ function Ws(e, r) {
2937
+ return r ? e.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : e;
2938
+ }
2939
+ function Ft(e, r) {
2940
+ return e && !Fs(r) ? Ws(e, r) : r;
2941
+ }
2942
+ const pt = (e) => e instanceof N ? { ...e } : e;
2943
+ function K(e, r) {
2944
+ r = r || {};
2945
+ const t = {};
2946
+ function o(c, u, m, v) {
2947
+ return d.isPlainObject(c) && d.isPlainObject(u) ? d.merge.call({ caseless: v }, c, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u;
2948
+ }
2949
+ function s(c, u, m, v) {
2950
+ if (d.isUndefined(u)) {
2951
+ if (!d.isUndefined(c))
2952
+ return o(void 0, c, m, v);
2953
+ } else return o(c, u, m, v);
2954
+ }
2955
+ function i(c, u) {
2956
+ if (!d.isUndefined(u))
2957
+ return o(void 0, u);
2958
+ }
2959
+ function n(c, u) {
2960
+ if (d.isUndefined(u)) {
2961
+ if (!d.isUndefined(c))
2962
+ return o(void 0, c);
2963
+ } else return o(void 0, u);
2964
+ }
2965
+ function l(c, u, m) {
2966
+ if (m in r)
2967
+ return o(c, u);
2968
+ if (m in e)
2969
+ return o(void 0, c);
2970
+ }
2971
+ const a = {
2972
+ url: i,
2973
+ method: i,
2974
+ data: i,
2975
+ baseURL: n,
2976
+ transformRequest: n,
2977
+ transformResponse: n,
2978
+ paramsSerializer: n,
2979
+ timeout: n,
2980
+ timeoutMessage: n,
2981
+ withCredentials: n,
2982
+ withXSRFToken: n,
2983
+ adapter: n,
2984
+ responseType: n,
2985
+ xsrfCookieName: n,
2986
+ xsrfHeaderName: n,
2987
+ onUploadProgress: n,
2988
+ onDownloadProgress: n,
2989
+ decompress: n,
2990
+ maxContentLength: n,
2991
+ maxBodyLength: n,
2992
+ beforeRedirect: n,
2993
+ transport: n,
2994
+ httpAgent: n,
2995
+ httpsAgent: n,
2996
+ cancelToken: n,
2997
+ socketPath: n,
2998
+ responseEncoding: n,
2999
+ validateStatus: l,
3000
+ headers: (c, u, m) => s(pt(c), pt(u), m, !0)
3001
+ };
3002
+ return d.forEach(Object.keys(Object.assign({}, e, r)), function(u) {
3003
+ const m = a[u] || s, v = m(e[u], r[u], u);
3004
+ d.isUndefined(v) && m !== l || (t[u] = v);
3005
+ }), t;
3006
+ }
3007
+ const Wt = (e) => {
3008
+ const r = K({}, e);
3009
+ let { data: t, withXSRFToken: o, xsrfHeaderName: s, xsrfCookieName: i, headers: n, auth: l } = r;
3010
+ r.headers = n = N.from(n), r.url = Dt(Ft(r.baseURL, r.url), e.params, e.paramsSerializer), l && n.set(
3011
+ "Authorization",
3012
+ "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
3013
+ );
3014
+ let a;
3015
+ if (d.isFormData(t)) {
3016
+ if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
3017
+ n.setContentType(void 0);
3018
+ else if ((a = n.getContentType()) !== !1) {
3019
+ const [c, ...u] = a ? a.split(";").map((m) => m.trim()).filter(Boolean) : [];
3020
+ n.setContentType([c || "multipart/form-data", ...u].join("; "));
3021
+ }
3022
+ }
3023
+ if (B.hasStandardBrowserEnv && (o && d.isFunction(o) && (o = o(r)), o || o !== !1 && Ls(r.url))) {
3024
+ const c = s && i && zs.read(i);
3025
+ c && n.set(s, c);
3026
+ }
3027
+ return r;
3028
+ }, Ms = typeof XMLHttpRequest < "u", js = Ms && function(e) {
3029
+ return new Promise(function(t, o) {
3030
+ const s = Wt(e);
3031
+ let i = s.data;
3032
+ const n = N.from(s.headers).normalize();
3033
+ let { responseType: l, onUploadProgress: a, onDownloadProgress: c } = s, u, m, v, y, g;
3034
+ function w() {
3035
+ y && y(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
3036
+ }
3037
+ let b = new XMLHttpRequest();
3038
+ b.open(s.method.toUpperCase(), s.url, !0), b.timeout = s.timeout;
3039
+ function T() {
3040
+ if (!b)
3041
+ return;
3042
+ const R = N.from(
3043
+ "getAllResponseHeaders" in b && b.getAllResponseHeaders()
3044
+ ), D = {
3045
+ data: !l || l === "text" || l === "json" ? b.responseText : b.response,
3046
+ status: b.status,
3047
+ statusText: b.statusText,
3048
+ headers: R,
3049
+ config: e,
3050
+ request: b
3051
+ };
3052
+ zt(function(G) {
3053
+ t(G), w();
3054
+ }, function(G) {
3055
+ o(G), w();
3056
+ }, D), b = null;
3057
+ }
3058
+ "onloadend" in b ? b.onloadend = T : b.onreadystatechange = function() {
3059
+ !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(T);
3060
+ }, b.onabort = function() {
3061
+ b && (o(new C("Request aborted", C.ECONNABORTED, e, b)), b = null);
3062
+ }, b.onerror = function() {
3063
+ o(new C("Network Error", C.ERR_NETWORK, e, b)), b = null;
3064
+ }, b.ontimeout = function() {
3065
+ let H = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
3066
+ const D = s.transitional || Nt;
3067
+ s.timeoutErrorMessage && (H = s.timeoutErrorMessage), o(new C(
3068
+ H,
3069
+ D.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
3070
+ e,
3071
+ b
3072
+ )), b = null;
3073
+ }, i === void 0 && n.setContentType(null), "setRequestHeader" in b && d.forEach(n.toJSON(), function(H, D) {
3074
+ b.setRequestHeader(D, H);
3075
+ }), d.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), l && l !== "json" && (b.responseType = s.responseType), c && ([v, g] = pe(c, !0), b.addEventListener("progress", v)), a && b.upload && ([m, y] = pe(a), b.upload.addEventListener("progress", m), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (u = (R) => {
3076
+ b && (o(!R || R.type ? new ee(null, e, b) : R), b.abort(), b = null);
3077
+ }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
3078
+ const O = Ds(s.url);
3079
+ if (O && B.protocols.indexOf(O) === -1) {
3080
+ o(new C("Unsupported protocol " + O + ":", C.ERR_BAD_REQUEST, e));
3081
+ return;
3082
+ }
3083
+ b.send(i || null);
3084
+ });
3085
+ }, Us = (e, r) => {
3086
+ const { length: t } = e = e ? e.filter(Boolean) : [];
3087
+ if (r || t) {
3088
+ let o = new AbortController(), s;
3089
+ const i = function(c) {
3090
+ if (!s) {
3091
+ s = !0, l();
3092
+ const u = c instanceof Error ? c : this.reason;
3093
+ o.abort(u instanceof C ? u : new ee(u instanceof Error ? u.message : u));
3094
+ }
3095
+ };
3096
+ let n = r && setTimeout(() => {
3097
+ n = null, i(new C(`timeout ${r} of ms exceeded`, C.ETIMEDOUT));
3098
+ }, r);
3099
+ const l = () => {
3100
+ e && (n && clearTimeout(n), n = null, e.forEach((c) => {
3101
+ c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
3102
+ }), e = null);
3103
+ };
3104
+ e.forEach((c) => c.addEventListener("abort", i));
3105
+ const { signal: a } = o;
3106
+ return a.unsubscribe = () => d.asap(l), a;
3107
+ }
3108
+ }, qs = function* (e, r) {
3109
+ let t = e.byteLength;
3110
+ if (t < r) {
3111
+ yield e;
3112
+ return;
3113
+ }
3114
+ let o = 0, s;
3115
+ for (; o < t; )
3116
+ s = o + r, yield e.slice(o, s), o = s;
3117
+ }, Hs = async function* (e, r) {
3118
+ for await (const t of Js(e))
3119
+ yield* qs(t, r);
3120
+ }, Js = async function* (e) {
3121
+ if (e[Symbol.asyncIterator]) {
3122
+ yield* e;
3123
+ return;
3124
+ }
3125
+ const r = e.getReader();
3126
+ try {
3127
+ for (; ; ) {
3128
+ const { done: t, value: o } = await r.read();
3129
+ if (t)
3130
+ break;
3131
+ yield o;
3132
+ }
3133
+ } finally {
3134
+ await r.cancel();
3135
+ }
3136
+ }, mt = (e, r, t, o) => {
3137
+ const s = Hs(e, r);
3138
+ let i = 0, n, l = (a) => {
3139
+ n || (n = !0, o && o(a));
3140
+ };
3141
+ return new ReadableStream({
3142
+ async pull(a) {
3143
+ try {
3144
+ const { done: c, value: u } = await s.next();
3145
+ if (c) {
3146
+ l(), a.close();
3147
+ return;
3148
+ }
3149
+ let m = u.byteLength;
3150
+ if (t) {
3151
+ let v = i += m;
3152
+ t(v);
3153
+ }
3154
+ a.enqueue(new Uint8Array(u));
3155
+ } catch (c) {
3156
+ throw l(c), c;
3157
+ }
3158
+ },
3159
+ cancel(a) {
3160
+ return l(a), s.return();
3161
+ }
3162
+ }, {
3163
+ highWaterMark: 2
3164
+ });
3165
+ }, _e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Mt = _e && typeof ReadableStream == "function", Gs = _e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (r) => e.encode(r))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), jt = (e, ...r) => {
3166
+ try {
3167
+ return !!e(...r);
3168
+ } catch {
3169
+ return !1;
3170
+ }
3171
+ }, Vs = Mt && jt(() => {
3172
+ let e = !1;
3173
+ const r = new Request(B.origin, {
3174
+ body: new ReadableStream(),
3175
+ method: "POST",
3176
+ get duplex() {
3177
+ return e = !0, "half";
3178
+ }
3179
+ }).headers.has("Content-Type");
3180
+ return e && !r;
3181
+ }), gt = 64 * 1024, Ne = Mt && jt(() => d.isReadableStream(new Response("").body)), me = {
3182
+ stream: Ne && ((e) => e.body)
3183
+ };
3184
+ _e && ((e) => {
3185
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((r) => {
3186
+ !me[r] && (me[r] = d.isFunction(e[r]) ? (t) => t[r]() : (t, o) => {
3187
+ throw new C(`Response type '${r}' is not supported`, C.ERR_NOT_SUPPORT, o);
3188
+ });
3189
+ });
3190
+ })(new Response());
3191
+ const Xs = async (e) => {
3192
+ if (e == null)
3193
+ return 0;
3194
+ if (d.isBlob(e))
3195
+ return e.size;
3196
+ if (d.isSpecCompliantForm(e))
3197
+ return (await new Request(B.origin, {
3198
+ method: "POST",
3199
+ body: e
3200
+ }).arrayBuffer()).byteLength;
3201
+ if (d.isArrayBufferView(e) || d.isArrayBuffer(e))
3202
+ return e.byteLength;
3203
+ if (d.isURLSearchParams(e) && (e = e + ""), d.isString(e))
3204
+ return (await Gs(e)).byteLength;
3205
+ }, Zs = async (e, r) => {
3206
+ const t = d.toFiniteNumber(e.getContentLength());
3207
+ return t ?? Xs(r);
3208
+ }, Ks = _e && (async (e) => {
3209
+ let {
3210
+ url: r,
3211
+ method: t,
3212
+ data: o,
3213
+ signal: s,
3214
+ cancelToken: i,
3215
+ timeout: n,
3216
+ onDownloadProgress: l,
3217
+ onUploadProgress: a,
3218
+ responseType: c,
3219
+ headers: u,
3220
+ withCredentials: m = "same-origin",
3221
+ fetchOptions: v
3222
+ } = Wt(e);
3223
+ c = c ? (c + "").toLowerCase() : "text";
3224
+ let y = Us([s, i && i.toAbortSignal()], n), g;
3225
+ const w = y && y.unsubscribe && (() => {
3226
+ y.unsubscribe();
3227
+ });
3228
+ let b;
3229
+ try {
3230
+ if (a && Vs && t !== "get" && t !== "head" && (b = await Zs(u, o)) !== 0) {
3231
+ let D = new Request(r, {
3232
+ method: "POST",
3233
+ body: o,
3234
+ duplex: "half"
3235
+ }), J;
3236
+ if (d.isFormData(o) && (J = D.headers.get("content-type")) && u.setContentType(J), D.body) {
3237
+ const [G, de] = ht(
3238
+ b,
3239
+ pe(ft(a))
3240
+ );
3241
+ o = mt(D.body, gt, G, de);
3242
+ }
3243
+ }
3244
+ d.isString(m) || (m = m ? "include" : "omit");
3245
+ const T = "credentials" in Request.prototype;
3246
+ g = new Request(r, {
3247
+ ...v,
3248
+ signal: y,
3249
+ method: t.toUpperCase(),
3250
+ headers: u.normalize().toJSON(),
3251
+ body: o,
3252
+ duplex: "half",
3253
+ credentials: T ? m : void 0
3254
+ });
3255
+ let O = await fetch(g);
3256
+ const R = Ne && (c === "stream" || c === "response");
3257
+ if (Ne && (l || R && w)) {
3258
+ const D = {};
3259
+ ["status", "statusText", "headers"].forEach((Ve) => {
3260
+ D[Ve] = O[Ve];
3261
+ });
3262
+ const J = d.toFiniteNumber(O.headers.get("content-length")), [G, de] = l && ht(
3263
+ J,
3264
+ pe(ft(l), !0)
3265
+ ) || [];
3266
+ O = new Response(
3267
+ mt(O.body, gt, G, () => {
3268
+ de && de(), w && w();
3269
+ }),
3270
+ D
3271
+ );
3272
+ }
3273
+ c = c || "text";
3274
+ let H = await me[d.findKey(me, c) || "text"](O, e);
3275
+ return !R && w && w(), await new Promise((D, J) => {
3276
+ zt(D, J, {
3277
+ data: H,
3278
+ headers: N.from(O.headers),
3279
+ status: O.status,
3280
+ statusText: O.statusText,
3281
+ config: e,
3282
+ request: g
3283
+ });
3284
+ });
3285
+ } catch (T) {
3286
+ throw w && w(), T && T.name === "TypeError" && /fetch/i.test(T.message) ? Object.assign(
3287
+ new C("Network Error", C.ERR_NETWORK, e, g),
3288
+ {
3289
+ cause: T.cause || T
3290
+ }
3291
+ ) : C.from(T, T && T.code, e, g);
3292
+ }
3293
+ }), $e = {
3294
+ http: hs,
3295
+ xhr: js,
3296
+ fetch: Ks
3297
+ };
3298
+ d.forEach($e, (e, r) => {
3299
+ if (e) {
3300
+ try {
3301
+ Object.defineProperty(e, "name", { value: r });
3302
+ } catch {
3303
+ }
3304
+ Object.defineProperty(e, "adapterName", { value: r });
3305
+ }
3306
+ });
3307
+ const yt = (e) => `- ${e}`, Qs = (e) => d.isFunction(e) || e === null || e === !1, Ut = {
3308
+ getAdapter: (e) => {
3309
+ e = d.isArray(e) ? e : [e];
3310
+ const { length: r } = e;
3311
+ let t, o;
3312
+ const s = {};
3313
+ for (let i = 0; i < r; i++) {
3314
+ t = e[i];
3315
+ let n;
3316
+ if (o = t, !Qs(t) && (o = $e[(n = String(t)).toLowerCase()], o === void 0))
3317
+ throw new C(`Unknown adapter '${n}'`);
3318
+ if (o)
3319
+ break;
3320
+ s[n || "#" + i] = o;
3321
+ }
3322
+ if (!o) {
3323
+ const i = Object.entries(s).map(
3324
+ ([l, a]) => `adapter ${l} ` + (a === !1 ? "is not supported by the environment" : "is not available in the build")
3325
+ );
3326
+ let n = r ? i.length > 1 ? `since :
3327
+ ` + i.map(yt).join(`
3328
+ `) : " " + yt(i[0]) : "as no adapter specified";
3329
+ throw new C(
3330
+ "There is no suitable adapter to dispatch the request " + n,
3331
+ "ERR_NOT_SUPPORT"
3332
+ );
3333
+ }
3334
+ return o;
3335
+ },
3336
+ adapters: $e
3337
+ };
3338
+ function Re(e) {
3339
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3340
+ throw new ee(null, e);
3341
+ }
3342
+ function wt(e) {
3343
+ return Re(e), e.headers = N.from(e.headers), e.data = Ae.call(
3344
+ e,
3345
+ e.transformRequest
3346
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ut.getAdapter(e.adapter || le.adapter)(e).then(function(o) {
3347
+ return Re(e), o.data = Ae.call(
3348
+ e,
3349
+ e.transformResponse,
3350
+ o
3351
+ ), o.headers = N.from(o.headers), o;
3352
+ }, function(o) {
3353
+ return Lt(o) || (Re(e), o && o.response && (o.response.data = Ae.call(
3354
+ e,
3355
+ e.transformResponse,
3356
+ o.response
3357
+ ), o.response.headers = N.from(o.response.headers))), Promise.reject(o);
3358
+ });
3359
+ }
3360
+ const qt = "1.7.9", ke = {};
3361
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, r) => {
3362
+ ke[e] = function(o) {
3363
+ return typeof o === e || "a" + (r < 1 ? "n " : " ") + e;
3364
+ };
3365
+ });
3366
+ const bt = {};
3367
+ ke.transitional = function(r, t, o) {
3368
+ function s(i, n) {
3369
+ return "[Axios v" + qt + "] Transitional option '" + i + "'" + n + (o ? ". " + o : "");
3370
+ }
3371
+ return (i, n, l) => {
3372
+ if (r === !1)
3373
+ throw new C(
3374
+ s(n, " has been removed" + (t ? " in " + t : "")),
3375
+ C.ERR_DEPRECATED
3376
+ );
3377
+ return t && !bt[n] && (bt[n] = !0, console.warn(
3378
+ s(
3379
+ n,
3380
+ " has been deprecated since v" + t + " and will be removed in the near future"
3381
+ )
3382
+ )), r ? r(i, n, l) : !0;
3383
+ };
3384
+ };
3385
+ ke.spelling = function(r) {
3386
+ return (t, o) => (console.warn(`${o} is likely a misspelling of ${r}`), !0);
3387
+ };
3388
+ function Ys(e, r, t) {
3389
+ if (typeof e != "object")
3390
+ throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
3391
+ const o = Object.keys(e);
3392
+ let s = o.length;
3393
+ for (; s-- > 0; ) {
3394
+ const i = o[s], n = r[i];
3395
+ if (n) {
3396
+ const l = e[i], a = l === void 0 || n(l, i, e);
3397
+ if (a !== !0)
3398
+ throw new C("option " + i + " must be " + a, C.ERR_BAD_OPTION_VALUE);
3399
+ continue;
3400
+ }
3401
+ if (t !== !0)
3402
+ throw new C("Unknown option " + i, C.ERR_BAD_OPTION);
3403
+ }
3404
+ }
3405
+ const he = {
3406
+ assertOptions: Ys,
3407
+ validators: ke
3408
+ }, U = he.validators;
3409
+ class X {
3410
+ constructor(r) {
3411
+ this.defaults = r, this.interceptors = {
3412
+ request: new ct(),
3413
+ response: new ct()
3414
+ };
3415
+ }
3416
+ /**
3417
+ * Dispatch a request
3418
+ *
3419
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3420
+ * @param {?Object} config
3421
+ *
3422
+ * @returns {Promise} The Promise to be fulfilled
3423
+ */
3424
+ async request(r, t) {
3425
+ try {
3426
+ return await this._request(r, t);
3427
+ } catch (o) {
3428
+ if (o instanceof Error) {
3429
+ let s = {};
3430
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
3431
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
3432
+ try {
3433
+ o.stack ? i && !String(o.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (o.stack += `
3434
+ ` + i) : o.stack = i;
3435
+ } catch {
3436
+ }
3437
+ }
3438
+ throw o;
3439
+ }
3440
+ }
3441
+ _request(r, t) {
3442
+ typeof r == "string" ? (t = t || {}, t.url = r) : t = r || {}, t = K(this.defaults, t);
3443
+ const { transitional: o, paramsSerializer: s, headers: i } = t;
3444
+ o !== void 0 && he.assertOptions(o, {
3445
+ silentJSONParsing: U.transitional(U.boolean),
3446
+ forcedJSONParsing: U.transitional(U.boolean),
3447
+ clarifyTimeoutError: U.transitional(U.boolean)
3448
+ }, !1), s != null && (d.isFunction(s) ? t.paramsSerializer = {
3449
+ serialize: s
3450
+ } : he.assertOptions(s, {
3451
+ encode: U.function,
3452
+ serialize: U.function
3453
+ }, !0)), he.assertOptions(t, {
3454
+ baseUrl: U.spelling("baseURL"),
3455
+ withXsrfToken: U.spelling("withXSRFToken")
3456
+ }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
3457
+ let n = i && d.merge(
3458
+ i.common,
3459
+ i[t.method]
3460
+ );
3461
+ i && d.forEach(
3462
+ ["delete", "get", "head", "post", "put", "patch", "common"],
3463
+ (g) => {
3464
+ delete i[g];
3465
+ }
3466
+ ), t.headers = N.concat(n, i);
3467
+ const l = [];
3468
+ let a = !0;
3469
+ this.interceptors.request.forEach(function(w) {
3470
+ typeof w.runWhen == "function" && w.runWhen(t) === !1 || (a = a && w.synchronous, l.unshift(w.fulfilled, w.rejected));
3471
+ });
3472
+ const c = [];
3473
+ this.interceptors.response.forEach(function(w) {
3474
+ c.push(w.fulfilled, w.rejected);
3475
+ });
3476
+ let u, m = 0, v;
3477
+ if (!a) {
3478
+ const g = [wt.bind(this), void 0];
3479
+ for (g.unshift.apply(g, l), g.push.apply(g, c), v = g.length, u = Promise.resolve(t); m < v; )
3480
+ u = u.then(g[m++], g[m++]);
3481
+ return u;
3482
+ }
3483
+ v = l.length;
3484
+ let y = t;
3485
+ for (m = 0; m < v; ) {
3486
+ const g = l[m++], w = l[m++];
3487
+ try {
3488
+ y = g(y);
3489
+ } catch (b) {
3490
+ w.call(this, b);
3491
+ break;
3492
+ }
3493
+ }
3494
+ try {
3495
+ u = wt.call(this, y);
3496
+ } catch (g) {
3497
+ return Promise.reject(g);
3498
+ }
3499
+ for (m = 0, v = c.length; m < v; )
3500
+ u = u.then(c[m++], c[m++]);
3501
+ return u;
3502
+ }
3503
+ getUri(r) {
3504
+ r = K(this.defaults, r);
3505
+ const t = Ft(r.baseURL, r.url);
3506
+ return Dt(t, r.params, r.paramsSerializer);
3507
+ }
3508
+ }
3509
+ d.forEach(["delete", "get", "head", "options"], function(r) {
3510
+ X.prototype[r] = function(t, o) {
3511
+ return this.request(K(o || {}, {
3512
+ method: r,
3513
+ url: t,
3514
+ data: (o || {}).data
3515
+ }));
3516
+ };
3517
+ });
3518
+ d.forEach(["post", "put", "patch"], function(r) {
3519
+ function t(o) {
3520
+ return function(i, n, l) {
3521
+ return this.request(K(l || {}, {
3522
+ method: r,
3523
+ headers: o ? {
3524
+ "Content-Type": "multipart/form-data"
3525
+ } : {},
3526
+ url: i,
3527
+ data: n
3528
+ }));
3529
+ };
3530
+ }
3531
+ X.prototype[r] = t(), X.prototype[r + "Form"] = t(!0);
3532
+ });
3533
+ class Ge {
3534
+ constructor(r) {
3535
+ if (typeof r != "function")
3536
+ throw new TypeError("executor must be a function.");
3537
+ let t;
3538
+ this.promise = new Promise(function(i) {
3539
+ t = i;
3540
+ });
3541
+ const o = this;
3542
+ this.promise.then((s) => {
3543
+ if (!o._listeners) return;
3544
+ let i = o._listeners.length;
3545
+ for (; i-- > 0; )
3546
+ o._listeners[i](s);
3547
+ o._listeners = null;
3548
+ }), this.promise.then = (s) => {
3549
+ let i;
3550
+ const n = new Promise((l) => {
3551
+ o.subscribe(l), i = l;
3552
+ }).then(s);
3553
+ return n.cancel = function() {
3554
+ o.unsubscribe(i);
3555
+ }, n;
3556
+ }, r(function(i, n, l) {
3557
+ o.reason || (o.reason = new ee(i, n, l), t(o.reason));
3558
+ });
3559
+ }
3560
+ /**
3561
+ * Throws a `CanceledError` if cancellation has been requested.
3562
+ */
3563
+ throwIfRequested() {
3564
+ if (this.reason)
3565
+ throw this.reason;
3566
+ }
3567
+ /**
3568
+ * Subscribe to the cancel signal
3569
+ */
3570
+ subscribe(r) {
3571
+ if (this.reason) {
3572
+ r(this.reason);
3573
+ return;
3574
+ }
3575
+ this._listeners ? this._listeners.push(r) : this._listeners = [r];
3576
+ }
3577
+ /**
3578
+ * Unsubscribe from the cancel signal
3579
+ */
3580
+ unsubscribe(r) {
3581
+ if (!this._listeners)
3582
+ return;
3583
+ const t = this._listeners.indexOf(r);
3584
+ t !== -1 && this._listeners.splice(t, 1);
3585
+ }
3586
+ toAbortSignal() {
3587
+ const r = new AbortController(), t = (o) => {
3588
+ r.abort(o);
3589
+ };
3590
+ return this.subscribe(t), r.signal.unsubscribe = () => this.unsubscribe(t), r.signal;
3591
+ }
3592
+ /**
3593
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3594
+ * cancels the `CancelToken`.
3595
+ */
3596
+ static source() {
3597
+ let r;
3598
+ return {
3599
+ token: new Ge(function(s) {
3600
+ r = s;
3601
+ }),
3602
+ cancel: r
3603
+ };
3604
+ }
3605
+ }
3606
+ function ei(e) {
3607
+ return function(t) {
3608
+ return e.apply(null, t);
3609
+ };
3610
+ }
3611
+ function ti(e) {
3612
+ return d.isObject(e) && e.isAxiosError === !0;
3613
+ }
3614
+ const Le = {
3615
+ Continue: 100,
3616
+ SwitchingProtocols: 101,
3617
+ Processing: 102,
3618
+ EarlyHints: 103,
3619
+ Ok: 200,
3620
+ Created: 201,
3621
+ Accepted: 202,
3622
+ NonAuthoritativeInformation: 203,
3623
+ NoContent: 204,
3624
+ ResetContent: 205,
3625
+ PartialContent: 206,
3626
+ MultiStatus: 207,
3627
+ AlreadyReported: 208,
3628
+ ImUsed: 226,
3629
+ MultipleChoices: 300,
3630
+ MovedPermanently: 301,
3631
+ Found: 302,
3632
+ SeeOther: 303,
3633
+ NotModified: 304,
3634
+ UseProxy: 305,
3635
+ Unused: 306,
3636
+ TemporaryRedirect: 307,
3637
+ PermanentRedirect: 308,
3638
+ BadRequest: 400,
3639
+ Unauthorized: 401,
3640
+ PaymentRequired: 402,
3641
+ Forbidden: 403,
3642
+ NotFound: 404,
3643
+ MethodNotAllowed: 405,
3644
+ NotAcceptable: 406,
3645
+ ProxyAuthenticationRequired: 407,
3646
+ RequestTimeout: 408,
3647
+ Conflict: 409,
3648
+ Gone: 410,
3649
+ LengthRequired: 411,
3650
+ PreconditionFailed: 412,
3651
+ PayloadTooLarge: 413,
3652
+ UriTooLong: 414,
3653
+ UnsupportedMediaType: 415,
3654
+ RangeNotSatisfiable: 416,
3655
+ ExpectationFailed: 417,
3656
+ ImATeapot: 418,
3657
+ MisdirectedRequest: 421,
3658
+ UnprocessableEntity: 422,
3659
+ Locked: 423,
3660
+ FailedDependency: 424,
3661
+ TooEarly: 425,
3662
+ UpgradeRequired: 426,
3663
+ PreconditionRequired: 428,
3664
+ TooManyRequests: 429,
3665
+ RequestHeaderFieldsTooLarge: 431,
3666
+ UnavailableForLegalReasons: 451,
3667
+ InternalServerError: 500,
3668
+ NotImplemented: 501,
3669
+ BadGateway: 502,
3670
+ ServiceUnavailable: 503,
3671
+ GatewayTimeout: 504,
3672
+ HttpVersionNotSupported: 505,
3673
+ VariantAlsoNegotiates: 506,
3674
+ InsufficientStorage: 507,
3675
+ LoopDetected: 508,
3676
+ NotExtended: 510,
3677
+ NetworkAuthenticationRequired: 511
3678
+ };
3679
+ Object.entries(Le).forEach(([e, r]) => {
3680
+ Le[r] = e;
3681
+ });
3682
+ function Ht(e) {
3683
+ const r = new X(e), t = Ct(X.prototype.request, r);
3684
+ return d.extend(t, X.prototype, r, { allOwnKeys: !0 }), d.extend(t, r, null, { allOwnKeys: !0 }), t.create = function(s) {
3685
+ return Ht(K(e, s));
3686
+ }, t;
3687
+ }
3688
+ const _ = Ht(le);
3689
+ _.Axios = X;
3690
+ _.CanceledError = ee;
3691
+ _.CancelToken = Ge;
3692
+ _.isCancel = Lt;
3693
+ _.VERSION = qt;
3694
+ _.toFormData = Ce;
3695
+ _.AxiosError = C;
3696
+ _.Cancel = _.CanceledError;
3697
+ _.all = function(r) {
3698
+ return Promise.all(r);
3699
+ };
3700
+ _.spread = ei;
3701
+ _.isAxiosError = ti;
3702
+ _.mergeConfig = K;
3703
+ _.AxiosHeaders = N;
3704
+ _.formToJSON = (e) => $t(d.isHTMLForm(e) ? new FormData(e) : e);
3705
+ _.getAdapter = Ut.getAdapter;
3706
+ _.HttpStatusCode = Le;
3707
+ _.default = _;
3708
+ const Te = (e, r) => {
3709
+ const t = e.__vccOpts || e;
3710
+ for (const [o, s] of r)
3711
+ t[o] = s;
3712
+ return t;
3713
+ }, ri = {
3714
+ name: "DataIAGenerales",
3715
+ components: {
3716
+ GSCSlider: we,
3717
+ GSCDataCard: Ue
3718
+ },
3719
+ props: {
3720
+ currentSeasonId: {
3721
+ type: [Number, String],
3722
+ required: !0
3723
+ }
3724
+ },
3725
+ data() {
3726
+ return {
3727
+ generalsData: [],
3728
+ loading: !0,
3729
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"
3730
+ };
3731
+ },
3732
+ watch: {
3733
+ currentSeasonId: {
3734
+ immediate: !0,
3735
+ handler(e) {
3736
+ e && this.fetchGeneralsData(e);
3737
+ }
3738
+ }
3739
+ },
3740
+ methods: {
3741
+ async fetchGeneralsData(e) {
3742
+ this.loading = !0;
3743
+ try {
3744
+ const t = await _.create({
3745
+ headers: {
3746
+ Authorization: `${this.tokenPremium}`
3747
+ }
3748
+ }).get(
3749
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/seasons/${e}/generals`
3750
+ );
3751
+ this.generalsData = t.data;
3752
+ const o = t.data.generals.find((s) => s.id === "16-g");
3753
+ o && this.$emit("most-productive", {
3754
+ player_id: o.player_id,
3755
+ team_id: o.team_id
3756
+ });
3757
+ } catch (r) {
3758
+ console.error("Error al obtener datos generals:", r);
3759
+ } finally {
3760
+ this.loading = !1;
3761
+ }
3762
+ }
3763
+ }
3764
+ }, oi = (e) => (ie("data-v-7da1c005"), e = e(), ne(), e), si = { class: "generales-container" }, ii = { class: "container-generals-cards-ia-generales" }, ni = { class: "container-data-cards-ia-generales" }, ai = /* @__PURE__ */ oi(() => /* @__PURE__ */ h("div", { class: "loading-overlay" }, [
3765
+ /* @__PURE__ */ h("div", { class: "loading-animation" })
3766
+ ], -1)), li = [
3767
+ ai
3768
+ ];
3769
+ function di(e, r, t, o, s, i) {
3770
+ const n = $("GSCDataCard"), l = $("GSCSlider");
3771
+ return f(), p("div", si, [
3772
+ h("div", ii, [
3773
+ z(l, {
3774
+ height: 610,
3775
+ "px-scroll": 377,
3776
+ "scroll-color": "none",
3777
+ "arrows-position": "absolute",
3778
+ "arrows-scroll-hide": !0,
3779
+ "arrows-hide-on-no-scroll": !0,
3780
+ "arrows-background": "rgba(255,255,255,.16)",
3781
+ "arrows-container-bg-l": "none",
3782
+ "arrows-container-bg-r": "none",
3783
+ "background-color": "none",
3784
+ "arrows-margin": 0,
3785
+ "arrows-radius": "50%",
3786
+ "arrows-border": "#ddd",
3787
+ arrows: !s.loading
3788
+ }, {
3789
+ default: M(() => [
3790
+ h("div", ni, [
3791
+ s.loading ? (f(), p(P, { key: 0 }, A(4, (a) => h("div", {
3792
+ key: a,
3793
+ class: "skeleton-card",
3794
+ style: k([
3795
+ a > 1 ? { "margin-left": "20px" } : {},
3796
+ a === 4 ? { "margin-right": "30px" } : {}
3797
+ ])
3798
+ }, li, 4)), 64)) : s.generalsData && s.generalsData.generals ? (f(!0), p(P, { key: 1 }, A(s.generalsData.generals, (a, c) => (f(), q(n, {
3799
+ key: c,
3800
+ data: a,
3801
+ style: k([
3802
+ c > 0 ? { "margin-left": "20px" } : {},
3803
+ c === s.generalsData.generals.length - 1 ? { "margin-right": "30px" } : {}
3804
+ ]),
3805
+ height: "520px"
3806
+ }, null, 8, ["data", "style"]))), 128)) : S("", !0)
3807
+ ])
3808
+ ]),
3809
+ _: 1
3810
+ }, 8, ["arrows-background", "arrows"])
3811
+ ])
3812
+ ]);
3813
+ }
3814
+ const ci = /* @__PURE__ */ Te(ri, [["render", di], ["__scopeId", "data-v-7da1c005"]]), ui = {
3815
+ name: "DataIAEquipos",
3816
+ components: {
3817
+ GSCSlider: we,
3818
+ GSCDataCard: Ue
3819
+ },
3820
+ props: {
3821
+ currentSeasonId: Number,
3822
+ tournamentsApiUrl: String,
3823
+ torneoLiderId: {
3824
+ type: Number,
3825
+ required: !0
3826
+ }
3827
+ },
3828
+ data() {
3829
+ return {
3830
+ loading: !0,
3831
+ teams: [],
3832
+ selectedTeam: null,
3833
+ isOpen: !1,
3834
+ teamData: null,
3835
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
3836
+ additionalCarousels: []
3837
+ };
3838
+ },
3839
+ async created() {
3840
+ try {
3841
+ if (this.currentSeasonId != 0) {
3842
+ const r = await _.create({
3843
+ headers: {
3844
+ Authorization: `${this.tokenPremium}`
3845
+ }
3846
+ }).get(
3847
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${this.currentSeasonId}`
3848
+ );
3849
+ if (this.teams = Array.isArray(r.data) ? r.data : r.data.teams || [], this.torneoLiderId) {
3850
+ const t = this.teams.find((o) => o.team_id === this.torneoLiderId);
3851
+ t && this.selectTeam(t);
3852
+ }
3853
+ }
3854
+ } catch (e) {
3855
+ console.error("Error al obtener equipos:", e), this.teams = [];
3856
+ }
3857
+ },
3858
+ mounted() {
3859
+ document.addEventListener("click", this.handleClickOutside);
3860
+ },
3861
+ beforeUnmount() {
3862
+ document.removeEventListener("click", this.handleClickOutside);
3863
+ },
3864
+ methods: {
3865
+ toggleDropdown(e) {
3866
+ e.stopPropagation(), this.isOpen = !this.isOpen;
3867
+ },
3868
+ selectTeam(e) {
3869
+ this.selectedTeam = e, this.isOpen = !1, this.handleTeamChange();
3870
+ },
3871
+ async handleTeamChange() {
3872
+ if (this.$emit("team-change", this.selectedTeam), this.selectedTeam && this.currentSeasonId) {
3873
+ this.loading = !0;
3874
+ try {
3875
+ const e = _.create({
3876
+ headers: {
3877
+ Authorization: `${this.tokenPremium}`
3878
+ }
3879
+ });
3880
+ console.log("this.selectedTeam: ", this.selectedTeam);
3881
+ const r = await e.get(
3882
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${this.selectedTeam.team_id}`,
3883
+ {
3884
+ headers: {
3885
+ Authorization: this.tokenPremium
3886
+ }
3887
+ }
3888
+ );
3889
+ this.teamData = r.data.teams, console.log("this.teamData: ", this.teamData);
3890
+ } catch (e) {
3891
+ console.error("Error al obtener datos del equipo:", e), this.teamData = null;
3892
+ } finally {
3893
+ this.loading = !1;
3894
+ }
3895
+ }
3896
+ },
3897
+ handleClickOutside(e) {
3898
+ const r = this.$el.querySelectorAll(".custom-select");
3899
+ let t = !0;
3900
+ r.forEach((o) => {
3901
+ o.contains(e.target) && (t = !1);
3902
+ }), t && (this.isOpen = !1, this.additionalCarousels.forEach((o) => {
3903
+ o.isOpen = !1;
3904
+ }));
3905
+ },
3906
+ addCarousel() {
3907
+ const e = this.additionalCarousels.length;
3908
+ this.additionalCarousels.push({
3909
+ id: `carousel-${e}`,
3910
+ selectedTeam: null,
3911
+ isOpen: !1,
3912
+ teamData: null,
3913
+ loading: !0
3914
+ }), this.$nextTick(() => {
3915
+ this.initializeSlider(e);
3916
+ });
3917
+ },
3918
+ removeCarousel(e) {
3919
+ this.additionalCarousels.splice(e, 1);
3920
+ },
3921
+ toggleDropdownAdditional(e) {
3922
+ this.additionalCarousels[e].isOpen = !this.additionalCarousels[e].isOpen, this.isOpen = !1, this.additionalCarousels.forEach((r, t) => {
3923
+ t !== e && (r.isOpen = !1);
3924
+ });
3925
+ },
3926
+ async selectTeamAdditional(e, r) {
3927
+ const t = this.additionalCarousels[r];
3928
+ t.selectedTeam = e, t.isOpen = !1, t.loading = !0, t.teamData = null, await this.handleTeamChangeAdditional(r);
3929
+ },
3930
+ async handleTeamChangeAdditional(e) {
3931
+ const r = this.additionalCarousels[e];
3932
+ if (r.selectedTeam && this.currentSeasonId)
3933
+ try {
3934
+ const o = await _.create({
3935
+ headers: {
3936
+ Authorization: `${this.tokenPremium}`
3937
+ }
3938
+ }).get(
3939
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${r.selectedTeam.team_id}`
3940
+ );
3941
+ r.teamData = o.data;
3942
+ } catch (t) {
3943
+ console.error("Error al obtener datos del equipo adicional:", t), r.teamData = null;
3944
+ } finally {
3945
+ r.loading = !1;
3946
+ }
3947
+ },
3948
+ getAvailableTeamsForCarousel(e) {
3949
+ return this.teams.filter((r) => this.selectedTeam && this.selectedTeam.team_id === r.team_id ? !1 : !this.additionalCarousels.some(
3950
+ (t, o) => o !== e && t.selectedTeam && t.selectedTeam.team_id === r.team_id
3951
+ ));
3952
+ },
3953
+ getModifiedTeamData(e) {
3954
+ return e != null && e.teams ? e.teams.map((r) => ({
3955
+ ...r,
3956
+ id: r.id + "-e"
3957
+ })) : [];
3958
+ },
3959
+ initializeSlider(e) {
3960
+ this.$nextTick(() => {
3961
+ const r = this.$refs[`carouselSlider${e}`];
3962
+ r && r[0] && r[0].$forceUpdate();
3963
+ });
3964
+ }
3965
+ },
3966
+ watch: {
3967
+ async currentSeasonId(e) {
3968
+ if (e && e !== 0)
3969
+ try {
3970
+ this.selectedTeam = null, this.teamData = null, this.additionalCarousels = [];
3971
+ const t = await _.create({
3972
+ headers: {
3973
+ Authorization: `${this.tokenPremium}`
3974
+ }
3975
+ }).get(
3976
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`
3977
+ );
3978
+ this.teams = Array.isArray(t.data) ? t.data : t.data.teams || [], console.log("Equipos actualizados para nueva temporada:", t.data);
3979
+ } catch (r) {
3980
+ console.error("Error al actualizar equipos para nueva temporada:", r), this.teams = [];
3981
+ }
3982
+ },
3983
+ teams: {
3984
+ immediate: !0,
3985
+ handler(e) {
3986
+ if ((e == null ? void 0 : e.length) > 0 && this.torneoLiderId && !this.selectedTeam) {
3987
+ console.log(
3988
+ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ",
3989
+ this.torneoLiderId,
3990
+ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% "
3991
+ );
3992
+ const r = e.find((t) => t.team_id === this.torneoLiderId);
3993
+ r && this.selectTeam(r);
3994
+ }
3995
+ }
3996
+ }
3997
+ },
3998
+ computed: {
3999
+ selectedTeams() {
4000
+ const e = [];
4001
+ return this.selectedTeam && e.push(this.selectedTeam), this.additionalCarousels.forEach((r) => {
4002
+ r.selectedTeam && e.push(r.selectedTeam);
4003
+ }), e;
4004
+ },
4005
+ availableTeams() {
4006
+ return this.teams.filter(
4007
+ (e) => !this.selectedTeams.some((r) => r.team_id === e.team_id)
4008
+ );
4009
+ },
4010
+ modifiedTeamData() {
4011
+ return this.getModifiedTeamData(this.teamData);
4012
+ }
4013
+ }
4014
+ }, Ie = (e) => (ie("data-v-a9c7cdcc"), e = e(), ne(), e), hi = { class: "equipos-container" }, fi = { class: "header-container-equipos" }, pi = { class: "select-container" }, mi = { class: "custom-select" }, gi = ["src", "alt"], yi = /* @__PURE__ */ Ie(() => /* @__PURE__ */ h("div", { class: "select-arrow" }, null, -1)), wi = {
4015
+ key: 1,
4016
+ class: "options-container"
4017
+ }, bi = ["onClick"], Si = ["src", "alt"], vi = { class: "container-generals-cards-ia-equipos" }, Ci = { class: "container-data-cards-ia-equipos" }, _i = {
4018
+ key: 0,
4019
+ class: "loading-overlay"
4020
+ }, ki = /* @__PURE__ */ Ie(() => /* @__PURE__ */ h("div", { class: "loading-animation" }, null, -1)), Ti = [
4021
+ ki
4022
+ ], Ii = { class: "header-container-equipos" }, xi = { class: "select-container" }, Oi = { class: "custom-select" }, Pi = ["src", "alt"], Ai = ["onClick"], Ri = /* @__PURE__ */ Ie(() => /* @__PURE__ */ h("div", { class: "select-arrow" }, null, -1)), Ei = {
4023
+ key: 1,
4024
+ class: "options-container"
4025
+ }, Bi = ["onClick"], Di = ["src", "alt"], Ni = ["onClick"], $i = { class: "container-generals-cards-ia-equipos" }, Li = { class: "container-data-cards-ia-equipos" }, zi = {
4026
+ key: 0,
4027
+ class: "loading-overlay"
4028
+ }, Fi = /* @__PURE__ */ Ie(() => /* @__PURE__ */ h("div", { class: "loading-animation" }, null, -1)), Wi = [
4029
+ Fi
4030
+ ], Mi = { class: "add-button-container" };
4031
+ function ji(e, r, t, o, s, i) {
4032
+ const n = $("GSCDataCard"), l = $("GSCSlider");
4033
+ return f(), p("div", hi, [
4034
+ h("div", fi, [
4035
+ h("div", pi, [
4036
+ h("div", mi, [
4037
+ s.selectedTeam && s.selectedTeam.logo ? (f(), p("img", {
4038
+ key: 0,
4039
+ src: s.selectedTeam.logo,
4040
+ class: "selected-team-logo",
4041
+ alt: s.selectedTeam.team_name
4042
+ }, null, 8, gi)) : S("", !0),
4043
+ h("div", {
4044
+ class: E(["team-selector", { "has-logo": s.selectedTeam && s.selectedTeam.logo }]),
4045
+ onClick: r[0] || (r[0] = (...a) => i.toggleDropdown && i.toggleDropdown(...a))
4046
+ }, [
4047
+ h("span", null, I(s.selectedTeam ? s.selectedTeam.team_name : "Seleccionar equipo"), 1),
4048
+ yi
4049
+ ], 2),
4050
+ s.isOpen ? (f(), p("div", wi, [
4051
+ (f(!0), p(P, null, A(i.availableTeams, (a) => (f(), p("div", {
4052
+ key: a.id,
4053
+ class: "option",
4054
+ onClick: (c) => i.selectTeam(a)
4055
+ }, [
4056
+ a.logo ? (f(), p("img", {
4057
+ key: 0,
4058
+ src: a.logo,
4059
+ class: "option-team-logo",
4060
+ alt: a.team_name
4061
+ }, null, 8, Si)) : S("", !0),
4062
+ h("span", null, I(a.team_name), 1)
4063
+ ], 8, bi))), 128))
4064
+ ])) : S("", !0)
4065
+ ])
4066
+ ])
4067
+ ]),
4068
+ h("div", vi, [
4069
+ (f(), q(l, {
4070
+ key: "main-slider",
4071
+ height: 510,
4072
+ "px-scroll": 377,
4073
+ "scroll-color": "none",
4074
+ "arrows-position": "absolute",
4075
+ "arrows-scroll-hide": !0,
4076
+ "arrows-hide-on-no-scroll": !0,
4077
+ "arrows-background": "rgba(255,255,255,.16)",
4078
+ "arrows-container-bg-l": "none",
4079
+ "arrows-container-bg-r": "none",
4080
+ "background-color": "none",
4081
+ "arrows-margin": 0,
4082
+ "arrows-radius": "50%",
4083
+ "arrows-border": "#ddd",
4084
+ arrows: !s.loading && s.teamData,
4085
+ ref: "mainSlider"
4086
+ }, {
4087
+ default: M(() => [
4088
+ h("div", Ci, [
4089
+ s.loading ? (f(), p(P, { key: 0 }, A(4, (a) => h("div", {
4090
+ key: a,
4091
+ class: "skeleton-card",
4092
+ style: k([
4093
+ a > 1 ? { "margin-left": "20px" } : {},
4094
+ a === 4 ? { "margin-right": "30px" } : {}
4095
+ ])
4096
+ }, [
4097
+ s.selectedTeam ? (f(), p("div", _i, Ti)) : S("", !0)
4098
+ ], 4)), 64)) : s.teamData ? (f(!0), p(P, { key: 1 }, A(s.teamData, (a, c) => (f(), q(n, {
4099
+ key: c,
4100
+ data: a,
4101
+ class: "data-card"
4102
+ }, null, 8, ["data"]))), 128)) : S("", !0)
4103
+ ])
4104
+ ]),
4105
+ _: 1
4106
+ }, 8, ["arrows-background", "arrows"]))
4107
+ ]),
4108
+ (f(!0), p(P, null, A(s.additionalCarousels, (a, c) => {
4109
+ var u;
4110
+ return f(), p("div", {
4111
+ key: c,
4112
+ class: "additional-carousel"
4113
+ }, [
4114
+ h("div", Ii, [
4115
+ h("div", xi, [
4116
+ h("div", Oi, [
4117
+ a.selectedTeam && a.selectedTeam.logo ? (f(), p("img", {
4118
+ key: 0,
4119
+ src: a.selectedTeam.logo,
4120
+ class: "selected-team-logo",
4121
+ alt: a.selectedTeam.team_name
4122
+ }, null, 8, Pi)) : S("", !0),
4123
+ h("div", {
4124
+ class: E(["team-selector", { "has-logo": a.selectedTeam && a.selectedTeam.logo }]),
4125
+ onClick: (m) => i.toggleDropdownAdditional(c)
4126
+ }, [
4127
+ h("span", null, I(a.selectedTeam ? a.selectedTeam.team_name : "Seleccionar equipo"), 1),
4128
+ Ri
4129
+ ], 10, Ai),
4130
+ a.isOpen ? (f(), p("div", Ei, [
4131
+ (f(!0), p(P, null, A(i.getAvailableTeamsForCarousel(c), (m) => (f(), p("div", {
4132
+ key: m.id,
4133
+ class: "option",
4134
+ onClick: (v) => i.selectTeamAdditional(m, c)
4135
+ }, [
4136
+ m.logo ? (f(), p("img", {
4137
+ key: 0,
4138
+ src: m.logo,
4139
+ class: "option-team-logo",
4140
+ alt: m.team_name
4141
+ }, null, 8, Di)) : S("", !0),
4142
+ h("span", null, I(m.team_name), 1)
4143
+ ], 8, Bi))), 128))
4144
+ ])) : S("", !0)
4145
+ ])
4146
+ ]),
4147
+ h("div", {
4148
+ class: "remove-carousel-btn",
4149
+ onClick: (m) => i.removeCarousel(c)
4150
+ }, "×", 8, Ni)
4151
+ ]),
4152
+ h("div", $i, [
4153
+ (f(), q(l, {
4154
+ key: `carousel-slider-${c}`,
4155
+ height: 510,
4156
+ "px-scroll": 377,
4157
+ "scroll-color": "none",
4158
+ "arrows-position": "absolute",
4159
+ "arrows-scroll-hide": !0,
4160
+ "arrows-hide-on-no-scroll": !0,
4161
+ "arrows-background": "rgba(255,255,255,.16)",
4162
+ "arrows-container-bg-l": "none",
4163
+ "arrows-container-bg-r": "none",
4164
+ "background-color": "none",
4165
+ "arrows-margin": 0,
4166
+ "arrows-radius": "50%",
4167
+ "arrows-border": "#ddd",
4168
+ arrows: !a.loading && ((u = a.teamData) == null ? void 0 : u.teams),
4169
+ ref_for: !0,
4170
+ ref: `carouselSlider${c}`,
4171
+ onMounted: (m) => i.initializeSlider(c)
4172
+ }, {
4173
+ default: M(() => [
4174
+ h("div", Li, [
4175
+ a.loading ? (f(), p(P, { key: 0 }, A(4, (m) => h("div", {
4176
+ key: m,
4177
+ class: "skeleton-card",
4178
+ style: k([
4179
+ m > 1 ? { "margin-left": "20px" } : {},
4180
+ m === 4 ? { "margin-right": "30px" } : {}
4181
+ ])
4182
+ }, [
4183
+ a.selectedTeam ? (f(), p("div", zi, Wi)) : S("", !0)
4184
+ ], 4)), 64)) : a.teamData && a.teamData.teams ? (f(!0), p(P, { key: 1 }, A(a.teamData.teams, (m, v) => (f(), q(n, {
4185
+ key: v,
4186
+ data: m,
4187
+ class: "data-card"
4188
+ }, null, 8, ["data"]))), 128)) : S("", !0)
4189
+ ])
4190
+ ]),
4191
+ _: 2
4192
+ }, 1032, ["arrows-background", "arrows", "onMounted"]))
4193
+ ])
4194
+ ]);
4195
+ }), 128)),
4196
+ h("div", Mi, [
4197
+ h("div", {
4198
+ class: "carousel-placeholder-equipos",
4199
+ onClick: r[1] || (r[1] = (...a) => i.addCarousel && i.addCarousel(...a))
4200
+ }, " Agregar carrusel de jugadores ")
4201
+ ])
4202
+ ]);
4203
+ }
4204
+ const Ui = /* @__PURE__ */ Te(ui, [["render", ji], ["__scopeId", "data-v-a9c7cdcc"]]), qi = {
4205
+ name: "DataIAJugadores",
4206
+ components: {
4207
+ "g-s-c-slider": we,
4208
+ "g-s-c-data-card": Ue
4209
+ },
4210
+ props: {
4211
+ currentSeasonId: {
4212
+ type: Number,
4213
+ required: !0
4214
+ },
4215
+ mostProductivePlayer: {
4216
+ type: Object,
4217
+ required: !0
4218
+ }
4219
+ },
4220
+ data() {
4221
+ return {
4222
+ containers: [
4223
+ {
4224
+ id: Date.now(),
4225
+ isOpen: !1,
4226
+ selectedTeam: null,
4227
+ selectedPlayer: null,
4228
+ players: [],
4229
+ isPlayerOpen: !1,
4230
+ playerSearchQuery: "",
4231
+ playerData: null
4232
+ }
4233
+ ],
4234
+ maxContainers: 20,
4235
+ // Límite máximo de contenedores
4236
+ teams: [],
4237
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
4238
+ filteredTeams: [],
4239
+ searchQuery: "",
4240
+ loading: !0,
4241
+ playerData: null,
4242
+ selectedPlayer: null
4243
+ };
4244
+ },
4245
+ computed: {
4246
+ filteredPlayers() {
4247
+ return (e) => {
4248
+ const r = this.containers[e];
4249
+ if (!r) return [];
4250
+ const t = this.containers.filter((s, i) => i !== e).map((s) => s.selectedPlayer).filter(Boolean).map((s) => s.player_id);
4251
+ let o = r.players.filter(
4252
+ (s) => !t.includes(s.player_id)
4253
+ );
4254
+ if (r.playerSearchQuery) {
4255
+ const s = r.playerSearchQuery.toLowerCase();
4256
+ o = o.filter(
4257
+ (i) => i.name.toLowerCase().includes(s)
4258
+ );
4259
+ }
4260
+ return o;
4261
+ };
4262
+ }
4263
+ },
4264
+ watch: {
4265
+ currentSeasonId: {
4266
+ immediate: !0,
4267
+ async handler(e) {
4268
+ var r, t;
4269
+ if (e && e !== 0) {
4270
+ const o = {
4271
+ id: ((r = this.containers[0]) == null ? void 0 : r.id) || Date.now(),
4272
+ isOpen: !1,
4273
+ selectedTeam: null,
4274
+ selectedPlayer: null,
4275
+ players: [],
4276
+ isPlayerOpen: !1,
4277
+ playerSearchQuery: "",
4278
+ playerData: null
4279
+ };
4280
+ this.containers = [o], await this.loadTeams(e), (t = this.mostProductivePlayer) != null && t.team_id && await this.autoSelectProductivePlayer();
4281
+ }
4282
+ }
4283
+ },
4284
+ mostProductivePlayer: {
4285
+ immediate: !0,
4286
+ async handler(e) {
4287
+ e != null && e.team_id && this.teams.length > 0 && !this.containers[0].selectedPlayer && await this.autoSelectProductivePlayer();
4288
+ }
4289
+ }
4290
+ },
4291
+ methods: {
4292
+ async loadTeams(e) {
4293
+ if (!(!e || e === 0))
4294
+ try {
4295
+ const r = _.create({
4296
+ headers: {
4297
+ Authorization: `${this.tokenPremium}`
4298
+ }
4299
+ }), { data: t } = await r.get(
4300
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`
4301
+ );
4302
+ this.teams = t.teams, this.filteredTeams = [...this.teams];
4303
+ } catch (r) {
4304
+ console.error("Error al cargar equipos:", r);
4305
+ }
4306
+ },
4307
+ async loadPlayers(e, r, t) {
4308
+ var o;
4309
+ try {
4310
+ const s = _.create({
4311
+ headers: {
4312
+ Authorization: `${this.tokenPremium}`
4313
+ }
4314
+ }), { data: i } = await s.get(
4315
+ `https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${r}/${e}`
4316
+ );
4317
+ if (this.containers[t] = {
4318
+ ...this.containers[t],
4319
+ players: i[0].players
4320
+ }, t === 0 && ((o = this.mostProductivePlayer) != null && o.player_id)) {
4321
+ const n = i[0].players.find(
4322
+ (l) => l.player_id === this.mostProductivePlayer.player_id
4323
+ );
4324
+ n && await this.selectPlayer(n, 0);
4325
+ }
4326
+ } catch (s) {
4327
+ console.error("Error al cargar jugadores:", s);
4328
+ }
4329
+ },
4330
+ toggleDropdown(e) {
4331
+ this.containers[e].isOpen = !this.containers[e].isOpen, this.containers[e].isOpen && this.$nextTick(() => {
4332
+ this.$refs.searchInput && this.$refs.searchInput.focus();
4333
+ });
4334
+ },
4335
+ selectTeam(e, r) {
4336
+ var o;
4337
+ if (((o = this.containers[r].selectedTeam) == null ? void 0 : o.team_id) === e.team_id) {
4338
+ this.containers[r].isOpen = !1;
4339
+ return;
4340
+ }
4341
+ const t = {
4342
+ ...this.containers[r],
4343
+ selectedTeam: e,
4344
+ isOpen: !1,
4345
+ selectedPlayer: null,
4346
+ players: [],
4347
+ isPlayerOpen: !1,
4348
+ playerSearchQuery: "",
4349
+ playerData: null
4350
+ };
4351
+ this.containers[r] = t, this.loadPlayers(e.team_id, this.currentSeasonId, r), this.$emit("team-selected", { team: e, containerIndex: r });
4352
+ },
4353
+ filterTeams() {
4354
+ if (!this.searchQuery) {
4355
+ this.filteredTeams = [...this.teams];
4356
+ return;
4357
+ }
4358
+ const e = this.searchQuery.toLowerCase();
4359
+ this.filteredTeams = this.teams.filter((r) => r.name.toLowerCase().includes(e));
4360
+ },
4361
+ handlePlayerChange() {
4362
+ this.$emit("player-change", this.selectedPlayer);
4363
+ },
4364
+ closeTeamDropdown(e) {
4365
+ this.containers.forEach((r, t) => {
4366
+ const o = this.$refs[`teamSelect${t}`];
4367
+ o && !o[0].contains(e.target) && (r.isOpen = !1, this.searchQuery = "", this.filteredTeams = [...this.teams]);
4368
+ });
4369
+ },
4370
+ closePlayerDropdown(e) {
4371
+ const r = this.$refs.playerSelect;
4372
+ r && (Array.isArray(r) ? !r.some((o) => o && o.contains(e.target)) && this.containers.forEach((o) => {
4373
+ o.isPlayerOpen = !1;
4374
+ }) : r && !r.contains(e.target) && this.containers.forEach((t) => {
4375
+ t.isPlayerOpen = !1;
4376
+ }));
4377
+ },
4378
+ handleTeamChange() {
4379
+ this.selectedTeam && this.$emit("team-change", this.selectedTeam);
4380
+ },
4381
+ togglePlayerDropdown(e) {
4382
+ this.containers[e].isPlayerOpen = !this.containers[e].isPlayerOpen;
4383
+ },
4384
+ async selectPlayer(e, r) {
4385
+ const t = this.containers[r];
4386
+ if (t.selectedPlayer = e, t.isPlayerOpen = !1, t.loading = !0, t.playerData = null, t.selectedPlayer && this.currentSeasonId)
4387
+ try {
4388
+ const o = _.create({
4389
+ headers: {
4390
+ Authorization: `${this.tokenPremium}`
4391
+ }
4392
+ }), { data: s } = await o.get(
4393
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${t.selectedTeam.team_id}/players/${e.player_id}`
4394
+ );
4395
+ t.playerData = s.players[e.player_id];
4396
+ } catch (o) {
4397
+ console.error("Error al cargar datos del jugador:", o), t.playerData = null;
4398
+ } finally {
4399
+ t.loading = !1;
4400
+ }
4401
+ this.$emit("player-selected", e);
4402
+ },
4403
+ clearSearch(e) {
4404
+ this.containers[e].playerSearchQuery = "";
4405
+ },
4406
+ addContainer() {
4407
+ this.containers.length < this.maxContainers && this.containers.push({
4408
+ id: Date.now(),
4409
+ isOpen: !1,
4410
+ selectedTeam: null,
4411
+ selectedPlayer: null,
4412
+ players: [],
4413
+ isPlayerOpen: !1,
4414
+ playerSearchQuery: "",
4415
+ playerData: null
4416
+ });
4417
+ },
4418
+ removeContainer(e) {
4419
+ e > 0 && this.containers.splice(e, 1);
4420
+ },
4421
+ async autoSelectProductivePlayer() {
4422
+ console.log("Auto-seleccionando jugador productivo:", this.mostProductivePlayer);
4423
+ const e = this.teams.find((r) => r.team_id === this.mostProductivePlayer.team_id);
4424
+ if (e) {
4425
+ this.containers[0] = {
4426
+ ...this.containers[0],
4427
+ selectedTeam: e,
4428
+ isOpen: !1
4429
+ }, await this.loadPlayers(e.team_id, this.currentSeasonId, 0), await new Promise((t) => setTimeout(t, 100));
4430
+ const r = this.containers[0].players.find(
4431
+ (t) => t.player_id === this.mostProductivePlayer.player_id
4432
+ );
4433
+ r && await this.selectPlayer(r, 0);
4434
+ }
4435
+ },
4436
+ addCarousel() {
4437
+ const e = this.additionalCarousels.length;
4438
+ this.additionalCarousels.push({
4439
+ id: `carousel-${e}`,
4440
+ selectedPlayer: null,
4441
+ isOpen: !1,
4442
+ playerData: null,
4443
+ loading: !0
4444
+ // Iniciamos con loading true para mostrar el skeleton
4445
+ }), this.$nextTick(() => {
4446
+ this.initializeSlider(e);
4447
+ });
4448
+ },
4449
+ async handlePlayerChange() {
4450
+ if (this.selectedPlayer && this.currentSeasonId)
4451
+ try {
4452
+ const r = await _.create({
4453
+ headers: {
4454
+ Authorization: `${this.tokenPremium}`
4455
+ }
4456
+ }).get(
4457
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/players/${this.selectedPlayer.player_id}`
4458
+ );
4459
+ this.playerData = r.data.players;
4460
+ } catch (e) {
4461
+ console.error("Error al obtener datos del jugador:", e), this.playerData = null;
4462
+ } finally {
4463
+ this.loading = !1;
4464
+ }
4465
+ },
4466
+ async handlePlayerChangeAdditional(e) {
4467
+ const r = this.additionalCarousels[e];
4468
+ if (r.selectedPlayer && this.currentSeasonId)
4469
+ try {
4470
+ const o = await _.create({
4471
+ headers: {
4472
+ Authorization: `${this.tokenPremium}`
4473
+ }
4474
+ }).get(
4475
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/players/${r.selectedPlayer.player_id}`
4476
+ );
4477
+ r.playerData = o.data;
4478
+ } catch (t) {
4479
+ console.error("Error al obtener datos del jugador adicional:", t), r.playerData = null;
4480
+ } finally {
4481
+ r.loading = !1;
4482
+ }
4483
+ }
4484
+ },
4485
+ mounted() {
4486
+ this.loadTeams(), document.addEventListener("click", this.closeTeamDropdown), document.addEventListener("click", this.closePlayerDropdown);
4487
+ },
4488
+ beforeUnmount() {
4489
+ document.removeEventListener("click", this.closeTeamDropdown), document.removeEventListener("click", this.closePlayerDropdown);
4490
+ }
4491
+ }, xe = (e) => (ie("data-v-747d21f0"), e = e(), ne(), e), Hi = { class: "jugadores-container" }, Ji = ["onClick"], Gi = /* @__PURE__ */ xe(() => /* @__PURE__ */ h("span", null, "×", -1)), Vi = [
4492
+ Gi
4493
+ ], Xi = { class: "header-container-jugadores" }, Zi = { class: "custom-select" }, Ki = ["src", "alt"], Qi = ["onClick"], Yi = /* @__PURE__ */ xe(() => /* @__PURE__ */ h("div", { class: "select-arrow" }, null, -1)), en = {
4494
+ key: 1,
4495
+ class: "options-container"
4496
+ }, tn = ["onClick"], rn = ["src", "alt"], on = { class: "custom-select" }, sn = ["src", "alt"], nn = ["onClick"], an = /* @__PURE__ */ xe(() => /* @__PURE__ */ h("div", { class: "select-arrow" }, null, -1)), ln = {
4497
+ key: 1,
4498
+ class: "options-container"
4499
+ }, dn = {
4500
+ key: 0,
4501
+ class: "search-box"
4502
+ }, cn = { class: "search-input-container" }, un = ["onUpdate:modelValue"], hn = ["onClick"], fn = ["onClick"], pn = ["src", "alt"], mn = { class: "container-generals-cards-ia-jugadores" }, gn = { class: "container-data-cards-ia-jugadores" }, yn = {
4503
+ key: 1,
4504
+ class: "skeleton-cards-container"
4505
+ }, wn = {
4506
+ key: 0,
4507
+ class: "loading-overlay"
4508
+ }, bn = /* @__PURE__ */ xe(() => /* @__PURE__ */ h("div", { class: "loading-animation" }, null, -1)), Sn = [
4509
+ bn
4510
+ ];
4511
+ function vn(e, r, t, o, s, i) {
4512
+ const n = $("g-s-c-data-card"), l = $("g-s-c-slider");
4513
+ return f(), p("div", Hi, [
4514
+ (f(!0), p(P, null, A(s.containers, (a, c) => (f(), p("div", {
4515
+ key: `container-${a.id}`,
4516
+ class: "container-section"
4517
+ }, [
4518
+ c > 0 ? (f(), p("div", {
4519
+ key: 0,
4520
+ class: "close-container-button",
4521
+ onClick: (u) => i.removeContainer(c)
4522
+ }, Vi, 8, Ji)) : S("", !0),
4523
+ h("div", Xi, [
4524
+ h("div", {
4525
+ class: "select-container",
4526
+ ref_for: !0,
4527
+ ref: `teamSelect${c}`
4528
+ }, [
4529
+ h("div", Zi, [
4530
+ a.selectedTeam && a.selectedTeam.logo ? (f(), p("img", {
4531
+ key: 0,
4532
+ src: a.selectedTeam.logo,
4533
+ class: "selected-team-logo",
4534
+ alt: a.selectedTeam.team_name
4535
+ }, null, 8, Ki)) : S("", !0),
4536
+ h("div", {
4537
+ class: E(["team-selector", { "has-logo": a.selectedTeam && a.selectedTeam.logo }]),
4538
+ onClick: (u) => i.toggleDropdown(c)
4539
+ }, [
4540
+ h("span", null, I(a.selectedTeam ? a.selectedTeam.team_name : "Seleccionar equipo"), 1),
4541
+ Yi
4542
+ ], 10, Qi),
4543
+ a.isOpen ? (f(), p("div", en, [
4544
+ (f(!0), p(P, null, A(s.filteredTeams, (u) => (f(), p("div", {
4545
+ key: u.id,
4546
+ class: "option",
4547
+ onClick: (m) => i.selectTeam(u, c)
4548
+ }, [
4549
+ u.logo ? (f(), p("img", {
4550
+ key: 0,
4551
+ src: u.logo,
4552
+ class: "option-team-logo",
4553
+ alt: u.team_name
4554
+ }, null, 8, rn)) : S("", !0),
4555
+ h("span", null, I(u.team_name), 1)
4556
+ ], 8, tn))), 128))
4557
+ ])) : S("", !0)
4558
+ ])
4559
+ ], 512),
4560
+ h("div", {
4561
+ class: "select-container player-select",
4562
+ ref_for: !0,
4563
+ ref: "playerSelect"
4564
+ }, [
4565
+ h("div", on, [
4566
+ a.selectedPlayer && a.selectedPlayer.photo ? (f(), p("img", {
4567
+ key: 0,
4568
+ src: a.selectedPlayer.photo,
4569
+ class: "selected-team-logo",
4570
+ alt: a.selectedPlayer.name
4571
+ }, null, 8, sn)) : S("", !0),
4572
+ h("div", {
4573
+ class: E(["team-selector", {
4574
+ "has-logo": a.selectedPlayer && a.selectedPlayer.photo,
4575
+ disabled: !a.selectedTeam || a.players.length === 0
4576
+ }]),
4577
+ onClick: (u) => a.selectedTeam && i.togglePlayerDropdown(c)
4578
+ }, [
4579
+ h("span", null, I(a.selectedPlayer ? a.selectedPlayer.name : "Seleccionar jugador"), 1),
4580
+ an
4581
+ ], 10, nn),
4582
+ a.isPlayerOpen ? (f(), p("div", ln, [
4583
+ a.players.length > 0 ? (f(), p("div", dn, [
4584
+ h("div", cn, [
4585
+ Q(h("input", {
4586
+ type: "text",
4587
+ "onUpdate:modelValue": (u) => a.playerSearchQuery = u,
4588
+ placeholder: "Buscar jugador...",
4589
+ onClick: r[0] || (r[0] = Xe(() => {
4590
+ }, ["stop"]))
4591
+ }, null, 8, un), [
4592
+ [Xt, a.playerSearchQuery]
4593
+ ]),
4594
+ a.playerSearchQuery ? (f(), p("button", {
4595
+ key: 0,
4596
+ class: "clear-search",
4597
+ onClick: Xe((u) => i.clearSearch(c), ["stop"])
4598
+ }, " ✕ ", 8, hn)) : S("", !0)
4599
+ ])
4600
+ ])) : S("", !0),
4601
+ (f(!0), p(P, null, A(i.filteredPlayers(c), (u) => (f(), p("div", {
4602
+ key: u.player_id,
4603
+ class: E(["option", {
4604
+ selected: a.selectedPlayer && a.selectedPlayer.player_id === u.player_id
4605
+ }]),
4606
+ onClick: (m) => i.selectPlayer(u, c)
4607
+ }, [
4608
+ u.photo ? (f(), p("img", {
4609
+ key: 0,
4610
+ src: u.photo,
4611
+ class: "option-team-logo",
4612
+ alt: u.name
4613
+ }, null, 8, pn)) : S("", !0),
4614
+ h("span", null, I(u.name), 1)
4615
+ ], 10, fn))), 128))
4616
+ ])) : S("", !0)
4617
+ ])
4618
+ ], 512)
4619
+ ]),
4620
+ h("div", mn, [
4621
+ (f(), q(l, {
4622
+ ref_for: !0,
4623
+ ref: "slider",
4624
+ key: `slider-${a.id}`,
4625
+ height: 510,
4626
+ "px-scroll": 377,
4627
+ "scroll-color": "none",
4628
+ "arrows-position": "absolute",
4629
+ "arrows-scroll-hide": !0,
4630
+ "arrows-hide-on-no-scroll": !0,
4631
+ "arrows-padding": 0,
4632
+ "arrows-background": "rgba(255,255,255,.16)",
4633
+ "arrows-container-bg-l": "none",
4634
+ "arrows-container-bg-r": "none",
4635
+ "background-color": "none",
4636
+ "arrows-margin": 0,
4637
+ "arrows-radius": "50%",
4638
+ "arrows-border": "#ddd",
4639
+ arrows: a.selectedPlayer && a.playerData
4640
+ }, {
4641
+ default: M(() => [
4642
+ h("div", gn, [
4643
+ a.selectedPlayer && a.playerData ? (f(!0), p(P, { key: 0 }, A(a.playerData, (u, m) => (f(), p("div", { key: m }, [
4644
+ z(n, { data: u }, null, 8, ["data"])
4645
+ ]))), 128)) : (f(), p("div", yn, [
4646
+ (f(), p(P, null, A(4, (u) => h("div", {
4647
+ key: u,
4648
+ class: "skeleton-card"
4649
+ }, [
4650
+ a.selectedPlayer && a.loading ? (f(), p("div", wn, Sn)) : S("", !0)
4651
+ ])), 64))
4652
+ ]))
4653
+ ])
4654
+ ]),
4655
+ _: 2
4656
+ }, 1032, ["arrows-background", "arrows"]))
4657
+ ])
4658
+ ]))), 128)),
4659
+ s.containers.length < s.maxContainers ? (f(), p("div", {
4660
+ key: 0,
4661
+ class: "carousel-placeholder-jugadores",
4662
+ onClick: r[1] || (r[1] = (...a) => i.addContainer && i.addContainer(...a))
4663
+ }, " Agregar carrusel de jugadores ")) : S("", !0)
4664
+ ]);
4665
+ }
4666
+ const Cn = /* @__PURE__ */ Te(qi, [["render", vn], ["__scopeId", "data-v-747d21f0"]]), _n = {
4667
+ name: "DataIA",
4668
+ components: {
4669
+ GSCSlider: we,
4670
+ GscSwitchComponent: yr,
4671
+ GSCSeasonSelect: Wr,
4672
+ GSCTournamentSelect: fo,
4673
+ DataIAGenerales: ci,
4674
+ DataIAEquipos: Ui,
4675
+ DataIAJugadores: Cn
4676
+ },
4677
+ props: {
4678
+ tournamentsApiUrl: {
4679
+ type: String,
4680
+ default: ""
4681
+ }
4682
+ },
4683
+ computed: {
4684
+ containerConfig() {
4685
+ return this.parentWidth, {
4686
+ width: this.parentWidth
4687
+ };
4688
+ },
4689
+ responsiveConfig() {
4690
+ const e = this.parentWidth;
4691
+ return {
4692
+ tabsWidth: e <= 460 ? `${Math.floor((e - 5) / 3)}px` : e < 680 ? "148px" : e <= 720 ? "122px" : (
4693
+ // ... resto de la lógica ...
4694
+ "173px"
4695
+ ),
4696
+ selectWidth: e <= 460 ? `${Math.floor((e - 10) / 2)}px` : e < 680 ? "218px" : "147px",
4697
+ fontSize: e <= 330 ? "font-size-xs" : e <= 460 ? "font-size-sm" : "font-size-default"
4698
+ };
4699
+ },
4700
+ sizeTabsMP() {
4701
+ const e = this.parentWidth;
4702
+ return e <= 480 ? `${Math.min(Math.floor((e - 72) / 3), 140)}px` : e < 680 ? "135px" : e < 690 ? "95px" : e <= 730 ? "100px" : e <= 760 ? "115px" : e <= 800 ? "125px" : "140px";
4703
+ },
4704
+ selectWidth() {
4705
+ const e = this.parentWidth;
4706
+ return e <= 460 ? `${Math.min(Math.floor((e - 15) / 2), 200)}px` : e < 680 ? "200px" : "147px";
4707
+ },
4708
+ headerFontSize() {
4709
+ const e = this.parentWidth;
4710
+ return e <= 330 ? "font-size-xs" : e <= 460 ? "font-size-sm" : "font-size-default";
4711
+ },
4712
+ disabledOptions() {
4713
+ return {
4714
+ Equipos: !this.torneoLiderId,
4715
+ Jugadores: !this.mostProductivePlayerId
4716
+ };
4717
+ }
4718
+ },
4719
+ data() {
4720
+ return {
4721
+ containerWidth: 0,
4722
+ containerSizeClass: "",
4723
+ resizeObserver: null,
4724
+ parentWidth: 0,
4725
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
4726
+ optionSelected: "Generales",
4727
+ selectedTournament: { seasons: [] },
4728
+ tournamentSelectedObj: {},
4729
+ tournamentType: "",
4730
+ seasonActive: 0,
4731
+ selectWidthGenerales: 200,
4732
+ selectWidthEquipos: 200,
4733
+ selectWidthJugadores: 200,
4734
+ mostProductivePlayerId: null,
4735
+ generalTableData: null,
4736
+ torneoLiderId: null
4737
+ };
4738
+ },
4739
+ watch: {
4740
+ seasonActive: {
4741
+ immediate: !0,
4742
+ async handler(e) {
4743
+ e && e !== 0 && await this.fetchGeneralTable(e);
4744
+ }
4745
+ }
4746
+ },
4747
+ mounted() {
4748
+ this.updateContainerWidth(), this.resizeObserver = new ResizeObserver((e) => {
4749
+ const r = e[0];
4750
+ r && (this.parentWidth = r.contentRect.width, this.updateContainerWidth());
4751
+ }), this.$refs.container && this.resizeObserver.observe(this.$refs.container), window.addEventListener("resize", this.handleResize);
4752
+ },
4753
+ beforeUnmount() {
4754
+ this.resizeObserver && this.resizeObserver.disconnect(), window.removeEventListener("resize", this.handleResize);
4755
+ },
4756
+ methods: {
4757
+ async selectedSeason(e) {
4758
+ console.log("Valores: season: ", e), this.seasonActive !== e.id && (this.seasonActive = e.id, this.optionSelected = "Generales", this.$emit("change-season-id", e.id));
4759
+ },
4760
+ async changeTournament(e) {
4761
+ e.id !== this.selectedTournament.id && (this.selectedTournament = e, this.tournamentType = e.tournament_type, this.optionSelected = "Generales", this.tournamentSelectedObj = {
4762
+ propName: "id",
4763
+ value: e.id,
4764
+ is_female: e.is_female == 1
4765
+ });
4766
+ },
4767
+ changeTabsGeneral(e) {
4768
+ e === "Equipos" && !this.torneoLiderId || e === "Jugadores" && !this.mostProductivePlayerId || (this.optionSelected = e);
4769
+ },
4770
+ handleResize() {
4771
+ this.$refs.container && (this.parentWidth = this.$refs.container.offsetWidth, this.updateContainerWidth());
4772
+ },
4773
+ updateContainerWidth() {
4774
+ this.$refs.container && (this.$refs.container.offsetHeight, this.parentWidth >= 1200 ? (this.containerWidth = 1200, this.containerSizeClass = "size-xl") : this.parentWidth >= 992 ? (this.containerWidth = this.parentWidth - 48, this.containerSizeClass = "size-lg") : this.parentWidth >= 680 ? (this.containerWidth = this.parentWidth - 32, this.containerSizeClass = "size-md") : (this.containerWidth = this.parentWidth - 16, this.containerSizeClass = "size-sm"));
4775
+ },
4776
+ handleMostProductive(e) {
4777
+ this.mostProductivePlayerId = e;
4778
+ },
4779
+ async fetchGeneralTable(e) {
4780
+ var r, t, o, s, i;
4781
+ try {
4782
+ const l = await _.create({
4783
+ headers: {
4784
+ Authorization: `${this.tokenPremium}`
4785
+ }
4786
+ }).get(
4787
+ `https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/${e}`
4788
+ );
4789
+ if (this.generalTableData = l.data, this.tournamentType === 0 && ((t = (r = this.generalTableData) == null ? void 0 : r.data) == null ? void 0 : t.length) > 0)
4790
+ this.torneoLiderId = this.generalTableData.data[0].team_id;
4791
+ else if (this.tournamentType === 2 && ((s = (o = this.generalTableData) == null ? void 0 : o.data) == null ? void 0 : s.length) > 0) {
4792
+ const a = [
4793
+ 175,
4794
+ 392,
4795
+ 550,
4796
+ 943,
4797
+ 962,
4798
+ 1054,
4799
+ 1402,
4800
+ 1405,
4801
+ 1410,
4802
+ 1492,
4803
+ 2098,
4804
+ 2156,
4805
+ 2304,
4806
+ 2315,
4807
+ 2340,
4808
+ 2343,
4809
+ 2346,
4810
+ 2349,
4811
+ 2730,
4812
+ 2832,
4813
+ 2950,
4814
+ 3036,
4815
+ 3407,
4816
+ 3454
4817
+ ], c = [...this.generalTableData.data].sort((m, v) => m.team_name.localeCompare(v.team_name)), u = c.find((m) => a.includes(m.team_id));
4818
+ this.torneoLiderId = u ? u.team_id : c[0].team_id, this.generalTableData.data = c;
4819
+ } else if (this.tournamentType === 1 && ((i = this.generalTableData) != null && i.groups)) {
4820
+ const c = this.generalTableData.groups.reduce((v, y) => v.concat(y.data || []), []).sort((v, y) => v.team_name.localeCompare(y.team_name)), u = [
4821
+ 175,
4822
+ 392,
4823
+ 550,
4824
+ 943,
4825
+ 962,
4826
+ 1054,
4827
+ 1402,
4828
+ 1405,
4829
+ 1410,
4830
+ 1492,
4831
+ 2098,
4832
+ 2156,
4833
+ 2304,
4834
+ 2315,
4835
+ 2340,
4836
+ 2343,
4837
+ 2346,
4838
+ 2349,
4839
+ 2730,
4840
+ 2832,
4841
+ 2950,
4842
+ 3036,
4843
+ 3407,
4844
+ 3454
4845
+ ], m = c.find((v) => u.includes(v.team_id));
4846
+ this.torneoLiderId = m ? m.team_id : c[0].team_id, this.generalTableData.data = c;
4847
+ }
4848
+ } catch (n) {
4849
+ console.error("Error al obtener datos de la tabla general:", n);
4850
+ }
4851
+ }
4852
+ }
4853
+ }, kn = {
4854
+ class: "data-ia-container",
4855
+ ref: "container"
4856
+ }, Tn = { class: "data-ia-header" }, In = { class: "tabs" }, xn = { class: "filters" }, On = { class: "league-select" }, Pn = { class: "season-select" };
4857
+ function An(e, r, t, o, s, i) {
4858
+ const n = $("GscSwitchComponent"), l = $("GSCTournamentSelect"), a = $("GSCSeasonSelect"), c = $("DataIAGenerales"), u = $("DataIAEquipos"), m = $("DataIAJugadores");
4859
+ return f(), p("div", kn, [
4860
+ h("div", Tn, [
4861
+ h("h2", {
4862
+ class: E(i.headerFontSize)
4863
+ }, "Datos inteligencia Artificial", 2),
4864
+ h("div", {
4865
+ class: E(["header-controls", s.containerSizeClass])
4866
+ }, [
4867
+ h("div", In, [
4868
+ z(n, {
4869
+ type: 2,
4870
+ buttons: ["Generales", "Equipos", "Jugadores"],
4871
+ "selected-option": s.optionSelected,
4872
+ "disabled-options": i.disabledOptions,
4873
+ "font-size": "14px",
4874
+ "font-family": "Poppins-Medium",
4875
+ width: i.sizeTabsMP,
4876
+ borderWidth: "1px",
4877
+ arrow: !1,
4878
+ height: "46px",
4879
+ onInput: i.changeTabsGeneral
4880
+ }, null, 8, ["selected-option", "disabled-options", "width", "onInput"])
4881
+ ]),
4882
+ h("div", xn, [
4883
+ h("div", On, [
4884
+ z(l, {
4885
+ width: i.selectWidth,
4886
+ "current-season-id": e.currentSeasonId,
4887
+ "api-url": t.tournamentsApiUrl,
4888
+ onInput: i.changeTournament
4889
+ }, null, 8, ["width", "current-season-id", "api-url", "onInput"])
4890
+ ]),
4891
+ h("div", Pn, [
4892
+ z(a, {
4893
+ width: i.selectWidth,
4894
+ "current-season-id": e.currentSeasonId,
4895
+ seasons: s.selectedTournament.seasons,
4896
+ onInput: i.selectedSeason
4897
+ }, null, 8, ["width", "current-season-id", "seasons", "onInput"])
4898
+ ])
4899
+ ])
4900
+ ], 2)
4901
+ ]),
4902
+ h("div", {
4903
+ class: E(["cards-container", s.containerSizeClass]),
4904
+ style: { width: "100%" }
4905
+ }, [
4906
+ Q(z(c, {
4907
+ "current-season-id": s.seasonActive,
4908
+ onMostProductive: i.handleMostProductive
4909
+ }, null, 8, ["current-season-id", "onMostProductive"]), [
4910
+ [re, s.optionSelected === "Generales"]
4911
+ ]),
4912
+ s.torneoLiderId ? Q((f(), q(u, {
4913
+ key: 0,
4914
+ "current-season-id": s.seasonActive,
4915
+ "torneo-lider-id": s.torneoLiderId
4916
+ }, null, 8, ["current-season-id", "torneo-lider-id"])), [
4917
+ [re, s.optionSelected === "Equipos"]
4918
+ ]) : S("", !0),
4919
+ s.mostProductivePlayerId ? Q((f(), q(m, {
4920
+ key: 1,
4921
+ "current-season-id": s.seasonActive,
4922
+ "most-productive-player": s.mostProductivePlayerId
4923
+ }, null, 8, ["current-season-id", "most-productive-player"])), [
4924
+ [re, s.optionSelected === "Jugadores"]
4925
+ ]) : S("", !0)
4926
+ ], 2)
4927
+ ], 512);
4928
+ }
4929
+ const En = /* @__PURE__ */ Te(_n, [["render", An], ["__scopeId", "data-v-64df3f2a"]]);
4930
+ export {
4931
+ En as D,
4932
+ ko as h
4933
+ };