@everymatrix/player-account-controller 1.87.26 → 1.87.28

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 (200) hide show
  1. package/components/GeneralLogout-CEm1d9TV.js +300 -0
  2. package/components/GeneralLogout-Cx-68AU-.cjs +1 -0
  3. package/components/GeneralLogout-P3tigWsE.js +300 -0
  4. package/components/PlayerAccountBettingHistory-BTrKyG5c.cjs +1 -0
  5. package/components/PlayerAccountBettingHistory-CumeIegs.js +310 -0
  6. package/components/PlayerAccountBettingHistory-V_ZXgT_m.js +311 -0
  7. package/components/PlayerAccountBiometrics-is5id3Pu.cjs +1 -0
  8. package/components/{PlayerAccountBiometrics-kmv4HqQ_.js → PlayerAccountBiometrics-kZejQke-.js} +94 -94
  9. package/components/{PlayerAccountBiometrics-Cu1scn1a.js → PlayerAccountBiometrics-nvw10pCK.js} +94 -94
  10. package/components/PlayerAccountBiometricsAction-CnzIUbKT.js +434 -0
  11. package/components/PlayerAccountBiometricsAction-DgA-1ZVp.js +451 -0
  12. package/components/PlayerAccountBiometricsAction-KVABAIgM.cjs +1 -0
  13. package/components/{PlayerAccountClosure-B7lWhxS5.js → PlayerAccountClosure-BRWbN9CL.js} +90 -90
  14. package/components/{PlayerAccountClosure-DWX0cAW_.js → PlayerAccountClosure-CMHJCKmw.js} +92 -92
  15. package/components/PlayerAccountClosure-eMDaHm0s.cjs +1 -0
  16. package/components/PlayerAccountController-BnmD5Ofx.cjs +21 -0
  17. package/components/PlayerAccountController-DuWNHRdy.js +13466 -0
  18. package/components/PlayerAccountController-j-NYynzq.js +13423 -0
  19. package/components/{PlayerAccountGamingLimits-DuDCpH1C.js → PlayerAccountGamingLimits-B4jiOpbe.js} +101 -101
  20. package/components/{PlayerAccountGamingLimits-DNqahHsA.js → PlayerAccountGamingLimits-CKJ6b9fI.js} +97 -97
  21. package/components/PlayerAccountGamingLimits-CWozJexi.cjs +1 -0
  22. package/components/PlayerAccountGamingLimitsConfirmationModal-D7U-SETU.cjs +1 -0
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-De_w7-UU.js → PlayerAccountGamingLimitsConfirmationModal-DnrFMJHA.js} +88 -88
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-DfJgQjRr.js → PlayerAccountGamingLimitsConfirmationModal-kEFYK5ek.js} +77 -77
  25. package/components/PlayerAccountGamingLimitsGroupEdit-Bxzv8N1q.cjs +1 -0
  26. package/components/PlayerAccountGamingLimitsGroupEdit-DE3NQvEw.js +1555 -0
  27. package/components/PlayerAccountGamingLimitsGroupEdit-e5InPcEl.js +1555 -0
  28. package/components/PlayerAccountGamingLimitsHistory2-COzxMqse.cjs +1 -0
  29. package/components/{PlayerAccountGamingLimitsHistory2-D1N2rg25.js → PlayerAccountGamingLimitsHistory2-CjyULSw7.js} +111 -111
  30. package/components/{PlayerAccountGamingLimitsHistory2-BN0w14Hg.js → PlayerAccountGamingLimitsHistory2-D77EY8P-.js} +100 -100
  31. package/components/{PlayerAccountGamingLimitsInfoCard-D_ro79gB.js → PlayerAccountGamingLimitsInfoCard-8dFikYNs.js} +415 -399
  32. package/components/PlayerAccountGamingLimitsInfoCard-BGpnQhkj.cjs +1 -0
  33. package/components/{PlayerAccountGamingLimitsInfoCard-B6oHRJP6.js → PlayerAccountGamingLimitsInfoCard-DOiKdkIk.js} +415 -399
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-CMxzI07w.cjs → PlayerAccountGamingLimitsPage2Gm16-B-ROLFTB.cjs} +6 -6
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-o_0DfyBW.js → PlayerAccountGamingLimitsPage2Gm16-Bs5pGY8V.js} +699 -699
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-EA4I02NQ.js → PlayerAccountGamingLimitsPage2Gm16-CmV0jB0D.js} +702 -702
  37. package/components/{PlayerAccountGamingLimitsPopup-9casCGHJ.js → PlayerAccountGamingLimitsPopup-C9wKY91L.js} +34 -34
  38. package/components/PlayerAccountGamingLimitsPopup-Cpzn3X0n.cjs +1 -0
  39. package/components/{PlayerAccountGamingLimitsPopup-DhlQaawG.js → PlayerAccountGamingLimitsPopup-_AnjYuYf.js} +38 -38
  40. package/components/{PlayerAccountGamingLimitsWrapper2-DG5pRuF1.js → PlayerAccountGamingLimitsWrapper2-DqAnX1Py.js} +81 -81
  41. package/components/{PlayerAccountGamingLimitsWrapper2-B_pUqlM0.js → PlayerAccountGamingLimitsWrapper2-Dwknu3Cb.js} +75 -75
  42. package/components/PlayerAccountGamingLimitsWrapper2-y6bGvy33.cjs +4 -0
  43. package/components/{PlayerAccountGeneralConfirmationModal-BIStQzTL.js → PlayerAccountGeneralConfirmationModal-BiBU4e0n.js} +103 -103
  44. package/components/{PlayerAccountGeneralConfirmationModal-DAUZlQfJ.js → PlayerAccountGeneralConfirmationModal-DA07qkhd.js} +106 -106
  45. package/components/PlayerAccountGeneralConfirmationModal-PNfL91mi.cjs +1 -0
  46. package/components/{PlayerAccountMenu-khqZEoBc.js → PlayerAccountMenu-BW2VbXTx.js} +129 -129
  47. package/components/PlayerAccountMenu-CERrQlC7.cjs +1 -0
  48. package/components/{PlayerAccountMenu-OqVmttiI.js → PlayerAccountMenu-C_OETzKF.js} +129 -129
  49. package/components/{PlayerAccountModal-NUSkSmow.js → PlayerAccountModal-CL2SvpaJ.js} +58 -58
  50. package/components/{PlayerAccountModal-BXez3U77.js → PlayerAccountModal-CRzDk0do.js} +54 -54
  51. package/components/PlayerAccountModal-Dv3Yl1K_.cjs +1 -0
  52. package/components/{PlayerAccountNotifications-0v1ghF-m.js → PlayerAccountNotifications-BSwGy1iD.js} +87 -87
  53. package/components/{PlayerAccountNotifications-XjCLekPR.js → PlayerAccountNotifications-BmE8XpGH.js} +126 -126
  54. package/components/PlayerAccountNotifications-CevM0zeL.cjs +1 -0
  55. package/components/PlayerAccountProductRestriction-Bnwnb-af.js +1458 -0
  56. package/components/PlayerAccountProductRestriction-CLH_YtYd.cjs +4 -0
  57. package/components/PlayerAccountProductRestriction-Cj9ofL_Q.js +1493 -0
  58. package/components/{PlayerAccountReviewFrequency-ByPlOg40.js → PlayerAccountReviewFrequency-C8N1VIV5.js} +245 -245
  59. package/components/{PlayerAccountReviewFrequency-yLwAfHZd.js → PlayerAccountReviewFrequency-Cm4mwygx.js} +235 -235
  60. package/components/PlayerAccountReviewFrequency-D2YmIGdB.cjs +4 -0
  61. package/components/PlayerAccountSelfExclusion-C3XJo3op.js +1523 -0
  62. package/components/PlayerAccountSelfExclusion-CRCAuW_I.js +1551 -0
  63. package/components/PlayerAccountSelfExclusion-DIoBP-zp.cjs +1 -0
  64. package/components/{PlayerAccountSelfExclusion-0IraJUCF.js → PlayerAccountTimeout-Be13_cTt.js} +2363 -2581
  65. package/components/{PlayerAccountSelfExclusion-CP3lzn6g.cjs → PlayerAccountTimeout-DEpNYl-t.cjs} +161 -161
  66. package/components/{PlayerAccountSelfExclusion-B9QFixvG.js → PlayerAccountTimeout-H7G4ySPT.js} +2327 -2545
  67. package/components/{PlayerAccountTransactionsHistory-C4dSIP6l.js → PlayerAccountTransactionsHistory-BHDgStwb.js} +293 -292
  68. package/components/{PlayerAccountTransactionsHistory-CAFUIFUl.js → PlayerAccountTransactionsHistory-CKfnF5YJ.js} +304 -303
  69. package/components/PlayerAccountTransactionsHistory-CgTmptks.cjs +4 -0
  70. package/components/{PlayerActiveBonuses-BQSKxH9G.js → PlayerActiveBonuses-BAevp5YH.js} +222 -221
  71. package/components/{PlayerActiveBonuses-DSpez0EN.js → PlayerActiveBonuses-DRppY1vB.js} +192 -193
  72. package/components/PlayerActiveBonuses-M-vgtJjj.cjs +4 -0
  73. package/components/{PlayerBonusCard-D4jw0D02.js → PlayerBonusCard-BBq4z62c.js} +53 -53
  74. package/components/{PlayerBonusCard--2t2lX4X.js → PlayerBonusCard-BWZ4o6Nm.js} +53 -53
  75. package/components/PlayerBonusCard-BenCFvw0.cjs +1 -0
  76. package/components/{PlayerAccountProductRestriction-Drc1Iu2o.cjs → PlayerBonusHistory-CKhVhlwo.cjs} +295 -294
  77. package/components/PlayerBonusHistory-D1DkiHxv.js +20048 -0
  78. package/components/PlayerBonusHistory-DJdSfH1n.js +20037 -0
  79. package/components/{PlayerChangePassword-CK9EmNEl.js → PlayerChangePassword-DeoUbAd5.js} +257 -257
  80. package/components/{PlayerChangePassword-DDqLNG5r.js → PlayerChangePassword-OSahUgLo.js} +257 -257
  81. package/components/PlayerChangePassword-WUgeBsFa.cjs +3 -0
  82. package/components/{PlayerDeposit-BiOuprGV.js → PlayerDeposit-Du1nnR1u.js} +53 -53
  83. package/components/PlayerDeposit-Yd04zzeQ.cjs +1 -0
  84. package/components/{PlayerDeposit-B0xGf2EY.js → PlayerDeposit-abPtD5hO.js} +51 -51
  85. package/components/PlayerGamingHistory-DyYqzcQv.cjs +1 -0
  86. package/components/{PlayerGamingHistory-CDPSEyVI.js → PlayerGamingHistory-PBFc5gs-.js} +372 -373
  87. package/components/{PlayerGamingHistory-CJn-wybc.js → PlayerGamingHistory-XBIUqV4O.js} +404 -405
  88. package/components/{PlayerPendingWithdrawals-DKIV0VFt.js → PlayerPendingWithdrawals-6W2QUcnc.js} +54 -54
  89. package/components/PlayerPendingWithdrawals-7YfYYSbo.cjs +1 -0
  90. package/components/{PlayerPendingWithdrawals-Cw2CONsa.js → PlayerPendingWithdrawals-Dvufib_U.js} +54 -54
  91. package/components/PlayerProfileInfo-BTa1BRn8.cjs +4 -0
  92. package/components/{PlayerProfileInfo-B2PmsKAI.js → PlayerProfileInfo-BmqBm5DP.js} +782 -782
  93. package/components/{PlayerProfileInfo-YrTsyEfP.js → PlayerProfileInfo-DtV65Pxq.js} +646 -646
  94. package/components/PlayerRealityCheck-CqGAN5_L.cjs +1 -0
  95. package/components/{PlayerRealityCheck-CEToSHcC.js → PlayerRealityCheck-CziErfd6.js} +202 -202
  96. package/components/{PlayerRealityCheck-BdFZDJFk.js → PlayerRealityCheck-lVnY8s1I.js} +217 -217
  97. package/components/PlayerTransactionHistory-D5WIm27W.cjs +1 -0
  98. package/components/{PlayerTransactionHistory-BWwWT8z7.js → PlayerTransactionHistory-DZmR7K3t.js} +64 -64
  99. package/components/{PlayerTransactionHistory-C8uedDZz.js → PlayerTransactionHistory-WpDMStju.js} +68 -68
  100. package/components/{PlayerWithdrawal-BXYWP9OV.js → PlayerWithdrawal-BctNJ79f.js} +65 -65
  101. package/components/{PlayerWithdrawal-DuhBS0tB.js → PlayerWithdrawal-BgFPB_ak.js} +65 -65
  102. package/components/PlayerWithdrawal-rv6DLOa1.cjs +1 -0
  103. package/es2015/player-account-controller.cjs +1 -1
  104. package/es2015/player-account-controller.js +7 -7
  105. package/esnext/player-account-controller.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/app-globals-0f993ce5-BjWsvLzr.cjs +1 -0
  108. package/stencil/{app-globals-0f993ce5-DzSE6TtH.js → app-globals-0f993ce5-XUXOuUQl.js} +4 -4
  109. package/stencil/{checkbox-group-input_16-CFtp0f8h.js → checkbox-group-input_16-Bn7_E98r.js} +2 -2
  110. package/stencil/{checkbox-group-input_16-DuSVlPzJ.cjs → checkbox-group-input_16-C6_jN3p0.cjs} +1 -1
  111. package/stencil/{checkbox-group-input_16-ywIYg4ns.js → checkbox-group-input_16-D9ML4j06.js} +2 -2
  112. package/stencil/{index-1ef3a64c-CEngIsyB.js → index-1ef3a64c-BvSXLnmQ.js} +1 -1
  113. package/stencil/{index-1ef3a64c-BzR_jMKw.cjs → index-1ef3a64c-DK-TGomt.cjs} +1 -1
  114. package/stencil/{index-1ef3a64c-D5p-wZAC.js → index-1ef3a64c-Dwdxxwjy.js} +1 -1
  115. package/stencil/{index-6e523641-D2onrjgE.cjs → index-6e523641-DOnePbtQ.cjs} +1 -1
  116. package/stencil/{index-6e523641-B9tbNrXZ.js → index-6e523641-DpGJosc3.js} +1 -1
  117. package/stencil/{index-6e523641-DH0Ezdpy.js → index-6e523641-pWMNWAtQ.js} +1 -1
  118. package/stencil/{index-9c0f6c58-DjED2nNw.js → index-9c0f6c58-BN39eMNX.js} +1 -1
  119. package/stencil/{index-9c0f6c58-XIZolvs1.cjs → index-9c0f6c58-DK260bKj.cjs} +1 -1
  120. package/stencil/{index-9c0f6c58-DEQL19Io.js → index-9c0f6c58-_RRbHDNl.js} +1 -1
  121. package/stencil/{index-b2193545-0zWC7J3V.js → index-b2193545-CubpYFkO.js} +1 -1
  122. package/stencil/{index-b2193545-BDUg7na_.js → index-b2193545-D3SG_Z28.js} +1 -1
  123. package/stencil/{index-b2193545-C-iFa_cO.cjs → index-b2193545-DM_LjYJq.cjs} +1 -1
  124. package/stencil/{index-c666b6e6-GVnzND9A.cjs → index-c666b6e6-2zPWxCxt.cjs} +1 -1
  125. package/stencil/{index-c666b6e6-C3HFUtzN.js → index-c666b6e6-C0YjtgbT.js} +1 -1
  126. package/stencil/{index-c666b6e6-C5SvvcXp.js → index-c666b6e6-DO3NG0d_.js} +1 -1
  127. package/stencil/{pam-change-password-6b535bd5-BM0i-nkQ.js → pam-change-password-25b46f90--RvqyvAS.js} +122 -93
  128. package/stencil/{pam-change-password-6b535bd5-CwazAyPT.cjs → pam-change-password-25b46f90-CILEgZdb.cjs} +2 -2
  129. package/stencil/{pam-change-password-6b535bd5-BMlVfXop.js → pam-change-password-25b46f90-DBsCYhoF.js} +121 -93
  130. package/stencil/pam-change-password-BaP9RQnm.cjs +1 -0
  131. package/stencil/{pam-change-password-vIDF9oZ0.js → pam-change-password-CfJwcRNG.js} +2 -2
  132. package/stencil/{pam-change-password-YY_WAq3p.js → pam-change-password-a_MEmefG.js} +2 -2
  133. package/stencil/{player-kyc-verification-Cg0fVyvL.cjs → player-kyc-verification-CR-8JjQM.cjs} +2 -2
  134. package/stencil/{player-kyc-verification-vQ6gNPBe.js → player-kyc-verification-DQBYB3LU.js} +90 -62
  135. package/stencil/{player-kyc-verification-BUKoBt3P.js → player-kyc-verification-TCKpEp1x.js} +120 -93
  136. package/stencil/{ui-skeleton-CTFP1U_H.js → ui-skeleton-BKpwkQ2A.js} +3 -3
  137. package/stencil/{ui-skeleton-C2ZVNvDq.cjs → ui-skeleton-CS05SPLQ.cjs} +1 -1
  138. package/stencil/{ui-skeleton-BQnxp85t.js → ui-skeleton-DNuG5l9W.js} +3 -3
  139. package/stencil/{ui-skeleton-ed169f8f-BXqYzfTU.js → ui-skeleton-ed169f8f-BI8lGn4f.js} +1 -1
  140. package/stencil/{ui-skeleton-ed169f8f-DCJKKb_M.cjs → ui-skeleton-ed169f8f-CKUfafNC.cjs} +1 -1
  141. package/stencil/{ui-skeleton-ed169f8f-OyzwWyyv.js → ui-skeleton-ed169f8f-CLfa7nfh.js} +1 -1
  142. package/stencil/{user-deposit-withdrawal-C5lc1C0l.js → user-deposit-withdrawal-BXuiRURM.js} +366 -338
  143. package/stencil/{user-deposit-withdrawal-DmXcotOq.js → user-deposit-withdrawal-CL7rhukA.js} +321 -294
  144. package/stencil/user-deposit-withdrawal-gb0EFmeV.cjs +72 -0
  145. package/stencil/{user-transaction-history-BdbQJzhb.js → user-transaction-history-DCZDdxLh.js} +2 -2
  146. package/stencil/{user-transaction-history-CcfxBfFN.js → user-transaction-history-E1bvLWYx.js} +2 -2
  147. package/stencil/{user-transaction-history-CucZiFYD.cjs → user-transaction-history-_0g5E0XE.cjs} +1 -1
  148. package/stencil/{user-transaction-history_2-B2XvgToy.cjs → user-transaction-history_2-BsrwI7Ib.cjs} +275 -275
  149. package/stencil/{user-transaction-history_2-Ds0pNCu8.js → user-transaction-history_2-C5uqpRMQ.js} +1701 -1651
  150. package/stencil/{user-transaction-history_2-B9fxyLUj.js → user-transaction-history_2-DXX9cR5-.js} +916 -911
  151. package/components/GeneralLogout-0J1RtGyR.js +0 -5018
  152. package/components/GeneralLogout-CmR1r8PX.cjs +0 -21
  153. package/components/GeneralLogout-CwcvAxfM.js +0 -4981
  154. package/components/PlayerAccountBettingHistory-Bf-VPJhk.cjs +0 -1
  155. package/components/PlayerAccountBettingHistory-CiMelnLz.js +0 -311
  156. package/components/PlayerAccountBettingHistory-Cr9hPDou.js +0 -310
  157. package/components/PlayerAccountBiometrics-j15j-n3y.cjs +0 -1
  158. package/components/PlayerAccountBiometricsAction-BJrkhDoI.js +0 -403
  159. package/components/PlayerAccountBiometricsAction-BcR2gS30.js +0 -386
  160. package/components/PlayerAccountBiometricsAction-z16q0M2J.cjs +0 -1
  161. package/components/PlayerAccountClosure-CxxMCXDa.cjs +0 -1
  162. package/components/PlayerAccountController-0zwzJJ4s.js +0 -8738
  163. package/components/PlayerAccountController-Cg3bzQs5.js +0 -8721
  164. package/components/PlayerAccountController-J-78lsk8.cjs +0 -1
  165. package/components/PlayerAccountGamingLimits-DdwsiJT8.cjs +0 -1
  166. package/components/PlayerAccountGamingLimitsConfirmationModal-BiEiNlIc.cjs +0 -1
  167. package/components/PlayerAccountGamingLimitsGroupEdit-2iDWNhRl.js +0 -4781
  168. package/components/PlayerAccountGamingLimitsGroupEdit-CsTpmmhw.js +0 -4781
  169. package/components/PlayerAccountGamingLimitsGroupEdit-gLF0R4uM.cjs +0 -2
  170. package/components/PlayerAccountGamingLimitsHistory2-D3h2vvVL.cjs +0 -1
  171. package/components/PlayerAccountGamingLimitsInfoCard-CUhqA1Ww.cjs +0 -1
  172. package/components/PlayerAccountGamingLimitsPopup-DJbPWFdb.cjs +0 -1
  173. package/components/PlayerAccountGamingLimitsWrapper2-1lOfUhUT.cjs +0 -4
  174. package/components/PlayerAccountGeneralConfirmationModal-BCMD8hM8.cjs +0 -1
  175. package/components/PlayerAccountMenu-DXhrPxvF.cjs +0 -1
  176. package/components/PlayerAccountModal-BpTtaUfX.cjs +0 -1
  177. package/components/PlayerAccountNotifications-CMZltoyc.cjs +0 -1
  178. package/components/PlayerAccountProductRestriction-Dl552qim.js +0 -17524
  179. package/components/PlayerAccountProductRestriction-THYKSRMa.js +0 -17559
  180. package/components/PlayerAccountReviewFrequency-BeI7-JB-.cjs +0 -4
  181. package/components/PlayerAccountTimeout-BRlyos9t.cjs +0 -1
  182. package/components/PlayerAccountTimeout-BVyjYoqw.js +0 -975
  183. package/components/PlayerAccountTimeout-CkMUko7-.js +0 -975
  184. package/components/PlayerAccountTransactionsHistory-DlCJ6V4t.cjs +0 -4
  185. package/components/PlayerActiveBonuses-CQXEEx6M.cjs +0 -4
  186. package/components/PlayerBonusCard-DqB-YOwa.cjs +0 -1
  187. package/components/PlayerBonusHistory-BbO5bAQY.js +0 -1106
  188. package/components/PlayerBonusHistory-C6ZPMR2L.js +0 -1095
  189. package/components/PlayerBonusHistory-DtiQesaY.cjs +0 -4
  190. package/components/PlayerChangePassword-IADHpyQs.cjs +0 -3
  191. package/components/PlayerDeposit-CN2QU967.cjs +0 -1
  192. package/components/PlayerGamingHistory-2XEKCfky.cjs +0 -1
  193. package/components/PlayerPendingWithdrawals-HXAehYWA.cjs +0 -1
  194. package/components/PlayerProfileInfo-wZEXXCWQ.cjs +0 -4
  195. package/components/PlayerRealityCheck-DWoQCHkQ.cjs +0 -1
  196. package/components/PlayerTransactionHistory-CHKGqwam.cjs +0 -1
  197. package/components/PlayerWithdrawal-DhfwYn8c.cjs +0 -1
  198. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +0 -1
  199. package/stencil/pam-change-password-zaJZcylb.cjs +0 -1
  200. package/stencil/user-deposit-withdrawal-DfWpITDc.cjs +0 -72
@@ -1,5018 +0,0 @@
1
- var Mr = Object.defineProperty, Cr = Object.defineProperties;
2
- var $r = Object.getOwnPropertyDescriptors;
3
- var ft = Object.getOwnPropertySymbols;
4
- var Rr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Rr.call(t, r) && Ce(e, r, t[r]);
8
- if (ft)
9
- for (var r of ft(t))
10
- Ur.call(t, r) && Ce(e, r, t[r]);
11
- return e;
12
- }, dt = (e, t) => Cr(e, $r(t));
13
- var S = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var mt = (e, t, r) => new Promise((n, i) => {
15
- var o = (u) => {
16
- try {
17
- a(r.next(u));
18
- } catch (h) {
19
- i(h);
20
- }
21
- }, s = (u) => {
22
- try {
23
- a(r.throw(u));
24
- } catch (h) {
25
- i(h);
26
- }
27
- }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function B() {
31
- }
32
- const Dr = (e) => e;
33
- function Gr(e, t) {
34
- for (const r in t)
35
- e[r] = t[r];
36
- return (
37
- /** @type {T & S} */
38
- e
39
- );
40
- }
41
- function jt(e) {
42
- return e();
43
- }
44
- function bt() {
45
- return /* @__PURE__ */ Object.create(null);
46
- }
47
- function F(e) {
48
- e.forEach(jt);
49
- }
50
- function he(e) {
51
- return typeof e == "function";
52
- }
53
- function kt(e, t) {
54
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
- }
56
- let de;
57
- function Oo(e, t) {
58
- return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
59
- }
60
- function Fr(e) {
61
- return Object.keys(e).length === 0;
62
- }
63
- function Vt(e, ...t) {
64
- if (e == null) {
65
- for (const n of t)
66
- n(void 0);
67
- return B;
68
- }
69
- const r = e.subscribe(...t);
70
- return r.unsubscribe ? () => r.unsubscribe() : r;
71
- }
72
- function jr(e, t, r) {
73
- e.$$.on_destroy.push(Vt(t, r));
74
- }
75
- function Io(e, t, r, n) {
76
- if (e) {
77
- const i = Xt(e, t, r, n);
78
- return e[0](i);
79
- }
80
- }
81
- function Xt(e, t, r, n) {
82
- return e[1] && n ? Gr(r.ctx.slice(), e[1](n(t))) : r.ctx;
83
- }
84
- function Lo(e, t, r, n) {
85
- if (e[2] && n) {
86
- const i = e[2](n(r));
87
- if (t.dirty === void 0)
88
- return i;
89
- if (typeof i == "object") {
90
- const o = [], s = Math.max(t.dirty.length, i.length);
91
- for (let a = 0; a < s; a += 1)
92
- o[a] = t.dirty[a] | i[a];
93
- return o;
94
- }
95
- return t.dirty | i;
96
- }
97
- return t.dirty;
98
- }
99
- function No(e, t, r, n, i, o) {
100
- if (i) {
101
- const s = Xt(t, r, n, o);
102
- e.p(s, i);
103
- }
104
- }
105
- function Mo(e) {
106
- if (e.ctx.length > 32) {
107
- const t = [], r = e.ctx.length / 32;
108
- for (let n = 0; n < r; n++)
109
- t[n] = -1;
110
- return t;
111
- }
112
- return -1;
113
- }
114
- function Co(e) {
115
- return e == null ? "" : e;
116
- }
117
- function $o(e) {
118
- return e && he(e.destroy) ? e.destroy : B;
119
- }
120
- const Wt = typeof window != "undefined";
121
- let kr = Wt ? () => window.performance.now() : () => Date.now(), ut = Wt ? (e) => requestAnimationFrame(e) : B;
122
- const z = /* @__PURE__ */ new Set();
123
- function zt(e) {
124
- z.forEach((t) => {
125
- t.c(e) || (z.delete(t), t.f());
126
- }), z.size !== 0 && ut(zt);
127
- }
128
- function Vr(e) {
129
- let t;
130
- return z.size === 0 && ut(zt), {
131
- promise: new Promise((r) => {
132
- z.add(t = { c: e, f: r });
133
- }),
134
- abort() {
135
- z.delete(t);
136
- }
137
- };
138
- }
139
- function P(e, t) {
140
- e.appendChild(t);
141
- }
142
- function Xr(e, t, r) {
143
- const n = ht(e);
144
- if (!n.getElementById(t)) {
145
- const i = L("style");
146
- i.id = t, i.textContent = r, Zt(n, i);
147
- }
148
- }
149
- function ht(e) {
150
- if (!e)
151
- return document;
152
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
153
- return t && /** @type {ShadowRoot} */
154
- t.host ? (
155
- /** @type {ShadowRoot} */
156
- t
157
- ) : e.ownerDocument;
158
- }
159
- function Wr(e) {
160
- const t = L("style");
161
- return t.textContent = "/* empty */", Zt(ht(e), t), t.sheet;
162
- }
163
- function Zt(e, t) {
164
- return P(
165
- /** @type {Document} */
166
- e.head || e,
167
- t
168
- ), t.sheet;
169
- }
170
- function K(e, t, r) {
171
- e.insertBefore(t, r || null);
172
- }
173
- function G(e) {
174
- e.parentNode && e.parentNode.removeChild(e);
175
- }
176
- function Ro(e, t) {
177
- for (let r = 0; r < e.length; r += 1)
178
- e[r] && e[r].d(t);
179
- }
180
- function L(e) {
181
- return document.createElement(e);
182
- }
183
- function X(e) {
184
- return document.createElementNS("http://www.w3.org/2000/svg", e);
185
- }
186
- function le(e) {
187
- return document.createTextNode(e);
188
- }
189
- function zr() {
190
- return le(" ");
191
- }
192
- function Uo() {
193
- return le("");
194
- }
195
- function qt(e, t, r, n) {
196
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
197
- }
198
- function Do(e) {
199
- return function(t) {
200
- return t.preventDefault(), e.call(this, t);
201
- };
202
- }
203
- function A(e, t, r) {
204
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
205
- }
206
- function Go(e, t, r) {
207
- const n = t.toLowerCase();
208
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : A(e, t, r);
209
- }
210
- function Fo(e) {
211
- let t;
212
- return {
213
- /* push */
214
- p(...r) {
215
- t = r, t.forEach((n) => e.push(n));
216
- },
217
- /* remove */
218
- r() {
219
- t.forEach((r) => e.splice(e.indexOf(r), 1));
220
- }
221
- };
222
- }
223
- function jo(e) {
224
- return e === "" ? null : +e;
225
- }
226
- function Zr(e) {
227
- return Array.from(e.childNodes);
228
- }
229
- function Qt(e, t) {
230
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
231
- t);
232
- }
233
- function ko(e, t) {
234
- e.value = t == null ? "" : t;
235
- }
236
- function qr(e, t, r, n) {
237
- r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
238
- }
239
- function Vo(e, t, r) {
240
- for (let n = 0; n < e.options.length; n += 1) {
241
- const i = e.options[n];
242
- if (i.__value === t) {
243
- i.selected = !0;
244
- return;
245
- }
246
- }
247
- (!r || t !== void 0) && (e.selectedIndex = -1);
248
- }
249
- function Xo(e) {
250
- const t = e.querySelector(":checked");
251
- return t && t.__value;
252
- }
253
- function Wo(e, t, r) {
254
- e.classList.toggle(t, !!r);
255
- }
256
- function Qr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
257
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
258
- }
259
- class zo {
260
- constructor(t = !1) {
261
- /**
262
- * @private
263
- * @default false
264
- */
265
- S(this, "is_svg", !1);
266
- /** parent for creating node */
267
- S(this, "e");
268
- /** html tag nodes */
269
- S(this, "n");
270
- /** target */
271
- S(this, "t");
272
- /** anchor */
273
- S(this, "a");
274
- this.is_svg = t, this.e = this.n = null;
275
- }
276
- /**
277
- * @param {string} html
278
- * @returns {void}
279
- */
280
- c(t) {
281
- this.h(t);
282
- }
283
- /**
284
- * @param {string} html
285
- * @param {HTMLElement | SVGElement} target
286
- * @param {HTMLElement | SVGElement} anchor
287
- * @returns {void}
288
- */
289
- m(t, r, n = null) {
290
- this.e || (this.is_svg ? this.e = X(
291
- /** @type {keyof SVGElementTagNameMap} */
292
- r.nodeName
293
- ) : this.e = L(
294
- /** @type {keyof HTMLElementTagNameMap} */
295
- r.nodeType === 11 ? "TEMPLATE" : r.nodeName
296
- ), this.t = r.tagName !== "TEMPLATE" ? r : (
297
- /** @type {HTMLTemplateElement} */
298
- r.content
299
- ), this.c(t)), this.i(n);
300
- }
301
- /**
302
- * @param {string} html
303
- * @returns {void}
304
- */
305
- h(t) {
306
- this.e.innerHTML = t, this.n = Array.from(
307
- this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
308
- );
309
- }
310
- /**
311
- * @returns {void} */
312
- i(t) {
313
- for (let r = 0; r < this.n.length; r += 1)
314
- K(this.t, this.n[r], t);
315
- }
316
- /**
317
- * @param {string} html
318
- * @returns {void}
319
- */
320
- p(t) {
321
- this.d(), this.h(t), this.i(this.a);
322
- }
323
- /**
324
- * @returns {void} */
325
- d() {
326
- this.n.forEach(G);
327
- }
328
- }
329
- function Jr(e) {
330
- const t = {};
331
- return e.childNodes.forEach(
332
- /** @param {Element} node */
333
- (r) => {
334
- t[r.slot || "default"] = !0;
335
- }
336
- ), t;
337
- }
338
- const xe = /* @__PURE__ */ new Map();
339
- let Se = 0;
340
- function Yr(e) {
341
- let t = 5381, r = e.length;
342
- for (; r--; )
343
- t = (t << 5) - t ^ e.charCodeAt(r);
344
- return t >>> 0;
345
- }
346
- function Kr(e, t) {
347
- const r = { stylesheet: Wr(t), rules: {} };
348
- return xe.set(e, r), r;
349
- }
350
- function gt(e, t, r, n, i, o, s, a = 0) {
351
- const u = 16.666 / n;
352
- let h = `{
353
- `;
354
- for (let _ = 0; _ <= 1; _ += u) {
355
- const w = t + (r - t) * o(_);
356
- h += _ * 100 + `%{${s(w, 1 - w)}}
357
- `;
358
- }
359
- const l = h + `100% {${s(r, 1 - r)}}
360
- }`, f = `__svelte_${Yr(l)}_${a}`, c = ht(e), { stylesheet: d, rules: p } = xe.get(c) || Kr(c, e);
361
- p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${l}`, d.cssRules.length));
362
- const m = e.style.animation || "";
363
- return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Se += 1, f;
364
- }
365
- function en(e, t) {
366
- const r = (e.style.animation || "").split(", "), n = r.filter(
367
- t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
368
- // remove all Svelte animations
369
- ), i = r.length - n.length;
370
- i && (e.style.animation = n.join(", "), Se -= i, Se || tn());
371
- }
372
- function tn() {
373
- ut(() => {
374
- Se || (xe.forEach((e) => {
375
- const { ownerNode: t } = e.stylesheet;
376
- t && G(t);
377
- }), xe.clear());
378
- });
379
- }
380
- let se;
381
- function oe(e) {
382
- se = e;
383
- }
384
- function Jt() {
385
- if (!se)
386
- throw new Error("Function called outside component initialization");
387
- return se;
388
- }
389
- function rn(e) {
390
- Jt().$$.on_mount.push(e);
391
- }
392
- function Zo(e) {
393
- Jt().$$.on_destroy.push(e);
394
- }
395
- const W = [], Xe = [];
396
- let Z = [];
397
- const yt = [], Yt = /* @__PURE__ */ Promise.resolve();
398
- let We = !1;
399
- function Kt() {
400
- We || (We = !0, Yt.then(N));
401
- }
402
- function qo() {
403
- return Kt(), Yt;
404
- }
405
- function Te(e) {
406
- Z.push(e);
407
- }
408
- const $e = /* @__PURE__ */ new Set();
409
- let k = 0;
410
- function N() {
411
- if (k !== 0)
412
- return;
413
- const e = se;
414
- do {
415
- try {
416
- for (; k < W.length; ) {
417
- const t = W[k];
418
- k++, oe(t), nn(t.$$);
419
- }
420
- } catch (t) {
421
- throw W.length = 0, k = 0, t;
422
- }
423
- for (oe(null), W.length = 0, k = 0; Xe.length; )
424
- Xe.pop()();
425
- for (let t = 0; t < Z.length; t += 1) {
426
- const r = Z[t];
427
- $e.has(r) || ($e.add(r), r());
428
- }
429
- Z.length = 0;
430
- } while (W.length);
431
- for (; yt.length; )
432
- yt.pop()();
433
- We = !1, $e.clear(), oe(e);
434
- }
435
- function nn(e) {
436
- if (e.fragment !== null) {
437
- e.update(), F(e.before_update);
438
- const t = e.dirty;
439
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Te);
440
- }
441
- }
442
- function on(e) {
443
- const t = [], r = [];
444
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
445
- }
446
- let ne;
447
- function sn() {
448
- return ne || (ne = Promise.resolve(), ne.then(() => {
449
- ne = null;
450
- })), ne;
451
- }
452
- function Re(e, t, r) {
453
- e.dispatchEvent(Qr(`${t ? "intro" : "outro"}${r}`));
454
- }
455
- const ge = /* @__PURE__ */ new Set();
456
- let C;
457
- function Qo() {
458
- C = {
459
- r: 0,
460
- c: [],
461
- p: C
462
- // parent group
463
- };
464
- }
465
- function Jo() {
466
- C.r || F(C.c), C = C.p;
467
- }
468
- function an(e, t) {
469
- e && e.i && (ge.delete(e), e.i(t));
470
- }
471
- function Yo(e, t, r, n) {
472
- if (e && e.o) {
473
- if (ge.has(e))
474
- return;
475
- ge.add(e), C.c.push(() => {
476
- ge.delete(e), n && (r && e.d(1), n());
477
- }), e.o(t);
478
- } else
479
- n && n();
480
- }
481
- const un = { duration: 0 };
482
- function Ko(e, t, r, n) {
483
- let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, u = null, h = null, l;
484
- function f() {
485
- h && en(e, h);
486
- }
487
- function c(p, m) {
488
- const _ = (
489
- /** @type {Program['d']} */
490
- p.b - s
491
- );
492
- return m *= Math.abs(_), {
493
- a: s,
494
- b: p.b,
495
- d: _,
496
- duration: m,
497
- start: p.start,
498
- end: p.start + m,
499
- group: p.group
500
- };
501
- }
502
- function d(p) {
503
- const {
504
- delay: m = 0,
505
- duration: _ = 300,
506
- easing: w = Dr,
507
- tick: O = B,
508
- css: x
509
- } = o || un, I = {
510
- start: kr() + m,
511
- b: p
512
- };
513
- p || (I.group = C, C.r += 1), "inert" in e && (p ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
514
- e.inert, e.inert = !0)), a || u ? u = I : (x && (f(), h = gt(e, s, p, _, m, w, x)), p && O(0, 1), a = c(I, _), Te(() => Re(e, p, "start")), Vr((H) => {
515
- if (u && H > u.start && (a = c(u, _), u = null, Re(e, a.b, "start"), x && (f(), h = gt(
516
- e,
517
- s,
518
- a.b,
519
- a.duration,
520
- 0,
521
- w,
522
- o.css
523
- ))), a) {
524
- if (H >= a.end)
525
- O(s = a.b, 1 - s), Re(e, a.b, "end"), u || (a.b ? f() : --a.group.r || F(a.group.c)), a = null;
526
- else if (H >= a.start) {
527
- const R = H - a.start;
528
- s = a.a + a.d * w(R / a.duration), O(s, 1 - s);
529
- }
530
- }
531
- return !!(a || u);
532
- }));
533
- }
534
- return {
535
- run(p) {
536
- he(o) ? sn().then(() => {
537
- o = o({ direction: p ? "in" : "out" }), d(p);
538
- }) : d(p);
539
- },
540
- end() {
541
- f(), a = u = null;
542
- }
543
- };
544
- }
545
- function es(e) {
546
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
547
- }
548
- function hn(e, t, r) {
549
- const { fragment: n, after_update: i } = e.$$;
550
- n && n.m(t, r), Te(() => {
551
- const o = e.$$.on_mount.map(jt).filter(he);
552
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
553
- }), i.forEach(Te);
554
- }
555
- function ln(e, t) {
556
- const r = e.$$;
557
- r.fragment !== null && (on(r.after_update), F(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
558
- }
559
- function cn(e, t) {
560
- e.$$.dirty[0] === -1 && (W.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
561
- }
562
- function fn(e, t, r, n, i, o, s = null, a = [-1]) {
563
- const u = se;
564
- oe(e);
565
- const h = e.$$ = {
566
- fragment: null,
567
- ctx: [],
568
- // state
569
- props: o,
570
- update: B,
571
- not_equal: i,
572
- bound: bt(),
573
- // lifecycle
574
- on_mount: [],
575
- on_destroy: [],
576
- on_disconnect: [],
577
- before_update: [],
578
- after_update: [],
579
- context: new Map(t.context || (u ? u.$$.context : [])),
580
- // everything else
581
- callbacks: bt(),
582
- dirty: a,
583
- skip_bound: !1,
584
- root: t.target || u.$$.root
585
- };
586
- s && s(h.root);
587
- let l = !1;
588
- if (h.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
589
- const p = d.length ? d[0] : c;
590
- return h.ctx && i(h.ctx[f], h.ctx[f] = p) && (!h.skip_bound && h.bound[f] && h.bound[f](p), l && cn(e, f)), c;
591
- }) : [], h.update(), l = !0, F(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
592
- if (t.hydrate) {
593
- const f = Zr(t.target);
594
- h.fragment && h.fragment.l(f), f.forEach(G);
595
- } else
596
- h.fragment && h.fragment.c();
597
- t.intro && an(e.$$.fragment), hn(e, t.target, t.anchor), N();
598
- }
599
- oe(u);
600
- }
601
- let er;
602
- typeof HTMLElement == "function" && (er = class extends HTMLElement {
603
- constructor(t, r, n) {
604
- super();
605
- /** The Svelte component constructor */
606
- S(this, "$$ctor");
607
- /** Slots */
608
- S(this, "$$s");
609
- /** The Svelte component instance */
610
- S(this, "$$c");
611
- /** Whether or not the custom element is connected */
612
- S(this, "$$cn", !1);
613
- /** Component props data */
614
- S(this, "$$d", {});
615
- /** `true` if currently in the process of reflecting component props back to attributes */
616
- S(this, "$$r", !1);
617
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
618
- S(this, "$$p_d", {});
619
- /** @type {Record<string, Function[]>} Event listeners */
620
- S(this, "$$l", {});
621
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
622
- S(this, "$$l_u", /* @__PURE__ */ new Map());
623
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
624
- }
625
- addEventListener(t, r, n) {
626
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
627
- const i = this.$$c.$on(t, r);
628
- this.$$l_u.set(r, i);
629
- }
630
- super.addEventListener(t, r, n);
631
- }
632
- removeEventListener(t, r, n) {
633
- if (super.removeEventListener(t, r, n), this.$$c) {
634
- const i = this.$$l_u.get(r);
635
- i && (i(), this.$$l_u.delete(r));
636
- }
637
- }
638
- connectedCallback() {
639
- return mt(this, null, function* () {
640
- if (this.$$cn = !0, !this.$$c) {
641
- let t = function(o) {
642
- return () => {
643
- let s;
644
- return {
645
- c: function() {
646
- s = L("slot"), o !== "default" && A(s, "name", o);
647
- },
648
- /**
649
- * @param {HTMLElement} target
650
- * @param {HTMLElement} [anchor]
651
- */
652
- m: function(h, l) {
653
- K(h, s, l);
654
- },
655
- d: function(h) {
656
- h && G(s);
657
- }
658
- };
659
- };
660
- };
661
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
662
- return;
663
- const r = {}, n = Jr(this);
664
- for (const o of this.$$s)
665
- o in n && (r[o] = [t(o)]);
666
- for (const o of this.attributes) {
667
- const s = this.$$g_p(o.name);
668
- s in this.$$d || (this.$$d[s] = ye(s, o.value, this.$$p_d, "toProp"));
669
- }
670
- for (const o in this.$$p_d)
671
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
672
- this.$$c = new this.$$ctor({
673
- target: this.shadowRoot || this,
674
- props: dt(pt({}, this.$$d), {
675
- $$slots: r,
676
- $$scope: {
677
- ctx: []
678
- }
679
- })
680
- });
681
- const i = () => {
682
- this.$$r = !0;
683
- for (const o in this.$$p_d)
684
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
685
- const s = ye(
686
- o,
687
- this.$$d[o],
688
- this.$$p_d,
689
- "toAttribute"
690
- );
691
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
692
- }
693
- this.$$r = !1;
694
- };
695
- this.$$c.$$.after_update.push(i), i();
696
- for (const o in this.$$l)
697
- for (const s of this.$$l[o]) {
698
- const a = this.$$c.$on(o, s);
699
- this.$$l_u.set(s, a);
700
- }
701
- this.$$l = {};
702
- }
703
- });
704
- }
705
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
706
- // and setting attributes through setAttribute etc, this is helpful
707
- attributeChangedCallback(t, r, n) {
708
- var i;
709
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
710
- }
711
- disconnectedCallback() {
712
- this.$$cn = !1, Promise.resolve().then(() => {
713
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
714
- });
715
- }
716
- $$g_p(t) {
717
- return Object.keys(this.$$p_d).find(
718
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
719
- ) || t;
720
- }
721
- });
722
- function ye(e, t, r, n) {
723
- var o;
724
- const i = (o = r[e]) == null ? void 0 : o.type;
725
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
726
- return t;
727
- if (n === "toAttribute")
728
- switch (i) {
729
- case "Object":
730
- case "Array":
731
- return t == null ? null : JSON.stringify(t);
732
- case "Boolean":
733
- return t ? "" : null;
734
- case "Number":
735
- return t == null ? null : t;
736
- default:
737
- return t;
738
- }
739
- else
740
- switch (i) {
741
- case "Object":
742
- case "Array":
743
- return t && JSON.parse(t);
744
- case "Boolean":
745
- return t;
746
- case "Number":
747
- return t != null ? +t : t;
748
- default:
749
- return t;
750
- }
751
- }
752
- function pn(e, t, r, n, i, o) {
753
- let s = class extends er {
754
- constructor() {
755
- super(e, r, i), this.$$p_d = t;
756
- }
757
- static get observedAttributes() {
758
- return Object.keys(t).map(
759
- (a) => (t[a].attribute || a).toLowerCase()
760
- );
761
- }
762
- };
763
- return Object.keys(t).forEach((a) => {
764
- Object.defineProperty(s.prototype, a, {
765
- get() {
766
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
767
- },
768
- set(u) {
769
- var h;
770
- u = ye(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
771
- }
772
- });
773
- }), n.forEach((a) => {
774
- Object.defineProperty(s.prototype, a, {
775
- get() {
776
- var u;
777
- return (u = this.$$c) == null ? void 0 : u[a];
778
- }
779
- });
780
- }), e.element = /** @type {any} */
781
- s, s;
782
- }
783
- class dn {
784
- constructor() {
785
- /**
786
- * ### PRIVATE API
787
- *
788
- * Do not use, may change at any time
789
- *
790
- * @type {any}
791
- */
792
- S(this, "$$");
793
- /**
794
- * ### PRIVATE API
795
- *
796
- * Do not use, may change at any time
797
- *
798
- * @type {any}
799
- */
800
- S(this, "$$set");
801
- }
802
- /** @returns {void} */
803
- $destroy() {
804
- ln(this, 1), this.$destroy = B;
805
- }
806
- /**
807
- * @template {Extract<keyof Events, string>} K
808
- * @param {K} type
809
- * @param {((e: Events[K]) => void) | null | undefined} callback
810
- * @returns {() => void}
811
- */
812
- $on(t, r) {
813
- if (!he(r))
814
- return B;
815
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
816
- return n.push(r), () => {
817
- const i = n.indexOf(r);
818
- i !== -1 && n.splice(i, 1);
819
- };
820
- }
821
- /**
822
- * @param {Partial<Props>} props
823
- * @returns {void}
824
- */
825
- $set(t) {
826
- this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
827
- }
828
- }
829
- const mn = "4";
830
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
831
- /*! *****************************************************************************
832
- Copyright (c) Microsoft Corporation.
833
-
834
- Permission to use, copy, modify, and/or distribute this software for any
835
- purpose with or without fee is hereby granted.
836
-
837
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
838
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
839
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
840
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
841
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
842
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
843
- PERFORMANCE OF THIS SOFTWARE.
844
- ***************************************************************************** */
845
- var ze = function(e, t) {
846
- return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
847
- r.__proto__ = n;
848
- } || function(r, n) {
849
- for (var i in n)
850
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
851
- }, ze(e, t);
852
- };
853
- function ce(e, t) {
854
- if (typeof t != "function" && t !== null)
855
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
856
- ze(e, t);
857
- function r() {
858
- this.constructor = e;
859
- }
860
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
861
- }
862
- function Ze(e) {
863
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
864
- if (r)
865
- return r.call(e);
866
- if (e && typeof e.length == "number")
867
- return {
868
- next: function() {
869
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
870
- }
871
- };
872
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
873
- }
874
- function qe(e, t) {
875
- var r = typeof Symbol == "function" && e[Symbol.iterator];
876
- if (!r)
877
- return e;
878
- var n = r.call(e), i, o = [], s;
879
- try {
880
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
881
- o.push(i.value);
882
- } catch (a) {
883
- s = { error: a };
884
- } finally {
885
- try {
886
- i && !i.done && (r = n.return) && r.call(n);
887
- } finally {
888
- if (s)
889
- throw s.error;
890
- }
891
- }
892
- return o;
893
- }
894
- function Qe(e, t, r) {
895
- if (arguments.length === 2)
896
- for (var n = 0, i = t.length, o; n < i; n++)
897
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
898
- return e.concat(o || t);
899
- }
900
- function $(e) {
901
- return typeof e == "function";
902
- }
903
- function tr(e) {
904
- var t = function(n) {
905
- Error.call(n), n.stack = new Error().stack;
906
- }, r = e(t);
907
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
908
- }
909
- var Ue = tr(function(e) {
910
- return function(r) {
911
- e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
912
- ` + r.map(function(n, i) {
913
- return i + 1 + ") " + n.toString();
914
- }).join(`
915
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
916
- };
917
- });
918
- function Je(e, t) {
919
- if (e) {
920
- var r = e.indexOf(t);
921
- 0 <= r && e.splice(r, 1);
922
- }
923
- }
924
- var Ae = function() {
925
- function e(t) {
926
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
927
- }
928
- return e.prototype.unsubscribe = function() {
929
- var t, r, n, i, o;
930
- if (!this.closed) {
931
- this.closed = !0;
932
- var s = this._parentage;
933
- if (s)
934
- if (this._parentage = null, Array.isArray(s))
935
- try {
936
- for (var a = Ze(s), u = a.next(); !u.done; u = a.next()) {
937
- var h = u.value;
938
- h.remove(this);
939
- }
940
- } catch (m) {
941
- t = { error: m };
942
- } finally {
943
- try {
944
- u && !u.done && (r = a.return) && r.call(a);
945
- } finally {
946
- if (t)
947
- throw t.error;
948
- }
949
- }
950
- else
951
- s.remove(this);
952
- var l = this.initialTeardown;
953
- if ($(l))
954
- try {
955
- l();
956
- } catch (m) {
957
- o = m instanceof Ue ? m.errors : [m];
958
- }
959
- var f = this._finalizers;
960
- if (f) {
961
- this._finalizers = null;
962
- try {
963
- for (var c = Ze(f), d = c.next(); !d.done; d = c.next()) {
964
- var p = d.value;
965
- try {
966
- vt(p);
967
- } catch (m) {
968
- o = o != null ? o : [], m instanceof Ue ? o = Qe(Qe([], qe(o)), qe(m.errors)) : o.push(m);
969
- }
970
- }
971
- } catch (m) {
972
- n = { error: m };
973
- } finally {
974
- try {
975
- d && !d.done && (i = c.return) && i.call(c);
976
- } finally {
977
- if (n)
978
- throw n.error;
979
- }
980
- }
981
- }
982
- if (o)
983
- throw new Ue(o);
984
- }
985
- }, e.prototype.add = function(t) {
986
- var r;
987
- if (t && t !== this)
988
- if (this.closed)
989
- vt(t);
990
- else {
991
- if (t instanceof e) {
992
- if (t.closed || t._hasParent(this))
993
- return;
994
- t._addParent(this);
995
- }
996
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
997
- }
998
- }, e.prototype._hasParent = function(t) {
999
- var r = this._parentage;
1000
- return r === t || Array.isArray(r) && r.includes(t);
1001
- }, e.prototype._addParent = function(t) {
1002
- var r = this._parentage;
1003
- this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
1004
- }, e.prototype._removeParent = function(t) {
1005
- var r = this._parentage;
1006
- r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
1007
- }, e.prototype.remove = function(t) {
1008
- var r = this._finalizers;
1009
- r && Je(r, t), t instanceof e && t._removeParent(this);
1010
- }, e.EMPTY = function() {
1011
- var t = new e();
1012
- return t.closed = !0, t;
1013
- }(), e;
1014
- }(), rr = Ae.EMPTY;
1015
- function nr(e) {
1016
- return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
1017
- }
1018
- function vt(e) {
1019
- $(e) ? e() : e.unsubscribe();
1020
- }
1021
- var bn = {
1022
- Promise: void 0
1023
- }, gn = {
1024
- setTimeout: function(e, t) {
1025
- for (var r = [], n = 2; n < arguments.length; n++)
1026
- r[n - 2] = arguments[n];
1027
- return setTimeout.apply(void 0, Qe([e, t], qe(r)));
1028
- },
1029
- clearTimeout: function(e) {
1030
- return clearTimeout(e);
1031
- },
1032
- delegate: void 0
1033
- };
1034
- function yn(e) {
1035
- gn.setTimeout(function() {
1036
- throw e;
1037
- });
1038
- }
1039
- function _t() {
1040
- }
1041
- function ve(e) {
1042
- e();
1043
- }
1044
- var ir = function(e) {
1045
- ce(t, e);
1046
- function t(r) {
1047
- var n = e.call(this) || this;
1048
- return n.isStopped = !1, r ? (n.destination = r, nr(r) && r.add(n)) : n.destination = En, n;
1049
- }
1050
- return t.create = function(r, n, i) {
1051
- return new Ye(r, n, i);
1052
- }, t.prototype.next = function(r) {
1053
- this.isStopped || this._next(r);
1054
- }, t.prototype.error = function(r) {
1055
- this.isStopped || (this.isStopped = !0, this._error(r));
1056
- }, t.prototype.complete = function() {
1057
- this.isStopped || (this.isStopped = !0, this._complete());
1058
- }, t.prototype.unsubscribe = function() {
1059
- this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
1060
- }, t.prototype._next = function(r) {
1061
- this.destination.next(r);
1062
- }, t.prototype._error = function(r) {
1063
- try {
1064
- this.destination.error(r);
1065
- } finally {
1066
- this.unsubscribe();
1067
- }
1068
- }, t.prototype._complete = function() {
1069
- try {
1070
- this.destination.complete();
1071
- } finally {
1072
- this.unsubscribe();
1073
- }
1074
- }, t;
1075
- }(Ae), vn = function() {
1076
- function e(t) {
1077
- this.partialObserver = t;
1078
- }
1079
- return e.prototype.next = function(t) {
1080
- var r = this.partialObserver;
1081
- if (r.next)
1082
- try {
1083
- r.next(t);
1084
- } catch (n) {
1085
- me(n);
1086
- }
1087
- }, e.prototype.error = function(t) {
1088
- var r = this.partialObserver;
1089
- if (r.error)
1090
- try {
1091
- r.error(t);
1092
- } catch (n) {
1093
- me(n);
1094
- }
1095
- else
1096
- me(t);
1097
- }, e.prototype.complete = function() {
1098
- var t = this.partialObserver;
1099
- if (t.complete)
1100
- try {
1101
- t.complete();
1102
- } catch (r) {
1103
- me(r);
1104
- }
1105
- }, e;
1106
- }(), Ye = function(e) {
1107
- ce(t, e);
1108
- function t(r, n, i) {
1109
- var o = e.call(this) || this, s;
1110
- return $(r) || !r ? s = {
1111
- next: r != null ? r : void 0,
1112
- error: n != null ? n : void 0,
1113
- complete: i != null ? i : void 0
1114
- } : s = r, o.destination = new vn(s), o;
1115
- }
1116
- return t;
1117
- }(ir);
1118
- function me(e) {
1119
- yn(e);
1120
- }
1121
- function _n(e) {
1122
- throw e;
1123
- }
1124
- var En = {
1125
- closed: !0,
1126
- next: _t,
1127
- error: _n,
1128
- complete: _t
1129
- }, xn = function() {
1130
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
1131
- }();
1132
- function Sn(e) {
1133
- return e;
1134
- }
1135
- function Tn(e) {
1136
- return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
1137
- return e.reduce(function(n, i) {
1138
- return i(n);
1139
- }, r);
1140
- };
1141
- }
1142
- var Et = function() {
1143
- function e(t) {
1144
- t && (this._subscribe = t);
1145
- }
1146
- return e.prototype.lift = function(t) {
1147
- var r = new e();
1148
- return r.source = this, r.operator = t, r;
1149
- }, e.prototype.subscribe = function(t, r, n) {
1150
- var i = this, o = Hn(t) ? t : new Ye(t, r, n);
1151
- return ve(function() {
1152
- var s = i, a = s.operator, u = s.source;
1153
- o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
1154
- }), o;
1155
- }, e.prototype._trySubscribe = function(t) {
1156
- try {
1157
- return this._subscribe(t);
1158
- } catch (r) {
1159
- t.error(r);
1160
- }
1161
- }, e.prototype.forEach = function(t, r) {
1162
- var n = this;
1163
- return r = xt(r), new r(function(i, o) {
1164
- var s = new Ye({
1165
- next: function(a) {
1166
- try {
1167
- t(a);
1168
- } catch (u) {
1169
- o(u), s.unsubscribe();
1170
- }
1171
- },
1172
- error: o,
1173
- complete: i
1174
- });
1175
- n.subscribe(s);
1176
- });
1177
- }, e.prototype._subscribe = function(t) {
1178
- var r;
1179
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1180
- }, e.prototype[xn] = function() {
1181
- return this;
1182
- }, e.prototype.pipe = function() {
1183
- for (var t = [], r = 0; r < arguments.length; r++)
1184
- t[r] = arguments[r];
1185
- return Tn(t)(this);
1186
- }, e.prototype.toPromise = function(t) {
1187
- var r = this;
1188
- return t = xt(t), new t(function(n, i) {
1189
- var o;
1190
- r.subscribe(function(s) {
1191
- return o = s;
1192
- }, function(s) {
1193
- return i(s);
1194
- }, function() {
1195
- return n(o);
1196
- });
1197
- });
1198
- }, e.create = function(t) {
1199
- return new e(t);
1200
- }, e;
1201
- }();
1202
- function xt(e) {
1203
- var t;
1204
- return (t = e != null ? e : bn.Promise) !== null && t !== void 0 ? t : Promise;
1205
- }
1206
- function wn(e) {
1207
- return e && $(e.next) && $(e.error) && $(e.complete);
1208
- }
1209
- function Hn(e) {
1210
- return e && e instanceof ir || wn(e) && nr(e);
1211
- }
1212
- var Bn = tr(function(e) {
1213
- return function() {
1214
- e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1215
- };
1216
- }), or = function(e) {
1217
- ce(t, e);
1218
- function t() {
1219
- var r = e.call(this) || this;
1220
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1221
- }
1222
- return t.prototype.lift = function(r) {
1223
- var n = new St(this, this);
1224
- return n.operator = r, n;
1225
- }, t.prototype._throwIfClosed = function() {
1226
- if (this.closed)
1227
- throw new Bn();
1228
- }, t.prototype.next = function(r) {
1229
- var n = this;
1230
- ve(function() {
1231
- var i, o;
1232
- if (n._throwIfClosed(), !n.isStopped) {
1233
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
1234
- try {
1235
- for (var s = Ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
1236
- var u = a.value;
1237
- u.next(r);
1238
- }
1239
- } catch (h) {
1240
- i = { error: h };
1241
- } finally {
1242
- try {
1243
- a && !a.done && (o = s.return) && o.call(s);
1244
- } finally {
1245
- if (i)
1246
- throw i.error;
1247
- }
1248
- }
1249
- }
1250
- });
1251
- }, t.prototype.error = function(r) {
1252
- var n = this;
1253
- ve(function() {
1254
- if (n._throwIfClosed(), !n.isStopped) {
1255
- n.hasError = n.isStopped = !0, n.thrownError = r;
1256
- for (var i = n.observers; i.length; )
1257
- i.shift().error(r);
1258
- }
1259
- });
1260
- }, t.prototype.complete = function() {
1261
- var r = this;
1262
- ve(function() {
1263
- if (r._throwIfClosed(), !r.isStopped) {
1264
- r.isStopped = !0;
1265
- for (var n = r.observers; n.length; )
1266
- n.shift().complete();
1267
- }
1268
- });
1269
- }, t.prototype.unsubscribe = function() {
1270
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1271
- }, Object.defineProperty(t.prototype, "observed", {
1272
- get: function() {
1273
- var r;
1274
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1275
- },
1276
- enumerable: !1,
1277
- configurable: !0
1278
- }), t.prototype._trySubscribe = function(r) {
1279
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1280
- }, t.prototype._subscribe = function(r) {
1281
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1282
- }, t.prototype._innerSubscribe = function(r) {
1283
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1284
- return o || s ? rr : (this.currentObservers = null, a.push(r), new Ae(function() {
1285
- n.currentObservers = null, Je(a, r);
1286
- }));
1287
- }, t.prototype._checkFinalizedStatuses = function(r) {
1288
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1289
- i ? r.error(o) : s && r.complete();
1290
- }, t.prototype.asObservable = function() {
1291
- var r = new Et();
1292
- return r.source = this, r;
1293
- }, t.create = function(r, n) {
1294
- return new St(r, n);
1295
- }, t;
1296
- }(Et), St = function(e) {
1297
- ce(t, e);
1298
- function t(r, n) {
1299
- var i = e.call(this) || this;
1300
- return i.destination = r, i.source = n, i;
1301
- }
1302
- return t.prototype.next = function(r) {
1303
- var n, i;
1304
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1305
- }, t.prototype.error = function(r) {
1306
- var n, i;
1307
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1308
- }, t.prototype.complete = function() {
1309
- var r, n;
1310
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1311
- }, t.prototype._subscribe = function(r) {
1312
- var n, i;
1313
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : rr;
1314
- }, t;
1315
- }(or), sr = {
1316
- now: function() {
1317
- return (sr.delegate || Date).now();
1318
- },
1319
- delegate: void 0
1320
- }, An = function(e) {
1321
- ce(t, e);
1322
- function t(r, n, i) {
1323
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = sr);
1324
- var o = e.call(this) || this;
1325
- return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1326
- }
1327
- return t.prototype.next = function(r) {
1328
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
1329
- i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
1330
- }, t.prototype._subscribe = function(r) {
1331
- this._throwIfClosed(), this._trimBuffer();
1332
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
1333
- r.next(a[u]);
1334
- return this._checkFinalizedStatuses(r), n;
1335
- }, t.prototype._trimBuffer = function() {
1336
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1337
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1338
- for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
1339
- h = l;
1340
- h && o.splice(0, h + 1);
1341
- }
1342
- }, t;
1343
- }(or);
1344
- const Tt = [], wt = {}, Pn = (e, t = 0) => {
1345
- if (Tt.indexOf(e) == -1) {
1346
- const r = new An(t);
1347
- wt[e] = r, Tt.push(e);
1348
- }
1349
- return wt[e];
1350
- }, V = [];
1351
- function On(e, t) {
1352
- return {
1353
- subscribe: Pe(e, t).subscribe
1354
- };
1355
- }
1356
- function Pe(e, t = B) {
1357
- let r;
1358
- const n = /* @__PURE__ */ new Set();
1359
- function i(a) {
1360
- if (kt(e, a) && (e = a, r)) {
1361
- const u = !V.length;
1362
- for (const h of n)
1363
- h[1](), V.push(h, e);
1364
- if (u) {
1365
- for (let h = 0; h < V.length; h += 2)
1366
- V[h][0](V[h + 1]);
1367
- V.length = 0;
1368
- }
1369
- }
1370
- }
1371
- function o(a) {
1372
- i(a(e));
1373
- }
1374
- function s(a, u = B) {
1375
- const h = [a, u];
1376
- return n.add(h), n.size === 1 && (r = t(i, o) || B), a(e), () => {
1377
- n.delete(h), n.size === 0 && r && (r(), r = null);
1378
- };
1379
- }
1380
- return { set: i, update: o, subscribe: s };
1381
- }
1382
- function ee(e, t, r) {
1383
- const n = !Array.isArray(e), i = n ? [e] : e;
1384
- if (!i.every(Boolean))
1385
- throw new Error("derived() expects stores as input, got a falsy value");
1386
- const o = t.length < 2;
1387
- return On(r, (s, a) => {
1388
- let u = !1;
1389
- const h = [];
1390
- let l = 0, f = B;
1391
- const c = () => {
1392
- if (l)
1393
- return;
1394
- f();
1395
- const p = t(n ? h[0] : h, s, a);
1396
- o ? s(p) : f = he(p) ? p : B;
1397
- }, d = i.map(
1398
- (p, m) => Vt(
1399
- p,
1400
- (_) => {
1401
- h[m] = _, l &= ~(1 << m), u && c();
1402
- },
1403
- () => {
1404
- l |= 1 << m;
1405
- }
1406
- )
1407
- );
1408
- return u = !0, c(), function() {
1409
- F(d), f(), u = !1;
1410
- };
1411
- });
1412
- }
1413
- var ts = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1414
- function In(e) {
1415
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1416
- }
1417
- var Ln = function(t) {
1418
- return Nn(t) && !Mn(t);
1419
- };
1420
- function Nn(e) {
1421
- return !!e && typeof e == "object";
1422
- }
1423
- function Mn(e) {
1424
- var t = Object.prototype.toString.call(e);
1425
- return t === "[object RegExp]" || t === "[object Date]" || Rn(e);
1426
- }
1427
- var Cn = typeof Symbol == "function" && Symbol.for, $n = Cn ? Symbol.for("react.element") : 60103;
1428
- function Rn(e) {
1429
- return e.$$typeof === $n;
1430
- }
1431
- function Un(e) {
1432
- return Array.isArray(e) ? [] : {};
1433
- }
1434
- function ae(e, t) {
1435
- return t.clone !== !1 && t.isMergeableObject(e) ? q(Un(e), e, t) : e;
1436
- }
1437
- function Dn(e, t, r) {
1438
- return e.concat(t).map(function(n) {
1439
- return ae(n, r);
1440
- });
1441
- }
1442
- function Gn(e, t) {
1443
- if (!t.customMerge)
1444
- return q;
1445
- var r = t.customMerge(e);
1446
- return typeof r == "function" ? r : q;
1447
- }
1448
- function Fn(e) {
1449
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1450
- return Object.propertyIsEnumerable.call(e, t);
1451
- }) : [];
1452
- }
1453
- function Ht(e) {
1454
- return Object.keys(e).concat(Fn(e));
1455
- }
1456
- function ar(e, t) {
1457
- try {
1458
- return t in e;
1459
- } catch (r) {
1460
- return !1;
1461
- }
1462
- }
1463
- function jn(e, t) {
1464
- return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1465
- }
1466
- function kn(e, t, r) {
1467
- var n = {};
1468
- return r.isMergeableObject(e) && Ht(e).forEach(function(i) {
1469
- n[i] = ae(e[i], r);
1470
- }), Ht(t).forEach(function(i) {
1471
- jn(e, i) || (ar(e, i) && r.isMergeableObject(t[i]) ? n[i] = Gn(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
1472
- }), n;
1473
- }
1474
- function q(e, t, r) {
1475
- r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Ln, r.cloneUnlessOtherwiseSpecified = ae;
1476
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1477
- return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : ae(t, r);
1478
- }
1479
- q.all = function(t, r) {
1480
- if (!Array.isArray(t))
1481
- throw new Error("first argument should be an array");
1482
- return t.reduce(function(n, i) {
1483
- return q(n, i, r);
1484
- }, {});
1485
- };
1486
- var Vn = q, Xn = Vn;
1487
- const Wn = /* @__PURE__ */ In(Xn);
1488
- var Ke = function(e, t) {
1489
- return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1490
- r.__proto__ = n;
1491
- } || function(r, n) {
1492
- for (var i in n)
1493
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1494
- }, Ke(e, t);
1495
- };
1496
- function Oe(e, t) {
1497
- if (typeof t != "function" && t !== null)
1498
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1499
- Ke(e, t);
1500
- function r() {
1501
- this.constructor = e;
1502
- }
1503
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1504
- }
1505
- var M = function() {
1506
- return M = Object.assign || function(t) {
1507
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1508
- r = arguments[n];
1509
- for (var o in r)
1510
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1511
- }
1512
- return t;
1513
- }, M.apply(this, arguments);
1514
- };
1515
- function zn(e, t) {
1516
- var r = {};
1517
- for (var n in e)
1518
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1519
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1520
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1521
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1522
- return r;
1523
- }
1524
- function De(e, t, r) {
1525
- if (r || arguments.length === 2)
1526
- for (var n = 0, i = t.length, o; n < i; n++)
1527
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1528
- return e.concat(o || Array.prototype.slice.call(t));
1529
- }
1530
- function Ge(e, t) {
1531
- var r = t && t.cache ? t.cache : ei, n = t && t.serializer ? t.serializer : Yn, i = t && t.strategy ? t.strategy : Qn;
1532
- return i(e, {
1533
- cache: r,
1534
- serializer: n
1535
- });
1536
- }
1537
- function Zn(e) {
1538
- return e == null || typeof e == "number" || typeof e == "boolean";
1539
- }
1540
- function qn(e, t, r, n) {
1541
- var i = Zn(n) ? n : r(n), o = t.get(i);
1542
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1543
- }
1544
- function ur(e, t, r) {
1545
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1546
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1547
- }
1548
- function hr(e, t, r, n, i) {
1549
- return r.bind(t, e, n, i);
1550
- }
1551
- function Qn(e, t) {
1552
- var r = e.length === 1 ? qn : ur;
1553
- return hr(e, this, r, t.cache.create(), t.serializer);
1554
- }
1555
- function Jn(e, t) {
1556
- return hr(e, this, ur, t.cache.create(), t.serializer);
1557
- }
1558
- var Yn = function() {
1559
- return JSON.stringify(arguments);
1560
- }, Kn = (
1561
- /** @class */
1562
- function() {
1563
- function e() {
1564
- this.cache = /* @__PURE__ */ Object.create(null);
1565
- }
1566
- return e.prototype.get = function(t) {
1567
- return this.cache[t];
1568
- }, e.prototype.set = function(t, r) {
1569
- this.cache[t] = r;
1570
- }, e;
1571
- }()
1572
- ), ei = {
1573
- create: function() {
1574
- return new Kn();
1575
- }
1576
- }, Fe = {
1577
- variadic: Jn
1578
- }, we = function() {
1579
- return we = Object.assign || function(t) {
1580
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1581
- r = arguments[n];
1582
- for (var o in r)
1583
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1584
- }
1585
- return t;
1586
- }, we.apply(this, arguments);
1587
- };
1588
- var b;
1589
- (function(e) {
1590
- e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
1591
- })(b || (b = {}));
1592
- var v;
1593
- (function(e) {
1594
- e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1595
- })(v || (v = {}));
1596
- var Q;
1597
- (function(e) {
1598
- e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1599
- })(Q || (Q = {}));
1600
- function Bt(e) {
1601
- return e.type === v.literal;
1602
- }
1603
- function ti(e) {
1604
- return e.type === v.argument;
1605
- }
1606
- function lr(e) {
1607
- return e.type === v.number;
1608
- }
1609
- function cr(e) {
1610
- return e.type === v.date;
1611
- }
1612
- function fr(e) {
1613
- return e.type === v.time;
1614
- }
1615
- function pr(e) {
1616
- return e.type === v.select;
1617
- }
1618
- function dr(e) {
1619
- return e.type === v.plural;
1620
- }
1621
- function ri(e) {
1622
- return e.type === v.pound;
1623
- }
1624
- function mr(e) {
1625
- return e.type === v.tag;
1626
- }
1627
- function br(e) {
1628
- return !!(e && typeof e == "object" && e.type === Q.number);
1629
- }
1630
- function et(e) {
1631
- return !!(e && typeof e == "object" && e.type === Q.dateTime);
1632
- }
1633
- var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1634
- function ii(e) {
1635
- var t = {};
1636
- return e.replace(ni, function(r) {
1637
- var n = r.length;
1638
- switch (r[0]) {
1639
- case "G":
1640
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1641
- break;
1642
- case "y":
1643
- t.year = n === 2 ? "2-digit" : "numeric";
1644
- break;
1645
- case "Y":
1646
- case "u":
1647
- case "U":
1648
- case "r":
1649
- throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1650
- case "q":
1651
- case "Q":
1652
- throw new RangeError("`q/Q` (quarter) patterns are not supported");
1653
- case "M":
1654
- case "L":
1655
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1656
- break;
1657
- case "w":
1658
- case "W":
1659
- throw new RangeError("`w/W` (week) patterns are not supported");
1660
- case "d":
1661
- t.day = ["numeric", "2-digit"][n - 1];
1662
- break;
1663
- case "D":
1664
- case "F":
1665
- case "g":
1666
- throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1667
- case "E":
1668
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1669
- break;
1670
- case "e":
1671
- if (n < 4)
1672
- throw new RangeError("`e..eee` (weekday) patterns are not supported");
1673
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1674
- break;
1675
- case "c":
1676
- if (n < 4)
1677
- throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1678
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1679
- break;
1680
- case "a":
1681
- t.hour12 = !0;
1682
- break;
1683
- case "b":
1684
- case "B":
1685
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1686
- case "h":
1687
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1688
- break;
1689
- case "H":
1690
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1691
- break;
1692
- case "K":
1693
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1694
- break;
1695
- case "k":
1696
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1697
- break;
1698
- case "j":
1699
- case "J":
1700
- case "C":
1701
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1702
- case "m":
1703
- t.minute = ["numeric", "2-digit"][n - 1];
1704
- break;
1705
- case "s":
1706
- t.second = ["numeric", "2-digit"][n - 1];
1707
- break;
1708
- case "S":
1709
- case "A":
1710
- throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1711
- case "z":
1712
- t.timeZoneName = n < 4 ? "short" : "long";
1713
- break;
1714
- case "Z":
1715
- case "O":
1716
- case "v":
1717
- case "V":
1718
- case "X":
1719
- case "x":
1720
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1721
- }
1722
- return "";
1723
- }), t;
1724
- }
1725
- var E = function() {
1726
- return E = Object.assign || function(t) {
1727
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1728
- r = arguments[n];
1729
- for (var o in r)
1730
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1731
- }
1732
- return t;
1733
- }, E.apply(this, arguments);
1734
- };
1735
- var oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1736
- function si(e) {
1737
- if (e.length === 0)
1738
- throw new Error("Number skeleton cannot be empty");
1739
- for (var t = e.split(oi).filter(function(c) {
1740
- return c.length > 0;
1741
- }), r = [], n = 0, i = t; n < i.length; n++) {
1742
- var o = i[n], s = o.split("/");
1743
- if (s.length === 0)
1744
- throw new Error("Invalid number skeleton");
1745
- for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
1746
- var f = l[h];
1747
- if (f.length === 0)
1748
- throw new Error("Invalid number skeleton");
1749
- }
1750
- r.push({ stem: a, options: u });
1751
- }
1752
- return r;
1753
- }
1754
- function ai(e) {
1755
- return e.replace(/^(.*?)-/, "");
1756
- }
1757
- var At = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
1758
- function Pt(e) {
1759
- var t = {};
1760
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
1761
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1762
- }), t;
1763
- }
1764
- function _r(e) {
1765
- switch (e) {
1766
- case "sign-auto":
1767
- return {
1768
- signDisplay: "auto"
1769
- };
1770
- case "sign-accounting":
1771
- case "()":
1772
- return {
1773
- currencySign: "accounting"
1774
- };
1775
- case "sign-always":
1776
- case "+!":
1777
- return {
1778
- signDisplay: "always"
1779
- };
1780
- case "sign-accounting-always":
1781
- case "()!":
1782
- return {
1783
- signDisplay: "always",
1784
- currencySign: "accounting"
1785
- };
1786
- case "sign-except-zero":
1787
- case "+?":
1788
- return {
1789
- signDisplay: "exceptZero"
1790
- };
1791
- case "sign-accounting-except-zero":
1792
- case "()?":
1793
- return {
1794
- signDisplay: "exceptZero",
1795
- currencySign: "accounting"
1796
- };
1797
- case "sign-never":
1798
- case "+_":
1799
- return {
1800
- signDisplay: "never"
1801
- };
1802
- }
1803
- }
1804
- function hi(e) {
1805
- var t;
1806
- if (e[0] === "E" && e[1] === "E" ? (t = {
1807
- notation: "engineering"
1808
- }, e = e.slice(2)) : e[0] === "E" && (t = {
1809
- notation: "scientific"
1810
- }, e = e.slice(1)), t) {
1811
- var r = e.slice(0, 2);
1812
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
1813
- throw new Error("Malformed concise eng/scientific notation");
1814
- t.minimumIntegerDigits = e.length;
1815
- }
1816
- return t;
1817
- }
1818
- function Ot(e) {
1819
- var t = {}, r = _r(e);
1820
- return r || t;
1821
- }
1822
- function li(e) {
1823
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1824
- var i = n[r];
1825
- switch (i.stem) {
1826
- case "percent":
1827
- case "%":
1828
- t.style = "percent";
1829
- continue;
1830
- case "%x100":
1831
- t.style = "percent", t.scale = 100;
1832
- continue;
1833
- case "currency":
1834
- t.style = "currency", t.currency = i.options[0];
1835
- continue;
1836
- case "group-off":
1837
- case ",_":
1838
- t.useGrouping = !1;
1839
- continue;
1840
- case "precision-integer":
1841
- case ".":
1842
- t.maximumFractionDigits = 0;
1843
- continue;
1844
- case "measure-unit":
1845
- case "unit":
1846
- t.style = "unit", t.unit = ai(i.options[0]);
1847
- continue;
1848
- case "compact-short":
1849
- case "K":
1850
- t.notation = "compact", t.compactDisplay = "short";
1851
- continue;
1852
- case "compact-long":
1853
- case "KK":
1854
- t.notation = "compact", t.compactDisplay = "long";
1855
- continue;
1856
- case "scientific":
1857
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
1858
- return E(E({}, u), Ot(h));
1859
- }, {}));
1860
- continue;
1861
- case "engineering":
1862
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
1863
- return E(E({}, u), Ot(h));
1864
- }, {}));
1865
- continue;
1866
- case "notation-simple":
1867
- t.notation = "standard";
1868
- continue;
1869
- case "unit-width-narrow":
1870
- t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1871
- continue;
1872
- case "unit-width-short":
1873
- t.currencyDisplay = "code", t.unitDisplay = "short";
1874
- continue;
1875
- case "unit-width-full-name":
1876
- t.currencyDisplay = "name", t.unitDisplay = "long";
1877
- continue;
1878
- case "unit-width-iso-code":
1879
- t.currencyDisplay = "symbol";
1880
- continue;
1881
- case "scale":
1882
- t.scale = parseFloat(i.options[0]);
1883
- continue;
1884
- case "rounding-mode-floor":
1885
- t.roundingMode = "floor";
1886
- continue;
1887
- case "rounding-mode-ceiling":
1888
- t.roundingMode = "ceil";
1889
- continue;
1890
- case "rounding-mode-down":
1891
- t.roundingMode = "trunc";
1892
- continue;
1893
- case "rounding-mode-up":
1894
- t.roundingMode = "expand";
1895
- continue;
1896
- case "rounding-mode-half-even":
1897
- t.roundingMode = "halfEven";
1898
- continue;
1899
- case "rounding-mode-half-down":
1900
- t.roundingMode = "halfTrunc";
1901
- continue;
1902
- case "rounding-mode-half-up":
1903
- t.roundingMode = "halfExpand";
1904
- continue;
1905
- case "integer-width":
1906
- if (i.options.length > 1)
1907
- throw new RangeError("integer-width stems only accept a single optional option");
1908
- i.options[0].replace(ui, function(u, h, l, f, c, d) {
1909
- if (h)
1910
- t.minimumIntegerDigits = l.length;
1911
- else {
1912
- if (f && c)
1913
- throw new Error("We currently do not support maximum integer digits");
1914
- if (d)
1915
- throw new Error("We currently do not support exact integer digits");
1916
- }
1917
- return "";
1918
- });
1919
- continue;
1920
- }
1921
- if (vr.test(i.stem)) {
1922
- t.minimumIntegerDigits = i.stem.length;
1923
- continue;
1924
- }
1925
- if (At.test(i.stem)) {
1926
- if (i.options.length > 1)
1927
- throw new RangeError("Fraction-precision stems only accept a single optional option");
1928
- i.stem.replace(At, function(u, h, l, f, c, d) {
1929
- return l === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1930
- });
1931
- var o = i.options[0];
1932
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Pt(o)));
1933
- continue;
1934
- }
1935
- if (yr.test(i.stem)) {
1936
- t = E(E({}, t), Pt(i.stem));
1937
- continue;
1938
- }
1939
- var s = _r(i.stem);
1940
- s && (t = E(E({}, t), s));
1941
- var a = hi(i.stem);
1942
- a && (t = E(E({}, t), a));
1943
- }
1944
- return t;
1945
- }
1946
- var be = {
1947
- "001": [
1948
- "H",
1949
- "h"
1950
- ],
1951
- 419: [
1952
- "h",
1953
- "H",
1954
- "hB",
1955
- "hb"
1956
- ],
1957
- AC: [
1958
- "H",
1959
- "h",
1960
- "hb",
1961
- "hB"
1962
- ],
1963
- AD: [
1964
- "H",
1965
- "hB"
1966
- ],
1967
- AE: [
1968
- "h",
1969
- "hB",
1970
- "hb",
1971
- "H"
1972
- ],
1973
- AF: [
1974
- "H",
1975
- "hb",
1976
- "hB",
1977
- "h"
1978
- ],
1979
- AG: [
1980
- "h",
1981
- "hb",
1982
- "H",
1983
- "hB"
1984
- ],
1985
- AI: [
1986
- "H",
1987
- "h",
1988
- "hb",
1989
- "hB"
1990
- ],
1991
- AL: [
1992
- "h",
1993
- "H",
1994
- "hB"
1995
- ],
1996
- AM: [
1997
- "H",
1998
- "hB"
1999
- ],
2000
- AO: [
2001
- "H",
2002
- "hB"
2003
- ],
2004
- AR: [
2005
- "h",
2006
- "H",
2007
- "hB",
2008
- "hb"
2009
- ],
2010
- AS: [
2011
- "h",
2012
- "H"
2013
- ],
2014
- AT: [
2015
- "H",
2016
- "hB"
2017
- ],
2018
- AU: [
2019
- "h",
2020
- "hb",
2021
- "H",
2022
- "hB"
2023
- ],
2024
- AW: [
2025
- "H",
2026
- "hB"
2027
- ],
2028
- AX: [
2029
- "H"
2030
- ],
2031
- AZ: [
2032
- "H",
2033
- "hB",
2034
- "h"
2035
- ],
2036
- BA: [
2037
- "H",
2038
- "hB",
2039
- "h"
2040
- ],
2041
- BB: [
2042
- "h",
2043
- "hb",
2044
- "H",
2045
- "hB"
2046
- ],
2047
- BD: [
2048
- "h",
2049
- "hB",
2050
- "H"
2051
- ],
2052
- BE: [
2053
- "H",
2054
- "hB"
2055
- ],
2056
- BF: [
2057
- "H",
2058
- "hB"
2059
- ],
2060
- BG: [
2061
- "H",
2062
- "hB",
2063
- "h"
2064
- ],
2065
- BH: [
2066
- "h",
2067
- "hB",
2068
- "hb",
2069
- "H"
2070
- ],
2071
- BI: [
2072
- "H",
2073
- "h"
2074
- ],
2075
- BJ: [
2076
- "H",
2077
- "hB"
2078
- ],
2079
- BL: [
2080
- "H",
2081
- "hB"
2082
- ],
2083
- BM: [
2084
- "h",
2085
- "hb",
2086
- "H",
2087
- "hB"
2088
- ],
2089
- BN: [
2090
- "hb",
2091
- "hB",
2092
- "h",
2093
- "H"
2094
- ],
2095
- BO: [
2096
- "h",
2097
- "H",
2098
- "hB",
2099
- "hb"
2100
- ],
2101
- BQ: [
2102
- "H"
2103
- ],
2104
- BR: [
2105
- "H",
2106
- "hB"
2107
- ],
2108
- BS: [
2109
- "h",
2110
- "hb",
2111
- "H",
2112
- "hB"
2113
- ],
2114
- BT: [
2115
- "h",
2116
- "H"
2117
- ],
2118
- BW: [
2119
- "H",
2120
- "h",
2121
- "hb",
2122
- "hB"
2123
- ],
2124
- BY: [
2125
- "H",
2126
- "h"
2127
- ],
2128
- BZ: [
2129
- "H",
2130
- "h",
2131
- "hb",
2132
- "hB"
2133
- ],
2134
- CA: [
2135
- "h",
2136
- "hb",
2137
- "H",
2138
- "hB"
2139
- ],
2140
- CC: [
2141
- "H",
2142
- "h",
2143
- "hb",
2144
- "hB"
2145
- ],
2146
- CD: [
2147
- "hB",
2148
- "H"
2149
- ],
2150
- CF: [
2151
- "H",
2152
- "h",
2153
- "hB"
2154
- ],
2155
- CG: [
2156
- "H",
2157
- "hB"
2158
- ],
2159
- CH: [
2160
- "H",
2161
- "hB",
2162
- "h"
2163
- ],
2164
- CI: [
2165
- "H",
2166
- "hB"
2167
- ],
2168
- CK: [
2169
- "H",
2170
- "h",
2171
- "hb",
2172
- "hB"
2173
- ],
2174
- CL: [
2175
- "h",
2176
- "H",
2177
- "hB",
2178
- "hb"
2179
- ],
2180
- CM: [
2181
- "H",
2182
- "h",
2183
- "hB"
2184
- ],
2185
- CN: [
2186
- "H",
2187
- "hB",
2188
- "hb",
2189
- "h"
2190
- ],
2191
- CO: [
2192
- "h",
2193
- "H",
2194
- "hB",
2195
- "hb"
2196
- ],
2197
- CP: [
2198
- "H"
2199
- ],
2200
- CR: [
2201
- "h",
2202
- "H",
2203
- "hB",
2204
- "hb"
2205
- ],
2206
- CU: [
2207
- "h",
2208
- "H",
2209
- "hB",
2210
- "hb"
2211
- ],
2212
- CV: [
2213
- "H",
2214
- "hB"
2215
- ],
2216
- CW: [
2217
- "H",
2218
- "hB"
2219
- ],
2220
- CX: [
2221
- "H",
2222
- "h",
2223
- "hb",
2224
- "hB"
2225
- ],
2226
- CY: [
2227
- "h",
2228
- "H",
2229
- "hb",
2230
- "hB"
2231
- ],
2232
- CZ: [
2233
- "H"
2234
- ],
2235
- DE: [
2236
- "H",
2237
- "hB"
2238
- ],
2239
- DG: [
2240
- "H",
2241
- "h",
2242
- "hb",
2243
- "hB"
2244
- ],
2245
- DJ: [
2246
- "h",
2247
- "H"
2248
- ],
2249
- DK: [
2250
- "H"
2251
- ],
2252
- DM: [
2253
- "h",
2254
- "hb",
2255
- "H",
2256
- "hB"
2257
- ],
2258
- DO: [
2259
- "h",
2260
- "H",
2261
- "hB",
2262
- "hb"
2263
- ],
2264
- DZ: [
2265
- "h",
2266
- "hB",
2267
- "hb",
2268
- "H"
2269
- ],
2270
- EA: [
2271
- "H",
2272
- "h",
2273
- "hB",
2274
- "hb"
2275
- ],
2276
- EC: [
2277
- "h",
2278
- "H",
2279
- "hB",
2280
- "hb"
2281
- ],
2282
- EE: [
2283
- "H",
2284
- "hB"
2285
- ],
2286
- EG: [
2287
- "h",
2288
- "hB",
2289
- "hb",
2290
- "H"
2291
- ],
2292
- EH: [
2293
- "h",
2294
- "hB",
2295
- "hb",
2296
- "H"
2297
- ],
2298
- ER: [
2299
- "h",
2300
- "H"
2301
- ],
2302
- ES: [
2303
- "H",
2304
- "hB",
2305
- "h",
2306
- "hb"
2307
- ],
2308
- ET: [
2309
- "hB",
2310
- "hb",
2311
- "h",
2312
- "H"
2313
- ],
2314
- FI: [
2315
- "H"
2316
- ],
2317
- FJ: [
2318
- "h",
2319
- "hb",
2320
- "H",
2321
- "hB"
2322
- ],
2323
- FK: [
2324
- "H",
2325
- "h",
2326
- "hb",
2327
- "hB"
2328
- ],
2329
- FM: [
2330
- "h",
2331
- "hb",
2332
- "H",
2333
- "hB"
2334
- ],
2335
- FO: [
2336
- "H",
2337
- "h"
2338
- ],
2339
- FR: [
2340
- "H",
2341
- "hB"
2342
- ],
2343
- GA: [
2344
- "H",
2345
- "hB"
2346
- ],
2347
- GB: [
2348
- "H",
2349
- "h",
2350
- "hb",
2351
- "hB"
2352
- ],
2353
- GD: [
2354
- "h",
2355
- "hb",
2356
- "H",
2357
- "hB"
2358
- ],
2359
- GE: [
2360
- "H",
2361
- "hB",
2362
- "h"
2363
- ],
2364
- GF: [
2365
- "H",
2366
- "hB"
2367
- ],
2368
- GG: [
2369
- "H",
2370
- "h",
2371
- "hb",
2372
- "hB"
2373
- ],
2374
- GH: [
2375
- "h",
2376
- "H"
2377
- ],
2378
- GI: [
2379
- "H",
2380
- "h",
2381
- "hb",
2382
- "hB"
2383
- ],
2384
- GL: [
2385
- "H",
2386
- "h"
2387
- ],
2388
- GM: [
2389
- "h",
2390
- "hb",
2391
- "H",
2392
- "hB"
2393
- ],
2394
- GN: [
2395
- "H",
2396
- "hB"
2397
- ],
2398
- GP: [
2399
- "H",
2400
- "hB"
2401
- ],
2402
- GQ: [
2403
- "H",
2404
- "hB",
2405
- "h",
2406
- "hb"
2407
- ],
2408
- GR: [
2409
- "h",
2410
- "H",
2411
- "hb",
2412
- "hB"
2413
- ],
2414
- GT: [
2415
- "h",
2416
- "H",
2417
- "hB",
2418
- "hb"
2419
- ],
2420
- GU: [
2421
- "h",
2422
- "hb",
2423
- "H",
2424
- "hB"
2425
- ],
2426
- GW: [
2427
- "H",
2428
- "hB"
2429
- ],
2430
- GY: [
2431
- "h",
2432
- "hb",
2433
- "H",
2434
- "hB"
2435
- ],
2436
- HK: [
2437
- "h",
2438
- "hB",
2439
- "hb",
2440
- "H"
2441
- ],
2442
- HN: [
2443
- "h",
2444
- "H",
2445
- "hB",
2446
- "hb"
2447
- ],
2448
- HR: [
2449
- "H",
2450
- "hB"
2451
- ],
2452
- HU: [
2453
- "H",
2454
- "h"
2455
- ],
2456
- IC: [
2457
- "H",
2458
- "h",
2459
- "hB",
2460
- "hb"
2461
- ],
2462
- ID: [
2463
- "H"
2464
- ],
2465
- IE: [
2466
- "H",
2467
- "h",
2468
- "hb",
2469
- "hB"
2470
- ],
2471
- IL: [
2472
- "H",
2473
- "hB"
2474
- ],
2475
- IM: [
2476
- "H",
2477
- "h",
2478
- "hb",
2479
- "hB"
2480
- ],
2481
- IN: [
2482
- "h",
2483
- "H"
2484
- ],
2485
- IO: [
2486
- "H",
2487
- "h",
2488
- "hb",
2489
- "hB"
2490
- ],
2491
- IQ: [
2492
- "h",
2493
- "hB",
2494
- "hb",
2495
- "H"
2496
- ],
2497
- IR: [
2498
- "hB",
2499
- "H"
2500
- ],
2501
- IS: [
2502
- "H"
2503
- ],
2504
- IT: [
2505
- "H",
2506
- "hB"
2507
- ],
2508
- JE: [
2509
- "H",
2510
- "h",
2511
- "hb",
2512
- "hB"
2513
- ],
2514
- JM: [
2515
- "h",
2516
- "hb",
2517
- "H",
2518
- "hB"
2519
- ],
2520
- JO: [
2521
- "h",
2522
- "hB",
2523
- "hb",
2524
- "H"
2525
- ],
2526
- JP: [
2527
- "H",
2528
- "K",
2529
- "h"
2530
- ],
2531
- KE: [
2532
- "hB",
2533
- "hb",
2534
- "H",
2535
- "h"
2536
- ],
2537
- KG: [
2538
- "H",
2539
- "h",
2540
- "hB",
2541
- "hb"
2542
- ],
2543
- KH: [
2544
- "hB",
2545
- "h",
2546
- "H",
2547
- "hb"
2548
- ],
2549
- KI: [
2550
- "h",
2551
- "hb",
2552
- "H",
2553
- "hB"
2554
- ],
2555
- KM: [
2556
- "H",
2557
- "h",
2558
- "hB",
2559
- "hb"
2560
- ],
2561
- KN: [
2562
- "h",
2563
- "hb",
2564
- "H",
2565
- "hB"
2566
- ],
2567
- KP: [
2568
- "h",
2569
- "H",
2570
- "hB",
2571
- "hb"
2572
- ],
2573
- KR: [
2574
- "h",
2575
- "H",
2576
- "hB",
2577
- "hb"
2578
- ],
2579
- KW: [
2580
- "h",
2581
- "hB",
2582
- "hb",
2583
- "H"
2584
- ],
2585
- KY: [
2586
- "h",
2587
- "hb",
2588
- "H",
2589
- "hB"
2590
- ],
2591
- KZ: [
2592
- "H",
2593
- "hB"
2594
- ],
2595
- LA: [
2596
- "H",
2597
- "hb",
2598
- "hB",
2599
- "h"
2600
- ],
2601
- LB: [
2602
- "h",
2603
- "hB",
2604
- "hb",
2605
- "H"
2606
- ],
2607
- LC: [
2608
- "h",
2609
- "hb",
2610
- "H",
2611
- "hB"
2612
- ],
2613
- LI: [
2614
- "H",
2615
- "hB",
2616
- "h"
2617
- ],
2618
- LK: [
2619
- "H",
2620
- "h",
2621
- "hB",
2622
- "hb"
2623
- ],
2624
- LR: [
2625
- "h",
2626
- "hb",
2627
- "H",
2628
- "hB"
2629
- ],
2630
- LS: [
2631
- "h",
2632
- "H"
2633
- ],
2634
- LT: [
2635
- "H",
2636
- "h",
2637
- "hb",
2638
- "hB"
2639
- ],
2640
- LU: [
2641
- "H",
2642
- "h",
2643
- "hB"
2644
- ],
2645
- LV: [
2646
- "H",
2647
- "hB",
2648
- "hb",
2649
- "h"
2650
- ],
2651
- LY: [
2652
- "h",
2653
- "hB",
2654
- "hb",
2655
- "H"
2656
- ],
2657
- MA: [
2658
- "H",
2659
- "h",
2660
- "hB",
2661
- "hb"
2662
- ],
2663
- MC: [
2664
- "H",
2665
- "hB"
2666
- ],
2667
- MD: [
2668
- "H",
2669
- "hB"
2670
- ],
2671
- ME: [
2672
- "H",
2673
- "hB",
2674
- "h"
2675
- ],
2676
- MF: [
2677
- "H",
2678
- "hB"
2679
- ],
2680
- MG: [
2681
- "H",
2682
- "h"
2683
- ],
2684
- MH: [
2685
- "h",
2686
- "hb",
2687
- "H",
2688
- "hB"
2689
- ],
2690
- MK: [
2691
- "H",
2692
- "h",
2693
- "hb",
2694
- "hB"
2695
- ],
2696
- ML: [
2697
- "H"
2698
- ],
2699
- MM: [
2700
- "hB",
2701
- "hb",
2702
- "H",
2703
- "h"
2704
- ],
2705
- MN: [
2706
- "H",
2707
- "h",
2708
- "hb",
2709
- "hB"
2710
- ],
2711
- MO: [
2712
- "h",
2713
- "hB",
2714
- "hb",
2715
- "H"
2716
- ],
2717
- MP: [
2718
- "h",
2719
- "hb",
2720
- "H",
2721
- "hB"
2722
- ],
2723
- MQ: [
2724
- "H",
2725
- "hB"
2726
- ],
2727
- MR: [
2728
- "h",
2729
- "hB",
2730
- "hb",
2731
- "H"
2732
- ],
2733
- MS: [
2734
- "H",
2735
- "h",
2736
- "hb",
2737
- "hB"
2738
- ],
2739
- MT: [
2740
- "H",
2741
- "h"
2742
- ],
2743
- MU: [
2744
- "H",
2745
- "h"
2746
- ],
2747
- MV: [
2748
- "H",
2749
- "h"
2750
- ],
2751
- MW: [
2752
- "h",
2753
- "hb",
2754
- "H",
2755
- "hB"
2756
- ],
2757
- MX: [
2758
- "h",
2759
- "H",
2760
- "hB",
2761
- "hb"
2762
- ],
2763
- MY: [
2764
- "hb",
2765
- "hB",
2766
- "h",
2767
- "H"
2768
- ],
2769
- MZ: [
2770
- "H",
2771
- "hB"
2772
- ],
2773
- NA: [
2774
- "h",
2775
- "H",
2776
- "hB",
2777
- "hb"
2778
- ],
2779
- NC: [
2780
- "H",
2781
- "hB"
2782
- ],
2783
- NE: [
2784
- "H"
2785
- ],
2786
- NF: [
2787
- "H",
2788
- "h",
2789
- "hb",
2790
- "hB"
2791
- ],
2792
- NG: [
2793
- "H",
2794
- "h",
2795
- "hb",
2796
- "hB"
2797
- ],
2798
- NI: [
2799
- "h",
2800
- "H",
2801
- "hB",
2802
- "hb"
2803
- ],
2804
- NL: [
2805
- "H",
2806
- "hB"
2807
- ],
2808
- NO: [
2809
- "H",
2810
- "h"
2811
- ],
2812
- NP: [
2813
- "H",
2814
- "h",
2815
- "hB"
2816
- ],
2817
- NR: [
2818
- "H",
2819
- "h",
2820
- "hb",
2821
- "hB"
2822
- ],
2823
- NU: [
2824
- "H",
2825
- "h",
2826
- "hb",
2827
- "hB"
2828
- ],
2829
- NZ: [
2830
- "h",
2831
- "hb",
2832
- "H",
2833
- "hB"
2834
- ],
2835
- OM: [
2836
- "h",
2837
- "hB",
2838
- "hb",
2839
- "H"
2840
- ],
2841
- PA: [
2842
- "h",
2843
- "H",
2844
- "hB",
2845
- "hb"
2846
- ],
2847
- PE: [
2848
- "h",
2849
- "H",
2850
- "hB",
2851
- "hb"
2852
- ],
2853
- PF: [
2854
- "H",
2855
- "h",
2856
- "hB"
2857
- ],
2858
- PG: [
2859
- "h",
2860
- "H"
2861
- ],
2862
- PH: [
2863
- "h",
2864
- "hB",
2865
- "hb",
2866
- "H"
2867
- ],
2868
- PK: [
2869
- "h",
2870
- "hB",
2871
- "H"
2872
- ],
2873
- PL: [
2874
- "H",
2875
- "h"
2876
- ],
2877
- PM: [
2878
- "H",
2879
- "hB"
2880
- ],
2881
- PN: [
2882
- "H",
2883
- "h",
2884
- "hb",
2885
- "hB"
2886
- ],
2887
- PR: [
2888
- "h",
2889
- "H",
2890
- "hB",
2891
- "hb"
2892
- ],
2893
- PS: [
2894
- "h",
2895
- "hB",
2896
- "hb",
2897
- "H"
2898
- ],
2899
- PT: [
2900
- "H",
2901
- "hB"
2902
- ],
2903
- PW: [
2904
- "h",
2905
- "H"
2906
- ],
2907
- PY: [
2908
- "h",
2909
- "H",
2910
- "hB",
2911
- "hb"
2912
- ],
2913
- QA: [
2914
- "h",
2915
- "hB",
2916
- "hb",
2917
- "H"
2918
- ],
2919
- RE: [
2920
- "H",
2921
- "hB"
2922
- ],
2923
- RO: [
2924
- "H",
2925
- "hB"
2926
- ],
2927
- RS: [
2928
- "H",
2929
- "hB",
2930
- "h"
2931
- ],
2932
- RU: [
2933
- "H"
2934
- ],
2935
- RW: [
2936
- "H",
2937
- "h"
2938
- ],
2939
- SA: [
2940
- "h",
2941
- "hB",
2942
- "hb",
2943
- "H"
2944
- ],
2945
- SB: [
2946
- "h",
2947
- "hb",
2948
- "H",
2949
- "hB"
2950
- ],
2951
- SC: [
2952
- "H",
2953
- "h",
2954
- "hB"
2955
- ],
2956
- SD: [
2957
- "h",
2958
- "hB",
2959
- "hb",
2960
- "H"
2961
- ],
2962
- SE: [
2963
- "H"
2964
- ],
2965
- SG: [
2966
- "h",
2967
- "hb",
2968
- "H",
2969
- "hB"
2970
- ],
2971
- SH: [
2972
- "H",
2973
- "h",
2974
- "hb",
2975
- "hB"
2976
- ],
2977
- SI: [
2978
- "H",
2979
- "hB"
2980
- ],
2981
- SJ: [
2982
- "H"
2983
- ],
2984
- SK: [
2985
- "H"
2986
- ],
2987
- SL: [
2988
- "h",
2989
- "hb",
2990
- "H",
2991
- "hB"
2992
- ],
2993
- SM: [
2994
- "H",
2995
- "h",
2996
- "hB"
2997
- ],
2998
- SN: [
2999
- "H",
3000
- "h",
3001
- "hB"
3002
- ],
3003
- SO: [
3004
- "h",
3005
- "H"
3006
- ],
3007
- SR: [
3008
- "H",
3009
- "hB"
3010
- ],
3011
- SS: [
3012
- "h",
3013
- "hb",
3014
- "H",
3015
- "hB"
3016
- ],
3017
- ST: [
3018
- "H",
3019
- "hB"
3020
- ],
3021
- SV: [
3022
- "h",
3023
- "H",
3024
- "hB",
3025
- "hb"
3026
- ],
3027
- SX: [
3028
- "H",
3029
- "h",
3030
- "hb",
3031
- "hB"
3032
- ],
3033
- SY: [
3034
- "h",
3035
- "hB",
3036
- "hb",
3037
- "H"
3038
- ],
3039
- SZ: [
3040
- "h",
3041
- "hb",
3042
- "H",
3043
- "hB"
3044
- ],
3045
- TA: [
3046
- "H",
3047
- "h",
3048
- "hb",
3049
- "hB"
3050
- ],
3051
- TC: [
3052
- "h",
3053
- "hb",
3054
- "H",
3055
- "hB"
3056
- ],
3057
- TD: [
3058
- "h",
3059
- "H",
3060
- "hB"
3061
- ],
3062
- TF: [
3063
- "H",
3064
- "h",
3065
- "hB"
3066
- ],
3067
- TG: [
3068
- "H",
3069
- "hB"
3070
- ],
3071
- TH: [
3072
- "H",
3073
- "h"
3074
- ],
3075
- TJ: [
3076
- "H",
3077
- "h"
3078
- ],
3079
- TL: [
3080
- "H",
3081
- "hB",
3082
- "hb",
3083
- "h"
3084
- ],
3085
- TM: [
3086
- "H",
3087
- "h"
3088
- ],
3089
- TN: [
3090
- "h",
3091
- "hB",
3092
- "hb",
3093
- "H"
3094
- ],
3095
- TO: [
3096
- "h",
3097
- "H"
3098
- ],
3099
- TR: [
3100
- "H",
3101
- "hB"
3102
- ],
3103
- TT: [
3104
- "h",
3105
- "hb",
3106
- "H",
3107
- "hB"
3108
- ],
3109
- TW: [
3110
- "hB",
3111
- "hb",
3112
- "h",
3113
- "H"
3114
- ],
3115
- TZ: [
3116
- "hB",
3117
- "hb",
3118
- "H",
3119
- "h"
3120
- ],
3121
- UA: [
3122
- "H",
3123
- "hB",
3124
- "h"
3125
- ],
3126
- UG: [
3127
- "hB",
3128
- "hb",
3129
- "H",
3130
- "h"
3131
- ],
3132
- UM: [
3133
- "h",
3134
- "hb",
3135
- "H",
3136
- "hB"
3137
- ],
3138
- US: [
3139
- "h",
3140
- "hb",
3141
- "H",
3142
- "hB"
3143
- ],
3144
- UY: [
3145
- "h",
3146
- "H",
3147
- "hB",
3148
- "hb"
3149
- ],
3150
- UZ: [
3151
- "H",
3152
- "hB",
3153
- "h"
3154
- ],
3155
- VA: [
3156
- "H",
3157
- "h",
3158
- "hB"
3159
- ],
3160
- VC: [
3161
- "h",
3162
- "hb",
3163
- "H",
3164
- "hB"
3165
- ],
3166
- VE: [
3167
- "h",
3168
- "H",
3169
- "hB",
3170
- "hb"
3171
- ],
3172
- VG: [
3173
- "h",
3174
- "hb",
3175
- "H",
3176
- "hB"
3177
- ],
3178
- VI: [
3179
- "h",
3180
- "hb",
3181
- "H",
3182
- "hB"
3183
- ],
3184
- VN: [
3185
- "H",
3186
- "h"
3187
- ],
3188
- VU: [
3189
- "h",
3190
- "H"
3191
- ],
3192
- WF: [
3193
- "H",
3194
- "hB"
3195
- ],
3196
- WS: [
3197
- "h",
3198
- "H"
3199
- ],
3200
- XK: [
3201
- "H",
3202
- "hB",
3203
- "h"
3204
- ],
3205
- YE: [
3206
- "h",
3207
- "hB",
3208
- "hb",
3209
- "H"
3210
- ],
3211
- YT: [
3212
- "H",
3213
- "hB"
3214
- ],
3215
- ZA: [
3216
- "H",
3217
- "h",
3218
- "hb",
3219
- "hB"
3220
- ],
3221
- ZM: [
3222
- "h",
3223
- "hb",
3224
- "H",
3225
- "hB"
3226
- ],
3227
- ZW: [
3228
- "H",
3229
- "h"
3230
- ],
3231
- "af-ZA": [
3232
- "H",
3233
- "h",
3234
- "hB",
3235
- "hb"
3236
- ],
3237
- "ar-001": [
3238
- "h",
3239
- "hB",
3240
- "hb",
3241
- "H"
3242
- ],
3243
- "ca-ES": [
3244
- "H",
3245
- "h",
3246
- "hB"
3247
- ],
3248
- "en-001": [
3249
- "h",
3250
- "hb",
3251
- "H",
3252
- "hB"
3253
- ],
3254
- "en-HK": [
3255
- "h",
3256
- "hb",
3257
- "H",
3258
- "hB"
3259
- ],
3260
- "en-IL": [
3261
- "H",
3262
- "h",
3263
- "hb",
3264
- "hB"
3265
- ],
3266
- "en-MY": [
3267
- "h",
3268
- "hb",
3269
- "H",
3270
- "hB"
3271
- ],
3272
- "es-BR": [
3273
- "H",
3274
- "h",
3275
- "hB",
3276
- "hb"
3277
- ],
3278
- "es-ES": [
3279
- "H",
3280
- "h",
3281
- "hB",
3282
- "hb"
3283
- ],
3284
- "es-GQ": [
3285
- "H",
3286
- "h",
3287
- "hB",
3288
- "hb"
3289
- ],
3290
- "fr-CA": [
3291
- "H",
3292
- "h",
3293
- "hB"
3294
- ],
3295
- "gl-ES": [
3296
- "H",
3297
- "h",
3298
- "hB"
3299
- ],
3300
- "gu-IN": [
3301
- "hB",
3302
- "hb",
3303
- "h",
3304
- "H"
3305
- ],
3306
- "hi-IN": [
3307
- "hB",
3308
- "h",
3309
- "H"
3310
- ],
3311
- "it-CH": [
3312
- "H",
3313
- "h",
3314
- "hB"
3315
- ],
3316
- "it-IT": [
3317
- "H",
3318
- "h",
3319
- "hB"
3320
- ],
3321
- "kn-IN": [
3322
- "hB",
3323
- "h",
3324
- "H"
3325
- ],
3326
- "ml-IN": [
3327
- "hB",
3328
- "h",
3329
- "H"
3330
- ],
3331
- "mr-IN": [
3332
- "hB",
3333
- "hb",
3334
- "h",
3335
- "H"
3336
- ],
3337
- "pa-IN": [
3338
- "hB",
3339
- "hb",
3340
- "h",
3341
- "H"
3342
- ],
3343
- "ta-IN": [
3344
- "hB",
3345
- "h",
3346
- "hb",
3347
- "H"
3348
- ],
3349
- "te-IN": [
3350
- "hB",
3351
- "h",
3352
- "H"
3353
- ],
3354
- "zu-ZA": [
3355
- "H",
3356
- "hB",
3357
- "hb",
3358
- "h"
3359
- ]
3360
- };
3361
- function ci(e, t) {
3362
- for (var r = "", n = 0; n < e.length; n++) {
3363
- var i = e.charAt(n);
3364
- if (i === "j") {
3365
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3366
- o++, n++;
3367
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = fi(t);
3368
- for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
3369
- r += u;
3370
- for (; s-- > 0; )
3371
- r = h + r;
3372
- } else
3373
- i === "J" ? r += "H" : r += i;
3374
- }
3375
- return r;
3376
- }
3377
- function fi(e) {
3378
- var t = e.hourCycle;
3379
- if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3380
- e.hourCycles && // @ts-ignore
3381
- e.hourCycles.length && (t = e.hourCycles[0]), t)
3382
- switch (t) {
3383
- case "h24":
3384
- return "k";
3385
- case "h23":
3386
- return "H";
3387
- case "h12":
3388
- return "h";
3389
- case "h11":
3390
- return "K";
3391
- default:
3392
- throw new Error("Invalid hourCycle");
3393
- }
3394
- var r = e.language, n;
3395
- r !== "root" && (n = e.maximize().region);
3396
- var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
3397
- return i[0];
3398
- }
3399
- var je, pi = new RegExp("^".concat(gr.source, "*")), di = new RegExp("".concat(gr.source, "*$"));
3400
- function g(e, t) {
3401
- return { start: e, end: t };
3402
- }
3403
- var mi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, gi = !!Object.fromEntries, yi = !!String.prototype.codePointAt, vi = !!String.prototype.trimStart, _i = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, xi = Ei ? Number.isSafeInteger : function(e) {
3404
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3405
- }, tt = !0;
3406
- try {
3407
- var Si = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3408
- tt = ((je = Si.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
3409
- } catch (e) {
3410
- tt = !1;
3411
- }
3412
- var It = mi ? (
3413
- // Native
3414
- function(t, r, n) {
3415
- return t.startsWith(r, n);
3416
- }
3417
- ) : (
3418
- // For IE11
3419
- function(t, r, n) {
3420
- return t.slice(n, n + r.length) === r;
3421
- }
3422
- ), rt = bi ? String.fromCodePoint : (
3423
- // IE11
3424
- function() {
3425
- for (var t = [], r = 0; r < arguments.length; r++)
3426
- t[r] = arguments[r];
3427
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3428
- if (s = t[o++], s > 1114111)
3429
- throw RangeError(s + " is not a valid code point");
3430
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3431
- }
3432
- return n;
3433
- }
3434
- ), Lt = (
3435
- // native
3436
- gi ? Object.fromEntries : (
3437
- // Ponyfill
3438
- function(t) {
3439
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
3440
- var o = i[n], s = o[0], a = o[1];
3441
- r[s] = a;
3442
- }
3443
- return r;
3444
- }
3445
- )
3446
- ), Er = yi ? (
3447
- // Native
3448
- function(t, r) {
3449
- return t.codePointAt(r);
3450
- }
3451
- ) : (
3452
- // IE 11
3453
- function(t, r) {
3454
- var n = t.length;
3455
- if (!(r < 0 || r >= n)) {
3456
- var i = t.charCodeAt(r), o;
3457
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3458
- }
3459
- }
3460
- ), Ti = vi ? (
3461
- // Native
3462
- function(t) {
3463
- return t.trimStart();
3464
- }
3465
- ) : (
3466
- // Ponyfill
3467
- function(t) {
3468
- return t.replace(pi, "");
3469
- }
3470
- ), wi = _i ? (
3471
- // Native
3472
- function(t) {
3473
- return t.trimEnd();
3474
- }
3475
- ) : (
3476
- // Ponyfill
3477
- function(t) {
3478
- return t.replace(di, "");
3479
- }
3480
- );
3481
- function xr(e, t) {
3482
- return new RegExp(e, t);
3483
- }
3484
- var nt;
3485
- if (tt) {
3486
- var Nt = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3487
- nt = function(t, r) {
3488
- var n;
3489
- Nt.lastIndex = r;
3490
- var i = Nt.exec(t);
3491
- return (n = i[1]) !== null && n !== void 0 ? n : "";
3492
- };
3493
- } else
3494
- nt = function(t, r) {
3495
- for (var n = []; ; ) {
3496
- var i = Er(t, r);
3497
- if (i === void 0 || Sr(i) || Pi(i))
3498
- break;
3499
- n.push(i), r += i >= 65536 ? 2 : 1;
3500
- }
3501
- return rt.apply(void 0, n);
3502
- };
3503
- var Hi = (
3504
- /** @class */
3505
- function() {
3506
- function e(t, r) {
3507
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3508
- }
3509
- return e.prototype.parse = function() {
3510
- if (this.offset() !== 0)
3511
- throw Error("parser can only be used once");
3512
- return this.parseMessage(0, "", !1);
3513
- }, e.prototype.parseMessage = function(t, r, n) {
3514
- for (var i = []; !this.isEOF(); ) {
3515
- var o = this.char();
3516
- if (o === 123) {
3517
- var s = this.parseArgument(t, n);
3518
- if (s.err)
3519
- return s;
3520
- i.push(s.val);
3521
- } else {
3522
- if (o === 125 && t > 0)
3523
- break;
3524
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
3525
- var a = this.clonePosition();
3526
- this.bump(), i.push({
3527
- type: v.pound,
3528
- location: g(a, this.clonePosition())
3529
- });
3530
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3531
- if (n)
3532
- break;
3533
- return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3534
- } else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
3535
- var s = this.parseTag(t, r);
3536
- if (s.err)
3537
- return s;
3538
- i.push(s.val);
3539
- } else {
3540
- var s = this.parseLiteral(t, r);
3541
- if (s.err)
3542
- return s;
3543
- i.push(s.val);
3544
- }
3545
- }
3546
- }
3547
- return { val: i, err: null };
3548
- }, e.prototype.parseTag = function(t, r) {
3549
- var n = this.clonePosition();
3550
- this.bump();
3551
- var i = this.parseTagName();
3552
- if (this.bumpSpace(), this.bumpIf("/>"))
3553
- return {
3554
- val: {
3555
- type: v.literal,
3556
- value: "<".concat(i, "/>"),
3557
- location: g(n, this.clonePosition())
3558
- },
3559
- err: null
3560
- };
3561
- if (this.bumpIf(">")) {
3562
- var o = this.parseMessage(t + 1, r, !0);
3563
- if (o.err)
3564
- return o;
3565
- var s = o.val, a = this.clonePosition();
3566
- if (this.bumpIf("</")) {
3567
- if (this.isEOF() || !it(this.char()))
3568
- return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
3569
- var u = this.clonePosition(), h = this.parseTagName();
3570
- return i !== h ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3571
- val: {
3572
- type: v.tag,
3573
- value: i,
3574
- children: s,
3575
- location: g(n, this.clonePosition())
3576
- },
3577
- err: null
3578
- } : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
3579
- } else
3580
- return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
3581
- } else
3582
- return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
3583
- }, e.prototype.parseTagName = function() {
3584
- var t = this.offset();
3585
- for (this.bump(); !this.isEOF() && Ai(this.char()); )
3586
- this.bump();
3587
- return this.message.slice(t, this.offset());
3588
- }, e.prototype.parseLiteral = function(t, r) {
3589
- for (var n = this.clonePosition(), i = ""; ; ) {
3590
- var o = this.tryParseQuote(r);
3591
- if (o) {
3592
- i += o;
3593
- continue;
3594
- }
3595
- var s = this.tryParseUnquoted(t, r);
3596
- if (s) {
3597
- i += s;
3598
- continue;
3599
- }
3600
- var a = this.tryParseLeftAngleBracket();
3601
- if (a) {
3602
- i += a;
3603
- continue;
3604
- }
3605
- break;
3606
- }
3607
- var u = g(n, this.clonePosition());
3608
- return {
3609
- val: { type: v.literal, value: i, location: u },
3610
- err: null
3611
- };
3612
- }, e.prototype.tryParseLeftAngleBracket = function() {
3613
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3614
- !Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
3615
- }, e.prototype.tryParseQuote = function(t) {
3616
- if (this.isEOF() || this.char() !== 39)
3617
- return null;
3618
- switch (this.peek()) {
3619
- case 39:
3620
- return this.bump(), this.bump(), "'";
3621
- case 123:
3622
- case 60:
3623
- case 62:
3624
- case 125:
3625
- break;
3626
- case 35:
3627
- if (t === "plural" || t === "selectordinal")
3628
- break;
3629
- return null;
3630
- default:
3631
- return null;
3632
- }
3633
- this.bump();
3634
- var r = [this.char()];
3635
- for (this.bump(); !this.isEOF(); ) {
3636
- var n = this.char();
3637
- if (n === 39)
3638
- if (this.peek() === 39)
3639
- r.push(39), this.bump();
3640
- else {
3641
- this.bump();
3642
- break;
3643
- }
3644
- else
3645
- r.push(n);
3646
- this.bump();
3647
- }
3648
- return rt.apply(void 0, r);
3649
- }, e.prototype.tryParseUnquoted = function(t, r) {
3650
- if (this.isEOF())
3651
- return null;
3652
- var n = this.char();
3653
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
3654
- }, e.prototype.parseArgument = function(t, r) {
3655
- var n = this.clonePosition();
3656
- if (this.bump(), this.bumpSpace(), this.isEOF())
3657
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3658
- if (this.char() === 125)
3659
- return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
3660
- var i = this.parseIdentifierIfPossible().value;
3661
- if (!i)
3662
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3663
- if (this.bumpSpace(), this.isEOF())
3664
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3665
- switch (this.char()) {
3666
- case 125:
3667
- return this.bump(), {
3668
- val: {
3669
- type: v.argument,
3670
- // value does not include the opening and closing braces.
3671
- value: i,
3672
- location: g(n, this.clonePosition())
3673
- },
3674
- err: null
3675
- };
3676
- case 44:
3677
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3678
- default:
3679
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3680
- }
3681
- }, e.prototype.parseIdentifierIfPossible = function() {
3682
- var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
3683
- this.bumpTo(i);
3684
- var o = this.clonePosition(), s = g(t, o);
3685
- return { value: n, location: s };
3686
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3687
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3688
- switch (a) {
3689
- case "":
3690
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
3691
- case "number":
3692
- case "date":
3693
- case "time": {
3694
- this.bumpSpace();
3695
- var h = null;
3696
- if (this.bumpIf(",")) {
3697
- this.bumpSpace();
3698
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3699
- if (f.err)
3700
- return f;
3701
- var c = wi(f.val);
3702
- if (c.length === 0)
3703
- return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3704
- var d = g(l, this.clonePosition());
3705
- h = { style: c, styleLocation: d };
3706
- }
3707
- var p = this.tryParseArgumentClose(i);
3708
- if (p.err)
3709
- return p;
3710
- var m = g(i, this.clonePosition());
3711
- if (h && It(h == null ? void 0 : h.style, "::", 0)) {
3712
- var _ = Ti(h.style.slice(2));
3713
- if (a === "number") {
3714
- var f = this.parseNumberSkeletonFromString(_, h.styleLocation);
3715
- return f.err ? f : {
3716
- val: { type: v.number, value: n, location: m, style: f.val },
3717
- err: null
3718
- };
3719
- } else {
3720
- if (_.length === 0)
3721
- return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3722
- var w = _;
3723
- this.locale && (w = ci(_, this.locale));
3724
- var c = {
3725
- type: Q.dateTime,
3726
- pattern: w,
3727
- location: h.styleLocation,
3728
- parsedOptions: this.shouldParseSkeletons ? ii(w) : {}
3729
- }, O = a === "date" ? v.date : v.time;
3730
- return {
3731
- val: { type: O, value: n, location: m, style: c },
3732
- err: null
3733
- };
3734
- }
3735
- }
3736
- return {
3737
- val: {
3738
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3739
- value: n,
3740
- location: m,
3741
- style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
3742
- },
3743
- err: null
3744
- };
3745
- }
3746
- case "plural":
3747
- case "selectordinal":
3748
- case "select": {
3749
- var x = this.clonePosition();
3750
- if (this.bumpSpace(), !this.bumpIf(","))
3751
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(x, we({}, x)));
3752
- this.bumpSpace();
3753
- var I = this.parseIdentifierIfPossible(), H = 0;
3754
- if (a !== "select" && I.value === "offset") {
3755
- if (!this.bumpIf(":"))
3756
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3757
- this.bumpSpace();
3758
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3759
- if (f.err)
3760
- return f;
3761
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), H = f.val;
3762
- }
3763
- var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
3764
- if (R.err)
3765
- return R;
3766
- var p = this.tryParseArgumentClose(i);
3767
- if (p.err)
3768
- return p;
3769
- var pe = g(i, this.clonePosition());
3770
- return a === "select" ? {
3771
- val: {
3772
- type: v.select,
3773
- value: n,
3774
- options: Lt(R.val),
3775
- location: pe
3776
- },
3777
- err: null
3778
- } : {
3779
- val: {
3780
- type: v.plural,
3781
- value: n,
3782
- options: Lt(R.val),
3783
- offset: H,
3784
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3785
- location: pe
3786
- },
3787
- err: null
3788
- };
3789
- }
3790
- default:
3791
- return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
3792
- }
3793
- }, e.prototype.tryParseArgumentClose = function(t) {
3794
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3795
- }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3796
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3797
- var n = this.char();
3798
- switch (n) {
3799
- case 39: {
3800
- this.bump();
3801
- var i = this.clonePosition();
3802
- if (!this.bumpUntil("'"))
3803
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3804
- this.bump();
3805
- break;
3806
- }
3807
- case 123: {
3808
- t += 1, this.bump();
3809
- break;
3810
- }
3811
- case 125: {
3812
- if (t > 0)
3813
- t -= 1;
3814
- else
3815
- return {
3816
- val: this.message.slice(r.offset, this.offset()),
3817
- err: null
3818
- };
3819
- break;
3820
- }
3821
- default:
3822
- this.bump();
3823
- break;
3824
- }
3825
- }
3826
- return {
3827
- val: this.message.slice(r.offset, this.offset()),
3828
- err: null
3829
- };
3830
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3831
- var n = [];
3832
- try {
3833
- n = si(t);
3834
- } catch (i) {
3835
- return this.error(b.INVALID_NUMBER_SKELETON, r);
3836
- }
3837
- return {
3838
- val: {
3839
- type: Q.number,
3840
- tokens: n,
3841
- location: r,
3842
- parsedOptions: this.shouldParseSkeletons ? li(n) : {}
3843
- },
3844
- err: null
3845
- };
3846
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3847
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
3848
- if (h.length === 0) {
3849
- var f = this.clonePosition();
3850
- if (r !== "select" && this.bumpIf("=")) {
3851
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3852
- if (c.err)
3853
- return c;
3854
- l = g(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
3855
- } else
3856
- break;
3857
- }
3858
- if (u.has(h))
3859
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3860
- h === "other" && (s = !0), this.bumpSpace();
3861
- var d = this.clonePosition();
3862
- if (!this.bumpIf("{"))
3863
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3864
- var p = this.parseMessage(t + 1, r, n);
3865
- if (p.err)
3866
- return p;
3867
- var m = this.tryParseArgumentClose(d);
3868
- if (m.err)
3869
- return m;
3870
- a.push([
3871
- h,
3872
- {
3873
- value: p.val,
3874
- location: g(d, this.clonePosition())
3875
- }
3876
- ]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
3877
- }
3878
- return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3879
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3880
- var n = 1, i = this.clonePosition();
3881
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3882
- for (var o = !1, s = 0; !this.isEOF(); ) {
3883
- var a = this.char();
3884
- if (a >= 48 && a <= 57)
3885
- o = !0, s = s * 10 + (a - 48), this.bump();
3886
- else
3887
- break;
3888
- }
3889
- var u = g(i, this.clonePosition());
3890
- return o ? (s *= n, xi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3891
- }, e.prototype.offset = function() {
3892
- return this.position.offset;
3893
- }, e.prototype.isEOF = function() {
3894
- return this.offset() === this.message.length;
3895
- }, e.prototype.clonePosition = function() {
3896
- return {
3897
- offset: this.position.offset,
3898
- line: this.position.line,
3899
- column: this.position.column
3900
- };
3901
- }, e.prototype.char = function() {
3902
- var t = this.position.offset;
3903
- if (t >= this.message.length)
3904
- throw Error("out of bound");
3905
- var r = Er(this.message, t);
3906
- if (r === void 0)
3907
- throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3908
- return r;
3909
- }, e.prototype.error = function(t, r) {
3910
- return {
3911
- val: null,
3912
- err: {
3913
- kind: t,
3914
- message: this.message,
3915
- location: r
3916
- }
3917
- };
3918
- }, e.prototype.bump = function() {
3919
- if (!this.isEOF()) {
3920
- var t = this.char();
3921
- t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3922
- }
3923
- }, e.prototype.bumpIf = function(t) {
3924
- if (It(this.message, t, this.offset())) {
3925
- for (var r = 0; r < t.length; r++)
3926
- this.bump();
3927
- return !0;
3928
- }
3929
- return !1;
3930
- }, e.prototype.bumpUntil = function(t) {
3931
- var r = this.offset(), n = this.message.indexOf(t, r);
3932
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3933
- }, e.prototype.bumpTo = function(t) {
3934
- if (this.offset() > t)
3935
- throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3936
- for (t = Math.min(t, this.message.length); ; ) {
3937
- var r = this.offset();
3938
- if (r === t)
3939
- break;
3940
- if (r > t)
3941
- throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3942
- if (this.bump(), this.isEOF())
3943
- break;
3944
- }
3945
- }, e.prototype.bumpSpace = function() {
3946
- for (; !this.isEOF() && Sr(this.char()); )
3947
- this.bump();
3948
- }, e.prototype.peek = function() {
3949
- if (this.isEOF())
3950
- return null;
3951
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3952
- return n != null ? n : null;
3953
- }, e;
3954
- }()
3955
- );
3956
- function it(e) {
3957
- return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3958
- }
3959
- function Bi(e) {
3960
- return it(e) || e === 47;
3961
- }
3962
- function Ai(e) {
3963
- return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3964
- }
3965
- function Sr(e) {
3966
- return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3967
- }
3968
- function Pi(e) {
3969
- return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3970
- }
3971
- function ot(e) {
3972
- e.forEach(function(t) {
3973
- if (delete t.location, pr(t) || dr(t))
3974
- for (var r in t.options)
3975
- delete t.options[r].location, ot(t.options[r].value);
3976
- else
3977
- lr(t) && br(t.style) || (cr(t) || fr(t)) && et(t.style) ? delete t.style.location : mr(t) && ot(t.children);
3978
- });
3979
- }
3980
- function Oi(e, t) {
3981
- t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3982
- var r = new Hi(e, t).parse();
3983
- if (r.err) {
3984
- var n = SyntaxError(b[r.err.kind]);
3985
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3986
- }
3987
- return t != null && t.captureLocation || ot(r.val), r.val;
3988
- }
3989
- var J;
3990
- (function(e) {
3991
- e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3992
- })(J || (J = {}));
3993
- var Ie = (
3994
- /** @class */
3995
- function(e) {
3996
- Oe(t, e);
3997
- function t(r, n, i) {
3998
- var o = e.call(this, r) || this;
3999
- return o.code = n, o.originalMessage = i, o;
4000
- }
4001
- return t.prototype.toString = function() {
4002
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4003
- }, t;
4004
- }(Error)
4005
- ), Mt = (
4006
- /** @class */
4007
- function(e) {
4008
- Oe(t, e);
4009
- function t(r, n, i, o) {
4010
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
4011
- }
4012
- return t;
4013
- }(Ie)
4014
- ), Ii = (
4015
- /** @class */
4016
- function(e) {
4017
- Oe(t, e);
4018
- function t(r, n, i) {
4019
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
4020
- }
4021
- return t;
4022
- }(Ie)
4023
- ), Li = (
4024
- /** @class */
4025
- function(e) {
4026
- Oe(t, e);
4027
- function t(r, n) {
4028
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
4029
- }
4030
- return t;
4031
- }(Ie)
4032
- ), T;
4033
- (function(e) {
4034
- e[e.literal = 0] = "literal", e[e.object = 1] = "object";
4035
- })(T || (T = {}));
4036
- function Ni(e) {
4037
- return e.length < 2 ? e : e.reduce(function(t, r) {
4038
- var n = t[t.length - 1];
4039
- return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
4040
- }, []);
4041
- }
4042
- function Mi(e) {
4043
- return typeof e == "function";
4044
- }
4045
- function _e(e, t, r, n, i, o, s) {
4046
- if (e.length === 1 && Bt(e[0]))
4047
- return [
4048
- {
4049
- type: T.literal,
4050
- value: e[0].value
4051
- }
4052
- ];
4053
- for (var a = [], u = 0, h = e; u < h.length; u++) {
4054
- var l = h[u];
4055
- if (Bt(l)) {
4056
- a.push({
4057
- type: T.literal,
4058
- value: l.value
4059
- });
4060
- continue;
4061
- }
4062
- if (ri(l)) {
4063
- typeof o == "number" && a.push({
4064
- type: T.literal,
4065
- value: r.getNumberFormat(t).format(o)
4066
- });
4067
- continue;
4068
- }
4069
- var f = l.value;
4070
- if (!(i && f in i))
4071
- throw new Li(f, s);
4072
- var c = i[f];
4073
- if (ti(l)) {
4074
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
4075
- type: typeof c == "string" ? T.literal : T.object,
4076
- value: c
4077
- });
4078
- continue;
4079
- }
4080
- if (cr(l)) {
4081
- var d = typeof l.style == "string" ? n.date[l.style] : et(l.style) ? l.style.parsedOptions : void 0;
4082
- a.push({
4083
- type: T.literal,
4084
- value: r.getDateTimeFormat(t, d).format(c)
4085
- });
4086
- continue;
4087
- }
4088
- if (fr(l)) {
4089
- var d = typeof l.style == "string" ? n.time[l.style] : et(l.style) ? l.style.parsedOptions : n.time.medium;
4090
- a.push({
4091
- type: T.literal,
4092
- value: r.getDateTimeFormat(t, d).format(c)
4093
- });
4094
- continue;
4095
- }
4096
- if (lr(l)) {
4097
- var d = typeof l.style == "string" ? n.number[l.style] : br(l.style) ? l.style.parsedOptions : void 0;
4098
- d && d.scale && (c = c * (d.scale || 1)), a.push({
4099
- type: T.literal,
4100
- value: r.getNumberFormat(t, d).format(c)
4101
- });
4102
- continue;
4103
- }
4104
- if (mr(l)) {
4105
- var p = l.children, m = l.value, _ = i[m];
4106
- if (!Mi(_))
4107
- throw new Ii(m, "function", s);
4108
- var w = _e(p, t, r, n, i, o), O = _(w.map(function(H) {
4109
- return H.value;
4110
- }));
4111
- Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(H) {
4112
- return {
4113
- type: typeof H == "string" ? T.literal : T.object,
4114
- value: H
4115
- };
4116
- }));
4117
- }
4118
- if (pr(l)) {
4119
- var x = l.options[c] || l.options.other;
4120
- if (!x)
4121
- throw new Mt(l.value, c, Object.keys(l.options), s);
4122
- a.push.apply(a, _e(x.value, t, r, n, i));
4123
- continue;
4124
- }
4125
- if (dr(l)) {
4126
- var x = l.options["=".concat(c)];
4127
- if (!x) {
4128
- if (!Intl.PluralRules)
4129
- throw new Ie(`Intl.PluralRules is not available in this environment.
4130
- Try polyfilling it using "@formatjs/intl-pluralrules"
4131
- `, J.MISSING_INTL_API, s);
4132
- var I = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
4133
- x = l.options[I] || l.options.other;
4134
- }
4135
- if (!x)
4136
- throw new Mt(l.value, c, Object.keys(l.options), s);
4137
- a.push.apply(a, _e(x.value, t, r, n, i, c - (l.offset || 0)));
4138
- continue;
4139
- }
4140
- }
4141
- return Ni(a);
4142
- }
4143
- function Ci(e, t) {
4144
- return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4145
- return r[n] = M(M({}, e[n]), t[n] || {}), r;
4146
- }, {})) : e;
4147
- }
4148
- function $i(e, t) {
4149
- return t ? Object.keys(e).reduce(function(r, n) {
4150
- return r[n] = Ci(e[n], t[n]), r;
4151
- }, M({}, e)) : e;
4152
- }
4153
- function ke(e) {
4154
- return {
4155
- create: function() {
4156
- return {
4157
- get: function(t) {
4158
- return e[t];
4159
- },
4160
- set: function(t, r) {
4161
- e[t] = r;
4162
- }
4163
- };
4164
- }
4165
- };
4166
- }
4167
- function Ri(e) {
4168
- return e === void 0 && (e = {
4169
- number: {},
4170
- dateTime: {},
4171
- pluralRules: {}
4172
- }), {
4173
- getNumberFormat: Ge(function() {
4174
- for (var t, r = [], n = 0; n < arguments.length; n++)
4175
- r[n] = arguments[n];
4176
- return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
4177
- }, {
4178
- cache: ke(e.number),
4179
- strategy: Fe.variadic
4180
- }),
4181
- getDateTimeFormat: Ge(function() {
4182
- for (var t, r = [], n = 0; n < arguments.length; n++)
4183
- r[n] = arguments[n];
4184
- return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
4185
- }, {
4186
- cache: ke(e.dateTime),
4187
- strategy: Fe.variadic
4188
- }),
4189
- getPluralRules: Ge(function() {
4190
- for (var t, r = [], n = 0; n < arguments.length; n++)
4191
- r[n] = arguments[n];
4192
- return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
4193
- }, {
4194
- cache: ke(e.pluralRules),
4195
- strategy: Fe.variadic
4196
- })
4197
- };
4198
- }
4199
- var Ui = (
4200
- /** @class */
4201
- function() {
4202
- function e(t, r, n, i) {
4203
- r === void 0 && (r = e.defaultLocale);
4204
- var o = this;
4205
- if (this.formatterCache = {
4206
- number: {},
4207
- dateTime: {},
4208
- pluralRules: {}
4209
- }, this.format = function(u) {
4210
- var h = o.formatToParts(u);
4211
- if (h.length === 1)
4212
- return h[0].value;
4213
- var l = h.reduce(function(f, c) {
4214
- return !f.length || c.type !== T.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4215
- }, []);
4216
- return l.length <= 1 ? l[0] || "" : l;
4217
- }, this.formatToParts = function(u) {
4218
- return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
4219
- }, this.resolvedOptions = function() {
4220
- var u;
4221
- return {
4222
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4223
- };
4224
- }, this.getAst = function() {
4225
- return o.ast;
4226
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4227
- if (this.message = t, !e.__parse)
4228
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4229
- var s = i || {};
4230
- s.formatters;
4231
- var a = zn(s, ["formatters"]);
4232
- this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
4233
- } else
4234
- this.ast = t;
4235
- if (!Array.isArray(this.ast))
4236
- throw new TypeError("A message must be provided as a String or AST.");
4237
- this.formats = $i(e.formats, n), this.formatters = i && i.formatters || Ri(this.formatterCache);
4238
- }
4239
- return Object.defineProperty(e, "defaultLocale", {
4240
- get: function() {
4241
- return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4242
- },
4243
- enumerable: !1,
4244
- configurable: !0
4245
- }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4246
- if (typeof Intl.Locale != "undefined") {
4247
- var r = Intl.NumberFormat.supportedLocalesOf(t);
4248
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4249
- }
4250
- }, e.__parse = Oi, e.formats = {
4251
- number: {
4252
- integer: {
4253
- maximumFractionDigits: 0
4254
- },
4255
- currency: {
4256
- style: "currency"
4257
- },
4258
- percent: {
4259
- style: "percent"
4260
- }
4261
- },
4262
- date: {
4263
- short: {
4264
- month: "numeric",
4265
- day: "numeric",
4266
- year: "2-digit"
4267
- },
4268
- medium: {
4269
- month: "short",
4270
- day: "numeric",
4271
- year: "numeric"
4272
- },
4273
- long: {
4274
- month: "long",
4275
- day: "numeric",
4276
- year: "numeric"
4277
- },
4278
- full: {
4279
- weekday: "long",
4280
- month: "long",
4281
- day: "numeric",
4282
- year: "numeric"
4283
- }
4284
- },
4285
- time: {
4286
- short: {
4287
- hour: "numeric",
4288
- minute: "numeric"
4289
- },
4290
- medium: {
4291
- hour: "numeric",
4292
- minute: "numeric",
4293
- second: "numeric"
4294
- },
4295
- long: {
4296
- hour: "numeric",
4297
- minute: "numeric",
4298
- second: "numeric",
4299
- timeZoneName: "short"
4300
- },
4301
- full: {
4302
- hour: "numeric",
4303
- minute: "numeric",
4304
- second: "numeric",
4305
- timeZoneName: "short"
4306
- }
4307
- }
4308
- }, e;
4309
- }()
4310
- );
4311
- function Di(e, t) {
4312
- if (t == null)
4313
- return;
4314
- if (t in e)
4315
- return e[t];
4316
- const r = t.split(".");
4317
- let n = e;
4318
- for (let i = 0; i < r.length; i++)
4319
- if (typeof n == "object") {
4320
- if (i > 0) {
4321
- const o = r.slice(i, r.length).join(".");
4322
- if (o in n) {
4323
- n = n[o];
4324
- break;
4325
- }
4326
- }
4327
- n = n[r[i]];
4328
- } else
4329
- n = void 0;
4330
- return n;
4331
- }
4332
- const D = {}, Gi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Tr = (e, t) => {
4333
- if (t == null)
4334
- return;
4335
- if (t in D && e in D[t])
4336
- return D[t][e];
4337
- const r = Le(t);
4338
- for (let n = 0; n < r.length; n++) {
4339
- const i = r[n], o = ji(i, e);
4340
- if (o)
4341
- return Gi(e, t, o);
4342
- }
4343
- };
4344
- let lt;
4345
- const fe = Pe({});
4346
- function Fi(e) {
4347
- return lt[e] || null;
4348
- }
4349
- function wr(e) {
4350
- return e in lt;
4351
- }
4352
- function ji(e, t) {
4353
- if (!wr(e))
4354
- return null;
4355
- const r = Fi(e);
4356
- return Di(r, t);
4357
- }
4358
- function ki(e) {
4359
- if (e == null)
4360
- return;
4361
- const t = Le(e);
4362
- for (let r = 0; r < t.length; r++) {
4363
- const n = t[r];
4364
- if (wr(n))
4365
- return n;
4366
- }
4367
- }
4368
- function Hr(e, ...t) {
4369
- delete D[e], fe.update((r) => (r[e] = Wn.all([r[e] || {}, ...t]), r));
4370
- }
4371
- ee(
4372
- [fe],
4373
- ([e]) => Object.keys(e)
4374
- );
4375
- fe.subscribe((e) => lt = e);
4376
- const Ee = {};
4377
- function Vi(e, t) {
4378
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
4379
- }
4380
- function Br(e) {
4381
- return Ee[e];
4382
- }
4383
- function Xi(e) {
4384
- return Le(e).map((t) => {
4385
- const r = Br(t);
4386
- return [t, r ? [...r] : []];
4387
- }).filter(([, t]) => t.length > 0);
4388
- }
4389
- function st(e) {
4390
- return e == null ? !1 : Le(e).some(
4391
- (t) => {
4392
- var r;
4393
- return (r = Br(t)) == null ? void 0 : r.size;
4394
- }
4395
- );
4396
- }
4397
- function Wi(e, t) {
4398
- return Promise.all(
4399
- t.map((n) => (Vi(e, n), n().then((i) => i.default || i)))
4400
- ).then((n) => Hr(e, ...n));
4401
- }
4402
- const ie = {};
4403
- function Ar(e) {
4404
- if (!st(e))
4405
- return e in ie ? ie[e] : Promise.resolve();
4406
- const t = Xi(e);
4407
- return ie[e] = Promise.all(
4408
- t.map(
4409
- ([r, n]) => Wi(r, n)
4410
- )
4411
- ).then(() => {
4412
- if (st(e))
4413
- return Ar(e);
4414
- delete ie[e];
4415
- }), ie[e];
4416
- }
4417
- const zi = {
4418
- number: {
4419
- scientific: { notation: "scientific" },
4420
- engineering: { notation: "engineering" },
4421
- compactLong: { notation: "compact", compactDisplay: "long" },
4422
- compactShort: { notation: "compact", compactDisplay: "short" }
4423
- },
4424
- date: {
4425
- short: { month: "numeric", day: "numeric", year: "2-digit" },
4426
- medium: { month: "short", day: "numeric", year: "numeric" },
4427
- long: { month: "long", day: "numeric", year: "numeric" },
4428
- full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4429
- },
4430
- time: {
4431
- short: { hour: "numeric", minute: "numeric" },
4432
- medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4433
- long: {
4434
- hour: "numeric",
4435
- minute: "numeric",
4436
- second: "numeric",
4437
- timeZoneName: "short"
4438
- },
4439
- full: {
4440
- hour: "numeric",
4441
- minute: "numeric",
4442
- second: "numeric",
4443
- timeZoneName: "short"
4444
- }
4445
- }
4446
- }, Zi = {
4447
- fallbackLocale: null,
4448
- loadingDelay: 200,
4449
- formats: zi,
4450
- warnOnMissingMessages: !0,
4451
- handleMissingMessage: void 0,
4452
- ignoreTag: !0
4453
- }, qi = Zi;
4454
- function Y() {
4455
- return qi;
4456
- }
4457
- const Ve = Pe(!1);
4458
- var Qi = Object.defineProperty, Ji = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, to = (e, t) => {
4459
- for (var r in t || (t = {}))
4460
- Ki.call(t, r) && $t(e, r, t[r]);
4461
- if (Ct)
4462
- for (var r of Ct(t))
4463
- eo.call(t, r) && $t(e, r, t[r]);
4464
- return e;
4465
- }, ro = (e, t) => Ji(e, Yi(t));
4466
- let at;
4467
- const He = Pe(null);
4468
- function Rt(e) {
4469
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4470
- }
4471
- function Le(e, t = Y().fallbackLocale) {
4472
- const r = Rt(e);
4473
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
4474
- }
4475
- function j() {
4476
- return at != null ? at : void 0;
4477
- }
4478
- He.subscribe((e) => {
4479
- at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4480
- });
4481
- const no = (e) => {
4482
- if (e && ki(e) && st(e)) {
4483
- const { loadingDelay: t } = Y();
4484
- let r;
4485
- return typeof window != "undefined" && j() != null && t ? r = window.setTimeout(
4486
- () => Ve.set(!0),
4487
- t
4488
- ) : Ve.set(!0), Ar(e).then(() => {
4489
- He.set(e);
4490
- }).finally(() => {
4491
- clearTimeout(r), Ve.set(!1);
4492
- });
4493
- }
4494
- return He.set(e);
4495
- }, te = ro(to({}, He), {
4496
- set: no
4497
- }), Ne = (e) => {
4498
- const t = /* @__PURE__ */ Object.create(null);
4499
- return (n) => {
4500
- const i = JSON.stringify(n);
4501
- return i in t ? t[i] : t[i] = e(n);
4502
- };
4503
- };
4504
- var io = Object.defineProperty, Be = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
4505
- for (var r in t || (t = {}))
4506
- Pr.call(t, r) && Ut(e, r, t[r]);
4507
- if (Be)
4508
- for (var r of Be(t))
4509
- Or.call(t, r) && Ut(e, r, t[r]);
4510
- return e;
4511
- }, re = (e, t) => {
4512
- var r = {};
4513
- for (var n in e)
4514
- Pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4515
- if (e != null && Be)
4516
- for (var n of Be(e))
4517
- t.indexOf(n) < 0 && Or.call(e, n) && (r[n] = e[n]);
4518
- return r;
4519
- };
4520
- const ue = (e, t) => {
4521
- const { formats: r } = Y();
4522
- if (e in r && t in r[e])
4523
- return r[e][t];
4524
- throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4525
- }, oo = Ne(
4526
- (e) => {
4527
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4528
- if (r == null)
4529
- throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4530
- return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
4531
- }
4532
- ), so = Ne(
4533
- (e) => {
4534
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4535
- if (r == null)
4536
- throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4537
- return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
4538
- }
4539
- ), ao = Ne(
4540
- (e) => {
4541
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4542
- if (r == null)
4543
- throw new Error(
4544
- '[svelte-i18n] A "locale" must be set to format time values'
4545
- );
4546
- return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
4547
- }
4548
- ), uo = (e = {}) => {
4549
- var t = e, {
4550
- locale: r = j()
4551
- } = t, n = re(t, [
4552
- "locale"
4553
- ]);
4554
- return oo(ct({ locale: r }, n));
4555
- }, ho = (e = {}) => {
4556
- var t = e, {
4557
- locale: r = j()
4558
- } = t, n = re(t, [
4559
- "locale"
4560
- ]);
4561
- return so(ct({ locale: r }, n));
4562
- }, lo = (e = {}) => {
4563
- var t = e, {
4564
- locale: r = j()
4565
- } = t, n = re(t, [
4566
- "locale"
4567
- ]);
4568
- return ao(ct({ locale: r }, n));
4569
- }, co = Ne(
4570
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4571
- (e, t = j()) => new Ui(e, t, Y().formats, {
4572
- ignoreTag: Y().ignoreTag
4573
- })
4574
- ), fo = (e, t = {}) => {
4575
- var r, n, i, o;
4576
- let s = t;
4577
- typeof e == "object" && (s = e, e = s.id);
4578
- const {
4579
- values: a,
4580
- locale: u = j(),
4581
- default: h
4582
- } = s;
4583
- if (u == null)
4584
- throw new Error(
4585
- "[svelte-i18n] Cannot format a message without first setting the initial locale."
4586
- );
4587
- let l = Tr(e, u);
4588
- if (!l)
4589
- l = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4590
- else if (typeof l != "string")
4591
- return console.warn(
4592
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4593
- ), l;
4594
- if (!a)
4595
- return l;
4596
- let f = l;
4597
- try {
4598
- f = co(l, u).format(a);
4599
- } catch (c) {
4600
- c instanceof Error && console.warn(
4601
- `[svelte-i18n] Message "${e}" has syntax error:`,
4602
- c.message
4603
- );
4604
- }
4605
- return f;
4606
- }, po = (e, t) => lo(t).format(e), mo = (e, t) => ho(t).format(e), bo = (e, t) => uo(t).format(e), go = (e, t = j()) => Tr(e, t), yo = ee([te, fe], () => fo);
4607
- ee([te], () => po);
4608
- ee([te], () => mo);
4609
- ee([te], () => bo);
4610
- ee([te, fe], () => go);
4611
- window.emWidgets = { topic: Pn };
4612
- const rs = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Ir = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", ns = (e) => e.match(/CustomNative/i) ? "NativeApp" : Ir(e) === "PC" ? "Desktop" : "Mobile";
4613
- function is(e, t) {
4614
- const r = () => !0;
4615
- switch (typeof e) {
4616
- case "string": {
4617
- const n = e.trim();
4618
- return n && isFinite(Number(n)) && r();
4619
- }
4620
- case "number":
4621
- return isFinite(e) && r();
4622
- default:
4623
- return !1;
4624
- }
4625
- }
4626
- String(Number.MAX_SAFE_INTEGER).length;
4627
- function Dt(e, t) {
4628
- if (e) {
4629
- const r = document.createElement("style");
4630
- r.innerHTML = t, e.appendChild(r);
4631
- }
4632
- }
4633
- function vo(e, t) {
4634
- if (!e || !t)
4635
- return;
4636
- const r = new URL(t);
4637
- fetch(r.href).then((n) => n.text()).then((n) => {
4638
- const i = document.createElement("style");
4639
- i.innerHTML = n, e && e.appendChild(i);
4640
- }).catch((n) => {
4641
- console.error("There was an error while trying to load client styling from URL", n);
4642
- });
4643
- }
4644
- function _o(e, t, r) {
4645
- if (window.emMessageBus) {
4646
- const n = document.createElement("style");
4647
- window.emMessageBus.subscribe(t, (i) => {
4648
- n.innerHTML = i, e && e.appendChild(n);
4649
- });
4650
- }
4651
- }
4652
- const Eo = (e, t = {}) => {
4653
- const r = new CustomEvent("track-custom-event", {
4654
- detail: {
4655
- type: e,
4656
- data: t
4657
- },
4658
- bubbles: !0,
4659
- composed: !0
4660
- });
4661
- document.dispatchEvent(r);
4662
- };
4663
- function Gt(e, t) {
4664
- Hr(e, t);
4665
- }
4666
- function xo(e) {
4667
- te.set(e);
4668
- }
4669
- const Ft = {
4670
- en: {
4671
- logoutButton: "Logout"
4672
- },
4673
- "zh-hk": {
4674
- logoutButton: "登出"
4675
- },
4676
- fr: {
4677
- logoutButton: "Déconnexion"
4678
- },
4679
- tr: {
4680
- logoutButton: "Çıkış Yap"
4681
- },
4682
- ro: {
4683
- logoutButton: "Iesire"
4684
- },
4685
- es: {
4686
- logoutButton: "Cerrar sesión"
4687
- },
4688
- pt: {
4689
- logoutButton: "Sair"
4690
- },
4691
- hr: {
4692
- logoutButton: "Odjava"
4693
- },
4694
- "pt-br": {
4695
- logoutButton: "Fechar Sessão"
4696
- },
4697
- "es-mx": {
4698
- logoutButton: "Cerrar sesión"
4699
- },
4700
- "en-us": {
4701
- logoutButton: "Logout"
4702
- }
4703
- };
4704
- function So(e) {
4705
- Xr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4706
- }
4707
- function To(e) {
4708
- let t, r, n, i = (
4709
- /*$_*/
4710
- e[2]("logoutButton") + ""
4711
- ), o, s, a;
4712
- return {
4713
- c() {
4714
- t = L("div"), r = L("button"), n = L("span"), o = le(i), A(t, "class", "GeneralLogout");
4715
- },
4716
- m(u, h) {
4717
- K(u, t, h), P(t, r), P(r, n), P(n, o), s || (a = qt(
4718
- r,
4719
- "click",
4720
- /*click_handler_1*/
4721
- e[14]
4722
- ), s = !0);
4723
- },
4724
- p(u, h) {
4725
- h & /*$_*/
4726
- 4 && i !== (i = /*$_*/
4727
- u[2]("logoutButton") + "") && Qt(o, i);
4728
- },
4729
- d(u) {
4730
- u && G(t), s = !1, a();
4731
- }
4732
- };
4733
- }
4734
- function wo(e) {
4735
- let t, r, n, i, o, s, a, u, h, l, f, c = !/*isMobile*/
4736
- e[3] && Ho(e);
4737
- return {
4738
- c() {
4739
- t = L("p"), r = L("span"), n = X("svg"), i = X("defs"), o = X("style"), s = le(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = X("path"), u = X("path"), h = zr(), c && c.c(), A(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), A(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), A(u, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), A(u, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), A(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), A(n, "data-name", "Layer 1"), A(n, "xmlns", "http://www.w3.org/2000/svg"), A(n, "viewBox", "0 0 150 150"), qr(r, "width", /*isMobile*/
4740
- e[3] ? (
4741
- /*mediaQuery*/
4742
- e[4].matches ? "20px" : "24px"
4743
- ) : "20px"), A(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4744
- (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
4745
- (e[4].matches && /*isMobile*/
4746
- e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4747
- },
4748
- m(d, p) {
4749
- K(d, t, p), P(t, r), P(r, n), P(n, i), P(i, o), P(o, s), P(n, a), P(n, u), P(t, h), c && c.m(t, null), l || (f = qt(
4750
- t,
4751
- "click",
4752
- /*click_handler*/
4753
- e[13]
4754
- ), l = !0);
4755
- },
4756
- p(d, p) {
4757
- /*isMobile*/
4758
- d[3] || c.p(d, p);
4759
- },
4760
- d(d) {
4761
- d && G(t), c && c.d(), l = !1, f();
4762
- }
4763
- };
4764
- }
4765
- function Ho(e) {
4766
- let t, r = (
4767
- /*$_*/
4768
- e[2]("logoutButton") + ""
4769
- ), n;
4770
- return {
4771
- c() {
4772
- t = L("span"), n = le(r), A(t, "class", "PlayerLogoutText");
4773
- },
4774
- m(i, o) {
4775
- K(i, t, o), P(t, n);
4776
- },
4777
- p(i, o) {
4778
- o & /*$_*/
4779
- 4 && r !== (r = /*$_*/
4780
- i[2]("logoutButton") + "") && Qt(n, r);
4781
- },
4782
- d(i) {
4783
- i && G(t);
4784
- }
4785
- };
4786
- }
4787
- function Bo(e) {
4788
- let t;
4789
- function r(o, s) {
4790
- return (
4791
- /*buttonlocation*/
4792
- o[0] === "PlayerAccountMenu" ? wo : To
4793
- );
4794
- }
4795
- let n = r(e), i = n(e);
4796
- return {
4797
- c() {
4798
- t = L("div"), i.c();
4799
- },
4800
- m(o, s) {
4801
- K(o, t, s), i.m(t, null), e[15](t);
4802
- },
4803
- p(o, [s]) {
4804
- n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4805
- },
4806
- i: B,
4807
- o: B,
4808
- d(o) {
4809
- o && G(t), i.d(), e[15](null);
4810
- }
4811
- };
4812
- }
4813
- function Ao(e, t, r) {
4814
- let n;
4815
- jr(e, yo, (y) => r(2, n = y));
4816
- let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", d = !1, p, m = window.navigator.userAgent, _ = Ir(m) !== "PC";
4817
- const w = window.matchMedia("(min-width: 768px)"), O = () => {
4818
- fetch(f).then((U) => U.json()).then((U) => {
4819
- Object.keys(U).forEach((Me) => {
4820
- Gt(Me, U[Me]);
4821
- });
4822
- }).catch((U) => {
4823
- console.log(U);
4824
- });
4825
- };
4826
- Object.keys(Ft).forEach((y) => {
4827
- Gt(y, Ft[y]);
4828
- });
4829
- const x = () => {
4830
- let y = new Headers();
4831
- y.append("Content-type", "application/json"), y.append("X-SessionID", o);
4832
- let U = { method: "DELETE", headers: y };
4833
- fetch(`${i}/v1/player/session/player`, U).then((Me) => {
4834
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Eo("logged_out", {});
4835
- });
4836
- }, I = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(c)), d), H = () => {
4837
- xo(a);
4838
- };
4839
- rn(() => () => {
4840
- });
4841
- const R = () => x(), pe = () => x();
4842
- function Nr(y) {
4843
- Xe[y ? "unshift" : "push"](() => {
4844
- p = y, r(1, p);
4845
- });
4846
- }
4847
- return e.$$set = (y) => {
4848
- "endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, u = y.mbsource), "clientstyling" in y && r(10, h = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
4849
- }, e.$$.update = () => {
4850
- e.$$.dirty & /*endpoint, session, buttonlocation*/
4851
- 193 && i && o && s && I(), e.$$.dirty & /*lang*/
4852
- 256 && a && H(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4853
- 1026 && h && p && Dt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4854
- 1026 && h && p && Dt(p, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4855
- 2050 && l && p && vo(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4856
- 514 && u && p && _o(p, `${u}.Style`), e.$$.dirty & /*translationurl*/
4857
- 4096 && f && O();
4858
- }, [
4859
- s,
4860
- p,
4861
- n,
4862
- _,
4863
- w,
4864
- x,
4865
- i,
4866
- o,
4867
- a,
4868
- u,
4869
- h,
4870
- l,
4871
- f,
4872
- R,
4873
- pe,
4874
- Nr
4875
- ];
4876
- }
4877
- class Lr extends dn {
4878
- constructor(t) {
4879
- super(), fn(
4880
- this,
4881
- t,
4882
- Ao,
4883
- Bo,
4884
- kt,
4885
- {
4886
- endpoint: 6,
4887
- session: 7,
4888
- buttonlocation: 0,
4889
- lang: 8,
4890
- mbsource: 9,
4891
- clientstyling: 10,
4892
- clientstylingurl: 11,
4893
- translationurl: 12
4894
- },
4895
- So
4896
- );
4897
- }
4898
- get endpoint() {
4899
- return this.$$.ctx[6];
4900
- }
4901
- set endpoint(t) {
4902
- this.$$set({ endpoint: t }), N();
4903
- }
4904
- get session() {
4905
- return this.$$.ctx[7];
4906
- }
4907
- set session(t) {
4908
- this.$$set({ session: t }), N();
4909
- }
4910
- get buttonlocation() {
4911
- return this.$$.ctx[0];
4912
- }
4913
- set buttonlocation(t) {
4914
- this.$$set({ buttonlocation: t }), N();
4915
- }
4916
- get lang() {
4917
- return this.$$.ctx[8];
4918
- }
4919
- set lang(t) {
4920
- this.$$set({ lang: t }), N();
4921
- }
4922
- get mbsource() {
4923
- return this.$$.ctx[9];
4924
- }
4925
- set mbsource(t) {
4926
- this.$$set({ mbsource: t }), N();
4927
- }
4928
- get clientstyling() {
4929
- return this.$$.ctx[10];
4930
- }
4931
- set clientstyling(t) {
4932
- this.$$set({ clientstyling: t }), N();
4933
- }
4934
- get clientstylingurl() {
4935
- return this.$$.ctx[11];
4936
- }
4937
- set clientstylingurl(t) {
4938
- this.$$set({ clientstylingurl: t }), N();
4939
- }
4940
- get translationurl() {
4941
- return this.$$.ctx[12];
4942
- }
4943
- set translationurl(t) {
4944
- this.$$set({ translationurl: t }), N();
4945
- }
4946
- }
4947
- pn(Lr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4948
- const os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4949
- __proto__: null,
4950
- default: Lr
4951
- }, Symbol.toStringTag, { value: "Module" }));
4952
- export {
4953
- te as $,
4954
- pn as A,
4955
- yo as B,
4956
- Uo as C,
4957
- es as D,
4958
- Ro as E,
4959
- fe as F,
4960
- ns as G,
4961
- qo as H,
4962
- $o as I,
4963
- Io as J,
4964
- Yo as K,
4965
- an as L,
4966
- No as M,
4967
- Mo as N,
4968
- Lo as O,
4969
- Do as P,
4970
- Xo as Q,
4971
- jo as R,
4972
- dn as S,
4973
- Vo as T,
4974
- he as U,
4975
- ko as V,
4976
- Te as W,
4977
- rs as X,
4978
- Co as Y,
4979
- qr as Z,
4980
- Jo as _,
4981
- Hr as a,
4982
- Qo as a0,
4983
- zo as a1,
4984
- Oo as a2,
4985
- Dr as a3,
4986
- Ko as a4,
4987
- In as a5,
4988
- ts as a6,
4989
- Fo as a7,
4990
- Zo as a8,
4991
- is as a9,
4992
- os as aa,
4993
- Xr as b,
4994
- Qt as c,
4995
- G as d,
4996
- A as e,
4997
- N as f,
4998
- Go as g,
4999
- K as h,
5000
- fn as i,
5001
- P as j,
5002
- L as k,
5003
- qt as l,
5004
- zr as m,
5005
- B as n,
5006
- Wo as o,
5007
- jr as p,
5008
- Ir as q,
5009
- F as r,
5010
- kt as s,
5011
- le as t,
5012
- rn as u,
5013
- X as v,
5014
- Xe as w,
5015
- Dt as x,
5016
- vo as y,
5017
- _o as z
5018
- };