@everymatrix/cashier-error 1.86.2 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierError-Bupr3kgq.js → CashierError-BJfLkcP8.js} +704 -708
- package/components/{CashierError-DGO7RbEg.js → CashierError-C3XOQqX2.js} +723 -727
- package/components/CashierError-DS4mHA2B.cjs +18 -0
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/{ui-image-BX-FBhad.cjs → ui-image-BDXyFHck.cjs} +1 -1
- package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Cc8wLmDe.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image-Ch-GHki1.js → ui-image-wH6lu7wS.js} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/components/CashierError-l26mpTff.cjs +0 -5
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
2
|
var ir = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ar = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
ar.call(t, r) && we(e, r, t[r]);
|
|
8
8
|
if (Qe)
|
|
9
9
|
for (var r of Qe(t))
|
|
10
|
-
|
|
10
|
+
or.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
|
-
var w = (e, t, r) => (
|
|
13
|
+
var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var a = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (s) {
|
|
19
|
+
i(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (s) {
|
|
25
|
+
i(s);
|
|
26
26
|
}
|
|
27
|
-
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(a, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-image-Cc8wLmDe.js";
|
|
31
|
+
function S() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function sr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -44,65 +44,65 @@ function wt(e) {
|
|
|
44
44
|
function tt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function te(e) {
|
|
48
48
|
e.forEach(wt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ve(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Bt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let ae;
|
|
57
57
|
function rt(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
59
59
|
}
|
|
60
60
|
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function St(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return S;
|
|
68
68
|
}
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
72
|
function lr(e, t, r) {
|
|
73
|
-
e.$$.on_destroy.push(
|
|
73
|
+
e.$$.on_destroy.push(St(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function oe(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = At(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function At(e, t, r, n) {
|
|
82
|
-
return e[1] && n ?
|
|
82
|
+
return e[1] && n ? sr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function se(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
86
86
|
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
90
|
-
const
|
|
91
|
-
for (let u = 0; u <
|
|
92
|
-
|
|
93
|
-
return
|
|
90
|
+
const a = [], o = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let u = 0; u < o; u += 1)
|
|
92
|
+
a[u] = t.dirty[u] | i[u];
|
|
93
|
+
return a;
|
|
94
94
|
}
|
|
95
95
|
return t.dirty | i;
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function ue(e, t, r, n, i, a) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const o = At(t, r, n, a);
|
|
102
|
+
e.p(o, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function le(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], r = e.ctx.length / 32;
|
|
108
108
|
for (let n = 0; n < r; n++)
|
|
@@ -111,13 +111,13 @@ function he(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function P(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
117
|
function hr(e, t, r) {
|
|
118
118
|
const n = cr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = I("style");
|
|
121
121
|
i.id = t, i.textContent = r, fr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,39 +132,39 @@ function cr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function fr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return P(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function V(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function L(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function I(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ee(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Be() {
|
|
154
|
+
return Ee(" ");
|
|
155
155
|
}
|
|
156
156
|
function mr() {
|
|
157
|
-
return
|
|
157
|
+
return Ee("");
|
|
158
158
|
}
|
|
159
159
|
function dr(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function G(e, t, r) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function he(e, t, r) {
|
|
166
166
|
const n = t.toLowerCase();
|
|
167
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
167
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
|
|
168
168
|
}
|
|
169
169
|
function pr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
@@ -182,103 +182,103 @@ function br(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let Y;
|
|
186
|
+
function Q(e) {
|
|
187
|
+
Y = e;
|
|
188
188
|
}
|
|
189
189
|
function gr() {
|
|
190
|
-
if (!
|
|
190
|
+
if (!Y)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return Y;
|
|
193
193
|
}
|
|
194
194
|
function yr(e) {
|
|
195
195
|
gr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
197
|
+
const D = [], Le = [];
|
|
198
|
+
let U = [];
|
|
199
199
|
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
200
|
-
let
|
|
200
|
+
let Me = !1;
|
|
201
201
|
function Er() {
|
|
202
|
-
|
|
202
|
+
Me || (Me = !0, _r.then(B));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function $e(e) {
|
|
205
|
+
U.push(e);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
207
|
+
const Se = /* @__PURE__ */ new Set();
|
|
208
|
+
let $ = 0;
|
|
209
209
|
function B() {
|
|
210
|
-
if (
|
|
210
|
+
if ($ !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = Y;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; $ < D.length; ) {
|
|
216
|
+
const t = D[$];
|
|
217
|
+
$++, Q(t), vr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw D.length = 0, $ = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
226
|
-
|
|
222
|
+
for (Q(null), D.length = 0, $ = 0; Le.length; )
|
|
223
|
+
Le.pop()();
|
|
224
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
225
|
+
const r = U[t];
|
|
226
|
+
Se.has(r) || (Se.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
228
|
+
U.length = 0;
|
|
229
|
+
} while (D.length);
|
|
230
230
|
for (; nt.length; )
|
|
231
231
|
nt.pop()();
|
|
232
|
-
|
|
232
|
+
Me = !1, Se.clear(), Q(e);
|
|
233
233
|
}
|
|
234
234
|
function vr(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.update(),
|
|
236
|
+
e.update(), te(e.before_update);
|
|
237
237
|
const t = e.dirty;
|
|
238
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
238
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
function xr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const me = /* @__PURE__ */ new Set();
|
|
246
246
|
let Tr;
|
|
247
|
-
function
|
|
248
|
-
e && e.i && (
|
|
247
|
+
function J(e, t) {
|
|
248
|
+
e && e.i && (me.delete(e), e.i(t));
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function ce(e, t, r, n) {
|
|
251
251
|
if (e && e.o) {
|
|
252
|
-
if (
|
|
252
|
+
if (me.has(e))
|
|
253
253
|
return;
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
me.add(e), Tr.c.push(() => {
|
|
255
|
+
me.delete(e);
|
|
256
256
|
}), e.o(t);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
function Hr(e, t, r) {
|
|
260
260
|
const { fragment: n, after_update: i } = e.$$;
|
|
261
|
-
n && n.m(t, r),
|
|
262
|
-
const
|
|
263
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
264
|
-
}), i.forEach(
|
|
261
|
+
n && n.m(t, r), $e(() => {
|
|
262
|
+
const a = e.$$.on_mount.map(wt).filter(Ve);
|
|
263
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : te(a), e.$$.on_mount = [];
|
|
264
|
+
}), i.forEach($e);
|
|
265
265
|
}
|
|
266
266
|
function wr(e, t) {
|
|
267
267
|
const r = e.$$;
|
|
268
|
-
r.fragment !== null && (xr(r.after_update),
|
|
268
|
+
r.fragment !== null && (xr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
e.$$.dirty[0] === -1 && (
|
|
270
|
+
function Br(e, t) {
|
|
271
|
+
e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const l =
|
|
275
|
-
|
|
276
|
-
const
|
|
273
|
+
function Sr(e, t, r, n, i, a, o = null, u = [-1]) {
|
|
274
|
+
const l = Y;
|
|
275
|
+
Q(e);
|
|
276
|
+
const s = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
279
279
|
// state
|
|
280
|
-
props:
|
|
281
|
-
update:
|
|
280
|
+
props: a,
|
|
281
|
+
update: S,
|
|
282
282
|
not_equal: i,
|
|
283
283
|
bound: tt(),
|
|
284
284
|
// lifecycle
|
|
@@ -294,20 +294,20 @@ function Br(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
294
294
|
skip_bound: !1,
|
|
295
295
|
root: t.target || l.$$.root
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
o && o(s.root);
|
|
298
298
|
let h = !1;
|
|
299
|
-
if (
|
|
299
|
+
if (s.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
300
300
|
const p = d.length ? d[0] : m;
|
|
301
|
-
return
|
|
302
|
-
}) : [],
|
|
301
|
+
return s.ctx && i(s.ctx[f], s.ctx[f] = p) && (!s.skip_bound && s.bound[f] && s.bound[f](p), h && Br(e, f)), m;
|
|
302
|
+
}) : [], s.update(), h = !0, te(s.before_update), s.fragment = n ? n(s.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
304
|
const f = pr(t.target);
|
|
305
|
-
|
|
305
|
+
s.fragment && s.fragment.l(f), f.forEach(L);
|
|
306
306
|
} else
|
|
307
|
-
|
|
308
|
-
t.intro &&
|
|
307
|
+
s.fragment && s.fragment.c();
|
|
308
|
+
t.intro && J(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
Q(l);
|
|
311
311
|
}
|
|
312
312
|
let Ot;
|
|
313
313
|
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
@@ -349,22 +349,22 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
349
349
|
connectedCallback() {
|
|
350
350
|
return et(this, null, function* () {
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
|
-
let t = function(
|
|
352
|
+
let t = function(a) {
|
|
353
353
|
return () => {
|
|
354
|
-
let
|
|
354
|
+
let o;
|
|
355
355
|
return {
|
|
356
356
|
c: function() {
|
|
357
|
-
|
|
357
|
+
o = I("slot"), a !== "default" && G(o, "name", a);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* @param {HTMLElement} target
|
|
361
361
|
* @param {HTMLElement} [anchor]
|
|
362
362
|
*/
|
|
363
|
-
m: function(
|
|
364
|
-
|
|
363
|
+
m: function(s, h) {
|
|
364
|
+
V(s, o, h);
|
|
365
365
|
},
|
|
366
|
-
d: function(
|
|
367
|
-
|
|
366
|
+
d: function(s) {
|
|
367
|
+
s && L(o);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
@@ -372,14 +372,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
372
372
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
373
|
return;
|
|
374
374
|
const r = {}, n = br(this);
|
|
375
|
-
for (const
|
|
376
|
-
|
|
377
|
-
for (const
|
|
378
|
-
const
|
|
379
|
-
|
|
375
|
+
for (const a of this.$$s)
|
|
376
|
+
a in n && (r[a] = [t(a)]);
|
|
377
|
+
for (const a of this.attributes) {
|
|
378
|
+
const o = this.$$g_p(a.name);
|
|
379
|
+
o in this.$$d || (this.$$d[o] = de(o, a.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
|
-
for (const
|
|
382
|
-
!(
|
|
381
|
+
for (const a in this.$$p_d)
|
|
382
|
+
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
383
383
|
this.$$c = new this.$$ctor({
|
|
384
384
|
target: this.shadowRoot || this,
|
|
385
385
|
props: Ke(Ye({}, this.$$d), {
|
|
@@ -391,23 +391,23 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
391
391
|
});
|
|
392
392
|
const i = () => {
|
|
393
393
|
this.$$r = !0;
|
|
394
|
-
for (const
|
|
395
|
-
if (this.$$d[
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
this.$$d[
|
|
394
|
+
for (const a in this.$$p_d)
|
|
395
|
+
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
396
|
+
const o = de(
|
|
397
|
+
a,
|
|
398
|
+
this.$$d[a],
|
|
399
399
|
this.$$p_d,
|
|
400
400
|
"toAttribute"
|
|
401
401
|
);
|
|
402
|
-
|
|
402
|
+
o == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, o);
|
|
403
403
|
}
|
|
404
404
|
this.$$r = !1;
|
|
405
405
|
};
|
|
406
406
|
this.$$c.$$.after_update.push(i), i();
|
|
407
|
-
for (const
|
|
408
|
-
for (const
|
|
409
|
-
const u = this.$$c.$on(
|
|
410
|
-
this.$$l_u.set(
|
|
407
|
+
for (const a in this.$$l)
|
|
408
|
+
for (const o of this.$$l[a]) {
|
|
409
|
+
const u = this.$$c.$on(a, o);
|
|
410
|
+
this.$$l_u.set(o, u);
|
|
411
411
|
}
|
|
412
412
|
this.$$l = {};
|
|
413
413
|
}
|
|
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
417
417
|
// and setting attributes through setAttribute etc, this is helpful
|
|
418
418
|
attributeChangedCallback(t, r, n) {
|
|
419
419
|
var i;
|
|
420
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
420
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
423
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,9 +430,9 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
430
430
|
) || t;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
434
|
-
var
|
|
435
|
-
const i = (
|
|
433
|
+
function de(e, t, r, n) {
|
|
434
|
+
var a;
|
|
435
|
+
const i = (a = r[e]) == null ? void 0 : a.type;
|
|
436
436
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
437
437
|
return t;
|
|
438
438
|
if (n === "toAttribute")
|
|
@@ -460,8 +460,8 @@ function pe(e, t, r, n) {
|
|
|
460
460
|
return t;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function Ar(e, t, r, n, i,
|
|
464
|
-
let
|
|
463
|
+
function Ar(e, t, r, n, i, a) {
|
|
464
|
+
let o = class extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, r, i), this.$$p_d = t;
|
|
467
467
|
}
|
|
@@ -472,24 +472,24 @@ function Ar(e, t, r, n, i, o) {
|
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
return Object.keys(t).forEach((u) => {
|
|
475
|
-
Object.defineProperty(
|
|
475
|
+
Object.defineProperty(o.prototype, u, {
|
|
476
476
|
get() {
|
|
477
477
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
478
478
|
},
|
|
479
479
|
set(l) {
|
|
480
|
-
var
|
|
481
|
-
l =
|
|
480
|
+
var s;
|
|
481
|
+
l = de(u, l, t), this.$$d[u] = l, (s = this.$$c) == null || s.$set({ [u]: l });
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), n.forEach((u) => {
|
|
485
|
-
Object.defineProperty(
|
|
485
|
+
Object.defineProperty(o.prototype, u, {
|
|
486
486
|
get() {
|
|
487
487
|
var l;
|
|
488
488
|
return (l = this.$$c) == null ? void 0 : l[u];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}), e.element = /** @type {any} */
|
|
492
|
-
|
|
492
|
+
o, o;
|
|
493
493
|
}
|
|
494
494
|
class Pr {
|
|
495
495
|
constructor() {
|
|
@@ -512,7 +512,7 @@ class Pr {
|
|
|
512
512
|
}
|
|
513
513
|
/** @returns {void} */
|
|
514
514
|
$destroy() {
|
|
515
|
-
wr(this, 1), this.$destroy =
|
|
515
|
+
wr(this, 1), this.$destroy = S;
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
518
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -521,8 +521,8 @@ class Pr {
|
|
|
521
521
|
* @returns {() => void}
|
|
522
522
|
*/
|
|
523
523
|
$on(t, r) {
|
|
524
|
-
if (!
|
|
525
|
-
return
|
|
524
|
+
if (!Ve(r))
|
|
525
|
+
return S;
|
|
526
526
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
527
|
return n.push(r), () => {
|
|
528
528
|
const i = n.indexOf(r);
|
|
@@ -564,58 +564,58 @@ function Nr(e, t, r) {
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const R = [];
|
|
568
568
|
function Lr(e, t) {
|
|
569
569
|
return {
|
|
570
|
-
subscribe:
|
|
570
|
+
subscribe: ve(e, t).subscribe
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ve(e, t = S) {
|
|
574
574
|
let r;
|
|
575
575
|
const n = /* @__PURE__ */ new Set();
|
|
576
576
|
function i(u) {
|
|
577
|
-
if (
|
|
578
|
-
const l = !
|
|
579
|
-
for (const
|
|
580
|
-
|
|
577
|
+
if (Bt(e, u) && (e = u, r)) {
|
|
578
|
+
const l = !R.length;
|
|
579
|
+
for (const s of n)
|
|
580
|
+
s[1](), R.push(s, e);
|
|
581
581
|
if (l) {
|
|
582
|
-
for (let
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
for (let s = 0; s < R.length; s += 2)
|
|
583
|
+
R[s][0](R[s + 1]);
|
|
584
|
+
R.length = 0;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function a(u) {
|
|
589
589
|
i(u(e));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
593
|
-
return n.add(
|
|
594
|
-
n.delete(
|
|
591
|
+
function o(u, l = S) {
|
|
592
|
+
const s = [u, l];
|
|
593
|
+
return n.add(s), n.size === 1 && (r = t(i, a) || S), u(e), () => {
|
|
594
|
+
n.delete(s), n.size === 0 && r && (r(), r = null);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
return { set: i, update:
|
|
597
|
+
return { set: i, update: a, subscribe: o };
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function X(e, t, r) {
|
|
600
600
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
601
601
|
if (!i.every(Boolean))
|
|
602
602
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
603
|
-
const
|
|
604
|
-
return Lr(r, (
|
|
603
|
+
const a = t.length < 2;
|
|
604
|
+
return Lr(r, (o, u) => {
|
|
605
605
|
let l = !1;
|
|
606
|
-
const
|
|
607
|
-
let h = 0, f =
|
|
606
|
+
const s = [];
|
|
607
|
+
let h = 0, f = S;
|
|
608
608
|
const m = () => {
|
|
609
609
|
if (h)
|
|
610
610
|
return;
|
|
611
611
|
f();
|
|
612
|
-
const p = t(n ?
|
|
613
|
-
|
|
612
|
+
const p = t(n ? s[0] : s, o, u);
|
|
613
|
+
a ? o(p) : f = Ve(p) ? p : S;
|
|
614
614
|
}, d = i.map(
|
|
615
|
-
(p, v) =>
|
|
615
|
+
(p, v) => St(
|
|
616
616
|
p,
|
|
617
617
|
(T) => {
|
|
618
|
-
|
|
618
|
+
s[v] = T, h &= ~(1 << v), l && m();
|
|
619
619
|
},
|
|
620
620
|
() => {
|
|
621
621
|
h |= 1 << v;
|
|
@@ -623,7 +623,7 @@ function W(e, t, r) {
|
|
|
623
623
|
)
|
|
624
624
|
);
|
|
625
625
|
return l = !0, m(), function() {
|
|
626
|
-
|
|
626
|
+
te(d), f(), l = !1;
|
|
627
627
|
};
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -647,19 +647,19 @@ function kr(e) {
|
|
|
647
647
|
function Fr(e) {
|
|
648
648
|
return Array.isArray(e) ? [] : {};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
650
|
+
function K(e, t) {
|
|
651
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Fr(e), e, t) : e;
|
|
652
652
|
}
|
|
653
653
|
function jr(e, t, r) {
|
|
654
654
|
return e.concat(t).map(function(n) {
|
|
655
|
-
return
|
|
655
|
+
return K(n, r);
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
function zr(e, t) {
|
|
659
659
|
if (!t.customMerge)
|
|
660
|
-
return
|
|
660
|
+
return k;
|
|
661
661
|
var r = t.customMerge(e);
|
|
662
|
-
return typeof r == "function" ? r :
|
|
662
|
+
return typeof r == "function" ? r : k;
|
|
663
663
|
}
|
|
664
664
|
function Vr(e) {
|
|
665
665
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -682,51 +682,65 @@ function Xr(e, t) {
|
|
|
682
682
|
function Wr(e, t, r) {
|
|
683
683
|
var n = {};
|
|
684
684
|
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
685
|
-
n[i] =
|
|
685
|
+
n[i] = K(e[i], r);
|
|
686
686
|
}), it(t).forEach(function(i) {
|
|
687
|
-
Xr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] =
|
|
687
|
+
Xr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
688
688
|
}), n;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified =
|
|
692
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
693
|
-
return
|
|
690
|
+
function k(e, t, r) {
|
|
691
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = K;
|
|
692
|
+
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
693
|
+
return a ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : K(t, r);
|
|
694
694
|
}
|
|
695
|
-
|
|
695
|
+
k.all = function(t, r) {
|
|
696
696
|
if (!Array.isArray(t))
|
|
697
697
|
throw new Error("first argument should be an array");
|
|
698
698
|
return t.reduce(function(n, i) {
|
|
699
|
-
return
|
|
699
|
+
return k(n, i, r);
|
|
700
700
|
}, {});
|
|
701
701
|
};
|
|
702
|
-
var Zr =
|
|
702
|
+
var Zr = k, Jr = Zr;
|
|
703
703
|
const qr = /* @__PURE__ */ Mr(Jr);
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
/*! *****************************************************************************
|
|
705
|
+
Copyright (c) Microsoft Corporation.
|
|
706
|
+
|
|
707
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
708
|
+
purpose with or without fee is hereby granted.
|
|
709
|
+
|
|
710
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
711
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
712
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
713
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
714
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
715
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
716
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
717
|
+
***************************************************************************** */
|
|
718
|
+
var Re = function(e, t) {
|
|
719
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
706
720
|
r.__proto__ = n;
|
|
707
721
|
} || function(r, n) {
|
|
708
722
|
for (var i in n)
|
|
709
723
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
710
|
-
},
|
|
724
|
+
}, Re(e, t);
|
|
711
725
|
};
|
|
712
|
-
function
|
|
726
|
+
function xe(e, t) {
|
|
713
727
|
if (typeof t != "function" && t !== null)
|
|
714
728
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
715
|
-
|
|
729
|
+
Re(e, t);
|
|
716
730
|
function r() {
|
|
717
731
|
this.constructor = e;
|
|
718
732
|
}
|
|
719
733
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
720
734
|
}
|
|
721
|
-
var
|
|
722
|
-
return
|
|
735
|
+
var _ = function() {
|
|
736
|
+
return _ = Object.assign || function(t) {
|
|
723
737
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
724
738
|
r = arguments[n];
|
|
725
|
-
for (var
|
|
726
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
739
|
+
for (var a in r)
|
|
740
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
727
741
|
}
|
|
728
742
|
return t;
|
|
729
|
-
},
|
|
743
|
+
}, _.apply(this, arguments);
|
|
730
744
|
};
|
|
731
745
|
function Qr(e, t) {
|
|
732
746
|
var r = {};
|
|
@@ -737,14 +751,14 @@ function Qr(e, t) {
|
|
|
737
751
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
738
752
|
return r;
|
|
739
753
|
}
|
|
740
|
-
function
|
|
741
|
-
if (
|
|
742
|
-
for (var n = 0, i = t.length,
|
|
743
|
-
(
|
|
744
|
-
return e.concat(
|
|
754
|
+
function Ae(e, t, r) {
|
|
755
|
+
if (arguments.length === 2)
|
|
756
|
+
for (var n = 0, i = t.length, a; n < i; n++)
|
|
757
|
+
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
758
|
+
return e.concat(a || t);
|
|
745
759
|
}
|
|
746
|
-
function
|
|
747
|
-
var r = t && t.cache ? t.cache :
|
|
760
|
+
function Pe(e, t) {
|
|
761
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : Kr;
|
|
748
762
|
return i(e, {
|
|
749
763
|
cache: r,
|
|
750
764
|
serializer: n
|
|
@@ -753,103 +767,95 @@ function Ie(e, t) {
|
|
|
753
767
|
function Yr(e) {
|
|
754
768
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
755
769
|
}
|
|
756
|
-
function
|
|
757
|
-
var i = Yr(n) ? n : r(n),
|
|
758
|
-
return typeof
|
|
770
|
+
function Ct(e, t, r, n) {
|
|
771
|
+
var i = Yr(n) ? n : r(n), a = t.get(i);
|
|
772
|
+
return typeof a == "undefined" && (a = e.call(this, n), t.set(i, a)), a;
|
|
759
773
|
}
|
|
760
|
-
function
|
|
761
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
762
|
-
return typeof
|
|
774
|
+
function Nt(e, t, r) {
|
|
775
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
776
|
+
return typeof a == "undefined" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
763
777
|
}
|
|
764
|
-
function
|
|
778
|
+
function Xe(e, t, r, n, i) {
|
|
765
779
|
return r.bind(t, e, n, i);
|
|
766
780
|
}
|
|
781
|
+
function Kr(e, t) {
|
|
782
|
+
var r = e.length === 1 ? Ct : Nt;
|
|
783
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
784
|
+
}
|
|
767
785
|
function en(e, t) {
|
|
768
|
-
|
|
769
|
-
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
786
|
+
return Xe(e, this, Nt, t.cache.create(), t.serializer);
|
|
770
787
|
}
|
|
771
788
|
function tn(e, t) {
|
|
772
|
-
return
|
|
789
|
+
return Xe(e, this, Ct, t.cache.create(), t.serializer);
|
|
773
790
|
}
|
|
774
791
|
var rn = function() {
|
|
775
792
|
return JSON.stringify(arguments);
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
}()
|
|
788
|
-
), on = {
|
|
793
|
+
};
|
|
794
|
+
function We() {
|
|
795
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
796
|
+
}
|
|
797
|
+
We.prototype.get = function(e) {
|
|
798
|
+
return this.cache[e];
|
|
799
|
+
};
|
|
800
|
+
We.prototype.set = function(e, t) {
|
|
801
|
+
this.cache[e] = t;
|
|
802
|
+
};
|
|
803
|
+
var nn = {
|
|
789
804
|
create: function() {
|
|
790
|
-
return new
|
|
805
|
+
return new We();
|
|
791
806
|
}
|
|
792
|
-
},
|
|
793
|
-
variadic:
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
797
|
-
r = arguments[n];
|
|
798
|
-
for (var o in r)
|
|
799
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
800
|
-
}
|
|
801
|
-
return t;
|
|
802
|
-
}, ye.apply(this, arguments);
|
|
803
|
-
};
|
|
804
|
-
var b;
|
|
807
|
+
}, Oe = {
|
|
808
|
+
variadic: en,
|
|
809
|
+
monadic: tn
|
|
810
|
+
}, b;
|
|
805
811
|
(function(e) {
|
|
806
812
|
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";
|
|
807
813
|
})(b || (b = {}));
|
|
808
|
-
var
|
|
814
|
+
var E;
|
|
809
815
|
(function(e) {
|
|
810
816
|
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";
|
|
811
|
-
})(
|
|
812
|
-
var
|
|
817
|
+
})(E || (E = {}));
|
|
818
|
+
var F;
|
|
813
819
|
(function(e) {
|
|
814
820
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
815
|
-
})(
|
|
816
|
-
function
|
|
817
|
-
return e.type ===
|
|
821
|
+
})(F || (F = {}));
|
|
822
|
+
function at(e) {
|
|
823
|
+
return e.type === E.literal;
|
|
818
824
|
}
|
|
819
|
-
function
|
|
820
|
-
return e.type ===
|
|
825
|
+
function an(e) {
|
|
826
|
+
return e.type === E.argument;
|
|
821
827
|
}
|
|
822
828
|
function Lt(e) {
|
|
823
|
-
return e.type ===
|
|
829
|
+
return e.type === E.number;
|
|
824
830
|
}
|
|
825
831
|
function Mt(e) {
|
|
826
|
-
return e.type ===
|
|
832
|
+
return e.type === E.date;
|
|
827
833
|
}
|
|
828
834
|
function $t(e) {
|
|
829
|
-
return e.type ===
|
|
835
|
+
return e.type === E.time;
|
|
830
836
|
}
|
|
831
837
|
function Rt(e) {
|
|
832
|
-
return e.type ===
|
|
838
|
+
return e.type === E.select;
|
|
833
839
|
}
|
|
834
840
|
function Dt(e) {
|
|
835
|
-
return e.type ===
|
|
841
|
+
return e.type === E.plural;
|
|
836
842
|
}
|
|
837
|
-
function
|
|
838
|
-
return e.type ===
|
|
843
|
+
function on(e) {
|
|
844
|
+
return e.type === E.pound;
|
|
839
845
|
}
|
|
840
846
|
function Ut(e) {
|
|
841
|
-
return e.type ===
|
|
847
|
+
return e.type === E.tag;
|
|
842
848
|
}
|
|
843
849
|
function Gt(e) {
|
|
844
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
850
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
845
851
|
}
|
|
846
|
-
function
|
|
847
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
852
|
+
function De(e) {
|
|
853
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
848
854
|
}
|
|
849
|
-
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
850
|
-
function
|
|
855
|
+
var kt = /[ \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;
|
|
856
|
+
function un(e) {
|
|
851
857
|
var t = {};
|
|
852
|
-
return e.replace(
|
|
858
|
+
return e.replace(sn, function(r) {
|
|
853
859
|
var n = r.length;
|
|
854
860
|
switch (r[0]) {
|
|
855
861
|
case "G":
|
|
@@ -938,28 +944,18 @@ function ln(e) {
|
|
|
938
944
|
return "";
|
|
939
945
|
}), t;
|
|
940
946
|
}
|
|
941
|
-
var
|
|
942
|
-
|
|
943
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
944
|
-
r = arguments[n];
|
|
945
|
-
for (var o in r)
|
|
946
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
947
|
-
}
|
|
948
|
-
return t;
|
|
949
|
-
}, E.apply(this, arguments);
|
|
950
|
-
};
|
|
951
|
-
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
952
|
-
function cn(e) {
|
|
947
|
+
var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
948
|
+
function hn(e) {
|
|
953
949
|
if (e.length === 0)
|
|
954
950
|
throw new Error("Number skeleton cannot be empty");
|
|
955
|
-
for (var t = e.split(
|
|
951
|
+
for (var t = e.split(ln).filter(function(m) {
|
|
956
952
|
return m.length > 0;
|
|
957
953
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
958
|
-
var
|
|
959
|
-
if (
|
|
954
|
+
var a = i[n], o = a.split("/");
|
|
955
|
+
if (o.length === 0)
|
|
960
956
|
throw new Error("Invalid number skeleton");
|
|
961
|
-
for (var u =
|
|
962
|
-
var f = h[
|
|
957
|
+
for (var u = o[0], l = o.slice(1), s = 0, h = l; s < h.length; s++) {
|
|
958
|
+
var f = h[s];
|
|
963
959
|
if (f.length === 0)
|
|
964
960
|
throw new Error("Invalid number skeleton");
|
|
965
961
|
}
|
|
@@ -967,11 +963,11 @@ function cn(e) {
|
|
|
967
963
|
}
|
|
968
964
|
return r;
|
|
969
965
|
}
|
|
970
|
-
function
|
|
966
|
+
function cn(e) {
|
|
971
967
|
return e.replace(/^(.*?)-/, "");
|
|
972
968
|
}
|
|
973
|
-
var
|
|
974
|
-
function
|
|
969
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
970
|
+
function st(e) {
|
|
975
971
|
var t = {};
|
|
976
972
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
977
973
|
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)), "";
|
|
@@ -1017,7 +1013,7 @@ function zt(e) {
|
|
|
1017
1013
|
};
|
|
1018
1014
|
}
|
|
1019
1015
|
}
|
|
1020
|
-
function
|
|
1016
|
+
function mn(e) {
|
|
1021
1017
|
var t;
|
|
1022
1018
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1023
1019
|
notation: "engineering"
|
|
@@ -1035,7 +1031,7 @@ function ut(e) {
|
|
|
1035
1031
|
var t = {}, r = zt(e);
|
|
1036
1032
|
return r || t;
|
|
1037
1033
|
}
|
|
1038
|
-
function
|
|
1034
|
+
function dn(e) {
|
|
1039
1035
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1040
1036
|
var i = n[r];
|
|
1041
1037
|
switch (i.stem) {
|
|
@@ -1059,7 +1055,7 @@ function pn(e) {
|
|
|
1059
1055
|
continue;
|
|
1060
1056
|
case "measure-unit":
|
|
1061
1057
|
case "unit":
|
|
1062
|
-
t.style = "unit", t.unit =
|
|
1058
|
+
t.style = "unit", t.unit = cn(i.options[0]);
|
|
1063
1059
|
continue;
|
|
1064
1060
|
case "compact-short":
|
|
1065
1061
|
case "K":
|
|
@@ -1070,13 +1066,13 @@ function pn(e) {
|
|
|
1070
1066
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1071
1067
|
continue;
|
|
1072
1068
|
case "scientific":
|
|
1073
|
-
t =
|
|
1074
|
-
return
|
|
1069
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, s) {
|
|
1070
|
+
return _(_({}, l), ut(s));
|
|
1075
1071
|
}, {}));
|
|
1076
1072
|
continue;
|
|
1077
1073
|
case "engineering":
|
|
1078
|
-
t =
|
|
1079
|
-
return
|
|
1074
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, s) {
|
|
1075
|
+
return _(_({}, l), ut(s));
|
|
1080
1076
|
}, {}));
|
|
1081
1077
|
continue;
|
|
1082
1078
|
case "notation-simple":
|
|
@@ -1121,8 +1117,8 @@ function pn(e) {
|
|
|
1121
1117
|
case "integer-width":
|
|
1122
1118
|
if (i.options.length > 1)
|
|
1123
1119
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1124
|
-
i.options[0].replace(
|
|
1125
|
-
if (
|
|
1120
|
+
i.options[0].replace(fn, function(l, s, h, f, m, d) {
|
|
1121
|
+
if (s)
|
|
1126
1122
|
t.minimumIntegerDigits = h.length;
|
|
1127
1123
|
else {
|
|
1128
1124
|
if (f && m)
|
|
@@ -1138,28 +1134,28 @@ function pn(e) {
|
|
|
1138
1134
|
t.minimumIntegerDigits = i.stem.length;
|
|
1139
1135
|
continue;
|
|
1140
1136
|
}
|
|
1141
|
-
if (
|
|
1137
|
+
if (ot.test(i.stem)) {
|
|
1142
1138
|
if (i.options.length > 1)
|
|
1143
1139
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1144
|
-
i.stem.replace(
|
|
1145
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1140
|
+
i.stem.replace(ot, function(l, s, h, f, m, d) {
|
|
1141
|
+
return h === "*" ? t.minimumFractionDigits = s.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = s.length, t.maximumFractionDigits = s.length), "";
|
|
1146
1142
|
});
|
|
1147
|
-
var
|
|
1148
|
-
|
|
1143
|
+
var a = i.options[0];
|
|
1144
|
+
a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), st(a)));
|
|
1149
1145
|
continue;
|
|
1150
1146
|
}
|
|
1151
1147
|
if (Ft.test(i.stem)) {
|
|
1152
|
-
t =
|
|
1148
|
+
t = _(_({}, t), st(i.stem));
|
|
1153
1149
|
continue;
|
|
1154
1150
|
}
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1157
|
-
var u =
|
|
1158
|
-
u && (t =
|
|
1151
|
+
var o = zt(i.stem);
|
|
1152
|
+
o && (t = _(_({}, t), o));
|
|
1153
|
+
var u = mn(i.stem);
|
|
1154
|
+
u && (t = _(_({}, t), u));
|
|
1159
1155
|
}
|
|
1160
1156
|
return t;
|
|
1161
1157
|
}
|
|
1162
|
-
var
|
|
1158
|
+
var fe = {
|
|
1163
1159
|
"001": [
|
|
1164
1160
|
"H",
|
|
1165
1161
|
"h"
|
|
@@ -2574,23 +2570,23 @@ var me = {
|
|
|
2574
2570
|
"h"
|
|
2575
2571
|
]
|
|
2576
2572
|
};
|
|
2577
|
-
function
|
|
2573
|
+
function pn(e, t) {
|
|
2578
2574
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2579
2575
|
var i = e.charAt(n);
|
|
2580
2576
|
if (i === "j") {
|
|
2581
|
-
for (var
|
|
2582
|
-
|
|
2583
|
-
var
|
|
2584
|
-
for ((
|
|
2577
|
+
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2578
|
+
a++, n++;
|
|
2579
|
+
var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), l = "a", s = bn(t);
|
|
2580
|
+
for ((s == "H" || s == "k") && (u = 0); u-- > 0; )
|
|
2585
2581
|
r += l;
|
|
2586
|
-
for (;
|
|
2587
|
-
r =
|
|
2582
|
+
for (; o-- > 0; )
|
|
2583
|
+
r = s + r;
|
|
2588
2584
|
} else
|
|
2589
2585
|
i === "J" ? r += "H" : r += i;
|
|
2590
2586
|
}
|
|
2591
2587
|
return r;
|
|
2592
2588
|
}
|
|
2593
|
-
function
|
|
2589
|
+
function bn(e) {
|
|
2594
2590
|
var t = e.hourCycle;
|
|
2595
2591
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2596
2592
|
e.hourCycles && // @ts-ignore
|
|
@@ -2609,23 +2605,23 @@ function gn(e) {
|
|
|
2609
2605
|
}
|
|
2610
2606
|
var r = e.language, n;
|
|
2611
2607
|
r !== "root" && (n = e.maximize().region);
|
|
2612
|
-
var i =
|
|
2608
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2613
2609
|
return i[0];
|
|
2614
2610
|
}
|
|
2615
|
-
var
|
|
2611
|
+
var Ie, gn = new RegExp("^".concat(kt.source, "*")), yn = new RegExp("".concat(kt.source, "*$"));
|
|
2616
2612
|
function y(e, t) {
|
|
2617
2613
|
return { start: e, end: t };
|
|
2618
2614
|
}
|
|
2619
|
-
var
|
|
2615
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), En = !!String.fromCodePoint, vn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, Tn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Bn = wn ? Number.isSafeInteger : function(e) {
|
|
2620
2616
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2621
|
-
},
|
|
2617
|
+
}, Ue = !0;
|
|
2622
2618
|
try {
|
|
2623
|
-
var
|
|
2624
|
-
|
|
2619
|
+
var Sn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2620
|
+
Ue = ((Ie = Sn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
2625
2621
|
} catch (e) {
|
|
2626
|
-
|
|
2622
|
+
Ue = !1;
|
|
2627
2623
|
}
|
|
2628
|
-
var lt =
|
|
2624
|
+
var lt = _n ? (
|
|
2629
2625
|
// Native
|
|
2630
2626
|
function(t, r, n) {
|
|
2631
2627
|
return t.startsWith(r, n);
|
|
@@ -2635,31 +2631,31 @@ var lt = En ? (
|
|
|
2635
2631
|
function(t, r, n) {
|
|
2636
2632
|
return t.slice(n, n + r.length) === r;
|
|
2637
2633
|
}
|
|
2638
|
-
),
|
|
2634
|
+
), Ge = En ? String.fromCodePoint : (
|
|
2639
2635
|
// IE11
|
|
2640
2636
|
function() {
|
|
2641
2637
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2642
2638
|
t[r] = arguments[r];
|
|
2643
|
-
for (var n = "", i = t.length,
|
|
2644
|
-
if (
|
|
2645
|
-
throw RangeError(
|
|
2646
|
-
n +=
|
|
2639
|
+
for (var n = "", i = t.length, a = 0, o; i > a; ) {
|
|
2640
|
+
if (o = t[a++], o > 1114111)
|
|
2641
|
+
throw RangeError(o + " is not a valid code point");
|
|
2642
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2647
2643
|
}
|
|
2648
2644
|
return n;
|
|
2649
2645
|
}
|
|
2650
2646
|
), ht = (
|
|
2651
2647
|
// native
|
|
2652
|
-
|
|
2648
|
+
vn ? Object.fromEntries : (
|
|
2653
2649
|
// Ponyfill
|
|
2654
2650
|
function(t) {
|
|
2655
2651
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2656
|
-
var
|
|
2657
|
-
r[
|
|
2652
|
+
var a = i[n], o = a[0], u = a[1];
|
|
2653
|
+
r[o] = u;
|
|
2658
2654
|
}
|
|
2659
2655
|
return r;
|
|
2660
2656
|
}
|
|
2661
2657
|
)
|
|
2662
|
-
), Vt =
|
|
2658
|
+
), Vt = xn ? (
|
|
2663
2659
|
// Native
|
|
2664
2660
|
function(t, r) {
|
|
2665
2661
|
return t.codePointAt(r);
|
|
@@ -2669,11 +2665,11 @@ var lt = En ? (
|
|
|
2669
2665
|
function(t, r) {
|
|
2670
2666
|
var n = t.length;
|
|
2671
2667
|
if (!(r < 0 || r >= n)) {
|
|
2672
|
-
var i = t.charCodeAt(r),
|
|
2673
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2668
|
+
var i = t.charCodeAt(r), a;
|
|
2669
|
+
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2674
2670
|
}
|
|
2675
2671
|
}
|
|
2676
|
-
),
|
|
2672
|
+
), An = Tn ? (
|
|
2677
2673
|
// Native
|
|
2678
2674
|
function(t) {
|
|
2679
2675
|
return t.trimStart();
|
|
@@ -2681,9 +2677,9 @@ var lt = En ? (
|
|
|
2681
2677
|
) : (
|
|
2682
2678
|
// Ponyfill
|
|
2683
2679
|
function(t) {
|
|
2684
|
-
return t.replace(
|
|
2680
|
+
return t.replace(gn, "");
|
|
2685
2681
|
}
|
|
2686
|
-
),
|
|
2682
|
+
), Pn = Hn ? (
|
|
2687
2683
|
// Native
|
|
2688
2684
|
function(t) {
|
|
2689
2685
|
return t.trimEnd();
|
|
@@ -2691,32 +2687,32 @@ var lt = En ? (
|
|
|
2691
2687
|
) : (
|
|
2692
2688
|
// Ponyfill
|
|
2693
2689
|
function(t) {
|
|
2694
|
-
return t.replace(
|
|
2690
|
+
return t.replace(yn, "");
|
|
2695
2691
|
}
|
|
2696
2692
|
);
|
|
2697
2693
|
function Xt(e, t) {
|
|
2698
2694
|
return new RegExp(e, t);
|
|
2699
2695
|
}
|
|
2700
|
-
var
|
|
2701
|
-
if (
|
|
2696
|
+
var ke;
|
|
2697
|
+
if (Ue) {
|
|
2702
2698
|
var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2703
|
-
|
|
2699
|
+
ke = function(t, r) {
|
|
2704
2700
|
var n;
|
|
2705
2701
|
ct.lastIndex = r;
|
|
2706
2702
|
var i = ct.exec(t);
|
|
2707
2703
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2708
2704
|
};
|
|
2709
2705
|
} else
|
|
2710
|
-
|
|
2706
|
+
ke = function(t, r) {
|
|
2711
2707
|
for (var n = []; ; ) {
|
|
2712
2708
|
var i = Vt(t, r);
|
|
2713
|
-
if (i === void 0 || Wt(i) ||
|
|
2709
|
+
if (i === void 0 || Wt(i) || Nn(i))
|
|
2714
2710
|
break;
|
|
2715
2711
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2716
2712
|
}
|
|
2717
|
-
return
|
|
2713
|
+
return Ge.apply(void 0, n);
|
|
2718
2714
|
};
|
|
2719
|
-
var
|
|
2715
|
+
var On = (
|
|
2720
2716
|
/** @class */
|
|
2721
2717
|
function() {
|
|
2722
2718
|
function e(t, r) {
|
|
@@ -2728,35 +2724,35 @@ var In = (
|
|
|
2728
2724
|
return this.parseMessage(0, "", !1);
|
|
2729
2725
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2730
2726
|
for (var i = []; !this.isEOF(); ) {
|
|
2731
|
-
var
|
|
2732
|
-
if (
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
2735
|
-
return
|
|
2736
|
-
i.push(
|
|
2727
|
+
var a = this.char();
|
|
2728
|
+
if (a === 123) {
|
|
2729
|
+
var o = this.parseArgument(t, n);
|
|
2730
|
+
if (o.err)
|
|
2731
|
+
return o;
|
|
2732
|
+
i.push(o.val);
|
|
2737
2733
|
} else {
|
|
2738
|
-
if (
|
|
2734
|
+
if (a === 125 && t > 0)
|
|
2739
2735
|
break;
|
|
2740
|
-
if (
|
|
2736
|
+
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2741
2737
|
var u = this.clonePosition();
|
|
2742
2738
|
this.bump(), i.push({
|
|
2743
|
-
type:
|
|
2739
|
+
type: E.pound,
|
|
2744
2740
|
location: y(u, this.clonePosition())
|
|
2745
2741
|
});
|
|
2746
|
-
} else if (
|
|
2742
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2747
2743
|
if (n)
|
|
2748
2744
|
break;
|
|
2749
2745
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2750
|
-
} else if (
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
return
|
|
2754
|
-
i.push(
|
|
2746
|
+
} else if (a === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2747
|
+
var o = this.parseTag(t, r);
|
|
2748
|
+
if (o.err)
|
|
2749
|
+
return o;
|
|
2750
|
+
i.push(o.val);
|
|
2755
2751
|
} else {
|
|
2756
|
-
var
|
|
2757
|
-
if (
|
|
2758
|
-
return
|
|
2759
|
-
i.push(
|
|
2752
|
+
var o = this.parseLiteral(t, r);
|
|
2753
|
+
if (o.err)
|
|
2754
|
+
return o;
|
|
2755
|
+
i.push(o.val);
|
|
2760
2756
|
}
|
|
2761
2757
|
}
|
|
2762
2758
|
}
|
|
@@ -2768,26 +2764,26 @@ var In = (
|
|
|
2768
2764
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2769
2765
|
return {
|
|
2770
2766
|
val: {
|
|
2771
|
-
type:
|
|
2767
|
+
type: E.literal,
|
|
2772
2768
|
value: "<".concat(i, "/>"),
|
|
2773
2769
|
location: y(n, this.clonePosition())
|
|
2774
2770
|
},
|
|
2775
2771
|
err: null
|
|
2776
2772
|
};
|
|
2777
2773
|
if (this.bumpIf(">")) {
|
|
2778
|
-
var
|
|
2779
|
-
if (
|
|
2780
|
-
return
|
|
2781
|
-
var
|
|
2774
|
+
var a = this.parseMessage(t + 1, r, !0);
|
|
2775
|
+
if (a.err)
|
|
2776
|
+
return a;
|
|
2777
|
+
var o = a.val, u = this.clonePosition();
|
|
2782
2778
|
if (this.bumpIf("</")) {
|
|
2783
|
-
if (this.isEOF() || !
|
|
2779
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2784
2780
|
return this.error(b.INVALID_TAG, y(u, this.clonePosition()));
|
|
2785
|
-
var l = this.clonePosition(),
|
|
2786
|
-
return i !==
|
|
2781
|
+
var l = this.clonePosition(), s = this.parseTagName();
|
|
2782
|
+
return i !== s ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2787
2783
|
val: {
|
|
2788
|
-
type:
|
|
2784
|
+
type: E.tag,
|
|
2789
2785
|
value: i,
|
|
2790
|
-
children:
|
|
2786
|
+
children: o,
|
|
2791
2787
|
location: y(n, this.clonePosition())
|
|
2792
2788
|
},
|
|
2793
2789
|
err: null
|
|
@@ -2798,19 +2794,19 @@ var In = (
|
|
|
2798
2794
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2799
2795
|
}, e.prototype.parseTagName = function() {
|
|
2800
2796
|
var t = this.offset();
|
|
2801
|
-
for (this.bump(); !this.isEOF() &&
|
|
2797
|
+
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
2802
2798
|
this.bump();
|
|
2803
2799
|
return this.message.slice(t, this.offset());
|
|
2804
2800
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2805
2801
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2806
|
-
var
|
|
2807
|
-
if (
|
|
2808
|
-
i +=
|
|
2802
|
+
var a = this.tryParseQuote(r);
|
|
2803
|
+
if (a) {
|
|
2804
|
+
i += a;
|
|
2809
2805
|
continue;
|
|
2810
2806
|
}
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
i +=
|
|
2807
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2808
|
+
if (o) {
|
|
2809
|
+
i += o;
|
|
2814
2810
|
continue;
|
|
2815
2811
|
}
|
|
2816
2812
|
var u = this.tryParseLeftAngleBracket();
|
|
@@ -2822,12 +2818,12 @@ var In = (
|
|
|
2822
2818
|
}
|
|
2823
2819
|
var l = y(n, this.clonePosition());
|
|
2824
2820
|
return {
|
|
2825
|
-
val: { type:
|
|
2821
|
+
val: { type: E.literal, value: i, location: l },
|
|
2826
2822
|
err: null
|
|
2827
2823
|
};
|
|
2828
2824
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2829
2825
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2830
|
-
!
|
|
2826
|
+
!In(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2831
2827
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2832
2828
|
if (this.isEOF() || this.char() !== 39)
|
|
2833
2829
|
return null;
|
|
@@ -2861,12 +2857,12 @@ var In = (
|
|
|
2861
2857
|
r.push(n);
|
|
2862
2858
|
this.bump();
|
|
2863
2859
|
}
|
|
2864
|
-
return
|
|
2860
|
+
return Ge.apply(void 0, r);
|
|
2865
2861
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2866
2862
|
if (this.isEOF())
|
|
2867
2863
|
return null;
|
|
2868
2864
|
var n = this.char();
|
|
2869
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2865
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2870
2866
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2871
2867
|
var n = this.clonePosition();
|
|
2872
2868
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2882,7 +2878,7 @@ var In = (
|
|
|
2882
2878
|
case 125:
|
|
2883
2879
|
return this.bump(), {
|
|
2884
2880
|
val: {
|
|
2885
|
-
type:
|
|
2881
|
+
type: E.argument,
|
|
2886
2882
|
// value does not include the opening and closing braces.
|
|
2887
2883
|
value: i,
|
|
2888
2884
|
location: y(n, this.clonePosition())
|
|
@@ -2895,54 +2891,54 @@ var In = (
|
|
|
2895
2891
|
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2896
2892
|
}
|
|
2897
2893
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2898
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2894
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
2899
2895
|
this.bumpTo(i);
|
|
2900
|
-
var
|
|
2901
|
-
return { value: n, location:
|
|
2896
|
+
var a = this.clonePosition(), o = y(t, a);
|
|
2897
|
+
return { value: n, location: o };
|
|
2902
2898
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2903
|
-
var
|
|
2899
|
+
var a, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2904
2900
|
switch (u) {
|
|
2905
2901
|
case "":
|
|
2906
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2902
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2907
2903
|
case "number":
|
|
2908
2904
|
case "date":
|
|
2909
2905
|
case "time": {
|
|
2910
2906
|
this.bumpSpace();
|
|
2911
|
-
var
|
|
2907
|
+
var s = null;
|
|
2912
2908
|
if (this.bumpIf(",")) {
|
|
2913
2909
|
this.bumpSpace();
|
|
2914
2910
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2915
2911
|
if (f.err)
|
|
2916
2912
|
return f;
|
|
2917
|
-
var m =
|
|
2913
|
+
var m = Pn(f.val);
|
|
2918
2914
|
if (m.length === 0)
|
|
2919
2915
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2920
2916
|
var d = y(h, this.clonePosition());
|
|
2921
|
-
|
|
2917
|
+
s = { style: m, styleLocation: d };
|
|
2922
2918
|
}
|
|
2923
2919
|
var p = this.tryParseArgumentClose(i);
|
|
2924
2920
|
if (p.err)
|
|
2925
2921
|
return p;
|
|
2926
2922
|
var v = y(i, this.clonePosition());
|
|
2927
|
-
if (
|
|
2928
|
-
var T =
|
|
2923
|
+
if (s && lt(s == null ? void 0 : s.style, "::", 0)) {
|
|
2924
|
+
var T = An(s.style.slice(2));
|
|
2929
2925
|
if (u === "number") {
|
|
2930
|
-
var f = this.parseNumberSkeletonFromString(T,
|
|
2926
|
+
var f = this.parseNumberSkeletonFromString(T, s.styleLocation);
|
|
2931
2927
|
return f.err ? f : {
|
|
2932
|
-
val: { type:
|
|
2928
|
+
val: { type: E.number, value: n, location: v, style: f.val },
|
|
2933
2929
|
err: null
|
|
2934
2930
|
};
|
|
2935
2931
|
} else {
|
|
2936
2932
|
if (T.length === 0)
|
|
2937
2933
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
2938
2934
|
var x = T;
|
|
2939
|
-
this.locale && (x =
|
|
2935
|
+
this.locale && (x = pn(T, this.locale));
|
|
2940
2936
|
var m = {
|
|
2941
|
-
type:
|
|
2937
|
+
type: F.dateTime,
|
|
2942
2938
|
pattern: x,
|
|
2943
|
-
location:
|
|
2944
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2945
|
-
}, c = u === "date" ?
|
|
2939
|
+
location: s.styleLocation,
|
|
2940
|
+
parsedOptions: this.shouldParseSkeletons ? un(x) : {}
|
|
2941
|
+
}, c = u === "date" ? E.date : E.time;
|
|
2946
2942
|
return {
|
|
2947
2943
|
val: { type: c, value: n, location: v, style: m },
|
|
2948
2944
|
err: null
|
|
@@ -2951,10 +2947,10 @@ var In = (
|
|
|
2951
2947
|
}
|
|
2952
2948
|
return {
|
|
2953
2949
|
val: {
|
|
2954
|
-
type: u === "number" ?
|
|
2950
|
+
type: u === "number" ? E.number : u === "date" ? E.date : E.time,
|
|
2955
2951
|
value: n,
|
|
2956
2952
|
location: v,
|
|
2957
|
-
style: (
|
|
2953
|
+
style: (a = s == null ? void 0 : s.style) !== null && a !== void 0 ? a : null
|
|
2958
2954
|
},
|
|
2959
2955
|
err: null
|
|
2960
2956
|
};
|
|
@@ -2964,39 +2960,39 @@ var In = (
|
|
|
2964
2960
|
case "select": {
|
|
2965
2961
|
var g = this.clonePosition();
|
|
2966
2962
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2967
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g,
|
|
2963
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, _({}, g)));
|
|
2968
2964
|
this.bumpSpace();
|
|
2969
|
-
var
|
|
2970
|
-
if (u !== "select" &&
|
|
2965
|
+
var A = this.parseIdentifierIfPossible(), N = 0;
|
|
2966
|
+
if (u !== "select" && A.value === "offset") {
|
|
2971
2967
|
if (!this.bumpIf(":"))
|
|
2972
2968
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2973
2969
|
this.bumpSpace();
|
|
2974
2970
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2975
2971
|
if (f.err)
|
|
2976
2972
|
return f;
|
|
2977
|
-
this.bumpSpace(),
|
|
2973
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), N = f.val;
|
|
2978
2974
|
}
|
|
2979
|
-
var
|
|
2980
|
-
if (
|
|
2981
|
-
return
|
|
2975
|
+
var ie = this.tryParsePluralOrSelectOptions(t, u, r, A);
|
|
2976
|
+
if (ie.err)
|
|
2977
|
+
return ie;
|
|
2982
2978
|
var p = this.tryParseArgumentClose(i);
|
|
2983
2979
|
if (p.err)
|
|
2984
2980
|
return p;
|
|
2985
2981
|
var qe = y(i, this.clonePosition());
|
|
2986
2982
|
return u === "select" ? {
|
|
2987
2983
|
val: {
|
|
2988
|
-
type:
|
|
2984
|
+
type: E.select,
|
|
2989
2985
|
value: n,
|
|
2990
|
-
options: ht(
|
|
2986
|
+
options: ht(ie.val),
|
|
2991
2987
|
location: qe
|
|
2992
2988
|
},
|
|
2993
2989
|
err: null
|
|
2994
2990
|
} : {
|
|
2995
2991
|
val: {
|
|
2996
|
-
type:
|
|
2992
|
+
type: E.plural,
|
|
2997
2993
|
value: n,
|
|
2998
|
-
options: ht(
|
|
2999
|
-
offset:
|
|
2994
|
+
options: ht(ie.val),
|
|
2995
|
+
offset: N,
|
|
3000
2996
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3001
2997
|
location: qe
|
|
3002
2998
|
},
|
|
@@ -3004,7 +3000,7 @@ var In = (
|
|
|
3004
3000
|
};
|
|
3005
3001
|
}
|
|
3006
3002
|
default:
|
|
3007
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
3003
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(o, l));
|
|
3008
3004
|
}
|
|
3009
3005
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3010
3006
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3046,34 +3042,34 @@ var In = (
|
|
|
3046
3042
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3047
3043
|
var n = [];
|
|
3048
3044
|
try {
|
|
3049
|
-
n =
|
|
3045
|
+
n = hn(t);
|
|
3050
3046
|
} catch (i) {
|
|
3051
3047
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3052
3048
|
}
|
|
3053
3049
|
return {
|
|
3054
3050
|
val: {
|
|
3055
|
-
type:
|
|
3051
|
+
type: F.number,
|
|
3056
3052
|
tokens: n,
|
|
3057
3053
|
location: r,
|
|
3058
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3054
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
3059
3055
|
},
|
|
3060
3056
|
err: null
|
|
3061
3057
|
};
|
|
3062
3058
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3063
|
-
for (var
|
|
3064
|
-
if (
|
|
3059
|
+
for (var a, o = !1, u = [], l = /* @__PURE__ */ new Set(), s = i.value, h = i.location; ; ) {
|
|
3060
|
+
if (s.length === 0) {
|
|
3065
3061
|
var f = this.clonePosition();
|
|
3066
3062
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3067
3063
|
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3068
3064
|
if (m.err)
|
|
3069
3065
|
return m;
|
|
3070
|
-
h = y(f, this.clonePosition()),
|
|
3066
|
+
h = y(f, this.clonePosition()), s = this.message.slice(f.offset, this.offset());
|
|
3071
3067
|
} else
|
|
3072
3068
|
break;
|
|
3073
3069
|
}
|
|
3074
|
-
if (l.has(
|
|
3070
|
+
if (l.has(s))
|
|
3075
3071
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3076
|
-
|
|
3072
|
+
s === "other" && (o = !0), this.bumpSpace();
|
|
3077
3073
|
var d = this.clonePosition();
|
|
3078
3074
|
if (!this.bumpIf("{"))
|
|
3079
3075
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3084,26 +3080,26 @@ var In = (
|
|
|
3084
3080
|
if (v.err)
|
|
3085
3081
|
return v;
|
|
3086
3082
|
u.push([
|
|
3087
|
-
|
|
3083
|
+
s,
|
|
3088
3084
|
{
|
|
3089
3085
|
value: p.val,
|
|
3090
3086
|
location: y(d, this.clonePosition())
|
|
3091
3087
|
}
|
|
3092
|
-
]), l.add(
|
|
3088
|
+
]), l.add(s), this.bumpSpace(), a = this.parseIdentifierIfPossible(), s = a.value, h = a.location;
|
|
3093
3089
|
}
|
|
3094
|
-
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3090
|
+
return u.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: u, err: null };
|
|
3095
3091
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3096
3092
|
var n = 1, i = this.clonePosition();
|
|
3097
3093
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3098
|
-
for (var
|
|
3094
|
+
for (var a = !1, o = 0; !this.isEOF(); ) {
|
|
3099
3095
|
var u = this.char();
|
|
3100
3096
|
if (u >= 48 && u <= 57)
|
|
3101
|
-
|
|
3097
|
+
a = !0, o = o * 10 + (u - 48), this.bump();
|
|
3102
3098
|
else
|
|
3103
3099
|
break;
|
|
3104
3100
|
}
|
|
3105
3101
|
var l = y(i, this.clonePosition());
|
|
3106
|
-
return
|
|
3102
|
+
return a ? (o *= n, Bn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3107
3103
|
}, e.prototype.offset = function() {
|
|
3108
3104
|
return this.position.offset;
|
|
3109
3105
|
}, e.prototype.isEOF = function() {
|
|
@@ -3169,50 +3165,50 @@ var In = (
|
|
|
3169
3165
|
}, e;
|
|
3170
3166
|
}()
|
|
3171
3167
|
);
|
|
3172
|
-
function
|
|
3168
|
+
function Fe(e) {
|
|
3173
3169
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3174
3170
|
}
|
|
3175
|
-
function
|
|
3176
|
-
return
|
|
3171
|
+
function In(e) {
|
|
3172
|
+
return Fe(e) || e === 47;
|
|
3177
3173
|
}
|
|
3178
|
-
function
|
|
3174
|
+
function Cn(e) {
|
|
3179
3175
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3180
3176
|
}
|
|
3181
3177
|
function Wt(e) {
|
|
3182
3178
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3183
3179
|
}
|
|
3184
|
-
function
|
|
3180
|
+
function Nn(e) {
|
|
3185
3181
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3186
3182
|
}
|
|
3187
|
-
function
|
|
3183
|
+
function je(e) {
|
|
3188
3184
|
e.forEach(function(t) {
|
|
3189
3185
|
if (delete t.location, Rt(t) || Dt(t))
|
|
3190
3186
|
for (var r in t.options)
|
|
3191
|
-
delete t.options[r].location,
|
|
3187
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3192
3188
|
else
|
|
3193
|
-
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) &&
|
|
3189
|
+
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && De(t.style) ? delete t.style.location : Ut(t) && je(t.children);
|
|
3194
3190
|
});
|
|
3195
3191
|
}
|
|
3196
|
-
function
|
|
3197
|
-
t === void 0 && (t = {}), t =
|
|
3198
|
-
var r = new
|
|
3192
|
+
function Ln(e, t) {
|
|
3193
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3194
|
+
var r = new On(e, t).parse();
|
|
3199
3195
|
if (r.err) {
|
|
3200
3196
|
var n = SyntaxError(b[r.err.kind]);
|
|
3201
3197
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3202
3198
|
}
|
|
3203
|
-
return t != null && t.captureLocation ||
|
|
3199
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3204
3200
|
}
|
|
3205
|
-
var
|
|
3201
|
+
var j;
|
|
3206
3202
|
(function(e) {
|
|
3207
3203
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3208
|
-
})(
|
|
3209
|
-
var
|
|
3204
|
+
})(j || (j = {}));
|
|
3205
|
+
var Te = (
|
|
3210
3206
|
/** @class */
|
|
3211
3207
|
function(e) {
|
|
3212
|
-
|
|
3208
|
+
xe(t, e);
|
|
3213
3209
|
function t(r, n, i) {
|
|
3214
|
-
var
|
|
3215
|
-
return
|
|
3210
|
+
var a = e.call(this, r) || this;
|
|
3211
|
+
return a.code = n, a.originalMessage = i, a;
|
|
3216
3212
|
}
|
|
3217
3213
|
return t.prototype.toString = function() {
|
|
3218
3214
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3221,72 +3217,72 @@ var we = (
|
|
|
3221
3217
|
), ft = (
|
|
3222
3218
|
/** @class */
|
|
3223
3219
|
function(e) {
|
|
3224
|
-
|
|
3225
|
-
function t(r, n, i,
|
|
3226
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3220
|
+
xe(t, e);
|
|
3221
|
+
function t(r, n, i, a) {
|
|
3222
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, a) || this;
|
|
3227
3223
|
}
|
|
3228
3224
|
return t;
|
|
3229
|
-
}(
|
|
3230
|
-
),
|
|
3225
|
+
}(Te)
|
|
3226
|
+
), Mn = (
|
|
3231
3227
|
/** @class */
|
|
3232
3228
|
function(e) {
|
|
3233
|
-
|
|
3229
|
+
xe(t, e);
|
|
3234
3230
|
function t(r, n, i) {
|
|
3235
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3231
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3236
3232
|
}
|
|
3237
3233
|
return t;
|
|
3238
|
-
}(
|
|
3239
|
-
),
|
|
3234
|
+
}(Te)
|
|
3235
|
+
), $n = (
|
|
3240
3236
|
/** @class */
|
|
3241
3237
|
function(e) {
|
|
3242
|
-
|
|
3238
|
+
xe(t, e);
|
|
3243
3239
|
function t(r, n) {
|
|
3244
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3240
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3245
3241
|
}
|
|
3246
3242
|
return t;
|
|
3247
|
-
}(
|
|
3243
|
+
}(Te)
|
|
3248
3244
|
), H;
|
|
3249
3245
|
(function(e) {
|
|
3250
3246
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3251
3247
|
})(H || (H = {}));
|
|
3252
|
-
function
|
|
3248
|
+
function Rn(e) {
|
|
3253
3249
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3254
3250
|
var n = t[t.length - 1];
|
|
3255
3251
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3256
3252
|
}, []);
|
|
3257
3253
|
}
|
|
3258
|
-
function
|
|
3254
|
+
function Dn(e) {
|
|
3259
3255
|
return typeof e == "function";
|
|
3260
3256
|
}
|
|
3261
|
-
function
|
|
3262
|
-
if (e.length === 1 &&
|
|
3257
|
+
function pe(e, t, r, n, i, a, o) {
|
|
3258
|
+
if (e.length === 1 && at(e[0]))
|
|
3263
3259
|
return [
|
|
3264
3260
|
{
|
|
3265
3261
|
type: H.literal,
|
|
3266
3262
|
value: e[0].value
|
|
3267
3263
|
}
|
|
3268
3264
|
];
|
|
3269
|
-
for (var u = [], l = 0,
|
|
3270
|
-
var h =
|
|
3271
|
-
if (
|
|
3265
|
+
for (var u = [], l = 0, s = e; l < s.length; l++) {
|
|
3266
|
+
var h = s[l];
|
|
3267
|
+
if (at(h)) {
|
|
3272
3268
|
u.push({
|
|
3273
3269
|
type: H.literal,
|
|
3274
3270
|
value: h.value
|
|
3275
3271
|
});
|
|
3276
3272
|
continue;
|
|
3277
3273
|
}
|
|
3278
|
-
if (
|
|
3279
|
-
typeof
|
|
3274
|
+
if (on(h)) {
|
|
3275
|
+
typeof a == "number" && u.push({
|
|
3280
3276
|
type: H.literal,
|
|
3281
|
-
value: r.getNumberFormat(t).format(
|
|
3277
|
+
value: r.getNumberFormat(t).format(a)
|
|
3282
3278
|
});
|
|
3283
3279
|
continue;
|
|
3284
3280
|
}
|
|
3285
3281
|
var f = h.value;
|
|
3286
3282
|
if (!(i && f in i))
|
|
3287
|
-
throw new
|
|
3283
|
+
throw new $n(f, o);
|
|
3288
3284
|
var m = i[f];
|
|
3289
|
-
if (
|
|
3285
|
+
if (an(h)) {
|
|
3290
3286
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), u.push({
|
|
3291
3287
|
type: typeof m == "string" ? H.literal : H.object,
|
|
3292
3288
|
value: m
|
|
@@ -3294,7 +3290,7 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3294
3290
|
continue;
|
|
3295
3291
|
}
|
|
3296
3292
|
if (Mt(h)) {
|
|
3297
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3293
|
+
var d = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3298
3294
|
u.push({
|
|
3299
3295
|
type: H.literal,
|
|
3300
3296
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
@@ -3302,7 +3298,7 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3302
3298
|
continue;
|
|
3303
3299
|
}
|
|
3304
3300
|
if ($t(h)) {
|
|
3305
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3301
|
+
var d = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3306
3302
|
u.push({
|
|
3307
3303
|
type: H.literal,
|
|
3308
3304
|
value: r.getDateTimeFormat(t, d).format(m)
|
|
@@ -3319,54 +3315,54 @@ function be(e, t, r, n, i, o, s) {
|
|
|
3319
3315
|
}
|
|
3320
3316
|
if (Ut(h)) {
|
|
3321
3317
|
var p = h.children, v = h.value, T = i[v];
|
|
3322
|
-
if (!
|
|
3323
|
-
throw new
|
|
3324
|
-
var x =
|
|
3325
|
-
return
|
|
3318
|
+
if (!Dn(T))
|
|
3319
|
+
throw new Mn(v, "function", o);
|
|
3320
|
+
var x = pe(p, t, r, n, i, a), c = T(x.map(function(N) {
|
|
3321
|
+
return N.value;
|
|
3326
3322
|
}));
|
|
3327
|
-
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(
|
|
3323
|
+
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(N) {
|
|
3328
3324
|
return {
|
|
3329
|
-
type: typeof
|
|
3330
|
-
value:
|
|
3325
|
+
type: typeof N == "string" ? H.literal : H.object,
|
|
3326
|
+
value: N
|
|
3331
3327
|
};
|
|
3332
3328
|
}));
|
|
3333
3329
|
}
|
|
3334
3330
|
if (Rt(h)) {
|
|
3335
3331
|
var g = h.options[m] || h.options.other;
|
|
3336
3332
|
if (!g)
|
|
3337
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3338
|
-
u.push.apply(u,
|
|
3333
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3334
|
+
u.push.apply(u, pe(g.value, t, r, n, i));
|
|
3339
3335
|
continue;
|
|
3340
3336
|
}
|
|
3341
3337
|
if (Dt(h)) {
|
|
3342
3338
|
var g = h.options["=".concat(m)];
|
|
3343
3339
|
if (!g) {
|
|
3344
3340
|
if (!Intl.PluralRules)
|
|
3345
|
-
throw new
|
|
3341
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3346
3342
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3347
|
-
`,
|
|
3348
|
-
var
|
|
3349
|
-
g = h.options[
|
|
3343
|
+
`, j.MISSING_INTL_API, o);
|
|
3344
|
+
var A = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3345
|
+
g = h.options[A] || h.options.other;
|
|
3350
3346
|
}
|
|
3351
3347
|
if (!g)
|
|
3352
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3353
|
-
u.push.apply(u,
|
|
3348
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3349
|
+
u.push.apply(u, pe(g.value, t, r, n, i, m - (h.offset || 0)));
|
|
3354
3350
|
continue;
|
|
3355
3351
|
}
|
|
3356
3352
|
}
|
|
3357
|
-
return
|
|
3353
|
+
return Rn(u);
|
|
3358
3354
|
}
|
|
3359
|
-
function
|
|
3360
|
-
return t ?
|
|
3361
|
-
return r[n] =
|
|
3355
|
+
function Un(e, t) {
|
|
3356
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3357
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3362
3358
|
}, {})) : e;
|
|
3363
3359
|
}
|
|
3364
|
-
function
|
|
3360
|
+
function Gn(e, t) {
|
|
3365
3361
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3366
|
-
return r[n] =
|
|
3367
|
-
},
|
|
3362
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3363
|
+
}, _({}, e)) : e;
|
|
3368
3364
|
}
|
|
3369
|
-
function
|
|
3365
|
+
function Ce(e) {
|
|
3370
3366
|
return {
|
|
3371
3367
|
create: function() {
|
|
3372
3368
|
return {
|
|
@@ -3380,35 +3376,35 @@ function Le(e) {
|
|
|
3380
3376
|
}
|
|
3381
3377
|
};
|
|
3382
3378
|
}
|
|
3383
|
-
function
|
|
3379
|
+
function kn(e) {
|
|
3384
3380
|
return e === void 0 && (e = {
|
|
3385
3381
|
number: {},
|
|
3386
3382
|
dateTime: {},
|
|
3387
3383
|
pluralRules: {}
|
|
3388
3384
|
}), {
|
|
3389
|
-
getNumberFormat:
|
|
3385
|
+
getNumberFormat: Pe(function() {
|
|
3390
3386
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3391
3387
|
r[n] = arguments[n];
|
|
3392
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3388
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3393
3389
|
}, {
|
|
3394
|
-
cache:
|
|
3395
|
-
strategy:
|
|
3390
|
+
cache: Ce(e.number),
|
|
3391
|
+
strategy: Oe.variadic
|
|
3396
3392
|
}),
|
|
3397
|
-
getDateTimeFormat:
|
|
3393
|
+
getDateTimeFormat: Pe(function() {
|
|
3398
3394
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3399
3395
|
r[n] = arguments[n];
|
|
3400
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3396
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3401
3397
|
}, {
|
|
3402
|
-
cache:
|
|
3403
|
-
strategy:
|
|
3398
|
+
cache: Ce(e.dateTime),
|
|
3399
|
+
strategy: Oe.variadic
|
|
3404
3400
|
}),
|
|
3405
|
-
getPluralRules:
|
|
3401
|
+
getPluralRules: Pe(function() {
|
|
3406
3402
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3407
3403
|
r[n] = arguments[n];
|
|
3408
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3404
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3409
3405
|
}, {
|
|
3410
|
-
cache:
|
|
3411
|
-
strategy:
|
|
3406
|
+
cache: Ce(e.pluralRules),
|
|
3407
|
+
strategy: Oe.variadic
|
|
3412
3408
|
})
|
|
3413
3409
|
};
|
|
3414
3410
|
}
|
|
@@ -3417,40 +3413,40 @@ var Zt = (
|
|
|
3417
3413
|
function() {
|
|
3418
3414
|
function e(t, r, n, i) {
|
|
3419
3415
|
r === void 0 && (r = e.defaultLocale);
|
|
3420
|
-
var
|
|
3416
|
+
var a = this;
|
|
3421
3417
|
if (this.formatterCache = {
|
|
3422
3418
|
number: {},
|
|
3423
3419
|
dateTime: {},
|
|
3424
3420
|
pluralRules: {}
|
|
3425
3421
|
}, this.format = function(l) {
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3429
|
-
var h =
|
|
3422
|
+
var s = a.formatToParts(l);
|
|
3423
|
+
if (s.length === 1)
|
|
3424
|
+
return s[0].value;
|
|
3425
|
+
var h = s.reduce(function(f, m) {
|
|
3430
3426
|
return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3431
3427
|
}, []);
|
|
3432
3428
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3433
3429
|
}, this.formatToParts = function(l) {
|
|
3434
|
-
return
|
|
3430
|
+
return pe(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
|
|
3435
3431
|
}, this.resolvedOptions = function() {
|
|
3436
3432
|
var l;
|
|
3437
3433
|
return {
|
|
3438
|
-
locale: ((l =
|
|
3434
|
+
locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3439
3435
|
};
|
|
3440
3436
|
}, this.getAst = function() {
|
|
3441
|
-
return
|
|
3437
|
+
return a.ast;
|
|
3442
3438
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3443
3439
|
if (this.message = t, !e.__parse)
|
|
3444
3440
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3445
|
-
var
|
|
3446
|
-
|
|
3447
|
-
var u = Qr(
|
|
3448
|
-
this.ast = e.__parse(t,
|
|
3441
|
+
var o = i || {};
|
|
3442
|
+
o.formatters;
|
|
3443
|
+
var u = Qr(o, ["formatters"]);
|
|
3444
|
+
this.ast = e.__parse(t, _(_({}, u), { locale: this.resolvedLocale }));
|
|
3449
3445
|
} else
|
|
3450
3446
|
this.ast = t;
|
|
3451
3447
|
if (!Array.isArray(this.ast))
|
|
3452
3448
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3453
|
-
this.formats =
|
|
3449
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || kn(this.formatterCache);
|
|
3454
3450
|
}
|
|
3455
3451
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3456
3452
|
get: function() {
|
|
@@ -3463,7 +3459,7 @@ var Zt = (
|
|
|
3463
3459
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3464
3460
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3465
3461
|
}
|
|
3466
|
-
}, e.__parse =
|
|
3462
|
+
}, e.__parse = Ln, e.formats = {
|
|
3467
3463
|
number: {
|
|
3468
3464
|
integer: {
|
|
3469
3465
|
maximumFractionDigits: 0
|
|
@@ -3524,7 +3520,7 @@ var Zt = (
|
|
|
3524
3520
|
}, e;
|
|
3525
3521
|
}()
|
|
3526
3522
|
);
|
|
3527
|
-
function
|
|
3523
|
+
function Fn(e, t) {
|
|
3528
3524
|
if (t == null)
|
|
3529
3525
|
return;
|
|
3530
3526
|
if (t in e)
|
|
@@ -3534,9 +3530,9 @@ function jn(e, t) {
|
|
|
3534
3530
|
for (let i = 0; i < r.length; i++)
|
|
3535
3531
|
if (typeof n == "object") {
|
|
3536
3532
|
if (i > 0) {
|
|
3537
|
-
const
|
|
3538
|
-
if (
|
|
3539
|
-
n = n[
|
|
3533
|
+
const a = r.slice(i, r.length).join(".");
|
|
3534
|
+
if (a in n) {
|
|
3535
|
+
n = n[a];
|
|
3540
3536
|
break;
|
|
3541
3537
|
}
|
|
3542
3538
|
}
|
|
@@ -3545,36 +3541,36 @@ function jn(e, t) {
|
|
|
3545
3541
|
n = void 0;
|
|
3546
3542
|
return n;
|
|
3547
3543
|
}
|
|
3548
|
-
const
|
|
3544
|
+
const O = {}, jn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Jt = (e, t) => {
|
|
3549
3545
|
if (t == null)
|
|
3550
3546
|
return;
|
|
3551
|
-
if (t in
|
|
3552
|
-
return
|
|
3553
|
-
const r =
|
|
3547
|
+
if (t in O && e in O[t])
|
|
3548
|
+
return O[t][e];
|
|
3549
|
+
const r = ne(t);
|
|
3554
3550
|
for (let n = 0; n < r.length; n++) {
|
|
3555
|
-
const i = r[n],
|
|
3556
|
-
if (
|
|
3557
|
-
return
|
|
3551
|
+
const i = r[n], a = Vn(i, e);
|
|
3552
|
+
if (a)
|
|
3553
|
+
return jn(e, t, a);
|
|
3558
3554
|
}
|
|
3559
3555
|
};
|
|
3560
3556
|
let Ze;
|
|
3561
|
-
const
|
|
3562
|
-
function
|
|
3557
|
+
const re = ve({});
|
|
3558
|
+
function zn(e) {
|
|
3563
3559
|
return Ze[e] || null;
|
|
3564
3560
|
}
|
|
3565
3561
|
function qt(e) {
|
|
3566
3562
|
return e in Ze;
|
|
3567
3563
|
}
|
|
3568
|
-
function
|
|
3564
|
+
function Vn(e, t) {
|
|
3569
3565
|
if (!qt(e))
|
|
3570
3566
|
return null;
|
|
3571
|
-
const r =
|
|
3572
|
-
return
|
|
3567
|
+
const r = zn(e);
|
|
3568
|
+
return Fn(r, t);
|
|
3573
3569
|
}
|
|
3574
|
-
function
|
|
3570
|
+
function Xn(e) {
|
|
3575
3571
|
if (e == null)
|
|
3576
3572
|
return;
|
|
3577
|
-
const t =
|
|
3573
|
+
const t = ne(e);
|
|
3578
3574
|
for (let r = 0; r < t.length; r++) {
|
|
3579
3575
|
const n = t[r];
|
|
3580
3576
|
if (qt(n))
|
|
@@ -3582,64 +3578,64 @@ function Wn(e) {
|
|
|
3582
3578
|
}
|
|
3583
3579
|
}
|
|
3584
3580
|
function Qt(e, ...t) {
|
|
3585
|
-
delete
|
|
3581
|
+
delete O[e], re.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3586
3582
|
}
|
|
3587
|
-
|
|
3588
|
-
[
|
|
3583
|
+
X(
|
|
3584
|
+
[re],
|
|
3589
3585
|
([e]) => Object.keys(e)
|
|
3590
3586
|
);
|
|
3591
|
-
|
|
3592
|
-
const
|
|
3593
|
-
function
|
|
3594
|
-
|
|
3587
|
+
re.subscribe((e) => Ze = e);
|
|
3588
|
+
const be = {};
|
|
3589
|
+
function Wn(e, t) {
|
|
3590
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3595
3591
|
}
|
|
3596
3592
|
function Yt(e) {
|
|
3597
|
-
return
|
|
3593
|
+
return be[e];
|
|
3598
3594
|
}
|
|
3599
|
-
function
|
|
3600
|
-
return
|
|
3595
|
+
function Zn(e) {
|
|
3596
|
+
return ne(e).map((t) => {
|
|
3601
3597
|
const r = Yt(t);
|
|
3602
3598
|
return [t, r ? [...r] : []];
|
|
3603
3599
|
}).filter(([, t]) => t.length > 0);
|
|
3604
3600
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return e == null ? !1 :
|
|
3601
|
+
function ge(e) {
|
|
3602
|
+
return e == null ? !1 : ne(e).some(
|
|
3607
3603
|
(t) => {
|
|
3608
3604
|
var r;
|
|
3609
3605
|
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3610
3606
|
}
|
|
3611
3607
|
);
|
|
3612
3608
|
}
|
|
3613
|
-
function
|
|
3609
|
+
function Jn(e, t) {
|
|
3614
3610
|
return Promise.all(
|
|
3615
|
-
t.map((n) => (
|
|
3611
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3616
3612
|
).then((n) => Qt(e, ...n));
|
|
3617
3613
|
}
|
|
3618
|
-
const
|
|
3614
|
+
const Z = {};
|
|
3619
3615
|
function Kt(e) {
|
|
3620
|
-
if (!
|
|
3621
|
-
return e in
|
|
3622
|
-
const t =
|
|
3623
|
-
return
|
|
3616
|
+
if (!ge(e))
|
|
3617
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3618
|
+
const t = Zn(e);
|
|
3619
|
+
return Z[e] = Promise.all(
|
|
3624
3620
|
t.map(
|
|
3625
|
-
([r, n]) =>
|
|
3621
|
+
([r, n]) => Jn(r, n)
|
|
3626
3622
|
)
|
|
3627
3623
|
).then(() => {
|
|
3628
|
-
if (
|
|
3624
|
+
if (ge(e))
|
|
3629
3625
|
return Kt(e);
|
|
3630
|
-
delete
|
|
3631
|
-
}),
|
|
3626
|
+
delete Z[e];
|
|
3627
|
+
}), Z[e];
|
|
3632
3628
|
}
|
|
3633
|
-
var mt = Object.getOwnPropertySymbols,
|
|
3629
|
+
var mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3634
3630
|
var r = {};
|
|
3635
3631
|
for (var n in e)
|
|
3636
|
-
|
|
3632
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3637
3633
|
if (e != null && mt)
|
|
3638
3634
|
for (var n of mt(e))
|
|
3639
|
-
t.indexOf(n) < 0 &&
|
|
3635
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3640
3636
|
return r;
|
|
3641
3637
|
};
|
|
3642
|
-
const
|
|
3638
|
+
const Kn = {
|
|
3643
3639
|
number: {
|
|
3644
3640
|
scientific: { notation: "scientific" },
|
|
3645
3641
|
engineering: { notation: "engineering" },
|
|
@@ -3669,174 +3665,174 @@ const ei = {
|
|
|
3669
3665
|
}
|
|
3670
3666
|
}
|
|
3671
3667
|
};
|
|
3672
|
-
function
|
|
3668
|
+
function ei({ locale: e, id: t }) {
|
|
3673
3669
|
console.warn(
|
|
3674
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3670
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3675
3671
|
e
|
|
3676
|
-
).join('", "')}".${
|
|
3672
|
+
).join('", "')}".${ge(C()) ? `
|
|
3677
3673
|
|
|
3678
3674
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3679
3675
|
);
|
|
3680
3676
|
}
|
|
3681
|
-
const
|
|
3677
|
+
const ti = {
|
|
3682
3678
|
fallbackLocale: null,
|
|
3683
3679
|
loadingDelay: 200,
|
|
3684
|
-
formats:
|
|
3680
|
+
formats: Kn,
|
|
3685
3681
|
warnOnMissingMessages: !0,
|
|
3686
3682
|
handleMissingMessage: void 0,
|
|
3687
3683
|
ignoreTag: !0
|
|
3688
|
-
},
|
|
3689
|
-
function
|
|
3690
|
-
return
|
|
3684
|
+
}, q = ti;
|
|
3685
|
+
function z() {
|
|
3686
|
+
return q;
|
|
3691
3687
|
}
|
|
3692
|
-
function
|
|
3693
|
-
const t = e, { formats: r } = t, n =
|
|
3688
|
+
function ri(e) {
|
|
3689
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3694
3690
|
let i = e.fallbackLocale;
|
|
3695
3691
|
if (e.initialLocale)
|
|
3696
3692
|
try {
|
|
3697
3693
|
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3698
|
-
} catch (
|
|
3694
|
+
} catch (a) {
|
|
3699
3695
|
console.warn(
|
|
3700
3696
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3701
3697
|
);
|
|
3702
3698
|
}
|
|
3703
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3699
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3704
3700
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3705
|
-
)), Object.assign(
|
|
3701
|
+
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
|
|
3706
3702
|
}
|
|
3707
|
-
const
|
|
3708
|
-
var
|
|
3703
|
+
const Ne = ve(!1);
|
|
3704
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3709
3705
|
for (var r in t || (t = {}))
|
|
3710
|
-
|
|
3706
|
+
oi.call(t, r) && pt(e, r, t[r]);
|
|
3711
3707
|
if (dt)
|
|
3712
3708
|
for (var r of dt(t))
|
|
3713
|
-
|
|
3709
|
+
si.call(t, r) && pt(e, r, t[r]);
|
|
3714
3710
|
return e;
|
|
3715
|
-
},
|
|
3716
|
-
let
|
|
3717
|
-
const
|
|
3711
|
+
}, li = (e, t) => ii(e, ai(t));
|
|
3712
|
+
let ze;
|
|
3713
|
+
const ye = ve(null);
|
|
3718
3714
|
function bt(e) {
|
|
3719
3715
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3720
3716
|
}
|
|
3721
|
-
function
|
|
3717
|
+
function ne(e, t = z().fallbackLocale) {
|
|
3722
3718
|
const r = bt(e);
|
|
3723
3719
|
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3724
3720
|
}
|
|
3725
|
-
function
|
|
3726
|
-
return
|
|
3721
|
+
function C() {
|
|
3722
|
+
return ze != null ? ze : void 0;
|
|
3727
3723
|
}
|
|
3728
|
-
|
|
3729
|
-
|
|
3724
|
+
ye.subscribe((e) => {
|
|
3725
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3730
3726
|
});
|
|
3731
|
-
const
|
|
3732
|
-
if (e &&
|
|
3733
|
-
const { loadingDelay: t } =
|
|
3727
|
+
const hi = (e) => {
|
|
3728
|
+
if (e && Xn(e) && ge(e)) {
|
|
3729
|
+
const { loadingDelay: t } = z();
|
|
3734
3730
|
let r;
|
|
3735
|
-
return typeof window != "undefined" &&
|
|
3736
|
-
() =>
|
|
3731
|
+
return typeof window != "undefined" && C() != null && t ? r = window.setTimeout(
|
|
3732
|
+
() => Ne.set(!0),
|
|
3737
3733
|
t
|
|
3738
|
-
) :
|
|
3739
|
-
|
|
3734
|
+
) : Ne.set(!0), Kt(e).then(() => {
|
|
3735
|
+
ye.set(e);
|
|
3740
3736
|
}).finally(() => {
|
|
3741
|
-
clearTimeout(r),
|
|
3737
|
+
clearTimeout(r), Ne.set(!1);
|
|
3742
3738
|
});
|
|
3743
3739
|
}
|
|
3744
|
-
return
|
|
3745
|
-
},
|
|
3746
|
-
set:
|
|
3747
|
-
}),
|
|
3740
|
+
return ye.set(e);
|
|
3741
|
+
}, M = li(ui({}, ye), {
|
|
3742
|
+
set: hi
|
|
3743
|
+
}), He = (e) => {
|
|
3748
3744
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3749
3745
|
return (n) => {
|
|
3750
3746
|
const i = JSON.stringify(n);
|
|
3751
3747
|
return i in t ? t[i] : t[i] = e(n);
|
|
3752
3748
|
};
|
|
3753
3749
|
};
|
|
3754
|
-
var
|
|
3750
|
+
var ci = Object.defineProperty, _e = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3755
3751
|
for (var r in t || (t = {}))
|
|
3756
3752
|
er.call(t, r) && gt(e, r, t[r]);
|
|
3757
|
-
if (
|
|
3758
|
-
for (var r of
|
|
3753
|
+
if (_e)
|
|
3754
|
+
for (var r of _e(t))
|
|
3759
3755
|
tr.call(t, r) && gt(e, r, t[r]);
|
|
3760
3756
|
return e;
|
|
3761
|
-
},
|
|
3757
|
+
}, W = (e, t) => {
|
|
3762
3758
|
var r = {};
|
|
3763
3759
|
for (var n in e)
|
|
3764
3760
|
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3765
|
-
if (e != null &&
|
|
3766
|
-
for (var n of
|
|
3761
|
+
if (e != null && _e)
|
|
3762
|
+
for (var n of _e(e))
|
|
3767
3763
|
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3768
3764
|
return r;
|
|
3769
3765
|
};
|
|
3770
|
-
const
|
|
3771
|
-
const { formats: r } =
|
|
3766
|
+
const ee = (e, t) => {
|
|
3767
|
+
const { formats: r } = z();
|
|
3772
3768
|
if (e in r && t in r[e])
|
|
3773
3769
|
return r[e][t];
|
|
3774
3770
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3775
|
-
},
|
|
3771
|
+
}, fi = He(
|
|
3776
3772
|
(e) => {
|
|
3777
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3773
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3778
3774
|
if (r == null)
|
|
3779
3775
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3780
|
-
return n && (i =
|
|
3776
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3781
3777
|
}
|
|
3782
|
-
),
|
|
3778
|
+
), mi = He(
|
|
3783
3779
|
(e) => {
|
|
3784
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3780
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3785
3781
|
if (r == null)
|
|
3786
3782
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3787
|
-
return n ? i =
|
|
3783
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3788
3784
|
}
|
|
3789
|
-
),
|
|
3785
|
+
), di = He(
|
|
3790
3786
|
(e) => {
|
|
3791
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3787
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3792
3788
|
if (r == null)
|
|
3793
3789
|
throw new Error(
|
|
3794
3790
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3795
3791
|
);
|
|
3796
|
-
return n ? i =
|
|
3792
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3797
3793
|
}
|
|
3798
|
-
),
|
|
3794
|
+
), pi = (e = {}) => {
|
|
3799
3795
|
var t = e, {
|
|
3800
|
-
locale: r =
|
|
3801
|
-
} = t, n =
|
|
3796
|
+
locale: r = C()
|
|
3797
|
+
} = t, n = W(t, [
|
|
3802
3798
|
"locale"
|
|
3803
3799
|
]);
|
|
3804
|
-
return
|
|
3805
|
-
},
|
|
3800
|
+
return fi(Je({ locale: r }, n));
|
|
3801
|
+
}, bi = (e = {}) => {
|
|
3806
3802
|
var t = e, {
|
|
3807
|
-
locale: r =
|
|
3808
|
-
} = t, n =
|
|
3803
|
+
locale: r = C()
|
|
3804
|
+
} = t, n = W(t, [
|
|
3809
3805
|
"locale"
|
|
3810
3806
|
]);
|
|
3811
|
-
return
|
|
3812
|
-
},
|
|
3807
|
+
return mi(Je({ locale: r }, n));
|
|
3808
|
+
}, gi = (e = {}) => {
|
|
3813
3809
|
var t = e, {
|
|
3814
|
-
locale: r =
|
|
3815
|
-
} = t, n =
|
|
3810
|
+
locale: r = C()
|
|
3811
|
+
} = t, n = W(t, [
|
|
3816
3812
|
"locale"
|
|
3817
3813
|
]);
|
|
3818
|
-
return
|
|
3819
|
-
},
|
|
3814
|
+
return di(Je({ locale: r }, n));
|
|
3815
|
+
}, yi = He(
|
|
3820
3816
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3821
|
-
(e, t =
|
|
3822
|
-
ignoreTag:
|
|
3817
|
+
(e, t = C()) => new Zt(e, t, z().formats, {
|
|
3818
|
+
ignoreTag: z().ignoreTag
|
|
3823
3819
|
})
|
|
3824
|
-
),
|
|
3825
|
-
var r, n, i,
|
|
3826
|
-
let
|
|
3827
|
-
typeof e == "object" && (
|
|
3820
|
+
), _i = (e, t = {}) => {
|
|
3821
|
+
var r, n, i, a;
|
|
3822
|
+
let o = t;
|
|
3823
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3828
3824
|
const {
|
|
3829
3825
|
values: u,
|
|
3830
|
-
locale: l =
|
|
3831
|
-
default:
|
|
3832
|
-
} =
|
|
3826
|
+
locale: l = C(),
|
|
3827
|
+
default: s
|
|
3828
|
+
} = o;
|
|
3833
3829
|
if (l == null)
|
|
3834
3830
|
throw new Error(
|
|
3835
3831
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3836
3832
|
);
|
|
3837
3833
|
let h = Jt(e, l);
|
|
3838
3834
|
if (!h)
|
|
3839
|
-
h = (
|
|
3835
|
+
h = (a = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: s })) != null ? i : s) != null ? a : e;
|
|
3840
3836
|
else if (typeof h != "string")
|
|
3841
3837
|
return console.warn(
|
|
3842
3838
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3845,7 +3841,7 @@ const te = (e, t) => {
|
|
|
3845
3841
|
return h;
|
|
3846
3842
|
let f = h;
|
|
3847
3843
|
try {
|
|
3848
|
-
f =
|
|
3844
|
+
f = yi(h, l).format(u);
|
|
3849
3845
|
} catch (m) {
|
|
3850
3846
|
m instanceof Error && console.warn(
|
|
3851
3847
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3853,18 +3849,18 @@ const te = (e, t) => {
|
|
|
3853
3849
|
);
|
|
3854
3850
|
}
|
|
3855
3851
|
return f;
|
|
3856
|
-
},
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3852
|
+
}, Ei = (e, t) => gi(t).format(e), vi = (e, t) => bi(t).format(e), xi = (e, t) => pi(t).format(e), Ti = (e, t = C()) => Jt(e, t), Hi = X([M, re], () => _i);
|
|
3853
|
+
X([M], () => Ei);
|
|
3854
|
+
X([M], () => vi);
|
|
3855
|
+
X([M], () => xi);
|
|
3856
|
+
X([M, re], () => Ti);
|
|
3861
3857
|
function yt(e, t) {
|
|
3862
3858
|
Qt(e, t);
|
|
3863
3859
|
}
|
|
3864
|
-
function
|
|
3865
|
-
|
|
3860
|
+
function wi(e) {
|
|
3861
|
+
ri({
|
|
3866
3862
|
fallbackLocale: "en"
|
|
3867
|
-
}),
|
|
3863
|
+
}), M.set(e);
|
|
3868
3864
|
}
|
|
3869
3865
|
const _t = {
|
|
3870
3866
|
en: {
|
|
@@ -3923,28 +3919,28 @@ const _t = {
|
|
|
3923
3919
|
function Bi(e) {
|
|
3924
3920
|
hr(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}");
|
|
3925
3921
|
}
|
|
3926
|
-
const
|
|
3922
|
+
const Si = (e) => ({}), Et = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({}), Oi = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
|
|
3927
3923
|
function Ht(e) {
|
|
3928
3924
|
let t, r;
|
|
3929
3925
|
return {
|
|
3930
3926
|
c() {
|
|
3931
|
-
t =
|
|
3932
|
-
e[0]}/error-general-icon.png`) ||
|
|
3927
|
+
t = I("ui-image"), rt(t.src, r = `${/*assetsurl*/
|
|
3928
|
+
e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
|
|
3933
3929
|
},
|
|
3934
3930
|
m(n, i) {
|
|
3935
|
-
|
|
3931
|
+
V(n, t, i);
|
|
3936
3932
|
},
|
|
3937
3933
|
p(n, i) {
|
|
3938
3934
|
i & /*assetsurl*/
|
|
3939
3935
|
1 && !rt(t.src, r = `${/*assetsurl*/
|
|
3940
|
-
n[0]}/error-general-icon.png`) &&
|
|
3936
|
+
n[0]}/error-general-icon.png`) && he(t, "src", r);
|
|
3941
3937
|
},
|
|
3942
3938
|
d(n) {
|
|
3943
|
-
n &&
|
|
3939
|
+
n && L(t);
|
|
3944
3940
|
}
|
|
3945
3941
|
};
|
|
3946
3942
|
}
|
|
3947
|
-
function
|
|
3943
|
+
function Ii(e) {
|
|
3948
3944
|
let t, r = (
|
|
3949
3945
|
/*assetsurl*/
|
|
3950
3946
|
e[0] && Ht(e)
|
|
@@ -3954,18 +3950,18 @@ function Ci(e) {
|
|
|
3954
3950
|
r && r.c(), t = mr();
|
|
3955
3951
|
},
|
|
3956
3952
|
m(n, i) {
|
|
3957
|
-
r && r.m(n, i),
|
|
3953
|
+
r && r.m(n, i), V(n, t, i);
|
|
3958
3954
|
},
|
|
3959
3955
|
p(n, i) {
|
|
3960
3956
|
/*assetsurl*/
|
|
3961
3957
|
n[0] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3962
3958
|
},
|
|
3963
3959
|
d(n) {
|
|
3964
|
-
n &&
|
|
3960
|
+
n && L(t), r && r.d(n);
|
|
3965
3961
|
}
|
|
3966
3962
|
};
|
|
3967
3963
|
}
|
|
3968
|
-
function
|
|
3964
|
+
function Ci(e) {
|
|
3969
3965
|
let t, r = (
|
|
3970
3966
|
/*$_*/
|
|
3971
3967
|
e[3](`${/*errorcode*/
|
|
@@ -3973,38 +3969,38 @@ function Ni(e) {
|
|
|
3973
3969
|
), n;
|
|
3974
3970
|
return {
|
|
3975
3971
|
c() {
|
|
3976
|
-
t =
|
|
3972
|
+
t = I("span"), n = Ee(r), G(t, "class", "CashierErrorText");
|
|
3977
3973
|
},
|
|
3978
|
-
m(i,
|
|
3979
|
-
|
|
3974
|
+
m(i, a) {
|
|
3975
|
+
V(i, t, a), P(t, n);
|
|
3980
3976
|
},
|
|
3981
|
-
p(i,
|
|
3982
|
-
|
|
3977
|
+
p(i, a) {
|
|
3978
|
+
a & /*$_, errorcode*/
|
|
3983
3979
|
10 && r !== (r = /*$_*/
|
|
3984
3980
|
i[3](`${/*errorcode*/
|
|
3985
3981
|
i[1] || "errorGeneralText"}`) + "") && Pt(n, r);
|
|
3986
3982
|
},
|
|
3987
3983
|
d(i) {
|
|
3988
|
-
i &&
|
|
3984
|
+
i && L(t);
|
|
3989
3985
|
}
|
|
3990
3986
|
};
|
|
3991
3987
|
}
|
|
3992
|
-
function
|
|
3988
|
+
function Ni(e) {
|
|
3993
3989
|
let t, r, n = (
|
|
3994
3990
|
/*$_*/
|
|
3995
3991
|
e[3]("errorGeneralButton") + ""
|
|
3996
|
-
), i,
|
|
3992
|
+
), i, a, o;
|
|
3997
3993
|
return {
|
|
3998
3994
|
c() {
|
|
3999
|
-
t =
|
|
3995
|
+
t = I("button"), r = I("span"), i = Ee(n), G(t, "class", "CashierErrorButton");
|
|
4000
3996
|
},
|
|
4001
3997
|
m(u, l) {
|
|
4002
|
-
|
|
3998
|
+
V(u, t, l), P(t, r), P(r, i), a || (o = dr(
|
|
4003
3999
|
t,
|
|
4004
4000
|
"click",
|
|
4005
4001
|
/*close*/
|
|
4006
4002
|
e[4]
|
|
4007
|
-
),
|
|
4003
|
+
), a = !0);
|
|
4008
4004
|
},
|
|
4009
4005
|
p(u, l) {
|
|
4010
4006
|
l & /*$_*/
|
|
@@ -4012,25 +4008,25 @@ function Li(e) {
|
|
|
4012
4008
|
u[3]("errorGeneralButton") + "") && Pt(i, n);
|
|
4013
4009
|
},
|
|
4014
4010
|
d(u) {
|
|
4015
|
-
u &&
|
|
4011
|
+
u && L(t), a = !1, o();
|
|
4016
4012
|
}
|
|
4017
4013
|
};
|
|
4018
4014
|
}
|
|
4019
|
-
function
|
|
4020
|
-
let t, r, n, i,
|
|
4015
|
+
function Li(e) {
|
|
4016
|
+
let t, r, n, i, a, o;
|
|
4021
4017
|
const u = (
|
|
4022
4018
|
/*#slots*/
|
|
4023
4019
|
e[11].icon
|
|
4024
|
-
), l =
|
|
4020
|
+
), l = oe(
|
|
4025
4021
|
u,
|
|
4026
4022
|
e,
|
|
4027
4023
|
/*$$scope*/
|
|
4028
4024
|
e[10],
|
|
4029
4025
|
Tt
|
|
4030
|
-
),
|
|
4026
|
+
), s = l || Ii(e), h = (
|
|
4031
4027
|
/*#slots*/
|
|
4032
4028
|
e[11].title
|
|
4033
|
-
), f =
|
|
4029
|
+
), f = oe(
|
|
4034
4030
|
h,
|
|
4035
4031
|
e,
|
|
4036
4032
|
/*$$scope*/
|
|
@@ -4039,128 +4035,128 @@ function Mi(e) {
|
|
|
4039
4035
|
), m = (
|
|
4040
4036
|
/*#slots*/
|
|
4041
4037
|
e[11].text
|
|
4042
|
-
), d =
|
|
4038
|
+
), d = oe(
|
|
4043
4039
|
m,
|
|
4044
4040
|
e,
|
|
4045
4041
|
/*$$scope*/
|
|
4046
4042
|
e[10],
|
|
4047
4043
|
vt
|
|
4048
|
-
), p = d ||
|
|
4044
|
+
), p = d || Ci(e), v = (
|
|
4049
4045
|
/*#slots*/
|
|
4050
4046
|
e[11].button
|
|
4051
|
-
), T =
|
|
4047
|
+
), T = oe(
|
|
4052
4048
|
v,
|
|
4053
4049
|
e,
|
|
4054
4050
|
/*$$scope*/
|
|
4055
4051
|
e[10],
|
|
4056
4052
|
Et
|
|
4057
|
-
), x = T ||
|
|
4053
|
+
), x = T || Ni(e);
|
|
4058
4054
|
return {
|
|
4059
4055
|
c() {
|
|
4060
|
-
t =
|
|
4056
|
+
t = I("div"), r = I("div"), s && s.c(), n = Be(), f && f.c(), i = Be(), p && p.c(), a = Be(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
|
|
4061
4057
|
},
|
|
4062
4058
|
m(c, g) {
|
|
4063
|
-
|
|
4059
|
+
V(c, t, g), P(t, r), s && s.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, a), x && x.m(r, null), e[12](t), o = !0;
|
|
4064
4060
|
},
|
|
4065
4061
|
p(c, [g]) {
|
|
4066
|
-
l ? l.p && (!
|
|
4067
|
-
1024) &&
|
|
4062
|
+
l ? l.p && (!o || g & /*$$scope*/
|
|
4063
|
+
1024) && ue(
|
|
4068
4064
|
l,
|
|
4069
4065
|
u,
|
|
4070
4066
|
c,
|
|
4071
4067
|
/*$$scope*/
|
|
4072
4068
|
c[10],
|
|
4073
|
-
|
|
4069
|
+
o ? se(
|
|
4074
4070
|
u,
|
|
4075
4071
|
/*$$scope*/
|
|
4076
4072
|
c[10],
|
|
4077
4073
|
g,
|
|
4078
|
-
|
|
4079
|
-
) :
|
|
4074
|
+
Oi
|
|
4075
|
+
) : le(
|
|
4080
4076
|
/*$$scope*/
|
|
4081
4077
|
c[10]
|
|
4082
4078
|
),
|
|
4083
4079
|
Tt
|
|
4084
|
-
) :
|
|
4085
|
-
1) &&
|
|
4086
|
-
1024) &&
|
|
4080
|
+
) : s && s.p && (!o || g & /*assetsurl*/
|
|
4081
|
+
1) && s.p(c, o ? g : -1), f && f.p && (!o || g & /*$$scope*/
|
|
4082
|
+
1024) && ue(
|
|
4087
4083
|
f,
|
|
4088
4084
|
h,
|
|
4089
4085
|
c,
|
|
4090
4086
|
/*$$scope*/
|
|
4091
4087
|
c[10],
|
|
4092
|
-
|
|
4088
|
+
o ? se(
|
|
4093
4089
|
h,
|
|
4094
4090
|
/*$$scope*/
|
|
4095
4091
|
c[10],
|
|
4096
4092
|
g,
|
|
4097
|
-
|
|
4098
|
-
) :
|
|
4093
|
+
Pi
|
|
4094
|
+
) : le(
|
|
4099
4095
|
/*$$scope*/
|
|
4100
4096
|
c[10]
|
|
4101
4097
|
),
|
|
4102
4098
|
xt
|
|
4103
|
-
), d ? d.p && (!
|
|
4104
|
-
1024) &&
|
|
4099
|
+
), d ? d.p && (!o || g & /*$$scope*/
|
|
4100
|
+
1024) && ue(
|
|
4105
4101
|
d,
|
|
4106
4102
|
m,
|
|
4107
4103
|
c,
|
|
4108
4104
|
/*$$scope*/
|
|
4109
4105
|
c[10],
|
|
4110
|
-
|
|
4106
|
+
o ? se(
|
|
4111
4107
|
m,
|
|
4112
4108
|
/*$$scope*/
|
|
4113
4109
|
c[10],
|
|
4114
4110
|
g,
|
|
4115
|
-
|
|
4116
|
-
) :
|
|
4111
|
+
Ai
|
|
4112
|
+
) : le(
|
|
4117
4113
|
/*$$scope*/
|
|
4118
4114
|
c[10]
|
|
4119
4115
|
),
|
|
4120
4116
|
vt
|
|
4121
|
-
) : p && p.p && (!
|
|
4122
|
-
10) && p.p(c,
|
|
4123
|
-
1024) &&
|
|
4117
|
+
) : p && p.p && (!o || g & /*$_, errorcode*/
|
|
4118
|
+
10) && p.p(c, o ? g : -1), T ? T.p && (!o || g & /*$$scope*/
|
|
4119
|
+
1024) && ue(
|
|
4124
4120
|
T,
|
|
4125
4121
|
v,
|
|
4126
4122
|
c,
|
|
4127
4123
|
/*$$scope*/
|
|
4128
4124
|
c[10],
|
|
4129
|
-
|
|
4125
|
+
o ? se(
|
|
4130
4126
|
v,
|
|
4131
4127
|
/*$$scope*/
|
|
4132
4128
|
c[10],
|
|
4133
4129
|
g,
|
|
4134
|
-
|
|
4135
|
-
) :
|
|
4130
|
+
Si
|
|
4131
|
+
) : le(
|
|
4136
4132
|
/*$$scope*/
|
|
4137
4133
|
c[10]
|
|
4138
4134
|
),
|
|
4139
4135
|
Et
|
|
4140
|
-
) : x && x.p && (!
|
|
4141
|
-
8) && x.p(c,
|
|
4136
|
+
) : x && x.p && (!o || g & /*$_*/
|
|
4137
|
+
8) && x.p(c, o ? g : -1);
|
|
4142
4138
|
},
|
|
4143
4139
|
i(c) {
|
|
4144
|
-
|
|
4140
|
+
o || (J(s, c), J(f, c), J(p, c), J(x, c), o = !0);
|
|
4145
4141
|
},
|
|
4146
4142
|
o(c) {
|
|
4147
|
-
|
|
4143
|
+
ce(s, c), ce(f, c), ce(p, c), ce(x, c), o = !1;
|
|
4148
4144
|
},
|
|
4149
4145
|
d(c) {
|
|
4150
|
-
c &&
|
|
4146
|
+
c && L(t), s && s.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
4151
4147
|
}
|
|
4152
4148
|
};
|
|
4153
4149
|
}
|
|
4154
|
-
function
|
|
4150
|
+
function Mi(e, t, r) {
|
|
4155
4151
|
let n;
|
|
4156
|
-
lr(e,
|
|
4157
|
-
let { $$slots: i = {}, $$scope:
|
|
4152
|
+
lr(e, Hi, (c) => r(3, n = c));
|
|
4153
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4158
4154
|
const p = () => {
|
|
4159
|
-
|
|
4155
|
+
wi(u);
|
|
4160
4156
|
}, v = () => {
|
|
4161
4157
|
fetch(f).then((g) => g.json()).then((g) => {
|
|
4162
|
-
Object.keys(g).forEach((
|
|
4163
|
-
yt(
|
|
4158
|
+
Object.keys(g).forEach((A) => {
|
|
4159
|
+
yt(A, g[A]);
|
|
4164
4160
|
});
|
|
4165
4161
|
}).catch((g) => {
|
|
4166
4162
|
console.error(g);
|
|
@@ -4175,43 +4171,43 @@ function $i(e, t, r) {
|
|
|
4175
4171
|
yr(() => () => {
|
|
4176
4172
|
});
|
|
4177
4173
|
function x(c) {
|
|
4178
|
-
|
|
4174
|
+
Le[c ? "unshift" : "push"](() => {
|
|
4179
4175
|
d = c, r(2, d);
|
|
4180
4176
|
});
|
|
4181
4177
|
}
|
|
4182
4178
|
return e.$$set = (c) => {
|
|
4183
|
-
"assetsurl" in c && r(0,
|
|
4179
|
+
"assetsurl" in c && r(0, o = c.assetsurl), "lang" in c && r(5, u = c.lang), "errorcode" in c && r(1, l = c.errorcode), "clientstyling" in c && r(6, s = c.clientstyling), "clientstylingurl" in c && r(7, h = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, a = c.$$scope);
|
|
4184
4180
|
}, e.$$.update = () => {
|
|
4185
4181
|
e.$$.dirty & /*lang*/
|
|
4186
4182
|
32 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4187
|
-
68 &&
|
|
4183
|
+
68 && s && d && Ir(d, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4188
4184
|
132 && h && d && Cr(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4189
4185
|
516 && m && d && Nr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4190
4186
|
256 && f && v();
|
|
4191
4187
|
}, [
|
|
4192
|
-
|
|
4188
|
+
o,
|
|
4193
4189
|
l,
|
|
4194
4190
|
d,
|
|
4195
4191
|
n,
|
|
4196
4192
|
T,
|
|
4197
4193
|
u,
|
|
4198
|
-
|
|
4194
|
+
s,
|
|
4199
4195
|
h,
|
|
4200
4196
|
f,
|
|
4201
4197
|
m,
|
|
4202
|
-
|
|
4198
|
+
a,
|
|
4203
4199
|
i,
|
|
4204
4200
|
x
|
|
4205
4201
|
];
|
|
4206
4202
|
}
|
|
4207
|
-
class
|
|
4203
|
+
class $i extends Pr {
|
|
4208
4204
|
constructor(t) {
|
|
4209
|
-
super(),
|
|
4205
|
+
super(), Sr(
|
|
4210
4206
|
this,
|
|
4211
4207
|
t,
|
|
4212
|
-
$i,
|
|
4213
4208
|
Mi,
|
|
4214
|
-
|
|
4209
|
+
Li,
|
|
4210
|
+
Bt,
|
|
4215
4211
|
{
|
|
4216
4212
|
assetsurl: 0,
|
|
4217
4213
|
lang: 5,
|
|
@@ -4267,7 +4263,7 @@ class Ri extends Pr {
|
|
|
4267
4263
|
this.$$set({ mbsource: t }), B();
|
|
4268
4264
|
}
|
|
4269
4265
|
}
|
|
4270
|
-
Ar(
|
|
4266
|
+
Ar($i, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4271
4267
|
export {
|
|
4272
|
-
|
|
4268
|
+
$i as default
|
|
4273
4269
|
};
|