@everymatrix/player-account-controller 1.65.2 → 1.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-CgxHUYZx.js → GeneralLogout-BvHI6IRl.js} +1439 -1474
- package/components/{GeneralLogout-CYE3twI-.js → GeneralLogout-DC1eQria.js} +1458 -1493
- package/components/GeneralLogout-DweBl3EQ.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-BXBMy618.js → PlayerAccountBettingHistory-BTEzWQvN.js} +27 -27
- package/components/{PlayerAccountBettingHistory-B0IsJ01N.js → PlayerAccountBettingHistory-Bo3-gODs.js} +27 -27
- package/components/{PlayerAccountBettingHistory-BtDZukYI.cjs → PlayerAccountBettingHistory-DgHU9Jz9.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DrmVF6dX.js → PlayerAccountBiometrics-DRMe1Ngk.js} +22 -22
- package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-DXk7ouzk.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CCk_4MyI.js → PlayerAccountBiometrics-eJ0NsGhR.js} +22 -22
- package/components/{PlayerAccountClosure-B_xwOPds.js → PlayerAccountClosure-CenyN-4X.js} +17 -17
- package/components/{PlayerAccountClosure-UwL_V2IO.js → PlayerAccountClosure-D4FSDBR-.js} +17 -17
- package/components/{PlayerAccountClosure-DoZ91aH2.cjs → PlayerAccountClosure-DMF66IyF.cjs} +1 -1
- package/components/{PlayerAccountController-Dy_EYTXi.js → PlayerAccountController-CE3DCARp.js} +138 -138
- package/components/{PlayerAccountController-N9ebI09s.cjs → PlayerAccountController-CJqLJFq9.cjs} +1 -1
- package/components/{PlayerAccountController-Du23H-Ha.js → PlayerAccountController-_H7Suh7X.js} +140 -140
- package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-C5-wP3x8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BF1Dd_Yw.js → PlayerAccountGamingLimits-bgH5yldD.js} +19 -19
- package/components/{PlayerAccountGamingLimits-BKHRQo_P.js → PlayerAccountGamingLimits-qvefhQXf.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js → PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js} +53 -53
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js → PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js → PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js} +415 -413
- package/components/{PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js → PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js} +415 -413
- package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js → PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs → PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Br4h7_eS.js → PlayerAccountGamingLimitsHistory2-CkXX1K7L.js} +46 -46
- package/components/{PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js → PlayerAccountGamingLimitsInfoCard-ByqimrlU.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js → PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js → PlayerAccountGamingLimitsPage2Gm16-6oqp3QDs.js} +101 -101
- package/components/{PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js → PlayerAccountGamingLimitsPage2Gm16-B7VpqKm8.js} +118 -118
- package/components/{PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs → PlayerAccountGamingLimitsPage2Gm16-BeMRmv-L.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-DTb6cpuT.js → PlayerAccountGamingLimitsPopup-Bhe4pnzt.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Dz9ROowj.js → PlayerAccountGamingLimitsPopup-LjmHojBJ.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js → PlayerAccountGamingLimitsWrapper2-BnAOuyMV.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-B1gV6va3.js → PlayerAccountGamingLimitsWrapper2-BnahUpgU.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs → PlayerAccountGamingLimitsWrapper2-DNBhGOWx.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js → PlayerAccountGeneralConfirmationModal-BXvbser8.js} +95 -95
- package/components/{PlayerAccountGeneralConfirmationModal-lHX_vmhB.js → PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js} +95 -95
- package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +1 -0
- package/components/{PlayerAccountMenu-BZnkRiU-.cjs → PlayerAccountMenu-BZSV920e.cjs} +1 -1
- package/components/{PlayerAccountMenu-D4d9TQsD.js → PlayerAccountMenu-COhw6RUO.js} +29 -29
- package/components/{PlayerAccountMenu-j3TA2Osb.js → PlayerAccountMenu-CXkbGum8.js} +29 -29
- package/components/{PlayerAccountModal-Cbpkb5P6.js → PlayerAccountModal-BlJKMVDD.js} +44 -44
- package/components/{PlayerAccountModal-Co5a_OZZ.js → PlayerAccountModal-C2BAyjz8.js} +44 -44
- package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal-lwDOdDa4.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CkbUxjuk.js → PlayerAccountNotifications-Br27rQuw.js} +35 -35
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-CzMMRPni.cjs} +1 -1
- package/components/{PlayerAccountNotifications-f0A-2obd.js → PlayerAccountNotifications-YIzJUJtW.js} +120 -120
- package/components/{PlayerAccountSelfExclusion-tbEoY1fJ.cjs → PlayerAccountSelfExclusion-DOBXVbGp.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusion-eVbVBZeH.js → PlayerAccountSelfExclusion-DcjyVbyI.js} +1305 -1303
- package/components/{PlayerAccountSelfExclusion-Dkhb_rb2.js → PlayerAccountSelfExclusion-r_y8NKk9.js} +1042 -1040
- package/components/{PlayerAccountTimeout-B7te1qrD.cjs → PlayerAccountTimeout-BTWCScSA.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BF6i8Aq1.js → PlayerAccountTimeout-Bj1lGwNr.js} +150 -150
- package/components/{PlayerAccountTimeout-CgPnhFC2.js → PlayerAccountTimeout-D2BFCkW4.js} +150 -150
- package/components/{PlayerAccountTransactionsHistory-DtHWhYf2.js → PlayerAccountTransactionsHistory-BTZrAMpd.js} +1533 -1515
- package/components/{PlayerAccountTransactionsHistory-_Sm0nfWr.cjs → PlayerAccountTransactionsHistory-CLtNxF1E.cjs} +253 -253
- package/components/{PlayerAccountTransactionsHistory-sQOFDhsn.js → PlayerAccountTransactionsHistory-DamCdY8r.js} +1922 -1944
- package/components/{PlayerActiveBonuses-CVhSMdRf.cjs → PlayerActiveBonuses-C7G2b4x9.cjs} +1 -1
- package/components/{PlayerActiveBonuses-Cakyx19i.js → PlayerActiveBonuses-TAb_daVK.js} +54 -54
- package/components/{PlayerActiveBonuses-uCEkihFw.js → PlayerActiveBonuses-f9Tnt64h.js} +52 -52
- package/components/{PlayerBonusCard-6xOKi384.js → PlayerBonusCard-CBO8neP8.js} +54 -54
- package/components/{PlayerBonusCard-BNNcjGWn.cjs → PlayerBonusCard-nwlvuWsq.cjs} +1 -1
- package/components/{PlayerBonusCard-CXbETnCF.js → PlayerBonusCard-uudC6LGS.js} +54 -54
- package/components/{PlayerBonusHistory-B7mav-9J.js → PlayerBonusHistory-BhFNlaSf.js} +30 -30
- package/components/{PlayerBonusHistory-ClKYGr0v.js → PlayerBonusHistory-DqURmCme.js} +30 -30
- package/components/{PlayerBonusHistory-CIDfTu9W.cjs → PlayerBonusHistory-DvfiMpJt.cjs} +1 -1
- package/components/{PlayerChangePassword-ChwKfBC6.js → PlayerChangePassword-BUbXMFnB.js} +66 -66
- package/components/{PlayerChangePassword-LgjKzYU1.cjs → PlayerChangePassword-D0aYOkoZ.cjs} +1 -1
- package/components/{PlayerChangePassword-C2ZoKuCq.js → PlayerChangePassword-D4DzBZed.js} +66 -66
- package/components/{PlayerDeposit-VLcz0tQH.js → PlayerDeposit-BB64hmyO.js} +29 -29
- package/components/{PlayerDeposit-Dzg8Ltb1.cjs → PlayerDeposit-DAFmH9HW.cjs} +1 -1
- package/components/{PlayerDeposit-BPZ5wCAZ.js → PlayerDeposit-lfkc7jOj.js} +29 -29
- package/components/{PlayerGamingHistory-Cqze0dx8.cjs → PlayerGamingHistory-CsAD_iks.cjs} +1 -1
- package/components/{PlayerGamingHistory-CWN1CL1Y.js → PlayerGamingHistory-DxVgYcre.js} +63 -63
- package/components/{PlayerGamingHistory-C00k3Mj3.js → PlayerGamingHistory-e4Kr6TRi.js} +63 -63
- package/components/{PlayerPendingWithdrawals-DeNKdUgJ.js → PlayerPendingWithdrawals-B6qiUkpB.js} +26 -26
- package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-DbuXpIXl.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-go7okUzL.js → PlayerPendingWithdrawals-QAaJbf_-.js} +26 -26
- package/components/PlayerProfileInfo-B-Cly6nt.js +2463 -0
- package/components/PlayerProfileInfo-DFtxyN-C.cjs +4 -0
- package/components/PlayerProfileInfo-DsBGGdCC.js +2426 -0
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-CFJVJn17.cjs} +1 -1
- package/components/{PlayerRealityCheck-DMNAglZN.js → PlayerRealityCheck-CyxiiYoi.js} +44 -44
- package/components/{PlayerRealityCheck-C2TUMl9-.js → PlayerRealityCheck-DQ-_y3IT.js} +45 -45
- package/components/{PlayerTransactionHistory-A-aVfyoc.js → PlayerTransactionHistory-6G6ws2ky.js} +19 -19
- package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-BOtRm_b6.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BFV_XJw9.js → PlayerTransactionHistory-BjRhtwD4.js} +19 -19
- package/components/{PlayerWithdrawal-B_wQZI_t.js → PlayerWithdrawal-BIBZrL0i.js} +19 -19
- package/components/{PlayerWithdrawal-CTttZqLr.js → PlayerWithdrawal-CuR6Pb4o.js} +19 -19
- package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-OBRjEIH9.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_9-CNtARK8C.js → checkbox-group-input_9-BwrWZeLB.js} +92 -90
- package/stencil/checkbox-group-input_9-CImFZbCv.cjs +2 -0
- package/stencil/{checkbox-group-input_9-BBp8uUcZ.js → checkbox-group-input_9-DdpCHvWb.js} +92 -90
- package/stencil/{general-input-Bv0i36QX.js → general-input-BDPI_fW2.js} +1590 -1592
- package/stencil/{general-input-wub-4Sk2.js → general-input-DpokfhP6.js} +1592 -1594
- package/stencil/{general-input-Bcw5i0ZC.cjs → general-input-y1CIV_-r.cjs} +254 -254
- package/stencil/{index-1ef3a64c-DsTe-fF4.js → index-1ef3a64c-B1Hda3TY.js} +185 -185
- package/stencil/index-1ef3a64c-CCWt3IAA.cjs +1 -0
- package/stencil/{index-1ef3a64c-BNosNJnU.js → index-1ef3a64c-Dd-0nq4l.js} +192 -192
- package/stencil/index-7c5e707a-8-4_dLFT.js +643 -0
- package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-CuTkyLaW.js} +209 -209
- package/stencil/index-7c5e707a-nBsW029h.cjs +1 -0
- package/stencil/index-9c0f6c58-DbSOntvG.cjs +1 -0
- package/stencil/{index-9c0f6c58-BNoMpTuB.js → index-9c0f6c58-NlVKpLut.js} +180 -180
- package/stencil/{index-9c0f6c58-pr1WGVFu.js → index-9c0f6c58-RPoO1End.js} +176 -176
- package/stencil/{index-9cd44522-CsUuNLBU.js → index-9cd44522-Cto_o6sQ.js} +202 -202
- package/stencil/{index-9cd44522-Bs5-rSFb.js → index-9cd44522-DrlRFYrB.js} +196 -196
- package/stencil/index-9cd44522-lYql7AfG.cjs +1 -0
- package/stencil/index-b2193545-BXNomIzV.js +519 -0
- package/stencil/index-b2193545-CYe2oVMy.js +503 -0
- package/stencil/index-b2193545-DxRobzZI.cjs +1 -0
- package/stencil/locale-CB060R77.cjs +1 -0
- package/stencil/{locale-ioQf6ZrW.js → locale-Cxpe53Ym.js} +9 -3
- package/stencil/{password-input_2-BMAMY-nX.cjs → password-input_2-BFXxkcXV.cjs} +2 -2
- package/stencil/{password-input_2-ClvpWVfZ.js → password-input_2-CqbOPSSZ.js} +26 -24
- package/stencil/{password-input_2-CJq7wtMJ.js → password-input_2-DQst8UHp.js} +26 -24
- package/stencil/{player-change-password-gm2-5cb5c6c1-BqiJMiOw.js → player-change-password-gm2-5cb5c6c1-BhDKCfuN.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-D-Az5JzJ.js → player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-C1DPqzV1.cjs → player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs} +1 -1
- package/stencil/{player-change-password-gm2-AbQzJtHf.js → player-change-password-gm2-Bg9HNK0A.js} +1 -1
- package/stencil/{player-change-password-gm2-Cr2Rfbg8.js → player-change-password-gm2-CNOsEIfo.js} +1 -1
- package/stencil/{player-change-password-gm2-DSVGYS4v.cjs → player-change-password-gm2-COsfG6W5.cjs} +1 -1
- package/stencil/{player-kyc-verification-CUhrMPde.js → player-kyc-verification-Cxnz1raa.js} +79 -76
- package/stencil/{player-kyc-verification-DPUx1txP.js → player-kyc-verification-DA_O1Dqu.js} +36 -33
- package/stencil/player-kyc-verification-qKWuqiUm.cjs +180 -0
- package/stencil/{toggle-checkbox-input-CYU_o2ph.js → toggle-checkbox-input-B4lb8oMh.js} +2 -2
- package/stencil/{toggle-checkbox-input-Dsxm6_EO.cjs → toggle-checkbox-input-BhQAILyC.cjs} +1 -1
- package/stencil/{toggle-checkbox-input-BlXLUVpo.js → toggle-checkbox-input-rocW3Yvz.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-CZJ4UoDJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-D5Bub0nv.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-dFWe5qbW.cjs} +1 -1
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BH5oLkn9.cjs} +1 -1
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CZ5yC1WO.js} +2 -2
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-vLKdvRqw.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-BMWb-WJE.js} +45 -45
- package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-ByE9O4TW.js} +45 -45
- package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-DGTrOlxS.cjs} +2 -2
- package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-BU4-cXt6.js} +11 -11
- package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-CXBKXul8.js} +14 -14
- package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-DLLIZ5Ck.cjs} +1 -1
- package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
- package/components/PlayerProfileInfo-C--m-_0F.js +0 -2419
- package/components/PlayerProfileInfo-CD0xjooF.js +0 -2383
- package/components/PlayerProfileInfo-D5YZWH2T.cjs +0 -4
- package/stencil/checkbox-group-input_9-CQr3DUDJ.cjs +0 -2
- package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
- package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
- package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
- package/stencil/index-9c0f6c58-DkHHwpww.cjs +0 -1
- package/stencil/index-9cd44522-D6uuyxLp.cjs +0 -1
- package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
- package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
- package/stencil/index-b2193545-DePry399.js +0 -503
- package/stencil/locale-BB2iZ4t0.cjs +0 -1
- package/stencil/player-kyc-verification-DAy-szI5.cjs +0 -180
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
6
|
-
e[
|
|
3
|
+
const Tn = (e) => e;
|
|
4
|
+
function wn(e, t) {
|
|
5
|
+
for (const n in t)
|
|
6
|
+
e[n] = t[n];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Lt(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function st() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function D(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach(Lt);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ue(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Nt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let de;
|
|
28
|
+
function po(e, t) {
|
|
29
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Hn(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Mt(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
|
-
for (const
|
|
37
|
-
|
|
36
|
+
for (const r of t)
|
|
37
|
+
r(void 0);
|
|
38
38
|
return H;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const n = e.subscribe(...t);
|
|
41
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function Bn(e, t, n) {
|
|
44
|
+
e.$$.on_destroy.push(Mt(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mo(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Ct(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] &&
|
|
52
|
+
function Ct(e, t, n, r) {
|
|
53
|
+
return e[1] && r ? wn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (e[2] &&
|
|
57
|
-
const i = e[2](n
|
|
55
|
+
function bo(e, t, n, r) {
|
|
56
|
+
if (e[2] && r) {
|
|
57
|
+
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
@@ -67,40 +67,40 @@ function _o(e, t, r, n) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function go(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const a =
|
|
72
|
+
const a = Ct(t, n, r, o);
|
|
73
73
|
e.p(a, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function yo(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
|
-
const t = [],
|
|
79
|
-
for (let
|
|
80
|
-
t[
|
|
78
|
+
const t = [], n = e.ctx.length / 32;
|
|
79
|
+
for (let r = 0; r < n; r++)
|
|
80
|
+
t[r] = -1;
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _o(e) {
|
|
86
86
|
return e ?? "";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return e &&
|
|
88
|
+
function vo(e) {
|
|
89
|
+
return e && ue(e.destroy) ? e.destroy : H;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
let
|
|
91
|
+
const $t = typeof window < "u";
|
|
92
|
+
let An = $t ? () => window.performance.now() : () => Date.now(), tt = $t ? (e) => requestAnimationFrame(e) : H;
|
|
93
93
|
const X = /* @__PURE__ */ new Set();
|
|
94
|
-
function
|
|
94
|
+
function Rt(e) {
|
|
95
95
|
X.forEach((t) => {
|
|
96
96
|
t.c(e) || (X.delete(t), t.f());
|
|
97
|
-
}), X.size !== 0 &&
|
|
97
|
+
}), X.size !== 0 && tt(Rt);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Pn(e) {
|
|
100
100
|
let t;
|
|
101
|
-
return X.size === 0 &&
|
|
102
|
-
promise: new Promise((
|
|
103
|
-
X.add(t = { c: e, f:
|
|
101
|
+
return X.size === 0 && tt(Rt), {
|
|
102
|
+
promise: new Promise((n) => {
|
|
103
|
+
X.add(t = { c: e, f: n });
|
|
104
104
|
}),
|
|
105
105
|
abort() {
|
|
106
106
|
X.delete(t);
|
|
@@ -110,14 +110,14 @@ function Lr(e) {
|
|
|
110
110
|
function A(e, t) {
|
|
111
111
|
e.appendChild(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
116
|
-
const i =
|
|
117
|
-
i.id = t, i.textContent =
|
|
113
|
+
function On(e, t, n) {
|
|
114
|
+
const r = nt(e);
|
|
115
|
+
if (!r.getElementById(t)) {
|
|
116
|
+
const i = L("style");
|
|
117
|
+
i.id = t, i.textContent = n, Ut(r, i);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function nt(e) {
|
|
121
121
|
if (!e)
|
|
122
122
|
return document;
|
|
123
123
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -127,339 +127,339 @@ function at(e) {
|
|
|
127
127
|
t
|
|
128
128
|
) : e.ownerDocument;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const t =
|
|
132
|
-
return t.textContent = "/* empty */",
|
|
130
|
+
function In(e) {
|
|
131
|
+
const t = L("style");
|
|
132
|
+
return t.textContent = "/* empty */", Ut(nt(e), t), t.sheet;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ut(e, t) {
|
|
135
135
|
return A(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
e.insertBefore(t,
|
|
141
|
+
function he(e, t, n) {
|
|
142
|
+
e.insertBefore(t, n || null);
|
|
143
143
|
}
|
|
144
144
|
function G(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
for (let
|
|
149
|
-
e[
|
|
147
|
+
function xo(e, t) {
|
|
148
|
+
for (let n = 0; n < e.length; n += 1)
|
|
149
|
+
e[n] && e[n].d(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function L(e) {
|
|
152
152
|
return document.createElement(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function te(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
157
|
function le(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ln() {
|
|
161
161
|
return le(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Eo() {
|
|
164
164
|
return le("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return e.addEventListener(t,
|
|
166
|
+
function Dt(e, t, n, r) {
|
|
167
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function So(e) {
|
|
170
170
|
return function(t) {
|
|
171
171
|
return t.preventDefault(), e.call(this, t);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function B(e, t,
|
|
175
|
-
|
|
174
|
+
function B(e, t, n) {
|
|
175
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const
|
|
179
|
-
|
|
177
|
+
function To(e, t, n) {
|
|
178
|
+
const r = t.toLowerCase();
|
|
179
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function wo(e) {
|
|
182
182
|
let t;
|
|
183
183
|
return {
|
|
184
184
|
/* push */
|
|
185
|
-
p(...
|
|
186
|
-
t =
|
|
185
|
+
p(...n) {
|
|
186
|
+
t = n, t.forEach((r) => e.push(r));
|
|
187
187
|
},
|
|
188
188
|
/* remove */
|
|
189
189
|
r() {
|
|
190
|
-
t.forEach((
|
|
190
|
+
t.forEach((n) => e.splice(e.indexOf(n), 1));
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ho(e) {
|
|
195
195
|
return e === "" ? null : +e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Nn(e) {
|
|
198
198
|
return Array.from(e.childNodes);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Gt(e, t) {
|
|
201
201
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
202
202
|
t);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Bo(e, t) {
|
|
205
205
|
e.value = t ?? "";
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function Mn(e, t, n, r) {
|
|
208
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
for (let
|
|
212
|
-
const i = e.options[
|
|
210
|
+
function Ao(e, t, n) {
|
|
211
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
212
|
+
const i = e.options[r];
|
|
213
213
|
if (i.__value === t) {
|
|
214
214
|
i.selected = !0;
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
(!
|
|
218
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Po(e) {
|
|
221
221
|
const t = e.querySelector(":checked");
|
|
222
222
|
return t && t.__value;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
e.classList.toggle(t, !!
|
|
224
|
+
function Oo(e, t, n) {
|
|
225
|
+
e.classList.toggle(t, !!n);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Cn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function $n(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
234
|
-
(
|
|
235
|
-
t[
|
|
234
|
+
(n) => {
|
|
235
|
+
t[n.slot || "default"] = !0;
|
|
236
236
|
}
|
|
237
237
|
), t;
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
-
let t = 5381,
|
|
243
|
-
for (;
|
|
244
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
239
|
+
const xe = /* @__PURE__ */ new Map();
|
|
240
|
+
let Ee = 0;
|
|
241
|
+
function Rn(e) {
|
|
242
|
+
let t = 5381, n = e.length;
|
|
243
|
+
for (; n--; )
|
|
244
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return
|
|
247
|
+
function Un(e, t) {
|
|
248
|
+
const n = { stylesheet: In(t), rules: {} };
|
|
249
|
+
return xe.set(e, n), n;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const
|
|
251
|
+
function at(e, t, n, r, i, o, a, s = 0) {
|
|
252
|
+
const h = 16.666 / r;
|
|
253
253
|
let u = `{
|
|
254
254
|
`;
|
|
255
|
-
for (let
|
|
256
|
-
const
|
|
257
|
-
u +=
|
|
255
|
+
for (let x = 0; x <= 1; x += h) {
|
|
256
|
+
const T = t + (n - t) * o(x);
|
|
257
|
+
u += x * 100 + `%{${a(T, 1 - T)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
}`,
|
|
262
|
-
|
|
260
|
+
const l = u + `100% {${a(n, 1 - n)}}
|
|
261
|
+
}`, c = `__svelte_${Rn(l)}_${s}`, f = nt(e), { stylesheet: p, rules: d } = xe.get(f) || Un(f, e);
|
|
262
|
+
d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${l}`, p.cssRules.length));
|
|
263
263
|
const m = e.style.animation || "";
|
|
264
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
264
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${c} ${r}ms linear ${i}ms 1 both`, Ee += 1, c;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
266
|
+
function Dn(e, t) {
|
|
267
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
268
268
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
|
-
), i =
|
|
271
|
-
i && (e.style.animation =
|
|
270
|
+
), i = n.length - r.length;
|
|
271
|
+
i && (e.style.animation = r.join(", "), Ee -= i, Ee || Gn());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
function Gn() {
|
|
274
|
+
tt(() => {
|
|
275
|
+
Ee || (xe.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
277
277
|
t && G(t);
|
|
278
|
-
}),
|
|
278
|
+
}), xe.clear());
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
function
|
|
283
|
-
|
|
281
|
+
let oe;
|
|
282
|
+
function ie(e) {
|
|
283
|
+
oe = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
if (!
|
|
285
|
+
function Fn() {
|
|
286
|
+
if (!oe)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
|
-
return
|
|
288
|
+
return oe;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function jn(e) {
|
|
291
|
+
Fn().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const V = [],
|
|
293
|
+
const V = [], Ge = [];
|
|
294
294
|
let W = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const ut = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let Fe = !1;
|
|
297
|
+
function jt() {
|
|
298
|
+
Fe || (Fe = !0, Ft.then(I));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function Io() {
|
|
301
|
+
return jt(), Ft;
|
|
302
302
|
}
|
|
303
303
|
function Se(e) {
|
|
304
304
|
W.push(e);
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const Le = /* @__PURE__ */ new Set();
|
|
307
307
|
let j = 0;
|
|
308
308
|
function I() {
|
|
309
309
|
if (j !== 0)
|
|
310
310
|
return;
|
|
311
|
-
const e =
|
|
311
|
+
const e = oe;
|
|
312
312
|
do {
|
|
313
313
|
try {
|
|
314
314
|
for (; j < V.length; ) {
|
|
315
315
|
const t = V[j];
|
|
316
|
-
j++,
|
|
316
|
+
j++, ie(t), kn(t.$$);
|
|
317
317
|
}
|
|
318
318
|
} catch (t) {
|
|
319
319
|
throw V.length = 0, j = 0, t;
|
|
320
320
|
}
|
|
321
|
-
for (
|
|
322
|
-
|
|
321
|
+
for (ie(null), V.length = 0, j = 0; Ge.length; )
|
|
322
|
+
Ge.pop()();
|
|
323
323
|
for (let t = 0; t < W.length; t += 1) {
|
|
324
|
-
const
|
|
325
|
-
|
|
324
|
+
const n = W[t];
|
|
325
|
+
Le.has(n) || (Le.add(n), n());
|
|
326
326
|
}
|
|
327
327
|
W.length = 0;
|
|
328
328
|
} while (V.length);
|
|
329
|
-
for (;
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
for (; ut.length; )
|
|
330
|
+
ut.pop()();
|
|
331
|
+
Fe = !1, Le.clear(), ie(e);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function kn(e) {
|
|
334
334
|
if (e.fragment !== null) {
|
|
335
335
|
e.update(), D(e.before_update);
|
|
336
336
|
const t = e.dirty;
|
|
337
337
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
const t = [],
|
|
342
|
-
W.forEach((
|
|
340
|
+
function Vn(e) {
|
|
341
|
+
const t = [], n = [];
|
|
342
|
+
W.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), W = t;
|
|
343
343
|
}
|
|
344
|
-
let
|
|
345
|
-
function
|
|
346
|
-
return
|
|
347
|
-
|
|
348
|
-
})),
|
|
344
|
+
let ne;
|
|
345
|
+
function Xn() {
|
|
346
|
+
return ne || (ne = Promise.resolve(), ne.then(() => {
|
|
347
|
+
ne = null;
|
|
348
|
+
})), ne;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
e.dispatchEvent(
|
|
350
|
+
function Ne(e, t, n) {
|
|
351
|
+
e.dispatchEvent(Cn(`${t ? "intro" : "outro"}${n}`));
|
|
352
352
|
}
|
|
353
353
|
const be = /* @__PURE__ */ new Set();
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
|
|
354
|
+
let N;
|
|
355
|
+
function Lo() {
|
|
356
|
+
N = {
|
|
357
357
|
r: 0,
|
|
358
358
|
c: [],
|
|
359
|
-
p:
|
|
359
|
+
p: N
|
|
360
360
|
// parent group
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
363
|
+
function No() {
|
|
364
|
+
N.r || D(N.c), N = N.p;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Wn(e, t) {
|
|
367
367
|
e && e.i && (be.delete(e), e.i(t));
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Mo(e, t, n, r) {
|
|
370
370
|
if (e && e.o) {
|
|
371
371
|
if (be.has(e))
|
|
372
372
|
return;
|
|
373
|
-
be.add(e),
|
|
374
|
-
be.delete(e),
|
|
373
|
+
be.add(e), N.c.push(() => {
|
|
374
|
+
be.delete(e), r && (n && e.d(1), r());
|
|
375
375
|
}), e.o(t);
|
|
376
376
|
} else
|
|
377
|
-
|
|
377
|
+
r && r();
|
|
378
378
|
}
|
|
379
|
-
const
|
|
380
|
-
function
|
|
381
|
-
let o = t(e,
|
|
382
|
-
function
|
|
383
|
-
u &&
|
|
379
|
+
const zn = { duration: 0 };
|
|
380
|
+
function Co(e, t, n, r) {
|
|
381
|
+
let o = t(e, n, { direction: "both" }), a = r ? 0 : 1, s = null, h = null, u = null, l;
|
|
382
|
+
function c() {
|
|
383
|
+
u && Dn(e, u);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
385
|
+
function f(d, m) {
|
|
386
|
+
const x = (
|
|
387
387
|
/** @type {Program['d']} */
|
|
388
|
-
|
|
388
|
+
d.b - a
|
|
389
389
|
);
|
|
390
|
-
return m *= Math.abs(
|
|
390
|
+
return m *= Math.abs(x), {
|
|
391
391
|
a,
|
|
392
|
-
b:
|
|
393
|
-
d:
|
|
392
|
+
b: d.b,
|
|
393
|
+
d: x,
|
|
394
394
|
duration: m,
|
|
395
|
-
start:
|
|
396
|
-
end:
|
|
397
|
-
group:
|
|
395
|
+
start: d.start,
|
|
396
|
+
end: d.start + m,
|
|
397
|
+
group: d.group
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
function d
|
|
400
|
+
function p(d) {
|
|
401
401
|
const {
|
|
402
402
|
delay: m = 0,
|
|
403
|
-
duration:
|
|
404
|
-
easing:
|
|
403
|
+
duration: x = 300,
|
|
404
|
+
easing: T = Tn,
|
|
405
405
|
tick: P = H,
|
|
406
|
-
css:
|
|
407
|
-
} = o ||
|
|
408
|
-
start:
|
|
409
|
-
b:
|
|
406
|
+
css: E
|
|
407
|
+
} = o || zn, O = {
|
|
408
|
+
start: An() + m,
|
|
409
|
+
b: d
|
|
410
410
|
};
|
|
411
|
-
|
|
412
|
-
e.inert, e.inert = !0)), s ||
|
|
413
|
-
if (
|
|
411
|
+
d || (O.group = N, N.r += 1), "inert" in e && (d ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
412
|
+
e.inert, e.inert = !0)), s || h ? h = O : (E && (c(), u = at(e, a, d, x, m, T, E)), d && P(0, 1), s = f(O, x), Se(() => Ne(e, d, "start")), Pn((w) => {
|
|
413
|
+
if (h && w > h.start && (s = f(h, x), h = null, Ne(e, s.b, "start"), E && (c(), u = at(
|
|
414
414
|
e,
|
|
415
415
|
a,
|
|
416
416
|
s.b,
|
|
417
417
|
s.duration,
|
|
418
418
|
0,
|
|
419
|
-
|
|
419
|
+
T,
|
|
420
420
|
o.css
|
|
421
421
|
))), s) {
|
|
422
|
-
if (
|
|
423
|
-
P(a = s.b, 1 - a),
|
|
424
|
-
else if (
|
|
425
|
-
const $ =
|
|
426
|
-
a = s.a + s.d *
|
|
422
|
+
if (w >= s.end)
|
|
423
|
+
P(a = s.b, 1 - a), Ne(e, s.b, "end"), h || (s.b ? c() : --s.group.r || D(s.group.c)), s = null;
|
|
424
|
+
else if (w >= s.start) {
|
|
425
|
+
const $ = w - s.start;
|
|
426
|
+
a = s.a + s.d * T($ / s.duration), P(a, 1 - a);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
return !!(s ||
|
|
429
|
+
return !!(s || h);
|
|
430
430
|
}));
|
|
431
431
|
}
|
|
432
432
|
return {
|
|
433
|
-
run(
|
|
434
|
-
|
|
435
|
-
o = o({ direction:
|
|
436
|
-
}) : d
|
|
433
|
+
run(d) {
|
|
434
|
+
ue(o) ? Xn().then(() => {
|
|
435
|
+
o = o({ direction: d ? "in" : "out" }), p(d);
|
|
436
|
+
}) : p(d);
|
|
437
437
|
},
|
|
438
438
|
end() {
|
|
439
|
-
|
|
439
|
+
c(), s = h = null;
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function $o(e) {
|
|
444
444
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
const { fragment:
|
|
448
|
-
|
|
449
|
-
const o = e.$$.on_mount.map(
|
|
446
|
+
function Zn(e, t, n) {
|
|
447
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
448
|
+
r && r.m(t, n), Se(() => {
|
|
449
|
+
const o = e.$$.on_mount.map(Lt).filter(ue);
|
|
450
450
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
|
|
451
451
|
}), i.forEach(Se);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
|
|
453
|
+
function qn(e, t) {
|
|
454
|
+
const n = e.$$;
|
|
455
|
+
n.fragment !== null && (Vn(n.after_update), D(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
457
|
+
function Qn(e, t) {
|
|
458
|
+
e.$$.dirty[0] === -1 && (V.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
const
|
|
462
|
-
|
|
460
|
+
function Jn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
461
|
+
const h = oe;
|
|
462
|
+
ie(e);
|
|
463
463
|
const u = e.$$ = {
|
|
464
464
|
fragment: null,
|
|
465
465
|
ctx: [],
|
|
@@ -467,37 +467,37 @@ function en(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
467
467
|
props: o,
|
|
468
468
|
update: H,
|
|
469
469
|
not_equal: i,
|
|
470
|
-
bound:
|
|
470
|
+
bound: st(),
|
|
471
471
|
// lifecycle
|
|
472
472
|
on_mount: [],
|
|
473
473
|
on_destroy: [],
|
|
474
474
|
on_disconnect: [],
|
|
475
475
|
before_update: [],
|
|
476
476
|
after_update: [],
|
|
477
|
-
context: new Map(t.context || (
|
|
477
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
478
478
|
// everything else
|
|
479
|
-
callbacks:
|
|
479
|
+
callbacks: st(),
|
|
480
480
|
dirty: s,
|
|
481
481
|
skip_bound: !1,
|
|
482
|
-
root: t.target ||
|
|
482
|
+
root: t.target || h.$$.root
|
|
483
483
|
};
|
|
484
484
|
a && a(u.root);
|
|
485
|
-
let
|
|
486
|
-
if (u.ctx =
|
|
487
|
-
const
|
|
488
|
-
return u.ctx && i(u.ctx[
|
|
489
|
-
}) : [], u.update(),
|
|
485
|
+
let l = !1;
|
|
486
|
+
if (u.ctx = n ? n(e, t.props || {}, (c, f, ...p) => {
|
|
487
|
+
const d = p.length ? p[0] : f;
|
|
488
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && Qn(e, c)), f;
|
|
489
|
+
}) : [], u.update(), l = !0, D(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
490
490
|
if (t.hydrate) {
|
|
491
|
-
const
|
|
492
|
-
u.fragment && u.fragment.l(
|
|
491
|
+
const c = Nn(t.target);
|
|
492
|
+
u.fragment && u.fragment.l(c), c.forEach(G);
|
|
493
493
|
} else
|
|
494
494
|
u.fragment && u.fragment.c();
|
|
495
|
-
t.intro &&
|
|
495
|
+
t.intro && Wn(e.$$.fragment), Zn(e, t.target, t.anchor), I();
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
ie(h);
|
|
498
498
|
}
|
|
499
|
-
let
|
|
500
|
-
typeof HTMLElement == "function" && (
|
|
499
|
+
let kt;
|
|
500
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
501
501
|
/** The Svelte component constructor */
|
|
502
502
|
$$ctor;
|
|
503
503
|
/** Slots */
|
|
@@ -516,20 +516,20 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
516
516
|
$$l = {};
|
|
517
517
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
518
518
|
$$l_u = /* @__PURE__ */ new Map();
|
|
519
|
-
constructor(e, t,
|
|
520
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
519
|
+
constructor(e, t, n) {
|
|
520
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
521
521
|
}
|
|
522
|
-
addEventListener(e, t,
|
|
522
|
+
addEventListener(e, t, n) {
|
|
523
523
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
524
|
-
const
|
|
525
|
-
this.$$l_u.set(t,
|
|
524
|
+
const r = this.$$c.$on(e, t);
|
|
525
|
+
this.$$l_u.set(t, r);
|
|
526
526
|
}
|
|
527
|
-
super.addEventListener(e, t,
|
|
527
|
+
super.addEventListener(e, t, n);
|
|
528
528
|
}
|
|
529
|
-
removeEventListener(e, t,
|
|
530
|
-
if (super.removeEventListener(e, t,
|
|
531
|
-
const
|
|
532
|
-
|
|
529
|
+
removeEventListener(e, t, n) {
|
|
530
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
531
|
+
const r = this.$$l_u.get(t);
|
|
532
|
+
r && (r(), this.$$l_u.delete(t));
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
async connectedCallback() {
|
|
@@ -539,29 +539,29 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
539
539
|
let o;
|
|
540
540
|
return {
|
|
541
541
|
c: function() {
|
|
542
|
-
o =
|
|
542
|
+
o = L("slot"), i !== "default" && B(o, "name", i);
|
|
543
543
|
},
|
|
544
544
|
/**
|
|
545
545
|
* @param {HTMLElement} target
|
|
546
546
|
* @param {HTMLElement} [anchor]
|
|
547
547
|
*/
|
|
548
|
-
m: function(
|
|
549
|
-
|
|
548
|
+
m: function(h, u) {
|
|
549
|
+
he(h, o, u);
|
|
550
550
|
},
|
|
551
|
-
d: function(
|
|
552
|
-
|
|
551
|
+
d: function(h) {
|
|
552
|
+
h && G(o);
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
557
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
558
558
|
return;
|
|
559
|
-
const t = {},
|
|
559
|
+
const t = {}, n = $n(this);
|
|
560
560
|
for (const i of this.$$s)
|
|
561
|
-
i in
|
|
561
|
+
i in n && (t[i] = [e(i)]);
|
|
562
562
|
for (const i of this.attributes) {
|
|
563
563
|
const o = this.$$g_p(i.name);
|
|
564
|
-
o in this.$$d || (this.$$d[o] =
|
|
564
|
+
o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
|
|
565
565
|
}
|
|
566
566
|
for (const i in this.$$p_d)
|
|
567
567
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -575,11 +575,11 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
|
-
const
|
|
578
|
+
const r = () => {
|
|
579
579
|
this.$$r = !0;
|
|
580
580
|
for (const i in this.$$p_d)
|
|
581
581
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
582
|
-
const o =
|
|
582
|
+
const o = ge(
|
|
583
583
|
i,
|
|
584
584
|
this.$$d[i],
|
|
585
585
|
this.$$p_d,
|
|
@@ -589,7 +589,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
589
589
|
}
|
|
590
590
|
this.$$r = !1;
|
|
591
591
|
};
|
|
592
|
-
this.$$c.$$.after_update.push(
|
|
592
|
+
this.$$c.$$.after_update.push(r), r();
|
|
593
593
|
for (const i in this.$$l)
|
|
594
594
|
for (const o of this.$$l[i]) {
|
|
595
595
|
const a = this.$$c.$on(i, o);
|
|
@@ -600,8 +600,8 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
600
600
|
}
|
|
601
601
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
602
602
|
// and setting attributes through setAttribute etc, this is helpful
|
|
603
|
-
attributeChangedCallback(e, t,
|
|
604
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
603
|
+
attributeChangedCallback(e, t, n) {
|
|
604
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
605
605
|
}
|
|
606
606
|
disconnectedCallback() {
|
|
607
607
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -614,11 +614,11 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
614
614
|
) || e;
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function
|
|
618
|
-
const i =
|
|
619
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
617
|
+
function ge(e, t, n, r) {
|
|
618
|
+
const i = n[e]?.type;
|
|
619
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
620
620
|
return t;
|
|
621
|
-
if (
|
|
621
|
+
if (r === "toAttribute")
|
|
622
622
|
switch (i) {
|
|
623
623
|
case "Object":
|
|
624
624
|
case "Array":
|
|
@@ -643,10 +643,10 @@ function ye(e, t, r, n) {
|
|
|
643
643
|
return t;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
let a = class extends
|
|
646
|
+
function Yn(e, t, n, r, i, o) {
|
|
647
|
+
let a = class extends kt {
|
|
648
648
|
constructor() {
|
|
649
|
-
super(e,
|
|
649
|
+
super(e, n, i), this.$$p_d = t;
|
|
650
650
|
}
|
|
651
651
|
static get observedAttributes() {
|
|
652
652
|
return Object.keys(t).map(
|
|
@@ -659,11 +659,11 @@ function tn(e, t, r, n, i, o) {
|
|
|
659
659
|
get() {
|
|
660
660
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
661
661
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
662
|
+
set(h) {
|
|
663
|
+
h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
|
-
}),
|
|
666
|
+
}), r.forEach((s) => {
|
|
667
667
|
Object.defineProperty(a.prototype, s, {
|
|
668
668
|
get() {
|
|
669
669
|
return this.$$c?.[s];
|
|
@@ -672,7 +672,7 @@ function tn(e, t, r, n, i, o) {
|
|
|
672
672
|
}), e.element = /** @type {any} */
|
|
673
673
|
a, a;
|
|
674
674
|
}
|
|
675
|
-
class
|
|
675
|
+
class Kn {
|
|
676
676
|
/**
|
|
677
677
|
* ### PRIVATE API
|
|
678
678
|
*
|
|
@@ -691,7 +691,7 @@ class rn {
|
|
|
691
691
|
$$set = void 0;
|
|
692
692
|
/** @returns {void} */
|
|
693
693
|
$destroy() {
|
|
694
|
-
|
|
694
|
+
qn(this, 1), this.$destroy = H;
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -699,13 +699,13 @@ class rn {
|
|
|
699
699
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
700
700
|
* @returns {() => void}
|
|
701
701
|
*/
|
|
702
|
-
$on(t,
|
|
703
|
-
if (!
|
|
702
|
+
$on(t, n) {
|
|
703
|
+
if (!ue(n))
|
|
704
704
|
return H;
|
|
705
|
-
const
|
|
706
|
-
return
|
|
707
|
-
const i =
|
|
708
|
-
i !== -1 &&
|
|
705
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
706
|
+
return r.push(n), () => {
|
|
707
|
+
const i = r.indexOf(n);
|
|
708
|
+
i !== -1 && r.splice(i, 1);
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
711
|
/**
|
|
@@ -713,11 +713,11 @@ class rn {
|
|
|
713
713
|
* @returns {void}
|
|
714
714
|
*/
|
|
715
715
|
$set(t) {
|
|
716
|
-
this.$$set && !
|
|
716
|
+
this.$$set && !Hn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
const
|
|
720
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
719
|
+
const er = "4";
|
|
720
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
721
721
|
/*! *****************************************************************************
|
|
722
722
|
Copyright (c) Microsoft Corporation.
|
|
723
723
|
|
|
@@ -732,48 +732,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
732
732
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
733
733
|
PERFORMANCE OF THIS SOFTWARE.
|
|
734
734
|
***************************************************************************** */
|
|
735
|
-
var
|
|
736
|
-
return
|
|
737
|
-
|
|
738
|
-
} || function(
|
|
739
|
-
for (var i in
|
|
740
|
-
Object.prototype.hasOwnProperty.call(
|
|
741
|
-
},
|
|
735
|
+
var je = function(e, t) {
|
|
736
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
737
|
+
n.__proto__ = r;
|
|
738
|
+
} || function(n, r) {
|
|
739
|
+
for (var i in r)
|
|
740
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
741
|
+
}, je(e, t);
|
|
742
742
|
};
|
|
743
|
-
function
|
|
743
|
+
function C(e, t) {
|
|
744
744
|
if (typeof t != "function" && t !== null)
|
|
745
745
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
746
|
-
|
|
747
|
-
function
|
|
746
|
+
je(e, t);
|
|
747
|
+
function n() {
|
|
748
748
|
this.constructor = e;
|
|
749
749
|
}
|
|
750
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
750
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
751
|
+
}
|
|
752
|
+
var y = function() {
|
|
753
|
+
return y = Object.assign || function(t) {
|
|
754
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
755
|
+
n = arguments[r];
|
|
756
|
+
for (var o in n)
|
|
757
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
758
|
+
}
|
|
759
|
+
return t;
|
|
760
|
+
}, y.apply(this, arguments);
|
|
761
|
+
};
|
|
762
|
+
function tr(e, t) {
|
|
763
|
+
var n = {};
|
|
764
|
+
for (var r in e)
|
|
765
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
766
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
767
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
768
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
769
|
+
return n;
|
|
751
770
|
}
|
|
752
|
-
function
|
|
753
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
754
|
-
if (
|
|
755
|
-
return
|
|
771
|
+
function ke(e) {
|
|
772
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
773
|
+
if (n)
|
|
774
|
+
return n.call(e);
|
|
756
775
|
if (e && typeof e.length == "number")
|
|
757
776
|
return {
|
|
758
777
|
next: function() {
|
|
759
|
-
return e &&
|
|
778
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
760
779
|
}
|
|
761
780
|
};
|
|
762
781
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
763
782
|
}
|
|
764
|
-
function
|
|
765
|
-
var
|
|
766
|
-
if (!
|
|
783
|
+
function Ve(e, t) {
|
|
784
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
785
|
+
if (!n)
|
|
767
786
|
return e;
|
|
768
|
-
var
|
|
787
|
+
var r = n.call(e), i, o = [], a;
|
|
769
788
|
try {
|
|
770
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
789
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
771
790
|
o.push(i.value);
|
|
772
791
|
} catch (s) {
|
|
773
792
|
a = { error: s };
|
|
774
793
|
} finally {
|
|
775
794
|
try {
|
|
776
|
-
i && !i.done && (
|
|
795
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
777
796
|
} finally {
|
|
778
797
|
if (a)
|
|
779
798
|
throw a.error;
|
|
@@ -781,57 +800,57 @@ function ze(e, t) {
|
|
|
781
800
|
}
|
|
782
801
|
return o;
|
|
783
802
|
}
|
|
784
|
-
function
|
|
785
|
-
if (arguments.length === 2)
|
|
786
|
-
for (var
|
|
787
|
-
(o || !(
|
|
803
|
+
function z(e, t, n) {
|
|
804
|
+
if (n || arguments.length === 2)
|
|
805
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
806
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
788
807
|
return e.concat(o || t);
|
|
789
808
|
}
|
|
790
809
|
function M(e) {
|
|
791
810
|
return typeof e == "function";
|
|
792
811
|
}
|
|
793
|
-
function
|
|
794
|
-
var t = function(
|
|
795
|
-
Error.call(
|
|
796
|
-
},
|
|
797
|
-
return
|
|
798
|
-
}
|
|
799
|
-
var
|
|
800
|
-
return function(
|
|
801
|
-
e(this), this.message =
|
|
802
|
-
` +
|
|
803
|
-
return i + 1 + ") " +
|
|
812
|
+
function Vt(e) {
|
|
813
|
+
var t = function(r) {
|
|
814
|
+
Error.call(r), r.stack = new Error().stack;
|
|
815
|
+
}, n = e(t);
|
|
816
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
817
|
+
}
|
|
818
|
+
var Me = Vt(function(e) {
|
|
819
|
+
return function(n) {
|
|
820
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
821
|
+
` + n.map(function(r, i) {
|
|
822
|
+
return i + 1 + ") " + r.toString();
|
|
804
823
|
}).join(`
|
|
805
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
824
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
806
825
|
};
|
|
807
826
|
});
|
|
808
|
-
function
|
|
827
|
+
function Xe(e, t) {
|
|
809
828
|
if (e) {
|
|
810
|
-
var
|
|
811
|
-
0 <=
|
|
829
|
+
var n = e.indexOf(t);
|
|
830
|
+
0 <= n && e.splice(n, 1);
|
|
812
831
|
}
|
|
813
832
|
}
|
|
814
|
-
var
|
|
833
|
+
var He = function() {
|
|
815
834
|
function e(t) {
|
|
816
835
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
817
836
|
}
|
|
818
837
|
return e.prototype.unsubscribe = function() {
|
|
819
|
-
var t,
|
|
838
|
+
var t, n, r, i, o;
|
|
820
839
|
if (!this.closed) {
|
|
821
840
|
this.closed = !0;
|
|
822
841
|
var a = this._parentage;
|
|
823
842
|
if (a)
|
|
824
843
|
if (this._parentage = null, Array.isArray(a))
|
|
825
844
|
try {
|
|
826
|
-
for (var s =
|
|
827
|
-
var u =
|
|
845
|
+
for (var s = ke(a), h = s.next(); !h.done; h = s.next()) {
|
|
846
|
+
var u = h.value;
|
|
828
847
|
u.remove(this);
|
|
829
848
|
}
|
|
830
849
|
} catch (m) {
|
|
831
850
|
t = { error: m };
|
|
832
851
|
} finally {
|
|
833
852
|
try {
|
|
834
|
-
|
|
853
|
+
h && !h.done && (n = s.return) && n.call(s);
|
|
835
854
|
} finally {
|
|
836
855
|
if (t)
|
|
837
856
|
throw t.error;
|
|
@@ -839,119 +858,123 @@ var Be = function() {
|
|
|
839
858
|
}
|
|
840
859
|
else
|
|
841
860
|
a.remove(this);
|
|
842
|
-
var
|
|
843
|
-
if (M(
|
|
861
|
+
var l = this.initialTeardown;
|
|
862
|
+
if (M(l))
|
|
844
863
|
try {
|
|
845
|
-
|
|
864
|
+
l();
|
|
846
865
|
} catch (m) {
|
|
847
|
-
o = m instanceof
|
|
866
|
+
o = m instanceof Me ? m.errors : [m];
|
|
848
867
|
}
|
|
849
|
-
var
|
|
850
|
-
if (
|
|
868
|
+
var c = this._finalizers;
|
|
869
|
+
if (c) {
|
|
851
870
|
this._finalizers = null;
|
|
852
871
|
try {
|
|
853
|
-
for (var
|
|
854
|
-
var
|
|
872
|
+
for (var f = ke(c), p = f.next(); !p.done; p = f.next()) {
|
|
873
|
+
var d = p.value;
|
|
855
874
|
try {
|
|
856
|
-
|
|
875
|
+
ht(d);
|
|
857
876
|
} catch (m) {
|
|
858
|
-
o = o ?? [], m instanceof
|
|
877
|
+
o = o ?? [], m instanceof Me ? o = z(z([], Ve(o)), Ve(m.errors)) : o.push(m);
|
|
859
878
|
}
|
|
860
879
|
}
|
|
861
880
|
} catch (m) {
|
|
862
|
-
|
|
881
|
+
r = { error: m };
|
|
863
882
|
} finally {
|
|
864
883
|
try {
|
|
865
|
-
|
|
884
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
866
885
|
} finally {
|
|
867
|
-
if (
|
|
868
|
-
throw
|
|
886
|
+
if (r)
|
|
887
|
+
throw r.error;
|
|
869
888
|
}
|
|
870
889
|
}
|
|
871
890
|
}
|
|
872
891
|
if (o)
|
|
873
|
-
throw new
|
|
892
|
+
throw new Me(o);
|
|
874
893
|
}
|
|
875
894
|
}, e.prototype.add = function(t) {
|
|
876
|
-
var
|
|
895
|
+
var n;
|
|
877
896
|
if (t && t !== this)
|
|
878
897
|
if (this.closed)
|
|
879
|
-
|
|
898
|
+
ht(t);
|
|
880
899
|
else {
|
|
881
900
|
if (t instanceof e) {
|
|
882
901
|
if (t.closed || t._hasParent(this))
|
|
883
902
|
return;
|
|
884
903
|
t._addParent(this);
|
|
885
904
|
}
|
|
886
|
-
(this._finalizers = (
|
|
905
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
887
906
|
}
|
|
888
907
|
}, e.prototype._hasParent = function(t) {
|
|
889
|
-
var
|
|
890
|
-
return
|
|
908
|
+
var n = this._parentage;
|
|
909
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
891
910
|
}, e.prototype._addParent = function(t) {
|
|
892
|
-
var
|
|
893
|
-
this._parentage = Array.isArray(
|
|
911
|
+
var n = this._parentage;
|
|
912
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
894
913
|
}, e.prototype._removeParent = function(t) {
|
|
895
|
-
var
|
|
896
|
-
|
|
914
|
+
var n = this._parentage;
|
|
915
|
+
n === t ? this._parentage = null : Array.isArray(n) && Xe(n, t);
|
|
897
916
|
}, e.prototype.remove = function(t) {
|
|
898
|
-
var
|
|
899
|
-
|
|
917
|
+
var n = this._finalizers;
|
|
918
|
+
n && Xe(n, t), t instanceof e && t._removeParent(this);
|
|
900
919
|
}, e.EMPTY = function() {
|
|
901
920
|
var t = new e();
|
|
902
921
|
return t.closed = !0, t;
|
|
903
922
|
}(), e;
|
|
904
|
-
}(),
|
|
905
|
-
function
|
|
906
|
-
return e instanceof
|
|
923
|
+
}(), Xt = He.EMPTY;
|
|
924
|
+
function Wt(e) {
|
|
925
|
+
return e instanceof He || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
907
926
|
}
|
|
908
|
-
function
|
|
927
|
+
function ht(e) {
|
|
909
928
|
M(e) ? e() : e.unsubscribe();
|
|
910
929
|
}
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
-
|
|
930
|
+
var nr = {
|
|
931
|
+
onUnhandledError: null,
|
|
932
|
+
onStoppedNotification: null,
|
|
933
|
+
Promise: void 0,
|
|
934
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
935
|
+
useDeprecatedNextContext: !1
|
|
936
|
+
}, rr = {
|
|
914
937
|
setTimeout: function(e, t) {
|
|
915
|
-
for (var
|
|
916
|
-
r
|
|
917
|
-
return setTimeout.apply(void 0,
|
|
938
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
939
|
+
n[r - 2] = arguments[r];
|
|
940
|
+
return setTimeout.apply(void 0, z([e, t], Ve(n)));
|
|
918
941
|
},
|
|
919
942
|
clearTimeout: function(e) {
|
|
920
943
|
return clearTimeout(e);
|
|
921
944
|
},
|
|
922
945
|
delegate: void 0
|
|
923
946
|
};
|
|
924
|
-
function
|
|
925
|
-
|
|
947
|
+
function ir(e) {
|
|
948
|
+
rr.setTimeout(function() {
|
|
926
949
|
throw e;
|
|
927
950
|
});
|
|
928
951
|
}
|
|
929
|
-
function
|
|
952
|
+
function lt() {
|
|
930
953
|
}
|
|
931
|
-
function
|
|
954
|
+
function ye(e) {
|
|
932
955
|
e();
|
|
933
956
|
}
|
|
934
|
-
var
|
|
935
|
-
|
|
936
|
-
function t(
|
|
937
|
-
var
|
|
938
|
-
return
|
|
957
|
+
var zt = function(e) {
|
|
958
|
+
C(t, e);
|
|
959
|
+
function t(n) {
|
|
960
|
+
var r = e.call(this) || this;
|
|
961
|
+
return r.isStopped = !1, n ? (r.destination = n, Wt(n) && n.add(r)) : r.destination = ar, r;
|
|
939
962
|
}
|
|
940
|
-
return t.create = function(
|
|
941
|
-
return new
|
|
942
|
-
}, t.prototype.next = function(
|
|
943
|
-
this.isStopped || this._next(
|
|
944
|
-
}, t.prototype.error = function(
|
|
945
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
963
|
+
return t.create = function(n, r, i) {
|
|
964
|
+
return new We(n, r, i);
|
|
965
|
+
}, t.prototype.next = function(n) {
|
|
966
|
+
this.isStopped || this._next(n);
|
|
967
|
+
}, t.prototype.error = function(n) {
|
|
968
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
946
969
|
}, t.prototype.complete = function() {
|
|
947
970
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
948
971
|
}, t.prototype.unsubscribe = function() {
|
|
949
972
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
950
|
-
}, t.prototype._next = function(
|
|
951
|
-
this.destination.next(
|
|
952
|
-
}, t.prototype._error = function(
|
|
973
|
+
}, t.prototype._next = function(n) {
|
|
974
|
+
this.destination.next(n);
|
|
975
|
+
}, t.prototype._error = function(n) {
|
|
953
976
|
try {
|
|
954
|
-
this.destination.error(
|
|
977
|
+
this.destination.error(n);
|
|
955
978
|
} finally {
|
|
956
979
|
this.unsubscribe();
|
|
957
980
|
}
|
|
@@ -962,169 +985,169 @@ var Jt = function(e) {
|
|
|
962
985
|
this.unsubscribe();
|
|
963
986
|
}
|
|
964
987
|
}, t;
|
|
965
|
-
}(
|
|
988
|
+
}(He), or = function() {
|
|
966
989
|
function e(t) {
|
|
967
990
|
this.partialObserver = t;
|
|
968
991
|
}
|
|
969
992
|
return e.prototype.next = function(t) {
|
|
970
|
-
var
|
|
971
|
-
if (
|
|
993
|
+
var n = this.partialObserver;
|
|
994
|
+
if (n.next)
|
|
972
995
|
try {
|
|
973
|
-
|
|
974
|
-
} catch (
|
|
975
|
-
|
|
996
|
+
n.next(t);
|
|
997
|
+
} catch (r) {
|
|
998
|
+
pe(r);
|
|
976
999
|
}
|
|
977
1000
|
}, e.prototype.error = function(t) {
|
|
978
|
-
var
|
|
979
|
-
if (
|
|
1001
|
+
var n = this.partialObserver;
|
|
1002
|
+
if (n.error)
|
|
980
1003
|
try {
|
|
981
|
-
|
|
982
|
-
} catch (
|
|
983
|
-
|
|
1004
|
+
n.error(t);
|
|
1005
|
+
} catch (r) {
|
|
1006
|
+
pe(r);
|
|
984
1007
|
}
|
|
985
1008
|
else
|
|
986
|
-
|
|
1009
|
+
pe(t);
|
|
987
1010
|
}, e.prototype.complete = function() {
|
|
988
1011
|
var t = this.partialObserver;
|
|
989
1012
|
if (t.complete)
|
|
990
1013
|
try {
|
|
991
1014
|
t.complete();
|
|
992
|
-
} catch (
|
|
993
|
-
|
|
1015
|
+
} catch (n) {
|
|
1016
|
+
pe(n);
|
|
994
1017
|
}
|
|
995
1018
|
}, e;
|
|
996
|
-
}(),
|
|
997
|
-
|
|
998
|
-
function t(
|
|
1019
|
+
}(), We = function(e) {
|
|
1020
|
+
C(t, e);
|
|
1021
|
+
function t(n, r, i) {
|
|
999
1022
|
var o = e.call(this) || this, a;
|
|
1000
|
-
return M(
|
|
1001
|
-
next:
|
|
1002
|
-
error:
|
|
1023
|
+
return M(n) || !n ? a = {
|
|
1024
|
+
next: n ?? void 0,
|
|
1025
|
+
error: r ?? void 0,
|
|
1003
1026
|
complete: i ?? void 0
|
|
1004
|
-
} : a =
|
|
1027
|
+
} : a = n, o.destination = new or(a), o;
|
|
1005
1028
|
}
|
|
1006
1029
|
return t;
|
|
1007
|
-
}(
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1030
|
+
}(zt);
|
|
1031
|
+
function pe(e) {
|
|
1032
|
+
ir(e);
|
|
1010
1033
|
}
|
|
1011
|
-
function
|
|
1034
|
+
function sr(e) {
|
|
1012
1035
|
throw e;
|
|
1013
1036
|
}
|
|
1014
|
-
var
|
|
1037
|
+
var ar = {
|
|
1015
1038
|
closed: !0,
|
|
1016
|
-
next:
|
|
1017
|
-
error:
|
|
1018
|
-
complete:
|
|
1019
|
-
},
|
|
1039
|
+
next: lt,
|
|
1040
|
+
error: sr,
|
|
1041
|
+
complete: lt
|
|
1042
|
+
}, ur = function() {
|
|
1020
1043
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1021
1044
|
}();
|
|
1022
|
-
function
|
|
1045
|
+
function hr(e) {
|
|
1023
1046
|
return e;
|
|
1024
1047
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return e.length === 0 ?
|
|
1027
|
-
return e.reduce(function(
|
|
1028
|
-
return i(
|
|
1029
|
-
},
|
|
1048
|
+
function lr(e) {
|
|
1049
|
+
return e.length === 0 ? hr : e.length === 1 ? e[0] : function(n) {
|
|
1050
|
+
return e.reduce(function(r, i) {
|
|
1051
|
+
return i(r);
|
|
1052
|
+
}, n);
|
|
1030
1053
|
};
|
|
1031
1054
|
}
|
|
1032
|
-
var
|
|
1055
|
+
var ft = function() {
|
|
1033
1056
|
function e(t) {
|
|
1034
1057
|
t && (this._subscribe = t);
|
|
1035
1058
|
}
|
|
1036
1059
|
return e.prototype.lift = function(t) {
|
|
1037
|
-
var
|
|
1038
|
-
return
|
|
1039
|
-
}, e.prototype.subscribe = function(t,
|
|
1040
|
-
var i = this, o =
|
|
1041
|
-
return
|
|
1042
|
-
var a = i, s = a.operator,
|
|
1043
|
-
o.add(s ? s.call(o,
|
|
1060
|
+
var n = new e();
|
|
1061
|
+
return n.source = this, n.operator = t, n;
|
|
1062
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1063
|
+
var i = this, o = cr(t) ? t : new We(t, n, r);
|
|
1064
|
+
return ye(function() {
|
|
1065
|
+
var a = i, s = a.operator, h = a.source;
|
|
1066
|
+
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
1044
1067
|
}), o;
|
|
1045
1068
|
}, e.prototype._trySubscribe = function(t) {
|
|
1046
1069
|
try {
|
|
1047
1070
|
return this._subscribe(t);
|
|
1048
|
-
} catch (
|
|
1049
|
-
t.error(
|
|
1071
|
+
} catch (n) {
|
|
1072
|
+
t.error(n);
|
|
1050
1073
|
}
|
|
1051
|
-
}, e.prototype.forEach = function(t,
|
|
1052
|
-
var
|
|
1053
|
-
return
|
|
1054
|
-
var a = new
|
|
1074
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1075
|
+
var r = this;
|
|
1076
|
+
return n = ct(n), new n(function(i, o) {
|
|
1077
|
+
var a = new We({
|
|
1055
1078
|
next: function(s) {
|
|
1056
1079
|
try {
|
|
1057
1080
|
t(s);
|
|
1058
|
-
} catch (
|
|
1059
|
-
o(
|
|
1081
|
+
} catch (h) {
|
|
1082
|
+
o(h), a.unsubscribe();
|
|
1060
1083
|
}
|
|
1061
1084
|
},
|
|
1062
1085
|
error: o,
|
|
1063
1086
|
complete: i
|
|
1064
1087
|
});
|
|
1065
|
-
|
|
1088
|
+
r.subscribe(a);
|
|
1066
1089
|
});
|
|
1067
1090
|
}, e.prototype._subscribe = function(t) {
|
|
1068
|
-
var
|
|
1069
|
-
return (
|
|
1070
|
-
}, e.prototype[
|
|
1091
|
+
var n;
|
|
1092
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1093
|
+
}, e.prototype[ur] = function() {
|
|
1071
1094
|
return this;
|
|
1072
1095
|
}, e.prototype.pipe = function() {
|
|
1073
|
-
for (var t = [],
|
|
1074
|
-
t[
|
|
1075
|
-
return
|
|
1096
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1097
|
+
t[n] = arguments[n];
|
|
1098
|
+
return lr(t)(this);
|
|
1076
1099
|
}, e.prototype.toPromise = function(t) {
|
|
1077
|
-
var
|
|
1078
|
-
return t =
|
|
1100
|
+
var n = this;
|
|
1101
|
+
return t = ct(t), new t(function(r, i) {
|
|
1079
1102
|
var o;
|
|
1080
|
-
|
|
1103
|
+
n.subscribe(function(a) {
|
|
1081
1104
|
return o = a;
|
|
1082
1105
|
}, function(a) {
|
|
1083
1106
|
return i(a);
|
|
1084
1107
|
}, function() {
|
|
1085
|
-
return
|
|
1108
|
+
return r(o);
|
|
1086
1109
|
});
|
|
1087
1110
|
});
|
|
1088
1111
|
}, e.create = function(t) {
|
|
1089
1112
|
return new e(t);
|
|
1090
1113
|
}, e;
|
|
1091
1114
|
}();
|
|
1092
|
-
function
|
|
1115
|
+
function ct(e) {
|
|
1093
1116
|
var t;
|
|
1094
|
-
return (t = e ??
|
|
1117
|
+
return (t = e ?? nr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1095
1118
|
}
|
|
1096
|
-
function
|
|
1119
|
+
function fr(e) {
|
|
1097
1120
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
1098
1121
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return e && e instanceof
|
|
1122
|
+
function cr(e) {
|
|
1123
|
+
return e && e instanceof zt || fr(e) && Wt(e);
|
|
1101
1124
|
}
|
|
1102
|
-
var
|
|
1125
|
+
var dr = Vt(function(e) {
|
|
1103
1126
|
return function() {
|
|
1104
1127
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1105
1128
|
};
|
|
1106
|
-
}),
|
|
1107
|
-
|
|
1129
|
+
}), Zt = function(e) {
|
|
1130
|
+
C(t, e);
|
|
1108
1131
|
function t() {
|
|
1109
|
-
var
|
|
1110
|
-
return
|
|
1132
|
+
var n = e.call(this) || this;
|
|
1133
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1111
1134
|
}
|
|
1112
|
-
return t.prototype.lift = function(
|
|
1113
|
-
var
|
|
1114
|
-
return
|
|
1135
|
+
return t.prototype.lift = function(n) {
|
|
1136
|
+
var r = new dt(this, this);
|
|
1137
|
+
return r.operator = n, r;
|
|
1115
1138
|
}, t.prototype._throwIfClosed = function() {
|
|
1116
1139
|
if (this.closed)
|
|
1117
|
-
throw new
|
|
1118
|
-
}, t.prototype.next = function(
|
|
1119
|
-
var
|
|
1120
|
-
|
|
1140
|
+
throw new dr();
|
|
1141
|
+
}, t.prototype.next = function(n) {
|
|
1142
|
+
var r = this;
|
|
1143
|
+
ye(function() {
|
|
1121
1144
|
var i, o;
|
|
1122
|
-
if (
|
|
1123
|
-
|
|
1145
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1146
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1124
1147
|
try {
|
|
1125
|
-
for (var a =
|
|
1126
|
-
var
|
|
1127
|
-
|
|
1148
|
+
for (var a = ke(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1149
|
+
var h = s.value;
|
|
1150
|
+
h.next(n);
|
|
1128
1151
|
}
|
|
1129
1152
|
} catch (u) {
|
|
1130
1153
|
i = { error: u };
|
|
@@ -1138,120 +1161,120 @@ var bn = Zt(function(e) {
|
|
|
1138
1161
|
}
|
|
1139
1162
|
}
|
|
1140
1163
|
});
|
|
1141
|
-
}, t.prototype.error = function(
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1144
|
-
if (
|
|
1145
|
-
|
|
1146
|
-
for (var i =
|
|
1147
|
-
i.shift().error(
|
|
1164
|
+
}, t.prototype.error = function(n) {
|
|
1165
|
+
var r = this;
|
|
1166
|
+
ye(function() {
|
|
1167
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1168
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1169
|
+
for (var i = r.observers; i.length; )
|
|
1170
|
+
i.shift().error(n);
|
|
1148
1171
|
}
|
|
1149
1172
|
});
|
|
1150
1173
|
}, t.prototype.complete = function() {
|
|
1151
|
-
var
|
|
1152
|
-
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1155
|
-
for (var
|
|
1156
|
-
|
|
1174
|
+
var n = this;
|
|
1175
|
+
ye(function() {
|
|
1176
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1177
|
+
n.isStopped = !0;
|
|
1178
|
+
for (var r = n.observers; r.length; )
|
|
1179
|
+
r.shift().complete();
|
|
1157
1180
|
}
|
|
1158
1181
|
});
|
|
1159
1182
|
}, t.prototype.unsubscribe = function() {
|
|
1160
1183
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1161
1184
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1162
1185
|
get: function() {
|
|
1163
|
-
var
|
|
1164
|
-
return ((
|
|
1186
|
+
var n;
|
|
1187
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1165
1188
|
},
|
|
1166
1189
|
enumerable: !1,
|
|
1167
1190
|
configurable: !0
|
|
1168
|
-
}), t.prototype._trySubscribe = function(
|
|
1169
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1170
|
-
}, t.prototype._subscribe = function(
|
|
1171
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1172
|
-
}, t.prototype._innerSubscribe = function(
|
|
1173
|
-
var
|
|
1174
|
-
return o || a ?
|
|
1175
|
-
|
|
1191
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1192
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1193
|
+
}, t.prototype._subscribe = function(n) {
|
|
1194
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1195
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1196
|
+
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1197
|
+
return o || a ? Xt : (this.currentObservers = null, s.push(n), new He(function() {
|
|
1198
|
+
r.currentObservers = null, Xe(s, n);
|
|
1176
1199
|
}));
|
|
1177
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1178
|
-
var
|
|
1179
|
-
i ?
|
|
1200
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1201
|
+
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
1202
|
+
i ? n.error(o) : a && n.complete();
|
|
1180
1203
|
}, t.prototype.asObservable = function() {
|
|
1181
|
-
var
|
|
1182
|
-
return
|
|
1183
|
-
}, t.create = function(
|
|
1184
|
-
return new
|
|
1204
|
+
var n = new ft();
|
|
1205
|
+
return n.source = this, n;
|
|
1206
|
+
}, t.create = function(n, r) {
|
|
1207
|
+
return new dt(n, r);
|
|
1185
1208
|
}, t;
|
|
1186
|
-
}(
|
|
1187
|
-
|
|
1188
|
-
function t(
|
|
1209
|
+
}(ft), dt = function(e) {
|
|
1210
|
+
C(t, e);
|
|
1211
|
+
function t(n, r) {
|
|
1189
1212
|
var i = e.call(this) || this;
|
|
1190
|
-
return i.destination =
|
|
1213
|
+
return i.destination = n, i.source = r, i;
|
|
1191
1214
|
}
|
|
1192
|
-
return t.prototype.next = function(
|
|
1193
|
-
var
|
|
1194
|
-
(i = (
|
|
1195
|
-
}, t.prototype.error = function(
|
|
1196
|
-
var
|
|
1197
|
-
(i = (
|
|
1215
|
+
return t.prototype.next = function(n) {
|
|
1216
|
+
var r, i;
|
|
1217
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1218
|
+
}, t.prototype.error = function(n) {
|
|
1219
|
+
var r, i;
|
|
1220
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1198
1221
|
}, t.prototype.complete = function() {
|
|
1199
|
-
var
|
|
1200
|
-
(
|
|
1201
|
-
}, t.prototype._subscribe = function(
|
|
1202
|
-
var
|
|
1203
|
-
return (i = (
|
|
1222
|
+
var n, r;
|
|
1223
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1224
|
+
}, t.prototype._subscribe = function(n) {
|
|
1225
|
+
var r, i;
|
|
1226
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Xt;
|
|
1204
1227
|
}, t;
|
|
1205
|
-
}(
|
|
1228
|
+
}(Zt), qt = {
|
|
1206
1229
|
now: function() {
|
|
1207
|
-
return (
|
|
1230
|
+
return (qt.delegate || Date).now();
|
|
1208
1231
|
},
|
|
1209
1232
|
delegate: void 0
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1212
|
-
function t(
|
|
1213
|
-
|
|
1233
|
+
}, pr = function(e) {
|
|
1234
|
+
C(t, e);
|
|
1235
|
+
function t(n, r, i) {
|
|
1236
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = qt);
|
|
1214
1237
|
var o = e.call(this) || this;
|
|
1215
|
-
return o._bufferSize =
|
|
1238
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
1216
1239
|
}
|
|
1217
|
-
return t.prototype.next = function(
|
|
1218
|
-
var
|
|
1219
|
-
i || (o.push(
|
|
1220
|
-
}, t.prototype._subscribe = function(
|
|
1240
|
+
return t.prototype.next = function(n) {
|
|
1241
|
+
var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, h = r._windowTime;
|
|
1242
|
+
i || (o.push(n), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1243
|
+
}, t.prototype._subscribe = function(n) {
|
|
1221
1244
|
this._throwIfClosed(), this._trimBuffer();
|
|
1222
|
-
for (var
|
|
1223
|
-
|
|
1224
|
-
return this._checkFinalizedStatuses(
|
|
1245
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !n.closed; h += o ? 1 : 2)
|
|
1246
|
+
n.next(s[h]);
|
|
1247
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1225
1248
|
}, t.prototype._trimBuffer = function() {
|
|
1226
|
-
var
|
|
1227
|
-
if (
|
|
1228
|
-
for (var
|
|
1229
|
-
u =
|
|
1249
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
|
|
1250
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1251
|
+
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
1252
|
+
u = l;
|
|
1230
1253
|
u && o.splice(0, u + 1);
|
|
1231
1254
|
}
|
|
1232
1255
|
}, t;
|
|
1233
|
-
}(
|
|
1234
|
-
const
|
|
1235
|
-
if (
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1256
|
+
}(Zt);
|
|
1257
|
+
const pt = [], mt = {}, mr = (e, t = 0) => {
|
|
1258
|
+
if (pt.indexOf(e) == -1) {
|
|
1259
|
+
const n = new pr(t);
|
|
1260
|
+
mt[e] = n, pt.push(e);
|
|
1238
1261
|
}
|
|
1239
|
-
return
|
|
1262
|
+
return mt[e];
|
|
1240
1263
|
}, k = [];
|
|
1241
|
-
function
|
|
1264
|
+
function br(e, t) {
|
|
1242
1265
|
return {
|
|
1243
|
-
subscribe:
|
|
1266
|
+
subscribe: Be(e, t).subscribe
|
|
1244
1267
|
};
|
|
1245
1268
|
}
|
|
1246
|
-
function
|
|
1247
|
-
let
|
|
1248
|
-
const
|
|
1269
|
+
function Be(e, t = H) {
|
|
1270
|
+
let n;
|
|
1271
|
+
const r = /* @__PURE__ */ new Set();
|
|
1249
1272
|
function i(s) {
|
|
1250
|
-
if (
|
|
1251
|
-
const
|
|
1252
|
-
for (const u of
|
|
1273
|
+
if (Nt(e, s) && (e = s, n)) {
|
|
1274
|
+
const h = !k.length;
|
|
1275
|
+
for (const u of r)
|
|
1253
1276
|
u[1](), k.push(u, e);
|
|
1254
|
-
if (
|
|
1277
|
+
if (h) {
|
|
1255
1278
|
for (let u = 0; u < k.length; u += 2)
|
|
1256
1279
|
k[u][0](k[u + 1]);
|
|
1257
1280
|
k.length = 0;
|
|
@@ -1261,193 +1284,154 @@ function Ae(e, t = H) {
|
|
|
1261
1284
|
function o(s) {
|
|
1262
1285
|
i(s(e));
|
|
1263
1286
|
}
|
|
1264
|
-
function a(s,
|
|
1265
|
-
const u = [s,
|
|
1266
|
-
return
|
|
1267
|
-
|
|
1287
|
+
function a(s, h = H) {
|
|
1288
|
+
const u = [s, h];
|
|
1289
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || H), s(e), () => {
|
|
1290
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
1268
1291
|
};
|
|
1269
1292
|
}
|
|
1270
1293
|
return { set: i, update: o, subscribe: a };
|
|
1271
1294
|
}
|
|
1272
|
-
function
|
|
1273
|
-
const
|
|
1295
|
+
function Y(e, t, n) {
|
|
1296
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1274
1297
|
if (!i.every(Boolean))
|
|
1275
1298
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1276
1299
|
const o = t.length < 2;
|
|
1277
|
-
return
|
|
1278
|
-
let
|
|
1300
|
+
return br(n, (a, s) => {
|
|
1301
|
+
let h = !1;
|
|
1279
1302
|
const u = [];
|
|
1280
|
-
let
|
|
1281
|
-
const
|
|
1282
|
-
if (
|
|
1303
|
+
let l = 0, c = H;
|
|
1304
|
+
const f = () => {
|
|
1305
|
+
if (l)
|
|
1283
1306
|
return;
|
|
1284
|
-
|
|
1285
|
-
const
|
|
1286
|
-
o ? a(
|
|
1287
|
-
},
|
|
1288
|
-
(
|
|
1289
|
-
|
|
1290
|
-
(
|
|
1291
|
-
u[m] =
|
|
1307
|
+
c();
|
|
1308
|
+
const d = t(r ? u[0] : u, a, s);
|
|
1309
|
+
o ? a(d) : c = ue(d) ? d : H;
|
|
1310
|
+
}, p = i.map(
|
|
1311
|
+
(d, m) => Mt(
|
|
1312
|
+
d,
|
|
1313
|
+
(x) => {
|
|
1314
|
+
u[m] = x, l &= ~(1 << m), h && f();
|
|
1292
1315
|
},
|
|
1293
1316
|
() => {
|
|
1294
|
-
|
|
1317
|
+
l |= 1 << m;
|
|
1295
1318
|
}
|
|
1296
1319
|
)
|
|
1297
1320
|
);
|
|
1298
|
-
return
|
|
1299
|
-
D(
|
|
1321
|
+
return h = !0, f(), function() {
|
|
1322
|
+
D(p), c(), h = !1;
|
|
1300
1323
|
};
|
|
1301
1324
|
});
|
|
1302
1325
|
}
|
|
1303
|
-
var
|
|
1304
|
-
function
|
|
1326
|
+
var Ro = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1327
|
+
function gr(e) {
|
|
1305
1328
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1306
1329
|
}
|
|
1307
|
-
var
|
|
1308
|
-
return
|
|
1330
|
+
var yr = function(t) {
|
|
1331
|
+
return _r(t) && !vr(t);
|
|
1309
1332
|
};
|
|
1310
|
-
function
|
|
1333
|
+
function _r(e) {
|
|
1311
1334
|
return !!e && typeof e == "object";
|
|
1312
1335
|
}
|
|
1313
|
-
function
|
|
1336
|
+
function vr(e) {
|
|
1314
1337
|
var t = Object.prototype.toString.call(e);
|
|
1315
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1338
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
|
|
1316
1339
|
}
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
return e.$$typeof ===
|
|
1340
|
+
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
|
1341
|
+
function Sr(e) {
|
|
1342
|
+
return e.$$typeof === Er;
|
|
1320
1343
|
}
|
|
1321
|
-
function
|
|
1344
|
+
function Tr(e) {
|
|
1322
1345
|
return Array.isArray(e) ? [] : {};
|
|
1323
1346
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1347
|
+
function se(e, t) {
|
|
1348
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Tr(e), e, t) : e;
|
|
1326
1349
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return e.concat(t).map(function(
|
|
1329
|
-
return
|
|
1350
|
+
function wr(e, t, n) {
|
|
1351
|
+
return e.concat(t).map(function(r) {
|
|
1352
|
+
return se(r, n);
|
|
1330
1353
|
});
|
|
1331
1354
|
}
|
|
1332
|
-
function
|
|
1355
|
+
function Hr(e, t) {
|
|
1333
1356
|
if (!t.customMerge)
|
|
1334
|
-
return
|
|
1335
|
-
var
|
|
1336
|
-
return typeof
|
|
1357
|
+
return Z;
|
|
1358
|
+
var n = t.customMerge(e);
|
|
1359
|
+
return typeof n == "function" ? n : Z;
|
|
1337
1360
|
}
|
|
1338
|
-
function
|
|
1361
|
+
function Br(e) {
|
|
1339
1362
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1340
1363
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1341
1364
|
}) : [];
|
|
1342
1365
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return Object.keys(e).concat(
|
|
1366
|
+
function bt(e) {
|
|
1367
|
+
return Object.keys(e).concat(Br(e));
|
|
1345
1368
|
}
|
|
1346
|
-
function
|
|
1369
|
+
function Qt(e, t) {
|
|
1347
1370
|
try {
|
|
1348
1371
|
return t in e;
|
|
1349
1372
|
} catch {
|
|
1350
1373
|
return !1;
|
|
1351
1374
|
}
|
|
1352
1375
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1376
|
+
function Ar(e, t) {
|
|
1377
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1355
1378
|
}
|
|
1356
|
-
function
|
|
1357
|
-
var
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1360
|
-
}),
|
|
1361
|
-
|
|
1362
|
-
}),
|
|
1363
|
-
}
|
|
1364
|
-
function
|
|
1365
|
-
|
|
1366
|
-
var
|
|
1367
|
-
return o ?
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1379
|
+
function Pr(e, t, n) {
|
|
1380
|
+
var r = {};
|
|
1381
|
+
return n.isMergeableObject(e) && bt(e).forEach(function(i) {
|
|
1382
|
+
r[i] = se(e[i], n);
|
|
1383
|
+
}), bt(t).forEach(function(i) {
|
|
1384
|
+
Ar(e, i) || (Qt(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hr(i, n)(e[i], t[i], n) : r[i] = se(t[i], n));
|
|
1385
|
+
}), r;
|
|
1386
|
+
}
|
|
1387
|
+
function Z(e, t, n) {
|
|
1388
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || wr, n.isMergeableObject = n.isMergeableObject || yr, n.cloneUnlessOtherwiseSpecified = se;
|
|
1389
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1390
|
+
return o ? r ? n.arrayMerge(e, t, n) : Pr(e, t, n) : se(t, n);
|
|
1391
|
+
}
|
|
1392
|
+
Z.all = function(t, n) {
|
|
1370
1393
|
if (!Array.isArray(t))
|
|
1371
1394
|
throw new Error("first argument should be an array");
|
|
1372
|
-
return t.reduce(function(
|
|
1373
|
-
return
|
|
1395
|
+
return t.reduce(function(r, i) {
|
|
1396
|
+
return Z(r, i, n);
|
|
1374
1397
|
}, {});
|
|
1375
1398
|
};
|
|
1376
|
-
var
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
r.__proto__ = n;
|
|
1381
|
-
} || function(r, n) {
|
|
1382
|
-
for (var i in n)
|
|
1383
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1384
|
-
}, Je(e, t);
|
|
1385
|
-
};
|
|
1386
|
-
function Pe(e, t) {
|
|
1387
|
-
if (typeof t != "function" && t !== null)
|
|
1388
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1389
|
-
Je(e, t);
|
|
1390
|
-
function r() {
|
|
1391
|
-
this.constructor = e;
|
|
1392
|
-
}
|
|
1393
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1394
|
-
}
|
|
1395
|
-
var L = function() {
|
|
1396
|
-
return L = Object.assign || function(t) {
|
|
1397
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1398
|
-
r = arguments[n];
|
|
1399
|
-
for (var o in r)
|
|
1400
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1401
|
-
}
|
|
1402
|
-
return t;
|
|
1403
|
-
}, L.apply(this, arguments);
|
|
1404
|
-
};
|
|
1405
|
-
function $n(e, t) {
|
|
1406
|
-
var r = {};
|
|
1407
|
-
for (var n in e)
|
|
1408
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1409
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1410
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1411
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1412
|
-
return r;
|
|
1413
|
-
}
|
|
1414
|
-
function Re(e, t, r) {
|
|
1415
|
-
if (r || arguments.length === 2)
|
|
1416
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1417
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1418
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1419
|
-
}
|
|
1420
|
-
function Ue(e, t) {
|
|
1421
|
-
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
|
|
1399
|
+
var Or = Z, Ir = Or;
|
|
1400
|
+
const Lr = /* @__PURE__ */ gr(Ir);
|
|
1401
|
+
function Ce(e, t) {
|
|
1402
|
+
var n = t && t.cache ? t.cache : Dr, r = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
|
|
1422
1403
|
return i(e, {
|
|
1423
|
-
cache:
|
|
1424
|
-
serializer:
|
|
1404
|
+
cache: n,
|
|
1405
|
+
serializer: r
|
|
1425
1406
|
});
|
|
1426
1407
|
}
|
|
1427
|
-
function
|
|
1408
|
+
function Nr(e) {
|
|
1428
1409
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1429
1410
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var i =
|
|
1432
|
-
return typeof o > "u" && (o = e.call(this,
|
|
1411
|
+
function Jt(e, t, n, r) {
|
|
1412
|
+
var i = Nr(r) ? r : n(r), o = t.get(i);
|
|
1413
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1433
1414
|
}
|
|
1434
|
-
function
|
|
1435
|
-
var
|
|
1436
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
1415
|
+
function Yt(e, t, n) {
|
|
1416
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1417
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1437
1418
|
}
|
|
1438
|
-
function
|
|
1439
|
-
return
|
|
1419
|
+
function rt(e, t, n, r, i) {
|
|
1420
|
+
return n.bind(t, e, r, i);
|
|
1440
1421
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var
|
|
1443
|
-
return
|
|
1422
|
+
function Mr(e, t) {
|
|
1423
|
+
var n = e.length === 1 ? Jt : Yt;
|
|
1424
|
+
return rt(e, this, n, t.cache.create(), t.serializer);
|
|
1444
1425
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return
|
|
1426
|
+
function Cr(e, t) {
|
|
1427
|
+
return rt(e, this, Yt, t.cache.create(), t.serializer);
|
|
1447
1428
|
}
|
|
1448
|
-
|
|
1429
|
+
function $r(e, t) {
|
|
1430
|
+
return rt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1431
|
+
}
|
|
1432
|
+
var Rr = function() {
|
|
1449
1433
|
return JSON.stringify(arguments);
|
|
1450
|
-
},
|
|
1434
|
+
}, Ur = (
|
|
1451
1435
|
/** @class */
|
|
1452
1436
|
function() {
|
|
1453
1437
|
function e() {
|
|
@@ -1455,27 +1439,18 @@ var Fn = function() {
|
|
|
1455
1439
|
}
|
|
1456
1440
|
return e.prototype.get = function(t) {
|
|
1457
1441
|
return this.cache[t];
|
|
1458
|
-
}, e.prototype.set = function(t,
|
|
1459
|
-
this.cache[t] =
|
|
1442
|
+
}, e.prototype.set = function(t, n) {
|
|
1443
|
+
this.cache[t] = n;
|
|
1460
1444
|
}, e;
|
|
1461
1445
|
}()
|
|
1462
|
-
),
|
|
1446
|
+
), Dr = {
|
|
1463
1447
|
create: function() {
|
|
1464
|
-
return new
|
|
1448
|
+
return new Ur();
|
|
1465
1449
|
}
|
|
1466
|
-
},
|
|
1467
|
-
variadic:
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1471
|
-
r = arguments[n];
|
|
1472
|
-
for (var o in r)
|
|
1473
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1474
|
-
}
|
|
1475
|
-
return t;
|
|
1476
|
-
}, we.apply(this, arguments);
|
|
1477
|
-
};
|
|
1478
|
-
var b;
|
|
1450
|
+
}, $e = {
|
|
1451
|
+
variadic: Cr,
|
|
1452
|
+
monadic: $r
|
|
1453
|
+
}, b;
|
|
1479
1454
|
(function(e) {
|
|
1480
1455
|
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";
|
|
1481
1456
|
})(b || (b = {}));
|
|
@@ -1483,54 +1458,54 @@ var v;
|
|
|
1483
1458
|
(function(e) {
|
|
1484
1459
|
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";
|
|
1485
1460
|
})(v || (v = {}));
|
|
1486
|
-
var
|
|
1461
|
+
var q;
|
|
1487
1462
|
(function(e) {
|
|
1488
1463
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1489
|
-
})(
|
|
1490
|
-
function
|
|
1464
|
+
})(q || (q = {}));
|
|
1465
|
+
function gt(e) {
|
|
1491
1466
|
return e.type === v.literal;
|
|
1492
1467
|
}
|
|
1493
|
-
function
|
|
1468
|
+
function Gr(e) {
|
|
1494
1469
|
return e.type === v.argument;
|
|
1495
1470
|
}
|
|
1496
|
-
function
|
|
1471
|
+
function Kt(e) {
|
|
1497
1472
|
return e.type === v.number;
|
|
1498
1473
|
}
|
|
1499
|
-
function
|
|
1474
|
+
function en(e) {
|
|
1500
1475
|
return e.type === v.date;
|
|
1501
1476
|
}
|
|
1502
|
-
function
|
|
1477
|
+
function tn(e) {
|
|
1503
1478
|
return e.type === v.time;
|
|
1504
1479
|
}
|
|
1505
|
-
function
|
|
1480
|
+
function nn(e) {
|
|
1506
1481
|
return e.type === v.select;
|
|
1507
1482
|
}
|
|
1508
|
-
function
|
|
1483
|
+
function rn(e) {
|
|
1509
1484
|
return e.type === v.plural;
|
|
1510
1485
|
}
|
|
1511
|
-
function
|
|
1486
|
+
function Fr(e) {
|
|
1512
1487
|
return e.type === v.pound;
|
|
1513
1488
|
}
|
|
1514
|
-
function
|
|
1489
|
+
function on(e) {
|
|
1515
1490
|
return e.type === v.tag;
|
|
1516
1491
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1492
|
+
function sn(e) {
|
|
1493
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1519
1494
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1495
|
+
function ze(e) {
|
|
1496
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1522
1497
|
}
|
|
1523
|
-
var
|
|
1524
|
-
function
|
|
1498
|
+
var an = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[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;
|
|
1499
|
+
function kr(e) {
|
|
1525
1500
|
var t = {};
|
|
1526
|
-
return e.replace(
|
|
1527
|
-
var
|
|
1528
|
-
switch (
|
|
1501
|
+
return e.replace(jr, function(n) {
|
|
1502
|
+
var r = n.length;
|
|
1503
|
+
switch (n[0]) {
|
|
1529
1504
|
case "G":
|
|
1530
|
-
t.era =
|
|
1505
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1531
1506
|
break;
|
|
1532
1507
|
case "y":
|
|
1533
|
-
t.year =
|
|
1508
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1534
1509
|
break;
|
|
1535
1510
|
case "Y":
|
|
1536
1511
|
case "u":
|
|
@@ -1542,30 +1517,30 @@ function zn(e) {
|
|
|
1542
1517
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1543
1518
|
case "M":
|
|
1544
1519
|
case "L":
|
|
1545
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1520
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1546
1521
|
break;
|
|
1547
1522
|
case "w":
|
|
1548
1523
|
case "W":
|
|
1549
1524
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1550
1525
|
case "d":
|
|
1551
|
-
t.day = ["numeric", "2-digit"][
|
|
1526
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1552
1527
|
break;
|
|
1553
1528
|
case "D":
|
|
1554
1529
|
case "F":
|
|
1555
1530
|
case "g":
|
|
1556
1531
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1557
1532
|
case "E":
|
|
1558
|
-
t.weekday =
|
|
1533
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1559
1534
|
break;
|
|
1560
1535
|
case "e":
|
|
1561
|
-
if (
|
|
1536
|
+
if (r < 4)
|
|
1562
1537
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1563
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1538
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1564
1539
|
break;
|
|
1565
1540
|
case "c":
|
|
1566
|
-
if (
|
|
1541
|
+
if (r < 4)
|
|
1567
1542
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1568
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1543
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1569
1544
|
break;
|
|
1570
1545
|
case "a":
|
|
1571
1546
|
t.hour12 = !0;
|
|
@@ -1574,32 +1549,32 @@ function zn(e) {
|
|
|
1574
1549
|
case "B":
|
|
1575
1550
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1576
1551
|
case "h":
|
|
1577
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1552
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1578
1553
|
break;
|
|
1579
1554
|
case "H":
|
|
1580
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1555
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1581
1556
|
break;
|
|
1582
1557
|
case "K":
|
|
1583
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1558
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1584
1559
|
break;
|
|
1585
1560
|
case "k":
|
|
1586
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1561
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1587
1562
|
break;
|
|
1588
1563
|
case "j":
|
|
1589
1564
|
case "J":
|
|
1590
1565
|
case "C":
|
|
1591
1566
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1592
1567
|
case "m":
|
|
1593
|
-
t.minute = ["numeric", "2-digit"][
|
|
1568
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1594
1569
|
break;
|
|
1595
1570
|
case "s":
|
|
1596
|
-
t.second = ["numeric", "2-digit"][
|
|
1571
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1597
1572
|
break;
|
|
1598
1573
|
case "S":
|
|
1599
1574
|
case "A":
|
|
1600
1575
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1601
1576
|
case "z":
|
|
1602
|
-
t.timeZoneName =
|
|
1577
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1603
1578
|
break;
|
|
1604
1579
|
case "Z":
|
|
1605
1580
|
case "O":
|
|
@@ -1612,46 +1587,36 @@ function zn(e) {
|
|
|
1612
1587
|
return "";
|
|
1613
1588
|
}), t;
|
|
1614
1589
|
}
|
|
1615
|
-
var
|
|
1616
|
-
|
|
1617
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1618
|
-
r = arguments[n];
|
|
1619
|
-
for (var o in r)
|
|
1620
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1621
|
-
}
|
|
1622
|
-
return t;
|
|
1623
|
-
}, E.apply(this, arguments);
|
|
1624
|
-
};
|
|
1625
|
-
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1626
|
-
function qn(e) {
|
|
1590
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1591
|
+
function Xr(e) {
|
|
1627
1592
|
if (e.length === 0)
|
|
1628
1593
|
throw new Error("Number skeleton cannot be empty");
|
|
1629
|
-
for (var t = e.split(
|
|
1630
|
-
return
|
|
1631
|
-
}),
|
|
1632
|
-
var o = i[
|
|
1594
|
+
for (var t = e.split(Vr).filter(function(f) {
|
|
1595
|
+
return f.length > 0;
|
|
1596
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1597
|
+
var o = i[r], a = o.split("/");
|
|
1633
1598
|
if (a.length === 0)
|
|
1634
1599
|
throw new Error("Invalid number skeleton");
|
|
1635
|
-
for (var s = a[0],
|
|
1636
|
-
var
|
|
1637
|
-
if (
|
|
1600
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1601
|
+
var c = l[u];
|
|
1602
|
+
if (c.length === 0)
|
|
1638
1603
|
throw new Error("Invalid number skeleton");
|
|
1639
1604
|
}
|
|
1640
|
-
|
|
1605
|
+
n.push({ stem: s, options: h });
|
|
1641
1606
|
}
|
|
1642
|
-
return
|
|
1607
|
+
return n;
|
|
1643
1608
|
}
|
|
1644
|
-
function
|
|
1609
|
+
function Wr(e) {
|
|
1645
1610
|
return e.replace(/^(.*?)-/, "");
|
|
1646
1611
|
}
|
|
1647
|
-
var
|
|
1648
|
-
function
|
|
1612
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, un = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, hn = /^(0+)$/;
|
|
1613
|
+
function _t(e) {
|
|
1649
1614
|
var t = {};
|
|
1650
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1651
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1615
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(un, function(n, r, i) {
|
|
1616
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1652
1617
|
}), t;
|
|
1653
1618
|
}
|
|
1654
|
-
function
|
|
1619
|
+
function ln(e) {
|
|
1655
1620
|
switch (e) {
|
|
1656
1621
|
case "sign-auto":
|
|
1657
1622
|
return {
|
|
@@ -1691,27 +1656,27 @@ function pr(e) {
|
|
|
1691
1656
|
};
|
|
1692
1657
|
}
|
|
1693
1658
|
}
|
|
1694
|
-
function
|
|
1659
|
+
function Zr(e) {
|
|
1695
1660
|
var t;
|
|
1696
1661
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1697
1662
|
notation: "engineering"
|
|
1698
1663
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1699
1664
|
notation: "scientific"
|
|
1700
1665
|
}, e = e.slice(1)), t) {
|
|
1701
|
-
var
|
|
1702
|
-
if (
|
|
1666
|
+
var n = e.slice(0, 2);
|
|
1667
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hn.test(e))
|
|
1703
1668
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1704
1669
|
t.minimumIntegerDigits = e.length;
|
|
1705
1670
|
}
|
|
1706
1671
|
return t;
|
|
1707
1672
|
}
|
|
1708
|
-
function
|
|
1709
|
-
var t = {},
|
|
1710
|
-
return
|
|
1673
|
+
function vt(e) {
|
|
1674
|
+
var t = {}, n = ln(e);
|
|
1675
|
+
return n || t;
|
|
1711
1676
|
}
|
|
1712
|
-
function
|
|
1713
|
-
for (var t = {},
|
|
1714
|
-
var i = n
|
|
1677
|
+
function qr(e) {
|
|
1678
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1679
|
+
var i = r[n];
|
|
1715
1680
|
switch (i.stem) {
|
|
1716
1681
|
case "percent":
|
|
1717
1682
|
case "%":
|
|
@@ -1733,7 +1698,7 @@ function Kn(e) {
|
|
|
1733
1698
|
continue;
|
|
1734
1699
|
case "measure-unit":
|
|
1735
1700
|
case "unit":
|
|
1736
|
-
t.style = "unit", t.unit =
|
|
1701
|
+
t.style = "unit", t.unit = Wr(i.options[0]);
|
|
1737
1702
|
continue;
|
|
1738
1703
|
case "compact-short":
|
|
1739
1704
|
case "K":
|
|
@@ -1744,13 +1709,13 @@ function Kn(e) {
|
|
|
1744
1709
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1745
1710
|
continue;
|
|
1746
1711
|
case "scientific":
|
|
1747
|
-
t =
|
|
1748
|
-
return
|
|
1712
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1713
|
+
return y(y({}, h), vt(u));
|
|
1749
1714
|
}, {}));
|
|
1750
1715
|
continue;
|
|
1751
1716
|
case "engineering":
|
|
1752
|
-
t =
|
|
1753
|
-
return
|
|
1717
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1718
|
+
return y(y({}, h), vt(u));
|
|
1754
1719
|
}, {}));
|
|
1755
1720
|
continue;
|
|
1756
1721
|
case "notation-simple":
|
|
@@ -1795,41 +1760,41 @@ function Kn(e) {
|
|
|
1795
1760
|
case "integer-width":
|
|
1796
1761
|
if (i.options.length > 1)
|
|
1797
1762
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1798
|
-
i.options[0].replace(
|
|
1763
|
+
i.options[0].replace(zr, function(h, u, l, c, f, p) {
|
|
1799
1764
|
if (u)
|
|
1800
|
-
t.minimumIntegerDigits =
|
|
1765
|
+
t.minimumIntegerDigits = l.length;
|
|
1801
1766
|
else {
|
|
1802
|
-
if (
|
|
1767
|
+
if (c && f)
|
|
1803
1768
|
throw new Error("We currently do not support maximum integer digits");
|
|
1804
|
-
if (
|
|
1769
|
+
if (p)
|
|
1805
1770
|
throw new Error("We currently do not support exact integer digits");
|
|
1806
1771
|
}
|
|
1807
1772
|
return "";
|
|
1808
1773
|
});
|
|
1809
1774
|
continue;
|
|
1810
1775
|
}
|
|
1811
|
-
if (
|
|
1776
|
+
if (hn.test(i.stem)) {
|
|
1812
1777
|
t.minimumIntegerDigits = i.stem.length;
|
|
1813
1778
|
continue;
|
|
1814
1779
|
}
|
|
1815
|
-
if (
|
|
1780
|
+
if (yt.test(i.stem)) {
|
|
1816
1781
|
if (i.options.length > 1)
|
|
1817
1782
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1818
|
-
i.stem.replace(
|
|
1819
|
-
return
|
|
1783
|
+
i.stem.replace(yt, function(h, u, l, c, f, p) {
|
|
1784
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1820
1785
|
});
|
|
1821
1786
|
var o = i.options[0];
|
|
1822
|
-
o === "w" ? t =
|
|
1787
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), _t(o)));
|
|
1823
1788
|
continue;
|
|
1824
1789
|
}
|
|
1825
|
-
if (
|
|
1826
|
-
t =
|
|
1790
|
+
if (un.test(i.stem)) {
|
|
1791
|
+
t = y(y({}, t), _t(i.stem));
|
|
1827
1792
|
continue;
|
|
1828
1793
|
}
|
|
1829
|
-
var a =
|
|
1830
|
-
a && (t =
|
|
1831
|
-
var s =
|
|
1832
|
-
s && (t =
|
|
1794
|
+
var a = ln(i.stem);
|
|
1795
|
+
a && (t = y(y({}, t), a));
|
|
1796
|
+
var s = Zr(i.stem);
|
|
1797
|
+
s && (t = y(y({}, t), s));
|
|
1833
1798
|
}
|
|
1834
1799
|
return t;
|
|
1835
1800
|
}
|
|
@@ -3248,23 +3213,23 @@ var me = {
|
|
|
3248
3213
|
"h"
|
|
3249
3214
|
]
|
|
3250
3215
|
};
|
|
3251
|
-
function
|
|
3252
|
-
for (var
|
|
3253
|
-
var i = e.charAt(
|
|
3216
|
+
function Qr(e, t) {
|
|
3217
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3218
|
+
var i = e.charAt(r);
|
|
3254
3219
|
if (i === "j") {
|
|
3255
|
-
for (var o = 0;
|
|
3256
|
-
o++,
|
|
3257
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3220
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3221
|
+
o++, r++;
|
|
3222
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Jr(t);
|
|
3258
3223
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3259
|
-
|
|
3224
|
+
n += h;
|
|
3260
3225
|
for (; a-- > 0; )
|
|
3261
|
-
|
|
3226
|
+
n = u + n;
|
|
3262
3227
|
} else
|
|
3263
|
-
i === "J" ?
|
|
3228
|
+
i === "J" ? n += "H" : n += i;
|
|
3264
3229
|
}
|
|
3265
|
-
return
|
|
3230
|
+
return n;
|
|
3266
3231
|
}
|
|
3267
|
-
function
|
|
3232
|
+
function Jr(e) {
|
|
3268
3233
|
var t = e.hourCycle;
|
|
3269
3234
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3270
3235
|
e.hourCycles && // @ts-ignore
|
|
@@ -3281,73 +3246,73 @@ function ti(e) {
|
|
|
3281
3246
|
default:
|
|
3282
3247
|
throw new Error("Invalid hourCycle");
|
|
3283
3248
|
}
|
|
3284
|
-
var
|
|
3285
|
-
|
|
3286
|
-
var i = me[
|
|
3249
|
+
var n = e.language, r;
|
|
3250
|
+
n !== "root" && (r = e.maximize().region);
|
|
3251
|
+
var i = me[r || ""] || me[n || ""] || me["".concat(n, "-001")] || me["001"];
|
|
3287
3252
|
return i[0];
|
|
3288
3253
|
}
|
|
3289
|
-
var
|
|
3290
|
-
function
|
|
3254
|
+
var Re, Yr = new RegExp("^".concat(an.source, "*")), Kr = new RegExp("".concat(an.source, "*$"));
|
|
3255
|
+
function g(e, t) {
|
|
3291
3256
|
return { start: e, end: t };
|
|
3292
3257
|
}
|
|
3293
|
-
var
|
|
3258
|
+
var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ni = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, oi = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, ai = si ? Number.isSafeInteger : function(e) {
|
|
3294
3259
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3295
|
-
},
|
|
3260
|
+
}, Ze = !0;
|
|
3296
3261
|
try {
|
|
3297
|
-
var
|
|
3298
|
-
|
|
3262
|
+
var ui = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3263
|
+
Ze = ((Re = ui.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
3299
3264
|
} catch {
|
|
3300
|
-
|
|
3265
|
+
Ze = !1;
|
|
3301
3266
|
}
|
|
3302
|
-
var
|
|
3267
|
+
var xt = ei ? (
|
|
3303
3268
|
// Native
|
|
3304
|
-
function(t,
|
|
3305
|
-
return t.startsWith(
|
|
3269
|
+
function(t, n, r) {
|
|
3270
|
+
return t.startsWith(n, r);
|
|
3306
3271
|
}
|
|
3307
3272
|
) : (
|
|
3308
3273
|
// For IE11
|
|
3309
|
-
function(t,
|
|
3310
|
-
return t.slice(
|
|
3274
|
+
function(t, n, r) {
|
|
3275
|
+
return t.slice(r, r + n.length) === n;
|
|
3311
3276
|
}
|
|
3312
|
-
),
|
|
3277
|
+
), qe = ti ? String.fromCodePoint : (
|
|
3313
3278
|
// IE11
|
|
3314
3279
|
function() {
|
|
3315
|
-
for (var t = [],
|
|
3316
|
-
t[
|
|
3317
|
-
for (var
|
|
3280
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3281
|
+
t[n] = arguments[n];
|
|
3282
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
3318
3283
|
if (a = t[o++], a > 1114111)
|
|
3319
3284
|
throw RangeError(a + " is not a valid code point");
|
|
3320
|
-
|
|
3285
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3321
3286
|
}
|
|
3322
|
-
return
|
|
3287
|
+
return r;
|
|
3323
3288
|
}
|
|
3324
|
-
),
|
|
3289
|
+
), Et = (
|
|
3325
3290
|
// native
|
|
3326
|
-
|
|
3291
|
+
ni ? Object.fromEntries : (
|
|
3327
3292
|
// Ponyfill
|
|
3328
3293
|
function(t) {
|
|
3329
|
-
for (var
|
|
3330
|
-
var o = i[
|
|
3331
|
-
|
|
3294
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3295
|
+
var o = i[r], a = o[0], s = o[1];
|
|
3296
|
+
n[a] = s;
|
|
3332
3297
|
}
|
|
3333
|
-
return
|
|
3298
|
+
return n;
|
|
3334
3299
|
}
|
|
3335
3300
|
)
|
|
3336
|
-
),
|
|
3301
|
+
), fn = ri ? (
|
|
3337
3302
|
// Native
|
|
3338
|
-
function(t,
|
|
3339
|
-
return t.codePointAt(
|
|
3303
|
+
function(t, n) {
|
|
3304
|
+
return t.codePointAt(n);
|
|
3340
3305
|
}
|
|
3341
3306
|
) : (
|
|
3342
3307
|
// IE 11
|
|
3343
|
-
function(t,
|
|
3344
|
-
var
|
|
3345
|
-
if (!(
|
|
3346
|
-
var i = t.charCodeAt(
|
|
3347
|
-
return i < 55296 || i > 56319 ||
|
|
3308
|
+
function(t, n) {
|
|
3309
|
+
var r = t.length;
|
|
3310
|
+
if (!(n < 0 || n >= r)) {
|
|
3311
|
+
var i = t.charCodeAt(n), o;
|
|
3312
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3348
3313
|
}
|
|
3349
3314
|
}
|
|
3350
|
-
),
|
|
3315
|
+
), hi = ii ? (
|
|
3351
3316
|
// Native
|
|
3352
3317
|
function(t) {
|
|
3353
3318
|
return t.trimStart();
|
|
@@ -3355,9 +3320,9 @@ var Tt = ii ? (
|
|
|
3355
3320
|
) : (
|
|
3356
3321
|
// Ponyfill
|
|
3357
3322
|
function(t) {
|
|
3358
|
-
return t.replace(
|
|
3323
|
+
return t.replace(Yr, "");
|
|
3359
3324
|
}
|
|
3360
|
-
),
|
|
3325
|
+
), li = oi ? (
|
|
3361
3326
|
// Native
|
|
3362
3327
|
function(t) {
|
|
3363
3328
|
return t.trimEnd();
|
|
@@ -3365,69 +3330,69 @@ var Tt = ii ? (
|
|
|
3365
3330
|
) : (
|
|
3366
3331
|
// Ponyfill
|
|
3367
3332
|
function(t) {
|
|
3368
|
-
return t.replace(
|
|
3333
|
+
return t.replace(Kr, "");
|
|
3369
3334
|
}
|
|
3370
3335
|
);
|
|
3371
|
-
function
|
|
3336
|
+
function cn(e, t) {
|
|
3372
3337
|
return new RegExp(e, t);
|
|
3373
3338
|
}
|
|
3374
|
-
var
|
|
3375
|
-
if (
|
|
3376
|
-
var
|
|
3377
|
-
|
|
3378
|
-
var
|
|
3379
|
-
|
|
3380
|
-
var i =
|
|
3381
|
-
return (
|
|
3339
|
+
var Qe;
|
|
3340
|
+
if (Ze) {
|
|
3341
|
+
var St = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3342
|
+
Qe = function(t, n) {
|
|
3343
|
+
var r;
|
|
3344
|
+
St.lastIndex = n;
|
|
3345
|
+
var i = St.exec(t);
|
|
3346
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3382
3347
|
};
|
|
3383
3348
|
} else
|
|
3384
|
-
|
|
3385
|
-
for (var
|
|
3386
|
-
var i =
|
|
3387
|
-
if (i === void 0 ||
|
|
3349
|
+
Qe = function(t, n) {
|
|
3350
|
+
for (var r = []; ; ) {
|
|
3351
|
+
var i = fn(t, n);
|
|
3352
|
+
if (i === void 0 || dn(i) || pi(i))
|
|
3388
3353
|
break;
|
|
3389
|
-
|
|
3354
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3390
3355
|
}
|
|
3391
|
-
return
|
|
3356
|
+
return qe.apply(void 0, r);
|
|
3392
3357
|
};
|
|
3393
|
-
var
|
|
3358
|
+
var fi = (
|
|
3394
3359
|
/** @class */
|
|
3395
3360
|
function() {
|
|
3396
|
-
function e(t,
|
|
3397
|
-
|
|
3361
|
+
function e(t, n) {
|
|
3362
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3398
3363
|
}
|
|
3399
3364
|
return e.prototype.parse = function() {
|
|
3400
3365
|
if (this.offset() !== 0)
|
|
3401
3366
|
throw Error("parser can only be used once");
|
|
3402
3367
|
return this.parseMessage(0, "", !1);
|
|
3403
|
-
}, e.prototype.parseMessage = function(t,
|
|
3368
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3404
3369
|
for (var i = []; !this.isEOF(); ) {
|
|
3405
3370
|
var o = this.char();
|
|
3406
3371
|
if (o === 123) {
|
|
3407
|
-
var a = this.parseArgument(t,
|
|
3372
|
+
var a = this.parseArgument(t, r);
|
|
3408
3373
|
if (a.err)
|
|
3409
3374
|
return a;
|
|
3410
3375
|
i.push(a.val);
|
|
3411
3376
|
} else {
|
|
3412
3377
|
if (o === 125 && t > 0)
|
|
3413
3378
|
break;
|
|
3414
|
-
if (o === 35 && (
|
|
3379
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3415
3380
|
var s = this.clonePosition();
|
|
3416
3381
|
this.bump(), i.push({
|
|
3417
3382
|
type: v.pound,
|
|
3418
|
-
location:
|
|
3383
|
+
location: g(s, this.clonePosition())
|
|
3419
3384
|
});
|
|
3420
3385
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3421
|
-
if (
|
|
3386
|
+
if (r)
|
|
3422
3387
|
break;
|
|
3423
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3424
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3425
|
-
var a = this.parseTag(t,
|
|
3388
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3389
|
+
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3390
|
+
var a = this.parseTag(t, n);
|
|
3426
3391
|
if (a.err)
|
|
3427
3392
|
return a;
|
|
3428
3393
|
i.push(a.val);
|
|
3429
3394
|
} else {
|
|
3430
|
-
var a = this.parseLiteral(t,
|
|
3395
|
+
var a = this.parseLiteral(t, n);
|
|
3431
3396
|
if (a.err)
|
|
3432
3397
|
return a;
|
|
3433
3398
|
i.push(a.val);
|
|
@@ -3435,8 +3400,8 @@ var mi = (
|
|
|
3435
3400
|
}
|
|
3436
3401
|
}
|
|
3437
3402
|
return { val: i, err: null };
|
|
3438
|
-
}, e.prototype.parseTag = function(t,
|
|
3439
|
-
var
|
|
3403
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3404
|
+
var r = this.clonePosition();
|
|
3440
3405
|
this.bump();
|
|
3441
3406
|
var i = this.parseTagName();
|
|
3442
3407
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3444,45 +3409,45 @@ var mi = (
|
|
|
3444
3409
|
val: {
|
|
3445
3410
|
type: v.literal,
|
|
3446
3411
|
value: "<".concat(i, "/>"),
|
|
3447
|
-
location:
|
|
3412
|
+
location: g(r, this.clonePosition())
|
|
3448
3413
|
},
|
|
3449
3414
|
err: null
|
|
3450
3415
|
};
|
|
3451
3416
|
if (this.bumpIf(">")) {
|
|
3452
|
-
var o = this.parseMessage(t + 1,
|
|
3417
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3453
3418
|
if (o.err)
|
|
3454
3419
|
return o;
|
|
3455
3420
|
var a = o.val, s = this.clonePosition();
|
|
3456
3421
|
if (this.bumpIf("</")) {
|
|
3457
|
-
if (this.isEOF() || !
|
|
3458
|
-
return this.error(b.INVALID_TAG,
|
|
3459
|
-
var
|
|
3460
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3422
|
+
if (this.isEOF() || !Je(this.char()))
|
|
3423
|
+
return this.error(b.INVALID_TAG, g(s, this.clonePosition()));
|
|
3424
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
3425
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3461
3426
|
val: {
|
|
3462
3427
|
type: v.tag,
|
|
3463
3428
|
value: i,
|
|
3464
3429
|
children: a,
|
|
3465
|
-
location:
|
|
3430
|
+
location: g(r, this.clonePosition())
|
|
3466
3431
|
},
|
|
3467
3432
|
err: null
|
|
3468
|
-
} : this.error(b.INVALID_TAG,
|
|
3433
|
+
} : this.error(b.INVALID_TAG, g(s, this.clonePosition())));
|
|
3469
3434
|
} else
|
|
3470
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3435
|
+
return this.error(b.UNCLOSED_TAG, g(r, this.clonePosition()));
|
|
3471
3436
|
} else
|
|
3472
|
-
return this.error(b.INVALID_TAG,
|
|
3437
|
+
return this.error(b.INVALID_TAG, g(r, this.clonePosition()));
|
|
3473
3438
|
}, e.prototype.parseTagName = function() {
|
|
3474
3439
|
var t = this.offset();
|
|
3475
|
-
for (this.bump(); !this.isEOF() &&
|
|
3440
|
+
for (this.bump(); !this.isEOF() && di(this.char()); )
|
|
3476
3441
|
this.bump();
|
|
3477
3442
|
return this.message.slice(t, this.offset());
|
|
3478
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3479
|
-
for (var
|
|
3480
|
-
var o = this.tryParseQuote(
|
|
3443
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3444
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3445
|
+
var o = this.tryParseQuote(n);
|
|
3481
3446
|
if (o) {
|
|
3482
3447
|
i += o;
|
|
3483
3448
|
continue;
|
|
3484
3449
|
}
|
|
3485
|
-
var a = this.tryParseUnquoted(t,
|
|
3450
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3486
3451
|
if (a) {
|
|
3487
3452
|
i += a;
|
|
3488
3453
|
continue;
|
|
@@ -3494,14 +3459,14 @@ var mi = (
|
|
|
3494
3459
|
}
|
|
3495
3460
|
break;
|
|
3496
3461
|
}
|
|
3497
|
-
var
|
|
3462
|
+
var h = g(r, this.clonePosition());
|
|
3498
3463
|
return {
|
|
3499
|
-
val: { type: v.literal, value: i, location:
|
|
3464
|
+
val: { type: v.literal, value: i, location: h },
|
|
3500
3465
|
err: null
|
|
3501
3466
|
};
|
|
3502
3467
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3503
3468
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3504
|
-
!
|
|
3469
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3505
3470
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3506
3471
|
if (this.isEOF() || this.char() !== 39)
|
|
3507
3472
|
return null;
|
|
@@ -3521,37 +3486,37 @@ var mi = (
|
|
|
3521
3486
|
return null;
|
|
3522
3487
|
}
|
|
3523
3488
|
this.bump();
|
|
3524
|
-
var
|
|
3489
|
+
var n = [this.char()];
|
|
3525
3490
|
for (this.bump(); !this.isEOF(); ) {
|
|
3526
|
-
var
|
|
3527
|
-
if (
|
|
3491
|
+
var r = this.char();
|
|
3492
|
+
if (r === 39)
|
|
3528
3493
|
if (this.peek() === 39)
|
|
3529
|
-
|
|
3494
|
+
n.push(39), this.bump();
|
|
3530
3495
|
else {
|
|
3531
3496
|
this.bump();
|
|
3532
3497
|
break;
|
|
3533
3498
|
}
|
|
3534
3499
|
else
|
|
3535
|
-
|
|
3500
|
+
n.push(r);
|
|
3536
3501
|
this.bump();
|
|
3537
3502
|
}
|
|
3538
|
-
return
|
|
3539
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3503
|
+
return qe.apply(void 0, n);
|
|
3504
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3540
3505
|
if (this.isEOF())
|
|
3541
3506
|
return null;
|
|
3542
|
-
var
|
|
3543
|
-
return
|
|
3544
|
-
}, e.prototype.parseArgument = function(t,
|
|
3545
|
-
var
|
|
3507
|
+
var r = this.char();
|
|
3508
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qe(r));
|
|
3509
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3510
|
+
var r = this.clonePosition();
|
|
3546
3511
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3547
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3512
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3548
3513
|
if (this.char() === 125)
|
|
3549
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3514
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(r, this.clonePosition()));
|
|
3550
3515
|
var i = this.parseIdentifierIfPossible().value;
|
|
3551
3516
|
if (!i)
|
|
3552
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3517
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3553
3518
|
if (this.bumpSpace(), this.isEOF())
|
|
3554
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3519
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition()));
|
|
3555
3520
|
switch (this.char()) {
|
|
3556
3521
|
case 125:
|
|
3557
3522
|
return this.bump(), {
|
|
@@ -3559,25 +3524,25 @@ var mi = (
|
|
|
3559
3524
|
type: v.argument,
|
|
3560
3525
|
// value does not include the opening and closing braces.
|
|
3561
3526
|
value: i,
|
|
3562
|
-
location:
|
|
3527
|
+
location: g(r, this.clonePosition())
|
|
3563
3528
|
},
|
|
3564
3529
|
err: null
|
|
3565
3530
|
};
|
|
3566
3531
|
case 44:
|
|
3567
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3532
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3568
3533
|
default:
|
|
3569
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3534
|
+
return this.error(b.MALFORMED_ARGUMENT, g(r, this.clonePosition()));
|
|
3570
3535
|
}
|
|
3571
3536
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3572
|
-
var t = this.clonePosition(),
|
|
3537
|
+
var t = this.clonePosition(), n = this.offset(), r = Qe(this.message, n), i = n + r.length;
|
|
3573
3538
|
this.bumpTo(i);
|
|
3574
|
-
var o = this.clonePosition(), a =
|
|
3575
|
-
return { value:
|
|
3576
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3577
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3539
|
+
var o = this.clonePosition(), a = g(t, o);
|
|
3540
|
+
return { value: r, location: a };
|
|
3541
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3542
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3578
3543
|
switch (s) {
|
|
3579
3544
|
case "":
|
|
3580
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3545
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, h));
|
|
3581
3546
|
case "number":
|
|
3582
3547
|
case "date":
|
|
3583
3548
|
case "time": {
|
|
@@ -3585,40 +3550,40 @@ var mi = (
|
|
|
3585
3550
|
var u = null;
|
|
3586
3551
|
if (this.bumpIf(",")) {
|
|
3587
3552
|
this.bumpSpace();
|
|
3588
|
-
var
|
|
3589
|
-
if (
|
|
3590
|
-
return
|
|
3591
|
-
var
|
|
3592
|
-
if (
|
|
3593
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3594
|
-
var
|
|
3595
|
-
u = { style:
|
|
3553
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3554
|
+
if (c.err)
|
|
3555
|
+
return c;
|
|
3556
|
+
var f = li(c.val);
|
|
3557
|
+
if (f.length === 0)
|
|
3558
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3559
|
+
var p = g(l, this.clonePosition());
|
|
3560
|
+
u = { style: f, styleLocation: p };
|
|
3596
3561
|
}
|
|
3597
|
-
var
|
|
3598
|
-
if (
|
|
3599
|
-
return
|
|
3600
|
-
var m =
|
|
3601
|
-
if (u &&
|
|
3602
|
-
var
|
|
3562
|
+
var d = this.tryParseArgumentClose(i);
|
|
3563
|
+
if (d.err)
|
|
3564
|
+
return d;
|
|
3565
|
+
var m = g(i, this.clonePosition());
|
|
3566
|
+
if (u && xt(u?.style, "::", 0)) {
|
|
3567
|
+
var x = hi(u.style.slice(2));
|
|
3603
3568
|
if (s === "number") {
|
|
3604
|
-
var
|
|
3605
|
-
return
|
|
3606
|
-
val: { type: v.number, value:
|
|
3569
|
+
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3570
|
+
return c.err ? c : {
|
|
3571
|
+
val: { type: v.number, value: r, location: m, style: c.val },
|
|
3607
3572
|
err: null
|
|
3608
3573
|
};
|
|
3609
3574
|
} else {
|
|
3610
|
-
if (
|
|
3575
|
+
if (x.length === 0)
|
|
3611
3576
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3612
|
-
var
|
|
3613
|
-
this.locale && (
|
|
3614
|
-
var
|
|
3615
|
-
type:
|
|
3616
|
-
pattern:
|
|
3577
|
+
var T = x;
|
|
3578
|
+
this.locale && (T = Qr(x, this.locale));
|
|
3579
|
+
var f = {
|
|
3580
|
+
type: q.dateTime,
|
|
3581
|
+
pattern: T,
|
|
3617
3582
|
location: u.styleLocation,
|
|
3618
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3583
|
+
parsedOptions: this.shouldParseSkeletons ? kr(T) : {}
|
|
3619
3584
|
}, P = s === "date" ? v.date : v.time;
|
|
3620
3585
|
return {
|
|
3621
|
-
val: { type: P, value:
|
|
3586
|
+
val: { type: P, value: r, location: m, style: f },
|
|
3622
3587
|
err: null
|
|
3623
3588
|
};
|
|
3624
3589
|
}
|
|
@@ -3626,7 +3591,7 @@ var mi = (
|
|
|
3626
3591
|
return {
|
|
3627
3592
|
val: {
|
|
3628
3593
|
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3629
|
-
value:
|
|
3594
|
+
value: r,
|
|
3630
3595
|
location: m,
|
|
3631
3596
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3632
3597
|
},
|
|
@@ -3636,61 +3601,61 @@ var mi = (
|
|
|
3636
3601
|
case "plural":
|
|
3637
3602
|
case "selectordinal":
|
|
3638
3603
|
case "select": {
|
|
3639
|
-
var
|
|
3604
|
+
var E = this.clonePosition();
|
|
3640
3605
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3641
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3606
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(E, y({}, E)));
|
|
3642
3607
|
this.bumpSpace();
|
|
3643
|
-
var O = this.parseIdentifierIfPossible(),
|
|
3608
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3644
3609
|
if (s !== "select" && O.value === "offset") {
|
|
3645
3610
|
if (!this.bumpIf(":"))
|
|
3646
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3611
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3647
3612
|
this.bumpSpace();
|
|
3648
|
-
var
|
|
3649
|
-
if (
|
|
3650
|
-
return
|
|
3651
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
3613
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3614
|
+
if (c.err)
|
|
3615
|
+
return c;
|
|
3616
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
3652
3617
|
}
|
|
3653
|
-
var $ = this.tryParsePluralOrSelectOptions(t, s,
|
|
3618
|
+
var $ = this.tryParsePluralOrSelectOptions(t, s, n, O);
|
|
3654
3619
|
if ($.err)
|
|
3655
3620
|
return $;
|
|
3656
|
-
var
|
|
3657
|
-
if (
|
|
3658
|
-
return
|
|
3659
|
-
var
|
|
3621
|
+
var d = this.tryParseArgumentClose(i);
|
|
3622
|
+
if (d.err)
|
|
3623
|
+
return d;
|
|
3624
|
+
var ce = g(i, this.clonePosition());
|
|
3660
3625
|
return s === "select" ? {
|
|
3661
3626
|
val: {
|
|
3662
3627
|
type: v.select,
|
|
3663
|
-
value:
|
|
3664
|
-
options:
|
|
3665
|
-
location:
|
|
3628
|
+
value: r,
|
|
3629
|
+
options: Et($.val),
|
|
3630
|
+
location: ce
|
|
3666
3631
|
},
|
|
3667
3632
|
err: null
|
|
3668
3633
|
} : {
|
|
3669
3634
|
val: {
|
|
3670
3635
|
type: v.plural,
|
|
3671
|
-
value:
|
|
3672
|
-
options:
|
|
3673
|
-
offset:
|
|
3636
|
+
value: r,
|
|
3637
|
+
options: Et($.val),
|
|
3638
|
+
offset: w,
|
|
3674
3639
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3675
|
-
location:
|
|
3640
|
+
location: ce
|
|
3676
3641
|
},
|
|
3677
3642
|
err: null
|
|
3678
3643
|
};
|
|
3679
3644
|
}
|
|
3680
3645
|
default:
|
|
3681
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3646
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(a, h));
|
|
3682
3647
|
}
|
|
3683
3648
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3684
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3649
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3685
3650
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3686
|
-
for (var t = 0,
|
|
3687
|
-
var
|
|
3688
|
-
switch (
|
|
3651
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3652
|
+
var r = this.char();
|
|
3653
|
+
switch (r) {
|
|
3689
3654
|
case 39: {
|
|
3690
3655
|
this.bump();
|
|
3691
3656
|
var i = this.clonePosition();
|
|
3692
3657
|
if (!this.bumpUntil("'"))
|
|
3693
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3658
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3694
3659
|
this.bump();
|
|
3695
3660
|
break;
|
|
3696
3661
|
}
|
|
@@ -3703,7 +3668,7 @@ var mi = (
|
|
|
3703
3668
|
t -= 1;
|
|
3704
3669
|
else
|
|
3705
3670
|
return {
|
|
3706
|
-
val: this.message.slice(
|
|
3671
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3707
3672
|
err: null
|
|
3708
3673
|
};
|
|
3709
3674
|
break;
|
|
@@ -3714,61 +3679,61 @@ var mi = (
|
|
|
3714
3679
|
}
|
|
3715
3680
|
}
|
|
3716
3681
|
return {
|
|
3717
|
-
val: this.message.slice(
|
|
3682
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3718
3683
|
err: null
|
|
3719
3684
|
};
|
|
3720
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3721
|
-
var
|
|
3685
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3686
|
+
var r = [];
|
|
3722
3687
|
try {
|
|
3723
|
-
|
|
3688
|
+
r = Xr(t);
|
|
3724
3689
|
} catch {
|
|
3725
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3690
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
3726
3691
|
}
|
|
3727
3692
|
return {
|
|
3728
3693
|
val: {
|
|
3729
|
-
type:
|
|
3730
|
-
tokens:
|
|
3731
|
-
location:
|
|
3732
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3694
|
+
type: q.number,
|
|
3695
|
+
tokens: r,
|
|
3696
|
+
location: n,
|
|
3697
|
+
parsedOptions: this.shouldParseSkeletons ? qr(r) : {}
|
|
3733
3698
|
},
|
|
3734
3699
|
err: null
|
|
3735
3700
|
};
|
|
3736
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3737
|
-
for (var o, a = !1, s = [],
|
|
3701
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3702
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3738
3703
|
if (u.length === 0) {
|
|
3739
|
-
var
|
|
3740
|
-
if (
|
|
3741
|
-
var
|
|
3742
|
-
if (
|
|
3743
|
-
return
|
|
3744
|
-
|
|
3704
|
+
var c = this.clonePosition();
|
|
3705
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3706
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3707
|
+
if (f.err)
|
|
3708
|
+
return f;
|
|
3709
|
+
l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3745
3710
|
} else
|
|
3746
3711
|
break;
|
|
3747
3712
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
return this.error(
|
|
3713
|
+
if (h.has(u))
|
|
3714
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3750
3715
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3751
|
-
var
|
|
3716
|
+
var p = this.clonePosition();
|
|
3752
3717
|
if (!this.bumpIf("{"))
|
|
3753
|
-
return this.error(
|
|
3754
|
-
var
|
|
3755
|
-
if (
|
|
3756
|
-
return
|
|
3757
|
-
var m = this.tryParseArgumentClose(
|
|
3718
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3719
|
+
var d = this.parseMessage(t + 1, n, r);
|
|
3720
|
+
if (d.err)
|
|
3721
|
+
return d;
|
|
3722
|
+
var m = this.tryParseArgumentClose(p);
|
|
3758
3723
|
if (m.err)
|
|
3759
3724
|
return m;
|
|
3760
3725
|
s.push([
|
|
3761
3726
|
u,
|
|
3762
3727
|
{
|
|
3763
|
-
value:
|
|
3764
|
-
location:
|
|
3728
|
+
value: d.val,
|
|
3729
|
+
location: g(p, this.clonePosition())
|
|
3765
3730
|
}
|
|
3766
|
-
]),
|
|
3731
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3767
3732
|
}
|
|
3768
|
-
return s.length === 0 ? this.error(
|
|
3769
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3770
|
-
var
|
|
3771
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3733
|
+
return s.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3734
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3735
|
+
var r = 1, i = this.clonePosition();
|
|
3736
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3772
3737
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3773
3738
|
var s = this.char();
|
|
3774
3739
|
if (s >= 48 && s <= 57)
|
|
@@ -3776,8 +3741,8 @@ var mi = (
|
|
|
3776
3741
|
else
|
|
3777
3742
|
break;
|
|
3778
3743
|
}
|
|
3779
|
-
var
|
|
3780
|
-
return o ? (a *=
|
|
3744
|
+
var h = g(i, this.clonePosition());
|
|
3745
|
+
return o ? (a *= r, ai(a) ? { val: a, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3781
3746
|
}, e.prototype.offset = function() {
|
|
3782
3747
|
return this.position.offset;
|
|
3783
3748
|
}, e.prototype.isEOF = function() {
|
|
@@ -3792,17 +3757,17 @@ var mi = (
|
|
|
3792
3757
|
var t = this.position.offset;
|
|
3793
3758
|
if (t >= this.message.length)
|
|
3794
3759
|
throw Error("out of bound");
|
|
3795
|
-
var
|
|
3796
|
-
if (
|
|
3760
|
+
var n = fn(this.message, t);
|
|
3761
|
+
if (n === void 0)
|
|
3797
3762
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3798
|
-
return
|
|
3799
|
-
}, e.prototype.error = function(t,
|
|
3763
|
+
return n;
|
|
3764
|
+
}, e.prototype.error = function(t, n) {
|
|
3800
3765
|
return {
|
|
3801
3766
|
val: null,
|
|
3802
3767
|
err: {
|
|
3803
3768
|
kind: t,
|
|
3804
3769
|
message: this.message,
|
|
3805
|
-
location:
|
|
3770
|
+
location: n
|
|
3806
3771
|
}
|
|
3807
3772
|
};
|
|
3808
3773
|
}, e.prototype.bump = function() {
|
|
@@ -3811,320 +3776,320 @@ var mi = (
|
|
|
3811
3776
|
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);
|
|
3812
3777
|
}
|
|
3813
3778
|
}, e.prototype.bumpIf = function(t) {
|
|
3814
|
-
if (
|
|
3815
|
-
for (var
|
|
3779
|
+
if (xt(this.message, t, this.offset())) {
|
|
3780
|
+
for (var n = 0; n < t.length; n++)
|
|
3816
3781
|
this.bump();
|
|
3817
3782
|
return !0;
|
|
3818
3783
|
}
|
|
3819
3784
|
return !1;
|
|
3820
3785
|
}, e.prototype.bumpUntil = function(t) {
|
|
3821
|
-
var
|
|
3822
|
-
return
|
|
3786
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3787
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3823
3788
|
}, e.prototype.bumpTo = function(t) {
|
|
3824
3789
|
if (this.offset() > t)
|
|
3825
3790
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3826
3791
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3827
|
-
var
|
|
3828
|
-
if (
|
|
3792
|
+
var n = this.offset();
|
|
3793
|
+
if (n === t)
|
|
3829
3794
|
break;
|
|
3830
|
-
if (
|
|
3795
|
+
if (n > t)
|
|
3831
3796
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3832
3797
|
if (this.bump(), this.isEOF())
|
|
3833
3798
|
break;
|
|
3834
3799
|
}
|
|
3835
3800
|
}, e.prototype.bumpSpace = function() {
|
|
3836
|
-
for (; !this.isEOF() &&
|
|
3801
|
+
for (; !this.isEOF() && dn(this.char()); )
|
|
3837
3802
|
this.bump();
|
|
3838
3803
|
}, e.prototype.peek = function() {
|
|
3839
3804
|
if (this.isEOF())
|
|
3840
3805
|
return null;
|
|
3841
|
-
var t = this.char(),
|
|
3842
|
-
return
|
|
3806
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3807
|
+
return r ?? null;
|
|
3843
3808
|
}, e;
|
|
3844
3809
|
}()
|
|
3845
3810
|
);
|
|
3846
|
-
function
|
|
3811
|
+
function Je(e) {
|
|
3847
3812
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3848
3813
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return
|
|
3814
|
+
function ci(e) {
|
|
3815
|
+
return Je(e) || e === 47;
|
|
3851
3816
|
}
|
|
3852
|
-
function
|
|
3817
|
+
function di(e) {
|
|
3853
3818
|
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;
|
|
3854
3819
|
}
|
|
3855
|
-
function
|
|
3820
|
+
function dn(e) {
|
|
3856
3821
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3857
3822
|
}
|
|
3858
|
-
function
|
|
3823
|
+
function pi(e) {
|
|
3859
3824
|
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;
|
|
3860
3825
|
}
|
|
3861
|
-
function
|
|
3826
|
+
function Ye(e) {
|
|
3862
3827
|
e.forEach(function(t) {
|
|
3863
|
-
if (delete t.location,
|
|
3864
|
-
for (var
|
|
3865
|
-
delete t.options[
|
|
3828
|
+
if (delete t.location, nn(t) || rn(t))
|
|
3829
|
+
for (var n in t.options)
|
|
3830
|
+
delete t.options[n].location, Ye(t.options[n].value);
|
|
3866
3831
|
else
|
|
3867
|
-
|
|
3832
|
+
Kt(t) && sn(t.style) || (en(t) || tn(t)) && ze(t.style) ? delete t.style.location : on(t) && Ye(t.children);
|
|
3868
3833
|
});
|
|
3869
3834
|
}
|
|
3870
|
-
function
|
|
3871
|
-
t === void 0 && (t = {}), t =
|
|
3872
|
-
var
|
|
3873
|
-
if (
|
|
3874
|
-
var
|
|
3875
|
-
throw
|
|
3835
|
+
function mi(e, t) {
|
|
3836
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3837
|
+
var n = new fi(e, t).parse();
|
|
3838
|
+
if (n.err) {
|
|
3839
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3840
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3876
3841
|
}
|
|
3877
|
-
return t?.captureLocation ||
|
|
3842
|
+
return t?.captureLocation || Ye(n.val), n.val;
|
|
3878
3843
|
}
|
|
3879
|
-
var
|
|
3844
|
+
var Q;
|
|
3880
3845
|
(function(e) {
|
|
3881
3846
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3882
|
-
})(
|
|
3883
|
-
var
|
|
3847
|
+
})(Q || (Q = {}));
|
|
3848
|
+
var Ae = (
|
|
3884
3849
|
/** @class */
|
|
3885
3850
|
function(e) {
|
|
3886
|
-
|
|
3887
|
-
function t(
|
|
3888
|
-
var o = e.call(this,
|
|
3889
|
-
return o.code =
|
|
3851
|
+
C(t, e);
|
|
3852
|
+
function t(n, r, i) {
|
|
3853
|
+
var o = e.call(this, n) || this;
|
|
3854
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3890
3855
|
}
|
|
3891
3856
|
return t.prototype.toString = function() {
|
|
3892
3857
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3893
3858
|
}, t;
|
|
3894
3859
|
}(Error)
|
|
3895
|
-
),
|
|
3860
|
+
), Tt = (
|
|
3896
3861
|
/** @class */
|
|
3897
3862
|
function(e) {
|
|
3898
|
-
|
|
3899
|
-
function t(
|
|
3900
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3863
|
+
C(t, e);
|
|
3864
|
+
function t(n, r, i, o) {
|
|
3865
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3901
3866
|
}
|
|
3902
3867
|
return t;
|
|
3903
|
-
}(
|
|
3904
|
-
),
|
|
3868
|
+
}(Ae)
|
|
3869
|
+
), bi = (
|
|
3905
3870
|
/** @class */
|
|
3906
3871
|
function(e) {
|
|
3907
|
-
|
|
3908
|
-
function t(
|
|
3909
|
-
return e.call(this, 'Value for "'.concat(
|
|
3872
|
+
C(t, e);
|
|
3873
|
+
function t(n, r, i) {
|
|
3874
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Q.INVALID_VALUE, i) || this;
|
|
3910
3875
|
}
|
|
3911
3876
|
return t;
|
|
3912
|
-
}(
|
|
3913
|
-
),
|
|
3877
|
+
}(Ae)
|
|
3878
|
+
), gi = (
|
|
3914
3879
|
/** @class */
|
|
3915
3880
|
function(e) {
|
|
3916
|
-
|
|
3917
|
-
function t(
|
|
3918
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3881
|
+
C(t, e);
|
|
3882
|
+
function t(n, r) {
|
|
3883
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Q.MISSING_VALUE, r) || this;
|
|
3919
3884
|
}
|
|
3920
3885
|
return t;
|
|
3921
|
-
}(
|
|
3886
|
+
}(Ae)
|
|
3922
3887
|
), S;
|
|
3923
3888
|
(function(e) {
|
|
3924
3889
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3925
3890
|
})(S || (S = {}));
|
|
3926
|
-
function
|
|
3927
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3928
|
-
var
|
|
3929
|
-
return !
|
|
3891
|
+
function yi(e) {
|
|
3892
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3893
|
+
var r = t[t.length - 1];
|
|
3894
|
+
return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
|
|
3930
3895
|
}, []);
|
|
3931
3896
|
}
|
|
3932
|
-
function
|
|
3897
|
+
function _i(e) {
|
|
3933
3898
|
return typeof e == "function";
|
|
3934
3899
|
}
|
|
3935
|
-
function
|
|
3936
|
-
if (e.length === 1 &&
|
|
3900
|
+
function _e(e, t, n, r, i, o, a) {
|
|
3901
|
+
if (e.length === 1 && gt(e[0]))
|
|
3937
3902
|
return [
|
|
3938
3903
|
{
|
|
3939
3904
|
type: S.literal,
|
|
3940
3905
|
value: e[0].value
|
|
3941
3906
|
}
|
|
3942
3907
|
];
|
|
3943
|
-
for (var s = [],
|
|
3944
|
-
var
|
|
3945
|
-
if (
|
|
3908
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3909
|
+
var l = u[h];
|
|
3910
|
+
if (gt(l)) {
|
|
3946
3911
|
s.push({
|
|
3947
3912
|
type: S.literal,
|
|
3948
|
-
value:
|
|
3913
|
+
value: l.value
|
|
3949
3914
|
});
|
|
3950
3915
|
continue;
|
|
3951
3916
|
}
|
|
3952
|
-
if (
|
|
3917
|
+
if (Fr(l)) {
|
|
3953
3918
|
typeof o == "number" && s.push({
|
|
3954
3919
|
type: S.literal,
|
|
3955
|
-
value:
|
|
3920
|
+
value: n.getNumberFormat(t).format(o)
|
|
3956
3921
|
});
|
|
3957
3922
|
continue;
|
|
3958
3923
|
}
|
|
3959
|
-
var
|
|
3960
|
-
if (!(i &&
|
|
3961
|
-
throw new
|
|
3962
|
-
var
|
|
3963
|
-
if (
|
|
3964
|
-
(!
|
|
3965
|
-
type: typeof
|
|
3966
|
-
value:
|
|
3924
|
+
var c = l.value;
|
|
3925
|
+
if (!(i && c in i))
|
|
3926
|
+
throw new gi(c, a);
|
|
3927
|
+
var f = i[c];
|
|
3928
|
+
if (Gr(l)) {
|
|
3929
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3930
|
+
type: typeof f == "string" ? S.literal : S.object,
|
|
3931
|
+
value: f
|
|
3967
3932
|
});
|
|
3968
3933
|
continue;
|
|
3969
3934
|
}
|
|
3970
|
-
if (
|
|
3971
|
-
var
|
|
3935
|
+
if (en(l)) {
|
|
3936
|
+
var p = typeof l.style == "string" ? r.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
|
|
3972
3937
|
s.push({
|
|
3973
3938
|
type: S.literal,
|
|
3974
|
-
value:
|
|
3939
|
+
value: n.getDateTimeFormat(t, p).format(f)
|
|
3975
3940
|
});
|
|
3976
3941
|
continue;
|
|
3977
3942
|
}
|
|
3978
|
-
if (
|
|
3979
|
-
var
|
|
3943
|
+
if (tn(l)) {
|
|
3944
|
+
var p = typeof l.style == "string" ? r.time[l.style] : ze(l.style) ? l.style.parsedOptions : r.time.medium;
|
|
3980
3945
|
s.push({
|
|
3981
3946
|
type: S.literal,
|
|
3982
|
-
value:
|
|
3947
|
+
value: n.getDateTimeFormat(t, p).format(f)
|
|
3983
3948
|
});
|
|
3984
3949
|
continue;
|
|
3985
3950
|
}
|
|
3986
|
-
if (
|
|
3987
|
-
var
|
|
3988
|
-
|
|
3951
|
+
if (Kt(l)) {
|
|
3952
|
+
var p = typeof l.style == "string" ? r.number[l.style] : sn(l.style) ? l.style.parsedOptions : void 0;
|
|
3953
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3989
3954
|
type: S.literal,
|
|
3990
|
-
value:
|
|
3955
|
+
value: n.getNumberFormat(t, p).format(f)
|
|
3991
3956
|
});
|
|
3992
3957
|
continue;
|
|
3993
3958
|
}
|
|
3994
|
-
if (
|
|
3995
|
-
var
|
|
3996
|
-
if (!
|
|
3997
|
-
throw new
|
|
3998
|
-
var
|
|
3999
|
-
return
|
|
3959
|
+
if (on(l)) {
|
|
3960
|
+
var d = l.children, m = l.value, x = i[m];
|
|
3961
|
+
if (!_i(x))
|
|
3962
|
+
throw new bi(m, "function", a);
|
|
3963
|
+
var T = _e(d, t, n, r, i, o), P = x(T.map(function(w) {
|
|
3964
|
+
return w.value;
|
|
4000
3965
|
}));
|
|
4001
|
-
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(
|
|
3966
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(w) {
|
|
4002
3967
|
return {
|
|
4003
|
-
type: typeof
|
|
4004
|
-
value:
|
|
3968
|
+
type: typeof w == "string" ? S.literal : S.object,
|
|
3969
|
+
value: w
|
|
4005
3970
|
};
|
|
4006
3971
|
}));
|
|
4007
3972
|
}
|
|
4008
|
-
if (
|
|
4009
|
-
var
|
|
4010
|
-
if (!
|
|
4011
|
-
throw new
|
|
4012
|
-
s.push.apply(s,
|
|
3973
|
+
if (nn(l)) {
|
|
3974
|
+
var E = l.options[f] || l.options.other;
|
|
3975
|
+
if (!E)
|
|
3976
|
+
throw new Tt(l.value, f, Object.keys(l.options), a);
|
|
3977
|
+
s.push.apply(s, _e(E.value, t, n, r, i));
|
|
4013
3978
|
continue;
|
|
4014
3979
|
}
|
|
4015
|
-
if (
|
|
4016
|
-
var
|
|
4017
|
-
if (!
|
|
3980
|
+
if (rn(l)) {
|
|
3981
|
+
var E = l.options["=".concat(f)];
|
|
3982
|
+
if (!E) {
|
|
4018
3983
|
if (!Intl.PluralRules)
|
|
4019
|
-
throw new
|
|
3984
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
4020
3985
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4021
|
-
`,
|
|
4022
|
-
var O =
|
|
4023
|
-
|
|
3986
|
+
`, Q.MISSING_INTL_API, a);
|
|
3987
|
+
var O = n.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3988
|
+
E = l.options[O] || l.options.other;
|
|
4024
3989
|
}
|
|
4025
|
-
if (!
|
|
4026
|
-
throw new
|
|
4027
|
-
s.push.apply(s,
|
|
3990
|
+
if (!E)
|
|
3991
|
+
throw new Tt(l.value, f, Object.keys(l.options), a);
|
|
3992
|
+
s.push.apply(s, _e(E.value, t, n, r, i, f - (l.offset || 0)));
|
|
4028
3993
|
continue;
|
|
4029
3994
|
}
|
|
4030
3995
|
}
|
|
4031
|
-
return
|
|
3996
|
+
return yi(s);
|
|
4032
3997
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return t ?
|
|
4035
|
-
return r
|
|
3998
|
+
function vi(e, t) {
|
|
3999
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
4000
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
4036
4001
|
}, {})) : e;
|
|
4037
4002
|
}
|
|
4038
|
-
function
|
|
4039
|
-
return t ? Object.keys(e).reduce(function(
|
|
4040
|
-
return r
|
|
4041
|
-
},
|
|
4003
|
+
function xi(e, t) {
|
|
4004
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4005
|
+
return n[r] = vi(e[r], t[r]), n;
|
|
4006
|
+
}, y({}, e)) : e;
|
|
4042
4007
|
}
|
|
4043
|
-
function
|
|
4008
|
+
function Ue(e) {
|
|
4044
4009
|
return {
|
|
4045
4010
|
create: function() {
|
|
4046
4011
|
return {
|
|
4047
4012
|
get: function(t) {
|
|
4048
4013
|
return e[t];
|
|
4049
4014
|
},
|
|
4050
|
-
set: function(t,
|
|
4051
|
-
e[t] =
|
|
4015
|
+
set: function(t, n) {
|
|
4016
|
+
e[t] = n;
|
|
4052
4017
|
}
|
|
4053
4018
|
};
|
|
4054
4019
|
}
|
|
4055
4020
|
};
|
|
4056
4021
|
}
|
|
4057
|
-
function
|
|
4022
|
+
function Ei(e) {
|
|
4058
4023
|
return e === void 0 && (e = {
|
|
4059
4024
|
number: {},
|
|
4060
4025
|
dateTime: {},
|
|
4061
4026
|
pluralRules: {}
|
|
4062
4027
|
}), {
|
|
4063
|
-
getNumberFormat:
|
|
4064
|
-
for (var t,
|
|
4065
|
-
r
|
|
4066
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4028
|
+
getNumberFormat: Ce(function() {
|
|
4029
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4030
|
+
n[r] = arguments[r];
|
|
4031
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, z([void 0], n, !1)))();
|
|
4067
4032
|
}, {
|
|
4068
|
-
cache:
|
|
4069
|
-
strategy:
|
|
4033
|
+
cache: Ue(e.number),
|
|
4034
|
+
strategy: $e.variadic
|
|
4070
4035
|
}),
|
|
4071
|
-
getDateTimeFormat:
|
|
4072
|
-
for (var t,
|
|
4073
|
-
r
|
|
4074
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4036
|
+
getDateTimeFormat: Ce(function() {
|
|
4037
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4038
|
+
n[r] = arguments[r];
|
|
4039
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, z([void 0], n, !1)))();
|
|
4075
4040
|
}, {
|
|
4076
|
-
cache:
|
|
4077
|
-
strategy:
|
|
4041
|
+
cache: Ue(e.dateTime),
|
|
4042
|
+
strategy: $e.variadic
|
|
4078
4043
|
}),
|
|
4079
|
-
getPluralRules:
|
|
4080
|
-
for (var t,
|
|
4081
|
-
r
|
|
4082
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4044
|
+
getPluralRules: Ce(function() {
|
|
4045
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4046
|
+
n[r] = arguments[r];
|
|
4047
|
+
return new ((t = Intl.PluralRules).bind.apply(t, z([void 0], n, !1)))();
|
|
4083
4048
|
}, {
|
|
4084
|
-
cache:
|
|
4085
|
-
strategy:
|
|
4049
|
+
cache: Ue(e.pluralRules),
|
|
4050
|
+
strategy: $e.variadic
|
|
4086
4051
|
})
|
|
4087
4052
|
};
|
|
4088
4053
|
}
|
|
4089
|
-
var
|
|
4054
|
+
var Si = (
|
|
4090
4055
|
/** @class */
|
|
4091
4056
|
function() {
|
|
4092
|
-
function e(t,
|
|
4093
|
-
|
|
4057
|
+
function e(t, n, r, i) {
|
|
4058
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4094
4059
|
var o = this;
|
|
4095
4060
|
if (this.formatterCache = {
|
|
4096
4061
|
number: {},
|
|
4097
4062
|
dateTime: {},
|
|
4098
4063
|
pluralRules: {}
|
|
4099
|
-
}, this.format = function(
|
|
4100
|
-
var u = o.formatToParts(
|
|
4064
|
+
}, this.format = function(h) {
|
|
4065
|
+
var u = o.formatToParts(h);
|
|
4101
4066
|
if (u.length === 1)
|
|
4102
4067
|
return u[0].value;
|
|
4103
|
-
var
|
|
4104
|
-
return !
|
|
4068
|
+
var l = u.reduce(function(c, f) {
|
|
4069
|
+
return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4105
4070
|
}, []);
|
|
4106
|
-
return
|
|
4107
|
-
}, this.formatToParts = function(
|
|
4108
|
-
return
|
|
4071
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
4072
|
+
}, this.formatToParts = function(h) {
|
|
4073
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
4109
4074
|
}, this.resolvedOptions = function() {
|
|
4110
|
-
var
|
|
4075
|
+
var h;
|
|
4111
4076
|
return {
|
|
4112
|
-
locale: ((
|
|
4077
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4113
4078
|
};
|
|
4114
4079
|
}, this.getAst = function() {
|
|
4115
4080
|
return o.ast;
|
|
4116
|
-
}, this.locales =
|
|
4081
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4117
4082
|
if (this.message = t, !e.__parse)
|
|
4118
4083
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4119
4084
|
var a = i || {};
|
|
4120
4085
|
a.formatters;
|
|
4121
|
-
var s =
|
|
4122
|
-
this.ast = e.__parse(t,
|
|
4086
|
+
var s = tr(a, ["formatters"]);
|
|
4087
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
4123
4088
|
} else
|
|
4124
4089
|
this.ast = t;
|
|
4125
4090
|
if (!Array.isArray(this.ast))
|
|
4126
4091
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4127
|
-
this.formats =
|
|
4092
|
+
this.formats = xi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
4128
4093
|
}
|
|
4129
4094
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4130
4095
|
get: function() {
|
|
@@ -4134,10 +4099,10 @@ var Bi = (
|
|
|
4134
4099
|
configurable: !0
|
|
4135
4100
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4136
4101
|
if (!(typeof Intl.Locale > "u")) {
|
|
4137
|
-
var
|
|
4138
|
-
return
|
|
4102
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4103
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4139
4104
|
}
|
|
4140
|
-
}, e.__parse =
|
|
4105
|
+
}, e.__parse = mi, e.formats = {
|
|
4141
4106
|
number: {
|
|
4142
4107
|
integer: {
|
|
4143
4108
|
maximumFractionDigits: 0
|
|
@@ -4198,113 +4163,113 @@ var Bi = (
|
|
|
4198
4163
|
}, e;
|
|
4199
4164
|
}()
|
|
4200
4165
|
);
|
|
4201
|
-
function
|
|
4166
|
+
function Ti(e, t) {
|
|
4202
4167
|
if (t == null)
|
|
4203
4168
|
return;
|
|
4204
4169
|
if (t in e)
|
|
4205
4170
|
return e[t];
|
|
4206
|
-
const
|
|
4207
|
-
let
|
|
4208
|
-
for (let i = 0; i <
|
|
4209
|
-
if (typeof
|
|
4171
|
+
const n = t.split(".");
|
|
4172
|
+
let r = e;
|
|
4173
|
+
for (let i = 0; i < n.length; i++)
|
|
4174
|
+
if (typeof r == "object") {
|
|
4210
4175
|
if (i > 0) {
|
|
4211
|
-
const o =
|
|
4212
|
-
if (o in
|
|
4213
|
-
|
|
4176
|
+
const o = n.slice(i, n.length).join(".");
|
|
4177
|
+
if (o in r) {
|
|
4178
|
+
r = r[o];
|
|
4214
4179
|
break;
|
|
4215
4180
|
}
|
|
4216
4181
|
}
|
|
4217
|
-
|
|
4182
|
+
r = r[n[i]];
|
|
4218
4183
|
} else
|
|
4219
|
-
|
|
4220
|
-
return
|
|
4184
|
+
r = void 0;
|
|
4185
|
+
return r;
|
|
4221
4186
|
}
|
|
4222
|
-
const U = {},
|
|
4187
|
+
const U = {}, wi = (e, t, n) => n && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = n), n), pn = (e, t) => {
|
|
4223
4188
|
if (t == null)
|
|
4224
4189
|
return;
|
|
4225
4190
|
if (t in U && e in U[t])
|
|
4226
4191
|
return U[t][e];
|
|
4227
|
-
const
|
|
4228
|
-
for (let
|
|
4229
|
-
const i = r
|
|
4192
|
+
const n = Pe(t);
|
|
4193
|
+
for (let r = 0; r < n.length; r++) {
|
|
4194
|
+
const i = n[r], o = Bi(i, e);
|
|
4230
4195
|
if (o)
|
|
4231
|
-
return
|
|
4196
|
+
return wi(e, t, o);
|
|
4232
4197
|
}
|
|
4233
4198
|
};
|
|
4234
|
-
let
|
|
4235
|
-
const
|
|
4236
|
-
function
|
|
4237
|
-
return
|
|
4199
|
+
let it;
|
|
4200
|
+
const fe = Be({});
|
|
4201
|
+
function Hi(e) {
|
|
4202
|
+
return it[e] || null;
|
|
4238
4203
|
}
|
|
4239
|
-
function
|
|
4240
|
-
return e in
|
|
4204
|
+
function mn(e) {
|
|
4205
|
+
return e in it;
|
|
4241
4206
|
}
|
|
4242
|
-
function
|
|
4243
|
-
if (!
|
|
4207
|
+
function Bi(e, t) {
|
|
4208
|
+
if (!mn(e))
|
|
4244
4209
|
return null;
|
|
4245
|
-
const
|
|
4246
|
-
return
|
|
4210
|
+
const n = Hi(e);
|
|
4211
|
+
return Ti(n, t);
|
|
4247
4212
|
}
|
|
4248
|
-
function
|
|
4213
|
+
function Ai(e) {
|
|
4249
4214
|
if (e == null)
|
|
4250
4215
|
return;
|
|
4251
|
-
const t =
|
|
4252
|
-
for (let
|
|
4253
|
-
const
|
|
4254
|
-
if (
|
|
4255
|
-
return
|
|
4216
|
+
const t = Pe(e);
|
|
4217
|
+
for (let n = 0; n < t.length; n++) {
|
|
4218
|
+
const r = t[n];
|
|
4219
|
+
if (mn(r))
|
|
4220
|
+
return r;
|
|
4256
4221
|
}
|
|
4257
4222
|
}
|
|
4258
|
-
function
|
|
4259
|
-
delete U[e],
|
|
4223
|
+
function bn(e, ...t) {
|
|
4224
|
+
delete U[e], fe.update((n) => (n[e] = Lr.all([n[e] || {}, ...t]), n));
|
|
4260
4225
|
}
|
|
4261
|
-
|
|
4262
|
-
[
|
|
4226
|
+
Y(
|
|
4227
|
+
[fe],
|
|
4263
4228
|
([e]) => Object.keys(e)
|
|
4264
4229
|
);
|
|
4265
|
-
|
|
4266
|
-
const
|
|
4267
|
-
function
|
|
4268
|
-
|
|
4230
|
+
fe.subscribe((e) => it = e);
|
|
4231
|
+
const ve = {};
|
|
4232
|
+
function Pi(e, t) {
|
|
4233
|
+
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
4269
4234
|
}
|
|
4270
|
-
function
|
|
4271
|
-
return
|
|
4235
|
+
function gn(e) {
|
|
4236
|
+
return ve[e];
|
|
4272
4237
|
}
|
|
4273
|
-
function
|
|
4274
|
-
return
|
|
4275
|
-
const
|
|
4276
|
-
return [t,
|
|
4238
|
+
function Oi(e) {
|
|
4239
|
+
return Pe(e).map((t) => {
|
|
4240
|
+
const n = gn(t);
|
|
4241
|
+
return [t, n ? [...n] : []];
|
|
4277
4242
|
}).filter(([, t]) => t.length > 0);
|
|
4278
4243
|
}
|
|
4279
|
-
function
|
|
4280
|
-
return e == null ? !1 :
|
|
4244
|
+
function Ke(e) {
|
|
4245
|
+
return e == null ? !1 : Pe(e).some(
|
|
4281
4246
|
(t) => {
|
|
4282
|
-
var
|
|
4283
|
-
return (
|
|
4247
|
+
var n;
|
|
4248
|
+
return (n = gn(t)) == null ? void 0 : n.size;
|
|
4284
4249
|
}
|
|
4285
4250
|
);
|
|
4286
4251
|
}
|
|
4287
|
-
function
|
|
4252
|
+
function Ii(e, t) {
|
|
4288
4253
|
return Promise.all(
|
|
4289
|
-
t.map((
|
|
4290
|
-
).then((
|
|
4254
|
+
t.map((r) => (Pi(e, r), r().then((i) => i.default || i)))
|
|
4255
|
+
).then((r) => bn(e, ...r));
|
|
4291
4256
|
}
|
|
4292
4257
|
const re = {};
|
|
4293
|
-
function
|
|
4294
|
-
if (!
|
|
4258
|
+
function yn(e) {
|
|
4259
|
+
if (!Ke(e))
|
|
4295
4260
|
return e in re ? re[e] : Promise.resolve();
|
|
4296
|
-
const t =
|
|
4261
|
+
const t = Oi(e);
|
|
4297
4262
|
return re[e] = Promise.all(
|
|
4298
4263
|
t.map(
|
|
4299
|
-
([
|
|
4264
|
+
([n, r]) => Ii(n, r)
|
|
4300
4265
|
)
|
|
4301
4266
|
).then(() => {
|
|
4302
|
-
if (
|
|
4303
|
-
return
|
|
4267
|
+
if (Ke(e))
|
|
4268
|
+
return yn(e);
|
|
4304
4269
|
delete re[e];
|
|
4305
4270
|
}), re[e];
|
|
4306
4271
|
}
|
|
4307
|
-
const
|
|
4272
|
+
const Li = {
|
|
4308
4273
|
number: {
|
|
4309
4274
|
scientific: { notation: "scientific" },
|
|
4310
4275
|
engineering: { notation: "engineering" },
|
|
@@ -4333,198 +4298,198 @@ const $i = {
|
|
|
4333
4298
|
timeZoneName: "short"
|
|
4334
4299
|
}
|
|
4335
4300
|
}
|
|
4336
|
-
},
|
|
4301
|
+
}, Ni = {
|
|
4337
4302
|
fallbackLocale: null,
|
|
4338
4303
|
loadingDelay: 200,
|
|
4339
|
-
formats:
|
|
4304
|
+
formats: Li,
|
|
4340
4305
|
warnOnMissingMessages: !0,
|
|
4341
4306
|
handleMissingMessage: void 0,
|
|
4342
4307
|
ignoreTag: !0
|
|
4343
|
-
},
|
|
4344
|
-
function
|
|
4345
|
-
return
|
|
4346
|
-
}
|
|
4347
|
-
const
|
|
4348
|
-
var
|
|
4349
|
-
for (var
|
|
4350
|
-
|
|
4351
|
-
if (
|
|
4352
|
-
for (var
|
|
4353
|
-
|
|
4308
|
+
}, Mi = Ni;
|
|
4309
|
+
function J() {
|
|
4310
|
+
return Mi;
|
|
4311
|
+
}
|
|
4312
|
+
const De = Be(!1);
|
|
4313
|
+
var Ci = Object.defineProperty, $i = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Ht = (e, t, n) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gi = (e, t) => {
|
|
4314
|
+
for (var n in t)
|
|
4315
|
+
Ui.call(t, n) && Ht(e, n, t[n]);
|
|
4316
|
+
if (wt)
|
|
4317
|
+
for (var n of wt(t))
|
|
4318
|
+
Di.call(t, n) && Ht(e, n, t[n]);
|
|
4354
4319
|
return e;
|
|
4355
|
-
},
|
|
4356
|
-
let
|
|
4357
|
-
const Te =
|
|
4358
|
-
function
|
|
4359
|
-
return e.split("-").map((t,
|
|
4320
|
+
}, Fi = (e, t) => $i(e, Ri(t));
|
|
4321
|
+
let et;
|
|
4322
|
+
const Te = Be(null);
|
|
4323
|
+
function Bt(e) {
|
|
4324
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4360
4325
|
}
|
|
4361
|
-
function
|
|
4362
|
-
const
|
|
4363
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4326
|
+
function Pe(e, t = J().fallbackLocale) {
|
|
4327
|
+
const n = Bt(e);
|
|
4328
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bt(t)])] : n;
|
|
4364
4329
|
}
|
|
4365
4330
|
function F() {
|
|
4366
|
-
return
|
|
4331
|
+
return et ?? void 0;
|
|
4367
4332
|
}
|
|
4368
4333
|
Te.subscribe((e) => {
|
|
4369
|
-
|
|
4334
|
+
et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4370
4335
|
});
|
|
4371
|
-
const
|
|
4372
|
-
if (e &&
|
|
4373
|
-
const { loadingDelay: t } =
|
|
4374
|
-
let
|
|
4375
|
-
return typeof window < "u" && F() != null && t ?
|
|
4376
|
-
() =>
|
|
4336
|
+
const ji = (e) => {
|
|
4337
|
+
if (e && Ai(e) && Ke(e)) {
|
|
4338
|
+
const { loadingDelay: t } = J();
|
|
4339
|
+
let n;
|
|
4340
|
+
return typeof window < "u" && F() != null && t ? n = window.setTimeout(
|
|
4341
|
+
() => De.set(!0),
|
|
4377
4342
|
t
|
|
4378
|
-
) :
|
|
4343
|
+
) : De.set(!0), yn(e).then(() => {
|
|
4379
4344
|
Te.set(e);
|
|
4380
4345
|
}).finally(() => {
|
|
4381
|
-
clearTimeout(
|
|
4346
|
+
clearTimeout(n), De.set(!1);
|
|
4382
4347
|
});
|
|
4383
4348
|
}
|
|
4384
4349
|
return Te.set(e);
|
|
4385
|
-
},
|
|
4386
|
-
set:
|
|
4387
|
-
}),
|
|
4350
|
+
}, K = Fi(Gi({}, Te), {
|
|
4351
|
+
set: ji
|
|
4352
|
+
}), Oe = (e) => {
|
|
4388
4353
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4389
|
-
return (
|
|
4390
|
-
const i = JSON.stringify(
|
|
4391
|
-
return i in t ? t[i] : t[i] = e(
|
|
4354
|
+
return (r) => {
|
|
4355
|
+
const i = JSON.stringify(r);
|
|
4356
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4392
4357
|
};
|
|
4393
4358
|
};
|
|
4394
|
-
var
|
|
4395
|
-
for (var
|
|
4396
|
-
|
|
4397
|
-
if (
|
|
4398
|
-
for (var
|
|
4399
|
-
|
|
4359
|
+
var ki = Object.defineProperty, we = Object.getOwnPropertySymbols, _n = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, At = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ot = (e, t) => {
|
|
4360
|
+
for (var n in t || (t = {}))
|
|
4361
|
+
_n.call(t, n) && At(e, n, t[n]);
|
|
4362
|
+
if (we)
|
|
4363
|
+
for (var n of we(t))
|
|
4364
|
+
vn.call(t, n) && At(e, n, t[n]);
|
|
4400
4365
|
return e;
|
|
4401
|
-
},
|
|
4402
|
-
var
|
|
4403
|
-
for (var
|
|
4404
|
-
|
|
4405
|
-
if (e != null &&
|
|
4406
|
-
for (var
|
|
4407
|
-
t.indexOf(
|
|
4408
|
-
return
|
|
4366
|
+
}, ee = (e, t) => {
|
|
4367
|
+
var n = {};
|
|
4368
|
+
for (var r in e)
|
|
4369
|
+
_n.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4370
|
+
if (e != null && we)
|
|
4371
|
+
for (var r of we(e))
|
|
4372
|
+
t.indexOf(r) < 0 && vn.call(e, r) && (n[r] = e[r]);
|
|
4373
|
+
return n;
|
|
4409
4374
|
};
|
|
4410
|
-
const
|
|
4411
|
-
const { formats:
|
|
4412
|
-
if (e in
|
|
4413
|
-
return
|
|
4375
|
+
const ae = (e, t) => {
|
|
4376
|
+
const { formats: n } = J();
|
|
4377
|
+
if (e in n && t in n[e])
|
|
4378
|
+
return n[e][t];
|
|
4414
4379
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4415
|
-
},
|
|
4380
|
+
}, Vi = Oe(
|
|
4416
4381
|
(e) => {
|
|
4417
|
-
var t = e, { locale:
|
|
4418
|
-
if (
|
|
4382
|
+
var t = e, { locale: n, format: r } = t, i = ee(t, ["locale", "format"]);
|
|
4383
|
+
if (n == null)
|
|
4419
4384
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4420
|
-
return
|
|
4385
|
+
return r && (i = ae("number", r)), new Intl.NumberFormat(n, i);
|
|
4421
4386
|
}
|
|
4422
|
-
),
|
|
4387
|
+
), Xi = Oe(
|
|
4423
4388
|
(e) => {
|
|
4424
|
-
var t = e, { locale:
|
|
4425
|
-
if (
|
|
4389
|
+
var t = e, { locale: n, format: r } = t, i = ee(t, ["locale", "format"]);
|
|
4390
|
+
if (n == null)
|
|
4426
4391
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4427
|
-
return
|
|
4392
|
+
return r ? i = ae("date", r) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4428
4393
|
}
|
|
4429
|
-
),
|
|
4394
|
+
), Wi = Oe(
|
|
4430
4395
|
(e) => {
|
|
4431
|
-
var t = e, { locale:
|
|
4432
|
-
if (
|
|
4396
|
+
var t = e, { locale: n, format: r } = t, i = ee(t, ["locale", "format"]);
|
|
4397
|
+
if (n == null)
|
|
4433
4398
|
throw new Error(
|
|
4434
4399
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4435
4400
|
);
|
|
4436
|
-
return
|
|
4401
|
+
return r ? i = ae("time", r) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4437
4402
|
}
|
|
4438
|
-
),
|
|
4403
|
+
), zi = (e = {}) => {
|
|
4439
4404
|
var t = e, {
|
|
4440
|
-
locale:
|
|
4441
|
-
} = t,
|
|
4405
|
+
locale: n = F()
|
|
4406
|
+
} = t, r = ee(t, [
|
|
4442
4407
|
"locale"
|
|
4443
4408
|
]);
|
|
4444
|
-
return
|
|
4445
|
-
},
|
|
4409
|
+
return Vi(ot({ locale: n }, r));
|
|
4410
|
+
}, Zi = (e = {}) => {
|
|
4446
4411
|
var t = e, {
|
|
4447
|
-
locale:
|
|
4448
|
-
} = t,
|
|
4412
|
+
locale: n = F()
|
|
4413
|
+
} = t, r = ee(t, [
|
|
4449
4414
|
"locale"
|
|
4450
4415
|
]);
|
|
4451
|
-
return
|
|
4452
|
-
},
|
|
4416
|
+
return Xi(ot({ locale: n }, r));
|
|
4417
|
+
}, qi = (e = {}) => {
|
|
4453
4418
|
var t = e, {
|
|
4454
|
-
locale:
|
|
4455
|
-
} = t,
|
|
4419
|
+
locale: n = F()
|
|
4420
|
+
} = t, r = ee(t, [
|
|
4456
4421
|
"locale"
|
|
4457
4422
|
]);
|
|
4458
|
-
return
|
|
4459
|
-
},
|
|
4423
|
+
return Wi(ot({ locale: n }, r));
|
|
4424
|
+
}, Qi = Oe(
|
|
4460
4425
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4461
|
-
(e, t = F()) => new
|
|
4462
|
-
ignoreTag:
|
|
4426
|
+
(e, t = F()) => new Si(e, t, J().formats, {
|
|
4427
|
+
ignoreTag: J().ignoreTag
|
|
4463
4428
|
})
|
|
4464
|
-
),
|
|
4465
|
-
var
|
|
4429
|
+
), Ji = (e, t = {}) => {
|
|
4430
|
+
var n, r, i, o;
|
|
4466
4431
|
let a = t;
|
|
4467
4432
|
typeof e == "object" && (a = e, e = a.id);
|
|
4468
4433
|
const {
|
|
4469
4434
|
values: s,
|
|
4470
|
-
locale:
|
|
4435
|
+
locale: h = F(),
|
|
4471
4436
|
default: u
|
|
4472
4437
|
} = a;
|
|
4473
|
-
if (
|
|
4438
|
+
if (h == null)
|
|
4474
4439
|
throw new Error(
|
|
4475
4440
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4476
4441
|
);
|
|
4477
|
-
let
|
|
4478
|
-
if (!
|
|
4479
|
-
|
|
4480
|
-
else if (typeof
|
|
4442
|
+
let l = pn(e, h);
|
|
4443
|
+
if (!l)
|
|
4444
|
+
l = (o = (i = (r = (n = J()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4445
|
+
else if (typeof l != "string")
|
|
4481
4446
|
return console.warn(
|
|
4482
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4483
|
-
),
|
|
4447
|
+
`[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.`
|
|
4448
|
+
), l;
|
|
4484
4449
|
if (!s)
|
|
4485
|
-
return
|
|
4486
|
-
let
|
|
4450
|
+
return l;
|
|
4451
|
+
let c = l;
|
|
4487
4452
|
try {
|
|
4488
|
-
|
|
4489
|
-
} catch (
|
|
4490
|
-
|
|
4453
|
+
c = Qi(l, h).format(s);
|
|
4454
|
+
} catch (f) {
|
|
4455
|
+
f instanceof Error && console.warn(
|
|
4491
4456
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4492
|
-
|
|
4457
|
+
f.message
|
|
4493
4458
|
);
|
|
4494
4459
|
}
|
|
4495
|
-
return
|
|
4496
|
-
},
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
window.emWidgets = { topic:
|
|
4502
|
-
const
|
|
4503
|
-
function
|
|
4460
|
+
return c;
|
|
4461
|
+
}, Yi = (e, t) => qi(t).format(e), Ki = (e, t) => Zi(t).format(e), eo = (e, t) => zi(t).format(e), to = (e, t = F()) => pn(e, t), no = Y([K, fe], () => Ji);
|
|
4462
|
+
Y([K], () => Yi);
|
|
4463
|
+
Y([K], () => Ki);
|
|
4464
|
+
Y([K], () => eo);
|
|
4465
|
+
Y([K, fe], () => to);
|
|
4466
|
+
window.emWidgets = { topic: mr };
|
|
4467
|
+
const Uo = (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)), xn = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Do = (e) => e.match(/CustomNative/i) ? "NativeApp" : xn(e) === "PC" ? "Desktop" : "Mobile";
|
|
4468
|
+
function Pt(e, t) {
|
|
4504
4469
|
if (e) {
|
|
4505
|
-
const
|
|
4506
|
-
|
|
4470
|
+
const n = document.createElement("style");
|
|
4471
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4507
4472
|
}
|
|
4508
4473
|
}
|
|
4509
|
-
function
|
|
4510
|
-
const
|
|
4511
|
-
fetch(
|
|
4474
|
+
function ro(e, t) {
|
|
4475
|
+
const n = new URL(t);
|
|
4476
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4512
4477
|
const i = document.createElement("style");
|
|
4513
|
-
i.innerHTML =
|
|
4514
|
-
}).catch((
|
|
4515
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4478
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4479
|
+
}).catch((r) => {
|
|
4480
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4516
4481
|
});
|
|
4517
4482
|
}
|
|
4518
|
-
function
|
|
4483
|
+
function io(e, t, n) {
|
|
4519
4484
|
if (window.emMessageBus) {
|
|
4520
|
-
const
|
|
4485
|
+
const r = document.createElement("style");
|
|
4521
4486
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4522
|
-
|
|
4487
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4523
4488
|
});
|
|
4524
4489
|
}
|
|
4525
4490
|
}
|
|
4526
|
-
const
|
|
4527
|
-
const
|
|
4491
|
+
const oo = (e, t = {}) => {
|
|
4492
|
+
const n = new CustomEvent("track-custom-event", {
|
|
4528
4493
|
detail: {
|
|
4529
4494
|
type: e,
|
|
4530
4495
|
data: t
|
|
@@ -4532,15 +4497,15 @@ const lo = (e, t = {}) => {
|
|
|
4532
4497
|
bubbles: !0,
|
|
4533
4498
|
composed: !0
|
|
4534
4499
|
});
|
|
4535
|
-
document.dispatchEvent(
|
|
4500
|
+
document.dispatchEvent(n);
|
|
4536
4501
|
};
|
|
4537
|
-
function
|
|
4538
|
-
|
|
4502
|
+
function Ot(e, t) {
|
|
4503
|
+
bn(e, t);
|
|
4539
4504
|
}
|
|
4540
|
-
function
|
|
4541
|
-
|
|
4505
|
+
function so(e) {
|
|
4506
|
+
K.set(e);
|
|
4542
4507
|
}
|
|
4543
|
-
const
|
|
4508
|
+
const It = {
|
|
4544
4509
|
en: {
|
|
4545
4510
|
logoutButton: "Logout"
|
|
4546
4511
|
},
|
|
@@ -4575,42 +4540,42 @@ const Mt = {
|
|
|
4575
4540
|
logoutButton: "Logout"
|
|
4576
4541
|
}
|
|
4577
4542
|
};
|
|
4578
|
-
function
|
|
4579
|
-
|
|
4543
|
+
function ao(e) {
|
|
4544
|
+
On(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))}");
|
|
4580
4545
|
}
|
|
4581
|
-
function
|
|
4582
|
-
let t,
|
|
4546
|
+
function uo(e) {
|
|
4547
|
+
let t, n, r, i = (
|
|
4583
4548
|
/*$_*/
|
|
4584
4549
|
e[2]("logoutButton") + ""
|
|
4585
4550
|
), o, a, s;
|
|
4586
4551
|
return {
|
|
4587
4552
|
c() {
|
|
4588
|
-
t =
|
|
4553
|
+
t = L("div"), n = L("button"), r = L("span"), o = le(i), B(t, "class", "GeneralLogout");
|
|
4589
4554
|
},
|
|
4590
|
-
m(
|
|
4591
|
-
|
|
4592
|
-
|
|
4555
|
+
m(h, u) {
|
|
4556
|
+
he(h, t, u), A(t, n), A(n, r), A(r, o), a || (s = Dt(
|
|
4557
|
+
n,
|
|
4593
4558
|
"click",
|
|
4594
4559
|
/*click_handler_1*/
|
|
4595
4560
|
e[14]
|
|
4596
4561
|
), a = !0);
|
|
4597
4562
|
},
|
|
4598
|
-
p(
|
|
4563
|
+
p(h, u) {
|
|
4599
4564
|
u & /*$_*/
|
|
4600
4565
|
4 && i !== (i = /*$_*/
|
|
4601
|
-
|
|
4566
|
+
h[2]("logoutButton") + "") && Gt(o, i);
|
|
4602
4567
|
},
|
|
4603
|
-
d(
|
|
4604
|
-
|
|
4568
|
+
d(h) {
|
|
4569
|
+
h && G(t), a = !1, s();
|
|
4605
4570
|
}
|
|
4606
4571
|
};
|
|
4607
4572
|
}
|
|
4608
|
-
function
|
|
4609
|
-
let t,
|
|
4610
|
-
e[3] &&
|
|
4573
|
+
function ho(e) {
|
|
4574
|
+
let t, n, r, i, o, a, s, h, u, l, c, f = !/*isMobile*/
|
|
4575
|
+
e[3] && lo(e);
|
|
4611
4576
|
return {
|
|
4612
4577
|
c() {
|
|
4613
|
-
t =
|
|
4578
|
+
t = L("p"), n = L("span"), r = te("svg"), i = te("defs"), o = te("style"), a = le(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), s = te("path"), h = te("path"), u = Ln(), f && f.c(), B(s, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(s, "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"), B(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(h, "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"), B(r, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), B(r, "data-name", "Layer 1"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "viewBox", "0 0 150 150"), Mn(n, "width", /*isMobile*/
|
|
4614
4579
|
e[3] ? (
|
|
4615
4580
|
/*mediaQuery*/
|
|
4616
4581
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4619,63 +4584,63 @@ function po(e) {
|
|
|
4619
4584
|
(e[4].matches && /*isMobile*/
|
|
4620
4585
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4621
4586
|
},
|
|
4622
|
-
m(
|
|
4623
|
-
|
|
4587
|
+
m(p, d) {
|
|
4588
|
+
he(p, t, d), A(t, n), A(n, r), A(r, i), A(i, o), A(o, a), A(r, s), A(r, h), A(t, u), f && f.m(t, null), l || (c = Dt(
|
|
4624
4589
|
t,
|
|
4625
4590
|
"click",
|
|
4626
4591
|
/*click_handler*/
|
|
4627
4592
|
e[13]
|
|
4628
|
-
),
|
|
4593
|
+
), l = !0);
|
|
4629
4594
|
},
|
|
4630
|
-
p(
|
|
4595
|
+
p(p, d) {
|
|
4631
4596
|
/*isMobile*/
|
|
4632
|
-
|
|
4597
|
+
p[3] || f.p(p, d);
|
|
4633
4598
|
},
|
|
4634
|
-
d(
|
|
4635
|
-
|
|
4599
|
+
d(p) {
|
|
4600
|
+
p && G(t), f && f.d(), l = !1, c();
|
|
4636
4601
|
}
|
|
4637
4602
|
};
|
|
4638
4603
|
}
|
|
4639
|
-
function
|
|
4640
|
-
let t,
|
|
4604
|
+
function lo(e) {
|
|
4605
|
+
let t, n = (
|
|
4641
4606
|
/*$_*/
|
|
4642
4607
|
e[2]("logoutButton") + ""
|
|
4643
|
-
),
|
|
4608
|
+
), r;
|
|
4644
4609
|
return {
|
|
4645
4610
|
c() {
|
|
4646
|
-
t =
|
|
4611
|
+
t = L("span"), r = le(n), B(t, "class", "PlayerLogoutText");
|
|
4647
4612
|
},
|
|
4648
4613
|
m(i, o) {
|
|
4649
|
-
|
|
4614
|
+
he(i, t, o), A(t, r);
|
|
4650
4615
|
},
|
|
4651
4616
|
p(i, o) {
|
|
4652
4617
|
o & /*$_*/
|
|
4653
|
-
4 &&
|
|
4654
|
-
i[2]("logoutButton") + "") &&
|
|
4618
|
+
4 && n !== (n = /*$_*/
|
|
4619
|
+
i[2]("logoutButton") + "") && Gt(r, n);
|
|
4655
4620
|
},
|
|
4656
4621
|
d(i) {
|
|
4657
4622
|
i && G(t);
|
|
4658
4623
|
}
|
|
4659
4624
|
};
|
|
4660
4625
|
}
|
|
4661
|
-
function
|
|
4626
|
+
function fo(e) {
|
|
4662
4627
|
let t;
|
|
4663
|
-
function
|
|
4628
|
+
function n(o, a) {
|
|
4664
4629
|
return (
|
|
4665
4630
|
/*buttonlocation*/
|
|
4666
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4631
|
+
o[0] === "PlayerAccountMenu" ? ho : uo
|
|
4667
4632
|
);
|
|
4668
4633
|
}
|
|
4669
|
-
let
|
|
4634
|
+
let r = n(e), i = r(e);
|
|
4670
4635
|
return {
|
|
4671
4636
|
c() {
|
|
4672
|
-
t =
|
|
4637
|
+
t = L("div"), i.c();
|
|
4673
4638
|
},
|
|
4674
4639
|
m(o, a) {
|
|
4675
|
-
|
|
4640
|
+
he(o, t, a), i.m(t, null), e[15](t);
|
|
4676
4641
|
},
|
|
4677
4642
|
p(o, [a]) {
|
|
4678
|
-
|
|
4643
|
+
r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
|
|
4679
4644
|
},
|
|
4680
4645
|
i: H,
|
|
4681
4646
|
o: H,
|
|
@@ -4684,78 +4649,78 @@ function bo(e) {
|
|
|
4684
4649
|
}
|
|
4685
4650
|
};
|
|
4686
4651
|
}
|
|
4687
|
-
function
|
|
4688
|
-
let
|
|
4689
|
-
|
|
4690
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource:
|
|
4691
|
-
const
|
|
4692
|
-
fetch(
|
|
4693
|
-
Object.keys(R).forEach((
|
|
4694
|
-
|
|
4652
|
+
function co(e, t, n) {
|
|
4653
|
+
let r;
|
|
4654
|
+
Bn(e, no, (_) => n(2, r = _));
|
|
4655
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", p = !1, d, m = window.navigator.userAgent, x = xn(m) !== "PC";
|
|
4656
|
+
const T = window.matchMedia("(min-width: 768px)"), P = () => {
|
|
4657
|
+
fetch(c).then((R) => R.json()).then((R) => {
|
|
4658
|
+
Object.keys(R).forEach((Ie) => {
|
|
4659
|
+
Ot(Ie, R[Ie]);
|
|
4695
4660
|
});
|
|
4696
4661
|
}).catch((R) => {
|
|
4697
4662
|
console.log(R);
|
|
4698
4663
|
});
|
|
4699
4664
|
};
|
|
4700
|
-
Object.keys(
|
|
4701
|
-
|
|
4665
|
+
Object.keys(It).forEach((_) => {
|
|
4666
|
+
Ot(_, It[_]);
|
|
4702
4667
|
});
|
|
4703
|
-
const
|
|
4704
|
-
let
|
|
4705
|
-
|
|
4706
|
-
let R = { method: "DELETE", headers:
|
|
4707
|
-
fetch(`${i}/v1/player/session/player`, R).then((
|
|
4708
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4668
|
+
const E = () => {
|
|
4669
|
+
let _ = new Headers();
|
|
4670
|
+
_.append("Content-type", "application/json"), _.append("X-SessionID", o);
|
|
4671
|
+
let R = { method: "DELETE", headers: _ };
|
|
4672
|
+
fetch(`${i}/v1/player/session/player`, R).then((Ie) => {
|
|
4673
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), oo("logged_out", {});
|
|
4709
4674
|
});
|
|
4710
|
-
}, O = () => (i || (
|
|
4711
|
-
|
|
4675
|
+
}, O = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(f)), p), w = () => {
|
|
4676
|
+
so(s);
|
|
4712
4677
|
};
|
|
4713
|
-
|
|
4678
|
+
jn(() => () => {
|
|
4714
4679
|
});
|
|
4715
|
-
const $ = () =>
|
|
4716
|
-
function
|
|
4717
|
-
|
|
4718
|
-
|
|
4680
|
+
const $ = () => E(), ce = () => E();
|
|
4681
|
+
function Sn(_) {
|
|
4682
|
+
Ge[_ ? "unshift" : "push"](() => {
|
|
4683
|
+
d = _, n(1, d);
|
|
4719
4684
|
});
|
|
4720
4685
|
}
|
|
4721
|
-
return e.$$set = (
|
|
4722
|
-
"endpoint" in
|
|
4686
|
+
return e.$$set = (_) => {
|
|
4687
|
+
"endpoint" in _ && n(6, i = _.endpoint), "session" in _ && n(7, o = _.session), "buttonlocation" in _ && n(0, a = _.buttonlocation), "lang" in _ && n(8, s = _.lang), "mbsource" in _ && n(9, h = _.mbsource), "clientstyling" in _ && n(10, u = _.clientstyling), "clientstylingurl" in _ && n(11, l = _.clientstylingurl), "translationurl" in _ && n(12, c = _.translationurl);
|
|
4723
4688
|
}, e.$$.update = () => {
|
|
4724
4689
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4725
4690
|
193 && i && o && a && O(), e.$$.dirty & /*lang*/
|
|
4726
|
-
256 && s &&
|
|
4727
|
-
1026 && u &&
|
|
4728
|
-
1026 && u &&
|
|
4729
|
-
2050 &&
|
|
4730
|
-
514 &&
|
|
4731
|
-
4096 &&
|
|
4691
|
+
256 && s && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4692
|
+
1026 && u && d && Pt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4693
|
+
1026 && u && d && Pt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4694
|
+
2050 && l && d && ro(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4695
|
+
514 && h && d && io(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4696
|
+
4096 && c && P();
|
|
4732
4697
|
}, [
|
|
4733
4698
|
a,
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
_,
|
|
4737
|
-
w,
|
|
4699
|
+
d,
|
|
4700
|
+
r,
|
|
4738
4701
|
x,
|
|
4702
|
+
T,
|
|
4703
|
+
E,
|
|
4739
4704
|
i,
|
|
4740
4705
|
o,
|
|
4741
4706
|
s,
|
|
4742
|
-
l,
|
|
4743
|
-
u,
|
|
4744
4707
|
h,
|
|
4745
|
-
|
|
4708
|
+
u,
|
|
4709
|
+
l,
|
|
4710
|
+
c,
|
|
4746
4711
|
$,
|
|
4747
|
-
|
|
4748
|
-
|
|
4712
|
+
ce,
|
|
4713
|
+
Sn
|
|
4749
4714
|
];
|
|
4750
4715
|
}
|
|
4751
|
-
class
|
|
4716
|
+
class En extends Kn {
|
|
4752
4717
|
constructor(t) {
|
|
4753
|
-
super(),
|
|
4718
|
+
super(), Jn(
|
|
4754
4719
|
this,
|
|
4755
4720
|
t,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4721
|
+
co,
|
|
4722
|
+
fo,
|
|
4723
|
+
Nt,
|
|
4759
4724
|
{
|
|
4760
4725
|
endpoint: 6,
|
|
4761
4726
|
session: 7,
|
|
@@ -4766,7 +4731,7 @@ class Tr extends rn {
|
|
|
4766
4731
|
clientstylingurl: 11,
|
|
4767
4732
|
translationurl: 12
|
|
4768
4733
|
},
|
|
4769
|
-
|
|
4734
|
+
ao
|
|
4770
4735
|
);
|
|
4771
4736
|
}
|
|
4772
4737
|
get endpoint() {
|
|
@@ -4818,72 +4783,72 @@ class Tr extends rn {
|
|
|
4818
4783
|
this.$$set({ translationurl: t }), I();
|
|
4819
4784
|
}
|
|
4820
4785
|
}
|
|
4821
|
-
|
|
4822
|
-
const
|
|
4786
|
+
Yn(En, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4787
|
+
const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4823
4788
|
__proto__: null,
|
|
4824
|
-
default:
|
|
4789
|
+
default: En
|
|
4825
4790
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4826
4791
|
export {
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4792
|
+
K as $,
|
|
4793
|
+
io as A,
|
|
4794
|
+
no as B,
|
|
4795
|
+
fe as C,
|
|
4796
|
+
Do as D,
|
|
4797
|
+
Io as E,
|
|
4798
|
+
Eo as F,
|
|
4799
|
+
vo as G,
|
|
4800
|
+
mo as H,
|
|
4801
|
+
go as I,
|
|
4802
|
+
yo as J,
|
|
4803
|
+
bo as K,
|
|
4804
|
+
Wn as L,
|
|
4805
|
+
Mo as M,
|
|
4806
|
+
So as N,
|
|
4807
|
+
$o as O,
|
|
4808
|
+
xo as P,
|
|
4809
|
+
Po as Q,
|
|
4810
|
+
Ho as R,
|
|
4811
|
+
Kn as S,
|
|
4812
|
+
Bo as T,
|
|
4813
|
+
Se as U,
|
|
4814
|
+
Ao as V,
|
|
4815
|
+
ue as W,
|
|
4816
|
+
Uo as X,
|
|
4817
|
+
_o as Y,
|
|
4818
|
+
Mn as Z,
|
|
4819
|
+
No as _,
|
|
4820
|
+
bn as a,
|
|
4821
|
+
Lo as a0,
|
|
4822
|
+
po as a1,
|
|
4823
|
+
Tn as a2,
|
|
4824
|
+
Co as a3,
|
|
4825
|
+
Ro as a4,
|
|
4826
|
+
gr as a5,
|
|
4827
|
+
wo as a6,
|
|
4828
|
+
Go as a7,
|
|
4829
|
+
On as b,
|
|
4830
|
+
Yn as c,
|
|
4831
|
+
Ln as d,
|
|
4832
|
+
L as e,
|
|
4868
4833
|
I as f,
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4834
|
+
B as g,
|
|
4835
|
+
Oo as h,
|
|
4836
|
+
Jn as i,
|
|
4837
|
+
To as j,
|
|
4838
|
+
he as k,
|
|
4839
|
+
A as l,
|
|
4840
|
+
Dt as m,
|
|
4841
|
+
Gt as n,
|
|
4842
|
+
H as o,
|
|
4843
|
+
G as p,
|
|
4844
|
+
Bn as q,
|
|
4880
4845
|
D as r,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4846
|
+
Nt as s,
|
|
4847
|
+
le as t,
|
|
4848
|
+
xn as u,
|
|
4849
|
+
jn as v,
|
|
4850
|
+
te as w,
|
|
4851
|
+
Ge as x,
|
|
4852
|
+
Pt as y,
|
|
4853
|
+
ro as z
|
|
4889
4854
|
};
|