@opexa/portal-sdk 0.0.136 → 0.0.138

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,8 +1,8 @@
1
- var Fe = Object.defineProperty;
2
- var Ve = (o, e, t) => e in o ? Fe(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var c = (o, e, t) => Ve(o, typeof e != "symbol" ? e + "" : e, t);
1
+ var He = Object.defineProperty;
2
+ var Ye = (o, e, t) => e in o ? He(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var d = (o, e, t) => Ye(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as H } from "@opexa/object-id";
5
- import { ObjectId as Ia } from "@opexa/object-id";
5
+ import { ObjectId as Pr } from "@opexa/object-id";
6
6
  const Y = {
7
7
  Account: 8,
8
8
  Deposit: 9,
@@ -15,21 +15,21 @@ const Y = {
15
15
  };
16
16
  function i(o, ...e) {
17
17
  let t = "";
18
- for (const [a, r] of o.entries()) {
19
- const s = e.at(a) ?? "";
20
- t = `${t}${r}${s}`;
18
+ for (const [r, a] of o.entries()) {
19
+ const m = e.at(r) ?? "";
20
+ t = `${t}${a}${m}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const Re = i`
24
+ const De = i`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, He = i`
32
- ${Re}
31
+ `, Qe = i`
32
+ ${De}
33
33
 
34
34
  query File($id: ObjectId!) {
35
35
  node(id: $id) {
@@ -38,7 +38,7 @@ const Re = i`
38
38
  }
39
39
  }
40
40
  }
41
- `, Ye = i`
41
+ `, je = i`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const Re = i`
52
52
  }
53
53
  }
54
54
  }
55
- `, Qe = i`
55
+ `, Ke = i`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const Re = i`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, je = i`
65
+ `, ze = i`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const Re = i`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Ke = i`
74
+ `, Je = i`
75
75
  mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
76
76
  redeemPointsToCash(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const Re = i`
79
79
  }
80
80
  }
81
81
  }
82
- `, ze = i`
82
+ `, Xe = i`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,7 +107,7 @@ const Re = i`
107
107
  }
108
108
  }
109
109
  }
110
- `, We = {
110
+ `, Ue = {
111
111
  current: i`
112
112
  query GameSession($id: ObjectId!) {
113
113
  node(id: $id) {
@@ -138,7 +138,7 @@ const Re = i`
138
138
  }
139
139
  }
140
140
  `
141
- }, xe = i`
141
+ }, qe = i`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -146,7 +146,7 @@ const Re = i`
146
146
  }
147
147
  }
148
148
  }
149
- `, Ue = {
149
+ `, $e = {
150
150
  current: i`
151
151
  mutation EndGameSession($input: EndGameSessionInput!) {
152
152
  endGameSession(input: $input)
@@ -167,13 +167,13 @@ const Re = i`
167
167
  }
168
168
  }
169
169
  `
170
- }, Je = i`
170
+ }, Ze = i`
171
171
  query RecommendedGames {
172
172
  recommendedGames {
173
173
  id
174
174
  }
175
175
  }
176
- `, Xe = i`
176
+ `, et = i`
177
177
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
178
178
  announcements(first: $first, after: $after, filter: $filter) {
179
179
  edges {
@@ -199,7 +199,7 @@ const Re = i`
199
199
  }
200
200
  }
201
201
  }
202
- `, Ze = i`
202
+ `, tt = i`
203
203
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
204
204
  member {
205
205
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -283,7 +283,7 @@ const Re = i`
283
283
  }
284
284
  }
285
285
  }
286
- `, et = i`
286
+ `, rt = i`
287
287
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
288
288
  createGCashWithdrawal(input: $input) {
289
289
  ... on AccountNotVerifiedError {
@@ -306,7 +306,7 @@ const Re = i`
306
306
  }
307
307
  }
308
308
  }
309
- `, tt = i`
309
+ `, at = i`
310
310
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
311
311
  createMayaWithdrawal(input: $input) {
312
312
  ... on AccountNotVerifiedError {
@@ -329,7 +329,7 @@ const Re = i`
329
329
  }
330
330
  }
331
331
  }
332
- `, at = i`
332
+ `, nt = i`
333
333
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
334
334
  createMayaAppWithdrawal(input: $input) {
335
335
  ... on AccountNotVerifiedError {
@@ -349,7 +349,7 @@ const Re = i`
349
349
  }
350
350
  }
351
351
  }
352
- `, rt = i`
352
+ `, ot = i`
353
353
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
354
354
  createBankWithdrawal(input: $input) {
355
355
  ... on MobileNumberNotVerifiedError {
@@ -357,7 +357,7 @@ const Re = i`
357
357
  }
358
358
  }
359
359
  }
360
- `, nt = i`
360
+ `, it = i`
361
361
  mutation CreateAIOInstapayWithdrawal($input: CreateAIOInstapayWithdrawalInput!) {
362
362
  createAIOInstapayWithdrawal(input: $input) {
363
363
  ... on AccountNotVerifiedError {
@@ -377,7 +377,7 @@ const Re = i`
377
377
  }
378
378
  }
379
379
  }
380
- `, ot = i`
380
+ `, st = i`
381
381
  query InstapayBankList {
382
382
  instapayBankList {
383
383
  id
@@ -385,11 +385,11 @@ const Re = i`
385
385
  name
386
386
  }
387
387
  }
388
- `, it = i`
388
+ `, mt = i`
389
389
  query RemainingDailyWithdrawalsCount {
390
390
  remainingDailyWithdrawalsCount
391
391
  }
392
- `, st = i`
392
+ `, ut = i`
393
393
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
394
394
  member {
395
395
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -418,7 +418,7 @@ const Re = i`
418
418
  }
419
419
  }
420
420
  }
421
- `, mt = i`
421
+ `, ct = i`
422
422
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
423
423
  createGCashDeposit(input: $input) {
424
424
  ... on DepositPromoMaximumAmountExceededError {
@@ -447,7 +447,7 @@ const Re = i`
447
447
  }
448
448
  }
449
449
  }
450
- `, ut = i`
450
+ `, dt = i`
451
451
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
452
452
  createMayaDeposit(input: $input) {
453
453
  ... on DepositPromoMaximumAmountExceededError {
@@ -476,7 +476,7 @@ const Re = i`
476
476
  }
477
477
  }
478
478
  }
479
- `, ct = i`
479
+ `, lt = i`
480
480
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
481
481
  createMayaAppDeposit(input: $input) {
482
482
  ... on DepositPromoMaximumAmountExceededError {
@@ -505,7 +505,7 @@ const Re = i`
505
505
  }
506
506
  }
507
507
  }
508
- `, dt = i`
508
+ `, pt = i`
509
509
  mutation CreateAIOQRPHDeposit($input: CreateAIOQRPHDepositInput!) {
510
510
  createAIOQRPHDeposit(input: $input) {
511
511
  ... on DepositPromoMaximumAmountExceededError {
@@ -534,7 +534,7 @@ const Re = i`
534
534
  }
535
535
  }
536
536
  }
537
- `, lt = i`
537
+ `, ft = i`
538
538
  mutation CreateAIOOnlineBankDeposit($input: CreateAIOOnlineBankDepositInput!) {
539
539
  createAIOOnlineBankDeposit(input: $input) {
540
540
  ... on DepositPromoMaximumAmountExceededError {
@@ -563,7 +563,7 @@ const Re = i`
563
563
  }
564
564
  }
565
565
  }
566
- `, pt = i`
566
+ `, wt = i`
567
567
  query Deposit($id: ObjectId!) {
568
568
  node(id: $id) {
569
569
  ... on GCashDeposit {
@@ -607,13 +607,13 @@ const Re = i`
607
607
  }
608
608
  }
609
609
  }
610
- `, ft = i`
610
+ `, yt = i`
611
611
  query DepositsCount {
612
612
  member {
613
613
  depositsCount
614
614
  }
615
615
  }
616
- `, wt = i`
616
+ `, ht = i`
617
617
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
618
618
  member {
619
619
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -651,7 +651,7 @@ const Re = i`
651
651
  }
652
652
  }
653
653
  }
654
- `, yt = i`
654
+ `, gt = i`
655
655
  query LatestBetRecords {
656
656
  latestBetRecords {
657
657
  id
@@ -668,7 +668,7 @@ const Re = i`
668
668
  dateTimeCreated
669
669
  }
670
670
  }
671
- `, ht = i`
671
+ `, bt = i`
672
672
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
673
673
  member {
674
674
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -695,7 +695,7 @@ const Re = i`
695
695
  }
696
696
  }
697
697
  `, Me = i`
698
- ${Re}
698
+ ${De}
699
699
 
700
700
  fragment PromoFragment on Promo {
701
701
  id
@@ -715,7 +715,7 @@ const Re = i`
715
715
  dateTimeCreated
716
716
  dateTimeLastUpdated
717
717
  }
718
- `, gt = i`
718
+ `, Et = i`
719
719
  ${Me}
720
720
 
721
721
  query Promos {
@@ -723,7 +723,7 @@ const Re = i`
723
723
  ...PromoFragment
724
724
  }
725
725
  }
726
- `, bt = i`
726
+ `, At = i`
727
727
  ${Me}
728
728
 
729
729
  query AvailablePromos($filter: PromoFilterInput) {
@@ -731,7 +731,7 @@ const Re = i`
731
731
  ...PromoFragment
732
732
  }
733
733
  }
734
- `, Et = i`
734
+ `, St = i`
735
735
  fragment SpotBonusFragment on SpotBonusPromo {
736
736
  id
737
737
  name
@@ -771,16 +771,16 @@ const Re = i`
771
771
  code
772
772
  maximumBonusesCountLimit
773
773
  }
774
- `, At = i`
775
- ${Et}
774
+ `, Ct = i`
775
+ ${St}
776
776
 
777
777
  query PromoByCode($code: String!) {
778
778
  promoByCode(code: $code) {
779
779
  ...SpotBonusFragment
780
780
  }
781
781
  }
782
- `, qe = i`
783
- ${Re}
782
+ `, Le = i`
783
+ ${De}
784
784
 
785
785
  fragment CashbackFragment on Cashback {
786
786
  id
@@ -798,15 +798,15 @@ const Re = i`
798
798
  dateTimeCreated
799
799
  dateTimeLastUpdated
800
800
  }
801
- `, St = i`
802
- ${qe}
801
+ `, kt = i`
802
+ ${Le}
803
803
 
804
804
  query Cashbacks {
805
805
  cashbacks {
806
806
  ...CashbackFragment
807
807
  }
808
808
  }
809
- `, Ct = i`
809
+ `, _t = i`
810
810
  ${Me}
811
811
 
812
812
  query Bonus {
@@ -835,7 +835,7 @@ const Re = i`
835
835
  dateTimeLastUpdated
836
836
  }
837
837
  }
838
- `, kt = i`
838
+ `, Tt = i`
839
839
  ${Me}
840
840
 
841
841
  query Bonuses {
@@ -864,8 +864,8 @@ const Re = i`
864
864
  dateTimeLastUpdated
865
865
  }
866
866
  }
867
- `, _t = i`
868
- ${qe}
867
+ `, Rt = i`
868
+ ${Le}
869
869
 
870
870
  query CashbackBonuses {
871
871
  cashbackBonuses {
@@ -879,7 +879,7 @@ const Re = i`
879
879
  dateTimeLastUpdated
880
880
  }
881
881
  }
882
- `, Tt = i`
882
+ `, Dt = i`
883
883
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
884
884
  claimCashbackBonus(input: $input) {
885
885
  ... on CashbackBonusDoesNotExistError {
@@ -895,7 +895,7 @@ i`
895
895
  }
896
896
  }
897
897
  `;
898
- const Dt = i`
898
+ const Mt = i`
899
899
  query MemberAccount {
900
900
  memberAccount: self {
901
901
  ... on MemberAccount {
@@ -919,8 +919,8 @@ const Dt = i`
919
919
  }
920
920
  }
921
921
  }
922
- `, Rt = i`
923
- ${Re}
922
+ `, Nt = i`
923
+ ${De}
924
924
 
925
925
  query MemberVerification {
926
926
  memberAccount: self {
@@ -944,7 +944,7 @@ const Dt = i`
944
944
  }
945
945
  }
946
946
  }
947
- `, Mt = i`
947
+ `, vt = i`
948
948
  mutation RegisterMemberAccount(
949
949
  $input: RegisterMemberAccountInput!
950
950
  $referralCode: String
@@ -978,9 +978,12 @@ const Dt = i`
978
978
  ... on MobileNumberNotAvailableError {
979
979
  __typename
980
980
  }
981
+ ... on ReCAPTCHAVerificationFailedError {
982
+ __typename
983
+ }
981
984
  }
982
985
  }
983
- `, Nt = i`
986
+ `, It = i`
984
987
  mutation RegisterMemberAccountViaMobile(
985
988
  $input: RegisterMemberAccountViaMobileInput!
986
989
  $referralCode: String
@@ -1005,9 +1008,12 @@ const Dt = i`
1005
1008
  ... on MobileNumberNotAvailableError {
1006
1009
  __typename
1007
1010
  }
1011
+ ... on ReCAPTCHAVerificationFailedError {
1012
+ __typename
1013
+ }
1008
1014
  }
1009
1015
  }
1010
- `, vt = i`
1016
+ `, Gt = i`
1011
1017
  mutation RegisterMemberAccount(
1012
1018
  $input: RegisterMemberAccountInput_next!
1013
1019
  $reCAPTCHAResponse: String
@@ -1022,9 +1028,6 @@ const Dt = i`
1022
1028
  ... on InvalidPlatformError {
1023
1029
  __typename
1024
1030
  }
1025
- ... on InvalidPlatformError {
1026
- __typename
1027
- }
1028
1031
  ... on InvalidReCAPTCHAResponseError {
1029
1032
  __typename
1030
1033
  }
@@ -1037,9 +1040,12 @@ const Dt = i`
1037
1040
  ... on MobileNumberNotAvailableError {
1038
1041
  __typename
1039
1042
  }
1043
+ ... on ReCAPTCHAVerificationFailedError {
1044
+ __typename
1045
+ }
1040
1046
  }
1041
1047
  }
1042
- `, It = i`
1048
+ `, Pt = i`
1043
1049
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
1044
1050
  registerMayaMemberAccount(input: $input) {
1045
1051
  ... on AccountNameNotAvailableError {
@@ -1047,7 +1053,7 @@ const Dt = i`
1047
1053
  }
1048
1054
  }
1049
1055
  }
1050
- `, Gt = i`
1056
+ `, Bt = i`
1051
1057
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
1052
1058
  updateMemberAccount(input: $input) {
1053
1059
  ... on AccountNameNotAvailableError {
@@ -1073,7 +1079,7 @@ const Dt = i`
1073
1079
  }
1074
1080
  }
1075
1081
  }
1076
- `, Pt = i`
1082
+ `, Ot = i`
1077
1083
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
1078
1084
  resetPassword(input: $input, verificationCode: $verificationCode) {
1079
1085
  ... on AccountNotFoundError {
@@ -1084,11 +1090,11 @@ const Dt = i`
1084
1090
  }
1085
1091
  }
1086
1092
  }
1087
- `, Bt = i`
1093
+ `, Wt = i`
1088
1094
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
1089
1095
  deleteMemberAccount(input: $input)
1090
1096
  }
1091
- `, Ot = i`
1097
+ `, xt = i`
1092
1098
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
1093
1099
  verifyMobileNumber(input: $input) {
1094
1100
  ... on InvalidSMSVerificationCodeError {
@@ -1099,7 +1105,7 @@ const Dt = i`
1099
1105
  }
1100
1106
  }
1101
1107
  }
1102
- `, Wt = i`
1108
+ `, Ut = i`
1103
1109
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
1104
1110
  createMemberVerification(input: $input) {
1105
1111
  ... on FileDoesNotExistError {
@@ -1113,7 +1119,7 @@ const Dt = i`
1113
1119
  }
1114
1120
  }
1115
1121
  }
1116
- `, xt = i`
1122
+ `, qt = i`
1117
1123
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
1118
1124
  updateMemberVerification(input: $input) {
1119
1125
  ... on FileDoesNotExistError {
@@ -1130,7 +1136,7 @@ const Dt = i`
1130
1136
  }
1131
1137
  }
1132
1138
  }
1133
- `, Ut = i`
1139
+ `, $t = i`
1134
1140
  query ProfileCompletion {
1135
1141
  profileCompletion {
1136
1142
  completionPercentage
@@ -1141,7 +1147,7 @@ const Dt = i`
1141
1147
  accountPassword
1142
1148
  }
1143
1149
  }
1144
- `, qt = i`
1150
+ `, Lt = i`
1145
1151
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
1146
1152
  sendVerificationCode(input: $input) {
1147
1153
  ... on InvalidPlatformError {
@@ -1152,7 +1158,7 @@ const Dt = i`
1152
1158
  }
1153
1159
  }
1154
1160
  }
1155
- `, $t = i`
1161
+ `, Ft = i`
1156
1162
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1157
1163
  minimumAmount
1158
1164
  maximumAmount
@@ -1217,12 +1223,12 @@ const Dt = i`
1217
1223
  multiplier
1218
1224
  }
1219
1225
  }
1220
- `, Lt = i`
1226
+ `, Vt = i`
1221
1227
  query Platform {
1222
1228
  timezone
1223
1229
  currency
1224
1230
  }
1225
- `, Ft = i`
1231
+ `, Ht = i`
1226
1232
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1227
1233
  minimumAmount
1228
1234
  maximumAmount
@@ -1282,7 +1288,7 @@ const Dt = i`
1282
1288
  ...WithdrawalGatewaySettingsCoreData
1283
1289
  }
1284
1290
  }
1285
- `, Vt = i`
1291
+ `, Yt = i`
1286
1292
  query MayaSession($id: ObjectId!) {
1287
1293
  mayaSession(id: $id) {
1288
1294
  id
@@ -1290,11 +1296,11 @@ const Dt = i`
1290
1296
  dateTimeCreated
1291
1297
  }
1292
1298
  }
1293
- `, Ht = i`
1299
+ `, Qt = i`
1294
1300
  mutation ValidateMayaSession {
1295
1301
  validateMayaSession: validMayaSession
1296
1302
  }
1297
- `, Yt = i`
1303
+ `, jt = i`
1298
1304
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
1299
1305
  member {
1300
1306
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1319,11 +1325,11 @@ const Dt = i`
1319
1325
  }
1320
1326
  }
1321
1327
  }
1322
- `, Qt = i`
1328
+ `, Kt = i`
1323
1329
  query ReferralCode {
1324
1330
  referralCode
1325
1331
  }
1326
- `, jt = i`
1332
+ `, zt = i`
1327
1333
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1328
1334
  updateReferralCode(input: $input) {
1329
1335
  ... on ReferralCodeNotAvailableError {
@@ -1349,7 +1355,7 @@ const Dt = i`
1349
1355
  commission
1350
1356
  dateTimeCreated
1351
1357
  }
1352
- `, Kt = i`
1358
+ `, Jt = i`
1353
1359
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1354
1360
  member {
1355
1361
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1371,7 +1377,7 @@ const Dt = i`
1371
1377
  }
1372
1378
 
1373
1379
  ${Ge}
1374
- `, zt = i`
1380
+ `, Xt = i`
1375
1381
  query UplinesByName($search: String!, $first: Int) {
1376
1382
  uplinesByName(search: $search, first: $first) {
1377
1383
  ...ReferralFragment
@@ -1379,7 +1385,7 @@ const Dt = i`
1379
1385
  }
1380
1386
 
1381
1387
  ${Ge}
1382
- `, Jt = i`
1388
+ `, Zt = i`
1383
1389
  query DownlinesByName($search: String!, $first: Int) {
1384
1390
  downlinesByName(search: $search, first: $first) {
1385
1391
  ...ReferralFragment
@@ -1387,7 +1393,7 @@ const Dt = i`
1387
1393
  }
1388
1394
 
1389
1395
  ${Ge}
1390
- `, Xt = i`
1396
+ `, er = i`
1391
1397
  query ReferralCommission {
1392
1398
  member {
1393
1399
  referralCommission {
@@ -1406,13 +1412,13 @@ const Dt = i`
1406
1412
  }
1407
1413
  }
1408
1414
  }
1409
- `, Zt = i`
1415
+ `, tr = i`
1410
1416
  query PointsClubSettings {
1411
1417
  pointsClubSettings {
1412
1418
  multiplier
1413
1419
  }
1414
1420
  }
1415
- `, ea = i`
1421
+ `, rr = i`
1416
1422
  query Messages($first: Int, $after: Cursor, $filter: MessageFilterInput) {
1417
1423
  messages(first: $first, after: $after, filter: $filter) {
1418
1424
  edges {
@@ -1442,21 +1448,21 @@ const Dt = i`
1442
1448
  }
1443
1449
  }
1444
1450
  }
1445
- `, ta = i`
1451
+ `, ar = i`
1446
1452
  query UnreadMessagesCount($filter: MessageFilterInput) {
1447
1453
  messages(filter: $filter) {
1448
1454
  totalCount
1449
1455
  }
1450
1456
  }
1451
- `, aa = i`
1457
+ `, nr = i`
1452
1458
  mutation MarkMessageAsRead($id: ObjectId!) {
1453
1459
  markMessageAsRead(id: $id)
1454
1460
  }
1455
- `, ra = i`
1461
+ `, or = i`
1456
1462
  mutation MarkAllMessageAsRead {
1457
1463
  markAllMessageAsRead
1458
1464
  }
1459
- `, na = i`
1465
+ `, ir = i`
1460
1466
  mutation ClaimReward($id: ObjectId!) {
1461
1467
  claimReward(id: $id) {
1462
1468
  ... on RewardAlreadyClaimedError {
@@ -1467,7 +1473,7 @@ const Dt = i`
1467
1473
  }
1468
1474
  }
1469
1475
  }
1470
- `, oa = i`
1476
+ `, sr = i`
1471
1477
  mutation ClaimSpotBonus($code: String!) {
1472
1478
  claimSpotBonus(code: $code) {
1473
1479
  ... on InvalidPromoCodeError {
@@ -1481,20 +1487,20 @@ const Dt = i`
1481
1487
  }
1482
1488
  }
1483
1489
  }
1484
- `, ia = i`
1490
+ `, mr = i`
1485
1491
  query OnboardingStatus {
1486
1492
  onboardingStatus
1487
1493
  }
1488
- `, sa = i`
1494
+ `, ur = i`
1489
1495
  mutation CompleteOnboarding($input: CompleteOnboardingInput!) {
1490
1496
  completeOnboarding(input: $input)
1491
1497
  }
1492
- `, ma = i`
1498
+ `, cr = i`
1493
1499
  mutation SkipOnboarding {
1494
1500
  skipOnboarding
1495
1501
  }
1496
1502
  `;
1497
- function d(o) {
1503
+ function l(o) {
1498
1504
  return {
1499
1505
  name: o,
1500
1506
  message: {
@@ -1550,61 +1556,80 @@ function d(o) {
1550
1556
  InvalidTokenOrSecretAnswerError: "Invalid token or secret answer",
1551
1557
  SessionExpiredError: "Session expired",
1552
1558
  RateLimitExceededError: "Maximum number of requests reached",
1553
- RewardAlreadyClaimedError: "Reward is already claimed"
1559
+ RewardAlreadyClaimedError: "Reward is already claimed",
1560
+ ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA"
1554
1561
  }[o]
1555
1562
  };
1556
1563
  }
1557
- class ua {
1564
+ class dr {
1558
1565
  constructor(e) {
1559
- c(this, "client");
1566
+ d(this, "client");
1560
1567
  this.client = e;
1561
1568
  }
1562
1569
  /** aka `Query.self` */
1563
1570
  async memberAccount() {
1564
- const e = await this.client.request(Dt);
1571
+ const e = await this.client.request(Mt);
1565
1572
  return e.ok ? {
1566
1573
  ok: !0,
1567
1574
  data: e.data.memberAccount
1568
1575
  } : e;
1569
1576
  }
1570
1577
  async registerMemberAccount(e) {
1571
- const t = await this.client.request(Mt, e);
1572
- return t.ok ? t.data.registerMemberAccount ? {
1578
+ const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(vt, r, {
1579
+ headers: {
1580
+ ...t && {
1581
+ "google-recaptcha-response": t
1582
+ }
1583
+ }
1584
+ });
1585
+ return a.ok ? a.data.registerMemberAccount ? {
1573
1586
  ok: !1,
1574
- error: d(t.data.registerMemberAccount.__typename)
1587
+ error: l(a.data.registerMemberAccount.__typename)
1575
1588
  } : {
1576
1589
  ok: !0
1577
- } : t;
1590
+ } : a;
1578
1591
  }
1579
1592
  async registerMemberAccountViaMobile(e) {
1580
- const t = await this.client.request(Nt, e);
1581
- return t.ok ? t.data.registerMemberAccountViaMobile ? {
1593
+ const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(It, r, {
1594
+ headers: {
1595
+ ...t && {
1596
+ "google-recaptcha-response": t
1597
+ }
1598
+ }
1599
+ });
1600
+ return a.ok ? a.data.registerMemberAccountViaMobile ? {
1582
1601
  ok: !1,
1583
- error: d(t.data.registerMemberAccountViaMobile.__typename)
1602
+ error: l(a.data.registerMemberAccountViaMobile.__typename)
1584
1603
  } : {
1585
1604
  ok: !0
1586
- } : t;
1605
+ } : a;
1587
1606
  }
1588
1607
  async registerMemberAccount__next(e) {
1589
- const t = await this.client.request(vt, e);
1590
- return t.ok ? t.data.registerMemberAccount ? {
1608
+ const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(Gt, r, {
1609
+ headers: {
1610
+ ...t && {
1611
+ "google-recaptcha-response": t
1612
+ }
1613
+ }
1614
+ });
1615
+ return a.ok ? a.data.registerMemberAccount ? {
1591
1616
  ok: !1,
1592
- error: d(t.data.registerMemberAccount.__typename)
1617
+ error: l(a.data.registerMemberAccount.__typename)
1593
1618
  } : {
1594
1619
  ok: !0
1595
- } : t;
1620
+ } : a;
1596
1621
  }
1597
1622
  async updateMemberAccount(e) {
1598
- const t = await this.client.request(Gt, e);
1623
+ const t = await this.client.request(Bt, e);
1599
1624
  return t.ok ? t.data.updateMemberAccount ? {
1600
1625
  ok: !1,
1601
- error: d(t.data.updateMemberAccount.__typename)
1626
+ error: l(t.data.updateMemberAccount.__typename)
1602
1627
  } : {
1603
1628
  ok: !0
1604
1629
  } : t;
1605
1630
  }
1606
1631
  async deleteMemberAccount(e) {
1607
- const t = await this.client.request(Bt, e);
1632
+ const t = await this.client.request(Wt, e);
1608
1633
  return t.ok ? t.data.deleteMemberAccount ? {
1609
1634
  ok: !0
1610
1635
  } : {
@@ -1617,66 +1642,66 @@ class ua {
1617
1642
  }
1618
1643
  async resetPassword(e) {
1619
1644
  const t = await this.client.request(
1620
- Pt,
1645
+ Ot,
1621
1646
  e
1622
1647
  );
1623
1648
  return t.ok ? t.data.resetPassword ? {
1624
1649
  ok: !1,
1625
- error: d(t.data.resetPassword.__typename)
1650
+ error: l(t.data.resetPassword.__typename)
1626
1651
  } : {
1627
1652
  ok: !0
1628
1653
  } : t;
1629
1654
  }
1630
1655
  async profileCompletion() {
1631
- const e = await this.client.request(Ut);
1656
+ const e = await this.client.request($t);
1632
1657
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1633
1658
  }
1634
1659
  /** @deprecated */
1635
1660
  async platform() {
1636
- return await this.client.request($t);
1661
+ return await this.client.request(Ft);
1637
1662
  }
1638
1663
  /** @deprecated */
1639
1664
  async sendVerificationCode(e) {
1640
- const t = await this.client.request(qt, e);
1665
+ const t = await this.client.request(Lt, e);
1641
1666
  return t.ok ? t.data.sendVerificationCode ? {
1642
1667
  ok: !1,
1643
- error: d(t.data.sendVerificationCode.__typename)
1668
+ error: l(t.data.sendVerificationCode.__typename)
1644
1669
  } : {
1645
1670
  ok: !0
1646
1671
  } : t;
1647
1672
  }
1648
1673
  async paymentSettings() {
1649
- return await this.client.request(Ft);
1674
+ return await this.client.request(Ht);
1650
1675
  }
1651
1676
  async verifyMobileNumber(e) {
1652
- const t = await this.client.request(Ot, e);
1677
+ const t = await this.client.request(xt, e);
1653
1678
  return t.ok ? t.data.verifyMobileNumber ? {
1654
1679
  ok: !1,
1655
- error: d(t.data.verifyMobileNumber.__typename)
1680
+ error: l(t.data.verifyMobileNumber.__typename)
1656
1681
  } : {
1657
1682
  ok: !0
1658
1683
  } : t;
1659
1684
  }
1660
1685
  async createMemberVerification(e) {
1661
- const t = await this.client.request(Wt, e);
1686
+ const t = await this.client.request(Ut, e);
1662
1687
  return t.ok ? t.data.createMemberVerification ? {
1663
1688
  ok: !1,
1664
- error: d(t.data.createMemberVerification.__typename)
1689
+ error: l(t.data.createMemberVerification.__typename)
1665
1690
  } : {
1666
1691
  ok: !0
1667
1692
  } : t;
1668
1693
  }
1669
1694
  async updateMemberVerification(e) {
1670
- const t = await this.client.request(xt, e);
1695
+ const t = await this.client.request(qt, e);
1671
1696
  return t.ok ? t.data.updateMemberVerification ? {
1672
1697
  ok: !1,
1673
- error: d(t.data.updateMemberVerification.__typename)
1698
+ error: l(t.data.updateMemberVerification.__typename)
1674
1699
  } : {
1675
1700
  ok: !0
1676
1701
  } : t;
1677
1702
  }
1678
1703
  async memberVerification() {
1679
- const e = await this.client.request(Rt);
1704
+ const e = await this.client.request(Nt);
1680
1705
  return e.ok ? {
1681
1706
  ok: !0,
1682
1707
  data: e.data.memberAccount.verification
@@ -1684,7 +1709,7 @@ class ua {
1684
1709
  }
1685
1710
  async announcements(e) {
1686
1711
  const t = await this.client.request(
1687
- Xe,
1712
+ et,
1688
1713
  e
1689
1714
  );
1690
1715
  return t.ok ? {
@@ -1693,32 +1718,32 @@ class ua {
1693
1718
  } : t;
1694
1719
  }
1695
1720
  async registerMayaMemberAccount(e) {
1696
- const t = await this.client.request(It, e);
1721
+ const t = await this.client.request(Pt, e);
1697
1722
  return t.ok ? t.data.registerMayaMemberAccount ? {
1698
1723
  ok: !1,
1699
- error: d(t.data.registerMayaMemberAccount.__typename)
1724
+ error: l(t.data.registerMayaMemberAccount.__typename)
1700
1725
  } : {
1701
1726
  ok: !0
1702
1727
  } : t;
1703
1728
  }
1704
1729
  async referralCode() {
1705
- const e = await this.client.request(Qt);
1730
+ const e = await this.client.request(Kt);
1706
1731
  return e.ok ? {
1707
1732
  ok: !0,
1708
1733
  data: e.data.referralCode
1709
1734
  } : e;
1710
1735
  }
1711
1736
  async updateReferralCode(e) {
1712
- const t = await this.client.request(jt, e);
1737
+ const t = await this.client.request(zt, e);
1713
1738
  return t.ok ? t.data.updateReferralCode ? {
1714
1739
  ok: !1,
1715
- error: d(t.data.updateReferralCode.__typename)
1740
+ error: l(t.data.updateReferralCode.__typename)
1716
1741
  } : {
1717
1742
  ok: !0
1718
1743
  } : t;
1719
1744
  }
1720
1745
  async pointsClubSettings() {
1721
- const e = await this.client.request(Zt);
1746
+ const e = await this.client.request(tr);
1722
1747
  return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
1723
1748
  }
1724
1749
  }
@@ -1738,10 +1763,10 @@ const Ne = {
1738
1763
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1739
1764
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1740
1765
  };
1741
- class ca {
1766
+ class lr {
1742
1767
  constructor(e) {
1743
- c(this, "url");
1744
- c(this, "platform");
1768
+ d(this, "url");
1769
+ d(this, "platform");
1745
1770
  this.url = e.url, this.platform = e.platform;
1746
1771
  }
1747
1772
  get headers() {
@@ -1751,31 +1776,31 @@ class ca {
1751
1776
  async createSession(e) {
1752
1777
  const t = new Headers(this.headers);
1753
1778
  if (e.name) {
1754
- const a = `${e.name}:${e.password}`, r = Buffer.from(a).toString("base64");
1755
- t.set("Authorization", `Basic ${r}`);
1779
+ const r = `${e.name}:${e.password}`, a = Buffer.from(r).toString("base64");
1780
+ t.set("Authorization", `Basic ${a}`);
1756
1781
  }
1757
1782
  if (e.mobileNumber) {
1758
- const a = `${e.mobileNumber}:${e.verificationCode}`, r = Buffer.from(a).toString("base64");
1759
- console.log(`MobileNumberOTP ${r}`), t.set("Authorization", `MobileNumberOTP ${r}`);
1783
+ const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
1784
+ console.log(`MobileNumberOTP ${a}`), t.set("Authorization", `MobileNumberOTP ${a}`);
1760
1785
  }
1761
1786
  e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`), e.token && t.set("Authorization", `Token ${e.token}`), e.reCAPTCHAResponse && t.set("google-recaptcha-response", e.reCAPTCHAResponse);
1762
1787
  try {
1763
- const a = await fetch(`${this.url}/sessions`, {
1788
+ const r = await fetch(`${this.url}/sessions`, {
1764
1789
  method: "POST",
1765
1790
  headers: t
1766
- }), r = await a.json();
1767
- return a.ok ? {
1791
+ }), a = await r.json();
1792
+ return r.ok ? {
1768
1793
  ok: !0,
1769
- data: r
1770
- } : r.code === "ACCOUNT_BLACKLISTED" ? {
1794
+ data: a
1795
+ } : a.code === "ACCOUNT_BLACKLISTED" ? {
1771
1796
  ok: !1,
1772
- error: d("AccountBlacklistedError")
1773
- } : r.code === "INVALID_RECAPTCHA_RESPONSE" ? {
1797
+ error: l("AccountBlacklistedError")
1798
+ } : a.code === "INVALID_RECAPTCHA_RESPONSE" ? {
1774
1799
  ok: !1,
1775
- error: d("InvalidReCAPTCHAResponseError")
1800
+ error: l("InvalidReCAPTCHAResponseError")
1776
1801
  } : {
1777
1802
  ok: !1,
1778
- error: y(a.status)
1803
+ error: y(r.status)
1779
1804
  };
1780
1805
  } catch {
1781
1806
  return {
@@ -1789,22 +1814,22 @@ class ca {
1789
1814
  if (e.type === "SECURITY_QUESTION") {
1790
1815
  t.set("Authorization", `Bearer ${e.token}`);
1791
1816
  try {
1792
- const a = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1817
+ const r = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1793
1818
  method: "POST",
1794
1819
  headers: t,
1795
1820
  body: JSON.stringify({
1796
1821
  secretAnswer: e.secretAnswer
1797
1822
  })
1798
- }), r = await a.json();
1799
- return a.ok ? {
1823
+ }), a = await r.json();
1824
+ return r.ok ? {
1800
1825
  ok: !0,
1801
- data: r
1802
- } : a.status === 401 || a.status === 403 ? {
1826
+ data: a
1827
+ } : r.status === 401 || r.status === 403 ? {
1803
1828
  ok: !1,
1804
- error: d("InvalidTokenOrSecretAnswerError")
1829
+ error: l("InvalidTokenOrSecretAnswerError")
1805
1830
  } : {
1806
1831
  ok: !1,
1807
- error: y(a.status)
1832
+ error: y(r.status)
1808
1833
  };
1809
1834
  } catch {
1810
1835
  return {
@@ -1819,22 +1844,22 @@ class ca {
1819
1844
  const t = new Headers(this.headers);
1820
1845
  t.append("Authorization", `Bearer ${e}`);
1821
1846
  try {
1822
- const a = await fetch(`${this.url}/session:refresh`, {
1847
+ const r = await fetch(`${this.url}/session:refresh`, {
1823
1848
  method: "POST",
1824
1849
  headers: t
1825
- }), r = await a.json();
1826
- return a.ok ? {
1850
+ }), a = await r.json();
1851
+ return r.ok ? {
1827
1852
  ok: !0,
1828
- data: r
1829
- } : r.code === "ACCOUNT_BLACKLISTED" ? {
1853
+ data: a
1854
+ } : a.code === "ACCOUNT_BLACKLISTED" ? {
1830
1855
  ok: !1,
1831
- error: d("AccountBlacklistedError")
1832
- } : a.status === 403 || a.status === 401 ? {
1856
+ error: l("AccountBlacklistedError")
1857
+ } : r.status === 403 || r.status === 401 ? {
1833
1858
  ok: !1,
1834
- error: d("InvalidTokenError")
1859
+ error: l("InvalidTokenError")
1835
1860
  } : {
1836
1861
  ok: !1,
1837
- error: y(a.status)
1862
+ error: y(r.status)
1838
1863
  };
1839
1864
  } catch {
1840
1865
  return {
@@ -1847,11 +1872,11 @@ class ca {
1847
1872
  const t = new Headers(this.headers);
1848
1873
  t.append("Authorization", `Bearer ${e}`);
1849
1874
  try {
1850
- const a = await fetch(`${this.url}/session`, {
1875
+ const r = await fetch(`${this.url}/session`, {
1851
1876
  method: "DELETE",
1852
1877
  headers: t
1853
1878
  });
1854
- return a.ok ? { ok: !0 } : { ok: !1, error: y(a.status) };
1879
+ return r.ok ? { ok: !0 } : { ok: !1, error: y(r.status) };
1855
1880
  } catch {
1856
1881
  return { ok: !1, error: y(500) };
1857
1882
  }
@@ -1870,8 +1895,8 @@ class ca {
1870
1895
  }
1871
1896
  async sendVerificationCode(e) {
1872
1897
  if (e.channel === "EMAIL") throw new Error("Email channel is not yet supported");
1873
- function t(a) {
1874
- switch (a) {
1898
+ function t(r) {
1899
+ switch (r) {
1875
1900
  case "MEMBER_NOT_FOUND":
1876
1901
  return "AccountNotFoundError";
1877
1902
  case "RATE_LIMIT_REACH":
@@ -1883,24 +1908,24 @@ class ca {
1883
1908
  }
1884
1909
  }
1885
1910
  try {
1886
- const a = await fetch(`${this.url}/otps`, {
1911
+ const r = await fetch(`${this.url}/otps`, {
1887
1912
  method: "POST",
1888
1913
  headers: this.headers,
1889
1914
  body: JSON.stringify(e)
1890
1915
  });
1891
- if (a.status === 403) {
1892
- const r = await a.json(), s = t(r.message);
1893
- return s ? {
1916
+ if (r.status === 403) {
1917
+ const a = await r.json(), m = t(a.message);
1918
+ return m ? {
1894
1919
  ok: !1,
1895
- error: d(s)
1920
+ error: l(m)
1896
1921
  } : {
1897
1922
  ok: !1,
1898
- error: y(a.status, r.message)
1923
+ error: y(r.status, a.message)
1899
1924
  };
1900
1925
  }
1901
- return a.ok ? { ok: !0 } : {
1926
+ return r.ok ? { ok: !0 } : {
1902
1927
  ok: !1,
1903
- error: y(a.status)
1928
+ error: y(r.status)
1904
1929
  };
1905
1930
  } catch {
1906
1931
  return {
@@ -1910,11 +1935,11 @@ class ca {
1910
1935
  }
1911
1936
  }
1912
1937
  }
1913
- class da {
1938
+ class pr {
1914
1939
  constructor(e) {
1915
- c(this, "url");
1916
- c(this, "siteId");
1917
- c(this, "platformId");
1940
+ d(this, "url");
1941
+ d(this, "siteId");
1942
+ d(this, "platformId");
1918
1943
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1919
1944
  }
1920
1945
  async self() {
@@ -1925,35 +1950,35 @@ class da {
1925
1950
  } : e;
1926
1951
  }
1927
1952
  async games(e) {
1928
- var r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V;
1953
+ var a, m, s, u, c, p, w, f, C, k, _, T, R, D, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V;
1929
1954
  const t = new URLSearchParams();
1930
- 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 = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (R = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.provider) != null && R.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
1955
+ 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), (m = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && m.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (s = e == null ? void 0 : e.filter) == null ? void 0 : s.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (D = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
1931
1956
  "filter[tags][in]",
1932
1957
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1933
1958
  ), (B = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && B.notIn && t.set(
1934
1959
  "filter[tags][nin]",
1935
1960
  e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1936
1961
  ), (x = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.reference) != null && x.equal && t.set("filter[reference][eq]", e.filter.reference.equal), (q = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.reference) != null && q.notEqual && t.set("filter[reference][neq]", e.filter.reference.notEqual), (L = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.reference) != null && L.in && t.set("filter[reference][in]", e.filter.reference.in.join(",")), (V = (F = e == null ? void 0 : e.filter) == null ? void 0 : F.reference) != null && V.notIn && t.set("filter[reference][nin]", e.filter.reference.notIn.join(",")), e != null && e.sort && t.set("sort[order]", e.sort);
1937
- const a = await this.getJson("/games", t);
1938
- return a.ok ? {
1962
+ const r = await this.getJson("/games", t);
1963
+ return r.ok ? {
1939
1964
  ok: !0,
1940
1965
  data: {
1941
- edges: a.data.data.map((E) => ({
1966
+ edges: r.data.data.map((E) => ({
1942
1967
  node: E,
1943
1968
  cursor: E.cursor
1944
1969
  })),
1945
- totalCount: a.data.totalCount ?? 0,
1970
+ totalCount: r.data.totalCount ?? 0,
1946
1971
  pageInfo: {
1947
- hasNextPage: !!a.data.next,
1948
- endCursor: a.data.next
1972
+ hasNextPage: !!r.data.next,
1973
+ endCursor: r.data.next
1949
1974
  }
1950
1975
  }
1951
- } : a;
1976
+ } : r;
1952
1977
  }
1953
1978
  async game(e) {
1954
- var a;
1979
+ var r;
1955
1980
  const t = await this.getJson(`/games/${e}`);
1956
- return ((a = t.error) == null ? void 0 : a.name) === "HttpNotFound" ? {
1981
+ return ((r = t.error) == null ? void 0 : r.name) === "HttpNotFound" ? {
1957
1982
  ok: !0,
1958
1983
  data: null
1959
1984
  } : t.ok ? {
@@ -1962,7 +1987,7 @@ class da {
1962
1987
  } : t;
1963
1988
  }
1964
1989
  async getJson(e, t) {
1965
- const a = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1990
+ const r = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1966
1991
  method: "GET",
1967
1992
  headers: {
1968
1993
  Accept: "application/json",
@@ -1972,13 +1997,13 @@ class da {
1972
1997
  }
1973
1998
  });
1974
1999
  try {
1975
- const r = await fetch(a);
1976
- return r.ok ? {
2000
+ const a = await fetch(r);
2001
+ return a.ok ? {
1977
2002
  ok: !0,
1978
- data: await r.json()
2003
+ data: await a.json()
1979
2004
  } : {
1980
2005
  ok: !1,
1981
- error: y(r.status)
2006
+ error: y(a.status)
1982
2007
  };
1983
2008
  } catch {
1984
2009
  return {
@@ -1988,36 +2013,36 @@ class da {
1988
2013
  }
1989
2014
  }
1990
2015
  }
1991
- class la {
2016
+ class fr {
1992
2017
  constructor(e) {
1993
- c(this, "client");
2018
+ d(this, "client");
1994
2019
  this.client = e;
1995
2020
  }
1996
2021
  async file(e) {
1997
- const t = await this.client.request(He, e);
2022
+ const t = await this.client.request(Qe, e);
1998
2023
  return t.ok ? {
1999
2024
  ok: !0,
2000
2025
  data: t.data.node
2001
2026
  } : t;
2002
2027
  }
2003
2028
  async uploadPrivateImageFile(e) {
2004
- const t = await this.client.upload(Ye, e);
2029
+ const t = await this.client.upload(je, e);
2005
2030
  return t.ok ? t.data.uploadPrivateImageFile ? {
2006
2031
  ok: !1,
2007
- error: d(t.data.uploadPrivateImageFile.__typename)
2032
+ error: l(t.data.uploadPrivateImageFile.__typename)
2008
2033
  } : {
2009
2034
  ok: !0
2010
2035
  } : t;
2011
2036
  }
2012
2037
  }
2013
- class pa {
2038
+ class wr {
2014
2039
  constructor(e) {
2015
- c(this, "client");
2040
+ d(this, "client");
2016
2041
  this.client = e;
2017
2042
  }
2018
2043
  async gameSession(e) {
2019
2044
  const t = await this.client.request(
2020
- We.legacy,
2045
+ Ue.legacy,
2021
2046
  e
2022
2047
  );
2023
2048
  return t.ok ? {
@@ -2026,16 +2051,16 @@ class pa {
2026
2051
  } : t;
2027
2052
  }
2028
2053
  async createGameSession(e) {
2029
- const t = await this.client.request(xe, e);
2054
+ const t = await this.client.request(qe, e);
2030
2055
  return t.ok ? t.data.createGameSession ? {
2031
2056
  ok: !1,
2032
- error: d(t.data.createGameSession.__typename)
2057
+ error: l(t.data.createGameSession.__typename)
2033
2058
  } : {
2034
2059
  ok: !0
2035
2060
  } : t;
2036
2061
  }
2037
2062
  async endGameSession(e) {
2038
- const t = await this.client.request(Ue.legacy, e);
2063
+ const t = await this.client.request($e.legacy, e);
2039
2064
  return t.ok ? t.data.endGameSession ? {
2040
2065
  ok: !1,
2041
2066
  error: {
@@ -2047,38 +2072,38 @@ class pa {
2047
2072
  } : t;
2048
2073
  }
2049
2074
  }
2050
- class fa {
2075
+ class yr {
2051
2076
  constructor(e) {
2052
- c(this, "client");
2077
+ d(this, "client");
2053
2078
  this.client = e;
2054
2079
  }
2055
2080
  async latestBetRecords() {
2056
- const e = await this.client.request(yt);
2081
+ const e = await this.client.request(gt);
2057
2082
  return e.ok ? {
2058
2083
  ok: !0,
2059
2084
  data: e.data.latestBetRecords
2060
2085
  } : e;
2061
2086
  }
2062
2087
  async platform() {
2063
- const e = await this.client.request(Lt);
2088
+ const e = await this.client.request(Vt);
2064
2089
  return e.ok ? {
2065
2090
  ok: !0,
2066
2091
  data: e.data
2067
2092
  } : e;
2068
2093
  }
2069
2094
  async recommendedGames() {
2070
- const e = await this.client.request(Je);
2095
+ const e = await this.client.request(Ze);
2071
2096
  return e.ok ? {
2072
2097
  ok: !0,
2073
2098
  data: e.data.recommendedGames
2074
2099
  } : e;
2075
2100
  }
2076
2101
  async onboardingStatus() {
2077
- const e = await this.client.request(ia);
2102
+ const e = await this.client.request(mr);
2078
2103
  return e.ok ? { ok: e.ok, data: e.data.onboardingStatus ?? [] } : e;
2079
2104
  }
2080
2105
  async completeOnboarding(e) {
2081
- const t = await this.client.request(sa, e);
2106
+ const t = await this.client.request(ur, e);
2082
2107
  return t.ok ? t.data.completeOnboarding ? {
2083
2108
  ok: !0
2084
2109
  } : {
@@ -2090,7 +2115,7 @@ class fa {
2090
2115
  } : t;
2091
2116
  }
2092
2117
  async skipOnboarding() {
2093
- const e = await this.client.request(ma);
2118
+ const e = await this.client.request(cr);
2094
2119
  return e.ok ? e.data.skipOnboarding ? {
2095
2120
  ok: !0
2096
2121
  } : {
@@ -2102,99 +2127,99 @@ class fa {
2102
2127
  } : e;
2103
2128
  }
2104
2129
  }
2105
- class wa {
2130
+ class hr {
2106
2131
  constructor(e) {
2107
- c(this, "client");
2132
+ d(this, "client");
2108
2133
  this.client = e;
2109
2134
  }
2110
2135
  async betRecords(e) {
2111
2136
  const t = await this.client.request(
2112
- wt,
2137
+ ht,
2113
2138
  e
2114
2139
  );
2115
2140
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
2116
2141
  }
2117
2142
  async transactionRecords(e) {
2118
- const t = await this.client.request(ht, e);
2143
+ const t = await this.client.request(bt, e);
2119
2144
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
2120
2145
  }
2121
2146
  async withdrawalRecords(e) {
2122
2147
  const t = await this.client.request(
2123
- Ze,
2148
+ tt,
2124
2149
  e
2125
2150
  );
2126
2151
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
2127
2152
  }
2128
2153
  async depositRecords(e) {
2129
2154
  const t = await this.client.request(
2130
- st,
2155
+ ut,
2131
2156
  e
2132
2157
  );
2133
2158
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
2134
2159
  }
2135
2160
  async depositsCount() {
2136
- const e = await this.client.request(ft);
2161
+ const e = await this.client.request(yt);
2137
2162
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
2138
2163
  }
2139
2164
  async pointsWalletTransactions(e) {
2140
- const t = await this.client.request(ze, e);
2165
+ const t = await this.client.request(Xe, e);
2141
2166
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
2142
2167
  }
2143
2168
  async activityRecords(e) {
2144
2169
  const t = await this.client.request(
2145
- Yt,
2170
+ jt,
2146
2171
  e
2147
2172
  );
2148
2173
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
2149
2174
  }
2150
2175
  async referrals(e) {
2151
2176
  const t = await this.client.request(
2152
- Kt,
2177
+ Jt,
2153
2178
  e
2154
2179
  );
2155
2180
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
2156
2181
  }
2157
2182
  async referralCommission() {
2158
- const e = await this.client.request(Xt);
2183
+ const e = await this.client.request(er);
2159
2184
  return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
2160
2185
  }
2161
2186
  async uplinesByName(e) {
2162
2187
  const t = await this.client.request(
2163
- zt,
2188
+ Xt,
2164
2189
  e
2165
2190
  );
2166
2191
  return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
2167
2192
  }
2168
2193
  async downlinesByName(e) {
2169
2194
  const t = await this.client.request(
2170
- Jt,
2195
+ Zt,
2171
2196
  e
2172
2197
  );
2173
2198
  return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
2174
2199
  }
2175
2200
  async promoByCode(e) {
2176
2201
  const t = await this.client.request(
2177
- At,
2202
+ Ct,
2178
2203
  e
2179
2204
  );
2180
2205
  return t.ok ? { ok: t.ok, data: t.data.promoByCode } : t;
2181
2206
  }
2182
2207
  }
2183
- class ya {
2208
+ class gr {
2184
2209
  constructor(e) {
2185
- c(this, "client");
2210
+ d(this, "client");
2186
2211
  this.client = e;
2187
2212
  }
2188
2213
  async messages(e) {
2189
2214
  const t = await this.client.request(
2190
- ea,
2215
+ rr,
2191
2216
  e
2192
2217
  );
2193
2218
  return t.ok ? { ok: t.ok, data: t.data.messages } : t;
2194
2219
  }
2195
2220
  async unreadMessagesCount(e) {
2196
2221
  const t = await this.client.request(
2197
- ta,
2222
+ ar,
2198
2223
  {
2199
2224
  ...e,
2200
2225
  filter: {
@@ -2208,7 +2233,7 @@ class ya {
2208
2233
  return t.ok ? { ok: t.ok, data: t.data.messages.totalCount } : t;
2209
2234
  }
2210
2235
  async markMessageAsRead(e) {
2211
- const t = await this.client.request(aa, e);
2236
+ const t = await this.client.request(nr, e);
2212
2237
  return t.ok ? t.data.markMessageAsRead ? {
2213
2238
  ok: !0
2214
2239
  } : {
@@ -2221,7 +2246,7 @@ class ya {
2221
2246
  }
2222
2247
  async markAllMessageAsRead() {
2223
2248
  const e = await this.client.request(
2224
- ra
2249
+ or
2225
2250
  );
2226
2251
  return e.ok ? e.data.markAllMessageAsRead ? {
2227
2252
  ok: !0
@@ -2235,46 +2260,46 @@ class ya {
2235
2260
  }
2236
2261
  async claimReward(e) {
2237
2262
  const t = await this.client.request(
2238
- na,
2263
+ ir,
2239
2264
  e
2240
2265
  );
2241
2266
  return t.ok ? t.data.claimReward ? {
2242
2267
  ok: !1,
2243
- error: d(t.data.claimReward.__typename)
2268
+ error: l(t.data.claimReward.__typename)
2244
2269
  } : {
2245
2270
  ok: !0
2246
2271
  } : t;
2247
2272
  }
2248
2273
  }
2249
- class ha {
2274
+ class br {
2250
2275
  constructor(e) {
2251
- c(this, "client");
2276
+ d(this, "client");
2252
2277
  this.client = e;
2253
2278
  }
2254
2279
  async promos() {
2255
- const e = await this.client.request(gt);
2280
+ const e = await this.client.request(Et);
2256
2281
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
2257
2282
  }
2258
2283
  async cashbacks() {
2259
- const e = await this.client.request(St);
2284
+ const e = await this.client.request(kt);
2260
2285
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
2261
2286
  }
2262
2287
  async availablePromos(e) {
2263
2288
  const t = await this.client.request(
2264
- bt,
2289
+ At,
2265
2290
  e
2266
2291
  );
2267
2292
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
2268
2293
  }
2269
2294
  async cashbackBonuses() {
2270
- const e = await this.client.request(_t);
2295
+ const e = await this.client.request(Rt);
2271
2296
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
2272
2297
  }
2273
2298
  async claimCashbackBonus(e) {
2274
- const t = await this.client.request(Tt, e);
2299
+ const t = await this.client.request(Dt, e);
2275
2300
  return t.ok ? t.data.claimCashbackBonus ? {
2276
2301
  ok: !1,
2277
- error: d(t.data.claimCashbackBonus.__typename)
2302
+ error: l(t.data.claimCashbackBonus.__typename)
2278
2303
  } : {
2279
2304
  ok: !0
2280
2305
  } : {
@@ -2283,159 +2308,159 @@ class ha {
2283
2308
  };
2284
2309
  }
2285
2310
  async bonus() {
2286
- const e = await this.client.request(Ct);
2311
+ const e = await this.client.request(_t);
2287
2312
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
2288
2313
  }
2289
2314
  async wallet() {
2290
- const e = await this.client.request(Qe);
2315
+ const e = await this.client.request(Ke);
2291
2316
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
2292
2317
  }
2293
2318
  async deposit(e) {
2294
2319
  const t = await this.client.request(
2295
- pt,
2320
+ wt,
2296
2321
  e
2297
2322
  );
2298
2323
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
2299
2324
  }
2300
2325
  async createGCashDeposit(e) {
2301
- const t = await this.client.request(mt, e);
2326
+ const t = await this.client.request(ct, e);
2302
2327
  return t.ok ? t.data.createGCashDeposit ? {
2303
2328
  ok: !1,
2304
- error: d(t.data.createGCashDeposit.__typename)
2329
+ error: l(t.data.createGCashDeposit.__typename)
2305
2330
  } : {
2306
2331
  ok: !0
2307
2332
  } : t;
2308
2333
  }
2309
2334
  async createMayaDeposit(e) {
2310
- const t = await this.client.request(ut, e);
2335
+ const t = await this.client.request(dt, e);
2311
2336
  return t.ok ? t.data.createMayaDeposit ? {
2312
2337
  ok: !1,
2313
- error: d(t.data.createMayaDeposit.__typename)
2338
+ error: l(t.data.createMayaDeposit.__typename)
2314
2339
  } : {
2315
2340
  ok: !0
2316
2341
  } : t;
2317
2342
  }
2318
2343
  async createAIOQRPHDeposit(e) {
2319
- const t = await this.client.request(dt, e);
2344
+ const t = await this.client.request(pt, e);
2320
2345
  return t.ok ? t.data.createAIOQRPHDeposit ? {
2321
2346
  ok: !1,
2322
- error: d(t.data.createAIOQRPHDeposit.__typename)
2347
+ error: l(t.data.createAIOQRPHDeposit.__typename)
2323
2348
  } : {
2324
2349
  ok: !0
2325
2350
  } : t;
2326
2351
  }
2327
2352
  async createAIOOnlineBankDeposit(e) {
2328
- const t = await this.client.request(lt, e);
2353
+ const t = await this.client.request(ft, e);
2329
2354
  return t.ok ? t.data.createAIOOnlineBankDeposit ? {
2330
2355
  ok: !1,
2331
- error: d(t.data.createAIOOnlineBankDeposit.__typename)
2356
+ error: l(t.data.createAIOOnlineBankDeposit.__typename)
2332
2357
  } : {
2333
2358
  ok: !0
2334
2359
  } : t;
2335
2360
  }
2336
2361
  async createMayaAppDeposit(e) {
2337
- const t = await this.client.request(ct, e);
2362
+ const t = await this.client.request(lt, e);
2338
2363
  return t.ok ? t.data.createMayaAppDeposit ? {
2339
2364
  ok: !1,
2340
- error: d(t.data.createMayaAppDeposit.__typename)
2365
+ error: l(t.data.createMayaAppDeposit.__typename)
2341
2366
  } : {
2342
2367
  ok: !0
2343
2368
  } : t;
2344
2369
  }
2345
2370
  async createGCashWithdrawal(e) {
2346
- const t = await this.client.request(et, e);
2371
+ const t = await this.client.request(rt, e);
2347
2372
  return t.ok ? t.data.createGCashWithdrawal ? {
2348
2373
  ok: !1,
2349
- error: d(t.data.createGCashWithdrawal.__typename)
2374
+ error: l(t.data.createGCashWithdrawal.__typename)
2350
2375
  } : {
2351
2376
  ok: !0
2352
2377
  } : t;
2353
2378
  }
2354
2379
  async createMayaWithdrawal(e) {
2355
- const t = await this.client.request(tt, e);
2380
+ const t = await this.client.request(at, e);
2356
2381
  return t.ok ? t.data.createMayaWithdrawal ? {
2357
2382
  ok: !1,
2358
- error: d(t.data.createMayaWithdrawal.__typename)
2383
+ error: l(t.data.createMayaWithdrawal.__typename)
2359
2384
  } : {
2360
2385
  ok: !0
2361
2386
  } : t;
2362
2387
  }
2363
2388
  async createMayaAppWithdrawal(e) {
2364
- const t = await this.client.request(at, e);
2389
+ const t = await this.client.request(nt, e);
2365
2390
  return t.ok ? t.data.createMayaAppWithdrawal ? {
2366
2391
  ok: !1,
2367
- error: d(t.data.createMayaAppWithdrawal.__typename)
2392
+ error: l(t.data.createMayaAppWithdrawal.__typename)
2368
2393
  } : {
2369
2394
  ok: !0
2370
2395
  } : t;
2371
2396
  }
2372
2397
  async createBankWithdrawal(e) {
2373
- const t = await this.client.request(rt, e);
2398
+ const t = await this.client.request(ot, e);
2374
2399
  return t.ok ? t.data.createBankWithdrawal ? {
2375
2400
  ok: !1,
2376
- error: d(t.data.createBankWithdrawal.__typename)
2401
+ error: l(t.data.createBankWithdrawal.__typename)
2377
2402
  } : {
2378
2403
  ok: !0
2379
2404
  } : t;
2380
2405
  }
2381
2406
  async createAIOInstapayWithdrawal(e) {
2382
- const t = await this.client.request(nt, e);
2407
+ const t = await this.client.request(it, e);
2383
2408
  return t.ok ? t.data.createAIOInstapayWithdrawal ? {
2384
2409
  ok: !1,
2385
- error: d(t.data.createAIOInstapayWithdrawal.__typename)
2410
+ error: l(t.data.createAIOInstapayWithdrawal.__typename)
2386
2411
  } : {
2387
2412
  ok: !0
2388
2413
  } : t;
2389
2414
  }
2390
2415
  async instapayBankList() {
2391
- const e = await this.client.request(ot);
2416
+ const e = await this.client.request(st);
2392
2417
  return e.ok ? { ok: e.ok, data: e.data.instapayBankList } : e;
2393
2418
  }
2394
2419
  async remainingDailyWithdrawalsCount() {
2395
2420
  const e = await this.client.request(
2396
- it
2421
+ mt
2397
2422
  );
2398
2423
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
2399
2424
  }
2400
2425
  async pointsWallet() {
2401
- const e = await this.client.request(je);
2426
+ const e = await this.client.request(ze);
2402
2427
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
2403
2428
  }
2404
2429
  async redeemPointsToCash(e) {
2405
- const t = await this.client.request(Ke, e);
2430
+ const t = await this.client.request(Je, e);
2406
2431
  return t.ok ? t.data.redeemPointsToCash ? {
2407
2432
  ok: !1,
2408
- error: d(t.data.redeemPointsToCash.__typename)
2433
+ error: l(t.data.redeemPointsToCash.__typename)
2409
2434
  } : {
2410
2435
  ok: !0
2411
2436
  } : t;
2412
2437
  }
2413
2438
  async mayaSession(e) {
2414
2439
  const t = await this.client.request(
2415
- Vt,
2440
+ Yt,
2416
2441
  e
2417
2442
  );
2418
2443
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
2419
2444
  }
2420
2445
  async gameSession(e) {
2421
2446
  const t = await this.client.request(
2422
- We.current,
2447
+ Ue.current,
2423
2448
  e
2424
2449
  );
2425
2450
  return t.ok ? { ok: !0, data: t.data.node } : t;
2426
2451
  }
2427
2452
  async createGameSession(e) {
2428
- const t = await this.client.request(xe, e);
2453
+ const t = await this.client.request(qe, e);
2429
2454
  return t.ok ? t.data.createGameSession ? {
2430
2455
  ok: !1,
2431
- error: d(t.data.createGameSession.__typename)
2456
+ error: l(t.data.createGameSession.__typename)
2432
2457
  } : {
2433
2458
  ok: !0
2434
2459
  } : t;
2435
2460
  }
2436
2461
  async endGameSession(e) {
2437
2462
  const t = await this.client.request(
2438
- Ue.current,
2463
+ $e.current,
2439
2464
  e
2440
2465
  );
2441
2466
  return t.ok ? t.data.endGameSession ? {
@@ -2450,7 +2475,7 @@ class ha {
2450
2475
  }
2451
2476
  async validateMayaSession() {
2452
2477
  const e = await this.client.request(
2453
- Ht
2478
+ Qt
2454
2479
  );
2455
2480
  return e.ok ? e.data.validateMayaSession ? {
2456
2481
  ok: !0
@@ -2463,18 +2488,17 @@ class ha {
2463
2488
  } : e;
2464
2489
  }
2465
2490
  async bonuses() {
2466
- const e = await this.client.request(kt);
2491
+ const e = await this.client.request(Tt);
2467
2492
  return e.ok ? { ok: e.ok, data: e.data.bonuses ?? [] } : e;
2468
2493
  }
2469
2494
  async claimSpotBonus(e) {
2470
- var a;
2471
2495
  const t = await this.client.request(
2472
- oa,
2496
+ sr,
2473
2497
  e
2474
2498
  );
2475
2499
  return t.ok ? t.data.claimSpotBonus ? {
2476
2500
  ok: !1,
2477
- error: d((a = t.data.claimSpotBonus) == null ? void 0 : a.__typename)
2501
+ error: l(t.data.claimSpotBonus.__typename)
2478
2502
  } : {
2479
2503
  ok: !0
2480
2504
  } : {
@@ -2493,20 +2517,20 @@ function j(o, e) {
2493
2517
  function ve(o, e) {
2494
2518
  return o.getTime() > e.getTime();
2495
2519
  }
2496
- class ga {
2520
+ class Er {
2497
2521
  constructor(e) {
2498
- c(this, "config");
2499
- c(this, "cache");
2522
+ d(this, "config");
2523
+ d(this, "cache");
2500
2524
  this.cache = {}, this.config = {
2501
2525
  cacheTime: 5,
2502
2526
  ...e
2503
2527
  };
2504
2528
  }
2505
2529
  set(e, t) {
2506
- const a = j(/* @__PURE__ */ new Date(), this.config.cacheTime);
2530
+ const r = j(/* @__PURE__ */ new Date(), this.config.cacheTime);
2507
2531
  this.cache[e] = {
2508
2532
  value: t,
2509
- validUntil: a
2533
+ validUntil: r
2510
2534
  };
2511
2535
  }
2512
2536
  get(e) {
@@ -2514,76 +2538,81 @@ class ga {
2514
2538
  return !t || ve(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
2515
2539
  }
2516
2540
  }
2517
- function ba(o, e, t) {
2541
+ function Ar(o, e, t) {
2518
2542
  return o < e ? e : o > t ? t : o;
2519
2543
  }
2520
2544
  function Ie(o) {
2521
2545
  return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
2522
2546
  }
2523
- function Ea(o) {
2547
+ function Sr(o) {
2524
2548
  const e = [];
2525
- function t(a, r = []) {
2526
- for (const s in a) {
2527
- const m = a[s];
2528
- Ie(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(Aa(m), [...r, s]) : e.push({
2529
- key: [...r, s],
2530
- value: m
2549
+ function t(r, a = []) {
2550
+ for (const m in r) {
2551
+ const s = r[m];
2552
+ Ie(s) ? t(s, [...a, m]) : Array.isArray(s) ? t(Cr(s), [...a, m]) : e.push({
2553
+ key: [...a, m],
2554
+ value: s
2531
2555
  });
2532
2556
  }
2533
2557
  }
2534
2558
  return t(o), e;
2535
2559
  }
2536
- function Aa(o) {
2537
- return o.reduce((e, t, a) => (e[a] = t, e), {});
2560
+ function Cr(o) {
2561
+ return o.reduce((e, t, r) => (e[r] = t, e), {});
2538
2562
  }
2539
2563
  class Q {
2540
2564
  constructor(e, t) {
2541
- c(this, "url");
2542
- c(this, "options");
2543
- c(this, "middlewares");
2544
- var r;
2545
- const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
2546
- this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
2547
- }
2548
- async request(e, t) {
2549
- const a = JSON.stringify({ query: e, variables: t }), r = new Headers(this.options.headers);
2550
- r.set("Content-Type", "application/json"), r.set("Accept", "application/json");
2551
- const s = new URL(this.url), m = Sa(e);
2552
- m && s.searchParams.set(`_${m.type}`, m.name);
2553
- const u = await this.runMiddlewares(
2554
- new Request(s, {
2555
- ...this.options,
2556
- body: a,
2557
- headers: r,
2565
+ d(this, "url");
2566
+ d(this, "options");
2567
+ d(this, "middlewares");
2568
+ var a;
2569
+ const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
2570
+ this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
2571
+ }
2572
+ async request(e, t, r) {
2573
+ const a = We(this.options, r), m = JSON.stringify({
2574
+ query: e,
2575
+ variables: t
2576
+ }), s = new Headers(a.headers);
2577
+ s.set("Content-Type", "application/json"), s.set("Accept", "application/json");
2578
+ const u = new URL(this.url), c = Oe(e);
2579
+ c && u.searchParams.set(`_${c.type}`, c.name);
2580
+ const p = await this.runMiddlewares(
2581
+ new Request(u, {
2582
+ ...a,
2583
+ body: m,
2584
+ headers: s,
2558
2585
  method: "POST"
2559
2586
  })
2560
2587
  );
2561
- return await this.exec(u);
2588
+ return await this.exec(p);
2562
2589
  }
2563
2590
  /** Single file upload */
2564
- async upload(e, t) {
2565
- const a = this.createUploadBody(e, t), r = new Headers(this.options.headers);
2566
- r.delete("Content-Type");
2567
- const s = await this.runMiddlewares(
2568
- new Request(this.url, {
2569
- ...this.options,
2570
- body: a,
2571
- headers: r,
2591
+ async upload(e, t, r) {
2592
+ const a = We(this.options, r), m = this.createUploadBody(e, t), s = new Headers(a.headers);
2593
+ s.delete("Content-Type");
2594
+ const u = new URL(this.url), c = Oe(e);
2595
+ c && u.searchParams.set(`_${c.type}`, c.name);
2596
+ const p = await this.runMiddlewares(
2597
+ new Request(u, {
2598
+ ...a,
2599
+ body: m,
2600
+ headers: s,
2572
2601
  method: "POST"
2573
2602
  })
2574
2603
  );
2575
- return await this.exec(s);
2604
+ return await this.exec(p);
2576
2605
  }
2577
2606
  async exec(e) {
2578
- var t, a, r, s, m, u;
2607
+ var t, r, a, m, s, u;
2579
2608
  try {
2580
- const l = await fetch(e);
2581
- if (!l.ok)
2582
- return { ok: !1, error: y(l.status) };
2583
- const f = await l.json(), w = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
2584
- return p ? ((a = p.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = p.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: y(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: y(401, p.message) } : ((m = p.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((u = p.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: y(400, p.message) } : {
2609
+ const c = await fetch(e);
2610
+ if (!c.ok)
2611
+ return { ok: !1, error: y(c.status) };
2612
+ const p = await c.json(), w = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
2613
+ return f ? ((r = f.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = f.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: y(403, f.message) } : ((m = f.extensions) == null ? void 0 : m.code) === "UNAUTHORIZED" ? { ok: !1, error: y(401, f.message) } : ((s = f.extensions) == null ? void 0 : s.code) === "BAD_USER_INPUT" || ((u = f.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: y(400, f.message) } : {
2585
2614
  ok: !1,
2586
- error: y(500, p.message)
2615
+ error: y(500, f.message)
2587
2616
  } : {
2588
2617
  ok: !0,
2589
2618
  data: w
@@ -2597,52 +2626,65 @@ class Q {
2597
2626
  }
2598
2627
  async runMiddlewares(e) {
2599
2628
  let t = e.clone();
2600
- for (const a of this.middlewares)
2601
- t = await a(t);
2629
+ for (const r of this.middlewares)
2630
+ t = await r(t);
2602
2631
  return t;
2603
2632
  }
2604
2633
  createUploadBody(e, t) {
2605
- const a = Ea(t).filter(
2606
- (m) => m.value instanceof File || m.value instanceof Blob
2607
- ), r = new FormData();
2608
- r.append(
2634
+ const r = Sr(t).filter(
2635
+ (s) => s.value instanceof File || s.value instanceof Blob
2636
+ ), a = new FormData();
2637
+ a.append(
2609
2638
  "operations",
2610
2639
  JSON.stringify({
2611
2640
  query: e,
2612
2641
  variables: t
2613
2642
  })
2614
2643
  );
2615
- const s = {};
2616
- return a.forEach((m, u) => {
2617
- s[u.toString()] = [`variables.${m.key.join(".")}`];
2618
- }), r.append("map", JSON.stringify(s)), a.forEach((m, u) => {
2619
- r.append(u.toString(), m.value);
2620
- }), r;
2644
+ const m = {};
2645
+ return r.forEach((s, u) => {
2646
+ m[u.toString()] = [`variables.${s.key.join(".")}`];
2647
+ }), a.append("map", JSON.stringify(m)), r.forEach((s, u) => {
2648
+ a.append(u.toString(), s.value);
2649
+ }), a;
2621
2650
  }
2622
2651
  }
2623
- function Sa(o) {
2652
+ function Oe(o) {
2624
2653
  const e = o.match(/(query|mutation)\s+(\w+)/);
2625
2654
  if (!e) return null;
2626
- const t = e.at(1), a = e.at(2);
2627
- return t && a ? { type: t, name: a } : null;
2655
+ const t = e.at(1), r = e.at(2);
2656
+ return t && r ? { type: t, name: r } : null;
2657
+ }
2658
+ function We(o, e) {
2659
+ return o ? e ? {
2660
+ ...o,
2661
+ ...e,
2662
+ headers: kr(o.headers, e.headers)
2663
+ } : o ?? {} : e ?? {};
2664
+ }
2665
+ function kr(o, e) {
2666
+ if (!o) return e;
2667
+ if (!e) return o;
2668
+ const t = new Headers();
2669
+ return new Headers(o).forEach((r, a) => t.append(a, r)), new Headers(e).forEach((r, a) => t.append(a, r)), t;
2628
2670
  }
2629
- function Ca(o) {
2671
+ function _r(o) {
2630
2672
  return o === "INR" ? "en-IN" : o === "MYR" ? "en-MY" : o === "IDR" ? "en-ID" : o === "USD" ? "en-US" : "en-PH";
2631
2673
  }
2632
- function ka(o) {
2674
+ function Tr(o) {
2633
2675
  return o === "en-IN" ? "+91" : o === "en-MY" ? "+60" : o === "en-ID" ? "+62" : o === "en-US" ? "+1" : "+63";
2634
2676
  }
2635
2677
  function O(o, e) {
2636
- const t = ka(e);
2678
+ const t = Tr(e);
2637
2679
  return o.startsWith(t) ? o : o.startsWith(t.substring(1)) ? `+${o}` : o.startsWith("0") ? `${t}${o.substring(1)}` : `${t}${o}`;
2638
2680
  }
2639
2681
  async function g(o) {
2640
2682
  const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
2641
- return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2683
+ return Array.from(new Uint8Array(t)).map((m) => m.toString(16).padStart(2, "0")).join("");
2642
2684
  }
2643
- class $e {
2685
+ class Fe {
2644
2686
  constructor(e) {
2645
- c(this, "enabled");
2687
+ d(this, "enabled");
2646
2688
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2647
2689
  }
2648
2690
  info(e) {
@@ -2662,36 +2704,36 @@ function K(o, e) {
2662
2704
  const t = Pe(o);
2663
2705
  return t.setDate(t.getDate() + e), t;
2664
2706
  }
2665
- function Le(o) {
2707
+ function Ve(o) {
2666
2708
  return new Promise((e) => {
2667
2709
  setTimeout(e, o);
2668
2710
  });
2669
2711
  }
2670
- function Oe(o, e) {
2712
+ function xe(o, e) {
2671
2713
  const {
2672
2714
  until: t,
2673
- interval: a = 1e3,
2674
- maxAttempt: r = 3
2715
+ interval: r = 1e3,
2716
+ maxAttempt: a = 3
2675
2717
  /**/
2676
2718
  } = e;
2677
- async function s(m, u) {
2678
- const l = u ?? r, f = await o(...m);
2679
- return t(f) ? f : l > 1 ? (await Le(a * ((r - l) / 2)), s(m, l - 1)) : f;
2719
+ async function m(s, u) {
2720
+ const c = u ?? a, p = await o(...s);
2721
+ return t(p) ? p : c > 1 ? (await Ve(r * ((a - c) / 2)), m(s, c - 1)) : p;
2680
2722
  }
2681
- return async (...m) => await s(m);
2723
+ return async (...s) => await m(s);
2682
2724
  }
2683
2725
  function z(o, e) {
2684
2726
  const t = Pe(o);
2685
2727
  return t.setMinutes(t.getMinutes() - e), t;
2686
2728
  }
2687
- class _a {
2729
+ class Rr {
2688
2730
  constructor(e) {
2689
- c(this, "logger");
2690
- c(this, "storageKey", "session");
2691
- c(this, "authService");
2692
- c(this, "walletService");
2693
- c(this, "_refreshing", !1);
2694
- this.authService = e.authService, this.walletService = e.walletService, this.logger = new $e({
2731
+ d(this, "logger");
2732
+ d(this, "storageKey", "session");
2733
+ d(this, "authService");
2734
+ d(this, "walletService");
2735
+ d(this, "_refreshing", !1);
2736
+ this.authService = e.authService, this.walletService = e.walletService, this.logger = new Fe({
2695
2737
  enabled: e.logs ?? !1
2696
2738
  });
2697
2739
  }
@@ -2702,7 +2744,7 @@ class _a {
2702
2744
  this._refreshing = e;
2703
2745
  }
2704
2746
  async create(e) {
2705
- var r;
2747
+ var a;
2706
2748
  if (this.isServer)
2707
2749
  return this.logger.warn("'localStorage' is not available on the server."), {
2708
2750
  ok: !1,
@@ -2712,16 +2754,16 @@ class _a {
2712
2754
  }
2713
2755
  };
2714
2756
  if (e.type === "MAYA") {
2715
- const m = await Oe(() => this.walletService.mayaSession({ id: e.sessionId }), {
2757
+ const s = await xe(() => this.walletService.mayaSession({ id: e.sessionId }), {
2716
2758
  until: (w) => {
2717
- var p;
2718
- return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
2759
+ var f;
2760
+ return w.ok && ((f = w.data) == null ? void 0 : f.member) != null;
2719
2761
  },
2720
2762
  interval: 1e3,
2721
2763
  maxAttempt: 5
2722
2764
  })();
2723
- if (!m.ok) return m;
2724
- if (!((r = m.data) != null && r.member))
2765
+ if (!s.ok) return s;
2766
+ if (!((a = s.data) != null && a.member))
2725
2767
  return {
2726
2768
  ok: !1,
2727
2769
  error: {
@@ -2729,19 +2771,19 @@ class _a {
2729
2771
  message: "Forbidden"
2730
2772
  }
2731
2773
  };
2732
- const l = await Oe(() => this.authService.createSession(e), {
2774
+ const c = await xe(() => this.authService.createSession(e), {
2733
2775
  until: (w) => w.ok,
2734
2776
  interval: 1e3,
2735
2777
  maxAttempt: 5
2736
2778
  })();
2737
- if (!l.ok) return l;
2738
- const f = /* @__PURE__ */ new Date();
2779
+ if (!c.ok) return c;
2780
+ const p = /* @__PURE__ */ new Date();
2739
2781
  return window.localStorage.setItem(
2740
2782
  this.storageKey,
2741
2783
  JSON.stringify({
2742
- ...l.data,
2743
- accessTokenExpiresAt: j(f, 8).getTime(),
2744
- refreshTokenExpiresAt: z(K(f, 30), 2).getTime()
2784
+ ...c.data,
2785
+ accessTokenExpiresAt: j(p, 8).getTime(),
2786
+ refreshTokenExpiresAt: z(K(p, 30), 2).getTime()
2745
2787
  })
2746
2788
  ), {
2747
2789
  ok: !0,
@@ -2749,40 +2791,40 @@ class _a {
2749
2791
  };
2750
2792
  }
2751
2793
  if (e.type === "MOBILE_NUMBER") {
2752
- const s = await this.authService.createSession(e);
2753
- if (s.ok) {
2754
- const m = /* @__PURE__ */ new Date();
2794
+ const m = await this.authService.createSession(e);
2795
+ if (m.ok) {
2796
+ const s = /* @__PURE__ */ new Date();
2755
2797
  return window.localStorage.setItem(
2756
2798
  this.storageKey,
2757
2799
  JSON.stringify({
2758
- ...s.data,
2759
- accessTokenExpiresAt: j(m, 8).getTime(),
2760
- refreshTokenExpiresAt: z(K(m, 30), 2).getTime()
2800
+ ...m.data,
2801
+ accessTokenExpiresAt: j(s, 8).getTime(),
2802
+ refreshTokenExpiresAt: z(K(s, 30), 2).getTime()
2761
2803
  })
2762
2804
  ), {
2763
2805
  ok: !0,
2764
2806
  data: null
2765
2807
  };
2766
2808
  }
2767
- return s;
2809
+ return m;
2768
2810
  }
2769
2811
  if (e.type === "TOKEN") {
2770
- const s = await this.authService.createSession({ token: e.token });
2771
- if (s.ok) {
2772
- const m = /* @__PURE__ */ new Date();
2812
+ const m = await this.authService.createSession({ token: e.token });
2813
+ if (m.ok) {
2814
+ const s = /* @__PURE__ */ new Date();
2773
2815
  return window.localStorage.setItem(
2774
2816
  this.storageKey,
2775
2817
  JSON.stringify({
2776
- ...s.data,
2777
- accessTokenExpiresAt: j(m, 8).getTime(),
2778
- refreshTokenExpiresAt: z(K(m, 30), 2).getTime()
2818
+ ...m.data,
2819
+ accessTokenExpiresAt: j(s, 8).getTime(),
2820
+ refreshTokenExpiresAt: z(K(s, 30), 2).getTime()
2779
2821
  })
2780
2822
  ), {
2781
2823
  ok: !0,
2782
2824
  data: null
2783
2825
  };
2784
2826
  }
2785
- return s;
2827
+ return m;
2786
2828
  }
2787
2829
  const t = await this.authService.createSession(e);
2788
2830
  if (!t.ok) return t;
@@ -2793,13 +2835,13 @@ class _a {
2793
2835
  authenticator: t.data.authenticator
2794
2836
  }
2795
2837
  };
2796
- const a = /* @__PURE__ */ new Date();
2838
+ const r = /* @__PURE__ */ new Date();
2797
2839
  return window.localStorage.setItem(
2798
2840
  this.storageKey,
2799
2841
  JSON.stringify({
2800
2842
  ...t.data,
2801
- accessTokenExpiresAt: j(a, 8).getTime(),
2802
- refreshTokenExpiresAt: z(K(a, 30), 2).getTime()
2843
+ accessTokenExpiresAt: j(r, 8).getTime(),
2844
+ refreshTokenExpiresAt: z(K(r, 30), 2).getTime()
2803
2845
  })
2804
2846
  ), {
2805
2847
  ok: !0,
@@ -2809,13 +2851,13 @@ class _a {
2809
2851
  async createFromAuthenticator(e) {
2810
2852
  const t = await this.authService.authenticate(e);
2811
2853
  if (t.ok) {
2812
- const a = /* @__PURE__ */ new Date();
2854
+ const r = /* @__PURE__ */ new Date();
2813
2855
  return this.isServer ? this.logger.warn("'localStorage' is not available on the server.") : window.localStorage.setItem(
2814
2856
  this.storageKey,
2815
2857
  JSON.stringify({
2816
2858
  ...t.data,
2817
- accessTokenExpiresAt: j(a, 8).getTime(),
2818
- refreshTokenExpiresAt: z(K(a, 30), 2).getTime()
2859
+ accessTokenExpiresAt: j(r, 8).getTime(),
2860
+ refreshTokenExpiresAt: z(K(r, 30), 2).getTime()
2819
2861
  })
2820
2862
  ), { ok: !0 };
2821
2863
  } else
@@ -2828,7 +2870,7 @@ class _a {
2828
2870
  data: null
2829
2871
  };
2830
2872
  if (this.refreshing)
2831
- return await Le(1e3), await this.get();
2873
+ return await Ve(1e3), await this.get();
2832
2874
  const e = window.localStorage.getItem(this.storageKey);
2833
2875
  if (!e)
2834
2876
  return {
@@ -2836,9 +2878,9 @@ class _a {
2836
2878
  data: null
2837
2879
  };
2838
2880
  try {
2839
- let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
2840
- const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2841
- if (ve(a, s))
2881
+ let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2882
+ const a = new Date(t.accessTokenExpiresAt), m = new Date(t.refreshTokenExpiresAt);
2883
+ if (ve(r, m))
2842
2884
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2843
2885
  ok: !1,
2844
2886
  error: {
@@ -2846,22 +2888,22 @@ class _a {
2846
2888
  message: "Session expired."
2847
2889
  }
2848
2890
  };
2849
- if (ve(a, r)) {
2891
+ if (ve(r, a)) {
2850
2892
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2851
- const m = await this.authService.refreshSession(t.refreshToken);
2852
- if (this.refreshing = !1, !m.ok)
2853
- return this.logger.error(`Failed to refresh session: ${m.error.message}`), m.error.name === "InvalidTokenError" || m.error.name === "AccountBlacklistedError" ? (window.localStorage.removeItem(this.storageKey), {
2893
+ const s = await this.authService.refreshSession(t.refreshToken);
2894
+ if (this.refreshing = !1, !s.ok)
2895
+ return this.logger.error(`Failed to refresh session: ${s.error.message}`), s.error.name === "InvalidTokenError" || s.error.name === "AccountBlacklistedError" ? (window.localStorage.removeItem(this.storageKey), {
2854
2896
  ok: !1,
2855
- error: m.error
2897
+ error: s.error
2856
2898
  }) : (this.logger.warn("Old session returned."), {
2857
2899
  ok: !0,
2858
2900
  data: t
2859
2901
  });
2860
- this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
2902
+ this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2861
2903
  ...t,
2862
- ...m.data,
2863
- accessTokenExpiresAt: j(a, 8).getTime(),
2864
- refreshTokenExpiresAt: z(K(a, 30), 2).getTime()
2904
+ ...s.data,
2905
+ accessTokenExpiresAt: j(r, 8).getTime(),
2906
+ refreshTokenExpiresAt: z(K(r, 30), 2).getTime()
2865
2907
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2866
2908
  }
2867
2909
  return {
@@ -2888,11 +2930,11 @@ class _a {
2888
2930
  (t = e.data) != null && t.accessToken && await this.authService.destroySession(e.data.accessToken), window.localStorage.removeItem(this.storageKey);
2889
2931
  }
2890
2932
  async verify() {
2891
- var a, r, s;
2933
+ var r, a, m;
2892
2934
  if (this.isServer)
2893
2935
  return this.logger.warn("'localStorage' is not available on the server."), !0;
2894
2936
  const e = await this.get();
2895
- if (((a = e.error) == null ? void 0 : a.name) === "InvalidTokenError" || ((r = e.error) == null ? void 0 : r.name) === "SessionExpiredError" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklistedError") return !1;
2937
+ if (((r = e.error) == null ? void 0 : r.name) === "InvalidTokenError" || ((a = e.error) == null ? void 0 : a.name) === "SessionExpiredError" || ((m = e.error) == null ? void 0 : m.name) === "AccountBlacklistedError") return !1;
2896
2938
  if (!e.data) return !0;
2897
2939
  const t = await this.authService.verifySession(e.data.accessToken);
2898
2940
  return t || window.localStorage.removeItem(this.storageKey), t;
@@ -2904,17 +2946,17 @@ class _a {
2904
2946
  function b(o) {
2905
2947
  const e = {};
2906
2948
  for (const t in o) {
2907
- const a = o[t];
2908
- if (a !== null && a !== void 0) {
2909
- if (Ie(a)) {
2910
- e[t] = b(a);
2949
+ const r = o[t];
2950
+ if (r !== null && r !== void 0) {
2951
+ if (Ie(r)) {
2952
+ e[t] = b(r);
2911
2953
  continue;
2912
2954
  }
2913
- if (Array.isArray(a)) {
2914
- e[t] = a.map((r) => Ie(r) ? b(r) : r);
2955
+ if (Array.isArray(r)) {
2956
+ e[t] = r.map((a) => Ie(a) ? b(a) : a);
2915
2957
  continue;
2916
2958
  }
2917
- e[t] = a;
2959
+ e[t] = r;
2918
2960
  }
2919
2961
  }
2920
2962
  return e;
@@ -2929,7 +2971,7 @@ function n(o, e) {
2929
2971
  }
2930
2972
  return e;
2931
2973
  }
2932
- class Ta {
2974
+ class Dr {
2933
2975
  get transform() {
2934
2976
  return {
2935
2977
  site: this.site.bind(this),
@@ -2976,7 +3018,7 @@ class Ta {
2976
3018
  }
2977
3019
  /** @deprecated */
2978
3020
  platform(e) {
2979
- var t, a, r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, De, Be;
3021
+ var t, r, a, m, s, u, c, p, w, f, C, k, _, T, R, D, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, Re, Be;
2980
3022
  return {
2981
3023
  timezone: e.timezone,
2982
3024
  currency: e.currency,
@@ -2986,25 +3028,25 @@ class Ta {
2986
3028
  depositGateway: {
2987
3029
  bank: {
2988
3030
  androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
2989
- iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2990
- webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2991
- mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2992
- minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
3031
+ iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
3032
+ webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
3033
+ mobileWebEnabled: ((m = e.bankDepositGatewaySettings) == null ? void 0 : m.mobileWebEnabled) ?? !1,
3034
+ minimumAmount: n((s = e.bankDepositGatewaySettings) == null ? void 0 : s.minimumAmount),
2993
3035
  maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2994
3036
  },
2995
3037
  gcash: {
2996
- androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2997
- iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
3038
+ androidEnabled: ((c = e.gcashDepositGatewaySettings) == null ? void 0 : c.androidEnabled) ?? !1,
3039
+ iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
2998
3040
  webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2999
- mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
3041
+ mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
3000
3042
  minimumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
3001
3043
  maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
3002
3044
  },
3003
3045
  maya: {
3004
3046
  androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
3005
3047
  iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
3006
- webEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
3007
- mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
3048
+ webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
3049
+ mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
3008
3050
  minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
3009
3051
  maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
3010
3052
  },
@@ -3039,8 +3081,8 @@ class Ta {
3039
3081
  iosEnabled: ((Z = e.bankWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
3040
3082
  webEnabled: ((ee = e.bankWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
3041
3083
  mobileWebEnabled: ((te = e.bankWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
3042
- minimumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.minimumAmount),
3043
- maximumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount)
3084
+ minimumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
3085
+ maximumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
3044
3086
  },
3045
3087
  gcash: {
3046
3088
  androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
@@ -3079,7 +3121,7 @@ class Ta {
3079
3121
  mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
3080
3122
  minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
3081
3123
  maximumAmount: n(
3082
- (De = e.instapayWithdrawalGatewaySettings) == null ? void 0 : De.maximumAmount,
3124
+ (Re = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Re.maximumAmount,
3083
3125
  1e6
3084
3126
  )
3085
3127
  }
@@ -3094,7 +3136,7 @@ class Ta {
3094
3136
  return {
3095
3137
  currency: e.currency,
3096
3138
  timezone: e.timezone,
3097
- locale: Ca(e.currency)
3139
+ locale: _r(e.currency)
3098
3140
  };
3099
3141
  }
3100
3142
  pointsClubSettings(e) {
@@ -3103,32 +3145,32 @@ class Ta {
3103
3145
  };
3104
3146
  }
3105
3147
  paymentSettings(e) {
3106
- var t, a, r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, De;
3148
+ var t, r, a, m, s, u, c, p, w, f, C, k, _, T, R, D, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, Re;
3107
3149
  return {
3108
3150
  minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
3109
3151
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
3110
3152
  depositGateway: {
3111
3153
  bank: {
3112
3154
  androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
3113
- iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
3114
- webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
3115
- mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
3116
- minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
3155
+ iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
3156
+ webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
3157
+ mobileWebEnabled: ((m = e.bankDepositGatewaySettings) == null ? void 0 : m.mobileWebEnabled) ?? !1,
3158
+ minimumAmount: n((s = e.bankDepositGatewaySettings) == null ? void 0 : s.minimumAmount),
3117
3159
  maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
3118
3160
  },
3119
3161
  gcash: {
3120
- androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
3121
- iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
3162
+ androidEnabled: ((c = e.gcashDepositGatewaySettings) == null ? void 0 : c.androidEnabled) ?? !1,
3163
+ iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
3122
3164
  webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
3123
- mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
3165
+ mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
3124
3166
  minimumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
3125
3167
  maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
3126
3168
  },
3127
3169
  maya: {
3128
3170
  androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
3129
3171
  iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
3130
- webEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
3131
- mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
3172
+ webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
3173
+ mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
3132
3174
  minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
3133
3175
  maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
3134
3176
  },
@@ -3163,8 +3205,8 @@ class Ta {
3163
3205
  iosEnabled: ((Z = e.bankWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
3164
3206
  webEnabled: ((ee = e.bankWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
3165
3207
  mobileWebEnabled: ((te = e.bankWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
3166
- minimumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.minimumAmount),
3167
- maximumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount)
3208
+ minimumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
3209
+ maximumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
3168
3210
  },
3169
3211
  gcash: {
3170
3212
  androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
@@ -3200,7 +3242,7 @@ class Ta {
3200
3242
  mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
3201
3243
  minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
3202
3244
  maximumAmount: n(
3203
- (De = e.instapayWithdrawalGatewaySettings) == null ? void 0 : De.maximumAmount,
3245
+ (Re = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Re.maximumAmount,
3204
3246
  1e6
3205
3247
  )
3206
3248
  }
@@ -3322,7 +3364,7 @@ class Ta {
3322
3364
  return b(t);
3323
3365
  }
3324
3366
  betRecord(e) {
3325
- var a;
3367
+ var r;
3326
3368
  const t = {
3327
3369
  id: e.id,
3328
3370
  bet: n(e.bet, 0),
@@ -3342,7 +3384,7 @@ class Ta {
3342
3384
  contestName: e.contestName ?? void 0,
3343
3385
  externalCategory: e.externalCategory ?? void 0,
3344
3386
  metadata: {
3345
- odds: ((a = e.metadata) == null ? void 0 : a.odds) ?? void 0
3387
+ odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
3346
3388
  }
3347
3389
  };
3348
3390
  return b(t);
@@ -3425,7 +3467,7 @@ class Ta {
3425
3467
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
3426
3468
  turnoverContributionPercentagePerGameProvider: Object.entries(
3427
3469
  e.turnoverContributionPercentagePerGameProvider
3428
- ).reduce((a, [r, s]) => (a[r] = n(s, 0), a), {})
3470
+ ).reduce((r, [a, m]) => (r[a] = n(m, 0), r), {})
3429
3471
  };
3430
3472
  }
3431
3473
  bonus(e) {
@@ -3585,61 +3627,61 @@ class Ta {
3585
3627
  dateTimeCreated: new Date(e.dateTimeCreated),
3586
3628
  turnoverRequirementContributionPercentagePerGameProvider: Object.entries(
3587
3629
  e.turnoverRequirementContributionPercentagePerGameProvider
3588
- ).reduce((t, [a, r]) => (t[a] = n(r, 0), t), {}),
3630
+ ).reduce((t, [r, a]) => (t[r] = n(a, 0), t), {}),
3589
3631
  minimumTicketOddFactorPerSportsGameProvider: Object.entries(
3590
3632
  e.minimumTicketOddFactorPerSportsGameProvider
3591
- ).reduce((t, [a, r]) => (t[a] = n(r, 0), t), {}),
3633
+ ).reduce((t, [r, a]) => (t[r] = n(a, 0), t), {}),
3592
3634
  banner: e.banner
3593
3635
  };
3594
3636
  }
3595
3637
  }
3596
- class Ma {
3638
+ class vr {
3597
3639
  constructor(e) {
3598
- c(this, "cmsPortalService");
3599
- c(this, "authService");
3600
- c(this, "gameService");
3601
- c(this, "fileService");
3602
- c(this, "walletService");
3603
- c(this, "accountService");
3604
- c(this, "reportService");
3605
- c(this, "portalService");
3606
- c(this, "triggerService");
3607
- c(this, "sessionManager");
3608
- c(this, "transformer");
3609
- c(this, "logger");
3610
- c(this, "cache");
3640
+ d(this, "cmsPortalService");
3641
+ d(this, "authService");
3642
+ d(this, "gameService");
3643
+ d(this, "fileService");
3644
+ d(this, "walletService");
3645
+ d(this, "accountService");
3646
+ d(this, "reportService");
3647
+ d(this, "portalService");
3648
+ d(this, "triggerService");
3649
+ d(this, "sessionManager");
3650
+ d(this, "transformer");
3651
+ d(this, "logger");
3652
+ d(this, "cache");
3611
3653
  const {
3612
3654
  /**/
3613
3655
  site: t,
3614
- sitePlatform: a,
3615
- platform: r,
3616
- environment: s,
3617
- logs: m
3618
- } = e, u = s === "production";
3619
- this.transformer = new Ta(), this.logger = new $e({
3620
- enabled: m ?? !1
3656
+ sitePlatform: r,
3657
+ platform: a,
3658
+ environment: m,
3659
+ logs: s
3660
+ } = e, u = m === "production";
3661
+ this.transformer = new Dr(), this.logger = new Fe({
3662
+ enabled: s ?? !1
3621
3663
  });
3622
- const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = u ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", D = "https://portal-api.opexacms.io/v1", R = new da({
3623
- url: D,
3664
+ const c = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", p = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", f = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = u ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", R = "https://portal-api.opexacms.io/v1", D = new pr({
3665
+ url: R,
3624
3666
  site: t,
3625
- platform: a
3667
+ platform: r
3626
3668
  }), h = {
3627
3669
  middlewares: [this.authMiddleware],
3628
3670
  fetchOptions: {
3629
3671
  headers: {
3630
3672
  Role: "MEMBER",
3631
- "Platform-Code": r
3673
+ "Platform-Code": a
3632
3674
  }
3633
3675
  }
3634
- }, M = new pa(new Q(_, h)), N = new la(new Q(k, h)), A = new ha(new Q(f, h)), v = new ua(new Q(p, h)), I = new wa(new Q(w, h)), G = new fa(new Q(C, h)), P = new ya(new Q(T, h)), S = new ca({
3635
- url: l,
3636
- platform: r
3637
- }), B = new _a({
3638
- logs: m,
3676
+ }, M = new wr(new Q(_, h)), N = new fr(new Q(k, h)), A = new br(new Q(p, h)), v = new dr(new Q(f, h)), I = new hr(new Q(w, h)), G = new yr(new Q(C, h)), P = new gr(new Q(T, h)), S = new lr({
3677
+ url: c,
3678
+ platform: a
3679
+ }), B = new Rr({
3680
+ logs: s,
3639
3681
  authService: S,
3640
3682
  walletService: A
3641
3683
  });
3642
- this.authService = S, this.gameService = M, this.fileService = N, this.walletService = A, this.accountService = v, this.reportService = I, this.portalService = G, this.triggerService = P, this.sessionManager = B, this.cmsPortalService = R, this.cache = new ga();
3684
+ this.authService = S, this.gameService = M, this.fileService = N, this.walletService = A, this.accountService = v, this.reportService = I, this.portalService = G, this.triggerService = P, this.sessionManager = B, this.cmsPortalService = D, this.cache = new Er();
3643
3685
  }
3644
3686
  get authMiddleware() {
3645
3687
  return async (e) => {
@@ -3650,10 +3692,10 @@ class Ma {
3650
3692
  }
3651
3693
  get locale() {
3652
3694
  return new Promise((e) => {
3653
- const t = "locale", a = this.cache.get(t);
3654
- if (a) return e(a);
3655
- this.platform__next().then((r) => {
3656
- r.ok ? (this.cache.set(t, r.data.locale), e(r.data.locale)) : (this.logger.warn("Failed to fetch currency. Using 'PH' as fallback"), e("en-PH"));
3695
+ const t = "locale", r = this.cache.get(t);
3696
+ if (r) return e(r);
3697
+ this.platform__next().then((a) => {
3698
+ a.ok ? (this.cache.set(t, a.data.locale), e(a.data.locale)) : (this.logger.warn("Failed to fetch currency. Using 'PH' as fallback"), e("en-PH"));
3657
3699
  });
3658
3700
  });
3659
3701
  }
@@ -3721,13 +3763,13 @@ class Ma {
3721
3763
  await this.sessionManager.destroy();
3722
3764
  }
3723
3765
  watchSession(e) {
3724
- const t = ba(e.interval ?? 3e4, 3e4, 6e4);
3725
- let a = null;
3726
- const r = () => setTimeout(async () => {
3727
- await this.sessionManager.verify() || await e.onInvalid(), a = r();
3766
+ const t = Ar(e.interval ?? 3e4, 3e4, 6e4);
3767
+ let r = null;
3768
+ const a = () => setTimeout(async () => {
3769
+ await this.sessionManager.verify() || await e.onInvalid(), r = a();
3728
3770
  }, t);
3729
- return a = r(), function() {
3730
- a && clearTimeout(a);
3771
+ return r = a(), function() {
3772
+ r && clearTimeout(r);
3731
3773
  };
3732
3774
  }
3733
3775
  async session() {
@@ -3798,7 +3840,7 @@ class Ma {
3798
3840
  * @deprecated use `createAccount__next`
3799
3841
  */
3800
3842
  async createAccount(e) {
3801
- const t = e.id ?? H.generate(Y.Account).toString(), a = await this.accountService.registerMemberAccount({
3843
+ const t = e.id ?? H.generate(Y.Account).toString(), r = await this.accountService.registerMemberAccount({
3802
3844
  input: {
3803
3845
  id: t,
3804
3846
  btag: e.btag,
@@ -3812,12 +3854,12 @@ class Ma {
3812
3854
  verificationCode: e.verificationCode,
3813
3855
  reCAPTCHAResponse: e.reCAPTCHAResponse
3814
3856
  });
3815
- return a.ok ? { ok: !0, data: { id: t } } : a;
3857
+ return r.ok ? { ok: !0, data: { id: t } } : r;
3816
3858
  }
3817
3859
  async createAccount__next(e) {
3818
3860
  const t = e.id ?? H.generate(Y.Account).toString();
3819
3861
  if (e.type === "MOBILE_NUMBER") {
3820
- const r = await this.accountService.registerMemberAccountViaMobile({
3862
+ const a = await this.accountService.registerMemberAccountViaMobile({
3821
3863
  input: {
3822
3864
  id: t,
3823
3865
  btag: e.btag,
@@ -3828,9 +3870,9 @@ class Ma {
3828
3870
  verificationCode: e.verificationCode,
3829
3871
  reCAPTCHAResponse: e.reCAPTCHAResponse
3830
3872
  });
3831
- return r.ok ? { ok: !0, data: { id: t } } : r;
3873
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3832
3874
  }
3833
- const a = await this.accountService.registerMemberAccount__next({
3875
+ const r = await this.accountService.registerMemberAccount__next({
3834
3876
  input: {
3835
3877
  id: t,
3836
3878
  name: e.name,
@@ -3841,7 +3883,7 @@ class Ma {
3841
3883
  },
3842
3884
  reCAPTCHAResponse: e.reCAPTCHAResponse
3843
3885
  });
3844
- return a.ok ? { ok: !0, data: { id: t } } : a;
3886
+ return r.ok ? { ok: !0, data: { id: t } } : r;
3845
3887
  }
3846
3888
  async registerMayaAccount(e) {
3847
3889
  return await this.accountService.registerMayaMemberAccount({
@@ -3855,23 +3897,23 @@ class Ma {
3855
3897
  async updateAccount(e, t) {
3856
3898
  const {
3857
3899
  /**/
3858
- password: a,
3859
- dateOfBirth: r,
3860
- mobileNumber: s,
3861
- secretAnswer: m,
3900
+ password: r,
3901
+ dateOfBirth: a,
3902
+ mobileNumber: m,
3903
+ secretAnswer: s,
3862
3904
  transactionPassword: u,
3863
- ...l
3905
+ ...c
3864
3906
  } = t;
3865
3907
  return await this.accountService.updateMemberAccount({
3866
3908
  input: {
3867
3909
  id: e,
3868
3910
  data: {
3869
- ...l,
3870
- password: a ? await g(a) : void 0,
3911
+ ...c,
3912
+ password: r ? await g(r) : void 0,
3871
3913
  transactionPassword: u ? await g(u) : void 0,
3872
- mobileNumber: s ? O(s, await this.locale) : void 0,
3873
- secretAnswer: m ? await g(m) : void 0,
3874
- birthDay: r ? typeof r == "string" ? r : this.formatYmd(r) : void 0
3914
+ mobileNumber: m ? O(m, await this.locale) : void 0,
3915
+ secretAnswer: s ? await g(s) : void 0,
3916
+ birthDay: a ? typeof a == "string" ? a : this.formatYmd(a) : void 0
3875
3917
  }
3876
3918
  }
3877
3919
  });
@@ -3891,13 +3933,13 @@ class Ma {
3891
3933
  } : e;
3892
3934
  }
3893
3935
  async submitVerificationDetails(e) {
3894
- const t = e.id ?? H.generate(Y.Verification).toString(), a = await this.accountService.createMemberVerification({
3936
+ const t = e.id ?? H.generate(Y.Verification).toString(), r = await this.accountService.createMemberVerification({
3895
3937
  input: {
3896
3938
  id: t,
3897
3939
  ...e
3898
3940
  }
3899
3941
  });
3900
- return a.ok ? { ok: !0, data: { id: t } } : a;
3942
+ return r.ok ? { ok: !0, data: { id: t } } : r;
3901
3943
  }
3902
3944
  async updateVerificationDetails(e, t) {
3903
3945
  return await this.accountService.updateMemberVerification({
@@ -3979,9 +4021,9 @@ class Ma {
3979
4021
  return t.ok ? {
3980
4022
  ok: !0,
3981
4023
  data: {
3982
- announcements: t.data.edges.map(({ cursor: a, node: r }) => ({
3983
- ...this.transformer.transform.announcement(r),
3984
- cursor: a
4024
+ announcements: t.data.edges.map(({ cursor: r, node: a }) => ({
4025
+ ...this.transformer.transform.announcement(a),
4026
+ cursor: r
3985
4027
  })),
3986
4028
  totalCount: t.data.totalCount,
3987
4029
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3997,17 +4039,17 @@ class Ma {
3997
4039
  async createWithdrawal(e) {
3998
4040
  const t = e.id ?? H.generate(Y.Withdrawal).toString();
3999
4041
  if (e.type === "BANK") {
4000
- const a = await this.walletService.createBankWithdrawal({
4042
+ const r = await this.walletService.createBankWithdrawal({
4001
4043
  input: {
4002
4044
  id: t,
4003
4045
  amount: e.amount.toString(),
4004
4046
  transactionPassword: await g(e.transactionPassword)
4005
4047
  }
4006
4048
  });
4007
- if (!a.ok) return a;
4049
+ if (!r.ok) return r;
4008
4050
  }
4009
4051
  if (e.type === "GCASH") {
4010
- const a = await this.walletService.createGCashWithdrawal({
4052
+ const r = await this.walletService.createGCashWithdrawal({
4011
4053
  input: {
4012
4054
  id: t,
4013
4055
  amount: e.amount.toString(),
@@ -4015,10 +4057,10 @@ class Ma {
4015
4057
  recipientMobileNumber: O(e.recipientMobileNumber, await this.locale)
4016
4058
  }
4017
4059
  });
4018
- if (!a.ok) return a;
4060
+ if (!r.ok) return r;
4019
4061
  }
4020
4062
  if (e.type === "MAYA") {
4021
- const a = await this.walletService.createMayaWithdrawal({
4063
+ const r = await this.walletService.createMayaWithdrawal({
4022
4064
  input: {
4023
4065
  id: t,
4024
4066
  amount: e.amount.toString(),
@@ -4026,20 +4068,20 @@ class Ma {
4026
4068
  recipientMobileNumber: O(e.recipientMobileNumber, await this.locale)
4027
4069
  }
4028
4070
  });
4029
- if (!a.ok) return a;
4071
+ if (!r.ok) return r;
4030
4072
  }
4031
4073
  if (e.type === "MAYA_APP") {
4032
- const a = await this.walletService.createMayaAppWithdrawal({
4074
+ const r = await this.walletService.createMayaAppWithdrawal({
4033
4075
  input: {
4034
4076
  id: t,
4035
4077
  amount: e.amount.toString(),
4036
4078
  transactionPassword: await g(e.transactionPassword)
4037
4079
  }
4038
4080
  });
4039
- if (!a.ok) return a;
4081
+ if (!r.ok) return r;
4040
4082
  }
4041
4083
  if (e.type === "AIO_INSTAPAY") {
4042
- const a = await this.walletService.createAIOInstapayWithdrawal({
4084
+ const r = await this.walletService.createAIOInstapayWithdrawal({
4043
4085
  input: {
4044
4086
  id: t,
4045
4087
  amount: e.amount.toString(),
@@ -4048,7 +4090,7 @@ class Ma {
4048
4090
  transactionPassword: await g(e.transactionPassword)
4049
4091
  }
4050
4092
  });
4051
- if (!a.ok) return a;
4093
+ if (!r.ok) return r;
4052
4094
  }
4053
4095
  return { ok: !0, data: { id: t } };
4054
4096
  }
@@ -4057,9 +4099,9 @@ class Ma {
4057
4099
  return t.ok ? {
4058
4100
  ok: !0,
4059
4101
  data: {
4060
- withdrawalRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
4061
- ...this.transformer.transform.withdrawalRecord(r),
4062
- cursor: a
4102
+ withdrawalRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
4103
+ ...this.transformer.transform.withdrawalRecord(a),
4104
+ cursor: r
4063
4105
  })),
4064
4106
  totalCount: t.data.totalCount,
4065
4107
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -4085,54 +4127,54 @@ class Ma {
4085
4127
  async createDeposit(e) {
4086
4128
  const t = e.id ?? H.generate(Y.Deposit).toString();
4087
4129
  if (e.type === "MAYA") {
4088
- const a = await this.walletService.createMayaDeposit({
4130
+ const r = await this.walletService.createMayaDeposit({
4089
4131
  input: {
4090
4132
  id: t,
4091
4133
  amount: e.amount.toString(),
4092
4134
  promo: e.promo
4093
4135
  }
4094
4136
  });
4095
- if (!a.ok) return a;
4137
+ if (!r.ok) return r;
4096
4138
  }
4097
4139
  if (e.type === "MAYA_APP") {
4098
- const a = await this.walletService.createMayaAppDeposit({
4140
+ const r = await this.walletService.createMayaAppDeposit({
4099
4141
  input: {
4100
4142
  id: t,
4101
4143
  amount: e.amount.toString(),
4102
4144
  promo: e.promo
4103
4145
  }
4104
4146
  });
4105
- if (!a.ok) return a;
4147
+ if (!r.ok) return r;
4106
4148
  }
4107
4149
  if (e.type === "GCASH") {
4108
- const a = await this.walletService.createGCashDeposit({
4150
+ const r = await this.walletService.createGCashDeposit({
4109
4151
  input: {
4110
4152
  id: t,
4111
4153
  amount: e.amount.toString(),
4112
4154
  promo: e.promo
4113
4155
  }
4114
4156
  });
4115
- if (!a.ok) return a;
4157
+ if (!r.ok) return r;
4116
4158
  }
4117
4159
  if (e.type === "AIO_ONLINE_BANK") {
4118
- const a = await this.walletService.createAIOOnlineBankDeposit({
4160
+ const r = await this.walletService.createAIOOnlineBankDeposit({
4119
4161
  input: {
4120
4162
  id: t,
4121
4163
  amount: e.amount.toString(),
4122
4164
  promo: e.promo
4123
4165
  }
4124
4166
  });
4125
- if (!a.ok) return a;
4167
+ if (!r.ok) return r;
4126
4168
  }
4127
4169
  if (e.type === "AIO_QRPH") {
4128
- const a = await this.walletService.createAIOQRPHDeposit({
4170
+ const r = await this.walletService.createAIOQRPHDeposit({
4129
4171
  input: {
4130
4172
  id: t,
4131
4173
  amount: e.amount.toString(),
4132
4174
  promo: e.promo
4133
4175
  }
4134
4176
  });
4135
- if (!a.ok) return a;
4177
+ if (!r.ok) return r;
4136
4178
  }
4137
4179
  return { ok: !0, data: { id: t } };
4138
4180
  }
@@ -4148,9 +4190,9 @@ class Ma {
4148
4190
  return t.ok ? {
4149
4191
  ok: !0,
4150
4192
  data: {
4151
- depositRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
4152
- ...this.transformer.transform.depositRecord(r),
4153
- cursor: a
4193
+ depositRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
4194
+ ...this.transformer.transform.depositRecord(a),
4195
+ cursor: r
4154
4196
  })),
4155
4197
  totalCount: t.data.totalCount,
4156
4198
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -4193,8 +4235,8 @@ class Ma {
4193
4235
  }
4194
4236
  });
4195
4237
  if (!t.ok) return t;
4196
- const a = [...new Set(t.data.edges.map((s) => s.node.game.id))];
4197
- if (a.length <= 0)
4238
+ const r = [...new Set(t.data.edges.map((m) => m.node.game.id))];
4239
+ if (r.length <= 0)
4198
4240
  return {
4199
4241
  ok: !0,
4200
4242
  data: {
@@ -4204,60 +4246,60 @@ class Ma {
4204
4246
  hasNextPage: !1
4205
4247
  }
4206
4248
  };
4207
- const r = await this.cmsPortalService.games({
4249
+ const a = await this.cmsPortalService.games({
4208
4250
  filter: {
4209
4251
  reference: {
4210
- in: a
4252
+ in: r
4211
4253
  }
4212
4254
  }
4213
4255
  });
4214
- return r.ok ? {
4256
+ return a.ok ? {
4215
4257
  ok: !0,
4216
4258
  data: {
4217
- betRecords: t.data.edges.map(({ cursor: s, node: m }) => {
4218
- var l;
4219
- const u = (l = r.data.edges.find((f) => m.game.id === f.node.reference)) == null ? void 0 : l.node;
4259
+ betRecords: t.data.edges.map(({ cursor: m, node: s }) => {
4260
+ var c;
4261
+ const u = (c = a.data.edges.find((p) => s.game.id === p.node.reference)) == null ? void 0 : c.node;
4220
4262
  return {
4221
4263
  ...this.transformer.transform.betRecord({
4222
- ...m,
4264
+ ...s,
4223
4265
  game: u
4224
4266
  }),
4225
- cursor: s
4267
+ cursor: m
4226
4268
  };
4227
4269
  }),
4228
4270
  totalCount: t.data.totalCount,
4229
4271
  endCursor: t.data.pageInfo.endCursor ?? void 0,
4230
4272
  hasNextPage: t.data.pageInfo.hasNextPage
4231
4273
  }
4232
- } : r;
4274
+ } : a;
4233
4275
  }
4234
4276
  async latestBetRecords() {
4235
4277
  const e = await this.portalService.latestBetRecords();
4236
4278
  if (!e.ok) return e;
4237
- const t = [...new Set(e.data.map((r) => r.game.id))];
4279
+ const t = [...new Set(e.data.map((a) => a.game.id))];
4238
4280
  if (t.length <= 0)
4239
4281
  return {
4240
4282
  ok: !0,
4241
4283
  data: []
4242
4284
  };
4243
- const a = await this.cmsPortalService.games({
4285
+ const r = await this.cmsPortalService.games({
4244
4286
  filter: {
4245
4287
  reference: {
4246
4288
  in: t
4247
4289
  }
4248
4290
  }
4249
4291
  });
4250
- return a.ok ? {
4292
+ return r.ok ? {
4251
4293
  ok: !0,
4252
- data: e.data.map((r) => {
4253
- var m;
4254
- const s = (m = a.data.edges.find((u) => u.node.reference === r.game.id)) == null ? void 0 : m.node;
4294
+ data: e.data.map((a) => {
4295
+ var s;
4296
+ const m = (s = r.data.edges.find((u) => u.node.reference === a.game.id)) == null ? void 0 : s.node;
4255
4297
  return this.transformer.transform.latestBetRecord({
4256
- ...r,
4257
- game: s
4298
+ ...a,
4299
+ game: m
4258
4300
  });
4259
4301
  })
4260
- } : a;
4302
+ } : r;
4261
4303
  }
4262
4304
  /**/
4263
4305
  /*+----------------------------------------+*/
@@ -4269,9 +4311,9 @@ class Ma {
4269
4311
  return t.ok ? {
4270
4312
  ok: !0,
4271
4313
  data: {
4272
- transactionRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
4273
- ...this.transformer.transform.transactionRecord(r),
4274
- cursor: a
4314
+ transactionRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
4315
+ ...this.transformer.transform.transactionRecord(a),
4316
+ cursor: r
4275
4317
  })),
4276
4318
  totalCount: t.data.totalCount,
4277
4319
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -4349,9 +4391,9 @@ class Ma {
4349
4391
  return t.ok ? {
4350
4392
  ok: !0,
4351
4393
  data: {
4352
- games: t.data.edges.map(({ cursor: a, node: r }) => ({
4353
- ...this.transformer.transform.game(r),
4354
- cursor: a
4394
+ games: t.data.edges.map(({ cursor: r, node: a }) => ({
4395
+ ...this.transformer.transform.game(a),
4396
+ cursor: r
4355
4397
  })),
4356
4398
  totalCount: t.data.totalCount,
4357
4399
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4362,8 +4404,8 @@ class Ma {
4362
4404
  async recommendedGames(e) {
4363
4405
  const t = await this.portalService.recommendedGames();
4364
4406
  if (!t.ok) return t;
4365
- const a = [...new Set(t.data.map((s) => s.id))];
4366
- if (a.length <= 0)
4407
+ const r = [...new Set(t.data.map((m) => m.id))];
4408
+ if (r.length <= 0)
4367
4409
  return {
4368
4410
  ok: !0,
4369
4411
  data: {
@@ -4373,27 +4415,27 @@ class Ma {
4373
4415
  endCursor: void 0
4374
4416
  }
4375
4417
  };
4376
- const r = await this.cmsPortalService.games({
4418
+ const a = await this.cmsPortalService.games({
4377
4419
  first: e == null ? void 0 : e.first,
4378
4420
  after: e == null ? void 0 : e.after,
4379
4421
  filter: {
4380
4422
  reference: {
4381
- in: a
4423
+ in: r
4382
4424
  }
4383
4425
  }
4384
4426
  });
4385
- return r.ok ? {
4427
+ return a.ok ? {
4386
4428
  ok: !0,
4387
4429
  data: {
4388
- games: r.data.edges.map(({ cursor: s, node: m }) => ({
4389
- ...this.transformer.transform.game(m),
4390
- cursor: s
4430
+ games: a.data.edges.map(({ cursor: m, node: s }) => ({
4431
+ ...this.transformer.transform.game(s),
4432
+ cursor: m
4391
4433
  })),
4392
- totalCount: r.data.totalCount,
4393
- hasNextPage: r.data.pageInfo.hasNextPage,
4394
- endCursor: r.data.pageInfo.endCursor ?? void 0
4434
+ totalCount: a.data.totalCount,
4435
+ hasNextPage: a.data.pageInfo.hasNextPage,
4436
+ endCursor: a.data.pageInfo.endCursor ?? void 0
4395
4437
  }
4396
- } : r;
4438
+ } : a;
4397
4439
  }
4398
4440
  async gameSession(e) {
4399
4441
  const t = await this.walletService.gameSession({ id: e });
@@ -4403,27 +4445,27 @@ class Ma {
4403
4445
  ok: !0,
4404
4446
  data: this.transformer.transform.gameSession(t.data)
4405
4447
  };
4406
- const a = await this.gameService.gameSession({ id: e });
4407
- return a.ok ? {
4448
+ const r = await this.gameService.gameSession({ id: e });
4449
+ return r.ok ? {
4408
4450
  ok: !0,
4409
- data: a.data ? this.transformer.transform.gameSession(a.data) : null
4410
- } : a;
4451
+ data: r.data ? this.transformer.transform.gameSession(r.data) : null
4452
+ } : r;
4411
4453
  }
4412
4454
  async createGameSession(e) {
4413
4455
  const t = e.id ?? H.generate(Y.GameSession).toString();
4414
4456
  if (e.game.startsWith("SPORTS:")) {
4415
- const f = await H.generateFromKey(Y.Game, e.game).then(
4416
- (p) => p.toString()
4457
+ const p = await H.generateFromKey(Y.Game, e.game).then(
4458
+ (f) => f.toString()
4417
4459
  ), w = await this.gameService.createGameSession({
4418
4460
  input: {
4419
4461
  id: t,
4420
- game: f
4462
+ game: p
4421
4463
  }
4422
4464
  });
4423
4465
  return w.ok ? { ok: !0, data: { id: t } } : w;
4424
4466
  }
4425
- const r = await this.game(e.game);
4426
- if (!r.data)
4467
+ const a = await this.game(e.game);
4468
+ if (!a.data)
4427
4469
  return {
4428
4470
  ok: !1,
4429
4471
  error: {
@@ -4431,7 +4473,7 @@ class Ma {
4431
4473
  message: "Game does not exist"
4432
4474
  }
4433
4475
  };
4434
- const { provider: s, reference: m } = r.data, l = [
4476
+ const { provider: m, reference: s } = a.data, c = [
4435
4477
  /**/
4436
4478
  "RTG",
4437
4479
  "DARWIN",
@@ -4441,8 +4483,8 @@ class Ma {
4441
4483
  "EVOLUTION_NETENT",
4442
4484
  "EVOLUTION_REDTIGER",
4443
4485
  "HOLLYWOODTV"
4444
- ].includes(s) ? await this.walletService.createGameSession({ input: { id: t, game: m } }) : await this.gameService.createGameSession({ input: { id: t, game: m } });
4445
- return l.ok ? { ok: !0, data: { id: t } } : l;
4486
+ ].includes(m) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
4487
+ return c.ok ? { ok: !0, data: { id: t } } : c;
4446
4488
  }
4447
4489
  async endGameSession(e) {
4448
4490
  const t = await this.walletService.endGameSession({ input: { id: e } });
@@ -4461,13 +4503,13 @@ class Ma {
4461
4503
  } : t;
4462
4504
  }
4463
4505
  async uploadImageFile(e) {
4464
- const t = e.id ?? H.generate(Y.File).toString(), a = await this.fileService.uploadPrivateImageFile({
4506
+ const t = e.id ?? H.generate(Y.File).toString(), r = await this.fileService.uploadPrivateImageFile({
4465
4507
  input: {
4466
4508
  id: t,
4467
4509
  file: e.file
4468
4510
  }
4469
4511
  });
4470
- return a.ok ? { ok: !0, data: { id: t } } : a;
4512
+ return r.ok ? { ok: !0, data: { id: t } } : r;
4471
4513
  }
4472
4514
  /**/
4473
4515
  /*+----------------------------------------+*/
@@ -4493,9 +4535,9 @@ class Ma {
4493
4535
  return t.ok ? {
4494
4536
  ok: !0,
4495
4537
  data: {
4496
- pointsWalletTransactions: t.data.edges.map(({ cursor: a, node: r }) => ({
4497
- ...this.transformer.transform.pointsWalletTransaction(r),
4498
- cursor: a
4538
+ pointsWalletTransactions: t.data.edges.map(({ cursor: r, node: a }) => ({
4539
+ ...this.transformer.transform.pointsWalletTransaction(a),
4540
+ cursor: r
4499
4541
  })),
4500
4542
  totalCount: t.data.totalCount,
4501
4543
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4513,9 +4555,9 @@ class Ma {
4513
4555
  return t.ok ? {
4514
4556
  ok: !0,
4515
4557
  data: {
4516
- activityRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
4517
- ...this.transformer.transform.activityRecord(r),
4518
- cursor: a
4558
+ activityRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
4559
+ ...this.transformer.transform.activityRecord(a),
4560
+ cursor: r
4519
4561
  })),
4520
4562
  totalCount: t.data.totalCount,
4521
4563
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4543,9 +4585,9 @@ class Ma {
4543
4585
  return t.ok ? {
4544
4586
  ok: !0,
4545
4587
  data: {
4546
- referrals: t.data.edges.map(({ cursor: a, node: r }) => ({
4547
- ...this.transformer.transform.referral(r),
4548
- cursor: a
4588
+ referrals: t.data.edges.map(({ cursor: r, node: a }) => ({
4589
+ ...this.transformer.transform.referral(a),
4590
+ cursor: r
4549
4591
  })),
4550
4592
  totalCount: t.data.totalCount,
4551
4593
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4591,9 +4633,9 @@ class Ma {
4591
4633
  return t.ok ? {
4592
4634
  ok: !0,
4593
4635
  data: {
4594
- messages: t.data.edges.map(({ cursor: a, node: r }) => ({
4595
- ...this.transformer.transform.message(r),
4596
- cursor: a
4636
+ messages: t.data.edges.map(({ cursor: r, node: a }) => ({
4637
+ ...this.transformer.transform.message(a),
4638
+ cursor: r
4597
4639
  })),
4598
4640
  totalCount: t.data.totalCount,
4599
4641
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4621,8 +4663,8 @@ class Ma {
4621
4663
  } : e;
4622
4664
  }
4623
4665
  formatYmd(e) {
4624
- const t = (m) => m.toString().padStart(2, "0"), a = e.getFullYear(), r = t(e.getMonth() + 1), s = t(e.getDate());
4625
- return `${a}-${r}-${s}`;
4666
+ const t = (s) => s.toString().padStart(2, "0"), r = e.getFullYear(), a = t(e.getMonth() + 1), m = t(e.getDate());
4667
+ return `${r}-${a}-${m}`;
4626
4668
  }
4627
4669
  /**/
4628
4670
  /*+----------------------------------------+*/
@@ -4649,8 +4691,8 @@ class Ma {
4649
4691
  }
4650
4692
  }
4651
4693
  export {
4652
- Ia as ObjectId,
4694
+ Pr as ObjectId,
4653
4695
  Y as ObjectType,
4654
- Ma as Sdk
4696
+ vr as Sdk
4655
4697
  };
4656
4698
  //# sourceMappingURL=index.mjs.map