@everymatrix/cashier-header 1.86.4 → 1.86.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-DOPP69XQ.js → CashierHeader--uvcBbks.js} +605 -601
- package/components/{CashierHeader-BxsOLB76.js → CashierHeader-Cs0qni4C.js} +596 -592
- package/components/CashierHeader-DRmsVPzl.cjs +5 -0
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-7wyD3dTF.cjs +0 -18
|
@@ -14,10 +14,10 @@ function _t(e) {
|
|
|
14
14
|
function Ze() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ee(e) {
|
|
18
18
|
e.forEach(_t);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ke(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
23
|
function yt(e, t) {
|
|
@@ -26,7 +26,7 @@ function yt(e, t) {
|
|
|
26
26
|
function Kt(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Et(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -36,18 +36,18 @@ function xt(e, ...t) {
|
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
38
|
function er(e, t, r) {
|
|
39
|
-
e.$$.on_destroy.push(
|
|
39
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ee(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = xt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function xt(e, t, r, n) {
|
|
48
48
|
return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function xe(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function ye(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ve(e, t, r, n, i, s) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const u =
|
|
67
|
+
const u = xt(t, r, n, s);
|
|
68
68
|
e.p(u, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function He(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -77,13 +77,13 @@ function Ee(e) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function fe(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
83
|
function tr(e, t, r) {
|
|
84
84
|
const n = rr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
86
|
+
const i = X("style");
|
|
87
87
|
i.id = t, i.textContent = r, nr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -98,34 +98,34 @@ function rr(e) {
|
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
100
|
function nr(e, t) {
|
|
101
|
-
return
|
|
101
|
+
return fe(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function I(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function P(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function X(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ve(e) {
|
|
117
117
|
return document.createTextNode(e);
|
|
118
118
|
}
|
|
119
119
|
function Qe() {
|
|
120
|
-
return
|
|
120
|
+
return Ve(" ");
|
|
121
121
|
}
|
|
122
122
|
function vt() {
|
|
123
|
-
return
|
|
123
|
+
return Ve("");
|
|
124
124
|
}
|
|
125
125
|
function Ht(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function te(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
131
|
function ir(e) {
|
|
@@ -144,97 +144,97 @@ function or(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let q;
|
|
148
|
+
function J(e) {
|
|
149
|
+
q = e;
|
|
150
150
|
}
|
|
151
151
|
function ar() {
|
|
152
|
-
if (!
|
|
152
|
+
if (!q)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return q;
|
|
155
155
|
}
|
|
156
156
|
function ur(e) {
|
|
157
157
|
ar().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
159
|
+
const D = [], Le = [];
|
|
160
|
+
let G = [];
|
|
161
161
|
const Je = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
162
|
-
let
|
|
162
|
+
let Ne = !1;
|
|
163
163
|
function lr() {
|
|
164
|
-
|
|
164
|
+
Ne || (Ne = !0, hr.then(T));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Ie(e) {
|
|
167
|
+
G.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const Be = /* @__PURE__ */ new Set();
|
|
170
170
|
let R = 0;
|
|
171
171
|
function T() {
|
|
172
172
|
if (R !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = q;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (; R <
|
|
178
|
-
const t =
|
|
179
|
-
R++,
|
|
177
|
+
for (; R < D.length; ) {
|
|
178
|
+
const t = D[R];
|
|
179
|
+
R++, J(t), fr(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw D.length = 0, R = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (J(null), D.length = 0, R = 0; Le.length; )
|
|
185
|
+
Le.pop()();
|
|
186
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
187
|
+
const r = G[t];
|
|
188
|
+
Be.has(r) || (Be.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
190
|
+
G.length = 0;
|
|
191
|
+
} while (D.length);
|
|
192
192
|
for (; Je.length; )
|
|
193
193
|
Je.pop()();
|
|
194
|
-
|
|
194
|
+
Ne = !1, Be.clear(), J(e);
|
|
195
195
|
}
|
|
196
196
|
function fr(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), ee(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
function cr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const oe = /* @__PURE__ */ new Set();
|
|
208
208
|
let mr;
|
|
209
|
-
function
|
|
210
|
-
e && e.i && (
|
|
209
|
+
function ae(e, t) {
|
|
210
|
+
e && e.i && (oe.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Te(e, t, r, n) {
|
|
213
213
|
if (e && e.o) {
|
|
214
|
-
if (
|
|
214
|
+
if (oe.has(e))
|
|
215
215
|
return;
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
oe.add(e), mr.c.push(() => {
|
|
217
|
+
oe.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function pr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const s = e.$$.on_mount.map(_t).filter(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), Ie(() => {
|
|
224
|
+
const s = e.$$.on_mount.map(_t).filter(ke);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach(Ie);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function dr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (cr(r.after_update),
|
|
230
|
+
r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
232
|
function br(e, t) {
|
|
233
|
-
e.$$.dirty[0] === -1 && (
|
|
233
|
+
e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
235
|
function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
236
|
-
const l =
|
|
237
|
-
|
|
236
|
+
const l = q;
|
|
237
|
+
J(e);
|
|
238
238
|
const a = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
@@ -258,18 +258,18 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
258
258
|
};
|
|
259
259
|
u && u(a.root);
|
|
260
260
|
let h = !1;
|
|
261
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
262
|
-
const f =
|
|
261
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
262
|
+
const f = p.length ? p[0] : m;
|
|
263
263
|
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && br(e, c)), m;
|
|
264
|
-
}) : [], a.update(), h = !0,
|
|
264
|
+
}) : [], a.update(), h = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
266
|
const c = ir(t.target);
|
|
267
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
267
|
+
a.fragment && a.fragment.l(c), c.forEach(P);
|
|
268
268
|
} else
|
|
269
269
|
a.fragment && a.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), T();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
J(l);
|
|
273
273
|
}
|
|
274
274
|
let Bt;
|
|
275
275
|
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
@@ -314,17 +314,17 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
314
314
|
let s;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
s =
|
|
317
|
+
s = X("slot"), i !== "default" && te(s, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(l, a) {
|
|
324
|
-
|
|
324
|
+
I(l, s, a);
|
|
325
325
|
},
|
|
326
326
|
d: function(l) {
|
|
327
|
-
l &&
|
|
327
|
+
l && P(s);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
338
338
|
const s = this.$$g_p(i.name);
|
|
339
|
-
s in this.$$d || (this.$$d[s] =
|
|
339
|
+
s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
|
|
340
340
|
}
|
|
341
341
|
for (const i in this.$$p_d)
|
|
342
342
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
354
354
|
this.$$r = !0;
|
|
355
355
|
for (const i in this.$$p_d)
|
|
356
356
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
357
|
-
const s =
|
|
357
|
+
const s = ue(
|
|
358
358
|
i,
|
|
359
359
|
this.$$d[i],
|
|
360
360
|
this.$$p_d,
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
376
376
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
377
377
|
// and setting attributes through setAttribute etc, this is helpful
|
|
378
378
|
attributeChangedCallback(e, t, r) {
|
|
379
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
379
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
380
380
|
}
|
|
381
381
|
disconnectedCallback() {
|
|
382
382
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -389,7 +389,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
389
389
|
) || e;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
function
|
|
392
|
+
function ue(e, t, r, n) {
|
|
393
393
|
const i = r[e]?.type;
|
|
394
394
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
395
395
|
return t;
|
|
@@ -435,7 +435,7 @@ function _r(e, t, r, n, i, s) {
|
|
|
435
435
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
436
436
|
},
|
|
437
437
|
set(l) {
|
|
438
|
-
l =
|
|
438
|
+
l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}), n.forEach((o) => {
|
|
@@ -466,7 +466,7 @@ class yr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
dr(this, 1), this.$destroy = B;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,7 +475,7 @@ class yr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!ke(r))
|
|
479
479
|
return B;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
@@ -491,26 +491,26 @@ class yr {
|
|
|
491
491
|
this.$$set && !Kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
496
|
-
const
|
|
497
|
-
function
|
|
494
|
+
const Er = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
|
|
496
|
+
const U = [];
|
|
497
|
+
function xr(e, t) {
|
|
498
498
|
return {
|
|
499
|
-
subscribe:
|
|
499
|
+
subscribe: be(e, t).subscribe
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function be(e, t = B) {
|
|
503
503
|
let r;
|
|
504
504
|
const n = /* @__PURE__ */ new Set();
|
|
505
505
|
function i(o) {
|
|
506
506
|
if (yt(e, o) && (e = o, r)) {
|
|
507
|
-
const l =
|
|
507
|
+
const l = !U.length;
|
|
508
508
|
for (const a of n)
|
|
509
|
-
a[1](),
|
|
509
|
+
a[1](), U.push(a, e);
|
|
510
510
|
if (l) {
|
|
511
|
-
for (let a = 0; a <
|
|
512
|
-
|
|
513
|
-
|
|
511
|
+
for (let a = 0; a < U.length; a += 2)
|
|
512
|
+
U[a][0](U[a + 1]);
|
|
513
|
+
U.length = 0;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -525,12 +525,12 @@ function de(e, t = B) {
|
|
|
525
525
|
}
|
|
526
526
|
return { set: i, update: s, subscribe: u };
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function z(e, t, r) {
|
|
529
529
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
530
530
|
if (!i.every(Boolean))
|
|
531
531
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
532
532
|
const s = t.length < 2;
|
|
533
|
-
return
|
|
533
|
+
return xr(r, (u, o) => {
|
|
534
534
|
let l = !1;
|
|
535
535
|
const a = [];
|
|
536
536
|
let h = 0, c = B;
|
|
@@ -539,9 +539,9 @@ function X(e, t, r) {
|
|
|
539
539
|
return;
|
|
540
540
|
c();
|
|
541
541
|
const f = t(n ? a[0] : a, u, o);
|
|
542
|
-
s ? u(f) : c =
|
|
543
|
-
},
|
|
544
|
-
(f, _) =>
|
|
542
|
+
s ? u(f) : c = ke(f) ? f : B;
|
|
543
|
+
}, p = i.map(
|
|
544
|
+
(f, _) => Et(
|
|
545
545
|
f,
|
|
546
546
|
(v) => {
|
|
547
547
|
a[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -552,7 +552,7 @@ function X(e, t, r) {
|
|
|
552
552
|
)
|
|
553
553
|
);
|
|
554
554
|
return l = !0, m(), function() {
|
|
555
|
-
|
|
555
|
+
ee(p), c(), l = !1;
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
558
|
}
|
|
@@ -573,22 +573,22 @@ var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.
|
|
|
573
573
|
function Ar(e) {
|
|
574
574
|
return e.$$typeof === Sr;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Or(e) {
|
|
577
577
|
return Array.isArray(e) ? [] : {};
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
579
|
+
function Y(e, t) {
|
|
580
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Or(e), e, t) : e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Cr(e, t, r) {
|
|
583
583
|
return e.concat(t).map(function(n) {
|
|
584
|
-
return
|
|
584
|
+
return Y(n, r);
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
function Pr(e, t) {
|
|
588
588
|
if (!t.customMerge)
|
|
589
|
-
return
|
|
589
|
+
return F;
|
|
590
590
|
var r = t.customMerge(e);
|
|
591
|
-
return typeof r == "function" ? r :
|
|
591
|
+
return typeof r == "function" ? r : F;
|
|
592
592
|
}
|
|
593
593
|
function Lr(e) {
|
|
594
594
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -611,65 +611,51 @@ function Nr(e, t) {
|
|
|
611
611
|
function Ir(e, t, r) {
|
|
612
612
|
var n = {};
|
|
613
613
|
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
|
614
|
-
n[i] =
|
|
614
|
+
n[i] = Y(e[i], r);
|
|
615
615
|
}), qe(t).forEach(function(i) {
|
|
616
|
-
Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] =
|
|
616
|
+
Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
617
617
|
}), n;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
619
|
+
function F(e, t, r) {
|
|
620
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
621
621
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
622
|
-
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) :
|
|
622
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : Y(t, r);
|
|
623
623
|
}
|
|
624
|
-
|
|
624
|
+
F.all = function(t, r) {
|
|
625
625
|
if (!Array.isArray(t))
|
|
626
626
|
throw new Error("first argument should be an array");
|
|
627
627
|
return t.reduce(function(n, i) {
|
|
628
|
-
return
|
|
628
|
+
return F(n, i, r);
|
|
629
629
|
}, {});
|
|
630
630
|
};
|
|
631
|
-
var Mr =
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
637
|
-
purpose with or without fee is hereby granted.
|
|
638
|
-
|
|
639
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
640
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
641
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
642
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
643
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
644
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
645
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
646
|
-
***************************************************************************** */
|
|
647
|
-
var Ne = function(e, t) {
|
|
648
|
-
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
631
|
+
var Mr = F, $r = Mr;
|
|
632
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
633
|
+
var Me = function(e, t) {
|
|
634
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
649
635
|
r.__proto__ = n;
|
|
650
636
|
} || function(r, n) {
|
|
651
637
|
for (var i in n)
|
|
652
638
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
653
|
-
},
|
|
639
|
+
}, Me(e, t);
|
|
654
640
|
};
|
|
655
|
-
function
|
|
641
|
+
function ge(e, t) {
|
|
656
642
|
if (typeof t != "function" && t !== null)
|
|
657
643
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
658
|
-
|
|
644
|
+
Me(e, t);
|
|
659
645
|
function r() {
|
|
660
646
|
this.constructor = e;
|
|
661
647
|
}
|
|
662
648
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
663
649
|
}
|
|
664
|
-
var
|
|
665
|
-
return
|
|
650
|
+
var w = function() {
|
|
651
|
+
return w = Object.assign || function(t) {
|
|
666
652
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
667
653
|
r = arguments[n];
|
|
668
654
|
for (var s in r)
|
|
669
655
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
670
656
|
}
|
|
671
657
|
return t;
|
|
672
|
-
},
|
|
658
|
+
}, w.apply(this, arguments);
|
|
673
659
|
};
|
|
674
660
|
function Ur(e, t) {
|
|
675
661
|
var r = {};
|
|
@@ -680,14 +666,14 @@ function Ur(e, t) {
|
|
|
680
666
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
681
667
|
return r;
|
|
682
668
|
}
|
|
683
|
-
function
|
|
684
|
-
if (arguments.length === 2)
|
|
669
|
+
function we(e, t, r) {
|
|
670
|
+
if (r || arguments.length === 2)
|
|
685
671
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
686
672
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
687
|
-
return e.concat(s || t);
|
|
673
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
688
674
|
}
|
|
689
|
-
function
|
|
690
|
-
var r = t && t.cache ? t.cache :
|
|
675
|
+
function Se(e, t) {
|
|
676
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
691
677
|
return i(e, {
|
|
692
678
|
cache: r,
|
|
693
679
|
serializer: n
|
|
@@ -696,95 +682,103 @@ function Te(e, t) {
|
|
|
696
682
|
function Dr(e) {
|
|
697
683
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
698
684
|
}
|
|
699
|
-
function
|
|
685
|
+
function Gr(e, t, r, n) {
|
|
700
686
|
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
701
687
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
702
688
|
}
|
|
703
|
-
function
|
|
689
|
+
function wt(e, t, r) {
|
|
704
690
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
705
691
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
706
692
|
}
|
|
707
|
-
function
|
|
693
|
+
function St(e, t, r, n, i) {
|
|
708
694
|
return r.bind(t, e, n, i);
|
|
709
695
|
}
|
|
710
|
-
function Gr(e, t) {
|
|
711
|
-
var r = e.length === 1 ? wt : St;
|
|
712
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
713
|
-
}
|
|
714
696
|
function Fr(e, t) {
|
|
715
|
-
|
|
697
|
+
var r = e.length === 1 ? Gr : wt;
|
|
698
|
+
return St(e, this, r, t.cache.create(), t.serializer);
|
|
716
699
|
}
|
|
717
700
|
function jr(e, t) {
|
|
718
|
-
return
|
|
701
|
+
return St(e, this, wt, t.cache.create(), t.serializer);
|
|
719
702
|
}
|
|
720
703
|
var kr = function() {
|
|
721
704
|
return JSON.stringify(arguments);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
705
|
+
}, Vr = (
|
|
706
|
+
/** @class */
|
|
707
|
+
function() {
|
|
708
|
+
function e() {
|
|
709
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
710
|
+
}
|
|
711
|
+
return e.prototype.get = function(t) {
|
|
712
|
+
return this.cache[t];
|
|
713
|
+
}, e.prototype.set = function(t, r) {
|
|
714
|
+
this.cache[t] = r;
|
|
715
|
+
}, e;
|
|
716
|
+
}()
|
|
717
|
+
), Xr = {
|
|
733
718
|
create: function() {
|
|
734
|
-
return new
|
|
719
|
+
return new Vr();
|
|
735
720
|
}
|
|
736
|
-
},
|
|
737
|
-
variadic:
|
|
738
|
-
|
|
739
|
-
|
|
721
|
+
}, Ae = {
|
|
722
|
+
variadic: jr
|
|
723
|
+
}, ce = function() {
|
|
724
|
+
return ce = Object.assign || function(t) {
|
|
725
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
726
|
+
r = arguments[n];
|
|
727
|
+
for (var s in r)
|
|
728
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
729
|
+
}
|
|
730
|
+
return t;
|
|
731
|
+
}, ce.apply(this, arguments);
|
|
732
|
+
};
|
|
733
|
+
var d;
|
|
740
734
|
(function(e) {
|
|
741
735
|
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";
|
|
742
|
-
})(
|
|
743
|
-
var
|
|
736
|
+
})(d || (d = {}));
|
|
737
|
+
var y;
|
|
744
738
|
(function(e) {
|
|
745
739
|
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";
|
|
746
|
-
})(
|
|
747
|
-
var
|
|
740
|
+
})(y || (y = {}));
|
|
741
|
+
var j;
|
|
748
742
|
(function(e) {
|
|
749
743
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
750
|
-
})(
|
|
744
|
+
})(j || (j = {}));
|
|
751
745
|
function Ye(e) {
|
|
752
|
-
return e.type ===
|
|
746
|
+
return e.type === y.literal;
|
|
753
747
|
}
|
|
754
|
-
function
|
|
755
|
-
return e.type ===
|
|
748
|
+
function zr(e) {
|
|
749
|
+
return e.type === y.argument;
|
|
756
750
|
}
|
|
757
751
|
function At(e) {
|
|
758
|
-
return e.type ===
|
|
759
|
-
}
|
|
760
|
-
function Ct(e) {
|
|
761
|
-
return e.type === x.date;
|
|
752
|
+
return e.type === y.number;
|
|
762
753
|
}
|
|
763
754
|
function Ot(e) {
|
|
764
|
-
return e.type ===
|
|
755
|
+
return e.type === y.date;
|
|
756
|
+
}
|
|
757
|
+
function Ct(e) {
|
|
758
|
+
return e.type === y.time;
|
|
765
759
|
}
|
|
766
760
|
function Pt(e) {
|
|
767
|
-
return e.type ===
|
|
761
|
+
return e.type === y.select;
|
|
768
762
|
}
|
|
769
763
|
function Lt(e) {
|
|
770
|
-
return e.type ===
|
|
764
|
+
return e.type === y.plural;
|
|
771
765
|
}
|
|
772
|
-
function
|
|
773
|
-
return e.type ===
|
|
766
|
+
function Wr(e) {
|
|
767
|
+
return e.type === y.pound;
|
|
774
768
|
}
|
|
775
769
|
function Nt(e) {
|
|
776
|
-
return e.type ===
|
|
770
|
+
return e.type === y.tag;
|
|
777
771
|
}
|
|
778
772
|
function It(e) {
|
|
779
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
780
774
|
}
|
|
781
|
-
function
|
|
782
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
775
|
+
function $e(e) {
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
783
777
|
}
|
|
784
|
-
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
785
|
-
function
|
|
778
|
+
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
|
|
779
|
+
function Qr(e) {
|
|
786
780
|
var t = {};
|
|
787
|
-
return e.replace(
|
|
781
|
+
return e.replace(Zr, function(r) {
|
|
788
782
|
var n = r.length;
|
|
789
783
|
switch (r[0]) {
|
|
790
784
|
case "G":
|
|
@@ -873,11 +867,21 @@ function Zr(e) {
|
|
|
873
867
|
return "";
|
|
874
868
|
}), t;
|
|
875
869
|
}
|
|
876
|
-
var
|
|
877
|
-
function
|
|
870
|
+
var E = function() {
|
|
871
|
+
return E = Object.assign || function(t) {
|
|
872
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
873
|
+
r = arguments[n];
|
|
874
|
+
for (var s in r)
|
|
875
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
876
|
+
}
|
|
877
|
+
return t;
|
|
878
|
+
}, E.apply(this, arguments);
|
|
879
|
+
};
|
|
880
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
881
|
+
function qr(e) {
|
|
878
882
|
if (e.length === 0)
|
|
879
883
|
throw new Error("Number skeleton cannot be empty");
|
|
880
|
-
for (var t = e.split(
|
|
884
|
+
for (var t = e.split(Jr).filter(function(m) {
|
|
881
885
|
return m.length > 0;
|
|
882
886
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
883
887
|
var s = i[n], u = s.split("/");
|
|
@@ -892,13 +896,13 @@ function Jr(e) {
|
|
|
892
896
|
}
|
|
893
897
|
return r;
|
|
894
898
|
}
|
|
895
|
-
function
|
|
899
|
+
function Yr(e) {
|
|
896
900
|
return e.replace(/^(.*?)-/, "");
|
|
897
901
|
}
|
|
898
|
-
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
902
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
899
903
|
function et(e) {
|
|
900
904
|
var t = {};
|
|
901
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
905
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
902
906
|
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)), "";
|
|
903
907
|
}), t;
|
|
904
908
|
}
|
|
@@ -942,7 +946,7 @@ function Ut(e) {
|
|
|
942
946
|
};
|
|
943
947
|
}
|
|
944
948
|
}
|
|
945
|
-
function
|
|
949
|
+
function en(e) {
|
|
946
950
|
var t;
|
|
947
951
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
948
952
|
notation: "engineering"
|
|
@@ -950,7 +954,7 @@ function Kr(e) {
|
|
|
950
954
|
notation: "scientific"
|
|
951
955
|
}, e = e.slice(1)), t) {
|
|
952
956
|
var r = e.slice(0, 2);
|
|
953
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
957
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
|
|
954
958
|
throw new Error("Malformed concise eng/scientific notation");
|
|
955
959
|
t.minimumIntegerDigits = e.length;
|
|
956
960
|
}
|
|
@@ -960,7 +964,7 @@ function tt(e) {
|
|
|
960
964
|
var t = {}, r = Ut(e);
|
|
961
965
|
return r || t;
|
|
962
966
|
}
|
|
963
|
-
function
|
|
967
|
+
function tn(e) {
|
|
964
968
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
965
969
|
var i = n[r];
|
|
966
970
|
switch (i.stem) {
|
|
@@ -984,7 +988,7 @@ function en(e) {
|
|
|
984
988
|
continue;
|
|
985
989
|
case "measure-unit":
|
|
986
990
|
case "unit":
|
|
987
|
-
t.style = "unit", t.unit =
|
|
991
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
988
992
|
continue;
|
|
989
993
|
case "compact-short":
|
|
990
994
|
case "K":
|
|
@@ -995,13 +999,13 @@ function en(e) {
|
|
|
995
999
|
t.notation = "compact", t.compactDisplay = "long";
|
|
996
1000
|
continue;
|
|
997
1001
|
case "scientific":
|
|
998
|
-
t =
|
|
999
|
-
return
|
|
1002
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1003
|
+
return E(E({}, l), tt(a));
|
|
1000
1004
|
}, {}));
|
|
1001
1005
|
continue;
|
|
1002
1006
|
case "engineering":
|
|
1003
|
-
t =
|
|
1004
|
-
return
|
|
1007
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1008
|
+
return E(E({}, l), tt(a));
|
|
1005
1009
|
}, {}));
|
|
1006
1010
|
continue;
|
|
1007
1011
|
case "notation-simple":
|
|
@@ -1046,45 +1050,45 @@ function en(e) {
|
|
|
1046
1050
|
case "integer-width":
|
|
1047
1051
|
if (i.options.length > 1)
|
|
1048
1052
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1049
|
-
i.options[0].replace(
|
|
1053
|
+
i.options[0].replace(Kr, function(l, a, h, c, m, p) {
|
|
1050
1054
|
if (a)
|
|
1051
1055
|
t.minimumIntegerDigits = h.length;
|
|
1052
1056
|
else {
|
|
1053
1057
|
if (c && m)
|
|
1054
1058
|
throw new Error("We currently do not support maximum integer digits");
|
|
1055
|
-
if (
|
|
1059
|
+
if (p)
|
|
1056
1060
|
throw new Error("We currently do not support exact integer digits");
|
|
1057
1061
|
}
|
|
1058
1062
|
return "";
|
|
1059
1063
|
});
|
|
1060
1064
|
continue;
|
|
1061
1065
|
}
|
|
1062
|
-
if (
|
|
1066
|
+
if (Rt.test(i.stem)) {
|
|
1063
1067
|
t.minimumIntegerDigits = i.stem.length;
|
|
1064
1068
|
continue;
|
|
1065
1069
|
}
|
|
1066
1070
|
if (Ke.test(i.stem)) {
|
|
1067
1071
|
if (i.options.length > 1)
|
|
1068
1072
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1069
|
-
i.stem.replace(Ke, function(l, a, h, c, m,
|
|
1070
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1073
|
+
i.stem.replace(Ke, function(l, a, h, c, m, p) {
|
|
1074
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1071
1075
|
});
|
|
1072
1076
|
var s = i.options[0];
|
|
1073
|
-
s === "w" ? t =
|
|
1077
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), et(s)));
|
|
1074
1078
|
continue;
|
|
1075
1079
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
t =
|
|
1080
|
+
if ($t.test(i.stem)) {
|
|
1081
|
+
t = E(E({}, t), et(i.stem));
|
|
1078
1082
|
continue;
|
|
1079
1083
|
}
|
|
1080
1084
|
var u = Ut(i.stem);
|
|
1081
|
-
u && (t =
|
|
1082
|
-
var o =
|
|
1083
|
-
o && (t =
|
|
1085
|
+
u && (t = E(E({}, t), u));
|
|
1086
|
+
var o = en(i.stem);
|
|
1087
|
+
o && (t = E(E({}, t), o));
|
|
1084
1088
|
}
|
|
1085
1089
|
return t;
|
|
1086
1090
|
}
|
|
1087
|
-
var
|
|
1091
|
+
var se = {
|
|
1088
1092
|
"001": [
|
|
1089
1093
|
"H",
|
|
1090
1094
|
"h"
|
|
@@ -2499,13 +2503,13 @@ var ie = {
|
|
|
2499
2503
|
"h"
|
|
2500
2504
|
]
|
|
2501
2505
|
};
|
|
2502
|
-
function
|
|
2506
|
+
function rn(e, t) {
|
|
2503
2507
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2504
2508
|
var i = e.charAt(n);
|
|
2505
2509
|
if (i === "j") {
|
|
2506
2510
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2507
2511
|
s++, n++;
|
|
2508
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2512
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
|
|
2509
2513
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2510
2514
|
r += l;
|
|
2511
2515
|
for (; u-- > 0; )
|
|
@@ -2515,7 +2519,7 @@ function tn(e, t) {
|
|
|
2515
2519
|
}
|
|
2516
2520
|
return r;
|
|
2517
2521
|
}
|
|
2518
|
-
function
|
|
2522
|
+
function nn(e) {
|
|
2519
2523
|
var t = e.hourCycle;
|
|
2520
2524
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2521
2525
|
e.hourCycles && // @ts-ignore
|
|
@@ -2534,23 +2538,23 @@ function rn(e) {
|
|
|
2534
2538
|
}
|
|
2535
2539
|
var r = e.language, n;
|
|
2536
2540
|
r !== "root" && (n = e.maximize().region);
|
|
2537
|
-
var i =
|
|
2541
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2538
2542
|
return i[0];
|
|
2539
2543
|
}
|
|
2540
|
-
var
|
|
2544
|
+
var Oe, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
|
|
2541
2545
|
function b(e, t) {
|
|
2542
2546
|
return { start: e, end: t };
|
|
2543
2547
|
}
|
|
2544
|
-
var
|
|
2548
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
|
|
2545
2549
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2546
|
-
},
|
|
2550
|
+
}, Re = !0;
|
|
2547
2551
|
try {
|
|
2548
2552
|
var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2549
|
-
|
|
2553
|
+
Re = ((Oe = dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2550
2554
|
} catch {
|
|
2551
|
-
|
|
2555
|
+
Re = !1;
|
|
2552
2556
|
}
|
|
2553
|
-
var rt =
|
|
2557
|
+
var rt = an ? (
|
|
2554
2558
|
// Native
|
|
2555
2559
|
function(t, r, n) {
|
|
2556
2560
|
return t.startsWith(r, n);
|
|
@@ -2560,7 +2564,7 @@ var rt = on ? (
|
|
|
2560
2564
|
function(t, r, n) {
|
|
2561
2565
|
return t.slice(n, n + r.length) === r;
|
|
2562
2566
|
}
|
|
2563
|
-
),
|
|
2567
|
+
), Ue = un ? String.fromCodePoint : (
|
|
2564
2568
|
// IE11
|
|
2565
2569
|
function() {
|
|
2566
2570
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2574,7 +2578,7 @@ var rt = on ? (
|
|
|
2574
2578
|
}
|
|
2575
2579
|
), nt = (
|
|
2576
2580
|
// native
|
|
2577
|
-
|
|
2581
|
+
hn ? Object.fromEntries : (
|
|
2578
2582
|
// Ponyfill
|
|
2579
2583
|
function(t) {
|
|
2580
2584
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2584,7 +2588,7 @@ var rt = on ? (
|
|
|
2584
2588
|
return r;
|
|
2585
2589
|
}
|
|
2586
2590
|
)
|
|
2587
|
-
), Dt =
|
|
2591
|
+
), Dt = ln ? (
|
|
2588
2592
|
// Native
|
|
2589
2593
|
function(t, r) {
|
|
2590
2594
|
return t.codePointAt(r);
|
|
@@ -2598,7 +2602,7 @@ var rt = on ? (
|
|
|
2598
2602
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2599
2603
|
}
|
|
2600
2604
|
}
|
|
2601
|
-
),
|
|
2605
|
+
), bn = fn ? (
|
|
2602
2606
|
// Native
|
|
2603
2607
|
function(t) {
|
|
2604
2608
|
return t.trimStart();
|
|
@@ -2606,9 +2610,9 @@ var rt = on ? (
|
|
|
2606
2610
|
) : (
|
|
2607
2611
|
// Ponyfill
|
|
2608
2612
|
function(t) {
|
|
2609
|
-
return t.replace(
|
|
2613
|
+
return t.replace(sn, "");
|
|
2610
2614
|
}
|
|
2611
|
-
),
|
|
2615
|
+
), gn = cn ? (
|
|
2612
2616
|
// Native
|
|
2613
2617
|
function(t) {
|
|
2614
2618
|
return t.trimEnd();
|
|
@@ -2616,32 +2620,32 @@ var rt = on ? (
|
|
|
2616
2620
|
) : (
|
|
2617
2621
|
// Ponyfill
|
|
2618
2622
|
function(t) {
|
|
2619
|
-
return t.replace(
|
|
2623
|
+
return t.replace(on, "");
|
|
2620
2624
|
}
|
|
2621
2625
|
);
|
|
2622
2626
|
function Gt(e, t) {
|
|
2623
2627
|
return new RegExp(e, t);
|
|
2624
2628
|
}
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2629
|
+
var De;
|
|
2630
|
+
if (Re) {
|
|
2627
2631
|
var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2628
|
-
|
|
2632
|
+
De = function(t, r) {
|
|
2629
2633
|
var n;
|
|
2630
2634
|
it.lastIndex = r;
|
|
2631
2635
|
var i = it.exec(t);
|
|
2632
2636
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2633
2637
|
};
|
|
2634
2638
|
} else
|
|
2635
|
-
|
|
2639
|
+
De = function(t, r) {
|
|
2636
2640
|
for (var n = []; ; ) {
|
|
2637
2641
|
var i = Dt(t, r);
|
|
2638
2642
|
if (i === void 0 || Ft(i) || xn(i))
|
|
2639
2643
|
break;
|
|
2640
2644
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2641
2645
|
}
|
|
2642
|
-
return
|
|
2646
|
+
return Ue.apply(void 0, n);
|
|
2643
2647
|
};
|
|
2644
|
-
var
|
|
2648
|
+
var _n = (
|
|
2645
2649
|
/** @class */
|
|
2646
2650
|
function() {
|
|
2647
2651
|
function e(t, r) {
|
|
@@ -2665,14 +2669,14 @@ var gn = (
|
|
|
2665
2669
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2666
2670
|
var o = this.clonePosition();
|
|
2667
2671
|
this.bump(), i.push({
|
|
2668
|
-
type:
|
|
2672
|
+
type: y.pound,
|
|
2669
2673
|
location: b(o, this.clonePosition())
|
|
2670
2674
|
});
|
|
2671
2675
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2672
2676
|
if (n)
|
|
2673
2677
|
break;
|
|
2674
|
-
return this.error(
|
|
2675
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2678
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2679
|
+
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2676
2680
|
var u = this.parseTag(t, r);
|
|
2677
2681
|
if (u.err)
|
|
2678
2682
|
return u;
|
|
@@ -2693,7 +2697,7 @@ var gn = (
|
|
|
2693
2697
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2694
2698
|
return {
|
|
2695
2699
|
val: {
|
|
2696
|
-
type:
|
|
2700
|
+
type: y.literal,
|
|
2697
2701
|
value: "<".concat(i, "/>"),
|
|
2698
2702
|
location: b(n, this.clonePosition())
|
|
2699
2703
|
},
|
|
@@ -2705,25 +2709,25 @@ var gn = (
|
|
|
2705
2709
|
return s;
|
|
2706
2710
|
var u = s.val, o = this.clonePosition();
|
|
2707
2711
|
if (this.bumpIf("</")) {
|
|
2708
|
-
if (this.isEOF() || !
|
|
2709
|
-
return this.error(
|
|
2712
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2713
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2710
2714
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2711
|
-
return i !== a ? this.error(
|
|
2715
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2712
2716
|
val: {
|
|
2713
|
-
type:
|
|
2717
|
+
type: y.tag,
|
|
2714
2718
|
value: i,
|
|
2715
2719
|
children: u,
|
|
2716
2720
|
location: b(n, this.clonePosition())
|
|
2717
2721
|
},
|
|
2718
2722
|
err: null
|
|
2719
|
-
} : this.error(
|
|
2723
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2720
2724
|
} else
|
|
2721
|
-
return this.error(
|
|
2725
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2722
2726
|
} else
|
|
2723
|
-
return this.error(
|
|
2727
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2724
2728
|
}, e.prototype.parseTagName = function() {
|
|
2725
2729
|
var t = this.offset();
|
|
2726
|
-
for (this.bump(); !this.isEOF() &&
|
|
2730
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2727
2731
|
this.bump();
|
|
2728
2732
|
return this.message.slice(t, this.offset());
|
|
2729
2733
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2747,12 +2751,12 @@ var gn = (
|
|
|
2747
2751
|
}
|
|
2748
2752
|
var l = b(n, this.clonePosition());
|
|
2749
2753
|
return {
|
|
2750
|
-
val: { type:
|
|
2754
|
+
val: { type: y.literal, value: i, location: l },
|
|
2751
2755
|
err: null
|
|
2752
2756
|
};
|
|
2753
2757
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2754
2758
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2755
|
-
!
|
|
2759
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2756
2760
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2757
2761
|
if (this.isEOF() || this.char() !== 39)
|
|
2758
2762
|
return null;
|
|
@@ -2786,28 +2790,28 @@ var gn = (
|
|
|
2786
2790
|
r.push(n);
|
|
2787
2791
|
this.bump();
|
|
2788
2792
|
}
|
|
2789
|
-
return
|
|
2793
|
+
return Ue.apply(void 0, r);
|
|
2790
2794
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2791
2795
|
if (this.isEOF())
|
|
2792
2796
|
return null;
|
|
2793
2797
|
var n = this.char();
|
|
2794
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2798
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2795
2799
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2796
2800
|
var n = this.clonePosition();
|
|
2797
2801
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2798
|
-
return this.error(
|
|
2802
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2799
2803
|
if (this.char() === 125)
|
|
2800
|
-
return this.bump(), this.error(
|
|
2804
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2801
2805
|
var i = this.parseIdentifierIfPossible().value;
|
|
2802
2806
|
if (!i)
|
|
2803
|
-
return this.error(
|
|
2807
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2804
2808
|
if (this.bumpSpace(), this.isEOF())
|
|
2805
|
-
return this.error(
|
|
2809
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2806
2810
|
switch (this.char()) {
|
|
2807
2811
|
case 125:
|
|
2808
2812
|
return this.bump(), {
|
|
2809
2813
|
val: {
|
|
2810
|
-
type:
|
|
2814
|
+
type: y.argument,
|
|
2811
2815
|
// value does not include the opening and closing braces.
|
|
2812
2816
|
value: i,
|
|
2813
2817
|
location: b(n, this.clonePosition())
|
|
@@ -2815,12 +2819,12 @@ var gn = (
|
|
|
2815
2819
|
err: null
|
|
2816
2820
|
};
|
|
2817
2821
|
case 44:
|
|
2818
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2822
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2819
2823
|
default:
|
|
2820
|
-
return this.error(
|
|
2824
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2821
2825
|
}
|
|
2822
2826
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2823
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2827
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2824
2828
|
this.bumpTo(i);
|
|
2825
2829
|
var s = this.clonePosition(), u = b(t, s);
|
|
2826
2830
|
return { value: n, location: u };
|
|
@@ -2828,7 +2832,7 @@ var gn = (
|
|
|
2828
2832
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2829
2833
|
switch (o) {
|
|
2830
2834
|
case "":
|
|
2831
|
-
return this.error(
|
|
2835
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2832
2836
|
case "number":
|
|
2833
2837
|
case "date":
|
|
2834
2838
|
case "time": {
|
|
@@ -2839,44 +2843,44 @@ var gn = (
|
|
|
2839
2843
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2840
2844
|
if (c.err)
|
|
2841
2845
|
return c;
|
|
2842
|
-
var m =
|
|
2846
|
+
var m = gn(c.val);
|
|
2843
2847
|
if (m.length === 0)
|
|
2844
|
-
return this.error(
|
|
2845
|
-
var
|
|
2846
|
-
a = { style: m, styleLocation:
|
|
2848
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2849
|
+
var p = b(h, this.clonePosition());
|
|
2850
|
+
a = { style: m, styleLocation: p };
|
|
2847
2851
|
}
|
|
2848
2852
|
var f = this.tryParseArgumentClose(i);
|
|
2849
2853
|
if (f.err)
|
|
2850
2854
|
return f;
|
|
2851
2855
|
var _ = b(i, this.clonePosition());
|
|
2852
2856
|
if (a && rt(a?.style, "::", 0)) {
|
|
2853
|
-
var v =
|
|
2857
|
+
var v = bn(a.style.slice(2));
|
|
2854
2858
|
if (o === "number") {
|
|
2855
2859
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2856
2860
|
return c.err ? c : {
|
|
2857
|
-
val: { type:
|
|
2861
|
+
val: { type: y.number, value: n, location: _, style: c.val },
|
|
2858
2862
|
err: null
|
|
2859
2863
|
};
|
|
2860
2864
|
} else {
|
|
2861
2865
|
if (v.length === 0)
|
|
2862
|
-
return this.error(
|
|
2863
|
-
var
|
|
2864
|
-
this.locale && (
|
|
2866
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2867
|
+
var A = v;
|
|
2868
|
+
this.locale && (A = rn(v, this.locale));
|
|
2865
2869
|
var m = {
|
|
2866
|
-
type:
|
|
2867
|
-
pattern:
|
|
2870
|
+
type: j.dateTime,
|
|
2871
|
+
pattern: A,
|
|
2868
2872
|
location: a.styleLocation,
|
|
2869
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2870
|
-
},
|
|
2873
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(A) : {}
|
|
2874
|
+
}, O = o === "date" ? y.date : y.time;
|
|
2871
2875
|
return {
|
|
2872
|
-
val: { type:
|
|
2876
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2873
2877
|
err: null
|
|
2874
2878
|
};
|
|
2875
2879
|
}
|
|
2876
2880
|
}
|
|
2877
2881
|
return {
|
|
2878
2882
|
val: {
|
|
2879
|
-
type: o === "number" ?
|
|
2883
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2880
2884
|
value: n,
|
|
2881
2885
|
location: _,
|
|
2882
2886
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2889,50 +2893,50 @@ var gn = (
|
|
|
2889
2893
|
case "select": {
|
|
2890
2894
|
var H = this.clonePosition();
|
|
2891
2895
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2892
|
-
return this.error(
|
|
2896
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, ce({}, H)));
|
|
2893
2897
|
this.bumpSpace();
|
|
2894
|
-
var
|
|
2895
|
-
if (o !== "select" &&
|
|
2898
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2899
|
+
if (o !== "select" && N.value === "offset") {
|
|
2896
2900
|
if (!this.bumpIf(":"))
|
|
2897
|
-
return this.error(
|
|
2901
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2898
2902
|
this.bumpSpace();
|
|
2899
|
-
var c = this.tryParseDecimalInteger(
|
|
2903
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2900
2904
|
if (c.err)
|
|
2901
2905
|
return c;
|
|
2902
|
-
this.bumpSpace(),
|
|
2906
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2903
2907
|
}
|
|
2904
|
-
var
|
|
2905
|
-
if (
|
|
2906
|
-
return
|
|
2908
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2909
|
+
if ($.err)
|
|
2910
|
+
return $;
|
|
2907
2911
|
var f = this.tryParseArgumentClose(i);
|
|
2908
2912
|
if (f.err)
|
|
2909
2913
|
return f;
|
|
2910
|
-
var
|
|
2914
|
+
var ie = b(i, this.clonePosition());
|
|
2911
2915
|
return o === "select" ? {
|
|
2912
2916
|
val: {
|
|
2913
|
-
type:
|
|
2917
|
+
type: y.select,
|
|
2914
2918
|
value: n,
|
|
2915
|
-
options: nt(
|
|
2916
|
-
location:
|
|
2919
|
+
options: nt($.val),
|
|
2920
|
+
location: ie
|
|
2917
2921
|
},
|
|
2918
2922
|
err: null
|
|
2919
2923
|
} : {
|
|
2920
2924
|
val: {
|
|
2921
|
-
type:
|
|
2925
|
+
type: y.plural,
|
|
2922
2926
|
value: n,
|
|
2923
|
-
options: nt(
|
|
2924
|
-
offset:
|
|
2927
|
+
options: nt($.val),
|
|
2928
|
+
offset: S,
|
|
2925
2929
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2926
|
-
location:
|
|
2930
|
+
location: ie
|
|
2927
2931
|
},
|
|
2928
2932
|
err: null
|
|
2929
2933
|
};
|
|
2930
2934
|
}
|
|
2931
2935
|
default:
|
|
2932
|
-
return this.error(
|
|
2936
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2933
2937
|
}
|
|
2934
2938
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2935
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2939
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2936
2940
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2937
2941
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2938
2942
|
var n = this.char();
|
|
@@ -2941,7 +2945,7 @@ var gn = (
|
|
|
2941
2945
|
this.bump();
|
|
2942
2946
|
var i = this.clonePosition();
|
|
2943
2947
|
if (!this.bumpUntil("'"))
|
|
2944
|
-
return this.error(
|
|
2948
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2945
2949
|
this.bump();
|
|
2946
2950
|
break;
|
|
2947
2951
|
}
|
|
@@ -2971,16 +2975,16 @@ var gn = (
|
|
|
2971
2975
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2972
2976
|
var n = [];
|
|
2973
2977
|
try {
|
|
2974
|
-
n =
|
|
2978
|
+
n = qr(t);
|
|
2975
2979
|
} catch {
|
|
2976
|
-
return this.error(
|
|
2980
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2977
2981
|
}
|
|
2978
2982
|
return {
|
|
2979
2983
|
val: {
|
|
2980
|
-
type:
|
|
2984
|
+
type: j.number,
|
|
2981
2985
|
tokens: n,
|
|
2982
2986
|
location: r,
|
|
2983
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2987
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
2984
2988
|
},
|
|
2985
2989
|
err: null
|
|
2986
2990
|
};
|
|
@@ -2989,7 +2993,7 @@ var gn = (
|
|
|
2989
2993
|
if (a.length === 0) {
|
|
2990
2994
|
var c = this.clonePosition();
|
|
2991
2995
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2992
|
-
var m = this.tryParseDecimalInteger(
|
|
2996
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2993
2997
|
if (m.err)
|
|
2994
2998
|
return m;
|
|
2995
2999
|
h = b(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
@@ -2997,26 +3001,26 @@ var gn = (
|
|
|
2997
3001
|
break;
|
|
2998
3002
|
}
|
|
2999
3003
|
if (l.has(a))
|
|
3000
|
-
return this.error(r === "select" ?
|
|
3004
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3001
3005
|
a === "other" && (u = !0), this.bumpSpace();
|
|
3002
|
-
var
|
|
3006
|
+
var p = this.clonePosition();
|
|
3003
3007
|
if (!this.bumpIf("{"))
|
|
3004
|
-
return this.error(r === "select" ?
|
|
3008
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3005
3009
|
var f = this.parseMessage(t + 1, r, n);
|
|
3006
3010
|
if (f.err)
|
|
3007
3011
|
return f;
|
|
3008
|
-
var _ = this.tryParseArgumentClose(
|
|
3012
|
+
var _ = this.tryParseArgumentClose(p);
|
|
3009
3013
|
if (_.err)
|
|
3010
3014
|
return _;
|
|
3011
3015
|
o.push([
|
|
3012
3016
|
a,
|
|
3013
3017
|
{
|
|
3014
3018
|
value: f.val,
|
|
3015
|
-
location: b(
|
|
3019
|
+
location: b(p, this.clonePosition())
|
|
3016
3020
|
}
|
|
3017
3021
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3018
3022
|
}
|
|
3019
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3023
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3020
3024
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3021
3025
|
var n = 1, i = this.clonePosition();
|
|
3022
3026
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3028,7 +3032,7 @@ var gn = (
|
|
|
3028
3032
|
break;
|
|
3029
3033
|
}
|
|
3030
3034
|
var l = b(i, this.clonePosition());
|
|
3031
|
-
return s ? (u *= n,
|
|
3035
|
+
return s ? (u *= n, pn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3032
3036
|
}, e.prototype.offset = function() {
|
|
3033
3037
|
return this.position.offset;
|
|
3034
3038
|
}, e.prototype.isEOF = function() {
|
|
@@ -3094,13 +3098,13 @@ var gn = (
|
|
|
3094
3098
|
}, e;
|
|
3095
3099
|
}()
|
|
3096
3100
|
);
|
|
3097
|
-
function
|
|
3101
|
+
function Ge(e) {
|
|
3098
3102
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3099
3103
|
}
|
|
3100
|
-
function _n(e) {
|
|
3101
|
-
return Ue(e) || e === 47;
|
|
3102
|
-
}
|
|
3103
3104
|
function yn(e) {
|
|
3105
|
+
return Ge(e) || e === 47;
|
|
3106
|
+
}
|
|
3107
|
+
function En(e) {
|
|
3104
3108
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3105
3109
|
}
|
|
3106
3110
|
function Ft(e) {
|
|
@@ -3109,32 +3113,32 @@ function Ft(e) {
|
|
|
3109
3113
|
function xn(e) {
|
|
3110
3114
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3111
3115
|
}
|
|
3112
|
-
function
|
|
3116
|
+
function Fe(e) {
|
|
3113
3117
|
e.forEach(function(t) {
|
|
3114
3118
|
if (delete t.location, Pt(t) || Lt(t))
|
|
3115
3119
|
for (var r in t.options)
|
|
3116
|
-
delete t.options[r].location,
|
|
3120
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3117
3121
|
else
|
|
3118
|
-
At(t) && It(t.style) || (
|
|
3122
|
+
At(t) && It(t.style) || (Ot(t) || Ct(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
|
|
3119
3123
|
});
|
|
3120
3124
|
}
|
|
3121
|
-
function
|
|
3122
|
-
t === void 0 && (t = {}), t =
|
|
3123
|
-
var r = new
|
|
3125
|
+
function vn(e, t) {
|
|
3126
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3127
|
+
var r = new _n(e, t).parse();
|
|
3124
3128
|
if (r.err) {
|
|
3125
|
-
var n = SyntaxError(
|
|
3129
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3126
3130
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3127
3131
|
}
|
|
3128
|
-
return t?.captureLocation ||
|
|
3132
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3129
3133
|
}
|
|
3130
|
-
var
|
|
3134
|
+
var k;
|
|
3131
3135
|
(function(e) {
|
|
3132
3136
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3133
|
-
})(
|
|
3134
|
-
var
|
|
3137
|
+
})(k || (k = {}));
|
|
3138
|
+
var _e = (
|
|
3135
3139
|
/** @class */
|
|
3136
3140
|
function(e) {
|
|
3137
|
-
|
|
3141
|
+
ge(t, e);
|
|
3138
3142
|
function t(r, n, i) {
|
|
3139
3143
|
var s = e.call(this, r) || this;
|
|
3140
3144
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3146,48 +3150,48 @@ var be = (
|
|
|
3146
3150
|
), st = (
|
|
3147
3151
|
/** @class */
|
|
3148
3152
|
function(e) {
|
|
3149
|
-
|
|
3153
|
+
ge(t, e);
|
|
3150
3154
|
function t(r, n, i, s) {
|
|
3151
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3155
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3152
3156
|
}
|
|
3153
3157
|
return t;
|
|
3154
|
-
}(
|
|
3155
|
-
),
|
|
3158
|
+
}(_e)
|
|
3159
|
+
), Hn = (
|
|
3156
3160
|
/** @class */
|
|
3157
3161
|
function(e) {
|
|
3158
|
-
|
|
3162
|
+
ge(t, e);
|
|
3159
3163
|
function t(r, n, i) {
|
|
3160
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3164
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3161
3165
|
}
|
|
3162
3166
|
return t;
|
|
3163
|
-
}(
|
|
3164
|
-
),
|
|
3167
|
+
}(_e)
|
|
3168
|
+
), Bn = (
|
|
3165
3169
|
/** @class */
|
|
3166
3170
|
function(e) {
|
|
3167
|
-
|
|
3171
|
+
ge(t, e);
|
|
3168
3172
|
function t(r, n) {
|
|
3169
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3173
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3170
3174
|
}
|
|
3171
3175
|
return t;
|
|
3172
|
-
}(
|
|
3173
|
-
),
|
|
3176
|
+
}(_e)
|
|
3177
|
+
), x;
|
|
3174
3178
|
(function(e) {
|
|
3175
3179
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3176
|
-
})(
|
|
3177
|
-
function
|
|
3180
|
+
})(x || (x = {}));
|
|
3181
|
+
function Tn(e) {
|
|
3178
3182
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3179
3183
|
var n = t[t.length - 1];
|
|
3180
|
-
return !n || n.type !==
|
|
3184
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3181
3185
|
}, []);
|
|
3182
3186
|
}
|
|
3183
|
-
function
|
|
3187
|
+
function wn(e) {
|
|
3184
3188
|
return typeof e == "function";
|
|
3185
3189
|
}
|
|
3186
|
-
function
|
|
3190
|
+
function he(e, t, r, n, i, s, u) {
|
|
3187
3191
|
if (e.length === 1 && Ye(e[0]))
|
|
3188
3192
|
return [
|
|
3189
3193
|
{
|
|
3190
|
-
type:
|
|
3194
|
+
type: x.literal,
|
|
3191
3195
|
value: e[0].value
|
|
3192
3196
|
}
|
|
3193
3197
|
];
|
|
@@ -3195,64 +3199,64 @@ function ue(e, t, r, n, i, s, u) {
|
|
|
3195
3199
|
var h = a[l];
|
|
3196
3200
|
if (Ye(h)) {
|
|
3197
3201
|
o.push({
|
|
3198
|
-
type:
|
|
3202
|
+
type: x.literal,
|
|
3199
3203
|
value: h.value
|
|
3200
3204
|
});
|
|
3201
3205
|
continue;
|
|
3202
3206
|
}
|
|
3203
|
-
if (
|
|
3207
|
+
if (Wr(h)) {
|
|
3204
3208
|
typeof s == "number" && o.push({
|
|
3205
|
-
type:
|
|
3209
|
+
type: x.literal,
|
|
3206
3210
|
value: r.getNumberFormat(t).format(s)
|
|
3207
3211
|
});
|
|
3208
3212
|
continue;
|
|
3209
3213
|
}
|
|
3210
3214
|
var c = h.value;
|
|
3211
3215
|
if (!(i && c in i))
|
|
3212
|
-
throw new
|
|
3216
|
+
throw new Bn(c, u);
|
|
3213
3217
|
var m = i[c];
|
|
3214
|
-
if (
|
|
3218
|
+
if (zr(h)) {
|
|
3215
3219
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3216
|
-
type: typeof m == "string" ?
|
|
3220
|
+
type: typeof m == "string" ? x.literal : x.object,
|
|
3217
3221
|
value: m
|
|
3218
3222
|
});
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var
|
|
3225
|
+
if (Ot(h)) {
|
|
3226
|
+
var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3223
3227
|
o.push({
|
|
3224
|
-
type:
|
|
3225
|
-
value: r.getDateTimeFormat(t,
|
|
3228
|
+
type: x.literal,
|
|
3229
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3226
3230
|
});
|
|
3227
3231
|
continue;
|
|
3228
3232
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3233
|
+
if (Ct(h)) {
|
|
3234
|
+
var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3231
3235
|
o.push({
|
|
3232
|
-
type:
|
|
3233
|
-
value: r.getDateTimeFormat(t,
|
|
3236
|
+
type: x.literal,
|
|
3237
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3234
3238
|
});
|
|
3235
3239
|
continue;
|
|
3236
3240
|
}
|
|
3237
3241
|
if (At(h)) {
|
|
3238
|
-
var
|
|
3239
|
-
|
|
3240
|
-
type:
|
|
3241
|
-
value: r.getNumberFormat(t,
|
|
3242
|
+
var p = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
|
|
3243
|
+
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3244
|
+
type: x.literal,
|
|
3245
|
+
value: r.getNumberFormat(t, p).format(m)
|
|
3242
3246
|
});
|
|
3243
3247
|
continue;
|
|
3244
3248
|
}
|
|
3245
3249
|
if (Nt(h)) {
|
|
3246
3250
|
var f = h.children, _ = h.value, v = i[_];
|
|
3247
|
-
if (!
|
|
3248
|
-
throw new
|
|
3249
|
-
var
|
|
3250
|
-
return
|
|
3251
|
+
if (!wn(v))
|
|
3252
|
+
throw new Hn(_, "function", u);
|
|
3253
|
+
var A = he(f, t, r, n, i, s), O = v(A.map(function(S) {
|
|
3254
|
+
return S.value;
|
|
3251
3255
|
}));
|
|
3252
|
-
Array.isArray(
|
|
3256
|
+
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
|
|
3253
3257
|
return {
|
|
3254
|
-
type: typeof
|
|
3255
|
-
value:
|
|
3258
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3259
|
+
value: S
|
|
3256
3260
|
};
|
|
3257
3261
|
}));
|
|
3258
3262
|
}
|
|
@@ -3260,38 +3264,38 @@ function ue(e, t, r, n, i, s, u) {
|
|
|
3260
3264
|
var H = h.options[m] || h.options.other;
|
|
3261
3265
|
if (!H)
|
|
3262
3266
|
throw new st(h.value, m, Object.keys(h.options), u);
|
|
3263
|
-
o.push.apply(o,
|
|
3267
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3264
3268
|
continue;
|
|
3265
3269
|
}
|
|
3266
3270
|
if (Lt(h)) {
|
|
3267
3271
|
var H = h.options["=".concat(m)];
|
|
3268
3272
|
if (!H) {
|
|
3269
3273
|
if (!Intl.PluralRules)
|
|
3270
|
-
throw new
|
|
3274
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3271
3275
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3272
|
-
`,
|
|
3273
|
-
var
|
|
3274
|
-
H = h.options[
|
|
3276
|
+
`, k.MISSING_INTL_API, u);
|
|
3277
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3278
|
+
H = h.options[N] || h.options.other;
|
|
3275
3279
|
}
|
|
3276
3280
|
if (!H)
|
|
3277
3281
|
throw new st(h.value, m, Object.keys(h.options), u);
|
|
3278
|
-
o.push.apply(o,
|
|
3282
|
+
o.push.apply(o, he(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3279
3283
|
continue;
|
|
3280
3284
|
}
|
|
3281
3285
|
}
|
|
3282
|
-
return
|
|
3286
|
+
return Tn(o);
|
|
3283
3287
|
}
|
|
3284
|
-
function
|
|
3285
|
-
return t ?
|
|
3286
|
-
return r[n] =
|
|
3288
|
+
function Sn(e, t) {
|
|
3289
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3290
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3287
3291
|
}, {})) : e;
|
|
3288
3292
|
}
|
|
3289
|
-
function
|
|
3293
|
+
function An(e, t) {
|
|
3290
3294
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3291
|
-
return r[n] =
|
|
3292
|
-
},
|
|
3295
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3296
|
+
}, w({}, e)) : e;
|
|
3293
3297
|
}
|
|
3294
|
-
function
|
|
3298
|
+
function Ce(e) {
|
|
3295
3299
|
return {
|
|
3296
3300
|
create: function() {
|
|
3297
3301
|
return {
|
|
@@ -3305,35 +3309,35 @@ function Ae(e) {
|
|
|
3305
3309
|
}
|
|
3306
3310
|
};
|
|
3307
3311
|
}
|
|
3308
|
-
function
|
|
3312
|
+
function On(e) {
|
|
3309
3313
|
return e === void 0 && (e = {
|
|
3310
3314
|
number: {},
|
|
3311
3315
|
dateTime: {},
|
|
3312
3316
|
pluralRules: {}
|
|
3313
3317
|
}), {
|
|
3314
|
-
getNumberFormat:
|
|
3318
|
+
getNumberFormat: Se(function() {
|
|
3315
3319
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3316
3320
|
r[n] = arguments[n];
|
|
3317
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3321
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3318
3322
|
}, {
|
|
3319
|
-
cache:
|
|
3320
|
-
strategy:
|
|
3323
|
+
cache: Ce(e.number),
|
|
3324
|
+
strategy: Ae.variadic
|
|
3321
3325
|
}),
|
|
3322
|
-
getDateTimeFormat:
|
|
3326
|
+
getDateTimeFormat: Se(function() {
|
|
3323
3327
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3324
3328
|
r[n] = arguments[n];
|
|
3325
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3329
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3326
3330
|
}, {
|
|
3327
|
-
cache:
|
|
3328
|
-
strategy:
|
|
3331
|
+
cache: Ce(e.dateTime),
|
|
3332
|
+
strategy: Ae.variadic
|
|
3329
3333
|
}),
|
|
3330
|
-
getPluralRules:
|
|
3334
|
+
getPluralRules: Se(function() {
|
|
3331
3335
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3332
3336
|
r[n] = arguments[n];
|
|
3333
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3337
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3334
3338
|
}, {
|
|
3335
|
-
cache:
|
|
3336
|
-
strategy:
|
|
3339
|
+
cache: Ce(e.pluralRules),
|
|
3340
|
+
strategy: Ae.variadic
|
|
3337
3341
|
})
|
|
3338
3342
|
};
|
|
3339
3343
|
}
|
|
@@ -3352,11 +3356,11 @@ var jt = (
|
|
|
3352
3356
|
if (a.length === 1)
|
|
3353
3357
|
return a[0].value;
|
|
3354
3358
|
var h = a.reduce(function(c, m) {
|
|
3355
|
-
return !c.length || m.type !==
|
|
3359
|
+
return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3356
3360
|
}, []);
|
|
3357
3361
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3358
3362
|
}, this.formatToParts = function(l) {
|
|
3359
|
-
return
|
|
3363
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3360
3364
|
}, this.resolvedOptions = function() {
|
|
3361
3365
|
var l;
|
|
3362
3366
|
return {
|
|
@@ -3370,12 +3374,12 @@ var jt = (
|
|
|
3370
3374
|
var u = i || {};
|
|
3371
3375
|
u.formatters;
|
|
3372
3376
|
var o = Ur(u, ["formatters"]);
|
|
3373
|
-
this.ast = e.__parse(t,
|
|
3377
|
+
this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
|
|
3374
3378
|
} else
|
|
3375
3379
|
this.ast = t;
|
|
3376
3380
|
if (!Array.isArray(this.ast))
|
|
3377
3381
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3378
|
-
this.formats =
|
|
3382
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3379
3383
|
}
|
|
3380
3384
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3381
3385
|
get: function() {
|
|
@@ -3388,7 +3392,7 @@ var jt = (
|
|
|
3388
3392
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3389
3393
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3390
3394
|
}
|
|
3391
|
-
}, e.__parse =
|
|
3395
|
+
}, e.__parse = vn, e.formats = {
|
|
3392
3396
|
number: {
|
|
3393
3397
|
integer: {
|
|
3394
3398
|
maximumFractionDigits: 0
|
|
@@ -3470,36 +3474,36 @@ function Cn(e, t) {
|
|
|
3470
3474
|
n = void 0;
|
|
3471
3475
|
return n;
|
|
3472
3476
|
}
|
|
3473
|
-
const C = {},
|
|
3477
|
+
const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
|
|
3474
3478
|
if (t == null)
|
|
3475
3479
|
return;
|
|
3476
3480
|
if (t in C && e in C[t])
|
|
3477
3481
|
return C[t][e];
|
|
3478
|
-
const r =
|
|
3482
|
+
const r = ne(t);
|
|
3479
3483
|
for (let n = 0; n < r.length; n++) {
|
|
3480
|
-
const i = r[n], s =
|
|
3484
|
+
const i = r[n], s = Nn(i, e);
|
|
3481
3485
|
if (s)
|
|
3482
|
-
return
|
|
3486
|
+
return Pn(e, t, s);
|
|
3483
3487
|
}
|
|
3484
3488
|
};
|
|
3485
3489
|
let Xe;
|
|
3486
|
-
const
|
|
3487
|
-
function
|
|
3490
|
+
const re = be({});
|
|
3491
|
+
function Ln(e) {
|
|
3488
3492
|
return Xe[e] || null;
|
|
3489
3493
|
}
|
|
3490
3494
|
function Vt(e) {
|
|
3491
3495
|
return e in Xe;
|
|
3492
3496
|
}
|
|
3493
|
-
function
|
|
3497
|
+
function Nn(e, t) {
|
|
3494
3498
|
if (!Vt(e))
|
|
3495
3499
|
return null;
|
|
3496
|
-
const r =
|
|
3500
|
+
const r = Ln(e);
|
|
3497
3501
|
return Cn(r, t);
|
|
3498
3502
|
}
|
|
3499
|
-
function
|
|
3503
|
+
function In(e) {
|
|
3500
3504
|
if (e == null)
|
|
3501
3505
|
return;
|
|
3502
|
-
const t =
|
|
3506
|
+
const t = ne(e);
|
|
3503
3507
|
for (let r = 0; r < t.length; r++) {
|
|
3504
3508
|
const n = t[r];
|
|
3505
3509
|
if (Vt(n))
|
|
@@ -3507,28 +3511,28 @@ function Nn(e) {
|
|
|
3507
3511
|
}
|
|
3508
3512
|
}
|
|
3509
3513
|
function Xt(e, ...t) {
|
|
3510
|
-
delete C[e],
|
|
3514
|
+
delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3511
3515
|
}
|
|
3512
|
-
|
|
3513
|
-
[
|
|
3516
|
+
z(
|
|
3517
|
+
[re],
|
|
3514
3518
|
([e]) => Object.keys(e)
|
|
3515
3519
|
);
|
|
3516
|
-
|
|
3517
|
-
const
|
|
3518
|
-
function
|
|
3519
|
-
|
|
3520
|
+
re.subscribe((e) => Xe = e);
|
|
3521
|
+
const le = {};
|
|
3522
|
+
function Mn(e, t) {
|
|
3523
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3520
3524
|
}
|
|
3521
3525
|
function zt(e) {
|
|
3522
|
-
return
|
|
3526
|
+
return le[e];
|
|
3523
3527
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3528
|
+
function $n(e) {
|
|
3529
|
+
return ne(e).map((t) => {
|
|
3526
3530
|
const r = zt(t);
|
|
3527
3531
|
return [t, r ? [...r] : []];
|
|
3528
3532
|
}).filter(([, t]) => t.length > 0);
|
|
3529
3533
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return e == null ? !1 :
|
|
3534
|
+
function me(e) {
|
|
3535
|
+
return e == null ? !1 : ne(e).some(
|
|
3532
3536
|
(t) => {
|
|
3533
3537
|
var r;
|
|
3534
3538
|
return (r = zt(t)) == null ? void 0 : r.size;
|
|
@@ -3537,34 +3541,34 @@ function fe(e) {
|
|
|
3537
3541
|
}
|
|
3538
3542
|
function Rn(e, t) {
|
|
3539
3543
|
return Promise.all(
|
|
3540
|
-
t.map((n) => (
|
|
3544
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3541
3545
|
).then((n) => Xt(e, ...n));
|
|
3542
3546
|
}
|
|
3543
|
-
const
|
|
3547
|
+
const Z = {};
|
|
3544
3548
|
function Wt(e) {
|
|
3545
|
-
if (!
|
|
3546
|
-
return e in
|
|
3547
|
-
const t =
|
|
3548
|
-
return
|
|
3549
|
+
if (!me(e))
|
|
3550
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3551
|
+
const t = $n(e);
|
|
3552
|
+
return Z[e] = Promise.all(
|
|
3549
3553
|
t.map(
|
|
3550
3554
|
([r, n]) => Rn(r, n)
|
|
3551
3555
|
)
|
|
3552
3556
|
).then(() => {
|
|
3553
|
-
if (
|
|
3557
|
+
if (me(e))
|
|
3554
3558
|
return Wt(e);
|
|
3555
|
-
delete
|
|
3556
|
-
}),
|
|
3559
|
+
delete Z[e];
|
|
3560
|
+
}), Z[e];
|
|
3557
3561
|
}
|
|
3558
|
-
var ot = Object.getOwnPropertySymbols,
|
|
3562
|
+
var ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
|
|
3559
3563
|
var r = {};
|
|
3560
3564
|
for (var n in e)
|
|
3561
|
-
|
|
3565
|
+
Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3562
3566
|
if (e != null && ot)
|
|
3563
3567
|
for (var n of ot(e))
|
|
3564
|
-
t.indexOf(n) < 0 &&
|
|
3568
|
+
t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
|
|
3565
3569
|
return r;
|
|
3566
3570
|
};
|
|
3567
|
-
const
|
|
3571
|
+
const Fn = {
|
|
3568
3572
|
number: {
|
|
3569
3573
|
scientific: { notation: "scientific" },
|
|
3570
3574
|
engineering: { notation: "engineering" },
|
|
@@ -3594,28 +3598,28 @@ const Gn = {
|
|
|
3594
3598
|
}
|
|
3595
3599
|
}
|
|
3596
3600
|
};
|
|
3597
|
-
function
|
|
3601
|
+
function jn({ locale: e, id: t }) {
|
|
3598
3602
|
console.warn(
|
|
3599
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3603
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3600
3604
|
e
|
|
3601
|
-
).join('", "')}".${
|
|
3605
|
+
).join('", "')}".${me(L()) ? `
|
|
3602
3606
|
|
|
3603
3607
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3604
3608
|
);
|
|
3605
3609
|
}
|
|
3606
|
-
const
|
|
3610
|
+
const kn = {
|
|
3607
3611
|
fallbackLocale: null,
|
|
3608
3612
|
loadingDelay: 200,
|
|
3609
|
-
formats:
|
|
3613
|
+
formats: Fn,
|
|
3610
3614
|
warnOnMissingMessages: !0,
|
|
3611
3615
|
handleMissingMessage: void 0,
|
|
3612
3616
|
ignoreTag: !0
|
|
3613
|
-
},
|
|
3614
|
-
function
|
|
3615
|
-
return
|
|
3617
|
+
}, Q = kn;
|
|
3618
|
+
function V() {
|
|
3619
|
+
return Q;
|
|
3616
3620
|
}
|
|
3617
|
-
function
|
|
3618
|
-
const t = e, { formats: r } = t, n =
|
|
3621
|
+
function Vn(e) {
|
|
3622
|
+
const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
|
|
3619
3623
|
let i = e.fallbackLocale;
|
|
3620
3624
|
if (e.initialLocale)
|
|
3621
3625
|
try {
|
|
@@ -3625,134 +3629,134 @@ function kn(e) {
|
|
|
3625
3629
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3626
3630
|
);
|
|
3627
3631
|
}
|
|
3628
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3632
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
|
|
3629
3633
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3630
|
-
)), Object.assign(
|
|
3634
|
+
)), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), M.set(i);
|
|
3631
3635
|
}
|
|
3632
|
-
const
|
|
3633
|
-
var
|
|
3636
|
+
const Pe = be(!1);
|
|
3637
|
+
var Xn = Object.defineProperty, zn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3634
3638
|
for (var r in t || (t = {}))
|
|
3635
|
-
|
|
3639
|
+
Zn.call(t, r) && ut(e, r, t[r]);
|
|
3636
3640
|
if (at)
|
|
3637
3641
|
for (var r of at(t))
|
|
3638
|
-
|
|
3642
|
+
Qn.call(t, r) && ut(e, r, t[r]);
|
|
3639
3643
|
return e;
|
|
3640
|
-
},
|
|
3641
|
-
let
|
|
3642
|
-
const
|
|
3644
|
+
}, qn = (e, t) => zn(e, Wn(t));
|
|
3645
|
+
let je;
|
|
3646
|
+
const pe = be(null);
|
|
3643
3647
|
function ht(e) {
|
|
3644
3648
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3645
3649
|
}
|
|
3646
|
-
function
|
|
3650
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3647
3651
|
const r = ht(e);
|
|
3648
3652
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3649
3653
|
}
|
|
3650
|
-
function
|
|
3651
|
-
return
|
|
3654
|
+
function L() {
|
|
3655
|
+
return je ?? void 0;
|
|
3652
3656
|
}
|
|
3653
|
-
|
|
3654
|
-
|
|
3657
|
+
pe.subscribe((e) => {
|
|
3658
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3655
3659
|
});
|
|
3656
|
-
const
|
|
3657
|
-
if (e &&
|
|
3658
|
-
const { loadingDelay: t } =
|
|
3660
|
+
const Yn = (e) => {
|
|
3661
|
+
if (e && In(e) && me(e)) {
|
|
3662
|
+
const { loadingDelay: t } = V();
|
|
3659
3663
|
let r;
|
|
3660
|
-
return typeof window < "u" &&
|
|
3661
|
-
() =>
|
|
3664
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3665
|
+
() => Pe.set(!0),
|
|
3662
3666
|
t
|
|
3663
|
-
) :
|
|
3664
|
-
|
|
3667
|
+
) : Pe.set(!0), Wt(e).then(() => {
|
|
3668
|
+
pe.set(e);
|
|
3665
3669
|
}).finally(() => {
|
|
3666
|
-
clearTimeout(r),
|
|
3670
|
+
clearTimeout(r), Pe.set(!1);
|
|
3667
3671
|
});
|
|
3668
3672
|
}
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3671
|
-
set:
|
|
3672
|
-
}),
|
|
3673
|
+
return pe.set(e);
|
|
3674
|
+
}, M = qn(Jn({}, pe), {
|
|
3675
|
+
set: Yn
|
|
3676
|
+
}), ye = (e) => {
|
|
3673
3677
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3674
3678
|
return (n) => {
|
|
3675
3679
|
const i = JSON.stringify(n);
|
|
3676
3680
|
return i in t ? t[i] : t[i] = e(n);
|
|
3677
3681
|
};
|
|
3678
3682
|
};
|
|
3679
|
-
var
|
|
3683
|
+
var Kn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3680
3684
|
for (var r in t || (t = {}))
|
|
3681
3685
|
Zt.call(t, r) && lt(e, r, t[r]);
|
|
3682
|
-
if (
|
|
3683
|
-
for (var r of
|
|
3686
|
+
if (de)
|
|
3687
|
+
for (var r of de(t))
|
|
3684
3688
|
Qt.call(t, r) && lt(e, r, t[r]);
|
|
3685
3689
|
return e;
|
|
3686
|
-
},
|
|
3690
|
+
}, W = (e, t) => {
|
|
3687
3691
|
var r = {};
|
|
3688
3692
|
for (var n in e)
|
|
3689
3693
|
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3690
|
-
if (e != null &&
|
|
3691
|
-
for (var n of
|
|
3694
|
+
if (e != null && de)
|
|
3695
|
+
for (var n of de(e))
|
|
3692
3696
|
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3693
3697
|
return r;
|
|
3694
3698
|
};
|
|
3695
|
-
const
|
|
3696
|
-
const { formats: r } =
|
|
3699
|
+
const K = (e, t) => {
|
|
3700
|
+
const { formats: r } = V();
|
|
3697
3701
|
if (e in r && t in r[e])
|
|
3698
3702
|
return r[e][t];
|
|
3699
3703
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3700
|
-
},
|
|
3704
|
+
}, ei = ye(
|
|
3701
3705
|
(e) => {
|
|
3702
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3706
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3703
3707
|
if (r == null)
|
|
3704
3708
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3705
|
-
return n && (i =
|
|
3709
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3706
3710
|
}
|
|
3707
|
-
),
|
|
3711
|
+
), ti = ye(
|
|
3708
3712
|
(e) => {
|
|
3709
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3713
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3710
3714
|
if (r == null)
|
|
3711
3715
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3712
|
-
return n ? i =
|
|
3716
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3713
3717
|
}
|
|
3714
|
-
),
|
|
3718
|
+
), ri = ye(
|
|
3715
3719
|
(e) => {
|
|
3716
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3720
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3717
3721
|
if (r == null)
|
|
3718
3722
|
throw new Error(
|
|
3719
3723
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3720
3724
|
);
|
|
3721
|
-
return n ? i =
|
|
3725
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3722
3726
|
}
|
|
3723
|
-
),
|
|
3724
|
-
var t = e, {
|
|
3725
|
-
locale: r = P()
|
|
3726
|
-
} = t, n = z(t, [
|
|
3727
|
-
"locale"
|
|
3728
|
-
]);
|
|
3729
|
-
return Kn(ze({ locale: r }, n));
|
|
3730
|
-
}, ni = (e = {}) => {
|
|
3727
|
+
), ni = (e = {}) => {
|
|
3731
3728
|
var t = e, {
|
|
3732
|
-
locale: r =
|
|
3733
|
-
} = t, n =
|
|
3729
|
+
locale: r = L()
|
|
3730
|
+
} = t, n = W(t, [
|
|
3734
3731
|
"locale"
|
|
3735
3732
|
]);
|
|
3736
3733
|
return ei(ze({ locale: r }, n));
|
|
3737
3734
|
}, ii = (e = {}) => {
|
|
3738
3735
|
var t = e, {
|
|
3739
|
-
locale: r =
|
|
3740
|
-
} = t, n =
|
|
3736
|
+
locale: r = L()
|
|
3737
|
+
} = t, n = W(t, [
|
|
3741
3738
|
"locale"
|
|
3742
3739
|
]);
|
|
3743
3740
|
return ti(ze({ locale: r }, n));
|
|
3744
|
-
}, si =
|
|
3741
|
+
}, si = (e = {}) => {
|
|
3742
|
+
var t = e, {
|
|
3743
|
+
locale: r = L()
|
|
3744
|
+
} = t, n = W(t, [
|
|
3745
|
+
"locale"
|
|
3746
|
+
]);
|
|
3747
|
+
return ri(ze({ locale: r }, n));
|
|
3748
|
+
}, oi = ye(
|
|
3745
3749
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3746
|
-
(e, t =
|
|
3747
|
-
ignoreTag:
|
|
3750
|
+
(e, t = L()) => new jt(e, t, V().formats, {
|
|
3751
|
+
ignoreTag: V().ignoreTag
|
|
3748
3752
|
})
|
|
3749
|
-
),
|
|
3753
|
+
), ai = (e, t = {}) => {
|
|
3750
3754
|
var r, n, i, s;
|
|
3751
3755
|
let u = t;
|
|
3752
3756
|
typeof e == "object" && (u = e, e = u.id);
|
|
3753
3757
|
const {
|
|
3754
3758
|
values: o,
|
|
3755
|
-
locale: l =
|
|
3759
|
+
locale: l = L(),
|
|
3756
3760
|
default: a
|
|
3757
3761
|
} = u;
|
|
3758
3762
|
if (l == null)
|
|
@@ -3761,7 +3765,7 @@ const Y = (e, t) => {
|
|
|
3761
3765
|
);
|
|
3762
3766
|
let h = kt(e, l);
|
|
3763
3767
|
if (!h)
|
|
3764
|
-
h = (s = (i = (n = (r =
|
|
3768
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3765
3769
|
else if (typeof h != "string")
|
|
3766
3770
|
return console.warn(
|
|
3767
3771
|
`[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.`
|
|
@@ -3770,7 +3774,7 @@ const Y = (e, t) => {
|
|
|
3770
3774
|
return h;
|
|
3771
3775
|
let c = h;
|
|
3772
3776
|
try {
|
|
3773
|
-
c =
|
|
3777
|
+
c = oi(h, l).format(o);
|
|
3774
3778
|
} catch (m) {
|
|
3775
3779
|
m instanceof Error && console.warn(
|
|
3776
3780
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3778,18 +3782,18 @@ const Y = (e, t) => {
|
|
|
3778
3782
|
);
|
|
3779
3783
|
}
|
|
3780
3784
|
return c;
|
|
3781
|
-
},
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3785
|
+
}, ui = (e, t) => si(t).format(e), hi = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = L()) => kt(e, t), ci = z([M, re], () => ai);
|
|
3786
|
+
z([M], () => ui);
|
|
3787
|
+
z([M], () => hi);
|
|
3788
|
+
z([M], () => li);
|
|
3789
|
+
z([M, re], () => fi);
|
|
3786
3790
|
function ft(e, t) {
|
|
3787
3791
|
Xt(e, t);
|
|
3788
3792
|
}
|
|
3789
|
-
function
|
|
3790
|
-
|
|
3793
|
+
function mi(e) {
|
|
3794
|
+
Vn({
|
|
3791
3795
|
fallbackLocale: "en"
|
|
3792
|
-
}),
|
|
3796
|
+
}), M.set(e);
|
|
3793
3797
|
}
|
|
3794
3798
|
const ct = {
|
|
3795
3799
|
en: {
|
|
@@ -3807,7 +3811,7 @@ const ct = {
|
|
|
3807
3811
|
}
|
|
3808
3812
|
}
|
|
3809
3813
|
};
|
|
3810
|
-
function
|
|
3814
|
+
function pi(e, t) {
|
|
3811
3815
|
if (e) {
|
|
3812
3816
|
const r = document.createElement("style");
|
|
3813
3817
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -3824,7 +3828,7 @@ function di(e, t) {
|
|
|
3824
3828
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3825
3829
|
});
|
|
3826
3830
|
}
|
|
3827
|
-
function
|
|
3831
|
+
function bi(e, t, r) {
|
|
3828
3832
|
if (window.emMessageBus) {
|
|
3829
3833
|
const n = document.createElement("style");
|
|
3830
3834
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3832,18 +3836,18 @@ function pi(e, t, r) {
|
|
|
3832
3836
|
});
|
|
3833
3837
|
}
|
|
3834
3838
|
}
|
|
3835
|
-
function
|
|
3839
|
+
function gi(e) {
|
|
3836
3840
|
tr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
|
|
3837
3841
|
}
|
|
3838
|
-
const
|
|
3842
|
+
const _i = (e) => ({}), mt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), dt = (e) => ({});
|
|
3839
3843
|
function bt(e) {
|
|
3840
3844
|
let t, r, n;
|
|
3841
3845
|
return {
|
|
3842
3846
|
c() {
|
|
3843
|
-
t =
|
|
3847
|
+
t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
|
|
3844
3848
|
},
|
|
3845
3849
|
m(i, s) {
|
|
3846
|
-
|
|
3850
|
+
I(i, t, s), r || (n = Ht(
|
|
3847
3851
|
t,
|
|
3848
3852
|
"click",
|
|
3849
3853
|
/*back*/
|
|
@@ -3852,7 +3856,7 @@ function bt(e) {
|
|
|
3852
3856
|
},
|
|
3853
3857
|
p: B,
|
|
3854
3858
|
d(i) {
|
|
3855
|
-
i &&
|
|
3859
|
+
i && P(t), r = !1, n();
|
|
3856
3860
|
}
|
|
3857
3861
|
};
|
|
3858
3862
|
}
|
|
@@ -3866,18 +3870,18 @@ function xi(e) {
|
|
|
3866
3870
|
r && r.c(), t = vt();
|
|
3867
3871
|
},
|
|
3868
3872
|
m(n, i) {
|
|
3869
|
-
r && r.m(n, i),
|
|
3873
|
+
r && r.m(n, i), I(n, t, i);
|
|
3870
3874
|
},
|
|
3871
3875
|
p(n, i) {
|
|
3872
3876
|
/*backButton*/
|
|
3873
3877
|
n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3874
3878
|
},
|
|
3875
3879
|
d(n) {
|
|
3876
|
-
n &&
|
|
3880
|
+
n && P(t), r && r.d(n);
|
|
3877
3881
|
}
|
|
3878
3882
|
};
|
|
3879
3883
|
}
|
|
3880
|
-
function
|
|
3884
|
+
function vi(e) {
|
|
3881
3885
|
let t, r = (
|
|
3882
3886
|
/*$_*/
|
|
3883
3887
|
e[4](
|
|
@@ -3887,10 +3891,10 @@ function Ei(e) {
|
|
|
3887
3891
|
), n;
|
|
3888
3892
|
return {
|
|
3889
3893
|
c() {
|
|
3890
|
-
t =
|
|
3894
|
+
t = X("span"), n = Ve(r), te(t, "class", "CashierHeaderTitle");
|
|
3891
3895
|
},
|
|
3892
3896
|
m(i, s) {
|
|
3893
|
-
|
|
3897
|
+
I(i, t, s), fe(t, n);
|
|
3894
3898
|
},
|
|
3895
3899
|
p(i, s) {
|
|
3896
3900
|
s & /*$_, titleText*/
|
|
@@ -3901,7 +3905,7 @@ function Ei(e) {
|
|
|
3901
3905
|
) + "") && sr(n, r);
|
|
3902
3906
|
},
|
|
3903
3907
|
d(i) {
|
|
3904
|
-
i &&
|
|
3908
|
+
i && P(t);
|
|
3905
3909
|
}
|
|
3906
3910
|
};
|
|
3907
3911
|
}
|
|
@@ -3909,10 +3913,10 @@ function gt(e) {
|
|
|
3909
3913
|
let t, r, n;
|
|
3910
3914
|
return {
|
|
3911
3915
|
c() {
|
|
3912
|
-
t =
|
|
3916
|
+
t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>', te(t, "class", "CashierHeaderRightButton");
|
|
3913
3917
|
},
|
|
3914
3918
|
m(i, s) {
|
|
3915
|
-
|
|
3919
|
+
I(i, t, s), r || (n = Ht(
|
|
3916
3920
|
t,
|
|
3917
3921
|
"click",
|
|
3918
3922
|
/*close*/
|
|
@@ -3921,11 +3925,11 @@ function gt(e) {
|
|
|
3921
3925
|
},
|
|
3922
3926
|
p: B,
|
|
3923
3927
|
d(i) {
|
|
3924
|
-
i &&
|
|
3928
|
+
i && P(t), r = !1, n();
|
|
3925
3929
|
}
|
|
3926
3930
|
};
|
|
3927
3931
|
}
|
|
3928
|
-
function
|
|
3932
|
+
function Hi(e) {
|
|
3929
3933
|
let t, r = (
|
|
3930
3934
|
/*closeButton*/
|
|
3931
3935
|
e[3] && gt(e)
|
|
@@ -3935,130 +3939,130 @@ function vi(e) {
|
|
|
3935
3939
|
r && r.c(), t = vt();
|
|
3936
3940
|
},
|
|
3937
3941
|
m(n, i) {
|
|
3938
|
-
r && r.m(n, i),
|
|
3942
|
+
r && r.m(n, i), I(n, t, i);
|
|
3939
3943
|
},
|
|
3940
3944
|
p(n, i) {
|
|
3941
3945
|
/*closeButton*/
|
|
3942
3946
|
n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3943
3947
|
},
|
|
3944
3948
|
d(n) {
|
|
3945
|
-
n &&
|
|
3949
|
+
n && P(t), r && r.d(n);
|
|
3946
3950
|
}
|
|
3947
3951
|
};
|
|
3948
3952
|
}
|
|
3949
|
-
function
|
|
3953
|
+
function Bi(e) {
|
|
3950
3954
|
let t, r, n, i;
|
|
3951
3955
|
const s = (
|
|
3952
3956
|
/*#slots*/
|
|
3953
3957
|
e[16].leftButton
|
|
3954
|
-
), u =
|
|
3958
|
+
), u = Ee(
|
|
3955
3959
|
s,
|
|
3956
3960
|
e,
|
|
3957
3961
|
/*$$scope*/
|
|
3958
3962
|
e[15],
|
|
3959
|
-
|
|
3963
|
+
dt
|
|
3960
3964
|
), o = u || xi(e), l = (
|
|
3961
3965
|
/*#slots*/
|
|
3962
3966
|
e[16].title
|
|
3963
|
-
), a =
|
|
3967
|
+
), a = Ee(
|
|
3964
3968
|
l,
|
|
3965
3969
|
e,
|
|
3966
3970
|
/*$$scope*/
|
|
3967
3971
|
e[15],
|
|
3968
|
-
|
|
3969
|
-
), h = a ||
|
|
3972
|
+
pt
|
|
3973
|
+
), h = a || vi(e), c = (
|
|
3970
3974
|
/*#slots*/
|
|
3971
3975
|
e[16].rightButton
|
|
3972
|
-
), m =
|
|
3976
|
+
), m = Ee(
|
|
3973
3977
|
c,
|
|
3974
3978
|
e,
|
|
3975
3979
|
/*$$scope*/
|
|
3976
3980
|
e[15],
|
|
3977
3981
|
mt
|
|
3978
|
-
),
|
|
3982
|
+
), p = m || Hi(e);
|
|
3979
3983
|
return {
|
|
3980
3984
|
c() {
|
|
3981
|
-
t =
|
|
3985
|
+
t = X("div"), o && o.c(), r = Qe(), h && h.c(), n = Qe(), p && p.c(), te(t, "class", "CashierHeader");
|
|
3982
3986
|
},
|
|
3983
3987
|
m(f, _) {
|
|
3984
|
-
|
|
3988
|
+
I(f, t, _), o && o.m(t, null), fe(t, r), h && h.m(t, null), fe(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
3985
3989
|
},
|
|
3986
3990
|
p(f, [_]) {
|
|
3987
3991
|
u ? u.p && (!i || _ & /*$$scope*/
|
|
3988
|
-
32768) &&
|
|
3992
|
+
32768) && ve(
|
|
3989
3993
|
u,
|
|
3990
3994
|
s,
|
|
3991
3995
|
f,
|
|
3992
3996
|
/*$$scope*/
|
|
3993
3997
|
f[15],
|
|
3994
|
-
i ?
|
|
3998
|
+
i ? xe(
|
|
3995
3999
|
s,
|
|
3996
4000
|
/*$$scope*/
|
|
3997
4001
|
f[15],
|
|
3998
4002
|
_,
|
|
3999
|
-
|
|
4000
|
-
) :
|
|
4003
|
+
Ei
|
|
4004
|
+
) : He(
|
|
4001
4005
|
/*$$scope*/
|
|
4002
4006
|
f[15]
|
|
4003
4007
|
),
|
|
4004
|
-
|
|
4008
|
+
dt
|
|
4005
4009
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4006
4010
|
2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
|
|
4007
|
-
32768) &&
|
|
4011
|
+
32768) && ve(
|
|
4008
4012
|
a,
|
|
4009
4013
|
l,
|
|
4010
4014
|
f,
|
|
4011
4015
|
/*$$scope*/
|
|
4012
4016
|
f[15],
|
|
4013
|
-
i ?
|
|
4017
|
+
i ? xe(
|
|
4014
4018
|
l,
|
|
4015
4019
|
/*$$scope*/
|
|
4016
4020
|
f[15],
|
|
4017
4021
|
_,
|
|
4018
|
-
|
|
4019
|
-
) :
|
|
4022
|
+
yi
|
|
4023
|
+
) : He(
|
|
4020
4024
|
/*$$scope*/
|
|
4021
4025
|
f[15]
|
|
4022
4026
|
),
|
|
4023
|
-
|
|
4027
|
+
pt
|
|
4024
4028
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4025
4029
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4026
|
-
32768) &&
|
|
4030
|
+
32768) && ve(
|
|
4027
4031
|
m,
|
|
4028
4032
|
c,
|
|
4029
4033
|
f,
|
|
4030
4034
|
/*$$scope*/
|
|
4031
4035
|
f[15],
|
|
4032
|
-
i ?
|
|
4036
|
+
i ? xe(
|
|
4033
4037
|
c,
|
|
4034
4038
|
/*$$scope*/
|
|
4035
4039
|
f[15],
|
|
4036
4040
|
_,
|
|
4037
|
-
|
|
4038
|
-
) :
|
|
4041
|
+
_i
|
|
4042
|
+
) : He(
|
|
4039
4043
|
/*$$scope*/
|
|
4040
4044
|
f[15]
|
|
4041
4045
|
),
|
|
4042
4046
|
mt
|
|
4043
|
-
) :
|
|
4044
|
-
8) &&
|
|
4047
|
+
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4048
|
+
8) && p.p(f, i ? _ : -1);
|
|
4045
4049
|
},
|
|
4046
4050
|
i(f) {
|
|
4047
|
-
i || (
|
|
4051
|
+
i || (ae(o, f), ae(h, f), ae(p, f), i = !0);
|
|
4048
4052
|
},
|
|
4049
4053
|
o(f) {
|
|
4050
|
-
|
|
4054
|
+
Te(o, f), Te(h, f), Te(p, f), i = !1;
|
|
4051
4055
|
},
|
|
4052
4056
|
d(f) {
|
|
4053
|
-
f &&
|
|
4057
|
+
f && P(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4054
4058
|
}
|
|
4055
4059
|
};
|
|
4056
4060
|
}
|
|
4057
|
-
function
|
|
4061
|
+
function Ti(e, t, r) {
|
|
4058
4062
|
let n;
|
|
4059
|
-
er(e,
|
|
4060
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4061
|
-
const
|
|
4063
|
+
er(e, ci, (g) => r(4, n = g));
|
|
4064
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, A = !1;
|
|
4065
|
+
const O = () => {
|
|
4062
4066
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4063
4067
|
Object.keys(g).forEach((We) => {
|
|
4064
4068
|
ft(We, g[We]);
|
|
@@ -4071,45 +4075,45 @@ function Bi(e, t, r) {
|
|
|
4071
4075
|
ft(g, ct[g]);
|
|
4072
4076
|
});
|
|
4073
4077
|
const H = () => {
|
|
4074
|
-
|
|
4075
|
-
},
|
|
4078
|
+
mi(c);
|
|
4079
|
+
}, N = () => {
|
|
4076
4080
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4077
|
-
},
|
|
4081
|
+
}, S = () => {
|
|
4078
4082
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4079
|
-
},
|
|
4083
|
+
}, $ = () => {
|
|
4080
4084
|
r(1, _ = !!a && a !== "false");
|
|
4081
|
-
},
|
|
4082
|
-
r(3,
|
|
4085
|
+
}, ie = () => {
|
|
4086
|
+
r(3, A = !!m && m !== "false");
|
|
4083
4087
|
}, Jt = () => {
|
|
4084
4088
|
r(2, v = h || "header.general");
|
|
4085
4089
|
};
|
|
4086
4090
|
ur(() => () => {
|
|
4087
4091
|
});
|
|
4088
4092
|
function qt(g) {
|
|
4089
|
-
|
|
4093
|
+
Le[g ? "unshift" : "push"](() => {
|
|
4090
4094
|
f = g, r(0, f);
|
|
4091
4095
|
});
|
|
4092
4096
|
}
|
|
4093
4097
|
return e.$$set = (g) => {
|
|
4094
|
-
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14,
|
|
4098
|
+
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4095
4099
|
}, e.$$.update = () => {
|
|
4096
4100
|
e.$$.dirty & /*lang*/
|
|
4097
4101
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4098
4102
|
6144 && c && h && Jt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4099
|
-
129 && u && f &&
|
|
4103
|
+
129 && u && f && pi(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4100
4104
|
257 && o && f && di(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4101
|
-
16385 &&
|
|
4102
|
-
4608 && c && l &&
|
|
4103
|
-
1024 && a &&
|
|
4104
|
-
8192 && m &&
|
|
4105
|
+
16385 && p && f && bi(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4106
|
+
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4107
|
+
1024 && a && $(), e.$$.dirty & /*showclosebutton*/
|
|
4108
|
+
8192 && m && ie();
|
|
4105
4109
|
}, [
|
|
4106
4110
|
f,
|
|
4107
4111
|
_,
|
|
4108
4112
|
v,
|
|
4109
|
-
|
|
4113
|
+
A,
|
|
4110
4114
|
n,
|
|
4111
|
-
|
|
4112
|
-
|
|
4115
|
+
N,
|
|
4116
|
+
S,
|
|
4113
4117
|
u,
|
|
4114
4118
|
o,
|
|
4115
4119
|
l,
|
|
@@ -4117,19 +4121,19 @@ function Bi(e, t, r) {
|
|
|
4117
4121
|
h,
|
|
4118
4122
|
c,
|
|
4119
4123
|
m,
|
|
4120
|
-
|
|
4124
|
+
p,
|
|
4121
4125
|
s,
|
|
4122
4126
|
i,
|
|
4123
4127
|
qt
|
|
4124
4128
|
];
|
|
4125
4129
|
}
|
|
4126
|
-
class
|
|
4130
|
+
class wi extends yr {
|
|
4127
4131
|
constructor(t) {
|
|
4128
4132
|
super(), gr(
|
|
4129
4133
|
this,
|
|
4130
4134
|
t,
|
|
4135
|
+
Ti,
|
|
4131
4136
|
Bi,
|
|
4132
|
-
Hi,
|
|
4133
4137
|
yt,
|
|
4134
4138
|
{
|
|
4135
4139
|
clientstyling: 7,
|
|
@@ -4141,7 +4145,7 @@ class Ti extends yr {
|
|
|
4141
4145
|
showclosebutton: 13,
|
|
4142
4146
|
mbsource: 14
|
|
4143
4147
|
},
|
|
4144
|
-
|
|
4148
|
+
gi
|
|
4145
4149
|
);
|
|
4146
4150
|
}
|
|
4147
4151
|
get clientstyling() {
|
|
@@ -4193,7 +4197,7 @@ class Ti extends yr {
|
|
|
4193
4197
|
this.$$set({ mbsource: t }), T();
|
|
4194
4198
|
}
|
|
4195
4199
|
}
|
|
4196
|
-
_r(
|
|
4200
|
+
_r(wi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4197
4201
|
export {
|
|
4198
|
-
|
|
4202
|
+
wi as C
|
|
4199
4203
|
};
|