@everymatrix/cashier-error 1.87.2 → 1.87.3
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/{CashierError-DLf2pjbY.js → CashierError-CeRREYho.js} +200 -196
- package/components/{CashierError-CjUqk0KH.cjs → CashierError-DHk6rA6T.cjs} +3 -3
- package/components/{CashierError-9i_njvWZ.js → CashierError-S1lIkYk9.js} +218 -214
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
2
|
var ir = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var ar = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Be = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
ar.call(t, r) && Be(e, r, t[r]);
|
|
8
8
|
if (Qe)
|
|
9
9
|
for (var r of Qe(t))
|
|
10
|
-
|
|
10
|
+
or.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
13
|
var w = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var
|
|
15
|
+
var a = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(l));
|
|
18
18
|
} catch (s) {
|
|
19
19
|
i(s);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(l));
|
|
24
24
|
} catch (s) {
|
|
25
25
|
i(s);
|
|
26
26
|
}
|
|
27
|
-
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(a, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
@@ -53,9 +53,9 @@ function We(e) {
|
|
|
53
53
|
function St(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let oe;
|
|
57
57
|
function rt(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
59
59
|
}
|
|
60
60
|
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -87,19 +87,19 @@ function ue(e, t, r, n) {
|
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
90
|
-
const
|
|
91
|
-
for (let u = 0; u <
|
|
92
|
-
|
|
93
|
-
return
|
|
90
|
+
const a = [], o = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let u = 0; u < o; u += 1)
|
|
92
|
+
a[u] = t.dirty[u] | i[u];
|
|
93
|
+
return a;
|
|
94
94
|
}
|
|
95
95
|
return t.dirty | i;
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function le(e, t, r, n, i,
|
|
99
|
+
function le(e, t, r, n, i, a) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const o = At(t, r, n, a);
|
|
102
|
+
e.p(o, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function he(e) {
|
|
@@ -259,8 +259,8 @@ function fe(e, t, r, n) {
|
|
|
259
259
|
function Hr(e, t, r) {
|
|
260
260
|
const { fragment: n, after_update: i } = e.$$;
|
|
261
261
|
n && n.m(t, r), De(() => {
|
|
262
|
-
const
|
|
263
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
262
|
+
const a = e.$$.on_mount.map(wt).filter(We);
|
|
263
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
|
|
264
264
|
}), i.forEach(De);
|
|
265
265
|
}
|
|
266
266
|
function wr(e, t) {
|
|
@@ -270,14 +270,14 @@ function wr(e, t) {
|
|
|
270
270
|
function Sr(e, t) {
|
|
271
271
|
e.$$.dirty[0] === -1 && (U.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
|
-
function Br(e, t, r, n, i,
|
|
273
|
+
function Br(e, t, r, n, i, a, o = null, u = [-1]) {
|
|
274
274
|
const l = K;
|
|
275
275
|
Y(e);
|
|
276
276
|
const s = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
279
279
|
// state
|
|
280
|
-
props:
|
|
280
|
+
props: a,
|
|
281
281
|
update: A,
|
|
282
282
|
not_equal: i,
|
|
283
283
|
bound: tt(),
|
|
@@ -294,7 +294,7 @@ function Br(e, t, r, n, i, o, a = null, u = [-1]) {
|
|
|
294
294
|
skip_bound: !1,
|
|
295
295
|
root: t.target || l.$$.root
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
o && o(s.root);
|
|
298
298
|
let h = !1;
|
|
299
299
|
if (s.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
|
|
300
300
|
const p = d.length ? d[0] : m;
|
|
@@ -349,22 +349,22 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
349
349
|
connectedCallback() {
|
|
350
350
|
return et(this, null, function* () {
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
|
-
let t = function(
|
|
352
|
+
let t = function(a) {
|
|
353
353
|
return () => {
|
|
354
|
-
let
|
|
354
|
+
let o;
|
|
355
355
|
return {
|
|
356
356
|
c: function() {
|
|
357
|
-
|
|
357
|
+
o = C("slot"), a !== "default" && G(o, "name", a);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* @param {HTMLElement} target
|
|
361
361
|
* @param {HTMLElement} [anchor]
|
|
362
362
|
*/
|
|
363
363
|
m: function(s, h) {
|
|
364
|
-
X(s,
|
|
364
|
+
X(s, o, h);
|
|
365
365
|
},
|
|
366
366
|
d: function(s) {
|
|
367
|
-
s && M(
|
|
367
|
+
s && M(o);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
@@ -372,14 +372,14 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
372
372
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
373
|
return;
|
|
374
374
|
const r = {}, n = br(this);
|
|
375
|
-
for (const
|
|
376
|
-
|
|
377
|
-
for (const
|
|
378
|
-
const
|
|
379
|
-
|
|
375
|
+
for (const a of this.$$s)
|
|
376
|
+
a in n && (r[a] = [t(a)]);
|
|
377
|
+
for (const a of this.attributes) {
|
|
378
|
+
const o = this.$$g_p(a.name);
|
|
379
|
+
o in this.$$d || (this.$$d[o] = pe(o, a.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
|
-
for (const
|
|
382
|
-
!(
|
|
381
|
+
for (const a in this.$$p_d)
|
|
382
|
+
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
383
383
|
this.$$c = new this.$$ctor({
|
|
384
384
|
target: this.shadowRoot || this,
|
|
385
385
|
props: Ke(Ye({}, this.$$d), {
|
|
@@ -391,23 +391,23 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
391
391
|
});
|
|
392
392
|
const i = () => {
|
|
393
393
|
this.$$r = !0;
|
|
394
|
-
for (const
|
|
395
|
-
if (this.$$d[
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
this.$$d[
|
|
394
|
+
for (const a in this.$$p_d)
|
|
395
|
+
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
396
|
+
const o = pe(
|
|
397
|
+
a,
|
|
398
|
+
this.$$d[a],
|
|
399
399
|
this.$$p_d,
|
|
400
400
|
"toAttribute"
|
|
401
401
|
);
|
|
402
|
-
|
|
402
|
+
o == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, o);
|
|
403
403
|
}
|
|
404
404
|
this.$$r = !1;
|
|
405
405
|
};
|
|
406
406
|
this.$$c.$$.after_update.push(i), i();
|
|
407
|
-
for (const
|
|
408
|
-
for (const
|
|
409
|
-
const u = this.$$c.$on(
|
|
410
|
-
this.$$l_u.set(
|
|
407
|
+
for (const a in this.$$l)
|
|
408
|
+
for (const o of this.$$l[a]) {
|
|
409
|
+
const u = this.$$c.$on(a, o);
|
|
410
|
+
this.$$l_u.set(o, u);
|
|
411
411
|
}
|
|
412
412
|
this.$$l = {};
|
|
413
413
|
}
|
|
@@ -431,8 +431,8 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
function pe(e, t, r, n) {
|
|
434
|
-
var
|
|
435
|
-
const i = (
|
|
434
|
+
var a;
|
|
435
|
+
const i = (a = r[e]) == null ? void 0 : a.type;
|
|
436
436
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
437
437
|
return t;
|
|
438
438
|
if (n === "toAttribute")
|
|
@@ -460,8 +460,8 @@ function pe(e, t, r, n) {
|
|
|
460
460
|
return t;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function Ar(e, t, r, n, i,
|
|
464
|
-
let
|
|
463
|
+
function Ar(e, t, r, n, i, a) {
|
|
464
|
+
let o = class extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, r, i), this.$$p_d = t;
|
|
467
467
|
}
|
|
@@ -472,7 +472,7 @@ function Ar(e, t, r, n, i, o) {
|
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
return Object.keys(t).forEach((u) => {
|
|
475
|
-
Object.defineProperty(
|
|
475
|
+
Object.defineProperty(o.prototype, u, {
|
|
476
476
|
get() {
|
|
477
477
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
478
478
|
},
|
|
@@ -482,14 +482,14 @@ function Ar(e, t, r, n, i, o) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), n.forEach((u) => {
|
|
485
|
-
Object.defineProperty(
|
|
485
|
+
Object.defineProperty(o.prototype, u, {
|
|
486
486
|
get() {
|
|
487
487
|
var l;
|
|
488
488
|
return (l = this.$$c) == null ? void 0 : l[u];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}), e.element = /** @type {any} */
|
|
492
|
-
|
|
492
|
+
o, o;
|
|
493
493
|
}
|
|
494
494
|
class Pr {
|
|
495
495
|
constructor() {
|
|
@@ -585,23 +585,23 @@ function Te(e, t = A) {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function a(u) {
|
|
589
589
|
i(u(e));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function o(u, l = A) {
|
|
592
592
|
const s = [u, l];
|
|
593
|
-
return n.add(s), n.size === 1 && (r = t(i,
|
|
593
|
+
return n.add(s), n.size === 1 && (r = t(i, a) || A), u(e), () => {
|
|
594
594
|
n.delete(s), n.size === 0 && r && (r(), r = null);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
return { set: i, update:
|
|
597
|
+
return { set: i, update: a, subscribe: o };
|
|
598
598
|
}
|
|
599
599
|
function W(e, t, r) {
|
|
600
600
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
601
601
|
if (!i.every(Boolean))
|
|
602
602
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
603
|
-
const
|
|
604
|
-
return Nr(r, (
|
|
603
|
+
const a = t.length < 2;
|
|
604
|
+
return Nr(r, (o, u) => {
|
|
605
605
|
let l = !1;
|
|
606
606
|
const s = [];
|
|
607
607
|
let h = 0, f = A;
|
|
@@ -609,8 +609,8 @@ function W(e, t, r) {
|
|
|
609
609
|
if (h)
|
|
610
610
|
return;
|
|
611
611
|
f();
|
|
612
|
-
const p = t(n ? s[0] : s,
|
|
613
|
-
|
|
612
|
+
const p = t(n ? s[0] : s, o, u);
|
|
613
|
+
a ? o(p) : f = We(p) ? p : A;
|
|
614
614
|
}, d = i.map(
|
|
615
615
|
(p, v) => Bt(
|
|
616
616
|
p,
|
|
@@ -689,8 +689,8 @@ function Wr(e, t, r) {
|
|
|
689
689
|
}
|
|
690
690
|
function F(e, t, r) {
|
|
691
691
|
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
|
|
692
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
693
|
-
return
|
|
692
|
+
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
693
|
+
return a ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
|
|
694
694
|
}
|
|
695
695
|
F.all = function(t, r) {
|
|
696
696
|
if (!Array.isArray(t))
|
|
@@ -722,8 +722,8 @@ var S = function() {
|
|
|
722
722
|
return S = Object.assign || function(t) {
|
|
723
723
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
724
724
|
r = arguments[n];
|
|
725
|
-
for (var
|
|
726
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
725
|
+
for (var a in r)
|
|
726
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
727
727
|
}
|
|
728
728
|
return t;
|
|
729
729
|
}, S.apply(this, arguments);
|
|
@@ -739,12 +739,12 @@ function Qr(e, t) {
|
|
|
739
739
|
}
|
|
740
740
|
function Oe(e, t, r) {
|
|
741
741
|
if (r || arguments.length === 2)
|
|
742
|
-
for (var n = 0, i = t.length,
|
|
743
|
-
(
|
|
744
|
-
return e.concat(
|
|
742
|
+
for (var n = 0, i = t.length, a; n < i; n++)
|
|
743
|
+
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
744
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
745
745
|
}
|
|
746
746
|
function Ie(e, t) {
|
|
747
|
-
var r = t && t.cache ? t.cache :
|
|
747
|
+
var r = t && t.cache ? t.cache : an, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : en;
|
|
748
748
|
return i(e, {
|
|
749
749
|
cache: r,
|
|
750
750
|
serializer: n
|
|
@@ -754,12 +754,12 @@ function Yr(e) {
|
|
|
754
754
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
755
755
|
}
|
|
756
756
|
function Kr(e, t, r, n) {
|
|
757
|
-
var i = Yr(n) ? n : r(n),
|
|
758
|
-
return typeof
|
|
757
|
+
var i = Yr(n) ? n : r(n), a = t.get(i);
|
|
758
|
+
return typeof a == "undefined" && (a = e.call(this, n), t.set(i, a)), a;
|
|
759
759
|
}
|
|
760
760
|
function Ct(e, t, r) {
|
|
761
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
762
|
-
return typeof
|
|
761
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
762
|
+
return typeof a == "undefined" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
763
763
|
}
|
|
764
764
|
function Lt(e, t, r, n, i) {
|
|
765
765
|
return r.bind(t, e, n, i);
|
|
@@ -785,7 +785,7 @@ var rn = function() {
|
|
|
785
785
|
this.cache[t] = r;
|
|
786
786
|
}, e;
|
|
787
787
|
}()
|
|
788
|
-
),
|
|
788
|
+
), an = {
|
|
789
789
|
create: function() {
|
|
790
790
|
return new nn();
|
|
791
791
|
}
|
|
@@ -795,8 +795,8 @@ var rn = function() {
|
|
|
795
795
|
return ye = Object.assign || function(t) {
|
|
796
796
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
797
797
|
r = arguments[n];
|
|
798
|
-
for (var
|
|
799
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
798
|
+
for (var a in r)
|
|
799
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
800
800
|
}
|
|
801
801
|
return t;
|
|
802
802
|
}, ye.apply(this, arguments);
|
|
@@ -813,10 +813,10 @@ var j;
|
|
|
813
813
|
(function(e) {
|
|
814
814
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
815
815
|
})(j || (j = {}));
|
|
816
|
-
function
|
|
816
|
+
function at(e) {
|
|
817
817
|
return e.type === _.literal;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function on(e) {
|
|
820
820
|
return e.type === _.argument;
|
|
821
821
|
}
|
|
822
822
|
function Nt(e) {
|
|
@@ -942,8 +942,8 @@ var E = function() {
|
|
|
942
942
|
return E = Object.assign || function(t) {
|
|
943
943
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
944
944
|
r = arguments[n];
|
|
945
|
-
for (var
|
|
946
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
945
|
+
for (var a in r)
|
|
946
|
+
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
947
947
|
}
|
|
948
948
|
return t;
|
|
949
949
|
}, E.apply(this, arguments);
|
|
@@ -955,10 +955,10 @@ function cn(e) {
|
|
|
955
955
|
for (var t = e.split(hn).filter(function(m) {
|
|
956
956
|
return m.length > 0;
|
|
957
957
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
958
|
-
var
|
|
959
|
-
if (
|
|
958
|
+
var a = i[n], o = a.split("/");
|
|
959
|
+
if (o.length === 0)
|
|
960
960
|
throw new Error("Invalid number skeleton");
|
|
961
|
-
for (var u =
|
|
961
|
+
for (var u = o[0], l = o.slice(1), s = 0, h = l; s < h.length; s++) {
|
|
962
962
|
var f = h[s];
|
|
963
963
|
if (f.length === 0)
|
|
964
964
|
throw new Error("Invalid number skeleton");
|
|
@@ -970,7 +970,7 @@ function cn(e) {
|
|
|
970
970
|
function fn(e) {
|
|
971
971
|
return e.replace(/^(.*?)-/, "");
|
|
972
972
|
}
|
|
973
|
-
var
|
|
973
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
974
974
|
function st(e) {
|
|
975
975
|
var t = {};
|
|
976
976
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
@@ -1138,22 +1138,22 @@ function pn(e) {
|
|
|
1138
1138
|
t.minimumIntegerDigits = i.stem.length;
|
|
1139
1139
|
continue;
|
|
1140
1140
|
}
|
|
1141
|
-
if (
|
|
1141
|
+
if (ot.test(i.stem)) {
|
|
1142
1142
|
if (i.options.length > 1)
|
|
1143
1143
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1144
|
-
i.stem.replace(
|
|
1144
|
+
i.stem.replace(ot, function(l, s, h, f, m, d) {
|
|
1145
1145
|
return h === "*" ? t.minimumFractionDigits = s.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = s.length, t.maximumFractionDigits = s.length), "";
|
|
1146
1146
|
});
|
|
1147
|
-
var
|
|
1148
|
-
|
|
1147
|
+
var a = i.options[0];
|
|
1148
|
+
a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t), st(a)));
|
|
1149
1149
|
continue;
|
|
1150
1150
|
}
|
|
1151
1151
|
if (Ft.test(i.stem)) {
|
|
1152
1152
|
t = E(E({}, t), st(i.stem));
|
|
1153
1153
|
continue;
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1155
|
+
var o = zt(i.stem);
|
|
1156
|
+
o && (t = E(E({}, t), o));
|
|
1157
1157
|
var u = dn(i.stem);
|
|
1158
1158
|
u && (t = E(E({}, t), u));
|
|
1159
1159
|
}
|
|
@@ -2578,12 +2578,12 @@ function bn(e, t) {
|
|
|
2578
2578
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2579
2579
|
var i = e.charAt(n);
|
|
2580
2580
|
if (i === "j") {
|
|
2581
|
-
for (var
|
|
2582
|
-
|
|
2583
|
-
var
|
|
2581
|
+
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2582
|
+
a++, n++;
|
|
2583
|
+
var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), l = "a", s = gn(t);
|
|
2584
2584
|
for ((s == "H" || s == "k") && (u = 0); u-- > 0; )
|
|
2585
2585
|
r += l;
|
|
2586
|
-
for (;
|
|
2586
|
+
for (; o-- > 0; )
|
|
2587
2587
|
r = s + r;
|
|
2588
2588
|
} else
|
|
2589
2589
|
i === "J" ? r += "H" : r += i;
|
|
@@ -2640,10 +2640,10 @@ var lt = En ? (
|
|
|
2640
2640
|
function() {
|
|
2641
2641
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2642
2642
|
t[r] = arguments[r];
|
|
2643
|
-
for (var n = "", i = t.length,
|
|
2644
|
-
if (
|
|
2645
|
-
throw RangeError(
|
|
2646
|
-
n +=
|
|
2643
|
+
for (var n = "", i = t.length, a = 0, o; i > a; ) {
|
|
2644
|
+
if (o = t[a++], o > 1114111)
|
|
2645
|
+
throw RangeError(o + " is not a valid code point");
|
|
2646
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2647
2647
|
}
|
|
2648
2648
|
return n;
|
|
2649
2649
|
}
|
|
@@ -2653,8 +2653,8 @@ var lt = En ? (
|
|
|
2653
2653
|
// Ponyfill
|
|
2654
2654
|
function(t) {
|
|
2655
2655
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2656
|
-
var
|
|
2657
|
-
r[
|
|
2656
|
+
var a = i[n], o = a[0], u = a[1];
|
|
2657
|
+
r[o] = u;
|
|
2658
2658
|
}
|
|
2659
2659
|
return r;
|
|
2660
2660
|
}
|
|
@@ -2669,8 +2669,8 @@ var lt = En ? (
|
|
|
2669
2669
|
function(t, r) {
|
|
2670
2670
|
var n = t.length;
|
|
2671
2671
|
if (!(r < 0 || r >= n)) {
|
|
2672
|
-
var i = t.charCodeAt(r),
|
|
2673
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2672
|
+
var i = t.charCodeAt(r), a;
|
|
2673
|
+
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
2676
2676
|
), Pn = Hn ? (
|
|
@@ -2728,35 +2728,35 @@ var In = (
|
|
|
2728
2728
|
return this.parseMessage(0, "", !1);
|
|
2729
2729
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2730
2730
|
for (var i = []; !this.isEOF(); ) {
|
|
2731
|
-
var
|
|
2732
|
-
if (
|
|
2733
|
-
var
|
|
2734
|
-
if (
|
|
2735
|
-
return
|
|
2736
|
-
i.push(
|
|
2731
|
+
var a = this.char();
|
|
2732
|
+
if (a === 123) {
|
|
2733
|
+
var o = this.parseArgument(t, n);
|
|
2734
|
+
if (o.err)
|
|
2735
|
+
return o;
|
|
2736
|
+
i.push(o.val);
|
|
2737
2737
|
} else {
|
|
2738
|
-
if (
|
|
2738
|
+
if (a === 125 && t > 0)
|
|
2739
2739
|
break;
|
|
2740
|
-
if (
|
|
2740
|
+
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2741
2741
|
var u = this.clonePosition();
|
|
2742
2742
|
this.bump(), i.push({
|
|
2743
2743
|
type: _.pound,
|
|
2744
2744
|
location: y(u, this.clonePosition())
|
|
2745
2745
|
});
|
|
2746
|
-
} else if (
|
|
2746
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2747
2747
|
if (n)
|
|
2748
2748
|
break;
|
|
2749
2749
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2750
|
-
} else if (
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
return
|
|
2754
|
-
i.push(
|
|
2750
|
+
} else if (a === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
2751
|
+
var o = this.parseTag(t, r);
|
|
2752
|
+
if (o.err)
|
|
2753
|
+
return o;
|
|
2754
|
+
i.push(o.val);
|
|
2755
2755
|
} else {
|
|
2756
|
-
var
|
|
2757
|
-
if (
|
|
2758
|
-
return
|
|
2759
|
-
i.push(
|
|
2756
|
+
var o = this.parseLiteral(t, r);
|
|
2757
|
+
if (o.err)
|
|
2758
|
+
return o;
|
|
2759
|
+
i.push(o.val);
|
|
2760
2760
|
}
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
@@ -2775,10 +2775,10 @@ var In = (
|
|
|
2775
2775
|
err: null
|
|
2776
2776
|
};
|
|
2777
2777
|
if (this.bumpIf(">")) {
|
|
2778
|
-
var
|
|
2779
|
-
if (
|
|
2780
|
-
return
|
|
2781
|
-
var
|
|
2778
|
+
var a = this.parseMessage(t + 1, r, !0);
|
|
2779
|
+
if (a.err)
|
|
2780
|
+
return a;
|
|
2781
|
+
var o = a.val, u = this.clonePosition();
|
|
2782
2782
|
if (this.bumpIf("</")) {
|
|
2783
2783
|
if (this.isEOF() || !ze(this.char()))
|
|
2784
2784
|
return this.error(b.INVALID_TAG, y(u, this.clonePosition()));
|
|
@@ -2787,7 +2787,7 @@ var In = (
|
|
|
2787
2787
|
val: {
|
|
2788
2788
|
type: _.tag,
|
|
2789
2789
|
value: i,
|
|
2790
|
-
children:
|
|
2790
|
+
children: o,
|
|
2791
2791
|
location: y(n, this.clonePosition())
|
|
2792
2792
|
},
|
|
2793
2793
|
err: null
|
|
@@ -2803,16 +2803,16 @@ var In = (
|
|
|
2803
2803
|
return this.message.slice(t, this.offset());
|
|
2804
2804
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2805
2805
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2806
|
-
var
|
|
2807
|
-
if (o) {
|
|
2808
|
-
i += o;
|
|
2809
|
-
continue;
|
|
2810
|
-
}
|
|
2811
|
-
var a = this.tryParseUnquoted(t, r);
|
|
2806
|
+
var a = this.tryParseQuote(r);
|
|
2812
2807
|
if (a) {
|
|
2813
2808
|
i += a;
|
|
2814
2809
|
continue;
|
|
2815
2810
|
}
|
|
2811
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2812
|
+
if (o) {
|
|
2813
|
+
i += o;
|
|
2814
|
+
continue;
|
|
2815
|
+
}
|
|
2816
2816
|
var u = this.tryParseLeftAngleBracket();
|
|
2817
2817
|
if (u) {
|
|
2818
2818
|
i += u;
|
|
@@ -2897,13 +2897,13 @@ var In = (
|
|
|
2897
2897
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2898
2898
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2899
2899
|
this.bumpTo(i);
|
|
2900
|
-
var
|
|
2901
|
-
return { value: n, location:
|
|
2900
|
+
var a = this.clonePosition(), o = y(t, a);
|
|
2901
|
+
return { value: n, location: o };
|
|
2902
2902
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2903
|
-
var
|
|
2903
|
+
var a, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2904
2904
|
switch (u) {
|
|
2905
2905
|
case "":
|
|
2906
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2906
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2907
2907
|
case "number":
|
|
2908
2908
|
case "date":
|
|
2909
2909
|
case "time": {
|
|
@@ -2954,7 +2954,7 @@ var In = (
|
|
|
2954
2954
|
type: u === "number" ? _.number : u === "date" ? _.date : _.time,
|
|
2955
2955
|
value: n,
|
|
2956
2956
|
location: v,
|
|
2957
|
-
style: (
|
|
2957
|
+
style: (a = s == null ? void 0 : s.style) !== null && a !== void 0 ? a : null
|
|
2958
2958
|
},
|
|
2959
2959
|
err: null
|
|
2960
2960
|
};
|
|
@@ -2976,9 +2976,9 @@ var In = (
|
|
|
2976
2976
|
return f;
|
|
2977
2977
|
this.bumpSpace(), P = this.parseIdentifierIfPossible(), N = f.val;
|
|
2978
2978
|
}
|
|
2979
|
-
var
|
|
2980
|
-
if (
|
|
2981
|
-
return
|
|
2979
|
+
var ae = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2980
|
+
if (ae.err)
|
|
2981
|
+
return ae;
|
|
2982
2982
|
var p = this.tryParseArgumentClose(i);
|
|
2983
2983
|
if (p.err)
|
|
2984
2984
|
return p;
|
|
@@ -2987,7 +2987,7 @@ var In = (
|
|
|
2987
2987
|
val: {
|
|
2988
2988
|
type: _.select,
|
|
2989
2989
|
value: n,
|
|
2990
|
-
options: ht(
|
|
2990
|
+
options: ht(ae.val),
|
|
2991
2991
|
location: qe
|
|
2992
2992
|
},
|
|
2993
2993
|
err: null
|
|
@@ -2995,7 +2995,7 @@ var In = (
|
|
|
2995
2995
|
val: {
|
|
2996
2996
|
type: _.plural,
|
|
2997
2997
|
value: n,
|
|
2998
|
-
options: ht(
|
|
2998
|
+
options: ht(ae.val),
|
|
2999
2999
|
offset: N,
|
|
3000
3000
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3001
3001
|
location: qe
|
|
@@ -3004,7 +3004,7 @@ var In = (
|
|
|
3004
3004
|
};
|
|
3005
3005
|
}
|
|
3006
3006
|
default:
|
|
3007
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
3007
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(o, l));
|
|
3008
3008
|
}
|
|
3009
3009
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3010
3010
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3060,7 +3060,7 @@ var In = (
|
|
|
3060
3060
|
err: null
|
|
3061
3061
|
};
|
|
3062
3062
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3063
|
-
for (var
|
|
3063
|
+
for (var a, o = !1, u = [], l = /* @__PURE__ */ new Set(), s = i.value, h = i.location; ; ) {
|
|
3064
3064
|
if (s.length === 0) {
|
|
3065
3065
|
var f = this.clonePosition();
|
|
3066
3066
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3073,7 +3073,7 @@ var In = (
|
|
|
3073
3073
|
}
|
|
3074
3074
|
if (l.has(s))
|
|
3075
3075
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3076
|
-
s === "other" && (
|
|
3076
|
+
s === "other" && (o = !0), this.bumpSpace();
|
|
3077
3077
|
var d = this.clonePosition();
|
|
3078
3078
|
if (!this.bumpIf("{"))
|
|
3079
3079
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3089,21 +3089,21 @@ var In = (
|
|
|
3089
3089
|
value: p.val,
|
|
3090
3090
|
location: y(d, this.clonePosition())
|
|
3091
3091
|
}
|
|
3092
|
-
]), l.add(s), this.bumpSpace(),
|
|
3092
|
+
]), l.add(s), this.bumpSpace(), a = this.parseIdentifierIfPossible(), s = a.value, h = a.location;
|
|
3093
3093
|
}
|
|
3094
|
-
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3094
|
+
return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3095
3095
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3096
3096
|
var n = 1, i = this.clonePosition();
|
|
3097
3097
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3098
|
-
for (var
|
|
3098
|
+
for (var a = !1, o = 0; !this.isEOF(); ) {
|
|
3099
3099
|
var u = this.char();
|
|
3100
3100
|
if (u >= 48 && u <= 57)
|
|
3101
|
-
|
|
3101
|
+
a = !0, o = o * 10 + (u - 48), this.bump();
|
|
3102
3102
|
else
|
|
3103
3103
|
break;
|
|
3104
3104
|
}
|
|
3105
3105
|
var l = y(i, this.clonePosition());
|
|
3106
|
-
return
|
|
3106
|
+
return a ? (o *= n, Bn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3107
3107
|
}, e.prototype.offset = function() {
|
|
3108
3108
|
return this.position.offset;
|
|
3109
3109
|
}, e.prototype.isEOF = function() {
|
|
@@ -3211,8 +3211,8 @@ var we = (
|
|
|
3211
3211
|
function(e) {
|
|
3212
3212
|
He(t, e);
|
|
3213
3213
|
function t(r, n, i) {
|
|
3214
|
-
var
|
|
3215
|
-
return
|
|
3214
|
+
var a = e.call(this, r) || this;
|
|
3215
|
+
return a.code = n, a.originalMessage = i, a;
|
|
3216
3216
|
}
|
|
3217
3217
|
return t.prototype.toString = function() {
|
|
3218
3218
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3222,8 +3222,8 @@ var we = (
|
|
|
3222
3222
|
/** @class */
|
|
3223
3223
|
function(e) {
|
|
3224
3224
|
He(t, e);
|
|
3225
|
-
function t(r, n, i,
|
|
3226
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE,
|
|
3225
|
+
function t(r, n, i, a) {
|
|
3226
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, a) || this;
|
|
3227
3227
|
}
|
|
3228
3228
|
return t;
|
|
3229
3229
|
}(we)
|
|
@@ -3258,8 +3258,8 @@ function Dn(e) {
|
|
|
3258
3258
|
function Un(e) {
|
|
3259
3259
|
return typeof e == "function";
|
|
3260
3260
|
}
|
|
3261
|
-
function be(e, t, r, n, i,
|
|
3262
|
-
if (e.length === 1 &&
|
|
3261
|
+
function be(e, t, r, n, i, a, o) {
|
|
3262
|
+
if (e.length === 1 && at(e[0]))
|
|
3263
3263
|
return [
|
|
3264
3264
|
{
|
|
3265
3265
|
type: H.literal,
|
|
@@ -3268,7 +3268,7 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3268
3268
|
];
|
|
3269
3269
|
for (var u = [], l = 0, s = e; l < s.length; l++) {
|
|
3270
3270
|
var h = s[l];
|
|
3271
|
-
if (
|
|
3271
|
+
if (at(h)) {
|
|
3272
3272
|
u.push({
|
|
3273
3273
|
type: H.literal,
|
|
3274
3274
|
value: h.value
|
|
@@ -3276,17 +3276,17 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
3278
|
if (sn(h)) {
|
|
3279
|
-
typeof
|
|
3279
|
+
typeof a == "number" && u.push({
|
|
3280
3280
|
type: H.literal,
|
|
3281
|
-
value: r.getNumberFormat(t).format(
|
|
3281
|
+
value: r.getNumberFormat(t).format(a)
|
|
3282
3282
|
});
|
|
3283
3283
|
continue;
|
|
3284
3284
|
}
|
|
3285
3285
|
var f = h.value;
|
|
3286
3286
|
if (!(i && f in i))
|
|
3287
|
-
throw new Rn(f,
|
|
3287
|
+
throw new Rn(f, o);
|
|
3288
3288
|
var m = i[f];
|
|
3289
|
-
if (
|
|
3289
|
+
if (on(h)) {
|
|
3290
3290
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), u.push({
|
|
3291
3291
|
type: typeof m == "string" ? H.literal : H.object,
|
|
3292
3292
|
value: m
|
|
@@ -3320,8 +3320,8 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3320
3320
|
if (Ut(h)) {
|
|
3321
3321
|
var p = h.children, v = h.value, T = i[v];
|
|
3322
3322
|
if (!Un(T))
|
|
3323
|
-
throw new $n(v, "function",
|
|
3324
|
-
var x = be(p, t, r, n, i,
|
|
3323
|
+
throw new $n(v, "function", o);
|
|
3324
|
+
var x = be(p, t, r, n, i, a), c = T(x.map(function(N) {
|
|
3325
3325
|
return N.value;
|
|
3326
3326
|
}));
|
|
3327
3327
|
Array.isArray(c) || (c = [c]), u.push.apply(u, c.map(function(N) {
|
|
@@ -3334,7 +3334,7 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3334
3334
|
if (Rt(h)) {
|
|
3335
3335
|
var g = h.options[m] || h.options.other;
|
|
3336
3336
|
if (!g)
|
|
3337
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3337
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3338
3338
|
u.push.apply(u, be(g.value, t, r, n, i));
|
|
3339
3339
|
continue;
|
|
3340
3340
|
}
|
|
@@ -3344,12 +3344,12 @@ function be(e, t, r, n, i, o, a) {
|
|
|
3344
3344
|
if (!Intl.PluralRules)
|
|
3345
3345
|
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3346
3346
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3347
|
-
`, z.MISSING_INTL_API,
|
|
3347
|
+
`, z.MISSING_INTL_API, o);
|
|
3348
3348
|
var P = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3349
3349
|
g = h.options[P] || h.options.other;
|
|
3350
3350
|
}
|
|
3351
3351
|
if (!g)
|
|
3352
|
-
throw new ft(h.value, m, Object.keys(h.options),
|
|
3352
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3353
3353
|
u.push.apply(u, be(g.value, t, r, n, i, m - (h.offset || 0)));
|
|
3354
3354
|
continue;
|
|
3355
3355
|
}
|
|
@@ -3417,13 +3417,13 @@ var Zt = (
|
|
|
3417
3417
|
function() {
|
|
3418
3418
|
function e(t, r, n, i) {
|
|
3419
3419
|
r === void 0 && (r = e.defaultLocale);
|
|
3420
|
-
var
|
|
3420
|
+
var a = this;
|
|
3421
3421
|
if (this.formatterCache = {
|
|
3422
3422
|
number: {},
|
|
3423
3423
|
dateTime: {},
|
|
3424
3424
|
pluralRules: {}
|
|
3425
3425
|
}, this.format = function(l) {
|
|
3426
|
-
var s =
|
|
3426
|
+
var s = a.formatToParts(l);
|
|
3427
3427
|
if (s.length === 1)
|
|
3428
3428
|
return s[0].value;
|
|
3429
3429
|
var h = s.reduce(function(f, m) {
|
|
@@ -3431,20 +3431,20 @@ var Zt = (
|
|
|
3431
3431
|
}, []);
|
|
3432
3432
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3433
3433
|
}, this.formatToParts = function(l) {
|
|
3434
|
-
return be(
|
|
3434
|
+
return be(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
|
|
3435
3435
|
}, this.resolvedOptions = function() {
|
|
3436
3436
|
var l;
|
|
3437
3437
|
return {
|
|
3438
|
-
locale: ((l =
|
|
3438
|
+
locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3439
3439
|
};
|
|
3440
3440
|
}, this.getAst = function() {
|
|
3441
|
-
return
|
|
3441
|
+
return a.ast;
|
|
3442
3442
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3443
3443
|
if (this.message = t, !e.__parse)
|
|
3444
3444
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3445
|
-
var
|
|
3446
|
-
|
|
3447
|
-
var u = Qr(
|
|
3445
|
+
var o = i || {};
|
|
3446
|
+
o.formatters;
|
|
3447
|
+
var u = Qr(o, ["formatters"]);
|
|
3448
3448
|
this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
|
|
3449
3449
|
} else
|
|
3450
3450
|
this.ast = t;
|
|
@@ -3534,9 +3534,9 @@ function jn(e, t) {
|
|
|
3534
3534
|
for (let i = 0; i < r.length; i++)
|
|
3535
3535
|
if (typeof n == "object") {
|
|
3536
3536
|
if (i > 0) {
|
|
3537
|
-
const
|
|
3538
|
-
if (
|
|
3539
|
-
n = n[
|
|
3537
|
+
const a = r.slice(i, r.length).join(".");
|
|
3538
|
+
if (a in n) {
|
|
3539
|
+
n = n[a];
|
|
3540
3540
|
break;
|
|
3541
3541
|
}
|
|
3542
3542
|
}
|
|
@@ -3552,9 +3552,9 @@ const I = {}, zn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][
|
|
|
3552
3552
|
return I[t][e];
|
|
3553
3553
|
const r = ie(t);
|
|
3554
3554
|
for (let n = 0; n < r.length; n++) {
|
|
3555
|
-
const i = r[n],
|
|
3556
|
-
if (
|
|
3557
|
-
return zn(e, t,
|
|
3555
|
+
const i = r[n], a = Xn(i, e);
|
|
3556
|
+
if (a)
|
|
3557
|
+
return zn(e, t, a);
|
|
3558
3558
|
}
|
|
3559
3559
|
};
|
|
3560
3560
|
let Ze;
|
|
@@ -3695,7 +3695,7 @@ function ni(e) {
|
|
|
3695
3695
|
if (e.initialLocale)
|
|
3696
3696
|
try {
|
|
3697
3697
|
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3698
|
-
} catch (
|
|
3698
|
+
} catch (a) {
|
|
3699
3699
|
console.warn(
|
|
3700
3700
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3701
3701
|
);
|
|
@@ -3705,14 +3705,14 @@ function ni(e) {
|
|
|
3705
3705
|
)), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), $.set(i);
|
|
3706
3706
|
}
|
|
3707
3707
|
const Me = Te(!1);
|
|
3708
|
-
var ii = Object.defineProperty,
|
|
3708
|
+
var ii = Object.defineProperty, ai = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3709
3709
|
for (var r in t || (t = {}))
|
|
3710
3710
|
si.call(t, r) && pt(e, r, t[r]);
|
|
3711
3711
|
if (dt)
|
|
3712
3712
|
for (var r of dt(t))
|
|
3713
3713
|
ui.call(t, r) && pt(e, r, t[r]);
|
|
3714
3714
|
return e;
|
|
3715
|
-
}, hi = (e, t) =>
|
|
3715
|
+
}, hi = (e, t) => ai(e, oi(t));
|
|
3716
3716
|
let Xe;
|
|
3717
3717
|
const Ee = Te(null);
|
|
3718
3718
|
function bt(e) {
|
|
@@ -3822,21 +3822,21 @@ const te = (e, t) => {
|
|
|
3822
3822
|
ignoreTag: V().ignoreTag
|
|
3823
3823
|
})
|
|
3824
3824
|
), Ei = (e, t = {}) => {
|
|
3825
|
-
var r, n, i,
|
|
3826
|
-
let
|
|
3827
|
-
typeof e == "object" && (
|
|
3825
|
+
var r, n, i, a;
|
|
3826
|
+
let o = t;
|
|
3827
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3828
3828
|
const {
|
|
3829
3829
|
values: u,
|
|
3830
3830
|
locale: l = L(),
|
|
3831
3831
|
default: s
|
|
3832
|
-
} =
|
|
3832
|
+
} = o;
|
|
3833
3833
|
if (l == null)
|
|
3834
3834
|
throw new Error(
|
|
3835
3835
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3836
3836
|
);
|
|
3837
3837
|
let h = Jt(e, l);
|
|
3838
3838
|
if (!h)
|
|
3839
|
-
h = (
|
|
3839
|
+
h = (a = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: s })) != null ? i : s) != null ? a : e;
|
|
3840
3840
|
else if (typeof h != "string")
|
|
3841
3841
|
return console.warn(
|
|
3842
3842
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3892,7 +3892,9 @@ const _t = {
|
|
|
3892
3892
|
InvalidSession: "Your session has expired. Please try again",
|
|
3893
3893
|
TwoFactorAuthRequired: "Two-factor authentication is required",
|
|
3894
3894
|
DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance.",
|
|
3895
|
-
FraudSuspectedError: "We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020"
|
|
3895
|
+
FraudSuspectedError: "We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020",
|
|
3896
|
+
OnlyOnePendingTransactionPerUserlsAllowed: "Only one pending transaction per user is allowed",
|
|
3897
|
+
TransactionFrequencyLimitReached: "Transaction frequency limit reached"
|
|
3896
3898
|
},
|
|
3897
3899
|
tr: {
|
|
3898
3900
|
errorGeneralTitle: "Hata oluştu",
|
|
@@ -3919,7 +3921,9 @@ const _t = {
|
|
|
3919
3921
|
InvalidSession: "Beklenmedik bir hata oluştu, lütfen tekrar deneyin.",
|
|
3920
3922
|
TwoFactorAuthRequired: "İki faktörlü kimlik doğrulama gereklidi",
|
|
3921
3923
|
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin.",
|
|
3922
|
-
FraudSuspectedError: "Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020."
|
|
3924
|
+
FraudSuspectedError: "Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020.",
|
|
3925
|
+
OnlyOnePendingTransactionPerUserlsAllowed: "Devam eden bir talebiniz olduğu için șu anda yeni bir işlem başlatılamaz.",
|
|
3926
|
+
TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı"
|
|
3923
3927
|
}
|
|
3924
3928
|
};
|
|
3925
3929
|
function Bi(e) {
|
|
@@ -3977,11 +3981,11 @@ function Li(e) {
|
|
|
3977
3981
|
c() {
|
|
3978
3982
|
t = C("span"), n = xe(r), G(t, "class", "CashierErrorText");
|
|
3979
3983
|
},
|
|
3980
|
-
m(i,
|
|
3981
|
-
X(i, t,
|
|
3984
|
+
m(i, a) {
|
|
3985
|
+
X(i, t, a), O(t, n);
|
|
3982
3986
|
},
|
|
3983
|
-
p(i,
|
|
3984
|
-
|
|
3987
|
+
p(i, a) {
|
|
3988
|
+
a & /*$_, errorcode*/
|
|
3985
3989
|
10 && r !== (r = /*$_*/
|
|
3986
3990
|
i[3](`${/*errorcode*/
|
|
3987
3991
|
i[1] || "errorGeneralText"}`) + "") && Pt(n, r);
|
|
@@ -3995,18 +3999,18 @@ function Ni(e) {
|
|
|
3995
3999
|
let t, r, n = (
|
|
3996
4000
|
/*$_*/
|
|
3997
4001
|
e[3]("errorGeneralButton") + ""
|
|
3998
|
-
), i,
|
|
4002
|
+
), i, a, o;
|
|
3999
4003
|
return {
|
|
4000
4004
|
c() {
|
|
4001
4005
|
t = C("button"), r = C("span"), i = xe(n), G(t, "class", "CashierErrorButton");
|
|
4002
4006
|
},
|
|
4003
4007
|
m(u, l) {
|
|
4004
|
-
X(u, t, l), O(t, r), O(r, i),
|
|
4008
|
+
X(u, t, l), O(t, r), O(r, i), a || (o = dr(
|
|
4005
4009
|
t,
|
|
4006
4010
|
"click",
|
|
4007
4011
|
/*close*/
|
|
4008
4012
|
e[4]
|
|
4009
|
-
),
|
|
4013
|
+
), a = !0);
|
|
4010
4014
|
},
|
|
4011
4015
|
p(u, l) {
|
|
4012
4016
|
l & /*$_*/
|
|
@@ -4014,12 +4018,12 @@ function Ni(e) {
|
|
|
4014
4018
|
u[3]("errorGeneralButton") + "") && Pt(i, n);
|
|
4015
4019
|
},
|
|
4016
4020
|
d(u) {
|
|
4017
|
-
u && M(t),
|
|
4021
|
+
u && M(t), a = !1, o();
|
|
4018
4022
|
}
|
|
4019
4023
|
};
|
|
4020
4024
|
}
|
|
4021
4025
|
function Mi(e) {
|
|
4022
|
-
let t, r, n, i,
|
|
4026
|
+
let t, r, n, i, a, o;
|
|
4023
4027
|
const u = (
|
|
4024
4028
|
/*#slots*/
|
|
4025
4029
|
e[11].icon
|
|
@@ -4059,20 +4063,20 @@ function Mi(e) {
|
|
|
4059
4063
|
), x = T || Ni(e);
|
|
4060
4064
|
return {
|
|
4061
4065
|
c() {
|
|
4062
|
-
t = C("div"), r = C("div"), s && s.c(), n = Ae(), f && f.c(), i = Ae(), p && p.c(),
|
|
4066
|
+
t = C("div"), r = C("div"), s && s.c(), n = Ae(), f && f.c(), i = Ae(), p && p.c(), a = Ae(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
|
|
4063
4067
|
},
|
|
4064
4068
|
m(c, g) {
|
|
4065
|
-
X(c, t, g), O(t, r), s && s.m(r, null), O(r, n), f && f.m(r, null), O(r, i), p && p.m(r, null), O(r,
|
|
4069
|
+
X(c, t, g), O(t, r), s && s.m(r, null), O(r, n), f && f.m(r, null), O(r, i), p && p.m(r, null), O(r, a), x && x.m(r, null), e[12](t), o = !0;
|
|
4066
4070
|
},
|
|
4067
4071
|
p(c, [g]) {
|
|
4068
|
-
l ? l.p && (!
|
|
4072
|
+
l ? l.p && (!o || g & /*$$scope*/
|
|
4069
4073
|
1024) && le(
|
|
4070
4074
|
l,
|
|
4071
4075
|
u,
|
|
4072
4076
|
c,
|
|
4073
4077
|
/*$$scope*/
|
|
4074
4078
|
c[10],
|
|
4075
|
-
|
|
4079
|
+
o ? ue(
|
|
4076
4080
|
u,
|
|
4077
4081
|
/*$$scope*/
|
|
4078
4082
|
c[10],
|
|
@@ -4083,15 +4087,15 @@ function Mi(e) {
|
|
|
4083
4087
|
c[10]
|
|
4084
4088
|
),
|
|
4085
4089
|
Tt
|
|
4086
|
-
) : s && s.p && (!
|
|
4087
|
-
1) && s.p(c,
|
|
4090
|
+
) : s && s.p && (!o || g & /*assetsurl*/
|
|
4091
|
+
1) && s.p(c, o ? g : -1), f && f.p && (!o || g & /*$$scope*/
|
|
4088
4092
|
1024) && le(
|
|
4089
4093
|
f,
|
|
4090
4094
|
h,
|
|
4091
4095
|
c,
|
|
4092
4096
|
/*$$scope*/
|
|
4093
4097
|
c[10],
|
|
4094
|
-
|
|
4098
|
+
o ? ue(
|
|
4095
4099
|
h,
|
|
4096
4100
|
/*$$scope*/
|
|
4097
4101
|
c[10],
|
|
@@ -4102,14 +4106,14 @@ function Mi(e) {
|
|
|
4102
4106
|
c[10]
|
|
4103
4107
|
),
|
|
4104
4108
|
xt
|
|
4105
|
-
), d ? d.p && (!
|
|
4109
|
+
), d ? d.p && (!o || g & /*$$scope*/
|
|
4106
4110
|
1024) && le(
|
|
4107
4111
|
d,
|
|
4108
4112
|
m,
|
|
4109
4113
|
c,
|
|
4110
4114
|
/*$$scope*/
|
|
4111
4115
|
c[10],
|
|
4112
|
-
|
|
4116
|
+
o ? ue(
|
|
4113
4117
|
m,
|
|
4114
4118
|
/*$$scope*/
|
|
4115
4119
|
c[10],
|
|
@@ -4120,15 +4124,15 @@ function Mi(e) {
|
|
|
4120
4124
|
c[10]
|
|
4121
4125
|
),
|
|
4122
4126
|
vt
|
|
4123
|
-
) : p && p.p && (!
|
|
4124
|
-
10) && p.p(c,
|
|
4127
|
+
) : p && p.p && (!o || g & /*$_, errorcode*/
|
|
4128
|
+
10) && p.p(c, o ? g : -1), T ? T.p && (!o || g & /*$$scope*/
|
|
4125
4129
|
1024) && le(
|
|
4126
4130
|
T,
|
|
4127
4131
|
v,
|
|
4128
4132
|
c,
|
|
4129
4133
|
/*$$scope*/
|
|
4130
4134
|
c[10],
|
|
4131
|
-
|
|
4135
|
+
o ? ue(
|
|
4132
4136
|
v,
|
|
4133
4137
|
/*$$scope*/
|
|
4134
4138
|
c[10],
|
|
@@ -4139,14 +4143,14 @@ function Mi(e) {
|
|
|
4139
4143
|
c[10]
|
|
4140
4144
|
),
|
|
4141
4145
|
Et
|
|
4142
|
-
) : x && x.p && (!
|
|
4143
|
-
8) && x.p(c,
|
|
4146
|
+
) : x && x.p && (!o || g & /*$_*/
|
|
4147
|
+
8) && x.p(c, o ? g : -1);
|
|
4144
4148
|
},
|
|
4145
4149
|
i(c) {
|
|
4146
|
-
|
|
4150
|
+
o || (q(s, c), q(f, c), q(p, c), q(x, c), o = !0);
|
|
4147
4151
|
},
|
|
4148
4152
|
o(c) {
|
|
4149
|
-
fe(s, c), fe(f, c), fe(p, c), fe(x, c),
|
|
4153
|
+
fe(s, c), fe(f, c), fe(p, c), fe(x, c), o = !1;
|
|
4150
4154
|
},
|
|
4151
4155
|
d(c) {
|
|
4152
4156
|
c && M(t), s && s.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
|
|
@@ -4156,7 +4160,7 @@ function Mi(e) {
|
|
|
4156
4160
|
function $i(e, t, r) {
|
|
4157
4161
|
let n;
|
|
4158
4162
|
lr(e, wi, (c) => r(3, n = c));
|
|
4159
|
-
let { $$slots: i = {}, $$scope:
|
|
4163
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
|
|
4160
4164
|
const p = () => {
|
|
4161
4165
|
Si(u);
|
|
4162
4166
|
}, v = () => {
|
|
@@ -4182,7 +4186,7 @@ function $i(e, t, r) {
|
|
|
4182
4186
|
});
|
|
4183
4187
|
}
|
|
4184
4188
|
return e.$$set = (c) => {
|
|
4185
|
-
"assetsurl" in c && r(0,
|
|
4189
|
+
"assetsurl" in c && r(0, o = c.assetsurl), "lang" in c && r(5, u = c.lang), "errorcode" in c && r(1, l = c.errorcode), "clientstyling" in c && r(6, s = c.clientstyling), "clientstylingurl" in c && r(7, h = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, a = c.$$scope);
|
|
4186
4190
|
}, e.$$.update = () => {
|
|
4187
4191
|
e.$$.dirty & /*lang*/
|
|
4188
4192
|
32 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
@@ -4191,7 +4195,7 @@ function $i(e, t, r) {
|
|
|
4191
4195
|
516 && m && d && Lr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
|
|
4192
4196
|
256 && f && v();
|
|
4193
4197
|
}, [
|
|
4194
|
-
|
|
4198
|
+
o,
|
|
4195
4199
|
l,
|
|
4196
4200
|
d,
|
|
4197
4201
|
n,
|
|
@@ -4201,7 +4205,7 @@ function $i(e, t, r) {
|
|
|
4201
4205
|
h,
|
|
4202
4206
|
f,
|
|
4203
4207
|
m,
|
|
4204
|
-
|
|
4208
|
+
a,
|
|
4205
4209
|
i,
|
|
4206
4210
|
x
|
|
4207
4211
|
];
|