@everymatrix/cashier-header 1.54.11 → 1.55.0
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-B-XS1nal.cjs +5 -0
- package/components/{CashierHeader-Dfb8UZle.js → CashierHeader-DCGG7_tc.js} +376 -374
- package/components/{CashierHeader-CuMBjAeN.js → CashierHeader-SC4VFmyN.js} +491 -489
- 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--MbiLV6w.cjs +0 -5
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ee = (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 Ee = (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) && Ee(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Ke = (e, t) => ar(e, hr(t));
|
|
13
13
|
var B = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, 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));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
o(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t) e[r] = t[r];
|
|
34
34
|
return (
|
|
35
35
|
/** @type {T & S} */
|
|
36
36
|
e
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Tt(e) {
|
|
40
40
|
return e();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function tt() {
|
|
43
43
|
return /* @__PURE__ */ Object.create(null);
|
|
44
44
|
}
|
|
45
45
|
function te(e) {
|
|
46
|
-
e.forEach(
|
|
46
|
+
e.forEach(Tt);
|
|
47
47
|
}
|
|
48
48
|
function Ve(e) {
|
|
49
49
|
return typeof e == "function";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function wt(e, t) {
|
|
52
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function cr(e) {
|
|
55
55
|
return Object.keys(e).length === 0;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function St(e, ...t) {
|
|
58
58
|
if (e == null) {
|
|
59
59
|
for (const n of t)
|
|
60
60
|
n(void 0);
|
|
@@ -63,17 +63,17 @@ function Tt(e, ...t) {
|
|
|
63
63
|
const r = e.subscribe(...t);
|
|
64
64
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
e.$$.on_destroy.push(
|
|
66
|
+
function mr(e, t, r) {
|
|
67
|
+
e.$$.on_destroy.push(St(t, r));
|
|
68
68
|
}
|
|
69
69
|
function xe(e, t, r, n) {
|
|
70
70
|
if (e) {
|
|
71
|
-
const i =
|
|
71
|
+
const i = At(e, t, r, n);
|
|
72
72
|
return e[0](i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return e[1] && n ?
|
|
75
|
+
function At(e, t, r, n) {
|
|
76
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
77
77
|
}
|
|
78
78
|
function ve(e, t, r, n) {
|
|
79
79
|
if (e[2] && n) {
|
|
@@ -92,7 +92,7 @@ function ve(e, t, r, n) {
|
|
|
92
92
|
}
|
|
93
93
|
function He(e, t, r, n, i, s) {
|
|
94
94
|
if (i) {
|
|
95
|
-
const a =
|
|
95
|
+
const a = At(t, r, n, s);
|
|
96
96
|
e.p(a, i);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -108,14 +108,14 @@ function Be(e) {
|
|
|
108
108
|
function ce(e, t) {
|
|
109
109
|
e.appendChild(t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const n =
|
|
111
|
+
function pr(e, t, r) {
|
|
112
|
+
const n = dr(e);
|
|
113
113
|
if (!n.getElementById(t)) {
|
|
114
|
-
const i =
|
|
115
|
-
i.id = t, i.textContent = r,
|
|
114
|
+
const i = W("style");
|
|
115
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function dr(e) {
|
|
119
119
|
if (!e) return document;
|
|
120
120
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
121
121
|
return t && /** @type {ShadowRoot} */
|
|
@@ -124,7 +124,7 @@ function mr(e) {
|
|
|
124
124
|
t
|
|
125
125
|
) : e.ownerDocument;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function br(e, t) {
|
|
128
128
|
return ce(
|
|
129
129
|
/** @type {Document} */
|
|
130
130
|
e.head || e,
|
|
@@ -137,32 +137,32 @@ function M(e, t, r) {
|
|
|
137
137
|
function P(e) {
|
|
138
138
|
e.parentNode && e.parentNode.removeChild(e);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function W(e) {
|
|
141
141
|
return document.createElement(e);
|
|
142
142
|
}
|
|
143
143
|
function Xe(e) {
|
|
144
144
|
return document.createTextNode(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function rt() {
|
|
147
147
|
return Xe(" ");
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Ct() {
|
|
150
150
|
return Xe("");
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ot(e, t, r, n) {
|
|
153
153
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
154
154
|
}
|
|
155
155
|
function re(e, t, r) {
|
|
156
156
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function gr(e) {
|
|
159
159
|
return Array.from(e.childNodes);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function _r(e, t) {
|
|
162
162
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
163
163
|
t);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function yr(e) {
|
|
166
166
|
const t = {};
|
|
167
167
|
return e.childNodes.forEach(
|
|
168
168
|
/** @param {Element} node */
|
|
@@ -171,16 +171,16 @@ function gr(e) {
|
|
|
171
171
|
}
|
|
172
172
|
), t;
|
|
173
173
|
}
|
|
174
|
-
let
|
|
174
|
+
let ze;
|
|
175
175
|
function Y(e) {
|
|
176
|
-
|
|
176
|
+
ze = e;
|
|
177
177
|
}
|
|
178
178
|
const F = [], Ne = [];
|
|
179
179
|
let j = [];
|
|
180
|
-
const
|
|
180
|
+
const nt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
181
181
|
let Ie = !1;
|
|
182
|
-
function
|
|
183
|
-
Ie || (Ie = !0,
|
|
182
|
+
function xr() {
|
|
183
|
+
Ie || (Ie = !0, Er.then(A));
|
|
184
184
|
}
|
|
185
185
|
function Me(e) {
|
|
186
186
|
j.push(e);
|
|
@@ -190,12 +190,12 @@ let D = 0;
|
|
|
190
190
|
function A() {
|
|
191
191
|
if (D !== 0)
|
|
192
192
|
return;
|
|
193
|
-
const e =
|
|
193
|
+
const e = ze;
|
|
194
194
|
do {
|
|
195
195
|
try {
|
|
196
196
|
for (; D < F.length; ) {
|
|
197
197
|
const t = F[D];
|
|
198
|
-
D++, Y(t),
|
|
198
|
+
D++, Y(t), vr(t.$$);
|
|
199
199
|
}
|
|
200
200
|
} catch (t) {
|
|
201
201
|
throw F.length = 0, D = 0, t;
|
|
@@ -207,59 +207,59 @@ function A() {
|
|
|
207
207
|
}
|
|
208
208
|
j.length = 0;
|
|
209
209
|
} while (F.length);
|
|
210
|
-
for (;
|
|
211
|
-
|
|
210
|
+
for (; nt.length; )
|
|
211
|
+
nt.pop()();
|
|
212
212
|
Ie = !1, Te.clear(), Y(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function vr(e) {
|
|
215
215
|
if (e.fragment !== null) {
|
|
216
216
|
e.update(), te(e.before_update);
|
|
217
217
|
const t = e.dirty;
|
|
218
218
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Hr(e) {
|
|
222
222
|
const t = [], r = [];
|
|
223
223
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
224
224
|
}
|
|
225
225
|
const ae = /* @__PURE__ */ new Set();
|
|
226
|
-
let
|
|
227
|
-
function
|
|
226
|
+
let Br;
|
|
227
|
+
function he(e, t) {
|
|
228
228
|
e && e.i && (ae.delete(e), e.i(t));
|
|
229
229
|
}
|
|
230
230
|
function we(e, t, r, n) {
|
|
231
231
|
if (e && e.o) {
|
|
232
232
|
if (ae.has(e)) return;
|
|
233
|
-
ae.add(e),
|
|
233
|
+
ae.add(e), Br.c.push(() => {
|
|
234
234
|
ae.delete(e);
|
|
235
235
|
}), e.o(t);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Tr(e, t, r) {
|
|
239
239
|
const { fragment: n, after_update: i } = e.$$;
|
|
240
240
|
n && n.m(t, r), Me(() => {
|
|
241
|
-
const s = e.$$.on_mount.map(
|
|
241
|
+
const s = e.$$.on_mount.map(Tt).filter(Ve);
|
|
242
242
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
243
243
|
}), i.forEach(Me);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function wr(e, t) {
|
|
246
246
|
const r = e.$$;
|
|
247
|
-
r.fragment !== null && (
|
|
247
|
+
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 = []);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
249
|
+
function Sr(e, t) {
|
|
250
|
+
e.$$.dirty[0] === -1 && (F.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const l =
|
|
252
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
253
|
+
const l = ze;
|
|
254
254
|
Y(e);
|
|
255
|
-
const
|
|
255
|
+
const h = e.$$ = {
|
|
256
256
|
fragment: null,
|
|
257
257
|
ctx: [],
|
|
258
258
|
// state
|
|
259
259
|
props: s,
|
|
260
260
|
update: T,
|
|
261
261
|
not_equal: i,
|
|
262
|
-
bound:
|
|
262
|
+
bound: tt(),
|
|
263
263
|
// lifecycle
|
|
264
264
|
on_mount: [],
|
|
265
265
|
on_destroy: [],
|
|
@@ -268,28 +268,28 @@ function wr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
268
268
|
after_update: [],
|
|
269
269
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
270
270
|
// everything else
|
|
271
|
-
callbacks:
|
|
271
|
+
callbacks: tt(),
|
|
272
272
|
dirty: o,
|
|
273
273
|
skip_bound: !1,
|
|
274
274
|
root: t.target || l.$$.root
|
|
275
275
|
};
|
|
276
|
-
a && a(
|
|
277
|
-
let
|
|
278
|
-
if (
|
|
276
|
+
a && a(h.root);
|
|
277
|
+
let u = !1;
|
|
278
|
+
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
279
279
|
const m = p.length ? p[0] : c;
|
|
280
|
-
return
|
|
281
|
-
}) : [],
|
|
280
|
+
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;
|
|
281
|
+
}) : [], h.update(), u = !0, te(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
282
282
|
if (t.hydrate) {
|
|
283
|
-
const f =
|
|
284
|
-
|
|
283
|
+
const f = gr(t.target);
|
|
284
|
+
h.fragment && h.fragment.l(f), f.forEach(P);
|
|
285
285
|
} else
|
|
286
|
-
|
|
287
|
-
t.intro &&
|
|
286
|
+
h.fragment && h.fragment.c();
|
|
287
|
+
t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), A();
|
|
288
288
|
}
|
|
289
289
|
Y(l);
|
|
290
290
|
}
|
|
291
|
-
let
|
|
292
|
-
typeof HTMLElement == "function" && (
|
|
291
|
+
let Pt;
|
|
292
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
293
293
|
constructor(t, r, n) {
|
|
294
294
|
super();
|
|
295
295
|
/** The Svelte component constructor */
|
|
@@ -326,42 +326,42 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
connectedCallback() {
|
|
329
|
-
return
|
|
329
|
+
return et(this, null, function* () {
|
|
330
330
|
if (this.$$cn = !0, !this.$$c) {
|
|
331
331
|
let t = function(s) {
|
|
332
332
|
return () => {
|
|
333
333
|
let a;
|
|
334
334
|
return {
|
|
335
335
|
c: function() {
|
|
336
|
-
a =
|
|
336
|
+
a = W("slot"), s !== "default" && re(a, "name", s);
|
|
337
337
|
},
|
|
338
338
|
/**
|
|
339
339
|
* @param {HTMLElement} target
|
|
340
340
|
* @param {HTMLElement} [anchor]
|
|
341
341
|
*/
|
|
342
|
-
m: function(
|
|
343
|
-
M(
|
|
342
|
+
m: function(h, u) {
|
|
343
|
+
M(h, a, u);
|
|
344
344
|
},
|
|
345
|
-
d: function(
|
|
346
|
-
|
|
345
|
+
d: function(h) {
|
|
346
|
+
h && P(a);
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
351
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
352
352
|
return;
|
|
353
|
-
const r = {}, n =
|
|
353
|
+
const r = {}, n = yr(this);
|
|
354
354
|
for (const s of this.$$s)
|
|
355
355
|
s in n && (r[s] = [t(s)]);
|
|
356
356
|
for (const s of this.attributes) {
|
|
357
357
|
const a = this.$$g_p(s.name);
|
|
358
|
-
a in this.$$d || (this.$$d[a] =
|
|
358
|
+
a in this.$$d || (this.$$d[a] = ue(a, s.value, this.$$p_d, "toProp"));
|
|
359
359
|
}
|
|
360
360
|
for (const s in this.$$p_d)
|
|
361
361
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
362
362
|
this.$$c = new this.$$ctor({
|
|
363
363
|
target: this.shadowRoot || this,
|
|
364
|
-
props:
|
|
364
|
+
props: Ke(Ye({}, this.$$d), {
|
|
365
365
|
$$slots: r,
|
|
366
366
|
$$scope: {
|
|
367
367
|
ctx: []
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
372
372
|
this.$$r = !0;
|
|
373
373
|
for (const s in this.$$p_d)
|
|
374
374
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
375
|
-
const a =
|
|
375
|
+
const a = ue(
|
|
376
376
|
s,
|
|
377
377
|
this.$$d[s],
|
|
378
378
|
this.$$p_d,
|
|
@@ -396,7 +396,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
396
396
|
// and setting attributes through setAttribute etc, this is helpful
|
|
397
397
|
attributeChangedCallback(t, r, n) {
|
|
398
398
|
var i;
|
|
399
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
399
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
400
400
|
}
|
|
401
401
|
disconnectedCallback() {
|
|
402
402
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -409,7 +409,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
409
409
|
) || t;
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
|
-
function
|
|
412
|
+
function ue(e, t, r, n) {
|
|
413
413
|
var s;
|
|
414
414
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
415
415
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -439,8 +439,8 @@ function he(e, t, r, n) {
|
|
|
439
439
|
return t;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
let a = class extends
|
|
442
|
+
function Cr(e, t, r, n, i, s) {
|
|
443
|
+
let a = class extends Pt {
|
|
444
444
|
constructor() {
|
|
445
445
|
super(e, r, i), this.$$p_d = t;
|
|
446
446
|
}
|
|
@@ -456,8 +456,8 @@ function Sr(e, t, r, n, i, s) {
|
|
|
456
456
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
457
457
|
},
|
|
458
458
|
set(l) {
|
|
459
|
-
var
|
|
460
|
-
l =
|
|
459
|
+
var h;
|
|
460
|
+
l = ue(o, l, t), this.$$d[o] = l, (h = this.$$c) == null || h.$set({ [o]: l });
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
}), n.forEach((o) => {
|
|
@@ -470,7 +470,7 @@ function Sr(e, t, r, n, i, s) {
|
|
|
470
470
|
}), e.element = /** @type {any} */
|
|
471
471
|
a, a;
|
|
472
472
|
}
|
|
473
|
-
class
|
|
473
|
+
class Or {
|
|
474
474
|
constructor() {
|
|
475
475
|
/**
|
|
476
476
|
* ### PRIVATE API
|
|
@@ -491,7 +491,7 @@ class Ar {
|
|
|
491
491
|
}
|
|
492
492
|
/** @returns {void} */
|
|
493
493
|
$destroy() {
|
|
494
|
-
|
|
494
|
+
wr(this, 1), this.$destroy = T;
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
497
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -513,13 +513,13 @@ class Ar {
|
|
|
513
513
|
* @returns {void}
|
|
514
514
|
*/
|
|
515
515
|
$set(t) {
|
|
516
|
-
this.$$set && !
|
|
516
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
const
|
|
520
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
519
|
+
const Pr = "4";
|
|
520
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
521
521
|
const G = [];
|
|
522
|
-
function
|
|
522
|
+
function Lr(e, t) {
|
|
523
523
|
return {
|
|
524
524
|
subscribe: be(e, t).subscribe
|
|
525
525
|
};
|
|
@@ -528,13 +528,13 @@ function be(e, t = T) {
|
|
|
528
528
|
let r;
|
|
529
529
|
const n = /* @__PURE__ */ new Set();
|
|
530
530
|
function i(o) {
|
|
531
|
-
if (
|
|
531
|
+
if (wt(e, o) && (e = o, r)) {
|
|
532
532
|
const l = !G.length;
|
|
533
|
-
for (const
|
|
534
|
-
|
|
533
|
+
for (const h of n)
|
|
534
|
+
h[1](), G.push(h, e);
|
|
535
535
|
if (l) {
|
|
536
|
-
for (let
|
|
537
|
-
G[
|
|
536
|
+
for (let h = 0; h < G.length; h += 2)
|
|
537
|
+
G[h][0](G[h + 1]);
|
|
538
538
|
G.length = 0;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -543,9 +543,9 @@ function be(e, t = T) {
|
|
|
543
543
|
i(o(e));
|
|
544
544
|
}
|
|
545
545
|
function a(o, l = T) {
|
|
546
|
-
const
|
|
547
|
-
return n.add(
|
|
548
|
-
n.delete(
|
|
546
|
+
const h = [o, l];
|
|
547
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
548
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
551
|
return { set: i, update: s, subscribe: a };
|
|
@@ -555,24 +555,24 @@ function Z(e, t, r) {
|
|
|
555
555
|
if (!i.every(Boolean))
|
|
556
556
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
557
557
|
const s = t.length < 2;
|
|
558
|
-
return
|
|
558
|
+
return Lr(r, (a, o) => {
|
|
559
559
|
let l = !1;
|
|
560
|
-
const
|
|
561
|
-
let
|
|
560
|
+
const h = [];
|
|
561
|
+
let u = 0, f = T;
|
|
562
562
|
const c = () => {
|
|
563
|
-
if (
|
|
563
|
+
if (u)
|
|
564
564
|
return;
|
|
565
565
|
f();
|
|
566
|
-
const m = t(n ?
|
|
566
|
+
const m = t(n ? h[0] : h, a, o);
|
|
567
567
|
s ? a(m) : f = Ve(m) ? m : T;
|
|
568
568
|
}, p = i.map(
|
|
569
|
-
(m, g) =>
|
|
569
|
+
(m, g) => St(
|
|
570
570
|
m,
|
|
571
571
|
(v) => {
|
|
572
|
-
|
|
572
|
+
h[g] = v, u &= ~(1 << g), l && c();
|
|
573
573
|
},
|
|
574
574
|
() => {
|
|
575
|
-
|
|
575
|
+
u |= 1 << g;
|
|
576
576
|
}
|
|
577
577
|
)
|
|
578
578
|
);
|
|
@@ -581,70 +581,70 @@ function Z(e, t, r) {
|
|
|
581
581
|
};
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Nr(e) {
|
|
585
585
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
return
|
|
587
|
+
var Ir = function(t) {
|
|
588
|
+
return Mr(t) && !$r(t);
|
|
589
589
|
};
|
|
590
|
-
function
|
|
590
|
+
function Mr(e) {
|
|
591
591
|
return !!e && typeof e == "object";
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function $r(e) {
|
|
594
594
|
var t = Object.prototype.toString.call(e);
|
|
595
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
595
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
596
596
|
}
|
|
597
|
-
var
|
|
598
|
-
function
|
|
599
|
-
return e.$$typeof ===
|
|
597
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
598
|
+
function Dr(e) {
|
|
599
|
+
return e.$$typeof === Ur;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Gr(e) {
|
|
602
602
|
return Array.isArray(e) ? [] : {};
|
|
603
603
|
}
|
|
604
604
|
function K(e, t) {
|
|
605
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
605
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Gr(e), e, t) : e;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Fr(e, t, r) {
|
|
608
608
|
return e.concat(t).map(function(n) {
|
|
609
609
|
return K(n, r);
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function jr(e, t) {
|
|
613
613
|
if (!t.customMerge)
|
|
614
614
|
return k;
|
|
615
615
|
var r = t.customMerge(e);
|
|
616
616
|
return typeof r == "function" ? r : k;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function kr(e) {
|
|
619
619
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
620
620
|
return Object.propertyIsEnumerable.call(e, t);
|
|
621
621
|
}) : [];
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return Object.keys(e).concat(
|
|
623
|
+
function it(e) {
|
|
624
|
+
return Object.keys(e).concat(kr(e));
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Lt(e, t) {
|
|
627
627
|
try {
|
|
628
628
|
return t in e;
|
|
629
629
|
} catch (r) {
|
|
630
630
|
return !1;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
633
|
+
function Vr(e, t) {
|
|
634
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Xr(e, t, r) {
|
|
637
637
|
var n = {};
|
|
638
|
-
return r.isMergeableObject(e) &&
|
|
638
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
639
639
|
n[i] = K(e[i], r);
|
|
640
|
-
}),
|
|
641
|
-
|
|
640
|
+
}), it(t).forEach(function(i) {
|
|
641
|
+
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));
|
|
642
642
|
}), n;
|
|
643
643
|
}
|
|
644
644
|
function k(e, t, r) {
|
|
645
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
645
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
|
|
646
646
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
647
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
647
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
|
|
648
648
|
}
|
|
649
649
|
k.all = function(t, r) {
|
|
650
650
|
if (!Array.isArray(t))
|
|
@@ -653,8 +653,8 @@ k.all = function(t, r) {
|
|
|
653
653
|
return k(n, i, r);
|
|
654
654
|
}, {});
|
|
655
655
|
};
|
|
656
|
-
var
|
|
657
|
-
const
|
|
656
|
+
var zr = k, Wr = zr;
|
|
657
|
+
const Zr = /* @__PURE__ */ Nr(Wr);
|
|
658
658
|
var $e = function(e, t) {
|
|
659
659
|
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
660
660
|
r.__proto__ = n;
|
|
@@ -680,7 +680,7 @@ var y = function() {
|
|
|
680
680
|
return t;
|
|
681
681
|
}, y.apply(this, arguments);
|
|
682
682
|
};
|
|
683
|
-
function
|
|
683
|
+
function Qr(e, t) {
|
|
684
684
|
var r = {};
|
|
685
685
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
686
686
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -694,53 +694,55 @@ function Se(e, t, r) {
|
|
|
694
694
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
695
695
|
}
|
|
696
696
|
function Ae(e, t) {
|
|
697
|
-
var r = t && t.cache ? t.cache :
|
|
697
|
+
var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
|
|
698
698
|
return i(e, {
|
|
699
699
|
cache: r,
|
|
700
700
|
serializer: n
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Jr(e) {
|
|
704
704
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
var i =
|
|
706
|
+
function Nt(e, t, r, n) {
|
|
707
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
708
708
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function It(e, t, r) {
|
|
711
711
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
712
712
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function We(e, t, r, n, i) {
|
|
715
715
|
return r.bind(t, e, n, i);
|
|
716
716
|
}
|
|
717
|
-
function Jr(e, t) {
|
|
718
|
-
var r = e.length === 1 ? Qr : Pt;
|
|
719
|
-
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
720
|
-
}
|
|
721
717
|
function qr(e, t) {
|
|
722
|
-
|
|
718
|
+
var r = e.length === 1 ? Nt : It;
|
|
719
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
720
|
+
}
|
|
721
|
+
function Yr(e, t) {
|
|
722
|
+
return We(e, this, It, t.cache.create(), t.serializer);
|
|
723
723
|
}
|
|
724
|
-
|
|
724
|
+
function Kr(e, t) {
|
|
725
|
+
return We(e, this, Nt, t.cache.create(), t.serializer);
|
|
726
|
+
}
|
|
727
|
+
var en = function() {
|
|
725
728
|
return JSON.stringify(arguments);
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}()
|
|
738
|
-
), en = {
|
|
729
|
+
};
|
|
730
|
+
function Ze() {
|
|
731
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
732
|
+
}
|
|
733
|
+
Ze.prototype.get = function(e) {
|
|
734
|
+
return this.cache[e];
|
|
735
|
+
};
|
|
736
|
+
Ze.prototype.set = function(e, t) {
|
|
737
|
+
this.cache[e] = t;
|
|
738
|
+
};
|
|
739
|
+
var tn = {
|
|
739
740
|
create: function() {
|
|
740
|
-
return new
|
|
741
|
+
return new Ze();
|
|
741
742
|
}
|
|
742
743
|
}, Ce = {
|
|
743
|
-
variadic:
|
|
744
|
+
variadic: Yr,
|
|
745
|
+
monadic: Kr
|
|
744
746
|
}, d;
|
|
745
747
|
(function(e) {
|
|
746
748
|
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";
|
|
@@ -753,43 +755,43 @@ var V;
|
|
|
753
755
|
(function(e) {
|
|
754
756
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
755
757
|
})(V || (V = {}));
|
|
756
|
-
function
|
|
758
|
+
function st(e) {
|
|
757
759
|
return e.type === E.literal;
|
|
758
760
|
}
|
|
759
|
-
function
|
|
761
|
+
function rn(e) {
|
|
760
762
|
return e.type === E.argument;
|
|
761
763
|
}
|
|
762
|
-
function
|
|
764
|
+
function Mt(e) {
|
|
763
765
|
return e.type === E.number;
|
|
764
766
|
}
|
|
765
|
-
function
|
|
767
|
+
function $t(e) {
|
|
766
768
|
return e.type === E.date;
|
|
767
769
|
}
|
|
768
|
-
function
|
|
770
|
+
function Rt(e) {
|
|
769
771
|
return e.type === E.time;
|
|
770
772
|
}
|
|
771
|
-
function
|
|
773
|
+
function Ut(e) {
|
|
772
774
|
return e.type === E.select;
|
|
773
775
|
}
|
|
774
|
-
function
|
|
776
|
+
function Dt(e) {
|
|
775
777
|
return e.type === E.plural;
|
|
776
778
|
}
|
|
777
|
-
function
|
|
779
|
+
function nn(e) {
|
|
778
780
|
return e.type === E.pound;
|
|
779
781
|
}
|
|
780
|
-
function
|
|
782
|
+
function Gt(e) {
|
|
781
783
|
return e.type === E.tag;
|
|
782
784
|
}
|
|
783
|
-
function
|
|
785
|
+
function Ft(e) {
|
|
784
786
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
785
787
|
}
|
|
786
788
|
function Re(e) {
|
|
787
789
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
788
790
|
}
|
|
789
|
-
var
|
|
790
|
-
function
|
|
791
|
+
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;
|
|
792
|
+
function on(e) {
|
|
791
793
|
var t = {};
|
|
792
|
-
return e.replace(
|
|
794
|
+
return e.replace(sn, function(r) {
|
|
793
795
|
var n = r.length;
|
|
794
796
|
switch (r[0]) {
|
|
795
797
|
case "G":
|
|
@@ -878,18 +880,18 @@ function sn(e) {
|
|
|
878
880
|
return "";
|
|
879
881
|
}), t;
|
|
880
882
|
}
|
|
881
|
-
var
|
|
882
|
-
function
|
|
883
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
884
|
+
function hn(e) {
|
|
883
885
|
if (e.length === 0)
|
|
884
886
|
throw new Error("Number skeleton cannot be empty");
|
|
885
|
-
for (var t = e.split(
|
|
887
|
+
for (var t = e.split(an).filter(function(c) {
|
|
886
888
|
return c.length > 0;
|
|
887
889
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
888
890
|
var s = i[n], a = s.split("/");
|
|
889
891
|
if (a.length === 0)
|
|
890
892
|
throw new Error("Invalid number skeleton");
|
|
891
|
-
for (var o = a[0], l = a.slice(1),
|
|
892
|
-
var f = h
|
|
893
|
+
for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
|
|
894
|
+
var f = u[h];
|
|
893
895
|
if (f.length === 0)
|
|
894
896
|
throw new Error("Invalid number skeleton");
|
|
895
897
|
}
|
|
@@ -900,14 +902,14 @@ function an(e) {
|
|
|
900
902
|
function un(e) {
|
|
901
903
|
return e.replace(/^(.*?)-/, "");
|
|
902
904
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
905
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
906
|
+
function at(e) {
|
|
905
907
|
var t = {};
|
|
906
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
908
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
907
909
|
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)), "";
|
|
908
910
|
}), t;
|
|
909
911
|
}
|
|
910
|
-
function
|
|
912
|
+
function Xt(e) {
|
|
911
913
|
switch (e) {
|
|
912
914
|
case "sign-auto":
|
|
913
915
|
return {
|
|
@@ -947,7 +949,7 @@ function kt(e) {
|
|
|
947
949
|
};
|
|
948
950
|
}
|
|
949
951
|
}
|
|
950
|
-
function
|
|
952
|
+
function fn(e) {
|
|
951
953
|
var t;
|
|
952
954
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
953
955
|
notation: "engineering"
|
|
@@ -955,17 +957,17 @@ function ln(e) {
|
|
|
955
957
|
notation: "scientific"
|
|
956
958
|
}, e = e.slice(1)), t) {
|
|
957
959
|
var r = e.slice(0, 2);
|
|
958
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
960
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
959
961
|
throw new Error("Malformed concise eng/scientific notation");
|
|
960
962
|
t.minimumIntegerDigits = e.length;
|
|
961
963
|
}
|
|
962
964
|
return t;
|
|
963
965
|
}
|
|
964
|
-
function
|
|
965
|
-
var t = {}, r =
|
|
966
|
+
function ht(e) {
|
|
967
|
+
var t = {}, r = Xt(e);
|
|
966
968
|
return r || t;
|
|
967
969
|
}
|
|
968
|
-
function
|
|
970
|
+
function cn(e) {
|
|
969
971
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
970
972
|
var i = n[r];
|
|
971
973
|
switch (i.stem) {
|
|
@@ -1000,13 +1002,13 @@ function fn(e) {
|
|
|
1000
1002
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1001
1003
|
continue;
|
|
1002
1004
|
case "scientific":
|
|
1003
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1004
|
-
return y(y({}, l),
|
|
1005
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
|
1006
|
+
return y(y({}, l), ht(h));
|
|
1005
1007
|
}, {}));
|
|
1006
1008
|
continue;
|
|
1007
1009
|
case "engineering":
|
|
1008
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1009
|
-
return y(y({}, l),
|
|
1010
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
|
1011
|
+
return y(y({}, l), ht(h));
|
|
1010
1012
|
}, {}));
|
|
1011
1013
|
continue;
|
|
1012
1014
|
case "notation-simple":
|
|
@@ -1051,9 +1053,9 @@ function fn(e) {
|
|
|
1051
1053
|
case "integer-width":
|
|
1052
1054
|
if (i.options.length > 1)
|
|
1053
1055
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1054
|
-
i.options[0].replace(
|
|
1055
|
-
if (
|
|
1056
|
-
t.minimumIntegerDigits =
|
|
1056
|
+
i.options[0].replace(ln, function(l, h, u, f, c, p) {
|
|
1057
|
+
if (h)
|
|
1058
|
+
t.minimumIntegerDigits = u.length;
|
|
1057
1059
|
else {
|
|
1058
1060
|
if (f && c)
|
|
1059
1061
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1064,27 +1066,27 @@ function fn(e) {
|
|
|
1064
1066
|
});
|
|
1065
1067
|
continue;
|
|
1066
1068
|
}
|
|
1067
|
-
if (
|
|
1069
|
+
if (Vt.test(i.stem)) {
|
|
1068
1070
|
t.minimumIntegerDigits = i.stem.length;
|
|
1069
1071
|
continue;
|
|
1070
1072
|
}
|
|
1071
|
-
if (
|
|
1073
|
+
if (ot.test(i.stem)) {
|
|
1072
1074
|
if (i.options.length > 1)
|
|
1073
1075
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1074
|
-
i.stem.replace(
|
|
1075
|
-
return
|
|
1076
|
+
i.stem.replace(ot, function(l, h, u, f, c, p) {
|
|
1077
|
+
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1076
1078
|
});
|
|
1077
1079
|
var s = i.options[0];
|
|
1078
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1080
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
|
|
1079
1081
|
continue;
|
|
1080
1082
|
}
|
|
1081
|
-
if (
|
|
1082
|
-
t = y(y({}, t),
|
|
1083
|
+
if (kt.test(i.stem)) {
|
|
1084
|
+
t = y(y({}, t), at(i.stem));
|
|
1083
1085
|
continue;
|
|
1084
1086
|
}
|
|
1085
|
-
var a =
|
|
1087
|
+
var a = Xt(i.stem);
|
|
1086
1088
|
a && (t = y(y({}, t), a));
|
|
1087
|
-
var o =
|
|
1089
|
+
var o = fn(i.stem);
|
|
1088
1090
|
o && (t = y(y({}, t), o));
|
|
1089
1091
|
}
|
|
1090
1092
|
return t;
|
|
@@ -2504,22 +2506,22 @@ var oe = {
|
|
|
2504
2506
|
"h"
|
|
2505
2507
|
]
|
|
2506
2508
|
};
|
|
2507
|
-
function
|
|
2509
|
+
function mn(e, t) {
|
|
2508
2510
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2509
2511
|
var i = e.charAt(n);
|
|
2510
2512
|
if (i === "j") {
|
|
2511
2513
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2512
2514
|
s++, n++;
|
|
2513
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
|
2514
|
-
for ((
|
|
2515
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = pn(t);
|
|
2516
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
2515
2517
|
r += l;
|
|
2516
2518
|
for (; a-- > 0; )
|
|
2517
|
-
r =
|
|
2519
|
+
r = h + r;
|
|
2518
2520
|
} else i === "J" ? r += "H" : r += i;
|
|
2519
2521
|
}
|
|
2520
2522
|
return r;
|
|
2521
2523
|
}
|
|
2522
|
-
function
|
|
2524
|
+
function pn(e) {
|
|
2523
2525
|
var t = e.hourCycle;
|
|
2524
2526
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2525
2527
|
e.hourCycles && // @ts-ignore
|
|
@@ -2541,20 +2543,20 @@ function mn(e) {
|
|
|
2541
2543
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2542
2544
|
return i[0];
|
|
2543
2545
|
}
|
|
2544
|
-
var Oe,
|
|
2546
|
+
var Oe, dn = new RegExp("^".concat(jt.source, "*")), bn = new RegExp("".concat(jt.source, "*$"));
|
|
2545
2547
|
function b(e, t) {
|
|
2546
2548
|
return { start: e, end: t };
|
|
2547
2549
|
}
|
|
2548
|
-
var
|
|
2550
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, En = !!String.prototype.codePointAt, xn = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
|
|
2549
2551
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2550
2552
|
}, Ue = !0;
|
|
2551
2553
|
try {
|
|
2552
|
-
var
|
|
2553
|
-
Ue = ((Oe =
|
|
2554
|
+
var Tn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
|
+
Ue = ((Oe = Tn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2554
2556
|
} catch (e) {
|
|
2555
2557
|
Ue = !1;
|
|
2556
2558
|
}
|
|
2557
|
-
var
|
|
2559
|
+
var ut = gn ? (
|
|
2558
2560
|
// Native
|
|
2559
2561
|
function(t, r, n) {
|
|
2560
2562
|
return t.startsWith(r, n);
|
|
@@ -2564,7 +2566,7 @@ var at = bn ? (
|
|
|
2564
2566
|
function(t, r, n) {
|
|
2565
2567
|
return t.slice(n, n + r.length) === r;
|
|
2566
2568
|
}
|
|
2567
|
-
), De =
|
|
2569
|
+
), De = _n ? String.fromCodePoint : (
|
|
2568
2570
|
// IE11
|
|
2569
2571
|
function() {
|
|
2570
2572
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2576,9 +2578,9 @@ var at = bn ? (
|
|
|
2576
2578
|
}
|
|
2577
2579
|
return n;
|
|
2578
2580
|
}
|
|
2579
|
-
),
|
|
2581
|
+
), lt = (
|
|
2580
2582
|
// native
|
|
2581
|
-
|
|
2583
|
+
yn ? Object.fromEntries : (
|
|
2582
2584
|
// Ponyfill
|
|
2583
2585
|
function(t) {
|
|
2584
2586
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2588,7 +2590,7 @@ var at = bn ? (
|
|
|
2588
2590
|
return r;
|
|
2589
2591
|
}
|
|
2590
2592
|
)
|
|
2591
|
-
),
|
|
2593
|
+
), zt = En ? (
|
|
2592
2594
|
// Native
|
|
2593
2595
|
function(t, r) {
|
|
2594
2596
|
return t.codePointAt(r);
|
|
@@ -2602,7 +2604,7 @@ var at = bn ? (
|
|
|
2602
2604
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2603
2605
|
}
|
|
2604
2606
|
}
|
|
2605
|
-
),
|
|
2607
|
+
), wn = xn ? (
|
|
2606
2608
|
// Native
|
|
2607
2609
|
function(t) {
|
|
2608
2610
|
return t.trimStart();
|
|
@@ -2610,9 +2612,9 @@ var at = bn ? (
|
|
|
2610
2612
|
) : (
|
|
2611
2613
|
// Ponyfill
|
|
2612
2614
|
function(t) {
|
|
2613
|
-
return t.replace(
|
|
2615
|
+
return t.replace(dn, "");
|
|
2614
2616
|
}
|
|
2615
|
-
),
|
|
2617
|
+
), Sn = vn ? (
|
|
2616
2618
|
// Native
|
|
2617
2619
|
function(t) {
|
|
2618
2620
|
return t.trimEnd();
|
|
@@ -2620,32 +2622,32 @@ var at = bn ? (
|
|
|
2620
2622
|
) : (
|
|
2621
2623
|
// Ponyfill
|
|
2622
2624
|
function(t) {
|
|
2623
|
-
return t.replace(
|
|
2625
|
+
return t.replace(bn, "");
|
|
2624
2626
|
}
|
|
2625
2627
|
);
|
|
2626
|
-
function
|
|
2628
|
+
function Wt(e, t) {
|
|
2627
2629
|
return new RegExp(e, t);
|
|
2628
2630
|
}
|
|
2629
2631
|
var Ge;
|
|
2630
2632
|
if (Ue) {
|
|
2631
|
-
var
|
|
2633
|
+
var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2632
2634
|
Ge = function(t, r) {
|
|
2633
2635
|
var n;
|
|
2634
|
-
|
|
2635
|
-
var i =
|
|
2636
|
+
ft.lastIndex = r;
|
|
2637
|
+
var i = ft.exec(t);
|
|
2636
2638
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2637
2639
|
};
|
|
2638
2640
|
} else
|
|
2639
2641
|
Ge = function(t, r) {
|
|
2640
2642
|
for (var n = []; ; ) {
|
|
2641
|
-
var i =
|
|
2642
|
-
if (i === void 0 ||
|
|
2643
|
+
var i = zt(t, r);
|
|
2644
|
+
if (i === void 0 || Zt(i) || Pn(i))
|
|
2643
2645
|
break;
|
|
2644
2646
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2645
2647
|
}
|
|
2646
2648
|
return De.apply(void 0, n);
|
|
2647
2649
|
};
|
|
2648
|
-
var
|
|
2650
|
+
var An = (
|
|
2649
2651
|
/** @class */
|
|
2650
2652
|
function() {
|
|
2651
2653
|
function e(t, r) {
|
|
@@ -2711,8 +2713,8 @@ var Sn = (
|
|
|
2711
2713
|
if (this.bumpIf("</")) {
|
|
2712
2714
|
if (this.isEOF() || !Fe(this.char()))
|
|
2713
2715
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2714
|
-
var l = this.clonePosition(),
|
|
2715
|
-
return i !==
|
|
2716
|
+
var l = this.clonePosition(), h = this.parseTagName();
|
|
2717
|
+
return i !== h ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2716
2718
|
val: {
|
|
2717
2719
|
type: E.tag,
|
|
2718
2720
|
value: i,
|
|
@@ -2727,7 +2729,7 @@ var Sn = (
|
|
|
2727
2729
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2728
2730
|
}, e.prototype.parseTagName = function() {
|
|
2729
2731
|
var t = this.offset();
|
|
2730
|
-
for (this.bump(); !this.isEOF() &&
|
|
2732
|
+
for (this.bump(); !this.isEOF() && On(this.char()); )
|
|
2731
2733
|
this.bump();
|
|
2732
2734
|
return this.message.slice(t, this.offset());
|
|
2733
2735
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2756,7 +2758,7 @@ var Sn = (
|
|
|
2756
2758
|
};
|
|
2757
2759
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2758
2760
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2759
|
-
!
|
|
2761
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2760
2762
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2761
2763
|
if (this.isEOF() || this.char() !== 39)
|
|
2762
2764
|
return null;
|
|
@@ -2837,26 +2839,26 @@ var Sn = (
|
|
|
2837
2839
|
case "date":
|
|
2838
2840
|
case "time": {
|
|
2839
2841
|
this.bumpSpace();
|
|
2840
|
-
var
|
|
2842
|
+
var h = null;
|
|
2841
2843
|
if (this.bumpIf(",")) {
|
|
2842
2844
|
this.bumpSpace();
|
|
2843
|
-
var
|
|
2845
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2844
2846
|
if (f.err)
|
|
2845
2847
|
return f;
|
|
2846
|
-
var c =
|
|
2848
|
+
var c = Sn(f.val);
|
|
2847
2849
|
if (c.length === 0)
|
|
2848
2850
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2849
|
-
var p = b(
|
|
2850
|
-
|
|
2851
|
+
var p = b(u, this.clonePosition());
|
|
2852
|
+
h = { style: c, styleLocation: p };
|
|
2851
2853
|
}
|
|
2852
2854
|
var m = this.tryParseArgumentClose(i);
|
|
2853
2855
|
if (m.err)
|
|
2854
2856
|
return m;
|
|
2855
2857
|
var g = b(i, this.clonePosition());
|
|
2856
|
-
if (
|
|
2857
|
-
var v =
|
|
2858
|
+
if (h && ut(h == null ? void 0 : h.style, "::", 0)) {
|
|
2859
|
+
var v = wn(h.style.slice(2));
|
|
2858
2860
|
if (o === "number") {
|
|
2859
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2861
|
+
var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
|
|
2860
2862
|
return f.err ? f : {
|
|
2861
2863
|
val: { type: E.number, value: n, location: g, style: f.val },
|
|
2862
2864
|
err: null
|
|
@@ -2865,12 +2867,12 @@ var Sn = (
|
|
|
2865
2867
|
if (v.length === 0)
|
|
2866
2868
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2867
2869
|
var N = v;
|
|
2868
|
-
this.locale && (N =
|
|
2870
|
+
this.locale && (N = mn(v, this.locale));
|
|
2869
2871
|
var c = {
|
|
2870
2872
|
type: V.dateTime,
|
|
2871
2873
|
pattern: N,
|
|
2872
|
-
location:
|
|
2873
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2874
|
+
location: h.styleLocation,
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? on(N) : {}
|
|
2874
2876
|
}, C = o === "date" ? E.date : E.time;
|
|
2875
2877
|
return {
|
|
2876
2878
|
val: { type: C, value: n, location: g, style: c },
|
|
@@ -2883,7 +2885,7 @@ var Sn = (
|
|
|
2883
2885
|
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2884
2886
|
value: n,
|
|
2885
2887
|
location: g,
|
|
2886
|
-
style: (s =
|
|
2888
|
+
style: (s = h == null ? void 0 : h.style) !== null && s !== void 0 ? s : null
|
|
2887
2889
|
},
|
|
2888
2890
|
err: null
|
|
2889
2891
|
};
|
|
@@ -2916,7 +2918,7 @@ var Sn = (
|
|
|
2916
2918
|
val: {
|
|
2917
2919
|
type: E.select,
|
|
2918
2920
|
value: n,
|
|
2919
|
-
options:
|
|
2921
|
+
options: lt(R.val),
|
|
2920
2922
|
location: se
|
|
2921
2923
|
},
|
|
2922
2924
|
err: null
|
|
@@ -2924,7 +2926,7 @@ var Sn = (
|
|
|
2924
2926
|
val: {
|
|
2925
2927
|
type: E.plural,
|
|
2926
2928
|
value: n,
|
|
2927
|
-
options:
|
|
2929
|
+
options: lt(R.val),
|
|
2928
2930
|
offset: w,
|
|
2929
2931
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2930
2932
|
location: se
|
|
@@ -2975,7 +2977,7 @@ var Sn = (
|
|
|
2975
2977
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2976
2978
|
var n = [];
|
|
2977
2979
|
try {
|
|
2978
|
-
n =
|
|
2980
|
+
n = hn(t);
|
|
2979
2981
|
} catch (i) {
|
|
2980
2982
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2981
2983
|
}
|
|
@@ -2984,25 +2986,25 @@ var Sn = (
|
|
|
2984
2986
|
type: V.number,
|
|
2985
2987
|
tokens: n,
|
|
2986
2988
|
location: r,
|
|
2987
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2989
|
+
parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
|
|
2988
2990
|
},
|
|
2989
2991
|
err: null
|
|
2990
2992
|
};
|
|
2991
2993
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2992
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
|
2993
|
-
if (
|
|
2994
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
|
|
2995
|
+
if (h.length === 0) {
|
|
2994
2996
|
var f = this.clonePosition();
|
|
2995
2997
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2996
2998
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2997
2999
|
if (c.err)
|
|
2998
3000
|
return c;
|
|
2999
|
-
|
|
3001
|
+
u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
3000
3002
|
} else
|
|
3001
3003
|
break;
|
|
3002
3004
|
}
|
|
3003
|
-
if (l.has(
|
|
3004
|
-
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3005
|
-
|
|
3005
|
+
if (l.has(h))
|
|
3006
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3007
|
+
h === "other" && (a = !0), this.bumpSpace();
|
|
3006
3008
|
var p = this.clonePosition();
|
|
3007
3009
|
if (!this.bumpIf("{"))
|
|
3008
3010
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3013,12 +3015,12 @@ var Sn = (
|
|
|
3013
3015
|
if (g.err)
|
|
3014
3016
|
return g;
|
|
3015
3017
|
o.push([
|
|
3016
|
-
|
|
3018
|
+
h,
|
|
3017
3019
|
{
|
|
3018
3020
|
value: m.val,
|
|
3019
3021
|
location: b(p, this.clonePosition())
|
|
3020
3022
|
}
|
|
3021
|
-
]), l.add(
|
|
3023
|
+
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
|
3022
3024
|
}
|
|
3023
3025
|
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3024
3026
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3032,7 +3034,7 @@ var Sn = (
|
|
|
3032
3034
|
break;
|
|
3033
3035
|
}
|
|
3034
3036
|
var l = b(i, this.clonePosition());
|
|
3035
|
-
return s ? (a *= n,
|
|
3037
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3036
3038
|
}, e.prototype.offset = function() {
|
|
3037
3039
|
return this.position.offset;
|
|
3038
3040
|
}, e.prototype.isEOF = function() {
|
|
@@ -3047,7 +3049,7 @@ var Sn = (
|
|
|
3047
3049
|
var t = this.position.offset;
|
|
3048
3050
|
if (t >= this.message.length)
|
|
3049
3051
|
throw Error("out of bound");
|
|
3050
|
-
var r =
|
|
3052
|
+
var r = zt(this.message, t);
|
|
3051
3053
|
if (r === void 0)
|
|
3052
3054
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3053
3055
|
return r;
|
|
@@ -3066,7 +3068,7 @@ var Sn = (
|
|
|
3066
3068
|
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);
|
|
3067
3069
|
}
|
|
3068
3070
|
}, e.prototype.bumpIf = function(t) {
|
|
3069
|
-
if (
|
|
3071
|
+
if (ut(this.message, t, this.offset())) {
|
|
3070
3072
|
for (var r = 0; r < t.length; r++)
|
|
3071
3073
|
this.bump();
|
|
3072
3074
|
return !0;
|
|
@@ -3088,7 +3090,7 @@ var Sn = (
|
|
|
3088
3090
|
break;
|
|
3089
3091
|
}
|
|
3090
3092
|
}, e.prototype.bumpSpace = function() {
|
|
3091
|
-
for (; !this.isEOF() &&
|
|
3093
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3092
3094
|
this.bump();
|
|
3093
3095
|
}, e.prototype.peek = function() {
|
|
3094
3096
|
if (this.isEOF())
|
|
@@ -3101,29 +3103,29 @@ var Sn = (
|
|
|
3101
3103
|
function Fe(e) {
|
|
3102
3104
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3103
3105
|
}
|
|
3104
|
-
function
|
|
3106
|
+
function Cn(e) {
|
|
3105
3107
|
return Fe(e) || e === 47;
|
|
3106
3108
|
}
|
|
3107
|
-
function
|
|
3109
|
+
function On(e) {
|
|
3108
3110
|
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;
|
|
3109
3111
|
}
|
|
3110
|
-
function
|
|
3112
|
+
function Zt(e) {
|
|
3111
3113
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3112
3114
|
}
|
|
3113
|
-
function
|
|
3115
|
+
function Pn(e) {
|
|
3114
3116
|
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;
|
|
3115
3117
|
}
|
|
3116
3118
|
function je(e) {
|
|
3117
3119
|
e.forEach(function(t) {
|
|
3118
|
-
if (delete t.location,
|
|
3120
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3119
3121
|
for (var r in t.options)
|
|
3120
3122
|
delete t.options[r].location, je(t.options[r].value);
|
|
3121
|
-
else
|
|
3123
|
+
else Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Gt(t) && je(t.children);
|
|
3122
3124
|
});
|
|
3123
3125
|
}
|
|
3124
|
-
function
|
|
3126
|
+
function Ln(e, t) {
|
|
3125
3127
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3126
|
-
var r = new
|
|
3128
|
+
var r = new An(e, t).parse();
|
|
3127
3129
|
if (r.err) {
|
|
3128
3130
|
var n = SyntaxError(d[r.err.kind]);
|
|
3129
3131
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3146,7 +3148,7 @@ var _e = (
|
|
|
3146
3148
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3147
3149
|
}, t;
|
|
3148
3150
|
}(Error)
|
|
3149
|
-
),
|
|
3151
|
+
), ct = (
|
|
3150
3152
|
/** @class */
|
|
3151
3153
|
function(e) {
|
|
3152
3154
|
ge(t, e);
|
|
@@ -3155,7 +3157,7 @@ var _e = (
|
|
|
3155
3157
|
}
|
|
3156
3158
|
return t;
|
|
3157
3159
|
}(_e)
|
|
3158
|
-
),
|
|
3160
|
+
), Nn = (
|
|
3159
3161
|
/** @class */
|
|
3160
3162
|
function(e) {
|
|
3161
3163
|
ge(t, e);
|
|
@@ -3164,7 +3166,7 @@ var _e = (
|
|
|
3164
3166
|
}
|
|
3165
3167
|
return t;
|
|
3166
3168
|
}(_e)
|
|
3167
|
-
),
|
|
3169
|
+
), In = (
|
|
3168
3170
|
/** @class */
|
|
3169
3171
|
function(e) {
|
|
3170
3172
|
ge(t, e);
|
|
@@ -3177,78 +3179,78 @@ var _e = (
|
|
|
3177
3179
|
(function(e) {
|
|
3178
3180
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3179
3181
|
})(x || (x = {}));
|
|
3180
|
-
function
|
|
3182
|
+
function Mn(e) {
|
|
3181
3183
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3182
3184
|
var n = t[t.length - 1];
|
|
3183
3185
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3184
3186
|
}, []);
|
|
3185
3187
|
}
|
|
3186
|
-
function
|
|
3188
|
+
function $n(e) {
|
|
3187
3189
|
return typeof e == "function";
|
|
3188
3190
|
}
|
|
3189
3191
|
function le(e, t, r, n, i, s, a) {
|
|
3190
|
-
if (e.length === 1 &&
|
|
3192
|
+
if (e.length === 1 && st(e[0]))
|
|
3191
3193
|
return [
|
|
3192
3194
|
{
|
|
3193
3195
|
type: x.literal,
|
|
3194
3196
|
value: e[0].value
|
|
3195
3197
|
}
|
|
3196
3198
|
];
|
|
3197
|
-
for (var o = [], l = 0,
|
|
3198
|
-
var
|
|
3199
|
-
if (
|
|
3199
|
+
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
|
3200
|
+
var u = h[l];
|
|
3201
|
+
if (st(u)) {
|
|
3200
3202
|
o.push({
|
|
3201
3203
|
type: x.literal,
|
|
3202
|
-
value:
|
|
3204
|
+
value: u.value
|
|
3203
3205
|
});
|
|
3204
3206
|
continue;
|
|
3205
3207
|
}
|
|
3206
|
-
if (
|
|
3208
|
+
if (nn(u)) {
|
|
3207
3209
|
typeof s == "number" && o.push({
|
|
3208
3210
|
type: x.literal,
|
|
3209
3211
|
value: r.getNumberFormat(t).format(s)
|
|
3210
3212
|
});
|
|
3211
3213
|
continue;
|
|
3212
3214
|
}
|
|
3213
|
-
var f =
|
|
3215
|
+
var f = u.value;
|
|
3214
3216
|
if (!(i && f in i))
|
|
3215
|
-
throw new
|
|
3217
|
+
throw new In(f, a);
|
|
3216
3218
|
var c = i[f];
|
|
3217
|
-
if (
|
|
3219
|
+
if (rn(u)) {
|
|
3218
3220
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3219
3221
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3220
3222
|
value: c
|
|
3221
3223
|
});
|
|
3222
3224
|
continue;
|
|
3223
3225
|
}
|
|
3224
|
-
if (
|
|
3225
|
-
var p = typeof
|
|
3226
|
+
if ($t(u)) {
|
|
3227
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Re(u.style) ? u.style.parsedOptions : void 0;
|
|
3226
3228
|
o.push({
|
|
3227
3229
|
type: x.literal,
|
|
3228
3230
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3229
3231
|
});
|
|
3230
3232
|
continue;
|
|
3231
3233
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
var p = typeof
|
|
3234
|
+
if (Rt(u)) {
|
|
3235
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Re(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3234
3236
|
o.push({
|
|
3235
3237
|
type: x.literal,
|
|
3236
3238
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3237
3239
|
});
|
|
3238
3240
|
continue;
|
|
3239
3241
|
}
|
|
3240
|
-
if (
|
|
3241
|
-
var p = typeof
|
|
3242
|
+
if (Mt(u)) {
|
|
3243
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Ft(u.style) ? u.style.parsedOptions : void 0;
|
|
3242
3244
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3243
3245
|
type: x.literal,
|
|
3244
3246
|
value: r.getNumberFormat(t, p).format(c)
|
|
3245
3247
|
});
|
|
3246
3248
|
continue;
|
|
3247
3249
|
}
|
|
3248
|
-
if (
|
|
3249
|
-
var m =
|
|
3250
|
-
if (
|
|
3251
|
-
throw new
|
|
3250
|
+
if (Gt(u)) {
|
|
3251
|
+
var m = u.children, g = u.value, v = i[g];
|
|
3252
|
+
if (!$n(v))
|
|
3253
|
+
throw new Nn(g, "function", a);
|
|
3252
3254
|
var N = le(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
3253
3255
|
return w.value;
|
|
3254
3256
|
}));
|
|
@@ -3259,39 +3261,39 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3259
3261
|
};
|
|
3260
3262
|
}));
|
|
3261
3263
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
var H =
|
|
3264
|
+
if (Ut(u)) {
|
|
3265
|
+
var H = u.options[c] || u.options.other;
|
|
3264
3266
|
if (!H)
|
|
3265
|
-
throw new
|
|
3267
|
+
throw new ct(u.value, c, Object.keys(u.options), a);
|
|
3266
3268
|
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3267
3269
|
continue;
|
|
3268
3270
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
var H =
|
|
3271
|
+
if (Dt(u)) {
|
|
3272
|
+
var H = u.options["=".concat(c)];
|
|
3271
3273
|
if (!H) {
|
|
3272
3274
|
if (!Intl.PluralRules)
|
|
3273
3275
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3274
3276
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3275
3277
|
`, X.MISSING_INTL_API, a);
|
|
3276
|
-
var I = r.getPluralRules(t, { type:
|
|
3277
|
-
H =
|
|
3278
|
+
var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3279
|
+
H = u.options[I] || u.options.other;
|
|
3278
3280
|
}
|
|
3279
3281
|
if (!H)
|
|
3280
|
-
throw new
|
|
3281
|
-
o.push.apply(o, le(H.value, t, r, n, i, c - (
|
|
3282
|
+
throw new ct(u.value, c, Object.keys(u.options), a);
|
|
3283
|
+
o.push.apply(o, le(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3282
3284
|
continue;
|
|
3283
3285
|
}
|
|
3284
3286
|
}
|
|
3285
|
-
return
|
|
3287
|
+
return Mn(o);
|
|
3286
3288
|
}
|
|
3287
|
-
function
|
|
3289
|
+
function Rn(e, t) {
|
|
3288
3290
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3289
3291
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3290
3292
|
}, {})) : e;
|
|
3291
3293
|
}
|
|
3292
|
-
function
|
|
3294
|
+
function Un(e, t) {
|
|
3293
3295
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3294
|
-
return r[n] =
|
|
3296
|
+
return r[n] = Rn(e[n], t[n]), r;
|
|
3295
3297
|
}, y({}, e)) : e;
|
|
3296
3298
|
}
|
|
3297
3299
|
function Pe(e) {
|
|
@@ -3308,7 +3310,7 @@ function Pe(e) {
|
|
|
3308
3310
|
}
|
|
3309
3311
|
};
|
|
3310
3312
|
}
|
|
3311
|
-
function
|
|
3313
|
+
function Dn(e) {
|
|
3312
3314
|
return e === void 0 && (e = {
|
|
3313
3315
|
number: {},
|
|
3314
3316
|
dateTime: {},
|
|
@@ -3340,7 +3342,7 @@ function Un(e) {
|
|
|
3340
3342
|
})
|
|
3341
3343
|
};
|
|
3342
3344
|
}
|
|
3343
|
-
var
|
|
3345
|
+
var Qt = (
|
|
3344
3346
|
/** @class */
|
|
3345
3347
|
function() {
|
|
3346
3348
|
function e(t, r, n, i) {
|
|
@@ -3351,13 +3353,13 @@ var zt = (
|
|
|
3351
3353
|
dateTime: {},
|
|
3352
3354
|
pluralRules: {}
|
|
3353
3355
|
}, this.format = function(l) {
|
|
3354
|
-
var
|
|
3355
|
-
if (
|
|
3356
|
-
return
|
|
3357
|
-
var
|
|
3356
|
+
var h = s.formatToParts(l);
|
|
3357
|
+
if (h.length === 1)
|
|
3358
|
+
return h[0].value;
|
|
3359
|
+
var u = h.reduce(function(f, c) {
|
|
3358
3360
|
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3359
3361
|
}, []);
|
|
3360
|
-
return
|
|
3362
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3361
3363
|
}, this.formatToParts = function(l) {
|
|
3362
3364
|
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3363
3365
|
}, this.resolvedOptions = function() {
|
|
@@ -3372,13 +3374,13 @@ var zt = (
|
|
|
3372
3374
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3373
3375
|
var a = i || {};
|
|
3374
3376
|
a.formatters;
|
|
3375
|
-
var o =
|
|
3377
|
+
var o = Qr(a, ["formatters"]);
|
|
3376
3378
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3377
3379
|
} else
|
|
3378
3380
|
this.ast = t;
|
|
3379
3381
|
if (!Array.isArray(this.ast))
|
|
3380
3382
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3381
|
-
this.formats =
|
|
3383
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
|
|
3382
3384
|
}
|
|
3383
3385
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3384
3386
|
get: function() {
|
|
@@ -3391,7 +3393,7 @@ var zt = (
|
|
|
3391
3393
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3392
3394
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3393
3395
|
}
|
|
3394
|
-
}, e.__parse =
|
|
3396
|
+
}, e.__parse = Ln, e.formats = {
|
|
3395
3397
|
number: {
|
|
3396
3398
|
integer: {
|
|
3397
3399
|
maximumFractionDigits: 0
|
|
@@ -3452,7 +3454,7 @@ var zt = (
|
|
|
3452
3454
|
}, e;
|
|
3453
3455
|
}()
|
|
3454
3456
|
);
|
|
3455
|
-
function
|
|
3457
|
+
function Gn(e, t) {
|
|
3456
3458
|
if (t == null)
|
|
3457
3459
|
return;
|
|
3458
3460
|
if (t in e)
|
|
@@ -3473,60 +3475,60 @@ function Dn(e, t) {
|
|
|
3473
3475
|
n = void 0;
|
|
3474
3476
|
return n;
|
|
3475
3477
|
}
|
|
3476
|
-
const O = {},
|
|
3478
|
+
const O = {}, Fn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Jt = (e, t) => {
|
|
3477
3479
|
if (t == null)
|
|
3478
3480
|
return;
|
|
3479
3481
|
if (t in O && e in O[t])
|
|
3480
3482
|
return O[t][e];
|
|
3481
3483
|
const r = ie(t);
|
|
3482
3484
|
for (let n = 0; n < r.length; n++) {
|
|
3483
|
-
const i = r[n], s =
|
|
3485
|
+
const i = r[n], s = kn(i, e);
|
|
3484
3486
|
if (s)
|
|
3485
|
-
return
|
|
3487
|
+
return Fn(e, t, s);
|
|
3486
3488
|
}
|
|
3487
3489
|
};
|
|
3488
|
-
let
|
|
3490
|
+
let Qe;
|
|
3489
3491
|
const ne = be({});
|
|
3490
|
-
function
|
|
3491
|
-
return
|
|
3492
|
+
function jn(e) {
|
|
3493
|
+
return Qe[e] || null;
|
|
3492
3494
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return e in
|
|
3495
|
+
function qt(e) {
|
|
3496
|
+
return e in Qe;
|
|
3495
3497
|
}
|
|
3496
|
-
function
|
|
3497
|
-
if (!
|
|
3498
|
+
function kn(e, t) {
|
|
3499
|
+
if (!qt(e))
|
|
3498
3500
|
return null;
|
|
3499
|
-
const r =
|
|
3500
|
-
return
|
|
3501
|
+
const r = jn(e);
|
|
3502
|
+
return Gn(r, t);
|
|
3501
3503
|
}
|
|
3502
|
-
function
|
|
3504
|
+
function Vn(e) {
|
|
3503
3505
|
if (e == null)
|
|
3504
3506
|
return;
|
|
3505
3507
|
const t = ie(e);
|
|
3506
3508
|
for (let r = 0; r < t.length; r++) {
|
|
3507
3509
|
const n = t[r];
|
|
3508
|
-
if (
|
|
3510
|
+
if (qt(n))
|
|
3509
3511
|
return n;
|
|
3510
3512
|
}
|
|
3511
3513
|
}
|
|
3512
|
-
function
|
|
3513
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
3514
|
+
function Yt(e, ...t) {
|
|
3515
|
+
delete O[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3514
3516
|
}
|
|
3515
3517
|
Z(
|
|
3516
3518
|
[ne],
|
|
3517
3519
|
([e]) => Object.keys(e)
|
|
3518
3520
|
);
|
|
3519
|
-
ne.subscribe((e) =>
|
|
3521
|
+
ne.subscribe((e) => Qe = e);
|
|
3520
3522
|
const fe = {};
|
|
3521
|
-
function
|
|
3523
|
+
function Xn(e, t) {
|
|
3522
3524
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3523
3525
|
}
|
|
3524
|
-
function
|
|
3526
|
+
function Kt(e) {
|
|
3525
3527
|
return fe[e];
|
|
3526
3528
|
}
|
|
3527
|
-
function
|
|
3529
|
+
function zn(e) {
|
|
3528
3530
|
return ie(e).map((t) => {
|
|
3529
|
-
const r =
|
|
3531
|
+
const r = Kt(t);
|
|
3530
3532
|
return [t, r ? [...r] : []];
|
|
3531
3533
|
}).filter(([, t]) => t.length > 0);
|
|
3532
3534
|
}
|
|
@@ -3534,40 +3536,40 @@ function me(e) {
|
|
|
3534
3536
|
return e == null ? !1 : ie(e).some(
|
|
3535
3537
|
(t) => {
|
|
3536
3538
|
var r;
|
|
3537
|
-
return (r =
|
|
3539
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3538
3540
|
}
|
|
3539
3541
|
);
|
|
3540
3542
|
}
|
|
3541
3543
|
function Wn(e, t) {
|
|
3542
3544
|
return Promise.all(
|
|
3543
|
-
t.map((n) => (
|
|
3544
|
-
).then((n) =>
|
|
3545
|
+
t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
|
|
3546
|
+
).then((n) => Yt(e, ...n));
|
|
3545
3547
|
}
|
|
3546
3548
|
const J = {};
|
|
3547
|
-
function
|
|
3549
|
+
function er(e) {
|
|
3548
3550
|
if (!me(e))
|
|
3549
3551
|
return e in J ? J[e] : Promise.resolve();
|
|
3550
|
-
const t =
|
|
3552
|
+
const t = zn(e);
|
|
3551
3553
|
return J[e] = Promise.all(
|
|
3552
3554
|
t.map(
|
|
3553
3555
|
([r, n]) => Wn(r, n)
|
|
3554
3556
|
)
|
|
3555
3557
|
).then(() => {
|
|
3556
3558
|
if (me(e))
|
|
3557
|
-
return
|
|
3559
|
+
return er(e);
|
|
3558
3560
|
delete J[e];
|
|
3559
3561
|
}), J[e];
|
|
3560
3562
|
}
|
|
3561
|
-
var
|
|
3563
|
+
var mt = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3562
3564
|
var r = {};
|
|
3563
3565
|
for (var n in e)
|
|
3564
|
-
|
|
3565
|
-
if (e != null &&
|
|
3566
|
-
for (var n of
|
|
3567
|
-
t.indexOf(n) < 0 &&
|
|
3566
|
+
Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3567
|
+
if (e != null && mt)
|
|
3568
|
+
for (var n of mt(e))
|
|
3569
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3568
3570
|
return r;
|
|
3569
3571
|
};
|
|
3570
|
-
const
|
|
3572
|
+
const qn = {
|
|
3571
3573
|
number: {
|
|
3572
3574
|
scientific: { notation: "scientific" },
|
|
3573
3575
|
engineering: { notation: "engineering" },
|
|
@@ -3597,7 +3599,7 @@ const Jn = {
|
|
|
3597
3599
|
}
|
|
3598
3600
|
}
|
|
3599
3601
|
};
|
|
3600
|
-
function
|
|
3602
|
+
function Yn({ locale: e, id: t }) {
|
|
3601
3603
|
console.warn(
|
|
3602
3604
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3603
3605
|
e
|
|
@@ -3606,49 +3608,49 @@ function qn({ locale: e, id: t }) {
|
|
|
3606
3608
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3607
3609
|
);
|
|
3608
3610
|
}
|
|
3609
|
-
const
|
|
3611
|
+
const Kn = {
|
|
3610
3612
|
fallbackLocale: null,
|
|
3611
3613
|
loadingDelay: 200,
|
|
3612
|
-
formats:
|
|
3614
|
+
formats: qn,
|
|
3613
3615
|
warnOnMissingMessages: !0,
|
|
3614
3616
|
handleMissingMessage: void 0,
|
|
3615
3617
|
ignoreTag: !0
|
|
3616
|
-
}, q =
|
|
3617
|
-
function
|
|
3618
|
+
}, q = Kn;
|
|
3619
|
+
function z() {
|
|
3618
3620
|
return q;
|
|
3619
3621
|
}
|
|
3620
|
-
function
|
|
3621
|
-
const t = e, { formats: r } = t, n =
|
|
3622
|
+
function ei(e) {
|
|
3623
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3622
3624
|
let i = e.fallbackLocale;
|
|
3623
3625
|
if (e.initialLocale)
|
|
3624
3626
|
try {
|
|
3625
|
-
|
|
3627
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3626
3628
|
} catch (s) {
|
|
3627
3629
|
console.warn(
|
|
3628
3630
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3629
3631
|
);
|
|
3630
3632
|
}
|
|
3631
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3633
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
|
|
3632
3634
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3633
3635
|
)), 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);
|
|
3634
3636
|
}
|
|
3635
3637
|
const Le = be(!1);
|
|
3636
|
-
var
|
|
3638
|
+
var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
|
|
3637
3639
|
for (var r in t || (t = {}))
|
|
3638
|
-
|
|
3639
|
-
if (
|
|
3640
|
-
for (var r of
|
|
3641
|
-
|
|
3640
|
+
ii.call(t, r) && dt(e, r, t[r]);
|
|
3641
|
+
if (pt)
|
|
3642
|
+
for (var r of pt(t))
|
|
3643
|
+
si.call(t, r) && dt(e, r, t[r]);
|
|
3642
3644
|
return e;
|
|
3643
|
-
},
|
|
3645
|
+
}, ai = (e, t) => ri(e, ni(t));
|
|
3644
3646
|
let ke;
|
|
3645
3647
|
const pe = be(null);
|
|
3646
|
-
function
|
|
3648
|
+
function bt(e) {
|
|
3647
3649
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3648
3650
|
}
|
|
3649
|
-
function ie(e, t =
|
|
3650
|
-
const r =
|
|
3651
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3651
|
+
function ie(e, t = z().fallbackLocale) {
|
|
3652
|
+
const r = bt(e);
|
|
3653
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3652
3654
|
}
|
|
3653
3655
|
function L() {
|
|
3654
3656
|
return ke != null ? ke : void 0;
|
|
@@ -3656,22 +3658,22 @@ function L() {
|
|
|
3656
3658
|
pe.subscribe((e) => {
|
|
3657
3659
|
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3658
3660
|
});
|
|
3659
|
-
const
|
|
3660
|
-
if (e &&
|
|
3661
|
-
const { loadingDelay: t } =
|
|
3661
|
+
const hi = (e) => {
|
|
3662
|
+
if (e && Vn(e) && me(e)) {
|
|
3663
|
+
const { loadingDelay: t } = z();
|
|
3662
3664
|
let r;
|
|
3663
3665
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3664
3666
|
() => Le.set(!0),
|
|
3665
3667
|
t
|
|
3666
|
-
) : Le.set(!0),
|
|
3668
|
+
) : Le.set(!0), er(e).then(() => {
|
|
3667
3669
|
pe.set(e);
|
|
3668
3670
|
}).finally(() => {
|
|
3669
3671
|
clearTimeout(r), Le.set(!1);
|
|
3670
3672
|
});
|
|
3671
3673
|
}
|
|
3672
3674
|
return pe.set(e);
|
|
3673
|
-
}, $ = oi(
|
|
3674
|
-
set:
|
|
3675
|
+
}, $ = ai(oi({}, pe), {
|
|
3676
|
+
set: hi
|
|
3675
3677
|
}), ye = (e) => {
|
|
3676
3678
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3677
3679
|
return (n) => {
|
|
@@ -3679,42 +3681,42 @@ const ai = (e) => {
|
|
|
3679
3681
|
return i in t ? t[i] : t[i] = e(n);
|
|
3680
3682
|
};
|
|
3681
3683
|
};
|
|
3682
|
-
var ui = Object.defineProperty, de = Object.getOwnPropertySymbols,
|
|
3684
|
+
var ui = Object.defineProperty, de = 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) => {
|
|
3683
3685
|
for (var r in t || (t = {}))
|
|
3684
|
-
|
|
3686
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3685
3687
|
if (de)
|
|
3686
3688
|
for (var r of de(t))
|
|
3687
|
-
|
|
3689
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3688
3690
|
return e;
|
|
3689
3691
|
}, Q = (e, t) => {
|
|
3690
3692
|
var r = {};
|
|
3691
3693
|
for (var n in e)
|
|
3692
|
-
|
|
3694
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3693
3695
|
if (e != null && de)
|
|
3694
3696
|
for (var n of de(e))
|
|
3695
|
-
t.indexOf(n) < 0 &&
|
|
3697
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3696
3698
|
return r;
|
|
3697
3699
|
};
|
|
3698
3700
|
const ee = (e, t) => {
|
|
3699
|
-
const { formats: r } =
|
|
3701
|
+
const { formats: r } = z();
|
|
3700
3702
|
if (e in r && t in r[e])
|
|
3701
3703
|
return r[e][t];
|
|
3702
3704
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3703
|
-
},
|
|
3705
|
+
}, li = ye(
|
|
3704
3706
|
(e) => {
|
|
3705
3707
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3706
3708
|
if (r == null)
|
|
3707
3709
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3708
3710
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3709
3711
|
}
|
|
3710
|
-
),
|
|
3712
|
+
), fi = ye(
|
|
3711
3713
|
(e) => {
|
|
3712
3714
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3713
3715
|
if (r == null)
|
|
3714
3716
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3715
3717
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3716
3718
|
}
|
|
3717
|
-
),
|
|
3719
|
+
), ci = ye(
|
|
3718
3720
|
(e) => {
|
|
3719
3721
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3720
3722
|
if (r == null)
|
|
@@ -3723,57 +3725,57 @@ const ee = (e, t) => {
|
|
|
3723
3725
|
);
|
|
3724
3726
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3725
3727
|
}
|
|
3726
|
-
),
|
|
3728
|
+
), mi = (e = {}) => {
|
|
3727
3729
|
var t = e, {
|
|
3728
3730
|
locale: r = L()
|
|
3729
3731
|
} = t, n = Q(t, [
|
|
3730
3732
|
"locale"
|
|
3731
3733
|
]);
|
|
3732
|
-
return
|
|
3733
|
-
},
|
|
3734
|
+
return li(Je({ locale: r }, n));
|
|
3735
|
+
}, pi = (e = {}) => {
|
|
3734
3736
|
var t = e, {
|
|
3735
3737
|
locale: r = L()
|
|
3736
3738
|
} = t, n = Q(t, [
|
|
3737
3739
|
"locale"
|
|
3738
3740
|
]);
|
|
3739
|
-
return
|
|
3740
|
-
},
|
|
3741
|
+
return fi(Je({ locale: r }, n));
|
|
3742
|
+
}, di = (e = {}) => {
|
|
3741
3743
|
var t = e, {
|
|
3742
3744
|
locale: r = L()
|
|
3743
3745
|
} = t, n = Q(t, [
|
|
3744
3746
|
"locale"
|
|
3745
3747
|
]);
|
|
3746
|
-
return
|
|
3747
|
-
},
|
|
3748
|
+
return ci(Je({ locale: r }, n));
|
|
3749
|
+
}, bi = ye(
|
|
3748
3750
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3749
|
-
(e, t = L()) => new
|
|
3750
|
-
ignoreTag:
|
|
3751
|
+
(e, t = L()) => new Qt(e, t, z().formats, {
|
|
3752
|
+
ignoreTag: z().ignoreTag
|
|
3751
3753
|
})
|
|
3752
|
-
),
|
|
3754
|
+
), gi = (e, t = {}) => {
|
|
3753
3755
|
var r, n, i, s;
|
|
3754
3756
|
let a = t;
|
|
3755
3757
|
typeof e == "object" && (a = e, e = a.id);
|
|
3756
3758
|
const {
|
|
3757
3759
|
values: o,
|
|
3758
3760
|
locale: l = L(),
|
|
3759
|
-
default:
|
|
3761
|
+
default: h
|
|
3760
3762
|
} = a;
|
|
3761
3763
|
if (l == null)
|
|
3762
3764
|
throw new Error(
|
|
3763
3765
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3764
3766
|
);
|
|
3765
|
-
let
|
|
3766
|
-
if (!
|
|
3767
|
-
|
|
3768
|
-
else if (typeof
|
|
3767
|
+
let u = Jt(e, l);
|
|
3768
|
+
if (!u)
|
|
3769
|
+
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;
|
|
3770
|
+
else if (typeof u != "string")
|
|
3769
3771
|
return console.warn(
|
|
3770
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3771
|
-
),
|
|
3772
|
+
`[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.`
|
|
3773
|
+
), u;
|
|
3772
3774
|
if (!o)
|
|
3773
|
-
return
|
|
3774
|
-
let f =
|
|
3775
|
+
return u;
|
|
3776
|
+
let f = u;
|
|
3775
3777
|
try {
|
|
3776
|
-
f =
|
|
3778
|
+
f = bi(u, l).format(o);
|
|
3777
3779
|
} catch (c) {
|
|
3778
3780
|
c instanceof Error && console.warn(
|
|
3779
3781
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3781,20 +3783,20 @@ const ee = (e, t) => {
|
|
|
3781
3783
|
);
|
|
3782
3784
|
}
|
|
3783
3785
|
return f;
|
|
3784
|
-
},
|
|
3785
|
-
Z([$], () => gi);
|
|
3786
|
+
}, _i = (e, t) => di(t).format(e), yi = (e, t) => pi(t).format(e), Ei = (e, t) => mi(t).format(e), xi = (e, t = L()) => Jt(e, t), vi = Z([$, ne], () => gi);
|
|
3786
3787
|
Z([$], () => _i);
|
|
3787
3788
|
Z([$], () => yi);
|
|
3788
|
-
Z([
|
|
3789
|
-
|
|
3790
|
-
|
|
3789
|
+
Z([$], () => Ei);
|
|
3790
|
+
Z([$, ne], () => xi);
|
|
3791
|
+
function _t(e, t) {
|
|
3792
|
+
Yt(e, t);
|
|
3791
3793
|
}
|
|
3792
|
-
function
|
|
3793
|
-
|
|
3794
|
+
function Hi(e) {
|
|
3795
|
+
ei({
|
|
3794
3796
|
fallbackLocale: "en"
|
|
3795
3797
|
}), $.set(e);
|
|
3796
3798
|
}
|
|
3797
|
-
const
|
|
3799
|
+
const yt = {
|
|
3798
3800
|
en: {
|
|
3799
3801
|
header: {
|
|
3800
3802
|
general: "Cashier",
|
|
@@ -3817,18 +3819,18 @@ const gt = {
|
|
|
3817
3819
|
}
|
|
3818
3820
|
}
|
|
3819
3821
|
};
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3822
|
+
function Bi(e) {
|
|
3823
|
+
pr(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}");
|
|
3822
3824
|
}
|
|
3823
|
-
const
|
|
3824
|
-
function
|
|
3825
|
+
const Ti = (e) => ({}), Et = (e) => ({}), wi = (e) => ({}), xt = (e) => ({}), Si = (e) => ({}), vt = (e) => ({});
|
|
3826
|
+
function Ht(e) {
|
|
3825
3827
|
let t, r, n;
|
|
3826
3828
|
return {
|
|
3827
3829
|
c() {
|
|
3828
|
-
t =
|
|
3830
|
+
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");
|
|
3829
3831
|
},
|
|
3830
3832
|
m(i, s) {
|
|
3831
|
-
M(i, t, s), r || (n =
|
|
3833
|
+
M(i, t, s), r || (n = Ot(
|
|
3832
3834
|
t,
|
|
3833
3835
|
"click",
|
|
3834
3836
|
/*back*/
|
|
@@ -3841,28 +3843,28 @@ function xt(e) {
|
|
|
3841
3843
|
}
|
|
3842
3844
|
};
|
|
3843
3845
|
}
|
|
3844
|
-
function
|
|
3846
|
+
function Ai(e) {
|
|
3845
3847
|
let t, r = (
|
|
3846
3848
|
/*backButton*/
|
|
3847
|
-
e[1] &&
|
|
3849
|
+
e[1] && Ht(e)
|
|
3848
3850
|
);
|
|
3849
3851
|
return {
|
|
3850
3852
|
c() {
|
|
3851
|
-
r && r.c(), t =
|
|
3853
|
+
r && r.c(), t = Ct();
|
|
3852
3854
|
},
|
|
3853
3855
|
m(n, i) {
|
|
3854
3856
|
r && r.m(n, i), M(n, t, i);
|
|
3855
3857
|
},
|
|
3856
3858
|
p(n, i) {
|
|
3857
3859
|
/*backButton*/
|
|
3858
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3860
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3859
3861
|
},
|
|
3860
3862
|
d(n) {
|
|
3861
3863
|
n && P(t), r && r.d(n);
|
|
3862
3864
|
}
|
|
3863
3865
|
};
|
|
3864
3866
|
}
|
|
3865
|
-
function
|
|
3867
|
+
function Ci(e) {
|
|
3866
3868
|
let t, r = (
|
|
3867
3869
|
/*$_*/
|
|
3868
3870
|
e[4](
|
|
@@ -3872,7 +3874,7 @@ function Ai(e) {
|
|
|
3872
3874
|
), n;
|
|
3873
3875
|
return {
|
|
3874
3876
|
c() {
|
|
3875
|
-
t =
|
|
3877
|
+
t = W("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
|
|
3876
3878
|
},
|
|
3877
3879
|
m(i, s) {
|
|
3878
3880
|
M(i, t, s), ce(t, n);
|
|
@@ -3883,21 +3885,21 @@ function Ai(e) {
|
|
|
3883
3885
|
i[4](
|
|
3884
3886
|
/*titleText*/
|
|
3885
3887
|
i[2]
|
|
3886
|
-
) + "") &&
|
|
3888
|
+
) + "") && _r(n, r);
|
|
3887
3889
|
},
|
|
3888
3890
|
d(i) {
|
|
3889
3891
|
i && P(t);
|
|
3890
3892
|
}
|
|
3891
3893
|
};
|
|
3892
3894
|
}
|
|
3893
|
-
function
|
|
3895
|
+
function Bt(e) {
|
|
3894
3896
|
let t, r, n;
|
|
3895
3897
|
return {
|
|
3896
3898
|
c() {
|
|
3897
|
-
t =
|
|
3899
|
+
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");
|
|
3898
3900
|
},
|
|
3899
3901
|
m(i, s) {
|
|
3900
|
-
M(i, t, s), r || (n =
|
|
3902
|
+
M(i, t, s), r || (n = Ot(
|
|
3901
3903
|
t,
|
|
3902
3904
|
"click",
|
|
3903
3905
|
/*close*/
|
|
@@ -3910,28 +3912,28 @@ function vt(e) {
|
|
|
3910
3912
|
}
|
|
3911
3913
|
};
|
|
3912
3914
|
}
|
|
3913
|
-
function
|
|
3915
|
+
function Oi(e) {
|
|
3914
3916
|
let t, r = (
|
|
3915
3917
|
/*closeButton*/
|
|
3916
|
-
e[3] &&
|
|
3918
|
+
e[3] && Bt(e)
|
|
3917
3919
|
);
|
|
3918
3920
|
return {
|
|
3919
3921
|
c() {
|
|
3920
|
-
r && r.c(), t =
|
|
3922
|
+
r && r.c(), t = Ct();
|
|
3921
3923
|
},
|
|
3922
3924
|
m(n, i) {
|
|
3923
3925
|
r && r.m(n, i), M(n, t, i);
|
|
3924
3926
|
},
|
|
3925
3927
|
p(n, i) {
|
|
3926
3928
|
/*closeButton*/
|
|
3927
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3929
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3928
3930
|
},
|
|
3929
3931
|
d(n) {
|
|
3930
3932
|
n && P(t), r && r.d(n);
|
|
3931
3933
|
}
|
|
3932
3934
|
};
|
|
3933
3935
|
}
|
|
3934
|
-
function
|
|
3936
|
+
function Pi(e) {
|
|
3935
3937
|
let t, r, n, i;
|
|
3936
3938
|
const s = (
|
|
3937
3939
|
/*#slots*/
|
|
@@ -3941,17 +3943,17 @@ function Oi(e) {
|
|
|
3941
3943
|
e,
|
|
3942
3944
|
/*$$scope*/
|
|
3943
3945
|
e[14],
|
|
3944
|
-
|
|
3945
|
-
), o = a ||
|
|
3946
|
+
vt
|
|
3947
|
+
), o = a || Ai(e), l = (
|
|
3946
3948
|
/*#slots*/
|
|
3947
3949
|
e[15].title
|
|
3948
|
-
),
|
|
3950
|
+
), h = xe(
|
|
3949
3951
|
l,
|
|
3950
3952
|
e,
|
|
3951
3953
|
/*$$scope*/
|
|
3952
3954
|
e[14],
|
|
3953
|
-
|
|
3954
|
-
),
|
|
3955
|
+
xt
|
|
3956
|
+
), u = h || Ci(e), f = (
|
|
3955
3957
|
/*#slots*/
|
|
3956
3958
|
e[15].rightButton
|
|
3957
3959
|
), c = xe(
|
|
@@ -3959,14 +3961,14 @@ function Oi(e) {
|
|
|
3959
3961
|
e,
|
|
3960
3962
|
/*$$scope*/
|
|
3961
3963
|
e[14],
|
|
3962
|
-
|
|
3963
|
-
), p = c ||
|
|
3964
|
+
Et
|
|
3965
|
+
), p = c || Oi(e);
|
|
3964
3966
|
return {
|
|
3965
3967
|
c() {
|
|
3966
|
-
t =
|
|
3968
|
+
t = W("div"), o && o.c(), r = rt(), u && u.c(), n = rt(), p && p.c(), re(t, "class", "CashierHeader");
|
|
3967
3969
|
},
|
|
3968
3970
|
m(m, g) {
|
|
3969
|
-
M(m, t, g), o && o.m(t, null), ce(t, r),
|
|
3971
|
+
M(m, t, g), o && o.m(t, null), ce(t, r), u && u.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3970
3972
|
},
|
|
3971
3973
|
p(m, [g]) {
|
|
3972
3974
|
a ? a.p && (!i || g & /*$$scope*/
|
|
@@ -3981,16 +3983,16 @@ function Oi(e) {
|
|
|
3981
3983
|
/*$$scope*/
|
|
3982
3984
|
m[14],
|
|
3983
3985
|
g,
|
|
3984
|
-
|
|
3986
|
+
Si
|
|
3985
3987
|
) : Be(
|
|
3986
3988
|
/*$$scope*/
|
|
3987
3989
|
m[14]
|
|
3988
3990
|
),
|
|
3989
|
-
|
|
3991
|
+
vt
|
|
3990
3992
|
) : o && o.p && (!i || g & /*backButton*/
|
|
3991
|
-
2) && o.p(m, i ? g : -1),
|
|
3993
|
+
2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
|
|
3992
3994
|
16384) && He(
|
|
3993
|
-
|
|
3995
|
+
h,
|
|
3994
3996
|
l,
|
|
3995
3997
|
m,
|
|
3996
3998
|
/*$$scope*/
|
|
@@ -4000,14 +4002,14 @@ function Oi(e) {
|
|
|
4000
4002
|
/*$$scope*/
|
|
4001
4003
|
m[14],
|
|
4002
4004
|
g,
|
|
4003
|
-
|
|
4005
|
+
wi
|
|
4004
4006
|
) : Be(
|
|
4005
4007
|
/*$$scope*/
|
|
4006
4008
|
m[14]
|
|
4007
4009
|
),
|
|
4008
|
-
|
|
4009
|
-
) :
|
|
4010
|
-
20) &&
|
|
4010
|
+
xt
|
|
4011
|
+
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4012
|
+
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4011
4013
|
16384) && He(
|
|
4012
4014
|
c,
|
|
4013
4015
|
f,
|
|
@@ -4019,42 +4021,42 @@ function Oi(e) {
|
|
|
4019
4021
|
/*$$scope*/
|
|
4020
4022
|
m[14],
|
|
4021
4023
|
g,
|
|
4022
|
-
|
|
4024
|
+
Ti
|
|
4023
4025
|
) : Be(
|
|
4024
4026
|
/*$$scope*/
|
|
4025
4027
|
m[14]
|
|
4026
4028
|
),
|
|
4027
|
-
|
|
4029
|
+
Et
|
|
4028
4030
|
) : p && p.p && (!i || g & /*closeButton*/
|
|
4029
4031
|
8) && p.p(m, i ? g : -1);
|
|
4030
4032
|
},
|
|
4031
4033
|
i(m) {
|
|
4032
|
-
i || (
|
|
4034
|
+
i || (he(o, m), he(u, m), he(p, m), i = !0);
|
|
4033
4035
|
},
|
|
4034
4036
|
o(m) {
|
|
4035
|
-
we(o, m), we(
|
|
4037
|
+
we(o, m), we(u, m), we(p, m), i = !1;
|
|
4036
4038
|
},
|
|
4037
4039
|
d(m) {
|
|
4038
|
-
m && P(t), o && o.d(m),
|
|
4040
|
+
m && P(t), o && o.d(m), u && u.d(m), p && p.d(m), e[16](null);
|
|
4039
4041
|
}
|
|
4040
4042
|
};
|
|
4041
4043
|
}
|
|
4042
|
-
function
|
|
4044
|
+
function Li(e, t, r) {
|
|
4043
4045
|
let n;
|
|
4044
|
-
|
|
4045
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton:
|
|
4046
|
+
mr(e, vi, (_) => r(4, n = _));
|
|
4047
|
+
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, p, m = !1, g, v = !1;
|
|
4046
4048
|
const N = () => {
|
|
4047
4049
|
let _ = l;
|
|
4048
4050
|
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4049
4051
|
Object.keys(S).forEach((U) => {
|
|
4050
|
-
|
|
4052
|
+
_t(U, S[U]);
|
|
4051
4053
|
});
|
|
4052
4054
|
}).catch((S) => {
|
|
4053
4055
|
console.log(S);
|
|
4054
4056
|
});
|
|
4055
4057
|
};
|
|
4056
|
-
Object.keys(
|
|
4057
|
-
|
|
4058
|
+
Object.keys(yt).forEach((_) => {
|
|
4059
|
+
_t(_, yt[_]);
|
|
4058
4060
|
});
|
|
4059
4061
|
const C = () => {
|
|
4060
4062
|
let _ = document.createElement("style");
|
|
@@ -4070,34 +4072,34 @@ function Pi(e, t, r) {
|
|
|
4070
4072
|
);
|
|
4071
4073
|
});
|
|
4072
4074
|
}, I = () => {
|
|
4073
|
-
|
|
4075
|
+
Hi(f);
|
|
4074
4076
|
}, w = () => {
|
|
4075
4077
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4076
4078
|
}, R = () => {
|
|
4077
4079
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4078
4080
|
}, se = () => {
|
|
4079
|
-
r(1, m = !!
|
|
4080
|
-
},
|
|
4081
|
+
r(1, m = !!h && h !== "false");
|
|
4082
|
+
}, nr = () => {
|
|
4081
4083
|
r(3, v = !!c && c !== "false");
|
|
4082
|
-
},
|
|
4083
|
-
r(2, g =
|
|
4084
|
+
}, ir = () => {
|
|
4085
|
+
r(2, g = u || "header.general");
|
|
4084
4086
|
};
|
|
4085
|
-
function
|
|
4087
|
+
function sr(_) {
|
|
4086
4088
|
Ne[_ ? "unshift" : "push"](() => {
|
|
4087
4089
|
p = _, r(0, p);
|
|
4088
4090
|
});
|
|
4089
4091
|
}
|
|
4090
4092
|
return e.$$set = (_) => {
|
|
4091
|
-
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10,
|
|
4093
|
+
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, h = _.showbackbutton), "title" in _ && r(11, u = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4092
4094
|
}, e.$$.update = () => {
|
|
4093
4095
|
e.$$.dirty & /*lang*/
|
|
4094
4096
|
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4095
|
-
6144 && f &&
|
|
4097
|
+
6144 && f && u && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4096
4098
|
129 && a && p && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4097
4099
|
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4098
4100
|
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4099
|
-
1024 &&
|
|
4100
|
-
8192 && c &&
|
|
4101
|
+
1024 && h && se(), e.$$.dirty & /*showclosebutton*/
|
|
4102
|
+
8192 && c && nr();
|
|
4101
4103
|
}, [
|
|
4102
4104
|
p,
|
|
4103
4105
|
m,
|
|
@@ -4109,23 +4111,23 @@ function Pi(e, t, r) {
|
|
|
4109
4111
|
a,
|
|
4110
4112
|
o,
|
|
4111
4113
|
l,
|
|
4112
|
-
u,
|
|
4113
4114
|
h,
|
|
4115
|
+
u,
|
|
4114
4116
|
f,
|
|
4115
4117
|
c,
|
|
4116
4118
|
s,
|
|
4117
4119
|
i,
|
|
4118
|
-
|
|
4120
|
+
sr
|
|
4119
4121
|
];
|
|
4120
4122
|
}
|
|
4121
|
-
class
|
|
4123
|
+
class Ni extends Or {
|
|
4122
4124
|
constructor(t) {
|
|
4123
|
-
super(),
|
|
4125
|
+
super(), Ar(
|
|
4124
4126
|
this,
|
|
4125
4127
|
t,
|
|
4128
|
+
Li,
|
|
4126
4129
|
Pi,
|
|
4127
|
-
|
|
4128
|
-
Bt,
|
|
4130
|
+
wt,
|
|
4129
4131
|
{
|
|
4130
4132
|
clientstyling: 7,
|
|
4131
4133
|
clientstylingurl: 8,
|
|
@@ -4135,7 +4137,7 @@ class Li extends Ar {
|
|
|
4135
4137
|
lang: 12,
|
|
4136
4138
|
showclosebutton: 13
|
|
4137
4139
|
},
|
|
4138
|
-
|
|
4140
|
+
Bi
|
|
4139
4141
|
);
|
|
4140
4142
|
}
|
|
4141
4143
|
get clientstyling() {
|
|
@@ -4181,7 +4183,7 @@ class Li extends Ar {
|
|
|
4181
4183
|
this.$$set({ showclosebutton: t }), A();
|
|
4182
4184
|
}
|
|
4183
4185
|
}
|
|
4184
|
-
|
|
4186
|
+
Cr(Ni, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4185
4187
|
export {
|
|
4186
|
-
|
|
4188
|
+
Ni as default
|
|
4187
4189
|
};
|