@everymatrix/player-account-general-confirmation-modal 1.54.8 → 1.54.9
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/{PlayerAccountGeneralConfirmationModal-D5S8HBDr.js → PlayerAccountGeneralConfirmationModal-5nUAoFX3.js} +267 -267
- package/components/{PlayerAccountGeneralConfirmationModal-DSCfSyjV.cjs → PlayerAccountGeneralConfirmationModal-Bgjx90Vs.cjs} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-CVtwIjAm.js → PlayerAccountGeneralConfirmationModal-BrkQoxbl.js} +266 -266
- package/es2015/player-account-general-confirmation-modal.cjs +1 -1
- package/es2015/player-account-general-confirmation-modal.js +1 -1
- package/esnext/player-account-general-confirmation-modal.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function M() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function cr(e, t) {
|
|
4
4
|
for (const r in t) e[r] = t[r];
|
|
5
5
|
return (
|
|
6
6
|
/** @type {T & S} */
|
|
@@ -22,7 +22,7 @@ function Ze(e) {
|
|
|
22
22
|
function Bt(e, t) {
|
|
23
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function fr(e) {
|
|
26
26
|
return Object.keys(e).length === 0;
|
|
27
27
|
}
|
|
28
28
|
function At(e, ...t) {
|
|
@@ -34,19 +34,19 @@ function At(e, ...t) {
|
|
|
34
34
|
const r = e.subscribe(...t);
|
|
35
35
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function mr(e, t, r) {
|
|
38
38
|
e.$$.on_destroy.push(At(t, r));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function pr(e, t, r, n) {
|
|
41
41
|
if (e) {
|
|
42
42
|
const i = Ct(e, t, r, n);
|
|
43
43
|
return e[0](i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function Ct(e, t, r, n) {
|
|
47
|
-
return e[1] && n ?
|
|
47
|
+
return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function dr(e, t, r, n) {
|
|
50
50
|
if (e[2] && n) {
|
|
51
51
|
const i = e[2](n(r));
|
|
52
52
|
if (t.dirty === void 0)
|
|
@@ -79,14 +79,14 @@ function gr(e) {
|
|
|
79
79
|
function H(e, t) {
|
|
80
80
|
e.appendChild(t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
82
|
+
function vr(e, t, r) {
|
|
83
|
+
const n = yr(e);
|
|
84
84
|
if (!n.getElementById(t)) {
|
|
85
85
|
const i = N("style");
|
|
86
86
|
i.id = t, i.textContent = r, xr(n, i);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function yr(e) {
|
|
90
90
|
if (!e) return document;
|
|
91
91
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
92
|
return t && /** @type {ShadowRoot} */
|
|
@@ -193,16 +193,16 @@ function Hr(e) {
|
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const ce = /* @__PURE__ */ new Set();
|
|
197
197
|
let Br;
|
|
198
198
|
function Pt(e, t) {
|
|
199
|
-
e && e.i && (
|
|
199
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
200
200
|
}
|
|
201
201
|
function Ar(e, t, r, n) {
|
|
202
202
|
if (e && e.o) {
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
if (ce.has(e)) return;
|
|
204
|
+
ce.add(e), Br.c.push(() => {
|
|
205
|
+
ce.delete(e);
|
|
206
206
|
}), e.o(t);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -246,13 +246,13 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
246
246
|
};
|
|
247
247
|
s && s(u.root);
|
|
248
248
|
let h = !1;
|
|
249
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
250
|
-
const
|
|
251
|
-
return u.ctx && i(u.ctx[
|
|
249
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
250
|
+
const d = m.length ? m[0] : f;
|
|
251
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Or(e, c)), f;
|
|
252
252
|
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
253
253
|
if (t.hydrate) {
|
|
254
|
-
const
|
|
255
|
-
u.fragment && u.fragment.l(
|
|
254
|
+
const c = _r(t.target);
|
|
255
|
+
u.fragment && u.fragment.l(c), c.forEach(Y);
|
|
256
256
|
} else
|
|
257
257
|
u.fragment && u.fragment.c();
|
|
258
258
|
t.intro && Pt(e.$$.fragment), Cr(e, t.target, t.anchor), I();
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
324
324
|
i in r && (t[i] = [e(i)]);
|
|
325
325
|
for (const i of this.attributes) {
|
|
326
326
|
const o = this.$$g_p(i.name);
|
|
327
|
-
o in this.$$d || (this.$$d[o] =
|
|
327
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
328
328
|
}
|
|
329
329
|
for (const i in this.$$p_d)
|
|
330
330
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
342
342
|
this.$$r = !0;
|
|
343
343
|
for (const i in this.$$p_d)
|
|
344
344
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
345
|
-
const o =
|
|
345
|
+
const o = fe(
|
|
346
346
|
i,
|
|
347
347
|
this.$$d[i],
|
|
348
348
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
364
364
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
365
365
|
// and setting attributes through setAttribute etc, this is helpful
|
|
366
366
|
attributeChangedCallback(e, t, r) {
|
|
367
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
367
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
377
377
|
) || e;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function fe(e, t, r, n) {
|
|
381
381
|
const i = r[e]?.type;
|
|
382
382
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
383
383
|
return t;
|
|
@@ -423,7 +423,7 @@ function Nr(e, t, r, n, i, o) {
|
|
|
423
423
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
424
424
|
},
|
|
425
425
|
set(l) {
|
|
426
|
-
l =
|
|
426
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}), n.forEach((a) => {
|
|
@@ -476,7 +476,7 @@ class Mr {
|
|
|
476
476
|
* @returns {void}
|
|
477
477
|
*/
|
|
478
478
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
479
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
const Lr = "4";
|
|
@@ -497,14 +497,14 @@ function $(e, t) {
|
|
|
497
497
|
}
|
|
498
498
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
499
499
|
}
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var y = function() {
|
|
501
|
+
return y = Object.assign || function(t) {
|
|
502
502
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
503
503
|
r = arguments[n];
|
|
504
504
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
505
505
|
}
|
|
506
506
|
return t;
|
|
507
|
-
},
|
|
507
|
+
}, y.apply(this, arguments);
|
|
508
508
|
};
|
|
509
509
|
function Rr(e, t) {
|
|
510
510
|
var r = {};
|
|
@@ -570,7 +570,7 @@ function Ge(e, t) {
|
|
|
570
570
|
0 <= r && e.splice(r, 1);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var ye = function() {
|
|
574
574
|
function e(t) {
|
|
575
575
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
576
576
|
}
|
|
@@ -586,8 +586,8 @@ var ve = function() {
|
|
|
586
586
|
var u = l.value;
|
|
587
587
|
u.remove(this);
|
|
588
588
|
}
|
|
589
|
-
} catch (
|
|
590
|
-
t = { error:
|
|
589
|
+
} catch (p) {
|
|
590
|
+
t = { error: p };
|
|
591
591
|
} finally {
|
|
592
592
|
try {
|
|
593
593
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -601,26 +601,26 @@ var ve = function() {
|
|
|
601
601
|
if (R(h))
|
|
602
602
|
try {
|
|
603
603
|
h();
|
|
604
|
-
} catch (
|
|
605
|
-
o =
|
|
604
|
+
} catch (p) {
|
|
605
|
+
o = p instanceof we ? p.errors : [p];
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var c = this._finalizers;
|
|
608
|
+
if (c) {
|
|
609
609
|
this._finalizers = null;
|
|
610
610
|
try {
|
|
611
|
-
for (var
|
|
612
|
-
var
|
|
611
|
+
for (var f = Re(c), m = f.next(); !m.done; m = f.next()) {
|
|
612
|
+
var d = m.value;
|
|
613
613
|
try {
|
|
614
|
-
tt(
|
|
615
|
-
} catch (
|
|
616
|
-
o = o ?? [],
|
|
614
|
+
tt(d);
|
|
615
|
+
} catch (p) {
|
|
616
|
+
o = o ?? [], p instanceof we ? o = X(X([], $e(o)), $e(p.errors)) : o.push(p);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
} catch (
|
|
620
|
-
n = { error:
|
|
619
|
+
} catch (p) {
|
|
620
|
+
n = { error: p };
|
|
621
621
|
} finally {
|
|
622
622
|
try {
|
|
623
|
-
|
|
623
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
624
624
|
} finally {
|
|
625
625
|
if (n) throw n.error;
|
|
626
626
|
}
|
|
@@ -658,9 +658,9 @@ var ve = function() {
|
|
|
658
658
|
var t = new e();
|
|
659
659
|
return t.closed = !0, t;
|
|
660
660
|
}(), e;
|
|
661
|
-
}(), Nt =
|
|
661
|
+
}(), Nt = ye.EMPTY;
|
|
662
662
|
function Mt(e) {
|
|
663
|
-
return e instanceof
|
|
663
|
+
return e instanceof ye || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
664
664
|
}
|
|
665
665
|
function tt(e) {
|
|
666
666
|
R(e) ? e() : e.unsubscribe();
|
|
@@ -685,7 +685,7 @@ function Ur(e) {
|
|
|
685
685
|
}
|
|
686
686
|
function rt() {
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function me(e) {
|
|
689
689
|
e();
|
|
690
690
|
}
|
|
691
691
|
var Lt = function(e) {
|
|
@@ -719,7 +719,7 @@ var Lt = function(e) {
|
|
|
719
719
|
this.unsubscribe();
|
|
720
720
|
}
|
|
721
721
|
}, t;
|
|
722
|
-
}(
|
|
722
|
+
}(ye), Dr = function() {
|
|
723
723
|
function e(t) {
|
|
724
724
|
this.partialObserver = t;
|
|
725
725
|
}
|
|
@@ -795,7 +795,7 @@ var nt = function() {
|
|
|
795
795
|
return r.source = this, r.operator = t, r;
|
|
796
796
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
797
797
|
var i = this, o = zr(t) ? t : new Ue(t, r, n);
|
|
798
|
-
return
|
|
798
|
+
return me(function() {
|
|
799
799
|
var s = i, a = s.operator, l = s.source;
|
|
800
800
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
801
801
|
}), o;
|
|
@@ -874,7 +874,7 @@ var Zr = It(function(e) {
|
|
|
874
874
|
throw new Zr();
|
|
875
875
|
}, t.prototype.next = function(r) {
|
|
876
876
|
var n = this;
|
|
877
|
-
|
|
877
|
+
me(function() {
|
|
878
878
|
var i, o;
|
|
879
879
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
880
880
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
@@ -896,7 +896,7 @@ var Zr = It(function(e) {
|
|
|
896
896
|
});
|
|
897
897
|
}, t.prototype.error = function(r) {
|
|
898
898
|
var n = this;
|
|
899
|
-
|
|
899
|
+
me(function() {
|
|
900
900
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
901
901
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
902
902
|
for (var i = n.observers; i.length; )
|
|
@@ -905,7 +905,7 @@ var Zr = It(function(e) {
|
|
|
905
905
|
});
|
|
906
906
|
}, t.prototype.complete = function() {
|
|
907
907
|
var r = this;
|
|
908
|
-
|
|
908
|
+
me(function() {
|
|
909
909
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
910
910
|
r.isStopped = !0;
|
|
911
911
|
for (var n = r.observers; n.length; )
|
|
@@ -927,7 +927,7 @@ var Zr = It(function(e) {
|
|
|
927
927
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
928
928
|
}, t.prototype._innerSubscribe = function(r) {
|
|
929
929
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
930
|
-
return o || s ? Nt : (this.currentObservers = null, a.push(r), new
|
|
930
|
+
return o || s ? Nt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
931
931
|
n.currentObservers = null, Ge(a, r);
|
|
932
932
|
}));
|
|
933
933
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
@@ -1033,26 +1033,26 @@ function q(e, t, r) {
|
|
|
1033
1033
|
return Yr(r, (s, a) => {
|
|
1034
1034
|
let l = !1;
|
|
1035
1035
|
const u = [];
|
|
1036
|
-
let h = 0,
|
|
1037
|
-
const
|
|
1036
|
+
let h = 0, c = M;
|
|
1037
|
+
const f = () => {
|
|
1038
1038
|
if (h)
|
|
1039
1039
|
return;
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1042
|
-
o ? s(
|
|
1043
|
-
},
|
|
1044
|
-
(
|
|
1045
|
-
|
|
1040
|
+
c();
|
|
1041
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1042
|
+
o ? s(d) : c = Ze(d) ? d : M;
|
|
1043
|
+
}, m = i.map(
|
|
1044
|
+
(d, p) => At(
|
|
1045
|
+
d,
|
|
1046
1046
|
(A) => {
|
|
1047
|
-
u[
|
|
1047
|
+
u[p] = A, h &= ~(1 << p), l && f();
|
|
1048
1048
|
},
|
|
1049
1049
|
() => {
|
|
1050
|
-
h |= 1 <<
|
|
1050
|
+
h |= 1 << p;
|
|
1051
1051
|
}
|
|
1052
1052
|
)
|
|
1053
1053
|
);
|
|
1054
|
-
return l = !0,
|
|
1055
|
-
J(
|
|
1054
|
+
return l = !0, f(), function() {
|
|
1055
|
+
J(m), c(), l = !1;
|
|
1056
1056
|
};
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
@@ -1108,7 +1108,7 @@ function Gt(e, t) {
|
|
|
1108
1108
|
function hn(e, t) {
|
|
1109
1109
|
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function cn(e, t, r) {
|
|
1112
1112
|
var n = {};
|
|
1113
1113
|
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1114
1114
|
n[i] = ie(e[i], r);
|
|
@@ -1119,7 +1119,7 @@ function fn(e, t, r) {
|
|
|
1119
1119
|
function W(e, t, r) {
|
|
1120
1120
|
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1121
1121
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1122
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1122
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : ie(t, r);
|
|
1123
1123
|
}
|
|
1124
1124
|
W.all = function(t, r) {
|
|
1125
1125
|
if (!Array.isArray(t))
|
|
@@ -1128,20 +1128,20 @@ W.all = function(t, r) {
|
|
|
1128
1128
|
return W(n, i, r);
|
|
1129
1129
|
}, {});
|
|
1130
1130
|
};
|
|
1131
|
-
var
|
|
1132
|
-
const
|
|
1131
|
+
var fn = W, mn = fn;
|
|
1132
|
+
const pn = /* @__PURE__ */ qr(mn);
|
|
1133
1133
|
function He(e, t) {
|
|
1134
|
-
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer :
|
|
1134
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : gn;
|
|
1135
1135
|
return i(e, {
|
|
1136
1136
|
cache: r,
|
|
1137
1137
|
serializer: n
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function dn(e) {
|
|
1141
1141
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1142
1142
|
}
|
|
1143
1143
|
function bn(e, t, r, n) {
|
|
1144
|
-
var i =
|
|
1144
|
+
var i = dn(n) ? n : r(n), o = t.get(i);
|
|
1145
1145
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1146
1146
|
}
|
|
1147
1147
|
function Ut(e, t, r) {
|
|
@@ -1155,10 +1155,10 @@ function gn(e, t) {
|
|
|
1155
1155
|
var r = e.length === 1 ? bn : Ut;
|
|
1156
1156
|
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function vn(e, t) {
|
|
1159
1159
|
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1160
1160
|
}
|
|
1161
|
-
var
|
|
1161
|
+
var yn = function() {
|
|
1162
1162
|
return JSON.stringify(arguments);
|
|
1163
1163
|
}, xn = (
|
|
1164
1164
|
/** @class */
|
|
@@ -1177,7 +1177,7 @@ var vn = function() {
|
|
|
1177
1177
|
return new xn();
|
|
1178
1178
|
}
|
|
1179
1179
|
}, Be = {
|
|
1180
|
-
variadic:
|
|
1180
|
+
variadic: vn
|
|
1181
1181
|
}, g;
|
|
1182
1182
|
(function(e) {
|
|
1183
1183
|
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";
|
|
@@ -1319,15 +1319,15 @@ var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
1319
1319
|
function Bn(e) {
|
|
1320
1320
|
if (e.length === 0)
|
|
1321
1321
|
throw new Error("Number skeleton cannot be empty");
|
|
1322
|
-
for (var t = e.split(Hn).filter(function(
|
|
1323
|
-
return
|
|
1322
|
+
for (var t = e.split(Hn).filter(function(f) {
|
|
1323
|
+
return f.length > 0;
|
|
1324
1324
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1325
1325
|
var o = i[n], s = o.split("/");
|
|
1326
1326
|
if (s.length === 0)
|
|
1327
1327
|
throw new Error("Invalid number skeleton");
|
|
1328
1328
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1329
|
-
var
|
|
1330
|
-
if (
|
|
1329
|
+
var c = h[u];
|
|
1330
|
+
if (c.length === 0)
|
|
1331
1331
|
throw new Error("Invalid number skeleton");
|
|
1332
1332
|
}
|
|
1333
1333
|
r.push({ stem: a, options: l });
|
|
@@ -1338,7 +1338,7 @@ function An(e) {
|
|
|
1338
1338
|
return e.replace(/^(.*?)-/, "");
|
|
1339
1339
|
}
|
|
1340
1340
|
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
1341
|
-
function
|
|
1341
|
+
function ct(e) {
|
|
1342
1342
|
var t = {};
|
|
1343
1343
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
1344
1344
|
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)), "";
|
|
@@ -1398,7 +1398,7 @@ function Pn(e) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
return t;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function ft(e) {
|
|
1402
1402
|
var t = {}, r = Yt(e);
|
|
1403
1403
|
return r || t;
|
|
1404
1404
|
}
|
|
@@ -1437,13 +1437,13 @@ function On(e) {
|
|
|
1437
1437
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1438
1438
|
continue;
|
|
1439
1439
|
case "scientific":
|
|
1440
|
-
t =
|
|
1441
|
-
return
|
|
1440
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1441
|
+
return y(y({}, l), ft(u));
|
|
1442
1442
|
}, {}));
|
|
1443
1443
|
continue;
|
|
1444
1444
|
case "engineering":
|
|
1445
|
-
t =
|
|
1446
|
-
return
|
|
1445
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1446
|
+
return y(y({}, l), ft(u));
|
|
1447
1447
|
}, {}));
|
|
1448
1448
|
continue;
|
|
1449
1449
|
case "notation-simple":
|
|
@@ -1488,13 +1488,13 @@ function On(e) {
|
|
|
1488
1488
|
case "integer-width":
|
|
1489
1489
|
if (i.options.length > 1)
|
|
1490
1490
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1491
|
-
i.options[0].replace(Cn, function(l, u, h,
|
|
1491
|
+
i.options[0].replace(Cn, function(l, u, h, c, f, m) {
|
|
1492
1492
|
if (u)
|
|
1493
1493
|
t.minimumIntegerDigits = h.length;
|
|
1494
1494
|
else {
|
|
1495
|
-
if (
|
|
1495
|
+
if (c && f)
|
|
1496
1496
|
throw new Error("We currently do not support maximum integer digits");
|
|
1497
|
-
if (
|
|
1497
|
+
if (m)
|
|
1498
1498
|
throw new Error("We currently do not support exact integer digits");
|
|
1499
1499
|
}
|
|
1500
1500
|
return "";
|
|
@@ -1508,21 +1508,21 @@ function On(e) {
|
|
|
1508
1508
|
if (ht.test(i.stem)) {
|
|
1509
1509
|
if (i.options.length > 1)
|
|
1510
1510
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1511
|
-
i.stem.replace(ht, function(l, u, h,
|
|
1512
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1511
|
+
i.stem.replace(ht, function(l, u, h, c, f, m) {
|
|
1512
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1513
1513
|
});
|
|
1514
1514
|
var o = i.options[0];
|
|
1515
|
-
o === "w" ? t =
|
|
1515
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1516
1516
|
continue;
|
|
1517
1517
|
}
|
|
1518
1518
|
if (Qt.test(i.stem)) {
|
|
1519
|
-
t =
|
|
1519
|
+
t = y(y({}, t), ct(i.stem));
|
|
1520
1520
|
continue;
|
|
1521
1521
|
}
|
|
1522
1522
|
var s = Yt(i.stem);
|
|
1523
|
-
s && (t =
|
|
1523
|
+
s && (t = y(y({}, t), s));
|
|
1524
1524
|
var a = Pn(i.stem);
|
|
1525
|
-
a && (t =
|
|
1525
|
+
a && (t = y(y({}, t), a));
|
|
1526
1526
|
}
|
|
1527
1527
|
return t;
|
|
1528
1528
|
}
|
|
@@ -2979,7 +2979,7 @@ function Nn(e) {
|
|
|
2979
2979
|
return i[0];
|
|
2980
2980
|
}
|
|
2981
2981
|
var Ae, Mn = new RegExp("^".concat(Zt.source, "*")), Ln = new RegExp("".concat(Zt.source, "*$"));
|
|
2982
|
-
function
|
|
2982
|
+
function v(e, t) {
|
|
2983
2983
|
return { start: e, end: t };
|
|
2984
2984
|
}
|
|
2985
2985
|
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), $n = !!String.fromCodePoint, Gn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Dn = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
|
|
@@ -2991,7 +2991,7 @@ try {
|
|
|
2991
2991
|
} catch {
|
|
2992
2992
|
Fe = !1;
|
|
2993
2993
|
}
|
|
2994
|
-
var
|
|
2994
|
+
var mt = Rn ? (
|
|
2995
2995
|
// Native
|
|
2996
2996
|
function(t, r, n) {
|
|
2997
2997
|
return t.startsWith(r, n);
|
|
@@ -3013,7 +3013,7 @@ var dt = Rn ? (
|
|
|
3013
3013
|
}
|
|
3014
3014
|
return n;
|
|
3015
3015
|
}
|
|
3016
|
-
),
|
|
3016
|
+
), pt = (
|
|
3017
3017
|
// native
|
|
3018
3018
|
Gn ? Object.fromEntries : (
|
|
3019
3019
|
// Ponyfill
|
|
@@ -3065,11 +3065,11 @@ function Kt(e, t) {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
var ke;
|
|
3067
3067
|
if (Fe) {
|
|
3068
|
-
var
|
|
3068
|
+
var dt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3069
3069
|
ke = function(t, r) {
|
|
3070
3070
|
var n;
|
|
3071
|
-
|
|
3072
|
-
var i =
|
|
3071
|
+
dt.lastIndex = r;
|
|
3072
|
+
var i = dt.exec(t);
|
|
3073
3073
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3074
3074
|
};
|
|
3075
3075
|
} else
|
|
@@ -3107,12 +3107,12 @@ var zn = (
|
|
|
3107
3107
|
var a = this.clonePosition();
|
|
3108
3108
|
this.bump(), i.push({
|
|
3109
3109
|
type: E.pound,
|
|
3110
|
-
location:
|
|
3110
|
+
location: v(a, this.clonePosition())
|
|
3111
3111
|
});
|
|
3112
3112
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3113
3113
|
if (n)
|
|
3114
3114
|
break;
|
|
3115
|
-
return this.error(g.UNMATCHED_CLOSING_TAG,
|
|
3115
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3116
3116
|
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3117
3117
|
var s = this.parseTag(t, r);
|
|
3118
3118
|
if (s.err)
|
|
@@ -3136,7 +3136,7 @@ var zn = (
|
|
|
3136
3136
|
val: {
|
|
3137
3137
|
type: E.literal,
|
|
3138
3138
|
value: "<".concat(i, "/>"),
|
|
3139
|
-
location:
|
|
3139
|
+
location: v(n, this.clonePosition())
|
|
3140
3140
|
},
|
|
3141
3141
|
err: null
|
|
3142
3142
|
};
|
|
@@ -3147,21 +3147,21 @@ var zn = (
|
|
|
3147
3147
|
var s = o.val, a = this.clonePosition();
|
|
3148
3148
|
if (this.bumpIf("</")) {
|
|
3149
3149
|
if (this.isEOF() || !Ve(this.char()))
|
|
3150
|
-
return this.error(g.INVALID_TAG,
|
|
3150
|
+
return this.error(g.INVALID_TAG, v(a, this.clonePosition()));
|
|
3151
3151
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3152
|
-
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG,
|
|
3152
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3153
3153
|
val: {
|
|
3154
3154
|
type: E.tag,
|
|
3155
3155
|
value: i,
|
|
3156
3156
|
children: s,
|
|
3157
|
-
location:
|
|
3157
|
+
location: v(n, this.clonePosition())
|
|
3158
3158
|
},
|
|
3159
3159
|
err: null
|
|
3160
|
-
} : this.error(g.INVALID_TAG,
|
|
3160
|
+
} : this.error(g.INVALID_TAG, v(a, this.clonePosition())));
|
|
3161
3161
|
} else
|
|
3162
|
-
return this.error(g.UNCLOSED_TAG,
|
|
3162
|
+
return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3163
3163
|
} else
|
|
3164
|
-
return this.error(g.INVALID_TAG,
|
|
3164
|
+
return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
|
|
3165
3165
|
}, e.prototype.parseTagName = function() {
|
|
3166
3166
|
var t = this.offset();
|
|
3167
3167
|
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
@@ -3186,7 +3186,7 @@ var zn = (
|
|
|
3186
3186
|
}
|
|
3187
3187
|
break;
|
|
3188
3188
|
}
|
|
3189
|
-
var l =
|
|
3189
|
+
var l = v(n, this.clonePosition());
|
|
3190
3190
|
return {
|
|
3191
3191
|
val: { type: E.literal, value: i, location: l },
|
|
3192
3192
|
err: null
|
|
@@ -3236,14 +3236,14 @@ var zn = (
|
|
|
3236
3236
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3237
3237
|
var n = this.clonePosition();
|
|
3238
3238
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3239
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3239
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3240
3240
|
if (this.char() === 125)
|
|
3241
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT,
|
|
3241
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3242
3242
|
var i = this.parseIdentifierIfPossible().value;
|
|
3243
3243
|
if (!i)
|
|
3244
|
-
return this.error(g.MALFORMED_ARGUMENT,
|
|
3244
|
+
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3245
3245
|
if (this.bumpSpace(), this.isEOF())
|
|
3246
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3246
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3247
3247
|
switch (this.char()) {
|
|
3248
3248
|
case 125:
|
|
3249
3249
|
return this.bump(), {
|
|
@@ -3251,25 +3251,25 @@ var zn = (
|
|
|
3251
3251
|
type: E.argument,
|
|
3252
3252
|
// value does not include the opening and closing braces.
|
|
3253
3253
|
value: i,
|
|
3254
|
-
location:
|
|
3254
|
+
location: v(n, this.clonePosition())
|
|
3255
3255
|
},
|
|
3256
3256
|
err: null
|
|
3257
3257
|
};
|
|
3258
3258
|
case 44:
|
|
3259
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3259
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3260
3260
|
default:
|
|
3261
|
-
return this.error(g.MALFORMED_ARGUMENT,
|
|
3261
|
+
return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3262
3262
|
}
|
|
3263
3263
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3264
3264
|
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3265
3265
|
this.bumpTo(i);
|
|
3266
|
-
var o = this.clonePosition(), s =
|
|
3266
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3267
3267
|
return { value: n, location: s };
|
|
3268
3268
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3269
3269
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3270
3270
|
switch (a) {
|
|
3271
3271
|
case "":
|
|
3272
|
-
return this.error(g.EXPECT_ARGUMENT_TYPE,
|
|
3272
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3273
3273
|
case "number":
|
|
3274
3274
|
case "date":
|
|
3275
3275
|
case "time": {
|
|
@@ -3277,40 +3277,40 @@ var zn = (
|
|
|
3277
3277
|
var u = null;
|
|
3278
3278
|
if (this.bumpIf(",")) {
|
|
3279
3279
|
this.bumpSpace();
|
|
3280
|
-
var h = this.clonePosition(),
|
|
3281
|
-
if (
|
|
3282
|
-
return
|
|
3283
|
-
var
|
|
3284
|
-
if (
|
|
3285
|
-
return this.error(g.EXPECT_ARGUMENT_STYLE,
|
|
3286
|
-
var
|
|
3287
|
-
u = { style:
|
|
3280
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3281
|
+
if (c.err)
|
|
3282
|
+
return c;
|
|
3283
|
+
var f = Wn(c.val);
|
|
3284
|
+
if (f.length === 0)
|
|
3285
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3286
|
+
var m = v(h, this.clonePosition());
|
|
3287
|
+
u = { style: f, styleLocation: m };
|
|
3288
3288
|
}
|
|
3289
|
-
var
|
|
3290
|
-
if (
|
|
3291
|
-
return
|
|
3292
|
-
var
|
|
3293
|
-
if (u &&
|
|
3289
|
+
var d = this.tryParseArgumentClose(i);
|
|
3290
|
+
if (d.err)
|
|
3291
|
+
return d;
|
|
3292
|
+
var p = v(i, this.clonePosition());
|
|
3293
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3294
3294
|
var A = Xn(u.style.slice(2));
|
|
3295
3295
|
if (a === "number") {
|
|
3296
|
-
var
|
|
3297
|
-
return
|
|
3298
|
-
val: { type: E.number, value: n, location:
|
|
3296
|
+
var c = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
3297
|
+
return c.err ? c : {
|
|
3298
|
+
val: { type: E.number, value: n, location: p, style: c.val },
|
|
3299
3299
|
err: null
|
|
3300
3300
|
};
|
|
3301
3301
|
} else {
|
|
3302
3302
|
if (A.length === 0)
|
|
3303
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON,
|
|
3303
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
|
|
3304
3304
|
var O = A;
|
|
3305
3305
|
this.locale && (O = In(A, this.locale));
|
|
3306
|
-
var
|
|
3306
|
+
var f = {
|
|
3307
3307
|
type: z.dateTime,
|
|
3308
3308
|
pattern: O,
|
|
3309
3309
|
location: u.styleLocation,
|
|
3310
3310
|
parsedOptions: this.shouldParseSkeletons ? wn(O) : {}
|
|
3311
3311
|
}, C = a === "date" ? E.date : E.time;
|
|
3312
3312
|
return {
|
|
3313
|
-
val: { type: C, value: n, location:
|
|
3313
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3314
3314
|
err: null
|
|
3315
3315
|
};
|
|
3316
3316
|
}
|
|
@@ -3319,7 +3319,7 @@ var zn = (
|
|
|
3319
3319
|
val: {
|
|
3320
3320
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3321
3321
|
value: n,
|
|
3322
|
-
location:
|
|
3322
|
+
location: p,
|
|
3323
3323
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3324
3324
|
},
|
|
3325
3325
|
err: null
|
|
@@ -3330,30 +3330,30 @@ var zn = (
|
|
|
3330
3330
|
case "select": {
|
|
3331
3331
|
var S = this.clonePosition();
|
|
3332
3332
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3333
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3333
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, y({}, S)));
|
|
3334
3334
|
this.bumpSpace();
|
|
3335
3335
|
var T = this.parseIdentifierIfPossible(), _ = 0;
|
|
3336
3336
|
if (a !== "select" && T.value === "offset") {
|
|
3337
3337
|
if (!this.bumpIf(":"))
|
|
3338
|
-
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3338
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3339
3339
|
this.bumpSpace();
|
|
3340
|
-
var
|
|
3341
|
-
if (
|
|
3342
|
-
return
|
|
3343
|
-
this.bumpSpace(), T = this.parseIdentifierIfPossible(), _ =
|
|
3340
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3341
|
+
if (c.err)
|
|
3342
|
+
return c;
|
|
3343
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), _ = c.val;
|
|
3344
3344
|
}
|
|
3345
3345
|
var x = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
3346
3346
|
if (x.err)
|
|
3347
3347
|
return x;
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3351
|
-
var P =
|
|
3348
|
+
var d = this.tryParseArgumentClose(i);
|
|
3349
|
+
if (d.err)
|
|
3350
|
+
return d;
|
|
3351
|
+
var P = v(i, this.clonePosition());
|
|
3352
3352
|
return a === "select" ? {
|
|
3353
3353
|
val: {
|
|
3354
3354
|
type: E.select,
|
|
3355
3355
|
value: n,
|
|
3356
|
-
options:
|
|
3356
|
+
options: pt(x.val),
|
|
3357
3357
|
location: P
|
|
3358
3358
|
},
|
|
3359
3359
|
err: null
|
|
@@ -3361,7 +3361,7 @@ var zn = (
|
|
|
3361
3361
|
val: {
|
|
3362
3362
|
type: E.plural,
|
|
3363
3363
|
value: n,
|
|
3364
|
-
options:
|
|
3364
|
+
options: pt(x.val),
|
|
3365
3365
|
offset: _,
|
|
3366
3366
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3367
3367
|
location: P
|
|
@@ -3370,10 +3370,10 @@ var zn = (
|
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
3372
|
default:
|
|
3373
|
-
return this.error(g.INVALID_ARGUMENT_TYPE,
|
|
3373
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3374
3374
|
}
|
|
3375
3375
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3376
|
-
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3376
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3377
3377
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3378
3378
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3379
3379
|
var n = this.char();
|
|
@@ -3382,7 +3382,7 @@ var zn = (
|
|
|
3382
3382
|
this.bump();
|
|
3383
3383
|
var i = this.clonePosition();
|
|
3384
3384
|
if (!this.bumpUntil("'"))
|
|
3385
|
-
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3385
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3386
3386
|
this.bump();
|
|
3387
3387
|
break;
|
|
3388
3388
|
}
|
|
@@ -3428,36 +3428,36 @@ var zn = (
|
|
|
3428
3428
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3429
3429
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3430
3430
|
if (u.length === 0) {
|
|
3431
|
-
var
|
|
3431
|
+
var c = this.clonePosition();
|
|
3432
3432
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3433
|
-
var
|
|
3434
|
-
if (
|
|
3435
|
-
return
|
|
3436
|
-
h =
|
|
3433
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3434
|
+
if (f.err)
|
|
3435
|
+
return f;
|
|
3436
|
+
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3437
3437
|
} else
|
|
3438
3438
|
break;
|
|
3439
3439
|
}
|
|
3440
3440
|
if (l.has(u))
|
|
3441
3441
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3442
3442
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3443
|
-
var
|
|
3443
|
+
var m = this.clonePosition();
|
|
3444
3444
|
if (!this.bumpIf("{"))
|
|
3445
|
-
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3446
|
-
var
|
|
3445
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3446
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3447
|
+
if (d.err)
|
|
3448
|
+
return d;
|
|
3449
|
+
var p = this.tryParseArgumentClose(m);
|
|
3447
3450
|
if (p.err)
|
|
3448
3451
|
return p;
|
|
3449
|
-
var m = this.tryParseArgumentClose(d);
|
|
3450
|
-
if (m.err)
|
|
3451
|
-
return m;
|
|
3452
3452
|
a.push([
|
|
3453
3453
|
u,
|
|
3454
3454
|
{
|
|
3455
|
-
value:
|
|
3456
|
-
location:
|
|
3455
|
+
value: d.val,
|
|
3456
|
+
location: v(m, this.clonePosition())
|
|
3457
3457
|
}
|
|
3458
3458
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3459
3459
|
}
|
|
3460
|
-
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3460
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3461
3461
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3462
3462
|
var n = 1, i = this.clonePosition();
|
|
3463
3463
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3468,7 +3468,7 @@ var zn = (
|
|
|
3468
3468
|
else
|
|
3469
3469
|
break;
|
|
3470
3470
|
}
|
|
3471
|
-
var l =
|
|
3471
|
+
var l = v(i, this.clonePosition());
|
|
3472
3472
|
return o ? (s *= n, kn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3473
3473
|
}, e.prototype.offset = function() {
|
|
3474
3474
|
return this.position.offset;
|
|
@@ -3503,7 +3503,7 @@ var zn = (
|
|
|
3503
3503
|
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);
|
|
3504
3504
|
}
|
|
3505
3505
|
}, e.prototype.bumpIf = function(t) {
|
|
3506
|
-
if (
|
|
3506
|
+
if (mt(this.message, t, this.offset())) {
|
|
3507
3507
|
for (var r = 0; r < t.length; r++)
|
|
3508
3508
|
this.bump();
|
|
3509
3509
|
return !0;
|
|
@@ -3559,7 +3559,7 @@ function Xe(e) {
|
|
|
3559
3559
|
});
|
|
3560
3560
|
}
|
|
3561
3561
|
function Yn(e, t) {
|
|
3562
|
-
t === void 0 && (t = {}), t =
|
|
3562
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3563
3563
|
var r = new zn(e, t).parse();
|
|
3564
3564
|
if (r.err) {
|
|
3565
3565
|
var n = SyntaxError(g[r.err.kind]);
|
|
@@ -3623,7 +3623,7 @@ function ei(e) {
|
|
|
3623
3623
|
function ti(e) {
|
|
3624
3624
|
return typeof e == "function";
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3627
3627
|
if (e.length === 1 && lt(e[0]))
|
|
3628
3628
|
return [
|
|
3629
3629
|
{
|
|
@@ -3647,46 +3647,46 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3647
3647
|
});
|
|
3648
3648
|
continue;
|
|
3649
3649
|
}
|
|
3650
|
-
var
|
|
3651
|
-
if (!(i &&
|
|
3652
|
-
throw new Kn(
|
|
3653
|
-
var
|
|
3650
|
+
var c = h.value;
|
|
3651
|
+
if (!(i && c in i))
|
|
3652
|
+
throw new Kn(c, s);
|
|
3653
|
+
var f = i[c];
|
|
3654
3654
|
if (En(h)) {
|
|
3655
|
-
(!
|
|
3656
|
-
type: typeof
|
|
3657
|
-
value:
|
|
3655
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3656
|
+
type: typeof f == "string" ? B.literal : B.object,
|
|
3657
|
+
value: f
|
|
3658
3658
|
});
|
|
3659
3659
|
continue;
|
|
3660
3660
|
}
|
|
3661
3661
|
if (jt(h)) {
|
|
3662
|
-
var
|
|
3662
|
+
var m = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3663
3663
|
a.push({
|
|
3664
3664
|
type: B.literal,
|
|
3665
|
-
value: r.getDateTimeFormat(t,
|
|
3665
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3666
3666
|
});
|
|
3667
3667
|
continue;
|
|
3668
3668
|
}
|
|
3669
3669
|
if (kt(h)) {
|
|
3670
|
-
var
|
|
3670
|
+
var m = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3671
3671
|
a.push({
|
|
3672
3672
|
type: B.literal,
|
|
3673
|
-
value: r.getDateTimeFormat(t,
|
|
3673
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3674
3674
|
});
|
|
3675
3675
|
continue;
|
|
3676
3676
|
}
|
|
3677
3677
|
if (Ft(h)) {
|
|
3678
|
-
var
|
|
3679
|
-
|
|
3678
|
+
var m = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
|
|
3679
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3680
3680
|
type: B.literal,
|
|
3681
|
-
value: r.getNumberFormat(t,
|
|
3681
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3682
3682
|
});
|
|
3683
3683
|
continue;
|
|
3684
3684
|
}
|
|
3685
3685
|
if (Wt(h)) {
|
|
3686
|
-
var
|
|
3686
|
+
var d = h.children, p = h.value, A = i[p];
|
|
3687
3687
|
if (!ti(A))
|
|
3688
|
-
throw new qn(
|
|
3689
|
-
var O =
|
|
3688
|
+
throw new qn(p, "function", s);
|
|
3689
|
+
var O = pe(d, t, r, n, i, o), C = A(O.map(function(_) {
|
|
3690
3690
|
return _.value;
|
|
3691
3691
|
}));
|
|
3692
3692
|
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(_) {
|
|
@@ -3697,39 +3697,39 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3697
3697
|
}));
|
|
3698
3698
|
}
|
|
3699
3699
|
if (Vt(h)) {
|
|
3700
|
-
var S = h.options[
|
|
3700
|
+
var S = h.options[f] || h.options.other;
|
|
3701
3701
|
if (!S)
|
|
3702
|
-
throw new bt(h.value,
|
|
3703
|
-
a.push.apply(a,
|
|
3702
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3703
|
+
a.push.apply(a, pe(S.value, t, r, n, i));
|
|
3704
3704
|
continue;
|
|
3705
3705
|
}
|
|
3706
3706
|
if (Xt(h)) {
|
|
3707
|
-
var S = h.options["=".concat(
|
|
3707
|
+
var S = h.options["=".concat(f)];
|
|
3708
3708
|
if (!S) {
|
|
3709
3709
|
if (!Intl.PluralRules)
|
|
3710
3710
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3711
3711
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3712
3712
|
`, Z.MISSING_INTL_API, s);
|
|
3713
|
-
var T = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3713
|
+
var T = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3714
3714
|
S = h.options[T] || h.options.other;
|
|
3715
3715
|
}
|
|
3716
3716
|
if (!S)
|
|
3717
|
-
throw new bt(h.value,
|
|
3718
|
-
a.push.apply(a,
|
|
3717
|
+
throw new bt(h.value, f, Object.keys(h.options), s);
|
|
3718
|
+
a.push.apply(a, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3719
3719
|
continue;
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
3722
|
return ei(a);
|
|
3723
3723
|
}
|
|
3724
3724
|
function ri(e, t) {
|
|
3725
|
-
return t ?
|
|
3726
|
-
return r[n] =
|
|
3725
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3726
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3727
3727
|
}, {})) : e;
|
|
3728
3728
|
}
|
|
3729
3729
|
function ni(e, t) {
|
|
3730
3730
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3731
3731
|
return r[n] = ri(e[n], t[n]), r;
|
|
3732
|
-
},
|
|
3732
|
+
}, y({}, e)) : e;
|
|
3733
3733
|
}
|
|
3734
3734
|
function Ce(e) {
|
|
3735
3735
|
return {
|
|
@@ -3791,12 +3791,12 @@ var oi = (
|
|
|
3791
3791
|
var u = o.formatToParts(l);
|
|
3792
3792
|
if (u.length === 1)
|
|
3793
3793
|
return u[0].value;
|
|
3794
|
-
var h = u.reduce(function(
|
|
3795
|
-
return !
|
|
3794
|
+
var h = u.reduce(function(c, f) {
|
|
3795
|
+
return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3796
3796
|
}, []);
|
|
3797
3797
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3798
3798
|
}, this.formatToParts = function(l) {
|
|
3799
|
-
return
|
|
3799
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3800
3800
|
}, this.resolvedOptions = function() {
|
|
3801
3801
|
var l;
|
|
3802
3802
|
return {
|
|
@@ -3810,7 +3810,7 @@ var oi = (
|
|
|
3810
3810
|
var s = i || {};
|
|
3811
3811
|
s.formatters;
|
|
3812
3812
|
var a = Rr(s, ["formatters"]);
|
|
3813
|
-
this.ast = e.__parse(t,
|
|
3813
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3814
3814
|
} else
|
|
3815
3815
|
this.ast = t;
|
|
3816
3816
|
if (!Array.isArray(this.ast))
|
|
@@ -3947,21 +3947,21 @@ function hi(e) {
|
|
|
3947
3947
|
}
|
|
3948
3948
|
}
|
|
3949
3949
|
function nr(e, ...t) {
|
|
3950
|
-
delete G[e], ae.update((r) => (r[e] =
|
|
3950
|
+
delete G[e], ae.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
|
3951
3951
|
}
|
|
3952
3952
|
q(
|
|
3953
3953
|
[ae],
|
|
3954
3954
|
([e]) => Object.keys(e)
|
|
3955
3955
|
);
|
|
3956
3956
|
ae.subscribe((e) => Je = e);
|
|
3957
|
-
const
|
|
3958
|
-
function
|
|
3959
|
-
|
|
3957
|
+
const de = {};
|
|
3958
|
+
function ci(e, t) {
|
|
3959
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3960
3960
|
}
|
|
3961
3961
|
function ir(e) {
|
|
3962
|
-
return
|
|
3962
|
+
return de[e];
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function fi(e) {
|
|
3965
3965
|
return Ee(e).map((t) => {
|
|
3966
3966
|
const r = ir(t);
|
|
3967
3967
|
return [t, r ? [...r] : []];
|
|
@@ -3975,19 +3975,19 @@ function We(e) {
|
|
|
3975
3975
|
}
|
|
3976
3976
|
);
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function mi(e, t) {
|
|
3979
3979
|
return Promise.all(
|
|
3980
|
-
t.map((n) => (
|
|
3980
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3981
3981
|
).then((n) => nr(e, ...n));
|
|
3982
3982
|
}
|
|
3983
3983
|
const te = {};
|
|
3984
3984
|
function or(e) {
|
|
3985
3985
|
if (!We(e))
|
|
3986
3986
|
return e in te ? te[e] : Promise.resolve();
|
|
3987
|
-
const t =
|
|
3987
|
+
const t = fi(e);
|
|
3988
3988
|
return te[e] = Promise.all(
|
|
3989
3989
|
t.map(
|
|
3990
|
-
([r, n]) =>
|
|
3990
|
+
([r, n]) => mi(r, n)
|
|
3991
3991
|
)
|
|
3992
3992
|
).then(() => {
|
|
3993
3993
|
if (We(e))
|
|
@@ -3995,7 +3995,7 @@ function or(e) {
|
|
|
3995
3995
|
delete te[e];
|
|
3996
3996
|
}), te[e];
|
|
3997
3997
|
}
|
|
3998
|
-
const
|
|
3998
|
+
const pi = {
|
|
3999
3999
|
number: {
|
|
4000
4000
|
scientific: { notation: "scientific" },
|
|
4001
4001
|
engineering: { notation: "engineering" },
|
|
@@ -4024,34 +4024,34 @@ const mi = {
|
|
|
4024
4024
|
timeZoneName: "short"
|
|
4025
4025
|
}
|
|
4026
4026
|
}
|
|
4027
|
-
},
|
|
4027
|
+
}, di = {
|
|
4028
4028
|
fallbackLocale: null,
|
|
4029
4029
|
loadingDelay: 200,
|
|
4030
|
-
formats:
|
|
4030
|
+
formats: pi,
|
|
4031
4031
|
warnOnMissingMessages: !0,
|
|
4032
4032
|
handleMissingMessage: void 0,
|
|
4033
4033
|
ignoreTag: !0
|
|
4034
|
-
}, bi =
|
|
4034
|
+
}, bi = di;
|
|
4035
4035
|
function Q() {
|
|
4036
4036
|
return bi;
|
|
4037
4037
|
}
|
|
4038
4038
|
const Pe = xe(!1);
|
|
4039
|
-
var gi = Object.defineProperty,
|
|
4039
|
+
var gi = Object.defineProperty, vi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
4040
4040
|
for (var r in t || (t = {}))
|
|
4041
|
-
xi.call(t, r) &&
|
|
4041
|
+
xi.call(t, r) && vt(e, r, t[r]);
|
|
4042
4042
|
if (gt)
|
|
4043
4043
|
for (var r of gt(t))
|
|
4044
|
-
_i.call(t, r) &&
|
|
4044
|
+
_i.call(t, r) && vt(e, r, t[r]);
|
|
4045
4045
|
return e;
|
|
4046
|
-
}, Si = (e, t) =>
|
|
4046
|
+
}, Si = (e, t) => vi(e, yi(t));
|
|
4047
4047
|
let ze;
|
|
4048
4048
|
const ge = xe(null);
|
|
4049
|
-
function
|
|
4049
|
+
function yt(e) {
|
|
4050
4050
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4051
4051
|
}
|
|
4052
4052
|
function Ee(e, t = Q().fallbackLocale) {
|
|
4053
|
-
const r =
|
|
4054
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4053
|
+
const r = yt(e);
|
|
4054
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4055
4055
|
}
|
|
4056
4056
|
function U() {
|
|
4057
4057
|
return ze ?? void 0;
|
|
@@ -4082,19 +4082,19 @@ const Ti = (e) => {
|
|
|
4082
4082
|
return i in t ? t[i] : t[i] = e(n);
|
|
4083
4083
|
};
|
|
4084
4084
|
};
|
|
4085
|
-
var wi = Object.defineProperty,
|
|
4085
|
+
var wi = Object.defineProperty, ve = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4086
4086
|
for (var r in t || (t = {}))
|
|
4087
4087
|
sr.call(t, r) && xt(e, r, t[r]);
|
|
4088
|
-
if (
|
|
4089
|
-
for (var r of
|
|
4088
|
+
if (ve)
|
|
4089
|
+
for (var r of ve(t))
|
|
4090
4090
|
ar.call(t, r) && xt(e, r, t[r]);
|
|
4091
4091
|
return e;
|
|
4092
4092
|
}, ee = (e, t) => {
|
|
4093
4093
|
var r = {};
|
|
4094
4094
|
for (var n in e)
|
|
4095
4095
|
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4096
|
-
if (e != null &&
|
|
4097
|
-
for (var n of
|
|
4096
|
+
if (e != null && ve)
|
|
4097
|
+
for (var n of ve(e))
|
|
4098
4098
|
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4099
4099
|
return r;
|
|
4100
4100
|
};
|
|
@@ -4174,16 +4174,16 @@ const oe = (e, t) => {
|
|
|
4174
4174
|
), h;
|
|
4175
4175
|
if (!a)
|
|
4176
4176
|
return h;
|
|
4177
|
-
let
|
|
4177
|
+
let c = h;
|
|
4178
4178
|
try {
|
|
4179
|
-
|
|
4180
|
-
} catch (
|
|
4181
|
-
|
|
4179
|
+
c = Ii(h, l).format(a);
|
|
4180
|
+
} catch (f) {
|
|
4181
|
+
f instanceof Error && console.warn(
|
|
4182
4182
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4183
|
-
|
|
4183
|
+
f.message
|
|
4184
4184
|
);
|
|
4185
4185
|
}
|
|
4186
|
-
return
|
|
4186
|
+
return c;
|
|
4187
4187
|
}, Mi = (e, t) => Oi(t).format(e), Li = (e, t) => Pi(t).format(e), Ri = (e, t) => Ci(t).format(e), $i = (e, t = U()) => tr(e, t), Gi = q([K, ae], () => Ni);
|
|
4188
4188
|
q([K], () => Mi);
|
|
4189
4189
|
q([K], () => Li);
|
|
@@ -4244,7 +4244,7 @@ const Et = {
|
|
|
4244
4244
|
}
|
|
4245
4245
|
};
|
|
4246
4246
|
function Fi(e) {
|
|
4247
|
-
|
|
4247
|
+
vr(e, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4248
4248
|
}
|
|
4249
4249
|
const ji = (e) => ({}), St = (e) => ({});
|
|
4250
4250
|
function ki(e) {
|
|
@@ -4315,14 +4315,14 @@ function wt(e) {
|
|
|
4315
4315
|
};
|
|
4316
4316
|
}
|
|
4317
4317
|
function Vi(e) {
|
|
4318
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4318
|
+
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4319
4319
|
/*$_*/
|
|
4320
4320
|
e[4]("confirm") + ""
|
|
4321
|
-
), d, p,
|
|
4321
|
+
), m, d, p, A;
|
|
4322
4322
|
const O = (
|
|
4323
4323
|
/*#slots*/
|
|
4324
4324
|
e[15].close
|
|
4325
|
-
), C =
|
|
4325
|
+
), C = pr(
|
|
4326
4326
|
O,
|
|
4327
4327
|
e,
|
|
4328
4328
|
/*$$scope*/
|
|
@@ -4341,13 +4341,13 @@ function Vi(e) {
|
|
|
4341
4341
|
t = N("div"), r = N("div"), n = N("span"), S && S.c(), i = ue(), T && T.c(), o = ue(), s = N("div"), a = ne(
|
|
4342
4342
|
/*modaltext*/
|
|
4343
4343
|
e[0]
|
|
4344
|
-
), l = ue(), u = N("div"), _ && _.c(), h = ue(),
|
|
4344
|
+
), l = ue(), u = N("div"), _ && _.c(), h = ue(), c = N("button"), m = ne(f), w(n, "class", "ModalCloseBtn"), w(n, "role", "button"), w(s, "class", "GeneralConfirmationContent"), w(c, "class", "GeneralConfirmButton"), w(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4345
4345
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), w(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4346
4346
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), w(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4347
4347
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4348
4348
|
},
|
|
4349
4349
|
m(x, P) {
|
|
4350
|
-
se(x, t, P), H(t, r), H(r, n), S && S.m(n, null), H(r, i), T && T.m(r, null), H(r, o), H(r, s), H(s, a), H(r, l), H(r, u), _ && _.m(u, null), H(u, h), H(u,
|
|
4350
|
+
se(x, t, P), H(t, r), H(r, n), S && S.m(n, null), H(r, i), T && T.m(r, null), H(r, o), H(r, s), H(s, a), H(r, l), H(r, u), _ && _.m(u, null), H(u, h), H(u, c), H(c, m), e[18](t), d = !0, p || (A = [
|
|
4351
4351
|
Oe(
|
|
4352
4352
|
n,
|
|
4353
4353
|
"click",
|
|
@@ -4355,22 +4355,22 @@ function Vi(e) {
|
|
|
4355
4355
|
e[6]
|
|
4356
4356
|
),
|
|
4357
4357
|
Oe(
|
|
4358
|
-
|
|
4358
|
+
c,
|
|
4359
4359
|
"click",
|
|
4360
4360
|
/*click_handler_1*/
|
|
4361
4361
|
e[17]
|
|
4362
4362
|
)
|
|
4363
|
-
],
|
|
4363
|
+
], p = !0);
|
|
4364
4364
|
},
|
|
4365
4365
|
p(x, [P]) {
|
|
4366
|
-
C && C.p && (!
|
|
4366
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4367
4367
|
16384) && br(
|
|
4368
4368
|
C,
|
|
4369
4369
|
O,
|
|
4370
4370
|
x,
|
|
4371
4371
|
/*$$scope*/
|
|
4372
4372
|
x[14],
|
|
4373
|
-
|
|
4373
|
+
d ? dr(
|
|
4374
4374
|
O,
|
|
4375
4375
|
/*$$scope*/
|
|
4376
4376
|
x[14],
|
|
@@ -4382,50 +4382,50 @@ function Vi(e) {
|
|
|
4382
4382
|
),
|
|
4383
4383
|
St
|
|
4384
4384
|
), /*modaltitle*/
|
|
4385
|
-
x[1] ? T ? T.p(x, P) : (T = Tt(x), T.c(), T.m(r, o)) : T && (T.d(1), T = null), (!
|
|
4385
|
+
x[1] ? T ? T.p(x, P) : (T = Tt(x), T.c(), T.m(r, o)) : T && (T.d(1), T = null), (!d || P & /*modaltext*/
|
|
4386
4386
|
1) && be(
|
|
4387
4387
|
a,
|
|
4388
4388
|
/*modaltext*/
|
|
4389
4389
|
x[0]
|
|
4390
4390
|
), /*hascancelbutton*/
|
|
4391
|
-
x[2] ? _ ? _.p(x, P) : (_ = wt(x), _.c(), _.m(u, h)) : _ && (_.d(1), _ = null), (!
|
|
4392
|
-
16) &&
|
|
4393
|
-
x[4]("confirm") + "") && be(
|
|
4391
|
+
x[2] ? _ ? _.p(x, P) : (_ = wt(x), _.c(), _.m(u, h)) : _ && (_.d(1), _ = null), (!d || P & /*$_*/
|
|
4392
|
+
16) && f !== (f = /*$_*/
|
|
4393
|
+
x[4]("confirm") + "") && be(m, f);
|
|
4394
4394
|
},
|
|
4395
4395
|
i(x) {
|
|
4396
|
-
|
|
4396
|
+
d || (Pt(S, x), d = !0);
|
|
4397
4397
|
},
|
|
4398
4398
|
o(x) {
|
|
4399
|
-
Ar(S, x),
|
|
4399
|
+
Ar(S, x), d = !1;
|
|
4400
4400
|
},
|
|
4401
4401
|
d(x) {
|
|
4402
|
-
x && Y(t), S && S.d(x), T && T.d(), _ && _.d(), e[18](null),
|
|
4402
|
+
x && Y(t), S && S.d(x), T && T.d(), _ && _.d(), e[18](null), p = !1, J(A);
|
|
4403
4403
|
}
|
|
4404
4404
|
};
|
|
4405
4405
|
}
|
|
4406
4406
|
function Xi(e, t, r) {
|
|
4407
4407
|
let n;
|
|
4408
|
-
|
|
4409
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang:
|
|
4408
|
+
mr(e, Gi, (b) => r(4, n = b));
|
|
4409
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, p, A = window.navigator.userAgent, O = Ui(A) !== "PC";
|
|
4410
4410
|
const C = () => {
|
|
4411
4411
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4412
4412
|
}, S = (b) => {
|
|
4413
4413
|
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), C();
|
|
4414
4414
|
}, T = () => {
|
|
4415
4415
|
let b = document.createElement("style");
|
|
4416
|
-
b.innerHTML =
|
|
4416
|
+
b.innerHTML = f, p.appendChild(b);
|
|
4417
4417
|
}, _ = () => {
|
|
4418
|
-
let b = new URL(
|
|
4418
|
+
let b = new URL(m), L = document.createElement("style");
|
|
4419
4419
|
fetch(b.href).then((D) => D.text()).then((D) => {
|
|
4420
4420
|
L.innerHTML = D, setTimeout(
|
|
4421
4421
|
() => {
|
|
4422
|
-
|
|
4422
|
+
p.appendChild(L);
|
|
4423
4423
|
},
|
|
4424
4424
|
1
|
|
4425
4425
|
);
|
|
4426
4426
|
});
|
|
4427
4427
|
}, x = () => {
|
|
4428
|
-
fetch(
|
|
4428
|
+
fetch(d).then((L) => L.json()).then((L) => {
|
|
4429
4429
|
Object.keys(L).forEach((D) => {
|
|
4430
4430
|
_t(D, L[D]);
|
|
4431
4431
|
});
|
|
@@ -4437,36 +4437,36 @@ function Xi(e, t, r) {
|
|
|
4437
4437
|
_t(b, Et[b]);
|
|
4438
4438
|
});
|
|
4439
4439
|
const P = () => {
|
|
4440
|
-
Di(
|
|
4440
|
+
Di(c);
|
|
4441
4441
|
}, ur = () => S("cancel"), lr = () => S("confirm");
|
|
4442
4442
|
function hr(b) {
|
|
4443
4443
|
Ie[b ? "unshift" : "push"](() => {
|
|
4444
|
-
|
|
4444
|
+
p = b, r(3, p);
|
|
4445
4445
|
});
|
|
4446
4446
|
}
|
|
4447
4447
|
return e.$$set = (b) => {
|
|
4448
|
-
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10,
|
|
4448
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, d = b.translationurl), "$$scope" in b && r(14, o = b.$$scope);
|
|
4449
4449
|
}, e.$$.update = () => {
|
|
4450
4450
|
e.$$.dirty & /*modaltext, lang*/
|
|
4451
|
-
1025 && s &&
|
|
4452
|
-
2056 &&
|
|
4453
|
-
4104 &&
|
|
4454
|
-
8192 &&
|
|
4451
|
+
1025 && s && c && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4452
|
+
2056 && f && p && T(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4453
|
+
4104 && m && p && _(), e.$$.dirty & /*translationurl*/
|
|
4454
|
+
8192 && d && x();
|
|
4455
4455
|
}, [
|
|
4456
4456
|
s,
|
|
4457
4457
|
a,
|
|
4458
4458
|
l,
|
|
4459
|
-
|
|
4459
|
+
p,
|
|
4460
4460
|
n,
|
|
4461
4461
|
O,
|
|
4462
4462
|
C,
|
|
4463
4463
|
S,
|
|
4464
4464
|
u,
|
|
4465
4465
|
h,
|
|
4466
|
-
f,
|
|
4467
4466
|
c,
|
|
4467
|
+
f,
|
|
4468
|
+
m,
|
|
4468
4469
|
d,
|
|
4469
|
-
p,
|
|
4470
4470
|
o,
|
|
4471
4471
|
i,
|
|
4472
4472
|
ur,
|