@everymatrix/cashier-receipt-page-nd 1.69.170 → 1.69.180
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/{CashierError-SQctLKM-.js → CashierError-B-JgaWUg.js} +629 -652
- package/components/{CashierError-cSJnMdmg.js → CashierError-CDMMAaXq.js} +625 -648
- package/components/{CashierError-LsL-NiMF.cjs → CashierError-CcXkeFHB.cjs} +5 -5
- package/components/{CashierReceiptPage-C6ArpPNM.js → CashierReceiptPage-BfDowX3n.js} +1303 -1496
- package/components/CashierReceiptPage-Bg1a3Lnj.cjs +43 -0
- package/components/{CashierReceiptPage-BZmjGs_e.js → CashierReceiptPage-DvV3t2nx.js} +1100 -1251
- package/es2015/cashier-receipt-page-nd.cjs +1 -1
- package/es2015/cashier-receipt-page-nd.js +1 -1
- package/esnext/cashier-receipt-page-nd.js +1 -1
- package/package.json +1 -1
- package/components/CashierReceiptPage-TZ5q6seR.cjs +0 -41
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var vr = Object.defineProperty, xr = Object.defineProperties;
|
|
2
2
|
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var ot = Object.getOwnPropertySymbols;
|
|
4
4
|
var Hr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Me = (e, t, r) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
5
|
+
var Me = (e, t, r) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
Hr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (ot)
|
|
9
|
+
for (var r of ot(t))
|
|
10
10
|
wr.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, ut = (e, t) => xr(e, Tr(t));
|
|
13
|
+
var w = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var lt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -28,9 +28,9 @@ var ht = (e, t, r) => new Promise((n, i) => {
|
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
|
-
function
|
|
31
|
+
function S() {
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const Lt = (e) => e;
|
|
34
34
|
function Sr(e, t) {
|
|
35
35
|
for (const r in t)
|
|
36
36
|
e[r] = t[r];
|
|
@@ -39,50 +39,50 @@ function Sr(e, t) {
|
|
|
39
39
|
e
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Mt(e) {
|
|
43
43
|
return e();
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ht() {
|
|
46
46
|
return /* @__PURE__ */ Object.create(null);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
e.forEach(
|
|
48
|
+
function R(e) {
|
|
49
|
+
e.forEach(Mt);
|
|
50
50
|
}
|
|
51
51
|
function ae(e) {
|
|
52
52
|
return typeof e == "function";
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function $t(e, t) {
|
|
55
55
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
function
|
|
59
|
-
return e === t ? !0 : (
|
|
57
|
+
let ce;
|
|
58
|
+
function ct(e, t) {
|
|
59
|
+
return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
|
|
60
60
|
}
|
|
61
61
|
function Br(e) {
|
|
62
62
|
return Object.keys(e).length === 0;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Rt(e, ...t) {
|
|
65
65
|
if (e == null) {
|
|
66
66
|
for (const n of t)
|
|
67
67
|
n(void 0);
|
|
68
|
-
return
|
|
68
|
+
return S;
|
|
69
69
|
}
|
|
70
70
|
const r = e.subscribe(...t);
|
|
71
71
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
72
72
|
}
|
|
73
73
|
function Ar(e, t, r) {
|
|
74
|
-
e.$$.on_destroy.push(
|
|
74
|
+
e.$$.on_destroy.push(Rt(t, r));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fe(e, t, r, n) {
|
|
77
77
|
if (e) {
|
|
78
|
-
const i =
|
|
78
|
+
const i = Dt(e, t, r, n);
|
|
79
79
|
return e[0](i);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Dt(e, t, r, n) {
|
|
83
83
|
return e[1] && n ? Sr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function me(e, t, r, n) {
|
|
86
86
|
if (e[2] && n) {
|
|
87
87
|
const i = e[2](n(r));
|
|
88
88
|
if (t.dirty === void 0)
|
|
@@ -97,13 +97,13 @@ function de(e, t, r, n) {
|
|
|
97
97
|
}
|
|
98
98
|
return t.dirty;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function de(e, t, r, n, i, s) {
|
|
101
101
|
if (i) {
|
|
102
|
-
const o =
|
|
102
|
+
const o = Dt(t, r, n, s);
|
|
103
103
|
e.p(o, i);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function pe(e) {
|
|
107
107
|
if (e.ctx.length > 32) {
|
|
108
108
|
const t = [], r = e.ctx.length / 32;
|
|
109
109
|
for (let n = 0; n < r; n++)
|
|
@@ -112,33 +112,33 @@ function ge(e) {
|
|
|
112
112
|
}
|
|
113
113
|
return -1;
|
|
114
114
|
}
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
t.c(e) || (
|
|
121
|
-
}),
|
|
115
|
+
const Ut = typeof window != "undefined";
|
|
116
|
+
let Gt = Ut ? () => window.performance.now() : () => Date.now(), tt = Ut ? (e) => requestAnimationFrame(e) : S;
|
|
117
|
+
const F = /* @__PURE__ */ new Set();
|
|
118
|
+
function kt(e) {
|
|
119
|
+
F.forEach((t) => {
|
|
120
|
+
t.c(e) || (F.delete(t), t.f());
|
|
121
|
+
}), F.size !== 0 && tt(kt);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ft(e) {
|
|
124
124
|
let t;
|
|
125
|
-
return
|
|
125
|
+
return F.size === 0 && tt(kt), {
|
|
126
126
|
promise: new Promise((r) => {
|
|
127
|
-
|
|
127
|
+
F.add(t = { c: e, f: r });
|
|
128
128
|
}),
|
|
129
129
|
abort() {
|
|
130
|
-
|
|
130
|
+
F.delete(t);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function I(e, t) {
|
|
135
135
|
e.appendChild(t);
|
|
136
136
|
}
|
|
137
137
|
function Pr(e, t, r) {
|
|
138
138
|
const n = rt(e);
|
|
139
139
|
if (!n.getElementById(t)) {
|
|
140
|
-
const i =
|
|
141
|
-
i.id = t, i.textContent = r,
|
|
140
|
+
const i = O("style");
|
|
141
|
+
i.id = t, i.textContent = r, jt(n, i);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
function rt(e) {
|
|
@@ -152,55 +152,55 @@ function rt(e) {
|
|
|
152
152
|
) : e.ownerDocument;
|
|
153
153
|
}
|
|
154
154
|
function Or(e) {
|
|
155
|
-
const t =
|
|
156
|
-
return t.textContent = "/* empty */",
|
|
155
|
+
const t = O("style");
|
|
156
|
+
return t.textContent = "/* empty */", jt(rt(e), t), t.sheet;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
158
|
+
function jt(e, t) {
|
|
159
|
+
return I(
|
|
160
160
|
/** @type {Document} */
|
|
161
161
|
e.head || e,
|
|
162
162
|
t
|
|
163
163
|
), t.sheet;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function J(e, t, r) {
|
|
166
166
|
e.insertBefore(t, r || null);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function L(e) {
|
|
169
169
|
e.parentNode && e.parentNode.removeChild(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function os(e, t) {
|
|
172
172
|
for (let r = 0; r < e.length; r += 1)
|
|
173
173
|
e[r] && e[r].d(t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function O(e) {
|
|
176
176
|
return document.createElement(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function as(e) {
|
|
179
179
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Oe(e) {
|
|
182
182
|
return document.createTextNode(e);
|
|
183
183
|
}
|
|
184
184
|
function $e() {
|
|
185
|
-
return
|
|
185
|
+
return Oe(" ");
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
187
|
+
function Ir() {
|
|
188
|
+
return Oe("");
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Cr(e, t, r, n) {
|
|
191
191
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function z(e, t, r) {
|
|
194
194
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ge(e, t, r) {
|
|
197
197
|
const n = t.toLowerCase();
|
|
198
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
198
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
|
|
199
199
|
}
|
|
200
200
|
function Nr(e) {
|
|
201
201
|
return Array.from(e.childNodes);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function zt(e, t) {
|
|
204
204
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
205
205
|
t);
|
|
206
206
|
}
|
|
@@ -216,8 +216,8 @@ function Mr(e) {
|
|
|
216
216
|
}
|
|
217
217
|
), t;
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
let
|
|
219
|
+
const Te = /* @__PURE__ */ new Map();
|
|
220
|
+
let He = 0;
|
|
221
221
|
function $r(e) {
|
|
222
222
|
let t = 5381, r = e.length;
|
|
223
223
|
for (; r--; )
|
|
@@ -226,36 +226,36 @@ function $r(e) {
|
|
|
226
226
|
}
|
|
227
227
|
function Rr(e, t) {
|
|
228
228
|
const r = { stylesheet: Or(t), rules: {} };
|
|
229
|
-
return
|
|
229
|
+
return Te.set(e, r), r;
|
|
230
230
|
}
|
|
231
231
|
function Vt(e, t, r, n, i, s, o, a = 0) {
|
|
232
232
|
const h = 16.666 / n;
|
|
233
233
|
let u = `{
|
|
234
234
|
`;
|
|
235
235
|
for (let v = 0; v <= 1; v += h) {
|
|
236
|
-
const
|
|
237
|
-
u += v * 100 + `%{${o(
|
|
236
|
+
const E = t + (r - t) * s(v);
|
|
237
|
+
u += v * 100 + `%{${o(E, 1 - E)}}
|
|
238
238
|
`;
|
|
239
239
|
}
|
|
240
240
|
const l = u + `100% {${o(r, 1 - r)}}
|
|
241
|
-
}`,
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
return e.style.animation = `${
|
|
241
|
+
}`, c = `__svelte_${$r(l)}_${a}`, m = rt(e), { stylesheet: d, rules: p } = Te.get(m) || Rr(m, e);
|
|
242
|
+
p[c] || (p[c] = !0, d.insertRule(`@keyframes ${c} ${l}`, d.cssRules.length));
|
|
243
|
+
const _ = e.style.animation || "";
|
|
244
|
+
return e.style.animation = `${_ ? `${_}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, He += 1, c;
|
|
245
245
|
}
|
|
246
246
|
function ze(e, t) {
|
|
247
247
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
248
248
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
249
249
|
// remove all Svelte animations
|
|
250
250
|
), i = r.length - n.length;
|
|
251
|
-
i && (e.style.animation = n.join(", "),
|
|
251
|
+
i && (e.style.animation = n.join(", "), He -= i, He || Dr());
|
|
252
252
|
}
|
|
253
253
|
function Dr() {
|
|
254
254
|
tt(() => {
|
|
255
|
-
|
|
255
|
+
He || (Te.forEach((e) => {
|
|
256
256
|
const { ownerNode: t } = e.stylesheet;
|
|
257
|
-
t &&
|
|
258
|
-
}),
|
|
257
|
+
t && L(t);
|
|
258
|
+
}), Te.clear());
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
let ne;
|
|
@@ -270,53 +270,53 @@ function Ur() {
|
|
|
270
270
|
function Gr(e) {
|
|
271
271
|
Ur().$$.on_mount.push(e);
|
|
272
272
|
}
|
|
273
|
-
const
|
|
274
|
-
let
|
|
275
|
-
const
|
|
273
|
+
const k = [], Ve = [];
|
|
274
|
+
let j = [];
|
|
275
|
+
const ft = [], kr = /* @__PURE__ */ Promise.resolve();
|
|
276
276
|
let Xe = !1;
|
|
277
277
|
function Fr() {
|
|
278
|
-
Xe || (Xe = !0, kr.then(
|
|
278
|
+
Xe || (Xe = !0, kr.then(P));
|
|
279
279
|
}
|
|
280
280
|
function ie(e) {
|
|
281
|
-
|
|
281
|
+
j.push(e);
|
|
282
282
|
}
|
|
283
283
|
const Re = /* @__PURE__ */ new Set();
|
|
284
|
-
let
|
|
285
|
-
function
|
|
286
|
-
if (
|
|
284
|
+
let U = 0;
|
|
285
|
+
function P() {
|
|
286
|
+
if (U !== 0)
|
|
287
287
|
return;
|
|
288
288
|
const e = ne;
|
|
289
289
|
do {
|
|
290
290
|
try {
|
|
291
|
-
for (;
|
|
292
|
-
const t =
|
|
293
|
-
|
|
291
|
+
for (; U < k.length; ) {
|
|
292
|
+
const t = k[U];
|
|
293
|
+
U++, re(t), jr(t.$$);
|
|
294
294
|
}
|
|
295
295
|
} catch (t) {
|
|
296
|
-
throw
|
|
296
|
+
throw k.length = 0, U = 0, t;
|
|
297
297
|
}
|
|
298
|
-
for (re(null),
|
|
298
|
+
for (re(null), k.length = 0, U = 0; Ve.length; )
|
|
299
299
|
Ve.pop()();
|
|
300
|
-
for (let t = 0; t <
|
|
301
|
-
const r =
|
|
300
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
301
|
+
const r = j[t];
|
|
302
302
|
Re.has(r) || (Re.add(r), r());
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
} while (
|
|
306
|
-
for (;
|
|
307
|
-
|
|
304
|
+
j.length = 0;
|
|
305
|
+
} while (k.length);
|
|
306
|
+
for (; ft.length; )
|
|
307
|
+
ft.pop()();
|
|
308
308
|
Xe = !1, Re.clear(), re(e);
|
|
309
309
|
}
|
|
310
310
|
function jr(e) {
|
|
311
311
|
if (e.fragment !== null) {
|
|
312
|
-
e.update(),
|
|
312
|
+
e.update(), R(e.before_update);
|
|
313
313
|
const t = e.dirty;
|
|
314
314
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ie);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
function zr(e) {
|
|
318
318
|
const t = [], r = [];
|
|
319
|
-
|
|
319
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
320
320
|
}
|
|
321
321
|
let Y;
|
|
322
322
|
function Xt() {
|
|
@@ -324,37 +324,37 @@ function Xt() {
|
|
|
324
324
|
Y = null;
|
|
325
325
|
})), Y;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function we(e, t, r) {
|
|
328
328
|
e.dispatchEvent(Lr(`${t ? "intro" : "outro"}${r}`));
|
|
329
329
|
}
|
|
330
|
-
const
|
|
331
|
-
let
|
|
332
|
-
function
|
|
333
|
-
|
|
330
|
+
const _e = /* @__PURE__ */ new Set();
|
|
331
|
+
let C;
|
|
332
|
+
function us() {
|
|
333
|
+
C = {
|
|
334
334
|
r: 0,
|
|
335
335
|
c: [],
|
|
336
|
-
p:
|
|
336
|
+
p: C
|
|
337
337
|
// parent group
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
|
|
340
|
+
function ls() {
|
|
341
|
+
C.r || R(C.c), C = C.p;
|
|
342
342
|
}
|
|
343
343
|
function ee(e, t) {
|
|
344
|
-
e && e.i && (
|
|
344
|
+
e && e.i && (_e.delete(e), e.i(t));
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function be(e, t, r, n) {
|
|
347
347
|
if (e && e.o) {
|
|
348
|
-
if (
|
|
348
|
+
if (_e.has(e))
|
|
349
349
|
return;
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
_e.add(e), C.c.push(() => {
|
|
351
|
+
_e.delete(e), n && (r && e.d(1), n());
|
|
352
352
|
}), e.o(t);
|
|
353
353
|
} else
|
|
354
354
|
n && n();
|
|
355
355
|
}
|
|
356
356
|
const Wt = { duration: 0 };
|
|
357
|
-
function
|
|
357
|
+
function hs(e, t, r) {
|
|
358
358
|
const n = { direction: "in" };
|
|
359
359
|
let i = t(e, r, n), s = !1, o, a, h = 0;
|
|
360
360
|
function u() {
|
|
@@ -362,63 +362,63 @@ function cs(e, t, r) {
|
|
|
362
362
|
}
|
|
363
363
|
function l() {
|
|
364
364
|
const {
|
|
365
|
-
delay:
|
|
366
|
-
duration:
|
|
367
|
-
easing:
|
|
368
|
-
tick:
|
|
365
|
+
delay: m = 0,
|
|
366
|
+
duration: d = 300,
|
|
367
|
+
easing: p = Lt,
|
|
368
|
+
tick: _ = S,
|
|
369
369
|
css: v
|
|
370
370
|
} = i || Wt;
|
|
371
|
-
v && (o = Vt(e, 0, 1,
|
|
372
|
-
const
|
|
373
|
-
a && a.abort(), s = !0, ie(() =>
|
|
371
|
+
v && (o = Vt(e, 0, 1, d, m, p, v, h++)), _(0, 1);
|
|
372
|
+
const E = Gt() + m, f = E + d;
|
|
373
|
+
a && a.abort(), s = !0, ie(() => we(e, !0, "start")), a = Ft((g) => {
|
|
374
374
|
if (s) {
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
377
|
-
if (
|
|
378
|
-
const
|
|
379
|
-
|
|
375
|
+
if (g >= f)
|
|
376
|
+
return _(1, 0), we(e, !0, "end"), u(), s = !1;
|
|
377
|
+
if (g >= E) {
|
|
378
|
+
const B = p((g - E) / d);
|
|
379
|
+
_(B, 1 - B);
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
return s;
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
let
|
|
385
|
+
let c = !1;
|
|
386
386
|
return {
|
|
387
387
|
start() {
|
|
388
|
-
|
|
388
|
+
c || (c = !0, ze(e), ae(i) ? (i = i(n), Xt().then(l)) : l());
|
|
389
389
|
},
|
|
390
390
|
invalidate() {
|
|
391
|
-
|
|
391
|
+
c = !1;
|
|
392
392
|
},
|
|
393
393
|
end() {
|
|
394
394
|
s && (u(), s = !1);
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function cs(e, t, r) {
|
|
399
399
|
const n = { direction: "out" };
|
|
400
400
|
let i = t(e, r, n), s = !0, o;
|
|
401
|
-
const a =
|
|
401
|
+
const a = C;
|
|
402
402
|
a.r += 1;
|
|
403
403
|
let h;
|
|
404
404
|
function u() {
|
|
405
405
|
const {
|
|
406
406
|
delay: l = 0,
|
|
407
|
-
duration:
|
|
408
|
-
easing:
|
|
409
|
-
tick:
|
|
410
|
-
css:
|
|
407
|
+
duration: c = 300,
|
|
408
|
+
easing: m = Lt,
|
|
409
|
+
tick: d = S,
|
|
410
|
+
css: p
|
|
411
411
|
} = i || Wt;
|
|
412
|
-
|
|
413
|
-
const
|
|
414
|
-
ie(() =>
|
|
415
|
-
e.inert, e.inert = !0),
|
|
412
|
+
p && (o = Vt(e, 1, 0, c, l, m, p));
|
|
413
|
+
const _ = Gt() + l, v = _ + c;
|
|
414
|
+
ie(() => we(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
|
|
415
|
+
e.inert, e.inert = !0), Ft((E) => {
|
|
416
416
|
if (s) {
|
|
417
|
-
if (
|
|
418
|
-
return
|
|
419
|
-
if (
|
|
420
|
-
const
|
|
421
|
-
|
|
417
|
+
if (E >= v)
|
|
418
|
+
return d(0, 1), we(e, !1, "end"), --a.r || R(a.c), !1;
|
|
419
|
+
if (E >= _) {
|
|
420
|
+
const f = m((E - _) / c);
|
|
421
|
+
d(1 - f, f);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
return s;
|
|
@@ -432,22 +432,22 @@ function fs(e, t, r) {
|
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function fs(e) {
|
|
436
436
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
437
437
|
}
|
|
438
438
|
function Vr(e, t, r) {
|
|
439
439
|
const { fragment: n, after_update: i } = e.$$;
|
|
440
440
|
n && n.m(t, r), ie(() => {
|
|
441
|
-
const s = e.$$.on_mount.map(
|
|
442
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
441
|
+
const s = e.$$.on_mount.map(Mt).filter(ae);
|
|
442
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : R(s), e.$$.on_mount = [];
|
|
443
443
|
}), i.forEach(ie);
|
|
444
444
|
}
|
|
445
445
|
function Xr(e, t) {
|
|
446
446
|
const r = e.$$;
|
|
447
|
-
r.fragment !== null && (zr(r.after_update),
|
|
447
|
+
r.fragment !== null && (zr(r.after_update), R(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
448
448
|
}
|
|
449
449
|
function Wr(e, t) {
|
|
450
|
-
e.$$.dirty[0] === -1 && (
|
|
450
|
+
e.$$.dirty[0] === -1 && (k.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
451
451
|
}
|
|
452
452
|
function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
453
453
|
const h = ne;
|
|
@@ -457,9 +457,9 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
457
457
|
ctx: [],
|
|
458
458
|
// state
|
|
459
459
|
props: s,
|
|
460
|
-
update:
|
|
460
|
+
update: S,
|
|
461
461
|
not_equal: i,
|
|
462
|
-
bound:
|
|
462
|
+
bound: ht(),
|
|
463
463
|
// lifecycle
|
|
464
464
|
on_mount: [],
|
|
465
465
|
on_destroy: [],
|
|
@@ -468,23 +468,23 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
468
468
|
after_update: [],
|
|
469
469
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
470
470
|
// everything else
|
|
471
|
-
callbacks:
|
|
471
|
+
callbacks: ht(),
|
|
472
472
|
dirty: a,
|
|
473
473
|
skip_bound: !1,
|
|
474
474
|
root: t.target || h.$$.root
|
|
475
475
|
};
|
|
476
476
|
o && o(u.root);
|
|
477
477
|
let l = !1;
|
|
478
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
479
|
-
const
|
|
480
|
-
return u.ctx && i(u.ctx[
|
|
481
|
-
}) : [], u.update(), l = !0,
|
|
478
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
479
|
+
const p = d.length ? d[0] : m;
|
|
480
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Wr(e, c)), m;
|
|
481
|
+
}) : [], u.update(), l = !0, R(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
482
482
|
if (t.hydrate) {
|
|
483
|
-
const
|
|
484
|
-
u.fragment && u.fragment.l(
|
|
483
|
+
const c = Nr(t.target);
|
|
484
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
485
485
|
} else
|
|
486
486
|
u.fragment && u.fragment.c();
|
|
487
|
-
t.intro && ee(e.$$.fragment), Vr(e, t.target, t.anchor),
|
|
487
|
+
t.intro && ee(e.$$.fragment), Vr(e, t.target, t.anchor), P();
|
|
488
488
|
}
|
|
489
489
|
re(h);
|
|
490
490
|
}
|
|
@@ -493,23 +493,23 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
493
493
|
constructor(t, r, n) {
|
|
494
494
|
super();
|
|
495
495
|
/** The Svelte component constructor */
|
|
496
|
-
|
|
496
|
+
w(this, "$$ctor");
|
|
497
497
|
/** Slots */
|
|
498
|
-
|
|
498
|
+
w(this, "$$s");
|
|
499
499
|
/** The Svelte component instance */
|
|
500
|
-
|
|
500
|
+
w(this, "$$c");
|
|
501
501
|
/** Whether or not the custom element is connected */
|
|
502
|
-
|
|
502
|
+
w(this, "$$cn", !1);
|
|
503
503
|
/** Component props data */
|
|
504
|
-
|
|
504
|
+
w(this, "$$d", {});
|
|
505
505
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
506
|
-
|
|
506
|
+
w(this, "$$r", !1);
|
|
507
507
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
508
|
-
|
|
508
|
+
w(this, "$$p_d", {});
|
|
509
509
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
510
|
-
|
|
510
|
+
w(this, "$$l", {});
|
|
511
511
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
512
|
-
|
|
512
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
513
513
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
514
514
|
}
|
|
515
515
|
addEventListener(t, r, n) {
|
|
@@ -526,24 +526,24 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
connectedCallback() {
|
|
529
|
-
return
|
|
529
|
+
return lt(this, null, function* () {
|
|
530
530
|
if (this.$$cn = !0, !this.$$c) {
|
|
531
531
|
let t = function(s) {
|
|
532
532
|
return () => {
|
|
533
533
|
let o;
|
|
534
534
|
return {
|
|
535
535
|
c: function() {
|
|
536
|
-
o =
|
|
536
|
+
o = O("slot"), s !== "default" && z(o, "name", s);
|
|
537
537
|
},
|
|
538
538
|
/**
|
|
539
539
|
* @param {HTMLElement} target
|
|
540
540
|
* @param {HTMLElement} [anchor]
|
|
541
541
|
*/
|
|
542
542
|
m: function(u, l) {
|
|
543
|
-
|
|
543
|
+
J(u, o, l);
|
|
544
544
|
},
|
|
545
545
|
d: function(u) {
|
|
546
|
-
u &&
|
|
546
|
+
u && L(o);
|
|
547
547
|
}
|
|
548
548
|
};
|
|
549
549
|
};
|
|
@@ -555,13 +555,13 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
555
555
|
s in n && (r[s] = [t(s)]);
|
|
556
556
|
for (const s of this.attributes) {
|
|
557
557
|
const o = this.$$g_p(s.name);
|
|
558
|
-
o in this.$$d || (this.$$d[o] =
|
|
558
|
+
o in this.$$d || (this.$$d[o] = Ee(o, s.value, this.$$p_d, "toProp"));
|
|
559
559
|
}
|
|
560
560
|
for (const s in this.$$p_d)
|
|
561
561
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
562
562
|
this.$$c = new this.$$ctor({
|
|
563
563
|
target: this.shadowRoot || this,
|
|
564
|
-
props:
|
|
564
|
+
props: ut(at({}, this.$$d), {
|
|
565
565
|
$$slots: r,
|
|
566
566
|
$$scope: {
|
|
567
567
|
ctx: []
|
|
@@ -572,7 +572,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
572
572
|
this.$$r = !0;
|
|
573
573
|
for (const s in this.$$p_d)
|
|
574
574
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
575
|
-
const o =
|
|
575
|
+
const o = Ee(
|
|
576
576
|
s,
|
|
577
577
|
this.$$d[s],
|
|
578
578
|
this.$$p_d,
|
|
@@ -596,7 +596,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
596
596
|
// and setting attributes through setAttribute etc, this is helpful
|
|
597
597
|
attributeChangedCallback(t, r, n) {
|
|
598
598
|
var i;
|
|
599
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
599
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
600
600
|
}
|
|
601
601
|
disconnectedCallback() {
|
|
602
602
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -609,7 +609,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
609
609
|
) || t;
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
|
-
function
|
|
612
|
+
function Ee(e, t, r, n) {
|
|
613
613
|
var s;
|
|
614
614
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
615
615
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -657,7 +657,7 @@ function Jr(e, t, r, n, i, s) {
|
|
|
657
657
|
},
|
|
658
658
|
set(h) {
|
|
659
659
|
var u;
|
|
660
|
-
h =
|
|
660
|
+
h = Ee(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
663
|
}), n.forEach((a) => {
|
|
@@ -679,7 +679,7 @@ class qr {
|
|
|
679
679
|
*
|
|
680
680
|
* @type {any}
|
|
681
681
|
*/
|
|
682
|
-
|
|
682
|
+
w(this, "$$");
|
|
683
683
|
/**
|
|
684
684
|
* ### PRIVATE API
|
|
685
685
|
*
|
|
@@ -687,11 +687,11 @@ class qr {
|
|
|
687
687
|
*
|
|
688
688
|
* @type {any}
|
|
689
689
|
*/
|
|
690
|
-
|
|
690
|
+
w(this, "$$set");
|
|
691
691
|
}
|
|
692
692
|
/** @returns {void} */
|
|
693
693
|
$destroy() {
|
|
694
|
-
Xr(this, 1), this.$destroy =
|
|
694
|
+
Xr(this, 1), this.$destroy = S;
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -701,7 +701,7 @@ class qr {
|
|
|
701
701
|
*/
|
|
702
702
|
$on(t, r) {
|
|
703
703
|
if (!ae(r))
|
|
704
|
-
return
|
|
704
|
+
return S;
|
|
705
705
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
706
706
|
return n.push(r), () => {
|
|
707
707
|
const i = n.indexOf(r);
|
|
@@ -718,33 +718,33 @@ class qr {
|
|
|
718
718
|
}
|
|
719
719
|
const Qr = "4";
|
|
720
720
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
|
|
721
|
-
const
|
|
721
|
+
const G = [];
|
|
722
722
|
function Yr(e, t) {
|
|
723
723
|
return {
|
|
724
|
-
subscribe:
|
|
724
|
+
subscribe: Ie(e, t).subscribe
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Ie(e, t = S) {
|
|
728
728
|
let r;
|
|
729
729
|
const n = /* @__PURE__ */ new Set();
|
|
730
730
|
function i(a) {
|
|
731
|
-
if (
|
|
732
|
-
const h = !
|
|
731
|
+
if ($t(e, a) && (e = a, r)) {
|
|
732
|
+
const h = !G.length;
|
|
733
733
|
for (const u of n)
|
|
734
|
-
u[1](),
|
|
734
|
+
u[1](), G.push(u, e);
|
|
735
735
|
if (h) {
|
|
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
|
}
|
|
742
742
|
function s(a) {
|
|
743
743
|
i(a(e));
|
|
744
744
|
}
|
|
745
|
-
function o(a, h =
|
|
745
|
+
function o(a, h = S) {
|
|
746
746
|
const u = [a, h];
|
|
747
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
747
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || S), a(e), () => {
|
|
748
748
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
749
749
|
};
|
|
750
750
|
}
|
|
@@ -758,30 +758,30 @@ function q(e, t, r) {
|
|
|
758
758
|
return Yr(r, (o, a) => {
|
|
759
759
|
let h = !1;
|
|
760
760
|
const u = [];
|
|
761
|
-
let l = 0,
|
|
762
|
-
const
|
|
761
|
+
let l = 0, c = S;
|
|
762
|
+
const m = () => {
|
|
763
763
|
if (l)
|
|
764
764
|
return;
|
|
765
|
-
|
|
766
|
-
const
|
|
767
|
-
s ? o(
|
|
768
|
-
},
|
|
769
|
-
(
|
|
770
|
-
|
|
765
|
+
c();
|
|
766
|
+
const p = t(n ? u[0] : u, o, a);
|
|
767
|
+
s ? o(p) : c = ae(p) ? p : S;
|
|
768
|
+
}, d = i.map(
|
|
769
|
+
(p, _) => Rt(
|
|
770
|
+
p,
|
|
771
771
|
(v) => {
|
|
772
|
-
u[
|
|
772
|
+
u[_] = v, l &= ~(1 << _), h && m();
|
|
773
773
|
},
|
|
774
774
|
() => {
|
|
775
|
-
l |= 1 <<
|
|
775
|
+
l |= 1 << _;
|
|
776
776
|
}
|
|
777
777
|
)
|
|
778
778
|
);
|
|
779
|
-
return h = !0,
|
|
780
|
-
|
|
779
|
+
return h = !0, m(), function() {
|
|
780
|
+
R(d), c(), h = !1;
|
|
781
781
|
};
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
var
|
|
784
|
+
var ms = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
785
785
|
function Kr(e) {
|
|
786
786
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
787
787
|
}
|
|
@@ -803,7 +803,7 @@ function an(e) {
|
|
|
803
803
|
return Array.isArray(e) ? [] : {};
|
|
804
804
|
}
|
|
805
805
|
function se(e, t) {
|
|
806
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
806
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(an(e), e, t) : e;
|
|
807
807
|
}
|
|
808
808
|
function un(e, t, r) {
|
|
809
809
|
return e.concat(t).map(function(n) {
|
|
@@ -812,16 +812,16 @@ function un(e, t, r) {
|
|
|
812
812
|
}
|
|
813
813
|
function ln(e, t) {
|
|
814
814
|
if (!t.customMerge)
|
|
815
|
-
return
|
|
815
|
+
return V;
|
|
816
816
|
var r = t.customMerge(e);
|
|
817
|
-
return typeof r == "function" ? r :
|
|
817
|
+
return typeof r == "function" ? r : V;
|
|
818
818
|
}
|
|
819
819
|
function hn(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
|
-
function
|
|
824
|
+
function mt(e) {
|
|
825
825
|
return Object.keys(e).concat(hn(e));
|
|
826
826
|
}
|
|
827
827
|
function Jt(e, t) {
|
|
@@ -836,25 +836,25 @@ function cn(e, t) {
|
|
|
836
836
|
}
|
|
837
837
|
function fn(e, t, r) {
|
|
838
838
|
var n = {};
|
|
839
|
-
return r.isMergeableObject(e) &&
|
|
839
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
840
840
|
n[i] = se(e[i], r);
|
|
841
|
-
}),
|
|
841
|
+
}), mt(t).forEach(function(i) {
|
|
842
842
|
cn(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
843
843
|
}), n;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function V(e, t, r) {
|
|
846
846
|
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = se;
|
|
847
847
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
848
848
|
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : se(t, r);
|
|
849
849
|
}
|
|
850
|
-
|
|
850
|
+
V.all = function(t, r) {
|
|
851
851
|
if (!Array.isArray(t))
|
|
852
852
|
throw new Error("first argument should be an array");
|
|
853
853
|
return t.reduce(function(n, i) {
|
|
854
|
-
return
|
|
854
|
+
return V(n, i, r);
|
|
855
855
|
}, {});
|
|
856
856
|
};
|
|
857
|
-
var mn =
|
|
857
|
+
var mn = V, dn = mn;
|
|
858
858
|
const pn = /* @__PURE__ */ Kr(dn);
|
|
859
859
|
var We = function(e, t) {
|
|
860
860
|
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
@@ -864,7 +864,7 @@ var We = function(e, t) {
|
|
|
864
864
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
865
865
|
}, We(e, t);
|
|
866
866
|
};
|
|
867
|
-
function
|
|
867
|
+
function Ce(e, t) {
|
|
868
868
|
if (typeof t != "function" && t !== null)
|
|
869
869
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
870
870
|
We(e, t);
|
|
@@ -946,29 +946,29 @@ var vn = function() {
|
|
|
946
946
|
}
|
|
947
947
|
}, Ge = {
|
|
948
948
|
variadic: En
|
|
949
|
-
},
|
|
950
|
-
return
|
|
949
|
+
}, Se = function() {
|
|
950
|
+
return Se = Object.assign || function(t) {
|
|
951
951
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
952
952
|
r = arguments[n];
|
|
953
953
|
for (var s in r)
|
|
954
954
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
955
955
|
}
|
|
956
956
|
return t;
|
|
957
|
-
},
|
|
957
|
+
}, Se.apply(this, arguments);
|
|
958
958
|
};
|
|
959
|
-
var
|
|
959
|
+
var b;
|
|
960
960
|
(function(e) {
|
|
961
961
|
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
|
-
})(
|
|
962
|
+
})(b || (b = {}));
|
|
963
963
|
var x;
|
|
964
964
|
(function(e) {
|
|
965
965
|
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
966
|
})(x || (x = {}));
|
|
967
|
-
var
|
|
967
|
+
var X;
|
|
968
968
|
(function(e) {
|
|
969
969
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
970
|
-
})(
|
|
971
|
-
function
|
|
970
|
+
})(X || (X = {}));
|
|
971
|
+
function dt(e) {
|
|
972
972
|
return e.type === x.literal;
|
|
973
973
|
}
|
|
974
974
|
function Hn(e) {
|
|
@@ -996,10 +996,10 @@ function nr(e) {
|
|
|
996
996
|
return e.type === x.tag;
|
|
997
997
|
}
|
|
998
998
|
function ir(e) {
|
|
999
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
999
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1000
1000
|
}
|
|
1001
1001
|
function Ze(e) {
|
|
1002
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1002
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1003
1003
|
}
|
|
1004
1004
|
var sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
|
|
1005
1005
|
function Bn(e) {
|
|
@@ -1093,29 +1093,29 @@ function Bn(e) {
|
|
|
1093
1093
|
return "";
|
|
1094
1094
|
}), t;
|
|
1095
1095
|
}
|
|
1096
|
-
var
|
|
1097
|
-
return
|
|
1096
|
+
var T = function() {
|
|
1097
|
+
return T = Object.assign || function(t) {
|
|
1098
1098
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1099
1099
|
r = arguments[n];
|
|
1100
1100
|
for (var s in r)
|
|
1101
1101
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1102
1102
|
}
|
|
1103
1103
|
return t;
|
|
1104
|
-
},
|
|
1104
|
+
}, T.apply(this, arguments);
|
|
1105
1105
|
};
|
|
1106
1106
|
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1107
1107
|
function Pn(e) {
|
|
1108
1108
|
if (e.length === 0)
|
|
1109
1109
|
throw new Error("Number skeleton cannot be empty");
|
|
1110
|
-
for (var t = e.split(An).filter(function(
|
|
1111
|
-
return
|
|
1110
|
+
for (var t = e.split(An).filter(function(m) {
|
|
1111
|
+
return m.length > 0;
|
|
1112
1112
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1113
1113
|
var s = i[n], o = s.split("/");
|
|
1114
1114
|
if (o.length === 0)
|
|
1115
1115
|
throw new Error("Invalid number skeleton");
|
|
1116
1116
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1117
|
-
var
|
|
1118
|
-
if (
|
|
1117
|
+
var c = l[u];
|
|
1118
|
+
if (c.length === 0)
|
|
1119
1119
|
throw new Error("Invalid number skeleton");
|
|
1120
1120
|
}
|
|
1121
1121
|
r.push({ stem: a, options: h });
|
|
@@ -1125,8 +1125,8 @@ function Pn(e) {
|
|
|
1125
1125
|
function On(e) {
|
|
1126
1126
|
return e.replace(/^(.*?)-/, "");
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1128
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
1129
|
+
function gt(e) {
|
|
1130
1130
|
var t = {};
|
|
1131
1131
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
|
|
1132
1132
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -1172,7 +1172,7 @@ function ur(e) {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Cn(e) {
|
|
1176
1176
|
var t;
|
|
1177
1177
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1178
1178
|
notation: "engineering"
|
|
@@ -1186,7 +1186,7 @@ function In(e) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
return t;
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function bt(e) {
|
|
1190
1190
|
var t = {}, r = ur(e);
|
|
1191
1191
|
return r || t;
|
|
1192
1192
|
}
|
|
@@ -1225,13 +1225,13 @@ function Nn(e) {
|
|
|
1225
1225
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1226
1226
|
continue;
|
|
1227
1227
|
case "scientific":
|
|
1228
|
-
t =
|
|
1229
|
-
return
|
|
1228
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1229
|
+
return T(T({}, h), bt(u));
|
|
1230
1230
|
}, {}));
|
|
1231
1231
|
continue;
|
|
1232
1232
|
case "engineering":
|
|
1233
|
-
t =
|
|
1234
|
-
return
|
|
1233
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1234
|
+
return T(T({}, h), bt(u));
|
|
1235
1235
|
}, {}));
|
|
1236
1236
|
continue;
|
|
1237
1237
|
case "notation-simple":
|
|
@@ -1276,13 +1276,13 @@ function Nn(e) {
|
|
|
1276
1276
|
case "integer-width":
|
|
1277
1277
|
if (i.options.length > 1)
|
|
1278
1278
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1279
|
-
i.options[0].replace(
|
|
1279
|
+
i.options[0].replace(In, function(h, u, l, c, m, d) {
|
|
1280
1280
|
if (u)
|
|
1281
1281
|
t.minimumIntegerDigits = l.length;
|
|
1282
1282
|
else {
|
|
1283
|
-
if (
|
|
1283
|
+
if (c && m)
|
|
1284
1284
|
throw new Error("We currently do not support maximum integer digits");
|
|
1285
|
-
if (
|
|
1285
|
+
if (d)
|
|
1286
1286
|
throw new Error("We currently do not support exact integer digits");
|
|
1287
1287
|
}
|
|
1288
1288
|
return "";
|
|
@@ -1293,28 +1293,28 @@ function Nn(e) {
|
|
|
1293
1293
|
t.minimumIntegerDigits = i.stem.length;
|
|
1294
1294
|
continue;
|
|
1295
1295
|
}
|
|
1296
|
-
if (
|
|
1296
|
+
if (pt.test(i.stem)) {
|
|
1297
1297
|
if (i.options.length > 1)
|
|
1298
1298
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1299
|
-
i.stem.replace(
|
|
1300
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1299
|
+
i.stem.replace(pt, function(h, u, l, c, m, d) {
|
|
1300
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1301
1301
|
});
|
|
1302
1302
|
var s = i.options[0];
|
|
1303
|
-
s === "w" ? t =
|
|
1303
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), gt(s)));
|
|
1304
1304
|
continue;
|
|
1305
1305
|
}
|
|
1306
1306
|
if (or.test(i.stem)) {
|
|
1307
|
-
t =
|
|
1307
|
+
t = T(T({}, t), gt(i.stem));
|
|
1308
1308
|
continue;
|
|
1309
1309
|
}
|
|
1310
1310
|
var o = ur(i.stem);
|
|
1311
|
-
o && (t =
|
|
1312
|
-
var a =
|
|
1313
|
-
a && (t =
|
|
1311
|
+
o && (t = T(T({}, t), o));
|
|
1312
|
+
var a = Cn(i.stem);
|
|
1313
|
+
a && (t = T(T({}, t), a));
|
|
1314
1314
|
}
|
|
1315
1315
|
return t;
|
|
1316
1316
|
}
|
|
1317
|
-
var
|
|
1317
|
+
var ye = {
|
|
1318
1318
|
"001": [
|
|
1319
1319
|
"H",
|
|
1320
1320
|
"h"
|
|
@@ -2764,11 +2764,11 @@ function Mn(e) {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
var r = e.language, n;
|
|
2766
2766
|
r !== "root" && (n = e.maximize().region);
|
|
2767
|
-
var i =
|
|
2767
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2768
2768
|
return i[0];
|
|
2769
2769
|
}
|
|
2770
2770
|
var ke, $n = new RegExp("^".concat(sr.source, "*")), Rn = new RegExp("".concat(sr.source, "*$"));
|
|
2771
|
-
function
|
|
2771
|
+
function y(e, t) {
|
|
2772
2772
|
return { start: e, end: t };
|
|
2773
2773
|
}
|
|
2774
2774
|
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Vn = zn ? Number.isSafeInteger : function(e) {
|
|
@@ -2780,7 +2780,7 @@ try {
|
|
|
2780
2780
|
} catch (e) {
|
|
2781
2781
|
Je = !1;
|
|
2782
2782
|
}
|
|
2783
|
-
var
|
|
2783
|
+
var yt = Dn ? (
|
|
2784
2784
|
// Native
|
|
2785
2785
|
function(t, r, n) {
|
|
2786
2786
|
return t.startsWith(r, n);
|
|
@@ -2802,7 +2802,7 @@ var _t = Dn ? (
|
|
|
2802
2802
|
}
|
|
2803
2803
|
return n;
|
|
2804
2804
|
}
|
|
2805
|
-
),
|
|
2805
|
+
), _t = (
|
|
2806
2806
|
// native
|
|
2807
2807
|
Gn ? Object.fromEntries : (
|
|
2808
2808
|
// Ponyfill
|
|
@@ -2854,11 +2854,11 @@ function hr(e, t) {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
var Qe;
|
|
2856
2856
|
if (Je) {
|
|
2857
|
-
var
|
|
2857
|
+
var Et = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2858
2858
|
Qe = function(t, r) {
|
|
2859
2859
|
var n;
|
|
2860
|
-
|
|
2861
|
-
var i =
|
|
2860
|
+
Et.lastIndex = r;
|
|
2861
|
+
var i = Et.exec(t);
|
|
2862
2862
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2863
2863
|
};
|
|
2864
2864
|
} else
|
|
@@ -2896,12 +2896,12 @@ var Jn = (
|
|
|
2896
2896
|
var a = this.clonePosition();
|
|
2897
2897
|
this.bump(), i.push({
|
|
2898
2898
|
type: x.pound,
|
|
2899
|
-
location:
|
|
2899
|
+
location: y(a, this.clonePosition())
|
|
2900
2900
|
});
|
|
2901
2901
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2902
2902
|
if (n)
|
|
2903
2903
|
break;
|
|
2904
|
-
return this.error(
|
|
2904
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2905
2905
|
} else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
2906
2906
|
var o = this.parseTag(t, r);
|
|
2907
2907
|
if (o.err)
|
|
@@ -2925,7 +2925,7 @@ var Jn = (
|
|
|
2925
2925
|
val: {
|
|
2926
2926
|
type: x.literal,
|
|
2927
2927
|
value: "<".concat(i, "/>"),
|
|
2928
|
-
location:
|
|
2928
|
+
location: y(n, this.clonePosition())
|
|
2929
2929
|
},
|
|
2930
2930
|
err: null
|
|
2931
2931
|
};
|
|
@@ -2936,21 +2936,21 @@ var Jn = (
|
|
|
2936
2936
|
var o = s.val, a = this.clonePosition();
|
|
2937
2937
|
if (this.bumpIf("</")) {
|
|
2938
2938
|
if (this.isEOF() || !Ye(this.char()))
|
|
2939
|
-
return this.error(
|
|
2939
|
+
return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
|
|
2940
2940
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2941
|
-
return i !== u ? this.error(
|
|
2941
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2942
2942
|
val: {
|
|
2943
2943
|
type: x.tag,
|
|
2944
2944
|
value: i,
|
|
2945
2945
|
children: o,
|
|
2946
|
-
location:
|
|
2946
|
+
location: y(n, this.clonePosition())
|
|
2947
2947
|
},
|
|
2948
2948
|
err: null
|
|
2949
|
-
} : this.error(
|
|
2949
|
+
} : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
|
|
2950
2950
|
} else
|
|
2951
|
-
return this.error(
|
|
2951
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2952
2952
|
} else
|
|
2953
|
-
return this.error(
|
|
2953
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2954
2954
|
}, e.prototype.parseTagName = function() {
|
|
2955
2955
|
var t = this.offset();
|
|
2956
2956
|
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
@@ -2975,7 +2975,7 @@ var Jn = (
|
|
|
2975
2975
|
}
|
|
2976
2976
|
break;
|
|
2977
2977
|
}
|
|
2978
|
-
var h =
|
|
2978
|
+
var h = y(n, this.clonePosition());
|
|
2979
2979
|
return {
|
|
2980
2980
|
val: { type: x.literal, value: i, location: h },
|
|
2981
2981
|
err: null
|
|
@@ -3025,14 +3025,14 @@ var Jn = (
|
|
|
3025
3025
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3026
3026
|
var n = this.clonePosition();
|
|
3027
3027
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3028
|
-
return this.error(
|
|
3028
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3029
3029
|
if (this.char() === 125)
|
|
3030
|
-
return this.bump(), this.error(
|
|
3030
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3031
3031
|
var i = this.parseIdentifierIfPossible().value;
|
|
3032
3032
|
if (!i)
|
|
3033
|
-
return this.error(
|
|
3033
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3034
3034
|
if (this.bumpSpace(), this.isEOF())
|
|
3035
|
-
return this.error(
|
|
3035
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3036
3036
|
switch (this.char()) {
|
|
3037
3037
|
case 125:
|
|
3038
3038
|
return this.bump(), {
|
|
@@ -3040,25 +3040,25 @@ var Jn = (
|
|
|
3040
3040
|
type: x.argument,
|
|
3041
3041
|
// value does not include the opening and closing braces.
|
|
3042
3042
|
value: i,
|
|
3043
|
-
location:
|
|
3043
|
+
location: y(n, this.clonePosition())
|
|
3044
3044
|
},
|
|
3045
3045
|
err: null
|
|
3046
3046
|
};
|
|
3047
3047
|
case 44:
|
|
3048
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3048
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3049
3049
|
default:
|
|
3050
|
-
return this.error(
|
|
3050
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3051
3051
|
}
|
|
3052
3052
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3053
3053
|
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3054
3054
|
this.bumpTo(i);
|
|
3055
|
-
var s = this.clonePosition(), o =
|
|
3055
|
+
var s = this.clonePosition(), o = y(t, s);
|
|
3056
3056
|
return { value: n, location: o };
|
|
3057
3057
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3058
3058
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3059
3059
|
switch (a) {
|
|
3060
3060
|
case "":
|
|
3061
|
-
return this.error(
|
|
3061
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, h));
|
|
3062
3062
|
case "number":
|
|
3063
3063
|
case "date":
|
|
3064
3064
|
case "time": {
|
|
@@ -3066,40 +3066,40 @@ var Jn = (
|
|
|
3066
3066
|
var u = null;
|
|
3067
3067
|
if (this.bumpIf(",")) {
|
|
3068
3068
|
this.bumpSpace();
|
|
3069
|
-
var l = this.clonePosition(),
|
|
3070
|
-
if (
|
|
3071
|
-
return
|
|
3072
|
-
var
|
|
3073
|
-
if (
|
|
3074
|
-
return this.error(
|
|
3075
|
-
var
|
|
3076
|
-
u = { style:
|
|
3069
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3070
|
+
if (c.err)
|
|
3071
|
+
return c;
|
|
3072
|
+
var m = Zn(c.val);
|
|
3073
|
+
if (m.length === 0)
|
|
3074
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3075
|
+
var d = y(l, this.clonePosition());
|
|
3076
|
+
u = { style: m, styleLocation: d };
|
|
3077
3077
|
}
|
|
3078
|
-
var
|
|
3079
|
-
if (
|
|
3080
|
-
return
|
|
3081
|
-
var
|
|
3082
|
-
if (u &&
|
|
3078
|
+
var p = this.tryParseArgumentClose(i);
|
|
3079
|
+
if (p.err)
|
|
3080
|
+
return p;
|
|
3081
|
+
var _ = y(i, this.clonePosition());
|
|
3082
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3083
3083
|
var v = Wn(u.style.slice(2));
|
|
3084
3084
|
if (a === "number") {
|
|
3085
|
-
var
|
|
3086
|
-
return
|
|
3087
|
-
val: { type: x.number, value: n, location:
|
|
3085
|
+
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3086
|
+
return c.err ? c : {
|
|
3087
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
3088
3088
|
err: null
|
|
3089
3089
|
};
|
|
3090
3090
|
} else {
|
|
3091
3091
|
if (v.length === 0)
|
|
3092
|
-
return this.error(
|
|
3093
|
-
var
|
|
3094
|
-
this.locale && (
|
|
3095
|
-
var
|
|
3096
|
-
type:
|
|
3097
|
-
pattern:
|
|
3092
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
3093
|
+
var E = v;
|
|
3094
|
+
this.locale && (E = Ln(v, this.locale));
|
|
3095
|
+
var m = {
|
|
3096
|
+
type: X.dateTime,
|
|
3097
|
+
pattern: E,
|
|
3098
3098
|
location: u.styleLocation,
|
|
3099
|
-
parsedOptions: this.shouldParseSkeletons ? Bn(
|
|
3100
|
-
},
|
|
3099
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(E) : {}
|
|
3100
|
+
}, f = a === "date" ? x.date : x.time;
|
|
3101
3101
|
return {
|
|
3102
|
-
val: { type:
|
|
3102
|
+
val: { type: f, value: n, location: _, style: m },
|
|
3103
3103
|
err: null
|
|
3104
3104
|
};
|
|
3105
3105
|
}
|
|
@@ -3108,7 +3108,7 @@ var Jn = (
|
|
|
3108
3108
|
val: {
|
|
3109
3109
|
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3110
3110
|
value: n,
|
|
3111
|
-
location:
|
|
3111
|
+
location: _,
|
|
3112
3112
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3113
3113
|
},
|
|
3114
3114
|
err: null
|
|
@@ -3117,52 +3117,52 @@ var Jn = (
|
|
|
3117
3117
|
case "plural":
|
|
3118
3118
|
case "selectordinal":
|
|
3119
3119
|
case "select": {
|
|
3120
|
-
var
|
|
3120
|
+
var g = this.clonePosition();
|
|
3121
3121
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3122
|
-
return this.error(
|
|
3122
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, Se({}, g)));
|
|
3123
3123
|
this.bumpSpace();
|
|
3124
|
-
var
|
|
3125
|
-
if (a !== "select" &&
|
|
3124
|
+
var B = this.parseIdentifierIfPossible(), $ = 0;
|
|
3125
|
+
if (a !== "select" && B.value === "offset") {
|
|
3126
3126
|
if (!this.bumpIf(":"))
|
|
3127
|
-
return this.error(
|
|
3127
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3128
3128
|
this.bumpSpace();
|
|
3129
|
-
var
|
|
3130
|
-
if (
|
|
3131
|
-
return
|
|
3132
|
-
this.bumpSpace(),
|
|
3129
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3130
|
+
if (c.err)
|
|
3131
|
+
return c;
|
|
3132
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), $ = c.val;
|
|
3133
3133
|
}
|
|
3134
|
-
var
|
|
3135
|
-
if (
|
|
3136
|
-
return
|
|
3137
|
-
var
|
|
3138
|
-
if (
|
|
3139
|
-
return
|
|
3140
|
-
var
|
|
3134
|
+
var he = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
3135
|
+
if (he.err)
|
|
3136
|
+
return he;
|
|
3137
|
+
var p = this.tryParseArgumentClose(i);
|
|
3138
|
+
if (p.err)
|
|
3139
|
+
return p;
|
|
3140
|
+
var st = y(i, this.clonePosition());
|
|
3141
3141
|
return a === "select" ? {
|
|
3142
3142
|
val: {
|
|
3143
3143
|
type: x.select,
|
|
3144
3144
|
value: n,
|
|
3145
|
-
options:
|
|
3146
|
-
location:
|
|
3145
|
+
options: _t(he.val),
|
|
3146
|
+
location: st
|
|
3147
3147
|
},
|
|
3148
3148
|
err: null
|
|
3149
3149
|
} : {
|
|
3150
3150
|
val: {
|
|
3151
3151
|
type: x.plural,
|
|
3152
3152
|
value: n,
|
|
3153
|
-
options:
|
|
3153
|
+
options: _t(he.val),
|
|
3154
3154
|
offset: $,
|
|
3155
3155
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3156
|
-
location:
|
|
3156
|
+
location: st
|
|
3157
3157
|
},
|
|
3158
3158
|
err: null
|
|
3159
3159
|
};
|
|
3160
3160
|
}
|
|
3161
3161
|
default:
|
|
3162
|
-
return this.error(
|
|
3162
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(o, h));
|
|
3163
3163
|
}
|
|
3164
3164
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3165
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3165
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3166
3166
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3167
3167
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3168
3168
|
var n = this.char();
|
|
@@ -3171,7 +3171,7 @@ var Jn = (
|
|
|
3171
3171
|
this.bump();
|
|
3172
3172
|
var i = this.clonePosition();
|
|
3173
3173
|
if (!this.bumpUntil("'"))
|
|
3174
|
-
return this.error(
|
|
3174
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3175
3175
|
this.bump();
|
|
3176
3176
|
break;
|
|
3177
3177
|
}
|
|
@@ -3203,11 +3203,11 @@ var Jn = (
|
|
|
3203
3203
|
try {
|
|
3204
3204
|
n = Pn(t);
|
|
3205
3205
|
} catch (i) {
|
|
3206
|
-
return this.error(
|
|
3206
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3207
3207
|
}
|
|
3208
3208
|
return {
|
|
3209
3209
|
val: {
|
|
3210
|
-
type:
|
|
3210
|
+
type: X.number,
|
|
3211
3211
|
tokens: n,
|
|
3212
3212
|
location: r,
|
|
3213
3213
|
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
@@ -3217,36 +3217,36 @@ var Jn = (
|
|
|
3217
3217
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3218
3218
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3219
3219
|
if (u.length === 0) {
|
|
3220
|
-
var
|
|
3220
|
+
var c = this.clonePosition();
|
|
3221
3221
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3222
|
-
var
|
|
3223
|
-
if (
|
|
3224
|
-
return
|
|
3225
|
-
l =
|
|
3222
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3223
|
+
if (m.err)
|
|
3224
|
+
return m;
|
|
3225
|
+
l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3226
3226
|
} else
|
|
3227
3227
|
break;
|
|
3228
3228
|
}
|
|
3229
3229
|
if (h.has(u))
|
|
3230
|
-
return this.error(r === "select" ?
|
|
3230
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3231
3231
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3232
|
-
var
|
|
3232
|
+
var d = this.clonePosition();
|
|
3233
3233
|
if (!this.bumpIf("{"))
|
|
3234
|
-
return this.error(r === "select" ?
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3237
|
-
return
|
|
3238
|
-
var
|
|
3239
|
-
if (
|
|
3240
|
-
return
|
|
3234
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3235
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3236
|
+
if (p.err)
|
|
3237
|
+
return p;
|
|
3238
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3239
|
+
if (_.err)
|
|
3240
|
+
return _;
|
|
3241
3241
|
a.push([
|
|
3242
3242
|
u,
|
|
3243
3243
|
{
|
|
3244
|
-
value:
|
|
3245
|
-
location:
|
|
3244
|
+
value: p.val,
|
|
3245
|
+
location: y(d, this.clonePosition())
|
|
3246
3246
|
}
|
|
3247
3247
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3248
3248
|
}
|
|
3249
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3249
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3250
3250
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3251
3251
|
var n = 1, i = this.clonePosition();
|
|
3252
3252
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3257,7 +3257,7 @@ var Jn = (
|
|
|
3257
3257
|
else
|
|
3258
3258
|
break;
|
|
3259
3259
|
}
|
|
3260
|
-
var h =
|
|
3260
|
+
var h = y(i, this.clonePosition());
|
|
3261
3261
|
return s ? (o *= n, Vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3262
3262
|
}, e.prototype.offset = function() {
|
|
3263
3263
|
return this.position.offset;
|
|
@@ -3292,7 +3292,7 @@ var Jn = (
|
|
|
3292
3292
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3293
3293
|
}
|
|
3294
3294
|
}, e.prototype.bumpIf = function(t) {
|
|
3295
|
-
if (
|
|
3295
|
+
if (yt(this.message, t, this.offset())) {
|
|
3296
3296
|
for (var r = 0; r < t.length; r++)
|
|
3297
3297
|
this.bump();
|
|
3298
3298
|
return !0;
|
|
@@ -3349,22 +3349,22 @@ function Ke(e) {
|
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
3351
|
function Kn(e, t) {
|
|
3352
|
-
t === void 0 && (t = {}), t =
|
|
3352
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3353
3353
|
var r = new Jn(e, t).parse();
|
|
3354
3354
|
if (r.err) {
|
|
3355
|
-
var n = SyntaxError(
|
|
3355
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3356
3356
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3357
3357
|
}
|
|
3358
3358
|
return t != null && t.captureLocation || Ke(r.val), r.val;
|
|
3359
3359
|
}
|
|
3360
|
-
var
|
|
3360
|
+
var W;
|
|
3361
3361
|
(function(e) {
|
|
3362
3362
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3363
|
-
})(
|
|
3363
|
+
})(W || (W = {}));
|
|
3364
3364
|
var Ne = (
|
|
3365
3365
|
/** @class */
|
|
3366
3366
|
function(e) {
|
|
3367
|
-
|
|
3367
|
+
Ce(t, e);
|
|
3368
3368
|
function t(r, n, i) {
|
|
3369
3369
|
var s = e.call(this, r) || this;
|
|
3370
3370
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3373,139 +3373,139 @@ var Ne = (
|
|
|
3373
3373
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3374
3374
|
}, t;
|
|
3375
3375
|
}(Error)
|
|
3376
|
-
),
|
|
3376
|
+
), vt = (
|
|
3377
3377
|
/** @class */
|
|
3378
3378
|
function(e) {
|
|
3379
|
-
|
|
3379
|
+
Ce(t, e);
|
|
3380
3380
|
function t(r, n, i, s) {
|
|
3381
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3381
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3382
3382
|
}
|
|
3383
3383
|
return t;
|
|
3384
3384
|
}(Ne)
|
|
3385
3385
|
), ei = (
|
|
3386
3386
|
/** @class */
|
|
3387
3387
|
function(e) {
|
|
3388
|
-
|
|
3388
|
+
Ce(t, e);
|
|
3389
3389
|
function t(r, n, i) {
|
|
3390
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3390
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3391
3391
|
}
|
|
3392
3392
|
return t;
|
|
3393
3393
|
}(Ne)
|
|
3394
3394
|
), ti = (
|
|
3395
3395
|
/** @class */
|
|
3396
3396
|
function(e) {
|
|
3397
|
-
|
|
3397
|
+
Ce(t, e);
|
|
3398
3398
|
function t(r, n) {
|
|
3399
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3399
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3400
3400
|
}
|
|
3401
3401
|
return t;
|
|
3402
3402
|
}(Ne)
|
|
3403
|
-
),
|
|
3403
|
+
), H;
|
|
3404
3404
|
(function(e) {
|
|
3405
3405
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3406
|
-
})(
|
|
3406
|
+
})(H || (H = {}));
|
|
3407
3407
|
function ri(e) {
|
|
3408
3408
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3409
3409
|
var n = t[t.length - 1];
|
|
3410
|
-
return !n || n.type !==
|
|
3410
|
+
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3411
3411
|
}, []);
|
|
3412
3412
|
}
|
|
3413
3413
|
function ni(e) {
|
|
3414
3414
|
return typeof e == "function";
|
|
3415
3415
|
}
|
|
3416
|
-
function
|
|
3417
|
-
if (e.length === 1 &&
|
|
3416
|
+
function ve(e, t, r, n, i, s, o) {
|
|
3417
|
+
if (e.length === 1 && dt(e[0]))
|
|
3418
3418
|
return [
|
|
3419
3419
|
{
|
|
3420
|
-
type:
|
|
3420
|
+
type: H.literal,
|
|
3421
3421
|
value: e[0].value
|
|
3422
3422
|
}
|
|
3423
3423
|
];
|
|
3424
3424
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3425
3425
|
var l = u[h];
|
|
3426
|
-
if (
|
|
3426
|
+
if (dt(l)) {
|
|
3427
3427
|
a.push({
|
|
3428
|
-
type:
|
|
3428
|
+
type: H.literal,
|
|
3429
3429
|
value: l.value
|
|
3430
3430
|
});
|
|
3431
3431
|
continue;
|
|
3432
3432
|
}
|
|
3433
3433
|
if (wn(l)) {
|
|
3434
3434
|
typeof s == "number" && a.push({
|
|
3435
|
-
type:
|
|
3435
|
+
type: H.literal,
|
|
3436
3436
|
value: r.getNumberFormat(t).format(s)
|
|
3437
3437
|
});
|
|
3438
3438
|
continue;
|
|
3439
3439
|
}
|
|
3440
|
-
var
|
|
3441
|
-
if (!(i &&
|
|
3442
|
-
throw new ti(
|
|
3443
|
-
var
|
|
3440
|
+
var c = l.value;
|
|
3441
|
+
if (!(i && c in i))
|
|
3442
|
+
throw new ti(c, o);
|
|
3443
|
+
var m = i[c];
|
|
3444
3444
|
if (Hn(l)) {
|
|
3445
|
-
(!
|
|
3446
|
-
type: typeof
|
|
3447
|
-
value:
|
|
3445
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3446
|
+
type: typeof m == "string" ? H.literal : H.object,
|
|
3447
|
+
value: m
|
|
3448
3448
|
});
|
|
3449
3449
|
continue;
|
|
3450
3450
|
}
|
|
3451
3451
|
if (Kt(l)) {
|
|
3452
|
-
var
|
|
3452
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
|
|
3453
3453
|
a.push({
|
|
3454
|
-
type:
|
|
3455
|
-
value: r.getDateTimeFormat(t,
|
|
3454
|
+
type: H.literal,
|
|
3455
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3456
3456
|
});
|
|
3457
3457
|
continue;
|
|
3458
3458
|
}
|
|
3459
3459
|
if (er(l)) {
|
|
3460
|
-
var
|
|
3460
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3461
3461
|
a.push({
|
|
3462
|
-
type:
|
|
3463
|
-
value: r.getDateTimeFormat(t,
|
|
3462
|
+
type: H.literal,
|
|
3463
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3464
3464
|
});
|
|
3465
3465
|
continue;
|
|
3466
3466
|
}
|
|
3467
3467
|
if (Yt(l)) {
|
|
3468
|
-
var
|
|
3469
|
-
|
|
3470
|
-
type:
|
|
3471
|
-
value: r.getNumberFormat(t,
|
|
3468
|
+
var d = typeof l.style == "string" ? n.number[l.style] : ir(l.style) ? l.style.parsedOptions : void 0;
|
|
3469
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3470
|
+
type: H.literal,
|
|
3471
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3472
3472
|
});
|
|
3473
3473
|
continue;
|
|
3474
3474
|
}
|
|
3475
3475
|
if (nr(l)) {
|
|
3476
|
-
var
|
|
3476
|
+
var p = l.children, _ = l.value, v = i[_];
|
|
3477
3477
|
if (!ni(v))
|
|
3478
|
-
throw new ei(
|
|
3479
|
-
var
|
|
3478
|
+
throw new ei(_, "function", o);
|
|
3479
|
+
var E = ve(p, t, r, n, i, s), f = v(E.map(function($) {
|
|
3480
3480
|
return $.value;
|
|
3481
3481
|
}));
|
|
3482
|
-
Array.isArray(
|
|
3482
|
+
Array.isArray(f) || (f = [f]), a.push.apply(a, f.map(function($) {
|
|
3483
3483
|
return {
|
|
3484
|
-
type: typeof $ == "string" ?
|
|
3484
|
+
type: typeof $ == "string" ? H.literal : H.object,
|
|
3485
3485
|
value: $
|
|
3486
3486
|
};
|
|
3487
3487
|
}));
|
|
3488
3488
|
}
|
|
3489
3489
|
if (tr(l)) {
|
|
3490
|
-
var
|
|
3491
|
-
if (!
|
|
3492
|
-
throw new
|
|
3493
|
-
a.push.apply(a,
|
|
3490
|
+
var g = l.options[m] || l.options.other;
|
|
3491
|
+
if (!g)
|
|
3492
|
+
throw new vt(l.value, m, Object.keys(l.options), o);
|
|
3493
|
+
a.push.apply(a, ve(g.value, t, r, n, i));
|
|
3494
3494
|
continue;
|
|
3495
3495
|
}
|
|
3496
3496
|
if (rr(l)) {
|
|
3497
|
-
var
|
|
3498
|
-
if (!
|
|
3497
|
+
var g = l.options["=".concat(m)];
|
|
3498
|
+
if (!g) {
|
|
3499
3499
|
if (!Intl.PluralRules)
|
|
3500
3500
|
throw new Ne(`Intl.PluralRules is not available in this environment.
|
|
3501
3501
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3502
|
-
`,
|
|
3503
|
-
var
|
|
3504
|
-
|
|
3502
|
+
`, W.MISSING_INTL_API, o);
|
|
3503
|
+
var B = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
3504
|
+
g = l.options[B] || l.options.other;
|
|
3505
3505
|
}
|
|
3506
|
-
if (!
|
|
3507
|
-
throw new
|
|
3508
|
-
a.push.apply(a,
|
|
3506
|
+
if (!g)
|
|
3507
|
+
throw new vt(l.value, m, Object.keys(l.options), o);
|
|
3508
|
+
a.push.apply(a, ve(g.value, t, r, n, i, m - (l.offset || 0)));
|
|
3509
3509
|
continue;
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
@@ -3581,12 +3581,12 @@ var fr = (
|
|
|
3581
3581
|
var u = s.formatToParts(h);
|
|
3582
3582
|
if (u.length === 1)
|
|
3583
3583
|
return u[0].value;
|
|
3584
|
-
var l = u.reduce(function(
|
|
3585
|
-
return !
|
|
3584
|
+
var l = u.reduce(function(c, m) {
|
|
3585
|
+
return !c.length || m.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3586
3586
|
}, []);
|
|
3587
3587
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3588
3588
|
}, this.formatToParts = function(h) {
|
|
3589
|
-
return
|
|
3589
|
+
return ve(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3590
3590
|
}, this.resolvedOptions = function() {
|
|
3591
3591
|
var h;
|
|
3592
3592
|
return {
|
|
@@ -3700,25 +3700,25 @@ function ai(e, t) {
|
|
|
3700
3700
|
n = void 0;
|
|
3701
3701
|
return n;
|
|
3702
3702
|
}
|
|
3703
|
-
const
|
|
3703
|
+
const N = {}, ui = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), mr = (e, t) => {
|
|
3704
3704
|
if (t == null)
|
|
3705
3705
|
return;
|
|
3706
|
-
if (t in
|
|
3707
|
-
return
|
|
3708
|
-
const r =
|
|
3706
|
+
if (t in N && e in N[t])
|
|
3707
|
+
return N[t][e];
|
|
3708
|
+
const r = le(t);
|
|
3709
3709
|
for (let n = 0; n < r.length; n++) {
|
|
3710
3710
|
const i = r[n], s = hi(i, e);
|
|
3711
3711
|
if (s)
|
|
3712
3712
|
return ui(e, t, s);
|
|
3713
3713
|
}
|
|
3714
3714
|
};
|
|
3715
|
-
let
|
|
3716
|
-
const
|
|
3715
|
+
let nt;
|
|
3716
|
+
const ue = Ie({});
|
|
3717
3717
|
function li(e) {
|
|
3718
|
-
return
|
|
3718
|
+
return nt[e] || null;
|
|
3719
3719
|
}
|
|
3720
3720
|
function dr(e) {
|
|
3721
|
-
return e in
|
|
3721
|
+
return e in nt;
|
|
3722
3722
|
}
|
|
3723
3723
|
function hi(e, t) {
|
|
3724
3724
|
if (!dr(e))
|
|
@@ -3729,7 +3729,7 @@ function hi(e, t) {
|
|
|
3729
3729
|
function ci(e) {
|
|
3730
3730
|
if (e == null)
|
|
3731
3731
|
return;
|
|
3732
|
-
const t =
|
|
3732
|
+
const t = le(e);
|
|
3733
3733
|
for (let r = 0; r < t.length; r++) {
|
|
3734
3734
|
const n = t[r];
|
|
3735
3735
|
if (dr(n))
|
|
@@ -3737,28 +3737,28 @@ function ci(e) {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
}
|
|
3739
3739
|
function pr(e, ...t) {
|
|
3740
|
-
delete
|
|
3740
|
+
delete N[e], ue.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
|
3741
3741
|
}
|
|
3742
3742
|
q(
|
|
3743
|
-
[
|
|
3743
|
+
[ue],
|
|
3744
3744
|
([e]) => Object.keys(e)
|
|
3745
3745
|
);
|
|
3746
|
-
|
|
3747
|
-
const
|
|
3746
|
+
ue.subscribe((e) => nt = e);
|
|
3747
|
+
const xe = {};
|
|
3748
3748
|
function fi(e, t) {
|
|
3749
|
-
|
|
3749
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3750
3750
|
}
|
|
3751
3751
|
function gr(e) {
|
|
3752
|
-
return
|
|
3752
|
+
return xe[e];
|
|
3753
3753
|
}
|
|
3754
3754
|
function mi(e) {
|
|
3755
|
-
return
|
|
3755
|
+
return le(e).map((t) => {
|
|
3756
3756
|
const r = gr(t);
|
|
3757
3757
|
return [t, r ? [...r] : []];
|
|
3758
3758
|
}).filter(([, t]) => t.length > 0);
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3761
|
-
return e == null ? !1 :
|
|
3760
|
+
function Be(e) {
|
|
3761
|
+
return e == null ? !1 : le(e).some(
|
|
3762
3762
|
(t) => {
|
|
3763
3763
|
var r;
|
|
3764
3764
|
return (r = gr(t)) == null ? void 0 : r.size;
|
|
@@ -3772,7 +3772,7 @@ function di(e, t) {
|
|
|
3772
3772
|
}
|
|
3773
3773
|
const K = {};
|
|
3774
3774
|
function br(e) {
|
|
3775
|
-
if (!
|
|
3775
|
+
if (!Be(e))
|
|
3776
3776
|
return e in K ? K[e] : Promise.resolve();
|
|
3777
3777
|
const t = mi(e);
|
|
3778
3778
|
return K[e] = Promise.all(
|
|
@@ -3780,17 +3780,17 @@ function br(e) {
|
|
|
3780
3780
|
([r, n]) => di(r, n)
|
|
3781
3781
|
)
|
|
3782
3782
|
).then(() => {
|
|
3783
|
-
if (
|
|
3783
|
+
if (Be(e))
|
|
3784
3784
|
return br(e);
|
|
3785
3785
|
delete K[e];
|
|
3786
3786
|
}), K[e];
|
|
3787
3787
|
}
|
|
3788
|
-
var
|
|
3788
|
+
var xt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
|
|
3789
3789
|
var r = {};
|
|
3790
3790
|
for (var n in e)
|
|
3791
3791
|
pi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3792
|
-
if (e != null &&
|
|
3793
|
-
for (var n of
|
|
3792
|
+
if (e != null && xt)
|
|
3793
|
+
for (var n of xt(e))
|
|
3794
3794
|
t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
|
|
3795
3795
|
return r;
|
|
3796
3796
|
};
|
|
@@ -3826,9 +3826,9 @@ const yi = {
|
|
|
3826
3826
|
};
|
|
3827
3827
|
function _i({ locale: e, id: t }) {
|
|
3828
3828
|
console.warn(
|
|
3829
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3829
|
+
`[svelte-i18n] The message "${t}" was not found in "${le(
|
|
3830
3830
|
e
|
|
3831
|
-
).join('", "')}".${
|
|
3831
|
+
).join('", "')}".${Be(M()) ? `
|
|
3832
3832
|
|
|
3833
3833
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3834
3834
|
);
|
|
@@ -3841,7 +3841,7 @@ const Ei = {
|
|
|
3841
3841
|
handleMissingMessage: void 0,
|
|
3842
3842
|
ignoreTag: !0
|
|
3843
3843
|
}, te = Ei;
|
|
3844
|
-
function
|
|
3844
|
+
function Z() {
|
|
3845
3845
|
return te;
|
|
3846
3846
|
}
|
|
3847
3847
|
function vi(e) {
|
|
@@ -3857,47 +3857,47 @@ function vi(e) {
|
|
|
3857
3857
|
}
|
|
3858
3858
|
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = _i : console.warn(
|
|
3859
3859
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3860
|
-
)), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)),
|
|
3860
|
+
)), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)), D.set(i);
|
|
3861
3861
|
}
|
|
3862
|
-
const je =
|
|
3863
|
-
var xi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors,
|
|
3862
|
+
const je = Ie(!1);
|
|
3863
|
+
var xi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
3864
3864
|
for (var r in t || (t = {}))
|
|
3865
|
-
wi.call(t, r) &&
|
|
3866
|
-
if (
|
|
3867
|
-
for (var r of
|
|
3868
|
-
Si.call(t, r) &&
|
|
3865
|
+
wi.call(t, r) && Ht(e, r, t[r]);
|
|
3866
|
+
if (Tt)
|
|
3867
|
+
for (var r of Tt(t))
|
|
3868
|
+
Si.call(t, r) && Ht(e, r, t[r]);
|
|
3869
3869
|
return e;
|
|
3870
3870
|
}, Ai = (e, t) => Ti(e, Hi(t));
|
|
3871
3871
|
let et;
|
|
3872
|
-
const
|
|
3873
|
-
function
|
|
3872
|
+
const Ae = Ie(null);
|
|
3873
|
+
function wt(e) {
|
|
3874
3874
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3875
3875
|
}
|
|
3876
|
-
function
|
|
3877
|
-
const r =
|
|
3878
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3876
|
+
function le(e, t = Z().fallbackLocale) {
|
|
3877
|
+
const r = wt(e);
|
|
3878
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
3879
3879
|
}
|
|
3880
3880
|
function M() {
|
|
3881
3881
|
return et != null ? et : void 0;
|
|
3882
3882
|
}
|
|
3883
|
-
|
|
3883
|
+
Ae.subscribe((e) => {
|
|
3884
3884
|
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3885
3885
|
});
|
|
3886
3886
|
const Pi = (e) => {
|
|
3887
|
-
if (e && ci(e) &&
|
|
3888
|
-
const { loadingDelay: t } =
|
|
3887
|
+
if (e && ci(e) && Be(e)) {
|
|
3888
|
+
const { loadingDelay: t } = Z();
|
|
3889
3889
|
let r;
|
|
3890
3890
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
3891
3891
|
() => je.set(!0),
|
|
3892
3892
|
t
|
|
3893
3893
|
) : je.set(!0), br(e).then(() => {
|
|
3894
|
-
|
|
3894
|
+
Ae.set(e);
|
|
3895
3895
|
}).finally(() => {
|
|
3896
3896
|
clearTimeout(r), je.set(!1);
|
|
3897
3897
|
});
|
|
3898
3898
|
}
|
|
3899
|
-
return
|
|
3900
|
-
},
|
|
3899
|
+
return Ae.set(e);
|
|
3900
|
+
}, D = Ai(Bi({}, Ae), {
|
|
3901
3901
|
set: Pi
|
|
3902
3902
|
}), Le = (e) => {
|
|
3903
3903
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3906,35 +3906,35 @@ const Pi = (e) => {
|
|
|
3906
3906
|
return i in t ? t[i] : t[i] = e(n);
|
|
3907
3907
|
};
|
|
3908
3908
|
};
|
|
3909
|
-
var Oi = Object.defineProperty,
|
|
3909
|
+
var Oi = Object.defineProperty, Pe = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
3910
3910
|
for (var r in t || (t = {}))
|
|
3911
|
-
yr.call(t, r) &&
|
|
3912
|
-
if (
|
|
3913
|
-
for (var r of
|
|
3914
|
-
_r.call(t, r) &&
|
|
3911
|
+
yr.call(t, r) && St(e, r, t[r]);
|
|
3912
|
+
if (Pe)
|
|
3913
|
+
for (var r of Pe(t))
|
|
3914
|
+
_r.call(t, r) && St(e, r, t[r]);
|
|
3915
3915
|
return e;
|
|
3916
3916
|
}, Q = (e, t) => {
|
|
3917
3917
|
var r = {};
|
|
3918
3918
|
for (var n in e)
|
|
3919
3919
|
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3920
|
-
if (e != null &&
|
|
3921
|
-
for (var n of
|
|
3920
|
+
if (e != null && Pe)
|
|
3921
|
+
for (var n of Pe(e))
|
|
3922
3922
|
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
3923
3923
|
return r;
|
|
3924
3924
|
};
|
|
3925
3925
|
const oe = (e, t) => {
|
|
3926
|
-
const { formats: r } =
|
|
3926
|
+
const { formats: r } = Z();
|
|
3927
3927
|
if (e in r && t in r[e])
|
|
3928
3928
|
return r[e][t];
|
|
3929
3929
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3930
|
-
},
|
|
3930
|
+
}, Ii = Le(
|
|
3931
3931
|
(e) => {
|
|
3932
3932
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3933
3933
|
if (r == null)
|
|
3934
3934
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3935
3935
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3936
3936
|
}
|
|
3937
|
-
),
|
|
3937
|
+
), Ci = Le(
|
|
3938
3938
|
(e) => {
|
|
3939
3939
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3940
3940
|
if (r == null)
|
|
@@ -3956,25 +3956,25 @@ const oe = (e, t) => {
|
|
|
3956
3956
|
} = t, n = Q(t, [
|
|
3957
3957
|
"locale"
|
|
3958
3958
|
]);
|
|
3959
|
-
return
|
|
3959
|
+
return Ii(it({ locale: r }, n));
|
|
3960
3960
|
}, Mi = (e = {}) => {
|
|
3961
3961
|
var t = e, {
|
|
3962
3962
|
locale: r = M()
|
|
3963
3963
|
} = t, n = Q(t, [
|
|
3964
3964
|
"locale"
|
|
3965
3965
|
]);
|
|
3966
|
-
return
|
|
3966
|
+
return Ci(it({ locale: r }, n));
|
|
3967
3967
|
}, $i = (e = {}) => {
|
|
3968
3968
|
var t = e, {
|
|
3969
3969
|
locale: r = M()
|
|
3970
3970
|
} = t, n = Q(t, [
|
|
3971
3971
|
"locale"
|
|
3972
3972
|
]);
|
|
3973
|
-
return Ni(
|
|
3973
|
+
return Ni(it({ locale: r }, n));
|
|
3974
3974
|
}, Ri = Le(
|
|
3975
3975
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3976
|
-
(e, t = M()) => new fr(e, t,
|
|
3977
|
-
ignoreTag:
|
|
3976
|
+
(e, t = M()) => new fr(e, t, Z().formats, {
|
|
3977
|
+
ignoreTag: Z().ignoreTag
|
|
3978
3978
|
})
|
|
3979
3979
|
), Di = (e, t = {}) => {
|
|
3980
3980
|
var r, n, i, s;
|
|
@@ -3991,28 +3991,28 @@ const oe = (e, t) => {
|
|
|
3991
3991
|
);
|
|
3992
3992
|
let l = mr(e, h);
|
|
3993
3993
|
if (!l)
|
|
3994
|
-
l = (s = (i = (n = (r =
|
|
3994
|
+
l = (s = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3995
3995
|
else if (typeof l != "string")
|
|
3996
3996
|
return console.warn(
|
|
3997
3997
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3998
3998
|
), l;
|
|
3999
3999
|
if (!a)
|
|
4000
4000
|
return l;
|
|
4001
|
-
let
|
|
4001
|
+
let c = l;
|
|
4002
4002
|
try {
|
|
4003
|
-
|
|
4004
|
-
} catch (
|
|
4005
|
-
|
|
4003
|
+
c = Ri(l, h).format(a);
|
|
4004
|
+
} catch (m) {
|
|
4005
|
+
m instanceof Error && console.warn(
|
|
4006
4006
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4007
|
-
|
|
4007
|
+
m.message
|
|
4008
4008
|
);
|
|
4009
4009
|
}
|
|
4010
|
-
return
|
|
4011
|
-
}, Ui = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), ki = (e, t) => Li(t).format(e), Fi = (e, t = M()) => mr(e, t), ji = q([
|
|
4012
|
-
q([
|
|
4013
|
-
q([
|
|
4014
|
-
q([
|
|
4015
|
-
q([
|
|
4010
|
+
return c;
|
|
4011
|
+
}, Ui = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), ki = (e, t) => Li(t).format(e), Fi = (e, t = M()) => mr(e, t), ji = q([D, ue], () => Di);
|
|
4012
|
+
q([D], () => Ui);
|
|
4013
|
+
q([D], () => Gi);
|
|
4014
|
+
q([D], () => ki);
|
|
4015
|
+
q([D, ue], () => Fi);
|
|
4016
4016
|
function zi(e, t) {
|
|
4017
4017
|
if (e) {
|
|
4018
4018
|
const r = document.createElement("style");
|
|
@@ -4038,15 +4038,15 @@ function Xi(e, t, r) {
|
|
|
4038
4038
|
});
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function Bt(e, t) {
|
|
4042
4042
|
pr(e, t);
|
|
4043
4043
|
}
|
|
4044
4044
|
function Wi(e) {
|
|
4045
4045
|
vi({
|
|
4046
4046
|
fallbackLocale: "en"
|
|
4047
|
-
}),
|
|
4047
|
+
}), D.set(e);
|
|
4048
4048
|
}
|
|
4049
|
-
const
|
|
4049
|
+
const At = {
|
|
4050
4050
|
en: {
|
|
4051
4051
|
errorGeneralTitle: "Error Occurred",
|
|
4052
4052
|
errorGeneralText: "Something went wrong",
|
|
@@ -4103,71 +4103,49 @@ const Pt = {
|
|
|
4103
4103
|
function Zi(e) {
|
|
4104
4104
|
Pr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
|
|
4105
4105
|
}
|
|
4106
|
-
const Ji = (e) => ({}),
|
|
4107
|
-
function
|
|
4106
|
+
const Ji = (e) => ({}), Pt = (e) => ({}), qi = (e) => ({}), Ot = (e) => ({}), Qi = (e) => ({}), It = (e) => ({}), Yi = (e) => ({}), Ct = (e) => ({ class: "CashierErrorIcon" });
|
|
4107
|
+
function Nt(e) {
|
|
4108
4108
|
let t, r;
|
|
4109
4109
|
return {
|
|
4110
4110
|
c() {
|
|
4111
|
-
t =
|
|
4112
|
-
e[0]}/error-general-icon.png`) ||
|
|
4111
|
+
t = O("ui-image"), ct(t.src, r = `${/*assetsurl*/
|
|
4112
|
+
e[0]}/error-general-icon.png`) || ge(t, "src", r), ge(t, "width", "300px"), ge(t, "alt", "error");
|
|
4113
4113
|
},
|
|
4114
4114
|
m(n, i) {
|
|
4115
|
-
|
|
4115
|
+
J(n, t, i);
|
|
4116
4116
|
},
|
|
4117
4117
|
p(n, i) {
|
|
4118
4118
|
i & /*assetsurl*/
|
|
4119
|
-
1 && !
|
|
4120
|
-
n[0]}/error-general-icon.png`) &&
|
|
4119
|
+
1 && !ct(t.src, r = `${/*assetsurl*/
|
|
4120
|
+
n[0]}/error-general-icon.png`) && ge(t, "src", r);
|
|
4121
4121
|
},
|
|
4122
4122
|
d(n) {
|
|
4123
|
-
n &&
|
|
4123
|
+
n && L(t);
|
|
4124
4124
|
}
|
|
4125
4125
|
};
|
|
4126
4126
|
}
|
|
4127
4127
|
function Ki(e) {
|
|
4128
4128
|
let t, r = (
|
|
4129
4129
|
/*assetsurl*/
|
|
4130
|
-
e[0] &&
|
|
4130
|
+
e[0] && Nt(e)
|
|
4131
4131
|
);
|
|
4132
4132
|
return {
|
|
4133
4133
|
c() {
|
|
4134
|
-
r && r.c(), t =
|
|
4134
|
+
r && r.c(), t = Ir();
|
|
4135
4135
|
},
|
|
4136
4136
|
m(n, i) {
|
|
4137
|
-
r && r.m(n, i),
|
|
4137
|
+
r && r.m(n, i), J(n, t, i);
|
|
4138
4138
|
},
|
|
4139
4139
|
p(n, i) {
|
|
4140
4140
|
/*assetsurl*/
|
|
4141
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
4141
|
+
n[0] ? r ? r.p(n, i) : (r = Nt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4142
4142
|
},
|
|
4143
4143
|
d(n) {
|
|
4144
|
-
n &&
|
|
4144
|
+
n && L(t), r && r.d(n);
|
|
4145
4145
|
}
|
|
4146
4146
|
};
|
|
4147
4147
|
}
|
|
4148
4148
|
function es(e) {
|
|
4149
|
-
let t, r = (
|
|
4150
|
-
/*$_*/
|
|
4151
|
-
e[3]("errorGeneralTitle") + ""
|
|
4152
|
-
), n;
|
|
4153
|
-
return {
|
|
4154
|
-
c() {
|
|
4155
|
-
t = P("span"), n = ue(r), R(t, "class", "CashierErrorTitle");
|
|
4156
|
-
},
|
|
4157
|
-
m(i, s) {
|
|
4158
|
-
U(i, t, s), C(t, n);
|
|
4159
|
-
},
|
|
4160
|
-
p(i, s) {
|
|
4161
|
-
s & /*$_*/
|
|
4162
|
-
8 && r !== (r = /*$_*/
|
|
4163
|
-
i[3]("errorGeneralTitle") + "") && nt(n, r);
|
|
4164
|
-
},
|
|
4165
|
-
d(i) {
|
|
4166
|
-
i && I(t);
|
|
4167
|
-
}
|
|
4168
|
-
};
|
|
4169
|
-
}
|
|
4170
|
-
function ts(e) {
|
|
4171
4149
|
let t, r = (
|
|
4172
4150
|
/*$_*/
|
|
4173
4151
|
e[3](`${/*errorcode*/
|
|
@@ -4175,33 +4153,33 @@ function ts(e) {
|
|
|
4175
4153
|
), n;
|
|
4176
4154
|
return {
|
|
4177
4155
|
c() {
|
|
4178
|
-
t =
|
|
4156
|
+
t = O("span"), n = Oe(r), z(t, "class", "CashierErrorText");
|
|
4179
4157
|
},
|
|
4180
4158
|
m(i, s) {
|
|
4181
|
-
|
|
4159
|
+
J(i, t, s), I(t, n);
|
|
4182
4160
|
},
|
|
4183
4161
|
p(i, s) {
|
|
4184
4162
|
s & /*$_, errorcode*/
|
|
4185
4163
|
10 && r !== (r = /*$_*/
|
|
4186
4164
|
i[3](`${/*errorcode*/
|
|
4187
|
-
i[1] || "errorGeneralText"}`) + "") &&
|
|
4165
|
+
i[1] || "errorGeneralText"}`) + "") && zt(n, r);
|
|
4188
4166
|
},
|
|
4189
4167
|
d(i) {
|
|
4190
|
-
i &&
|
|
4168
|
+
i && L(t);
|
|
4191
4169
|
}
|
|
4192
4170
|
};
|
|
4193
4171
|
}
|
|
4194
|
-
function
|
|
4172
|
+
function ts(e) {
|
|
4195
4173
|
let t, r, n = (
|
|
4196
4174
|
/*$_*/
|
|
4197
4175
|
e[3]("errorGeneralButton") + ""
|
|
4198
4176
|
), i, s, o;
|
|
4199
4177
|
return {
|
|
4200
4178
|
c() {
|
|
4201
|
-
t =
|
|
4179
|
+
t = O("button"), r = O("span"), i = Oe(n), z(t, "class", "CashierErrorButton");
|
|
4202
4180
|
},
|
|
4203
4181
|
m(a, h) {
|
|
4204
|
-
|
|
4182
|
+
J(a, t, h), I(t, r), I(r, i), s || (o = Cr(
|
|
4205
4183
|
t,
|
|
4206
4184
|
"click",
|
|
4207
4185
|
/*close*/
|
|
@@ -4211,200 +4189,199 @@ function rs(e) {
|
|
|
4211
4189
|
p(a, h) {
|
|
4212
4190
|
h & /*$_*/
|
|
4213
4191
|
8 && n !== (n = /*$_*/
|
|
4214
|
-
a[3]("errorGeneralButton") + "") &&
|
|
4192
|
+
a[3]("errorGeneralButton") + "") && zt(i, n);
|
|
4215
4193
|
},
|
|
4216
4194
|
d(a) {
|
|
4217
|
-
a &&
|
|
4195
|
+
a && L(t), s = !1, o();
|
|
4218
4196
|
}
|
|
4219
4197
|
};
|
|
4220
4198
|
}
|
|
4221
|
-
function
|
|
4199
|
+
function rs(e) {
|
|
4222
4200
|
let t, r, n, i, s, o;
|
|
4223
4201
|
const a = (
|
|
4224
4202
|
/*#slots*/
|
|
4225
4203
|
e[11].icon
|
|
4226
|
-
), h =
|
|
4204
|
+
), h = fe(
|
|
4227
4205
|
a,
|
|
4228
4206
|
e,
|
|
4229
4207
|
/*$$scope*/
|
|
4230
4208
|
e[10],
|
|
4231
|
-
|
|
4209
|
+
Ct
|
|
4232
4210
|
), u = h || Ki(e), l = (
|
|
4233
4211
|
/*#slots*/
|
|
4234
4212
|
e[11].title
|
|
4235
|
-
),
|
|
4213
|
+
), c = fe(
|
|
4236
4214
|
l,
|
|
4237
4215
|
e,
|
|
4238
4216
|
/*$$scope*/
|
|
4239
4217
|
e[10],
|
|
4240
4218
|
It
|
|
4241
|
-
),
|
|
4219
|
+
), m = (
|
|
4242
4220
|
/*#slots*/
|
|
4243
4221
|
e[11].text
|
|
4244
|
-
),
|
|
4245
|
-
|
|
4222
|
+
), d = fe(
|
|
4223
|
+
m,
|
|
4246
4224
|
e,
|
|
4247
4225
|
/*$$scope*/
|
|
4248
4226
|
e[10],
|
|
4249
|
-
|
|
4250
|
-
),
|
|
4227
|
+
Ot
|
|
4228
|
+
), p = d || es(e), _ = (
|
|
4251
4229
|
/*#slots*/
|
|
4252
4230
|
e[11].button
|
|
4253
|
-
),
|
|
4254
|
-
|
|
4231
|
+
), v = fe(
|
|
4232
|
+
_,
|
|
4255
4233
|
e,
|
|
4256
4234
|
/*$$scope*/
|
|
4257
4235
|
e[10],
|
|
4258
|
-
|
|
4259
|
-
),
|
|
4236
|
+
Pt
|
|
4237
|
+
), E = v || ts(e);
|
|
4260
4238
|
return {
|
|
4261
4239
|
c() {
|
|
4262
|
-
t =
|
|
4240
|
+
t = O("div"), r = O("div"), u && u.c(), n = $e(), c && c.c(), i = $e(), p && p.c(), s = $e(), E && E.c(), z(r, "class", "CashierErrorContent"), z(t, "class", "CashierError");
|
|
4263
4241
|
},
|
|
4264
|
-
m(
|
|
4265
|
-
|
|
4242
|
+
m(f, g) {
|
|
4243
|
+
J(f, t, g), I(t, r), u && u.m(r, null), I(r, n), c && c.m(r, null), I(r, i), p && p.m(r, null), I(r, s), E && E.m(r, null), e[12](t), o = !0;
|
|
4266
4244
|
},
|
|
4267
|
-
p(
|
|
4268
|
-
h ? h.p && (!o ||
|
|
4269
|
-
1024) &&
|
|
4245
|
+
p(f, [g]) {
|
|
4246
|
+
h ? h.p && (!o || g & /*$$scope*/
|
|
4247
|
+
1024) && de(
|
|
4270
4248
|
h,
|
|
4271
4249
|
a,
|
|
4272
|
-
|
|
4250
|
+
f,
|
|
4273
4251
|
/*$$scope*/
|
|
4274
|
-
|
|
4275
|
-
o ?
|
|
4252
|
+
f[10],
|
|
4253
|
+
o ? me(
|
|
4276
4254
|
a,
|
|
4277
4255
|
/*$$scope*/
|
|
4278
|
-
|
|
4279
|
-
|
|
4256
|
+
f[10],
|
|
4257
|
+
g,
|
|
4280
4258
|
Yi
|
|
4281
|
-
) :
|
|
4259
|
+
) : pe(
|
|
4282
4260
|
/*$$scope*/
|
|
4283
|
-
|
|
4261
|
+
f[10]
|
|
4284
4262
|
),
|
|
4285
|
-
|
|
4286
|
-
) : u && u.p && (!o ||
|
|
4287
|
-
1) && u.p(
|
|
4288
|
-
1024) &&
|
|
4289
|
-
|
|
4263
|
+
Ct
|
|
4264
|
+
) : u && u.p && (!o || g & /*assetsurl*/
|
|
4265
|
+
1) && u.p(f, o ? g : -1), c && c.p && (!o || g & /*$$scope*/
|
|
4266
|
+
1024) && de(
|
|
4267
|
+
c,
|
|
4290
4268
|
l,
|
|
4291
|
-
|
|
4269
|
+
f,
|
|
4292
4270
|
/*$$scope*/
|
|
4293
|
-
|
|
4294
|
-
o ?
|
|
4271
|
+
f[10],
|
|
4272
|
+
o ? me(
|
|
4295
4273
|
l,
|
|
4296
4274
|
/*$$scope*/
|
|
4297
|
-
|
|
4298
|
-
|
|
4275
|
+
f[10],
|
|
4276
|
+
g,
|
|
4299
4277
|
Qi
|
|
4300
|
-
) :
|
|
4278
|
+
) : pe(
|
|
4301
4279
|
/*$$scope*/
|
|
4302
|
-
|
|
4280
|
+
f[10]
|
|
4303
4281
|
),
|
|
4304
4282
|
It
|
|
4305
|
-
)
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
b,
|
|
4309
|
-
p,
|
|
4283
|
+
), d ? d.p && (!o || g & /*$$scope*/
|
|
4284
|
+
1024) && de(
|
|
4285
|
+
d,
|
|
4310
4286
|
m,
|
|
4287
|
+
f,
|
|
4311
4288
|
/*$$scope*/
|
|
4312
|
-
|
|
4313
|
-
o ?
|
|
4314
|
-
|
|
4289
|
+
f[10],
|
|
4290
|
+
o ? me(
|
|
4291
|
+
m,
|
|
4315
4292
|
/*$$scope*/
|
|
4316
|
-
|
|
4317
|
-
|
|
4293
|
+
f[10],
|
|
4294
|
+
g,
|
|
4318
4295
|
qi
|
|
4319
|
-
) :
|
|
4296
|
+
) : pe(
|
|
4320
4297
|
/*$$scope*/
|
|
4321
|
-
|
|
4298
|
+
f[10]
|
|
4322
4299
|
),
|
|
4323
|
-
|
|
4324
|
-
) :
|
|
4325
|
-
10) &&
|
|
4326
|
-
1024) &&
|
|
4327
|
-
T,
|
|
4300
|
+
Ot
|
|
4301
|
+
) : p && p.p && (!o || g & /*$_, errorcode*/
|
|
4302
|
+
10) && p.p(f, o ? g : -1), v ? v.p && (!o || g & /*$$scope*/
|
|
4303
|
+
1024) && de(
|
|
4328
4304
|
v,
|
|
4329
|
-
|
|
4305
|
+
_,
|
|
4306
|
+
f,
|
|
4330
4307
|
/*$$scope*/
|
|
4331
|
-
|
|
4332
|
-
o ?
|
|
4333
|
-
|
|
4308
|
+
f[10],
|
|
4309
|
+
o ? me(
|
|
4310
|
+
_,
|
|
4334
4311
|
/*$$scope*/
|
|
4335
|
-
|
|
4336
|
-
|
|
4312
|
+
f[10],
|
|
4313
|
+
g,
|
|
4337
4314
|
Ji
|
|
4338
|
-
) :
|
|
4315
|
+
) : pe(
|
|
4339
4316
|
/*$$scope*/
|
|
4340
|
-
|
|
4317
|
+
f[10]
|
|
4341
4318
|
),
|
|
4342
|
-
|
|
4343
|
-
) :
|
|
4344
|
-
8) &&
|
|
4319
|
+
Pt
|
|
4320
|
+
) : E && E.p && (!o || g & /*$_*/
|
|
4321
|
+
8) && E.p(f, o ? g : -1);
|
|
4345
4322
|
},
|
|
4346
|
-
i(
|
|
4347
|
-
o || (ee(u,
|
|
4323
|
+
i(f) {
|
|
4324
|
+
o || (ee(u, f), ee(c, f), ee(p, f), ee(E, f), o = !0);
|
|
4348
4325
|
},
|
|
4349
|
-
o(
|
|
4350
|
-
|
|
4326
|
+
o(f) {
|
|
4327
|
+
be(u, f), be(c, f), be(p, f), be(E, f), o = !1;
|
|
4351
4328
|
},
|
|
4352
|
-
d(
|
|
4353
|
-
|
|
4329
|
+
d(f) {
|
|
4330
|
+
f && L(t), u && u.d(f), c && c.d(f), p && p.d(f), E && E.d(f), e[12](null);
|
|
4354
4331
|
}
|
|
4355
4332
|
};
|
|
4356
4333
|
}
|
|
4357
|
-
function
|
|
4334
|
+
function ns(e, t, r) {
|
|
4358
4335
|
let n;
|
|
4359
|
-
Ar(e, ji, (
|
|
4360
|
-
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4361
|
-
const
|
|
4336
|
+
Ar(e, ji, (f) => r(3, n = f));
|
|
4337
|
+
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: m = "" } = t, d;
|
|
4338
|
+
const p = () => {
|
|
4362
4339
|
Wi(a);
|
|
4363
|
-
},
|
|
4364
|
-
fetch(
|
|
4365
|
-
Object.keys(
|
|
4366
|
-
|
|
4340
|
+
}, _ = () => {
|
|
4341
|
+
fetch(c).then((g) => g.json()).then((g) => {
|
|
4342
|
+
Object.keys(g).forEach((B) => {
|
|
4343
|
+
Bt(B, g[B]);
|
|
4367
4344
|
});
|
|
4368
|
-
}).catch((
|
|
4369
|
-
console.error(
|
|
4345
|
+
}).catch((g) => {
|
|
4346
|
+
console.error(g);
|
|
4370
4347
|
});
|
|
4371
4348
|
};
|
|
4372
|
-
Object.keys(
|
|
4373
|
-
|
|
4349
|
+
Object.keys(At).forEach((f) => {
|
|
4350
|
+
Bt(f, At[f]);
|
|
4374
4351
|
});
|
|
4375
4352
|
const v = () => {
|
|
4376
4353
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4377
4354
|
};
|
|
4378
4355
|
Gr(() => () => {
|
|
4379
4356
|
});
|
|
4380
|
-
function
|
|
4381
|
-
Ve[
|
|
4382
|
-
|
|
4357
|
+
function E(f) {
|
|
4358
|
+
Ve[f ? "unshift" : "push"](() => {
|
|
4359
|
+
d = f, r(2, d);
|
|
4383
4360
|
});
|
|
4384
4361
|
}
|
|
4385
|
-
return e.$$set = (
|
|
4386
|
-
"assetsurl" in
|
|
4362
|
+
return e.$$set = (f) => {
|
|
4363
|
+
"assetsurl" in f && r(0, o = f.assetsurl), "lang" in f && r(5, a = f.lang), "errorcode" in f && r(1, h = f.errorcode), "clientstyling" in f && r(6, u = f.clientstyling), "clientstylingurl" in f && r(7, l = f.clientstylingurl), "translationurl" in f && r(8, c = f.translationurl), "mbsource" in f && r(9, m = f.mbsource), "$$scope" in f && r(10, s = f.$$scope);
|
|
4387
4364
|
}, e.$$.update = () => {
|
|
4388
4365
|
e.$$.dirty & /*lang*/
|
|
4389
|
-
32 && a &&
|
|
4390
|
-
68 && u &&
|
|
4391
|
-
132 && l &&
|
|
4392
|
-
516 &&
|
|
4393
|
-
256 &&
|
|
4366
|
+
32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4367
|
+
68 && u && d && zi(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4368
|
+
132 && l && d && Vi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4369
|
+
516 && m && d && Xi(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4370
|
+
256 && c && _();
|
|
4394
4371
|
}, [
|
|
4395
4372
|
o,
|
|
4396
4373
|
h,
|
|
4397
|
-
|
|
4374
|
+
d,
|
|
4398
4375
|
n,
|
|
4399
4376
|
v,
|
|
4400
4377
|
a,
|
|
4401
4378
|
u,
|
|
4402
4379
|
l,
|
|
4403
|
-
f,
|
|
4404
4380
|
c,
|
|
4381
|
+
m,
|
|
4405
4382
|
s,
|
|
4406
4383
|
i,
|
|
4407
|
-
|
|
4384
|
+
E
|
|
4408
4385
|
];
|
|
4409
4386
|
}
|
|
4410
4387
|
class Er extends qr {
|
|
@@ -4412,9 +4389,9 @@ class Er extends qr {
|
|
|
4412
4389
|
super(), Zr(
|
|
4413
4390
|
this,
|
|
4414
4391
|
t,
|
|
4415
|
-
is,
|
|
4416
4392
|
ns,
|
|
4417
|
-
|
|
4393
|
+
rs,
|
|
4394
|
+
$t,
|
|
4418
4395
|
{
|
|
4419
4396
|
assetsurl: 0,
|
|
4420
4397
|
lang: 5,
|
|
@@ -4431,93 +4408,93 @@ class Er extends qr {
|
|
|
4431
4408
|
return this.$$.ctx[0];
|
|
4432
4409
|
}
|
|
4433
4410
|
set assetsurl(t) {
|
|
4434
|
-
this.$$set({ assetsurl: t }),
|
|
4411
|
+
this.$$set({ assetsurl: t }), P();
|
|
4435
4412
|
}
|
|
4436
4413
|
get lang() {
|
|
4437
4414
|
return this.$$.ctx[5];
|
|
4438
4415
|
}
|
|
4439
4416
|
set lang(t) {
|
|
4440
|
-
this.$$set({ lang: t }),
|
|
4417
|
+
this.$$set({ lang: t }), P();
|
|
4441
4418
|
}
|
|
4442
4419
|
get errorcode() {
|
|
4443
4420
|
return this.$$.ctx[1];
|
|
4444
4421
|
}
|
|
4445
4422
|
set errorcode(t) {
|
|
4446
|
-
this.$$set({ errorcode: t }),
|
|
4423
|
+
this.$$set({ errorcode: t }), P();
|
|
4447
4424
|
}
|
|
4448
4425
|
get clientstyling() {
|
|
4449
4426
|
return this.$$.ctx[6];
|
|
4450
4427
|
}
|
|
4451
4428
|
set clientstyling(t) {
|
|
4452
|
-
this.$$set({ clientstyling: t }),
|
|
4429
|
+
this.$$set({ clientstyling: t }), P();
|
|
4453
4430
|
}
|
|
4454
4431
|
get clientstylingurl() {
|
|
4455
4432
|
return this.$$.ctx[7];
|
|
4456
4433
|
}
|
|
4457
4434
|
set clientstylingurl(t) {
|
|
4458
|
-
this.$$set({ clientstylingurl: t }),
|
|
4435
|
+
this.$$set({ clientstylingurl: t }), P();
|
|
4459
4436
|
}
|
|
4460
4437
|
get translationurl() {
|
|
4461
4438
|
return this.$$.ctx[8];
|
|
4462
4439
|
}
|
|
4463
4440
|
set translationurl(t) {
|
|
4464
|
-
this.$$set({ translationurl: t }),
|
|
4441
|
+
this.$$set({ translationurl: t }), P();
|
|
4465
4442
|
}
|
|
4466
4443
|
get mbsource() {
|
|
4467
4444
|
return this.$$.ctx[9];
|
|
4468
4445
|
}
|
|
4469
4446
|
set mbsource(t) {
|
|
4470
|
-
this.$$set({ mbsource: t }),
|
|
4447
|
+
this.$$set({ mbsource: t }), P();
|
|
4471
4448
|
}
|
|
4472
4449
|
}
|
|
4473
4450
|
Jr(Er, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4474
|
-
const
|
|
4451
|
+
const ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4475
4452
|
__proto__: null,
|
|
4476
4453
|
default: Er
|
|
4477
4454
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4478
4455
|
export {
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4456
|
+
D as $,
|
|
4457
|
+
hs as A,
|
|
4458
|
+
zt as B,
|
|
4459
|
+
Oe as C,
|
|
4460
|
+
ge as D,
|
|
4461
|
+
R as E,
|
|
4485
4462
|
Cr as F,
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4463
|
+
Ir as G,
|
|
4464
|
+
fs as H,
|
|
4465
|
+
os as I,
|
|
4466
|
+
as as J,
|
|
4467
|
+
ct as K,
|
|
4491
4468
|
ji as L,
|
|
4492
4469
|
zi as M,
|
|
4493
4470
|
Vi as N,
|
|
4494
4471
|
Xi as O,
|
|
4495
|
-
|
|
4472
|
+
ds as P,
|
|
4496
4473
|
qr as S,
|
|
4497
4474
|
pr as a,
|
|
4498
4475
|
vi as b,
|
|
4499
|
-
|
|
4476
|
+
ms as c,
|
|
4500
4477
|
Zr as d,
|
|
4501
4478
|
Jr as e,
|
|
4502
|
-
|
|
4479
|
+
P as f,
|
|
4503
4480
|
Kr as g,
|
|
4504
4481
|
Pr as h,
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4482
|
+
Lt as i,
|
|
4483
|
+
L as j,
|
|
4484
|
+
J as k,
|
|
4485
|
+
O as l,
|
|
4486
|
+
z as m,
|
|
4487
|
+
S as n,
|
|
4511
4488
|
Ar as o,
|
|
4512
4489
|
Gr as p,
|
|
4513
4490
|
Ve as q,
|
|
4514
|
-
|
|
4515
|
-
|
|
4491
|
+
us as r,
|
|
4492
|
+
$t as s,
|
|
4516
4493
|
ee as t,
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4494
|
+
be as u,
|
|
4495
|
+
ls as v,
|
|
4496
|
+
I as w,
|
|
4520
4497
|
$e as x,
|
|
4521
|
-
|
|
4498
|
+
cs as y,
|
|
4522
4499
|
ie as z
|
|
4523
4500
|
};
|