@everymatrix/cashier-header 1.59.1 → 1.59.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-Bqh4iVLj.js → CashierHeader-1GxxAVE-.js} +376 -374
- package/components/CashierHeader-DhtlbV21.cjs +18 -0
- package/components/{CashierHeader-BmZuSEvx.js → CashierHeader-DxWq7l1Q.js} +458 -456
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-DCR3Xw4C.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var xe = (e, t, r) => t in e ?
|
|
1
|
+
var or = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var ur = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Ke = (e, t) => ar(e, hr(t));
|
|
13
13
|
var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -29,7 +29,7 @@ var Ye = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,25 +37,25 @@ function ur(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Tt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function te(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Tt);
|
|
48
48
|
}
|
|
49
49
|
function Ve(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function wt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function cr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function St(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const n of t)
|
|
61
61
|
n(void 0);
|
|
@@ -64,17 +64,17 @@ function Tt(e, ...t) {
|
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function mr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(St(t, r));
|
|
69
69
|
}
|
|
70
70
|
function Ee(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = At(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
76
|
+
function At(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
79
|
function ve(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
@@ -93,7 +93,7 @@ function ve(e, t, r, n) {
|
|
|
93
93
|
}
|
|
94
94
|
function He(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const a =
|
|
96
|
+
const a = At(t, r, n, s);
|
|
97
97
|
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -109,14 +109,14 @@ function Be(e) {
|
|
|
109
109
|
function ce(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const n =
|
|
112
|
+
function dr(e, t, r) {
|
|
113
|
+
const n = pr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
|
-
const i =
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
115
|
+
const i = W("style");
|
|
116
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function pr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,7 +126,7 @@ function mr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function br(e, t) {
|
|
130
130
|
return ce(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
@@ -139,32 +139,32 @@ function M(e, t, r) {
|
|
|
139
139
|
function P(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function W(e) {
|
|
143
143
|
return document.createElement(e);
|
|
144
144
|
}
|
|
145
145
|
function Xe(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function rt() {
|
|
149
149
|
return Xe(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ct() {
|
|
152
152
|
return Xe("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ot(e, t, r, n) {
|
|
155
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
157
|
function re(e, t, r) {
|
|
158
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function gr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function _r(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function yr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
@@ -173,16 +173,16 @@ function gr(e) {
|
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
176
|
+
let ze;
|
|
177
177
|
function Y(e) {
|
|
178
|
-
|
|
178
|
+
ze = e;
|
|
179
179
|
}
|
|
180
180
|
const F = [], Ne = [];
|
|
181
181
|
let j = [];
|
|
182
|
-
const
|
|
182
|
+
const nt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
183
183
|
let Ie = !1;
|
|
184
|
-
function
|
|
185
|
-
Ie || (Ie = !0,
|
|
184
|
+
function Er() {
|
|
185
|
+
Ie || (Ie = !0, xr.then(A));
|
|
186
186
|
}
|
|
187
187
|
function Me(e) {
|
|
188
188
|
j.push(e);
|
|
@@ -192,12 +192,12 @@ let D = 0;
|
|
|
192
192
|
function A() {
|
|
193
193
|
if (D !== 0)
|
|
194
194
|
return;
|
|
195
|
-
const e =
|
|
195
|
+
const e = ze;
|
|
196
196
|
do {
|
|
197
197
|
try {
|
|
198
198
|
for (; D < F.length; ) {
|
|
199
199
|
const t = F[D];
|
|
200
|
-
D++, Y(t),
|
|
200
|
+
D++, Y(t), vr(t.$$);
|
|
201
201
|
}
|
|
202
202
|
} catch (t) {
|
|
203
203
|
throw F.length = 0, D = 0, t;
|
|
@@ -210,23 +210,23 @@ function A() {
|
|
|
210
210
|
}
|
|
211
211
|
j.length = 0;
|
|
212
212
|
} while (F.length);
|
|
213
|
-
for (;
|
|
214
|
-
|
|
213
|
+
for (; nt.length; )
|
|
214
|
+
nt.pop()();
|
|
215
215
|
Ie = !1, Te.clear(), Y(e);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function vr(e) {
|
|
218
218
|
if (e.fragment !== null) {
|
|
219
219
|
e.update(), te(e.before_update);
|
|
220
220
|
const t = e.dirty;
|
|
221
221
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Hr(e) {
|
|
225
225
|
const t = [], r = [];
|
|
226
226
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
227
227
|
}
|
|
228
228
|
const ae = /* @__PURE__ */ new Set();
|
|
229
|
-
let
|
|
229
|
+
let Br;
|
|
230
230
|
function he(e, t) {
|
|
231
231
|
e && e.i && (ae.delete(e), e.i(t));
|
|
232
232
|
}
|
|
@@ -234,27 +234,27 @@ function we(e, t, r, n) {
|
|
|
234
234
|
if (e && e.o) {
|
|
235
235
|
if (ae.has(e))
|
|
236
236
|
return;
|
|
237
|
-
ae.add(e),
|
|
237
|
+
ae.add(e), Br.c.push(() => {
|
|
238
238
|
ae.delete(e);
|
|
239
239
|
}), e.o(t);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Tr(e, t, r) {
|
|
243
243
|
const { fragment: n, after_update: i } = e.$$;
|
|
244
244
|
n && n.m(t, r), Me(() => {
|
|
245
|
-
const s = e.$$.on_mount.map(
|
|
245
|
+
const s = e.$$.on_mount.map(Tt).filter(Ve);
|
|
246
246
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
247
247
|
}), i.forEach(Me);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function wr(e, t) {
|
|
250
250
|
const r = e.$$;
|
|
251
|
-
r.fragment !== null && (
|
|
251
|
+
r.fragment !== null && (Hr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
253
|
+
function Sr(e, t) {
|
|
254
|
+
e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const l =
|
|
256
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
257
|
+
const l = ze;
|
|
258
258
|
Y(e);
|
|
259
259
|
const h = e.$$ = {
|
|
260
260
|
fragment: null,
|
|
@@ -263,7 +263,7 @@ function wr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
263
263
|
props: s,
|
|
264
264
|
update: T,
|
|
265
265
|
not_equal: i,
|
|
266
|
-
bound:
|
|
266
|
+
bound: tt(),
|
|
267
267
|
// lifecycle
|
|
268
268
|
on_mount: [],
|
|
269
269
|
on_destroy: [],
|
|
@@ -272,28 +272,28 @@ function wr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
272
272
|
after_update: [],
|
|
273
273
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
274
274
|
// everything else
|
|
275
|
-
callbacks:
|
|
275
|
+
callbacks: tt(),
|
|
276
276
|
dirty: o,
|
|
277
277
|
skip_bound: !1,
|
|
278
278
|
root: t.target || l.$$.root
|
|
279
279
|
};
|
|
280
280
|
a && a(h.root);
|
|
281
281
|
let u = !1;
|
|
282
|
-
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
283
|
-
const m =
|
|
284
|
-
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u &&
|
|
282
|
+
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
283
|
+
const m = d.length ? d[0] : c;
|
|
284
|
+
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u && Sr(e, f)), c;
|
|
285
285
|
}) : [], h.update(), u = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
286
286
|
if (t.hydrate) {
|
|
287
|
-
const f =
|
|
287
|
+
const f = gr(t.target);
|
|
288
288
|
h.fragment && h.fragment.l(f), f.forEach(P);
|
|
289
289
|
} else
|
|
290
290
|
h.fragment && h.fragment.c();
|
|
291
|
-
t.intro && he(e.$$.fragment),
|
|
291
|
+
t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), A();
|
|
292
292
|
}
|
|
293
293
|
Y(l);
|
|
294
294
|
}
|
|
295
|
-
let
|
|
296
|
-
typeof HTMLElement == "function" && (
|
|
295
|
+
let Pt;
|
|
296
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
297
297
|
constructor(t, r, n) {
|
|
298
298
|
super();
|
|
299
299
|
/** The Svelte component constructor */
|
|
@@ -330,14 +330,14 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
connectedCallback() {
|
|
333
|
-
return
|
|
333
|
+
return et(this, null, function* () {
|
|
334
334
|
if (this.$$cn = !0, !this.$$c) {
|
|
335
335
|
let t = function(s) {
|
|
336
336
|
return () => {
|
|
337
337
|
let a;
|
|
338
338
|
return {
|
|
339
339
|
c: function() {
|
|
340
|
-
a =
|
|
340
|
+
a = W("slot"), s !== "default" && re(a, "name", s);
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
343
343
|
* @param {HTMLElement} target
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
354
354
|
};
|
|
355
355
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
356
356
|
return;
|
|
357
|
-
const r = {}, n =
|
|
357
|
+
const r = {}, n = yr(this);
|
|
358
358
|
for (const s of this.$$s)
|
|
359
359
|
s in n && (r[s] = [t(s)]);
|
|
360
360
|
for (const s of this.attributes) {
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
365
365
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
366
366
|
this.$$c = new this.$$ctor({
|
|
367
367
|
target: this.shadowRoot || this,
|
|
368
|
-
props:
|
|
368
|
+
props: Ke(Ye({}, this.$$d), {
|
|
369
369
|
$$slots: r,
|
|
370
370
|
$$scope: {
|
|
371
371
|
ctx: []
|
|
@@ -443,8 +443,8 @@ function ue(e, t, r, n) {
|
|
|
443
443
|
return t;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
let a = class extends
|
|
446
|
+
function Cr(e, t, r, n, i, s) {
|
|
447
|
+
let a = class extends Pt {
|
|
448
448
|
constructor() {
|
|
449
449
|
super(e, r, i), this.$$p_d = t;
|
|
450
450
|
}
|
|
@@ -474,7 +474,7 @@ function Sr(e, t, r, n, i, s) {
|
|
|
474
474
|
}), e.element = /** @type {any} */
|
|
475
475
|
a, a;
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class Or {
|
|
478
478
|
constructor() {
|
|
479
479
|
/**
|
|
480
480
|
* ### PRIVATE API
|
|
@@ -495,7 +495,7 @@ class Ar {
|
|
|
495
495
|
}
|
|
496
496
|
/** @returns {void} */
|
|
497
497
|
$destroy() {
|
|
498
|
-
|
|
498
|
+
wr(this, 1), this.$destroy = T;
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -517,13 +517,13 @@ class Ar {
|
|
|
517
517
|
* @returns {void}
|
|
518
518
|
*/
|
|
519
519
|
$set(t) {
|
|
520
|
-
this.$$set && !
|
|
520
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
const
|
|
524
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
523
|
+
const Pr = "4";
|
|
524
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
525
525
|
const G = [];
|
|
526
|
-
function
|
|
526
|
+
function Lr(e, t) {
|
|
527
527
|
return {
|
|
528
528
|
subscribe: be(e, t).subscribe
|
|
529
529
|
};
|
|
@@ -532,7 +532,7 @@ function be(e, t = T) {
|
|
|
532
532
|
let r;
|
|
533
533
|
const n = /* @__PURE__ */ new Set();
|
|
534
534
|
function i(o) {
|
|
535
|
-
if (
|
|
535
|
+
if (wt(e, o) && (e = o, r)) {
|
|
536
536
|
const l = !G.length;
|
|
537
537
|
for (const h of n)
|
|
538
538
|
h[1](), G.push(h, e);
|
|
@@ -559,7 +559,7 @@ function Z(e, t, r) {
|
|
|
559
559
|
if (!i.every(Boolean))
|
|
560
560
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
561
561
|
const s = t.length < 2;
|
|
562
|
-
return
|
|
562
|
+
return Lr(r, (a, o) => {
|
|
563
563
|
let l = !1;
|
|
564
564
|
const h = [];
|
|
565
565
|
let u = 0, f = T;
|
|
@@ -569,8 +569,8 @@ function Z(e, t, r) {
|
|
|
569
569
|
f();
|
|
570
570
|
const m = t(n ? h[0] : h, a, o);
|
|
571
571
|
s ? a(m) : f = Ve(m) ? m : T;
|
|
572
|
-
},
|
|
573
|
-
(m, g) =>
|
|
572
|
+
}, d = i.map(
|
|
573
|
+
(m, g) => St(
|
|
574
574
|
m,
|
|
575
575
|
(v) => {
|
|
576
576
|
h[g] = v, u &= ~(1 << g), l && c();
|
|
@@ -581,74 +581,74 @@ function Z(e, t, r) {
|
|
|
581
581
|
)
|
|
582
582
|
);
|
|
583
583
|
return l = !0, c(), function() {
|
|
584
|
-
te(
|
|
584
|
+
te(d), f(), l = !1;
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Nr(e) {
|
|
589
589
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
return
|
|
591
|
+
var Ir = function(t) {
|
|
592
|
+
return Mr(t) && !$r(t);
|
|
593
593
|
};
|
|
594
|
-
function
|
|
594
|
+
function Mr(e) {
|
|
595
595
|
return !!e && typeof e == "object";
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function $r(e) {
|
|
598
598
|
var t = Object.prototype.toString.call(e);
|
|
599
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
599
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
function
|
|
603
|
-
return e.$$typeof ===
|
|
601
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
602
|
+
function Dr(e) {
|
|
603
|
+
return e.$$typeof === Ur;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Gr(e) {
|
|
606
606
|
return Array.isArray(e) ? [] : {};
|
|
607
607
|
}
|
|
608
608
|
function K(e, t) {
|
|
609
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
609
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Gr(e), e, t) : e;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Fr(e, t, r) {
|
|
612
612
|
return e.concat(t).map(function(n) {
|
|
613
613
|
return K(n, r);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function jr(e, t) {
|
|
617
617
|
if (!t.customMerge)
|
|
618
618
|
return k;
|
|
619
619
|
var r = t.customMerge(e);
|
|
620
620
|
return typeof r == "function" ? r : k;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function kr(e) {
|
|
623
623
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
624
624
|
return Object.propertyIsEnumerable.call(e, t);
|
|
625
625
|
}) : [];
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return Object.keys(e).concat(
|
|
627
|
+
function it(e) {
|
|
628
|
+
return Object.keys(e).concat(kr(e));
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Lt(e, t) {
|
|
631
631
|
try {
|
|
632
632
|
return t in e;
|
|
633
633
|
} catch (r) {
|
|
634
634
|
return !1;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function Vr(e, t) {
|
|
638
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Xr(e, t, r) {
|
|
641
641
|
var n = {};
|
|
642
|
-
return r.isMergeableObject(e) &&
|
|
642
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
643
643
|
n[i] = K(e[i], r);
|
|
644
|
-
}),
|
|
645
|
-
|
|
644
|
+
}), it(t).forEach(function(i) {
|
|
645
|
+
Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
646
646
|
}), n;
|
|
647
647
|
}
|
|
648
648
|
function k(e, t, r) {
|
|
649
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
649
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
|
|
650
650
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
651
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
651
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
|
|
652
652
|
}
|
|
653
653
|
k.all = function(t, r) {
|
|
654
654
|
if (!Array.isArray(t))
|
|
@@ -657,8 +657,8 @@ k.all = function(t, r) {
|
|
|
657
657
|
return k(n, i, r);
|
|
658
658
|
}, {});
|
|
659
659
|
};
|
|
660
|
-
var
|
|
661
|
-
const
|
|
660
|
+
var zr = k, Wr = zr;
|
|
661
|
+
const Zr = /* @__PURE__ */ Nr(Wr);
|
|
662
662
|
/*! *****************************************************************************
|
|
663
663
|
Copyright (c) Microsoft Corporation.
|
|
664
664
|
|
|
@@ -700,7 +700,7 @@ var y = function() {
|
|
|
700
700
|
return t;
|
|
701
701
|
}, y.apply(this, arguments);
|
|
702
702
|
};
|
|
703
|
-
function
|
|
703
|
+
function Qr(e, t) {
|
|
704
704
|
var r = {};
|
|
705
705
|
for (var n in e)
|
|
706
706
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -716,57 +716,59 @@ function Se(e, t, r) {
|
|
|
716
716
|
return e.concat(s || t);
|
|
717
717
|
}
|
|
718
718
|
function Ae(e, t) {
|
|
719
|
-
var r = t && t.cache ? t.cache :
|
|
719
|
+
var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
|
|
720
720
|
return i(e, {
|
|
721
721
|
cache: r,
|
|
722
722
|
serializer: n
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Jr(e) {
|
|
726
726
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
var i =
|
|
728
|
+
function Nt(e, t, r, n) {
|
|
729
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
730
730
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function It(e, t, r) {
|
|
733
733
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
734
734
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function We(e, t, r, n, i) {
|
|
737
737
|
return r.bind(t, e, n, i);
|
|
738
738
|
}
|
|
739
|
-
function Jr(e, t) {
|
|
740
|
-
var r = e.length === 1 ? Qr : Pt;
|
|
741
|
-
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
742
|
-
}
|
|
743
739
|
function qr(e, t) {
|
|
744
|
-
|
|
740
|
+
var r = e.length === 1 ? Nt : It;
|
|
741
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
742
|
+
}
|
|
743
|
+
function Yr(e, t) {
|
|
744
|
+
return We(e, this, It, t.cache.create(), t.serializer);
|
|
745
745
|
}
|
|
746
|
-
|
|
746
|
+
function Kr(e, t) {
|
|
747
|
+
return We(e, this, Nt, t.cache.create(), t.serializer);
|
|
748
|
+
}
|
|
749
|
+
var en = function() {
|
|
747
750
|
return JSON.stringify(arguments);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}()
|
|
760
|
-
), en = {
|
|
751
|
+
};
|
|
752
|
+
function Ze() {
|
|
753
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
754
|
+
}
|
|
755
|
+
Ze.prototype.get = function(e) {
|
|
756
|
+
return this.cache[e];
|
|
757
|
+
};
|
|
758
|
+
Ze.prototype.set = function(e, t) {
|
|
759
|
+
this.cache[e] = t;
|
|
760
|
+
};
|
|
761
|
+
var tn = {
|
|
761
762
|
create: function() {
|
|
762
|
-
return new
|
|
763
|
+
return new Ze();
|
|
763
764
|
}
|
|
764
765
|
}, Ce = {
|
|
765
|
-
variadic:
|
|
766
|
-
|
|
766
|
+
variadic: Yr,
|
|
767
|
+
monadic: Kr
|
|
768
|
+
}, p;
|
|
767
769
|
(function(e) {
|
|
768
770
|
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";
|
|
769
|
-
})(
|
|
771
|
+
})(p || (p = {}));
|
|
770
772
|
var x;
|
|
771
773
|
(function(e) {
|
|
772
774
|
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";
|
|
@@ -775,43 +777,43 @@ var V;
|
|
|
775
777
|
(function(e) {
|
|
776
778
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
777
779
|
})(V || (V = {}));
|
|
778
|
-
function
|
|
780
|
+
function st(e) {
|
|
779
781
|
return e.type === x.literal;
|
|
780
782
|
}
|
|
781
|
-
function
|
|
783
|
+
function rn(e) {
|
|
782
784
|
return e.type === x.argument;
|
|
783
785
|
}
|
|
784
|
-
function
|
|
786
|
+
function Mt(e) {
|
|
785
787
|
return e.type === x.number;
|
|
786
788
|
}
|
|
787
|
-
function
|
|
789
|
+
function $t(e) {
|
|
788
790
|
return e.type === x.date;
|
|
789
791
|
}
|
|
790
|
-
function
|
|
792
|
+
function Rt(e) {
|
|
791
793
|
return e.type === x.time;
|
|
792
794
|
}
|
|
793
|
-
function
|
|
795
|
+
function Ut(e) {
|
|
794
796
|
return e.type === x.select;
|
|
795
797
|
}
|
|
796
|
-
function
|
|
798
|
+
function Dt(e) {
|
|
797
799
|
return e.type === x.plural;
|
|
798
800
|
}
|
|
799
|
-
function
|
|
801
|
+
function nn(e) {
|
|
800
802
|
return e.type === x.pound;
|
|
801
803
|
}
|
|
802
|
-
function
|
|
804
|
+
function Gt(e) {
|
|
803
805
|
return e.type === x.tag;
|
|
804
806
|
}
|
|
805
|
-
function
|
|
807
|
+
function Ft(e) {
|
|
806
808
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
807
809
|
}
|
|
808
810
|
function Re(e) {
|
|
809
811
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
810
812
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
813
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
814
|
+
function on(e) {
|
|
813
815
|
var t = {};
|
|
814
|
-
return e.replace(
|
|
816
|
+
return e.replace(sn, function(r) {
|
|
815
817
|
var n = r.length;
|
|
816
818
|
switch (r[0]) {
|
|
817
819
|
case "G":
|
|
@@ -900,11 +902,11 @@ function sn(e) {
|
|
|
900
902
|
return "";
|
|
901
903
|
}), t;
|
|
902
904
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
905
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
906
|
+
function hn(e) {
|
|
905
907
|
if (e.length === 0)
|
|
906
908
|
throw new Error("Number skeleton cannot be empty");
|
|
907
|
-
for (var t = e.split(
|
|
909
|
+
for (var t = e.split(an).filter(function(c) {
|
|
908
910
|
return c.length > 0;
|
|
909
911
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
910
912
|
var s = i[n], a = s.split("/");
|
|
@@ -919,17 +921,17 @@ function an(e) {
|
|
|
919
921
|
}
|
|
920
922
|
return r;
|
|
921
923
|
}
|
|
922
|
-
function
|
|
924
|
+
function un(e) {
|
|
923
925
|
return e.replace(/^(.*?)-/, "");
|
|
924
926
|
}
|
|
925
|
-
var
|
|
926
|
-
function
|
|
927
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
928
|
+
function at(e) {
|
|
927
929
|
var t = {};
|
|
928
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
930
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
929
931
|
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)), "";
|
|
930
932
|
}), t;
|
|
931
933
|
}
|
|
932
|
-
function
|
|
934
|
+
function Xt(e) {
|
|
933
935
|
switch (e) {
|
|
934
936
|
case "sign-auto":
|
|
935
937
|
return {
|
|
@@ -969,7 +971,7 @@ function kt(e) {
|
|
|
969
971
|
};
|
|
970
972
|
}
|
|
971
973
|
}
|
|
972
|
-
function
|
|
974
|
+
function fn(e) {
|
|
973
975
|
var t;
|
|
974
976
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
975
977
|
notation: "engineering"
|
|
@@ -977,17 +979,17 @@ function ln(e) {
|
|
|
977
979
|
notation: "scientific"
|
|
978
980
|
}, e = e.slice(1)), t) {
|
|
979
981
|
var r = e.slice(0, 2);
|
|
980
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
982
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
981
983
|
throw new Error("Malformed concise eng/scientific notation");
|
|
982
984
|
t.minimumIntegerDigits = e.length;
|
|
983
985
|
}
|
|
984
986
|
return t;
|
|
985
987
|
}
|
|
986
|
-
function
|
|
987
|
-
var t = {}, r =
|
|
988
|
+
function ht(e) {
|
|
989
|
+
var t = {}, r = Xt(e);
|
|
988
990
|
return r || t;
|
|
989
991
|
}
|
|
990
|
-
function
|
|
992
|
+
function cn(e) {
|
|
991
993
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
992
994
|
var i = n[r];
|
|
993
995
|
switch (i.stem) {
|
|
@@ -1011,7 +1013,7 @@ function fn(e) {
|
|
|
1011
1013
|
continue;
|
|
1012
1014
|
case "measure-unit":
|
|
1013
1015
|
case "unit":
|
|
1014
|
-
t.style = "unit", t.unit =
|
|
1016
|
+
t.style = "unit", t.unit = un(i.options[0]);
|
|
1015
1017
|
continue;
|
|
1016
1018
|
case "compact-short":
|
|
1017
1019
|
case "K":
|
|
@@ -1023,12 +1025,12 @@ function fn(e) {
|
|
|
1023
1025
|
continue;
|
|
1024
1026
|
case "scientific":
|
|
1025
1027
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
|
1026
|
-
return y(y({}, l),
|
|
1028
|
+
return y(y({}, l), ht(h));
|
|
1027
1029
|
}, {}));
|
|
1028
1030
|
continue;
|
|
1029
1031
|
case "engineering":
|
|
1030
1032
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
|
1031
|
-
return y(y({}, l),
|
|
1033
|
+
return y(y({}, l), ht(h));
|
|
1032
1034
|
}, {}));
|
|
1033
1035
|
continue;
|
|
1034
1036
|
case "notation-simple":
|
|
@@ -1073,40 +1075,40 @@ function fn(e) {
|
|
|
1073
1075
|
case "integer-width":
|
|
1074
1076
|
if (i.options.length > 1)
|
|
1075
1077
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1076
|
-
i.options[0].replace(
|
|
1078
|
+
i.options[0].replace(ln, function(l, h, u, f, c, d) {
|
|
1077
1079
|
if (h)
|
|
1078
1080
|
t.minimumIntegerDigits = u.length;
|
|
1079
1081
|
else {
|
|
1080
1082
|
if (f && c)
|
|
1081
1083
|
throw new Error("We currently do not support maximum integer digits");
|
|
1082
|
-
if (
|
|
1084
|
+
if (d)
|
|
1083
1085
|
throw new Error("We currently do not support exact integer digits");
|
|
1084
1086
|
}
|
|
1085
1087
|
return "";
|
|
1086
1088
|
});
|
|
1087
1089
|
continue;
|
|
1088
1090
|
}
|
|
1089
|
-
if (
|
|
1091
|
+
if (Vt.test(i.stem)) {
|
|
1090
1092
|
t.minimumIntegerDigits = i.stem.length;
|
|
1091
1093
|
continue;
|
|
1092
1094
|
}
|
|
1093
|
-
if (
|
|
1095
|
+
if (ot.test(i.stem)) {
|
|
1094
1096
|
if (i.options.length > 1)
|
|
1095
1097
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1096
|
-
i.stem.replace(
|
|
1097
|
-
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1098
|
+
i.stem.replace(ot, function(l, h, u, f, c, d) {
|
|
1099
|
+
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1098
1100
|
});
|
|
1099
1101
|
var s = i.options[0];
|
|
1100
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1102
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
|
|
1101
1103
|
continue;
|
|
1102
1104
|
}
|
|
1103
|
-
if (
|
|
1104
|
-
t = y(y({}, t),
|
|
1105
|
+
if (kt.test(i.stem)) {
|
|
1106
|
+
t = y(y({}, t), at(i.stem));
|
|
1105
1107
|
continue;
|
|
1106
1108
|
}
|
|
1107
|
-
var a =
|
|
1109
|
+
var a = Xt(i.stem);
|
|
1108
1110
|
a && (t = y(y({}, t), a));
|
|
1109
|
-
var o =
|
|
1111
|
+
var o = fn(i.stem);
|
|
1110
1112
|
o && (t = y(y({}, t), o));
|
|
1111
1113
|
}
|
|
1112
1114
|
return t;
|
|
@@ -2526,13 +2528,13 @@ var oe = {
|
|
|
2526
2528
|
"h"
|
|
2527
2529
|
]
|
|
2528
2530
|
};
|
|
2529
|
-
function
|
|
2531
|
+
function mn(e, t) {
|
|
2530
2532
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2531
2533
|
var i = e.charAt(n);
|
|
2532
2534
|
if (i === "j") {
|
|
2533
2535
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2534
2536
|
s++, n++;
|
|
2535
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
|
2537
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = dn(t);
|
|
2536
2538
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
2537
2539
|
r += l;
|
|
2538
2540
|
for (; a-- > 0; )
|
|
@@ -2542,7 +2544,7 @@ function cn(e, t) {
|
|
|
2542
2544
|
}
|
|
2543
2545
|
return r;
|
|
2544
2546
|
}
|
|
2545
|
-
function
|
|
2547
|
+
function dn(e) {
|
|
2546
2548
|
var t = e.hourCycle;
|
|
2547
2549
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2548
2550
|
e.hourCycles && // @ts-ignore
|
|
@@ -2564,20 +2566,20 @@ function mn(e) {
|
|
|
2564
2566
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2565
2567
|
return i[0];
|
|
2566
2568
|
}
|
|
2567
|
-
var Oe, pn = new RegExp("^".concat(
|
|
2569
|
+
var Oe, pn = new RegExp("^".concat(jt.source, "*")), bn = new RegExp("".concat(jt.source, "*$"));
|
|
2568
2570
|
function b(e, t) {
|
|
2569
2571
|
return { start: e, end: t };
|
|
2570
2572
|
}
|
|
2571
|
-
var
|
|
2573
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
|
|
2572
2574
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2573
2575
|
}, Ue = !0;
|
|
2574
2576
|
try {
|
|
2575
|
-
var
|
|
2576
|
-
Ue = ((Oe =
|
|
2577
|
+
var Tn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2578
|
+
Ue = ((Oe = Tn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2577
2579
|
} catch (e) {
|
|
2578
2580
|
Ue = !1;
|
|
2579
2581
|
}
|
|
2580
|
-
var
|
|
2582
|
+
var ut = gn ? (
|
|
2581
2583
|
// Native
|
|
2582
2584
|
function(t, r, n) {
|
|
2583
2585
|
return t.startsWith(r, n);
|
|
@@ -2587,7 +2589,7 @@ var at = bn ? (
|
|
|
2587
2589
|
function(t, r, n) {
|
|
2588
2590
|
return t.slice(n, n + r.length) === r;
|
|
2589
2591
|
}
|
|
2590
|
-
), De =
|
|
2592
|
+
), De = _n ? String.fromCodePoint : (
|
|
2591
2593
|
// IE11
|
|
2592
2594
|
function() {
|
|
2593
2595
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2599,9 +2601,9 @@ var at = bn ? (
|
|
|
2599
2601
|
}
|
|
2600
2602
|
return n;
|
|
2601
2603
|
}
|
|
2602
|
-
),
|
|
2604
|
+
), lt = (
|
|
2603
2605
|
// native
|
|
2604
|
-
|
|
2606
|
+
yn ? Object.fromEntries : (
|
|
2605
2607
|
// Ponyfill
|
|
2606
2608
|
function(t) {
|
|
2607
2609
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2611,7 +2613,7 @@ var at = bn ? (
|
|
|
2611
2613
|
return r;
|
|
2612
2614
|
}
|
|
2613
2615
|
)
|
|
2614
|
-
),
|
|
2616
|
+
), zt = xn ? (
|
|
2615
2617
|
// Native
|
|
2616
2618
|
function(t, r) {
|
|
2617
2619
|
return t.codePointAt(r);
|
|
@@ -2625,7 +2627,7 @@ var at = bn ? (
|
|
|
2625
2627
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2626
2628
|
}
|
|
2627
2629
|
}
|
|
2628
|
-
),
|
|
2630
|
+
), wn = En ? (
|
|
2629
2631
|
// Native
|
|
2630
2632
|
function(t) {
|
|
2631
2633
|
return t.trimStart();
|
|
@@ -2635,7 +2637,7 @@ var at = bn ? (
|
|
|
2635
2637
|
function(t) {
|
|
2636
2638
|
return t.replace(pn, "");
|
|
2637
2639
|
}
|
|
2638
|
-
),
|
|
2640
|
+
), Sn = vn ? (
|
|
2639
2641
|
// Native
|
|
2640
2642
|
function(t) {
|
|
2641
2643
|
return t.trimEnd();
|
|
@@ -2643,32 +2645,32 @@ var at = bn ? (
|
|
|
2643
2645
|
) : (
|
|
2644
2646
|
// Ponyfill
|
|
2645
2647
|
function(t) {
|
|
2646
|
-
return t.replace(
|
|
2648
|
+
return t.replace(bn, "");
|
|
2647
2649
|
}
|
|
2648
2650
|
);
|
|
2649
|
-
function
|
|
2651
|
+
function Wt(e, t) {
|
|
2650
2652
|
return new RegExp(e, t);
|
|
2651
2653
|
}
|
|
2652
2654
|
var Ge;
|
|
2653
2655
|
if (Ue) {
|
|
2654
|
-
var
|
|
2656
|
+
var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2655
2657
|
Ge = function(t, r) {
|
|
2656
2658
|
var n;
|
|
2657
|
-
|
|
2658
|
-
var i =
|
|
2659
|
+
ft.lastIndex = r;
|
|
2660
|
+
var i = ft.exec(t);
|
|
2659
2661
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2660
2662
|
};
|
|
2661
2663
|
} else
|
|
2662
2664
|
Ge = function(t, r) {
|
|
2663
2665
|
for (var n = []; ; ) {
|
|
2664
|
-
var i =
|
|
2665
|
-
if (i === void 0 ||
|
|
2666
|
+
var i = zt(t, r);
|
|
2667
|
+
if (i === void 0 || Zt(i) || Pn(i))
|
|
2666
2668
|
break;
|
|
2667
2669
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2668
2670
|
}
|
|
2669
2671
|
return De.apply(void 0, n);
|
|
2670
2672
|
};
|
|
2671
|
-
var
|
|
2673
|
+
var An = (
|
|
2672
2674
|
/** @class */
|
|
2673
2675
|
function() {
|
|
2674
2676
|
function e(t, r) {
|
|
@@ -2698,7 +2700,7 @@ var Sn = (
|
|
|
2698
2700
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2699
2701
|
if (n)
|
|
2700
2702
|
break;
|
|
2701
|
-
return this.error(
|
|
2703
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2702
2704
|
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2703
2705
|
var a = this.parseTag(t, r);
|
|
2704
2706
|
if (a.err)
|
|
@@ -2733,9 +2735,9 @@ var Sn = (
|
|
|
2733
2735
|
var a = s.val, o = this.clonePosition();
|
|
2734
2736
|
if (this.bumpIf("</")) {
|
|
2735
2737
|
if (this.isEOF() || !Fe(this.char()))
|
|
2736
|
-
return this.error(
|
|
2738
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2737
2739
|
var l = this.clonePosition(), h = this.parseTagName();
|
|
2738
|
-
return i !== h ? this.error(
|
|
2740
|
+
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2739
2741
|
val: {
|
|
2740
2742
|
type: x.tag,
|
|
2741
2743
|
value: i,
|
|
@@ -2743,14 +2745,14 @@ var Sn = (
|
|
|
2743
2745
|
location: b(n, this.clonePosition())
|
|
2744
2746
|
},
|
|
2745
2747
|
err: null
|
|
2746
|
-
} : this.error(
|
|
2748
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2747
2749
|
} else
|
|
2748
|
-
return this.error(
|
|
2750
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2749
2751
|
} else
|
|
2750
|
-
return this.error(
|
|
2752
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2751
2753
|
}, e.prototype.parseTagName = function() {
|
|
2752
2754
|
var t = this.offset();
|
|
2753
|
-
for (this.bump(); !this.isEOF() &&
|
|
2755
|
+
for (this.bump(); !this.isEOF() && On(this.char()); )
|
|
2754
2756
|
this.bump();
|
|
2755
2757
|
return this.message.slice(t, this.offset());
|
|
2756
2758
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2779,7 +2781,7 @@ var Sn = (
|
|
|
2779
2781
|
};
|
|
2780
2782
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2781
2783
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2782
|
-
!
|
|
2784
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2783
2785
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2784
2786
|
if (this.isEOF() || this.char() !== 39)
|
|
2785
2787
|
return null;
|
|
@@ -2822,14 +2824,14 @@ var Sn = (
|
|
|
2822
2824
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2823
2825
|
var n = this.clonePosition();
|
|
2824
2826
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2825
|
-
return this.error(
|
|
2827
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2826
2828
|
if (this.char() === 125)
|
|
2827
|
-
return this.bump(), this.error(
|
|
2829
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2828
2830
|
var i = this.parseIdentifierIfPossible().value;
|
|
2829
2831
|
if (!i)
|
|
2830
|
-
return this.error(
|
|
2832
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2831
2833
|
if (this.bumpSpace(), this.isEOF())
|
|
2832
|
-
return this.error(
|
|
2834
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2833
2835
|
switch (this.char()) {
|
|
2834
2836
|
case 125:
|
|
2835
2837
|
return this.bump(), {
|
|
@@ -2842,9 +2844,9 @@ var Sn = (
|
|
|
2842
2844
|
err: null
|
|
2843
2845
|
};
|
|
2844
2846
|
case 44:
|
|
2845
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2847
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2846
2848
|
default:
|
|
2847
|
-
return this.error(
|
|
2849
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2848
2850
|
}
|
|
2849
2851
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2850
2852
|
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
@@ -2855,7 +2857,7 @@ var Sn = (
|
|
|
2855
2857
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2856
2858
|
switch (o) {
|
|
2857
2859
|
case "":
|
|
2858
|
-
return this.error(
|
|
2860
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2859
2861
|
case "number":
|
|
2860
2862
|
case "date":
|
|
2861
2863
|
case "time": {
|
|
@@ -2866,18 +2868,18 @@ var Sn = (
|
|
|
2866
2868
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2867
2869
|
if (f.err)
|
|
2868
2870
|
return f;
|
|
2869
|
-
var c =
|
|
2871
|
+
var c = Sn(f.val);
|
|
2870
2872
|
if (c.length === 0)
|
|
2871
|
-
return this.error(
|
|
2872
|
-
var
|
|
2873
|
-
h = { style: c, styleLocation:
|
|
2873
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2874
|
+
var d = b(u, this.clonePosition());
|
|
2875
|
+
h = { style: c, styleLocation: d };
|
|
2874
2876
|
}
|
|
2875
2877
|
var m = this.tryParseArgumentClose(i);
|
|
2876
2878
|
if (m.err)
|
|
2877
2879
|
return m;
|
|
2878
2880
|
var g = b(i, this.clonePosition());
|
|
2879
|
-
if (h &&
|
|
2880
|
-
var v =
|
|
2881
|
+
if (h && ut(h == null ? void 0 : h.style, "::", 0)) {
|
|
2882
|
+
var v = wn(h.style.slice(2));
|
|
2881
2883
|
if (o === "number") {
|
|
2882
2884
|
var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
|
|
2883
2885
|
return f.err ? f : {
|
|
@@ -2886,14 +2888,14 @@ var Sn = (
|
|
|
2886
2888
|
};
|
|
2887
2889
|
} else {
|
|
2888
2890
|
if (v.length === 0)
|
|
2889
|
-
return this.error(
|
|
2891
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2890
2892
|
var N = v;
|
|
2891
|
-
this.locale && (N =
|
|
2893
|
+
this.locale && (N = mn(v, this.locale));
|
|
2892
2894
|
var c = {
|
|
2893
2895
|
type: V.dateTime,
|
|
2894
2896
|
pattern: N,
|
|
2895
2897
|
location: h.styleLocation,
|
|
2896
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2898
|
+
parsedOptions: this.shouldParseSkeletons ? on(N) : {}
|
|
2897
2899
|
}, C = o === "date" ? x.date : x.time;
|
|
2898
2900
|
return {
|
|
2899
2901
|
val: { type: C, value: n, location: g, style: c },
|
|
@@ -2916,14 +2918,14 @@ var Sn = (
|
|
|
2916
2918
|
case "select": {
|
|
2917
2919
|
var H = this.clonePosition();
|
|
2918
2920
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2919
|
-
return this.error(
|
|
2921
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2920
2922
|
this.bumpSpace();
|
|
2921
2923
|
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2922
2924
|
if (o !== "select" && I.value === "offset") {
|
|
2923
2925
|
if (!this.bumpIf(":"))
|
|
2924
|
-
return this.error(
|
|
2926
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2925
2927
|
this.bumpSpace();
|
|
2926
|
-
var f = this.tryParseDecimalInteger(
|
|
2928
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2927
2929
|
if (f.err)
|
|
2928
2930
|
return f;
|
|
2929
2931
|
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
@@ -2939,7 +2941,7 @@ var Sn = (
|
|
|
2939
2941
|
val: {
|
|
2940
2942
|
type: x.select,
|
|
2941
2943
|
value: n,
|
|
2942
|
-
options:
|
|
2944
|
+
options: lt(R.val),
|
|
2943
2945
|
location: se
|
|
2944
2946
|
},
|
|
2945
2947
|
err: null
|
|
@@ -2947,7 +2949,7 @@ var Sn = (
|
|
|
2947
2949
|
val: {
|
|
2948
2950
|
type: x.plural,
|
|
2949
2951
|
value: n,
|
|
2950
|
-
options:
|
|
2952
|
+
options: lt(R.val),
|
|
2951
2953
|
offset: w,
|
|
2952
2954
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2953
2955
|
location: se
|
|
@@ -2956,10 +2958,10 @@ var Sn = (
|
|
|
2956
2958
|
};
|
|
2957
2959
|
}
|
|
2958
2960
|
default:
|
|
2959
|
-
return this.error(
|
|
2961
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2960
2962
|
}
|
|
2961
2963
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2962
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2964
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2963
2965
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2964
2966
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2965
2967
|
var n = this.char();
|
|
@@ -2968,7 +2970,7 @@ var Sn = (
|
|
|
2968
2970
|
this.bump();
|
|
2969
2971
|
var i = this.clonePosition();
|
|
2970
2972
|
if (!this.bumpUntil("'"))
|
|
2971
|
-
return this.error(
|
|
2973
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2972
2974
|
this.bump();
|
|
2973
2975
|
break;
|
|
2974
2976
|
}
|
|
@@ -2998,16 +3000,16 @@ var Sn = (
|
|
|
2998
3000
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2999
3001
|
var n = [];
|
|
3000
3002
|
try {
|
|
3001
|
-
n =
|
|
3003
|
+
n = hn(t);
|
|
3002
3004
|
} catch (i) {
|
|
3003
|
-
return this.error(
|
|
3005
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3004
3006
|
}
|
|
3005
3007
|
return {
|
|
3006
3008
|
val: {
|
|
3007
3009
|
type: V.number,
|
|
3008
3010
|
tokens: n,
|
|
3009
3011
|
location: r,
|
|
3010
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3012
|
+
parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
|
|
3011
3013
|
},
|
|
3012
3014
|
err: null
|
|
3013
3015
|
};
|
|
@@ -3016,7 +3018,7 @@ var Sn = (
|
|
|
3016
3018
|
if (h.length === 0) {
|
|
3017
3019
|
var f = this.clonePosition();
|
|
3018
3020
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3019
|
-
var c = this.tryParseDecimalInteger(
|
|
3021
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3020
3022
|
if (c.err)
|
|
3021
3023
|
return c;
|
|
3022
3024
|
u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
@@ -3024,26 +3026,26 @@ var Sn = (
|
|
|
3024
3026
|
break;
|
|
3025
3027
|
}
|
|
3026
3028
|
if (l.has(h))
|
|
3027
|
-
return this.error(r === "select" ?
|
|
3029
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3028
3030
|
h === "other" && (a = !0), this.bumpSpace();
|
|
3029
|
-
var
|
|
3031
|
+
var d = this.clonePosition();
|
|
3030
3032
|
if (!this.bumpIf("{"))
|
|
3031
|
-
return this.error(r === "select" ?
|
|
3033
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3032
3034
|
var m = this.parseMessage(t + 1, r, n);
|
|
3033
3035
|
if (m.err)
|
|
3034
3036
|
return m;
|
|
3035
|
-
var g = this.tryParseArgumentClose(
|
|
3037
|
+
var g = this.tryParseArgumentClose(d);
|
|
3036
3038
|
if (g.err)
|
|
3037
3039
|
return g;
|
|
3038
3040
|
o.push([
|
|
3039
3041
|
h,
|
|
3040
3042
|
{
|
|
3041
3043
|
value: m.val,
|
|
3042
|
-
location: b(
|
|
3044
|
+
location: b(d, this.clonePosition())
|
|
3043
3045
|
}
|
|
3044
3046
|
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
|
3045
3047
|
}
|
|
3046
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3048
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3047
3049
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3048
3050
|
var n = 1, i = this.clonePosition();
|
|
3049
3051
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3055,7 +3057,7 @@ var Sn = (
|
|
|
3055
3057
|
break;
|
|
3056
3058
|
}
|
|
3057
3059
|
var l = b(i, this.clonePosition());
|
|
3058
|
-
return s ? (a *= n,
|
|
3060
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3059
3061
|
}, e.prototype.offset = function() {
|
|
3060
3062
|
return this.position.offset;
|
|
3061
3063
|
}, e.prototype.isEOF = function() {
|
|
@@ -3070,7 +3072,7 @@ var Sn = (
|
|
|
3070
3072
|
var t = this.position.offset;
|
|
3071
3073
|
if (t >= this.message.length)
|
|
3072
3074
|
throw Error("out of bound");
|
|
3073
|
-
var r =
|
|
3075
|
+
var r = zt(this.message, t);
|
|
3074
3076
|
if (r === void 0)
|
|
3075
3077
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3076
3078
|
return r;
|
|
@@ -3089,7 +3091,7 @@ var Sn = (
|
|
|
3089
3091
|
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);
|
|
3090
3092
|
}
|
|
3091
3093
|
}, e.prototype.bumpIf = function(t) {
|
|
3092
|
-
if (
|
|
3094
|
+
if (ut(this.message, t, this.offset())) {
|
|
3093
3095
|
for (var r = 0; r < t.length; r++)
|
|
3094
3096
|
this.bump();
|
|
3095
3097
|
return !0;
|
|
@@ -3111,7 +3113,7 @@ var Sn = (
|
|
|
3111
3113
|
break;
|
|
3112
3114
|
}
|
|
3113
3115
|
}, e.prototype.bumpSpace = function() {
|
|
3114
|
-
for (; !this.isEOF() &&
|
|
3116
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3115
3117
|
this.bump();
|
|
3116
3118
|
}, e.prototype.peek = function() {
|
|
3117
3119
|
if (this.isEOF())
|
|
@@ -3124,32 +3126,32 @@ var Sn = (
|
|
|
3124
3126
|
function Fe(e) {
|
|
3125
3127
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3126
3128
|
}
|
|
3127
|
-
function
|
|
3129
|
+
function Cn(e) {
|
|
3128
3130
|
return Fe(e) || e === 47;
|
|
3129
3131
|
}
|
|
3130
|
-
function
|
|
3132
|
+
function On(e) {
|
|
3131
3133
|
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;
|
|
3132
3134
|
}
|
|
3133
|
-
function
|
|
3135
|
+
function Zt(e) {
|
|
3134
3136
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3135
3137
|
}
|
|
3136
|
-
function
|
|
3138
|
+
function Pn(e) {
|
|
3137
3139
|
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;
|
|
3138
3140
|
}
|
|
3139
3141
|
function je(e) {
|
|
3140
3142
|
e.forEach(function(t) {
|
|
3141
|
-
if (delete t.location,
|
|
3143
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3142
3144
|
for (var r in t.options)
|
|
3143
3145
|
delete t.options[r].location, je(t.options[r].value);
|
|
3144
3146
|
else
|
|
3145
|
-
|
|
3147
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Gt(t) && je(t.children);
|
|
3146
3148
|
});
|
|
3147
3149
|
}
|
|
3148
|
-
function
|
|
3150
|
+
function Ln(e, t) {
|
|
3149
3151
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3150
|
-
var r = new
|
|
3152
|
+
var r = new An(e, t).parse();
|
|
3151
3153
|
if (r.err) {
|
|
3152
|
-
var n = SyntaxError(
|
|
3154
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3153
3155
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3154
3156
|
}
|
|
3155
3157
|
return t != null && t.captureLocation || je(r.val), r.val;
|
|
@@ -3170,7 +3172,7 @@ var _e = (
|
|
|
3170
3172
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3171
3173
|
}, t;
|
|
3172
3174
|
}(Error)
|
|
3173
|
-
),
|
|
3175
|
+
), ct = (
|
|
3174
3176
|
/** @class */
|
|
3175
3177
|
function(e) {
|
|
3176
3178
|
ge(t, e);
|
|
@@ -3179,7 +3181,7 @@ var _e = (
|
|
|
3179
3181
|
}
|
|
3180
3182
|
return t;
|
|
3181
3183
|
}(_e)
|
|
3182
|
-
),
|
|
3184
|
+
), Nn = (
|
|
3183
3185
|
/** @class */
|
|
3184
3186
|
function(e) {
|
|
3185
3187
|
ge(t, e);
|
|
@@ -3188,7 +3190,7 @@ var _e = (
|
|
|
3188
3190
|
}
|
|
3189
3191
|
return t;
|
|
3190
3192
|
}(_e)
|
|
3191
|
-
),
|
|
3193
|
+
), In = (
|
|
3192
3194
|
/** @class */
|
|
3193
3195
|
function(e) {
|
|
3194
3196
|
ge(t, e);
|
|
@@ -3201,17 +3203,17 @@ var _e = (
|
|
|
3201
3203
|
(function(e) {
|
|
3202
3204
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3203
3205
|
})(E || (E = {}));
|
|
3204
|
-
function
|
|
3206
|
+
function Mn(e) {
|
|
3205
3207
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3206
3208
|
var n = t[t.length - 1];
|
|
3207
3209
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3208
3210
|
}, []);
|
|
3209
3211
|
}
|
|
3210
|
-
function
|
|
3212
|
+
function $n(e) {
|
|
3211
3213
|
return typeof e == "function";
|
|
3212
3214
|
}
|
|
3213
3215
|
function le(e, t, r, n, i, s, a) {
|
|
3214
|
-
if (e.length === 1 &&
|
|
3216
|
+
if (e.length === 1 && st(e[0]))
|
|
3215
3217
|
return [
|
|
3216
3218
|
{
|
|
3217
3219
|
type: E.literal,
|
|
@@ -3220,14 +3222,14 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3220
3222
|
];
|
|
3221
3223
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
|
3222
3224
|
var u = h[l];
|
|
3223
|
-
if (
|
|
3225
|
+
if (st(u)) {
|
|
3224
3226
|
o.push({
|
|
3225
3227
|
type: E.literal,
|
|
3226
3228
|
value: u.value
|
|
3227
3229
|
});
|
|
3228
3230
|
continue;
|
|
3229
3231
|
}
|
|
3230
|
-
if (
|
|
3232
|
+
if (nn(u)) {
|
|
3231
3233
|
typeof s == "number" && o.push({
|
|
3232
3234
|
type: E.literal,
|
|
3233
3235
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3236,43 +3238,43 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3236
3238
|
}
|
|
3237
3239
|
var f = u.value;
|
|
3238
3240
|
if (!(i && f in i))
|
|
3239
|
-
throw new
|
|
3241
|
+
throw new In(f, a);
|
|
3240
3242
|
var c = i[f];
|
|
3241
|
-
if (
|
|
3243
|
+
if (rn(u)) {
|
|
3242
3244
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3243
3245
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3244
3246
|
value: c
|
|
3245
3247
|
});
|
|
3246
3248
|
continue;
|
|
3247
3249
|
}
|
|
3248
|
-
if (
|
|
3249
|
-
var
|
|
3250
|
+
if ($t(u)) {
|
|
3251
|
+
var d = typeof u.style == "string" ? n.date[u.style] : Re(u.style) ? u.style.parsedOptions : void 0;
|
|
3250
3252
|
o.push({
|
|
3251
3253
|
type: E.literal,
|
|
3252
|
-
value: r.getDateTimeFormat(t,
|
|
3254
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3253
3255
|
});
|
|
3254
3256
|
continue;
|
|
3255
3257
|
}
|
|
3256
|
-
if (
|
|
3257
|
-
var
|
|
3258
|
+
if (Rt(u)) {
|
|
3259
|
+
var d = typeof u.style == "string" ? n.time[u.style] : Re(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3258
3260
|
o.push({
|
|
3259
3261
|
type: E.literal,
|
|
3260
|
-
value: r.getDateTimeFormat(t,
|
|
3262
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3261
3263
|
});
|
|
3262
3264
|
continue;
|
|
3263
3265
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var
|
|
3266
|
-
|
|
3266
|
+
if (Mt(u)) {
|
|
3267
|
+
var d = typeof u.style == "string" ? n.number[u.style] : Ft(u.style) ? u.style.parsedOptions : void 0;
|
|
3268
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3267
3269
|
type: E.literal,
|
|
3268
|
-
value: r.getNumberFormat(t,
|
|
3270
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3269
3271
|
});
|
|
3270
3272
|
continue;
|
|
3271
3273
|
}
|
|
3272
|
-
if (
|
|
3274
|
+
if (Gt(u)) {
|
|
3273
3275
|
var m = u.children, g = u.value, v = i[g];
|
|
3274
|
-
if (
|
|
3275
|
-
throw new
|
|
3276
|
+
if (!$n(v))
|
|
3277
|
+
throw new Nn(g, "function", a);
|
|
3276
3278
|
var N = le(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
3277
3279
|
return w.value;
|
|
3278
3280
|
}));
|
|
@@ -3283,14 +3285,14 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3283
3285
|
};
|
|
3284
3286
|
}));
|
|
3285
3287
|
}
|
|
3286
|
-
if (
|
|
3288
|
+
if (Ut(u)) {
|
|
3287
3289
|
var H = u.options[c] || u.options.other;
|
|
3288
3290
|
if (!H)
|
|
3289
|
-
throw new
|
|
3291
|
+
throw new ct(u.value, c, Object.keys(u.options), a);
|
|
3290
3292
|
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3291
3293
|
continue;
|
|
3292
3294
|
}
|
|
3293
|
-
if (
|
|
3295
|
+
if (Dt(u)) {
|
|
3294
3296
|
var H = u.options["=".concat(c)];
|
|
3295
3297
|
if (!H) {
|
|
3296
3298
|
if (!Intl.PluralRules)
|
|
@@ -3301,21 +3303,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3301
3303
|
H = u.options[I] || u.options.other;
|
|
3302
3304
|
}
|
|
3303
3305
|
if (!H)
|
|
3304
|
-
throw new
|
|
3306
|
+
throw new ct(u.value, c, Object.keys(u.options), a);
|
|
3305
3307
|
o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3306
3308
|
continue;
|
|
3307
3309
|
}
|
|
3308
3310
|
}
|
|
3309
|
-
return
|
|
3311
|
+
return Mn(o);
|
|
3310
3312
|
}
|
|
3311
|
-
function
|
|
3313
|
+
function Rn(e, t) {
|
|
3312
3314
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3313
3315
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3314
3316
|
}, {})) : e;
|
|
3315
3317
|
}
|
|
3316
|
-
function
|
|
3318
|
+
function Un(e, t) {
|
|
3317
3319
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3318
|
-
return r[n] =
|
|
3320
|
+
return r[n] = Rn(e[n], t[n]), r;
|
|
3319
3321
|
}, y({}, e)) : e;
|
|
3320
3322
|
}
|
|
3321
3323
|
function Pe(e) {
|
|
@@ -3332,7 +3334,7 @@ function Pe(e) {
|
|
|
3332
3334
|
}
|
|
3333
3335
|
};
|
|
3334
3336
|
}
|
|
3335
|
-
function
|
|
3337
|
+
function Dn(e) {
|
|
3336
3338
|
return e === void 0 && (e = {
|
|
3337
3339
|
number: {},
|
|
3338
3340
|
dateTime: {},
|
|
@@ -3364,7 +3366,7 @@ function Un(e) {
|
|
|
3364
3366
|
})
|
|
3365
3367
|
};
|
|
3366
3368
|
}
|
|
3367
|
-
var
|
|
3369
|
+
var Qt = (
|
|
3368
3370
|
/** @class */
|
|
3369
3371
|
function() {
|
|
3370
3372
|
function e(t, r, n, i) {
|
|
@@ -3396,13 +3398,13 @@ var zt = (
|
|
|
3396
3398
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3397
3399
|
var a = i || {};
|
|
3398
3400
|
a.formatters;
|
|
3399
|
-
var o =
|
|
3401
|
+
var o = Qr(a, ["formatters"]);
|
|
3400
3402
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3401
3403
|
} else
|
|
3402
3404
|
this.ast = t;
|
|
3403
3405
|
if (!Array.isArray(this.ast))
|
|
3404
3406
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3405
|
-
this.formats =
|
|
3407
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
|
|
3406
3408
|
}
|
|
3407
3409
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3408
3410
|
get: function() {
|
|
@@ -3415,7 +3417,7 @@ var zt = (
|
|
|
3415
3417
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3416
3418
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3417
3419
|
}
|
|
3418
|
-
}, e.__parse =
|
|
3420
|
+
}, e.__parse = Ln, e.formats = {
|
|
3419
3421
|
number: {
|
|
3420
3422
|
integer: {
|
|
3421
3423
|
maximumFractionDigits: 0
|
|
@@ -3476,7 +3478,7 @@ var zt = (
|
|
|
3476
3478
|
}, e;
|
|
3477
3479
|
}()
|
|
3478
3480
|
);
|
|
3479
|
-
function
|
|
3481
|
+
function Gn(e, t) {
|
|
3480
3482
|
if (t == null)
|
|
3481
3483
|
return;
|
|
3482
3484
|
if (t in e)
|
|
@@ -3497,60 +3499,60 @@ function Dn(e, t) {
|
|
|
3497
3499
|
n = void 0;
|
|
3498
3500
|
return n;
|
|
3499
3501
|
}
|
|
3500
|
-
const O = {},
|
|
3502
|
+
const O = {}, Fn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Jt = (e, t) => {
|
|
3501
3503
|
if (t == null)
|
|
3502
3504
|
return;
|
|
3503
3505
|
if (t in O && e in O[t])
|
|
3504
3506
|
return O[t][e];
|
|
3505
3507
|
const r = ie(t);
|
|
3506
3508
|
for (let n = 0; n < r.length; n++) {
|
|
3507
|
-
const i = r[n], s =
|
|
3509
|
+
const i = r[n], s = kn(i, e);
|
|
3508
3510
|
if (s)
|
|
3509
|
-
return
|
|
3511
|
+
return Fn(e, t, s);
|
|
3510
3512
|
}
|
|
3511
3513
|
};
|
|
3512
|
-
let
|
|
3514
|
+
let Qe;
|
|
3513
3515
|
const ne = be({});
|
|
3514
|
-
function
|
|
3515
|
-
return
|
|
3516
|
+
function jn(e) {
|
|
3517
|
+
return Qe[e] || null;
|
|
3516
3518
|
}
|
|
3517
|
-
function
|
|
3518
|
-
return e in
|
|
3519
|
+
function qt(e) {
|
|
3520
|
+
return e in Qe;
|
|
3519
3521
|
}
|
|
3520
|
-
function
|
|
3521
|
-
if (!
|
|
3522
|
+
function kn(e, t) {
|
|
3523
|
+
if (!qt(e))
|
|
3522
3524
|
return null;
|
|
3523
|
-
const r =
|
|
3524
|
-
return
|
|
3525
|
+
const r = jn(e);
|
|
3526
|
+
return Gn(r, t);
|
|
3525
3527
|
}
|
|
3526
|
-
function
|
|
3528
|
+
function Vn(e) {
|
|
3527
3529
|
if (e == null)
|
|
3528
3530
|
return;
|
|
3529
3531
|
const t = ie(e);
|
|
3530
3532
|
for (let r = 0; r < t.length; r++) {
|
|
3531
3533
|
const n = t[r];
|
|
3532
|
-
if (
|
|
3534
|
+
if (qt(n))
|
|
3533
3535
|
return n;
|
|
3534
3536
|
}
|
|
3535
3537
|
}
|
|
3536
|
-
function
|
|
3537
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
3538
|
+
function Yt(e, ...t) {
|
|
3539
|
+
delete O[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3538
3540
|
}
|
|
3539
3541
|
Z(
|
|
3540
3542
|
[ne],
|
|
3541
3543
|
([e]) => Object.keys(e)
|
|
3542
3544
|
);
|
|
3543
|
-
ne.subscribe((e) =>
|
|
3545
|
+
ne.subscribe((e) => Qe = e);
|
|
3544
3546
|
const fe = {};
|
|
3545
|
-
function
|
|
3547
|
+
function Xn(e, t) {
|
|
3546
3548
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3547
3549
|
}
|
|
3548
|
-
function
|
|
3550
|
+
function Kt(e) {
|
|
3549
3551
|
return fe[e];
|
|
3550
3552
|
}
|
|
3551
|
-
function
|
|
3553
|
+
function zn(e) {
|
|
3552
3554
|
return ie(e).map((t) => {
|
|
3553
|
-
const r =
|
|
3555
|
+
const r = Kt(t);
|
|
3554
3556
|
return [t, r ? [...r] : []];
|
|
3555
3557
|
}).filter(([, t]) => t.length > 0);
|
|
3556
3558
|
}
|
|
@@ -3558,40 +3560,40 @@ function me(e) {
|
|
|
3558
3560
|
return e == null ? !1 : ie(e).some(
|
|
3559
3561
|
(t) => {
|
|
3560
3562
|
var r;
|
|
3561
|
-
return (r =
|
|
3563
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3562
3564
|
}
|
|
3563
3565
|
);
|
|
3564
3566
|
}
|
|
3565
3567
|
function Wn(e, t) {
|
|
3566
3568
|
return Promise.all(
|
|
3567
|
-
t.map((n) => (
|
|
3568
|
-
).then((n) =>
|
|
3569
|
+
t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
|
|
3570
|
+
).then((n) => Yt(e, ...n));
|
|
3569
3571
|
}
|
|
3570
3572
|
const J = {};
|
|
3571
|
-
function
|
|
3573
|
+
function er(e) {
|
|
3572
3574
|
if (!me(e))
|
|
3573
3575
|
return e in J ? J[e] : Promise.resolve();
|
|
3574
|
-
const t =
|
|
3576
|
+
const t = zn(e);
|
|
3575
3577
|
return J[e] = Promise.all(
|
|
3576
3578
|
t.map(
|
|
3577
3579
|
([r, n]) => Wn(r, n)
|
|
3578
3580
|
)
|
|
3579
3581
|
).then(() => {
|
|
3580
3582
|
if (me(e))
|
|
3581
|
-
return
|
|
3583
|
+
return er(e);
|
|
3582
3584
|
delete J[e];
|
|
3583
3585
|
}), J[e];
|
|
3584
3586
|
}
|
|
3585
|
-
var
|
|
3587
|
+
var mt = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3586
3588
|
var r = {};
|
|
3587
3589
|
for (var n in e)
|
|
3588
|
-
|
|
3589
|
-
if (e != null &&
|
|
3590
|
-
for (var n of
|
|
3591
|
-
t.indexOf(n) < 0 &&
|
|
3590
|
+
Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3591
|
+
if (e != null && mt)
|
|
3592
|
+
for (var n of mt(e))
|
|
3593
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3592
3594
|
return r;
|
|
3593
3595
|
};
|
|
3594
|
-
const
|
|
3596
|
+
const qn = {
|
|
3595
3597
|
number: {
|
|
3596
3598
|
scientific: { notation: "scientific" },
|
|
3597
3599
|
engineering: { notation: "engineering" },
|
|
@@ -3621,7 +3623,7 @@ const Jn = {
|
|
|
3621
3623
|
}
|
|
3622
3624
|
}
|
|
3623
3625
|
};
|
|
3624
|
-
function
|
|
3626
|
+
function Yn({ locale: e, id: t }) {
|
|
3625
3627
|
console.warn(
|
|
3626
3628
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3627
3629
|
e
|
|
@@ -3630,72 +3632,72 @@ function qn({ locale: e, id: t }) {
|
|
|
3630
3632
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3631
3633
|
);
|
|
3632
3634
|
}
|
|
3633
|
-
const
|
|
3635
|
+
const Kn = {
|
|
3634
3636
|
fallbackLocale: null,
|
|
3635
3637
|
loadingDelay: 200,
|
|
3636
|
-
formats:
|
|
3638
|
+
formats: qn,
|
|
3637
3639
|
warnOnMissingMessages: !0,
|
|
3638
3640
|
handleMissingMessage: void 0,
|
|
3639
3641
|
ignoreTag: !0
|
|
3640
|
-
}, q =
|
|
3641
|
-
function
|
|
3642
|
+
}, q = Kn;
|
|
3643
|
+
function z() {
|
|
3642
3644
|
return q;
|
|
3643
3645
|
}
|
|
3644
|
-
function
|
|
3645
|
-
const t = e, { formats: r } = t, n =
|
|
3646
|
+
function ei(e) {
|
|
3647
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3646
3648
|
let i = e.fallbackLocale;
|
|
3647
3649
|
if (e.initialLocale)
|
|
3648
3650
|
try {
|
|
3649
|
-
|
|
3651
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3650
3652
|
} catch (s) {
|
|
3651
3653
|
console.warn(
|
|
3652
3654
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3653
3655
|
);
|
|
3654
3656
|
}
|
|
3655
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3657
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
|
|
3656
3658
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3657
3659
|
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), $.set(i);
|
|
3658
3660
|
}
|
|
3659
3661
|
const Le = be(!1);
|
|
3660
|
-
var
|
|
3662
|
+
var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
|
|
3661
3663
|
for (var r in t || (t = {}))
|
|
3662
|
-
|
|
3663
|
-
if (
|
|
3664
|
-
for (var r of
|
|
3665
|
-
|
|
3664
|
+
ii.call(t, r) && pt(e, r, t[r]);
|
|
3665
|
+
if (dt)
|
|
3666
|
+
for (var r of dt(t))
|
|
3667
|
+
si.call(t, r) && pt(e, r, t[r]);
|
|
3666
3668
|
return e;
|
|
3667
|
-
},
|
|
3669
|
+
}, ai = (e, t) => ri(e, ni(t));
|
|
3668
3670
|
let ke;
|
|
3669
|
-
const
|
|
3670
|
-
function
|
|
3671
|
+
const de = be(null);
|
|
3672
|
+
function bt(e) {
|
|
3671
3673
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3672
3674
|
}
|
|
3673
|
-
function ie(e, t =
|
|
3674
|
-
const r =
|
|
3675
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3675
|
+
function ie(e, t = z().fallbackLocale) {
|
|
3676
|
+
const r = bt(e);
|
|
3677
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3676
3678
|
}
|
|
3677
3679
|
function L() {
|
|
3678
3680
|
return ke != null ? ke : void 0;
|
|
3679
3681
|
}
|
|
3680
|
-
|
|
3682
|
+
de.subscribe((e) => {
|
|
3681
3683
|
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3682
3684
|
});
|
|
3683
|
-
const
|
|
3684
|
-
if (e &&
|
|
3685
|
-
const { loadingDelay: t } =
|
|
3685
|
+
const hi = (e) => {
|
|
3686
|
+
if (e && Vn(e) && me(e)) {
|
|
3687
|
+
const { loadingDelay: t } = z();
|
|
3686
3688
|
let r;
|
|
3687
3689
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3688
3690
|
() => Le.set(!0),
|
|
3689
3691
|
t
|
|
3690
|
-
) : Le.set(!0),
|
|
3691
|
-
|
|
3692
|
+
) : Le.set(!0), er(e).then(() => {
|
|
3693
|
+
de.set(e);
|
|
3692
3694
|
}).finally(() => {
|
|
3693
3695
|
clearTimeout(r), Le.set(!1);
|
|
3694
3696
|
});
|
|
3695
3697
|
}
|
|
3696
|
-
return
|
|
3697
|
-
}, $ = oi(
|
|
3698
|
-
set:
|
|
3698
|
+
return de.set(e);
|
|
3699
|
+
}, $ = ai(oi({}, de), {
|
|
3700
|
+
set: hi
|
|
3699
3701
|
}), ye = (e) => {
|
|
3700
3702
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3701
3703
|
return (n) => {
|
|
@@ -3703,42 +3705,42 @@ const ai = (e) => {
|
|
|
3703
3705
|
return i in t ? t[i] : t[i] = e(n);
|
|
3704
3706
|
};
|
|
3705
3707
|
};
|
|
3706
|
-
var
|
|
3708
|
+
var ui = Object.defineProperty, pe = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3707
3709
|
for (var r in t || (t = {}))
|
|
3708
|
-
|
|
3709
|
-
if (
|
|
3710
|
-
for (var r of
|
|
3711
|
-
|
|
3710
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3711
|
+
if (pe)
|
|
3712
|
+
for (var r of pe(t))
|
|
3713
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3712
3714
|
return e;
|
|
3713
3715
|
}, Q = (e, t) => {
|
|
3714
3716
|
var r = {};
|
|
3715
3717
|
for (var n in e)
|
|
3716
|
-
|
|
3717
|
-
if (e != null &&
|
|
3718
|
-
for (var n of
|
|
3719
|
-
t.indexOf(n) < 0 &&
|
|
3718
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3719
|
+
if (e != null && pe)
|
|
3720
|
+
for (var n of pe(e))
|
|
3721
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3720
3722
|
return r;
|
|
3721
3723
|
};
|
|
3722
3724
|
const ee = (e, t) => {
|
|
3723
|
-
const { formats: r } =
|
|
3725
|
+
const { formats: r } = z();
|
|
3724
3726
|
if (e in r && t in r[e])
|
|
3725
3727
|
return r[e][t];
|
|
3726
3728
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3727
|
-
},
|
|
3729
|
+
}, li = ye(
|
|
3728
3730
|
(e) => {
|
|
3729
3731
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3730
3732
|
if (r == null)
|
|
3731
3733
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3732
3734
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3733
3735
|
}
|
|
3734
|
-
),
|
|
3736
|
+
), fi = ye(
|
|
3735
3737
|
(e) => {
|
|
3736
3738
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3737
3739
|
if (r == null)
|
|
3738
3740
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3739
3741
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3740
3742
|
}
|
|
3741
|
-
),
|
|
3743
|
+
), ci = ye(
|
|
3742
3744
|
(e) => {
|
|
3743
3745
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3744
3746
|
if (r == null)
|
|
@@ -3747,33 +3749,33 @@ const ee = (e, t) => {
|
|
|
3747
3749
|
);
|
|
3748
3750
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3749
3751
|
}
|
|
3750
|
-
),
|
|
3752
|
+
), mi = (e = {}) => {
|
|
3751
3753
|
var t = e, {
|
|
3752
3754
|
locale: r = L()
|
|
3753
3755
|
} = t, n = Q(t, [
|
|
3754
3756
|
"locale"
|
|
3755
3757
|
]);
|
|
3756
|
-
return
|
|
3757
|
-
},
|
|
3758
|
+
return li(Je({ locale: r }, n));
|
|
3759
|
+
}, di = (e = {}) => {
|
|
3758
3760
|
var t = e, {
|
|
3759
3761
|
locale: r = L()
|
|
3760
3762
|
} = t, n = Q(t, [
|
|
3761
3763
|
"locale"
|
|
3762
3764
|
]);
|
|
3763
|
-
return
|
|
3765
|
+
return fi(Je({ locale: r }, n));
|
|
3764
3766
|
}, pi = (e = {}) => {
|
|
3765
3767
|
var t = e, {
|
|
3766
3768
|
locale: r = L()
|
|
3767
3769
|
} = t, n = Q(t, [
|
|
3768
3770
|
"locale"
|
|
3769
3771
|
]);
|
|
3770
|
-
return
|
|
3771
|
-
},
|
|
3772
|
+
return ci(Je({ locale: r }, n));
|
|
3773
|
+
}, bi = ye(
|
|
3772
3774
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3773
|
-
(e, t = L()) => new
|
|
3774
|
-
ignoreTag:
|
|
3775
|
+
(e, t = L()) => new Qt(e, t, z().formats, {
|
|
3776
|
+
ignoreTag: z().ignoreTag
|
|
3775
3777
|
})
|
|
3776
|
-
),
|
|
3778
|
+
), gi = (e, t = {}) => {
|
|
3777
3779
|
var r, n, i, s;
|
|
3778
3780
|
let a = t;
|
|
3779
3781
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3786,9 +3788,9 @@ const ee = (e, t) => {
|
|
|
3786
3788
|
throw new Error(
|
|
3787
3789
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3788
3790
|
);
|
|
3789
|
-
let u =
|
|
3791
|
+
let u = Jt(e, l);
|
|
3790
3792
|
if (!u)
|
|
3791
|
-
u = (s = (i = (n = (r =
|
|
3793
|
+
u = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
|
3792
3794
|
else if (typeof u != "string")
|
|
3793
3795
|
return console.warn(
|
|
3794
3796
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3797,7 +3799,7 @@ const ee = (e, t) => {
|
|
|
3797
3799
|
return u;
|
|
3798
3800
|
let f = u;
|
|
3799
3801
|
try {
|
|
3800
|
-
f =
|
|
3802
|
+
f = bi(u, l).format(o);
|
|
3801
3803
|
} catch (c) {
|
|
3802
3804
|
c instanceof Error && console.warn(
|
|
3803
3805
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3805,20 +3807,20 @@ const ee = (e, t) => {
|
|
|
3805
3807
|
);
|
|
3806
3808
|
}
|
|
3807
3809
|
return f;
|
|
3808
|
-
},
|
|
3809
|
-
Z([$], () => gi);
|
|
3810
|
+
}, _i = (e, t) => pi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Jt(e, t), vi = Z([$, ne], () => gi);
|
|
3810
3811
|
Z([$], () => _i);
|
|
3811
3812
|
Z([$], () => yi);
|
|
3812
|
-
Z([
|
|
3813
|
-
|
|
3814
|
-
|
|
3813
|
+
Z([$], () => xi);
|
|
3814
|
+
Z([$, ne], () => Ei);
|
|
3815
|
+
function _t(e, t) {
|
|
3816
|
+
Yt(e, t);
|
|
3815
3817
|
}
|
|
3816
|
-
function
|
|
3817
|
-
|
|
3818
|
+
function Hi(e) {
|
|
3819
|
+
ei({
|
|
3818
3820
|
fallbackLocale: "en"
|
|
3819
3821
|
}), $.set(e);
|
|
3820
3822
|
}
|
|
3821
|
-
const
|
|
3823
|
+
const yt = {
|
|
3822
3824
|
en: {
|
|
3823
3825
|
header: {
|
|
3824
3826
|
general: "Cashier",
|
|
@@ -3841,18 +3843,18 @@ const gt = {
|
|
|
3841
3843
|
}
|
|
3842
3844
|
}
|
|
3843
3845
|
};
|
|
3844
|
-
function
|
|
3845
|
-
|
|
3846
|
+
function Bi(e) {
|
|
3847
|
+
dr(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}");
|
|
3846
3848
|
}
|
|
3847
|
-
const
|
|
3848
|
-
function
|
|
3849
|
+
const Ti = (e) => ({}), xt = (e) => ({}), wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), vt = (e) => ({});
|
|
3850
|
+
function Ht(e) {
|
|
3849
3851
|
let t, r, n;
|
|
3850
3852
|
return {
|
|
3851
3853
|
c() {
|
|
3852
|
-
t =
|
|
3854
|
+
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>', re(t, "class", "CashierHeaderLeftButton");
|
|
3853
3855
|
},
|
|
3854
3856
|
m(i, s) {
|
|
3855
|
-
M(i, t, s), r || (n =
|
|
3857
|
+
M(i, t, s), r || (n = Ot(
|
|
3856
3858
|
t,
|
|
3857
3859
|
"click",
|
|
3858
3860
|
/*back*/
|
|
@@ -3865,28 +3867,28 @@ function Et(e) {
|
|
|
3865
3867
|
}
|
|
3866
3868
|
};
|
|
3867
3869
|
}
|
|
3868
|
-
function
|
|
3870
|
+
function Ai(e) {
|
|
3869
3871
|
let t, r = (
|
|
3870
3872
|
/*backButton*/
|
|
3871
|
-
e[1] &&
|
|
3873
|
+
e[1] && Ht(e)
|
|
3872
3874
|
);
|
|
3873
3875
|
return {
|
|
3874
3876
|
c() {
|
|
3875
|
-
r && r.c(), t =
|
|
3877
|
+
r && r.c(), t = Ct();
|
|
3876
3878
|
},
|
|
3877
3879
|
m(n, i) {
|
|
3878
3880
|
r && r.m(n, i), M(n, t, i);
|
|
3879
3881
|
},
|
|
3880
3882
|
p(n, i) {
|
|
3881
3883
|
/*backButton*/
|
|
3882
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3884
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3883
3885
|
},
|
|
3884
3886
|
d(n) {
|
|
3885
3887
|
n && P(t), r && r.d(n);
|
|
3886
3888
|
}
|
|
3887
3889
|
};
|
|
3888
3890
|
}
|
|
3889
|
-
function
|
|
3891
|
+
function Ci(e) {
|
|
3890
3892
|
let t, r = (
|
|
3891
3893
|
/*$_*/
|
|
3892
3894
|
e[4](
|
|
@@ -3896,7 +3898,7 @@ function Ai(e) {
|
|
|
3896
3898
|
), n;
|
|
3897
3899
|
return {
|
|
3898
3900
|
c() {
|
|
3899
|
-
t =
|
|
3901
|
+
t = W("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
|
|
3900
3902
|
},
|
|
3901
3903
|
m(i, s) {
|
|
3902
3904
|
M(i, t, s), ce(t, n);
|
|
@@ -3907,21 +3909,21 @@ function Ai(e) {
|
|
|
3907
3909
|
i[4](
|
|
3908
3910
|
/*titleText*/
|
|
3909
3911
|
i[2]
|
|
3910
|
-
) + "") &&
|
|
3912
|
+
) + "") && _r(n, r);
|
|
3911
3913
|
},
|
|
3912
3914
|
d(i) {
|
|
3913
3915
|
i && P(t);
|
|
3914
3916
|
}
|
|
3915
3917
|
};
|
|
3916
3918
|
}
|
|
3917
|
-
function
|
|
3919
|
+
function Bt(e) {
|
|
3918
3920
|
let t, r, n;
|
|
3919
3921
|
return {
|
|
3920
3922
|
c() {
|
|
3921
|
-
t =
|
|
3923
|
+
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>', re(t, "class", "CashierHeaderRightButton");
|
|
3922
3924
|
},
|
|
3923
3925
|
m(i, s) {
|
|
3924
|
-
M(i, t, s), r || (n =
|
|
3926
|
+
M(i, t, s), r || (n = Ot(
|
|
3925
3927
|
t,
|
|
3926
3928
|
"click",
|
|
3927
3929
|
/*close*/
|
|
@@ -3934,28 +3936,28 @@ function vt(e) {
|
|
|
3934
3936
|
}
|
|
3935
3937
|
};
|
|
3936
3938
|
}
|
|
3937
|
-
function
|
|
3939
|
+
function Oi(e) {
|
|
3938
3940
|
let t, r = (
|
|
3939
3941
|
/*closeButton*/
|
|
3940
|
-
e[3] &&
|
|
3942
|
+
e[3] && Bt(e)
|
|
3941
3943
|
);
|
|
3942
3944
|
return {
|
|
3943
3945
|
c() {
|
|
3944
|
-
r && r.c(), t =
|
|
3946
|
+
r && r.c(), t = Ct();
|
|
3945
3947
|
},
|
|
3946
3948
|
m(n, i) {
|
|
3947
3949
|
r && r.m(n, i), M(n, t, i);
|
|
3948
3950
|
},
|
|
3949
3951
|
p(n, i) {
|
|
3950
3952
|
/*closeButton*/
|
|
3951
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3953
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3952
3954
|
},
|
|
3953
3955
|
d(n) {
|
|
3954
3956
|
n && P(t), r && r.d(n);
|
|
3955
3957
|
}
|
|
3956
3958
|
};
|
|
3957
3959
|
}
|
|
3958
|
-
function
|
|
3960
|
+
function Pi(e) {
|
|
3959
3961
|
let t, r, n, i;
|
|
3960
3962
|
const s = (
|
|
3961
3963
|
/*#slots*/
|
|
@@ -3965,8 +3967,8 @@ function Oi(e) {
|
|
|
3965
3967
|
e,
|
|
3966
3968
|
/*$$scope*/
|
|
3967
3969
|
e[14],
|
|
3968
|
-
|
|
3969
|
-
), o = a ||
|
|
3970
|
+
vt
|
|
3971
|
+
), o = a || Ai(e), l = (
|
|
3970
3972
|
/*#slots*/
|
|
3971
3973
|
e[15].title
|
|
3972
3974
|
), h = Ee(
|
|
@@ -3974,8 +3976,8 @@ function Oi(e) {
|
|
|
3974
3976
|
e,
|
|
3975
3977
|
/*$$scope*/
|
|
3976
3978
|
e[14],
|
|
3977
|
-
|
|
3978
|
-
), u = h ||
|
|
3979
|
+
Et
|
|
3980
|
+
), u = h || Ci(e), f = (
|
|
3979
3981
|
/*#slots*/
|
|
3980
3982
|
e[15].rightButton
|
|
3981
3983
|
), c = Ee(
|
|
@@ -3983,14 +3985,14 @@ function Oi(e) {
|
|
|
3983
3985
|
e,
|
|
3984
3986
|
/*$$scope*/
|
|
3985
3987
|
e[14],
|
|
3986
|
-
|
|
3987
|
-
),
|
|
3988
|
+
xt
|
|
3989
|
+
), d = c || Oi(e);
|
|
3988
3990
|
return {
|
|
3989
3991
|
c() {
|
|
3990
|
-
t =
|
|
3992
|
+
t = W("div"), o && o.c(), r = rt(), u && u.c(), n = rt(), d && d.c(), re(t, "class", "CashierHeader");
|
|
3991
3993
|
},
|
|
3992
3994
|
m(m, g) {
|
|
3993
|
-
M(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n),
|
|
3995
|
+
M(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n), d && d.m(t, null), e[16](t), i = !0;
|
|
3994
3996
|
},
|
|
3995
3997
|
p(m, [g]) {
|
|
3996
3998
|
a ? a.p && (!i || g & /*$$scope*/
|
|
@@ -4005,12 +4007,12 @@ function Oi(e) {
|
|
|
4005
4007
|
/*$$scope*/
|
|
4006
4008
|
m[14],
|
|
4007
4009
|
g,
|
|
4008
|
-
|
|
4010
|
+
Si
|
|
4009
4011
|
) : Be(
|
|
4010
4012
|
/*$$scope*/
|
|
4011
4013
|
m[14]
|
|
4012
4014
|
),
|
|
4013
|
-
|
|
4015
|
+
vt
|
|
4014
4016
|
) : o && o.p && (!i || g & /*backButton*/
|
|
4015
4017
|
2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
|
|
4016
4018
|
16384) && He(
|
|
@@ -4024,12 +4026,12 @@ function Oi(e) {
|
|
|
4024
4026
|
/*$$scope*/
|
|
4025
4027
|
m[14],
|
|
4026
4028
|
g,
|
|
4027
|
-
|
|
4029
|
+
wi
|
|
4028
4030
|
) : Be(
|
|
4029
4031
|
/*$$scope*/
|
|
4030
4032
|
m[14]
|
|
4031
4033
|
),
|
|
4032
|
-
|
|
4034
|
+
Et
|
|
4033
4035
|
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4034
4036
|
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4035
4037
|
16384) && He(
|
|
@@ -4043,72 +4045,72 @@ function Oi(e) {
|
|
|
4043
4045
|
/*$$scope*/
|
|
4044
4046
|
m[14],
|
|
4045
4047
|
g,
|
|
4046
|
-
|
|
4048
|
+
Ti
|
|
4047
4049
|
) : Be(
|
|
4048
4050
|
/*$$scope*/
|
|
4049
4051
|
m[14]
|
|
4050
4052
|
),
|
|
4051
|
-
|
|
4052
|
-
) :
|
|
4053
|
-
8) &&
|
|
4053
|
+
xt
|
|
4054
|
+
) : d && d.p && (!i || g & /*closeButton*/
|
|
4055
|
+
8) && d.p(m, i ? g : -1);
|
|
4054
4056
|
},
|
|
4055
4057
|
i(m) {
|
|
4056
|
-
i || (he(o, m), he(u, m), he(
|
|
4058
|
+
i || (he(o, m), he(u, m), he(d, m), i = !0);
|
|
4057
4059
|
},
|
|
4058
4060
|
o(m) {
|
|
4059
|
-
we(o, m), we(u, m), we(
|
|
4061
|
+
we(o, m), we(u, m), we(d, m), i = !1;
|
|
4060
4062
|
},
|
|
4061
4063
|
d(m) {
|
|
4062
|
-
m && P(t), o && o.d(m), u && u.d(m),
|
|
4064
|
+
m && P(t), o && o.d(m), u && u.d(m), d && d.d(m), e[16](null);
|
|
4063
4065
|
}
|
|
4064
4066
|
};
|
|
4065
4067
|
}
|
|
4066
|
-
function
|
|
4068
|
+
function Li(e, t, r) {
|
|
4067
4069
|
let n;
|
|
4068
|
-
|
|
4069
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t,
|
|
4070
|
+
mr(e, vi, (_) => r(4, n = _));
|
|
4071
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: h = "" } = t, { title: u = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4070
4072
|
const N = () => {
|
|
4071
4073
|
let _ = l;
|
|
4072
4074
|
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4073
4075
|
Object.keys(S).forEach((U) => {
|
|
4074
|
-
|
|
4076
|
+
_t(U, S[U]);
|
|
4075
4077
|
});
|
|
4076
4078
|
}).catch((S) => {
|
|
4077
4079
|
console.log(S);
|
|
4078
4080
|
});
|
|
4079
4081
|
};
|
|
4080
|
-
Object.keys(
|
|
4081
|
-
|
|
4082
|
+
Object.keys(yt).forEach((_) => {
|
|
4083
|
+
_t(_, yt[_]);
|
|
4082
4084
|
});
|
|
4083
4085
|
const C = () => {
|
|
4084
4086
|
let _ = document.createElement("style");
|
|
4085
|
-
_.innerHTML = a,
|
|
4087
|
+
_.innerHTML = a, d.appendChild(_);
|
|
4086
4088
|
}, H = () => {
|
|
4087
4089
|
let _ = new URL(o), S = document.createElement("style");
|
|
4088
4090
|
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4089
4091
|
S.innerHTML = U, setTimeout(
|
|
4090
4092
|
() => {
|
|
4091
|
-
|
|
4093
|
+
d.appendChild(S);
|
|
4092
4094
|
},
|
|
4093
4095
|
1
|
|
4094
4096
|
);
|
|
4095
4097
|
});
|
|
4096
4098
|
}, I = () => {
|
|
4097
|
-
|
|
4099
|
+
Hi(f);
|
|
4098
4100
|
}, w = () => {
|
|
4099
4101
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4100
4102
|
}, R = () => {
|
|
4101
4103
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4102
4104
|
}, se = () => {
|
|
4103
4105
|
r(1, m = !!h && h !== "false");
|
|
4104
|
-
},
|
|
4106
|
+
}, nr = () => {
|
|
4105
4107
|
r(3, v = !!c && c !== "false");
|
|
4106
|
-
},
|
|
4108
|
+
}, ir = () => {
|
|
4107
4109
|
r(2, g = u || "header.general");
|
|
4108
4110
|
};
|
|
4109
|
-
function
|
|
4111
|
+
function sr(_) {
|
|
4110
4112
|
Ne[_ ? "unshift" : "push"](() => {
|
|
4111
|
-
|
|
4113
|
+
d = _, r(0, d);
|
|
4112
4114
|
});
|
|
4113
4115
|
}
|
|
4114
4116
|
return e.$$set = (_) => {
|
|
@@ -4116,14 +4118,14 @@ function Pi(e, t, r) {
|
|
|
4116
4118
|
}, e.$$.update = () => {
|
|
4117
4119
|
e.$$.dirty & /*lang*/
|
|
4118
4120
|
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4119
|
-
6144 && f && u &&
|
|
4120
|
-
129 && a &&
|
|
4121
|
-
257 && o &&
|
|
4121
|
+
6144 && f && u && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4122
|
+
129 && a && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4123
|
+
257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4122
4124
|
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4123
4125
|
1024 && h && se(), e.$$.dirty & /*showclosebutton*/
|
|
4124
|
-
8192 && c &&
|
|
4126
|
+
8192 && c && nr();
|
|
4125
4127
|
}, [
|
|
4126
|
-
|
|
4128
|
+
d,
|
|
4127
4129
|
m,
|
|
4128
4130
|
g,
|
|
4129
4131
|
v,
|
|
@@ -4139,17 +4141,17 @@ function Pi(e, t, r) {
|
|
|
4139
4141
|
c,
|
|
4140
4142
|
s,
|
|
4141
4143
|
i,
|
|
4142
|
-
|
|
4144
|
+
sr
|
|
4143
4145
|
];
|
|
4144
4146
|
}
|
|
4145
|
-
class
|
|
4147
|
+
class Ni extends Or {
|
|
4146
4148
|
constructor(t) {
|
|
4147
|
-
super(),
|
|
4149
|
+
super(), Ar(
|
|
4148
4150
|
this,
|
|
4149
4151
|
t,
|
|
4152
|
+
Li,
|
|
4150
4153
|
Pi,
|
|
4151
|
-
|
|
4152
|
-
Bt,
|
|
4154
|
+
wt,
|
|
4153
4155
|
{
|
|
4154
4156
|
clientstyling: 7,
|
|
4155
4157
|
clientstylingurl: 8,
|
|
@@ -4159,7 +4161,7 @@ class Li extends Ar {
|
|
|
4159
4161
|
lang: 12,
|
|
4160
4162
|
showclosebutton: 13
|
|
4161
4163
|
},
|
|
4162
|
-
|
|
4164
|
+
Bi
|
|
4163
4165
|
);
|
|
4164
4166
|
}
|
|
4165
4167
|
get clientstyling() {
|
|
@@ -4205,7 +4207,7 @@ class Li extends Ar {
|
|
|
4205
4207
|
this.$$set({ showclosebutton: t }), A();
|
|
4206
4208
|
}
|
|
4207
4209
|
}
|
|
4208
|
-
|
|
4210
|
+
Cr(Ni, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4209
4211
|
export {
|
|
4210
|
-
|
|
4212
|
+
Ni as default
|
|
4211
4213
|
};
|