@everymatrix/player-account-controller-nd 1.67.3 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/components/{GeneralLogout-BqarYaGX.js → GeneralLogout-D_LZ6noj.js} +1474 -1439
  2. package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
  3. package/components/{GeneralLogout-DpRb1GKt.js → GeneralLogout-PryurO1h.js} +1493 -1458
  4. package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CZ-2Eo65.js → PlayerAccountBettingHistory-BzAXq1xX.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-DRNj2_nh.js → PlayerAccountBettingHistory-CwTEYOIN.js} +27 -27
  7. package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-CS2Ou41a.js → PlayerAccountBiometrics-CtLvJg_Q.js} +22 -22
  9. package/components/{PlayerAccountBiometrics-Cp02JZ-p.js → PlayerAccountBiometrics-DIkqSnzX.js} +22 -22
  10. package/components/{PlayerAccountClosureNd-BDf6ZV_O.js → PlayerAccountClosureNd-7SyXUtdN.js} +17 -17
  11. package/components/{PlayerAccountClosureNd-DTSPR235.js → PlayerAccountClosureNd-Byw-X8Sr.js} +17 -17
  12. package/components/{PlayerAccountClosureNd-CEw0GMdr.cjs → PlayerAccountClosureNd-WqmFJkpU.cjs} +1 -1
  13. package/components/{PlayerAccountControllerNd-B290RGZ4.js → PlayerAccountControllerNd-C4fyqqh1.js} +1413 -1265
  14. package/components/{PlayerAccountControllerNd-D_OA5Wau.js → PlayerAccountControllerNd-Dwdl_p1l.js} +1412 -1264
  15. package/components/PlayerAccountControllerNd-zBnRxjjD.cjs +1 -0
  16. package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
  17. package/components/{PlayerAccountGamingLimits-DYeE-UoB.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-Dj1vdgsP.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-9Smxn0Eo.js → PlayerAccountGamingLimitsConfirmationModal-BzaZH1VM.js} +53 -53
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-BKE3chFw.js → PlayerAccountGamingLimitsConfirmationModal-CxFJV4Qq.js} +53 -53
  22. package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
  23. package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
  24. package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2Nd-B1bxRx8n.js → PlayerAccountGamingLimitsHistory2Nd-DrMT268T.js} +192 -192
  26. package/components/{PlayerAccountGamingLimitsHistory2Nd-CyUmcHfd.cjs → PlayerAccountGamingLimitsHistory2Nd-juZ45FBC.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2Nd-BWUzYYof.js → PlayerAccountGamingLimitsHistory2Nd-p3iqTl1u.js} +199 -199
  28. package/components/{PlayerAccountGamingLimitsInfoCard-n38U4Bet.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsInfoCard-Cu4_dbfd.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +80 -80
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-P6QYtcDU.js → PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js} +91 -91
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BPahpiGc.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs} +2 -2
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B0YXR_Gq.js → PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js} +618 -618
  34. package/components/{PlayerAccountGamingLimitsPopup-Chfup4AC.js → PlayerAccountGamingLimitsPopup-B5CoTG_T.js} +28 -28
  35. package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-D3tfs8br.js → PlayerAccountGamingLimitsPopup-CzDFUbRs.js} +28 -28
  37. package/components/{PlayerAccountGamingLimitsWrapper2Nd-Lpnlu5qV.js → PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js} +36 -36
  38. package/components/{PlayerAccountGamingLimitsWrapper2Nd-BNIOS6YH.cjs → PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DrBzSlfn.js → PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js} +36 -36
  40. package/components/{PlayerAccountGeneralConfirmationModal-C9sZnKk-.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +100 -105
  41. package/components/{PlayerAccountGeneralConfirmationModal-CzWW7TO1.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +100 -105
  42. package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
  43. package/components/{PlayerAccountMenuNd-BMezijtf.cjs → PlayerAccountMenuNd-BFdU3ZXb.cjs} +1 -1
  44. package/components/{PlayerAccountMenuNd-B14HHDMC.js → PlayerAccountMenuNd-Cs9UjL2S.js} +29 -29
  45. package/components/{PlayerAccountMenuNd-CGHNQ9Ia.js → PlayerAccountMenuNd-Cx7Fxjin.js} +29 -29
  46. package/components/{PlayerAccountModal-CNPgYrpB.js → PlayerAccountModal-DHs1T-B4.js} +44 -44
  47. package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
  48. package/components/{PlayerAccountModal-NKWbQg0Z.js → PlayerAccountModal-iZqtQZF3.js} +44 -44
  49. package/components/{PlayerAccountNotifications-Um7wlaR9.js → PlayerAccountNotifications-BjAtYQls.js} +120 -120
  50. package/components/{PlayerAccountNotifications-BciDzDyI.js → PlayerAccountNotifications-bjLmyXO3.js} +35 -35
  51. package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
  52. package/components/{PlayerAccountProductRestriction-CsV5cZJ7.js → PlayerAccountProductRestriction-ESKHafqp.js} +2241 -2215
  53. package/components/{PlayerAccountProductRestriction-D8hGhkip.js → PlayerAccountProductRestriction-h9nnGXrP.js} +2228 -2202
  54. package/components/{PlayerAccountProductRestriction-DWcq863g.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +271 -271
  55. package/components/{PlayerAccountSelfExclusionNd-CkhmY4v6.js → PlayerAccountSelfExclusionNd-9tdRb-BD.js} +906 -908
  56. package/components/{PlayerAccountSelfExclusionNd-Dxhpsh1V.js → PlayerAccountSelfExclusionNd-BQlI8ffc.js} +1204 -1206
  57. package/components/{PlayerAccountSelfExclusionNd-DA8DdIps.cjs → PlayerAccountSelfExclusionNd-BxnljuoQ.cjs} +155 -155
  58. package/components/{PlayerAccountTimeout-CK_vb2Rd.cjs → PlayerAccountTimeout-6ruoWoF3.cjs} +1 -1
  59. package/components/{PlayerAccountTimeout-DWrpBYDF.js → PlayerAccountTimeout-Bf9hZOsd.js} +103 -103
  60. package/components/{PlayerAccountTimeout-qUMzgfPL.js → PlayerAccountTimeout-CZR3PPPV.js} +103 -103
  61. package/components/{PlayerAccountTransactionsHistory-YXxnxAQo.js → PlayerAccountTransactionsHistory-CLGmdqFi.js} +56 -56
  62. package/components/{PlayerAccountTransactionsHistory-DUUcK6v0.cjs → PlayerAccountTransactionsHistory-CRmQjcHX.cjs} +1 -1
  63. package/components/{PlayerAccountTransactionsHistory-Dvj8Arct.js → PlayerAccountTransactionsHistory-CtyhdBep.js} +56 -56
  64. package/components/{PlayerActiveBonuses-rd6l2Hsn.js → PlayerActiveBonuses-CD7vVwcl.js} +497 -467
  65. package/components/{PlayerActiveBonuses-BxaW95IK.js → PlayerActiveBonuses-CfJuOJRv.js} +490 -460
  66. package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
  67. package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
  68. package/components/{PlayerBonusCard-DIuiutMI.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
  69. package/components/{PlayerBonusCard-O-ukO4ru.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
  70. package/components/PlayerBonusHistory-BBM_Ee_C.js +1051 -0
  71. package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
  72. package/components/PlayerBonusHistory-DtPqQdZo.js +1040 -0
  73. package/components/{PlayerChangePasswordNd-1bGRcLqZ.js → PlayerChangePasswordNd-B0W5bdN2.js} +71 -71
  74. package/components/{PlayerChangePasswordNd-DCg61OgS.js → PlayerChangePasswordNd-B0yPdyGM.js} +71 -71
  75. package/components/{PlayerChangePasswordNd-CjKqxbi8.cjs → PlayerChangePasswordNd-DEzeq-CF.cjs} +1 -1
  76. package/components/{PlayerDeposit-odz0L-Xa.js → PlayerDeposit-CHnzNVZy.js} +29 -29
  77. package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
  78. package/components/{PlayerDeposit-CwClAkf8.js → PlayerDeposit-N7o3ip4d.js} +29 -29
  79. package/components/PlayerGamingHistory-COsI7V9y.js +1016 -0
  80. package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
  81. package/components/{PlayerGamingHistory-B5lPYVlE.js → PlayerGamingHistory-DlQpmkPh.js} +472 -456
  82. package/components/{PlayerPendingWithdrawals-WueprUX6.js → PlayerPendingWithdrawals-B2WyLuNV.js} +26 -26
  83. package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
  84. package/components/{PlayerPendingWithdrawals-DSZjjRc5.js → PlayerPendingWithdrawals-CRRuYNXr.js} +26 -26
  85. package/components/{PlayerProfileInfo-ZyRI38hk.js → PlayerProfileInfo-Cnrcnxn9.js} +120 -120
  86. package/components/{PlayerProfileInfo-CQWJWCmN.cjs → PlayerProfileInfo-DcmY9plr.cjs} +1 -1
  87. package/components/{PlayerProfileInfo-x9MQyKin.js → PlayerProfileInfo-yVopMUMB.js} +116 -116
  88. package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
  89. package/components/{PlayerRealityCheck-Cvp1LCTw.js → PlayerRealityCheck-C7EUl18t.js} +44 -44
  90. package/components/{PlayerRealityCheck-BB6ql_la.js → PlayerRealityCheck-RsT9a67Q.js} +45 -45
  91. package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
  92. package/components/{PlayerTransactionHistory-B-WizKVy.js → PlayerTransactionHistory-BQlWb-B9.js} +19 -19
  93. package/components/{PlayerTransactionHistory-OP187htZ.js → PlayerTransactionHistory-DyBRNwAw.js} +19 -19
  94. package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
  95. package/components/{PlayerWithdrawal-5dv65FN3.js → PlayerWithdrawal-C6_CSTeL.js} +19 -19
  96. package/components/{PlayerWithdrawal-Cmns8eAn.js → PlayerWithdrawal-CgR0BwqA.js} +19 -19
  97. package/es2015/player-account-controller-nd.cjs +1 -1
  98. package/es2015/player-account-controller-nd.js +1 -1
  99. package/esnext/player-account-controller-nd.js +1 -1
  100. package/package.json +1 -1
  101. package/stencil/{checkbox-group-input_14-yDxYy7hE.js → checkbox-group-input_14-0MlabybW.js} +3270 -3262
  102. package/stencil/{checkbox-group-input_14-BQWBhbsW.cjs → checkbox-group-input_14-BUUOn-f1.cjs} +263 -263
  103. package/stencil/{checkbox-group-input_14-Rk4kY_Jo.js → checkbox-group-input_14-D0Wi9yCm.js} +3273 -3265
  104. package/stencil/{index-13661b98-mRWmP463.js → index-13661b98-Dd0kDfGP.js} +215 -215
  105. package/stencil/{index-13661b98-l0CINbAR.js → index-13661b98-Vb11Gqfi.js} +207 -207
  106. package/stencil/index-13661b98-wjpz7oVL.cjs +1 -0
  107. package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-B5I86vac.js} +192 -192
  108. package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DqUPq8OL.js} +185 -185
  109. package/stencil/index-1ef3a64c-uiTzpR-U.cjs +1 -0
  110. package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-2AC9SnQ7.js} +209 -209
  111. package/stencil/index-7c5e707a-BM4sfR0h.js +643 -0
  112. package/stencil/index-7c5e707a-Cw-c3Bke.cjs +1 -0
  113. package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
  114. package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
  115. package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
  116. package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
  117. package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
  118. package/stencil/index-b2193545-DePry399.js +503 -0
  119. package/stencil/{pam-change-password-CCgx2ZAF.cjs → pam-change-password-1_IegfkZ.cjs} +1 -1
  120. package/stencil/{pam-change-password-CDNRmQRk.js → pam-change-password-BUGFXbZ2.js} +1 -1
  121. package/stencil/{pam-change-password-CThYR6vj.js → pam-change-password-D23ISzqi.js} +1 -1
  122. package/stencil/{pam-change-password-f4a1e7e7-B3Gc4JmD.cjs → pam-change-password-f4a1e7e7-BqEyIcXD.cjs} +1 -1
  123. package/stencil/{pam-change-password-f4a1e7e7-DegbNPpZ.js → pam-change-password-f4a1e7e7-Cxe8Atmr.js} +1 -1
  124. package/stencil/{pam-change-password-f4a1e7e7-B0x-tDUM.js → pam-change-password-f4a1e7e7-DzJmDiaX.js} +1 -1
  125. package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
  126. package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
  127. package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
  128. package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
  129. package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
  130. package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
  131. package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
  132. package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
  133. package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
  134. package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-BjmaGgRK.js} +46 -46
  135. package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-D6SDVw3h.js} +46 -46
  136. package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Du59X_-y.cjs} +2 -2
  137. package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
  138. package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
  139. package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
  140. package/components/GeneralLogout-DweBl3EQ.cjs +0 -21
  141. package/components/PlayerAccountControllerNd-DkVyWe_r.cjs +0 -1
  142. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
  143. package/components/PlayerAccountGamingLimitsGroupEdit-CmrrVg_q.js +0 -2893
  144. package/components/PlayerAccountGamingLimitsGroupEdit-IS7pwiyD.js +0 -2893
  145. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
  146. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
  147. package/components/PlayerActiveBonuses-C7-7ACSS.cjs +0 -1
  148. package/components/PlayerBonusCard-nwlvuWsq.cjs +0 -1
  149. package/components/PlayerBonusHistory-B6_Qlsz7.js +0 -985
  150. package/components/PlayerBonusHistory-BAFl02wK.cjs +0 -1
  151. package/components/PlayerBonusHistory-BrGDpOUK.js +0 -986
  152. package/components/PlayerGamingHistory-BMqF0jZ1.cjs +0 -1
  153. package/components/PlayerGamingHistory-DMzWvxJW.js +0 -975
  154. package/stencil/index-13661b98-Pl0EtfMi.cjs +0 -1
  155. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
  156. package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
  157. package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
  158. package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
  159. package/stencil/index-b2193545-BXNomIzV.js +0 -519
  160. package/stencil/index-b2193545-CYe2oVMy.js +0 -503
  161. package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
  162. package/stencil/user-transaction-history-BU4-cXt6.js +0 -350
  163. package/stencil/user-transaction-history-CXBKXul8.js +0 -374
  164. package/stencil/user-transaction-history-DLLIZ5Ck.cjs +0 -1
@@ -0,0 +1,1621 @@
1
+ import { b as rt, p as it, r as ot, g as q, h as s, H as st, a as lt } from "./index-7c5e707a-2AC9SnQ7.js";
2
+ import { d as dt } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
+ var ut = () => {
4
+ const e = import.meta.url, t = {};
5
+ return e !== "" && (t.resourcesUrl = new URL(".", e).href), it(t);
6
+ };
7
+ ut().then(async (e) => (await dt(), rt([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], dateFormat: [513, "date-format"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], e)));
8
+ const ct = {
9
+ en: {
10
+ deposit: "Deposit",
11
+ withdrawals: "Withdrawals",
12
+ show: "Show",
13
+ from: "From",
14
+ to: "To",
15
+ filter: "Filter",
16
+ transactionId: "Transaction ID",
17
+ date: "Date",
18
+ amount: "Amount",
19
+ productType: "Product Type",
20
+ status: "Status",
21
+ noData: "There are no account activities"
22
+ },
23
+ hr: {
24
+ deposit: "Uplate",
25
+ withdrawals: "Isplate",
26
+ show: "Prikaži",
27
+ from: "Od",
28
+ to: "Do",
29
+ filter: "Filter",
30
+ transactionId: "ID transakcije",
31
+ date: "Datum",
32
+ amount: "Iznos",
33
+ productType: "Vrsta proizvoda",
34
+ status: "Status",
35
+ noData: "Nema aktivnosti na računu"
36
+ }
37
+ };
38
+ class l {
39
+ constructor() {
40
+ }
41
+ static async loadCustomTranslations(t) {
42
+ try {
43
+ const a = await fetch(t, {
44
+ headers: {
45
+ "Content-Type": "application/json"
46
+ }
47
+ });
48
+ if (!a.ok) {
49
+ const r = await a.text();
50
+ throw new Error(r);
51
+ }
52
+ const n = await a.json();
53
+ l.updateTranslations(n);
54
+ } catch (a) {
55
+ console.error(`Failed to load translations ${t}. ${a.message}`);
56
+ }
57
+ }
58
+ static translate(t, a) {
59
+ var n, r;
60
+ const i = l.getAvaliableLanguages(a);
61
+ return ((r = (n = l.customTranslation) === null || n === void 0 ? void 0 : n[i.customLanguage]) === null || r === void 0 ? void 0 : r[t]) || l.defaultTranslation[i.predefinedLanguage][t];
62
+ }
63
+ static getAvaliableLanguages(t) {
64
+ var a;
65
+ const n = !((a = l.customLanguages) === null || a === void 0) && a.includes(t) ? t : l.defaultLanguage;
66
+ return { predefinedLanguage: l.supportedLanguages.includes(t) ? t : l.defaultLanguage, customLanguage: n };
67
+ }
68
+ static updateTranslations(t) {
69
+ l.customLanguages = Array.from(/* @__PURE__ */ new Set([...l.supportedLanguages, ...Object.keys(t).map((a) => a.toLowerCase())])), l.customTranslation = t;
70
+ }
71
+ }
72
+ l.defaultLanguage = "en";
73
+ l.supportedLanguages = ["en"];
74
+ l.defaultTranslation = ct;
75
+ const ht = () => s(
76
+ "div",
77
+ { class: "loader" },
78
+ s("div", null),
79
+ s("div", null),
80
+ s("div", null),
81
+ s("div", null),
82
+ s("div", null),
83
+ s("div", null),
84
+ s("div", null),
85
+ s("div", null),
86
+ s("div", null),
87
+ s("div", null),
88
+ s("div", null),
89
+ s("div", null)
90
+ );
91
+ function Y(e) {
92
+ "@babel/helpers - typeof";
93
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
94
+ return typeof t;
95
+ } : function(t) {
96
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
97
+ }, Y(e);
98
+ }
99
+ function v(e, t) {
100
+ if (t.length < e)
101
+ throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
102
+ }
103
+ function ft(e) {
104
+ return v(1, arguments), e instanceof Date || Y(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
105
+ }
106
+ function y(e) {
107
+ v(1, arguments);
108
+ var t = Object.prototype.toString.call(e);
109
+ return e instanceof Date || Y(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
110
+ }
111
+ function mt(e) {
112
+ if (v(1, arguments), !ft(e) && typeof e != "number")
113
+ return !1;
114
+ var t = y(e);
115
+ return !isNaN(Number(t));
116
+ }
117
+ function k(e) {
118
+ if (e === null || e === !0 || e === !1)
119
+ return NaN;
120
+ var t = Number(e);
121
+ return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
122
+ }
123
+ function gt(e, t) {
124
+ v(2, arguments);
125
+ var a = y(e).getTime(), n = k(t);
126
+ return new Date(a + n);
127
+ }
128
+ function vt(e, t) {
129
+ v(2, arguments);
130
+ var a = k(t);
131
+ return gt(e, -a);
132
+ }
133
+ var pt = 864e5;
134
+ function bt(e) {
135
+ v(1, arguments);
136
+ var t = y(e), a = t.getTime();
137
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
138
+ var n = t.getTime(), r = a - n;
139
+ return Math.floor(r / pt) + 1;
140
+ }
141
+ function _(e) {
142
+ v(1, arguments);
143
+ var t = 1, a = y(e), n = a.getUTCDay(), r = (n < t ? 7 : 0) + n - t;
144
+ return a.setUTCDate(a.getUTCDate() - r), a.setUTCHours(0, 0, 0, 0), a;
145
+ }
146
+ function G(e) {
147
+ v(1, arguments);
148
+ var t = y(e), a = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
149
+ n.setUTCFullYear(a + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
150
+ var r = _(n), i = /* @__PURE__ */ new Date(0);
151
+ i.setUTCFullYear(a, 0, 4), i.setUTCHours(0, 0, 0, 0);
152
+ var o = _(i);
153
+ return t.getTime() >= r.getTime() ? a + 1 : t.getTime() >= o.getTime() ? a : a - 1;
154
+ }
155
+ function wt(e) {
156
+ v(1, arguments);
157
+ var t = G(e), a = /* @__PURE__ */ new Date(0);
158
+ a.setUTCFullYear(t, 0, 4), a.setUTCHours(0, 0, 0, 0);
159
+ var n = _(a);
160
+ return n;
161
+ }
162
+ var yt = 6048e5;
163
+ function xt(e) {
164
+ v(1, arguments);
165
+ var t = y(e), a = _(t).getTime() - wt(t).getTime();
166
+ return Math.round(a / yt) + 1;
167
+ }
168
+ var Tt = {};
169
+ function B() {
170
+ return Tt;
171
+ }
172
+ function L(e, t) {
173
+ var a, n, r, i, o, u, c, h;
174
+ v(1, arguments);
175
+ var m = B(), f = k((a = (n = (r = (i = t?.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : m.weekStartsOn) !== null && n !== void 0 ? n : (c = m.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && a !== void 0 ? a : 0);
176
+ if (!(f >= 0 && f <= 6))
177
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
178
+ var p = y(e), g = p.getUTCDay(), w = (g < f ? 7 : 0) + g - f;
179
+ return p.setUTCDate(p.getUTCDate() - w), p.setUTCHours(0, 0, 0, 0), p;
180
+ }
181
+ function V(e, t) {
182
+ var a, n, r, i, o, u, c, h;
183
+ v(1, arguments);
184
+ var m = y(e), f = m.getUTCFullYear(), p = B(), g = k((a = (n = (r = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : p.firstWeekContainsDate) !== null && n !== void 0 ? n : (c = p.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
185
+ if (!(g >= 1 && g <= 7))
186
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
187
+ var w = /* @__PURE__ */ new Date(0);
188
+ w.setUTCFullYear(f + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
189
+ var M = L(w, t), C = /* @__PURE__ */ new Date(0);
190
+ C.setUTCFullYear(f, 0, g), C.setUTCHours(0, 0, 0, 0);
191
+ var $ = L(C, t);
192
+ return m.getTime() >= M.getTime() ? f + 1 : m.getTime() >= $.getTime() ? f : f - 1;
193
+ }
194
+ function Ct(e, t) {
195
+ var a, n, r, i, o, u, c, h;
196
+ v(1, arguments);
197
+ var m = B(), f = k((a = (n = (r = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : m.firstWeekContainsDate) !== null && n !== void 0 ? n : (c = m.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = V(e, t), g = /* @__PURE__ */ new Date(0);
198
+ g.setUTCFullYear(p, 0, f), g.setUTCHours(0, 0, 0, 0);
199
+ var w = L(g, t);
200
+ return w;
201
+ }
202
+ var St = 6048e5;
203
+ function kt(e, t) {
204
+ v(1, arguments);
205
+ var a = y(e), n = L(a, t).getTime() - Ct(a, t).getTime();
206
+ return Math.round(n / St) + 1;
207
+ }
208
+ function d(e, t) {
209
+ for (var a = e < 0 ? "-" : "", n = Math.abs(e).toString(); n.length < t; )
210
+ n = "0" + n;
211
+ return a + n;
212
+ }
213
+ var Dt = {
214
+ // Year
215
+ y: function(t, a) {
216
+ var n = t.getUTCFullYear(), r = n > 0 ? n : 1 - n;
217
+ return d(a === "yy" ? r % 100 : r, a.length);
218
+ },
219
+ // Month
220
+ M: function(t, a) {
221
+ var n = t.getUTCMonth();
222
+ return a === "M" ? String(n + 1) : d(n + 1, 2);
223
+ },
224
+ // Day of the month
225
+ d: function(t, a) {
226
+ return d(t.getUTCDate(), a.length);
227
+ },
228
+ // AM or PM
229
+ a: function(t, a) {
230
+ var n = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
231
+ switch (a) {
232
+ case "a":
233
+ case "aa":
234
+ return n.toUpperCase();
235
+ case "aaa":
236
+ return n;
237
+ case "aaaaa":
238
+ return n[0];
239
+ case "aaaa":
240
+ default:
241
+ return n === "am" ? "a.m." : "p.m.";
242
+ }
243
+ },
244
+ // Hour [1-12]
245
+ h: function(t, a) {
246
+ return d(t.getUTCHours() % 12 || 12, a.length);
247
+ },
248
+ // Hour [0-23]
249
+ H: function(t, a) {
250
+ return d(t.getUTCHours(), a.length);
251
+ },
252
+ // Minute
253
+ m: function(t, a) {
254
+ return d(t.getUTCMinutes(), a.length);
255
+ },
256
+ // Second
257
+ s: function(t, a) {
258
+ return d(t.getUTCSeconds(), a.length);
259
+ },
260
+ // Fraction of second
261
+ S: function(t, a) {
262
+ var n = a.length, r = t.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, n - 3));
263
+ return d(i, a.length);
264
+ }
265
+ };
266
+ const T = Dt;
267
+ var D = {
268
+ midnight: "midnight",
269
+ noon: "noon",
270
+ morning: "morning",
271
+ afternoon: "afternoon",
272
+ evening: "evening",
273
+ night: "night"
274
+ }, Mt = {
275
+ // Era
276
+ G: function(t, a, n) {
277
+ var r = t.getUTCFullYear() > 0 ? 1 : 0;
278
+ switch (a) {
279
+ case "G":
280
+ case "GG":
281
+ case "GGG":
282
+ return n.era(r, {
283
+ width: "abbreviated"
284
+ });
285
+ case "GGGGG":
286
+ return n.era(r, {
287
+ width: "narrow"
288
+ });
289
+ case "GGGG":
290
+ default:
291
+ return n.era(r, {
292
+ width: "wide"
293
+ });
294
+ }
295
+ },
296
+ // Year
297
+ y: function(t, a, n) {
298
+ if (a === "yo") {
299
+ var r = t.getUTCFullYear(), i = r > 0 ? r : 1 - r;
300
+ return n.ordinalNumber(i, {
301
+ unit: "year"
302
+ });
303
+ }
304
+ return T.y(t, a);
305
+ },
306
+ // Local week-numbering year
307
+ Y: function(t, a, n, r) {
308
+ var i = V(t, r), o = i > 0 ? i : 1 - i;
309
+ if (a === "YY") {
310
+ var u = o % 100;
311
+ return d(u, 2);
312
+ }
313
+ return a === "Yo" ? n.ordinalNumber(o, {
314
+ unit: "year"
315
+ }) : d(o, a.length);
316
+ },
317
+ // ISO week-numbering year
318
+ R: function(t, a) {
319
+ var n = G(t);
320
+ return d(n, a.length);
321
+ },
322
+ // Extended year. This is a single number designating the year of this calendar system.
323
+ // The main difference between `y` and `u` localizers are B.C. years:
324
+ // | Year | `y` | `u` |
325
+ // |------|-----|-----|
326
+ // | AC 1 | 1 | 1 |
327
+ // | BC 1 | 1 | 0 |
328
+ // | BC 2 | 2 | -1 |
329
+ // Also `yy` always returns the last two digits of a year,
330
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
331
+ u: function(t, a) {
332
+ var n = t.getUTCFullYear();
333
+ return d(n, a.length);
334
+ },
335
+ // Quarter
336
+ Q: function(t, a, n) {
337
+ var r = Math.ceil((t.getUTCMonth() + 1) / 3);
338
+ switch (a) {
339
+ case "Q":
340
+ return String(r);
341
+ case "QQ":
342
+ return d(r, 2);
343
+ case "Qo":
344
+ return n.ordinalNumber(r, {
345
+ unit: "quarter"
346
+ });
347
+ case "QQQ":
348
+ return n.quarter(r, {
349
+ width: "abbreviated",
350
+ context: "formatting"
351
+ });
352
+ case "QQQQQ":
353
+ return n.quarter(r, {
354
+ width: "narrow",
355
+ context: "formatting"
356
+ });
357
+ case "QQQQ":
358
+ default:
359
+ return n.quarter(r, {
360
+ width: "wide",
361
+ context: "formatting"
362
+ });
363
+ }
364
+ },
365
+ // Stand-alone quarter
366
+ q: function(t, a, n) {
367
+ var r = Math.ceil((t.getUTCMonth() + 1) / 3);
368
+ switch (a) {
369
+ case "q":
370
+ return String(r);
371
+ case "qq":
372
+ return d(r, 2);
373
+ case "qo":
374
+ return n.ordinalNumber(r, {
375
+ unit: "quarter"
376
+ });
377
+ case "qqq":
378
+ return n.quarter(r, {
379
+ width: "abbreviated",
380
+ context: "standalone"
381
+ });
382
+ case "qqqqq":
383
+ return n.quarter(r, {
384
+ width: "narrow",
385
+ context: "standalone"
386
+ });
387
+ case "qqqq":
388
+ default:
389
+ return n.quarter(r, {
390
+ width: "wide",
391
+ context: "standalone"
392
+ });
393
+ }
394
+ },
395
+ // Month
396
+ M: function(t, a, n) {
397
+ var r = t.getUTCMonth();
398
+ switch (a) {
399
+ case "M":
400
+ case "MM":
401
+ return T.M(t, a);
402
+ case "Mo":
403
+ return n.ordinalNumber(r + 1, {
404
+ unit: "month"
405
+ });
406
+ case "MMM":
407
+ return n.month(r, {
408
+ width: "abbreviated",
409
+ context: "formatting"
410
+ });
411
+ case "MMMMM":
412
+ return n.month(r, {
413
+ width: "narrow",
414
+ context: "formatting"
415
+ });
416
+ case "MMMM":
417
+ default:
418
+ return n.month(r, {
419
+ width: "wide",
420
+ context: "formatting"
421
+ });
422
+ }
423
+ },
424
+ // Stand-alone month
425
+ L: function(t, a, n) {
426
+ var r = t.getUTCMonth();
427
+ switch (a) {
428
+ case "L":
429
+ return String(r + 1);
430
+ case "LL":
431
+ return d(r + 1, 2);
432
+ case "Lo":
433
+ return n.ordinalNumber(r + 1, {
434
+ unit: "month"
435
+ });
436
+ case "LLL":
437
+ return n.month(r, {
438
+ width: "abbreviated",
439
+ context: "standalone"
440
+ });
441
+ case "LLLLL":
442
+ return n.month(r, {
443
+ width: "narrow",
444
+ context: "standalone"
445
+ });
446
+ case "LLLL":
447
+ default:
448
+ return n.month(r, {
449
+ width: "wide",
450
+ context: "standalone"
451
+ });
452
+ }
453
+ },
454
+ // Local week of year
455
+ w: function(t, a, n, r) {
456
+ var i = kt(t, r);
457
+ return a === "wo" ? n.ordinalNumber(i, {
458
+ unit: "week"
459
+ }) : d(i, a.length);
460
+ },
461
+ // ISO week of year
462
+ I: function(t, a, n) {
463
+ var r = xt(t);
464
+ return a === "Io" ? n.ordinalNumber(r, {
465
+ unit: "week"
466
+ }) : d(r, a.length);
467
+ },
468
+ // Day of the month
469
+ d: function(t, a, n) {
470
+ return a === "do" ? n.ordinalNumber(t.getUTCDate(), {
471
+ unit: "date"
472
+ }) : T.d(t, a);
473
+ },
474
+ // Day of year
475
+ D: function(t, a, n) {
476
+ var r = bt(t);
477
+ return a === "Do" ? n.ordinalNumber(r, {
478
+ unit: "dayOfYear"
479
+ }) : d(r, a.length);
480
+ },
481
+ // Day of week
482
+ E: function(t, a, n) {
483
+ var r = t.getUTCDay();
484
+ switch (a) {
485
+ case "E":
486
+ case "EE":
487
+ case "EEE":
488
+ return n.day(r, {
489
+ width: "abbreviated",
490
+ context: "formatting"
491
+ });
492
+ case "EEEEE":
493
+ return n.day(r, {
494
+ width: "narrow",
495
+ context: "formatting"
496
+ });
497
+ case "EEEEEE":
498
+ return n.day(r, {
499
+ width: "short",
500
+ context: "formatting"
501
+ });
502
+ case "EEEE":
503
+ default:
504
+ return n.day(r, {
505
+ width: "wide",
506
+ context: "formatting"
507
+ });
508
+ }
509
+ },
510
+ // Local day of week
511
+ e: function(t, a, n, r) {
512
+ var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
513
+ switch (a) {
514
+ case "e":
515
+ return String(o);
516
+ case "ee":
517
+ return d(o, 2);
518
+ case "eo":
519
+ return n.ordinalNumber(o, {
520
+ unit: "day"
521
+ });
522
+ case "eee":
523
+ return n.day(i, {
524
+ width: "abbreviated",
525
+ context: "formatting"
526
+ });
527
+ case "eeeee":
528
+ return n.day(i, {
529
+ width: "narrow",
530
+ context: "formatting"
531
+ });
532
+ case "eeeeee":
533
+ return n.day(i, {
534
+ width: "short",
535
+ context: "formatting"
536
+ });
537
+ case "eeee":
538
+ default:
539
+ return n.day(i, {
540
+ width: "wide",
541
+ context: "formatting"
542
+ });
543
+ }
544
+ },
545
+ // Stand-alone local day of week
546
+ c: function(t, a, n, r) {
547
+ var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
548
+ switch (a) {
549
+ case "c":
550
+ return String(o);
551
+ case "cc":
552
+ return d(o, a.length);
553
+ case "co":
554
+ return n.ordinalNumber(o, {
555
+ unit: "day"
556
+ });
557
+ case "ccc":
558
+ return n.day(i, {
559
+ width: "abbreviated",
560
+ context: "standalone"
561
+ });
562
+ case "ccccc":
563
+ return n.day(i, {
564
+ width: "narrow",
565
+ context: "standalone"
566
+ });
567
+ case "cccccc":
568
+ return n.day(i, {
569
+ width: "short",
570
+ context: "standalone"
571
+ });
572
+ case "cccc":
573
+ default:
574
+ return n.day(i, {
575
+ width: "wide",
576
+ context: "standalone"
577
+ });
578
+ }
579
+ },
580
+ // ISO day of week
581
+ i: function(t, a, n) {
582
+ var r = t.getUTCDay(), i = r === 0 ? 7 : r;
583
+ switch (a) {
584
+ case "i":
585
+ return String(i);
586
+ case "ii":
587
+ return d(i, a.length);
588
+ case "io":
589
+ return n.ordinalNumber(i, {
590
+ unit: "day"
591
+ });
592
+ case "iii":
593
+ return n.day(r, {
594
+ width: "abbreviated",
595
+ context: "formatting"
596
+ });
597
+ case "iiiii":
598
+ return n.day(r, {
599
+ width: "narrow",
600
+ context: "formatting"
601
+ });
602
+ case "iiiiii":
603
+ return n.day(r, {
604
+ width: "short",
605
+ context: "formatting"
606
+ });
607
+ case "iiii":
608
+ default:
609
+ return n.day(r, {
610
+ width: "wide",
611
+ context: "formatting"
612
+ });
613
+ }
614
+ },
615
+ // AM or PM
616
+ a: function(t, a, n) {
617
+ var r = t.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
618
+ switch (a) {
619
+ case "a":
620
+ case "aa":
621
+ return n.dayPeriod(i, {
622
+ width: "abbreviated",
623
+ context: "formatting"
624
+ });
625
+ case "aaa":
626
+ return n.dayPeriod(i, {
627
+ width: "abbreviated",
628
+ context: "formatting"
629
+ }).toLowerCase();
630
+ case "aaaaa":
631
+ return n.dayPeriod(i, {
632
+ width: "narrow",
633
+ context: "formatting"
634
+ });
635
+ case "aaaa":
636
+ default:
637
+ return n.dayPeriod(i, {
638
+ width: "wide",
639
+ context: "formatting"
640
+ });
641
+ }
642
+ },
643
+ // AM, PM, midnight, noon
644
+ b: function(t, a, n) {
645
+ var r = t.getUTCHours(), i;
646
+ switch (r === 12 ? i = D.noon : r === 0 ? i = D.midnight : i = r / 12 >= 1 ? "pm" : "am", a) {
647
+ case "b":
648
+ case "bb":
649
+ return n.dayPeriod(i, {
650
+ width: "abbreviated",
651
+ context: "formatting"
652
+ });
653
+ case "bbb":
654
+ return n.dayPeriod(i, {
655
+ width: "abbreviated",
656
+ context: "formatting"
657
+ }).toLowerCase();
658
+ case "bbbbb":
659
+ return n.dayPeriod(i, {
660
+ width: "narrow",
661
+ context: "formatting"
662
+ });
663
+ case "bbbb":
664
+ default:
665
+ return n.dayPeriod(i, {
666
+ width: "wide",
667
+ context: "formatting"
668
+ });
669
+ }
670
+ },
671
+ // in the morning, in the afternoon, in the evening, at night
672
+ B: function(t, a, n) {
673
+ var r = t.getUTCHours(), i;
674
+ switch (r >= 17 ? i = D.evening : r >= 12 ? i = D.afternoon : r >= 4 ? i = D.morning : i = D.night, a) {
675
+ case "B":
676
+ case "BB":
677
+ case "BBB":
678
+ return n.dayPeriod(i, {
679
+ width: "abbreviated",
680
+ context: "formatting"
681
+ });
682
+ case "BBBBB":
683
+ return n.dayPeriod(i, {
684
+ width: "narrow",
685
+ context: "formatting"
686
+ });
687
+ case "BBBB":
688
+ default:
689
+ return n.dayPeriod(i, {
690
+ width: "wide",
691
+ context: "formatting"
692
+ });
693
+ }
694
+ },
695
+ // Hour [1-12]
696
+ h: function(t, a, n) {
697
+ if (a === "ho") {
698
+ var r = t.getUTCHours() % 12;
699
+ return r === 0 && (r = 12), n.ordinalNumber(r, {
700
+ unit: "hour"
701
+ });
702
+ }
703
+ return T.h(t, a);
704
+ },
705
+ // Hour [0-23]
706
+ H: function(t, a, n) {
707
+ return a === "Ho" ? n.ordinalNumber(t.getUTCHours(), {
708
+ unit: "hour"
709
+ }) : T.H(t, a);
710
+ },
711
+ // Hour [0-11]
712
+ K: function(t, a, n) {
713
+ var r = t.getUTCHours() % 12;
714
+ return a === "Ko" ? n.ordinalNumber(r, {
715
+ unit: "hour"
716
+ }) : d(r, a.length);
717
+ },
718
+ // Hour [1-24]
719
+ k: function(t, a, n) {
720
+ var r = t.getUTCHours();
721
+ return r === 0 && (r = 24), a === "ko" ? n.ordinalNumber(r, {
722
+ unit: "hour"
723
+ }) : d(r, a.length);
724
+ },
725
+ // Minute
726
+ m: function(t, a, n) {
727
+ return a === "mo" ? n.ordinalNumber(t.getUTCMinutes(), {
728
+ unit: "minute"
729
+ }) : T.m(t, a);
730
+ },
731
+ // Second
732
+ s: function(t, a, n) {
733
+ return a === "so" ? n.ordinalNumber(t.getUTCSeconds(), {
734
+ unit: "second"
735
+ }) : T.s(t, a);
736
+ },
737
+ // Fraction of second
738
+ S: function(t, a) {
739
+ return T.S(t, a);
740
+ },
741
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
742
+ X: function(t, a, n, r) {
743
+ var i = r._originalDate || t, o = i.getTimezoneOffset();
744
+ if (o === 0)
745
+ return "Z";
746
+ switch (a) {
747
+ case "X":
748
+ return j(o);
749
+ case "XXXX":
750
+ case "XX":
751
+ return S(o);
752
+ case "XXXXX":
753
+ case "XXX":
754
+ default:
755
+ return S(o, ":");
756
+ }
757
+ },
758
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
759
+ x: function(t, a, n, r) {
760
+ var i = r._originalDate || t, o = i.getTimezoneOffset();
761
+ switch (a) {
762
+ case "x":
763
+ return j(o);
764
+ case "xxxx":
765
+ case "xx":
766
+ return S(o);
767
+ case "xxxxx":
768
+ case "xxx":
769
+ default:
770
+ return S(o, ":");
771
+ }
772
+ },
773
+ // Timezone (GMT)
774
+ O: function(t, a, n, r) {
775
+ var i = r._originalDate || t, o = i.getTimezoneOffset();
776
+ switch (a) {
777
+ case "O":
778
+ case "OO":
779
+ case "OOO":
780
+ return "GMT" + R(o, ":");
781
+ case "OOOO":
782
+ default:
783
+ return "GMT" + S(o, ":");
784
+ }
785
+ },
786
+ // Timezone (specific non-location)
787
+ z: function(t, a, n, r) {
788
+ var i = r._originalDate || t, o = i.getTimezoneOffset();
789
+ switch (a) {
790
+ case "z":
791
+ case "zz":
792
+ case "zzz":
793
+ return "GMT" + R(o, ":");
794
+ case "zzzz":
795
+ default:
796
+ return "GMT" + S(o, ":");
797
+ }
798
+ },
799
+ // Seconds timestamp
800
+ t: function(t, a, n, r) {
801
+ var i = r._originalDate || t, o = Math.floor(i.getTime() / 1e3);
802
+ return d(o, a.length);
803
+ },
804
+ // Milliseconds timestamp
805
+ T: function(t, a, n, r) {
806
+ var i = r._originalDate || t, o = i.getTime();
807
+ return d(o, a.length);
808
+ }
809
+ };
810
+ function R(e, t) {
811
+ var a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
812
+ if (i === 0)
813
+ return a + String(r);
814
+ var o = t;
815
+ return a + String(r) + o + d(i, 2);
816
+ }
817
+ function j(e, t) {
818
+ if (e % 60 === 0) {
819
+ var a = e > 0 ? "-" : "+";
820
+ return a + d(Math.abs(e) / 60, 2);
821
+ }
822
+ return S(e, t);
823
+ }
824
+ function S(e, t) {
825
+ var a = t || "", n = e > 0 ? "-" : "+", r = Math.abs(e), i = d(Math.floor(r / 60), 2), o = d(r % 60, 2);
826
+ return n + i + a + o;
827
+ }
828
+ const Ot = Mt;
829
+ var z = function(t, a) {
830
+ switch (t) {
831
+ case "P":
832
+ return a.date({
833
+ width: "short"
834
+ });
835
+ case "PP":
836
+ return a.date({
837
+ width: "medium"
838
+ });
839
+ case "PPP":
840
+ return a.date({
841
+ width: "long"
842
+ });
843
+ case "PPPP":
844
+ default:
845
+ return a.date({
846
+ width: "full"
847
+ });
848
+ }
849
+ }, J = function(t, a) {
850
+ switch (t) {
851
+ case "p":
852
+ return a.time({
853
+ width: "short"
854
+ });
855
+ case "pp":
856
+ return a.time({
857
+ width: "medium"
858
+ });
859
+ case "ppp":
860
+ return a.time({
861
+ width: "long"
862
+ });
863
+ case "pppp":
864
+ default:
865
+ return a.time({
866
+ width: "full"
867
+ });
868
+ }
869
+ }, Pt = function(t, a) {
870
+ var n = t.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
871
+ if (!i)
872
+ return z(t, a);
873
+ var o;
874
+ switch (r) {
875
+ case "P":
876
+ o = a.dateTime({
877
+ width: "short"
878
+ });
879
+ break;
880
+ case "PP":
881
+ o = a.dateTime({
882
+ width: "medium"
883
+ });
884
+ break;
885
+ case "PPP":
886
+ o = a.dateTime({
887
+ width: "long"
888
+ });
889
+ break;
890
+ case "PPPP":
891
+ default:
892
+ o = a.dateTime({
893
+ width: "full"
894
+ });
895
+ break;
896
+ }
897
+ return o.replace("{{date}}", z(r, a)).replace("{{time}}", J(i, a));
898
+ }, Ut = {
899
+ p: J,
900
+ P: Pt
901
+ };
902
+ const Wt = Ut;
903
+ function Ft(e) {
904
+ var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
905
+ return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
906
+ }
907
+ var Et = ["D", "DD"], Yt = ["YY", "YYYY"];
908
+ function _t(e) {
909
+ return Et.indexOf(e) !== -1;
910
+ }
911
+ function Lt(e) {
912
+ return Yt.indexOf(e) !== -1;
913
+ }
914
+ function A(e, t, a) {
915
+ if (e === "YYYY")
916
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
917
+ if (e === "YY")
918
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
919
+ if (e === "D")
920
+ throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
921
+ if (e === "DD")
922
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
923
+ }
924
+ var Bt = {
925
+ lessThanXSeconds: {
926
+ one: "less than a second",
927
+ other: "less than {{count}} seconds"
928
+ },
929
+ xSeconds: {
930
+ one: "1 second",
931
+ other: "{{count}} seconds"
932
+ },
933
+ halfAMinute: "half a minute",
934
+ lessThanXMinutes: {
935
+ one: "less than a minute",
936
+ other: "less than {{count}} minutes"
937
+ },
938
+ xMinutes: {
939
+ one: "1 minute",
940
+ other: "{{count}} minutes"
941
+ },
942
+ aboutXHours: {
943
+ one: "about 1 hour",
944
+ other: "about {{count}} hours"
945
+ },
946
+ xHours: {
947
+ one: "1 hour",
948
+ other: "{{count}} hours"
949
+ },
950
+ xDays: {
951
+ one: "1 day",
952
+ other: "{{count}} days"
953
+ },
954
+ aboutXWeeks: {
955
+ one: "about 1 week",
956
+ other: "about {{count}} weeks"
957
+ },
958
+ xWeeks: {
959
+ one: "1 week",
960
+ other: "{{count}} weeks"
961
+ },
962
+ aboutXMonths: {
963
+ one: "about 1 month",
964
+ other: "about {{count}} months"
965
+ },
966
+ xMonths: {
967
+ one: "1 month",
968
+ other: "{{count}} months"
969
+ },
970
+ aboutXYears: {
971
+ one: "about 1 year",
972
+ other: "about {{count}} years"
973
+ },
974
+ xYears: {
975
+ one: "1 year",
976
+ other: "{{count}} years"
977
+ },
978
+ overXYears: {
979
+ one: "over 1 year",
980
+ other: "over {{count}} years"
981
+ },
982
+ almostXYears: {
983
+ one: "almost 1 year",
984
+ other: "almost {{count}} years"
985
+ }
986
+ }, $t = function(t, a, n) {
987
+ var r, i = Bt[t];
988
+ return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
989
+ };
990
+ const Nt = $t;
991
+ function I(e) {
992
+ return function() {
993
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.width ? String(t.width) : e.defaultWidth, n = e.formats[a] || e.formats[e.defaultWidth];
994
+ return n;
995
+ };
996
+ }
997
+ var Ht = {
998
+ full: "EEEE, MMMM do, y",
999
+ long: "MMMM do, y",
1000
+ medium: "MMM d, y",
1001
+ short: "MM/dd/yyyy"
1002
+ }, It = {
1003
+ full: "h:mm:ss a zzzz",
1004
+ long: "h:mm:ss a z",
1005
+ medium: "h:mm:ss a",
1006
+ short: "h:mm a"
1007
+ }, qt = {
1008
+ full: "{{date}} 'at' {{time}}",
1009
+ long: "{{date}} 'at' {{time}}",
1010
+ medium: "{{date}}, {{time}}",
1011
+ short: "{{date}}, {{time}}"
1012
+ }, Rt = {
1013
+ date: I({
1014
+ formats: Ht,
1015
+ defaultWidth: "full"
1016
+ }),
1017
+ time: I({
1018
+ formats: It,
1019
+ defaultWidth: "full"
1020
+ }),
1021
+ dateTime: I({
1022
+ formats: qt,
1023
+ defaultWidth: "full"
1024
+ })
1025
+ };
1026
+ const jt = Rt;
1027
+ var zt = {
1028
+ lastWeek: "'last' eeee 'at' p",
1029
+ yesterday: "'yesterday at' p",
1030
+ today: "'today at' p",
1031
+ tomorrow: "'tomorrow at' p",
1032
+ nextWeek: "eeee 'at' p",
1033
+ other: "P"
1034
+ }, At = function(t, a, n, r) {
1035
+ return zt[t];
1036
+ };
1037
+ const Qt = At;
1038
+ function U(e) {
1039
+ return function(t, a) {
1040
+ var n = a != null && a.context ? String(a.context) : "standalone", r;
1041
+ if (n === "formatting" && e.formattingValues) {
1042
+ var i = e.defaultFormattingWidth || e.defaultWidth, o = a != null && a.width ? String(a.width) : i;
1043
+ r = e.formattingValues[o] || e.formattingValues[i];
1044
+ } else {
1045
+ var u = e.defaultWidth, c = a != null && a.width ? String(a.width) : e.defaultWidth;
1046
+ r = e.values[c] || e.values[u];
1047
+ }
1048
+ var h = e.argumentCallback ? e.argumentCallback(t) : t;
1049
+ return r[h];
1050
+ };
1051
+ }
1052
+ var Xt = {
1053
+ narrow: ["B", "A"],
1054
+ abbreviated: ["BC", "AD"],
1055
+ wide: ["Before Christ", "Anno Domini"]
1056
+ }, Gt = {
1057
+ narrow: ["1", "2", "3", "4"],
1058
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1059
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1060
+ }, Vt = {
1061
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1062
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1063
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1064
+ }, Jt = {
1065
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
1066
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1067
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1068
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1069
+ }, Kt = {
1070
+ narrow: {
1071
+ am: "a",
1072
+ pm: "p",
1073
+ midnight: "mi",
1074
+ noon: "n",
1075
+ morning: "morning",
1076
+ afternoon: "afternoon",
1077
+ evening: "evening",
1078
+ night: "night"
1079
+ },
1080
+ abbreviated: {
1081
+ am: "AM",
1082
+ pm: "PM",
1083
+ midnight: "midnight",
1084
+ noon: "noon",
1085
+ morning: "morning",
1086
+ afternoon: "afternoon",
1087
+ evening: "evening",
1088
+ night: "night"
1089
+ },
1090
+ wide: {
1091
+ am: "a.m.",
1092
+ pm: "p.m.",
1093
+ midnight: "midnight",
1094
+ noon: "noon",
1095
+ morning: "morning",
1096
+ afternoon: "afternoon",
1097
+ evening: "evening",
1098
+ night: "night"
1099
+ }
1100
+ }, Zt = {
1101
+ narrow: {
1102
+ am: "a",
1103
+ pm: "p",
1104
+ midnight: "mi",
1105
+ noon: "n",
1106
+ morning: "in the morning",
1107
+ afternoon: "in the afternoon",
1108
+ evening: "in the evening",
1109
+ night: "at night"
1110
+ },
1111
+ abbreviated: {
1112
+ am: "AM",
1113
+ pm: "PM",
1114
+ midnight: "midnight",
1115
+ noon: "noon",
1116
+ morning: "in the morning",
1117
+ afternoon: "in the afternoon",
1118
+ evening: "in the evening",
1119
+ night: "at night"
1120
+ },
1121
+ wide: {
1122
+ am: "a.m.",
1123
+ pm: "p.m.",
1124
+ midnight: "midnight",
1125
+ noon: "noon",
1126
+ morning: "in the morning",
1127
+ afternoon: "in the afternoon",
1128
+ evening: "in the evening",
1129
+ night: "at night"
1130
+ }
1131
+ }, te = function(t, a) {
1132
+ var n = Number(t), r = n % 100;
1133
+ if (r > 20 || r < 10)
1134
+ switch (r % 10) {
1135
+ case 1:
1136
+ return n + "st";
1137
+ case 2:
1138
+ return n + "nd";
1139
+ case 3:
1140
+ return n + "rd";
1141
+ }
1142
+ return n + "th";
1143
+ }, ee = {
1144
+ ordinalNumber: te,
1145
+ era: U({
1146
+ values: Xt,
1147
+ defaultWidth: "wide"
1148
+ }),
1149
+ quarter: U({
1150
+ values: Gt,
1151
+ defaultWidth: "wide",
1152
+ argumentCallback: function(t) {
1153
+ return t - 1;
1154
+ }
1155
+ }),
1156
+ month: U({
1157
+ values: Vt,
1158
+ defaultWidth: "wide"
1159
+ }),
1160
+ day: U({
1161
+ values: Jt,
1162
+ defaultWidth: "wide"
1163
+ }),
1164
+ dayPeriod: U({
1165
+ values: Kt,
1166
+ defaultWidth: "wide",
1167
+ formattingValues: Zt,
1168
+ defaultFormattingWidth: "wide"
1169
+ })
1170
+ };
1171
+ const ae = ee;
1172
+ function W(e) {
1173
+ return function(t) {
1174
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
1175
+ if (!i)
1176
+ return null;
1177
+ var o = i[0], u = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(u) ? re(u, function(f) {
1178
+ return f.test(o);
1179
+ }) : ne(u, function(f) {
1180
+ return f.test(o);
1181
+ }), h;
1182
+ h = e.valueCallback ? e.valueCallback(c) : c, h = a.valueCallback ? a.valueCallback(h) : h;
1183
+ var m = t.slice(o.length);
1184
+ return {
1185
+ value: h,
1186
+ rest: m
1187
+ };
1188
+ };
1189
+ }
1190
+ function ne(e, t) {
1191
+ for (var a in e)
1192
+ if (e.hasOwnProperty(a) && t(e[a]))
1193
+ return a;
1194
+ }
1195
+ function re(e, t) {
1196
+ for (var a = 0; a < e.length; a++)
1197
+ if (t(e[a]))
1198
+ return a;
1199
+ }
1200
+ function ie(e) {
1201
+ return function(t) {
1202
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
1203
+ if (!n)
1204
+ return null;
1205
+ var r = n[0], i = t.match(e.parsePattern);
1206
+ if (!i)
1207
+ return null;
1208
+ var o = e.valueCallback ? e.valueCallback(i[0]) : i[0];
1209
+ o = a.valueCallback ? a.valueCallback(o) : o;
1210
+ var u = t.slice(r.length);
1211
+ return {
1212
+ value: o,
1213
+ rest: u
1214
+ };
1215
+ };
1216
+ }
1217
+ var oe = /^(\d+)(th|st|nd|rd)?/i, se = /\d+/i, le = {
1218
+ narrow: /^(b|a)/i,
1219
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1220
+ wide: /^(before christ|before common era|anno domini|common era)/i
1221
+ }, de = {
1222
+ any: [/^b/i, /^(a|c)/i]
1223
+ }, ue = {
1224
+ narrow: /^[1234]/i,
1225
+ abbreviated: /^q[1234]/i,
1226
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1227
+ }, ce = {
1228
+ any: [/1/i, /2/i, /3/i, /4/i]
1229
+ }, he = {
1230
+ narrow: /^[jfmasond]/i,
1231
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1232
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1233
+ }, fe = {
1234
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1235
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1236
+ }, me = {
1237
+ narrow: /^[smtwf]/i,
1238
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1239
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1240
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1241
+ }, ge = {
1242
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1243
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1244
+ }, ve = {
1245
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1246
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1247
+ }, pe = {
1248
+ any: {
1249
+ am: /^a/i,
1250
+ pm: /^p/i,
1251
+ midnight: /^mi/i,
1252
+ noon: /^no/i,
1253
+ morning: /morning/i,
1254
+ afternoon: /afternoon/i,
1255
+ evening: /evening/i,
1256
+ night: /night/i
1257
+ }
1258
+ }, be = {
1259
+ ordinalNumber: ie({
1260
+ matchPattern: oe,
1261
+ parsePattern: se,
1262
+ valueCallback: function(t) {
1263
+ return parseInt(t, 10);
1264
+ }
1265
+ }),
1266
+ era: W({
1267
+ matchPatterns: le,
1268
+ defaultMatchWidth: "wide",
1269
+ parsePatterns: de,
1270
+ defaultParseWidth: "any"
1271
+ }),
1272
+ quarter: W({
1273
+ matchPatterns: ue,
1274
+ defaultMatchWidth: "wide",
1275
+ parsePatterns: ce,
1276
+ defaultParseWidth: "any",
1277
+ valueCallback: function(t) {
1278
+ return t + 1;
1279
+ }
1280
+ }),
1281
+ month: W({
1282
+ matchPatterns: he,
1283
+ defaultMatchWidth: "wide",
1284
+ parsePatterns: fe,
1285
+ defaultParseWidth: "any"
1286
+ }),
1287
+ day: W({
1288
+ matchPatterns: me,
1289
+ defaultMatchWidth: "wide",
1290
+ parsePatterns: ge,
1291
+ defaultParseWidth: "any"
1292
+ }),
1293
+ dayPeriod: W({
1294
+ matchPatterns: ve,
1295
+ defaultMatchWidth: "any",
1296
+ parsePatterns: pe,
1297
+ defaultParseWidth: "any"
1298
+ })
1299
+ };
1300
+ const we = be;
1301
+ var ye = {
1302
+ code: "en-US",
1303
+ formatDistance: Nt,
1304
+ formatLong: jt,
1305
+ formatRelative: Qt,
1306
+ localize: ae,
1307
+ match: we,
1308
+ options: {
1309
+ weekStartsOn: 0,
1310
+ firstWeekContainsDate: 1
1311
+ }
1312
+ };
1313
+ const xe = ye;
1314
+ var Te = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ce = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Se = /^'([^]*?)'?$/, ke = /''/g, De = /[a-zA-Z]/;
1315
+ function Me(e, t, a) {
1316
+ var n, r, i, o, u, c, h, m, f, p, g, w, M, C;
1317
+ v(2, arguments);
1318
+ var $ = String(t), O = B(), P = (n = (r = void 0) !== null && r !== void 0 ? r : O.locale) !== null && n !== void 0 ? n : xe, N = k((i = (o = (u = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && u !== void 0 ? u : O.firstWeekContainsDate) !== null && o !== void 0 ? o : (h = O.locale) === null || h === void 0 || (m = h.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1319
+ if (!(N >= 1 && N <= 7))
1320
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1321
+ var H = k((f = (p = (g = (w = void 0) !== null && w !== void 0 ? w : void 0) !== null && g !== void 0 ? g : O.weekStartsOn) !== null && p !== void 0 ? p : (M = O.locale) === null || M === void 0 || (C = M.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && f !== void 0 ? f : 0);
1322
+ if (!(H >= 0 && H <= 6))
1323
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1324
+ if (!P.localize)
1325
+ throw new RangeError("locale must contain localize property");
1326
+ if (!P.formatLong)
1327
+ throw new RangeError("locale must contain formatLong property");
1328
+ var F = y(e);
1329
+ if (!mt(F))
1330
+ throw new RangeError("Invalid time value");
1331
+ var tt = Ft(F), et = vt(F, tt), at = {
1332
+ firstWeekContainsDate: N,
1333
+ weekStartsOn: H,
1334
+ locale: P,
1335
+ _originalDate: F
1336
+ }, nt = $.match(Ce).map(function(b) {
1337
+ var x = b[0];
1338
+ if (x === "p" || x === "P") {
1339
+ var E = Wt[x];
1340
+ return E(b, P.formatLong);
1341
+ }
1342
+ return b;
1343
+ }).join("").match(Te).map(function(b) {
1344
+ if (b === "''")
1345
+ return "'";
1346
+ var x = b[0];
1347
+ if (x === "'")
1348
+ return Oe(b);
1349
+ var E = Ot[x];
1350
+ if (E)
1351
+ return Lt(b) && A(b, t, String(e)), _t(b) && A(b, t, String(e)), E(et, b, P.localize, at);
1352
+ if (x.match(De))
1353
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
1354
+ return b;
1355
+ }).join("");
1356
+ return nt;
1357
+ }
1358
+ function Oe(e) {
1359
+ var t = e.match(Se);
1360
+ return t ? t[1].replace(ke, "'") : e;
1361
+ }
1362
+ class K {
1363
+ constructor() {
1364
+ }
1365
+ static dateToFormatedString(t, a) {
1366
+ const n = a ? Me(t, a) : t.toLocaleDateString("en-gb"), r = t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
1367
+ return `${n}, ${r}`;
1368
+ }
1369
+ }
1370
+ class Z {
1371
+ constructor() {
1372
+ }
1373
+ static format(t, a) {
1374
+ let n = `${a} ${t}`;
1375
+ try {
1376
+ n = new Intl.NumberFormat("en-US", {
1377
+ style: "currency",
1378
+ currency: t
1379
+ }).format(a);
1380
+ } catch {
1381
+ }
1382
+ return n;
1383
+ }
1384
+ }
1385
+ const Pe = (e) => s(
1386
+ "div",
1387
+ { class: "data-transaction" },
1388
+ s("p", null, e.productType),
1389
+ s(
1390
+ "p",
1391
+ { class: "text-style text-style-status" },
1392
+ s("span", { class: e.status.toLowerCase() }, e.status)
1393
+ ),
1394
+ s(
1395
+ "p",
1396
+ { class: "date" },
1397
+ e.transId,
1398
+ " | ",
1399
+ K.dateToFormatedString(new Date(e.created), e.dateformat)
1400
+ ),
1401
+ s(
1402
+ "p",
1403
+ { class: "text-style" },
1404
+ Z.format(e.currency, e.realAmount),
1405
+ " "
1406
+ )
1407
+ ), Ue = (e) => s(
1408
+ "div",
1409
+ { class: "page-size" },
1410
+ s("span", null, l.translate("show", e.language)),
1411
+ e.pageSizes.map((t) => s("button", { class: e.currentPageSize === t ? "active" : "", onClick: () => e.changePageSize(t) }, t))
1412
+ ), We = ({ from: e, to: t, applyFilters: a, language: n }) => {
1413
+ let r, i;
1414
+ const o = () => {
1415
+ e = r.value;
1416
+ }, u = () => {
1417
+ t = i.value;
1418
+ };
1419
+ return s(
1420
+ "div",
1421
+ { class: "period" },
1422
+ s(
1423
+ "div",
1424
+ { class: "period-content" },
1425
+ s(
1426
+ "div",
1427
+ { class: "date-input" },
1428
+ s("vaadin-date-picker", { value: e, ref: (c) => r = c, label: l.translate("from", n), onChange: o })
1429
+ ),
1430
+ s(
1431
+ "span",
1432
+ null,
1433
+ s(
1434
+ "svg",
1435
+ { width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
1436
+ s("path", { d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: "#5d687b" })
1437
+ )
1438
+ ),
1439
+ s(
1440
+ "div",
1441
+ { class: "date-input" },
1442
+ s("vaadin-date-picker", { value: t, ref: (c) => i = c, label: l.translate("to", n), onChange: u })
1443
+ ),
1444
+ s("button", { class: "filter-btn", onClick: () => a(e, t) }, l.translate("filter", n))
1445
+ )
1446
+ );
1447
+ }, Fe = ({ source: e, language: t, dateformat: a }) => {
1448
+ const n = [
1449
+ { name: l.translate("transactionId", t) },
1450
+ {
1451
+ name: l.translate("date", t)
1452
+ },
1453
+ {
1454
+ name: l.translate("amount", t)
1455
+ },
1456
+ { name: l.translate("productType", t) },
1457
+ {
1458
+ name: l.translate("status", t)
1459
+ }
1460
+ ];
1461
+ return s(
1462
+ "table",
1463
+ null,
1464
+ s(
1465
+ "thead",
1466
+ null,
1467
+ s("tr", null, n.map((r) => s("th", null, r.name)))
1468
+ ),
1469
+ s("tbody", null, e.map((r) => s(
1470
+ "tr",
1471
+ null,
1472
+ s("td", null, r.transId),
1473
+ s("td", null, K.dateToFormatedString(new Date(r.created), a)),
1474
+ s(
1475
+ "td",
1476
+ null,
1477
+ Z.format(r.currency, r.realAmount),
1478
+ " "
1479
+ ),
1480
+ s("td", null, r.productType),
1481
+ s(
1482
+ "td",
1483
+ null,
1484
+ s("span", { class: r.status.toLowerCase() }, r.status)
1485
+ )
1486
+ )))
1487
+ );
1488
+ };
1489
+ function Q(e, t) {
1490
+ if (e) {
1491
+ const a = document.createElement("style");
1492
+ a.innerHTML = t, e.appendChild(a);
1493
+ }
1494
+ }
1495
+ function X(e, t) {
1496
+ const a = new URL(t);
1497
+ fetch(a.href).then((n) => n.text()).then((n) => {
1498
+ const r = document.createElement("style");
1499
+ r.innerHTML = n, e && e.appendChild(r);
1500
+ }).catch((n) => {
1501
+ console.error("There was an error while trying to load client styling from URL", n);
1502
+ });
1503
+ }
1504
+ function Ee(e, t, a) {
1505
+ if (window.emMessageBus) {
1506
+ const n = document.createElement("style");
1507
+ window.emMessageBus.subscribe(t, (r) => {
1508
+ n.innerHTML = r, e && e.appendChild(n);
1509
+ });
1510
+ }
1511
+ }
1512
+ const Ye = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}', _e = Ye, Le = class {
1513
+ constructor(e) {
1514
+ ot(this, e), this.pageSizes = [10, 25, 50], this.pagination = null, this.endpoint = void 0, this.session = void 0, this.language = l.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.dateFormat = "", this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
1515
+ }
1516
+ watchMultiple() {
1517
+ this.loadTransactions();
1518
+ }
1519
+ handleClientStylingChange(e, t) {
1520
+ e != t && Q(this.stylingContainer, this.clientStyling);
1521
+ }
1522
+ handleClientStylingUrlChange(e, t) {
1523
+ e != t && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
1524
+ }
1525
+ async componentWillLoad() {
1526
+ this.translationUrl && await l.loadCustomTranslations(this.translationUrl), this.loadTransactions();
1527
+ }
1528
+ componentDidLoad() {
1529
+ this.stylingContainer && (window.emMessageBus != null ? Ee(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && Q(this.stylingContainer, this.clientStyling), this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl)));
1530
+ }
1531
+ componentDidRender() {
1532
+ this.getComponentHeight();
1533
+ }
1534
+ getComponentHeight() {
1535
+ var e;
1536
+ if (this.mobile) {
1537
+ let t = this.el.getBoundingClientRect().height - ((e = this.el.shadowRoot.querySelector(".table")) === null || e === void 0 ? void 0 : e.getBoundingClientRect().y);
1538
+ this.el.style.setProperty("--heightScrollableContainer", t + "px");
1539
+ }
1540
+ }
1541
+ setHeightTableProperty() {
1542
+ let e = this.getComponentHeight();
1543
+ this.el.style.setProperty("--heightScrollableContainer", e + "px");
1544
+ }
1545
+ changeTransactionsType(e) {
1546
+ this.type = e;
1547
+ }
1548
+ changePageSize(e) {
1549
+ this.pageSize = e;
1550
+ }
1551
+ prev() {
1552
+ var e;
1553
+ !((e = this.pagination) === null || e === void 0) && e.previous && this.page--;
1554
+ }
1555
+ next() {
1556
+ var e;
1557
+ !((e = this.pagination) === null || e === void 0) && e.next && this.page++;
1558
+ }
1559
+ applyFilters(e, t) {
1560
+ this.from = e ? new Date(e).toISOString() : null, this.to = t ? new Date(t).toISOString() : null, this.loadTransactions();
1561
+ }
1562
+ showFilter() {
1563
+ this.showMobileFilter = !this.showMobileFilter;
1564
+ }
1565
+ disconnectedCallback() {
1566
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
1567
+ }
1568
+ render() {
1569
+ var e;
1570
+ const t = q("../assets/filter.svg"), a = q("../assets/warning.svg");
1571
+ return s(st, { key: "7346a5fe57d7bc3df7b3eb88f1a175b1bb4fed10" }, this.showLoader ? s(ht, null) : "", s("div", { key: "f58cb9c38d88702255a3f63731c152f79cc7c071", class: "wrapper", ref: (n) => this.stylingContainer = n }, s("div", { key: "ff79d6a34f9e4615fecd81f12cec228e567317b3", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, s("button", { key: "6c89c781087a854edb143e84fd684b72a6a5f8c1", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, l.translate("deposit", this.language)), s("button", { key: "15d1f9c89a1ffdfcbc0d8e5ebf375bcd2129e2aa", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, l.translate("withdrawals", this.language))), this.mobile ? "" : s(Ue, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? s("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, s("img", { src: t, alt: "Filter" }), l.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? s(We, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((e = this.transactions) === null || e === void 0 ? void 0 : e.length) > 0 ? s("div", { class: "table" }, this.mobile ? s("div", { class: "mobile-table" }, this.transactions.map((n) => s(Pe, Object.assign({}, n, { dateformat: this.dateFormat })))) : s(Fe, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : s("div", { class: "noData" }, s("img", { src: a, alt: "Warning" }), s("span", null, l.translate("noData", this.language))), s("div", { key: "5a0b142e2a02e0a24263a6b66ad36762c3934712", class: "pagination" }, s("button", { key: "2dcc9efdc61ed362e4845da8088bd5de458bab0f", onClick: () => this.prev() }, "<"), s("button", { key: "acd4dfb619f6220bcbc9da932c6accf0e34c7df0", onClick: () => this.next() }, ">"))));
1572
+ }
1573
+ async loadTransactions() {
1574
+ this.showLoader = !0;
1575
+ try {
1576
+ const e = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, t = await fetch(e, {
1577
+ headers: {
1578
+ "X-Sessionid": this.session,
1579
+ "Content-Type": "application/json"
1580
+ }
1581
+ });
1582
+ if (!t.ok) {
1583
+ const n = await t.text();
1584
+ throw new Error(n);
1585
+ }
1586
+ const a = await t.json();
1587
+ this.pagination = a.pagination, this.transactions = a.transactions;
1588
+ } catch (e) {
1589
+ console.error(e);
1590
+ } finally {
1591
+ this.showLoader = !1;
1592
+ }
1593
+ }
1594
+ getParams() {
1595
+ var e, t;
1596
+ const a = /* @__PURE__ */ new Date(), n = (this.page * this.pageSize).toString(), r = (e = this.from) !== null && e !== void 0 ? e : new Date(a.getFullYear(), a.getMonth(), 1).toISOString(), i = (t = this.to) !== null && t !== void 0 ? t : new Date(a.getFullYear(), a.getMonth() + 1, 0).toISOString();
1597
+ return `offset=${n}&endDate=${i}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
1598
+ }
1599
+ static get assetsDirs() {
1600
+ return ["../assets"];
1601
+ }
1602
+ get el() {
1603
+ return lt(this);
1604
+ }
1605
+ static get watchers() {
1606
+ return {
1607
+ page: ["watchMultiple"],
1608
+ type: ["watchMultiple"],
1609
+ session: ["watchMultiple"],
1610
+ userId: ["watchMultiple"],
1611
+ pageSize: ["watchMultiple"],
1612
+ clientStyling: ["handleClientStylingChange"],
1613
+ clientStylingUrl: ["handleClientStylingUrlChange"],
1614
+ showMobileFilter: ["getComponentHeight"]
1615
+ };
1616
+ }
1617
+ };
1618
+ Le.style = _e;
1619
+ export {
1620
+ Le as user_transaction_history
1621
+ };