@everymatrix/cashier-error 1.86.0 → 1.86.1
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-C7AbW279.js → CashierError-Bupr3kgq.js} +605 -628
- package/components/{CashierError-CmjnBzFO.js → CashierError-DGO7RbEg.js} +624 -647
- package/components/{CashierError-DrQTtfgS.cjs → CashierError-l26mpTff.cjs} +3 -3
- 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
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
2
|
var ir = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var or = Object.prototype.hasOwnProperty,
|
|
5
|
-
var Be = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Be = (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
|
or.call(t, r) && Be(e, r, t[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var r of Qe(t))
|
|
10
|
+
sr.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
|
+
var w = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
26
|
}
|
|
27
|
-
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o,
|
|
27
|
+
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
|
-
function
|
|
31
|
+
function A() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ar(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -38,57 +38,57 @@ function sr(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function wt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function tt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function re(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(wt);
|
|
49
49
|
}
|
|
50
50
|
function We(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function St(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
56
|
let se;
|
|
57
|
-
function
|
|
57
|
+
function rt(e, t) {
|
|
58
58
|
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
59
59
|
}
|
|
60
60
|
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Bt(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return A;
|
|
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(Bt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ae(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i =
|
|
77
|
+
const i = At(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return e[1] && n ?
|
|
81
|
+
function At(e, t, r, n) {
|
|
82
|
+
return e[1] && n ? ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ue(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 o = [],
|
|
91
|
-
for (let u = 0; u <
|
|
90
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let u = 0; u < s; u += 1)
|
|
92
92
|
o[u] = t.dirty[u] | i[u];
|
|
93
93
|
return o;
|
|
94
94
|
}
|
|
@@ -96,13 +96,13 @@ function le(e, t, r, n) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function le(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const s = At(t, r, n, o);
|
|
102
|
+
e.p(s, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function he(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 ce(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function O(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 = C("style");
|
|
121
121
|
i.id = t, i.textContent = r, fr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,44 +132,44 @@ function cr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function fr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return O(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function X(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function M(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function C(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function xe(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
153
|
function Ae() {
|
|
154
|
-
return
|
|
154
|
+
return xe(" ");
|
|
155
155
|
}
|
|
156
156
|
function mr() {
|
|
157
|
-
return
|
|
157
|
+
return xe("");
|
|
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 k(e, t, r) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ce(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 : k(e, t, r);
|
|
168
168
|
}
|
|
169
169
|
function pr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Pt(e, t) {
|
|
173
173
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
174
|
t);
|
|
175
175
|
}
|
|
@@ -194,41 +194,41 @@ function gr() {
|
|
|
194
194
|
function yr(e) {
|
|
195
195
|
gr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
197
|
+
const U = [], $e = [];
|
|
198
|
+
let G = [];
|
|
199
|
+
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
200
200
|
let Re = !1;
|
|
201
201
|
function Er() {
|
|
202
|
-
Re || (Re = !0, _r.then(
|
|
202
|
+
Re || (Re = !0, _r.then(B));
|
|
203
203
|
}
|
|
204
204
|
function De(e) {
|
|
205
|
-
|
|
205
|
+
G.push(e);
|
|
206
206
|
}
|
|
207
207
|
const Pe = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
208
|
+
let R = 0;
|
|
209
|
+
function B() {
|
|
210
|
+
if (R !== 0)
|
|
211
211
|
return;
|
|
212
212
|
const e = K;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; R < U.length; ) {
|
|
216
|
+
const t = U[R];
|
|
217
|
+
R++, Y(t), vr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw U.length = 0, R = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (Y(null),
|
|
222
|
+
for (Y(null), U.length = 0, R = 0; $e.length; )
|
|
223
223
|
$e.pop()();
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
224
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
225
|
+
const r = G[t];
|
|
226
226
|
Pe.has(r) || (Pe.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
230
|
-
for (;
|
|
231
|
-
|
|
228
|
+
G.length = 0;
|
|
229
|
+
} while (U.length);
|
|
230
|
+
for (; nt.length; )
|
|
231
|
+
nt.pop()();
|
|
232
232
|
Re = !1, Pe.clear(), Y(e);
|
|
233
233
|
}
|
|
234
234
|
function vr(e) {
|
|
@@ -240,26 +240,26 @@ function vr(e) {
|
|
|
240
240
|
}
|
|
241
241
|
function xr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const de = /* @__PURE__ */ new Set();
|
|
246
246
|
let Tr;
|
|
247
247
|
function q(e, t) {
|
|
248
|
-
e && e.i && (
|
|
248
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function fe(e, t, r, n) {
|
|
251
251
|
if (e && e.o) {
|
|
252
|
-
if (
|
|
252
|
+
if (de.has(e))
|
|
253
253
|
return;
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
de.add(e), Tr.c.push(() => {
|
|
255
|
+
de.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
261
|
n && n.m(t, r), De(() => {
|
|
262
|
-
const o = e.$$.on_mount.map(
|
|
262
|
+
const o = e.$$.on_mount.map(wt).filter(We);
|
|
263
263
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
264
264
|
}), i.forEach(De);
|
|
265
265
|
}
|
|
@@ -268,19 +268,19 @@ function wr(e, t) {
|
|
|
268
268
|
r.fragment !== null && (xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
269
269
|
}
|
|
270
270
|
function Sr(e, t) {
|
|
271
|
-
e.$$.dirty[0] === -1 && (
|
|
271
|
+
e.$$.dirty[0] === -1 && (U.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function Br(e, t, r, n, i, o,
|
|
273
|
+
function Br(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
274
274
|
const l = K;
|
|
275
275
|
Y(e);
|
|
276
|
-
const
|
|
276
|
+
const a = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
279
279
|
// state
|
|
280
280
|
props: o,
|
|
281
|
-
update:
|
|
281
|
+
update: A,
|
|
282
282
|
not_equal: i,
|
|
283
|
-
bound:
|
|
283
|
+
bound: tt(),
|
|
284
284
|
// lifecycle
|
|
285
285
|
on_mount: [],
|
|
286
286
|
on_destroy: [],
|
|
@@ -289,23 +289,23 @@ function Br(e, t, r, n, i, o, a = null, u = [-1]) {
|
|
|
289
289
|
after_update: [],
|
|
290
290
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
291
291
|
// everything else
|
|
292
|
-
callbacks:
|
|
292
|
+
callbacks: tt(),
|
|
293
293
|
dirty: u,
|
|
294
294
|
skip_bound: !1,
|
|
295
295
|
root: t.target || l.$$.root
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
s && s(a.root);
|
|
298
298
|
let h = !1;
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
return
|
|
302
|
-
}) : [],
|
|
299
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
300
|
+
const p = d.length ? d[0] : m;
|
|
301
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = p) && (!a.skip_bound && a.bound[f] && a.bound[f](p), h && Sr(e, f)), m;
|
|
302
|
+
}) : [], a.update(), h = !0, re(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
304
|
const f = pr(t.target);
|
|
305
|
-
|
|
305
|
+
a.fragment && a.fragment.l(f), f.forEach(M);
|
|
306
306
|
} else
|
|
307
|
-
|
|
308
|
-
t.intro && q(e.$$.fragment), Hr(e, t.target, t.anchor),
|
|
307
|
+
a.fragment && a.fragment.c();
|
|
308
|
+
t.intro && q(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
309
309
|
}
|
|
310
310
|
Y(l);
|
|
311
311
|
}
|
|
@@ -314,23 +314,23 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
314
314
|
constructor(t, r, n) {
|
|
315
315
|
super();
|
|
316
316
|
/** The Svelte component constructor */
|
|
317
|
-
|
|
317
|
+
w(this, "$$ctor");
|
|
318
318
|
/** Slots */
|
|
319
|
-
|
|
319
|
+
w(this, "$$s");
|
|
320
320
|
/** The Svelte component instance */
|
|
321
|
-
|
|
321
|
+
w(this, "$$c");
|
|
322
322
|
/** Whether or not the custom element is connected */
|
|
323
|
-
|
|
323
|
+
w(this, "$$cn", !1);
|
|
324
324
|
/** Component props data */
|
|
325
|
-
|
|
325
|
+
w(this, "$$d", {});
|
|
326
326
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
327
|
-
|
|
327
|
+
w(this, "$$r", !1);
|
|
328
328
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
329
|
-
|
|
329
|
+
w(this, "$$p_d", {});
|
|
330
330
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
331
|
-
|
|
331
|
+
w(this, "$$l", {});
|
|
332
332
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
333
|
-
|
|
333
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
334
334
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
335
335
|
}
|
|
336
336
|
addEventListener(t, r, n) {
|
|
@@ -347,24 +347,24 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
connectedCallback() {
|
|
350
|
-
return
|
|
350
|
+
return et(this, null, function* () {
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
352
|
let t = function(o) {
|
|
353
353
|
return () => {
|
|
354
|
-
let
|
|
354
|
+
let s;
|
|
355
355
|
return {
|
|
356
356
|
c: function() {
|
|
357
|
-
|
|
357
|
+
s = C("slot"), o !== "default" && k(s, "name", o);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* @param {HTMLElement} target
|
|
361
361
|
* @param {HTMLElement} [anchor]
|
|
362
362
|
*/
|
|
363
|
-
m: function(
|
|
364
|
-
|
|
363
|
+
m: function(a, h) {
|
|
364
|
+
X(a, s, h);
|
|
365
365
|
},
|
|
366
|
-
d: function(
|
|
367
|
-
|
|
366
|
+
d: function(a) {
|
|
367
|
+
a && M(s);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
@@ -375,14 +375,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
375
375
|
for (const o of this.$$s)
|
|
376
376
|
o in n && (r[o] = [t(o)]);
|
|
377
377
|
for (const o of this.attributes) {
|
|
378
|
-
const
|
|
379
|
-
|
|
378
|
+
const s = this.$$g_p(o.name);
|
|
379
|
+
s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
381
|
for (const o in this.$$p_d)
|
|
382
382
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
383
383
|
this.$$c = new this.$$ctor({
|
|
384
384
|
target: this.shadowRoot || this,
|
|
385
|
-
props:
|
|
385
|
+
props: Ke(Ye({}, this.$$d), {
|
|
386
386
|
$$slots: r,
|
|
387
387
|
$$scope: {
|
|
388
388
|
ctx: []
|
|
@@ -393,21 +393,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
393
393
|
this.$$r = !0;
|
|
394
394
|
for (const o in this.$$p_d)
|
|
395
395
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
396
|
-
const
|
|
396
|
+
const s = pe(
|
|
397
397
|
o,
|
|
398
398
|
this.$$d[o],
|
|
399
399
|
this.$$p_d,
|
|
400
400
|
"toAttribute"
|
|
401
401
|
);
|
|
402
|
-
|
|
402
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
403
403
|
}
|
|
404
404
|
this.$$r = !1;
|
|
405
405
|
};
|
|
406
406
|
this.$$c.$$.after_update.push(i), i();
|
|
407
407
|
for (const o in this.$$l)
|
|
408
|
-
for (const
|
|
409
|
-
const u = this.$$c.$on(o,
|
|
410
|
-
this.$$l_u.set(
|
|
408
|
+
for (const s of this.$$l[o]) {
|
|
409
|
+
const u = this.$$c.$on(o, s);
|
|
410
|
+
this.$$l_u.set(s, 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] = pe(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,7 +430,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
430
430
|
) || t;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
433
|
+
function pe(e, t, r, n) {
|
|
434
434
|
var o;
|
|
435
435
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
436
436
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -461,7 +461,7 @@ function be(e, t, r, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ar(e, t, r, n, i, o) {
|
|
464
|
-
let
|
|
464
|
+
let s = 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(s.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 a;
|
|
481
|
+
l = pe(u, l, t), this.$$d[u] = l, (a = this.$$c) == null || a.$set({ [u]: l });
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), n.forEach((u) => {
|
|
485
|
-
Object.defineProperty(
|
|
485
|
+
Object.defineProperty(s.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
|
+
s, s;
|
|
493
493
|
}
|
|
494
494
|
class Pr {
|
|
495
495
|
constructor() {
|
|
@@ -500,7 +500,7 @@ class Pr {
|
|
|
500
500
|
*
|
|
501
501
|
* @type {any}
|
|
502
502
|
*/
|
|
503
|
-
|
|
503
|
+
w(this, "$$");
|
|
504
504
|
/**
|
|
505
505
|
* ### PRIVATE API
|
|
506
506
|
*
|
|
@@ -508,11 +508,11 @@ class Pr {
|
|
|
508
508
|
*
|
|
509
509
|
* @type {any}
|
|
510
510
|
*/
|
|
511
|
-
|
|
511
|
+
w(this, "$$set");
|
|
512
512
|
}
|
|
513
513
|
/** @returns {void} */
|
|
514
514
|
$destroy() {
|
|
515
|
-
wr(this, 1), this.$destroy =
|
|
515
|
+
wr(this, 1), this.$destroy = A;
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
518
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -522,7 +522,7 @@ class Pr {
|
|
|
522
522
|
*/
|
|
523
523
|
$on(t, r) {
|
|
524
524
|
if (!We(r))
|
|
525
|
-
return
|
|
525
|
+
return A;
|
|
526
526
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
527
|
return n.push(r), () => {
|
|
528
528
|
const i = n.indexOf(r);
|
|
@@ -564,66 +564,66 @@ function Nr(e, t, r) {
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const D = [];
|
|
568
568
|
function Lr(e, t) {
|
|
569
569
|
return {
|
|
570
570
|
subscribe: Te(e, t).subscribe
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function Te(e, t =
|
|
573
|
+
function Te(e, t = A) {
|
|
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 (St(e, u) && (e = u, r)) {
|
|
578
|
+
const l = !D.length;
|
|
579
|
+
for (const a of n)
|
|
580
|
+
a[1](), D.push(a, e);
|
|
581
581
|
if (l) {
|
|
582
|
-
for (let
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
for (let a = 0; a < D.length; a += 2)
|
|
583
|
+
D[a][0](D[a + 1]);
|
|
584
|
+
D.length = 0;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
function o(u) {
|
|
589
589
|
i(u(e));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
593
|
-
return n.add(
|
|
594
|
-
n.delete(
|
|
591
|
+
function s(u, l = A) {
|
|
592
|
+
const a = [u, l];
|
|
593
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || A), u(e), () => {
|
|
594
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
return { set: i, update: o, subscribe:
|
|
597
|
+
return { set: i, update: o, subscribe: s };
|
|
598
598
|
}
|
|
599
599
|
function W(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
603
|
const o = t.length < 2;
|
|
604
|
-
return Lr(r, (
|
|
604
|
+
return Lr(r, (s, u) => {
|
|
605
605
|
let l = !1;
|
|
606
|
-
const
|
|
607
|
-
let h = 0, f =
|
|
608
|
-
const
|
|
606
|
+
const a = [];
|
|
607
|
+
let h = 0, f = A;
|
|
608
|
+
const m = () => {
|
|
609
609
|
if (h)
|
|
610
610
|
return;
|
|
611
611
|
f();
|
|
612
|
-
const
|
|
613
|
-
o ?
|
|
614
|
-
},
|
|
615
|
-
(
|
|
616
|
-
|
|
612
|
+
const p = t(n ? a[0] : a, s, u);
|
|
613
|
+
o ? s(p) : f = We(p) ? p : A;
|
|
614
|
+
}, d = i.map(
|
|
615
|
+
(p, v) => Bt(
|
|
616
|
+
p,
|
|
617
617
|
(T) => {
|
|
618
|
-
|
|
618
|
+
a[v] = T, h &= ~(1 << v), l && m();
|
|
619
619
|
},
|
|
620
620
|
() => {
|
|
621
|
-
h |= 1 <<
|
|
621
|
+
h |= 1 << v;
|
|
622
622
|
}
|
|
623
623
|
)
|
|
624
624
|
);
|
|
625
|
-
return l = !0,
|
|
626
|
-
re(
|
|
625
|
+
return l = !0, m(), function() {
|
|
626
|
+
re(d), f(), l = !1;
|
|
627
627
|
};
|
|
628
628
|
});
|
|
629
629
|
}
|
|
@@ -648,7 +648,7 @@ function Fr(e) {
|
|
|
648
648
|
return Array.isArray(e) ? [] : {};
|
|
649
649
|
}
|
|
650
650
|
function ee(e, t) {
|
|
651
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
651
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Fr(e), e, t) : e;
|
|
652
652
|
}
|
|
653
653
|
function jr(e, t, r) {
|
|
654
654
|
return e.concat(t).map(function(n) {
|
|
@@ -657,16 +657,16 @@ function jr(e, t, r) {
|
|
|
657
657
|
}
|
|
658
658
|
function zr(e, t) {
|
|
659
659
|
if (!t.customMerge)
|
|
660
|
-
return
|
|
660
|
+
return F;
|
|
661
661
|
var r = t.customMerge(e);
|
|
662
|
-
return typeof r == "function" ? r :
|
|
662
|
+
return typeof r == "function" ? r : F;
|
|
663
663
|
}
|
|
664
664
|
function Vr(e) {
|
|
665
665
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
666
666
|
return Object.propertyIsEnumerable.call(e, t);
|
|
667
667
|
}) : [];
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function it(e) {
|
|
670
670
|
return Object.keys(e).concat(Vr(e));
|
|
671
671
|
}
|
|
672
672
|
function It(e, t) {
|
|
@@ -681,25 +681,25 @@ function Xr(e, t) {
|
|
|
681
681
|
}
|
|
682
682
|
function Wr(e, t, r) {
|
|
683
683
|
var n = {};
|
|
684
|
-
return r.isMergeableObject(e) &&
|
|
684
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
685
685
|
n[i] = ee(e[i], r);
|
|
686
|
-
}),
|
|
686
|
+
}), it(t).forEach(function(i) {
|
|
687
687
|
Xr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
688
688
|
}), n;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function F(e, t, r) {
|
|
691
691
|
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
|
|
692
692
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
693
693
|
return o ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
|
|
694
694
|
}
|
|
695
|
-
|
|
695
|
+
F.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 F(n, i, r);
|
|
700
700
|
}, {});
|
|
701
701
|
};
|
|
702
|
-
var Zr =
|
|
702
|
+
var Zr = F, Jr = Zr;
|
|
703
703
|
const qr = /* @__PURE__ */ Mr(Jr);
|
|
704
704
|
var Ue = function(e, t) {
|
|
705
705
|
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
@@ -718,15 +718,15 @@ function He(e, t) {
|
|
|
718
718
|
}
|
|
719
719
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
720
720
|
}
|
|
721
|
-
var
|
|
722
|
-
return
|
|
721
|
+
var S = function() {
|
|
722
|
+
return S = Object.assign || function(t) {
|
|
723
723
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
724
724
|
r = arguments[n];
|
|
725
725
|
for (var o in r)
|
|
726
726
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
727
727
|
}
|
|
728
728
|
return t;
|
|
729
|
-
},
|
|
729
|
+
}, S.apply(this, arguments);
|
|
730
730
|
};
|
|
731
731
|
function Qr(e, t) {
|
|
732
732
|
var r = {};
|
|
@@ -791,60 +791,60 @@ var rn = function() {
|
|
|
791
791
|
}
|
|
792
792
|
}, Ce = {
|
|
793
793
|
variadic: tn
|
|
794
|
-
},
|
|
795
|
-
return
|
|
794
|
+
}, ye = function() {
|
|
795
|
+
return ye = Object.assign || function(t) {
|
|
796
796
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
797
797
|
r = arguments[n];
|
|
798
798
|
for (var o in r)
|
|
799
799
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
800
800
|
}
|
|
801
801
|
return t;
|
|
802
|
-
},
|
|
802
|
+
}, ye.apply(this, arguments);
|
|
803
803
|
};
|
|
804
804
|
var b;
|
|
805
805
|
(function(e) {
|
|
806
806
|
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
807
|
})(b || (b = {}));
|
|
808
|
-
var
|
|
808
|
+
var _;
|
|
809
809
|
(function(e) {
|
|
810
810
|
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
|
|
811
|
+
})(_ || (_ = {}));
|
|
812
|
+
var j;
|
|
813
813
|
(function(e) {
|
|
814
814
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
815
|
-
})(
|
|
816
|
-
function
|
|
817
|
-
return e.type ===
|
|
815
|
+
})(j || (j = {}));
|
|
816
|
+
function ot(e) {
|
|
817
|
+
return e.type === _.literal;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return e.type ===
|
|
819
|
+
function sn(e) {
|
|
820
|
+
return e.type === _.argument;
|
|
821
821
|
}
|
|
822
822
|
function Lt(e) {
|
|
823
|
-
return e.type ===
|
|
823
|
+
return e.type === _.number;
|
|
824
824
|
}
|
|
825
825
|
function Mt(e) {
|
|
826
|
-
return e.type ===
|
|
826
|
+
return e.type === _.date;
|
|
827
827
|
}
|
|
828
828
|
function $t(e) {
|
|
829
|
-
return e.type ===
|
|
829
|
+
return e.type === _.time;
|
|
830
830
|
}
|
|
831
831
|
function Rt(e) {
|
|
832
|
-
return e.type ===
|
|
832
|
+
return e.type === _.select;
|
|
833
833
|
}
|
|
834
834
|
function Dt(e) {
|
|
835
|
-
return e.type ===
|
|
835
|
+
return e.type === _.plural;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
return e.type ===
|
|
837
|
+
function an(e) {
|
|
838
|
+
return e.type === _.pound;
|
|
839
839
|
}
|
|
840
840
|
function Ut(e) {
|
|
841
|
-
return e.type ===
|
|
841
|
+
return e.type === _.tag;
|
|
842
842
|
}
|
|
843
843
|
function Gt(e) {
|
|
844
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
844
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
845
845
|
}
|
|
846
846
|
function Ge(e) {
|
|
847
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
847
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
848
848
|
}
|
|
849
849
|
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[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;
|
|
850
850
|
function ln(e) {
|
|
@@ -938,28 +938,28 @@ function ln(e) {
|
|
|
938
938
|
return "";
|
|
939
939
|
}), t;
|
|
940
940
|
}
|
|
941
|
-
var
|
|
942
|
-
return
|
|
941
|
+
var E = function() {
|
|
942
|
+
return E = Object.assign || function(t) {
|
|
943
943
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
944
944
|
r = arguments[n];
|
|
945
945
|
for (var o in r)
|
|
946
946
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
947
947
|
}
|
|
948
948
|
return t;
|
|
949
|
-
},
|
|
949
|
+
}, E.apply(this, arguments);
|
|
950
950
|
};
|
|
951
951
|
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
952
952
|
function cn(e) {
|
|
953
953
|
if (e.length === 0)
|
|
954
954
|
throw new Error("Number skeleton cannot be empty");
|
|
955
|
-
for (var t = e.split(hn).filter(function(
|
|
956
|
-
return
|
|
955
|
+
for (var t = e.split(hn).filter(function(m) {
|
|
956
|
+
return m.length > 0;
|
|
957
957
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
958
|
-
var o = i[n],
|
|
959
|
-
if (
|
|
958
|
+
var o = i[n], s = o.split("/");
|
|
959
|
+
if (s.length === 0)
|
|
960
960
|
throw new Error("Invalid number skeleton");
|
|
961
|
-
for (var u =
|
|
962
|
-
var f = h[
|
|
961
|
+
for (var u = s[0], l = s.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
962
|
+
var f = h[a];
|
|
963
963
|
if (f.length === 0)
|
|
964
964
|
throw new Error("Invalid number skeleton");
|
|
965
965
|
}
|
|
@@ -971,7 +971,7 @@ function fn(e) {
|
|
|
971
971
|
return e.replace(/^(.*?)-/, "");
|
|
972
972
|
}
|
|
973
973
|
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
974
|
-
function
|
|
974
|
+
function at(e) {
|
|
975
975
|
var t = {};
|
|
976
976
|
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
977
|
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)), "";
|
|
@@ -1031,7 +1031,7 @@ function dn(e) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return t;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function ut(e) {
|
|
1035
1035
|
var t = {}, r = zt(e);
|
|
1036
1036
|
return r || t;
|
|
1037
1037
|
}
|
|
@@ -1070,13 +1070,13 @@ function pn(e) {
|
|
|
1070
1070
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1071
1071
|
continue;
|
|
1072
1072
|
case "scientific":
|
|
1073
|
-
t =
|
|
1074
|
-
return
|
|
1073
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1074
|
+
return E(E({}, l), ut(a));
|
|
1075
1075
|
}, {}));
|
|
1076
1076
|
continue;
|
|
1077
1077
|
case "engineering":
|
|
1078
|
-
t =
|
|
1079
|
-
return
|
|
1078
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1079
|
+
return E(E({}, l), ut(a));
|
|
1080
1080
|
}, {}));
|
|
1081
1081
|
continue;
|
|
1082
1082
|
case "notation-simple":
|
|
@@ -1121,13 +1121,13 @@ function pn(e) {
|
|
|
1121
1121
|
case "integer-width":
|
|
1122
1122
|
if (i.options.length > 1)
|
|
1123
1123
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1124
|
-
i.options[0].replace(mn, function(l,
|
|
1125
|
-
if (
|
|
1124
|
+
i.options[0].replace(mn, function(l, a, h, f, m, d) {
|
|
1125
|
+
if (a)
|
|
1126
1126
|
t.minimumIntegerDigits = h.length;
|
|
1127
1127
|
else {
|
|
1128
|
-
if (f &&
|
|
1128
|
+
if (f && m)
|
|
1129
1129
|
throw new Error("We currently do not support maximum integer digits");
|
|
1130
|
-
if (
|
|
1130
|
+
if (d)
|
|
1131
1131
|
throw new Error("We currently do not support exact integer digits");
|
|
1132
1132
|
}
|
|
1133
1133
|
return "";
|
|
@@ -1141,25 +1141,25 @@ function pn(e) {
|
|
|
1141
1141
|
if (st.test(i.stem)) {
|
|
1142
1142
|
if (i.options.length > 1)
|
|
1143
1143
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1144
|
-
i.stem.replace(st, function(l,
|
|
1145
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1144
|
+
i.stem.replace(st, function(l, a, h, f, m, d) {
|
|
1145
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1146
1146
|
});
|
|
1147
1147
|
var o = i.options[0];
|
|
1148
|
-
o === "w" ? t =
|
|
1148
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), at(o)));
|
|
1149
1149
|
continue;
|
|
1150
1150
|
}
|
|
1151
1151
|
if (Ft.test(i.stem)) {
|
|
1152
|
-
t =
|
|
1152
|
+
t = E(E({}, t), at(i.stem));
|
|
1153
1153
|
continue;
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1155
|
+
var s = zt(i.stem);
|
|
1156
|
+
s && (t = E(E({}, t), s));
|
|
1157
1157
|
var u = dn(i.stem);
|
|
1158
|
-
u && (t =
|
|
1158
|
+
u && (t = E(E({}, t), u));
|
|
1159
1159
|
}
|
|
1160
1160
|
return t;
|
|
1161
1161
|
}
|
|
1162
|
-
var
|
|
1162
|
+
var me = {
|
|
1163
1163
|
"001": [
|
|
1164
1164
|
"H",
|
|
1165
1165
|
"h"
|
|
@@ -2580,11 +2580,11 @@ function bn(e, t) {
|
|
|
2580
2580
|
if (i === "j") {
|
|
2581
2581
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2582
2582
|
o++, n++;
|
|
2583
|
-
var
|
|
2584
|
-
for ((
|
|
2583
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = gn(t);
|
|
2584
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2585
2585
|
r += l;
|
|
2586
|
-
for (;
|
|
2587
|
-
r =
|
|
2586
|
+
for (; s-- > 0; )
|
|
2587
|
+
r = a + r;
|
|
2588
2588
|
} else
|
|
2589
2589
|
i === "J" ? r += "H" : r += i;
|
|
2590
2590
|
}
|
|
@@ -2609,11 +2609,11 @@ function gn(e) {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
var r = e.language, n;
|
|
2611
2611
|
r !== "root" && (n = e.maximize().region);
|
|
2612
|
-
var i =
|
|
2612
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2613
2613
|
return i[0];
|
|
2614
2614
|
}
|
|
2615
2615
|
var Ne, yn = new RegExp("^".concat(kt.source, "*")), _n = new RegExp("".concat(kt.source, "*$"));
|
|
2616
|
-
function
|
|
2616
|
+
function y(e, t) {
|
|
2617
2617
|
return { start: e, end: t };
|
|
2618
2618
|
}
|
|
2619
2619
|
var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), vn = !!String.fromCodePoint, xn = !!Object.fromEntries, Tn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, Bn = Sn ? Number.isSafeInteger : function(e) {
|
|
@@ -2625,7 +2625,7 @@ try {
|
|
|
2625
2625
|
} catch (e) {
|
|
2626
2626
|
ke = !1;
|
|
2627
2627
|
}
|
|
2628
|
-
var
|
|
2628
|
+
var lt = En ? (
|
|
2629
2629
|
// Native
|
|
2630
2630
|
function(t, r, n) {
|
|
2631
2631
|
return t.startsWith(r, n);
|
|
@@ -2640,21 +2640,21 @@ var ht = En ? (
|
|
|
2640
2640
|
function() {
|
|
2641
2641
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2642
2642
|
t[r] = arguments[r];
|
|
2643
|
-
for (var n = "", i = t.length, o = 0,
|
|
2644
|
-
if (
|
|
2645
|
-
throw RangeError(
|
|
2646
|
-
n +=
|
|
2643
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2644
|
+
if (s = t[o++], s > 1114111)
|
|
2645
|
+
throw RangeError(s + " is not a valid code point");
|
|
2646
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2647
2647
|
}
|
|
2648
2648
|
return n;
|
|
2649
2649
|
}
|
|
2650
|
-
),
|
|
2650
|
+
), ht = (
|
|
2651
2651
|
// native
|
|
2652
2652
|
xn ? Object.fromEntries : (
|
|
2653
2653
|
// Ponyfill
|
|
2654
2654
|
function(t) {
|
|
2655
2655
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2656
|
-
var o = i[n],
|
|
2657
|
-
r[
|
|
2656
|
+
var o = i[n], s = o[0], u = o[1];
|
|
2657
|
+
r[s] = u;
|
|
2658
2658
|
}
|
|
2659
2659
|
return r;
|
|
2660
2660
|
}
|
|
@@ -2699,11 +2699,11 @@ function Xt(e, t) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
var je;
|
|
2701
2701
|
if (ke) {
|
|
2702
|
-
var
|
|
2702
|
+
var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2703
2703
|
je = function(t, r) {
|
|
2704
2704
|
var n;
|
|
2705
|
-
|
|
2706
|
-
var i =
|
|
2705
|
+
ct.lastIndex = r;
|
|
2706
|
+
var i = ct.exec(t);
|
|
2707
2707
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2708
2708
|
};
|
|
2709
2709
|
} else
|
|
@@ -2730,33 +2730,33 @@ var In = (
|
|
|
2730
2730
|
for (var i = []; !this.isEOF(); ) {
|
|
2731
2731
|
var o = this.char();
|
|
2732
2732
|
if (o === 123) {
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
2735
|
-
return
|
|
2736
|
-
i.push(
|
|
2733
|
+
var s = this.parseArgument(t, n);
|
|
2734
|
+
if (s.err)
|
|
2735
|
+
return s;
|
|
2736
|
+
i.push(s.val);
|
|
2737
2737
|
} else {
|
|
2738
2738
|
if (o === 125 && t > 0)
|
|
2739
2739
|
break;
|
|
2740
2740
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2741
2741
|
var u = this.clonePosition();
|
|
2742
2742
|
this.bump(), i.push({
|
|
2743
|
-
type:
|
|
2744
|
-
location:
|
|
2743
|
+
type: _.pound,
|
|
2744
|
+
location: y(u, this.clonePosition())
|
|
2745
2745
|
});
|
|
2746
2746
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2747
2747
|
if (n)
|
|
2748
2748
|
break;
|
|
2749
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
2749
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2750
2750
|
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
return
|
|
2754
|
-
i.push(
|
|
2751
|
+
var s = this.parseTag(t, r);
|
|
2752
|
+
if (s.err)
|
|
2753
|
+
return s;
|
|
2754
|
+
i.push(s.val);
|
|
2755
2755
|
} else {
|
|
2756
|
-
var
|
|
2757
|
-
if (
|
|
2758
|
-
return
|
|
2759
|
-
i.push(
|
|
2756
|
+
var s = this.parseLiteral(t, r);
|
|
2757
|
+
if (s.err)
|
|
2758
|
+
return s;
|
|
2759
|
+
i.push(s.val);
|
|
2760
2760
|
}
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
@@ -2768,9 +2768,9 @@ var In = (
|
|
|
2768
2768
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2769
2769
|
return {
|
|
2770
2770
|
val: {
|
|
2771
|
-
type:
|
|
2771
|
+
type: _.literal,
|
|
2772
2772
|
value: "<".concat(i, "/>"),
|
|
2773
|
-
location:
|
|
2773
|
+
location: y(n, this.clonePosition())
|
|
2774
2774
|
},
|
|
2775
2775
|
err: null
|
|
2776
2776
|
};
|
|
@@ -2778,24 +2778,24 @@ var In = (
|
|
|
2778
2778
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2779
2779
|
if (o.err)
|
|
2780
2780
|
return o;
|
|
2781
|
-
var
|
|
2781
|
+
var s = o.val, u = this.clonePosition();
|
|
2782
2782
|
if (this.bumpIf("</")) {
|
|
2783
2783
|
if (this.isEOF() || !ze(this.char()))
|
|
2784
|
-
return this.error(b.INVALID_TAG,
|
|
2785
|
-
var l = this.clonePosition(),
|
|
2786
|
-
return i !==
|
|
2784
|
+
return this.error(b.INVALID_TAG, y(u, this.clonePosition()));
|
|
2785
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2786
|
+
return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2787
2787
|
val: {
|
|
2788
|
-
type:
|
|
2788
|
+
type: _.tag,
|
|
2789
2789
|
value: i,
|
|
2790
|
-
children:
|
|
2791
|
-
location:
|
|
2790
|
+
children: s,
|
|
2791
|
+
location: y(n, this.clonePosition())
|
|
2792
2792
|
},
|
|
2793
2793
|
err: null
|
|
2794
|
-
} : this.error(b.INVALID_TAG,
|
|
2794
|
+
} : this.error(b.INVALID_TAG, y(u, this.clonePosition())));
|
|
2795
2795
|
} else
|
|
2796
|
-
return this.error(b.UNCLOSED_TAG,
|
|
2796
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2797
2797
|
} else
|
|
2798
|
-
return this.error(b.INVALID_TAG,
|
|
2798
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2799
2799
|
}, e.prototype.parseTagName = function() {
|
|
2800
2800
|
var t = this.offset();
|
|
2801
2801
|
for (this.bump(); !this.isEOF() && Nn(this.char()); )
|
|
@@ -2808,9 +2808,9 @@ var In = (
|
|
|
2808
2808
|
i += o;
|
|
2809
2809
|
continue;
|
|
2810
2810
|
}
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
i +=
|
|
2811
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2812
|
+
if (s) {
|
|
2813
|
+
i += s;
|
|
2814
2814
|
continue;
|
|
2815
2815
|
}
|
|
2816
2816
|
var u = this.tryParseLeftAngleBracket();
|
|
@@ -2820,9 +2820,9 @@ var In = (
|
|
|
2820
2820
|
}
|
|
2821
2821
|
break;
|
|
2822
2822
|
}
|
|
2823
|
-
var l =
|
|
2823
|
+
var l = y(n, this.clonePosition());
|
|
2824
2824
|
return {
|
|
2825
|
-
val: { type:
|
|
2825
|
+
val: { type: _.literal, value: i, location: l },
|
|
2826
2826
|
err: null
|
|
2827
2827
|
};
|
|
2828
2828
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2870,91 +2870,91 @@ var In = (
|
|
|
2870
2870
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2871
2871
|
var n = this.clonePosition();
|
|
2872
2872
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2873
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2873
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2874
2874
|
if (this.char() === 125)
|
|
2875
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
2875
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2876
2876
|
var i = this.parseIdentifierIfPossible().value;
|
|
2877
2877
|
if (!i)
|
|
2878
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
2878
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2879
2879
|
if (this.bumpSpace(), this.isEOF())
|
|
2880
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2880
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2881
2881
|
switch (this.char()) {
|
|
2882
2882
|
case 125:
|
|
2883
2883
|
return this.bump(), {
|
|
2884
2884
|
val: {
|
|
2885
|
-
type:
|
|
2885
|
+
type: _.argument,
|
|
2886
2886
|
// value does not include the opening and closing braces.
|
|
2887
2887
|
value: i,
|
|
2888
|
-
location:
|
|
2888
|
+
location: y(n, this.clonePosition())
|
|
2889
2889
|
},
|
|
2890
2890
|
err: null
|
|
2891
2891
|
};
|
|
2892
2892
|
case 44:
|
|
2893
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2893
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2894
2894
|
default:
|
|
2895
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
2895
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2896
2896
|
}
|
|
2897
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2898
2898
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2899
2899
|
this.bumpTo(i);
|
|
2900
|
-
var o = this.clonePosition(),
|
|
2901
|
-
return { value: n, location:
|
|
2900
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
2901
|
+
return { value: n, location: s };
|
|
2902
2902
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2903
|
-
var o,
|
|
2903
|
+
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2904
2904
|
switch (u) {
|
|
2905
2905
|
case "":
|
|
2906
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
2906
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
2907
2907
|
case "number":
|
|
2908
2908
|
case "date":
|
|
2909
2909
|
case "time": {
|
|
2910
2910
|
this.bumpSpace();
|
|
2911
|
-
var
|
|
2911
|
+
var a = null;
|
|
2912
2912
|
if (this.bumpIf(",")) {
|
|
2913
2913
|
this.bumpSpace();
|
|
2914
2914
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2915
2915
|
if (f.err)
|
|
2916
2916
|
return f;
|
|
2917
|
-
var
|
|
2918
|
-
if (
|
|
2919
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
2920
|
-
var
|
|
2921
|
-
|
|
2917
|
+
var m = On(f.val);
|
|
2918
|
+
if (m.length === 0)
|
|
2919
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2920
|
+
var d = y(h, this.clonePosition());
|
|
2921
|
+
a = { style: m, styleLocation: d };
|
|
2922
2922
|
}
|
|
2923
|
-
var
|
|
2924
|
-
if (
|
|
2925
|
-
return
|
|
2926
|
-
var
|
|
2927
|
-
if (
|
|
2928
|
-
var T = Pn(
|
|
2923
|
+
var p = this.tryParseArgumentClose(i);
|
|
2924
|
+
if (p.err)
|
|
2925
|
+
return p;
|
|
2926
|
+
var v = y(i, this.clonePosition());
|
|
2927
|
+
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2928
|
+
var T = Pn(a.style.slice(2));
|
|
2929
2929
|
if (u === "number") {
|
|
2930
|
-
var f = this.parseNumberSkeletonFromString(T,
|
|
2930
|
+
var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
|
|
2931
2931
|
return f.err ? f : {
|
|
2932
|
-
val: { type:
|
|
2932
|
+
val: { type: _.number, value: n, location: v, style: f.val },
|
|
2933
2933
|
err: null
|
|
2934
2934
|
};
|
|
2935
2935
|
} else {
|
|
2936
2936
|
if (T.length === 0)
|
|
2937
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
2938
|
-
var
|
|
2939
|
-
this.locale && (
|
|
2940
|
-
var
|
|
2941
|
-
type:
|
|
2942
|
-
pattern:
|
|
2943
|
-
location:
|
|
2944
|
-
parsedOptions: this.shouldParseSkeletons ? ln(
|
|
2945
|
-
},
|
|
2937
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
|
|
2938
|
+
var x = T;
|
|
2939
|
+
this.locale && (x = bn(T, this.locale));
|
|
2940
|
+
var m = {
|
|
2941
|
+
type: j.dateTime,
|
|
2942
|
+
pattern: x,
|
|
2943
|
+
location: a.styleLocation,
|
|
2944
|
+
parsedOptions: this.shouldParseSkeletons ? ln(x) : {}
|
|
2945
|
+
}, c = u === "date" ? _.date : _.time;
|
|
2946
2946
|
return {
|
|
2947
|
-
val: { type:
|
|
2947
|
+
val: { type: c, value: n, location: v, style: m },
|
|
2948
2948
|
err: null
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
2951
|
}
|
|
2952
2952
|
return {
|
|
2953
2953
|
val: {
|
|
2954
|
-
type: u === "number" ?
|
|
2954
|
+
type: u === "number" ? _.number : u === "date" ? _.date : _.time,
|
|
2955
2955
|
value: n,
|
|
2956
|
-
location:
|
|
2957
|
-
style: (o =
|
|
2956
|
+
location: v,
|
|
2957
|
+
style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
|
|
2958
2958
|
},
|
|
2959
2959
|
err: null
|
|
2960
2960
|
};
|
|
@@ -2962,52 +2962,52 @@ var In = (
|
|
|
2962
2962
|
case "plural":
|
|
2963
2963
|
case "selectordinal":
|
|
2964
2964
|
case "select": {
|
|
2965
|
-
var
|
|
2965
|
+
var g = this.clonePosition();
|
|
2966
2966
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2967
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g
|
|
2967
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ye({}, g)));
|
|
2968
2968
|
this.bumpSpace();
|
|
2969
|
-
var
|
|
2970
|
-
if (u !== "select" &&
|
|
2969
|
+
var P = this.parseIdentifierIfPossible(), L = 0;
|
|
2970
|
+
if (u !== "select" && P.value === "offset") {
|
|
2971
2971
|
if (!this.bumpIf(":"))
|
|
2972
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2972
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2973
2973
|
this.bumpSpace();
|
|
2974
2974
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2975
2975
|
if (f.err)
|
|
2976
2976
|
return f;
|
|
2977
|
-
this.bumpSpace(),
|
|
2977
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), L = f.val;
|
|
2978
2978
|
}
|
|
2979
|
-
var
|
|
2980
|
-
if (
|
|
2981
|
-
return
|
|
2982
|
-
var
|
|
2983
|
-
if (
|
|
2984
|
-
return
|
|
2985
|
-
var
|
|
2979
|
+
var oe = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2980
|
+
if (oe.err)
|
|
2981
|
+
return oe;
|
|
2982
|
+
var p = this.tryParseArgumentClose(i);
|
|
2983
|
+
if (p.err)
|
|
2984
|
+
return p;
|
|
2985
|
+
var qe = y(i, this.clonePosition());
|
|
2986
2986
|
return u === "select" ? {
|
|
2987
2987
|
val: {
|
|
2988
|
-
type:
|
|
2988
|
+
type: _.select,
|
|
2989
2989
|
value: n,
|
|
2990
|
-
options:
|
|
2991
|
-
location:
|
|
2990
|
+
options: ht(oe.val),
|
|
2991
|
+
location: qe
|
|
2992
2992
|
},
|
|
2993
2993
|
err: null
|
|
2994
2994
|
} : {
|
|
2995
2995
|
val: {
|
|
2996
|
-
type:
|
|
2996
|
+
type: _.plural,
|
|
2997
2997
|
value: n,
|
|
2998
|
-
options:
|
|
2999
|
-
offset:
|
|
2998
|
+
options: ht(oe.val),
|
|
2999
|
+
offset: L,
|
|
3000
3000
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3001
|
-
location:
|
|
3001
|
+
location: qe
|
|
3002
3002
|
},
|
|
3003
3003
|
err: null
|
|
3004
3004
|
};
|
|
3005
3005
|
}
|
|
3006
3006
|
default:
|
|
3007
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3007
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
3008
3008
|
}
|
|
3009
3009
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3010
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3010
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3011
3011
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3012
3012
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3013
3013
|
var n = this.char();
|
|
@@ -3016,7 +3016,7 @@ var In = (
|
|
|
3016
3016
|
this.bump();
|
|
3017
3017
|
var i = this.clonePosition();
|
|
3018
3018
|
if (!this.bumpUntil("'"))
|
|
3019
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3019
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3020
3020
|
this.bump();
|
|
3021
3021
|
break;
|
|
3022
3022
|
}
|
|
@@ -3052,7 +3052,7 @@ var In = (
|
|
|
3052
3052
|
}
|
|
3053
3053
|
return {
|
|
3054
3054
|
val: {
|
|
3055
|
-
type:
|
|
3055
|
+
type: j.number,
|
|
3056
3056
|
tokens: n,
|
|
3057
3057
|
location: r,
|
|
3058
3058
|
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
@@ -3060,50 +3060,50 @@ var In = (
|
|
|
3060
3060
|
err: null
|
|
3061
3061
|
};
|
|
3062
3062
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3063
|
-
for (var o,
|
|
3064
|
-
if (
|
|
3063
|
+
for (var o, s = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3064
|
+
if (a.length === 0) {
|
|
3065
3065
|
var f = this.clonePosition();
|
|
3066
3066
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3067
|
-
var
|
|
3068
|
-
if (
|
|
3069
|
-
return
|
|
3070
|
-
h =
|
|
3067
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3068
|
+
if (m.err)
|
|
3069
|
+
return m;
|
|
3070
|
+
h = y(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
3071
3071
|
} else
|
|
3072
3072
|
break;
|
|
3073
3073
|
}
|
|
3074
|
-
if (l.has(
|
|
3074
|
+
if (l.has(a))
|
|
3075
3075
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3076
|
-
|
|
3077
|
-
var
|
|
3076
|
+
a === "other" && (s = !0), this.bumpSpace();
|
|
3077
|
+
var d = this.clonePosition();
|
|
3078
3078
|
if (!this.bumpIf("{"))
|
|
3079
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3080
|
-
var
|
|
3081
|
-
if (
|
|
3082
|
-
return
|
|
3083
|
-
var
|
|
3084
|
-
if (
|
|
3085
|
-
return
|
|
3079
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3080
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3081
|
+
if (p.err)
|
|
3082
|
+
return p;
|
|
3083
|
+
var v = this.tryParseArgumentClose(d);
|
|
3084
|
+
if (v.err)
|
|
3085
|
+
return v;
|
|
3086
3086
|
u.push([
|
|
3087
|
-
|
|
3087
|
+
a,
|
|
3088
3088
|
{
|
|
3089
|
-
value:
|
|
3090
|
-
location:
|
|
3089
|
+
value: p.val,
|
|
3090
|
+
location: y(d, this.clonePosition())
|
|
3091
3091
|
}
|
|
3092
|
-
]), l.add(
|
|
3092
|
+
]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
3093
3093
|
}
|
|
3094
|
-
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
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 && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3095
3095
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3096
3096
|
var n = 1, i = this.clonePosition();
|
|
3097
3097
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3098
|
-
for (var o = !1,
|
|
3098
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3099
3099
|
var u = this.char();
|
|
3100
3100
|
if (u >= 48 && u <= 57)
|
|
3101
|
-
o = !0,
|
|
3101
|
+
o = !0, s = s * 10 + (u - 48), this.bump();
|
|
3102
3102
|
else
|
|
3103
3103
|
break;
|
|
3104
3104
|
}
|
|
3105
|
-
var l =
|
|
3106
|
-
return o ? (
|
|
3105
|
+
var l = y(i, this.clonePosition());
|
|
3106
|
+
return o ? (s *= n, Bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3107
3107
|
}, e.prototype.offset = function() {
|
|
3108
3108
|
return this.position.offset;
|
|
3109
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3137,7 +3137,7 @@ var In = (
|
|
|
3137
3137
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3138
3138
|
}
|
|
3139
3139
|
}, e.prototype.bumpIf = function(t) {
|
|
3140
|
-
if (
|
|
3140
|
+
if (lt(this.message, t, this.offset())) {
|
|
3141
3141
|
for (var r = 0; r < t.length; r++)
|
|
3142
3142
|
this.bump();
|
|
3143
3143
|
return !0;
|
|
@@ -3194,7 +3194,7 @@ function Ve(e) {
|
|
|
3194
3194
|
});
|
|
3195
3195
|
}
|
|
3196
3196
|
function Mn(e, t) {
|
|
3197
|
-
t === void 0 && (t = {}), t =
|
|
3197
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3198
3198
|
var r = new In(e, t).parse();
|
|
3199
3199
|
if (r.err) {
|
|
3200
3200
|
var n = SyntaxError(b[r.err.kind]);
|
|
@@ -3202,10 +3202,10 @@ function Mn(e, t) {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3204
3204
|
}
|
|
3205
|
-
var
|
|
3205
|
+
var z;
|
|
3206
3206
|
(function(e) {
|
|
3207
3207
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3208
|
-
})(
|
|
3208
|
+
})(z || (z = {}));
|
|
3209
3209
|
var we = (
|
|
3210
3210
|
/** @class */
|
|
3211
3211
|
function(e) {
|
|
@@ -3218,12 +3218,12 @@ var we = (
|
|
|
3218
3218
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3219
3219
|
}, t;
|
|
3220
3220
|
}(Error)
|
|
3221
|
-
),
|
|
3221
|
+
), ft = (
|
|
3222
3222
|
/** @class */
|
|
3223
3223
|
function(e) {
|
|
3224
3224
|
He(t, e);
|
|
3225
3225
|
function t(r, n, i, o) {
|
|
3226
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3226
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3227
3227
|
}
|
|
3228
3228
|
return t;
|
|
3229
3229
|
}(we)
|
|
@@ -3232,7 +3232,7 @@ var we = (
|
|
|
3232
3232
|
function(e) {
|
|
3233
3233
|
He(t, e);
|
|
3234
3234
|
function t(r, n, i) {
|
|
3235
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3235
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3236
3236
|
}
|
|
3237
3237
|
return t;
|
|
3238
3238
|
}(we)
|
|
@@ -3241,7 +3241,7 @@ var we = (
|
|
|
3241
3241
|
function(e) {
|
|
3242
3242
|
He(t, e);
|
|
3243
3243
|
function t(r, n) {
|
|
3244
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3244
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3245
3245
|
}
|
|
3246
3246
|
return t;
|
|
3247
3247
|
}(we)
|
|
@@ -3258,24 +3258,24 @@ function Dn(e) {
|
|
|
3258
3258
|
function Un(e) {
|
|
3259
3259
|
return typeof e == "function";
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3262
|
-
if (e.length === 1 &&
|
|
3261
|
+
function be(e, t, r, n, i, o, s) {
|
|
3262
|
+
if (e.length === 1 && ot(e[0]))
|
|
3263
3263
|
return [
|
|
3264
3264
|
{
|
|
3265
3265
|
type: H.literal,
|
|
3266
3266
|
value: e[0].value
|
|
3267
3267
|
}
|
|
3268
3268
|
];
|
|
3269
|
-
for (var u = [], l = 0,
|
|
3270
|
-
var h =
|
|
3271
|
-
if (
|
|
3269
|
+
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3270
|
+
var h = a[l];
|
|
3271
|
+
if (ot(h)) {
|
|
3272
3272
|
u.push({
|
|
3273
3273
|
type: H.literal,
|
|
3274
3274
|
value: h.value
|
|
3275
3275
|
});
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
|
-
if (
|
|
3278
|
+
if (an(h)) {
|
|
3279
3279
|
typeof o == "number" && u.push({
|
|
3280
3280
|
type: H.literal,
|
|
3281
3281
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3284,87 +3284,87 @@ function ge(e, t, r, n, i, o, a) {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
var f = h.value;
|
|
3286
3286
|
if (!(i && f in i))
|
|
3287
|
-
throw new Rn(f,
|
|
3288
|
-
var
|
|
3289
|
-
if (
|
|
3290
|
-
(!
|
|
3291
|
-
type: typeof
|
|
3292
|
-
value:
|
|
3287
|
+
throw new Rn(f, s);
|
|
3288
|
+
var m = i[f];
|
|
3289
|
+
if (sn(h)) {
|
|
3290
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), u.push({
|
|
3291
|
+
type: typeof m == "string" ? H.literal : H.object,
|
|
3292
|
+
value: m
|
|
3293
3293
|
});
|
|
3294
3294
|
continue;
|
|
3295
3295
|
}
|
|
3296
3296
|
if (Mt(h)) {
|
|
3297
|
-
var
|
|
3297
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3298
3298
|
u.push({
|
|
3299
3299
|
type: H.literal,
|
|
3300
|
-
value: r.getDateTimeFormat(t,
|
|
3300
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3301
3301
|
});
|
|
3302
3302
|
continue;
|
|
3303
3303
|
}
|
|
3304
3304
|
if ($t(h)) {
|
|
3305
|
-
var
|
|
3305
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3306
3306
|
u.push({
|
|
3307
3307
|
type: H.literal,
|
|
3308
|
-
value: r.getDateTimeFormat(t,
|
|
3308
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3309
3309
|
});
|
|
3310
3310
|
continue;
|
|
3311
3311
|
}
|
|
3312
3312
|
if (Lt(h)) {
|
|
3313
|
-
var
|
|
3314
|
-
|
|
3313
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3314
|
+
d && d.scale && (m = m * (d.scale || 1)), u.push({
|
|
3315
3315
|
type: H.literal,
|
|
3316
|
-
value: r.getNumberFormat(t,
|
|
3316
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3317
3317
|
});
|
|
3318
3318
|
continue;
|
|
3319
3319
|
}
|
|
3320
3320
|
if (Ut(h)) {
|
|
3321
|
-
var
|
|
3321
|
+
var p = h.children, v = h.value, T = i[v];
|
|
3322
3322
|
if (!Un(T))
|
|
3323
|
-
throw new $n(
|
|
3324
|
-
var
|
|
3325
|
-
return
|
|
3323
|
+
throw new $n(v, "function", s);
|
|
3324
|
+
var x = be(p, t, r, n, i, o), c = T(x.map(function(L) {
|
|
3325
|
+
return L.value;
|
|
3326
3326
|
}));
|
|
3327
|
-
Array.isArray(
|
|
3327
|
+
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(L) {
|
|
3328
3328
|
return {
|
|
3329
|
-
type: typeof
|
|
3330
|
-
value:
|
|
3329
|
+
type: typeof L == "string" ? H.literal : H.object,
|
|
3330
|
+
value: L
|
|
3331
3331
|
};
|
|
3332
3332
|
}));
|
|
3333
3333
|
}
|
|
3334
3334
|
if (Rt(h)) {
|
|
3335
|
-
var
|
|
3336
|
-
if (!
|
|
3337
|
-
throw new
|
|
3338
|
-
u.push.apply(u,
|
|
3335
|
+
var g = h.options[m] || h.options.other;
|
|
3336
|
+
if (!g)
|
|
3337
|
+
throw new ft(h.value, m, Object.keys(h.options), s);
|
|
3338
|
+
u.push.apply(u, be(g.value, t, r, n, i));
|
|
3339
3339
|
continue;
|
|
3340
3340
|
}
|
|
3341
3341
|
if (Dt(h)) {
|
|
3342
|
-
var
|
|
3343
|
-
if (!
|
|
3342
|
+
var g = h.options["=".concat(m)];
|
|
3343
|
+
if (!g) {
|
|
3344
3344
|
if (!Intl.PluralRules)
|
|
3345
3345
|
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3346
3346
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3347
|
-
`,
|
|
3348
|
-
var
|
|
3349
|
-
|
|
3347
|
+
`, z.MISSING_INTL_API, s);
|
|
3348
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3349
|
+
g = h.options[P] || h.options.other;
|
|
3350
3350
|
}
|
|
3351
|
-
if (!
|
|
3352
|
-
throw new
|
|
3353
|
-
u.push.apply(u,
|
|
3351
|
+
if (!g)
|
|
3352
|
+
throw new ft(h.value, m, Object.keys(h.options), s);
|
|
3353
|
+
u.push.apply(u, be(g.value, t, r, n, i, m - (h.offset || 0)));
|
|
3354
3354
|
continue;
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
3357
|
return Dn(u);
|
|
3358
3358
|
}
|
|
3359
3359
|
function Gn(e, t) {
|
|
3360
|
-
return t ?
|
|
3361
|
-
return r[n] =
|
|
3360
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3361
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3362
3362
|
}, {})) : e;
|
|
3363
3363
|
}
|
|
3364
3364
|
function kn(e, t) {
|
|
3365
3365
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3366
3366
|
return r[n] = Gn(e[n], t[n]), r;
|
|
3367
|
-
},
|
|
3367
|
+
}, S({}, e)) : e;
|
|
3368
3368
|
}
|
|
3369
3369
|
function Le(e) {
|
|
3370
3370
|
return {
|
|
@@ -3423,15 +3423,15 @@ var Zt = (
|
|
|
3423
3423
|
dateTime: {},
|
|
3424
3424
|
pluralRules: {}
|
|
3425
3425
|
}, this.format = function(l) {
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3429
|
-
var h =
|
|
3430
|
-
return !f.length ||
|
|
3426
|
+
var a = o.formatToParts(l);
|
|
3427
|
+
if (a.length === 1)
|
|
3428
|
+
return a[0].value;
|
|
3429
|
+
var h = a.reduce(function(f, m) {
|
|
3430
|
+
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
3431
|
}, []);
|
|
3432
3432
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3433
3433
|
}, this.formatToParts = function(l) {
|
|
3434
|
-
return
|
|
3434
|
+
return be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3435
3435
|
}, this.resolvedOptions = function() {
|
|
3436
3436
|
var l;
|
|
3437
3437
|
return {
|
|
@@ -3442,10 +3442,10 @@ var Zt = (
|
|
|
3442
3442
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3443
3443
|
if (this.message = t, !e.__parse)
|
|
3444
3444
|
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,
|
|
3445
|
+
var s = i || {};
|
|
3446
|
+
s.formatters;
|
|
3447
|
+
var u = Qr(s, ["formatters"]);
|
|
3448
|
+
this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
|
|
3449
3449
|
} else
|
|
3450
3450
|
this.ast = t;
|
|
3451
3451
|
if (!Array.isArray(this.ast))
|
|
@@ -3545,25 +3545,25 @@ function jn(e, t) {
|
|
|
3545
3545
|
n = void 0;
|
|
3546
3546
|
return n;
|
|
3547
3547
|
}
|
|
3548
|
-
const
|
|
3548
|
+
const I = {}, zn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Jt = (e, t) => {
|
|
3549
3549
|
if (t == null)
|
|
3550
3550
|
return;
|
|
3551
|
-
if (t in
|
|
3552
|
-
return
|
|
3553
|
-
const r =
|
|
3551
|
+
if (t in I && e in I[t])
|
|
3552
|
+
return I[t][e];
|
|
3553
|
+
const r = ie(t);
|
|
3554
3554
|
for (let n = 0; n < r.length; n++) {
|
|
3555
3555
|
const i = r[n], o = Xn(i, e);
|
|
3556
3556
|
if (o)
|
|
3557
3557
|
return zn(e, t, o);
|
|
3558
3558
|
}
|
|
3559
3559
|
};
|
|
3560
|
-
let
|
|
3561
|
-
const
|
|
3560
|
+
let Ze;
|
|
3561
|
+
const ne = Te({});
|
|
3562
3562
|
function Vn(e) {
|
|
3563
|
-
return
|
|
3563
|
+
return Ze[e] || null;
|
|
3564
3564
|
}
|
|
3565
3565
|
function qt(e) {
|
|
3566
|
-
return e in
|
|
3566
|
+
return e in Ze;
|
|
3567
3567
|
}
|
|
3568
3568
|
function Xn(e, t) {
|
|
3569
3569
|
if (!qt(e))
|
|
@@ -3574,7 +3574,7 @@ function Xn(e, t) {
|
|
|
3574
3574
|
function Wn(e) {
|
|
3575
3575
|
if (e == null)
|
|
3576
3576
|
return;
|
|
3577
|
-
const t =
|
|
3577
|
+
const t = ie(e);
|
|
3578
3578
|
for (let r = 0; r < t.length; r++) {
|
|
3579
3579
|
const n = t[r];
|
|
3580
3580
|
if (qt(n))
|
|
@@ -3582,28 +3582,28 @@ function Wn(e) {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
3584
|
function Qt(e, ...t) {
|
|
3585
|
-
delete
|
|
3585
|
+
delete I[e], ne.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3586
3586
|
}
|
|
3587
3587
|
W(
|
|
3588
|
-
[
|
|
3588
|
+
[ne],
|
|
3589
3589
|
([e]) => Object.keys(e)
|
|
3590
3590
|
);
|
|
3591
|
-
|
|
3592
|
-
const
|
|
3591
|
+
ne.subscribe((e) => Ze = e);
|
|
3592
|
+
const ge = {};
|
|
3593
3593
|
function Zn(e, t) {
|
|
3594
|
-
|
|
3594
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3595
3595
|
}
|
|
3596
3596
|
function Yt(e) {
|
|
3597
|
-
return
|
|
3597
|
+
return ge[e];
|
|
3598
3598
|
}
|
|
3599
3599
|
function Jn(e) {
|
|
3600
|
-
return
|
|
3600
|
+
return ie(e).map((t) => {
|
|
3601
3601
|
const r = Yt(t);
|
|
3602
3602
|
return [t, r ? [...r] : []];
|
|
3603
3603
|
}).filter(([, t]) => t.length > 0);
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return e == null ? !1 :
|
|
3605
|
+
function _e(e) {
|
|
3606
|
+
return e == null ? !1 : ie(e).some(
|
|
3607
3607
|
(t) => {
|
|
3608
3608
|
var r;
|
|
3609
3609
|
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
@@ -3617,7 +3617,7 @@ function qn(e, t) {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
const J = {};
|
|
3619
3619
|
function Kt(e) {
|
|
3620
|
-
if (!
|
|
3620
|
+
if (!_e(e))
|
|
3621
3621
|
return e in J ? J[e] : Promise.resolve();
|
|
3622
3622
|
const t = Jn(e);
|
|
3623
3623
|
return J[e] = Promise.all(
|
|
@@ -3625,17 +3625,17 @@ function Kt(e) {
|
|
|
3625
3625
|
([r, n]) => qn(r, n)
|
|
3626
3626
|
)
|
|
3627
3627
|
).then(() => {
|
|
3628
|
-
if (
|
|
3628
|
+
if (_e(e))
|
|
3629
3629
|
return Kt(e);
|
|
3630
3630
|
delete J[e];
|
|
3631
3631
|
}), J[e];
|
|
3632
3632
|
}
|
|
3633
|
-
var
|
|
3633
|
+
var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, Kn = (e, t) => {
|
|
3634
3634
|
var r = {};
|
|
3635
3635
|
for (var n in e)
|
|
3636
3636
|
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3637
|
-
if (e != null &&
|
|
3638
|
-
for (var n of
|
|
3637
|
+
if (e != null && mt)
|
|
3638
|
+
for (var n of mt(e))
|
|
3639
3639
|
t.indexOf(n) < 0 && Yn.call(e, n) && (r[n] = e[n]);
|
|
3640
3640
|
return r;
|
|
3641
3641
|
};
|
|
@@ -3671,9 +3671,9 @@ const ei = {
|
|
|
3671
3671
|
};
|
|
3672
3672
|
function ti({ locale: e, id: t }) {
|
|
3673
3673
|
console.warn(
|
|
3674
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3674
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3675
3675
|
e
|
|
3676
|
-
).join('", "')}".${
|
|
3676
|
+
).join('", "')}".${_e(N()) ? `
|
|
3677
3677
|
|
|
3678
3678
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3679
3679
|
);
|
|
@@ -3686,7 +3686,7 @@ const ri = {
|
|
|
3686
3686
|
handleMissingMessage: void 0,
|
|
3687
3687
|
ignoreTag: !0
|
|
3688
3688
|
}, Q = ri;
|
|
3689
|
-
function
|
|
3689
|
+
function V() {
|
|
3690
3690
|
return Q;
|
|
3691
3691
|
}
|
|
3692
3692
|
function ni(e) {
|
|
@@ -3702,47 +3702,47 @@ function ni(e) {
|
|
|
3702
3702
|
}
|
|
3703
3703
|
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ti : console.warn(
|
|
3704
3704
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3705
|
-
)), 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)),
|
|
3705
|
+
)), 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)), $.set(i);
|
|
3706
3706
|
}
|
|
3707
3707
|
const Me = Te(!1);
|
|
3708
|
-
var ii = Object.defineProperty, oi = Object.defineProperties,
|
|
3708
|
+
var ii = Object.defineProperty, oi = Object.defineProperties, si = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3709
3709
|
for (var r in t || (t = {}))
|
|
3710
|
-
|
|
3711
|
-
if (
|
|
3712
|
-
for (var r of
|
|
3713
|
-
ui.call(t, r) &&
|
|
3710
|
+
ai.call(t, r) && pt(e, r, t[r]);
|
|
3711
|
+
if (dt)
|
|
3712
|
+
for (var r of dt(t))
|
|
3713
|
+
ui.call(t, r) && pt(e, r, t[r]);
|
|
3714
3714
|
return e;
|
|
3715
|
-
}, hi = (e, t) => oi(e,
|
|
3715
|
+
}, hi = (e, t) => oi(e, si(t));
|
|
3716
3716
|
let Xe;
|
|
3717
|
-
const
|
|
3718
|
-
function
|
|
3717
|
+
const Ee = Te(null);
|
|
3718
|
+
function bt(e) {
|
|
3719
3719
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3720
3720
|
}
|
|
3721
|
-
function
|
|
3722
|
-
const r =
|
|
3723
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3721
|
+
function ie(e, t = V().fallbackLocale) {
|
|
3722
|
+
const r = bt(e);
|
|
3723
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3725
|
+
function N() {
|
|
3726
3726
|
return Xe != null ? Xe : void 0;
|
|
3727
3727
|
}
|
|
3728
|
-
|
|
3728
|
+
Ee.subscribe((e) => {
|
|
3729
3729
|
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3730
3730
|
});
|
|
3731
3731
|
const ci = (e) => {
|
|
3732
|
-
if (e && Wn(e) &&
|
|
3733
|
-
const { loadingDelay: t } =
|
|
3732
|
+
if (e && Wn(e) && _e(e)) {
|
|
3733
|
+
const { loadingDelay: t } = V();
|
|
3734
3734
|
let r;
|
|
3735
|
-
return typeof window != "undefined" &&
|
|
3735
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3736
3736
|
() => Me.set(!0),
|
|
3737
3737
|
t
|
|
3738
3738
|
) : Me.set(!0), Kt(e).then(() => {
|
|
3739
|
-
|
|
3739
|
+
Ee.set(e);
|
|
3740
3740
|
}).finally(() => {
|
|
3741
3741
|
clearTimeout(r), Me.set(!1);
|
|
3742
3742
|
});
|
|
3743
3743
|
}
|
|
3744
|
-
return
|
|
3745
|
-
},
|
|
3744
|
+
return Ee.set(e);
|
|
3745
|
+
}, $ = hi(li({}, Ee), {
|
|
3746
3746
|
set: ci
|
|
3747
3747
|
}), Se = (e) => {
|
|
3748
3748
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3751,24 +3751,24 @@ const ci = (e) => {
|
|
|
3751
3751
|
return i in t ? t[i] : t[i] = e(n);
|
|
3752
3752
|
};
|
|
3753
3753
|
};
|
|
3754
|
-
var fi = Object.defineProperty,
|
|
3754
|
+
var fi = Object.defineProperty, ve = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3755
3755
|
for (var r in t || (t = {}))
|
|
3756
|
-
er.call(t, r) &&
|
|
3757
|
-
if (
|
|
3758
|
-
for (var r of
|
|
3759
|
-
tr.call(t, r) &&
|
|
3756
|
+
er.call(t, r) && gt(e, r, t[r]);
|
|
3757
|
+
if (ve)
|
|
3758
|
+
for (var r of ve(t))
|
|
3759
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3760
3760
|
return e;
|
|
3761
3761
|
}, Z = (e, t) => {
|
|
3762
3762
|
var r = {};
|
|
3763
3763
|
for (var n in e)
|
|
3764
3764
|
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3765
|
-
if (e != null &&
|
|
3766
|
-
for (var n of
|
|
3765
|
+
if (e != null && ve)
|
|
3766
|
+
for (var n of ve(e))
|
|
3767
3767
|
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3768
3768
|
return r;
|
|
3769
3769
|
};
|
|
3770
3770
|
const te = (e, t) => {
|
|
3771
|
-
const { formats: r } =
|
|
3771
|
+
const { formats: r } = V();
|
|
3772
3772
|
if (e in r && t in r[e])
|
|
3773
3773
|
return r[e][t];
|
|
3774
3774
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
@@ -3797,46 +3797,46 @@ const te = (e, t) => {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
), bi = (e = {}) => {
|
|
3799
3799
|
var t = e, {
|
|
3800
|
-
locale: r =
|
|
3800
|
+
locale: r = N()
|
|
3801
3801
|
} = t, n = Z(t, [
|
|
3802
3802
|
"locale"
|
|
3803
3803
|
]);
|
|
3804
|
-
return mi(
|
|
3804
|
+
return mi(Je({ locale: r }, n));
|
|
3805
3805
|
}, gi = (e = {}) => {
|
|
3806
3806
|
var t = e, {
|
|
3807
|
-
locale: r =
|
|
3807
|
+
locale: r = N()
|
|
3808
3808
|
} = t, n = Z(t, [
|
|
3809
3809
|
"locale"
|
|
3810
3810
|
]);
|
|
3811
|
-
return di(
|
|
3811
|
+
return di(Je({ locale: r }, n));
|
|
3812
3812
|
}, yi = (e = {}) => {
|
|
3813
3813
|
var t = e, {
|
|
3814
|
-
locale: r =
|
|
3814
|
+
locale: r = N()
|
|
3815
3815
|
} = t, n = Z(t, [
|
|
3816
3816
|
"locale"
|
|
3817
3817
|
]);
|
|
3818
|
-
return pi(
|
|
3818
|
+
return pi(Je({ locale: r }, n));
|
|
3819
3819
|
}, _i = Se(
|
|
3820
3820
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3821
|
-
(e, t =
|
|
3822
|
-
ignoreTag:
|
|
3821
|
+
(e, t = N()) => new Zt(e, t, V().formats, {
|
|
3822
|
+
ignoreTag: V().ignoreTag
|
|
3823
3823
|
})
|
|
3824
3824
|
), Ei = (e, t = {}) => {
|
|
3825
3825
|
var r, n, i, o;
|
|
3826
|
-
let
|
|
3827
|
-
typeof e == "object" && (
|
|
3826
|
+
let s = t;
|
|
3827
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3828
3828
|
const {
|
|
3829
3829
|
values: u,
|
|
3830
|
-
locale: l =
|
|
3831
|
-
default:
|
|
3832
|
-
} =
|
|
3830
|
+
locale: l = N(),
|
|
3831
|
+
default: a
|
|
3832
|
+
} = s;
|
|
3833
3833
|
if (l == null)
|
|
3834
3834
|
throw new Error(
|
|
3835
3835
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3836
3836
|
);
|
|
3837
3837
|
let h = Jt(e, l);
|
|
3838
3838
|
if (!h)
|
|
3839
|
-
h = (o = (i = (n = (r =
|
|
3839
|
+
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3840
3840
|
else if (typeof h != "string")
|
|
3841
3841
|
return console.warn(
|
|
3842
3842
|
`[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.`
|
|
@@ -3846,27 +3846,27 @@ const te = (e, t) => {
|
|
|
3846
3846
|
let f = h;
|
|
3847
3847
|
try {
|
|
3848
3848
|
f = _i(h, l).format(u);
|
|
3849
|
-
} catch (
|
|
3850
|
-
|
|
3849
|
+
} catch (m) {
|
|
3850
|
+
m instanceof Error && console.warn(
|
|
3851
3851
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3852
|
-
|
|
3852
|
+
m.message
|
|
3853
3853
|
);
|
|
3854
3854
|
}
|
|
3855
3855
|
return f;
|
|
3856
|
-
}, vi = (e, t) => yi(t).format(e), xi = (e, t) => gi(t).format(e), Ti = (e, t) => bi(t).format(e), Hi = (e, t =
|
|
3857
|
-
W([
|
|
3858
|
-
W([
|
|
3859
|
-
W([
|
|
3860
|
-
W([
|
|
3861
|
-
function
|
|
3856
|
+
}, vi = (e, t) => yi(t).format(e), xi = (e, t) => gi(t).format(e), Ti = (e, t) => bi(t).format(e), Hi = (e, t = N()) => Jt(e, t), wi = W([$, ne], () => Ei);
|
|
3857
|
+
W([$], () => vi);
|
|
3858
|
+
W([$], () => xi);
|
|
3859
|
+
W([$], () => Ti);
|
|
3860
|
+
W([$, ne], () => Hi);
|
|
3861
|
+
function yt(e, t) {
|
|
3862
3862
|
Qt(e, t);
|
|
3863
3863
|
}
|
|
3864
3864
|
function Si(e) {
|
|
3865
3865
|
ni({
|
|
3866
3866
|
fallbackLocale: "en"
|
|
3867
|
-
}),
|
|
3867
|
+
}), $.set(e);
|
|
3868
3868
|
}
|
|
3869
|
-
const
|
|
3869
|
+
const _t = {
|
|
3870
3870
|
en: {
|
|
3871
3871
|
errorGeneralTitle: "Error Occurred",
|
|
3872
3872
|
errorGeneralText: "Something went wrong",
|
|
@@ -3923,71 +3923,49 @@ const Et = {
|
|
|
3923
3923
|
function Bi(e) {
|
|
3924
3924
|
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
3925
|
}
|
|
3926
|
-
const Ai = (e) => ({}),
|
|
3927
|
-
function
|
|
3926
|
+
const Ai = (e) => ({}), Et = (e) => ({}), Pi = (e) => ({}), vt = (e) => ({}), Oi = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
|
|
3927
|
+
function Ht(e) {
|
|
3928
3928
|
let t, r;
|
|
3929
3929
|
return {
|
|
3930
3930
|
c() {
|
|
3931
|
-
t =
|
|
3932
|
-
e[0]}/error-general-icon.png`) ||
|
|
3931
|
+
t = C("ui-image"), rt(t.src, r = `${/*assetsurl*/
|
|
3932
|
+
e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
|
|
3933
3933
|
},
|
|
3934
3934
|
m(n, i) {
|
|
3935
|
-
|
|
3935
|
+
X(n, t, i);
|
|
3936
3936
|
},
|
|
3937
3937
|
p(n, i) {
|
|
3938
3938
|
i & /*assetsurl*/
|
|
3939
|
-
1 && !
|
|
3940
|
-
n[0]}/error-general-icon.png`) &&
|
|
3939
|
+
1 && !rt(t.src, r = `${/*assetsurl*/
|
|
3940
|
+
n[0]}/error-general-icon.png`) && ce(t, "src", r);
|
|
3941
3941
|
},
|
|
3942
3942
|
d(n) {
|
|
3943
|
-
n &&
|
|
3943
|
+
n && M(t);
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
3946
|
}
|
|
3947
3947
|
function Ci(e) {
|
|
3948
3948
|
let t, r = (
|
|
3949
3949
|
/*assetsurl*/
|
|
3950
|
-
e[0] &&
|
|
3950
|
+
e[0] && Ht(e)
|
|
3951
3951
|
);
|
|
3952
3952
|
return {
|
|
3953
3953
|
c() {
|
|
3954
3954
|
r && r.c(), t = mr();
|
|
3955
3955
|
},
|
|
3956
3956
|
m(n, i) {
|
|
3957
|
-
r && r.m(n, i),
|
|
3957
|
+
r && r.m(n, i), X(n, t, i);
|
|
3958
3958
|
},
|
|
3959
3959
|
p(n, i) {
|
|
3960
3960
|
/*assetsurl*/
|
|
3961
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3961
|
+
n[0] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3962
3962
|
},
|
|
3963
3963
|
d(n) {
|
|
3964
|
-
n &&
|
|
3964
|
+
n && M(t), r && r.d(n);
|
|
3965
3965
|
}
|
|
3966
3966
|
};
|
|
3967
3967
|
}
|
|
3968
3968
|
function Ni(e) {
|
|
3969
|
-
let t, r = (
|
|
3970
|
-
/*$_*/
|
|
3971
|
-
e[3]("errorGeneralTitle") + ""
|
|
3972
|
-
), n;
|
|
3973
|
-
return {
|
|
3974
|
-
c() {
|
|
3975
|
-
t = I("span"), n = ne(r), $(t, "class", "CashierErrorTitle");
|
|
3976
|
-
},
|
|
3977
|
-
m(i, o) {
|
|
3978
|
-
R(i, t, o), P(t, n);
|
|
3979
|
-
},
|
|
3980
|
-
p(i, o) {
|
|
3981
|
-
o & /*$_*/
|
|
3982
|
-
8 && r !== (r = /*$_*/
|
|
3983
|
-
i[3]("errorGeneralTitle") + "") && Ze(n, r);
|
|
3984
|
-
},
|
|
3985
|
-
d(i) {
|
|
3986
|
-
i && N(t);
|
|
3987
|
-
}
|
|
3988
|
-
};
|
|
3989
|
-
}
|
|
3990
|
-
function Li(e) {
|
|
3991
3969
|
let t, r = (
|
|
3992
3970
|
/*$_*/
|
|
3993
3971
|
e[3](`${/*errorcode*/
|
|
@@ -3995,33 +3973,33 @@ function Li(e) {
|
|
|
3995
3973
|
), n;
|
|
3996
3974
|
return {
|
|
3997
3975
|
c() {
|
|
3998
|
-
t =
|
|
3976
|
+
t = C("span"), n = xe(r), k(t, "class", "CashierErrorText");
|
|
3999
3977
|
},
|
|
4000
3978
|
m(i, o) {
|
|
4001
|
-
|
|
3979
|
+
X(i, t, o), O(t, n);
|
|
4002
3980
|
},
|
|
4003
3981
|
p(i, o) {
|
|
4004
3982
|
o & /*$_, errorcode*/
|
|
4005
3983
|
10 && r !== (r = /*$_*/
|
|
4006
3984
|
i[3](`${/*errorcode*/
|
|
4007
|
-
i[1] || "errorGeneralText"}`) + "") &&
|
|
3985
|
+
i[1] || "errorGeneralText"}`) + "") && Pt(n, r);
|
|
4008
3986
|
},
|
|
4009
3987
|
d(i) {
|
|
4010
|
-
i &&
|
|
3988
|
+
i && M(t);
|
|
4011
3989
|
}
|
|
4012
3990
|
};
|
|
4013
3991
|
}
|
|
4014
|
-
function
|
|
3992
|
+
function Li(e) {
|
|
4015
3993
|
let t, r, n = (
|
|
4016
3994
|
/*$_*/
|
|
4017
3995
|
e[3]("errorGeneralButton") + ""
|
|
4018
|
-
), i, o,
|
|
3996
|
+
), i, o, s;
|
|
4019
3997
|
return {
|
|
4020
3998
|
c() {
|
|
4021
|
-
t =
|
|
3999
|
+
t = C("button"), r = C("span"), i = xe(n), k(t, "class", "CashierErrorButton");
|
|
4022
4000
|
},
|
|
4023
4001
|
m(u, l) {
|
|
4024
|
-
|
|
4002
|
+
X(u, t, l), O(t, r), O(r, i), o || (s = dr(
|
|
4025
4003
|
t,
|
|
4026
4004
|
"click",
|
|
4027
4005
|
/*close*/
|
|
@@ -4031,210 +4009,209 @@ function Mi(e) {
|
|
|
4031
4009
|
p(u, l) {
|
|
4032
4010
|
l & /*$_*/
|
|
4033
4011
|
8 && n !== (n = /*$_*/
|
|
4034
|
-
u[3]("errorGeneralButton") + "") &&
|
|
4012
|
+
u[3]("errorGeneralButton") + "") && Pt(i, n);
|
|
4035
4013
|
},
|
|
4036
4014
|
d(u) {
|
|
4037
|
-
u &&
|
|
4015
|
+
u && M(t), o = !1, s();
|
|
4038
4016
|
}
|
|
4039
4017
|
};
|
|
4040
4018
|
}
|
|
4041
|
-
function
|
|
4042
|
-
let t, r, n, i, o,
|
|
4019
|
+
function Mi(e) {
|
|
4020
|
+
let t, r, n, i, o, s;
|
|
4043
4021
|
const u = (
|
|
4044
4022
|
/*#slots*/
|
|
4045
4023
|
e[11].icon
|
|
4046
|
-
), l =
|
|
4024
|
+
), l = ae(
|
|
4047
4025
|
u,
|
|
4048
4026
|
e,
|
|
4049
4027
|
/*$$scope*/
|
|
4050
4028
|
e[10],
|
|
4051
|
-
|
|
4052
|
-
),
|
|
4029
|
+
Tt
|
|
4030
|
+
), a = l || Ci(e), h = (
|
|
4053
4031
|
/*#slots*/
|
|
4054
4032
|
e[11].title
|
|
4055
|
-
), f =
|
|
4033
|
+
), f = ae(
|
|
4056
4034
|
h,
|
|
4057
4035
|
e,
|
|
4058
4036
|
/*$$scope*/
|
|
4059
4037
|
e[10],
|
|
4060
|
-
|
|
4061
|
-
),
|
|
4038
|
+
xt
|
|
4039
|
+
), m = (
|
|
4062
4040
|
/*#slots*/
|
|
4063
4041
|
e[11].text
|
|
4064
|
-
),
|
|
4065
|
-
|
|
4042
|
+
), d = ae(
|
|
4043
|
+
m,
|
|
4066
4044
|
e,
|
|
4067
4045
|
/*$$scope*/
|
|
4068
4046
|
e[10],
|
|
4069
|
-
|
|
4070
|
-
),
|
|
4047
|
+
vt
|
|
4048
|
+
), p = d || Ni(e), v = (
|
|
4071
4049
|
/*#slots*/
|
|
4072
4050
|
e[11].button
|
|
4073
|
-
),
|
|
4074
|
-
|
|
4051
|
+
), T = ae(
|
|
4052
|
+
v,
|
|
4075
4053
|
e,
|
|
4076
4054
|
/*$$scope*/
|
|
4077
4055
|
e[10],
|
|
4078
|
-
|
|
4079
|
-
),
|
|
4056
|
+
Et
|
|
4057
|
+
), x = T || Li(e);
|
|
4080
4058
|
return {
|
|
4081
4059
|
c() {
|
|
4082
|
-
t =
|
|
4060
|
+
t = C("div"), r = C("div"), a && a.c(), n = Ae(), f && f.c(), i = Ae(), p && p.c(), o = Ae(), x && x.c(), k(r, "class", "CashierErrorContent"), k(t, "class", "CashierError");
|
|
4083
4061
|
},
|
|
4084
|
-
m(
|
|
4085
|
-
|
|
4062
|
+
m(c, g) {
|
|
4063
|
+
X(c, t, g), O(t, r), a && a.m(r, null), O(r, n), f && f.m(r, null), O(r, i), p && p.m(r, null), O(r, o), x && x.m(r, null), e[12](t), s = !0;
|
|
4086
4064
|
},
|
|
4087
|
-
p(
|
|
4088
|
-
l ? l.p && (!
|
|
4089
|
-
1024) &&
|
|
4065
|
+
p(c, [g]) {
|
|
4066
|
+
l ? l.p && (!s || g & /*$$scope*/
|
|
4067
|
+
1024) && le(
|
|
4090
4068
|
l,
|
|
4091
4069
|
u,
|
|
4092
|
-
|
|
4070
|
+
c,
|
|
4093
4071
|
/*$$scope*/
|
|
4094
|
-
|
|
4095
|
-
|
|
4072
|
+
c[10],
|
|
4073
|
+
s ? ue(
|
|
4096
4074
|
u,
|
|
4097
4075
|
/*$$scope*/
|
|
4098
|
-
|
|
4099
|
-
|
|
4076
|
+
c[10],
|
|
4077
|
+
g,
|
|
4100
4078
|
Ii
|
|
4101
|
-
) :
|
|
4079
|
+
) : he(
|
|
4102
4080
|
/*$$scope*/
|
|
4103
|
-
|
|
4081
|
+
c[10]
|
|
4104
4082
|
),
|
|
4105
|
-
|
|
4106
|
-
) :
|
|
4107
|
-
1) &&
|
|
4108
|
-
1024) &&
|
|
4083
|
+
Tt
|
|
4084
|
+
) : a && a.p && (!s || g & /*assetsurl*/
|
|
4085
|
+
1) && a.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
|
|
4086
|
+
1024) && le(
|
|
4109
4087
|
f,
|
|
4110
4088
|
h,
|
|
4111
|
-
|
|
4089
|
+
c,
|
|
4112
4090
|
/*$$scope*/
|
|
4113
|
-
|
|
4114
|
-
|
|
4091
|
+
c[10],
|
|
4092
|
+
s ? ue(
|
|
4115
4093
|
h,
|
|
4116
4094
|
/*$$scope*/
|
|
4117
|
-
|
|
4118
|
-
|
|
4095
|
+
c[10],
|
|
4096
|
+
g,
|
|
4119
4097
|
Oi
|
|
4120
|
-
) :
|
|
4098
|
+
) : he(
|
|
4121
4099
|
/*$$scope*/
|
|
4122
|
-
|
|
4100
|
+
c[10]
|
|
4123
4101
|
),
|
|
4124
|
-
|
|
4125
|
-
)
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
y,
|
|
4129
|
-
p,
|
|
4102
|
+
xt
|
|
4103
|
+
), d ? d.p && (!s || g & /*$$scope*/
|
|
4104
|
+
1024) && le(
|
|
4105
|
+
d,
|
|
4130
4106
|
m,
|
|
4107
|
+
c,
|
|
4131
4108
|
/*$$scope*/
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4109
|
+
c[10],
|
|
4110
|
+
s ? ue(
|
|
4111
|
+
m,
|
|
4135
4112
|
/*$$scope*/
|
|
4136
|
-
|
|
4137
|
-
|
|
4113
|
+
c[10],
|
|
4114
|
+
g,
|
|
4138
4115
|
Pi
|
|
4139
|
-
) :
|
|
4116
|
+
) : he(
|
|
4140
4117
|
/*$$scope*/
|
|
4141
|
-
|
|
4118
|
+
c[10]
|
|
4142
4119
|
),
|
|
4143
|
-
|
|
4144
|
-
) :
|
|
4145
|
-
10) &&
|
|
4146
|
-
1024) &&
|
|
4147
|
-
w,
|
|
4120
|
+
vt
|
|
4121
|
+
) : p && p.p && (!s || g & /*$_, errorcode*/
|
|
4122
|
+
10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
|
|
4123
|
+
1024) && le(
|
|
4148
4124
|
T,
|
|
4149
|
-
|
|
4125
|
+
v,
|
|
4126
|
+
c,
|
|
4150
4127
|
/*$$scope*/
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4128
|
+
c[10],
|
|
4129
|
+
s ? ue(
|
|
4130
|
+
v,
|
|
4154
4131
|
/*$$scope*/
|
|
4155
|
-
|
|
4156
|
-
|
|
4132
|
+
c[10],
|
|
4133
|
+
g,
|
|
4157
4134
|
Ai
|
|
4158
|
-
) :
|
|
4135
|
+
) : he(
|
|
4159
4136
|
/*$$scope*/
|
|
4160
|
-
|
|
4137
|
+
c[10]
|
|
4161
4138
|
),
|
|
4162
|
-
|
|
4163
|
-
) :
|
|
4164
|
-
8) &&
|
|
4139
|
+
Et
|
|
4140
|
+
) : x && x.p && (!s || g & /*$_*/
|
|
4141
|
+
8) && x.p(c, s ? g : -1);
|
|
4165
4142
|
},
|
|
4166
|
-
i(
|
|
4167
|
-
|
|
4143
|
+
i(c) {
|
|
4144
|
+
s || (q(a, c), q(f, c), q(p, c), q(x, c), s = !0);
|
|
4168
4145
|
},
|
|
4169
|
-
o(
|
|
4170
|
-
|
|
4146
|
+
o(c) {
|
|
4147
|
+
fe(a, c), fe(f, c), fe(p, c), fe(x, c), s = !1;
|
|
4171
4148
|
},
|
|
4172
|
-
d(
|
|
4173
|
-
|
|
4149
|
+
d(c) {
|
|
4150
|
+
c && M(t), a && a.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
4174
4151
|
}
|
|
4175
4152
|
};
|
|
4176
4153
|
}
|
|
4177
|
-
function
|
|
4154
|
+
function $i(e, t, r) {
|
|
4178
4155
|
let n;
|
|
4179
|
-
lr(e, wi, (
|
|
4180
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl:
|
|
4181
|
-
const
|
|
4156
|
+
lr(e, wi, (c) => r(3, n = c));
|
|
4157
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4158
|
+
const p = () => {
|
|
4182
4159
|
Si(u);
|
|
4183
|
-
},
|
|
4184
|
-
fetch(f).then((
|
|
4185
|
-
Object.keys(
|
|
4186
|
-
|
|
4160
|
+
}, v = () => {
|
|
4161
|
+
fetch(f).then((g) => g.json()).then((g) => {
|
|
4162
|
+
Object.keys(g).forEach((P) => {
|
|
4163
|
+
yt(P, g[P]);
|
|
4187
4164
|
});
|
|
4188
|
-
}).catch((
|
|
4189
|
-
console.error(
|
|
4165
|
+
}).catch((g) => {
|
|
4166
|
+
console.error(g);
|
|
4190
4167
|
});
|
|
4191
4168
|
};
|
|
4192
|
-
Object.keys(
|
|
4193
|
-
|
|
4169
|
+
Object.keys(_t).forEach((c) => {
|
|
4170
|
+
yt(c, _t[c]);
|
|
4194
4171
|
});
|
|
4195
4172
|
const T = () => {
|
|
4196
4173
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4197
4174
|
};
|
|
4198
4175
|
yr(() => () => {
|
|
4199
4176
|
});
|
|
4200
|
-
function
|
|
4201
|
-
$e[
|
|
4202
|
-
|
|
4177
|
+
function x(c) {
|
|
4178
|
+
$e[c ? "unshift" : "push"](() => {
|
|
4179
|
+
d = c, r(2, d);
|
|
4203
4180
|
});
|
|
4204
4181
|
}
|
|
4205
|
-
return e.$$set = (
|
|
4206
|
-
"assetsurl" in
|
|
4182
|
+
return e.$$set = (c) => {
|
|
4183
|
+
"assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, u = c.lang), "errorcode" in c && r(1, l = c.errorcode), "clientstyling" in c && r(6, a = 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, o = c.$$scope);
|
|
4207
4184
|
}, e.$$.update = () => {
|
|
4208
4185
|
e.$$.dirty & /*lang*/
|
|
4209
|
-
32 && u &&
|
|
4210
|
-
68 &&
|
|
4211
|
-
132 && h &&
|
|
4212
|
-
516 &&
|
|
4213
|
-
256 && f &&
|
|
4186
|
+
32 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4187
|
+
68 && a && d && Ir(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4188
|
+
132 && h && d && Cr(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4189
|
+
516 && m && d && Nr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4190
|
+
256 && f && v();
|
|
4214
4191
|
}, [
|
|
4215
|
-
|
|
4192
|
+
s,
|
|
4216
4193
|
l,
|
|
4217
|
-
|
|
4194
|
+
d,
|
|
4218
4195
|
n,
|
|
4219
4196
|
T,
|
|
4220
4197
|
u,
|
|
4221
|
-
|
|
4198
|
+
a,
|
|
4222
4199
|
h,
|
|
4223
4200
|
f,
|
|
4224
|
-
|
|
4201
|
+
m,
|
|
4225
4202
|
o,
|
|
4226
4203
|
i,
|
|
4227
|
-
|
|
4204
|
+
x
|
|
4228
4205
|
];
|
|
4229
4206
|
}
|
|
4230
|
-
class
|
|
4207
|
+
class Ri extends Pr {
|
|
4231
4208
|
constructor(t) {
|
|
4232
4209
|
super(), Br(
|
|
4233
4210
|
this,
|
|
4234
4211
|
t,
|
|
4235
|
-
Ri,
|
|
4236
4212
|
$i,
|
|
4237
|
-
|
|
4213
|
+
Mi,
|
|
4214
|
+
St,
|
|
4238
4215
|
{
|
|
4239
4216
|
assetsurl: 0,
|
|
4240
4217
|
lang: 5,
|
|
@@ -4251,46 +4228,46 @@ class Di extends Pr {
|
|
|
4251
4228
|
return this.$$.ctx[0];
|
|
4252
4229
|
}
|
|
4253
4230
|
set assetsurl(t) {
|
|
4254
|
-
this.$$set({ assetsurl: t }),
|
|
4231
|
+
this.$$set({ assetsurl: t }), B();
|
|
4255
4232
|
}
|
|
4256
4233
|
get lang() {
|
|
4257
4234
|
return this.$$.ctx[5];
|
|
4258
4235
|
}
|
|
4259
4236
|
set lang(t) {
|
|
4260
|
-
this.$$set({ lang: t }),
|
|
4237
|
+
this.$$set({ lang: t }), B();
|
|
4261
4238
|
}
|
|
4262
4239
|
get errorcode() {
|
|
4263
4240
|
return this.$$.ctx[1];
|
|
4264
4241
|
}
|
|
4265
4242
|
set errorcode(t) {
|
|
4266
|
-
this.$$set({ errorcode: t }),
|
|
4243
|
+
this.$$set({ errorcode: t }), B();
|
|
4267
4244
|
}
|
|
4268
4245
|
get clientstyling() {
|
|
4269
4246
|
return this.$$.ctx[6];
|
|
4270
4247
|
}
|
|
4271
4248
|
set clientstyling(t) {
|
|
4272
|
-
this.$$set({ clientstyling: t }),
|
|
4249
|
+
this.$$set({ clientstyling: t }), B();
|
|
4273
4250
|
}
|
|
4274
4251
|
get clientstylingurl() {
|
|
4275
4252
|
return this.$$.ctx[7];
|
|
4276
4253
|
}
|
|
4277
4254
|
set clientstylingurl(t) {
|
|
4278
|
-
this.$$set({ clientstylingurl: t }),
|
|
4255
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4279
4256
|
}
|
|
4280
4257
|
get translationurl() {
|
|
4281
4258
|
return this.$$.ctx[8];
|
|
4282
4259
|
}
|
|
4283
4260
|
set translationurl(t) {
|
|
4284
|
-
this.$$set({ translationurl: t }),
|
|
4261
|
+
this.$$set({ translationurl: t }), B();
|
|
4285
4262
|
}
|
|
4286
4263
|
get mbsource() {
|
|
4287
4264
|
return this.$$.ctx[9];
|
|
4288
4265
|
}
|
|
4289
4266
|
set mbsource(t) {
|
|
4290
|
-
this.$$set({ mbsource: t }),
|
|
4267
|
+
this.$$set({ mbsource: t }), B();
|
|
4291
4268
|
}
|
|
4292
4269
|
}
|
|
4293
|
-
Ar(
|
|
4270
|
+
Ar(Ri, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4294
4271
|
export {
|
|
4295
|
-
|
|
4272
|
+
Ri as default
|
|
4296
4273
|
};
|