@everymatrix/cashier-iframe-redirect 1.60.0 → 1.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierHeader-B569Pf5f.cjs +18 -0
- package/components/{CashierHeader-EK8KBBon.js → CashierHeader-BVTI8DE4.js} +479 -481
- package/components/{CashierHeader-BuDZZ8rP.js → CashierHeader-Cvab2tdW.js} +455 -457
- package/components/{CashierIframeRedirect-Ardd2Dpu.js → CashierIframeRedirect-B5NM6lSr.js} +11 -11
- package/components/{CashierIframeRedirect-BmHmV7tA.js → CashierIframeRedirect-B9riTcTa.js} +13 -13
- package/components/{CashierIframeRedirect-Bwp81Q_x.cjs → CashierIframeRedirect-B_i-smF4.cjs} +1 -1
- package/components/{CashierSpinner-fcS8Yneb.cjs → CashierSpinner-BFEcImS4.cjs} +1 -1
- package/components/{CashierSpinner-Bd0C8ypP.js → CashierSpinner-BTqY0zZG.js} +7 -7
- package/components/{CashierSpinner-CWdntBnB.js → CashierSpinner-Dcc78ngS.js} +7 -7
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-C142j1-7.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
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, Je = (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
|
+
}, Ye = (e, t) => ar(e, hr(t));
|
|
13
13
|
var B = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -29,7 +29,7 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,29 +37,29 @@ function mr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Bt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function et() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function re(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
49
|
function Xe(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Tt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
let oe;
|
|
56
|
-
function
|
|
56
|
+
function Mi(e, t) {
|
|
57
57
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function cr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function wt(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
@@ -68,17 +68,17 @@ function At(e, ...t) {
|
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function mr(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
73
73
|
}
|
|
74
74
|
function ve(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = St(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function St(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
83
|
function He(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
@@ -97,7 +97,7 @@ function He(e, t, r, n) {
|
|
|
97
97
|
}
|
|
98
98
|
function Be(e, t, r, n, i, s) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = St(t, r, n, s);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -113,14 +113,14 @@ function Te(e) {
|
|
|
113
113
|
function me(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function pr(e, t, r) {
|
|
117
|
+
const n = dr(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = z("style");
|
|
120
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function dr(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,7 +130,7 @@ function gr(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function br(e, t) {
|
|
134
134
|
return me(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
@@ -143,36 +143,36 @@ function M(e, t, r) {
|
|
|
143
143
|
function P(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function z(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function We(e) {
|
|
150
150
|
return document.createTextNode(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function tt() {
|
|
153
|
+
return We(" ");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function At() {
|
|
156
|
+
return We("");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ct(e, t, r, n) {
|
|
159
159
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
160
160
|
}
|
|
161
161
|
function Z(e, t, r) {
|
|
162
162
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function $i(e, t, r) {
|
|
165
165
|
const n = t.toLowerCase();
|
|
166
166
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Z(e, t, r);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function gr(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function _r(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function yr(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
@@ -181,16 +181,16 @@ function Er(e) {
|
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
184
|
+
let ze;
|
|
185
185
|
function K(e) {
|
|
186
|
-
|
|
186
|
+
ze = e;
|
|
187
187
|
}
|
|
188
188
|
const F = [], Ie = [];
|
|
189
189
|
let j = [];
|
|
190
|
-
const
|
|
190
|
+
const rt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
191
191
|
let Me = !1;
|
|
192
|
-
function
|
|
193
|
-
Me || (Me = !0,
|
|
192
|
+
function Er() {
|
|
193
|
+
Me || (Me = !0, xr.then(A));
|
|
194
194
|
}
|
|
195
195
|
function $e(e) {
|
|
196
196
|
j.push(e);
|
|
@@ -200,12 +200,12 @@ let D = 0;
|
|
|
200
200
|
function A() {
|
|
201
201
|
if (D !== 0)
|
|
202
202
|
return;
|
|
203
|
-
const e =
|
|
203
|
+
const e = ze;
|
|
204
204
|
do {
|
|
205
205
|
try {
|
|
206
206
|
for (; D < F.length; ) {
|
|
207
207
|
const t = F[D];
|
|
208
|
-
D++, K(t),
|
|
208
|
+
D++, K(t), vr(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
211
|
throw F.length = 0, D = 0, t;
|
|
@@ -218,23 +218,23 @@ function A() {
|
|
|
218
218
|
}
|
|
219
219
|
j.length = 0;
|
|
220
220
|
} while (F.length);
|
|
221
|
-
for (;
|
|
222
|
-
|
|
221
|
+
for (; rt.length; )
|
|
222
|
+
rt.pop()();
|
|
223
223
|
Me = !1, we.clear(), K(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function vr(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
227
|
e.update(), re(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Hr(e) {
|
|
233
233
|
const t = [], r = [];
|
|
234
234
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
235
235
|
}
|
|
236
236
|
const he = /* @__PURE__ */ new Set();
|
|
237
|
-
let
|
|
237
|
+
let Br;
|
|
238
238
|
function ue(e, t) {
|
|
239
239
|
e && e.i && (he.delete(e), e.i(t));
|
|
240
240
|
}
|
|
@@ -242,27 +242,27 @@ function Se(e, t, r, n) {
|
|
|
242
242
|
if (e && e.o) {
|
|
243
243
|
if (he.has(e))
|
|
244
244
|
return;
|
|
245
|
-
he.add(e),
|
|
245
|
+
he.add(e), Br.c.push(() => {
|
|
246
246
|
he.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Tr(e, t, r) {
|
|
251
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
252
252
|
n && n.m(t, r), $e(() => {
|
|
253
|
-
const s = e.$$.on_mount.map(
|
|
253
|
+
const s = e.$$.on_mount.map(Bt).filter(Xe);
|
|
254
254
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
255
255
|
}), i.forEach($e);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function wr(e, t) {
|
|
258
258
|
const r = e.$$;
|
|
259
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (Hr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
261
|
+
function Sr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const l =
|
|
264
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
|
+
const l = ze;
|
|
266
266
|
K(e);
|
|
267
267
|
const h = e.$$ = {
|
|
268
268
|
fragment: null,
|
|
@@ -271,7 +271,7 @@ function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
271
271
|
props: s,
|
|
272
272
|
update: T,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: et(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,28 +280,28 @@ function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
283
|
+
callbacks: et(),
|
|
284
284
|
dirty: o,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
287
287
|
};
|
|
288
288
|
a && a(h.root);
|
|
289
289
|
let u = !1;
|
|
290
|
-
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
291
|
-
const m =
|
|
292
|
-
return h.ctx && i(h.ctx[f], h.ctx[f] = m) && (!h.skip_bound && h.bound[f] && h.bound[f](m), u &&
|
|
290
|
+
if (h.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
291
|
+
const m = p.length ? p[0] : c;
|
|
292
|
+
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;
|
|
293
293
|
}) : [], h.update(), u = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const f =
|
|
295
|
+
const f = gr(t.target);
|
|
296
296
|
h.fragment && h.fragment.l(f), f.forEach(P);
|
|
297
297
|
} else
|
|
298
298
|
h.fragment && h.fragment.c();
|
|
299
|
-
t.intro && ue(e.$$.fragment),
|
|
299
|
+
t.intro && ue(e.$$.fragment), Tr(e, t.target, t.anchor), A();
|
|
300
300
|
}
|
|
301
301
|
K(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Ot;
|
|
304
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
305
305
|
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
@@ -338,14 +338,14 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return Ke(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
345
|
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
a =
|
|
348
|
+
a = z("slot"), s !== "default" && Z(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = yr(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
367
|
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
@@ -373,7 +373,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props:
|
|
376
|
+
props: Ye(Je({}, this.$$d), {
|
|
377
377
|
$$slots: r,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
@@ -451,8 +451,8 @@ function le(e, t, r, n) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let a = class extends
|
|
454
|
+
function Cr(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Ot {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
@@ -482,7 +482,7 @@ function Pr(e, t, r, n, i, s) {
|
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
483
|
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Or {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -503,7 +503,7 @@ class Lr {
|
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
wr(this, 1), this.$destroy = T;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -525,13 +525,13 @@ class Lr {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Pr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
533
533
|
const G = [];
|
|
534
|
-
function
|
|
534
|
+
function Lr(e, t) {
|
|
535
535
|
return {
|
|
536
536
|
subscribe: ge(e, t).subscribe
|
|
537
537
|
};
|
|
@@ -540,7 +540,7 @@ function ge(e, t = T) {
|
|
|
540
540
|
let r;
|
|
541
541
|
const n = /* @__PURE__ */ new Set();
|
|
542
542
|
function i(o) {
|
|
543
|
-
if (
|
|
543
|
+
if (Tt(e, o) && (e = o, r)) {
|
|
544
544
|
const l = !G.length;
|
|
545
545
|
for (const h of n)
|
|
546
546
|
h[1](), G.push(h, e);
|
|
@@ -567,7 +567,7 @@ function Q(e, t, r) {
|
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Lr(r, (a, o) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const h = [];
|
|
573
573
|
let u = 0, f = T;
|
|
@@ -577,8 +577,8 @@ function Q(e, t, r) {
|
|
|
577
577
|
f();
|
|
578
578
|
const m = t(n ? h[0] : h, a, o);
|
|
579
579
|
s ? a(m) : f = Xe(m) ? m : T;
|
|
580
|
-
},
|
|
581
|
-
(m, g) =>
|
|
580
|
+
}, p = i.map(
|
|
581
|
+
(m, g) => wt(
|
|
582
582
|
m,
|
|
583
583
|
(v) => {
|
|
584
584
|
h[g] = v, u &= ~(1 << g), l && c();
|
|
@@ -589,74 +589,74 @@ function Q(e, t, r) {
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
return l = !0, c(), function() {
|
|
592
|
-
re(
|
|
592
|
+
re(p), f(), l = !1;
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Nr(e) {
|
|
597
597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var Ir = function(t) {
|
|
600
|
+
return Mr(t) && !$r(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Mr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function $r(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Dr(e) {
|
|
611
|
+
return e.$$typeof === Ur;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Gr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
616
|
function ee(e, t) {
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Gr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Fr(e, t, r) {
|
|
620
620
|
return e.concat(t).map(function(n) {
|
|
621
621
|
return ee(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function jr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
626
|
return k;
|
|
627
627
|
var r = t.customMerge(e);
|
|
628
628
|
return typeof r == "function" ? r : k;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function kr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return Object.keys(e).concat(
|
|
635
|
+
function nt(e) {
|
|
636
|
+
return Object.keys(e).concat(kr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Pt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch (r) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Vr(e, t) {
|
|
646
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Xr(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
|
-
return r.isMergeableObject(e) &&
|
|
650
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
651
|
n[i] = ee(e[i], r);
|
|
652
|
-
}),
|
|
653
|
-
|
|
652
|
+
}), nt(t).forEach(function(i) {
|
|
653
|
+
Vr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
656
|
function k(e, t, r) {
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ee;
|
|
658
658
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : ee(t, r);
|
|
660
660
|
}
|
|
661
661
|
k.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
@@ -665,8 +665,8 @@ k.all = function(t, r) {
|
|
|
665
665
|
return k(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
668
|
+
var Wr = k, zr = Wr;
|
|
669
|
+
const Zr = /* @__PURE__ */ Nr(zr);
|
|
670
670
|
/*! *****************************************************************************
|
|
671
671
|
Copyright (c) Microsoft Corporation.
|
|
672
672
|
|
|
@@ -708,7 +708,7 @@ var y = function() {
|
|
|
708
708
|
return t;
|
|
709
709
|
}, y.apply(this, arguments);
|
|
710
710
|
};
|
|
711
|
-
function
|
|
711
|
+
function Qr(e, t) {
|
|
712
712
|
var r = {};
|
|
713
713
|
for (var n in e)
|
|
714
714
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -724,59 +724,57 @@ function Ae(e, t, r) {
|
|
|
724
724
|
return e.concat(s || t);
|
|
725
725
|
}
|
|
726
726
|
function Ce(e, t) {
|
|
727
|
-
var r = t && t.cache ? t.cache :
|
|
727
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
728
728
|
return i(e, {
|
|
729
729
|
cache: r,
|
|
730
730
|
serializer: n
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function qr(e) {
|
|
734
734
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var i =
|
|
736
|
+
function Jr(e, t, r, n) {
|
|
737
|
+
var i = qr(n) ? n : r(n), s = t.get(i);
|
|
738
738
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Lt(e, t, r) {
|
|
741
741
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
742
742
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Nt(e, t, r, n, i) {
|
|
745
745
|
return r.bind(t, e, n, i);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
var r = e.length === 1 ?
|
|
749
|
-
return
|
|
750
|
-
}
|
|
751
|
-
function en(e, t) {
|
|
752
|
-
return Ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
747
|
+
function Yr(e, t) {
|
|
748
|
+
var r = e.length === 1 ? Jr : Lt;
|
|
749
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
753
750
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
751
|
+
function Kr(e, t) {
|
|
752
|
+
return Nt(e, this, Lt, t.cache.create(), t.serializer);
|
|
756
753
|
}
|
|
757
|
-
var
|
|
754
|
+
var en = function() {
|
|
758
755
|
return JSON.stringify(arguments);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
756
|
+
}, tn = (
|
|
757
|
+
/** @class */
|
|
758
|
+
function() {
|
|
759
|
+
function e() {
|
|
760
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
761
|
+
}
|
|
762
|
+
return e.prototype.get = function(t) {
|
|
763
|
+
return this.cache[t];
|
|
764
|
+
}, e.prototype.set = function(t, r) {
|
|
765
|
+
this.cache[t] = r;
|
|
766
|
+
}, e;
|
|
767
|
+
}()
|
|
768
|
+
), rn = {
|
|
770
769
|
create: function() {
|
|
771
|
-
return new
|
|
770
|
+
return new tn();
|
|
772
771
|
}
|
|
773
772
|
}, Oe = {
|
|
774
|
-
variadic:
|
|
775
|
-
|
|
776
|
-
}, p;
|
|
773
|
+
variadic: Kr
|
|
774
|
+
}, d;
|
|
777
775
|
(function(e) {
|
|
778
776
|
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";
|
|
779
|
-
})(
|
|
777
|
+
})(d || (d = {}));
|
|
780
778
|
var x;
|
|
781
779
|
(function(e) {
|
|
782
780
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -785,43 +783,43 @@ var V;
|
|
|
785
783
|
(function(e) {
|
|
786
784
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
787
785
|
})(V || (V = {}));
|
|
788
|
-
function
|
|
786
|
+
function it(e) {
|
|
789
787
|
return e.type === x.literal;
|
|
790
788
|
}
|
|
791
|
-
function
|
|
789
|
+
function nn(e) {
|
|
792
790
|
return e.type === x.argument;
|
|
793
791
|
}
|
|
794
|
-
function
|
|
792
|
+
function It(e) {
|
|
795
793
|
return e.type === x.number;
|
|
796
794
|
}
|
|
797
|
-
function
|
|
795
|
+
function Mt(e) {
|
|
798
796
|
return e.type === x.date;
|
|
799
797
|
}
|
|
800
|
-
function
|
|
798
|
+
function $t(e) {
|
|
801
799
|
return e.type === x.time;
|
|
802
800
|
}
|
|
803
|
-
function
|
|
801
|
+
function Rt(e) {
|
|
804
802
|
return e.type === x.select;
|
|
805
803
|
}
|
|
806
|
-
function
|
|
804
|
+
function Ut(e) {
|
|
807
805
|
return e.type === x.plural;
|
|
808
806
|
}
|
|
809
|
-
function
|
|
807
|
+
function sn(e) {
|
|
810
808
|
return e.type === x.pound;
|
|
811
809
|
}
|
|
812
|
-
function
|
|
810
|
+
function Dt(e) {
|
|
813
811
|
return e.type === x.tag;
|
|
814
812
|
}
|
|
815
|
-
function
|
|
813
|
+
function Gt(e) {
|
|
816
814
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
817
815
|
}
|
|
818
816
|
function Ue(e) {
|
|
819
817
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
820
818
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
819
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
820
|
+
function an(e) {
|
|
823
821
|
var t = {};
|
|
824
|
-
return e.replace(
|
|
822
|
+
return e.replace(on, function(r) {
|
|
825
823
|
var n = r.length;
|
|
826
824
|
switch (r[0]) {
|
|
827
825
|
case "G":
|
|
@@ -910,11 +908,11 @@ function hn(e) {
|
|
|
910
908
|
return "";
|
|
911
909
|
}), t;
|
|
912
910
|
}
|
|
913
|
-
var
|
|
914
|
-
function
|
|
911
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
912
|
+
function un(e) {
|
|
915
913
|
if (e.length === 0)
|
|
916
914
|
throw new Error("Number skeleton cannot be empty");
|
|
917
|
-
for (var t = e.split(
|
|
915
|
+
for (var t = e.split(hn).filter(function(c) {
|
|
918
916
|
return c.length > 0;
|
|
919
917
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
920
918
|
var s = i[n], a = s.split("/");
|
|
@@ -929,17 +927,17 @@ function ln(e) {
|
|
|
929
927
|
}
|
|
930
928
|
return r;
|
|
931
929
|
}
|
|
932
|
-
function
|
|
930
|
+
function ln(e) {
|
|
933
931
|
return e.replace(/^(.*?)-/, "");
|
|
934
932
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
933
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
934
|
+
function ot(e) {
|
|
937
935
|
var t = {};
|
|
938
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
936
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
939
937
|
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)), "";
|
|
940
938
|
}), t;
|
|
941
939
|
}
|
|
942
|
-
function
|
|
940
|
+
function Vt(e) {
|
|
943
941
|
switch (e) {
|
|
944
942
|
case "sign-auto":
|
|
945
943
|
return {
|
|
@@ -979,7 +977,7 @@ function zt(e) {
|
|
|
979
977
|
};
|
|
980
978
|
}
|
|
981
979
|
}
|
|
982
|
-
function
|
|
980
|
+
function cn(e) {
|
|
983
981
|
var t;
|
|
984
982
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
985
983
|
notation: "engineering"
|
|
@@ -987,17 +985,17 @@ function mn(e) {
|
|
|
987
985
|
notation: "scientific"
|
|
988
986
|
}, e = e.slice(1)), t) {
|
|
989
987
|
var r = e.slice(0, 2);
|
|
990
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
988
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
991
989
|
throw new Error("Malformed concise eng/scientific notation");
|
|
992
990
|
t.minimumIntegerDigits = e.length;
|
|
993
991
|
}
|
|
994
992
|
return t;
|
|
995
993
|
}
|
|
996
|
-
function
|
|
997
|
-
var t = {}, r =
|
|
994
|
+
function at(e) {
|
|
995
|
+
var t = {}, r = Vt(e);
|
|
998
996
|
return r || t;
|
|
999
997
|
}
|
|
1000
|
-
function
|
|
998
|
+
function mn(e) {
|
|
1001
999
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1002
1000
|
var i = n[r];
|
|
1003
1001
|
switch (i.stem) {
|
|
@@ -1021,7 +1019,7 @@ function dn(e) {
|
|
|
1021
1019
|
continue;
|
|
1022
1020
|
case "measure-unit":
|
|
1023
1021
|
case "unit":
|
|
1024
|
-
t.style = "unit", t.unit =
|
|
1022
|
+
t.style = "unit", t.unit = ln(i.options[0]);
|
|
1025
1023
|
continue;
|
|
1026
1024
|
case "compact-short":
|
|
1027
1025
|
case "K":
|
|
@@ -1033,12 +1031,12 @@ function dn(e) {
|
|
|
1033
1031
|
continue;
|
|
1034
1032
|
case "scientific":
|
|
1035
1033
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
|
1036
|
-
return y(y({}, l),
|
|
1034
|
+
return y(y({}, l), at(h));
|
|
1037
1035
|
}, {}));
|
|
1038
1036
|
continue;
|
|
1039
1037
|
case "engineering":
|
|
1040
1038
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
|
1041
|
-
return y(y({}, l),
|
|
1039
|
+
return y(y({}, l), at(h));
|
|
1042
1040
|
}, {}));
|
|
1043
1041
|
continue;
|
|
1044
1042
|
case "notation-simple":
|
|
@@ -1083,40 +1081,40 @@ function dn(e) {
|
|
|
1083
1081
|
case "integer-width":
|
|
1084
1082
|
if (i.options.length > 1)
|
|
1085
1083
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1086
|
-
i.options[0].replace(
|
|
1084
|
+
i.options[0].replace(fn, function(l, h, u, f, c, p) {
|
|
1087
1085
|
if (h)
|
|
1088
1086
|
t.minimumIntegerDigits = u.length;
|
|
1089
1087
|
else {
|
|
1090
1088
|
if (f && c)
|
|
1091
1089
|
throw new Error("We currently do not support maximum integer digits");
|
|
1092
|
-
if (
|
|
1090
|
+
if (p)
|
|
1093
1091
|
throw new Error("We currently do not support exact integer digits");
|
|
1094
1092
|
}
|
|
1095
1093
|
return "";
|
|
1096
1094
|
});
|
|
1097
1095
|
continue;
|
|
1098
1096
|
}
|
|
1099
|
-
if (
|
|
1097
|
+
if (kt.test(i.stem)) {
|
|
1100
1098
|
t.minimumIntegerDigits = i.stem.length;
|
|
1101
1099
|
continue;
|
|
1102
1100
|
}
|
|
1103
|
-
if (
|
|
1101
|
+
if (st.test(i.stem)) {
|
|
1104
1102
|
if (i.options.length > 1)
|
|
1105
1103
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1106
|
-
i.stem.replace(
|
|
1107
|
-
return u === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1104
|
+
i.stem.replace(st, function(l, h, u, f, c, p) {
|
|
1105
|
+
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), "";
|
|
1108
1106
|
});
|
|
1109
1107
|
var s = i.options[0];
|
|
1110
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1108
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ot(s)));
|
|
1111
1109
|
continue;
|
|
1112
1110
|
}
|
|
1113
|
-
if (
|
|
1114
|
-
t = y(y({}, t),
|
|
1111
|
+
if (jt.test(i.stem)) {
|
|
1112
|
+
t = y(y({}, t), ot(i.stem));
|
|
1115
1113
|
continue;
|
|
1116
1114
|
}
|
|
1117
|
-
var a =
|
|
1115
|
+
var a = Vt(i.stem);
|
|
1118
1116
|
a && (t = y(y({}, t), a));
|
|
1119
|
-
var o =
|
|
1117
|
+
var o = cn(i.stem);
|
|
1120
1118
|
o && (t = y(y({}, t), o));
|
|
1121
1119
|
}
|
|
1122
1120
|
return t;
|
|
@@ -2542,7 +2540,7 @@ function pn(e, t) {
|
|
|
2542
2540
|
if (i === "j") {
|
|
2543
2541
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2544
2542
|
s++, n++;
|
|
2545
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
|
2543
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = dn(t);
|
|
2546
2544
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
2547
2545
|
r += l;
|
|
2548
2546
|
for (; a-- > 0; )
|
|
@@ -2552,7 +2550,7 @@ function pn(e, t) {
|
|
|
2552
2550
|
}
|
|
2553
2551
|
return r;
|
|
2554
2552
|
}
|
|
2555
|
-
function
|
|
2553
|
+
function dn(e) {
|
|
2556
2554
|
var t = e.hourCycle;
|
|
2557
2555
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2558
2556
|
e.hourCycles && // @ts-ignore
|
|
@@ -2574,20 +2572,20 @@ function bn(e) {
|
|
|
2574
2572
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2575
2573
|
return i[0];
|
|
2576
2574
|
}
|
|
2577
|
-
var Pe,
|
|
2575
|
+
var Pe, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
|
|
2578
2576
|
function b(e, t) {
|
|
2579
2577
|
return { start: e, end: t };
|
|
2580
2578
|
}
|
|
2581
|
-
var
|
|
2579
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, xn = !!Object.fromEntries, En = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
|
|
2582
2580
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2583
2581
|
}, De = !0;
|
|
2584
2582
|
try {
|
|
2585
|
-
var
|
|
2586
|
-
De = ((Pe =
|
|
2583
|
+
var wn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
|
+
De = ((Pe = wn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2587
2585
|
} catch (e) {
|
|
2588
2586
|
De = !1;
|
|
2589
2587
|
}
|
|
2590
|
-
var
|
|
2588
|
+
var ht = _n ? (
|
|
2591
2589
|
// Native
|
|
2592
2590
|
function(t, r, n) {
|
|
2593
2591
|
return t.startsWith(r, n);
|
|
@@ -2597,7 +2595,7 @@ var lt = yn ? (
|
|
|
2597
2595
|
function(t, r, n) {
|
|
2598
2596
|
return t.slice(n, n + r.length) === r;
|
|
2599
2597
|
}
|
|
2600
|
-
), Ge =
|
|
2598
|
+
), Ge = yn ? String.fromCodePoint : (
|
|
2601
2599
|
// IE11
|
|
2602
2600
|
function() {
|
|
2603
2601
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2609,9 +2607,9 @@ var lt = yn ? (
|
|
|
2609
2607
|
}
|
|
2610
2608
|
return n;
|
|
2611
2609
|
}
|
|
2612
|
-
),
|
|
2610
|
+
), ut = (
|
|
2613
2611
|
// native
|
|
2614
|
-
|
|
2612
|
+
xn ? Object.fromEntries : (
|
|
2615
2613
|
// Ponyfill
|
|
2616
2614
|
function(t) {
|
|
2617
2615
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2621,7 +2619,7 @@ var lt = yn ? (
|
|
|
2621
2619
|
return r;
|
|
2622
2620
|
}
|
|
2623
2621
|
)
|
|
2624
|
-
),
|
|
2622
|
+
), Xt = En ? (
|
|
2625
2623
|
// Native
|
|
2626
2624
|
function(t, r) {
|
|
2627
2625
|
return t.codePointAt(r);
|
|
@@ -2635,7 +2633,7 @@ var lt = yn ? (
|
|
|
2635
2633
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2636
2634
|
}
|
|
2637
2635
|
}
|
|
2638
|
-
),
|
|
2636
|
+
), Sn = vn ? (
|
|
2639
2637
|
// Native
|
|
2640
2638
|
function(t) {
|
|
2641
2639
|
return t.trimStart();
|
|
@@ -2643,9 +2641,9 @@ var lt = yn ? (
|
|
|
2643
2641
|
) : (
|
|
2644
2642
|
// Ponyfill
|
|
2645
2643
|
function(t) {
|
|
2646
|
-
return t.replace(
|
|
2644
|
+
return t.replace(bn, "");
|
|
2647
2645
|
}
|
|
2648
|
-
),
|
|
2646
|
+
), An = Hn ? (
|
|
2649
2647
|
// Native
|
|
2650
2648
|
function(t) {
|
|
2651
2649
|
return t.trimEnd();
|
|
@@ -2653,32 +2651,32 @@ var lt = yn ? (
|
|
|
2653
2651
|
) : (
|
|
2654
2652
|
// Ponyfill
|
|
2655
2653
|
function(t) {
|
|
2656
|
-
return t.replace(
|
|
2654
|
+
return t.replace(gn, "");
|
|
2657
2655
|
}
|
|
2658
2656
|
);
|
|
2659
|
-
function
|
|
2657
|
+
function Wt(e, t) {
|
|
2660
2658
|
return new RegExp(e, t);
|
|
2661
2659
|
}
|
|
2662
2660
|
var Fe;
|
|
2663
2661
|
if (De) {
|
|
2664
|
-
var
|
|
2662
|
+
var lt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2665
2663
|
Fe = function(t, r) {
|
|
2666
2664
|
var n;
|
|
2667
|
-
|
|
2668
|
-
var i =
|
|
2665
|
+
lt.lastIndex = r;
|
|
2666
|
+
var i = lt.exec(t);
|
|
2669
2667
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2670
2668
|
};
|
|
2671
2669
|
} else
|
|
2672
2670
|
Fe = function(t, r) {
|
|
2673
2671
|
for (var n = []; ; ) {
|
|
2674
|
-
var i =
|
|
2675
|
-
if (i === void 0 ||
|
|
2672
|
+
var i = Xt(t, r);
|
|
2673
|
+
if (i === void 0 || zt(i) || Ln(i))
|
|
2676
2674
|
break;
|
|
2677
2675
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2678
2676
|
}
|
|
2679
2677
|
return Ge.apply(void 0, n);
|
|
2680
2678
|
};
|
|
2681
|
-
var
|
|
2679
|
+
var Cn = (
|
|
2682
2680
|
/** @class */
|
|
2683
2681
|
function() {
|
|
2684
2682
|
function e(t, r) {
|
|
@@ -2708,7 +2706,7 @@ var On = (
|
|
|
2708
2706
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2709
2707
|
if (n)
|
|
2710
2708
|
break;
|
|
2711
|
-
return this.error(
|
|
2709
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2712
2710
|
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2713
2711
|
var a = this.parseTag(t, r);
|
|
2714
2712
|
if (a.err)
|
|
@@ -2743,9 +2741,9 @@ var On = (
|
|
|
2743
2741
|
var a = s.val, o = this.clonePosition();
|
|
2744
2742
|
if (this.bumpIf("</")) {
|
|
2745
2743
|
if (this.isEOF() || !je(this.char()))
|
|
2746
|
-
return this.error(
|
|
2744
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2747
2745
|
var l = this.clonePosition(), h = this.parseTagName();
|
|
2748
|
-
return i !== h ? this.error(
|
|
2746
|
+
return i !== h ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2749
2747
|
val: {
|
|
2750
2748
|
type: x.tag,
|
|
2751
2749
|
value: i,
|
|
@@ -2753,14 +2751,14 @@ var On = (
|
|
|
2753
2751
|
location: b(n, this.clonePosition())
|
|
2754
2752
|
},
|
|
2755
2753
|
err: null
|
|
2756
|
-
} : this.error(
|
|
2754
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2757
2755
|
} else
|
|
2758
|
-
return this.error(
|
|
2756
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2759
2757
|
} else
|
|
2760
|
-
return this.error(
|
|
2758
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2761
2759
|
}, e.prototype.parseTagName = function() {
|
|
2762
2760
|
var t = this.offset();
|
|
2763
|
-
for (this.bump(); !this.isEOF() &&
|
|
2761
|
+
for (this.bump(); !this.isEOF() && Pn(this.char()); )
|
|
2764
2762
|
this.bump();
|
|
2765
2763
|
return this.message.slice(t, this.offset());
|
|
2766
2764
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2789,7 +2787,7 @@ var On = (
|
|
|
2789
2787
|
};
|
|
2790
2788
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2791
2789
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2792
|
-
!
|
|
2790
|
+
!On(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2793
2791
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2794
2792
|
if (this.isEOF() || this.char() !== 39)
|
|
2795
2793
|
return null;
|
|
@@ -2832,14 +2830,14 @@ var On = (
|
|
|
2832
2830
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2833
2831
|
var n = this.clonePosition();
|
|
2834
2832
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2835
|
-
return this.error(
|
|
2833
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2836
2834
|
if (this.char() === 125)
|
|
2837
|
-
return this.bump(), this.error(
|
|
2835
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2838
2836
|
var i = this.parseIdentifierIfPossible().value;
|
|
2839
2837
|
if (!i)
|
|
2840
|
-
return this.error(
|
|
2838
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2841
2839
|
if (this.bumpSpace(), this.isEOF())
|
|
2842
|
-
return this.error(
|
|
2840
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2843
2841
|
switch (this.char()) {
|
|
2844
2842
|
case 125:
|
|
2845
2843
|
return this.bump(), {
|
|
@@ -2852,9 +2850,9 @@ var On = (
|
|
|
2852
2850
|
err: null
|
|
2853
2851
|
};
|
|
2854
2852
|
case 44:
|
|
2855
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2853
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2856
2854
|
default:
|
|
2857
|
-
return this.error(
|
|
2855
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2858
2856
|
}
|
|
2859
2857
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2860
2858
|
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
@@ -2865,7 +2863,7 @@ var On = (
|
|
|
2865
2863
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2866
2864
|
switch (o) {
|
|
2867
2865
|
case "":
|
|
2868
|
-
return this.error(
|
|
2866
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2869
2867
|
case "number":
|
|
2870
2868
|
case "date":
|
|
2871
2869
|
case "time": {
|
|
@@ -2876,18 +2874,18 @@ var On = (
|
|
|
2876
2874
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2877
2875
|
if (f.err)
|
|
2878
2876
|
return f;
|
|
2879
|
-
var c =
|
|
2877
|
+
var c = An(f.val);
|
|
2880
2878
|
if (c.length === 0)
|
|
2881
|
-
return this.error(
|
|
2882
|
-
var
|
|
2883
|
-
h = { style: c, styleLocation:
|
|
2879
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2880
|
+
var p = b(u, this.clonePosition());
|
|
2881
|
+
h = { style: c, styleLocation: p };
|
|
2884
2882
|
}
|
|
2885
2883
|
var m = this.tryParseArgumentClose(i);
|
|
2886
2884
|
if (m.err)
|
|
2887
2885
|
return m;
|
|
2888
2886
|
var g = b(i, this.clonePosition());
|
|
2889
|
-
if (h &&
|
|
2890
|
-
var v =
|
|
2887
|
+
if (h && ht(h == null ? void 0 : h.style, "::", 0)) {
|
|
2888
|
+
var v = Sn(h.style.slice(2));
|
|
2891
2889
|
if (o === "number") {
|
|
2892
2890
|
var f = this.parseNumberSkeletonFromString(v, h.styleLocation);
|
|
2893
2891
|
return f.err ? f : {
|
|
@@ -2896,14 +2894,14 @@ var On = (
|
|
|
2896
2894
|
};
|
|
2897
2895
|
} else {
|
|
2898
2896
|
if (v.length === 0)
|
|
2899
|
-
return this.error(
|
|
2897
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2900
2898
|
var N = v;
|
|
2901
2899
|
this.locale && (N = pn(v, this.locale));
|
|
2902
2900
|
var c = {
|
|
2903
2901
|
type: V.dateTime,
|
|
2904
2902
|
pattern: N,
|
|
2905
2903
|
location: h.styleLocation,
|
|
2906
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2904
|
+
parsedOptions: this.shouldParseSkeletons ? an(N) : {}
|
|
2907
2905
|
}, C = o === "date" ? x.date : x.time;
|
|
2908
2906
|
return {
|
|
2909
2907
|
val: { type: C, value: n, location: g, style: c },
|
|
@@ -2926,14 +2924,14 @@ var On = (
|
|
|
2926
2924
|
case "select": {
|
|
2927
2925
|
var H = this.clonePosition();
|
|
2928
2926
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2929
|
-
return this.error(
|
|
2927
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2930
2928
|
this.bumpSpace();
|
|
2931
2929
|
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2932
2930
|
if (o !== "select" && I.value === "offset") {
|
|
2933
2931
|
if (!this.bumpIf(":"))
|
|
2934
|
-
return this.error(
|
|
2932
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2935
2933
|
this.bumpSpace();
|
|
2936
|
-
var f = this.tryParseDecimalInteger(
|
|
2934
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2937
2935
|
if (f.err)
|
|
2938
2936
|
return f;
|
|
2939
2937
|
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
@@ -2949,7 +2947,7 @@ var On = (
|
|
|
2949
2947
|
val: {
|
|
2950
2948
|
type: x.select,
|
|
2951
2949
|
value: n,
|
|
2952
|
-
options:
|
|
2950
|
+
options: ut(R.val),
|
|
2953
2951
|
location: se
|
|
2954
2952
|
},
|
|
2955
2953
|
err: null
|
|
@@ -2957,7 +2955,7 @@ var On = (
|
|
|
2957
2955
|
val: {
|
|
2958
2956
|
type: x.plural,
|
|
2959
2957
|
value: n,
|
|
2960
|
-
options:
|
|
2958
|
+
options: ut(R.val),
|
|
2961
2959
|
offset: w,
|
|
2962
2960
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2963
2961
|
location: se
|
|
@@ -2966,10 +2964,10 @@ var On = (
|
|
|
2966
2964
|
};
|
|
2967
2965
|
}
|
|
2968
2966
|
default:
|
|
2969
|
-
return this.error(
|
|
2967
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2970
2968
|
}
|
|
2971
2969
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2972
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2970
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2973
2971
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2974
2972
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2975
2973
|
var n = this.char();
|
|
@@ -2978,7 +2976,7 @@ var On = (
|
|
|
2978
2976
|
this.bump();
|
|
2979
2977
|
var i = this.clonePosition();
|
|
2980
2978
|
if (!this.bumpUntil("'"))
|
|
2981
|
-
return this.error(
|
|
2979
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2982
2980
|
this.bump();
|
|
2983
2981
|
break;
|
|
2984
2982
|
}
|
|
@@ -3008,16 +3006,16 @@ var On = (
|
|
|
3008
3006
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3009
3007
|
var n = [];
|
|
3010
3008
|
try {
|
|
3011
|
-
n =
|
|
3009
|
+
n = un(t);
|
|
3012
3010
|
} catch (i) {
|
|
3013
|
-
return this.error(
|
|
3011
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3014
3012
|
}
|
|
3015
3013
|
return {
|
|
3016
3014
|
val: {
|
|
3017
3015
|
type: V.number,
|
|
3018
3016
|
tokens: n,
|
|
3019
3017
|
location: r,
|
|
3020
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3018
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3021
3019
|
},
|
|
3022
3020
|
err: null
|
|
3023
3021
|
};
|
|
@@ -3026,7 +3024,7 @@ var On = (
|
|
|
3026
3024
|
if (h.length === 0) {
|
|
3027
3025
|
var f = this.clonePosition();
|
|
3028
3026
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3029
|
-
var c = this.tryParseDecimalInteger(
|
|
3027
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3030
3028
|
if (c.err)
|
|
3031
3029
|
return c;
|
|
3032
3030
|
u = b(f, this.clonePosition()), h = this.message.slice(f.offset, this.offset());
|
|
@@ -3034,26 +3032,26 @@ var On = (
|
|
|
3034
3032
|
break;
|
|
3035
3033
|
}
|
|
3036
3034
|
if (l.has(h))
|
|
3037
|
-
return this.error(r === "select" ?
|
|
3035
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3038
3036
|
h === "other" && (a = !0), this.bumpSpace();
|
|
3039
|
-
var
|
|
3037
|
+
var p = this.clonePosition();
|
|
3040
3038
|
if (!this.bumpIf("{"))
|
|
3041
|
-
return this.error(r === "select" ?
|
|
3039
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3042
3040
|
var m = this.parseMessage(t + 1, r, n);
|
|
3043
3041
|
if (m.err)
|
|
3044
3042
|
return m;
|
|
3045
|
-
var g = this.tryParseArgumentClose(
|
|
3043
|
+
var g = this.tryParseArgumentClose(p);
|
|
3046
3044
|
if (g.err)
|
|
3047
3045
|
return g;
|
|
3048
3046
|
o.push([
|
|
3049
3047
|
h,
|
|
3050
3048
|
{
|
|
3051
3049
|
value: m.val,
|
|
3052
|
-
location: b(
|
|
3050
|
+
location: b(p, this.clonePosition())
|
|
3053
3051
|
}
|
|
3054
3052
|
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
|
3055
3053
|
}
|
|
3056
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3054
|
+
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 };
|
|
3057
3055
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3058
3056
|
var n = 1, i = this.clonePosition();
|
|
3059
3057
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3065,7 +3063,7 @@ var On = (
|
|
|
3065
3063
|
break;
|
|
3066
3064
|
}
|
|
3067
3065
|
var l = b(i, this.clonePosition());
|
|
3068
|
-
return s ? (a *= n,
|
|
3066
|
+
return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3069
3067
|
}, e.prototype.offset = function() {
|
|
3070
3068
|
return this.position.offset;
|
|
3071
3069
|
}, e.prototype.isEOF = function() {
|
|
@@ -3080,7 +3078,7 @@ var On = (
|
|
|
3080
3078
|
var t = this.position.offset;
|
|
3081
3079
|
if (t >= this.message.length)
|
|
3082
3080
|
throw Error("out of bound");
|
|
3083
|
-
var r =
|
|
3081
|
+
var r = Xt(this.message, t);
|
|
3084
3082
|
if (r === void 0)
|
|
3085
3083
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3086
3084
|
return r;
|
|
@@ -3099,7 +3097,7 @@ var On = (
|
|
|
3099
3097
|
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);
|
|
3100
3098
|
}
|
|
3101
3099
|
}, e.prototype.bumpIf = function(t) {
|
|
3102
|
-
if (
|
|
3100
|
+
if (ht(this.message, t, this.offset())) {
|
|
3103
3101
|
for (var r = 0; r < t.length; r++)
|
|
3104
3102
|
this.bump();
|
|
3105
3103
|
return !0;
|
|
@@ -3121,7 +3119,7 @@ var On = (
|
|
|
3121
3119
|
break;
|
|
3122
3120
|
}
|
|
3123
3121
|
}, e.prototype.bumpSpace = function() {
|
|
3124
|
-
for (; !this.isEOF() &&
|
|
3122
|
+
for (; !this.isEOF() && zt(this.char()); )
|
|
3125
3123
|
this.bump();
|
|
3126
3124
|
}, e.prototype.peek = function() {
|
|
3127
3125
|
if (this.isEOF())
|
|
@@ -3134,32 +3132,32 @@ var On = (
|
|
|
3134
3132
|
function je(e) {
|
|
3135
3133
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3136
3134
|
}
|
|
3137
|
-
function
|
|
3135
|
+
function On(e) {
|
|
3138
3136
|
return je(e) || e === 47;
|
|
3139
3137
|
}
|
|
3140
|
-
function
|
|
3138
|
+
function Pn(e) {
|
|
3141
3139
|
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;
|
|
3142
3140
|
}
|
|
3143
|
-
function
|
|
3141
|
+
function zt(e) {
|
|
3144
3142
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3145
3143
|
}
|
|
3146
|
-
function
|
|
3144
|
+
function Ln(e) {
|
|
3147
3145
|
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;
|
|
3148
3146
|
}
|
|
3149
3147
|
function ke(e) {
|
|
3150
3148
|
e.forEach(function(t) {
|
|
3151
|
-
if (delete t.location,
|
|
3149
|
+
if (delete t.location, Rt(t) || Ut(t))
|
|
3152
3150
|
for (var r in t.options)
|
|
3153
3151
|
delete t.options[r].location, ke(t.options[r].value);
|
|
3154
3152
|
else
|
|
3155
|
-
|
|
3153
|
+
It(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Dt(t) && ke(t.children);
|
|
3156
3154
|
});
|
|
3157
3155
|
}
|
|
3158
|
-
function
|
|
3156
|
+
function Nn(e, t) {
|
|
3159
3157
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3160
|
-
var r = new
|
|
3158
|
+
var r = new Cn(e, t).parse();
|
|
3161
3159
|
if (r.err) {
|
|
3162
|
-
var n = SyntaxError(
|
|
3160
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3163
3161
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3164
3162
|
}
|
|
3165
3163
|
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
@@ -3180,7 +3178,7 @@ var ye = (
|
|
|
3180
3178
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3181
3179
|
}, t;
|
|
3182
3180
|
}(Error)
|
|
3183
|
-
),
|
|
3181
|
+
), ft = (
|
|
3184
3182
|
/** @class */
|
|
3185
3183
|
function(e) {
|
|
3186
3184
|
_e(t, e);
|
|
@@ -3189,7 +3187,7 @@ var ye = (
|
|
|
3189
3187
|
}
|
|
3190
3188
|
return t;
|
|
3191
3189
|
}(ye)
|
|
3192
|
-
),
|
|
3190
|
+
), In = (
|
|
3193
3191
|
/** @class */
|
|
3194
3192
|
function(e) {
|
|
3195
3193
|
_e(t, e);
|
|
@@ -3198,7 +3196,7 @@ var ye = (
|
|
|
3198
3196
|
}
|
|
3199
3197
|
return t;
|
|
3200
3198
|
}(ye)
|
|
3201
|
-
),
|
|
3199
|
+
), Mn = (
|
|
3202
3200
|
/** @class */
|
|
3203
3201
|
function(e) {
|
|
3204
3202
|
_e(t, e);
|
|
@@ -3211,17 +3209,17 @@ var ye = (
|
|
|
3211
3209
|
(function(e) {
|
|
3212
3210
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3213
3211
|
})(E || (E = {}));
|
|
3214
|
-
function
|
|
3212
|
+
function $n(e) {
|
|
3215
3213
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3216
3214
|
var n = t[t.length - 1];
|
|
3217
3215
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3218
3216
|
}, []);
|
|
3219
3217
|
}
|
|
3220
|
-
function
|
|
3218
|
+
function Rn(e) {
|
|
3221
3219
|
return typeof e == "function";
|
|
3222
3220
|
}
|
|
3223
3221
|
function fe(e, t, r, n, i, s, a) {
|
|
3224
|
-
if (e.length === 1 &&
|
|
3222
|
+
if (e.length === 1 && it(e[0]))
|
|
3225
3223
|
return [
|
|
3226
3224
|
{
|
|
3227
3225
|
type: E.literal,
|
|
@@ -3230,14 +3228,14 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3230
3228
|
];
|
|
3231
3229
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
|
3232
3230
|
var u = h[l];
|
|
3233
|
-
if (
|
|
3231
|
+
if (it(u)) {
|
|
3234
3232
|
o.push({
|
|
3235
3233
|
type: E.literal,
|
|
3236
3234
|
value: u.value
|
|
3237
3235
|
});
|
|
3238
3236
|
continue;
|
|
3239
3237
|
}
|
|
3240
|
-
if (
|
|
3238
|
+
if (sn(u)) {
|
|
3241
3239
|
typeof s == "number" && o.push({
|
|
3242
3240
|
type: E.literal,
|
|
3243
3241
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3246,43 +3244,43 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3246
3244
|
}
|
|
3247
3245
|
var f = u.value;
|
|
3248
3246
|
if (!(i && f in i))
|
|
3249
|
-
throw new
|
|
3247
|
+
throw new Mn(f, a);
|
|
3250
3248
|
var c = i[f];
|
|
3251
|
-
if (
|
|
3249
|
+
if (nn(u)) {
|
|
3252
3250
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3253
3251
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3254
3252
|
value: c
|
|
3255
3253
|
});
|
|
3256
3254
|
continue;
|
|
3257
3255
|
}
|
|
3258
|
-
if (
|
|
3259
|
-
var
|
|
3256
|
+
if (Mt(u)) {
|
|
3257
|
+
var p = typeof u.style == "string" ? n.date[u.style] : Ue(u.style) ? u.style.parsedOptions : void 0;
|
|
3260
3258
|
o.push({
|
|
3261
3259
|
type: E.literal,
|
|
3262
|
-
value: r.getDateTimeFormat(t,
|
|
3260
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3263
3261
|
});
|
|
3264
3262
|
continue;
|
|
3265
3263
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
var
|
|
3264
|
+
if ($t(u)) {
|
|
3265
|
+
var p = typeof u.style == "string" ? n.time[u.style] : Ue(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3268
3266
|
o.push({
|
|
3269
3267
|
type: E.literal,
|
|
3270
|
-
value: r.getDateTimeFormat(t,
|
|
3268
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3271
3269
|
});
|
|
3272
3270
|
continue;
|
|
3273
3271
|
}
|
|
3274
|
-
if (
|
|
3275
|
-
var
|
|
3276
|
-
|
|
3272
|
+
if (It(u)) {
|
|
3273
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Gt(u.style) ? u.style.parsedOptions : void 0;
|
|
3274
|
+
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3277
3275
|
type: E.literal,
|
|
3278
|
-
value: r.getNumberFormat(t,
|
|
3276
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3279
3277
|
});
|
|
3280
3278
|
continue;
|
|
3281
3279
|
}
|
|
3282
|
-
if (
|
|
3280
|
+
if (Dt(u)) {
|
|
3283
3281
|
var m = u.children, g = u.value, v = i[g];
|
|
3284
|
-
if (!
|
|
3285
|
-
throw new
|
|
3282
|
+
if (!Rn(v))
|
|
3283
|
+
throw new In(g, "function", a);
|
|
3286
3284
|
var N = fe(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
3287
3285
|
return w.value;
|
|
3288
3286
|
}));
|
|
@@ -3293,14 +3291,14 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3293
3291
|
};
|
|
3294
3292
|
}));
|
|
3295
3293
|
}
|
|
3296
|
-
if (
|
|
3294
|
+
if (Rt(u)) {
|
|
3297
3295
|
var H = u.options[c] || u.options.other;
|
|
3298
3296
|
if (!H)
|
|
3299
|
-
throw new
|
|
3297
|
+
throw new ft(u.value, c, Object.keys(u.options), a);
|
|
3300
3298
|
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3301
3299
|
continue;
|
|
3302
3300
|
}
|
|
3303
|
-
if (
|
|
3301
|
+
if (Ut(u)) {
|
|
3304
3302
|
var H = u.options["=".concat(c)];
|
|
3305
3303
|
if (!H) {
|
|
3306
3304
|
if (!Intl.PluralRules)
|
|
@@ -3311,21 +3309,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3311
3309
|
H = u.options[I] || u.options.other;
|
|
3312
3310
|
}
|
|
3313
3311
|
if (!H)
|
|
3314
|
-
throw new
|
|
3312
|
+
throw new ft(u.value, c, Object.keys(u.options), a);
|
|
3315
3313
|
o.push.apply(o, fe(H.value, t, r, n, i, c - (u.offset || 0)));
|
|
3316
3314
|
continue;
|
|
3317
3315
|
}
|
|
3318
3316
|
}
|
|
3319
|
-
return
|
|
3317
|
+
return $n(o);
|
|
3320
3318
|
}
|
|
3321
|
-
function
|
|
3319
|
+
function Un(e, t) {
|
|
3322
3320
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3323
3321
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3324
3322
|
}, {})) : e;
|
|
3325
3323
|
}
|
|
3326
|
-
function
|
|
3324
|
+
function Dn(e, t) {
|
|
3327
3325
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3328
|
-
return r[n] =
|
|
3326
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3329
3327
|
}, y({}, e)) : e;
|
|
3330
3328
|
}
|
|
3331
3329
|
function Le(e) {
|
|
@@ -3342,7 +3340,7 @@ function Le(e) {
|
|
|
3342
3340
|
}
|
|
3343
3341
|
};
|
|
3344
3342
|
}
|
|
3345
|
-
function
|
|
3343
|
+
function Gn(e) {
|
|
3346
3344
|
return e === void 0 && (e = {
|
|
3347
3345
|
number: {},
|
|
3348
3346
|
dateTime: {},
|
|
@@ -3374,7 +3372,7 @@ function Fn(e) {
|
|
|
3374
3372
|
})
|
|
3375
3373
|
};
|
|
3376
3374
|
}
|
|
3377
|
-
var
|
|
3375
|
+
var Zt = (
|
|
3378
3376
|
/** @class */
|
|
3379
3377
|
function() {
|
|
3380
3378
|
function e(t, r, n, i) {
|
|
@@ -3406,13 +3404,13 @@ var qt = (
|
|
|
3406
3404
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3407
3405
|
var a = i || {};
|
|
3408
3406
|
a.formatters;
|
|
3409
|
-
var o =
|
|
3407
|
+
var o = Qr(a, ["formatters"]);
|
|
3410
3408
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3411
3409
|
} else
|
|
3412
3410
|
this.ast = t;
|
|
3413
3411
|
if (!Array.isArray(this.ast))
|
|
3414
3412
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3415
|
-
this.formats =
|
|
3413
|
+
this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
|
|
3416
3414
|
}
|
|
3417
3415
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3418
3416
|
get: function() {
|
|
@@ -3425,7 +3423,7 @@ var qt = (
|
|
|
3425
3423
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3426
3424
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3427
3425
|
}
|
|
3428
|
-
}, e.__parse =
|
|
3426
|
+
}, e.__parse = Nn, e.formats = {
|
|
3429
3427
|
number: {
|
|
3430
3428
|
integer: {
|
|
3431
3429
|
maximumFractionDigits: 0
|
|
@@ -3486,7 +3484,7 @@ var qt = (
|
|
|
3486
3484
|
}, e;
|
|
3487
3485
|
}()
|
|
3488
3486
|
);
|
|
3489
|
-
function
|
|
3487
|
+
function Fn(e, t) {
|
|
3490
3488
|
if (t == null)
|
|
3491
3489
|
return;
|
|
3492
3490
|
if (t in e)
|
|
@@ -3507,101 +3505,101 @@ function jn(e, t) {
|
|
|
3507
3505
|
n = void 0;
|
|
3508
3506
|
return n;
|
|
3509
3507
|
}
|
|
3510
|
-
const O = {},
|
|
3508
|
+
const O = {}, jn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Qt = (e, t) => {
|
|
3511
3509
|
if (t == null)
|
|
3512
3510
|
return;
|
|
3513
3511
|
if (t in O && e in O[t])
|
|
3514
3512
|
return O[t][e];
|
|
3515
3513
|
const r = ie(t);
|
|
3516
3514
|
for (let n = 0; n < r.length; n++) {
|
|
3517
|
-
const i = r[n], s =
|
|
3515
|
+
const i = r[n], s = Vn(i, e);
|
|
3518
3516
|
if (s)
|
|
3519
|
-
return
|
|
3517
|
+
return jn(e, t, s);
|
|
3520
3518
|
}
|
|
3521
3519
|
};
|
|
3522
|
-
let
|
|
3520
|
+
let Ze;
|
|
3523
3521
|
const ne = ge({});
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3522
|
+
function kn(e) {
|
|
3523
|
+
return Ze[e] || null;
|
|
3526
3524
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return e in
|
|
3525
|
+
function qt(e) {
|
|
3526
|
+
return e in Ze;
|
|
3529
3527
|
}
|
|
3530
|
-
function
|
|
3531
|
-
if (!
|
|
3528
|
+
function Vn(e, t) {
|
|
3529
|
+
if (!qt(e))
|
|
3532
3530
|
return null;
|
|
3533
|
-
const r =
|
|
3534
|
-
return
|
|
3531
|
+
const r = kn(e);
|
|
3532
|
+
return Fn(r, t);
|
|
3535
3533
|
}
|
|
3536
|
-
function
|
|
3534
|
+
function Xn(e) {
|
|
3537
3535
|
if (e == null)
|
|
3538
3536
|
return;
|
|
3539
3537
|
const t = ie(e);
|
|
3540
3538
|
for (let r = 0; r < t.length; r++) {
|
|
3541
3539
|
const n = t[r];
|
|
3542
|
-
if (
|
|
3540
|
+
if (qt(n))
|
|
3543
3541
|
return n;
|
|
3544
3542
|
}
|
|
3545
3543
|
}
|
|
3546
|
-
function
|
|
3547
|
-
delete O[e], ne.update((r) => (r[e] =
|
|
3544
|
+
function Jt(e, ...t) {
|
|
3545
|
+
delete O[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3548
3546
|
}
|
|
3549
3547
|
Q(
|
|
3550
3548
|
[ne],
|
|
3551
3549
|
([e]) => Object.keys(e)
|
|
3552
3550
|
);
|
|
3553
|
-
ne.subscribe((e) =>
|
|
3551
|
+
ne.subscribe((e) => Ze = e);
|
|
3554
3552
|
const ce = {};
|
|
3555
3553
|
function Wn(e, t) {
|
|
3556
3554
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3557
3555
|
}
|
|
3558
|
-
function
|
|
3556
|
+
function Yt(e) {
|
|
3559
3557
|
return ce[e];
|
|
3560
3558
|
}
|
|
3561
|
-
function
|
|
3559
|
+
function zn(e) {
|
|
3562
3560
|
return ie(e).map((t) => {
|
|
3563
|
-
const r =
|
|
3561
|
+
const r = Yt(t);
|
|
3564
3562
|
return [t, r ? [...r] : []];
|
|
3565
3563
|
}).filter(([, t]) => t.length > 0);
|
|
3566
3564
|
}
|
|
3567
|
-
function
|
|
3565
|
+
function pe(e) {
|
|
3568
3566
|
return e == null ? !1 : ie(e).some(
|
|
3569
3567
|
(t) => {
|
|
3570
3568
|
var r;
|
|
3571
|
-
return (r =
|
|
3569
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3572
3570
|
}
|
|
3573
3571
|
);
|
|
3574
3572
|
}
|
|
3575
|
-
function
|
|
3573
|
+
function Zn(e, t) {
|
|
3576
3574
|
return Promise.all(
|
|
3577
3575
|
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3578
|
-
).then((n) =>
|
|
3576
|
+
).then((n) => Jt(e, ...n));
|
|
3579
3577
|
}
|
|
3580
3578
|
const J = {};
|
|
3581
|
-
function
|
|
3582
|
-
if (!
|
|
3579
|
+
function Kt(e) {
|
|
3580
|
+
if (!pe(e))
|
|
3583
3581
|
return e in J ? J[e] : Promise.resolve();
|
|
3584
|
-
const t =
|
|
3582
|
+
const t = zn(e);
|
|
3585
3583
|
return J[e] = Promise.all(
|
|
3586
3584
|
t.map(
|
|
3587
|
-
([r, n]) =>
|
|
3585
|
+
([r, n]) => Zn(r, n)
|
|
3588
3586
|
)
|
|
3589
3587
|
).then(() => {
|
|
3590
|
-
if (
|
|
3591
|
-
return
|
|
3588
|
+
if (pe(e))
|
|
3589
|
+
return Kt(e);
|
|
3592
3590
|
delete J[e];
|
|
3593
3591
|
}), J[e];
|
|
3594
3592
|
}
|
|
3595
|
-
var
|
|
3593
|
+
var ct = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3596
3594
|
var r = {};
|
|
3597
3595
|
for (var n in e)
|
|
3598
|
-
|
|
3599
|
-
if (e != null &&
|
|
3600
|
-
for (var n of
|
|
3601
|
-
t.indexOf(n) < 0 &&
|
|
3596
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3597
|
+
if (e != null && ct)
|
|
3598
|
+
for (var n of ct(e))
|
|
3599
|
+
t.indexOf(n) < 0 && qn.call(e, n) && (r[n] = e[n]);
|
|
3602
3600
|
return r;
|
|
3603
3601
|
};
|
|
3604
|
-
const
|
|
3602
|
+
const Yn = {
|
|
3605
3603
|
number: {
|
|
3606
3604
|
scientific: { notation: "scientific" },
|
|
3607
3605
|
engineering: { notation: "engineering" },
|
|
@@ -3631,81 +3629,81 @@ const Kn = {
|
|
|
3631
3629
|
}
|
|
3632
3630
|
}
|
|
3633
3631
|
};
|
|
3634
|
-
function
|
|
3632
|
+
function Kn({ locale: e, id: t }) {
|
|
3635
3633
|
console.warn(
|
|
3636
3634
|
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3637
3635
|
e
|
|
3638
|
-
).join('", "')}".${
|
|
3636
|
+
).join('", "')}".${pe(L()) ? `
|
|
3639
3637
|
|
|
3640
3638
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3641
3639
|
);
|
|
3642
3640
|
}
|
|
3643
|
-
const
|
|
3641
|
+
const ei = {
|
|
3644
3642
|
fallbackLocale: null,
|
|
3645
3643
|
loadingDelay: 200,
|
|
3646
|
-
formats:
|
|
3644
|
+
formats: Yn,
|
|
3647
3645
|
warnOnMissingMessages: !0,
|
|
3648
3646
|
handleMissingMessage: void 0,
|
|
3649
3647
|
ignoreTag: !0
|
|
3650
|
-
}, Y =
|
|
3651
|
-
function
|
|
3648
|
+
}, Y = ei;
|
|
3649
|
+
function W() {
|
|
3652
3650
|
return Y;
|
|
3653
3651
|
}
|
|
3654
|
-
function
|
|
3655
|
-
const t = e, { formats: r } = t, n =
|
|
3652
|
+
function ti(e) {
|
|
3653
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3656
3654
|
let i = e.fallbackLocale;
|
|
3657
3655
|
if (e.initialLocale)
|
|
3658
3656
|
try {
|
|
3659
|
-
|
|
3657
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3660
3658
|
} catch (s) {
|
|
3661
3659
|
console.warn(
|
|
3662
3660
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3663
3661
|
);
|
|
3664
3662
|
}
|
|
3665
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3663
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
|
|
3666
3664
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3667
3665
|
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), $.set(i);
|
|
3668
3666
|
}
|
|
3669
3667
|
const Ne = ge(!1);
|
|
3670
|
-
var
|
|
3668
|
+
var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
|
|
3671
3669
|
for (var r in t || (t = {}))
|
|
3672
|
-
|
|
3673
|
-
if (
|
|
3674
|
-
for (var r of
|
|
3675
|
-
|
|
3670
|
+
si.call(t, r) && pt(e, r, t[r]);
|
|
3671
|
+
if (mt)
|
|
3672
|
+
for (var r of mt(t))
|
|
3673
|
+
oi.call(t, r) && pt(e, r, t[r]);
|
|
3676
3674
|
return e;
|
|
3677
|
-
},
|
|
3675
|
+
}, hi = (e, t) => ni(e, ii(t));
|
|
3678
3676
|
let Ve;
|
|
3679
|
-
const
|
|
3680
|
-
function
|
|
3677
|
+
const de = ge(null);
|
|
3678
|
+
function dt(e) {
|
|
3681
3679
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3682
3680
|
}
|
|
3683
|
-
function ie(e, t =
|
|
3684
|
-
const r =
|
|
3685
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3681
|
+
function ie(e, t = W().fallbackLocale) {
|
|
3682
|
+
const r = dt(e);
|
|
3683
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3686
3684
|
}
|
|
3687
3685
|
function L() {
|
|
3688
3686
|
return Ve != null ? Ve : void 0;
|
|
3689
3687
|
}
|
|
3690
|
-
|
|
3688
|
+
de.subscribe((e) => {
|
|
3691
3689
|
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3692
3690
|
});
|
|
3693
|
-
const
|
|
3694
|
-
if (e &&
|
|
3695
|
-
const { loadingDelay: t } =
|
|
3691
|
+
const ui = (e) => {
|
|
3692
|
+
if (e && Xn(e) && pe(e)) {
|
|
3693
|
+
const { loadingDelay: t } = W();
|
|
3696
3694
|
let r;
|
|
3697
3695
|
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3698
3696
|
() => Ne.set(!0),
|
|
3699
3697
|
t
|
|
3700
|
-
) : Ne.set(!0),
|
|
3701
|
-
|
|
3698
|
+
) : Ne.set(!0), Kt(e).then(() => {
|
|
3699
|
+
de.set(e);
|
|
3702
3700
|
}).finally(() => {
|
|
3703
3701
|
clearTimeout(r), Ne.set(!1);
|
|
3704
3702
|
});
|
|
3705
3703
|
}
|
|
3706
|
-
return
|
|
3707
|
-
}, $ =
|
|
3708
|
-
set:
|
|
3704
|
+
return de.set(e);
|
|
3705
|
+
}, $ = hi(ai({}, de), {
|
|
3706
|
+
set: ui
|
|
3709
3707
|
}), xe = (e) => {
|
|
3710
3708
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3711
3709
|
return (n) => {
|
|
@@ -3713,42 +3711,42 @@ const li = (e) => {
|
|
|
3713
3711
|
return i in t ? t[i] : t[i] = e(n);
|
|
3714
3712
|
};
|
|
3715
3713
|
};
|
|
3716
|
-
var
|
|
3714
|
+
var li = Object.defineProperty, be = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3717
3715
|
for (var r in t || (t = {}))
|
|
3718
|
-
|
|
3716
|
+
er.call(t, r) && bt(e, r, t[r]);
|
|
3719
3717
|
if (be)
|
|
3720
3718
|
for (var r of be(t))
|
|
3721
|
-
|
|
3719
|
+
tr.call(t, r) && bt(e, r, t[r]);
|
|
3722
3720
|
return e;
|
|
3723
3721
|
}, q = (e, t) => {
|
|
3724
3722
|
var r = {};
|
|
3725
3723
|
for (var n in e)
|
|
3726
|
-
|
|
3724
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3727
3725
|
if (e != null && be)
|
|
3728
3726
|
for (var n of be(e))
|
|
3729
|
-
t.indexOf(n) < 0 &&
|
|
3727
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3730
3728
|
return r;
|
|
3731
3729
|
};
|
|
3732
3730
|
const te = (e, t) => {
|
|
3733
|
-
const { formats: r } =
|
|
3731
|
+
const { formats: r } = W();
|
|
3734
3732
|
if (e in r && t in r[e])
|
|
3735
3733
|
return r[e][t];
|
|
3736
3734
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3737
|
-
},
|
|
3735
|
+
}, fi = xe(
|
|
3738
3736
|
(e) => {
|
|
3739
3737
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3740
3738
|
if (r == null)
|
|
3741
3739
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3742
3740
|
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3743
3741
|
}
|
|
3744
|
-
),
|
|
3742
|
+
), ci = xe(
|
|
3745
3743
|
(e) => {
|
|
3746
3744
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3747
3745
|
if (r == null)
|
|
3748
3746
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3749
3747
|
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3750
3748
|
}
|
|
3751
|
-
),
|
|
3749
|
+
), mi = xe(
|
|
3752
3750
|
(e) => {
|
|
3753
3751
|
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3754
3752
|
if (r == null)
|
|
@@ -3763,27 +3761,27 @@ const te = (e, t) => {
|
|
|
3763
3761
|
} = t, n = q(t, [
|
|
3764
3762
|
"locale"
|
|
3765
3763
|
]);
|
|
3766
|
-
return
|
|
3767
|
-
},
|
|
3764
|
+
return fi(Qe({ locale: r }, n));
|
|
3765
|
+
}, di = (e = {}) => {
|
|
3768
3766
|
var t = e, {
|
|
3769
3767
|
locale: r = L()
|
|
3770
3768
|
} = t, n = q(t, [
|
|
3771
3769
|
"locale"
|
|
3772
3770
|
]);
|
|
3773
|
-
return
|
|
3774
|
-
},
|
|
3771
|
+
return ci(Qe({ locale: r }, n));
|
|
3772
|
+
}, bi = (e = {}) => {
|
|
3775
3773
|
var t = e, {
|
|
3776
3774
|
locale: r = L()
|
|
3777
3775
|
} = t, n = q(t, [
|
|
3778
3776
|
"locale"
|
|
3779
3777
|
]);
|
|
3780
|
-
return
|
|
3781
|
-
},
|
|
3778
|
+
return mi(Qe({ locale: r }, n));
|
|
3779
|
+
}, gi = xe(
|
|
3782
3780
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3783
|
-
(e, t = L()) => new
|
|
3784
|
-
ignoreTag:
|
|
3781
|
+
(e, t = L()) => new Zt(e, t, W().formats, {
|
|
3782
|
+
ignoreTag: W().ignoreTag
|
|
3785
3783
|
})
|
|
3786
|
-
),
|
|
3784
|
+
), _i = (e, t = {}) => {
|
|
3787
3785
|
var r, n, i, s;
|
|
3788
3786
|
let a = t;
|
|
3789
3787
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3796,9 +3794,9 @@ const te = (e, t) => {
|
|
|
3796
3794
|
throw new Error(
|
|
3797
3795
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3798
3796
|
);
|
|
3799
|
-
let u =
|
|
3797
|
+
let u = Qt(e, l);
|
|
3800
3798
|
if (!u)
|
|
3801
|
-
u = (s = (i = (n = (r =
|
|
3799
|
+
u = (s = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
|
3802
3800
|
else if (typeof u != "string")
|
|
3803
3801
|
return console.warn(
|
|
3804
3802
|
`[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.`
|
|
@@ -3807,7 +3805,7 @@ const te = (e, t) => {
|
|
|
3807
3805
|
return u;
|
|
3808
3806
|
let f = u;
|
|
3809
3807
|
try {
|
|
3810
|
-
f =
|
|
3808
|
+
f = gi(u, l).format(o);
|
|
3811
3809
|
} catch (c) {
|
|
3812
3810
|
c instanceof Error && console.warn(
|
|
3813
3811
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3815,20 +3813,20 @@ const te = (e, t) => {
|
|
|
3815
3813
|
);
|
|
3816
3814
|
}
|
|
3817
3815
|
return f;
|
|
3818
|
-
},
|
|
3816
|
+
}, yi = (e, t) => bi(t).format(e), xi = (e, t) => di(t).format(e), Ei = (e, t) => pi(t).format(e), vi = (e, t = L()) => Qt(e, t), Hi = Q([$, ne], () => _i);
|
|
3817
|
+
Q([$], () => yi);
|
|
3819
3818
|
Q([$], () => xi);
|
|
3820
3819
|
Q([$], () => Ei);
|
|
3821
|
-
Q([
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
Kt(e, t);
|
|
3820
|
+
Q([$, ne], () => vi);
|
|
3821
|
+
function gt(e, t) {
|
|
3822
|
+
Jt(e, t);
|
|
3825
3823
|
}
|
|
3826
|
-
function
|
|
3827
|
-
|
|
3824
|
+
function Bi(e) {
|
|
3825
|
+
ti({
|
|
3828
3826
|
fallbackLocale: "en"
|
|
3829
3827
|
}), $.set(e);
|
|
3830
3828
|
}
|
|
3831
|
-
const
|
|
3829
|
+
const _t = {
|
|
3832
3830
|
en: {
|
|
3833
3831
|
header: {
|
|
3834
3832
|
general: "Cashier",
|
|
@@ -3851,18 +3849,18 @@ const xt = {
|
|
|
3851
3849
|
}
|
|
3852
3850
|
}
|
|
3853
3851
|
};
|
|
3854
|
-
function
|
|
3855
|
-
|
|
3852
|
+
function Ti(e) {
|
|
3853
|
+
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}");
|
|
3856
3854
|
}
|
|
3857
|
-
const
|
|
3858
|
-
function
|
|
3855
|
+
const wi = (e) => ({}), yt = (e) => ({}), Si = (e) => ({}), xt = (e) => ({}), Ai = (e) => ({}), Et = (e) => ({});
|
|
3856
|
+
function vt(e) {
|
|
3859
3857
|
let t, r, n;
|
|
3860
3858
|
return {
|
|
3861
3859
|
c() {
|
|
3862
|
-
t =
|
|
3860
|
+
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderLeftButton");
|
|
3863
3861
|
},
|
|
3864
3862
|
m(i, s) {
|
|
3865
|
-
M(i, t, s), r || (n =
|
|
3863
|
+
M(i, t, s), r || (n = Ct(
|
|
3866
3864
|
t,
|
|
3867
3865
|
"click",
|
|
3868
3866
|
/*back*/
|
|
@@ -3875,28 +3873,28 @@ function Bt(e) {
|
|
|
3875
3873
|
}
|
|
3876
3874
|
};
|
|
3877
3875
|
}
|
|
3878
|
-
function
|
|
3876
|
+
function Ci(e) {
|
|
3879
3877
|
let t, r = (
|
|
3880
3878
|
/*backButton*/
|
|
3881
|
-
e[1] &&
|
|
3879
|
+
e[1] && vt(e)
|
|
3882
3880
|
);
|
|
3883
3881
|
return {
|
|
3884
3882
|
c() {
|
|
3885
|
-
r && r.c(), t =
|
|
3883
|
+
r && r.c(), t = At();
|
|
3886
3884
|
},
|
|
3887
3885
|
m(n, i) {
|
|
3888
3886
|
r && r.m(n, i), M(n, t, i);
|
|
3889
3887
|
},
|
|
3890
3888
|
p(n, i) {
|
|
3891
3889
|
/*backButton*/
|
|
3892
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3890
|
+
n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3893
3891
|
},
|
|
3894
3892
|
d(n) {
|
|
3895
3893
|
n && P(t), r && r.d(n);
|
|
3896
3894
|
}
|
|
3897
3895
|
};
|
|
3898
3896
|
}
|
|
3899
|
-
function
|
|
3897
|
+
function Oi(e) {
|
|
3900
3898
|
let t, r = (
|
|
3901
3899
|
/*$_*/
|
|
3902
3900
|
e[4](
|
|
@@ -3906,7 +3904,7 @@ function Pi(e) {
|
|
|
3906
3904
|
), n;
|
|
3907
3905
|
return {
|
|
3908
3906
|
c() {
|
|
3909
|
-
t =
|
|
3907
|
+
t = z("span"), n = We(r), Z(t, "class", "CashierHeaderTitle");
|
|
3910
3908
|
},
|
|
3911
3909
|
m(i, s) {
|
|
3912
3910
|
M(i, t, s), me(t, n);
|
|
@@ -3917,21 +3915,21 @@ function Pi(e) {
|
|
|
3917
3915
|
i[4](
|
|
3918
3916
|
/*titleText*/
|
|
3919
3917
|
i[2]
|
|
3920
|
-
) + "") &&
|
|
3918
|
+
) + "") && _r(n, r);
|
|
3921
3919
|
},
|
|
3922
3920
|
d(i) {
|
|
3923
3921
|
i && P(t);
|
|
3924
3922
|
}
|
|
3925
3923
|
};
|
|
3926
3924
|
}
|
|
3927
|
-
function
|
|
3925
|
+
function Ht(e) {
|
|
3928
3926
|
let t, r, n;
|
|
3929
3927
|
return {
|
|
3930
3928
|
c() {
|
|
3931
|
-
t =
|
|
3929
|
+
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderRightButton");
|
|
3932
3930
|
},
|
|
3933
3931
|
m(i, s) {
|
|
3934
|
-
M(i, t, s), r || (n =
|
|
3932
|
+
M(i, t, s), r || (n = Ct(
|
|
3935
3933
|
t,
|
|
3936
3934
|
"click",
|
|
3937
3935
|
/*close*/
|
|
@@ -3944,28 +3942,28 @@ function Tt(e) {
|
|
|
3944
3942
|
}
|
|
3945
3943
|
};
|
|
3946
3944
|
}
|
|
3947
|
-
function
|
|
3945
|
+
function Pi(e) {
|
|
3948
3946
|
let t, r = (
|
|
3949
3947
|
/*closeButton*/
|
|
3950
|
-
e[3] &&
|
|
3948
|
+
e[3] && Ht(e)
|
|
3951
3949
|
);
|
|
3952
3950
|
return {
|
|
3953
3951
|
c() {
|
|
3954
|
-
r && r.c(), t =
|
|
3952
|
+
r && r.c(), t = At();
|
|
3955
3953
|
},
|
|
3956
3954
|
m(n, i) {
|
|
3957
3955
|
r && r.m(n, i), M(n, t, i);
|
|
3958
3956
|
},
|
|
3959
3957
|
p(n, i) {
|
|
3960
3958
|
/*closeButton*/
|
|
3961
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3959
|
+
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3962
3960
|
},
|
|
3963
3961
|
d(n) {
|
|
3964
3962
|
n && P(t), r && r.d(n);
|
|
3965
3963
|
}
|
|
3966
3964
|
};
|
|
3967
3965
|
}
|
|
3968
|
-
function
|
|
3966
|
+
function Li(e) {
|
|
3969
3967
|
let t, r, n, i;
|
|
3970
3968
|
const s = (
|
|
3971
3969
|
/*#slots*/
|
|
@@ -3975,8 +3973,8 @@ function Ni(e) {
|
|
|
3975
3973
|
e,
|
|
3976
3974
|
/*$$scope*/
|
|
3977
3975
|
e[14],
|
|
3978
|
-
|
|
3979
|
-
), o = a ||
|
|
3976
|
+
Et
|
|
3977
|
+
), o = a || Ci(e), l = (
|
|
3980
3978
|
/*#slots*/
|
|
3981
3979
|
e[15].title
|
|
3982
3980
|
), h = ve(
|
|
@@ -3984,8 +3982,8 @@ function Ni(e) {
|
|
|
3984
3982
|
e,
|
|
3985
3983
|
/*$$scope*/
|
|
3986
3984
|
e[14],
|
|
3987
|
-
|
|
3988
|
-
), u = h ||
|
|
3985
|
+
xt
|
|
3986
|
+
), u = h || Oi(e), f = (
|
|
3989
3987
|
/*#slots*/
|
|
3990
3988
|
e[15].rightButton
|
|
3991
3989
|
), c = ve(
|
|
@@ -3993,14 +3991,14 @@ function Ni(e) {
|
|
|
3993
3991
|
e,
|
|
3994
3992
|
/*$$scope*/
|
|
3995
3993
|
e[14],
|
|
3996
|
-
|
|
3997
|
-
),
|
|
3994
|
+
yt
|
|
3995
|
+
), p = c || Pi(e);
|
|
3998
3996
|
return {
|
|
3999
3997
|
c() {
|
|
4000
|
-
t =
|
|
3998
|
+
t = z("div"), o && o.c(), r = tt(), u && u.c(), n = tt(), p && p.c(), Z(t, "class", "CashierHeader");
|
|
4001
3999
|
},
|
|
4002
4000
|
m(m, g) {
|
|
4003
|
-
M(m, t, g), o && o.m(t, null), me(t, r), u && u.m(t, null), me(t, n),
|
|
4001
|
+
M(m, t, g), o && o.m(t, null), me(t, r), u && u.m(t, null), me(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
4004
4002
|
},
|
|
4005
4003
|
p(m, [g]) {
|
|
4006
4004
|
a ? a.p && (!i || g & /*$$scope*/
|
|
@@ -4015,12 +4013,12 @@ function Ni(e) {
|
|
|
4015
4013
|
/*$$scope*/
|
|
4016
4014
|
m[14],
|
|
4017
4015
|
g,
|
|
4018
|
-
|
|
4016
|
+
Ai
|
|
4019
4017
|
) : Te(
|
|
4020
4018
|
/*$$scope*/
|
|
4021
4019
|
m[14]
|
|
4022
4020
|
),
|
|
4023
|
-
|
|
4021
|
+
Et
|
|
4024
4022
|
) : o && o.p && (!i || g & /*backButton*/
|
|
4025
4023
|
2) && o.p(m, i ? g : -1), h ? h.p && (!i || g & /*$$scope*/
|
|
4026
4024
|
16384) && Be(
|
|
@@ -4034,12 +4032,12 @@ function Ni(e) {
|
|
|
4034
4032
|
/*$$scope*/
|
|
4035
4033
|
m[14],
|
|
4036
4034
|
g,
|
|
4037
|
-
|
|
4035
|
+
Si
|
|
4038
4036
|
) : Te(
|
|
4039
4037
|
/*$$scope*/
|
|
4040
4038
|
m[14]
|
|
4041
4039
|
),
|
|
4042
|
-
|
|
4040
|
+
xt
|
|
4043
4041
|
) : u && u.p && (!i || g & /*$_, titleText*/
|
|
4044
4042
|
20) && u.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4045
4043
|
16384) && Be(
|
|
@@ -4053,72 +4051,72 @@ function Ni(e) {
|
|
|
4053
4051
|
/*$$scope*/
|
|
4054
4052
|
m[14],
|
|
4055
4053
|
g,
|
|
4056
|
-
|
|
4054
|
+
wi
|
|
4057
4055
|
) : Te(
|
|
4058
4056
|
/*$$scope*/
|
|
4059
4057
|
m[14]
|
|
4060
4058
|
),
|
|
4061
|
-
|
|
4062
|
-
) :
|
|
4063
|
-
8) &&
|
|
4059
|
+
yt
|
|
4060
|
+
) : p && p.p && (!i || g & /*closeButton*/
|
|
4061
|
+
8) && p.p(m, i ? g : -1);
|
|
4064
4062
|
},
|
|
4065
4063
|
i(m) {
|
|
4066
|
-
i || (ue(o, m), ue(u, m), ue(
|
|
4064
|
+
i || (ue(o, m), ue(u, m), ue(p, m), i = !0);
|
|
4067
4065
|
},
|
|
4068
4066
|
o(m) {
|
|
4069
|
-
Se(o, m), Se(u, m), Se(
|
|
4067
|
+
Se(o, m), Se(u, m), Se(p, m), i = !1;
|
|
4070
4068
|
},
|
|
4071
4069
|
d(m) {
|
|
4072
|
-
m && P(t), o && o.d(m), u && u.d(m),
|
|
4070
|
+
m && P(t), o && o.d(m), u && u.d(m), p && p.d(m), e[16](null);
|
|
4073
4071
|
}
|
|
4074
4072
|
};
|
|
4075
4073
|
}
|
|
4076
|
-
function
|
|
4074
|
+
function Ni(e, t, r) {
|
|
4077
4075
|
let n;
|
|
4078
|
-
|
|
4079
|
-
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,
|
|
4076
|
+
mr(e, Hi, (_) => r(4, n = _));
|
|
4077
|
+
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;
|
|
4080
4078
|
const N = () => {
|
|
4081
4079
|
let _ = l;
|
|
4082
4080
|
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4083
4081
|
Object.keys(S).forEach((U) => {
|
|
4084
|
-
|
|
4082
|
+
gt(U, S[U]);
|
|
4085
4083
|
});
|
|
4086
4084
|
}).catch((S) => {
|
|
4087
4085
|
console.log(S);
|
|
4088
4086
|
});
|
|
4089
4087
|
};
|
|
4090
|
-
Object.keys(
|
|
4091
|
-
|
|
4088
|
+
Object.keys(_t).forEach((_) => {
|
|
4089
|
+
gt(_, _t[_]);
|
|
4092
4090
|
});
|
|
4093
4091
|
const C = () => {
|
|
4094
4092
|
let _ = document.createElement("style");
|
|
4095
|
-
_.innerHTML = a,
|
|
4093
|
+
_.innerHTML = a, p.appendChild(_);
|
|
4096
4094
|
}, H = () => {
|
|
4097
4095
|
let _ = new URL(o), S = document.createElement("style");
|
|
4098
4096
|
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4099
4097
|
S.innerHTML = U, setTimeout(
|
|
4100
4098
|
() => {
|
|
4101
|
-
|
|
4099
|
+
p.appendChild(S);
|
|
4102
4100
|
},
|
|
4103
4101
|
1
|
|
4104
4102
|
);
|
|
4105
4103
|
});
|
|
4106
4104
|
}, I = () => {
|
|
4107
|
-
|
|
4105
|
+
Bi(f);
|
|
4108
4106
|
}, w = () => {
|
|
4109
4107
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4110
4108
|
}, R = () => {
|
|
4111
4109
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4112
4110
|
}, se = () => {
|
|
4113
4111
|
r(1, m = !!h && h !== "false");
|
|
4114
|
-
},
|
|
4112
|
+
}, nr = () => {
|
|
4115
4113
|
r(3, v = !!c && c !== "false");
|
|
4116
|
-
},
|
|
4114
|
+
}, ir = () => {
|
|
4117
4115
|
r(2, g = u || "header.general");
|
|
4118
4116
|
};
|
|
4119
|
-
function
|
|
4117
|
+
function sr(_) {
|
|
4120
4118
|
Ie[_ ? "unshift" : "push"](() => {
|
|
4121
|
-
|
|
4119
|
+
p = _, r(0, p);
|
|
4122
4120
|
});
|
|
4123
4121
|
}
|
|
4124
4122
|
return e.$$set = (_) => {
|
|
@@ -4126,14 +4124,14 @@ function Ii(e, t, r) {
|
|
|
4126
4124
|
}, e.$$.update = () => {
|
|
4127
4125
|
e.$$.dirty & /*lang*/
|
|
4128
4126
|
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4129
|
-
6144 && f && u &&
|
|
4130
|
-
129 && a &&
|
|
4131
|
-
257 && o &&
|
|
4127
|
+
6144 && f && u && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4128
|
+
129 && a && p && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4129
|
+
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4132
4130
|
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4133
4131
|
1024 && h && se(), e.$$.dirty & /*showclosebutton*/
|
|
4134
|
-
8192 && c &&
|
|
4132
|
+
8192 && c && nr();
|
|
4135
4133
|
}, [
|
|
4136
|
-
|
|
4134
|
+
p,
|
|
4137
4135
|
m,
|
|
4138
4136
|
g,
|
|
4139
4137
|
v,
|
|
@@ -4149,17 +4147,17 @@ function Ii(e, t, r) {
|
|
|
4149
4147
|
c,
|
|
4150
4148
|
s,
|
|
4151
4149
|
i,
|
|
4152
|
-
|
|
4150
|
+
sr
|
|
4153
4151
|
];
|
|
4154
4152
|
}
|
|
4155
|
-
class
|
|
4153
|
+
class rr extends Or {
|
|
4156
4154
|
constructor(t) {
|
|
4157
|
-
super(),
|
|
4155
|
+
super(), Ar(
|
|
4158
4156
|
this,
|
|
4159
4157
|
t,
|
|
4160
|
-
Ii,
|
|
4161
4158
|
Ni,
|
|
4162
|
-
|
|
4159
|
+
Li,
|
|
4160
|
+
Tt,
|
|
4163
4161
|
{
|
|
4164
4162
|
clientstyling: 7,
|
|
4165
4163
|
clientstylingurl: 8,
|
|
@@ -4169,7 +4167,7 @@ class ir extends Lr {
|
|
|
4169
4167
|
lang: 12,
|
|
4170
4168
|
showclosebutton: 13
|
|
4171
4169
|
},
|
|
4172
|
-
|
|
4170
|
+
Ti
|
|
4173
4171
|
);
|
|
4174
4172
|
}
|
|
4175
4173
|
get clientstyling() {
|
|
@@ -4215,31 +4213,31 @@ class ir extends Lr {
|
|
|
4215
4213
|
this.$$set({ showclosebutton: t }), A();
|
|
4216
4214
|
}
|
|
4217
4215
|
}
|
|
4218
|
-
|
|
4219
|
-
const
|
|
4216
|
+
Cr(rr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4217
|
+
const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4220
4218
|
__proto__: null,
|
|
4221
|
-
default:
|
|
4219
|
+
default: rr
|
|
4222
4220
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4223
4221
|
export {
|
|
4224
4222
|
$,
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4223
|
+
Ri as C,
|
|
4224
|
+
Or as S,
|
|
4225
|
+
Jt as a,
|
|
4226
|
+
Ar as b,
|
|
4227
|
+
Cr as c,
|
|
4228
|
+
pr as d,
|
|
4229
|
+
P as e,
|
|
4232
4230
|
A as f,
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4231
|
+
$i as g,
|
|
4232
|
+
Mi as h,
|
|
4233
|
+
ti as i,
|
|
4234
|
+
Z as j,
|
|
4235
|
+
M as k,
|
|
4236
|
+
me as l,
|
|
4237
|
+
Ct as m,
|
|
4238
|
+
T as n,
|
|
4239
|
+
z as o,
|
|
4240
|
+
tt as p,
|
|
4243
4241
|
Ie as q,
|
|
4244
|
-
|
|
4242
|
+
Tt as s
|
|
4245
4243
|
};
|