@opexa/portal-sdk 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,14 +1,15 @@
1
1
  var Te = Object.defineProperty;
2
2
  var Ce = (o, e, t) => e in o ? Te(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var c = (o, e, t) => Ce(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { ObjectId as A } from "@opexa/object-id";
5
- import { ObjectId as Ot } from "@opexa/object-id";
3
+ var m = (o, e, t) => Ce(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ObjectId as E } from "@opexa/object-id";
5
+ import { ObjectId as Gt } from "@opexa/object-id";
6
6
  const S = {
7
7
  Account: 8,
8
8
  Deposit: 9,
9
9
  Withdrawal: 14,
10
10
  Verification: 15,
11
11
  File: 16,
12
+ Game: 203,
12
13
  GameSession: 204,
13
14
  MayaSession: 230
14
15
  };
@@ -20,15 +21,15 @@ function n(o, ...e) {
20
21
  }
21
22
  return t.trim();
22
23
  }
23
- const Y = n`
24
+ const x = n`
24
25
  fragment FileFragment on File {
25
26
  id
26
27
  url
27
28
  status
28
29
  dateTimeCreated
29
30
  }
30
- `, Ie = n`
31
- ${Y}
31
+ `, ve = n`
32
+ ${x}
32
33
 
33
34
  query File($id: ObjectId!) {
34
35
  node(id: $id) {
@@ -37,7 +38,7 @@ const Y = n`
37
38
  }
38
39
  }
39
40
  }
40
- `, Me = n`
41
+ `, Ne = n`
41
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
42
43
  uploadPrivateImageFile(input: $input) {
43
44
  ... on FileFormatNotSupportedError {
@@ -51,7 +52,7 @@ const Y = n`
51
52
  }
52
53
  }
53
54
  }
54
- `, Ne = n`
55
+ `, Ie = n`
55
56
  query Wallet {
56
57
  wallet {
57
58
  id
@@ -61,7 +62,7 @@ const Y = n`
61
62
  dateTimeLastUpdated
62
63
  }
63
64
  }
64
- `, De = n`
65
+ `, Me = n`
65
66
  query PointsWallet {
66
67
  pointsWallet {
67
68
  id
@@ -70,7 +71,7 @@ const Y = n`
70
71
  dateTimeCreated
71
72
  }
72
73
  }
73
- `, ve = n`
74
+ `, De = n`
74
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
75
76
  pointsToCashConversion(input: $input) {
76
77
  ... on InsufficientPointsError {
@@ -78,23 +79,17 @@ const Y = n`
78
79
  }
79
80
  }
80
81
  }
81
- `, H = n`
82
- fragment GameFragment on Game {
83
- id
84
- type
85
- name
86
- provider
87
- }
88
- `, ge = n`
89
- ${H}
90
-
82
+ `, ye = n`
91
83
  query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
92
84
  games(first: $first, after: $after, filter: $filter) {
93
85
  edges {
94
86
  cursor
95
87
  node {
96
88
  ... on Game {
97
- ...GameFragment
89
+ id
90
+ type
91
+ name
92
+ provider
98
93
  }
99
94
  }
100
95
  }
@@ -105,20 +100,22 @@ const Y = n`
105
100
  }
106
101
  }
107
102
  }
108
- `, Ee = n`
109
- ${H}
110
-
103
+ `, ge = n`
111
104
  query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
112
105
  gamesByName(first: $first, search: $search, filter: $filter) {
113
- id
106
+ ... on Game {
107
+ id
108
+ type
109
+ name
110
+ provider
111
+ }
114
112
  }
115
113
  }
116
- `, Re = n`
114
+ `, Ee = n`
117
115
  query GameSession($id: ObjectId!) {
118
116
  node(id: $id) {
119
117
  ... on GameSession {
120
118
  id
121
- game
122
119
  status
123
120
  launchUrl
124
121
  dateTimeCreated
@@ -126,7 +123,7 @@ const Y = n`
126
123
  }
127
124
  }
128
125
  }
129
- `, Ae = n`
126
+ `, Se = n`
130
127
  mutation CreateGameSession($input: CreateGameSessionInput!) {
131
128
  createGameSession(input: $input) {
132
129
  ... on GameDoesNotExistError {
@@ -134,26 +131,11 @@ const Y = n`
134
131
  }
135
132
  }
136
133
  }
137
- `, Pe = n`
134
+ `, Re = n`
138
135
  mutation EndGameSession($input: EndGameSessionInput!) {
139
136
  endGameSession(input: $input)
140
137
  }
141
- `, Ge = n`
142
- query GameSession($id: ObjectId!) {
143
- node(id: $id) {
144
- ... on GameSession {
145
- id
146
- game {
147
- id
148
- }
149
- status
150
- launchUrl
151
- dateTimeCreated
152
- dateTimeLastUpdated
153
- }
154
- }
155
- }
156
- `, xe = n`
138
+ `, Pe = n`
157
139
  mutation EndGameSession($input: EndGameSessionInput!) {
158
140
  endGameSession(input: $input) {
159
141
  ... on GameSessionDoesNotExistError {
@@ -167,7 +149,7 @@ const Y = n`
167
149
  }
168
150
  }
169
151
  }
170
- `, Ue = n`
152
+ `, xe = n`
171
153
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
172
154
  announcements(first: $first, after: $after, filter: $filter) {
173
155
  edges {
@@ -193,7 +175,7 @@ const Y = n`
193
175
  }
194
176
  }
195
177
  }
196
- `, Oe = n`
178
+ `, Ge = n`
197
179
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
198
180
  member {
199
181
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -260,7 +242,7 @@ const Y = n`
260
242
  }
261
243
  }
262
244
  }
263
- `, $e = n`
245
+ `, Oe = n`
264
246
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
265
247
  createGCashWithdrawal(input: $input) {
266
248
  ... on AccountNotVerifiedError {
@@ -283,7 +265,7 @@ const Y = n`
283
265
  }
284
266
  }
285
267
  }
286
- `, qe = n`
268
+ `, Ue = n`
287
269
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
288
270
  createMayaWithdrawal(input: $input) {
289
271
  ... on AccountNotVerifiedError {
@@ -326,7 +308,7 @@ const Y = n`
326
308
  }
327
309
  }
328
310
  }
329
- `, We = n`
311
+ `, $e = n`
330
312
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
331
313
  createBankWithdrawal(input: $input) {
332
314
  ... on MobileNumberNotVerifiedError {
@@ -349,11 +331,11 @@ const Y = n`
349
331
  }
350
332
  }
351
333
  }
352
- `, Le = n`
334
+ `, We = n`
353
335
  query RemainingDailyWithdrawalsCount {
354
336
  remainingDailyWithdrawalsCount
355
337
  }
356
- `, Fe = n`
338
+ `, qe = n`
357
339
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
358
340
  member {
359
341
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -382,7 +364,7 @@ const Y = n`
382
364
  }
383
365
  }
384
366
  }
385
- `, Ve = n`
367
+ `, Le = n`
386
368
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
387
369
  createGCashDeposit(input: $input) {
388
370
  ... on DepositPromoMaximumAmountExceededError {
@@ -411,7 +393,7 @@ const Y = n`
411
393
  }
412
394
  }
413
395
  }
414
- `, je = n`
396
+ `, Ve = n`
415
397
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
416
398
  createMayaDeposit(input: $input) {
417
399
  ... on DepositPromoMaximumAmountExceededError {
@@ -440,7 +422,7 @@ const Y = n`
440
422
  }
441
423
  }
442
424
  }
443
- `, Ye = n`
425
+ `, Fe = n`
444
426
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
445
427
  createMayaAppDeposit(input: $input) {
446
428
  ... on DepositPromoMaximumAmountExceededError {
@@ -501,15 +483,13 @@ const Y = n`
501
483
  }
502
484
  }
503
485
  }
504
- `, Qe = n`
486
+ `, Ye = n`
505
487
  query DepositsCount {
506
488
  member {
507
489
  depositsCount
508
490
  }
509
491
  }
510
- `, Ke = n`
511
- ${H}
512
-
492
+ `, je = n`
513
493
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
514
494
  member {
515
495
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -521,7 +501,9 @@ const Y = n`
521
501
  id
522
502
  serialCode
523
503
  game {
524
- ...GameFragment
504
+ name
505
+ type
506
+ provider
525
507
  }
526
508
  bet
527
509
  payout
@@ -547,7 +529,7 @@ const Y = n`
547
529
  }
548
530
  }
549
531
  }
550
- `, ze = n`
532
+ `, Qe = n`
551
533
  query LatestBetRecords {
552
534
  latestBetRecords {
553
535
  id
@@ -556,7 +538,9 @@ const Y = n`
556
538
  name
557
539
  }
558
540
  game {
559
- ...GameFragment
541
+ name
542
+ type
543
+ provider
560
544
  }
561
545
  bet
562
546
  payout
@@ -565,9 +549,7 @@ const Y = n`
565
549
  dateTimeCreated
566
550
  }
567
551
  }
568
-
569
- ${H}
570
- `, Je = n`
552
+ `, Ke = n`
571
553
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
572
554
  member {
573
555
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -593,8 +575,8 @@ const Y = n`
593
575
  }
594
576
  }
595
577
  }
596
- `, z = n`
597
- ${Y}
578
+ `, U = n`
579
+ ${x}
598
580
 
599
581
  fragment PromoFragment on Promo {
600
582
  id
@@ -612,24 +594,24 @@ const Y = n`
612
594
  dateTimeCreated
613
595
  dateTimeLastUpdated
614
596
  }
615
- `, Xe = n`
616
- ${z}
597
+ `, ze = n`
598
+ ${U}
617
599
 
618
600
  query Promos {
619
601
  promos {
620
602
  ...PromoFragment
621
603
  }
622
604
  }
623
- `, Ze = n`
624
- ${z}
605
+ `, Je = n`
606
+ ${U}
625
607
 
626
608
  query AvailablePromos($filter: PromoFilterInput) {
627
609
  availablePromos(filter: $filter) {
628
610
  ...PromoFragment
629
611
  }
630
612
  }
631
- `, Se = n`
632
- ${Y}
613
+ `, be = n`
614
+ ${x}
633
615
 
634
616
  fragment CashbackFragment on Cashback {
635
617
  id
@@ -644,16 +626,16 @@ const Y = n`
644
626
  dateTimeCreated
645
627
  dateTimeLastUpdated
646
628
  }
647
- `, et = n`
648
- ${Se}
629
+ `, Xe = n`
630
+ ${be}
649
631
 
650
632
  query Cashbacks {
651
633
  cashbacks {
652
634
  ...CashbackFragment
653
635
  }
654
636
  }
655
- `, tt = n`
656
- ${z}
637
+ `, Ze = n`
638
+ ${U}
657
639
 
658
640
  query Bonus {
659
641
  bonus {
@@ -681,8 +663,8 @@ const Y = n`
681
663
  dateTimeLastUpdated
682
664
  }
683
665
  }
684
- `, at = n`
685
- ${Se}
666
+ `, et = n`
667
+ ${be}
686
668
 
687
669
  query CashbackBonuses {
688
670
  cashbackBonuses {
@@ -695,7 +677,7 @@ const Y = n`
695
677
  dateTimeLastUpdated
696
678
  }
697
679
  }
698
- `, rt = n`
680
+ `, tt = n`
699
681
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
700
682
  claimCashbackBonus(input: $input) {
701
683
  ... on CashbackBonusDoesNotExistError {
@@ -703,13 +685,13 @@ const Y = n`
703
685
  }
704
686
  }
705
687
  }
706
- `, ot = n`
688
+ `, at = n`
707
689
  query Member {
708
690
  member {
709
691
  dateTimeLastActive
710
692
  }
711
693
  }
712
- `, nt = n`
694
+ `, rt = n`
713
695
  query MemberAccount {
714
696
  memberAccount: self {
715
697
  ... on MemberAccount {
@@ -733,8 +715,8 @@ const Y = n`
733
715
  }
734
716
  }
735
717
  }
736
- `, it = n`
737
- ${Y}
718
+ `, ot = n`
719
+ ${x}
738
720
 
739
721
  query MemberVerification {
740
722
  memberAccount: self {
@@ -757,7 +739,7 @@ const Y = n`
757
739
  }
758
740
  }
759
741
  }
760
- `, st = n`
742
+ `, nt = n`
761
743
  mutation RegisterMemberAccount(
762
744
  $input: RegisterMemberAccountInput!
763
745
  $referralCode: String
@@ -793,7 +775,7 @@ const Y = n`
793
775
  }
794
776
  }
795
777
  }
796
- `, mt = n`
778
+ `, it = n`
797
779
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
798
780
  updateMemberAccount(input: $input) {
799
781
  ... on AccountNameNotAvailableError {
@@ -819,7 +801,7 @@ const Y = n`
819
801
  }
820
802
  }
821
803
  }
822
- `, ct = n`
804
+ `, st = n`
823
805
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
824
806
  resetPassword(input: $input, verificationCode: $verificationCode) {
825
807
  ... on AccountNotFoundError {
@@ -830,11 +812,11 @@ const Y = n`
830
812
  }
831
813
  }
832
814
  }
833
- `, dt = n`
815
+ `, ct = n`
834
816
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
835
817
  deleteMemberAccount(input: $input)
836
818
  }
837
- `, ut = n`
819
+ `, mt = n`
838
820
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
839
821
  verifyMobileNumber(input: $input) {
840
822
  ... on InvalidSMSVerificationCodeError {
@@ -845,7 +827,7 @@ const Y = n`
845
827
  }
846
828
  }
847
829
  }
848
- `, lt = n`
830
+ `, dt = n`
849
831
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
850
832
  createMemberVerification(input: $input) {
851
833
  ... on FileDoesNotExistError {
@@ -859,7 +841,7 @@ const Y = n`
859
841
  }
860
842
  }
861
843
  }
862
- `, pt = n`
844
+ `, ut = n`
863
845
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
864
846
  updateMemberVerification(input: $input) {
865
847
  ... on FileDoesNotExistError {
@@ -876,7 +858,7 @@ const Y = n`
876
858
  }
877
859
  }
878
860
  }
879
- `, ft = n`
861
+ `, lt = n`
880
862
  query ProfileCompletion {
881
863
  profileCompletion {
882
864
  completionPercentage
@@ -887,7 +869,7 @@ const Y = n`
887
869
  accountPassword
888
870
  }
889
871
  }
890
- `, ht = n`
872
+ `, pt = n`
891
873
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
892
874
  sendVerificationCode(input: $input) {
893
875
  ... on InvalidPlatformError {
@@ -898,7 +880,7 @@ const Y = n`
898
880
  }
899
881
  }
900
882
  }
901
- `, wt = n`
883
+ `, ft = n`
902
884
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
903
885
  minimumAmount
904
886
  maximumAmount
@@ -952,7 +934,7 @@ const Y = n`
952
934
  multiplier
953
935
  }
954
936
  }
955
- `, yt = n`
937
+ `, ht = n`
956
938
  query MayaSession($id: ObjectId!) {
957
939
  mayaSession(id: $id) {
958
940
  id
@@ -1015,21 +997,21 @@ function d(o) {
1015
997
  }[o]
1016
998
  };
1017
999
  }
1018
- class gt {
1000
+ class wt {
1019
1001
  constructor(e) {
1020
- c(this, "client");
1002
+ m(this, "client");
1021
1003
  this.client = e;
1022
1004
  }
1023
1005
  /** aka `Query.self` */
1024
1006
  async memberAccount() {
1025
- const e = await this.client.request(nt);
1007
+ const e = await this.client.request(rt);
1026
1008
  return e.ok ? {
1027
1009
  ok: !0,
1028
1010
  data: e.data.memberAccount
1029
1011
  } : e;
1030
1012
  }
1031
1013
  async registerMemberAccount(e) {
1032
- const t = await this.client.request(st, e);
1014
+ const t = await this.client.request(nt, e);
1033
1015
  return t.ok ? t.data.registerMemberAccount ? {
1034
1016
  ok: !1,
1035
1017
  error: d(t.data.registerMemberAccount.__typename)
@@ -1038,7 +1020,7 @@ class gt {
1038
1020
  } : t;
1039
1021
  }
1040
1022
  async updateMemberAccount(e) {
1041
- const t = await this.client.request(mt, e);
1023
+ const t = await this.client.request(it, e);
1042
1024
  return t.ok ? t.data.updateMemberAccount ? {
1043
1025
  ok: !1,
1044
1026
  error: d(t.data.updateMemberAccount.__typename)
@@ -1047,7 +1029,7 @@ class gt {
1047
1029
  } : t;
1048
1030
  }
1049
1031
  async deleteMemberAccount(e) {
1050
- const t = await this.client.request(dt, e);
1032
+ const t = await this.client.request(ct, e);
1051
1033
  return t.ok ? t.data.deleteMemberAccount ? {
1052
1034
  ok: !0
1053
1035
  } : {
@@ -1060,7 +1042,7 @@ class gt {
1060
1042
  }
1061
1043
  async resetPassword(e) {
1062
1044
  const t = await this.client.request(
1063
- ct,
1045
+ st,
1064
1046
  e
1065
1047
  );
1066
1048
  return t.ok ? t.data.resetPassword ? {
@@ -1071,14 +1053,14 @@ class gt {
1071
1053
  } : t;
1072
1054
  }
1073
1055
  async profileCompletion() {
1074
- const e = await this.client.request(ft);
1056
+ const e = await this.client.request(lt);
1075
1057
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1076
1058
  }
1077
1059
  async platform() {
1078
- return await this.client.request(wt);
1060
+ return await this.client.request(ft);
1079
1061
  }
1080
1062
  async sendVerificationCode(e) {
1081
- const t = await this.client.request(ht, e);
1063
+ const t = await this.client.request(pt, e);
1082
1064
  return t.ok ? t.data.sendVerificationCode ? {
1083
1065
  ok: !1,
1084
1066
  error: d(t.data.sendVerificationCode.__typename)
@@ -1087,7 +1069,7 @@ class gt {
1087
1069
  } : t;
1088
1070
  }
1089
1071
  async verifyMobileNumber(e) {
1090
- const t = await this.client.request(ut, e);
1072
+ const t = await this.client.request(mt, e);
1091
1073
  return t.ok ? t.data.verifyMobileNumber ? {
1092
1074
  ok: !1,
1093
1075
  error: d(t.data.verifyMobileNumber.__typename)
@@ -1096,7 +1078,7 @@ class gt {
1096
1078
  } : t;
1097
1079
  }
1098
1080
  async createMemberVerification(e) {
1099
- const t = await this.client.request(lt, e);
1081
+ const t = await this.client.request(dt, e);
1100
1082
  return t.ok ? t.data.createMemberVerification ? {
1101
1083
  ok: !1,
1102
1084
  error: d(t.data.createMemberVerification.__typename)
@@ -1105,7 +1087,7 @@ class gt {
1105
1087
  } : t;
1106
1088
  }
1107
1089
  async updateMemberVerification(e) {
1108
- const t = await this.client.request(pt, e);
1090
+ const t = await this.client.request(ut, e);
1109
1091
  return t.ok ? t.data.updateMemberVerification ? {
1110
1092
  ok: !1,
1111
1093
  error: d(t.data.updateMemberVerification.__typename)
@@ -1114,7 +1096,7 @@ class gt {
1114
1096
  } : t;
1115
1097
  }
1116
1098
  async memberVerification() {
1117
- const e = await this.client.request(it);
1099
+ const e = await this.client.request(ot);
1118
1100
  return e.ok ? {
1119
1101
  ok: !0,
1120
1102
  data: e.data.memberAccount.verification
@@ -1122,7 +1104,7 @@ class gt {
1122
1104
  }
1123
1105
  async announcements(e) {
1124
1106
  const t = await this.client.request(
1125
- Ue,
1107
+ xe,
1126
1108
  e
1127
1109
  );
1128
1110
  return t.ok ? {
@@ -1131,14 +1113,14 @@ class gt {
1131
1113
  } : t;
1132
1114
  }
1133
1115
  }
1134
- function u(o, e) {
1135
- const t = Q[o] ? Q[o] : Q[500];
1116
+ function h(o, e) {
1117
+ const t = G[o] ? G[o] : G[500];
1136
1118
  return {
1137
1119
  name: t.name,
1138
1120
  message: e ?? t.message
1139
1121
  };
1140
1122
  }
1141
- const Q = {
1123
+ const G = {
1142
1124
  400: { name: "HttpBadRequest", message: "Bad Request" },
1143
1125
  401: { name: "HttpUnauthorized", message: "Unauthorized" },
1144
1126
  403: { name: "HttpForbidden", message: "Forbidden" },
@@ -1147,10 +1129,10 @@ const Q = {
1147
1129
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1148
1130
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1149
1131
  };
1150
- class Et {
1132
+ class yt {
1151
1133
  constructor(e) {
1152
- c(this, "url");
1153
- c(this, "platform");
1134
+ m(this, "url");
1135
+ m(this, "platform");
1154
1136
  this.url = e.url, this.platform = e.platform;
1155
1137
  }
1156
1138
  async createSession(e) {
@@ -1181,12 +1163,12 @@ class Et {
1181
1163
  error: d("AccountBlacklisted")
1182
1164
  } : {
1183
1165
  ok: !1,
1184
- error: u(a.status)
1166
+ error: h(a.status)
1185
1167
  };
1186
1168
  } catch {
1187
1169
  return {
1188
1170
  ok: !1,
1189
- error: u(500)
1171
+ error: h(500)
1190
1172
  };
1191
1173
  }
1192
1174
  }
@@ -1214,12 +1196,12 @@ class Et {
1214
1196
  error: d("InvalidTokenOrSecretAnswer")
1215
1197
  } : {
1216
1198
  ok: !1,
1217
- error: u(a.status)
1199
+ error: h(a.status)
1218
1200
  };
1219
1201
  } catch {
1220
1202
  return {
1221
1203
  ok: !1,
1222
- error: u(500)
1204
+ error: h(500)
1223
1205
  };
1224
1206
  }
1225
1207
  }
@@ -1247,12 +1229,12 @@ class Et {
1247
1229
  error: d("InvalidToken")
1248
1230
  } : {
1249
1231
  ok: !1,
1250
- error: u(t.status)
1232
+ error: h(t.status)
1251
1233
  };
1252
1234
  } catch {
1253
1235
  return {
1254
1236
  ok: !1,
1255
- error: u(500)
1237
+ error: h(500)
1256
1238
  };
1257
1239
  }
1258
1240
  }
@@ -1267,9 +1249,9 @@ class Et {
1267
1249
  Authorization: `Bearer ${e}`
1268
1250
  }
1269
1251
  });
1270
- return t.ok ? { ok: !0 } : { ok: !1, error: u(t.status) };
1252
+ return t.ok ? { ok: !0 } : { ok: !1, error: h(t.status) };
1271
1253
  } catch {
1272
- return { ok: !1, error: u(500) };
1254
+ return { ok: !1, error: h(500) };
1273
1255
  }
1274
1256
  }
1275
1257
  async verifySession(e) {
@@ -1288,20 +1270,20 @@ class Et {
1288
1270
  }
1289
1271
  }
1290
1272
  }
1291
- class At {
1273
+ class gt {
1292
1274
  constructor(e) {
1293
- c(this, "client");
1275
+ m(this, "client");
1294
1276
  this.client = e;
1295
1277
  }
1296
1278
  async file(e) {
1297
- const t = await this.client.request(Ie, e);
1279
+ const t = await this.client.request(ve, e);
1298
1280
  return t.ok ? {
1299
1281
  ok: !0,
1300
1282
  data: t.data.node
1301
1283
  } : t;
1302
1284
  }
1303
1285
  async uploadPrivateImageFile(e) {
1304
- const t = await this.client.upload(Me, e);
1286
+ const t = await this.client.upload(Ne, e);
1305
1287
  return t.ok ? t.data.uploadPrivateImageFile ? {
1306
1288
  ok: !1,
1307
1289
  error: d(t.data.uploadPrivateImageFile.__typename)
@@ -1310,48 +1292,48 @@ class At {
1310
1292
  } : t;
1311
1293
  }
1312
1294
  }
1313
- class St {
1295
+ class Et {
1314
1296
  constructor(e) {
1315
- c(this, "client");
1297
+ m(this, "client");
1316
1298
  this.client = e;
1317
1299
  }
1318
1300
  async betRecords(e) {
1319
1301
  const t = await this.client.request(
1320
- Ke,
1302
+ je,
1321
1303
  e
1322
1304
  );
1323
1305
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1324
1306
  }
1325
1307
  async transactionRecords(e) {
1326
- const t = await this.client.request(Je, e);
1308
+ const t = await this.client.request(Ke, e);
1327
1309
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1328
1310
  }
1329
1311
  async withdrawalRecords(e) {
1330
1312
  const t = await this.client.request(
1331
- Oe,
1313
+ Ge,
1332
1314
  e
1333
1315
  );
1334
1316
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1335
1317
  }
1336
1318
  async depositRecords(e) {
1337
1319
  const t = await this.client.request(
1338
- Fe,
1320
+ qe,
1339
1321
  e
1340
1322
  );
1341
1323
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1342
1324
  }
1343
1325
  async depositsCount() {
1344
- const e = await this.client.request(Qe);
1326
+ const e = await this.client.request(Ye);
1345
1327
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1346
1328
  }
1347
1329
  async member() {
1348
- const e = await this.client.request(ot);
1330
+ const e = await this.client.request(at);
1349
1331
  return e.ok ? { ok: e.ok, data: e.data.member } : e;
1350
1332
  }
1351
1333
  }
1352
- class bt {
1334
+ class St {
1353
1335
  constructor(e) {
1354
- c(this, "url");
1336
+ m(this, "url");
1355
1337
  this.url = e.url;
1356
1338
  }
1357
1339
  gameThumbnails(e) {
@@ -1361,32 +1343,32 @@ class bt {
1361
1343
  ];
1362
1344
  }
1363
1345
  }
1364
- class be {
1346
+ class Ae {
1365
1347
  constructor(e) {
1366
- c(this, "client");
1348
+ m(this, "client");
1367
1349
  this.client = e;
1368
1350
  }
1369
1351
  async promos() {
1370
- const e = await this.client.request(Xe);
1352
+ const e = await this.client.request(ze);
1371
1353
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1372
1354
  }
1373
1355
  async cashbacks() {
1374
- const e = await this.client.request(et);
1356
+ const e = await this.client.request(Xe);
1375
1357
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1376
1358
  }
1377
1359
  async availablePromos(e) {
1378
1360
  const t = await this.client.request(
1379
- Ze,
1361
+ Je,
1380
1362
  e
1381
1363
  );
1382
1364
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1383
1365
  }
1384
1366
  async cashbackBonuses() {
1385
- const e = await this.client.request(at);
1367
+ const e = await this.client.request(et);
1386
1368
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1387
1369
  }
1388
1370
  async claimCashbackBonus(e) {
1389
- const t = await this.client.request(rt, e);
1371
+ const t = await this.client.request(tt, e);
1390
1372
  return t.ok ? t.data.claimCashbackBonus ? {
1391
1373
  ok: !1,
1392
1374
  error: d(t.data.claimCashbackBonus.__typename)
@@ -1398,11 +1380,11 @@ class be {
1398
1380
  };
1399
1381
  }
1400
1382
  async bonus() {
1401
- const e = await this.client.request(tt);
1383
+ const e = await this.client.request(Ze);
1402
1384
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1403
1385
  }
1404
1386
  async wallet() {
1405
- const e = await this.client.request(Ne);
1387
+ const e = await this.client.request(Ie);
1406
1388
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1407
1389
  }
1408
1390
  async deposit(e) {
@@ -1413,7 +1395,7 @@ class be {
1413
1395
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
1414
1396
  }
1415
1397
  async createGCashDeposit(e) {
1416
- const t = await this.client.request(Ve, e);
1398
+ const t = await this.client.request(Le, e);
1417
1399
  return t.ok ? t.data.createGCashDeposit ? {
1418
1400
  ok: !1,
1419
1401
  error: d(t.data.createGCashDeposit.__typename)
@@ -1422,7 +1404,7 @@ class be {
1422
1404
  } : t;
1423
1405
  }
1424
1406
  async createMayaDeposit(e) {
1425
- const t = await this.client.request(je, e);
1407
+ const t = await this.client.request(Ve, e);
1426
1408
  return t.ok ? t.data.createMayaDeposit ? {
1427
1409
  ok: !1,
1428
1410
  error: d(t.data.createMayaDeposit.__typename)
@@ -1431,7 +1413,7 @@ class be {
1431
1413
  } : t;
1432
1414
  }
1433
1415
  async createMayaAppDeposit(e) {
1434
- const t = await this.client.request(Ye, e);
1416
+ const t = await this.client.request(Fe, e);
1435
1417
  return t.ok ? t.data.createMayaAppDeposit ? {
1436
1418
  ok: !1,
1437
1419
  error: d(t.data.createMayaAppDeposit.__typename)
@@ -1440,7 +1422,7 @@ class be {
1440
1422
  } : t;
1441
1423
  }
1442
1424
  async createGCashWithdrawal(e) {
1443
- const t = await this.client.request($e, e);
1425
+ const t = await this.client.request(Oe, e);
1444
1426
  return t.ok ? t.data.createGCashWithdrawal ? {
1445
1427
  ok: !1,
1446
1428
  error: d(t.data.createGCashWithdrawal.__typename)
@@ -1449,7 +1431,7 @@ class be {
1449
1431
  } : t;
1450
1432
  }
1451
1433
  async createMayaWithdrawal(e) {
1452
- const t = await this.client.request(qe, e);
1434
+ const t = await this.client.request(Ue, e);
1453
1435
  return t.ok ? t.data.createMayaWithdrawal ? {
1454
1436
  ok: !1,
1455
1437
  error: d(t.data.createMayaWithdrawal.__typename)
@@ -1467,7 +1449,7 @@ class be {
1467
1449
  } : t;
1468
1450
  }
1469
1451
  async createBankWithdrawal(e) {
1470
- const t = await this.client.request(We, e);
1452
+ const t = await this.client.request($e, e);
1471
1453
  return t.ok ? t.data.createBankWithdrawal ? {
1472
1454
  ok: !1,
1473
1455
  error: d(t.data.createBankWithdrawal.__typename)
@@ -1477,16 +1459,16 @@ class be {
1477
1459
  }
1478
1460
  async remainingDailyWithdrawalsCount() {
1479
1461
  const e = await this.client.request(
1480
- Le
1462
+ We
1481
1463
  );
1482
1464
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1483
1465
  }
1484
1466
  async pointsWallet() {
1485
- const e = await this.client.request(De);
1467
+ const e = await this.client.request(Me);
1486
1468
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1487
1469
  }
1488
1470
  async pointsToCashConversion(e) {
1489
- const t = await this.client.request(ve, e);
1471
+ const t = await this.client.request(De, e);
1490
1472
  return t.ok ? t.data.pointsToCashConversion ? {
1491
1473
  ok: !1,
1492
1474
  error: d(t.data.pointsToCashConversion.__typename)
@@ -1496,31 +1478,33 @@ class be {
1496
1478
  }
1497
1479
  async mayaSession(e) {
1498
1480
  const t = await this.client.request(
1499
- yt,
1481
+ ht,
1500
1482
  e
1501
1483
  );
1502
1484
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
1503
1485
  }
1486
+ /** @deprecated */
1504
1487
  async games(e) {
1505
- const t = await this.client.request(ge, e);
1488
+ const t = await this.client.request(ye, e);
1506
1489
  return t.ok ? { ok: t.ok, data: t.data.games } : t;
1507
1490
  }
1491
+ /** @deprecated */
1508
1492
  async gamesByName(e) {
1509
1493
  const t = await this.client.request(
1510
- Ee,
1494
+ ge,
1511
1495
  e
1512
1496
  );
1513
1497
  return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1514
1498
  }
1515
1499
  async gameSession(e) {
1516
1500
  const t = await this.client.request(
1517
- Re,
1501
+ Ee,
1518
1502
  e
1519
1503
  );
1520
1504
  return t.ok ? { ok: !0, data: t.data.node } : t;
1521
1505
  }
1522
1506
  async createGameSession(e) {
1523
- const t = await this.client.request(Ae, e);
1507
+ const t = await this.client.request(Se, e);
1524
1508
  return t.ok ? t.data.createGameSession ? {
1525
1509
  ok: !1,
1526
1510
  error: d(t.data.createGameSession.__typename)
@@ -1530,7 +1514,7 @@ class be {
1530
1514
  }
1531
1515
  async endGameSession(e) {
1532
1516
  const t = await this.client.request(
1533
- Pe,
1517
+ Re,
1534
1518
  e
1535
1519
  );
1536
1520
  return t.ok ? t.data.endGameSession ? {
@@ -1544,77 +1528,53 @@ class be {
1544
1528
  } : t;
1545
1529
  }
1546
1530
  }
1547
- class kt {
1531
+ class bt {
1548
1532
  constructor(e) {
1549
- c(this, "url");
1550
- c(this, "siteId");
1551
- c(this, "platformId");
1533
+ m(this, "url");
1534
+ m(this, "siteId");
1535
+ m(this, "platformId");
1552
1536
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1553
1537
  }
1554
- async siteInfo() {
1555
- const e = new Request(`${this.url}/sites/${this.siteId}`, {
1556
- method: "GET",
1557
- headers: {
1558
- Accept: "application/json",
1559
- "Content-Type": "application/json",
1560
- "Platform-ID": this.platformId
1561
- }
1562
- });
1563
- try {
1564
- const t = await fetch(e);
1565
- if (!t.ok) return { ok: !1, error: u(t.status) };
1566
- const { data: a } = await t.json();
1567
- return {
1568
- ok: !0,
1569
- data: a
1570
- };
1571
- } catch {
1572
- return {
1573
- ok: !1,
1574
- error: u(500)
1575
- };
1576
- }
1538
+ async self() {
1539
+ const e = await this.getJson(`/sites/${this.siteId}`);
1540
+ return e.ok ? {
1541
+ ok: !0,
1542
+ data: e.data.data
1543
+ } : e;
1577
1544
  }
1578
1545
  async games(e) {
1579
- var r, s, m, l, f, p, y, h, _, T, C, I, M, N, D, v, R, P, G, x, U, O, $, q, B, W;
1546
+ var r, s, c, u, l, p, y, f, A, _, k, T, C, v, N, I;
1580
1547
  const t = new URLSearchParams();
1581
- e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.name) != null && s.equal && t.set("filter[name][eq]", e.filter.name.equal), (l = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.name) != null && l.notEqual && t.set("filter[name][neq]", e.filter.name.notEqual), (p = (f = e == null ? void 0 : e.filter) == null ? void 0 : f.name) != null && p.in && t.set("filter[name][in]", e.filter.name.in.join(",")), (h = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.name) != null && h.notIn && t.set("filter[name][nin]", e.filter.name.notIn.join(",")), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.name) != null && T.contains && t.set("filter[name][contains]", e.filter.name.contains), (I = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.type) != null && I.equal && t.set("filter[type][eq]", e.filter.type.equal), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.type) != null && N.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (v = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.type) != null && v.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (P = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.type) != null && P.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (x = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.provider) != null && x.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (O = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.provider) != null && O.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (q = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.provider) != null && q.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (W = (B = e == null ? void 0 : e.filter) == null ? void 0 : B.provider) != null && W.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
1582
- const a = new Request(`${this.url}/games?${t.toString()}`, {
1583
- method: "GET",
1584
- headers: {
1585
- Accept: "application/json",
1586
- "Content-Type": "application/json",
1587
- "Site-ID": this.siteId,
1588
- "Platform-ID": this.platformId
1589
- }
1590
- });
1591
- try {
1592
- const k = await fetch(a);
1593
- if (!k.ok) return { ok: !1, error: u(k.status) };
1594
- const E = await k.json();
1595
- return {
1596
- ok: !0,
1597
- data: {
1598
- edges: E.data.map((L) => ({
1599
- node: L,
1600
- cursor: L.cursor
1601
- })),
1602
- pageInfo: {
1603
- hasNextPage: !!E.next,
1604
- endCursor: E.next
1605
- },
1606
- totalCount: E.totalCount
1548
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (_ = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && _.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (I = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && I.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
1549
+ const a = await this.getJson("/games", t);
1550
+ return a.ok ? {
1551
+ ok: !0,
1552
+ data: {
1553
+ edges: a.data.data.map((M) => ({
1554
+ node: M,
1555
+ cursor: M.cursor
1556
+ })),
1557
+ totalCount: a.data.totalCount,
1558
+ pageInfo: {
1559
+ hasNextPage: !!a.data.next,
1560
+ endCursor: a.data.next
1607
1561
  }
1608
- };
1609
- } catch {
1610
- return {
1611
- ok: !1,
1612
- error: u(500)
1613
- };
1614
- }
1562
+ }
1563
+ } : a;
1615
1564
  }
1616
1565
  async game(e) {
1617
- const t = new Request(`${this.url}/games/${e}`, {
1566
+ var a;
1567
+ const t = await this.getJson(`/games/${e}`);
1568
+ return ((a = t.error) == null ? void 0 : a.name) === "HttpNotFound" ? {
1569
+ ok: !0,
1570
+ data: null
1571
+ } : t.ok ? {
1572
+ ok: !0,
1573
+ data: t.data.data
1574
+ } : t;
1575
+ }
1576
+ async getJson(e, t) {
1577
+ const a = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1618
1578
  method: "GET",
1619
1579
  headers: {
1620
1580
  Accept: "application/json",
@@ -1624,51 +1584,49 @@ class kt {
1624
1584
  }
1625
1585
  });
1626
1586
  try {
1627
- const a = await fetch(t);
1628
- if (a.status === 404)
1629
- return {
1630
- ok: !0,
1631
- data: null
1632
- };
1633
- if (!a.ok) return { ok: !1, error: u(a.status) };
1634
- const { data: r } = await a.json();
1635
- return {
1587
+ const r = await fetch(a);
1588
+ return r.ok ? {
1636
1589
  ok: !0,
1637
- data: r
1590
+ data: await r.json()
1591
+ } : {
1592
+ ok: !1,
1593
+ error: h(r.status)
1638
1594
  };
1639
1595
  } catch {
1640
1596
  return {
1641
1597
  ok: !1,
1642
- error: u(500)
1598
+ error: h(500)
1643
1599
  };
1644
1600
  }
1645
1601
  }
1646
1602
  }
1647
- class _t {
1603
+ class At {
1648
1604
  constructor(e) {
1649
- c(this, "client");
1605
+ m(this, "client");
1650
1606
  this.client = e;
1651
1607
  }
1608
+ /** @deprecated */
1652
1609
  async games(e) {
1653
- const t = await this.client.request(ge, e);
1610
+ const t = await this.client.request(ye, e);
1654
1611
  return t.ok ? { ok: t.ok, data: t.data.games } : t;
1655
1612
  }
1613
+ /** @deprecated */
1656
1614
  async gamesByName(e) {
1657
1615
  const t = await this.client.request(
1658
- Ee,
1616
+ ge,
1659
1617
  e
1660
1618
  );
1661
1619
  return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1662
1620
  }
1663
1621
  async gameSession(e) {
1664
1622
  const t = await this.client.request(
1665
- Ge,
1623
+ Ee,
1666
1624
  e
1667
1625
  );
1668
1626
  return t.ok ? { ok: !0, data: t.data.node } : t;
1669
1627
  }
1670
1628
  async createGameSession(e) {
1671
- const t = await this.client.request(Ae, e);
1629
+ const t = await this.client.request(Se, e);
1672
1630
  return t.ok ? t.data.createGameSession ? {
1673
1631
  ok: !1,
1674
1632
  error: d(t.data.createGameSession.__typename)
@@ -1677,7 +1635,7 @@ class _t {
1677
1635
  } : t;
1678
1636
  }
1679
1637
  async endGameSession(e) {
1680
- const t = await this.client.request(xe, e);
1638
+ const t = await this.client.request(Pe, e);
1681
1639
  return t.ok ? t.data.endGameSession ? {
1682
1640
  ok: !1,
1683
1641
  error: d(t.data.endGameSession.__typename)
@@ -1686,46 +1644,46 @@ class _t {
1686
1644
  } : t;
1687
1645
  }
1688
1646
  }
1689
- class Tt {
1647
+ class _t {
1690
1648
  constructor(e) {
1691
- c(this, "client");
1649
+ m(this, "client");
1692
1650
  this.client = e;
1693
1651
  }
1694
1652
  async latestBetRecords() {
1695
- const e = await this.client.request(ze);
1653
+ const e = await this.client.request(Qe);
1696
1654
  return e.ok ? {
1697
1655
  ok: !0,
1698
1656
  data: e.data.latestBetRecords
1699
1657
  } : e;
1700
1658
  }
1701
1659
  }
1702
- function Ct(o, e, t) {
1660
+ function kt(o, e, t) {
1703
1661
  return o < e ? e : o > t ? t : o;
1704
1662
  }
1705
- function K(o) {
1663
+ function O(o) {
1706
1664
  return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
1707
1665
  }
1708
- function It(o) {
1666
+ function Tt(o) {
1709
1667
  const e = [];
1710
1668
  function t(a, r = []) {
1711
1669
  for (const s in a) {
1712
- const m = a[s];
1713
- K(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(Mt(m), [...r, s]) : e.push({
1670
+ const c = a[s];
1671
+ O(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Ct(c), [...r, s]) : e.push({
1714
1672
  key: [...r, s],
1715
- value: m
1673
+ value: c
1716
1674
  });
1717
1675
  }
1718
1676
  }
1719
1677
  return t(o), e;
1720
1678
  }
1721
- function Mt(o) {
1679
+ function Ct(o) {
1722
1680
  return o.reduce((e, t, a) => (e[a] = t, e), {});
1723
1681
  }
1724
1682
  class b {
1725
1683
  constructor(e, t) {
1726
- c(this, "url");
1727
- c(this, "options");
1728
- c(this, "middlewares");
1684
+ m(this, "url");
1685
+ m(this, "options");
1686
+ m(this, "middlewares");
1729
1687
  var r;
1730
1688
  const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
1731
1689
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -1758,15 +1716,15 @@ class b {
1758
1716
  return await this.exec(s);
1759
1717
  }
1760
1718
  async exec(e) {
1761
- var t, a, r, s, m, l;
1719
+ var t, a, r, s, c, u;
1762
1720
  try {
1763
- const f = await fetch(e);
1764
- if (!f.ok)
1765
- return { ok: !1, error: u(f.status) };
1766
- const p = await f.json(), y = p.data, h = (t = p.errors) == null ? void 0 : t.at(0);
1767
- return h ? ((a = h.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = h.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: u(403, h.message) } : ((s = h.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: u(401, h.message) } : ((m = h.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((l = h.extensions) == null ? void 0 : l.code) === "BAD_REQUEST" ? { ok: !1, error: u(400, h.message) } : {
1721
+ const l = await fetch(e);
1722
+ if (!l.ok)
1723
+ return { ok: !1, error: h(l.status) };
1724
+ const p = await l.json(), y = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
1725
+ return f ? ((a = f.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = f.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, f.message) } : ((s = f.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, f.message) } : ((c = f.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((u = f.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, f.message) } : {
1768
1726
  ok: !1,
1769
- error: u(500, h.message)
1727
+ error: h(500, f.message)
1770
1728
  } : {
1771
1729
  ok: !0,
1772
1730
  data: y
@@ -1774,7 +1732,7 @@ class b {
1774
1732
  } catch {
1775
1733
  return {
1776
1734
  ok: !1,
1777
- error: u(500)
1735
+ error: h(500)
1778
1736
  };
1779
1737
  }
1780
1738
  }
@@ -1785,8 +1743,8 @@ class b {
1785
1743
  return t;
1786
1744
  }
1787
1745
  createUploadBody(e, t) {
1788
- const a = It(t).filter(
1789
- (m) => m.value instanceof File || m.value instanceof Blob
1746
+ const a = Tt(t).filter(
1747
+ (c) => c.value instanceof File || c.value instanceof Blob
1790
1748
  ), r = new FormData();
1791
1749
  r.append(
1792
1750
  "operations",
@@ -1796,10 +1754,10 @@ class b {
1796
1754
  })
1797
1755
  );
1798
1756
  const s = {};
1799
- return a.forEach((m, l) => {
1800
- s[l.toString()] = [`variables.${m.key.join(".")}`];
1801
- }), r.append("map", JSON.stringify(s)), a.forEach((m, l) => {
1802
- r.append(l.toString(), m.value);
1757
+ return a.forEach((c, u) => {
1758
+ s[u.toString()] = [`variables.${c.key.join(".")}`];
1759
+ }), r.append("map", JSON.stringify(s)), a.forEach((c, u) => {
1760
+ r.append(u.toString(), c.value);
1803
1761
  }), r;
1804
1762
  }
1805
1763
  }
@@ -1807,9 +1765,9 @@ async function g(o) {
1807
1765
  const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
1808
1766
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
1809
1767
  }
1810
- class ke {
1768
+ class _e {
1811
1769
  constructor(e) {
1812
- c(this, "enabled");
1770
+ m(this, "enabled");
1813
1771
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
1814
1772
  }
1815
1773
  info(e) {
@@ -1825,59 +1783,59 @@ class ke {
1825
1783
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
1826
1784
  }
1827
1785
  }
1828
- function J(o) {
1786
+ function B(o) {
1829
1787
  return new Date(o.getTime());
1830
1788
  }
1831
- function F(o, e) {
1832
- const t = J(o);
1789
+ function D(o, e) {
1790
+ const t = B(o);
1833
1791
  return t.setDate(t.getDate() + e), t;
1834
1792
  }
1835
- function V(o, e) {
1836
- const t = J(o);
1793
+ function R(o, e) {
1794
+ const t = B(o);
1837
1795
  return t.setMinutes(t.getMinutes() + e), t;
1838
1796
  }
1839
- function we(o, e) {
1797
+ function he(o, e) {
1840
1798
  return o.getTime() > e.getTime();
1841
1799
  }
1842
- function _e(o) {
1800
+ function ke(o) {
1843
1801
  return new Promise((e) => {
1844
1802
  setTimeout(e, o);
1845
1803
  });
1846
1804
  }
1847
- function ye(o, e) {
1805
+ function we(o, e) {
1848
1806
  const {
1849
1807
  until: t,
1850
1808
  interval: a = 1e3,
1851
1809
  maxAttempt: r = 3
1852
1810
  /**/
1853
1811
  } = e;
1854
- async function s(m, l) {
1855
- const f = l ?? r, p = await o(...m);
1856
- return t(p) ? p : f > 1 ? (await _e(a * ((r - f) / 2)), s(m, f - 1)) : p;
1812
+ async function s(c, u) {
1813
+ const l = u ?? r, p = await o(...c);
1814
+ return t(p) ? p : l > 1 ? (await ke(a * ((r - l) / 2)), s(c, l - 1)) : p;
1857
1815
  }
1858
- return async (...m) => await s(m);
1816
+ return async (...c) => await s(c);
1859
1817
  }
1860
- function j(o, e) {
1861
- const t = J(o);
1818
+ function P(o, e) {
1819
+ const t = B(o);
1862
1820
  return t.setMinutes(t.getMinutes() - e), t;
1863
1821
  }
1864
- class Nt {
1822
+ class vt {
1865
1823
  constructor(e) {
1866
- c(this, "logger");
1867
- c(this, "storageKey", "session");
1868
- c(this, "authService");
1869
- c(this, "walletService");
1870
- c(this, "_refreshing", !1);
1871
- this.authService = new Et({
1824
+ m(this, "logger");
1825
+ m(this, "storageKey", "session");
1826
+ m(this, "authService");
1827
+ m(this, "walletService");
1828
+ m(this, "_refreshing", !1);
1829
+ this.authService = new yt({
1872
1830
  url: e.authUrl,
1873
1831
  platform: e.platform
1874
- }), this.walletService = new be(
1832
+ }), this.walletService = new Ae(
1875
1833
  new b(e.walletUrl, {
1876
1834
  middlewares: [
1877
1835
  (t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
1878
1836
  ]
1879
1837
  })
1880
- ), this.logger = new ke({
1838
+ ), this.logger = new _e({
1881
1839
  enabled: e.log ?? !1
1882
1840
  });
1883
1841
  }
@@ -1897,7 +1855,7 @@ class Nt {
1897
1855
  }
1898
1856
  };
1899
1857
  if (e.type === "MAYA") {
1900
- const s = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
1858
+ const s = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
1901
1859
  until: (p) => {
1902
1860
  var y;
1903
1861
  return p.ok && ((y = p.data) == null ? void 0 : y.member) != null;
@@ -1906,19 +1864,19 @@ class Nt {
1906
1864
  maxAttempt: 5
1907
1865
  })();
1908
1866
  if (!s.ok) return s;
1909
- const l = await ye(() => this.authService.createSession(e), {
1867
+ const u = await we(() => this.authService.createSession(e), {
1910
1868
  until: (p) => p.ok,
1911
1869
  interval: 1e3,
1912
1870
  maxAttempt: 5
1913
1871
  })();
1914
- if (!l.ok) return l;
1915
- const f = /* @__PURE__ */ new Date();
1872
+ if (!u.ok) return u;
1873
+ const l = /* @__PURE__ */ new Date();
1916
1874
  return window.localStorage.setItem(
1917
1875
  this.storageKey,
1918
1876
  JSON.stringify({
1919
- ...l.data,
1920
- accessTokenExpiresAt: V(f, 8).getTime(),
1921
- refreshTokenExpiresAt: j(F(f, 30), 2).getTime()
1877
+ ...u.data,
1878
+ accessTokenExpiresAt: R(l, 8).getTime(),
1879
+ refreshTokenExpiresAt: P(D(l, 30), 2).getTime()
1922
1880
  })
1923
1881
  ), {
1924
1882
  ok: !0,
@@ -1933,8 +1891,8 @@ class Nt {
1933
1891
  this.storageKey,
1934
1892
  JSON.stringify({
1935
1893
  ...r.data,
1936
- accessTokenExpiresAt: V(s, 8).getTime(),
1937
- refreshTokenExpiresAt: j(F(s, 30), 2).getTime()
1894
+ accessTokenExpiresAt: R(s, 8).getTime(),
1895
+ refreshTokenExpiresAt: P(D(s, 30), 2).getTime()
1938
1896
  })
1939
1897
  ), {
1940
1898
  ok: !0,
@@ -1957,8 +1915,8 @@ class Nt {
1957
1915
  this.storageKey,
1958
1916
  JSON.stringify({
1959
1917
  ...t.data,
1960
- accessTokenExpiresAt: V(a, 8).getTime(),
1961
- refreshTokenExpiresAt: j(F(a, 30), 2).getTime()
1918
+ accessTokenExpiresAt: R(a, 8).getTime(),
1919
+ refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
1962
1920
  })
1963
1921
  ), {
1964
1922
  ok: !0,
@@ -1973,8 +1931,8 @@ class Nt {
1973
1931
  this.storageKey,
1974
1932
  JSON.stringify({
1975
1933
  ...t.data,
1976
- accessTokenExpiresAt: V(a, 8).getTime(),
1977
- refreshTokenExpiresAt: j(F(a, 30), 2).getTime()
1934
+ accessTokenExpiresAt: R(a, 8).getTime(),
1935
+ refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
1978
1936
  })
1979
1937
  ), { ok: !0 };
1980
1938
  } else
@@ -1987,7 +1945,7 @@ class Nt {
1987
1945
  data: null
1988
1946
  };
1989
1947
  if (this.refreshing)
1990
- return await _e(1e3), await this.get();
1948
+ return await ke(1e3), await this.get();
1991
1949
  const e = window.localStorage.getItem(this.storageKey);
1992
1950
  if (!e)
1993
1951
  return {
@@ -1997,7 +1955,7 @@ class Nt {
1997
1955
  try {
1998
1956
  let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
1999
1957
  const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2000
- if (we(a, s))
1958
+ if (he(a, s))
2001
1959
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2002
1960
  ok: !1,
2003
1961
  error: {
@@ -2005,22 +1963,22 @@ class Nt {
2005
1963
  message: "Session expired."
2006
1964
  }
2007
1965
  };
2008
- if (we(a, r)) {
1966
+ if (he(a, r)) {
2009
1967
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2010
- const m = await this.authService.refreshSession(t.refreshToken);
2011
- if (this.refreshing = !1, !m.ok)
2012
- return this.logger.error(`Failed to refresh session: ${m.error.message}`), m.error.name === "InvalidToken" || m.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
1968
+ const c = await this.authService.refreshSession(t.refreshToken);
1969
+ if (this.refreshing = !1, !c.ok)
1970
+ return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "InvalidToken" || c.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
2013
1971
  ok: !1,
2014
- error: m.error
1972
+ error: c.error
2015
1973
  }) : (this.logger.warn("Old session returned."), {
2016
1974
  ok: !0,
2017
1975
  data: t
2018
1976
  });
2019
1977
  this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
2020
1978
  ...t,
2021
- ...m.data,
2022
- accessTokenExpiresAt: V(a, 8).getTime(),
2023
- refreshTokenExpiresAt: j(F(a, 30), 2).getTime()
1979
+ ...c.data,
1980
+ accessTokenExpiresAt: R(a, 8).getTime(),
1981
+ refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
2024
1982
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2025
1983
  }
2026
1984
  return {
@@ -2065,12 +2023,12 @@ function w(o) {
2065
2023
  for (const t in o) {
2066
2024
  const a = o[t];
2067
2025
  if (a !== null && a !== void 0) {
2068
- if (K(a)) {
2026
+ if (O(a)) {
2069
2027
  e[t] = w(a);
2070
2028
  continue;
2071
2029
  }
2072
2030
  if (Array.isArray(a)) {
2073
- e[t] = a.map((r) => K(r) ? w(r) : r);
2031
+ e[t] = a.map((r) => O(r) ? w(r) : r);
2074
2032
  continue;
2075
2033
  }
2076
2034
  e[t] = a;
@@ -2088,11 +2046,11 @@ function i(o, e) {
2088
2046
  }
2089
2047
  return e;
2090
2048
  }
2091
- class Dt {
2049
+ class Nt {
2092
2050
  constructor(e) {
2093
- c(this, "staticService");
2051
+ m(this, "staticService");
2094
2052
  const t = (e == null ? void 0 : e.environment) === "development";
2095
- this.staticService = new bt({
2053
+ this.staticService = new St({
2096
2054
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2097
2055
  });
2098
2056
  }
@@ -2111,7 +2069,9 @@ class Dt {
2111
2069
  betRecord: this.betRecord.bind(this),
2112
2070
  latestBetRecord: this.latestBetRecord.bind(this),
2113
2071
  transactionRecord: this.transactionRecord.bind(this),
2072
+ /** @deprecated */
2114
2073
  game: this.game.bind(this),
2074
+ game__next: this.game__next.bind(this),
2115
2075
  gameSession: this.gameSession.bind(this),
2116
2076
  promo: this.promo.bind(this),
2117
2077
  cashback: this.cashback.bind(this),
@@ -2130,7 +2090,7 @@ class Dt {
2130
2090
  return w(t);
2131
2091
  }
2132
2092
  platform(e) {
2133
- var t, a, r, s, m, l, f, p, y, h, _, T, C, I, M, N, D, v, R, P, G, x, U, O, $, q, B, W, k, E, L, X, Z, ee, te, ae, re, oe, ne, ie, se, me, ce, de, ue, le, pe, fe, he;
2093
+ var t, a, r, s, c, u, l, p, y, f, A, _, k, T, C, v, N, I, M, $, W, q, L, V, F, H, Y, j, Q, K, z, J, X, Z, ee, te, ae, re, oe, ne, ie, se, ce, me, de, ue, le, pe, fe;
2134
2094
  return {
2135
2095
  paymentSettings: {
2136
2096
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2141,77 +2101,77 @@ class Dt {
2141
2101
  iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2142
2102
  webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2143
2103
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2144
- minimumAmount: i((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2145
- maximumAmount: i((l = e.bankDepositGatewaySettings) == null ? void 0 : l.maximumAmount)
2104
+ minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2105
+ maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2146
2106
  },
2147
2107
  gcash: {
2148
- androidEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.androidEnabled) ?? !1,
2108
+ androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2149
2109
  iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
2150
2110
  webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
2151
- mobileWebEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.mobileWebEnabled) ?? !1,
2152
- minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2153
- maximumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.maximumAmount)
2111
+ mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
2112
+ minimumAmount: i((A = e.gcashDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
2113
+ maximumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.maximumAmount)
2154
2114
  },
2155
2115
  maya: {
2156
- androidEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.androidEnabled) ?? !1,
2157
- iosEnabled: ((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.iosEnabled) ?? !1,
2158
- webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
2159
- mobileWebEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.mobileWebEnabled) ?? !1,
2160
- minimumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.minimumAmount),
2161
- maximumAmount: i((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2116
+ androidEnabled: ((k = e.mayaDepositGatewaySettings) == null ? void 0 : k.androidEnabled) ?? !1,
2117
+ iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2118
+ webEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.webEnabled) ?? !1,
2119
+ mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
2120
+ minimumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
2121
+ maximumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.maximumAmount)
2162
2122
  },
2163
2123
  mayaApp: {
2164
- androidEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.androidEnabled) ?? !1,
2165
- iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2166
- webEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.webEnabled) ?? !1,
2167
- mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2168
- minimumAmount: i((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
2169
- maximumAmount: i((O = e.mayaAppDepositGatewaySettings) == null ? void 0 : O.maximumAmount)
2124
+ androidEnabled: ((M = e.mayaAppDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2125
+ iosEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.iosEnabled) ?? !1,
2126
+ webEnabled: ((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.webEnabled) ?? !1,
2127
+ mobileWebEnabled: ((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2128
+ minimumAmount: i((L = e.mayaAppDepositGatewaySettings) == null ? void 0 : L.minimumAmount),
2129
+ maximumAmount: i((V = e.mayaAppDepositGatewaySettings) == null ? void 0 : V.maximumAmount)
2170
2130
  }
2171
2131
  },
2172
2132
  withdrawalGateway: {
2173
2133
  bank: {
2174
- androidEnabled: (($ = e.bankWithdrawalGatewaySettings) == null ? void 0 : $.androidEnabled) ?? !1,
2175
- iosEnabled: ((q = e.bankWithdrawalGatewaySettings) == null ? void 0 : q.iosEnabled) ?? !1,
2176
- webEnabled: ((B = e.bankWithdrawalGatewaySettings) == null ? void 0 : B.webEnabled) ?? !1,
2177
- mobileWebEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.mobileWebEnabled) ?? !1,
2178
- minimumAmount: i((k = e.bankWithdrawalGatewaySettings) == null ? void 0 : k.minimumAmount),
2179
- maximumAmount: i((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.maximumAmount)
2134
+ androidEnabled: ((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.androidEnabled) ?? !1,
2135
+ iosEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2136
+ webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2137
+ mobileWebEnabled: ((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2138
+ minimumAmount: i((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2139
+ maximumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount)
2180
2140
  },
2181
2141
  gcash: {
2182
- androidEnabled: ((L = e.gcashWithdrawalGatewaySettings) == null ? void 0 : L.androidEnabled) ?? !1,
2183
- iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
2184
- webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
2185
- mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2186
- minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2142
+ androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2143
+ iosEnabled: ((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2144
+ webEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2145
+ mobileWebEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2146
+ minimumAmount: i((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2187
2147
  maximumAmount: i(
2188
- (ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
2148
+ (te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount,
2189
2149
  1e6
2190
2150
  )
2191
2151
  },
2192
2152
  maya: {
2193
- androidEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2194
- iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2195
- webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2196
- mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2197
- minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2198
- maximumAmount: i((me = e.mayaWithdrawalGatewaySettings) == null ? void 0 : me.maximumAmount)
2153
+ androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2154
+ iosEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.iosEnabled) ?? !1,
2155
+ webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2156
+ mobileWebEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.mobileWebEnabled) ?? !1,
2157
+ minimumAmount: i((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.minimumAmount),
2158
+ maximumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount)
2199
2159
  },
2200
2160
  mayaApp: {
2201
2161
  androidEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
2202
- iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2203
- webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2204
- mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2205
- minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2162
+ iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
2163
+ webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2164
+ mobileWebEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.mobileWebEnabled) ?? !1,
2165
+ minimumAmount: i((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
2206
2166
  maximumAmount: i(
2207
- (fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
2167
+ (pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.maximumAmount,
2208
2168
  1e6
2209
2169
  )
2210
2170
  }
2211
2171
  }
2212
2172
  },
2213
2173
  pointsClubSettings: {
2214
- multiplier: i((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2174
+ multiplier: i((fe = e.pointsClubSettings) == null ? void 0 : fe.multiplier, 0)
2215
2175
  }
2216
2176
  };
2217
2177
  }
@@ -2228,7 +2188,7 @@ class Dt {
2228
2188
  mobileNumber: e.mobileNumber ?? void 0,
2229
2189
  mobileNumberVerified: e.mobileNumberVerified ?? !1,
2230
2190
  mobileNumberVerificationRequired: e.mobileNumberVerificationRequired ?? !1,
2231
- validId: e.validId ?? void 0,
2191
+ validId: e.validId || void 0,
2232
2192
  verificationStatus: e.verificationStatus,
2233
2193
  transactionPassword: e.transactionPassword,
2234
2194
  secretAnswerSubmitted: e.secretAnswerSubmitted ?? !1,
@@ -2337,7 +2297,7 @@ class Dt {
2337
2297
  winloss: i(e.winloss),
2338
2298
  validBet: i(e.validBet, 0),
2339
2299
  vendorRoundId: e.vendorRoundId ?? void 0,
2340
- game: this.game(e.game),
2300
+ game: e.game,
2341
2301
  serialCode: e.serialCode,
2342
2302
  dateTimeSettled: e.dateTimeSettled ? new Date(e.dateTimeSettled) : void 0,
2343
2303
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2355,7 +2315,7 @@ class Dt {
2355
2315
  return {
2356
2316
  id: e.id,
2357
2317
  member: e.member,
2358
- game: this.game(e.game),
2318
+ game: e.game,
2359
2319
  bet: i(e.bet, 0),
2360
2320
  payout: i(e.payout, 0),
2361
2321
  validBet: i(e.validBet, 0),
@@ -2384,6 +2344,19 @@ class Dt {
2384
2344
  provider: e.provider
2385
2345
  };
2386
2346
  }
2347
+ game__next(e) {
2348
+ return {
2349
+ id: e.id,
2350
+ type: e.type,
2351
+ name: e.name,
2352
+ images: this.staticService.gameThumbnails({
2353
+ id: e.externalId,
2354
+ provider: e.provider
2355
+ }),
2356
+ provider: e.provider,
2357
+ externalId: e.externalId
2358
+ };
2359
+ }
2387
2360
  gameSession(e) {
2388
2361
  const t = {
2389
2362
  id: e.id,
@@ -2481,27 +2454,27 @@ class Dt {
2481
2454
  };
2482
2455
  }
2483
2456
  }
2484
- var vt = { VITE_AUTH_DEVELOPMENT_URL: "https://auth.development.opexa.io", VITE_AUTH_PRODUCTION_URL: "https://auth.opexa.io", VITE_GAME_DEVELOPMENT_URL: "https://game.development.opexa.io/graphql", VITE_GAME_PRODUCTION_URL: "https://game.opexa.io/graphql", VITE_FILE_DEVELOPMENT_URL: "https://file.development.opexa.io/graphql", VITE_FILE_PRODUCTION_URL: "https://file.opexa.io/graphql", VITE_REPORT_DEVELOPMENT_URL: "https://report.development.opexa.io/graphql", VITE_REPORT_PRODUCTION_URL: "https://report.opexa.io/graphql", VITE_WALLET_DEVELOPMENT_URL: "https://wallet.development.opexa.io/graphql", VITE_WALLET_PRODUCTION_URL: "https://wallet.opexa.io/graphql", VITE_ACCOUNT_DEVELOPMENT_URL: "https://account.development.opexa.io/graphql", VITE_ACCOUNT_PRODUCTION_URL: "https://account.opexa.io/graphql", VITE_PORTAL_DEVELOPMENT_URL: "https://portal.development.opexa.io/graphql", VITE_PORTAL_PRODUCTION_URL: "https://portal.opexa.io/graphql", VITE_STATIC_DEVELOPMENT_URL: "https://static.development.opexa.io", VITE_STATIC_PRODUCTION_URL: "https://static.opexa.io", VITE_CMS_PORTAL_DEVELOPMENT_URL: "https://portal-api.opexacms.io/v1", BASE_URL: "/", MODE: "library", DEV: !1, PROD: !0, SSR: !1 };
2485
- class Gt {
2457
+ var It = { VITE_AUTH_DEVELOPMENT_URL: "https://auth.development.opexa.io", VITE_AUTH_PRODUCTION_URL: "https://auth.opexa.io", VITE_GAME_DEVELOPMENT_URL: "https://game.development.opexa.io/graphql", VITE_GAME_PRODUCTION_URL: "https://game.opexa.io/graphql", VITE_FILE_DEVELOPMENT_URL: "https://file.development.opexa.io/graphql", VITE_FILE_PRODUCTION_URL: "https://file.opexa.io/graphql", VITE_REPORT_DEVELOPMENT_URL: "https://report.development.opexa.io/graphql", VITE_REPORT_PRODUCTION_URL: "https://report.opexa.io/graphql", VITE_WALLET_DEVELOPMENT_URL: "https://wallet.development.opexa.io/graphql", VITE_WALLET_PRODUCTION_URL: "https://wallet.opexa.io/graphql", VITE_ACCOUNT_DEVELOPMENT_URL: "https://account.development.opexa.io/graphql", VITE_ACCOUNT_PRODUCTION_URL: "https://account.opexa.io/graphql", VITE_PORTAL_DEVELOPMENT_URL: "https://portal.development.opexa.io/graphql", VITE_PORTAL_PRODUCTION_URL: "https://portal.opexa.io/graphql", VITE_STATIC_DEVELOPMENT_URL: "https://static.development.opexa.io", VITE_STATIC_PRODUCTION_URL: "https://static.opexa.io", VITE_CMS_PORTAL_DEVELOPMENT_URL: "https://portal-api.opexacms.io/v1", BASE_URL: "/", MODE: "library", DEV: !1, PROD: !0, SSR: !1 };
2458
+ class Rt {
2486
2459
  constructor(e) {
2487
- c(this, "gameService");
2488
- c(this, "fileService");
2489
- c(this, "walletService");
2490
- c(this, "reportService");
2491
- c(this, "portalService");
2492
- c(this, "accountService");
2493
- c(this, "cmsPortalService");
2494
- c(this, "sessionManager");
2495
- c(this, "transformer");
2496
- c(this, "logger");
2460
+ m(this, "gameService");
2461
+ m(this, "fileService");
2462
+ m(this, "walletService");
2463
+ m(this, "reportService");
2464
+ m(this, "portalService");
2465
+ m(this, "accountService");
2466
+ m(this, "cmsPortalService");
2467
+ m(this, "sessionManager");
2468
+ m(this, "transformer");
2469
+ m(this, "logger");
2497
2470
  const t = e.environment === "development";
2498
- this.sessionManager = new Nt({
2471
+ this.sessionManager = new vt({
2499
2472
  authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
2500
2473
  walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2501
2474
  platform: e.platform,
2502
2475
  log: e.log
2503
- }), this.cmsPortalService = new kt({
2504
- url: t ? "https://portal-api.opexacms.io/v1" : vt.VITE_CMS_PORTAL_PRODUCTION_URL,
2476
+ }), this.cmsPortalService = new bt({
2477
+ url: t ? "https://portal-api.opexacms.io/v1" : It.VITE_CMS_PORTAL_PRODUCTION_URL,
2505
2478
  site: e.site,
2506
2479
  platform: e.sitePlatform
2507
2480
  });
@@ -2514,37 +2487,37 @@ class Gt {
2514
2487
  }
2515
2488
  }
2516
2489
  };
2517
- this.gameService = new _t(
2490
+ this.gameService = new At(
2518
2491
  new b(
2519
2492
  t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
2520
2493
  a
2521
2494
  )
2522
- ), this.fileService = new At(
2495
+ ), this.fileService = new gt(
2523
2496
  new b(
2524
2497
  t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
2525
2498
  a
2526
2499
  )
2527
- ), this.walletService = new be(
2500
+ ), this.walletService = new Ae(
2528
2501
  new b(
2529
2502
  t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2530
2503
  a
2531
2504
  )
2532
- ), this.reportService = new St(
2505
+ ), this.reportService = new Et(
2533
2506
  new b(
2534
2507
  t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
2535
2508
  a
2536
2509
  )
2537
- ), this.accountService = new gt(
2510
+ ), this.accountService = new wt(
2538
2511
  new b(
2539
2512
  t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
2540
2513
  a
2541
2514
  )
2542
- ), this.portalService = new Tt(
2515
+ ), this.portalService = new _t(
2543
2516
  new b(
2544
2517
  t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
2545
2518
  a
2546
2519
  )
2547
- ), this.transformer = new Dt(e), this.logger = new ke({
2520
+ ), this.transformer = new Nt(e), this.logger = new _e({
2548
2521
  enabled: e.log ?? !1
2549
2522
  });
2550
2523
  }
@@ -2660,7 +2633,7 @@ class Gt {
2660
2633
  * ```
2661
2634
  */
2662
2635
  watchSession(e) {
2663
- const t = Ct(e.interval ?? 3e4, 3e4, 6e4);
2636
+ const t = kt(e.interval ?? 3e4, 3e4, 6e4);
2664
2637
  let a = null;
2665
2638
  const r = () => setTimeout(async () => {
2666
2639
  await this.sessionManager.verify() || await e.onInvalid(), a = r();
@@ -2685,7 +2658,7 @@ class Gt {
2685
2658
  /*+----------------------------------------+*/
2686
2659
  /**/
2687
2660
  async site() {
2688
- const e = await this.cmsPortalService.siteInfo();
2661
+ const e = await this.cmsPortalService.self();
2689
2662
  return e.ok ? {
2690
2663
  ok: !0,
2691
2664
  data: this.transformer.transform.site(e.data)
@@ -2743,7 +2716,7 @@ class Gt {
2743
2716
  * ```
2744
2717
  */
2745
2718
  async createAccount(e) {
2746
- const t = e.id ?? A.generate(S.Account).toString(), a = await this.accountService.registerMemberAccount({
2719
+ const t = e.id ?? E.generate(S.Account).toString(), a = await this.accountService.registerMemberAccount({
2747
2720
  input: {
2748
2721
  id: t,
2749
2722
  name: e.name,
@@ -2825,7 +2798,7 @@ class Gt {
2825
2798
  * ```
2826
2799
  */
2827
2800
  async submitVerificationDetails(e) {
2828
- const t = e.id ?? A.generate(S.Verification).toString(), a = await this.accountService.createMemberVerification({
2801
+ const t = e.id ?? E.generate(S.Verification).toString(), a = await this.accountService.createMemberVerification({
2829
2802
  input: {
2830
2803
  id: t,
2831
2804
  ...e
@@ -2949,7 +2922,7 @@ class Gt {
2949
2922
  * ```
2950
2923
  */
2951
2924
  async createWithdrawal(e) {
2952
- const t = e.id ?? A.generate(S.Withdrawal).toString();
2925
+ const t = e.id ?? E.generate(S.Withdrawal).toString();
2953
2926
  if (e.type === "BANK") {
2954
2927
  const a = await this.walletService.createBankWithdrawal({
2955
2928
  input: {
@@ -3035,7 +3008,7 @@ class Gt {
3035
3008
  * ```
3036
3009
  */
3037
3010
  async createDeposit(e) {
3038
- const t = e.id ?? A.generate(S.Deposit).toString();
3011
+ const t = e.id ?? E.generate(S.Deposit).toString();
3039
3012
  if (e.type === "MAYA") {
3040
3013
  const a = await this.walletService.createMayaDeposit({
3041
3014
  input: {
@@ -3188,13 +3161,18 @@ class Gt {
3188
3161
  /*+ GAME +*/
3189
3162
  /*+----------------------------------------+*/
3190
3163
  /**/
3164
+ /** @deprecated use `game__next` */
3191
3165
  async game(e) {
3166
+ return this.game__next(e);
3167
+ }
3168
+ async game__next(e) {
3192
3169
  const t = await this.cmsPortalService.game(e);
3193
3170
  return t.ok ? {
3194
3171
  ok: !0,
3195
- data: t.data ? this.transformer.transform.game(t.data) : null
3172
+ data: t.data ? this.transformer.transform.game__next(t.data) : null
3196
3173
  } : t;
3197
3174
  }
3175
+ /** @deprecated use `games__next` */
3198
3176
  async games(e) {
3199
3177
  const t = await this.walletService.games(e);
3200
3178
  return t.ok ? {
@@ -3216,7 +3194,7 @@ class Gt {
3216
3194
  ok: !0,
3217
3195
  data: {
3218
3196
  games: t.data.edges.map(({ cursor: a, node: r }) => ({
3219
- ...this.transformer.transform.game(r),
3197
+ ...this.transformer.transform.game__next(r),
3220
3198
  cursor: a
3221
3199
  })),
3222
3200
  totalCount: t.data.totalCount,
@@ -3225,6 +3203,7 @@ class Gt {
3225
3203
  }
3226
3204
  } : t;
3227
3205
  }
3206
+ /** @deprecated use `games__next` */
3228
3207
  async games__legacy(e) {
3229
3208
  const t = await this.gameService.games(e);
3230
3209
  return t.ok ? {
@@ -3240,6 +3219,7 @@ class Gt {
3240
3219
  }
3241
3220
  } : t;
3242
3221
  }
3222
+ /** @deprecated use `games__next` */
3243
3223
  async gamesByName(e) {
3244
3224
  const t = await this.walletService.gamesByName(e);
3245
3225
  return t.ok ? {
@@ -3247,6 +3227,7 @@ class Gt {
3247
3227
  data: t.data.map(this.transformer.transform.game)
3248
3228
  } : t;
3249
3229
  }
3230
+ /** @deprecated use `games__next` */
3250
3231
  async gamesByName__legacy(e) {
3251
3232
  const t = await this.gameService.gamesByName(e);
3252
3233
  return t.ok ? {
@@ -3254,6 +3235,7 @@ class Gt {
3254
3235
  data: t.data.map(this.transformer.transform.game)
3255
3236
  } : t;
3256
3237
  }
3238
+ /** @deprecated use `gameSession__next` */
3257
3239
  async gameSession(e) {
3258
3240
  const t = await this.walletService.gameSession({ id: e });
3259
3241
  return t.ok ? {
@@ -3261,17 +3243,30 @@ class Gt {
3261
3243
  data: t.data ? this.transformer.transform.gameSession(t.data) : null
3262
3244
  } : t;
3263
3245
  }
3246
+ /** @deprecated use `gameSession__next` */
3264
3247
  async gameSession__legacy(e) {
3265
3248
  const t = await this.gameService.gameSession({ id: e });
3266
3249
  return t.ok ? {
3267
3250
  ok: !0,
3268
- data: t.data ? this.transformer.transform.gameSession({
3269
- ...t.data,
3270
- game: t.data.game.id
3271
- }) : null
3251
+ data: t.data ? this.transformer.transform.gameSession(t.data) : null
3272
3252
  } : t;
3273
3253
  }
3254
+ async gameSession__next(e) {
3255
+ const t = await this.walletService.gameSession({ id: e });
3256
+ if (!t.ok) return t;
3257
+ if (t.data)
3258
+ return {
3259
+ ok: !0,
3260
+ data: this.transformer.transform.gameSession(t.data)
3261
+ };
3262
+ const a = await this.walletService.gameSession({ id: e });
3263
+ return a.ok ? {
3264
+ ok: !0,
3265
+ data: a.data ? this.transformer.transform.gameSession(a.data) : null
3266
+ } : a;
3267
+ }
3274
3268
  /**
3269
+ * @deprecated use `createGameSession__next`
3275
3270
  * @example
3276
3271
  * ```ts
3277
3272
  * const res = await sdk.createGameSession({
@@ -3287,29 +3282,53 @@ class Gt {
3287
3282
  * ```
3288
3283
  */
3289
3284
  async createGameSession(e) {
3290
- const t = e.id ?? A.generate(S.GameSession).toString(), a = await this.walletService.createGameSession({
3291
- input: {
3292
- id: t,
3293
- game: e.game
3294
- }
3295
- });
3285
+ const t = e.id ?? E.generate(S.GameSession).toString(), a = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3296
3286
  return a.ok ? { ok: !0, data: { id: t } } : a;
3297
3287
  }
3288
+ /** @deprecated use `createGameSession__next` */
3298
3289
  async createGameSession__legacy(e) {
3299
- const t = e.id ?? A.generate(S.GameSession).toString(), a = await this.gameService.createGameSession({
3300
- input: {
3301
- id: t,
3302
- game: e.game
3303
- }
3304
- });
3290
+ const t = e.id ?? E.generate(S.GameSession).toString(), a = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3305
3291
  return a.ok ? { ok: !0, data: { id: t } } : a;
3306
3292
  }
3293
+ async createGameSession__next(e) {
3294
+ const t = await this.game__next(e.game);
3295
+ if (!t.data)
3296
+ return {
3297
+ ok: !1,
3298
+ error: {
3299
+ name: "GameDoesNotExistError",
3300
+ message: "Game does not exist"
3301
+ }
3302
+ };
3303
+ const {
3304
+ /**/
3305
+ type: a,
3306
+ provider: r,
3307
+ externalId: s
3308
+ } = t.data, c = a === "SPORTS" ? e.id ?? (await E.generateFromKey(S.Game, `SPORTS:${r}`)).toString() : e.id ?? E.generate(S.GameSession).toString(), l = [
3309
+ /**/
3310
+ "RTG",
3311
+ "DARWIN",
3312
+ "DRBINGO",
3313
+ "MEGABALL",
3314
+ "EVOLUTION",
3315
+ "EVOLUTION_NETENT",
3316
+ "EVOLUTION_REDTIGER"
3317
+ ].includes(r) ? await this.walletService.createGameSession({ input: { id: c, game: s } }) : await this.gameService.createGameSession({ input: { id: c, game: s } });
3318
+ return l.ok ? { ok: !0, data: { id: c } } : l;
3319
+ }
3320
+ /** @deprecated use `endGameSession__next` */
3307
3321
  async endGameSession(e) {
3308
3322
  return await this.walletService.endGameSession({ input: { id: e } });
3309
3323
  }
3324
+ /** @deprecated use `endGameSession__next` */
3310
3325
  async endGameSession__legacy(e) {
3311
3326
  return await this.gameService.endGameSession({ input: { id: e } });
3312
3327
  }
3328
+ async endGameSession__next(e) {
3329
+ const t = await this.walletService.endGameSession({ input: { id: e } });
3330
+ return t.ok ? t : await this.gameService.endGameSession({ input: { id: e } });
3331
+ }
3313
3332
  /**/
3314
3333
  /*+----------------------------------------+*/
3315
3334
  /*+ FILE +*/
@@ -3338,7 +3357,7 @@ class Gt {
3338
3357
  * ```
3339
3358
  */
3340
3359
  async uploadImageFile(e) {
3341
- const t = e.id ?? A.generate(S.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3360
+ const t = e.id ?? E.generate(S.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3342
3361
  input: {
3343
3362
  id: t,
3344
3363
  file: e.file
@@ -3370,8 +3389,8 @@ class Gt {
3370
3389
  }
3371
3390
  }
3372
3391
  export {
3373
- Ot as ObjectId,
3392
+ Gt as ObjectId,
3374
3393
  S as ObjectType,
3375
- Gt as Sdk
3394
+ Rt as Sdk
3376
3395
  };
3377
3396
  //# sourceMappingURL=index.mjs.map