@everymatrix/cashier-iframe-redirect 1.60.1 → 1.60.2
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-B569Pf5f.cjs +18 -0
- package/components/{CashierHeader-EK8KBBon.js → CashierHeader-BVTI8DE4.js} +479 -481
- package/components/{CashierHeader-BuDZZ8rP.js → CashierHeader-Cvab2tdW.js} +455 -457
- package/components/{CashierIframeRedirect-Ardd2Dpu.js → CashierIframeRedirect-B5NM6lSr.js} +11 -11
- package/components/{CashierIframeRedirect-BmHmV7tA.js → CashierIframeRedirect-B9riTcTa.js} +13 -13
- package/components/{CashierIframeRedirect-Bwp81Q_x.cjs → CashierIframeRedirect-B_i-smF4.cjs} +1 -1
- package/components/{CashierSpinner-fcS8Yneb.cjs → CashierSpinner-BFEcImS4.cjs} +1 -1
- package/components/{CashierSpinner-Bd0C8ypP.js → CashierSpinner-BTqY0zZG.js} +7 -7
- package/components/{CashierSpinner-CWdntBnB.js → CashierSpinner-Dcc78ngS.js} +7 -7
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-C142j1-7.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function er(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,29 +8,29 @@ function rr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function _t(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Ze() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function te(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(_t);
|
|
19
19
|
}
|
|
20
20
|
function ke(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function yt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let se;
|
|
27
|
-
function
|
|
27
|
+
function Hi(e, t) {
|
|
28
28
|
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function tr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function xt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -39,17 +39,17 @@ function vt(e, ...t) {
|
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function rr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
44
44
|
}
|
|
45
45
|
function xe(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = Et(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function Et(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
54
|
function Ee(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
@@ -68,7 +68,7 @@ function Ee(e, t, r, n) {
|
|
|
68
68
|
}
|
|
69
69
|
function ve(e, t, r, n, i, s) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const h =
|
|
71
|
+
const h = Et(t, r, n, s);
|
|
72
72
|
e.p(h, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -84,14 +84,14 @@ function He(e) {
|
|
|
84
84
|
function ce(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function nr(e, t, r) {
|
|
88
|
+
const n = ir(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
90
|
+
const i = W("style");
|
|
91
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ir(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,7 +101,7 @@ function or(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function sr(e, t) {
|
|
105
105
|
return ce(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
@@ -114,36 +114,36 @@ function I(e, t, r) {
|
|
|
114
114
|
function O(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function W(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
120
|
function Ve(e) {
|
|
121
121
|
return document.createTextNode(e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Qe() {
|
|
124
124
|
return Ve(" ");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function vt() {
|
|
127
127
|
return Ve("");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ht(e, t, r, n) {
|
|
130
130
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function z(e, t, r) {
|
|
133
133
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Bi(e, t, r) {
|
|
136
136
|
const n = t.toLowerCase();
|
|
137
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
137
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function or(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ar(e, t) {
|
|
143
143
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
144
144
|
t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function hr(e) {
|
|
147
147
|
const t = {};
|
|
148
148
|
return e.childNodes.forEach(
|
|
149
149
|
/** @param {Element} node */
|
|
@@ -158,10 +158,10 @@ function Y(e) {
|
|
|
158
158
|
}
|
|
159
159
|
const G = [], Le = [];
|
|
160
160
|
let F = [];
|
|
161
|
-
const
|
|
161
|
+
const qe = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
162
162
|
let Ne = !1;
|
|
163
|
-
function
|
|
164
|
-
Ne || (Ne = !0,
|
|
163
|
+
function lr() {
|
|
164
|
+
Ne || (Ne = !0, ur.then(S));
|
|
165
165
|
}
|
|
166
166
|
function Ie(e) {
|
|
167
167
|
F.push(e);
|
|
@@ -176,7 +176,7 @@ function S() {
|
|
|
176
176
|
try {
|
|
177
177
|
for (; U < G.length; ) {
|
|
178
178
|
const t = G[U];
|
|
179
|
-
U++, Y(t),
|
|
179
|
+
U++, Y(t), fr(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw G.length = 0, U = 0, t;
|
|
@@ -189,23 +189,23 @@ function S() {
|
|
|
189
189
|
}
|
|
190
190
|
F.length = 0;
|
|
191
191
|
} while (G.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
192
|
+
for (; qe.length; )
|
|
193
|
+
qe.pop()();
|
|
194
194
|
Ne = !1, Be.clear(), Y(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function fr(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
198
|
e.update(), te(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function cr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
206
206
|
}
|
|
207
207
|
const ae = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
208
|
+
let mr;
|
|
209
209
|
function he(e, t) {
|
|
210
210
|
e && e.i && (ae.delete(e), e.i(t));
|
|
211
211
|
}
|
|
@@ -213,26 +213,26 @@ function Te(e, t, r, n) {
|
|
|
213
213
|
if (e && e.o) {
|
|
214
214
|
if (ae.has(e))
|
|
215
215
|
return;
|
|
216
|
-
ae.add(e),
|
|
216
|
+
ae.add(e), mr.c.push(() => {
|
|
217
217
|
ae.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
223
|
n && n.m(t, r), Ie(() => {
|
|
224
|
-
const s = e.$$.on_mount.map(
|
|
224
|
+
const s = e.$$.on_mount.map(_t).filter(ke);
|
|
225
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
226
226
|
}), i.forEach(Ie);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function dr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
232
|
+
function br(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function gr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
236
236
|
const l = Xe;
|
|
237
237
|
Y(e);
|
|
238
238
|
const a = e.$$ = {
|
|
@@ -242,7 +242,7 @@ function yr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
242
242
|
props: s,
|
|
243
243
|
update: B,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: Ze(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function yr(e, t, r, n, i, s, h = null, o = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: Ze(),
|
|
255
255
|
dirty: o,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || l.$$.root
|
|
258
258
|
};
|
|
259
259
|
h && h(a.root);
|
|
260
260
|
let u = !1;
|
|
261
|
-
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
262
|
-
const m =
|
|
263
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u &&
|
|
261
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
262
|
+
const m = p.length ? p[0] : c;
|
|
263
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), u && br(e, f)), c;
|
|
264
264
|
}) : [], a.update(), u = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const f =
|
|
266
|
+
const f = or(t.target);
|
|
267
267
|
a.fragment && a.fragment.l(f), f.forEach(O);
|
|
268
268
|
} else
|
|
269
269
|
a.fragment && a.fragment.c();
|
|
270
|
-
t.intro && he(e.$$.fragment),
|
|
270
|
+
t.intro && he(e.$$.fragment), pr(e, t.target, t.anchor), S();
|
|
271
271
|
}
|
|
272
272
|
Y(l);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Bt;
|
|
275
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -314,7 +314,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
314
314
|
let s;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
s =
|
|
317
|
+
s = W("slot"), i !== "default" && z(s, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = hr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
@@ -418,8 +418,8 @@ function ue(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let h = class extends
|
|
421
|
+
function _r(e, t, r, n, i, s) {
|
|
422
|
+
let h = class extends Bt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
@@ -447,7 +447,7 @@ function xr(e, t, r, n, i, s) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
h, h;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class yr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Er {
|
|
|
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
|
|
@@ -488,13 +488,13 @@ class Er {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !tr(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(
|
|
494
|
+
const xr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
|
|
496
496
|
const D = [];
|
|
497
|
-
function
|
|
497
|
+
function Er(e, t) {
|
|
498
498
|
return {
|
|
499
499
|
subscribe: be(e, t).subscribe
|
|
500
500
|
};
|
|
@@ -503,7 +503,7 @@ function be(e, t = B) {
|
|
|
503
503
|
let r;
|
|
504
504
|
const n = /* @__PURE__ */ new Set();
|
|
505
505
|
function i(o) {
|
|
506
|
-
if (
|
|
506
|
+
if (yt(e, o) && (e = o, r)) {
|
|
507
507
|
const l = !D.length;
|
|
508
508
|
for (const a of n)
|
|
509
509
|
a[1](), D.push(a, e);
|
|
@@ -530,7 +530,7 @@ function Z(e, t, r) {
|
|
|
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 Er(r, (h, o) => {
|
|
534
534
|
let l = !1;
|
|
535
535
|
const a = [];
|
|
536
536
|
let u = 0, f = B;
|
|
@@ -540,8 +540,8 @@ function Z(e, t, r) {
|
|
|
540
540
|
f();
|
|
541
541
|
const m = t(n ? a[0] : a, h, o);
|
|
542
542
|
s ? h(m) : f = ke(m) ? m : B;
|
|
543
|
-
},
|
|
544
|
-
(m, g) =>
|
|
543
|
+
}, p = i.map(
|
|
544
|
+
(m, g) => xt(
|
|
545
545
|
m,
|
|
546
546
|
(v) => {
|
|
547
547
|
a[g] = v, u &= ~(1 << g), l && c();
|
|
@@ -552,74 +552,74 @@ function Z(e, t, r) {
|
|
|
552
552
|
)
|
|
553
553
|
);
|
|
554
554
|
return l = !0, c(), function() {
|
|
555
|
-
te(
|
|
555
|
+
te(p), f(), l = !1;
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function vr(e) {
|
|
560
560
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
561
561
|
}
|
|
562
|
-
var
|
|
563
|
-
return
|
|
562
|
+
var Hr = function(t) {
|
|
563
|
+
return Br(t) && !Tr(t);
|
|
564
564
|
};
|
|
565
|
-
function
|
|
565
|
+
function Br(e) {
|
|
566
566
|
return !!e && typeof e == "object";
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Tr(e) {
|
|
569
569
|
var t = Object.prototype.toString.call(e);
|
|
570
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
570
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
return e.$$typeof ===
|
|
572
|
+
var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.element") : 60103;
|
|
573
|
+
function Ar(e) {
|
|
574
|
+
return e.$$typeof === Sr;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Cr(e) {
|
|
577
577
|
return Array.isArray(e) ? [] : {};
|
|
578
578
|
}
|
|
579
579
|
function K(e, t) {
|
|
580
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? j(
|
|
580
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Cr(e), e, t) : e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Or(e, t, r) {
|
|
583
583
|
return e.concat(t).map(function(n) {
|
|
584
584
|
return K(n, r);
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Pr(e, t) {
|
|
588
588
|
if (!t.customMerge)
|
|
589
589
|
return j;
|
|
590
590
|
var r = t.customMerge(e);
|
|
591
591
|
return typeof r == "function" ? r : j;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Lr(e) {
|
|
594
594
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
595
595
|
return Object.propertyIsEnumerable.call(e, t);
|
|
596
596
|
}) : [];
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return Object.keys(e).concat(
|
|
598
|
+
function Je(e) {
|
|
599
|
+
return Object.keys(e).concat(Lr(e));
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Tt(e, t) {
|
|
602
602
|
try {
|
|
603
603
|
return t in e;
|
|
604
604
|
} catch {
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function Nr(e, t) {
|
|
609
|
+
return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Ir(e, t, r) {
|
|
612
612
|
var n = {};
|
|
613
|
-
return r.isMergeableObject(e) &&
|
|
613
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
614
614
|
n[i] = K(e[i], r);
|
|
615
|
-
}),
|
|
616
|
-
|
|
615
|
+
}), Je(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] = K(t[i], r));
|
|
617
617
|
}), n;
|
|
618
618
|
}
|
|
619
619
|
function j(e, t, r) {
|
|
620
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
620
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = K;
|
|
621
621
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
622
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
622
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : K(t, r);
|
|
623
623
|
}
|
|
624
624
|
j.all = function(t, r) {
|
|
625
625
|
if (!Array.isArray(t))
|
|
@@ -628,8 +628,8 @@ j.all = function(t, r) {
|
|
|
628
628
|
return j(n, i, r);
|
|
629
629
|
}, {});
|
|
630
630
|
};
|
|
631
|
-
var
|
|
632
|
-
const
|
|
631
|
+
var Mr = j, $r = Mr;
|
|
632
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
633
633
|
/*! *****************************************************************************
|
|
634
634
|
Copyright (c) Microsoft Corporation.
|
|
635
635
|
|
|
@@ -671,7 +671,7 @@ var y = function() {
|
|
|
671
671
|
return t;
|
|
672
672
|
}, y.apply(this, arguments);
|
|
673
673
|
};
|
|
674
|
-
function
|
|
674
|
+
function Ur(e, t) {
|
|
675
675
|
var r = {};
|
|
676
676
|
for (var n in e)
|
|
677
677
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -687,59 +687,57 @@ function we(e, t, r) {
|
|
|
687
687
|
return e.concat(s || t);
|
|
688
688
|
}
|
|
689
689
|
function Se(e, t) {
|
|
690
|
-
var r = t && t.cache ? t.cache :
|
|
690
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
691
691
|
return i(e, {
|
|
692
692
|
cache: r,
|
|
693
693
|
serializer: n
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Dr(e) {
|
|
697
697
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
var i =
|
|
699
|
+
function Gr(e, t, r, n) {
|
|
700
|
+
var i = Dr(n) ? n : r(n), s = t.get(i);
|
|
701
701
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function wt(e, t, r) {
|
|
704
704
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
705
705
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function St(e, t, r, n, i) {
|
|
708
708
|
return r.bind(t, e, n, i);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
var r = e.length === 1 ?
|
|
712
|
-
return
|
|
713
|
-
}
|
|
714
|
-
function kr(e, t) {
|
|
715
|
-
return ze(e, this, Ct, t.cache.create(), t.serializer);
|
|
710
|
+
function Fr(e, t) {
|
|
711
|
+
var r = e.length === 1 ? Gr : wt;
|
|
712
|
+
return St(e, this, r, t.cache.create(), t.serializer);
|
|
716
713
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
714
|
+
function jr(e, t) {
|
|
715
|
+
return St(e, this, wt, t.cache.create(), t.serializer);
|
|
719
716
|
}
|
|
720
|
-
var
|
|
717
|
+
var kr = function() {
|
|
721
718
|
return JSON.stringify(arguments);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
719
|
+
}, Vr = (
|
|
720
|
+
/** @class */
|
|
721
|
+
function() {
|
|
722
|
+
function e() {
|
|
723
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
724
|
+
}
|
|
725
|
+
return e.prototype.get = function(t) {
|
|
726
|
+
return this.cache[t];
|
|
727
|
+
}, e.prototype.set = function(t, r) {
|
|
728
|
+
this.cache[t] = r;
|
|
729
|
+
}, e;
|
|
730
|
+
}()
|
|
731
|
+
), Xr = {
|
|
733
732
|
create: function() {
|
|
734
|
-
return new
|
|
733
|
+
return new Vr();
|
|
735
734
|
}
|
|
736
735
|
}, Ae = {
|
|
737
|
-
variadic:
|
|
738
|
-
|
|
739
|
-
}, p;
|
|
736
|
+
variadic: jr
|
|
737
|
+
}, d;
|
|
740
738
|
(function(e) {
|
|
741
739
|
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
|
-
})(
|
|
740
|
+
})(d || (d = {}));
|
|
743
741
|
var x;
|
|
744
742
|
(function(e) {
|
|
745
743
|
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";
|
|
@@ -748,43 +746,43 @@ var k;
|
|
|
748
746
|
(function(e) {
|
|
749
747
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
750
748
|
})(k || (k = {}));
|
|
751
|
-
function
|
|
749
|
+
function Ye(e) {
|
|
752
750
|
return e.type === x.literal;
|
|
753
751
|
}
|
|
754
752
|
function Wr(e) {
|
|
755
753
|
return e.type === x.argument;
|
|
756
754
|
}
|
|
757
|
-
function
|
|
755
|
+
function At(e) {
|
|
758
756
|
return e.type === x.number;
|
|
759
757
|
}
|
|
760
|
-
function
|
|
758
|
+
function Ct(e) {
|
|
761
759
|
return e.type === x.date;
|
|
762
760
|
}
|
|
763
|
-
function
|
|
761
|
+
function Ot(e) {
|
|
764
762
|
return e.type === x.time;
|
|
765
763
|
}
|
|
766
|
-
function
|
|
764
|
+
function Pt(e) {
|
|
767
765
|
return e.type === x.select;
|
|
768
766
|
}
|
|
769
|
-
function
|
|
767
|
+
function Lt(e) {
|
|
770
768
|
return e.type === x.plural;
|
|
771
769
|
}
|
|
772
|
-
function
|
|
770
|
+
function zr(e) {
|
|
773
771
|
return e.type === x.pound;
|
|
774
772
|
}
|
|
775
|
-
function
|
|
773
|
+
function Nt(e) {
|
|
776
774
|
return e.type === x.tag;
|
|
777
775
|
}
|
|
778
|
-
function
|
|
776
|
+
function It(e) {
|
|
779
777
|
return !!(e && typeof e == "object" && e.type === k.number);
|
|
780
778
|
}
|
|
781
779
|
function $e(e) {
|
|
782
780
|
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
783
781
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
782
|
+
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;
|
|
783
|
+
function Qr(e) {
|
|
786
784
|
var t = {};
|
|
787
|
-
return e.replace(
|
|
785
|
+
return e.replace(Zr, function(r) {
|
|
788
786
|
var n = r.length;
|
|
789
787
|
switch (r[0]) {
|
|
790
788
|
case "G":
|
|
@@ -873,11 +871,11 @@ function qr(e) {
|
|
|
873
871
|
return "";
|
|
874
872
|
}), t;
|
|
875
873
|
}
|
|
876
|
-
var
|
|
877
|
-
function
|
|
874
|
+
var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
875
|
+
function Jr(e) {
|
|
878
876
|
if (e.length === 0)
|
|
879
877
|
throw new Error("Number skeleton cannot be empty");
|
|
880
|
-
for (var t = e.split(
|
|
878
|
+
for (var t = e.split(qr).filter(function(c) {
|
|
881
879
|
return c.length > 0;
|
|
882
880
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
883
881
|
var s = i[n], h = s.split("/");
|
|
@@ -892,17 +890,17 @@ function Yr(e) {
|
|
|
892
890
|
}
|
|
893
891
|
return r;
|
|
894
892
|
}
|
|
895
|
-
function
|
|
893
|
+
function Yr(e) {
|
|
896
894
|
return e.replace(/^(.*?)-/, "");
|
|
897
895
|
}
|
|
898
|
-
var
|
|
899
|
-
function
|
|
896
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
897
|
+
function et(e) {
|
|
900
898
|
var t = {};
|
|
901
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
899
|
+
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
900
|
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
901
|
}), t;
|
|
904
902
|
}
|
|
905
|
-
function
|
|
903
|
+
function Ut(e) {
|
|
906
904
|
switch (e) {
|
|
907
905
|
case "sign-auto":
|
|
908
906
|
return {
|
|
@@ -942,7 +940,7 @@ function Gt(e) {
|
|
|
942
940
|
};
|
|
943
941
|
}
|
|
944
942
|
}
|
|
945
|
-
function
|
|
943
|
+
function en(e) {
|
|
946
944
|
var t;
|
|
947
945
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
948
946
|
notation: "engineering"
|
|
@@ -950,17 +948,17 @@ function tn(e) {
|
|
|
950
948
|
notation: "scientific"
|
|
951
949
|
}, e = e.slice(1)), t) {
|
|
952
950
|
var r = e.slice(0, 2);
|
|
953
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
951
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
|
|
954
952
|
throw new Error("Malformed concise eng/scientific notation");
|
|
955
953
|
t.minimumIntegerDigits = e.length;
|
|
956
954
|
}
|
|
957
955
|
return t;
|
|
958
956
|
}
|
|
959
|
-
function
|
|
960
|
-
var t = {}, r =
|
|
957
|
+
function tt(e) {
|
|
958
|
+
var t = {}, r = Ut(e);
|
|
961
959
|
return r || t;
|
|
962
960
|
}
|
|
963
|
-
function
|
|
961
|
+
function tn(e) {
|
|
964
962
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
965
963
|
var i = n[r];
|
|
966
964
|
switch (i.stem) {
|
|
@@ -984,7 +982,7 @@ function rn(e) {
|
|
|
984
982
|
continue;
|
|
985
983
|
case "measure-unit":
|
|
986
984
|
case "unit":
|
|
987
|
-
t.style = "unit", t.unit =
|
|
985
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
988
986
|
continue;
|
|
989
987
|
case "compact-short":
|
|
990
988
|
case "K":
|
|
@@ -996,12 +994,12 @@ function rn(e) {
|
|
|
996
994
|
continue;
|
|
997
995
|
case "scientific":
|
|
998
996
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
999
|
-
return y(y({}, l),
|
|
997
|
+
return y(y({}, l), tt(a));
|
|
1000
998
|
}, {}));
|
|
1001
999
|
continue;
|
|
1002
1000
|
case "engineering":
|
|
1003
1001
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1004
|
-
return y(y({}, l),
|
|
1002
|
+
return y(y({}, l), tt(a));
|
|
1005
1003
|
}, {}));
|
|
1006
1004
|
continue;
|
|
1007
1005
|
case "notation-simple":
|
|
@@ -1046,40 +1044,40 @@ function rn(e) {
|
|
|
1046
1044
|
case "integer-width":
|
|
1047
1045
|
if (i.options.length > 1)
|
|
1048
1046
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1049
|
-
i.options[0].replace(
|
|
1047
|
+
i.options[0].replace(Kr, function(l, a, u, f, c, p) {
|
|
1050
1048
|
if (a)
|
|
1051
1049
|
t.minimumIntegerDigits = u.length;
|
|
1052
1050
|
else {
|
|
1053
1051
|
if (f && c)
|
|
1054
1052
|
throw new Error("We currently do not support maximum integer digits");
|
|
1055
|
-
if (
|
|
1053
|
+
if (p)
|
|
1056
1054
|
throw new Error("We currently do not support exact integer digits");
|
|
1057
1055
|
}
|
|
1058
1056
|
return "";
|
|
1059
1057
|
});
|
|
1060
1058
|
continue;
|
|
1061
1059
|
}
|
|
1062
|
-
if (
|
|
1060
|
+
if (Rt.test(i.stem)) {
|
|
1063
1061
|
t.minimumIntegerDigits = i.stem.length;
|
|
1064
1062
|
continue;
|
|
1065
1063
|
}
|
|
1066
|
-
if (
|
|
1064
|
+
if (Ke.test(i.stem)) {
|
|
1067
1065
|
if (i.options.length > 1)
|
|
1068
1066
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1069
|
-
i.stem.replace(
|
|
1070
|
-
return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1067
|
+
i.stem.replace(Ke, function(l, a, u, f, c, p) {
|
|
1068
|
+
return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1071
1069
|
});
|
|
1072
1070
|
var s = i.options[0];
|
|
1073
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1071
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), et(s)));
|
|
1074
1072
|
continue;
|
|
1075
1073
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
t = y(y({}, t),
|
|
1074
|
+
if ($t.test(i.stem)) {
|
|
1075
|
+
t = y(y({}, t), et(i.stem));
|
|
1078
1076
|
continue;
|
|
1079
1077
|
}
|
|
1080
|
-
var h =
|
|
1078
|
+
var h = Ut(i.stem);
|
|
1081
1079
|
h && (t = y(y({}, t), h));
|
|
1082
|
-
var o =
|
|
1080
|
+
var o = en(i.stem);
|
|
1083
1081
|
o && (t = y(y({}, t), o));
|
|
1084
1082
|
}
|
|
1085
1083
|
return t;
|
|
@@ -2499,13 +2497,13 @@ var oe = {
|
|
|
2499
2497
|
"h"
|
|
2500
2498
|
]
|
|
2501
2499
|
};
|
|
2502
|
-
function
|
|
2500
|
+
function rn(e, t) {
|
|
2503
2501
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2504
2502
|
var i = e.charAt(n);
|
|
2505
2503
|
if (i === "j") {
|
|
2506
2504
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2507
2505
|
s++, n++;
|
|
2508
|
-
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2506
|
+
var h = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
|
|
2509
2507
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2510
2508
|
r += l;
|
|
2511
2509
|
for (; h-- > 0; )
|
|
@@ -2515,7 +2513,7 @@ function nn(e, t) {
|
|
|
2515
2513
|
}
|
|
2516
2514
|
return r;
|
|
2517
2515
|
}
|
|
2518
|
-
function
|
|
2516
|
+
function nn(e) {
|
|
2519
2517
|
var t = e.hourCycle;
|
|
2520
2518
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2521
2519
|
e.hourCycles && // @ts-ignore
|
|
@@ -2537,20 +2535,20 @@ function sn(e) {
|
|
|
2537
2535
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2538
2536
|
return i[0];
|
|
2539
2537
|
}
|
|
2540
|
-
var Ce,
|
|
2538
|
+
var Ce, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
|
|
2541
2539
|
function b(e, t) {
|
|
2542
2540
|
return { start: e, end: t };
|
|
2543
2541
|
}
|
|
2544
|
-
var
|
|
2542
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, un = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
|
|
2545
2543
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2546
2544
|
}, Re = !0;
|
|
2547
2545
|
try {
|
|
2548
|
-
var
|
|
2549
|
-
Re = ((Ce =
|
|
2546
|
+
var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2547
|
+
Re = ((Ce = dn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2550
2548
|
} catch {
|
|
2551
2549
|
Re = !1;
|
|
2552
2550
|
}
|
|
2553
|
-
var
|
|
2551
|
+
var rt = an ? (
|
|
2554
2552
|
// Native
|
|
2555
2553
|
function(t, r, n) {
|
|
2556
2554
|
return t.startsWith(r, n);
|
|
@@ -2560,7 +2558,7 @@ var it = hn ? (
|
|
|
2560
2558
|
function(t, r, n) {
|
|
2561
2559
|
return t.slice(n, n + r.length) === r;
|
|
2562
2560
|
}
|
|
2563
|
-
), Ue =
|
|
2561
|
+
), Ue = hn ? String.fromCodePoint : (
|
|
2564
2562
|
// IE11
|
|
2565
2563
|
function() {
|
|
2566
2564
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2572,9 +2570,9 @@ var it = hn ? (
|
|
|
2572
2570
|
}
|
|
2573
2571
|
return n;
|
|
2574
2572
|
}
|
|
2575
|
-
),
|
|
2573
|
+
), nt = (
|
|
2576
2574
|
// native
|
|
2577
|
-
|
|
2575
|
+
un ? Object.fromEntries : (
|
|
2578
2576
|
// Ponyfill
|
|
2579
2577
|
function(t) {
|
|
2580
2578
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2584,7 +2582,7 @@ var it = hn ? (
|
|
|
2584
2582
|
return r;
|
|
2585
2583
|
}
|
|
2586
2584
|
)
|
|
2587
|
-
),
|
|
2585
|
+
), Dt = ln ? (
|
|
2588
2586
|
// Native
|
|
2589
2587
|
function(t, r) {
|
|
2590
2588
|
return t.codePointAt(r);
|
|
@@ -2598,7 +2596,7 @@ var it = hn ? (
|
|
|
2598
2596
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2599
2597
|
}
|
|
2600
2598
|
}
|
|
2601
|
-
),
|
|
2599
|
+
), bn = fn ? (
|
|
2602
2600
|
// Native
|
|
2603
2601
|
function(t) {
|
|
2604
2602
|
return t.trimStart();
|
|
@@ -2606,9 +2604,9 @@ var it = hn ? (
|
|
|
2606
2604
|
) : (
|
|
2607
2605
|
// Ponyfill
|
|
2608
2606
|
function(t) {
|
|
2609
|
-
return t.replace(
|
|
2607
|
+
return t.replace(sn, "");
|
|
2610
2608
|
}
|
|
2611
|
-
),
|
|
2609
|
+
), gn = cn ? (
|
|
2612
2610
|
// Native
|
|
2613
2611
|
function(t) {
|
|
2614
2612
|
return t.trimEnd();
|
|
@@ -2616,32 +2614,32 @@ var it = hn ? (
|
|
|
2616
2614
|
) : (
|
|
2617
2615
|
// Ponyfill
|
|
2618
2616
|
function(t) {
|
|
2619
|
-
return t.replace(
|
|
2617
|
+
return t.replace(on, "");
|
|
2620
2618
|
}
|
|
2621
2619
|
);
|
|
2622
|
-
function
|
|
2620
|
+
function Gt(e, t) {
|
|
2623
2621
|
return new RegExp(e, t);
|
|
2624
2622
|
}
|
|
2625
2623
|
var De;
|
|
2626
2624
|
if (Re) {
|
|
2627
|
-
var
|
|
2625
|
+
var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2628
2626
|
De = function(t, r) {
|
|
2629
2627
|
var n;
|
|
2630
|
-
|
|
2631
|
-
var i =
|
|
2628
|
+
it.lastIndex = r;
|
|
2629
|
+
var i = it.exec(t);
|
|
2632
2630
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2633
2631
|
};
|
|
2634
2632
|
} else
|
|
2635
2633
|
De = function(t, r) {
|
|
2636
2634
|
for (var n = []; ; ) {
|
|
2637
|
-
var i =
|
|
2638
|
-
if (i === void 0 ||
|
|
2635
|
+
var i = Dt(t, r);
|
|
2636
|
+
if (i === void 0 || Ft(i) || En(i))
|
|
2639
2637
|
break;
|
|
2640
2638
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2641
2639
|
}
|
|
2642
2640
|
return Ue.apply(void 0, n);
|
|
2643
2641
|
};
|
|
2644
|
-
var
|
|
2642
|
+
var _n = (
|
|
2645
2643
|
/** @class */
|
|
2646
2644
|
function() {
|
|
2647
2645
|
function e(t, r) {
|
|
@@ -2671,7 +2669,7 @@ var yn = (
|
|
|
2671
2669
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2672
2670
|
if (n)
|
|
2673
2671
|
break;
|
|
2674
|
-
return this.error(
|
|
2672
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2675
2673
|
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2676
2674
|
var h = this.parseTag(t, r);
|
|
2677
2675
|
if (h.err)
|
|
@@ -2706,9 +2704,9 @@ var yn = (
|
|
|
2706
2704
|
var h = s.val, o = this.clonePosition();
|
|
2707
2705
|
if (this.bumpIf("</")) {
|
|
2708
2706
|
if (this.isEOF() || !Ge(this.char()))
|
|
2709
|
-
return this.error(
|
|
2707
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2710
2708
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2711
|
-
return i !== a ? this.error(
|
|
2709
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2712
2710
|
val: {
|
|
2713
2711
|
type: x.tag,
|
|
2714
2712
|
value: i,
|
|
@@ -2716,14 +2714,14 @@ var yn = (
|
|
|
2716
2714
|
location: b(n, this.clonePosition())
|
|
2717
2715
|
},
|
|
2718
2716
|
err: null
|
|
2719
|
-
} : this.error(
|
|
2717
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2720
2718
|
} else
|
|
2721
|
-
return this.error(
|
|
2719
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2722
2720
|
} else
|
|
2723
|
-
return this.error(
|
|
2721
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2724
2722
|
}, e.prototype.parseTagName = function() {
|
|
2725
2723
|
var t = this.offset();
|
|
2726
|
-
for (this.bump(); !this.isEOF() &&
|
|
2724
|
+
for (this.bump(); !this.isEOF() && xn(this.char()); )
|
|
2727
2725
|
this.bump();
|
|
2728
2726
|
return this.message.slice(t, this.offset());
|
|
2729
2727
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2752,7 +2750,7 @@ var yn = (
|
|
|
2752
2750
|
};
|
|
2753
2751
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2754
2752
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2755
|
-
!
|
|
2753
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2756
2754
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2757
2755
|
if (this.isEOF() || this.char() !== 39)
|
|
2758
2756
|
return null;
|
|
@@ -2795,14 +2793,14 @@ var yn = (
|
|
|
2795
2793
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2796
2794
|
var n = this.clonePosition();
|
|
2797
2795
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2798
|
-
return this.error(
|
|
2796
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2799
2797
|
if (this.char() === 125)
|
|
2800
|
-
return this.bump(), this.error(
|
|
2798
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2801
2799
|
var i = this.parseIdentifierIfPossible().value;
|
|
2802
2800
|
if (!i)
|
|
2803
|
-
return this.error(
|
|
2801
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2804
2802
|
if (this.bumpSpace(), this.isEOF())
|
|
2805
|
-
return this.error(
|
|
2803
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2806
2804
|
switch (this.char()) {
|
|
2807
2805
|
case 125:
|
|
2808
2806
|
return this.bump(), {
|
|
@@ -2815,9 +2813,9 @@ var yn = (
|
|
|
2815
2813
|
err: null
|
|
2816
2814
|
};
|
|
2817
2815
|
case 44:
|
|
2818
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2816
|
+
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
2817
|
default:
|
|
2820
|
-
return this.error(
|
|
2818
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2821
2819
|
}
|
|
2822
2820
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2823
2821
|
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
@@ -2828,7 +2826,7 @@ var yn = (
|
|
|
2828
2826
|
var s, h = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2829
2827
|
switch (o) {
|
|
2830
2828
|
case "":
|
|
2831
|
-
return this.error(
|
|
2829
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(h, l));
|
|
2832
2830
|
case "number":
|
|
2833
2831
|
case "date":
|
|
2834
2832
|
case "time": {
|
|
@@ -2839,18 +2837,18 @@ var yn = (
|
|
|
2839
2837
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2840
2838
|
if (f.err)
|
|
2841
2839
|
return f;
|
|
2842
|
-
var c =
|
|
2840
|
+
var c = gn(f.val);
|
|
2843
2841
|
if (c.length === 0)
|
|
2844
|
-
return this.error(
|
|
2845
|
-
var
|
|
2846
|
-
a = { style: c, styleLocation:
|
|
2842
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2843
|
+
var p = b(u, this.clonePosition());
|
|
2844
|
+
a = { style: c, styleLocation: p };
|
|
2847
2845
|
}
|
|
2848
2846
|
var m = this.tryParseArgumentClose(i);
|
|
2849
2847
|
if (m.err)
|
|
2850
2848
|
return m;
|
|
2851
2849
|
var g = b(i, this.clonePosition());
|
|
2852
|
-
if (a &&
|
|
2853
|
-
var v =
|
|
2850
|
+
if (a && rt(a?.style, "::", 0)) {
|
|
2851
|
+
var v = bn(a.style.slice(2));
|
|
2854
2852
|
if (o === "number") {
|
|
2855
2853
|
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2856
2854
|
return f.err ? f : {
|
|
@@ -2859,14 +2857,14 @@ var yn = (
|
|
|
2859
2857
|
};
|
|
2860
2858
|
} else {
|
|
2861
2859
|
if (v.length === 0)
|
|
2862
|
-
return this.error(
|
|
2860
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2863
2861
|
var L = v;
|
|
2864
|
-
this.locale && (L =
|
|
2862
|
+
this.locale && (L = rn(v, this.locale));
|
|
2865
2863
|
var c = {
|
|
2866
2864
|
type: k.dateTime,
|
|
2867
2865
|
pattern: L,
|
|
2868
2866
|
location: a.styleLocation,
|
|
2869
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2867
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(L) : {}
|
|
2870
2868
|
}, A = o === "date" ? x.date : x.time;
|
|
2871
2869
|
return {
|
|
2872
2870
|
val: { type: A, value: n, location: g, style: c },
|
|
@@ -2889,14 +2887,14 @@ var yn = (
|
|
|
2889
2887
|
case "select": {
|
|
2890
2888
|
var H = this.clonePosition();
|
|
2891
2889
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2892
|
-
return this.error(
|
|
2890
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2893
2891
|
this.bumpSpace();
|
|
2894
2892
|
var N = this.parseIdentifierIfPossible(), T = 0;
|
|
2895
2893
|
if (o !== "select" && N.value === "offset") {
|
|
2896
2894
|
if (!this.bumpIf(":"))
|
|
2897
|
-
return this.error(
|
|
2895
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2898
2896
|
this.bumpSpace();
|
|
2899
|
-
var f = this.tryParseDecimalInteger(
|
|
2897
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2900
2898
|
if (f.err)
|
|
2901
2899
|
return f;
|
|
2902
2900
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
|
|
@@ -2912,7 +2910,7 @@ var yn = (
|
|
|
2912
2910
|
val: {
|
|
2913
2911
|
type: x.select,
|
|
2914
2912
|
value: n,
|
|
2915
|
-
options:
|
|
2913
|
+
options: nt($.val),
|
|
2916
2914
|
location: ie
|
|
2917
2915
|
},
|
|
2918
2916
|
err: null
|
|
@@ -2920,7 +2918,7 @@ var yn = (
|
|
|
2920
2918
|
val: {
|
|
2921
2919
|
type: x.plural,
|
|
2922
2920
|
value: n,
|
|
2923
|
-
options:
|
|
2921
|
+
options: nt($.val),
|
|
2924
2922
|
offset: T,
|
|
2925
2923
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2926
2924
|
location: ie
|
|
@@ -2929,10 +2927,10 @@ var yn = (
|
|
|
2929
2927
|
};
|
|
2930
2928
|
}
|
|
2931
2929
|
default:
|
|
2932
|
-
return this.error(
|
|
2930
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(h, l));
|
|
2933
2931
|
}
|
|
2934
2932
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2935
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2933
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2936
2934
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2937
2935
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2938
2936
|
var n = this.char();
|
|
@@ -2941,7 +2939,7 @@ var yn = (
|
|
|
2941
2939
|
this.bump();
|
|
2942
2940
|
var i = this.clonePosition();
|
|
2943
2941
|
if (!this.bumpUntil("'"))
|
|
2944
|
-
return this.error(
|
|
2942
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2945
2943
|
this.bump();
|
|
2946
2944
|
break;
|
|
2947
2945
|
}
|
|
@@ -2971,16 +2969,16 @@ var yn = (
|
|
|
2971
2969
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2972
2970
|
var n = [];
|
|
2973
2971
|
try {
|
|
2974
|
-
n =
|
|
2972
|
+
n = Jr(t);
|
|
2975
2973
|
} catch {
|
|
2976
|
-
return this.error(
|
|
2974
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2977
2975
|
}
|
|
2978
2976
|
return {
|
|
2979
2977
|
val: {
|
|
2980
2978
|
type: k.number,
|
|
2981
2979
|
tokens: n,
|
|
2982
2980
|
location: r,
|
|
2983
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2981
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
2984
2982
|
},
|
|
2985
2983
|
err: null
|
|
2986
2984
|
};
|
|
@@ -2989,7 +2987,7 @@ var yn = (
|
|
|
2989
2987
|
if (a.length === 0) {
|
|
2990
2988
|
var f = this.clonePosition();
|
|
2991
2989
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2992
|
-
var c = this.tryParseDecimalInteger(
|
|
2990
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2993
2991
|
if (c.err)
|
|
2994
2992
|
return c;
|
|
2995
2993
|
u = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
@@ -2997,26 +2995,26 @@ var yn = (
|
|
|
2997
2995
|
break;
|
|
2998
2996
|
}
|
|
2999
2997
|
if (l.has(a))
|
|
3000
|
-
return this.error(r === "select" ?
|
|
2998
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3001
2999
|
a === "other" && (h = !0), this.bumpSpace();
|
|
3002
|
-
var
|
|
3000
|
+
var p = this.clonePosition();
|
|
3003
3001
|
if (!this.bumpIf("{"))
|
|
3004
|
-
return this.error(r === "select" ?
|
|
3002
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3005
3003
|
var m = this.parseMessage(t + 1, r, n);
|
|
3006
3004
|
if (m.err)
|
|
3007
3005
|
return m;
|
|
3008
|
-
var g = this.tryParseArgumentClose(
|
|
3006
|
+
var g = this.tryParseArgumentClose(p);
|
|
3009
3007
|
if (g.err)
|
|
3010
3008
|
return g;
|
|
3011
3009
|
o.push([
|
|
3012
3010
|
a,
|
|
3013
3011
|
{
|
|
3014
3012
|
value: m.val,
|
|
3015
|
-
location: b(
|
|
3013
|
+
location: b(p, this.clonePosition())
|
|
3016
3014
|
}
|
|
3017
3015
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, u = s.location;
|
|
3018
3016
|
}
|
|
3019
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3017
|
+
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 && !h ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3020
3018
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3021
3019
|
var n = 1, i = this.clonePosition();
|
|
3022
3020
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3043,7 +3041,7 @@ var yn = (
|
|
|
3043
3041
|
var t = this.position.offset;
|
|
3044
3042
|
if (t >= this.message.length)
|
|
3045
3043
|
throw Error("out of bound");
|
|
3046
|
-
var r =
|
|
3044
|
+
var r = Dt(this.message, t);
|
|
3047
3045
|
if (r === void 0)
|
|
3048
3046
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3049
3047
|
return r;
|
|
@@ -3062,7 +3060,7 @@ var yn = (
|
|
|
3062
3060
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3063
3061
|
}
|
|
3064
3062
|
}, e.prototype.bumpIf = function(t) {
|
|
3065
|
-
if (
|
|
3063
|
+
if (rt(this.message, t, this.offset())) {
|
|
3066
3064
|
for (var r = 0; r < t.length; r++)
|
|
3067
3065
|
this.bump();
|
|
3068
3066
|
return !0;
|
|
@@ -3084,7 +3082,7 @@ var yn = (
|
|
|
3084
3082
|
break;
|
|
3085
3083
|
}
|
|
3086
3084
|
}, e.prototype.bumpSpace = function() {
|
|
3087
|
-
for (; !this.isEOF() &&
|
|
3085
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3088
3086
|
this.bump();
|
|
3089
3087
|
}, e.prototype.peek = function() {
|
|
3090
3088
|
if (this.isEOF())
|
|
@@ -3097,32 +3095,32 @@ var yn = (
|
|
|
3097
3095
|
function Ge(e) {
|
|
3098
3096
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3099
3097
|
}
|
|
3100
|
-
function
|
|
3098
|
+
function yn(e) {
|
|
3101
3099
|
return Ge(e) || e === 47;
|
|
3102
3100
|
}
|
|
3103
|
-
function
|
|
3101
|
+
function xn(e) {
|
|
3104
3102
|
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
3103
|
}
|
|
3106
|
-
function
|
|
3104
|
+
function Ft(e) {
|
|
3107
3105
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3108
3106
|
}
|
|
3109
|
-
function
|
|
3107
|
+
function En(e) {
|
|
3110
3108
|
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
3109
|
}
|
|
3112
3110
|
function Fe(e) {
|
|
3113
3111
|
e.forEach(function(t) {
|
|
3114
|
-
if (delete t.location,
|
|
3112
|
+
if (delete t.location, Pt(t) || Lt(t))
|
|
3115
3113
|
for (var r in t.options)
|
|
3116
3114
|
delete t.options[r].location, Fe(t.options[r].value);
|
|
3117
3115
|
else
|
|
3118
|
-
|
|
3116
|
+
At(t) && It(t.style) || (Ct(t) || Ot(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
|
|
3119
3117
|
});
|
|
3120
3118
|
}
|
|
3121
|
-
function
|
|
3119
|
+
function vn(e, t) {
|
|
3122
3120
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3123
|
-
var r = new
|
|
3121
|
+
var r = new _n(e, t).parse();
|
|
3124
3122
|
if (r.err) {
|
|
3125
|
-
var n = SyntaxError(
|
|
3123
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3126
3124
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3127
3125
|
}
|
|
3128
3126
|
return t?.captureLocation || Fe(r.val), r.val;
|
|
@@ -3143,7 +3141,7 @@ var _e = (
|
|
|
3143
3141
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3144
3142
|
}, t;
|
|
3145
3143
|
}(Error)
|
|
3146
|
-
),
|
|
3144
|
+
), st = (
|
|
3147
3145
|
/** @class */
|
|
3148
3146
|
function(e) {
|
|
3149
3147
|
ge(t, e);
|
|
@@ -3152,7 +3150,7 @@ var _e = (
|
|
|
3152
3150
|
}
|
|
3153
3151
|
return t;
|
|
3154
3152
|
}(_e)
|
|
3155
|
-
),
|
|
3153
|
+
), Hn = (
|
|
3156
3154
|
/** @class */
|
|
3157
3155
|
function(e) {
|
|
3158
3156
|
ge(t, e);
|
|
@@ -3161,7 +3159,7 @@ var _e = (
|
|
|
3161
3159
|
}
|
|
3162
3160
|
return t;
|
|
3163
3161
|
}(_e)
|
|
3164
|
-
),
|
|
3162
|
+
), Bn = (
|
|
3165
3163
|
/** @class */
|
|
3166
3164
|
function(e) {
|
|
3167
3165
|
ge(t, e);
|
|
@@ -3174,17 +3172,17 @@ var _e = (
|
|
|
3174
3172
|
(function(e) {
|
|
3175
3173
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3176
3174
|
})(E || (E = {}));
|
|
3177
|
-
function
|
|
3175
|
+
function Tn(e) {
|
|
3178
3176
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3179
3177
|
var n = t[t.length - 1];
|
|
3180
3178
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3181
3179
|
}, []);
|
|
3182
3180
|
}
|
|
3183
|
-
function
|
|
3181
|
+
function wn(e) {
|
|
3184
3182
|
return typeof e == "function";
|
|
3185
3183
|
}
|
|
3186
3184
|
function le(e, t, r, n, i, s, h) {
|
|
3187
|
-
if (e.length === 1 &&
|
|
3185
|
+
if (e.length === 1 && Ye(e[0]))
|
|
3188
3186
|
return [
|
|
3189
3187
|
{
|
|
3190
3188
|
type: E.literal,
|
|
@@ -3193,14 +3191,14 @@ function le(e, t, r, n, i, s, h) {
|
|
|
3193
3191
|
];
|
|
3194
3192
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3195
3193
|
var u = a[l];
|
|
3196
|
-
if (
|
|
3194
|
+
if (Ye(u)) {
|
|
3197
3195
|
o.push({
|
|
3198
3196
|
type: E.literal,
|
|
3199
3197
|
value: u.value
|
|
3200
3198
|
});
|
|
3201
3199
|
continue;
|
|
3202
3200
|
}
|
|
3203
|
-
if (
|
|
3201
|
+
if (zr(u)) {
|
|
3204
3202
|
typeof s == "number" && o.push({
|
|
3205
3203
|
type: E.literal,
|
|
3206
3204
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3209,7 +3207,7 @@ function le(e, t, r, n, i, s, h) {
|
|
|
3209
3207
|
}
|
|
3210
3208
|
var f = u.value;
|
|
3211
3209
|
if (!(i && f in i))
|
|
3212
|
-
throw new
|
|
3210
|
+
throw new Bn(f, h);
|
|
3213
3211
|
var c = i[f];
|
|
3214
3212
|
if (Wr(u)) {
|
|
3215
3213
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
@@ -3218,34 +3216,34 @@ function le(e, t, r, n, i, s, h) {
|
|
|
3218
3216
|
});
|
|
3219
3217
|
continue;
|
|
3220
3218
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var
|
|
3219
|
+
if (Ct(u)) {
|
|
3220
|
+
var p = typeof u.style == "string" ? n.date[u.style] : $e(u.style) ? u.style.parsedOptions : void 0;
|
|
3223
3221
|
o.push({
|
|
3224
3222
|
type: E.literal,
|
|
3225
|
-
value: r.getDateTimeFormat(t,
|
|
3223
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3226
3224
|
});
|
|
3227
3225
|
continue;
|
|
3228
3226
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3227
|
+
if (Ot(u)) {
|
|
3228
|
+
var p = typeof u.style == "string" ? n.time[u.style] : $e(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3231
3229
|
o.push({
|
|
3232
3230
|
type: E.literal,
|
|
3233
|
-
value: r.getDateTimeFormat(t,
|
|
3231
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3234
3232
|
});
|
|
3235
3233
|
continue;
|
|
3236
3234
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
var
|
|
3239
|
-
|
|
3235
|
+
if (At(u)) {
|
|
3236
|
+
var p = typeof u.style == "string" ? n.number[u.style] : It(u.style) ? u.style.parsedOptions : void 0;
|
|
3237
|
+
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3240
3238
|
type: E.literal,
|
|
3241
|
-
value: r.getNumberFormat(t,
|
|
3239
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3242
3240
|
});
|
|
3243
3241
|
continue;
|
|
3244
3242
|
}
|
|
3245
|
-
if (
|
|
3243
|
+
if (Nt(u)) {
|
|
3246
3244
|
var m = u.children, g = u.value, v = i[g];
|
|
3247
|
-
if (!
|
|
3248
|
-
throw new
|
|
3245
|
+
if (!wn(v))
|
|
3246
|
+
throw new Hn(g, "function", h);
|
|
3249
3247
|
var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
|
|
3250
3248
|
return T.value;
|
|
3251
3249
|
}));
|
|
@@ -3256,14 +3254,14 @@ function le(e, t, r, n, i, s, h) {
|
|
|
3256
3254
|
};
|
|
3257
3255
|
}));
|
|
3258
3256
|
}
|
|
3259
|
-
if (
|
|
3257
|
+
if (Pt(u)) {
|
|
3260
3258
|
var H = u.options[c] || u.options.other;
|
|
3261
3259
|
if (!H)
|
|
3262
|
-
throw new
|
|
3260
|
+
throw new st(u.value, c, Object.keys(u.options), h);
|
|
3263
3261
|
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3264
3262
|
continue;
|
|
3265
3263
|
}
|
|
3266
|
-
if (
|
|
3264
|
+
if (Lt(u)) {
|
|
3267
3265
|
var H = u.options["=".concat(c)];
|
|
3268
3266
|
if (!H) {
|
|
3269
3267
|
if (!Intl.PluralRules)
|
|
@@ -3274,21 +3272,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3274
3272
|
H = u.options[N] || u.options.other;
|
|
3275
3273
|
}
|
|
3276
3274
|
if (!H)
|
|
3277
|
-
throw new
|
|
3275
|
+
throw new st(u.value, c, Object.keys(u.options), h);
|
|
3278
3276
|
o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3279
3277
|
continue;
|
|
3280
3278
|
}
|
|
3281
3279
|
}
|
|
3282
|
-
return
|
|
3280
|
+
return Tn(o);
|
|
3283
3281
|
}
|
|
3284
|
-
function
|
|
3282
|
+
function Sn(e, t) {
|
|
3285
3283
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3286
3284
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3287
3285
|
}, {})) : e;
|
|
3288
3286
|
}
|
|
3289
|
-
function
|
|
3287
|
+
function An(e, t) {
|
|
3290
3288
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3291
|
-
return r[n] =
|
|
3289
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3292
3290
|
}, y({}, e)) : e;
|
|
3293
3291
|
}
|
|
3294
3292
|
function Oe(e) {
|
|
@@ -3305,7 +3303,7 @@ function Oe(e) {
|
|
|
3305
3303
|
}
|
|
3306
3304
|
};
|
|
3307
3305
|
}
|
|
3308
|
-
function
|
|
3306
|
+
function Cn(e) {
|
|
3309
3307
|
return e === void 0 && (e = {
|
|
3310
3308
|
number: {},
|
|
3311
3309
|
dateTime: {},
|
|
@@ -3337,7 +3335,7 @@ function On(e) {
|
|
|
3337
3335
|
})
|
|
3338
3336
|
};
|
|
3339
3337
|
}
|
|
3340
|
-
var
|
|
3338
|
+
var jt = (
|
|
3341
3339
|
/** @class */
|
|
3342
3340
|
function() {
|
|
3343
3341
|
function e(t, r, n, i) {
|
|
@@ -3369,13 +3367,13 @@ var Vt = (
|
|
|
3369
3367
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3370
3368
|
var h = i || {};
|
|
3371
3369
|
h.formatters;
|
|
3372
|
-
var o =
|
|
3370
|
+
var o = Ur(h, ["formatters"]);
|
|
3373
3371
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3374
3372
|
} else
|
|
3375
3373
|
this.ast = t;
|
|
3376
3374
|
if (!Array.isArray(this.ast))
|
|
3377
3375
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3378
|
-
this.formats =
|
|
3376
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3379
3377
|
}
|
|
3380
3378
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3381
3379
|
get: function() {
|
|
@@ -3388,7 +3386,7 @@ var Vt = (
|
|
|
3388
3386
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3389
3387
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3390
3388
|
}
|
|
3391
|
-
}, e.__parse =
|
|
3389
|
+
}, e.__parse = vn, e.formats = {
|
|
3392
3390
|
number: {
|
|
3393
3391
|
integer: {
|
|
3394
3392
|
maximumFractionDigits: 0
|
|
@@ -3449,7 +3447,7 @@ var Vt = (
|
|
|
3449
3447
|
}, e;
|
|
3450
3448
|
}()
|
|
3451
3449
|
);
|
|
3452
|
-
function
|
|
3450
|
+
function On(e, t) {
|
|
3453
3451
|
if (t == null)
|
|
3454
3452
|
return;
|
|
3455
3453
|
if (t in e)
|
|
@@ -3470,60 +3468,60 @@ function Pn(e, t) {
|
|
|
3470
3468
|
n = void 0;
|
|
3471
3469
|
return n;
|
|
3472
3470
|
}
|
|
3473
|
-
const C = {},
|
|
3471
|
+
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
3472
|
if (t == null)
|
|
3475
3473
|
return;
|
|
3476
3474
|
if (t in C && e in C[t])
|
|
3477
3475
|
return C[t][e];
|
|
3478
3476
|
const r = ne(t);
|
|
3479
3477
|
for (let n = 0; n < r.length; n++) {
|
|
3480
|
-
const i = r[n], s =
|
|
3478
|
+
const i = r[n], s = Nn(i, e);
|
|
3481
3479
|
if (s)
|
|
3482
|
-
return
|
|
3480
|
+
return Pn(e, t, s);
|
|
3483
3481
|
}
|
|
3484
3482
|
};
|
|
3485
|
-
let
|
|
3483
|
+
let We;
|
|
3486
3484
|
const re = be({});
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3485
|
+
function Ln(e) {
|
|
3486
|
+
return We[e] || null;
|
|
3489
3487
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return e in
|
|
3488
|
+
function Vt(e) {
|
|
3489
|
+
return e in We;
|
|
3492
3490
|
}
|
|
3493
|
-
function
|
|
3494
|
-
if (!
|
|
3491
|
+
function Nn(e, t) {
|
|
3492
|
+
if (!Vt(e))
|
|
3495
3493
|
return null;
|
|
3496
|
-
const r =
|
|
3497
|
-
return
|
|
3494
|
+
const r = Ln(e);
|
|
3495
|
+
return On(r, t);
|
|
3498
3496
|
}
|
|
3499
|
-
function
|
|
3497
|
+
function In(e) {
|
|
3500
3498
|
if (e == null)
|
|
3501
3499
|
return;
|
|
3502
3500
|
const t = ne(e);
|
|
3503
3501
|
for (let r = 0; r < t.length; r++) {
|
|
3504
3502
|
const n = t[r];
|
|
3505
|
-
if (
|
|
3503
|
+
if (Vt(n))
|
|
3506
3504
|
return n;
|
|
3507
3505
|
}
|
|
3508
3506
|
}
|
|
3509
|
-
function
|
|
3510
|
-
delete C[e], re.update((r) => (r[e] =
|
|
3507
|
+
function Xt(e, ...t) {
|
|
3508
|
+
delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3511
3509
|
}
|
|
3512
3510
|
Z(
|
|
3513
3511
|
[re],
|
|
3514
3512
|
([e]) => Object.keys(e)
|
|
3515
3513
|
);
|
|
3516
|
-
re.subscribe((e) =>
|
|
3514
|
+
re.subscribe((e) => We = e);
|
|
3517
3515
|
const fe = {};
|
|
3518
|
-
function
|
|
3516
|
+
function Mn(e, t) {
|
|
3519
3517
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3520
3518
|
}
|
|
3521
|
-
function
|
|
3519
|
+
function Wt(e) {
|
|
3522
3520
|
return fe[e];
|
|
3523
3521
|
}
|
|
3524
|
-
function
|
|
3522
|
+
function $n(e) {
|
|
3525
3523
|
return ne(e).map((t) => {
|
|
3526
|
-
const r =
|
|
3524
|
+
const r = Wt(t);
|
|
3527
3525
|
return [t, r ? [...r] : []];
|
|
3528
3526
|
}).filter(([, t]) => t.length > 0);
|
|
3529
3527
|
}
|
|
@@ -3531,40 +3529,40 @@ function me(e) {
|
|
|
3531
3529
|
return e == null ? !1 : ne(e).some(
|
|
3532
3530
|
(t) => {
|
|
3533
3531
|
var r;
|
|
3534
|
-
return (r =
|
|
3532
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3535
3533
|
}
|
|
3536
3534
|
);
|
|
3537
3535
|
}
|
|
3538
|
-
function
|
|
3536
|
+
function Rn(e, t) {
|
|
3539
3537
|
return Promise.all(
|
|
3540
|
-
t.map((n) => (
|
|
3541
|
-
).then((n) =>
|
|
3538
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3539
|
+
).then((n) => Xt(e, ...n));
|
|
3542
3540
|
}
|
|
3543
3541
|
const q = {};
|
|
3544
|
-
function
|
|
3542
|
+
function zt(e) {
|
|
3545
3543
|
if (!me(e))
|
|
3546
3544
|
return e in q ? q[e] : Promise.resolve();
|
|
3547
|
-
const t =
|
|
3545
|
+
const t = $n(e);
|
|
3548
3546
|
return q[e] = Promise.all(
|
|
3549
3547
|
t.map(
|
|
3550
|
-
([r, n]) =>
|
|
3548
|
+
([r, n]) => Rn(r, n)
|
|
3551
3549
|
)
|
|
3552
3550
|
).then(() => {
|
|
3553
3551
|
if (me(e))
|
|
3554
|
-
return
|
|
3552
|
+
return zt(e);
|
|
3555
3553
|
delete q[e];
|
|
3556
3554
|
}), q[e];
|
|
3557
3555
|
}
|
|
3558
|
-
var
|
|
3556
|
+
var ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
|
|
3559
3557
|
var r = {};
|
|
3560
3558
|
for (var n in e)
|
|
3561
|
-
|
|
3562
|
-
if (e != null &&
|
|
3563
|
-
for (var n of
|
|
3564
|
-
t.indexOf(n) < 0 &&
|
|
3559
|
+
Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3560
|
+
if (e != null && ot)
|
|
3561
|
+
for (var n of ot(e))
|
|
3562
|
+
t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
|
|
3565
3563
|
return r;
|
|
3566
3564
|
};
|
|
3567
|
-
const
|
|
3565
|
+
const Fn = {
|
|
3568
3566
|
number: {
|
|
3569
3567
|
scientific: { notation: "scientific" },
|
|
3570
3568
|
engineering: { notation: "engineering" },
|
|
@@ -3594,7 +3592,7 @@ const jn = {
|
|
|
3594
3592
|
}
|
|
3595
3593
|
}
|
|
3596
3594
|
};
|
|
3597
|
-
function
|
|
3595
|
+
function jn({ locale: e, id: t }) {
|
|
3598
3596
|
console.warn(
|
|
3599
3597
|
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3600
3598
|
e
|
|
@@ -3603,72 +3601,72 @@ function kn({ locale: e, id: t }) {
|
|
|
3603
3601
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3604
3602
|
);
|
|
3605
3603
|
}
|
|
3606
|
-
const
|
|
3604
|
+
const kn = {
|
|
3607
3605
|
fallbackLocale: null,
|
|
3608
3606
|
loadingDelay: 200,
|
|
3609
|
-
formats:
|
|
3607
|
+
formats: Fn,
|
|
3610
3608
|
warnOnMissingMessages: !0,
|
|
3611
3609
|
handleMissingMessage: void 0,
|
|
3612
3610
|
ignoreTag: !0
|
|
3613
|
-
}, J =
|
|
3611
|
+
}, J = kn;
|
|
3614
3612
|
function X() {
|
|
3615
3613
|
return J;
|
|
3616
3614
|
}
|
|
3617
|
-
function
|
|
3618
|
-
const t = e, { formats: r } = t, n =
|
|
3615
|
+
function Vn(e) {
|
|
3616
|
+
const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
|
|
3619
3617
|
let i = e.fallbackLocale;
|
|
3620
3618
|
if (e.initialLocale)
|
|
3621
3619
|
try {
|
|
3622
|
-
|
|
3620
|
+
jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3623
3621
|
} catch {
|
|
3624
3622
|
console.warn(
|
|
3625
3623
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3626
3624
|
);
|
|
3627
3625
|
}
|
|
3628
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3626
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
|
|
3629
3627
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3630
3628
|
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
|
|
3631
3629
|
}
|
|
3632
3630
|
const Pe = be(!1);
|
|
3633
|
-
var
|
|
3631
|
+
var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
|
|
3634
3632
|
for (var r in t || (t = {}))
|
|
3635
|
-
|
|
3636
|
-
if (
|
|
3637
|
-
for (var r of
|
|
3638
|
-
|
|
3633
|
+
Zn.call(t, r) && ht(e, r, t[r]);
|
|
3634
|
+
if (at)
|
|
3635
|
+
for (var r of at(t))
|
|
3636
|
+
Qn.call(t, r) && ht(e, r, t[r]);
|
|
3639
3637
|
return e;
|
|
3640
|
-
},
|
|
3638
|
+
}, Jn = (e, t) => Wn(e, zn(t));
|
|
3641
3639
|
let je;
|
|
3642
|
-
const
|
|
3643
|
-
function
|
|
3640
|
+
const pe = be(null);
|
|
3641
|
+
function ut(e) {
|
|
3644
3642
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3645
3643
|
}
|
|
3646
3644
|
function ne(e, t = X().fallbackLocale) {
|
|
3647
|
-
const r =
|
|
3648
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3645
|
+
const r = ut(e);
|
|
3646
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
|
|
3649
3647
|
}
|
|
3650
3648
|
function P() {
|
|
3651
3649
|
return je ?? void 0;
|
|
3652
3650
|
}
|
|
3653
|
-
|
|
3651
|
+
pe.subscribe((e) => {
|
|
3654
3652
|
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3655
3653
|
});
|
|
3656
|
-
const
|
|
3657
|
-
if (e &&
|
|
3654
|
+
const Yn = (e) => {
|
|
3655
|
+
if (e && In(e) && me(e)) {
|
|
3658
3656
|
const { loadingDelay: t } = X();
|
|
3659
3657
|
let r;
|
|
3660
3658
|
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3661
3659
|
() => Pe.set(!0),
|
|
3662
3660
|
t
|
|
3663
|
-
) : Pe.set(!0),
|
|
3664
|
-
|
|
3661
|
+
) : Pe.set(!0), zt(e).then(() => {
|
|
3662
|
+
pe.set(e);
|
|
3665
3663
|
}).finally(() => {
|
|
3666
3664
|
clearTimeout(r), Pe.set(!1);
|
|
3667
3665
|
});
|
|
3668
3666
|
}
|
|
3669
|
-
return
|
|
3670
|
-
}, M =
|
|
3671
|
-
set:
|
|
3667
|
+
return pe.set(e);
|
|
3668
|
+
}, M = Jn(qn({}, pe), {
|
|
3669
|
+
set: Yn
|
|
3672
3670
|
}), ye = (e) => {
|
|
3673
3671
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3674
3672
|
return (n) => {
|
|
@@ -3676,20 +3674,20 @@ const Kn = (e) => {
|
|
|
3676
3674
|
return i in t ? t[i] : t[i] = e(n);
|
|
3677
3675
|
};
|
|
3678
3676
|
};
|
|
3679
|
-
var
|
|
3677
|
+
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
3678
|
for (var r in t || (t = {}))
|
|
3681
|
-
|
|
3682
|
-
if (
|
|
3683
|
-
for (var r of
|
|
3684
|
-
|
|
3679
|
+
Zt.call(t, r) && lt(e, r, t[r]);
|
|
3680
|
+
if (de)
|
|
3681
|
+
for (var r of de(t))
|
|
3682
|
+
Qt.call(t, r) && lt(e, r, t[r]);
|
|
3685
3683
|
return e;
|
|
3686
3684
|
}, Q = (e, t) => {
|
|
3687
3685
|
var r = {};
|
|
3688
3686
|
for (var n in e)
|
|
3689
|
-
|
|
3690
|
-
if (e != null &&
|
|
3691
|
-
for (var n of
|
|
3692
|
-
t.indexOf(n) < 0 &&
|
|
3687
|
+
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3688
|
+
if (e != null && de)
|
|
3689
|
+
for (var n of de(e))
|
|
3690
|
+
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3693
3691
|
return r;
|
|
3694
3692
|
};
|
|
3695
3693
|
const ee = (e, t) => {
|
|
@@ -3697,21 +3695,21 @@ const ee = (e, t) => {
|
|
|
3697
3695
|
if (e in r && t in r[e])
|
|
3698
3696
|
return r[e][t];
|
|
3699
3697
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3700
|
-
},
|
|
3698
|
+
}, ei = ye(
|
|
3701
3699
|
(e) => {
|
|
3702
3700
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3703
3701
|
if (r == null)
|
|
3704
3702
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3705
3703
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3706
3704
|
}
|
|
3707
|
-
),
|
|
3705
|
+
), ti = ye(
|
|
3708
3706
|
(e) => {
|
|
3709
3707
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3710
3708
|
if (r == null)
|
|
3711
3709
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3712
3710
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3713
3711
|
}
|
|
3714
|
-
),
|
|
3712
|
+
), ri = ye(
|
|
3715
3713
|
(e) => {
|
|
3716
3714
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3717
3715
|
if (r == null)
|
|
@@ -3720,33 +3718,33 @@ const ee = (e, t) => {
|
|
|
3720
3718
|
);
|
|
3721
3719
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3722
3720
|
}
|
|
3723
|
-
),
|
|
3721
|
+
), ni = (e = {}) => {
|
|
3724
3722
|
var t = e, {
|
|
3725
3723
|
locale: r = P()
|
|
3726
3724
|
} = t, n = Q(t, [
|
|
3727
3725
|
"locale"
|
|
3728
3726
|
]);
|
|
3729
|
-
return
|
|
3730
|
-
},
|
|
3727
|
+
return ei(ze({ locale: r }, n));
|
|
3728
|
+
}, ii = (e = {}) => {
|
|
3731
3729
|
var t = e, {
|
|
3732
3730
|
locale: r = P()
|
|
3733
3731
|
} = t, n = Q(t, [
|
|
3734
3732
|
"locale"
|
|
3735
3733
|
]);
|
|
3736
|
-
return
|
|
3737
|
-
},
|
|
3734
|
+
return ti(ze({ locale: r }, n));
|
|
3735
|
+
}, si = (e = {}) => {
|
|
3738
3736
|
var t = e, {
|
|
3739
3737
|
locale: r = P()
|
|
3740
3738
|
} = t, n = Q(t, [
|
|
3741
3739
|
"locale"
|
|
3742
3740
|
]);
|
|
3743
|
-
return
|
|
3744
|
-
},
|
|
3741
|
+
return ri(ze({ locale: r }, n));
|
|
3742
|
+
}, oi = ye(
|
|
3745
3743
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3746
|
-
(e, t = P()) => new
|
|
3744
|
+
(e, t = P()) => new jt(e, t, X().formats, {
|
|
3747
3745
|
ignoreTag: X().ignoreTag
|
|
3748
3746
|
})
|
|
3749
|
-
),
|
|
3747
|
+
), ai = (e, t = {}) => {
|
|
3750
3748
|
var r, n, i, s;
|
|
3751
3749
|
let h = t;
|
|
3752
3750
|
typeof e == "object" && (h = e, e = h.id);
|
|
@@ -3759,7 +3757,7 @@ const ee = (e, t) => {
|
|
|
3759
3757
|
throw new Error(
|
|
3760
3758
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3761
3759
|
);
|
|
3762
|
-
let u =
|
|
3760
|
+
let u = kt(e, l);
|
|
3763
3761
|
if (!u)
|
|
3764
3762
|
u = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3765
3763
|
else if (typeof u != "string")
|
|
@@ -3770,7 +3768,7 @@ const ee = (e, t) => {
|
|
|
3770
3768
|
return u;
|
|
3771
3769
|
let f = u;
|
|
3772
3770
|
try {
|
|
3773
|
-
f =
|
|
3771
|
+
f = oi(u, l).format(o);
|
|
3774
3772
|
} catch (c) {
|
|
3775
3773
|
c instanceof Error && console.warn(
|
|
3776
3774
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3778,20 +3776,20 @@ const ee = (e, t) => {
|
|
|
3778
3776
|
);
|
|
3779
3777
|
}
|
|
3780
3778
|
return f;
|
|
3781
|
-
},
|
|
3779
|
+
}, hi = (e, t) => si(t).format(e), ui = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = P()) => kt(e, t), ci = Z([M, re], () => ai);
|
|
3780
|
+
Z([M], () => hi);
|
|
3782
3781
|
Z([M], () => ui);
|
|
3783
3782
|
Z([M], () => li);
|
|
3784
|
-
Z([M], () => fi);
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
Wt(e, t);
|
|
3783
|
+
Z([M, re], () => fi);
|
|
3784
|
+
function ft(e, t) {
|
|
3785
|
+
Xt(e, t);
|
|
3788
3786
|
}
|
|
3789
|
-
function
|
|
3790
|
-
|
|
3787
|
+
function mi(e) {
|
|
3788
|
+
Vn({
|
|
3791
3789
|
fallbackLocale: "en"
|
|
3792
3790
|
}), M.set(e);
|
|
3793
3791
|
}
|
|
3794
|
-
const
|
|
3792
|
+
const ct = {
|
|
3795
3793
|
en: {
|
|
3796
3794
|
header: {
|
|
3797
3795
|
general: "Cashier",
|
|
@@ -3815,17 +3813,17 @@ const dt = {
|
|
|
3815
3813
|
}
|
|
3816
3814
|
};
|
|
3817
3815
|
function pi(e) {
|
|
3818
|
-
|
|
3816
|
+
nr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3819
3817
|
}
|
|
3820
|
-
const
|
|
3821
|
-
function
|
|
3818
|
+
const di = (e) => ({}), mt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({}), gi = (e) => ({}), dt = (e) => ({});
|
|
3819
|
+
function bt(e) {
|
|
3822
3820
|
let t, r, n;
|
|
3823
3821
|
return {
|
|
3824
3822
|
c() {
|
|
3825
|
-
t =
|
|
3823
|
+
t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderLeftButton");
|
|
3826
3824
|
},
|
|
3827
3825
|
m(i, s) {
|
|
3828
|
-
I(i, t, s), r || (n =
|
|
3826
|
+
I(i, t, s), r || (n = Ht(
|
|
3829
3827
|
t,
|
|
3830
3828
|
"click",
|
|
3831
3829
|
/*back*/
|
|
@@ -3838,28 +3836,28 @@ function _t(e) {
|
|
|
3838
3836
|
}
|
|
3839
3837
|
};
|
|
3840
3838
|
}
|
|
3841
|
-
function
|
|
3839
|
+
function _i(e) {
|
|
3842
3840
|
let t, r = (
|
|
3843
3841
|
/*backButton*/
|
|
3844
|
-
e[1] &&
|
|
3842
|
+
e[1] && bt(e)
|
|
3845
3843
|
);
|
|
3846
3844
|
return {
|
|
3847
3845
|
c() {
|
|
3848
|
-
r && r.c(), t =
|
|
3846
|
+
r && r.c(), t = vt();
|
|
3849
3847
|
},
|
|
3850
3848
|
m(n, i) {
|
|
3851
3849
|
r && r.m(n, i), I(n, t, i);
|
|
3852
3850
|
},
|
|
3853
3851
|
p(n, i) {
|
|
3854
3852
|
/*backButton*/
|
|
3855
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3853
|
+
n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3856
3854
|
},
|
|
3857
3855
|
d(n) {
|
|
3858
3856
|
n && O(t), r && r.d(n);
|
|
3859
3857
|
}
|
|
3860
3858
|
};
|
|
3861
3859
|
}
|
|
3862
|
-
function
|
|
3860
|
+
function yi(e) {
|
|
3863
3861
|
let t, r = (
|
|
3864
3862
|
/*$_*/
|
|
3865
3863
|
e[4](
|
|
@@ -3869,7 +3867,7 @@ function xi(e) {
|
|
|
3869
3867
|
), n;
|
|
3870
3868
|
return {
|
|
3871
3869
|
c() {
|
|
3872
|
-
t =
|
|
3870
|
+
t = W("span"), n = Ve(r), z(t, "class", "CashierHeaderTitle");
|
|
3873
3871
|
},
|
|
3874
3872
|
m(i, s) {
|
|
3875
3873
|
I(i, t, s), ce(t, n);
|
|
@@ -3880,21 +3878,21 @@ function xi(e) {
|
|
|
3880
3878
|
i[4](
|
|
3881
3879
|
/*titleText*/
|
|
3882
3880
|
i[2]
|
|
3883
|
-
) + "") &&
|
|
3881
|
+
) + "") && ar(n, r);
|
|
3884
3882
|
},
|
|
3885
3883
|
d(i) {
|
|
3886
3884
|
i && O(t);
|
|
3887
3885
|
}
|
|
3888
3886
|
};
|
|
3889
3887
|
}
|
|
3890
|
-
function
|
|
3888
|
+
function gt(e) {
|
|
3891
3889
|
let t, r, n;
|
|
3892
3890
|
return {
|
|
3893
3891
|
c() {
|
|
3894
|
-
t =
|
|
3892
|
+
t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderRightButton");
|
|
3895
3893
|
},
|
|
3896
3894
|
m(i, s) {
|
|
3897
|
-
I(i, t, s), r || (n =
|
|
3895
|
+
I(i, t, s), r || (n = Ht(
|
|
3898
3896
|
t,
|
|
3899
3897
|
"click",
|
|
3900
3898
|
/*close*/
|
|
@@ -3907,28 +3905,28 @@ function yt(e) {
|
|
|
3907
3905
|
}
|
|
3908
3906
|
};
|
|
3909
3907
|
}
|
|
3910
|
-
function
|
|
3908
|
+
function xi(e) {
|
|
3911
3909
|
let t, r = (
|
|
3912
3910
|
/*closeButton*/
|
|
3913
|
-
e[3] &&
|
|
3911
|
+
e[3] && gt(e)
|
|
3914
3912
|
);
|
|
3915
3913
|
return {
|
|
3916
3914
|
c() {
|
|
3917
|
-
r && r.c(), t =
|
|
3915
|
+
r && r.c(), t = vt();
|
|
3918
3916
|
},
|
|
3919
3917
|
m(n, i) {
|
|
3920
3918
|
r && r.m(n, i), I(n, t, i);
|
|
3921
3919
|
},
|
|
3922
3920
|
p(n, i) {
|
|
3923
3921
|
/*closeButton*/
|
|
3924
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3922
|
+
n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3925
3923
|
},
|
|
3926
3924
|
d(n) {
|
|
3927
3925
|
n && O(t), r && r.d(n);
|
|
3928
3926
|
}
|
|
3929
3927
|
};
|
|
3930
3928
|
}
|
|
3931
|
-
function
|
|
3929
|
+
function Ei(e) {
|
|
3932
3930
|
let t, r, n, i;
|
|
3933
3931
|
const s = (
|
|
3934
3932
|
/*#slots*/
|
|
@@ -3938,8 +3936,8 @@ function vi(e) {
|
|
|
3938
3936
|
e,
|
|
3939
3937
|
/*$$scope*/
|
|
3940
3938
|
e[14],
|
|
3941
|
-
|
|
3942
|
-
), o = h ||
|
|
3939
|
+
dt
|
|
3940
|
+
), o = h || _i(e), l = (
|
|
3943
3941
|
/*#slots*/
|
|
3944
3942
|
e[15].title
|
|
3945
3943
|
), a = xe(
|
|
@@ -3947,8 +3945,8 @@ function vi(e) {
|
|
|
3947
3945
|
e,
|
|
3948
3946
|
/*$$scope*/
|
|
3949
3947
|
e[14],
|
|
3950
|
-
|
|
3951
|
-
), u = a ||
|
|
3948
|
+
pt
|
|
3949
|
+
), u = a || yi(e), f = (
|
|
3952
3950
|
/*#slots*/
|
|
3953
3951
|
e[15].rightButton
|
|
3954
3952
|
), c = xe(
|
|
@@ -3956,14 +3954,14 @@ function vi(e) {
|
|
|
3956
3954
|
e,
|
|
3957
3955
|
/*$$scope*/
|
|
3958
3956
|
e[14],
|
|
3959
|
-
|
|
3960
|
-
),
|
|
3957
|
+
mt
|
|
3958
|
+
), p = c || xi(e);
|
|
3961
3959
|
return {
|
|
3962
3960
|
c() {
|
|
3963
|
-
t =
|
|
3961
|
+
t = W("div"), o && o.c(), r = Qe(), u && u.c(), n = Qe(), p && p.c(), z(t, "class", "CashierHeader");
|
|
3964
3962
|
},
|
|
3965
3963
|
m(m, g) {
|
|
3966
|
-
I(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n),
|
|
3964
|
+
I(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3967
3965
|
},
|
|
3968
3966
|
p(m, [g]) {
|
|
3969
3967
|
h ? h.p && (!i || g & /*$$scope*/
|
|
@@ -3978,12 +3976,12 @@ function vi(e) {
|
|
|
3978
3976
|
/*$$scope*/
|
|
3979
3977
|
m[14],
|
|
3980
3978
|
g,
|
|
3981
|
-
|
|
3979
|
+
gi
|
|
3982
3980
|
) : He(
|
|
3983
3981
|
/*$$scope*/
|
|
3984
3982
|
m[14]
|
|
3985
3983
|
),
|
|
3986
|
-
|
|
3984
|
+
dt
|
|
3987
3985
|
) : o && o.p && (!i || g & /*backButton*/
|
|
3988
3986
|
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3989
3987
|
16384) && ve(
|
|
@@ -3997,12 +3995,12 @@ function vi(e) {
|
|
|
3997
3995
|
/*$$scope*/
|
|
3998
3996
|
m[14],
|
|
3999
3997
|
g,
|
|
4000
|
-
|
|
3998
|
+
bi
|
|
4001
3999
|
) : He(
|
|
4002
4000
|
/*$$scope*/
|
|
4003
4001
|
m[14]
|
|
4004
4002
|
),
|
|
4005
|
-
|
|
4003
|
+
pt
|
|
4006
4004
|
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4007
4005
|
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4008
4006
|
16384) && ve(
|
|
@@ -4016,72 +4014,72 @@ function vi(e) {
|
|
|
4016
4014
|
/*$$scope*/
|
|
4017
4015
|
m[14],
|
|
4018
4016
|
g,
|
|
4019
|
-
|
|
4017
|
+
di
|
|
4020
4018
|
) : He(
|
|
4021
4019
|
/*$$scope*/
|
|
4022
4020
|
m[14]
|
|
4023
4021
|
),
|
|
4024
|
-
|
|
4025
|
-
) :
|
|
4026
|
-
8) &&
|
|
4022
|
+
mt
|
|
4023
|
+
) : p && p.p && (!i || g & /*closeButton*/
|
|
4024
|
+
8) && p.p(m, i ? g : -1);
|
|
4027
4025
|
},
|
|
4028
4026
|
i(m) {
|
|
4029
|
-
i || (he(o, m), he(u, m), he(
|
|
4027
|
+
i || (he(o, m), he(u, m), he(p, m), i = !0);
|
|
4030
4028
|
},
|
|
4031
4029
|
o(m) {
|
|
4032
|
-
Te(o, m), Te(u, m), Te(
|
|
4030
|
+
Te(o, m), Te(u, m), Te(p, m), i = !1;
|
|
4033
4031
|
},
|
|
4034
4032
|
d(m) {
|
|
4035
|
-
m && O(t), o && o.d(m), u && u.d(m),
|
|
4033
|
+
m && O(t), o && o.d(m), u && u.d(m), p && p.d(m), e[16](null);
|
|
4036
4034
|
}
|
|
4037
4035
|
};
|
|
4038
4036
|
}
|
|
4039
|
-
function
|
|
4037
|
+
function vi(e, t, r) {
|
|
4040
4038
|
let n;
|
|
4041
|
-
|
|
4042
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t,
|
|
4039
|
+
rr(e, ci, (_) => r(4, n = _));
|
|
4040
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4043
4041
|
const L = () => {
|
|
4044
4042
|
let _ = l;
|
|
4045
4043
|
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4046
4044
|
Object.keys(w).forEach((R) => {
|
|
4047
|
-
|
|
4045
|
+
ft(R, w[R]);
|
|
4048
4046
|
});
|
|
4049
4047
|
}).catch((w) => {
|
|
4050
4048
|
console.log(w);
|
|
4051
4049
|
});
|
|
4052
4050
|
};
|
|
4053
|
-
Object.keys(
|
|
4054
|
-
|
|
4051
|
+
Object.keys(ct).forEach((_) => {
|
|
4052
|
+
ft(_, ct[_]);
|
|
4055
4053
|
});
|
|
4056
4054
|
const A = () => {
|
|
4057
4055
|
let _ = document.createElement("style");
|
|
4058
|
-
_.innerHTML = h,
|
|
4056
|
+
_.innerHTML = h, p.appendChild(_);
|
|
4059
4057
|
}, H = () => {
|
|
4060
4058
|
let _ = new URL(o), w = document.createElement("style");
|
|
4061
4059
|
fetch(_.href).then((R) => R.text()).then((R) => {
|
|
4062
4060
|
w.innerHTML = R, setTimeout(
|
|
4063
4061
|
() => {
|
|
4064
|
-
|
|
4062
|
+
p.appendChild(w);
|
|
4065
4063
|
},
|
|
4066
4064
|
1
|
|
4067
4065
|
);
|
|
4068
4066
|
});
|
|
4069
4067
|
}, N = () => {
|
|
4070
|
-
|
|
4068
|
+
mi(f);
|
|
4071
4069
|
}, T = () => {
|
|
4072
4070
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4073
4071
|
}, $ = () => {
|
|
4074
4072
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4075
4073
|
}, ie = () => {
|
|
4076
4074
|
r(1, m = !!a && a !== "false");
|
|
4077
|
-
},
|
|
4075
|
+
}, Jt = () => {
|
|
4078
4076
|
r(3, v = !!c && c !== "false");
|
|
4079
|
-
},
|
|
4077
|
+
}, Yt = () => {
|
|
4080
4078
|
r(2, g = u || "header.general");
|
|
4081
4079
|
};
|
|
4082
|
-
function
|
|
4080
|
+
function Kt(_) {
|
|
4083
4081
|
Le[_ ? "unshift" : "push"](() => {
|
|
4084
|
-
|
|
4082
|
+
p = _, r(0, p);
|
|
4085
4083
|
});
|
|
4086
4084
|
}
|
|
4087
4085
|
return e.$$set = (_) => {
|
|
@@ -4089,14 +4087,14 @@ function Hi(e, t, r) {
|
|
|
4089
4087
|
}, e.$$.update = () => {
|
|
4090
4088
|
e.$$.dirty & /*lang*/
|
|
4091
4089
|
4096 && f && N(), e.$$.dirty & /*lang, title*/
|
|
4092
|
-
6144 && f && u &&
|
|
4093
|
-
129 && h &&
|
|
4094
|
-
257 && o &&
|
|
4090
|
+
6144 && f && u && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4091
|
+
129 && h && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4092
|
+
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4095
4093
|
4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
|
|
4096
4094
|
1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
|
|
4097
|
-
8192 && c &&
|
|
4095
|
+
8192 && c && Jt();
|
|
4098
4096
|
}, [
|
|
4099
|
-
|
|
4097
|
+
p,
|
|
4100
4098
|
m,
|
|
4101
4099
|
g,
|
|
4102
4100
|
v,
|
|
@@ -4112,17 +4110,17 @@ function Hi(e, t, r) {
|
|
|
4112
4110
|
c,
|
|
4113
4111
|
s,
|
|
4114
4112
|
i,
|
|
4115
|
-
|
|
4113
|
+
Kt
|
|
4116
4114
|
];
|
|
4117
4115
|
}
|
|
4118
|
-
class
|
|
4116
|
+
class qt extends yr {
|
|
4119
4117
|
constructor(t) {
|
|
4120
|
-
super(),
|
|
4118
|
+
super(), gr(
|
|
4121
4119
|
this,
|
|
4122
4120
|
t,
|
|
4123
|
-
Hi,
|
|
4124
4121
|
vi,
|
|
4125
|
-
|
|
4122
|
+
Ei,
|
|
4123
|
+
yt,
|
|
4126
4124
|
{
|
|
4127
4125
|
clientstyling: 7,
|
|
4128
4126
|
clientstylingurl: 8,
|
|
@@ -4178,31 +4176,31 @@ class Yt extends Er {
|
|
|
4178
4176
|
this.$$set({ showclosebutton: t }), S();
|
|
4179
4177
|
}
|
|
4180
4178
|
}
|
|
4181
|
-
|
|
4182
|
-
const
|
|
4179
|
+
_r(qt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4180
|
+
const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4183
4181
|
__proto__: null,
|
|
4184
|
-
default:
|
|
4182
|
+
default: qt
|
|
4185
4183
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4186
4184
|
export {
|
|
4187
4185
|
M as $,
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4186
|
+
Ti as C,
|
|
4187
|
+
yr as S,
|
|
4188
|
+
Xt as a,
|
|
4189
|
+
gr as b,
|
|
4190
|
+
_r as c,
|
|
4191
|
+
nr as d,
|
|
4192
|
+
O as e,
|
|
4195
4193
|
S as f,
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4194
|
+
Bi as g,
|
|
4195
|
+
Hi as h,
|
|
4196
|
+
Vn as i,
|
|
4197
|
+
z as j,
|
|
4198
|
+
I as k,
|
|
4199
|
+
ce as l,
|
|
4200
|
+
Ht as m,
|
|
4201
|
+
B as n,
|
|
4202
|
+
W as o,
|
|
4203
|
+
Qe as p,
|
|
4206
4204
|
Le as q,
|
|
4207
|
-
|
|
4205
|
+
yt as s
|
|
4208
4206
|
};
|