@everymatrix/transaction-history-page 0.2.8 → 0.2.10
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/{CashierHeader-O2SBlx9E.js → CashierHeader-Cd_IQ7mb.js} +1144 -1148
- package/components/CashierHeader-fdmNbczy.cjs +21 -0
- package/components/{CashierHeader-D2AS2Agh.js → CashierHeader-qz_r8eKP.js} +1121 -1125
- package/components/{CashierPagination-Diod1lF7.js → CashierPagination-DV3fcnSK.js} +17 -17
- package/components/{CashierPagination-n1Rdi6TE.js → CashierPagination-Dtn30JhD.js} +17 -17
- package/components/{CashierPagination-Bns0dhAx.cjs → CashierPagination-Dy5h-yN8.cjs} +1 -1
- package/components/{CashierTransactionHistory-usXO5b0O.js → CashierTransactionHistory-BMaf6Z0P.js} +71 -71
- package/components/{CashierTransactionHistory-CWYRJ-oJ.js → CashierTransactionHistory-Boo_B61Z.js} +71 -71
- package/components/{CashierTransactionHistory-D0veSOum.cjs → CashierTransactionHistory-DOgBFoAF.cjs} +1 -1
- package/components/{EmptyStateIcon-Bvkg_gUP.js → EmptyStateIcon-Q9-7CJOB.js} +6 -6
- package/components/{EmptyStateIcon-CG990aV4.cjs → EmptyStateIcon-idY3pDBO.cjs} +1 -1
- package/components/{EmptyStateIcon-Cnh2o5D9.js → EmptyStateIcon-jDakZhVG.js} +6 -6
- package/components/{Tooltip-D0aX_eaK.js → Tooltip-DKtozLhD.js} +15 -15
- package/components/{Tooltip-CMYgN8-J.cjs → Tooltip-DhUkqLNN.cjs} +1 -1
- package/components/{Tooltip-DwUjXU5S.js → Tooltip-Dr1XhRao.js} +15 -15
- package/components/{TransactionHistoryCalendar-8sJGcA34.js → TransactionHistoryCalendar-DR03MPW1.js} +85 -85
- package/components/{TransactionHistoryCalendar-xg8S4fBR.cjs → TransactionHistoryCalendar-DV3uIclO.cjs} +1 -1
- package/components/{TransactionHistoryCalendar-D2S9yWPU.js → TransactionHistoryCalendar-DvAP3GwO.js} +86 -86
- package/components/{TransactionHistoryPage-DbvtP_wu.js → TransactionHistoryPage-BWenQ53p.js} +71 -71
- package/components/{TransactionHistoryPage-DDog4PKt.cjs → TransactionHistoryPage-CShwsh-h.cjs} +1 -1
- package/components/{TransactionHistoryPage-XoXdz3B9.js → TransactionHistoryPage-DQmmXNuZ.js} +72 -72
- package/components/{TxnStatusIcon-vTgFujrK.cjs → TxnStatusIcon-BM7Yn9hb.cjs} +1 -1
- package/components/{TxnStatusIcon-BhenBY5o.js → TxnStatusIcon-CmwEsXbv.js} +19 -19
- package/components/{TxnStatusIcon-CYWQkX_B.js → TxnStatusIcon-_G33oy6q.js} +19 -19
- package/components/{TxnTypeIcons-D2uk1QXc.js → TxnTypeIcons-BwDBMPnO.js} +14 -14
- package/components/{TxnTypeIcons-waunbeLw.cjs → TxnTypeIcons-ClBY0FSw.cjs} +1 -1
- package/components/{TxnTypeIcons-k1qbeCHp.js → TxnTypeIcons-rLnLSUqr.js} +14 -14
- package/es2015/transaction-history-page.cjs +1 -1
- package/es2015/transaction-history-page.js +1 -1
- package/esnext/transaction-history-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierHeader-BHRa04VL.cjs +0 -8
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
3
|
const At = (e) => e;
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
6
|
-
e[
|
|
4
|
+
function En(e, t) {
|
|
5
|
+
for (const n in t)
|
|
6
|
+
e[n] = t[n];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
9
|
e
|
|
@@ -15,46 +15,46 @@ function Ot(e) {
|
|
|
15
15
|
function it() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function I(e) {
|
|
19
19
|
e.forEach(Ot);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function se(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Pt(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 he;
|
|
28
|
+
function Wi(e, t) {
|
|
29
|
+
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function vn(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
34
|
function Ct(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
|
-
for (const
|
|
37
|
-
|
|
36
|
+
for (const r of t)
|
|
37
|
+
r(void 0);
|
|
38
38
|
return B;
|
|
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(Ct(t,
|
|
43
|
+
function Hn(e, t, n) {
|
|
44
|
+
e.$$.on_destroy.push(Ct(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Se(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i = Lt(e, t,
|
|
48
|
+
const i = Lt(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function Lt(e, t,
|
|
53
|
-
return e[1] &&
|
|
52
|
+
function Lt(e, t, n, r) {
|
|
53
|
+
return e[1] && r ? En(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 Ae(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,54 +67,54 @@ function Pe(e, t, r, n) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Oe(e, t, n, r, i, s) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const a = Lt(t,
|
|
72
|
+
const a = Lt(t, n, r, s);
|
|
73
73
|
e.p(a, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Pe(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 Zi(e) {
|
|
86
86
|
return e ?? "";
|
|
87
87
|
}
|
|
88
88
|
const Nt = typeof window < "u";
|
|
89
|
-
let It = Nt ? () => window.performance.now() : () => Date.now(),
|
|
90
|
-
const
|
|
89
|
+
let It = Nt ? () => window.performance.now() : () => Date.now(), qe = Nt ? (e) => requestAnimationFrame(e) : B;
|
|
90
|
+
const j = /* @__PURE__ */ new Set();
|
|
91
91
|
function Mt(e) {
|
|
92
|
-
|
|
93
|
-
t.c(e) || (
|
|
94
|
-
}),
|
|
92
|
+
j.forEach((t) => {
|
|
93
|
+
t.c(e) || (j.delete(t), t.f());
|
|
94
|
+
}), j.size !== 0 && qe(Mt);
|
|
95
95
|
}
|
|
96
96
|
function $t(e) {
|
|
97
97
|
let t;
|
|
98
|
-
return
|
|
99
|
-
promise: new Promise((
|
|
100
|
-
|
|
98
|
+
return j.size === 0 && qe(Mt), {
|
|
99
|
+
promise: new Promise((n) => {
|
|
100
|
+
j.add(t = { c: e, f: n });
|
|
101
101
|
}),
|
|
102
102
|
abort() {
|
|
103
|
-
|
|
103
|
+
j.delete(t);
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ge(e, t) {
|
|
108
108
|
e.appendChild(t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
113
|
-
const i =
|
|
114
|
-
i.id = t, i.textContent =
|
|
110
|
+
function wn(e, t, n) {
|
|
111
|
+
const r = Je(e);
|
|
112
|
+
if (!r.getElementById(t)) {
|
|
113
|
+
const i = $("style");
|
|
114
|
+
i.id = t, i.textContent = n, Rt(r, i);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Je(e) {
|
|
118
118
|
if (!e)
|
|
119
119
|
return document;
|
|
120
120
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -124,241 +124,241 @@ function Ke(e) {
|
|
|
124
124
|
t
|
|
125
125
|
) : e.ownerDocument;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const t =
|
|
129
|
-
return t.textContent = "/* empty */", Rt(
|
|
127
|
+
function Bn(e) {
|
|
128
|
+
const t = $("style");
|
|
129
|
+
return t.textContent = "/* empty */", Rt(Je(e), t), t.sheet;
|
|
130
130
|
}
|
|
131
131
|
function Rt(e, t) {
|
|
132
|
-
return
|
|
132
|
+
return ge(
|
|
133
133
|
/** @type {Document} */
|
|
134
134
|
e.head || e,
|
|
135
135
|
t
|
|
136
136
|
), t.sheet;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
e.insertBefore(t,
|
|
138
|
+
function M(e, t, n) {
|
|
139
|
+
e.insertBefore(t, n || null);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function P(e) {
|
|
142
142
|
e.parentNode && e.parentNode.removeChild(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
for (let
|
|
146
|
-
e[
|
|
144
|
+
function Qi(e, t) {
|
|
145
|
+
for (let n = 0; n < e.length; n += 1)
|
|
146
|
+
e[n] && e[n].d(t);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function $(e) {
|
|
149
149
|
return document.createElement(e);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function qi(e) {
|
|
152
152
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ye(e) {
|
|
155
155
|
return document.createTextNode(e);
|
|
156
156
|
}
|
|
157
157
|
function st() {
|
|
158
|
-
return
|
|
158
|
+
return Ye(" ");
|
|
159
159
|
}
|
|
160
160
|
function Ut() {
|
|
161
|
-
return
|
|
161
|
+
return Ye("");
|
|
162
162
|
}
|
|
163
|
-
function Dt(e, t,
|
|
164
|
-
return e.addEventListener(t,
|
|
163
|
+
function Dt(e, t, n, r) {
|
|
164
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Z(e, t, n) {
|
|
167
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
const
|
|
171
|
-
|
|
169
|
+
function Ji(e, t, n) {
|
|
170
|
+
const r = t.toLowerCase();
|
|
171
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Z(e, t, n);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Tn(e) {
|
|
174
174
|
return Array.from(e.childNodes);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Sn(e, t) {
|
|
177
177
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
178
178
|
t);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
180
|
+
function Yi(e, t, n, r) {
|
|
181
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.classList.toggle(t, !!
|
|
183
|
+
function Ki(e, t, n) {
|
|
184
|
+
e.classList.toggle(t, !!n);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
186
|
+
function An(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
187
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function On(e) {
|
|
190
190
|
const t = {};
|
|
191
191
|
return e.childNodes.forEach(
|
|
192
192
|
/** @param {Element} node */
|
|
193
|
-
(
|
|
194
|
-
t[
|
|
193
|
+
(n) => {
|
|
194
|
+
t[n.slot || "default"] = !0;
|
|
195
195
|
}
|
|
196
196
|
), t;
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
let t = 5381,
|
|
202
|
-
for (;
|
|
203
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
198
|
+
const be = /* @__PURE__ */ new Map();
|
|
199
|
+
let _e = 0;
|
|
200
|
+
function Pn(e) {
|
|
201
|
+
let t = 5381, n = e.length;
|
|
202
|
+
for (; n--; )
|
|
203
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
204
204
|
return t >>> 0;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
return
|
|
206
|
+
function Cn(e, t) {
|
|
207
|
+
const n = { stylesheet: Bn(t), rules: {} };
|
|
208
|
+
return be.set(e, n), n;
|
|
209
209
|
}
|
|
210
|
-
function Gt(e, t,
|
|
211
|
-
const l = 16.666 /
|
|
210
|
+
function Gt(e, t, n, r, i, s, a, o = 0) {
|
|
211
|
+
const l = 16.666 / r;
|
|
212
212
|
let u = `{
|
|
213
213
|
`;
|
|
214
214
|
for (let E = 0; E <= 1; E += l) {
|
|
215
|
-
const v = t + (
|
|
215
|
+
const v = t + (n - t) * s(E);
|
|
216
216
|
u += E * 100 + `%{${a(v, 1 - v)}}
|
|
217
217
|
`;
|
|
218
218
|
}
|
|
219
|
-
const h = u + `100% {${a(
|
|
220
|
-
}`, f = `__svelte_${
|
|
221
|
-
c[f] || (c[f] = !0,
|
|
222
|
-
const
|
|
223
|
-
return e.style.animation = `${
|
|
224
|
-
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
219
|
+
const h = u + `100% {${a(n, 1 - n)}}
|
|
220
|
+
}`, f = `__svelte_${Pn(h)}_${o}`, m = Je(e), { stylesheet: d, rules: c } = be.get(m) || Cn(m, e);
|
|
221
|
+
c[f] || (c[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
222
|
+
const p = e.style.animation || "";
|
|
223
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, _e += 1, f;
|
|
224
|
+
}
|
|
225
|
+
function De(e, t) {
|
|
226
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
227
227
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
228
228
|
// remove all Svelte animations
|
|
229
|
-
), i =
|
|
230
|
-
i && (e.style.animation =
|
|
229
|
+
), i = n.length - r.length;
|
|
230
|
+
i && (e.style.animation = r.join(", "), _e -= i, _e || Ln());
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
function Ln() {
|
|
233
|
+
qe(() => {
|
|
234
|
+
_e || (be.forEach((e) => {
|
|
235
235
|
const { ownerNode: t } = e.stylesheet;
|
|
236
|
-
t &&
|
|
237
|
-
}),
|
|
236
|
+
t && P(t);
|
|
237
|
+
}), be.clear());
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
-
|
|
240
|
+
let te;
|
|
241
|
+
function ee(e) {
|
|
242
|
+
te = e;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
if (!
|
|
244
|
+
function Nn() {
|
|
245
|
+
if (!te)
|
|
246
246
|
throw new Error("Function called outside component initialization");
|
|
247
|
-
return
|
|
247
|
+
return te;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
249
|
+
function In(e) {
|
|
250
|
+
Nn().$$.on_mount.push(e);
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
let
|
|
252
|
+
const F = [], Ge = [];
|
|
253
|
+
let k = [];
|
|
254
254
|
const ot = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
255
|
-
let
|
|
255
|
+
let Fe = !1;
|
|
256
256
|
function jt() {
|
|
257
|
-
|
|
257
|
+
Fe || (Fe = !0, Ft.then(A));
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function es() {
|
|
260
260
|
return jt(), Ft;
|
|
261
261
|
}
|
|
262
262
|
function ne(e) {
|
|
263
|
-
|
|
263
|
+
k.push(e);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
266
|
-
let
|
|
265
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
266
|
+
let D = 0;
|
|
267
267
|
function A() {
|
|
268
|
-
if (
|
|
268
|
+
if (D !== 0)
|
|
269
269
|
return;
|
|
270
|
-
const e =
|
|
270
|
+
const e = te;
|
|
271
271
|
do {
|
|
272
272
|
try {
|
|
273
|
-
for (;
|
|
274
|
-
const t =
|
|
275
|
-
|
|
273
|
+
for (; D < F.length; ) {
|
|
274
|
+
const t = F[D];
|
|
275
|
+
D++, ee(t), Mn(t.$$);
|
|
276
276
|
}
|
|
277
277
|
} catch (t) {
|
|
278
|
-
throw
|
|
278
|
+
throw F.length = 0, D = 0, t;
|
|
279
279
|
}
|
|
280
|
-
for (
|
|
281
|
-
|
|
282
|
-
for (let t = 0; t <
|
|
283
|
-
const
|
|
284
|
-
|
|
280
|
+
for (ee(null), F.length = 0, D = 0; Ge.length; )
|
|
281
|
+
Ge.pop()();
|
|
282
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
283
|
+
const n = k[t];
|
|
284
|
+
Ce.has(n) || (Ce.add(n), n());
|
|
285
285
|
}
|
|
286
|
-
|
|
287
|
-
} while (
|
|
286
|
+
k.length = 0;
|
|
287
|
+
} while (F.length);
|
|
288
288
|
for (; ot.length; )
|
|
289
289
|
ot.pop()();
|
|
290
|
-
|
|
290
|
+
Fe = !1, Ce.clear(), ee(e);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Mn(e) {
|
|
293
293
|
if (e.fragment !== null) {
|
|
294
|
-
e.update(),
|
|
294
|
+
e.update(), I(e.before_update);
|
|
295
295
|
const t = e.dirty;
|
|
296
296
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ne);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const t = [],
|
|
301
|
-
|
|
299
|
+
function $n(e) {
|
|
300
|
+
const t = [], n = [];
|
|
301
|
+
k.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), k = t;
|
|
302
302
|
}
|
|
303
|
-
let
|
|
303
|
+
let J;
|
|
304
304
|
function kt() {
|
|
305
|
-
return
|
|
306
|
-
|
|
307
|
-
})),
|
|
305
|
+
return J || (J = Promise.resolve(), J.then(() => {
|
|
306
|
+
J = null;
|
|
307
|
+
})), J;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
e.dispatchEvent(
|
|
309
|
+
function ye(e, t, n) {
|
|
310
|
+
e.dispatchEvent(An(`${t ? "intro" : "outro"}${n}`));
|
|
311
311
|
}
|
|
312
|
-
const
|
|
313
|
-
let
|
|
314
|
-
function
|
|
315
|
-
|
|
312
|
+
const fe = /* @__PURE__ */ new Set();
|
|
313
|
+
let C;
|
|
314
|
+
function ts() {
|
|
315
|
+
C = {
|
|
316
316
|
r: 0,
|
|
317
317
|
c: [],
|
|
318
|
-
p:
|
|
318
|
+
p: C
|
|
319
319
|
// parent group
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
function ns() {
|
|
323
|
-
|
|
323
|
+
C.r || I(C.c), C = C.p;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
e && e.i && (
|
|
325
|
+
function ce(e, t) {
|
|
326
|
+
e && e.i && (fe.delete(e), e.i(t));
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Le(e, t, n, r) {
|
|
329
329
|
if (e && e.o) {
|
|
330
|
-
if (
|
|
330
|
+
if (fe.has(e))
|
|
331
331
|
return;
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
fe.add(e), C.c.push(() => {
|
|
333
|
+
fe.delete(e), r && (n && e.d(1), r());
|
|
334
334
|
}), e.o(t);
|
|
335
335
|
} else
|
|
336
|
-
|
|
336
|
+
r && r();
|
|
337
337
|
}
|
|
338
338
|
const Vt = { duration: 0 };
|
|
339
|
-
function
|
|
340
|
-
const
|
|
341
|
-
let i = t(e,
|
|
339
|
+
function rs(e, t, n) {
|
|
340
|
+
const r = { direction: "in" };
|
|
341
|
+
let i = t(e, n, r), s = !1, a, o, l = 0;
|
|
342
342
|
function u() {
|
|
343
|
-
a &&
|
|
343
|
+
a && De(e, a);
|
|
344
344
|
}
|
|
345
345
|
function h() {
|
|
346
346
|
const {
|
|
347
347
|
delay: m = 0,
|
|
348
|
-
duration:
|
|
348
|
+
duration: d = 300,
|
|
349
349
|
easing: c = At,
|
|
350
|
-
tick:
|
|
350
|
+
tick: p = B,
|
|
351
351
|
css: E
|
|
352
352
|
} = i || Vt;
|
|
353
|
-
E && (a = Gt(e, 0, 1,
|
|
354
|
-
const v = It() + m, T = v +
|
|
355
|
-
o && o.abort(), s = !0, ne(() =>
|
|
353
|
+
E && (a = Gt(e, 0, 1, d, m, c, E, l++)), p(0, 1);
|
|
354
|
+
const v = It() + m, T = v + d;
|
|
355
|
+
o && o.abort(), s = !0, ne(() => ye(e, !0, "start")), o = $t((H) => {
|
|
356
356
|
if (s) {
|
|
357
357
|
if (H >= T)
|
|
358
|
-
return
|
|
358
|
+
return p(1, 0), ye(e, !0, "end"), u(), s = !1;
|
|
359
359
|
if (H >= v) {
|
|
360
|
-
const S = c((H - v) /
|
|
361
|
-
|
|
360
|
+
const S = c((H - v) / d);
|
|
361
|
+
p(S, 1 - S);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
return s;
|
|
@@ -367,7 +367,7 @@ function is(e, t, r) {
|
|
|
367
367
|
let f = !1;
|
|
368
368
|
return {
|
|
369
369
|
start() {
|
|
370
|
-
f || (f = !0,
|
|
370
|
+
f || (f = !0, De(e), se(i) ? (i = i(r), kt().then(h)) : h());
|
|
371
371
|
},
|
|
372
372
|
invalidate() {
|
|
373
373
|
f = !1;
|
|
@@ -377,10 +377,10 @@ function is(e, t, r) {
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
const
|
|
382
|
-
let i = t(e,
|
|
383
|
-
const o =
|
|
380
|
+
function is(e, t, n) {
|
|
381
|
+
const r = { direction: "out" };
|
|
382
|
+
let i = t(e, n, r), s = !0, a;
|
|
383
|
+
const o = C;
|
|
384
384
|
o.r += 1;
|
|
385
385
|
let l;
|
|
386
386
|
function u() {
|
|
@@ -388,55 +388,55 @@ function ss(e, t, r) {
|
|
|
388
388
|
delay: h = 0,
|
|
389
389
|
duration: f = 300,
|
|
390
390
|
easing: m = At,
|
|
391
|
-
tick:
|
|
391
|
+
tick: d = B,
|
|
392
392
|
css: c
|
|
393
393
|
} = i || Vt;
|
|
394
394
|
c && (a = Gt(e, 1, 0, f, h, m, c));
|
|
395
|
-
const
|
|
396
|
-
ne(() =>
|
|
395
|
+
const p = It() + h, E = p + f;
|
|
396
|
+
ne(() => ye(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
|
|
397
397
|
e.inert, e.inert = !0), $t((v) => {
|
|
398
398
|
if (s) {
|
|
399
399
|
if (v >= E)
|
|
400
|
-
return
|
|
401
|
-
if (v >=
|
|
402
|
-
const T = m((v -
|
|
403
|
-
|
|
400
|
+
return d(0, 1), ye(e, !1, "end"), --o.r || I(o.c), !1;
|
|
401
|
+
if (v >= p) {
|
|
402
|
+
const T = m((v - p) / f);
|
|
403
|
+
d(1 - T, T);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
return s;
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
return
|
|
410
|
-
i = i(
|
|
409
|
+
return se(i) ? kt().then(() => {
|
|
410
|
+
i = i(r), u();
|
|
411
411
|
}) : u(), {
|
|
412
412
|
end(h) {
|
|
413
|
-
h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a &&
|
|
413
|
+
h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a && De(e, a), s = !1);
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ss(e) {
|
|
418
418
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function os(e) {
|
|
421
421
|
e && e.c();
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
const { fragment:
|
|
425
|
-
|
|
426
|
-
const s = e.$$.on_mount.map(Ot).filter(
|
|
427
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
423
|
+
function Rn(e, t, n) {
|
|
424
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
425
|
+
r && r.m(t, n), ne(() => {
|
|
426
|
+
const s = e.$$.on_mount.map(Ot).filter(se);
|
|
427
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : I(s), e.$$.on_mount = [];
|
|
428
428
|
}), i.forEach(ne);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
const
|
|
432
|
-
|
|
430
|
+
function Un(e, t) {
|
|
431
|
+
const n = e.$$;
|
|
432
|
+
n.fragment !== null && ($n(n.after_update), I(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
e.$$.dirty[0] === -1 && (
|
|
434
|
+
function Dn(e, t) {
|
|
435
|
+
e.$$.dirty[0] === -1 && (F.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
const l =
|
|
439
|
-
|
|
437
|
+
function Gn(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
438
|
+
const l = te;
|
|
439
|
+
ee(e);
|
|
440
440
|
const u = e.$$ = {
|
|
441
441
|
fragment: null,
|
|
442
442
|
ctx: [],
|
|
@@ -460,18 +460,18 @@ function Dr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
460
460
|
};
|
|
461
461
|
a && a(u.root);
|
|
462
462
|
let h = !1;
|
|
463
|
-
if (u.ctx =
|
|
464
|
-
const c =
|
|
465
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h &&
|
|
466
|
-
}) : [], u.update(), h = !0,
|
|
463
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, m, ...d) => {
|
|
464
|
+
const c = d.length ? d[0] : m;
|
|
465
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h && Dn(e, f)), m;
|
|
466
|
+
}) : [], u.update(), h = !0, I(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
467
467
|
if (t.hydrate) {
|
|
468
|
-
const f =
|
|
469
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
468
|
+
const f = Tn(t.target);
|
|
469
|
+
u.fragment && u.fragment.l(f), f.forEach(P);
|
|
470
470
|
} else
|
|
471
471
|
u.fragment && u.fragment.c();
|
|
472
|
-
t.intro &&
|
|
472
|
+
t.intro && ce(e.$$.fragment), Rn(e, t.target, t.anchor), A();
|
|
473
473
|
}
|
|
474
|
-
|
|
474
|
+
ee(l);
|
|
475
475
|
}
|
|
476
476
|
let Xt;
|
|
477
477
|
typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
@@ -493,20 +493,20 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
493
493
|
$$l = {};
|
|
494
494
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
495
495
|
$$l_u = /* @__PURE__ */ new Map();
|
|
496
|
-
constructor(e, t,
|
|
497
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
496
|
+
constructor(e, t, n) {
|
|
497
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
498
498
|
}
|
|
499
|
-
addEventListener(e, t,
|
|
499
|
+
addEventListener(e, t, n) {
|
|
500
500
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
501
|
-
const
|
|
502
|
-
this.$$l_u.set(t,
|
|
501
|
+
const r = this.$$c.$on(e, t);
|
|
502
|
+
this.$$l_u.set(t, r);
|
|
503
503
|
}
|
|
504
|
-
super.addEventListener(e, t,
|
|
504
|
+
super.addEventListener(e, t, n);
|
|
505
505
|
}
|
|
506
|
-
removeEventListener(e, t,
|
|
507
|
-
if (super.removeEventListener(e, t,
|
|
508
|
-
const
|
|
509
|
-
|
|
506
|
+
removeEventListener(e, t, n) {
|
|
507
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
508
|
+
const r = this.$$l_u.get(t);
|
|
509
|
+
r && (r(), this.$$l_u.delete(t));
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
async connectedCallback() {
|
|
@@ -516,29 +516,29 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
516
516
|
let s;
|
|
517
517
|
return {
|
|
518
518
|
c: function() {
|
|
519
|
-
s =
|
|
519
|
+
s = $("slot"), i !== "default" && Z(s, "name", i);
|
|
520
520
|
},
|
|
521
521
|
/**
|
|
522
522
|
* @param {HTMLElement} target
|
|
523
523
|
* @param {HTMLElement} [anchor]
|
|
524
524
|
*/
|
|
525
525
|
m: function(l, u) {
|
|
526
|
-
|
|
526
|
+
M(l, s, u);
|
|
527
527
|
},
|
|
528
528
|
d: function(l) {
|
|
529
|
-
l &&
|
|
529
|
+
l && P(s);
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
535
535
|
return;
|
|
536
|
-
const t = {},
|
|
536
|
+
const t = {}, n = On(this);
|
|
537
537
|
for (const i of this.$$s)
|
|
538
|
-
i in
|
|
538
|
+
i in n && (t[i] = [e(i)]);
|
|
539
539
|
for (const i of this.attributes) {
|
|
540
540
|
const s = this.$$g_p(i.name);
|
|
541
|
-
s in this.$$d || (this.$$d[s] =
|
|
541
|
+
s in this.$$d || (this.$$d[s] = me(s, i.value, this.$$p_d, "toProp"));
|
|
542
542
|
}
|
|
543
543
|
for (const i in this.$$p_d)
|
|
544
544
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,11 +552,11 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
|
-
const
|
|
555
|
+
const r = () => {
|
|
556
556
|
this.$$r = !0;
|
|
557
557
|
for (const i in this.$$p_d)
|
|
558
558
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
559
|
-
const s =
|
|
559
|
+
const s = me(
|
|
560
560
|
i,
|
|
561
561
|
this.$$d[i],
|
|
562
562
|
this.$$p_d,
|
|
@@ -566,7 +566,7 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
566
566
|
}
|
|
567
567
|
this.$$r = !1;
|
|
568
568
|
};
|
|
569
|
-
this.$$c.$$.after_update.push(
|
|
569
|
+
this.$$c.$$.after_update.push(r), r();
|
|
570
570
|
for (const i in this.$$l)
|
|
571
571
|
for (const s of this.$$l[i]) {
|
|
572
572
|
const a = this.$$c.$on(i, s);
|
|
@@ -577,8 +577,8 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
577
577
|
}
|
|
578
578
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
579
579
|
// and setting attributes through setAttribute etc, this is helpful
|
|
580
|
-
attributeChangedCallback(e, t,
|
|
581
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
580
|
+
attributeChangedCallback(e, t, n) {
|
|
581
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
582
582
|
}
|
|
583
583
|
disconnectedCallback() {
|
|
584
584
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -591,11 +591,11 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
591
591
|
) || e;
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
|
-
function
|
|
595
|
-
const i =
|
|
596
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
594
|
+
function me(e, t, n, r) {
|
|
595
|
+
const i = n[e]?.type;
|
|
596
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
597
597
|
return t;
|
|
598
|
-
if (
|
|
598
|
+
if (r === "toAttribute")
|
|
599
599
|
switch (i) {
|
|
600
600
|
case "Object":
|
|
601
601
|
case "Array":
|
|
@@ -620,10 +620,10 @@ function pe(e, t, r, n) {
|
|
|
620
620
|
return t;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Fn(e, t, n, r, i, s) {
|
|
624
624
|
let a = class extends Xt {
|
|
625
625
|
constructor() {
|
|
626
|
-
super(e,
|
|
626
|
+
super(e, n, i), this.$$p_d = t;
|
|
627
627
|
}
|
|
628
628
|
static get observedAttributes() {
|
|
629
629
|
return Object.keys(t).map(
|
|
@@ -637,10 +637,10 @@ function Gr(e, t, r, n, i, s) {
|
|
|
637
637
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
638
638
|
},
|
|
639
639
|
set(l) {
|
|
640
|
-
l =
|
|
640
|
+
l = me(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
|
-
}),
|
|
643
|
+
}), r.forEach((o) => {
|
|
644
644
|
Object.defineProperty(a.prototype, o, {
|
|
645
645
|
get() {
|
|
646
646
|
return this.$$c?.[o];
|
|
@@ -649,7 +649,7 @@ function Gr(e, t, r, n, i, s) {
|
|
|
649
649
|
}), e.element = /** @type {any} */
|
|
650
650
|
a, a;
|
|
651
651
|
}
|
|
652
|
-
class
|
|
652
|
+
class jn {
|
|
653
653
|
/**
|
|
654
654
|
* ### PRIVATE API
|
|
655
655
|
*
|
|
@@ -668,7 +668,7 @@ class Fr {
|
|
|
668
668
|
$$set = void 0;
|
|
669
669
|
/** @returns {void} */
|
|
670
670
|
$destroy() {
|
|
671
|
-
|
|
671
|
+
Un(this, 1), this.$destroy = B;
|
|
672
672
|
}
|
|
673
673
|
/**
|
|
674
674
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -676,13 +676,13 @@ class Fr {
|
|
|
676
676
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
677
677
|
* @returns {() => void}
|
|
678
678
|
*/
|
|
679
|
-
$on(t,
|
|
680
|
-
if (!
|
|
679
|
+
$on(t, n) {
|
|
680
|
+
if (!se(n))
|
|
681
681
|
return B;
|
|
682
|
-
const
|
|
683
|
-
return
|
|
684
|
-
const i =
|
|
685
|
-
i !== -1 &&
|
|
682
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
683
|
+
return r.push(n), () => {
|
|
684
|
+
const i = r.indexOf(n);
|
|
685
|
+
i !== -1 && r.splice(i, 1);
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
/**
|
|
@@ -690,52 +690,52 @@ class Fr {
|
|
|
690
690
|
* @returns {void}
|
|
691
691
|
*/
|
|
692
692
|
$set(t) {
|
|
693
|
-
this.$$set && !
|
|
693
|
+
this.$$set && !vn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
const
|
|
697
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
698
|
-
function
|
|
696
|
+
const kn = "4";
|
|
697
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(kn);
|
|
698
|
+
function Vn(e, t) {
|
|
699
699
|
if (e) {
|
|
700
|
-
const
|
|
701
|
-
|
|
700
|
+
const n = document.createElement("style");
|
|
701
|
+
n.innerHTML = t, e.appendChild(n);
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
const
|
|
706
|
-
fetch(
|
|
704
|
+
function Xn(e, t) {
|
|
705
|
+
const n = new URL(t);
|
|
706
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
707
707
|
const i = document.createElement("style");
|
|
708
|
-
i.innerHTML =
|
|
709
|
-
}).catch((
|
|
710
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
708
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
709
|
+
}).catch((r) => {
|
|
710
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function zn(e, t, n) {
|
|
714
714
|
if (window.emMessageBus) {
|
|
715
|
-
const
|
|
715
|
+
const r = document.createElement("style");
|
|
716
716
|
window.emMessageBus.subscribe(t, (i) => {
|
|
717
|
-
|
|
717
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
const
|
|
722
|
-
function
|
|
721
|
+
const G = [];
|
|
722
|
+
function Wn(e, t) {
|
|
723
723
|
return {
|
|
724
|
-
subscribe:
|
|
724
|
+
subscribe: He(e, t).subscribe
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
let
|
|
729
|
-
const
|
|
727
|
+
function He(e, t = B) {
|
|
728
|
+
let n;
|
|
729
|
+
const r = /* @__PURE__ */ new Set();
|
|
730
730
|
function i(o) {
|
|
731
|
-
if (Pt(e, o) && (e = o,
|
|
732
|
-
const l = !
|
|
733
|
-
for (const u of
|
|
734
|
-
u[1](),
|
|
731
|
+
if (Pt(e, o) && (e = o, n)) {
|
|
732
|
+
const l = !G.length;
|
|
733
|
+
for (const u of r)
|
|
734
|
+
u[1](), G.push(u, e);
|
|
735
735
|
if (l) {
|
|
736
|
-
for (let u = 0; u <
|
|
737
|
-
|
|
738
|
-
|
|
736
|
+
for (let u = 0; u < G.length; u += 2)
|
|
737
|
+
G[u][0](G[u + 1]);
|
|
738
|
+
G.length = 0;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
@@ -744,18 +744,18 @@ function Be(e, t = B) {
|
|
|
744
744
|
}
|
|
745
745
|
function a(o, l = B) {
|
|
746
746
|
const u = [o, l];
|
|
747
|
-
return
|
|
748
|
-
|
|
747
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || B), o(e), () => {
|
|
748
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
751
|
return { set: i, update: s, subscribe: a };
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
const
|
|
753
|
+
function Q(e, t, n) {
|
|
754
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
755
755
|
if (!i.every(Boolean))
|
|
756
756
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
757
757
|
const s = t.length < 2;
|
|
758
|
-
return
|
|
758
|
+
return Wn(n, (a, o) => {
|
|
759
759
|
let l = !1;
|
|
760
760
|
const u = [];
|
|
761
761
|
let h = 0, f = B;
|
|
@@ -763,66 +763,66 @@ function q(e, t, r) {
|
|
|
763
763
|
if (h)
|
|
764
764
|
return;
|
|
765
765
|
f();
|
|
766
|
-
const c = t(
|
|
767
|
-
s ? a(c) : f =
|
|
768
|
-
},
|
|
769
|
-
(c,
|
|
766
|
+
const c = t(r ? u[0] : u, a, o);
|
|
767
|
+
s ? a(c) : f = se(c) ? c : B;
|
|
768
|
+
}, d = i.map(
|
|
769
|
+
(c, p) => Ct(
|
|
770
770
|
c,
|
|
771
771
|
(E) => {
|
|
772
|
-
u[
|
|
772
|
+
u[p] = E, h &= ~(1 << p), l && m();
|
|
773
773
|
},
|
|
774
774
|
() => {
|
|
775
|
-
h |= 1 <<
|
|
775
|
+
h |= 1 << p;
|
|
776
776
|
}
|
|
777
777
|
)
|
|
778
778
|
);
|
|
779
779
|
return l = !0, m(), function() {
|
|
780
|
-
|
|
780
|
+
I(d), f(), l = !1;
|
|
781
781
|
};
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
784
|
+
var as = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
785
|
+
function Zn(e) {
|
|
786
786
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
787
787
|
}
|
|
788
|
-
var
|
|
789
|
-
return
|
|
788
|
+
var Qn = function(t) {
|
|
789
|
+
return qn(t) && !Jn(t);
|
|
790
790
|
};
|
|
791
|
-
function
|
|
791
|
+
function qn(e) {
|
|
792
792
|
return !!e && typeof e == "object";
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function Jn(e) {
|
|
795
795
|
var t = Object.prototype.toString.call(e);
|
|
796
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
796
|
+
return t === "[object RegExp]" || t === "[object Date]" || er(e);
|
|
797
797
|
}
|
|
798
|
-
var
|
|
799
|
-
function
|
|
800
|
-
return e.$$typeof ===
|
|
798
|
+
var Yn = typeof Symbol == "function" && Symbol.for, Kn = Yn ? Symbol.for("react.element") : 60103;
|
|
799
|
+
function er(e) {
|
|
800
|
+
return e.$$typeof === Kn;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function tr(e) {
|
|
803
803
|
return Array.isArray(e) ? [] : {};
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
805
|
+
function re(e, t) {
|
|
806
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(tr(e), e, t) : e;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
return e.concat(t).map(function(
|
|
810
|
-
return
|
|
808
|
+
function nr(e, t, n) {
|
|
809
|
+
return e.concat(t).map(function(r) {
|
|
810
|
+
return re(r, n);
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function rr(e, t) {
|
|
814
814
|
if (!t.customMerge)
|
|
815
|
-
return
|
|
816
|
-
var
|
|
817
|
-
return typeof
|
|
815
|
+
return V;
|
|
816
|
+
var n = t.customMerge(e);
|
|
817
|
+
return typeof n == "function" ? n : V;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function ir(e) {
|
|
820
820
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
821
821
|
return Object.propertyIsEnumerable.call(e, t);
|
|
822
822
|
}) : [];
|
|
823
823
|
}
|
|
824
824
|
function at(e) {
|
|
825
|
-
return Object.keys(e).concat(
|
|
825
|
+
return Object.keys(e).concat(ir(e));
|
|
826
826
|
}
|
|
827
827
|
function zt(e, t) {
|
|
828
828
|
try {
|
|
@@ -831,187 +831,193 @@ function zt(e, t) {
|
|
|
831
831
|
return !1;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function sr(e, t) {
|
|
835
835
|
return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
var
|
|
839
|
-
return
|
|
840
|
-
|
|
837
|
+
function or(e, t, n) {
|
|
838
|
+
var r = {};
|
|
839
|
+
return n.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
840
|
+
r[i] = re(e[i], n);
|
|
841
841
|
}), at(t).forEach(function(i) {
|
|
842
|
-
|
|
843
|
-
}),
|
|
842
|
+
sr(e, i) || (zt(e, i) && n.isMergeableObject(t[i]) ? r[i] = rr(i, n)(e[i], t[i], n) : r[i] = re(t[i], n));
|
|
843
|
+
}), r;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
847
|
-
var
|
|
848
|
-
return s ?
|
|
845
|
+
function V(e, t, n) {
|
|
846
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || nr, n.isMergeableObject = n.isMergeableObject || Qn, n.cloneUnlessOtherwiseSpecified = re;
|
|
847
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
848
|
+
return s ? r ? n.arrayMerge(e, t, n) : or(e, t, n) : re(t, n);
|
|
849
849
|
}
|
|
850
|
-
|
|
850
|
+
V.all = function(t, n) {
|
|
851
851
|
if (!Array.isArray(t))
|
|
852
852
|
throw new Error("first argument should be an array");
|
|
853
|
-
return t.reduce(function(
|
|
854
|
-
return
|
|
853
|
+
return t.reduce(function(r, i) {
|
|
854
|
+
return V(r, i, n);
|
|
855
855
|
}, {});
|
|
856
856
|
};
|
|
857
|
-
var
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
857
|
+
var ar = V, ur = ar;
|
|
858
|
+
const hr = /* @__PURE__ */ Zn(ur);
|
|
859
|
+
/*! *****************************************************************************
|
|
860
|
+
Copyright (c) Microsoft Corporation.
|
|
861
|
+
|
|
862
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
863
|
+
purpose with or without fee is hereby granted.
|
|
864
|
+
|
|
865
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
866
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
867
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
868
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
869
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
870
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
871
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
872
|
+
***************************************************************************** */
|
|
873
|
+
var je = function(e, t) {
|
|
874
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
875
|
+
n.__proto__ = r;
|
|
876
|
+
} || function(n, r) {
|
|
877
|
+
for (var i in r)
|
|
878
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
879
|
+
}, je(e, t);
|
|
866
880
|
};
|
|
867
|
-
function
|
|
881
|
+
function we(e, t) {
|
|
868
882
|
if (typeof t != "function" && t !== null)
|
|
869
883
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
870
|
-
|
|
871
|
-
function
|
|
884
|
+
je(e, t);
|
|
885
|
+
function n() {
|
|
872
886
|
this.constructor = e;
|
|
873
887
|
}
|
|
874
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
875
|
-
}
|
|
876
|
-
var
|
|
877
|
-
return
|
|
878
|
-
for (var
|
|
879
|
-
|
|
880
|
-
for (var s in
|
|
881
|
-
Object.prototype.hasOwnProperty.call(
|
|
888
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
889
|
+
}
|
|
890
|
+
var y = function() {
|
|
891
|
+
return y = Object.assign || function(t) {
|
|
892
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
893
|
+
n = arguments[r];
|
|
894
|
+
for (var s in n)
|
|
895
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
882
896
|
}
|
|
883
897
|
return t;
|
|
884
|
-
},
|
|
898
|
+
}, y.apply(this, arguments);
|
|
885
899
|
};
|
|
886
|
-
function
|
|
887
|
-
var
|
|
888
|
-
for (var
|
|
889
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
900
|
+
function lr(e, t) {
|
|
901
|
+
var n = {};
|
|
902
|
+
for (var r in e)
|
|
903
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
890
904
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
891
|
-
for (var i = 0,
|
|
892
|
-
t.indexOf(
|
|
893
|
-
return
|
|
905
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
906
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
907
|
+
return n;
|
|
894
908
|
}
|
|
895
|
-
function
|
|
896
|
-
if (
|
|
897
|
-
for (var
|
|
898
|
-
(s || !(
|
|
899
|
-
return e.concat(s ||
|
|
909
|
+
function Ne(e, t, n) {
|
|
910
|
+
if (arguments.length === 2)
|
|
911
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
912
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
913
|
+
return e.concat(s || t);
|
|
900
914
|
}
|
|
901
|
-
function
|
|
902
|
-
var
|
|
915
|
+
function Ie(e, t) {
|
|
916
|
+
var n = t && t.cache ? t.cache : gr, r = t && t.serializer ? t.serializer : pr, i = t && t.strategy ? t.strategy : cr;
|
|
903
917
|
return i(e, {
|
|
904
|
-
cache:
|
|
905
|
-
serializer:
|
|
918
|
+
cache: n,
|
|
919
|
+
serializer: r
|
|
906
920
|
});
|
|
907
921
|
}
|
|
908
|
-
function
|
|
922
|
+
function fr(e) {
|
|
909
923
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
910
924
|
}
|
|
911
|
-
function
|
|
912
|
-
var i =
|
|
913
|
-
return typeof s > "u" && (s = e.call(this,
|
|
925
|
+
function Wt(e, t, n, r) {
|
|
926
|
+
var i = fr(r) ? r : n(r), s = t.get(i);
|
|
927
|
+
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
928
|
+
}
|
|
929
|
+
function Zt(e, t, n) {
|
|
930
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
931
|
+
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
914
932
|
}
|
|
915
|
-
function
|
|
916
|
-
|
|
917
|
-
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
933
|
+
function Ke(e, t, n, r, i) {
|
|
934
|
+
return n.bind(t, e, r, i);
|
|
918
935
|
}
|
|
919
|
-
function
|
|
920
|
-
|
|
936
|
+
function cr(e, t) {
|
|
937
|
+
var n = e.length === 1 ? Wt : Zt;
|
|
938
|
+
return Ke(e, this, n, t.cache.create(), t.serializer);
|
|
921
939
|
}
|
|
922
|
-
function
|
|
923
|
-
|
|
924
|
-
return Zt(e, this, r, t.cache.create(), t.serializer);
|
|
940
|
+
function mr(e, t) {
|
|
941
|
+
return Ke(e, this, Zt, t.cache.create(), t.serializer);
|
|
925
942
|
}
|
|
926
|
-
function
|
|
927
|
-
return
|
|
943
|
+
function dr(e, t) {
|
|
944
|
+
return Ke(e, this, Wt, t.cache.create(), t.serializer);
|
|
928
945
|
}
|
|
929
|
-
var
|
|
946
|
+
var pr = function() {
|
|
930
947
|
return JSON.stringify(arguments);
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}()
|
|
943
|
-
), bn = {
|
|
948
|
+
};
|
|
949
|
+
function et() {
|
|
950
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
951
|
+
}
|
|
952
|
+
et.prototype.get = function(e) {
|
|
953
|
+
return this.cache[e];
|
|
954
|
+
};
|
|
955
|
+
et.prototype.set = function(e, t) {
|
|
956
|
+
this.cache[e] = t;
|
|
957
|
+
};
|
|
958
|
+
var gr = {
|
|
944
959
|
create: function() {
|
|
945
|
-
return new
|
|
960
|
+
return new et();
|
|
946
961
|
}
|
|
947
|
-
},
|
|
948
|
-
variadic:
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
952
|
-
r = arguments[n];
|
|
953
|
-
for (var s in r)
|
|
954
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
955
|
-
}
|
|
956
|
-
return t;
|
|
957
|
-
}, xe.apply(this, arguments);
|
|
958
|
-
};
|
|
959
|
-
var g;
|
|
962
|
+
}, Me = {
|
|
963
|
+
variadic: mr,
|
|
964
|
+
monadic: dr
|
|
965
|
+
}, g;
|
|
960
966
|
(function(e) {
|
|
961
967
|
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";
|
|
962
968
|
})(g || (g = {}));
|
|
963
|
-
var
|
|
969
|
+
var x;
|
|
964
970
|
(function(e) {
|
|
965
971
|
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";
|
|
966
|
-
})(
|
|
967
|
-
var
|
|
972
|
+
})(x || (x = {}));
|
|
973
|
+
var X;
|
|
968
974
|
(function(e) {
|
|
969
975
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
970
|
-
})(
|
|
976
|
+
})(X || (X = {}));
|
|
971
977
|
function ut(e) {
|
|
972
|
-
return e.type ===
|
|
978
|
+
return e.type === x.literal;
|
|
973
979
|
}
|
|
974
|
-
function
|
|
975
|
-
return e.type ===
|
|
980
|
+
function br(e) {
|
|
981
|
+
return e.type === x.argument;
|
|
976
982
|
}
|
|
977
983
|
function Qt(e) {
|
|
978
|
-
return e.type ===
|
|
984
|
+
return e.type === x.number;
|
|
979
985
|
}
|
|
980
986
|
function qt(e) {
|
|
981
|
-
return e.type ===
|
|
987
|
+
return e.type === x.date;
|
|
982
988
|
}
|
|
983
989
|
function Jt(e) {
|
|
984
|
-
return e.type ===
|
|
990
|
+
return e.type === x.time;
|
|
985
991
|
}
|
|
986
992
|
function Yt(e) {
|
|
987
|
-
return e.type ===
|
|
993
|
+
return e.type === x.select;
|
|
988
994
|
}
|
|
989
995
|
function Kt(e) {
|
|
990
|
-
return e.type ===
|
|
996
|
+
return e.type === x.plural;
|
|
991
997
|
}
|
|
992
|
-
function
|
|
993
|
-
return e.type ===
|
|
998
|
+
function _r(e) {
|
|
999
|
+
return e.type === x.pound;
|
|
994
1000
|
}
|
|
995
|
-
function
|
|
996
|
-
return e.type ===
|
|
1001
|
+
function en(e) {
|
|
1002
|
+
return e.type === x.tag;
|
|
997
1003
|
}
|
|
998
|
-
function
|
|
999
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1004
|
+
function tn(e) {
|
|
1005
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1000
1006
|
}
|
|
1001
|
-
function
|
|
1002
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1007
|
+
function ke(e) {
|
|
1008
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1003
1009
|
}
|
|
1004
|
-
var
|
|
1005
|
-
function
|
|
1010
|
+
var nn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yr = /(?:[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;
|
|
1011
|
+
function xr(e) {
|
|
1006
1012
|
var t = {};
|
|
1007
|
-
return e.replace(
|
|
1008
|
-
var
|
|
1009
|
-
switch (
|
|
1013
|
+
return e.replace(yr, function(n) {
|
|
1014
|
+
var r = n.length;
|
|
1015
|
+
switch (n[0]) {
|
|
1010
1016
|
case "G":
|
|
1011
|
-
t.era =
|
|
1017
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1012
1018
|
break;
|
|
1013
1019
|
case "y":
|
|
1014
|
-
t.year =
|
|
1020
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1015
1021
|
break;
|
|
1016
1022
|
case "Y":
|
|
1017
1023
|
case "u":
|
|
@@ -1023,30 +1029,30 @@ function xn(e) {
|
|
|
1023
1029
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1024
1030
|
case "M":
|
|
1025
1031
|
case "L":
|
|
1026
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1032
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1027
1033
|
break;
|
|
1028
1034
|
case "w":
|
|
1029
1035
|
case "W":
|
|
1030
1036
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1031
1037
|
case "d":
|
|
1032
|
-
t.day = ["numeric", "2-digit"][
|
|
1038
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1033
1039
|
break;
|
|
1034
1040
|
case "D":
|
|
1035
1041
|
case "F":
|
|
1036
1042
|
case "g":
|
|
1037
1043
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1038
1044
|
case "E":
|
|
1039
|
-
t.weekday =
|
|
1045
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1040
1046
|
break;
|
|
1041
1047
|
case "e":
|
|
1042
|
-
if (
|
|
1048
|
+
if (r < 4)
|
|
1043
1049
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1044
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1050
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1045
1051
|
break;
|
|
1046
1052
|
case "c":
|
|
1047
|
-
if (
|
|
1053
|
+
if (r < 4)
|
|
1048
1054
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1049
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1055
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1050
1056
|
break;
|
|
1051
1057
|
case "a":
|
|
1052
1058
|
t.hour12 = !0;
|
|
@@ -1055,32 +1061,32 @@ function xn(e) {
|
|
|
1055
1061
|
case "B":
|
|
1056
1062
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1057
1063
|
case "h":
|
|
1058
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1064
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1059
1065
|
break;
|
|
1060
1066
|
case "H":
|
|
1061
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1067
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1062
1068
|
break;
|
|
1063
1069
|
case "K":
|
|
1064
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1070
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1065
1071
|
break;
|
|
1066
1072
|
case "k":
|
|
1067
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1073
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1068
1074
|
break;
|
|
1069
1075
|
case "j":
|
|
1070
1076
|
case "J":
|
|
1071
1077
|
case "C":
|
|
1072
1078
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1073
1079
|
case "m":
|
|
1074
|
-
t.minute = ["numeric", "2-digit"][
|
|
1080
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1075
1081
|
break;
|
|
1076
1082
|
case "s":
|
|
1077
|
-
t.second = ["numeric", "2-digit"][
|
|
1083
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1078
1084
|
break;
|
|
1079
1085
|
case "S":
|
|
1080
1086
|
case "A":
|
|
1081
1087
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1082
1088
|
case "z":
|
|
1083
|
-
t.timeZoneName =
|
|
1089
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1084
1090
|
break;
|
|
1085
1091
|
case "Z":
|
|
1086
1092
|
case "O":
|
|
@@ -1093,24 +1099,14 @@ function xn(e) {
|
|
|
1093
1099
|
return "";
|
|
1094
1100
|
}), t;
|
|
1095
1101
|
}
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1098
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1099
|
-
r = arguments[n];
|
|
1100
|
-
for (var s in r)
|
|
1101
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1102
|
-
}
|
|
1103
|
-
return t;
|
|
1104
|
-
}, x.apply(this, arguments);
|
|
1105
|
-
};
|
|
1106
|
-
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1107
|
-
function Hn(e) {
|
|
1102
|
+
var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1103
|
+
function vr(e) {
|
|
1108
1104
|
if (e.length === 0)
|
|
1109
1105
|
throw new Error("Number skeleton cannot be empty");
|
|
1110
|
-
for (var t = e.split(
|
|
1106
|
+
for (var t = e.split(Er).filter(function(m) {
|
|
1111
1107
|
return m.length > 0;
|
|
1112
|
-
}),
|
|
1113
|
-
var s = i[
|
|
1108
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1109
|
+
var s = i[r], a = s.split("/");
|
|
1114
1110
|
if (a.length === 0)
|
|
1115
1111
|
throw new Error("Invalid number skeleton");
|
|
1116
1112
|
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
@@ -1118,21 +1114,21 @@ function Hn(e) {
|
|
|
1118
1114
|
if (f.length === 0)
|
|
1119
1115
|
throw new Error("Invalid number skeleton");
|
|
1120
1116
|
}
|
|
1121
|
-
|
|
1117
|
+
n.push({ stem: o, options: l });
|
|
1122
1118
|
}
|
|
1123
|
-
return
|
|
1119
|
+
return n;
|
|
1124
1120
|
}
|
|
1125
|
-
function
|
|
1121
|
+
function Hr(e) {
|
|
1126
1122
|
return e.replace(/^(.*?)-/, "");
|
|
1127
1123
|
}
|
|
1128
|
-
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1124
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rn = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, sn = /^(0+)$/;
|
|
1129
1125
|
function lt(e) {
|
|
1130
1126
|
var t = {};
|
|
1131
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1132
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1127
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rn, function(n, r, i) {
|
|
1128
|
+
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)), "";
|
|
1133
1129
|
}), t;
|
|
1134
1130
|
}
|
|
1135
|
-
function
|
|
1131
|
+
function on(e) {
|
|
1136
1132
|
switch (e) {
|
|
1137
1133
|
case "sign-auto":
|
|
1138
1134
|
return {
|
|
@@ -1172,27 +1168,27 @@ function sr(e) {
|
|
|
1172
1168
|
};
|
|
1173
1169
|
}
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1171
|
+
function Br(e) {
|
|
1176
1172
|
var t;
|
|
1177
1173
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1178
1174
|
notation: "engineering"
|
|
1179
1175
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1180
1176
|
notation: "scientific"
|
|
1181
1177
|
}, e = e.slice(1)), t) {
|
|
1182
|
-
var
|
|
1183
|
-
if (
|
|
1178
|
+
var n = e.slice(0, 2);
|
|
1179
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sn.test(e))
|
|
1184
1180
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1185
1181
|
t.minimumIntegerDigits = e.length;
|
|
1186
1182
|
}
|
|
1187
1183
|
return t;
|
|
1188
1184
|
}
|
|
1189
1185
|
function ft(e) {
|
|
1190
|
-
var t = {},
|
|
1191
|
-
return
|
|
1186
|
+
var t = {}, n = on(e);
|
|
1187
|
+
return n || t;
|
|
1192
1188
|
}
|
|
1193
|
-
function
|
|
1194
|
-
for (var t = {},
|
|
1195
|
-
var i = n
|
|
1189
|
+
function Tr(e) {
|
|
1190
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1191
|
+
var i = r[n];
|
|
1196
1192
|
switch (i.stem) {
|
|
1197
1193
|
case "percent":
|
|
1198
1194
|
case "%":
|
|
@@ -1214,7 +1210,7 @@ function Sn(e) {
|
|
|
1214
1210
|
continue;
|
|
1215
1211
|
case "measure-unit":
|
|
1216
1212
|
case "unit":
|
|
1217
|
-
t.style = "unit", t.unit =
|
|
1213
|
+
t.style = "unit", t.unit = Hr(i.options[0]);
|
|
1218
1214
|
continue;
|
|
1219
1215
|
case "compact-short":
|
|
1220
1216
|
case "K":
|
|
@@ -1225,13 +1221,13 @@ function Sn(e) {
|
|
|
1225
1221
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1226
1222
|
continue;
|
|
1227
1223
|
case "scientific":
|
|
1228
|
-
t =
|
|
1229
|
-
return
|
|
1224
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1225
|
+
return y(y({}, l), ft(u));
|
|
1230
1226
|
}, {}));
|
|
1231
1227
|
continue;
|
|
1232
1228
|
case "engineering":
|
|
1233
|
-
t =
|
|
1234
|
-
return
|
|
1229
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1230
|
+
return y(y({}, l), ft(u));
|
|
1235
1231
|
}, {}));
|
|
1236
1232
|
continue;
|
|
1237
1233
|
case "notation-simple":
|
|
@@ -1276,45 +1272,45 @@ function Sn(e) {
|
|
|
1276
1272
|
case "integer-width":
|
|
1277
1273
|
if (i.options.length > 1)
|
|
1278
1274
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1279
|
-
i.options[0].replace(
|
|
1275
|
+
i.options[0].replace(wr, function(l, u, h, f, m, d) {
|
|
1280
1276
|
if (u)
|
|
1281
1277
|
t.minimumIntegerDigits = h.length;
|
|
1282
1278
|
else {
|
|
1283
1279
|
if (f && m)
|
|
1284
1280
|
throw new Error("We currently do not support maximum integer digits");
|
|
1285
|
-
if (
|
|
1281
|
+
if (d)
|
|
1286
1282
|
throw new Error("We currently do not support exact integer digits");
|
|
1287
1283
|
}
|
|
1288
1284
|
return "";
|
|
1289
1285
|
});
|
|
1290
1286
|
continue;
|
|
1291
1287
|
}
|
|
1292
|
-
if (
|
|
1288
|
+
if (sn.test(i.stem)) {
|
|
1293
1289
|
t.minimumIntegerDigits = i.stem.length;
|
|
1294
1290
|
continue;
|
|
1295
1291
|
}
|
|
1296
1292
|
if (ht.test(i.stem)) {
|
|
1297
1293
|
if (i.options.length > 1)
|
|
1298
1294
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1299
|
-
i.stem.replace(ht, function(l, u, h, f, m,
|
|
1300
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m &&
|
|
1295
|
+
i.stem.replace(ht, function(l, u, h, f, m, d) {
|
|
1296
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1301
1297
|
});
|
|
1302
1298
|
var s = i.options[0];
|
|
1303
|
-
s === "w" ? t =
|
|
1299
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), lt(s)));
|
|
1304
1300
|
continue;
|
|
1305
1301
|
}
|
|
1306
|
-
if (
|
|
1307
|
-
t =
|
|
1302
|
+
if (rn.test(i.stem)) {
|
|
1303
|
+
t = y(y({}, t), lt(i.stem));
|
|
1308
1304
|
continue;
|
|
1309
1305
|
}
|
|
1310
|
-
var a =
|
|
1311
|
-
a && (t =
|
|
1312
|
-
var o =
|
|
1313
|
-
o && (t =
|
|
1306
|
+
var a = on(i.stem);
|
|
1307
|
+
a && (t = y(y({}, t), a));
|
|
1308
|
+
var o = Br(i.stem);
|
|
1309
|
+
o && (t = y(y({}, t), o));
|
|
1314
1310
|
}
|
|
1315
1311
|
return t;
|
|
1316
1312
|
}
|
|
1317
|
-
var
|
|
1313
|
+
var le = {
|
|
1318
1314
|
"001": [
|
|
1319
1315
|
"H",
|
|
1320
1316
|
"h"
|
|
@@ -2729,23 +2725,23 @@ var fe = {
|
|
|
2729
2725
|
"h"
|
|
2730
2726
|
]
|
|
2731
2727
|
};
|
|
2732
|
-
function
|
|
2733
|
-
for (var
|
|
2734
|
-
var i = e.charAt(
|
|
2728
|
+
function Sr(e, t) {
|
|
2729
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2730
|
+
var i = e.charAt(r);
|
|
2735
2731
|
if (i === "j") {
|
|
2736
|
-
for (var s = 0;
|
|
2737
|
-
s++,
|
|
2738
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2732
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2733
|
+
s++, r++;
|
|
2734
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ar(t);
|
|
2739
2735
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2740
|
-
|
|
2736
|
+
n += l;
|
|
2741
2737
|
for (; a-- > 0; )
|
|
2742
|
-
|
|
2738
|
+
n = u + n;
|
|
2743
2739
|
} else
|
|
2744
|
-
i === "J" ?
|
|
2740
|
+
i === "J" ? n += "H" : n += i;
|
|
2745
2741
|
}
|
|
2746
|
-
return
|
|
2742
|
+
return n;
|
|
2747
2743
|
}
|
|
2748
|
-
function
|
|
2744
|
+
function Ar(e) {
|
|
2749
2745
|
var t = e.hourCycle;
|
|
2750
2746
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2751
2747
|
e.hourCycles && // @ts-ignore
|
|
@@ -2762,73 +2758,73 @@ function On(e) {
|
|
|
2762
2758
|
default:
|
|
2763
2759
|
throw new Error("Invalid hourCycle");
|
|
2764
2760
|
}
|
|
2765
|
-
var
|
|
2766
|
-
|
|
2767
|
-
var i =
|
|
2761
|
+
var n = e.language, r;
|
|
2762
|
+
n !== "root" && (r = e.maximize().region);
|
|
2763
|
+
var i = le[r || ""] || le[n || ""] || le["".concat(n, "-001")] || le["001"];
|
|
2768
2764
|
return i[0];
|
|
2769
2765
|
}
|
|
2770
|
-
var
|
|
2766
|
+
var $e, Or = new RegExp("^".concat(nn.source, "*")), Pr = new RegExp("".concat(nn.source, "*$"));
|
|
2771
2767
|
function b(e, t) {
|
|
2772
2768
|
return { start: e, end: t };
|
|
2773
2769
|
}
|
|
2774
|
-
var
|
|
2770
|
+
var Cr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Lr = !!String.fromCodePoint, Nr = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, Mr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Rr = !!Number.isSafeInteger, Ur = Rr ? Number.isSafeInteger : function(e) {
|
|
2775
2771
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2776
|
-
},
|
|
2772
|
+
}, Ve = !0;
|
|
2777
2773
|
try {
|
|
2778
|
-
var
|
|
2779
|
-
|
|
2774
|
+
var Dr = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2775
|
+
Ve = (($e = Dr.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
2780
2776
|
} catch {
|
|
2781
|
-
|
|
2777
|
+
Ve = !1;
|
|
2782
2778
|
}
|
|
2783
|
-
var ct =
|
|
2779
|
+
var ct = Cr ? (
|
|
2784
2780
|
// Native
|
|
2785
|
-
function(t,
|
|
2786
|
-
return t.startsWith(
|
|
2781
|
+
function(t, n, r) {
|
|
2782
|
+
return t.startsWith(n, r);
|
|
2787
2783
|
}
|
|
2788
2784
|
) : (
|
|
2789
2785
|
// For IE11
|
|
2790
|
-
function(t,
|
|
2791
|
-
return t.slice(
|
|
2786
|
+
function(t, n, r) {
|
|
2787
|
+
return t.slice(r, r + n.length) === n;
|
|
2792
2788
|
}
|
|
2793
|
-
),
|
|
2789
|
+
), Xe = Lr ? String.fromCodePoint : (
|
|
2794
2790
|
// IE11
|
|
2795
2791
|
function() {
|
|
2796
|
-
for (var t = [],
|
|
2797
|
-
t[
|
|
2798
|
-
for (var
|
|
2792
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2793
|
+
t[n] = arguments[n];
|
|
2794
|
+
for (var r = "", i = t.length, s = 0, a; i > s; ) {
|
|
2799
2795
|
if (a = t[s++], a > 1114111)
|
|
2800
2796
|
throw RangeError(a + " is not a valid code point");
|
|
2801
|
-
|
|
2797
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2802
2798
|
}
|
|
2803
|
-
return
|
|
2799
|
+
return r;
|
|
2804
2800
|
}
|
|
2805
2801
|
), mt = (
|
|
2806
2802
|
// native
|
|
2807
|
-
|
|
2803
|
+
Nr ? Object.fromEntries : (
|
|
2808
2804
|
// Ponyfill
|
|
2809
2805
|
function(t) {
|
|
2810
|
-
for (var
|
|
2811
|
-
var s = i[
|
|
2812
|
-
|
|
2806
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2807
|
+
var s = i[r], a = s[0], o = s[1];
|
|
2808
|
+
n[a] = o;
|
|
2813
2809
|
}
|
|
2814
|
-
return
|
|
2810
|
+
return n;
|
|
2815
2811
|
}
|
|
2816
2812
|
)
|
|
2817
|
-
),
|
|
2813
|
+
), an = Ir ? (
|
|
2818
2814
|
// Native
|
|
2819
|
-
function(t,
|
|
2820
|
-
return t.codePointAt(
|
|
2815
|
+
function(t, n) {
|
|
2816
|
+
return t.codePointAt(n);
|
|
2821
2817
|
}
|
|
2822
2818
|
) : (
|
|
2823
2819
|
// IE 11
|
|
2824
|
-
function(t,
|
|
2825
|
-
var
|
|
2826
|
-
if (!(
|
|
2827
|
-
var i = t.charCodeAt(
|
|
2828
|
-
return i < 55296 || i > 56319 ||
|
|
2820
|
+
function(t, n) {
|
|
2821
|
+
var r = t.length;
|
|
2822
|
+
if (!(n < 0 || n >= r)) {
|
|
2823
|
+
var i = t.charCodeAt(n), s;
|
|
2824
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2829
2825
|
}
|
|
2830
2826
|
}
|
|
2831
|
-
),
|
|
2827
|
+
), Gr = Mr ? (
|
|
2832
2828
|
// Native
|
|
2833
2829
|
function(t) {
|
|
2834
2830
|
return t.trimStart();
|
|
@@ -2836,9 +2832,9 @@ var ct = Ln ? (
|
|
|
2836
2832
|
) : (
|
|
2837
2833
|
// Ponyfill
|
|
2838
2834
|
function(t) {
|
|
2839
|
-
return t.replace(
|
|
2835
|
+
return t.replace(Or, "");
|
|
2840
2836
|
}
|
|
2841
|
-
),
|
|
2837
|
+
), Fr = $r ? (
|
|
2842
2838
|
// Native
|
|
2843
2839
|
function(t) {
|
|
2844
2840
|
return t.trimEnd();
|
|
@@ -2846,69 +2842,69 @@ var ct = Ln ? (
|
|
|
2846
2842
|
) : (
|
|
2847
2843
|
// Ponyfill
|
|
2848
2844
|
function(t) {
|
|
2849
|
-
return t.replace(
|
|
2845
|
+
return t.replace(Pr, "");
|
|
2850
2846
|
}
|
|
2851
2847
|
);
|
|
2852
|
-
function
|
|
2848
|
+
function un(e, t) {
|
|
2853
2849
|
return new RegExp(e, t);
|
|
2854
2850
|
}
|
|
2855
|
-
var
|
|
2856
|
-
if (
|
|
2857
|
-
var
|
|
2858
|
-
|
|
2859
|
-
var
|
|
2860
|
-
|
|
2861
|
-
var i =
|
|
2862
|
-
return (
|
|
2851
|
+
var ze;
|
|
2852
|
+
if (Ve) {
|
|
2853
|
+
var dt = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2854
|
+
ze = function(t, n) {
|
|
2855
|
+
var r;
|
|
2856
|
+
dt.lastIndex = n;
|
|
2857
|
+
var i = dt.exec(t);
|
|
2858
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2863
2859
|
};
|
|
2864
2860
|
} else
|
|
2865
|
-
|
|
2866
|
-
for (var
|
|
2867
|
-
var i =
|
|
2868
|
-
if (i === void 0 ||
|
|
2861
|
+
ze = function(t, n) {
|
|
2862
|
+
for (var r = []; ; ) {
|
|
2863
|
+
var i = an(t, n);
|
|
2864
|
+
if (i === void 0 || hn(i) || Xr(i))
|
|
2869
2865
|
break;
|
|
2870
|
-
|
|
2866
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2871
2867
|
}
|
|
2872
|
-
return
|
|
2868
|
+
return Xe.apply(void 0, r);
|
|
2873
2869
|
};
|
|
2874
|
-
var
|
|
2870
|
+
var jr = (
|
|
2875
2871
|
/** @class */
|
|
2876
2872
|
function() {
|
|
2877
|
-
function e(t,
|
|
2878
|
-
|
|
2873
|
+
function e(t, n) {
|
|
2874
|
+
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;
|
|
2879
2875
|
}
|
|
2880
2876
|
return e.prototype.parse = function() {
|
|
2881
2877
|
if (this.offset() !== 0)
|
|
2882
2878
|
throw Error("parser can only be used once");
|
|
2883
2879
|
return this.parseMessage(0, "", !1);
|
|
2884
|
-
}, e.prototype.parseMessage = function(t,
|
|
2880
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2885
2881
|
for (var i = []; !this.isEOF(); ) {
|
|
2886
2882
|
var s = this.char();
|
|
2887
2883
|
if (s === 123) {
|
|
2888
|
-
var a = this.parseArgument(t,
|
|
2884
|
+
var a = this.parseArgument(t, r);
|
|
2889
2885
|
if (a.err)
|
|
2890
2886
|
return a;
|
|
2891
2887
|
i.push(a.val);
|
|
2892
2888
|
} else {
|
|
2893
2889
|
if (s === 125 && t > 0)
|
|
2894
2890
|
break;
|
|
2895
|
-
if (s === 35 && (
|
|
2891
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2896
2892
|
var o = this.clonePosition();
|
|
2897
2893
|
this.bump(), i.push({
|
|
2898
|
-
type:
|
|
2894
|
+
type: x.pound,
|
|
2899
2895
|
location: b(o, this.clonePosition())
|
|
2900
2896
|
});
|
|
2901
2897
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2902
|
-
if (
|
|
2898
|
+
if (r)
|
|
2903
2899
|
break;
|
|
2904
2900
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2905
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2906
|
-
var a = this.parseTag(t,
|
|
2901
|
+
} else if (s === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
2902
|
+
var a = this.parseTag(t, n);
|
|
2907
2903
|
if (a.err)
|
|
2908
2904
|
return a;
|
|
2909
2905
|
i.push(a.val);
|
|
2910
2906
|
} else {
|
|
2911
|
-
var a = this.parseLiteral(t,
|
|
2907
|
+
var a = this.parseLiteral(t, n);
|
|
2912
2908
|
if (a.err)
|
|
2913
2909
|
return a;
|
|
2914
2910
|
i.push(a.val);
|
|
@@ -2916,54 +2912,54 @@ var kn = (
|
|
|
2916
2912
|
}
|
|
2917
2913
|
}
|
|
2918
2914
|
return { val: i, err: null };
|
|
2919
|
-
}, e.prototype.parseTag = function(t,
|
|
2920
|
-
var
|
|
2915
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2916
|
+
var r = this.clonePosition();
|
|
2921
2917
|
this.bump();
|
|
2922
2918
|
var i = this.parseTagName();
|
|
2923
2919
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2924
2920
|
return {
|
|
2925
2921
|
val: {
|
|
2926
|
-
type:
|
|
2922
|
+
type: x.literal,
|
|
2927
2923
|
value: "<".concat(i, "/>"),
|
|
2928
|
-
location: b(
|
|
2924
|
+
location: b(r, this.clonePosition())
|
|
2929
2925
|
},
|
|
2930
2926
|
err: null
|
|
2931
2927
|
};
|
|
2932
2928
|
if (this.bumpIf(">")) {
|
|
2933
|
-
var s = this.parseMessage(t + 1,
|
|
2929
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2934
2930
|
if (s.err)
|
|
2935
2931
|
return s;
|
|
2936
2932
|
var a = s.val, o = this.clonePosition();
|
|
2937
2933
|
if (this.bumpIf("</")) {
|
|
2938
|
-
if (this.isEOF() || !
|
|
2934
|
+
if (this.isEOF() || !We(this.char()))
|
|
2939
2935
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2940
2936
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2941
2937
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2942
2938
|
val: {
|
|
2943
|
-
type:
|
|
2939
|
+
type: x.tag,
|
|
2944
2940
|
value: i,
|
|
2945
2941
|
children: a,
|
|
2946
|
-
location: b(
|
|
2942
|
+
location: b(r, this.clonePosition())
|
|
2947
2943
|
},
|
|
2948
2944
|
err: null
|
|
2949
2945
|
} : this.error(g.INVALID_TAG, b(o, this.clonePosition())));
|
|
2950
2946
|
} else
|
|
2951
|
-
return this.error(g.UNCLOSED_TAG, b(
|
|
2947
|
+
return this.error(g.UNCLOSED_TAG, b(r, this.clonePosition()));
|
|
2952
2948
|
} else
|
|
2953
|
-
return this.error(g.INVALID_TAG, b(
|
|
2949
|
+
return this.error(g.INVALID_TAG, b(r, this.clonePosition()));
|
|
2954
2950
|
}, e.prototype.parseTagName = function() {
|
|
2955
2951
|
var t = this.offset();
|
|
2956
|
-
for (this.bump(); !this.isEOF() &&
|
|
2952
|
+
for (this.bump(); !this.isEOF() && Vr(this.char()); )
|
|
2957
2953
|
this.bump();
|
|
2958
2954
|
return this.message.slice(t, this.offset());
|
|
2959
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2960
|
-
for (var
|
|
2961
|
-
var s = this.tryParseQuote(
|
|
2955
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2956
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2957
|
+
var s = this.tryParseQuote(n);
|
|
2962
2958
|
if (s) {
|
|
2963
2959
|
i += s;
|
|
2964
2960
|
continue;
|
|
2965
2961
|
}
|
|
2966
|
-
var a = this.tryParseUnquoted(t,
|
|
2962
|
+
var a = this.tryParseUnquoted(t, n);
|
|
2967
2963
|
if (a) {
|
|
2968
2964
|
i += a;
|
|
2969
2965
|
continue;
|
|
@@ -2975,14 +2971,14 @@ var kn = (
|
|
|
2975
2971
|
}
|
|
2976
2972
|
break;
|
|
2977
2973
|
}
|
|
2978
|
-
var l = b(
|
|
2974
|
+
var l = b(r, this.clonePosition());
|
|
2979
2975
|
return {
|
|
2980
|
-
val: { type:
|
|
2976
|
+
val: { type: x.literal, value: i, location: l },
|
|
2981
2977
|
err: null
|
|
2982
2978
|
};
|
|
2983
2979
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2984
2980
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2985
|
-
!
|
|
2981
|
+
!kr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2986
2982
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2987
2983
|
if (this.isEOF() || this.char() !== 39)
|
|
2988
2984
|
return null;
|
|
@@ -3002,59 +2998,59 @@ var kn = (
|
|
|
3002
2998
|
return null;
|
|
3003
2999
|
}
|
|
3004
3000
|
this.bump();
|
|
3005
|
-
var
|
|
3001
|
+
var n = [this.char()];
|
|
3006
3002
|
for (this.bump(); !this.isEOF(); ) {
|
|
3007
|
-
var
|
|
3008
|
-
if (
|
|
3003
|
+
var r = this.char();
|
|
3004
|
+
if (r === 39)
|
|
3009
3005
|
if (this.peek() === 39)
|
|
3010
|
-
|
|
3006
|
+
n.push(39), this.bump();
|
|
3011
3007
|
else {
|
|
3012
3008
|
this.bump();
|
|
3013
3009
|
break;
|
|
3014
3010
|
}
|
|
3015
3011
|
else
|
|
3016
|
-
|
|
3012
|
+
n.push(r);
|
|
3017
3013
|
this.bump();
|
|
3018
3014
|
}
|
|
3019
|
-
return
|
|
3020
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3015
|
+
return Xe.apply(void 0, n);
|
|
3016
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3021
3017
|
if (this.isEOF())
|
|
3022
3018
|
return null;
|
|
3023
|
-
var
|
|
3024
|
-
return
|
|
3025
|
-
}, e.prototype.parseArgument = function(t,
|
|
3026
|
-
var
|
|
3019
|
+
var r = this.char();
|
|
3020
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xe(r));
|
|
3021
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3022
|
+
var r = this.clonePosition();
|
|
3027
3023
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3028
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3024
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3029
3025
|
if (this.char() === 125)
|
|
3030
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT, b(
|
|
3026
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, b(r, this.clonePosition()));
|
|
3031
3027
|
var i = this.parseIdentifierIfPossible().value;
|
|
3032
3028
|
if (!i)
|
|
3033
|
-
return this.error(g.MALFORMED_ARGUMENT, b(
|
|
3029
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3034
3030
|
if (this.bumpSpace(), this.isEOF())
|
|
3035
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3031
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3036
3032
|
switch (this.char()) {
|
|
3037
3033
|
case 125:
|
|
3038
3034
|
return this.bump(), {
|
|
3039
3035
|
val: {
|
|
3040
|
-
type:
|
|
3036
|
+
type: x.argument,
|
|
3041
3037
|
// value does not include the opening and closing braces.
|
|
3042
3038
|
value: i,
|
|
3043
|
-
location: b(
|
|
3039
|
+
location: b(r, this.clonePosition())
|
|
3044
3040
|
},
|
|
3045
3041
|
err: null
|
|
3046
3042
|
};
|
|
3047
3043
|
case 44:
|
|
3048
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3044
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3049
3045
|
default:
|
|
3050
|
-
return this.error(g.MALFORMED_ARGUMENT, b(
|
|
3046
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3051
3047
|
}
|
|
3052
3048
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3053
|
-
var t = this.clonePosition(),
|
|
3049
|
+
var t = this.clonePosition(), n = this.offset(), r = ze(this.message, n), i = n + r.length;
|
|
3054
3050
|
this.bumpTo(i);
|
|
3055
3051
|
var s = this.clonePosition(), a = b(t, s);
|
|
3056
|
-
return { value:
|
|
3057
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3052
|
+
return { value: r, location: a };
|
|
3053
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3058
3054
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3059
3055
|
switch (o) {
|
|
3060
3056
|
case "":
|
|
@@ -3069,46 +3065,46 @@ var kn = (
|
|
|
3069
3065
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3070
3066
|
if (f.err)
|
|
3071
3067
|
return f;
|
|
3072
|
-
var m =
|
|
3068
|
+
var m = Fr(f.val);
|
|
3073
3069
|
if (m.length === 0)
|
|
3074
3070
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3075
|
-
var
|
|
3076
|
-
u = { style: m, styleLocation:
|
|
3071
|
+
var d = b(h, this.clonePosition());
|
|
3072
|
+
u = { style: m, styleLocation: d };
|
|
3077
3073
|
}
|
|
3078
3074
|
var c = this.tryParseArgumentClose(i);
|
|
3079
3075
|
if (c.err)
|
|
3080
3076
|
return c;
|
|
3081
|
-
var
|
|
3077
|
+
var p = b(i, this.clonePosition());
|
|
3082
3078
|
if (u && ct(u?.style, "::", 0)) {
|
|
3083
|
-
var E =
|
|
3079
|
+
var E = Gr(u.style.slice(2));
|
|
3084
3080
|
if (o === "number") {
|
|
3085
3081
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3086
3082
|
return f.err ? f : {
|
|
3087
|
-
val: { type:
|
|
3083
|
+
val: { type: x.number, value: r, location: p, style: f.val },
|
|
3088
3084
|
err: null
|
|
3089
3085
|
};
|
|
3090
3086
|
} else {
|
|
3091
3087
|
if (E.length === 0)
|
|
3092
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON,
|
|
3088
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
|
|
3093
3089
|
var v = E;
|
|
3094
|
-
this.locale && (v =
|
|
3090
|
+
this.locale && (v = Sr(E, this.locale));
|
|
3095
3091
|
var m = {
|
|
3096
|
-
type:
|
|
3092
|
+
type: X.dateTime,
|
|
3097
3093
|
pattern: v,
|
|
3098
3094
|
location: u.styleLocation,
|
|
3099
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3100
|
-
}, T = o === "date" ?
|
|
3095
|
+
parsedOptions: this.shouldParseSkeletons ? xr(v) : {}
|
|
3096
|
+
}, T = o === "date" ? x.date : x.time;
|
|
3101
3097
|
return {
|
|
3102
|
-
val: { type: T, value:
|
|
3098
|
+
val: { type: T, value: r, location: p, style: m },
|
|
3103
3099
|
err: null
|
|
3104
3100
|
};
|
|
3105
3101
|
}
|
|
3106
3102
|
}
|
|
3107
3103
|
return {
|
|
3108
3104
|
val: {
|
|
3109
|
-
type: o === "number" ?
|
|
3110
|
-
value:
|
|
3111
|
-
location:
|
|
3105
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
3106
|
+
value: r,
|
|
3107
|
+
location: p,
|
|
3112
3108
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
3113
3109
|
},
|
|
3114
3110
|
err: null
|
|
@@ -3119,9 +3115,9 @@ var kn = (
|
|
|
3119
3115
|
case "select": {
|
|
3120
3116
|
var H = this.clonePosition();
|
|
3121
3117
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3122
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
3118
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
3123
3119
|
this.bumpSpace();
|
|
3124
|
-
var S = this.parseIdentifierIfPossible(),
|
|
3120
|
+
var S = this.parseIdentifierIfPossible(), O = 0;
|
|
3125
3121
|
if (o !== "select" && S.value === "offset") {
|
|
3126
3122
|
if (!this.bumpIf(":"))
|
|
3127
3123
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3129,31 +3125,31 @@ var kn = (
|
|
|
3129
3125
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3130
3126
|
if (f.err)
|
|
3131
3127
|
return f;
|
|
3132
|
-
this.bumpSpace(), S = this.parseIdentifierIfPossible(),
|
|
3128
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), O = f.val;
|
|
3133
3129
|
}
|
|
3134
|
-
var
|
|
3135
|
-
if (
|
|
3136
|
-
return
|
|
3130
|
+
var U = this.tryParsePluralOrSelectOptions(t, o, n, S);
|
|
3131
|
+
if (U.err)
|
|
3132
|
+
return U;
|
|
3137
3133
|
var c = this.tryParseArgumentClose(i);
|
|
3138
3134
|
if (c.err)
|
|
3139
3135
|
return c;
|
|
3140
|
-
var
|
|
3136
|
+
var ue = b(i, this.clonePosition());
|
|
3141
3137
|
return o === "select" ? {
|
|
3142
3138
|
val: {
|
|
3143
|
-
type:
|
|
3144
|
-
value:
|
|
3145
|
-
options: mt(
|
|
3146
|
-
location:
|
|
3139
|
+
type: x.select,
|
|
3140
|
+
value: r,
|
|
3141
|
+
options: mt(U.val),
|
|
3142
|
+
location: ue
|
|
3147
3143
|
},
|
|
3148
3144
|
err: null
|
|
3149
3145
|
} : {
|
|
3150
3146
|
val: {
|
|
3151
|
-
type:
|
|
3152
|
-
value:
|
|
3153
|
-
options: mt(
|
|
3154
|
-
offset:
|
|
3147
|
+
type: x.plural,
|
|
3148
|
+
value: r,
|
|
3149
|
+
options: mt(U.val),
|
|
3150
|
+
offset: O,
|
|
3155
3151
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3156
|
-
location:
|
|
3152
|
+
location: ue
|
|
3157
3153
|
},
|
|
3158
3154
|
err: null
|
|
3159
3155
|
};
|
|
@@ -3164,9 +3160,9 @@ var kn = (
|
|
|
3164
3160
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3165
3161
|
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3166
3162
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3167
|
-
for (var t = 0,
|
|
3168
|
-
var
|
|
3169
|
-
switch (
|
|
3163
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3164
|
+
var r = this.char();
|
|
3165
|
+
switch (r) {
|
|
3170
3166
|
case 39: {
|
|
3171
3167
|
this.bump();
|
|
3172
3168
|
var i = this.clonePosition();
|
|
@@ -3184,7 +3180,7 @@ var kn = (
|
|
|
3184
3180
|
t -= 1;
|
|
3185
3181
|
else
|
|
3186
3182
|
return {
|
|
3187
|
-
val: this.message.slice(
|
|
3183
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3188
3184
|
err: null
|
|
3189
3185
|
};
|
|
3190
3186
|
break;
|
|
@@ -3195,30 +3191,30 @@ var kn = (
|
|
|
3195
3191
|
}
|
|
3196
3192
|
}
|
|
3197
3193
|
return {
|
|
3198
|
-
val: this.message.slice(
|
|
3194
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3199
3195
|
err: null
|
|
3200
3196
|
};
|
|
3201
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3202
|
-
var
|
|
3197
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3198
|
+
var r = [];
|
|
3203
3199
|
try {
|
|
3204
|
-
|
|
3200
|
+
r = vr(t);
|
|
3205
3201
|
} catch {
|
|
3206
|
-
return this.error(g.INVALID_NUMBER_SKELETON,
|
|
3202
|
+
return this.error(g.INVALID_NUMBER_SKELETON, n);
|
|
3207
3203
|
}
|
|
3208
3204
|
return {
|
|
3209
3205
|
val: {
|
|
3210
|
-
type:
|
|
3211
|
-
tokens:
|
|
3212
|
-
location:
|
|
3213
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3206
|
+
type: X.number,
|
|
3207
|
+
tokens: r,
|
|
3208
|
+
location: n,
|
|
3209
|
+
parsedOptions: this.shouldParseSkeletons ? Tr(r) : {}
|
|
3214
3210
|
},
|
|
3215
3211
|
err: null
|
|
3216
3212
|
};
|
|
3217
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3213
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3218
3214
|
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3219
3215
|
if (u.length === 0) {
|
|
3220
3216
|
var f = this.clonePosition();
|
|
3221
|
-
if (
|
|
3217
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3222
3218
|
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3223
3219
|
if (m.err)
|
|
3224
3220
|
return m;
|
|
@@ -3227,29 +3223,29 @@ var kn = (
|
|
|
3227
3223
|
break;
|
|
3228
3224
|
}
|
|
3229
3225
|
if (l.has(u))
|
|
3230
|
-
return this.error(
|
|
3226
|
+
return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3231
3227
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3232
|
-
var
|
|
3228
|
+
var d = this.clonePosition();
|
|
3233
3229
|
if (!this.bumpIf("{"))
|
|
3234
|
-
return this.error(
|
|
3235
|
-
var c = this.parseMessage(t + 1,
|
|
3230
|
+
return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3231
|
+
var c = this.parseMessage(t + 1, n, r);
|
|
3236
3232
|
if (c.err)
|
|
3237
3233
|
return c;
|
|
3238
|
-
var
|
|
3239
|
-
if (
|
|
3240
|
-
return
|
|
3234
|
+
var p = this.tryParseArgumentClose(d);
|
|
3235
|
+
if (p.err)
|
|
3236
|
+
return p;
|
|
3241
3237
|
o.push([
|
|
3242
3238
|
u,
|
|
3243
3239
|
{
|
|
3244
3240
|
value: c.val,
|
|
3245
|
-
location: b(
|
|
3241
|
+
location: b(d, this.clonePosition())
|
|
3246
3242
|
}
|
|
3247
3243
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3248
3244
|
}
|
|
3249
|
-
return o.length === 0 ? this.error(
|
|
3250
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3251
|
-
var
|
|
3252
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3245
|
+
return o.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3246
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3247
|
+
var r = 1, i = this.clonePosition();
|
|
3248
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3253
3249
|
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3254
3250
|
var o = this.char();
|
|
3255
3251
|
if (o >= 48 && o <= 57)
|
|
@@ -3258,7 +3254,7 @@ var kn = (
|
|
|
3258
3254
|
break;
|
|
3259
3255
|
}
|
|
3260
3256
|
var l = b(i, this.clonePosition());
|
|
3261
|
-
return s ? (a *=
|
|
3257
|
+
return s ? (a *= r, Ur(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3262
3258
|
}, e.prototype.offset = function() {
|
|
3263
3259
|
return this.position.offset;
|
|
3264
3260
|
}, e.prototype.isEOF = function() {
|
|
@@ -3273,17 +3269,17 @@ var kn = (
|
|
|
3273
3269
|
var t = this.position.offset;
|
|
3274
3270
|
if (t >= this.message.length)
|
|
3275
3271
|
throw Error("out of bound");
|
|
3276
|
-
var
|
|
3277
|
-
if (
|
|
3272
|
+
var n = an(this.message, t);
|
|
3273
|
+
if (n === void 0)
|
|
3278
3274
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3279
|
-
return
|
|
3280
|
-
}, e.prototype.error = function(t,
|
|
3275
|
+
return n;
|
|
3276
|
+
}, e.prototype.error = function(t, n) {
|
|
3281
3277
|
return {
|
|
3282
3278
|
val: null,
|
|
3283
3279
|
err: {
|
|
3284
3280
|
kind: t,
|
|
3285
3281
|
message: this.message,
|
|
3286
|
-
location:
|
|
3282
|
+
location: n
|
|
3287
3283
|
}
|
|
3288
3284
|
};
|
|
3289
3285
|
}, e.prototype.bump = function() {
|
|
@@ -3293,127 +3289,127 @@ var kn = (
|
|
|
3293
3289
|
}
|
|
3294
3290
|
}, e.prototype.bumpIf = function(t) {
|
|
3295
3291
|
if (ct(this.message, t, this.offset())) {
|
|
3296
|
-
for (var
|
|
3292
|
+
for (var n = 0; n < t.length; n++)
|
|
3297
3293
|
this.bump();
|
|
3298
3294
|
return !0;
|
|
3299
3295
|
}
|
|
3300
3296
|
return !1;
|
|
3301
3297
|
}, e.prototype.bumpUntil = function(t) {
|
|
3302
|
-
var
|
|
3303
|
-
return
|
|
3298
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3299
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3304
3300
|
}, e.prototype.bumpTo = function(t) {
|
|
3305
3301
|
if (this.offset() > t)
|
|
3306
3302
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3307
3303
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3304
|
+
var n = this.offset();
|
|
3305
|
+
if (n === t)
|
|
3310
3306
|
break;
|
|
3311
|
-
if (
|
|
3307
|
+
if (n > t)
|
|
3312
3308
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3313
3309
|
if (this.bump(), this.isEOF())
|
|
3314
3310
|
break;
|
|
3315
3311
|
}
|
|
3316
3312
|
}, e.prototype.bumpSpace = function() {
|
|
3317
|
-
for (; !this.isEOF() &&
|
|
3313
|
+
for (; !this.isEOF() && hn(this.char()); )
|
|
3318
3314
|
this.bump();
|
|
3319
3315
|
}, e.prototype.peek = function() {
|
|
3320
3316
|
if (this.isEOF())
|
|
3321
3317
|
return null;
|
|
3322
|
-
var t = this.char(),
|
|
3323
|
-
return
|
|
3318
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3319
|
+
return r ?? null;
|
|
3324
3320
|
}, e;
|
|
3325
3321
|
}()
|
|
3326
3322
|
);
|
|
3327
|
-
function
|
|
3323
|
+
function We(e) {
|
|
3328
3324
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3329
3325
|
}
|
|
3330
|
-
function
|
|
3331
|
-
return
|
|
3326
|
+
function kr(e) {
|
|
3327
|
+
return We(e) || e === 47;
|
|
3332
3328
|
}
|
|
3333
|
-
function
|
|
3329
|
+
function Vr(e) {
|
|
3334
3330
|
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;
|
|
3335
3331
|
}
|
|
3336
|
-
function
|
|
3332
|
+
function hn(e) {
|
|
3337
3333
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3338
3334
|
}
|
|
3339
|
-
function
|
|
3335
|
+
function Xr(e) {
|
|
3340
3336
|
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;
|
|
3341
3337
|
}
|
|
3342
|
-
function
|
|
3338
|
+
function Ze(e) {
|
|
3343
3339
|
e.forEach(function(t) {
|
|
3344
3340
|
if (delete t.location, Yt(t) || Kt(t))
|
|
3345
|
-
for (var
|
|
3346
|
-
delete t.options[
|
|
3341
|
+
for (var n in t.options)
|
|
3342
|
+
delete t.options[n].location, Ze(t.options[n].value);
|
|
3347
3343
|
else
|
|
3348
|
-
Qt(t) &&
|
|
3344
|
+
Qt(t) && tn(t.style) || (qt(t) || Jt(t)) && ke(t.style) ? delete t.style.location : en(t) && Ze(t.children);
|
|
3349
3345
|
});
|
|
3350
3346
|
}
|
|
3351
|
-
function
|
|
3352
|
-
t === void 0 && (t = {}), t =
|
|
3353
|
-
var
|
|
3354
|
-
if (
|
|
3355
|
-
var
|
|
3356
|
-
throw
|
|
3347
|
+
function zr(e, t) {
|
|
3348
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3349
|
+
var n = new jr(e, t).parse();
|
|
3350
|
+
if (n.err) {
|
|
3351
|
+
var r = SyntaxError(g[n.err.kind]);
|
|
3352
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3357
3353
|
}
|
|
3358
|
-
return t?.captureLocation ||
|
|
3354
|
+
return t?.captureLocation || Ze(n.val), n.val;
|
|
3359
3355
|
}
|
|
3360
|
-
var
|
|
3356
|
+
var z;
|
|
3361
3357
|
(function(e) {
|
|
3362
3358
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3363
|
-
})(
|
|
3364
|
-
var
|
|
3359
|
+
})(z || (z = {}));
|
|
3360
|
+
var Be = (
|
|
3365
3361
|
/** @class */
|
|
3366
3362
|
function(e) {
|
|
3367
|
-
|
|
3368
|
-
function t(
|
|
3369
|
-
var s = e.call(this,
|
|
3370
|
-
return s.code =
|
|
3363
|
+
we(t, e);
|
|
3364
|
+
function t(n, r, i) {
|
|
3365
|
+
var s = e.call(this, n) || this;
|
|
3366
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3371
3367
|
}
|
|
3372
3368
|
return t.prototype.toString = function() {
|
|
3373
3369
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3374
3370
|
}, t;
|
|
3375
3371
|
}(Error)
|
|
3376
|
-
),
|
|
3372
|
+
), pt = (
|
|
3377
3373
|
/** @class */
|
|
3378
3374
|
function(e) {
|
|
3379
|
-
|
|
3380
|
-
function t(
|
|
3381
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3375
|
+
we(t, e);
|
|
3376
|
+
function t(n, r, i, s) {
|
|
3377
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, s) || this;
|
|
3382
3378
|
}
|
|
3383
3379
|
return t;
|
|
3384
|
-
}(
|
|
3385
|
-
),
|
|
3380
|
+
}(Be)
|
|
3381
|
+
), Wr = (
|
|
3386
3382
|
/** @class */
|
|
3387
3383
|
function(e) {
|
|
3388
|
-
|
|
3389
|
-
function t(
|
|
3390
|
-
return e.call(this, 'Value for "'.concat(
|
|
3384
|
+
we(t, e);
|
|
3385
|
+
function t(n, r, i) {
|
|
3386
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), z.INVALID_VALUE, i) || this;
|
|
3391
3387
|
}
|
|
3392
3388
|
return t;
|
|
3393
|
-
}(
|
|
3394
|
-
),
|
|
3389
|
+
}(Be)
|
|
3390
|
+
), Zr = (
|
|
3395
3391
|
/** @class */
|
|
3396
3392
|
function(e) {
|
|
3397
|
-
|
|
3398
|
-
function t(
|
|
3399
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3393
|
+
we(t, e);
|
|
3394
|
+
function t(n, r) {
|
|
3395
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), z.MISSING_VALUE, r) || this;
|
|
3400
3396
|
}
|
|
3401
3397
|
return t;
|
|
3402
|
-
}(
|
|
3398
|
+
}(Be)
|
|
3403
3399
|
), w;
|
|
3404
3400
|
(function(e) {
|
|
3405
3401
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3406
3402
|
})(w || (w = {}));
|
|
3407
|
-
function
|
|
3408
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3409
|
-
var
|
|
3410
|
-
return !
|
|
3403
|
+
function Qr(e) {
|
|
3404
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3405
|
+
var r = t[t.length - 1];
|
|
3406
|
+
return !r || r.type !== w.literal || n.type !== w.literal ? t.push(n) : r.value += n.value, t;
|
|
3411
3407
|
}, []);
|
|
3412
3408
|
}
|
|
3413
|
-
function
|
|
3409
|
+
function qr(e) {
|
|
3414
3410
|
return typeof e == "function";
|
|
3415
3411
|
}
|
|
3416
|
-
function de(e, t,
|
|
3412
|
+
function de(e, t, n, r, i, s, a) {
|
|
3417
3413
|
if (e.length === 1 && ut(e[0]))
|
|
3418
3414
|
return [
|
|
3419
3415
|
{
|
|
@@ -3430,18 +3426,18 @@ function de(e, t, r, n, i, s, a) {
|
|
|
3430
3426
|
});
|
|
3431
3427
|
continue;
|
|
3432
3428
|
}
|
|
3433
|
-
if (
|
|
3429
|
+
if (_r(h)) {
|
|
3434
3430
|
typeof s == "number" && o.push({
|
|
3435
3431
|
type: w.literal,
|
|
3436
|
-
value:
|
|
3432
|
+
value: n.getNumberFormat(t).format(s)
|
|
3437
3433
|
});
|
|
3438
3434
|
continue;
|
|
3439
3435
|
}
|
|
3440
3436
|
var f = h.value;
|
|
3441
3437
|
if (!(i && f in i))
|
|
3442
|
-
throw new
|
|
3438
|
+
throw new Zr(f, a);
|
|
3443
3439
|
var m = i[f];
|
|
3444
|
-
if (
|
|
3440
|
+
if (br(h)) {
|
|
3445
3441
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3446
3442
|
type: typeof m == "string" ? w.literal : w.object,
|
|
3447
3443
|
value: m
|
|
@@ -3449,129 +3445,129 @@ function de(e, t, r, n, i, s, a) {
|
|
|
3449
3445
|
continue;
|
|
3450
3446
|
}
|
|
3451
3447
|
if (qt(h)) {
|
|
3452
|
-
var
|
|
3448
|
+
var d = typeof h.style == "string" ? r.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3453
3449
|
o.push({
|
|
3454
3450
|
type: w.literal,
|
|
3455
|
-
value:
|
|
3451
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3456
3452
|
});
|
|
3457
3453
|
continue;
|
|
3458
3454
|
}
|
|
3459
3455
|
if (Jt(h)) {
|
|
3460
|
-
var
|
|
3456
|
+
var d = typeof h.style == "string" ? r.time[h.style] : ke(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3461
3457
|
o.push({
|
|
3462
3458
|
type: w.literal,
|
|
3463
|
-
value:
|
|
3459
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3464
3460
|
});
|
|
3465
3461
|
continue;
|
|
3466
3462
|
}
|
|
3467
3463
|
if (Qt(h)) {
|
|
3468
|
-
var
|
|
3469
|
-
|
|
3464
|
+
var d = typeof h.style == "string" ? r.number[h.style] : tn(h.style) ? h.style.parsedOptions : void 0;
|
|
3465
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3470
3466
|
type: w.literal,
|
|
3471
|
-
value:
|
|
3467
|
+
value: n.getNumberFormat(t, d).format(m)
|
|
3472
3468
|
});
|
|
3473
3469
|
continue;
|
|
3474
3470
|
}
|
|
3475
|
-
if (
|
|
3476
|
-
var c = h.children,
|
|
3477
|
-
if (!
|
|
3478
|
-
throw new
|
|
3479
|
-
var v = de(c, t,
|
|
3480
|
-
return
|
|
3471
|
+
if (en(h)) {
|
|
3472
|
+
var c = h.children, p = h.value, E = i[p];
|
|
3473
|
+
if (!qr(E))
|
|
3474
|
+
throw new Wr(p, "function", a);
|
|
3475
|
+
var v = de(c, t, n, r, i, s), T = E(v.map(function(O) {
|
|
3476
|
+
return O.value;
|
|
3481
3477
|
}));
|
|
3482
|
-
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(
|
|
3478
|
+
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(O) {
|
|
3483
3479
|
return {
|
|
3484
|
-
type: typeof
|
|
3485
|
-
value:
|
|
3480
|
+
type: typeof O == "string" ? w.literal : w.object,
|
|
3481
|
+
value: O
|
|
3486
3482
|
};
|
|
3487
3483
|
}));
|
|
3488
3484
|
}
|
|
3489
3485
|
if (Yt(h)) {
|
|
3490
3486
|
var H = h.options[m] || h.options.other;
|
|
3491
3487
|
if (!H)
|
|
3492
|
-
throw new
|
|
3493
|
-
o.push.apply(o, de(H.value, t,
|
|
3488
|
+
throw new pt(h.value, m, Object.keys(h.options), a);
|
|
3489
|
+
o.push.apply(o, de(H.value, t, n, r, i));
|
|
3494
3490
|
continue;
|
|
3495
3491
|
}
|
|
3496
3492
|
if (Kt(h)) {
|
|
3497
3493
|
var H = h.options["=".concat(m)];
|
|
3498
3494
|
if (!H) {
|
|
3499
3495
|
if (!Intl.PluralRules)
|
|
3500
|
-
throw new
|
|
3496
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3501
3497
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3502
|
-
`,
|
|
3503
|
-
var S =
|
|
3498
|
+
`, z.MISSING_INTL_API, a);
|
|
3499
|
+
var S = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3504
3500
|
H = h.options[S] || h.options.other;
|
|
3505
3501
|
}
|
|
3506
3502
|
if (!H)
|
|
3507
|
-
throw new
|
|
3508
|
-
o.push.apply(o, de(H.value, t,
|
|
3503
|
+
throw new pt(h.value, m, Object.keys(h.options), a);
|
|
3504
|
+
o.push.apply(o, de(H.value, t, n, r, i, m - (h.offset || 0)));
|
|
3509
3505
|
continue;
|
|
3510
3506
|
}
|
|
3511
3507
|
}
|
|
3512
|
-
return
|
|
3508
|
+
return Qr(o);
|
|
3513
3509
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return t ?
|
|
3516
|
-
return r
|
|
3510
|
+
function Jr(e, t) {
|
|
3511
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3512
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
3517
3513
|
}, {})) : e;
|
|
3518
3514
|
}
|
|
3519
|
-
function
|
|
3520
|
-
return t ? Object.keys(e).reduce(function(
|
|
3521
|
-
return r
|
|
3522
|
-
},
|
|
3515
|
+
function Yr(e, t) {
|
|
3516
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3517
|
+
return n[r] = Jr(e[r], t[r]), n;
|
|
3518
|
+
}, y({}, e)) : e;
|
|
3523
3519
|
}
|
|
3524
|
-
function
|
|
3520
|
+
function Re(e) {
|
|
3525
3521
|
return {
|
|
3526
3522
|
create: function() {
|
|
3527
3523
|
return {
|
|
3528
3524
|
get: function(t) {
|
|
3529
3525
|
return e[t];
|
|
3530
3526
|
},
|
|
3531
|
-
set: function(t,
|
|
3532
|
-
e[t] =
|
|
3527
|
+
set: function(t, n) {
|
|
3528
|
+
e[t] = n;
|
|
3533
3529
|
}
|
|
3534
3530
|
};
|
|
3535
3531
|
}
|
|
3536
3532
|
};
|
|
3537
3533
|
}
|
|
3538
|
-
function
|
|
3534
|
+
function Kr(e) {
|
|
3539
3535
|
return e === void 0 && (e = {
|
|
3540
3536
|
number: {},
|
|
3541
3537
|
dateTime: {},
|
|
3542
3538
|
pluralRules: {}
|
|
3543
3539
|
}), {
|
|
3544
|
-
getNumberFormat:
|
|
3545
|
-
for (var t,
|
|
3546
|
-
r
|
|
3547
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3540
|
+
getNumberFormat: Ie(function() {
|
|
3541
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3542
|
+
n[r] = arguments[r];
|
|
3543
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], n, !1)))();
|
|
3548
3544
|
}, {
|
|
3549
|
-
cache:
|
|
3550
|
-
strategy:
|
|
3545
|
+
cache: Re(e.number),
|
|
3546
|
+
strategy: Me.variadic
|
|
3551
3547
|
}),
|
|
3552
|
-
getDateTimeFormat:
|
|
3553
|
-
for (var t,
|
|
3554
|
-
r
|
|
3555
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3548
|
+
getDateTimeFormat: Ie(function() {
|
|
3549
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3550
|
+
n[r] = arguments[r];
|
|
3551
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], n, !1)))();
|
|
3556
3552
|
}, {
|
|
3557
|
-
cache:
|
|
3558
|
-
strategy:
|
|
3553
|
+
cache: Re(e.dateTime),
|
|
3554
|
+
strategy: Me.variadic
|
|
3559
3555
|
}),
|
|
3560
|
-
getPluralRules:
|
|
3561
|
-
for (var t,
|
|
3562
|
-
r
|
|
3563
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3556
|
+
getPluralRules: Ie(function() {
|
|
3557
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3558
|
+
n[r] = arguments[r];
|
|
3559
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], n, !1)))();
|
|
3564
3560
|
}, {
|
|
3565
|
-
cache:
|
|
3566
|
-
strategy:
|
|
3561
|
+
cache: Re(e.pluralRules),
|
|
3562
|
+
strategy: Me.variadic
|
|
3567
3563
|
})
|
|
3568
3564
|
};
|
|
3569
3565
|
}
|
|
3570
|
-
var
|
|
3566
|
+
var ln = (
|
|
3571
3567
|
/** @class */
|
|
3572
3568
|
function() {
|
|
3573
|
-
function e(t,
|
|
3574
|
-
|
|
3569
|
+
function e(t, n, r, i) {
|
|
3570
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3575
3571
|
var s = this;
|
|
3576
3572
|
if (this.formatterCache = {
|
|
3577
3573
|
number: {},
|
|
@@ -3594,18 +3590,18 @@ var hr = (
|
|
|
3594
3590
|
};
|
|
3595
3591
|
}, this.getAst = function() {
|
|
3596
3592
|
return s.ast;
|
|
3597
|
-
}, this.locales =
|
|
3593
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3598
3594
|
if (this.message = t, !e.__parse)
|
|
3599
3595
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3600
3596
|
var a = i || {};
|
|
3601
3597
|
a.formatters;
|
|
3602
|
-
var o =
|
|
3603
|
-
this.ast = e.__parse(t,
|
|
3598
|
+
var o = lr(a, ["formatters"]);
|
|
3599
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3604
3600
|
} else
|
|
3605
3601
|
this.ast = t;
|
|
3606
3602
|
if (!Array.isArray(this.ast))
|
|
3607
3603
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3608
|
-
this.formats =
|
|
3604
|
+
this.formats = Yr(e.formats, r), this.formatters = i && i.formatters || Kr(this.formatterCache);
|
|
3609
3605
|
}
|
|
3610
3606
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3611
3607
|
get: function() {
|
|
@@ -3615,10 +3611,10 @@ var hr = (
|
|
|
3615
3611
|
configurable: !0
|
|
3616
3612
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3617
3613
|
if (!(typeof Intl.Locale > "u")) {
|
|
3618
|
-
var
|
|
3619
|
-
return
|
|
3614
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3615
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3620
3616
|
}
|
|
3621
|
-
}, e.__parse =
|
|
3617
|
+
}, e.__parse = zr, e.formats = {
|
|
3622
3618
|
number: {
|
|
3623
3619
|
integer: {
|
|
3624
3620
|
maximumFractionDigits: 0
|
|
@@ -3679,122 +3675,122 @@ var hr = (
|
|
|
3679
3675
|
}, e;
|
|
3680
3676
|
}()
|
|
3681
3677
|
);
|
|
3682
|
-
function
|
|
3678
|
+
function ei(e, t) {
|
|
3683
3679
|
if (t == null)
|
|
3684
3680
|
return;
|
|
3685
3681
|
if (t in e)
|
|
3686
3682
|
return e[t];
|
|
3687
|
-
const
|
|
3688
|
-
let
|
|
3689
|
-
for (let i = 0; i <
|
|
3690
|
-
if (typeof
|
|
3683
|
+
const n = t.split(".");
|
|
3684
|
+
let r = e;
|
|
3685
|
+
for (let i = 0; i < n.length; i++)
|
|
3686
|
+
if (typeof r == "object") {
|
|
3691
3687
|
if (i > 0) {
|
|
3692
|
-
const s =
|
|
3693
|
-
if (s in
|
|
3694
|
-
|
|
3688
|
+
const s = n.slice(i, n.length).join(".");
|
|
3689
|
+
if (s in r) {
|
|
3690
|
+
r = r[s];
|
|
3695
3691
|
break;
|
|
3696
3692
|
}
|
|
3697
3693
|
}
|
|
3698
|
-
|
|
3694
|
+
r = r[n[i]];
|
|
3699
3695
|
} else
|
|
3700
|
-
|
|
3701
|
-
return
|
|
3696
|
+
r = void 0;
|
|
3697
|
+
return r;
|
|
3702
3698
|
}
|
|
3703
|
-
const
|
|
3699
|
+
const L = {}, ti = (e, t, n) => n && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = n), n), fn = (e, t) => {
|
|
3704
3700
|
if (t == null)
|
|
3705
3701
|
return;
|
|
3706
|
-
if (t in
|
|
3707
|
-
return
|
|
3708
|
-
const
|
|
3709
|
-
for (let
|
|
3710
|
-
const i = r
|
|
3702
|
+
if (t in L && e in L[t])
|
|
3703
|
+
return L[t][e];
|
|
3704
|
+
const n = ae(t);
|
|
3705
|
+
for (let r = 0; r < n.length; r++) {
|
|
3706
|
+
const i = n[r], s = ri(i, e);
|
|
3711
3707
|
if (s)
|
|
3712
|
-
return
|
|
3708
|
+
return ti(e, t, s);
|
|
3713
3709
|
}
|
|
3714
3710
|
};
|
|
3715
3711
|
let tt;
|
|
3716
|
-
const
|
|
3712
|
+
const oe = He({});
|
|
3717
3713
|
function ni(e) {
|
|
3718
3714
|
return tt[e] || null;
|
|
3719
3715
|
}
|
|
3720
|
-
function
|
|
3716
|
+
function cn(e) {
|
|
3721
3717
|
return e in tt;
|
|
3722
3718
|
}
|
|
3723
|
-
function
|
|
3724
|
-
if (!
|
|
3719
|
+
function ri(e, t) {
|
|
3720
|
+
if (!cn(e))
|
|
3725
3721
|
return null;
|
|
3726
|
-
const
|
|
3727
|
-
return
|
|
3722
|
+
const n = ni(e);
|
|
3723
|
+
return ei(n, t);
|
|
3728
3724
|
}
|
|
3729
|
-
function
|
|
3725
|
+
function ii(e) {
|
|
3730
3726
|
if (e == null)
|
|
3731
3727
|
return;
|
|
3732
|
-
const t =
|
|
3733
|
-
for (let
|
|
3734
|
-
const
|
|
3735
|
-
if (
|
|
3736
|
-
return
|
|
3728
|
+
const t = ae(e);
|
|
3729
|
+
for (let n = 0; n < t.length; n++) {
|
|
3730
|
+
const r = t[n];
|
|
3731
|
+
if (cn(r))
|
|
3732
|
+
return r;
|
|
3737
3733
|
}
|
|
3738
3734
|
}
|
|
3739
|
-
function
|
|
3740
|
-
delete
|
|
3735
|
+
function mn(e, ...t) {
|
|
3736
|
+
delete L[e], oe.update((n) => (n[e] = hr.all([n[e] || {}, ...t]), n));
|
|
3741
3737
|
}
|
|
3742
|
-
|
|
3743
|
-
[
|
|
3738
|
+
Q(
|
|
3739
|
+
[oe],
|
|
3744
3740
|
([e]) => Object.keys(e)
|
|
3745
3741
|
);
|
|
3746
|
-
|
|
3747
|
-
const
|
|
3748
|
-
function
|
|
3749
|
-
|
|
3750
|
-
}
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3753
|
-
}
|
|
3754
|
-
function
|
|
3755
|
-
return
|
|
3756
|
-
const
|
|
3757
|
-
return [t,
|
|
3742
|
+
oe.subscribe((e) => tt = e);
|
|
3743
|
+
const pe = {};
|
|
3744
|
+
function si(e, t) {
|
|
3745
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3746
|
+
}
|
|
3747
|
+
function dn(e) {
|
|
3748
|
+
return pe[e];
|
|
3749
|
+
}
|
|
3750
|
+
function oi(e) {
|
|
3751
|
+
return ae(e).map((t) => {
|
|
3752
|
+
const n = dn(t);
|
|
3753
|
+
return [t, n ? [...n] : []];
|
|
3758
3754
|
}).filter(([, t]) => t.length > 0);
|
|
3759
3755
|
}
|
|
3760
|
-
function
|
|
3761
|
-
return e == null ? !1 :
|
|
3756
|
+
function xe(e) {
|
|
3757
|
+
return e == null ? !1 : ae(e).some(
|
|
3762
3758
|
(t) => {
|
|
3763
|
-
var
|
|
3764
|
-
return (
|
|
3759
|
+
var n;
|
|
3760
|
+
return (n = dn(t)) == null ? void 0 : n.size;
|
|
3765
3761
|
}
|
|
3766
3762
|
);
|
|
3767
3763
|
}
|
|
3768
|
-
function
|
|
3764
|
+
function ai(e, t) {
|
|
3769
3765
|
return Promise.all(
|
|
3770
|
-
t.map((
|
|
3771
|
-
).then((
|
|
3772
|
-
}
|
|
3773
|
-
const
|
|
3774
|
-
function
|
|
3775
|
-
if (!
|
|
3776
|
-
return e in
|
|
3777
|
-
const t =
|
|
3778
|
-
return
|
|
3766
|
+
t.map((r) => (si(e, r), r().then((i) => i.default || i)))
|
|
3767
|
+
).then((r) => mn(e, ...r));
|
|
3768
|
+
}
|
|
3769
|
+
const Y = {};
|
|
3770
|
+
function pn(e) {
|
|
3771
|
+
if (!xe(e))
|
|
3772
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3773
|
+
const t = oi(e);
|
|
3774
|
+
return Y[e] = Promise.all(
|
|
3779
3775
|
t.map(
|
|
3780
|
-
([
|
|
3776
|
+
([n, r]) => ai(n, r)
|
|
3781
3777
|
)
|
|
3782
3778
|
).then(() => {
|
|
3783
|
-
if (
|
|
3784
|
-
return
|
|
3785
|
-
delete
|
|
3786
|
-
}),
|
|
3779
|
+
if (xe(e))
|
|
3780
|
+
return pn(e);
|
|
3781
|
+
delete Y[e];
|
|
3782
|
+
}), Y[e];
|
|
3787
3783
|
}
|
|
3788
|
-
var gt = Object.getOwnPropertySymbols,
|
|
3789
|
-
var
|
|
3790
|
-
for (var
|
|
3791
|
-
|
|
3784
|
+
var gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, li = (e, t) => {
|
|
3785
|
+
var n = {};
|
|
3786
|
+
for (var r in e)
|
|
3787
|
+
ui.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3792
3788
|
if (e != null && gt)
|
|
3793
|
-
for (var
|
|
3794
|
-
t.indexOf(
|
|
3795
|
-
return
|
|
3789
|
+
for (var r of gt(e))
|
|
3790
|
+
t.indexOf(r) < 0 && hi.call(e, r) && (n[r] = e[r]);
|
|
3791
|
+
return n;
|
|
3796
3792
|
};
|
|
3797
|
-
const
|
|
3793
|
+
const fi = {
|
|
3798
3794
|
number: {
|
|
3799
3795
|
scientific: { notation: "scientific" },
|
|
3800
3796
|
engineering: { notation: "engineering" },
|
|
@@ -3824,174 +3820,174 @@ const ci = {
|
|
|
3824
3820
|
}
|
|
3825
3821
|
}
|
|
3826
3822
|
};
|
|
3827
|
-
function
|
|
3823
|
+
function ci({ locale: e, id: t }) {
|
|
3828
3824
|
console.warn(
|
|
3829
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3825
|
+
`[svelte-i18n] The message "${t}" was not found in "${ae(
|
|
3830
3826
|
e
|
|
3831
|
-
).join('", "')}".${
|
|
3827
|
+
).join('", "')}".${xe(N()) ? `
|
|
3832
3828
|
|
|
3833
3829
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3834
3830
|
);
|
|
3835
3831
|
}
|
|
3836
|
-
const
|
|
3832
|
+
const mi = {
|
|
3837
3833
|
fallbackLocale: null,
|
|
3838
3834
|
loadingDelay: 200,
|
|
3839
|
-
formats:
|
|
3835
|
+
formats: fi,
|
|
3840
3836
|
warnOnMissingMessages: !0,
|
|
3841
3837
|
handleMissingMessage: void 0,
|
|
3842
3838
|
ignoreTag: !0
|
|
3843
|
-
},
|
|
3844
|
-
function
|
|
3845
|
-
return
|
|
3839
|
+
}, K = mi;
|
|
3840
|
+
function W() {
|
|
3841
|
+
return K;
|
|
3846
3842
|
}
|
|
3847
3843
|
function di(e) {
|
|
3848
|
-
const t = e, { formats:
|
|
3844
|
+
const t = e, { formats: n } = t, r = li(t, ["formats"]);
|
|
3849
3845
|
let i = e.fallbackLocale;
|
|
3850
3846
|
if (e.initialLocale)
|
|
3851
3847
|
try {
|
|
3852
|
-
|
|
3848
|
+
ln.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3853
3849
|
} catch {
|
|
3854
3850
|
console.warn(
|
|
3855
3851
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3856
3852
|
);
|
|
3857
3853
|
}
|
|
3858
|
-
return
|
|
3854
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ci : console.warn(
|
|
3859
3855
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3860
|
-
)), Object.assign(
|
|
3856
|
+
)), Object.assign(K, r, { initialLocale: i }), n && ("number" in n && Object.assign(K.formats.number, n.number), "date" in n && Object.assign(K.formats.date, n.date), "time" in n && Object.assign(K.formats.time, n.time)), R.set(i);
|
|
3861
3857
|
}
|
|
3862
|
-
const
|
|
3863
|
-
var
|
|
3864
|
-
for (var
|
|
3865
|
-
|
|
3858
|
+
const Ue = He(!1);
|
|
3859
|
+
var pi = Object.defineProperty, gi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, _t = (e, t, n) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xi = (e, t) => {
|
|
3860
|
+
for (var n in t || (t = {}))
|
|
3861
|
+
_i.call(t, n) && _t(e, n, t[n]);
|
|
3866
3862
|
if (bt)
|
|
3867
|
-
for (var
|
|
3868
|
-
|
|
3863
|
+
for (var n of bt(t))
|
|
3864
|
+
yi.call(t, n) && _t(e, n, t[n]);
|
|
3869
3865
|
return e;
|
|
3870
|
-
},
|
|
3871
|
-
let
|
|
3872
|
-
const
|
|
3866
|
+
}, Ei = (e, t) => gi(e, bi(t));
|
|
3867
|
+
let Qe;
|
|
3868
|
+
const Ee = He(null);
|
|
3873
3869
|
function yt(e) {
|
|
3874
|
-
return e.split("-").map((t,
|
|
3870
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3875
3871
|
}
|
|
3876
|
-
function
|
|
3877
|
-
const
|
|
3878
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3872
|
+
function ae(e, t = W().fallbackLocale) {
|
|
3873
|
+
const n = yt(e);
|
|
3874
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...yt(t)])] : n;
|
|
3879
3875
|
}
|
|
3880
|
-
function
|
|
3881
|
-
return
|
|
3876
|
+
function N() {
|
|
3877
|
+
return Qe ?? void 0;
|
|
3882
3878
|
}
|
|
3883
|
-
|
|
3884
|
-
|
|
3879
|
+
Ee.subscribe((e) => {
|
|
3880
|
+
Qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3885
3881
|
});
|
|
3886
|
-
const
|
|
3887
|
-
if (e &&
|
|
3888
|
-
const { loadingDelay: t } =
|
|
3889
|
-
let
|
|
3890
|
-
return typeof window < "u" &&
|
|
3891
|
-
() =>
|
|
3882
|
+
const vi = (e) => {
|
|
3883
|
+
if (e && ii(e) && xe(e)) {
|
|
3884
|
+
const { loadingDelay: t } = W();
|
|
3885
|
+
let n;
|
|
3886
|
+
return typeof window < "u" && N() != null && t ? n = window.setTimeout(
|
|
3887
|
+
() => Ue.set(!0),
|
|
3892
3888
|
t
|
|
3893
|
-
) :
|
|
3894
|
-
|
|
3889
|
+
) : Ue.set(!0), pn(e).then(() => {
|
|
3890
|
+
Ee.set(e);
|
|
3895
3891
|
}).finally(() => {
|
|
3896
|
-
clearTimeout(
|
|
3892
|
+
clearTimeout(n), Ue.set(!1);
|
|
3897
3893
|
});
|
|
3898
3894
|
}
|
|
3899
|
-
return
|
|
3900
|
-
},
|
|
3901
|
-
set:
|
|
3902
|
-
}),
|
|
3895
|
+
return Ee.set(e);
|
|
3896
|
+
}, R = Ei(xi({}, Ee), {
|
|
3897
|
+
set: vi
|
|
3898
|
+
}), Te = (e) => {
|
|
3903
3899
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3904
|
-
return (
|
|
3905
|
-
const i = JSON.stringify(
|
|
3906
|
-
return i in t ? t[i] : t[i] = e(
|
|
3900
|
+
return (r) => {
|
|
3901
|
+
const i = JSON.stringify(r);
|
|
3902
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3907
3903
|
};
|
|
3908
3904
|
};
|
|
3909
|
-
var
|
|
3910
|
-
for (var
|
|
3911
|
-
|
|
3912
|
-
if (
|
|
3913
|
-
for (var
|
|
3914
|
-
|
|
3905
|
+
var Hi = Object.defineProperty, ve = Object.getOwnPropertySymbols, gn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable, xt = (e, t, n) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
|
|
3906
|
+
for (var n in t || (t = {}))
|
|
3907
|
+
gn.call(t, n) && xt(e, n, t[n]);
|
|
3908
|
+
if (ve)
|
|
3909
|
+
for (var n of ve(t))
|
|
3910
|
+
bn.call(t, n) && xt(e, n, t[n]);
|
|
3915
3911
|
return e;
|
|
3916
|
-
},
|
|
3917
|
-
var
|
|
3918
|
-
for (var
|
|
3919
|
-
|
|
3920
|
-
if (e != null &&
|
|
3921
|
-
for (var
|
|
3922
|
-
t.indexOf(
|
|
3923
|
-
return
|
|
3912
|
+
}, q = (e, t) => {
|
|
3913
|
+
var n = {};
|
|
3914
|
+
for (var r in e)
|
|
3915
|
+
gn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3916
|
+
if (e != null && ve)
|
|
3917
|
+
for (var r of ve(e))
|
|
3918
|
+
t.indexOf(r) < 0 && bn.call(e, r) && (n[r] = e[r]);
|
|
3919
|
+
return n;
|
|
3924
3920
|
};
|
|
3925
|
-
const
|
|
3926
|
-
const { formats:
|
|
3927
|
-
if (e in
|
|
3928
|
-
return
|
|
3921
|
+
const ie = (e, t) => {
|
|
3922
|
+
const { formats: n } = W();
|
|
3923
|
+
if (e in n && t in n[e])
|
|
3924
|
+
return n[e][t];
|
|
3929
3925
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3930
|
-
},
|
|
3926
|
+
}, wi = Te(
|
|
3931
3927
|
(e) => {
|
|
3932
|
-
var t = e, { locale:
|
|
3933
|
-
if (
|
|
3928
|
+
var t = e, { locale: n, format: r } = t, i = q(t, ["locale", "format"]);
|
|
3929
|
+
if (n == null)
|
|
3934
3930
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3935
|
-
return
|
|
3931
|
+
return r && (i = ie("number", r)), new Intl.NumberFormat(n, i);
|
|
3936
3932
|
}
|
|
3937
|
-
),
|
|
3933
|
+
), Bi = Te(
|
|
3938
3934
|
(e) => {
|
|
3939
|
-
var t = e, { locale:
|
|
3940
|
-
if (
|
|
3935
|
+
var t = e, { locale: n, format: r } = t, i = q(t, ["locale", "format"]);
|
|
3936
|
+
if (n == null)
|
|
3941
3937
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3942
|
-
return
|
|
3938
|
+
return r ? i = ie("date", r) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3943
3939
|
}
|
|
3944
|
-
),
|
|
3940
|
+
), Ti = Te(
|
|
3945
3941
|
(e) => {
|
|
3946
|
-
var t = e, { locale:
|
|
3947
|
-
if (
|
|
3942
|
+
var t = e, { locale: n, format: r } = t, i = q(t, ["locale", "format"]);
|
|
3943
|
+
if (n == null)
|
|
3948
3944
|
throw new Error(
|
|
3949
3945
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3950
3946
|
);
|
|
3951
|
-
return
|
|
3947
|
+
return r ? i = ie("time", r) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3952
3948
|
}
|
|
3953
|
-
),
|
|
3949
|
+
), Si = (e = {}) => {
|
|
3954
3950
|
var t = e, {
|
|
3955
|
-
locale:
|
|
3956
|
-
} = t,
|
|
3951
|
+
locale: n = N()
|
|
3952
|
+
} = t, r = q(t, [
|
|
3957
3953
|
"locale"
|
|
3958
3954
|
]);
|
|
3959
|
-
return
|
|
3960
|
-
},
|
|
3955
|
+
return wi(nt({ locale: n }, r));
|
|
3956
|
+
}, Ai = (e = {}) => {
|
|
3961
3957
|
var t = e, {
|
|
3962
|
-
locale:
|
|
3963
|
-
} = t,
|
|
3958
|
+
locale: n = N()
|
|
3959
|
+
} = t, r = q(t, [
|
|
3964
3960
|
"locale"
|
|
3965
3961
|
]);
|
|
3966
|
-
return
|
|
3967
|
-
},
|
|
3962
|
+
return Bi(nt({ locale: n }, r));
|
|
3963
|
+
}, Oi = (e = {}) => {
|
|
3968
3964
|
var t = e, {
|
|
3969
|
-
locale:
|
|
3970
|
-
} = t,
|
|
3965
|
+
locale: n = N()
|
|
3966
|
+
} = t, r = q(t, [
|
|
3971
3967
|
"locale"
|
|
3972
3968
|
]);
|
|
3973
|
-
return
|
|
3974
|
-
},
|
|
3969
|
+
return Ti(nt({ locale: n }, r));
|
|
3970
|
+
}, Pi = Te(
|
|
3975
3971
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3976
|
-
(e, t =
|
|
3977
|
-
ignoreTag:
|
|
3972
|
+
(e, t = N()) => new ln(e, t, W().formats, {
|
|
3973
|
+
ignoreTag: W().ignoreTag
|
|
3978
3974
|
})
|
|
3979
|
-
),
|
|
3980
|
-
var
|
|
3975
|
+
), Ci = (e, t = {}) => {
|
|
3976
|
+
var n, r, i, s;
|
|
3981
3977
|
let a = t;
|
|
3982
3978
|
typeof e == "object" && (a = e, e = a.id);
|
|
3983
3979
|
const {
|
|
3984
3980
|
values: o,
|
|
3985
|
-
locale: l =
|
|
3981
|
+
locale: l = N(),
|
|
3986
3982
|
default: u
|
|
3987
3983
|
} = a;
|
|
3988
3984
|
if (l == null)
|
|
3989
3985
|
throw new Error(
|
|
3990
3986
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3991
3987
|
);
|
|
3992
|
-
let h =
|
|
3988
|
+
let h = fn(e, l);
|
|
3993
3989
|
if (!h)
|
|
3994
|
-
h = (s = (i = (
|
|
3990
|
+
h = (s = (i = (r = (n = W()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3995
3991
|
else if (typeof h != "string")
|
|
3996
3992
|
return console.warn(
|
|
3997
3993
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4000,7 +3996,7 @@ const se = (e, t) => {
|
|
|
4000
3996
|
return h;
|
|
4001
3997
|
let f = h;
|
|
4002
3998
|
try {
|
|
4003
|
-
f =
|
|
3999
|
+
f = Pi(h, l).format(o);
|
|
4004
4000
|
} catch (m) {
|
|
4005
4001
|
m instanceof Error && console.warn(
|
|
4006
4002
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4008,18 +4004,18 @@ const se = (e, t) => {
|
|
|
4008
4004
|
);
|
|
4009
4005
|
}
|
|
4010
4006
|
return f;
|
|
4011
|
-
},
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
function
|
|
4017
|
-
|
|
4018
|
-
}
|
|
4019
|
-
function
|
|
4007
|
+
}, Li = (e, t) => Oi(t).format(e), Ni = (e, t) => Ai(t).format(e), Ii = (e, t) => Si(t).format(e), Mi = (e, t = N()) => fn(e, t), $i = Q([R, oe], () => Ci);
|
|
4008
|
+
Q([R], () => Li);
|
|
4009
|
+
Q([R], () => Ni);
|
|
4010
|
+
Q([R], () => Ii);
|
|
4011
|
+
Q([R, oe], () => Mi);
|
|
4012
|
+
function Et(e, t) {
|
|
4013
|
+
mn(e, t);
|
|
4014
|
+
}
|
|
4015
|
+
function Ri(e) {
|
|
4020
4016
|
di({
|
|
4021
4017
|
fallbackLocale: "en"
|
|
4022
|
-
}),
|
|
4018
|
+
}), R.set(e);
|
|
4023
4019
|
}
|
|
4024
4020
|
const vt = {
|
|
4025
4021
|
en: {
|
|
@@ -4044,284 +4040,284 @@ const vt = {
|
|
|
4044
4040
|
}
|
|
4045
4041
|
}
|
|
4046
4042
|
};
|
|
4047
|
-
function
|
|
4048
|
-
|
|
4043
|
+
function Ui(e) {
|
|
4044
|
+
wn(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
4049
4045
|
}
|
|
4050
|
-
const
|
|
4046
|
+
const Di = (e) => ({}), Ht = (e) => ({}), Gi = (e) => ({}), wt = (e) => ({}), Fi = (e) => ({}), Bt = (e) => ({});
|
|
4051
4047
|
function Tt(e) {
|
|
4052
|
-
let t,
|
|
4048
|
+
let t, n, r;
|
|
4053
4049
|
return {
|
|
4054
4050
|
c() {
|
|
4055
|
-
t =
|
|
4051
|
+
t = $("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderLeftButton");
|
|
4056
4052
|
},
|
|
4057
4053
|
m(i, s) {
|
|
4058
|
-
|
|
4054
|
+
M(i, t, s), n || (r = Dt(
|
|
4059
4055
|
t,
|
|
4060
4056
|
"click",
|
|
4061
4057
|
/*back*/
|
|
4062
4058
|
e[6]
|
|
4063
|
-
),
|
|
4059
|
+
), n = !0);
|
|
4064
4060
|
},
|
|
4065
4061
|
p: B,
|
|
4066
4062
|
d(i) {
|
|
4067
|
-
i &&
|
|
4063
|
+
i && P(t), n = !1, r();
|
|
4068
4064
|
}
|
|
4069
4065
|
};
|
|
4070
4066
|
}
|
|
4071
|
-
function
|
|
4072
|
-
let t,
|
|
4067
|
+
function ji(e) {
|
|
4068
|
+
let t, n = (
|
|
4073
4069
|
/*backButton*/
|
|
4074
4070
|
e[1] && Tt(e)
|
|
4075
4071
|
);
|
|
4076
4072
|
return {
|
|
4077
4073
|
c() {
|
|
4078
|
-
|
|
4074
|
+
n && n.c(), t = Ut();
|
|
4079
4075
|
},
|
|
4080
|
-
m(
|
|
4081
|
-
|
|
4076
|
+
m(r, i) {
|
|
4077
|
+
n && n.m(r, i), M(r, t, i);
|
|
4082
4078
|
},
|
|
4083
|
-
p(
|
|
4079
|
+
p(r, i) {
|
|
4084
4080
|
/*backButton*/
|
|
4085
|
-
|
|
4081
|
+
r[1] ? n ? n.p(r, i) : (n = Tt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4086
4082
|
},
|
|
4087
|
-
d(
|
|
4088
|
-
|
|
4083
|
+
d(r) {
|
|
4084
|
+
r && P(t), n && n.d(r);
|
|
4089
4085
|
}
|
|
4090
4086
|
};
|
|
4091
4087
|
}
|
|
4092
|
-
function
|
|
4093
|
-
let t,
|
|
4088
|
+
function ki(e) {
|
|
4089
|
+
let t, n = (
|
|
4094
4090
|
/*$_*/
|
|
4095
4091
|
e[4](
|
|
4096
4092
|
/*titleText*/
|
|
4097
4093
|
e[2]
|
|
4098
4094
|
) + ""
|
|
4099
|
-
),
|
|
4095
|
+
), r;
|
|
4100
4096
|
return {
|
|
4101
4097
|
c() {
|
|
4102
|
-
t =
|
|
4098
|
+
t = $("span"), r = Ye(n), Z(t, "class", "CashierHeaderTitle");
|
|
4103
4099
|
},
|
|
4104
4100
|
m(i, s) {
|
|
4105
|
-
|
|
4101
|
+
M(i, t, s), ge(t, r);
|
|
4106
4102
|
},
|
|
4107
4103
|
p(i, s) {
|
|
4108
4104
|
s & /*$_, titleText*/
|
|
4109
|
-
20 &&
|
|
4105
|
+
20 && n !== (n = /*$_*/
|
|
4110
4106
|
i[4](
|
|
4111
4107
|
/*titleText*/
|
|
4112
4108
|
i[2]
|
|
4113
|
-
) + "") &&
|
|
4109
|
+
) + "") && Sn(r, n);
|
|
4114
4110
|
},
|
|
4115
4111
|
d(i) {
|
|
4116
|
-
i &&
|
|
4112
|
+
i && P(t);
|
|
4117
4113
|
}
|
|
4118
4114
|
};
|
|
4119
4115
|
}
|
|
4120
4116
|
function St(e) {
|
|
4121
|
-
let t,
|
|
4117
|
+
let t, n, r;
|
|
4122
4118
|
return {
|
|
4123
4119
|
c() {
|
|
4124
|
-
t =
|
|
4120
|
+
t = $("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderRightButton");
|
|
4125
4121
|
},
|
|
4126
4122
|
m(i, s) {
|
|
4127
|
-
|
|
4123
|
+
M(i, t, s), n || (r = Dt(
|
|
4128
4124
|
t,
|
|
4129
4125
|
"click",
|
|
4130
4126
|
/*close*/
|
|
4131
4127
|
e[5]
|
|
4132
|
-
),
|
|
4128
|
+
), n = !0);
|
|
4133
4129
|
},
|
|
4134
4130
|
p: B,
|
|
4135
4131
|
d(i) {
|
|
4136
|
-
i &&
|
|
4132
|
+
i && P(t), n = !1, r();
|
|
4137
4133
|
}
|
|
4138
4134
|
};
|
|
4139
4135
|
}
|
|
4140
|
-
function
|
|
4141
|
-
let t,
|
|
4136
|
+
function Vi(e) {
|
|
4137
|
+
let t, n = (
|
|
4142
4138
|
/*closeButton*/
|
|
4143
4139
|
e[3] && St(e)
|
|
4144
4140
|
);
|
|
4145
4141
|
return {
|
|
4146
4142
|
c() {
|
|
4147
|
-
|
|
4143
|
+
n && n.c(), t = Ut();
|
|
4148
4144
|
},
|
|
4149
|
-
m(
|
|
4150
|
-
|
|
4145
|
+
m(r, i) {
|
|
4146
|
+
n && n.m(r, i), M(r, t, i);
|
|
4151
4147
|
},
|
|
4152
|
-
p(
|
|
4148
|
+
p(r, i) {
|
|
4153
4149
|
/*closeButton*/
|
|
4154
|
-
|
|
4150
|
+
r[3] ? n ? n.p(r, i) : (n = St(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4155
4151
|
},
|
|
4156
|
-
d(
|
|
4157
|
-
|
|
4152
|
+
d(r) {
|
|
4153
|
+
r && P(t), n && n.d(r);
|
|
4158
4154
|
}
|
|
4159
4155
|
};
|
|
4160
4156
|
}
|
|
4161
|
-
function
|
|
4162
|
-
let t,
|
|
4157
|
+
function Xi(e) {
|
|
4158
|
+
let t, n, r, i;
|
|
4163
4159
|
const s = (
|
|
4164
4160
|
/*#slots*/
|
|
4165
4161
|
e[16].leftButton
|
|
4166
|
-
), a =
|
|
4162
|
+
), a = Se(
|
|
4167
4163
|
s,
|
|
4168
4164
|
e,
|
|
4169
4165
|
/*$$scope*/
|
|
4170
4166
|
e[15],
|
|
4171
4167
|
Bt
|
|
4172
|
-
), o = a ||
|
|
4168
|
+
), o = a || ji(e), l = (
|
|
4173
4169
|
/*#slots*/
|
|
4174
4170
|
e[16].title
|
|
4175
|
-
), u =
|
|
4171
|
+
), u = Se(
|
|
4176
4172
|
l,
|
|
4177
4173
|
e,
|
|
4178
4174
|
/*$$scope*/
|
|
4179
4175
|
e[15],
|
|
4180
4176
|
wt
|
|
4181
|
-
), h = u ||
|
|
4177
|
+
), h = u || ki(e), f = (
|
|
4182
4178
|
/*#slots*/
|
|
4183
4179
|
e[16].rightButton
|
|
4184
|
-
), m =
|
|
4180
|
+
), m = Se(
|
|
4185
4181
|
f,
|
|
4186
4182
|
e,
|
|
4187
4183
|
/*$$scope*/
|
|
4188
4184
|
e[15],
|
|
4189
4185
|
Ht
|
|
4190
|
-
),
|
|
4186
|
+
), d = m || Vi(e);
|
|
4191
4187
|
return {
|
|
4192
4188
|
c() {
|
|
4193
|
-
t =
|
|
4189
|
+
t = $("div"), o && o.c(), n = st(), h && h.c(), r = st(), d && d.c(), Z(t, "class", "CashierHeader");
|
|
4194
4190
|
},
|
|
4195
|
-
m(c,
|
|
4196
|
-
|
|
4191
|
+
m(c, p) {
|
|
4192
|
+
M(c, t, p), o && o.m(t, null), ge(t, n), h && h.m(t, null), ge(t, r), d && d.m(t, null), e[17](t), i = !0;
|
|
4197
4193
|
},
|
|
4198
|
-
p(c, [
|
|
4199
|
-
a ? a.p && (!i ||
|
|
4200
|
-
32768) &&
|
|
4194
|
+
p(c, [p]) {
|
|
4195
|
+
a ? a.p && (!i || p & /*$$scope*/
|
|
4196
|
+
32768) && Oe(
|
|
4201
4197
|
a,
|
|
4202
4198
|
s,
|
|
4203
4199
|
c,
|
|
4204
4200
|
/*$$scope*/
|
|
4205
4201
|
c[15],
|
|
4206
|
-
i ?
|
|
4202
|
+
i ? Ae(
|
|
4207
4203
|
s,
|
|
4208
4204
|
/*$$scope*/
|
|
4209
4205
|
c[15],
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
) :
|
|
4206
|
+
p,
|
|
4207
|
+
Fi
|
|
4208
|
+
) : Pe(
|
|
4213
4209
|
/*$$scope*/
|
|
4214
4210
|
c[15]
|
|
4215
4211
|
),
|
|
4216
4212
|
Bt
|
|
4217
|
-
) : o && o.p && (!i ||
|
|
4218
|
-
2) && o.p(c, i ?
|
|
4219
|
-
32768) &&
|
|
4213
|
+
) : o && o.p && (!i || p & /*backButton*/
|
|
4214
|
+
2) && o.p(c, i ? p : -1), u ? u.p && (!i || p & /*$$scope*/
|
|
4215
|
+
32768) && Oe(
|
|
4220
4216
|
u,
|
|
4221
4217
|
l,
|
|
4222
4218
|
c,
|
|
4223
4219
|
/*$$scope*/
|
|
4224
4220
|
c[15],
|
|
4225
|
-
i ?
|
|
4221
|
+
i ? Ae(
|
|
4226
4222
|
l,
|
|
4227
4223
|
/*$$scope*/
|
|
4228
4224
|
c[15],
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
) :
|
|
4225
|
+
p,
|
|
4226
|
+
Gi
|
|
4227
|
+
) : Pe(
|
|
4232
4228
|
/*$$scope*/
|
|
4233
4229
|
c[15]
|
|
4234
4230
|
),
|
|
4235
4231
|
wt
|
|
4236
|
-
) : h && h.p && (!i ||
|
|
4237
|
-
20) && h.p(c, i ?
|
|
4238
|
-
32768) &&
|
|
4232
|
+
) : h && h.p && (!i || p & /*$_, titleText*/
|
|
4233
|
+
20) && h.p(c, i ? p : -1), m ? m.p && (!i || p & /*$$scope*/
|
|
4234
|
+
32768) && Oe(
|
|
4239
4235
|
m,
|
|
4240
4236
|
f,
|
|
4241
4237
|
c,
|
|
4242
4238
|
/*$$scope*/
|
|
4243
4239
|
c[15],
|
|
4244
|
-
i ?
|
|
4240
|
+
i ? Ae(
|
|
4245
4241
|
f,
|
|
4246
4242
|
/*$$scope*/
|
|
4247
4243
|
c[15],
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
) :
|
|
4244
|
+
p,
|
|
4245
|
+
Di
|
|
4246
|
+
) : Pe(
|
|
4251
4247
|
/*$$scope*/
|
|
4252
4248
|
c[15]
|
|
4253
4249
|
),
|
|
4254
4250
|
Ht
|
|
4255
|
-
) :
|
|
4256
|
-
8) &&
|
|
4251
|
+
) : d && d.p && (!i || p & /*closeButton*/
|
|
4252
|
+
8) && d.p(c, i ? p : -1);
|
|
4257
4253
|
},
|
|
4258
4254
|
i(c) {
|
|
4259
|
-
i || (
|
|
4255
|
+
i || (ce(o, c), ce(h, c), ce(d, c), i = !0);
|
|
4260
4256
|
},
|
|
4261
4257
|
o(c) {
|
|
4262
|
-
|
|
4258
|
+
Le(o, c), Le(h, c), Le(d, c), i = !1;
|
|
4263
4259
|
},
|
|
4264
4260
|
d(c) {
|
|
4265
|
-
c &&
|
|
4261
|
+
c && P(t), o && o.d(c), h && h.d(c), d && d.d(c), e[17](null);
|
|
4266
4262
|
}
|
|
4267
4263
|
};
|
|
4268
4264
|
}
|
|
4269
|
-
function
|
|
4270
|
-
let
|
|
4271
|
-
|
|
4272
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4265
|
+
function zi(e, t, n) {
|
|
4266
|
+
let r;
|
|
4267
|
+
Hn(e, $i, (_) => n(4, r = _));
|
|
4268
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, c, p = !1, E, v = !1;
|
|
4273
4269
|
const T = () => {
|
|
4274
4270
|
fetch(l).then((_) => _.json()).then((_) => {
|
|
4275
|
-
Object.keys(_).forEach((
|
|
4276
|
-
|
|
4271
|
+
Object.keys(_).forEach((rt) => {
|
|
4272
|
+
Et(rt, _[rt]);
|
|
4277
4273
|
});
|
|
4278
4274
|
}).catch((_) => {
|
|
4279
4275
|
console.log(_);
|
|
4280
4276
|
});
|
|
4281
4277
|
};
|
|
4282
4278
|
Object.keys(vt).forEach((_) => {
|
|
4283
|
-
|
|
4279
|
+
Et(_, vt[_]);
|
|
4284
4280
|
});
|
|
4285
4281
|
const H = () => {
|
|
4286
|
-
|
|
4282
|
+
Ri(f);
|
|
4287
4283
|
}, S = () => {
|
|
4288
4284
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4289
|
-
},
|
|
4285
|
+
}, O = () => {
|
|
4290
4286
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4291
|
-
},
|
|
4292
|
-
|
|
4293
|
-
},
|
|
4294
|
-
|
|
4295
|
-
},
|
|
4296
|
-
|
|
4287
|
+
}, U = () => {
|
|
4288
|
+
n(1, p = !!u && u !== "false");
|
|
4289
|
+
}, ue = () => {
|
|
4290
|
+
n(3, v = !!m && m !== "false");
|
|
4291
|
+
}, yn = () => {
|
|
4292
|
+
n(2, E = h || "header.general");
|
|
4297
4293
|
};
|
|
4298
|
-
|
|
4294
|
+
In(() => () => {
|
|
4299
4295
|
});
|
|
4300
|
-
function
|
|
4301
|
-
|
|
4302
|
-
c = _,
|
|
4296
|
+
function xn(_) {
|
|
4297
|
+
Ge[_ ? "unshift" : "push"](() => {
|
|
4298
|
+
c = _, n(0, c);
|
|
4303
4299
|
});
|
|
4304
4300
|
}
|
|
4305
4301
|
return e.$$set = (_) => {
|
|
4306
|
-
"clientstyling" in _ &&
|
|
4302
|
+
"clientstyling" in _ && n(7, a = _.clientstyling), "clientstylingurl" in _ && n(8, o = _.clientstylingurl), "translationurl" in _ && n(9, l = _.translationurl), "showbackbutton" in _ && n(10, u = _.showbackbutton), "title" in _ && n(11, h = _.title), "lang" in _ && n(12, f = _.lang), "showclosebutton" in _ && n(13, m = _.showclosebutton), "mbsource" in _ && n(14, d = _.mbsource), "$$scope" in _ && n(15, s = _.$$scope);
|
|
4307
4303
|
}, e.$$.update = () => {
|
|
4308
4304
|
e.$$.dirty & /*lang*/
|
|
4309
4305
|
4096 && f && H(), e.$$.dirty & /*lang, title*/
|
|
4310
|
-
6144 && f && h &&
|
|
4311
|
-
129 && a && c &&
|
|
4312
|
-
257 && o && c &&
|
|
4313
|
-
16385 &&
|
|
4306
|
+
6144 && f && h && yn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4307
|
+
129 && a && c && Vn(c, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4308
|
+
257 && o && c && Xn(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4309
|
+
16385 && d && c && zn(c, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4314
4310
|
4608 && f && l && T(), e.$$.dirty & /*showbackbutton*/
|
|
4315
|
-
1024 && u &&
|
|
4316
|
-
8192 && m &&
|
|
4311
|
+
1024 && u && U(), e.$$.dirty & /*showclosebutton*/
|
|
4312
|
+
8192 && m && ue();
|
|
4317
4313
|
}, [
|
|
4318
4314
|
c,
|
|
4319
|
-
|
|
4315
|
+
p,
|
|
4320
4316
|
E,
|
|
4321
4317
|
v,
|
|
4322
|
-
|
|
4318
|
+
r,
|
|
4323
4319
|
S,
|
|
4324
|
-
|
|
4320
|
+
O,
|
|
4325
4321
|
a,
|
|
4326
4322
|
o,
|
|
4327
4323
|
l,
|
|
@@ -4329,19 +4325,19 @@ function Wi(e, t, r) {
|
|
|
4329
4325
|
h,
|
|
4330
4326
|
f,
|
|
4331
4327
|
m,
|
|
4332
|
-
|
|
4328
|
+
d,
|
|
4333
4329
|
s,
|
|
4334
4330
|
i,
|
|
4335
|
-
|
|
4331
|
+
xn
|
|
4336
4332
|
];
|
|
4337
4333
|
}
|
|
4338
|
-
class
|
|
4334
|
+
class _n extends jn {
|
|
4339
4335
|
constructor(t) {
|
|
4340
|
-
super(),
|
|
4336
|
+
super(), Gn(
|
|
4341
4337
|
this,
|
|
4342
4338
|
t,
|
|
4343
|
-
Wi,
|
|
4344
4339
|
zi,
|
|
4340
|
+
Xi,
|
|
4345
4341
|
Pt,
|
|
4346
4342
|
{
|
|
4347
4343
|
clientstyling: 7,
|
|
@@ -4353,7 +4349,7 @@ class br extends Fr {
|
|
|
4353
4349
|
showclosebutton: 13,
|
|
4354
4350
|
mbsource: 14
|
|
4355
4351
|
},
|
|
4356
|
-
|
|
4352
|
+
Ui
|
|
4357
4353
|
);
|
|
4358
4354
|
}
|
|
4359
4355
|
get clientstyling() {
|
|
@@ -4405,61 +4401,61 @@ class br extends Fr {
|
|
|
4405
4401
|
this.$$set({ mbsource: t }), A();
|
|
4406
4402
|
}
|
|
4407
4403
|
}
|
|
4408
|
-
|
|
4409
|
-
const
|
|
4404
|
+
Fn(_n, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4405
|
+
const us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4410
4406
|
__proto__: null,
|
|
4411
|
-
default:
|
|
4407
|
+
default: _n
|
|
4412
4408
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4413
4409
|
export {
|
|
4414
|
-
|
|
4415
|
-
|
|
4410
|
+
R as $,
|
|
4411
|
+
Zn as A,
|
|
4416
4412
|
At as B,
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4413
|
+
di as C,
|
|
4414
|
+
mn as D,
|
|
4415
|
+
Le as E,
|
|
4416
|
+
ns as F,
|
|
4417
|
+
ce as G,
|
|
4418
|
+
Hn as H,
|
|
4419
|
+
ts as I,
|
|
4420
|
+
Ji as J,
|
|
4421
|
+
ne as K,
|
|
4422
|
+
rs as L,
|
|
4427
4423
|
is as M,
|
|
4428
4424
|
Ut as N,
|
|
4429
|
-
|
|
4425
|
+
$i as O,
|
|
4430
4426
|
Zi as P,
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4427
|
+
Wi as Q,
|
|
4428
|
+
os as R,
|
|
4429
|
+
jn as S,
|
|
4430
|
+
Rn as T,
|
|
4431
|
+
Un as U,
|
|
4432
|
+
Yi as V,
|
|
4433
|
+
es as W,
|
|
4434
|
+
us as X,
|
|
4435
|
+
wn as a,
|
|
4436
|
+
$ as b,
|
|
4437
|
+
Fn as c,
|
|
4438
|
+
qi as d,
|
|
4439
|
+
ss as e,
|
|
4444
4440
|
A as f,
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4441
|
+
st as g,
|
|
4442
|
+
Z as h,
|
|
4443
|
+
Gn as i,
|
|
4444
|
+
M as j,
|
|
4445
|
+
ge as k,
|
|
4450
4446
|
Dt as l,
|
|
4451
|
-
|
|
4447
|
+
P as m,
|
|
4452
4448
|
B as n,
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4449
|
+
Qi as o,
|
|
4450
|
+
In as p,
|
|
4451
|
+
Xn as q,
|
|
4452
|
+
I as r,
|
|
4457
4453
|
Pt as s,
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4454
|
+
zn as t,
|
|
4455
|
+
Ye as u,
|
|
4456
|
+
Ki as v,
|
|
4457
|
+
Sn as w,
|
|
4458
|
+
Ge as x,
|
|
4459
|
+
Vn as y,
|
|
4460
|
+
as as z
|
|
4465
4461
|
};
|