@everymatrix/player-account-general-confirmation-modal 1.86.12 → 1.86.21
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-DdiElG_D.cjs → PlayerAccountGeneralConfirmationModal-8vXY2Rcz.cjs} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-CM_Q0GCh.js → PlayerAccountGeneralConfirmationModal-BKAvURGH.js} +502 -486
- package/components/{PlayerAccountGeneralConfirmationModal-DczRmVMx.js → PlayerAccountGeneralConfirmationModal-JFSj3kpu.js} +532 -516
- 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 br(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -23,7 +23,7 @@ function qe(e) {
|
|
|
23
23
|
function It(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function gr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
29
|
function Nt(e, ...t) {
|
|
@@ -35,19 +35,19 @@ function Nt(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function vr(e, t, r) {
|
|
39
39
|
e.$$.on_destroy.push(Nt(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
43
|
const i = Mt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function Mt(e, t, r, n) {
|
|
48
|
-
return e[1] && n ?
|
|
48
|
+
return e[1] && n ? br(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function _r(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function yr(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function xr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
67
|
const s = Mt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Er(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -77,17 +77,17 @@ function xr(e) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function C(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function Sr(e, t, r) {
|
|
84
|
+
const n = wr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = I("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, Tr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function wr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,8 +97,8 @@ function Sr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function Tr(e, t) {
|
|
101
|
+
return C(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
@@ -128,14 +128,14 @@ function Ne(e, t, r, n) {
|
|
|
128
128
|
function T(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Hr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
134
|
function Ke(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ar(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -148,20 +148,20 @@ let ee;
|
|
|
148
148
|
function K(e) {
|
|
149
149
|
ee = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Br() {
|
|
152
152
|
if (!ee)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
154
|
return ee;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Cr(e) {
|
|
157
|
+
Br().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
159
|
const F = [], Me = [];
|
|
160
160
|
let j = [];
|
|
161
|
-
const ot = [],
|
|
161
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
162
162
|
let Le = !1;
|
|
163
|
-
function
|
|
164
|
-
Le || (Le = !0,
|
|
163
|
+
function Or() {
|
|
164
|
+
Le || (Le = !0, Pr.then(O));
|
|
165
165
|
}
|
|
166
166
|
function Re(e) {
|
|
167
167
|
j.push(e);
|
|
@@ -176,7 +176,7 @@ function O() {
|
|
|
176
176
|
try {
|
|
177
177
|
for (; U < F.length; ) {
|
|
178
178
|
const t = F[U];
|
|
179
|
-
U++, K(t),
|
|
179
|
+
U++, K(t), Ir(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw F.length = 0, U = 0, t;
|
|
@@ -193,46 +193,46 @@ function O() {
|
|
|
193
193
|
ot.pop()();
|
|
194
194
|
Le = !1, Te.clear(), K(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ir(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
198
|
e.update(), z(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Nr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
206
206
|
}
|
|
207
207
|
const he = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
208
|
+
let Mr;
|
|
209
209
|
function Lt(e, t) {
|
|
210
210
|
e && e.i && (he.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Lr(e, t, r, n) {
|
|
213
213
|
if (e && e.o) {
|
|
214
214
|
if (he.has(e))
|
|
215
215
|
return;
|
|
216
|
-
he.add(e),
|
|
216
|
+
he.add(e), Mr.c.push(() => {
|
|
217
217
|
he.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Rr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
223
|
n && n.m(t, r), Re(() => {
|
|
224
224
|
const o = e.$$.on_mount.map(Ot).filter(qe);
|
|
225
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
226
226
|
}), i.forEach(Re);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function $r(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Nr(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
232
|
+
function Gr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (F.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
236
|
const l = ee;
|
|
237
237
|
K(e);
|
|
238
238
|
const u = e.$$ = {
|
|
@@ -258,16 +258,16 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
258
258
|
};
|
|
259
259
|
s && s(u.root);
|
|
260
260
|
let h = !1;
|
|
261
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
262
|
-
const
|
|
263
|
-
return u.ctx && i(u.ctx[
|
|
261
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
262
|
+
const y = m.length ? m[0] : c;
|
|
263
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h && Gr(e, f)), c;
|
|
264
264
|
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const
|
|
267
|
-
u.fragment && u.fragment.l(
|
|
266
|
+
const f = Hr(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro && Lt(e.$$.fragment),
|
|
270
|
+
t.intro && Lt(e.$$.fragment), Rr(e, t.target, t.anchor), O();
|
|
271
271
|
}
|
|
272
272
|
K(l);
|
|
273
273
|
}
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Ar(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
@@ -418,7 +418,7 @@ function ce(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Dr(e, t, r, n, i, o) {
|
|
422
422
|
let s = class extends Rt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -447,7 +447,7 @@ function Ur(e, t, r, n, i, o) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Fr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Dr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
$r(this, 1), this.$destroy = M;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -488,11 +488,11 @@ class Dr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const jr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -602,8 +602,8 @@ var ye = function() {
|
|
|
602
602
|
var u = l.value;
|
|
603
603
|
u.remove(this);
|
|
604
604
|
}
|
|
605
|
-
} catch (
|
|
606
|
-
t = { error:
|
|
605
|
+
} catch (b) {
|
|
606
|
+
t = { error: b };
|
|
607
607
|
} finally {
|
|
608
608
|
try {
|
|
609
609
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -618,26 +618,26 @@ var ye = function() {
|
|
|
618
618
|
if (L(h))
|
|
619
619
|
try {
|
|
620
620
|
h();
|
|
621
|
-
} catch (
|
|
622
|
-
o =
|
|
621
|
+
} catch (b) {
|
|
622
|
+
o = b instanceof He ? b.errors : [b];
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
if (
|
|
624
|
+
var f = this._finalizers;
|
|
625
|
+
if (f) {
|
|
626
626
|
this._finalizers = null;
|
|
627
627
|
try {
|
|
628
|
-
for (var
|
|
629
|
-
var
|
|
628
|
+
for (var c = Ge(f), m = c.next(); !m.done; m = c.next()) {
|
|
629
|
+
var y = m.value;
|
|
630
630
|
try {
|
|
631
|
-
st(
|
|
632
|
-
} catch (
|
|
633
|
-
o = o ?? [],
|
|
631
|
+
st(y);
|
|
632
|
+
} catch (b) {
|
|
633
|
+
o = o ?? [], b instanceof He ? o = De(De([], Ue(o)), Ue(b.errors)) : o.push(b);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
} catch (
|
|
637
|
-
n = { error:
|
|
636
|
+
} catch (b) {
|
|
637
|
+
n = { error: b };
|
|
638
638
|
} finally {
|
|
639
639
|
try {
|
|
640
|
-
m && !m.done && (i =
|
|
640
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
641
641
|
} finally {
|
|
642
642
|
if (n)
|
|
643
643
|
throw n.error;
|
|
@@ -683,9 +683,9 @@ function Ut(e) {
|
|
|
683
683
|
function st(e) {
|
|
684
684
|
L(e) ? e() : e.unsubscribe();
|
|
685
685
|
}
|
|
686
|
-
var
|
|
686
|
+
var kr = {
|
|
687
687
|
Promise: void 0
|
|
688
|
-
},
|
|
688
|
+
}, Vr = {
|
|
689
689
|
setTimeout: function(e, t) {
|
|
690
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
691
691
|
r[n - 2] = arguments[n];
|
|
@@ -696,8 +696,8 @@ var jr = {
|
|
|
696
696
|
},
|
|
697
697
|
delegate: void 0
|
|
698
698
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
699
|
+
function Xr(e) {
|
|
700
|
+
Vr.setTimeout(function() {
|
|
701
701
|
throw e;
|
|
702
702
|
});
|
|
703
703
|
}
|
|
@@ -710,7 +710,7 @@ var Dt = function(e) {
|
|
|
710
710
|
ie(t, e);
|
|
711
711
|
function t(r) {
|
|
712
712
|
var n = e.call(this) || this;
|
|
713
|
-
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination =
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Zr, n;
|
|
714
714
|
}
|
|
715
715
|
return t.create = function(r, n, i) {
|
|
716
716
|
return new je(r, n, i);
|
|
@@ -737,7 +737,7 @@ var Dt = function(e) {
|
|
|
737
737
|
this.unsubscribe();
|
|
738
738
|
}
|
|
739
739
|
}, t;
|
|
740
|
-
}(ye),
|
|
740
|
+
}(ye), Wr = function() {
|
|
741
741
|
function e(t) {
|
|
742
742
|
this.partialObserver = t;
|
|
743
743
|
}
|
|
@@ -776,29 +776,29 @@ var Dt = function(e) {
|
|
|
776
776
|
next: r ?? void 0,
|
|
777
777
|
error: n ?? void 0,
|
|
778
778
|
complete: i ?? void 0
|
|
779
|
-
} : s = r, o.destination = new
|
|
779
|
+
} : s = r, o.destination = new Wr(s), o;
|
|
780
780
|
}
|
|
781
781
|
return t;
|
|
782
782
|
}(Dt);
|
|
783
783
|
function ue(e) {
|
|
784
|
-
|
|
784
|
+
Xr(e);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function zr(e) {
|
|
787
787
|
throw e;
|
|
788
788
|
}
|
|
789
|
-
var
|
|
789
|
+
var Zr = {
|
|
790
790
|
closed: !0,
|
|
791
791
|
next: at,
|
|
792
|
-
error:
|
|
792
|
+
error: zr,
|
|
793
793
|
complete: at
|
|
794
|
-
},
|
|
794
|
+
}, Qr = function() {
|
|
795
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
796
796
|
}();
|
|
797
|
-
function
|
|
797
|
+
function Jr(e) {
|
|
798
798
|
return e;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.length === 0 ?
|
|
800
|
+
function Yr(e) {
|
|
801
|
+
return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
|
|
802
802
|
return e.reduce(function(n, i) {
|
|
803
803
|
return i(n);
|
|
804
804
|
}, r);
|
|
@@ -812,7 +812,7 @@ var ut = function() {
|
|
|
812
812
|
var r = new e();
|
|
813
813
|
return r.source = this, r.operator = t, r;
|
|
814
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
815
|
-
var i = this, o =
|
|
815
|
+
var i = this, o = Kr(t) ? t : new je(t, r, n);
|
|
816
816
|
return fe(function() {
|
|
817
817
|
var s = i, a = s.operator, l = s.source;
|
|
818
818
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -842,12 +842,12 @@ var ut = function() {
|
|
|
842
842
|
}, e.prototype._subscribe = function(t) {
|
|
843
843
|
var r;
|
|
844
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
845
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Qr] = function() {
|
|
846
846
|
return this;
|
|
847
847
|
}, e.prototype.pipe = function() {
|
|
848
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
849
849
|
t[r] = arguments[r];
|
|
850
|
-
return
|
|
850
|
+
return Yr(t)(this);
|
|
851
851
|
}, e.prototype.toPromise = function(t) {
|
|
852
852
|
var r = this;
|
|
853
853
|
return t = lt(t), new t(function(n, i) {
|
|
@@ -866,15 +866,15 @@ var ut = function() {
|
|
|
866
866
|
}();
|
|
867
867
|
function lt(e) {
|
|
868
868
|
var t;
|
|
869
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function qr(e) {
|
|
872
872
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
return e && e instanceof Dt ||
|
|
874
|
+
function Kr(e) {
|
|
875
|
+
return e && e instanceof Dt || qr(e) && Ut(e);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var en = $t(function(e) {
|
|
878
878
|
return function() {
|
|
879
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
880
|
};
|
|
@@ -889,7 +889,7 @@ var Kr = $t(function(e) {
|
|
|
889
889
|
return n.operator = r, n;
|
|
890
890
|
}, t.prototype._throwIfClosed = function() {
|
|
891
891
|
if (this.closed)
|
|
892
|
-
throw new
|
|
892
|
+
throw new en();
|
|
893
893
|
}, t.prototype.next = function(r) {
|
|
894
894
|
var n = this;
|
|
895
895
|
fe(function() {
|
|
@@ -982,7 +982,7 @@ var Kr = $t(function(e) {
|
|
|
982
982
|
return (jt.delegate || Date).now();
|
|
983
983
|
},
|
|
984
984
|
delegate: void 0
|
|
985
|
-
},
|
|
985
|
+
}, tn = function(e) {
|
|
986
986
|
ie(t, e);
|
|
987
987
|
function t(r, n, i) {
|
|
988
988
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
@@ -1006,14 +1006,14 @@ var Kr = $t(function(e) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
}, t;
|
|
1008
1008
|
}(Ft);
|
|
1009
|
-
const ct = [], ft = {},
|
|
1009
|
+
const ct = [], ft = {}, rn = (e, t = 0) => {
|
|
1010
1010
|
if (ct.indexOf(e) == -1) {
|
|
1011
|
-
const r = new
|
|
1011
|
+
const r = new tn(t);
|
|
1012
1012
|
ft[e] = r, ct.push(e);
|
|
1013
1013
|
}
|
|
1014
1014
|
return ft[e];
|
|
1015
1015
|
}, D = [];
|
|
1016
|
-
function
|
|
1016
|
+
function nn(e, t) {
|
|
1017
1017
|
return {
|
|
1018
1018
|
subscribe: _e(e, t).subscribe
|
|
1019
1019
|
};
|
|
@@ -1049,73 +1049,73 @@ function Q(e, t, r) {
|
|
|
1049
1049
|
if (!i.every(Boolean))
|
|
1050
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1051
1051
|
const o = t.length < 2;
|
|
1052
|
-
return
|
|
1052
|
+
return nn(r, (s, a) => {
|
|
1053
1053
|
let l = !1;
|
|
1054
1054
|
const u = [];
|
|
1055
|
-
let h = 0,
|
|
1056
|
-
const
|
|
1055
|
+
let h = 0, f = M;
|
|
1056
|
+
const c = () => {
|
|
1057
1057
|
if (h)
|
|
1058
1058
|
return;
|
|
1059
|
-
|
|
1060
|
-
const
|
|
1061
|
-
o ? s(
|
|
1059
|
+
f();
|
|
1060
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(y) : f = qe(y) ? y : M;
|
|
1062
1062
|
}, m = i.map(
|
|
1063
|
-
(
|
|
1064
|
-
|
|
1065
|
-
(
|
|
1066
|
-
u[
|
|
1063
|
+
(y, b) => Nt(
|
|
1064
|
+
y,
|
|
1065
|
+
(H) => {
|
|
1066
|
+
u[b] = H, h &= ~(1 << b), l && c();
|
|
1067
1067
|
},
|
|
1068
1068
|
() => {
|
|
1069
|
-
h |= 1 <<
|
|
1069
|
+
h |= 1 << b;
|
|
1070
1070
|
}
|
|
1071
1071
|
)
|
|
1072
1072
|
);
|
|
1073
|
-
return l = !0,
|
|
1074
|
-
z(m),
|
|
1073
|
+
return l = !0, c(), function() {
|
|
1074
|
+
z(m), f(), l = !1;
|
|
1075
1075
|
};
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function on(e) {
|
|
1079
1079
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1081
|
+
var sn = function(t) {
|
|
1082
|
+
return an(t) && !un(t);
|
|
1083
1083
|
};
|
|
1084
|
-
function
|
|
1084
|
+
function an(e) {
|
|
1085
1085
|
return !!e && typeof e == "object";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function un(e) {
|
|
1088
1088
|
var t = Object.prototype.toString.call(e);
|
|
1089
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1090
|
-
}
|
|
1091
|
-
var un = typeof Symbol == "function" && Symbol.for, ln = un ? Symbol.for("react.element") : 60103;
|
|
1092
|
-
function hn(e) {
|
|
1093
|
-
return e.$$typeof === ln;
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || cn(e);
|
|
1094
1090
|
}
|
|
1091
|
+
var ln = typeof Symbol == "function" && Symbol.for, hn = ln ? Symbol.for("react.element") : 60103;
|
|
1095
1092
|
function cn(e) {
|
|
1093
|
+
return e.$$typeof === hn;
|
|
1094
|
+
}
|
|
1095
|
+
function fn(e) {
|
|
1096
1096
|
return Array.isArray(e) ? [] : {};
|
|
1097
1097
|
}
|
|
1098
1098
|
function te(e, t) {
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(fn(e), e, t) : e;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function mn(e, t, r) {
|
|
1102
1102
|
return e.concat(t).map(function(n) {
|
|
1103
1103
|
return te(n, r);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function pn(e, t) {
|
|
1107
1107
|
if (!t.customMerge)
|
|
1108
1108
|
return k;
|
|
1109
1109
|
var r = t.customMerge(e);
|
|
1110
1110
|
return typeof r == "function" ? r : k;
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function dn(e) {
|
|
1113
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1114
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1115
1115
|
}) : [];
|
|
1116
1116
|
}
|
|
1117
1117
|
function mt(e) {
|
|
1118
|
-
return Object.keys(e).concat(
|
|
1118
|
+
return Object.keys(e).concat(dn(e));
|
|
1119
1119
|
}
|
|
1120
1120
|
function kt(e, t) {
|
|
1121
1121
|
try {
|
|
@@ -1124,21 +1124,21 @@ function kt(e, t) {
|
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function bn(e, t) {
|
|
1128
1128
|
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function gn(e, t, r) {
|
|
1131
1131
|
var n = {};
|
|
1132
1132
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1133
1133
|
n[i] = te(e[i], r);
|
|
1134
1134
|
}), mt(t).forEach(function(i) {
|
|
1135
|
-
|
|
1135
|
+
bn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1136
1136
|
}), n;
|
|
1137
1137
|
}
|
|
1138
1138
|
function k(e, t, r) {
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = te;
|
|
1140
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1141
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : te(t, r);
|
|
1142
1142
|
}
|
|
1143
1143
|
k.all = function(t, r) {
|
|
1144
1144
|
if (!Array.isArray(t))
|
|
@@ -1147,8 +1147,8 @@ k.all = function(t, r) {
|
|
|
1147
1147
|
return k(n, i, r);
|
|
1148
1148
|
}, {});
|
|
1149
1149
|
};
|
|
1150
|
-
var
|
|
1151
|
-
const
|
|
1150
|
+
var vn = k, yn = vn;
|
|
1151
|
+
const _n = /* @__PURE__ */ on(yn);
|
|
1152
1152
|
var ke = function(e, t) {
|
|
1153
1153
|
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1154
1154
|
r.__proto__ = n;
|
|
@@ -1176,7 +1176,7 @@ var N = function() {
|
|
|
1176
1176
|
return t;
|
|
1177
1177
|
}, N.apply(this, arguments);
|
|
1178
1178
|
};
|
|
1179
|
-
function
|
|
1179
|
+
function xn(e, t) {
|
|
1180
1180
|
var r = {};
|
|
1181
1181
|
for (var n in e)
|
|
1182
1182
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1192,17 +1192,17 @@ function Ae(e, t, r) {
|
|
|
1192
1192
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1193
1193
|
}
|
|
1194
1194
|
function Be(e, t) {
|
|
1195
|
-
var r = t && t.cache ? t.cache :
|
|
1195
|
+
var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : wn;
|
|
1196
1196
|
return i(e, {
|
|
1197
1197
|
cache: r,
|
|
1198
1198
|
serializer: n
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function En(e) {
|
|
1202
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
var i =
|
|
1204
|
+
function Sn(e, t, r, n) {
|
|
1205
|
+
var i = En(n) ? n : r(n), o = t.get(i);
|
|
1206
1206
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1207
1207
|
}
|
|
1208
1208
|
function Vt(e, t, r) {
|
|
@@ -1212,16 +1212,16 @@ function Vt(e, t, r) {
|
|
|
1212
1212
|
function Xt(e, t, r, n, i) {
|
|
1213
1213
|
return r.bind(t, e, n, i);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var r = e.length === 1 ?
|
|
1215
|
+
function wn(e, t) {
|
|
1216
|
+
var r = e.length === 1 ? Sn : Vt;
|
|
1217
1217
|
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Tn(e, t) {
|
|
1220
1220
|
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1222
|
+
var Hn = function() {
|
|
1223
1223
|
return JSON.stringify(arguments);
|
|
1224
|
-
},
|
|
1224
|
+
}, An = (
|
|
1225
1225
|
/** @class */
|
|
1226
1226
|
function() {
|
|
1227
1227
|
function e() {
|
|
@@ -1233,12 +1233,12 @@ var Tn = function() {
|
|
|
1233
1233
|
this.cache[t] = r;
|
|
1234
1234
|
}, e;
|
|
1235
1235
|
}()
|
|
1236
|
-
),
|
|
1236
|
+
), Bn = {
|
|
1237
1237
|
create: function() {
|
|
1238
|
-
return new
|
|
1238
|
+
return new An();
|
|
1239
1239
|
}
|
|
1240
1240
|
}, Ce = {
|
|
1241
|
-
variadic:
|
|
1241
|
+
variadic: Tn
|
|
1242
1242
|
}, de = function() {
|
|
1243
1243
|
return de = Object.assign || function(t) {
|
|
1244
1244
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -1249,44 +1249,44 @@ var Tn = function() {
|
|
|
1249
1249
|
return t;
|
|
1250
1250
|
}, de.apply(this, arguments);
|
|
1251
1251
|
};
|
|
1252
|
-
var
|
|
1252
|
+
var d;
|
|
1253
1253
|
(function(e) {
|
|
1254
1254
|
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";
|
|
1255
|
-
})(
|
|
1256
|
-
var
|
|
1255
|
+
})(d || (d = {}));
|
|
1256
|
+
var x;
|
|
1257
1257
|
(function(e) {
|
|
1258
1258
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1259
|
-
})(
|
|
1259
|
+
})(x || (x = {}));
|
|
1260
1260
|
var V;
|
|
1261
1261
|
(function(e) {
|
|
1262
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1263
1263
|
})(V || (V = {}));
|
|
1264
1264
|
function pt(e) {
|
|
1265
|
-
return e.type ===
|
|
1265
|
+
return e.type === x.literal;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return e.type ===
|
|
1267
|
+
function Cn(e) {
|
|
1268
|
+
return e.type === x.argument;
|
|
1269
1269
|
}
|
|
1270
1270
|
function Wt(e) {
|
|
1271
|
-
return e.type ===
|
|
1271
|
+
return e.type === x.number;
|
|
1272
1272
|
}
|
|
1273
1273
|
function zt(e) {
|
|
1274
|
-
return e.type ===
|
|
1274
|
+
return e.type === x.date;
|
|
1275
1275
|
}
|
|
1276
1276
|
function Zt(e) {
|
|
1277
|
-
return e.type ===
|
|
1277
|
+
return e.type === x.time;
|
|
1278
1278
|
}
|
|
1279
1279
|
function Qt(e) {
|
|
1280
|
-
return e.type ===
|
|
1280
|
+
return e.type === x.select;
|
|
1281
1281
|
}
|
|
1282
1282
|
function Jt(e) {
|
|
1283
|
-
return e.type ===
|
|
1283
|
+
return e.type === x.plural;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return e.type ===
|
|
1285
|
+
function Pn(e) {
|
|
1286
|
+
return e.type === x.pound;
|
|
1287
1287
|
}
|
|
1288
1288
|
function Yt(e) {
|
|
1289
|
-
return e.type ===
|
|
1289
|
+
return e.type === x.tag;
|
|
1290
1290
|
}
|
|
1291
1291
|
function qt(e) {
|
|
1292
1292
|
return !!(e && typeof e == "object" && e.type === V.number);
|
|
@@ -1294,10 +1294,10 @@ function qt(e) {
|
|
|
1294
1294
|
function Ve(e) {
|
|
1295
1295
|
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1296
1296
|
}
|
|
1297
|
-
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1298
|
-
function
|
|
1297
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1298
|
+
function In(e) {
|
|
1299
1299
|
var t = {};
|
|
1300
|
-
return e.replace(
|
|
1300
|
+
return e.replace(On, function(r) {
|
|
1301
1301
|
var n = r.length;
|
|
1302
1302
|
switch (r[0]) {
|
|
1303
1303
|
case "G":
|
|
@@ -1396,29 +1396,29 @@ var w = function() {
|
|
|
1396
1396
|
return t;
|
|
1397
1397
|
}, w.apply(this, arguments);
|
|
1398
1398
|
};
|
|
1399
|
-
var
|
|
1400
|
-
function
|
|
1399
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
+
function Mn(e) {
|
|
1401
1401
|
if (e.length === 0)
|
|
1402
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1403
|
-
for (var t = e.split(
|
|
1404
|
-
return
|
|
1403
|
+
for (var t = e.split(Nn).filter(function(c) {
|
|
1404
|
+
return c.length > 0;
|
|
1405
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1406
1406
|
var o = i[n], s = o.split("/");
|
|
1407
1407
|
if (s.length === 0)
|
|
1408
1408
|
throw new Error("Invalid number skeleton");
|
|
1409
1409
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1410
|
-
var
|
|
1411
|
-
if (
|
|
1410
|
+
var f = h[u];
|
|
1411
|
+
if (f.length === 0)
|
|
1412
1412
|
throw new Error("Invalid number skeleton");
|
|
1413
1413
|
}
|
|
1414
1414
|
r.push({ stem: a, options: l });
|
|
1415
1415
|
}
|
|
1416
1416
|
return r;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Ln(e) {
|
|
1419
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1420
1420
|
}
|
|
1421
|
-
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1421
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Rn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1422
1422
|
function bt(e) {
|
|
1423
1423
|
var t = {};
|
|
1424
1424
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
@@ -1465,7 +1465,7 @@ function rr(e) {
|
|
|
1465
1465
|
};
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function $n(e) {
|
|
1469
1469
|
var t;
|
|
1470
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1471
1471
|
notation: "engineering"
|
|
@@ -1483,7 +1483,7 @@ function gt(e) {
|
|
|
1483
1483
|
var t = {}, r = rr(e);
|
|
1484
1484
|
return r || t;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Gn(e) {
|
|
1487
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1488
1488
|
var i = n[r];
|
|
1489
1489
|
switch (i.stem) {
|
|
@@ -1507,7 +1507,7 @@ function $n(e) {
|
|
|
1507
1507
|
continue;
|
|
1508
1508
|
case "measure-unit":
|
|
1509
1509
|
case "unit":
|
|
1510
|
-
t.style = "unit", t.unit =
|
|
1510
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1511
1511
|
continue;
|
|
1512
1512
|
case "compact-short":
|
|
1513
1513
|
case "K":
|
|
@@ -1569,11 +1569,11 @@ function $n(e) {
|
|
|
1569
1569
|
case "integer-width":
|
|
1570
1570
|
if (i.options.length > 1)
|
|
1571
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1572
|
-
i.options[0].replace(
|
|
1572
|
+
i.options[0].replace(Rn, function(l, u, h, f, c, m) {
|
|
1573
1573
|
if (u)
|
|
1574
1574
|
t.minimumIntegerDigits = h.length;
|
|
1575
1575
|
else {
|
|
1576
|
-
if (
|
|
1576
|
+
if (f && c)
|
|
1577
1577
|
throw new Error("We currently do not support maximum integer digits");
|
|
1578
1578
|
if (m)
|
|
1579
1579
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1589,8 +1589,8 @@ function $n(e) {
|
|
|
1589
1589
|
if (dt.test(i.stem)) {
|
|
1590
1590
|
if (i.options.length > 1)
|
|
1591
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1592
|
-
i.stem.replace(dt, function(l, u, h,
|
|
1593
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1592
|
+
i.stem.replace(dt, function(l, u, h, f, c, m) {
|
|
1593
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1594
1594
|
});
|
|
1595
1595
|
var o = i.options[0];
|
|
1596
1596
|
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), bt(o)));
|
|
@@ -1602,7 +1602,7 @@ function $n(e) {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
var s = rr(i.stem);
|
|
1604
1604
|
s && (t = w(w({}, t), s));
|
|
1605
|
-
var a =
|
|
1605
|
+
var a = $n(i.stem);
|
|
1606
1606
|
a && (t = w(w({}, t), a));
|
|
1607
1607
|
}
|
|
1608
1608
|
return t;
|
|
@@ -3022,13 +3022,13 @@ var le = {
|
|
|
3022
3022
|
"h"
|
|
3023
3023
|
]
|
|
3024
3024
|
};
|
|
3025
|
-
function
|
|
3025
|
+
function Un(e, t) {
|
|
3026
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3027
3027
|
var i = e.charAt(n);
|
|
3028
3028
|
if (i === "j") {
|
|
3029
3029
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3030
3030
|
o++, n++;
|
|
3031
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3031
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
|
|
3032
3032
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3033
3033
|
r += l;
|
|
3034
3034
|
for (; s-- > 0; )
|
|
@@ -3038,7 +3038,7 @@ function Gn(e, t) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
return r;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Dn(e) {
|
|
3042
3042
|
var t = e.hourCycle;
|
|
3043
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3044
3044
|
e.hourCycles && // @ts-ignore
|
|
@@ -3060,20 +3060,20 @@ function Un(e) {
|
|
|
3060
3060
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3061
3061
|
return i[0];
|
|
3062
3062
|
}
|
|
3063
|
-
var Pe,
|
|
3063
|
+
var Pe, Fn = new RegExp("^".concat(Kt.source, "*")), jn = new RegExp("".concat(Kt.source, "*$"));
|
|
3064
3064
|
function g(e, t) {
|
|
3065
3065
|
return { start: e, end: t };
|
|
3066
3066
|
}
|
|
3067
|
-
var
|
|
3067
|
+
var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
|
|
3068
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3069
3069
|
}, Xe = !0;
|
|
3070
3070
|
try {
|
|
3071
|
-
var
|
|
3072
|
-
Xe = ((Pe =
|
|
3071
|
+
var Yn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
+
Xe = ((Pe = Yn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3073
3073
|
} catch {
|
|
3074
3074
|
Xe = !1;
|
|
3075
3075
|
}
|
|
3076
|
-
var vt =
|
|
3076
|
+
var vt = kn ? (
|
|
3077
3077
|
// Native
|
|
3078
3078
|
function(t, r, n) {
|
|
3079
3079
|
return t.startsWith(r, n);
|
|
@@ -3083,7 +3083,7 @@ var vt = jn ? (
|
|
|
3083
3083
|
function(t, r, n) {
|
|
3084
3084
|
return t.slice(n, n + r.length) === r;
|
|
3085
3085
|
}
|
|
3086
|
-
), We =
|
|
3086
|
+
), We = Vn ? String.fromCodePoint : (
|
|
3087
3087
|
// IE11
|
|
3088
3088
|
function() {
|
|
3089
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3097,7 +3097,7 @@ var vt = jn ? (
|
|
|
3097
3097
|
}
|
|
3098
3098
|
), yt = (
|
|
3099
3099
|
// native
|
|
3100
|
-
|
|
3100
|
+
Xn ? Object.fromEntries : (
|
|
3101
3101
|
// Ponyfill
|
|
3102
3102
|
function(t) {
|
|
3103
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3107,7 +3107,7 @@ var vt = jn ? (
|
|
|
3107
3107
|
return r;
|
|
3108
3108
|
}
|
|
3109
3109
|
)
|
|
3110
|
-
), nr =
|
|
3110
|
+
), nr = Wn ? (
|
|
3111
3111
|
// Native
|
|
3112
3112
|
function(t, r) {
|
|
3113
3113
|
return t.codePointAt(r);
|
|
@@ -3121,7 +3121,7 @@ var vt = jn ? (
|
|
|
3121
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
|
-
),
|
|
3124
|
+
), qn = zn ? (
|
|
3125
3125
|
// Native
|
|
3126
3126
|
function(t) {
|
|
3127
3127
|
return t.trimStart();
|
|
@@ -3129,9 +3129,9 @@ var vt = jn ? (
|
|
|
3129
3129
|
) : (
|
|
3130
3130
|
// Ponyfill
|
|
3131
3131
|
function(t) {
|
|
3132
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Fn, "");
|
|
3133
3133
|
}
|
|
3134
|
-
),
|
|
3134
|
+
), Kn = Zn ? (
|
|
3135
3135
|
// Native
|
|
3136
3136
|
function(t) {
|
|
3137
3137
|
return t.trimEnd();
|
|
@@ -3139,7 +3139,7 @@ var vt = jn ? (
|
|
|
3139
3139
|
) : (
|
|
3140
3140
|
// Ponyfill
|
|
3141
3141
|
function(t) {
|
|
3142
|
-
return t.replace(
|
|
3142
|
+
return t.replace(jn, "");
|
|
3143
3143
|
}
|
|
3144
3144
|
);
|
|
3145
3145
|
function ir(e, t) {
|
|
@@ -3158,13 +3158,13 @@ if (Xe) {
|
|
|
3158
3158
|
ze = function(t, r) {
|
|
3159
3159
|
for (var n = []; ; ) {
|
|
3160
3160
|
var i = nr(t, r);
|
|
3161
|
-
if (i === void 0 || or(i) ||
|
|
3161
|
+
if (i === void 0 || or(i) || ni(i))
|
|
3162
3162
|
break;
|
|
3163
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3164
3164
|
}
|
|
3165
3165
|
return We.apply(void 0, n);
|
|
3166
3166
|
};
|
|
3167
|
-
var
|
|
3167
|
+
var ei = (
|
|
3168
3168
|
/** @class */
|
|
3169
3169
|
function() {
|
|
3170
3170
|
function e(t, r) {
|
|
@@ -3188,13 +3188,13 @@ var Kn = (
|
|
|
3188
3188
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3189
3189
|
var a = this.clonePosition();
|
|
3190
3190
|
this.bump(), i.push({
|
|
3191
|
-
type:
|
|
3191
|
+
type: x.pound,
|
|
3192
3192
|
location: g(a, this.clonePosition())
|
|
3193
3193
|
});
|
|
3194
3194
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3195
3195
|
if (n)
|
|
3196
3196
|
break;
|
|
3197
|
-
return this.error(
|
|
3197
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3198
3198
|
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3199
3199
|
var s = this.parseTag(t, r);
|
|
3200
3200
|
if (s.err)
|
|
@@ -3216,7 +3216,7 @@ var Kn = (
|
|
|
3216
3216
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3217
3217
|
return {
|
|
3218
3218
|
val: {
|
|
3219
|
-
type:
|
|
3219
|
+
type: x.literal,
|
|
3220
3220
|
value: "<".concat(i, "/>"),
|
|
3221
3221
|
location: g(n, this.clonePosition())
|
|
3222
3222
|
},
|
|
@@ -3229,24 +3229,24 @@ var Kn = (
|
|
|
3229
3229
|
var s = o.val, a = this.clonePosition();
|
|
3230
3230
|
if (this.bumpIf("</")) {
|
|
3231
3231
|
if (this.isEOF() || !Ze(this.char()))
|
|
3232
|
-
return this.error(
|
|
3232
|
+
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3233
3233
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3234
|
-
return i !== u ? this.error(
|
|
3234
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3235
3235
|
val: {
|
|
3236
|
-
type:
|
|
3236
|
+
type: x.tag,
|
|
3237
3237
|
value: i,
|
|
3238
3238
|
children: s,
|
|
3239
3239
|
location: g(n, this.clonePosition())
|
|
3240
3240
|
},
|
|
3241
3241
|
err: null
|
|
3242
|
-
} : this.error(
|
|
3242
|
+
} : this.error(d.INVALID_TAG, g(a, this.clonePosition())));
|
|
3243
3243
|
} else
|
|
3244
|
-
return this.error(
|
|
3244
|
+
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3245
3245
|
} else
|
|
3246
|
-
return this.error(
|
|
3246
|
+
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3247
3247
|
}, e.prototype.parseTagName = function() {
|
|
3248
3248
|
var t = this.offset();
|
|
3249
|
-
for (this.bump(); !this.isEOF() &&
|
|
3249
|
+
for (this.bump(); !this.isEOF() && ri(this.char()); )
|
|
3250
3250
|
this.bump();
|
|
3251
3251
|
return this.message.slice(t, this.offset());
|
|
3252
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3270,12 +3270,12 @@ var Kn = (
|
|
|
3270
3270
|
}
|
|
3271
3271
|
var l = g(n, this.clonePosition());
|
|
3272
3272
|
return {
|
|
3273
|
-
val: { type:
|
|
3273
|
+
val: { type: x.literal, value: i, location: l },
|
|
3274
3274
|
err: null
|
|
3275
3275
|
};
|
|
3276
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3277
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3278
|
-
!
|
|
3278
|
+
!ti(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3279
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3280
3280
|
if (this.isEOF() || this.char() !== 39)
|
|
3281
3281
|
return null;
|
|
@@ -3318,19 +3318,19 @@ var Kn = (
|
|
|
3318
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3319
3319
|
var n = this.clonePosition();
|
|
3320
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3321
|
-
return this.error(
|
|
3321
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3322
3322
|
if (this.char() === 125)
|
|
3323
|
-
return this.bump(), this.error(
|
|
3323
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3324
3324
|
var i = this.parseIdentifierIfPossible().value;
|
|
3325
3325
|
if (!i)
|
|
3326
|
-
return this.error(
|
|
3326
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3327
3327
|
if (this.bumpSpace(), this.isEOF())
|
|
3328
|
-
return this.error(
|
|
3328
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3329
3329
|
switch (this.char()) {
|
|
3330
3330
|
case 125:
|
|
3331
3331
|
return this.bump(), {
|
|
3332
3332
|
val: {
|
|
3333
|
-
type:
|
|
3333
|
+
type: x.argument,
|
|
3334
3334
|
// value does not include the opening and closing braces.
|
|
3335
3335
|
value: i,
|
|
3336
3336
|
location: g(n, this.clonePosition())
|
|
@@ -3338,9 +3338,9 @@ var Kn = (
|
|
|
3338
3338
|
err: null
|
|
3339
3339
|
};
|
|
3340
3340
|
case 44:
|
|
3341
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3341
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3342
3342
|
default:
|
|
3343
|
-
return this.error(
|
|
3343
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3344
3344
|
}
|
|
3345
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3346
3346
|
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
@@ -3351,7 +3351,7 @@ var Kn = (
|
|
|
3351
3351
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3352
3352
|
switch (a) {
|
|
3353
3353
|
case "":
|
|
3354
|
-
return this.error(
|
|
3354
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3355
3355
|
case "number":
|
|
3356
3356
|
case "date":
|
|
3357
3357
|
case "time": {
|
|
@@ -3359,49 +3359,49 @@ var Kn = (
|
|
|
3359
3359
|
var u = null;
|
|
3360
3360
|
if (this.bumpIf(",")) {
|
|
3361
3361
|
this.bumpSpace();
|
|
3362
|
-
var h = this.clonePosition(),
|
|
3363
|
-
if (
|
|
3364
|
-
return
|
|
3365
|
-
var
|
|
3366
|
-
if (
|
|
3367
|
-
return this.error(
|
|
3362
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3363
|
+
if (f.err)
|
|
3364
|
+
return f;
|
|
3365
|
+
var c = Kn(f.val);
|
|
3366
|
+
if (c.length === 0)
|
|
3367
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3368
3368
|
var m = g(h, this.clonePosition());
|
|
3369
|
-
u = { style:
|
|
3369
|
+
u = { style: c, styleLocation: m };
|
|
3370
3370
|
}
|
|
3371
|
-
var
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
var
|
|
3371
|
+
var y = this.tryParseArgumentClose(i);
|
|
3372
|
+
if (y.err)
|
|
3373
|
+
return y;
|
|
3374
|
+
var b = g(i, this.clonePosition());
|
|
3375
3375
|
if (u && vt(u?.style, "::", 0)) {
|
|
3376
|
-
var
|
|
3376
|
+
var H = qn(u.style.slice(2));
|
|
3377
3377
|
if (a === "number") {
|
|
3378
|
-
var
|
|
3379
|
-
return
|
|
3380
|
-
val: { type:
|
|
3378
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3379
|
+
return f.err ? f : {
|
|
3380
|
+
val: { type: x.number, value: n, location: b, style: f.val },
|
|
3381
3381
|
err: null
|
|
3382
3382
|
};
|
|
3383
3383
|
} else {
|
|
3384
|
-
if (
|
|
3385
|
-
return this.error(
|
|
3386
|
-
var
|
|
3387
|
-
this.locale && (
|
|
3388
|
-
var
|
|
3384
|
+
if (H.length === 0)
|
|
3385
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, b);
|
|
3386
|
+
var S = H;
|
|
3387
|
+
this.locale && (S = Un(H, this.locale));
|
|
3388
|
+
var c = {
|
|
3389
3389
|
type: V.dateTime,
|
|
3390
|
-
pattern:
|
|
3390
|
+
pattern: S,
|
|
3391
3391
|
location: u.styleLocation,
|
|
3392
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3393
|
-
},
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? In(S) : {}
|
|
3393
|
+
}, A = a === "date" ? x.date : x.time;
|
|
3394
3394
|
return {
|
|
3395
|
-
val: { type:
|
|
3395
|
+
val: { type: A, value: n, location: b, style: c },
|
|
3396
3396
|
err: null
|
|
3397
3397
|
};
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
3400
|
return {
|
|
3401
3401
|
val: {
|
|
3402
|
-
type: a === "number" ?
|
|
3402
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3403
3403
|
value: n,
|
|
3404
|
-
location:
|
|
3404
|
+
location: b,
|
|
3405
3405
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3406
3406
|
},
|
|
3407
3407
|
err: null
|
|
@@ -3412,39 +3412,39 @@ var Kn = (
|
|
|
3412
3412
|
case "select": {
|
|
3413
3413
|
var _ = this.clonePosition();
|
|
3414
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3415
|
-
return this.error(
|
|
3415
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, de({}, _)));
|
|
3416
3416
|
this.bumpSpace();
|
|
3417
|
-
var
|
|
3418
|
-
if (a !== "select" &&
|
|
3417
|
+
var E = this.parseIdentifierIfPossible(), v = 0;
|
|
3418
|
+
if (a !== "select" && E.value === "offset") {
|
|
3419
3419
|
if (!this.bumpIf(":"))
|
|
3420
|
-
return this.error(
|
|
3420
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3421
3421
|
this.bumpSpace();
|
|
3422
|
-
var
|
|
3423
|
-
if (
|
|
3424
|
-
return
|
|
3425
|
-
this.bumpSpace(),
|
|
3422
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3423
|
+
if (f.err)
|
|
3424
|
+
return f;
|
|
3425
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), v = f.val;
|
|
3426
3426
|
}
|
|
3427
|
-
var
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3430
|
-
var
|
|
3431
|
-
if (
|
|
3432
|
-
return
|
|
3427
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, E);
|
|
3428
|
+
if (B.err)
|
|
3429
|
+
return B;
|
|
3430
|
+
var y = this.tryParseArgumentClose(i);
|
|
3431
|
+
if (y.err)
|
|
3432
|
+
return y;
|
|
3433
3433
|
var se = g(i, this.clonePosition());
|
|
3434
3434
|
return a === "select" ? {
|
|
3435
3435
|
val: {
|
|
3436
|
-
type:
|
|
3436
|
+
type: x.select,
|
|
3437
3437
|
value: n,
|
|
3438
|
-
options: yt(
|
|
3438
|
+
options: yt(B.val),
|
|
3439
3439
|
location: se
|
|
3440
3440
|
},
|
|
3441
3441
|
err: null
|
|
3442
3442
|
} : {
|
|
3443
3443
|
val: {
|
|
3444
|
-
type:
|
|
3444
|
+
type: x.plural,
|
|
3445
3445
|
value: n,
|
|
3446
|
-
options: yt(
|
|
3447
|
-
offset:
|
|
3446
|
+
options: yt(B.val),
|
|
3447
|
+
offset: v,
|
|
3448
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3449
3449
|
location: se
|
|
3450
3450
|
},
|
|
@@ -3452,10 +3452,10 @@ var Kn = (
|
|
|
3452
3452
|
};
|
|
3453
3453
|
}
|
|
3454
3454
|
default:
|
|
3455
|
-
return this.error(
|
|
3455
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3456
3456
|
}
|
|
3457
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3458
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3458
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3459
3459
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3460
3460
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3461
3461
|
var n = this.char();
|
|
@@ -3464,7 +3464,7 @@ var Kn = (
|
|
|
3464
3464
|
this.bump();
|
|
3465
3465
|
var i = this.clonePosition();
|
|
3466
3466
|
if (!this.bumpUntil("'"))
|
|
3467
|
-
return this.error(
|
|
3467
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3468
3468
|
this.bump();
|
|
3469
3469
|
break;
|
|
3470
3470
|
}
|
|
@@ -3494,52 +3494,52 @@ var Kn = (
|
|
|
3494
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3495
3495
|
var n = [];
|
|
3496
3496
|
try {
|
|
3497
|
-
n =
|
|
3497
|
+
n = Mn(t);
|
|
3498
3498
|
} catch {
|
|
3499
|
-
return this.error(
|
|
3499
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3500
3500
|
}
|
|
3501
3501
|
return {
|
|
3502
3502
|
val: {
|
|
3503
3503
|
type: V.number,
|
|
3504
3504
|
tokens: n,
|
|
3505
3505
|
location: r,
|
|
3506
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? Gn(n) : {}
|
|
3507
3507
|
},
|
|
3508
3508
|
err: null
|
|
3509
3509
|
};
|
|
3510
3510
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3511
3511
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3512
3512
|
if (u.length === 0) {
|
|
3513
|
-
var
|
|
3513
|
+
var f = this.clonePosition();
|
|
3514
3514
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3515
|
-
var
|
|
3516
|
-
if (
|
|
3517
|
-
return
|
|
3518
|
-
h = g(
|
|
3515
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3516
|
+
if (c.err)
|
|
3517
|
+
return c;
|
|
3518
|
+
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3519
3519
|
} else
|
|
3520
3520
|
break;
|
|
3521
3521
|
}
|
|
3522
3522
|
if (l.has(u))
|
|
3523
|
-
return this.error(r === "select" ?
|
|
3523
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3524
3524
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3525
3525
|
var m = this.clonePosition();
|
|
3526
3526
|
if (!this.bumpIf("{"))
|
|
3527
|
-
return this.error(r === "select" ?
|
|
3528
|
-
var
|
|
3529
|
-
if (
|
|
3530
|
-
return
|
|
3531
|
-
var
|
|
3532
|
-
if (
|
|
3533
|
-
return
|
|
3527
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3528
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3529
|
+
if (y.err)
|
|
3530
|
+
return y;
|
|
3531
|
+
var b = this.tryParseArgumentClose(m);
|
|
3532
|
+
if (b.err)
|
|
3533
|
+
return b;
|
|
3534
3534
|
a.push([
|
|
3535
3535
|
u,
|
|
3536
3536
|
{
|
|
3537
|
-
value:
|
|
3537
|
+
value: y.val,
|
|
3538
3538
|
location: g(m, this.clonePosition())
|
|
3539
3539
|
}
|
|
3540
3540
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3541
3541
|
}
|
|
3542
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3543
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3544
3544
|
var n = 1, i = this.clonePosition();
|
|
3545
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3551,7 +3551,7 @@ var Kn = (
|
|
|
3551
3551
|
break;
|
|
3552
3552
|
}
|
|
3553
3553
|
var l = g(i, this.clonePosition());
|
|
3554
|
-
return o ? (s *= n,
|
|
3554
|
+
return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3555
3555
|
}, e.prototype.offset = function() {
|
|
3556
3556
|
return this.position.offset;
|
|
3557
3557
|
}, e.prototype.isEOF = function() {
|
|
@@ -3620,16 +3620,16 @@ var Kn = (
|
|
|
3620
3620
|
function Ze(e) {
|
|
3621
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3623
|
+
function ti(e) {
|
|
3624
3624
|
return Ze(e) || e === 47;
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function ri(e) {
|
|
3627
3627
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3628
3628
|
}
|
|
3629
3629
|
function or(e) {
|
|
3630
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3631
3631
|
}
|
|
3632
|
-
function
|
|
3632
|
+
function ni(e) {
|
|
3633
3633
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3634
3634
|
}
|
|
3635
3635
|
function Qe(e) {
|
|
@@ -3641,11 +3641,11 @@ function Qe(e) {
|
|
|
3641
3641
|
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) && Ve(t.style) ? delete t.style.location : Yt(t) && Qe(t.children);
|
|
3642
3642
|
});
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function ii(e, t) {
|
|
3645
3645
|
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
|
-
var r = new
|
|
3646
|
+
var r = new ei(e, t).parse();
|
|
3647
3647
|
if (r.err) {
|
|
3648
|
-
var n = SyntaxError(
|
|
3648
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3649
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3650
3650
|
}
|
|
3651
3651
|
return t?.captureLocation || Qe(r.val), r.val;
|
|
@@ -3675,7 +3675,7 @@ var Ee = (
|
|
|
3675
3675
|
}
|
|
3676
3676
|
return t;
|
|
3677
3677
|
}(Ee)
|
|
3678
|
-
),
|
|
3678
|
+
), oi = (
|
|
3679
3679
|
/** @class */
|
|
3680
3680
|
function(e) {
|
|
3681
3681
|
xe(t, e);
|
|
@@ -3684,7 +3684,7 @@ var Ee = (
|
|
|
3684
3684
|
}
|
|
3685
3685
|
return t;
|
|
3686
3686
|
}(Ee)
|
|
3687
|
-
),
|
|
3687
|
+
), si = (
|
|
3688
3688
|
/** @class */
|
|
3689
3689
|
function(e) {
|
|
3690
3690
|
xe(t, e);
|
|
@@ -3693,24 +3693,24 @@ var Ee = (
|
|
|
3693
3693
|
}
|
|
3694
3694
|
return t;
|
|
3695
3695
|
}(Ee)
|
|
3696
|
-
),
|
|
3696
|
+
), P;
|
|
3697
3697
|
(function(e) {
|
|
3698
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3699
|
-
})(
|
|
3700
|
-
function
|
|
3699
|
+
})(P || (P = {}));
|
|
3700
|
+
function ai(e) {
|
|
3701
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3702
3702
|
var n = t[t.length - 1];
|
|
3703
|
-
return !n || n.type !==
|
|
3703
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3704
3704
|
}, []);
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function ui(e) {
|
|
3707
3707
|
return typeof e == "function";
|
|
3708
3708
|
}
|
|
3709
3709
|
function me(e, t, r, n, i, o, s) {
|
|
3710
3710
|
if (e.length === 1 && pt(e[0]))
|
|
3711
3711
|
return [
|
|
3712
3712
|
{
|
|
3713
|
-
type:
|
|
3713
|
+
type: P.literal,
|
|
3714
3714
|
value: e[0].value
|
|
3715
3715
|
}
|
|
3716
3716
|
];
|
|
@@ -3718,100 +3718,100 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3718
3718
|
var h = u[l];
|
|
3719
3719
|
if (pt(h)) {
|
|
3720
3720
|
a.push({
|
|
3721
|
-
type:
|
|
3721
|
+
type: P.literal,
|
|
3722
3722
|
value: h.value
|
|
3723
3723
|
});
|
|
3724
3724
|
continue;
|
|
3725
3725
|
}
|
|
3726
|
-
if (
|
|
3726
|
+
if (Pn(h)) {
|
|
3727
3727
|
typeof o == "number" && a.push({
|
|
3728
|
-
type:
|
|
3728
|
+
type: P.literal,
|
|
3729
3729
|
value: r.getNumberFormat(t).format(o)
|
|
3730
3730
|
});
|
|
3731
3731
|
continue;
|
|
3732
3732
|
}
|
|
3733
|
-
var
|
|
3734
|
-
if (!(i &&
|
|
3735
|
-
throw new
|
|
3736
|
-
var
|
|
3737
|
-
if (
|
|
3738
|
-
(!
|
|
3739
|
-
type: typeof
|
|
3740
|
-
value:
|
|
3733
|
+
var f = h.value;
|
|
3734
|
+
if (!(i && f in i))
|
|
3735
|
+
throw new si(f, s);
|
|
3736
|
+
var c = i[f];
|
|
3737
|
+
if (Cn(h)) {
|
|
3738
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3739
|
+
type: typeof c == "string" ? P.literal : P.object,
|
|
3740
|
+
value: c
|
|
3741
3741
|
});
|
|
3742
3742
|
continue;
|
|
3743
3743
|
}
|
|
3744
3744
|
if (zt(h)) {
|
|
3745
3745
|
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3746
3746
|
a.push({
|
|
3747
|
-
type:
|
|
3748
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3747
|
+
type: P.literal,
|
|
3748
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3749
3749
|
});
|
|
3750
3750
|
continue;
|
|
3751
3751
|
}
|
|
3752
3752
|
if (Zt(h)) {
|
|
3753
3753
|
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3754
3754
|
a.push({
|
|
3755
|
-
type:
|
|
3756
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3755
|
+
type: P.literal,
|
|
3756
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3757
3757
|
});
|
|
3758
3758
|
continue;
|
|
3759
3759
|
}
|
|
3760
3760
|
if (Wt(h)) {
|
|
3761
3761
|
var m = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3762
|
-
m && m.scale && (
|
|
3763
|
-
type:
|
|
3764
|
-
value: r.getNumberFormat(t, m).format(
|
|
3762
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3763
|
+
type: P.literal,
|
|
3764
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3765
3765
|
});
|
|
3766
3766
|
continue;
|
|
3767
3767
|
}
|
|
3768
3768
|
if (Yt(h)) {
|
|
3769
|
-
var
|
|
3770
|
-
if (!
|
|
3771
|
-
throw new
|
|
3772
|
-
var
|
|
3773
|
-
return
|
|
3769
|
+
var y = h.children, b = h.value, H = i[b];
|
|
3770
|
+
if (!ui(H))
|
|
3771
|
+
throw new oi(b, "function", s);
|
|
3772
|
+
var S = me(y, t, r, n, i, o), A = H(S.map(function(v) {
|
|
3773
|
+
return v.value;
|
|
3774
3774
|
}));
|
|
3775
|
-
Array.isArray(
|
|
3775
|
+
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(v) {
|
|
3776
3776
|
return {
|
|
3777
|
-
type: typeof
|
|
3778
|
-
value:
|
|
3777
|
+
type: typeof v == "string" ? P.literal : P.object,
|
|
3778
|
+
value: v
|
|
3779
3779
|
};
|
|
3780
3780
|
}));
|
|
3781
3781
|
}
|
|
3782
3782
|
if (Qt(h)) {
|
|
3783
|
-
var _ = h.options[
|
|
3783
|
+
var _ = h.options[c] || h.options.other;
|
|
3784
3784
|
if (!_)
|
|
3785
|
-
throw new xt(h.value,
|
|
3785
|
+
throw new xt(h.value, c, Object.keys(h.options), s);
|
|
3786
3786
|
a.push.apply(a, me(_.value, t, r, n, i));
|
|
3787
3787
|
continue;
|
|
3788
3788
|
}
|
|
3789
3789
|
if (Jt(h)) {
|
|
3790
|
-
var _ = h.options["=".concat(
|
|
3790
|
+
var _ = h.options["=".concat(c)];
|
|
3791
3791
|
if (!_) {
|
|
3792
3792
|
if (!Intl.PluralRules)
|
|
3793
3793
|
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3794
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3795
3795
|
`, X.MISSING_INTL_API, s);
|
|
3796
|
-
var
|
|
3797
|
-
_ = h.options[
|
|
3796
|
+
var E = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3797
|
+
_ = h.options[E] || h.options.other;
|
|
3798
3798
|
}
|
|
3799
3799
|
if (!_)
|
|
3800
|
-
throw new xt(h.value,
|
|
3801
|
-
a.push.apply(a, me(_.value, t, r, n, i,
|
|
3800
|
+
throw new xt(h.value, c, Object.keys(h.options), s);
|
|
3801
|
+
a.push.apply(a, me(_.value, t, r, n, i, c - (h.offset || 0)));
|
|
3802
3802
|
continue;
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
return
|
|
3805
|
+
return ai(a);
|
|
3806
3806
|
}
|
|
3807
|
-
function
|
|
3807
|
+
function li(e, t) {
|
|
3808
3808
|
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3809
3809
|
return r[n] = N(N({}, e[n]), t[n] || {}), r;
|
|
3810
3810
|
}, {})) : e;
|
|
3811
3811
|
}
|
|
3812
|
-
function
|
|
3812
|
+
function hi(e, t) {
|
|
3813
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3814
|
-
return r[n] =
|
|
3814
|
+
return r[n] = li(e[n], t[n]), r;
|
|
3815
3815
|
}, N({}, e)) : e;
|
|
3816
3816
|
}
|
|
3817
3817
|
function Oe(e) {
|
|
@@ -3828,7 +3828,7 @@ function Oe(e) {
|
|
|
3828
3828
|
}
|
|
3829
3829
|
};
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3831
|
+
function ci(e) {
|
|
3832
3832
|
return e === void 0 && (e = {
|
|
3833
3833
|
number: {},
|
|
3834
3834
|
dateTime: {},
|
|
@@ -3860,7 +3860,7 @@ function hi(e) {
|
|
|
3860
3860
|
})
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
|
-
var
|
|
3863
|
+
var fi = (
|
|
3864
3864
|
/** @class */
|
|
3865
3865
|
function() {
|
|
3866
3866
|
function e(t, r, n, i) {
|
|
@@ -3874,8 +3874,8 @@ var ci = (
|
|
|
3874
3874
|
var u = o.formatToParts(l);
|
|
3875
3875
|
if (u.length === 1)
|
|
3876
3876
|
return u[0].value;
|
|
3877
|
-
var h = u.reduce(function(
|
|
3878
|
-
return !
|
|
3877
|
+
var h = u.reduce(function(f, c) {
|
|
3878
|
+
return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3879
3879
|
}, []);
|
|
3880
3880
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3881
3881
|
}, this.formatToParts = function(l) {
|
|
@@ -3892,13 +3892,13 @@ var ci = (
|
|
|
3892
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3893
3893
|
var s = i || {};
|
|
3894
3894
|
s.formatters;
|
|
3895
|
-
var a =
|
|
3895
|
+
var a = xn(s, ["formatters"]);
|
|
3896
3896
|
this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
|
|
3897
3897
|
} else
|
|
3898
3898
|
this.ast = t;
|
|
3899
3899
|
if (!Array.isArray(this.ast))
|
|
3900
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3901
|
-
this.formats =
|
|
3901
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || ci(this.formatterCache);
|
|
3902
3902
|
}
|
|
3903
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3904
3904
|
get: function() {
|
|
@@ -3911,7 +3911,7 @@ var ci = (
|
|
|
3911
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3912
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3913
3913
|
}
|
|
3914
|
-
}, e.__parse =
|
|
3914
|
+
}, e.__parse = ii, e.formats = {
|
|
3915
3915
|
number: {
|
|
3916
3916
|
integer: {
|
|
3917
3917
|
maximumFractionDigits: 0
|
|
@@ -3972,7 +3972,7 @@ var ci = (
|
|
|
3972
3972
|
}, e;
|
|
3973
3973
|
}()
|
|
3974
3974
|
);
|
|
3975
|
-
function
|
|
3975
|
+
function mi(e, t) {
|
|
3976
3976
|
if (t == null)
|
|
3977
3977
|
return;
|
|
3978
3978
|
if (t in e)
|
|
@@ -3993,33 +3993,33 @@ function fi(e, t) {
|
|
|
3993
3993
|
n = void 0;
|
|
3994
3994
|
return n;
|
|
3995
3995
|
}
|
|
3996
|
-
const R = {},
|
|
3996
|
+
const R = {}, pi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), sr = (e, t) => {
|
|
3997
3997
|
if (t == null)
|
|
3998
3998
|
return;
|
|
3999
3999
|
if (t in R && e in R[t])
|
|
4000
4000
|
return R[t][e];
|
|
4001
4001
|
const r = Se(t);
|
|
4002
4002
|
for (let n = 0; n < r.length; n++) {
|
|
4003
|
-
const i = r[n], o =
|
|
4003
|
+
const i = r[n], o = bi(i, e);
|
|
4004
4004
|
if (o)
|
|
4005
|
-
return
|
|
4005
|
+
return pi(e, t, o);
|
|
4006
4006
|
}
|
|
4007
4007
|
};
|
|
4008
4008
|
let et;
|
|
4009
4009
|
const oe = _e({});
|
|
4010
|
-
function
|
|
4010
|
+
function di(e) {
|
|
4011
4011
|
return et[e] || null;
|
|
4012
4012
|
}
|
|
4013
4013
|
function ar(e) {
|
|
4014
4014
|
return e in et;
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function bi(e, t) {
|
|
4017
4017
|
if (!ar(e))
|
|
4018
4018
|
return null;
|
|
4019
|
-
const r =
|
|
4020
|
-
return
|
|
4019
|
+
const r = di(e);
|
|
4020
|
+
return mi(r, t);
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function gi(e) {
|
|
4023
4023
|
if (e == null)
|
|
4024
4024
|
return;
|
|
4025
4025
|
const t = Se(e);
|
|
@@ -4030,7 +4030,7 @@ function bi(e) {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
4032
|
function ur(e, ...t) {
|
|
4033
|
-
delete R[e], oe.update((r) => (r[e] =
|
|
4033
|
+
delete R[e], oe.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
4034
4034
|
}
|
|
4035
4035
|
Q(
|
|
4036
4036
|
[oe],
|
|
@@ -4038,13 +4038,13 @@ Q(
|
|
|
4038
4038
|
);
|
|
4039
4039
|
oe.subscribe((e) => et = e);
|
|
4040
4040
|
const pe = {};
|
|
4041
|
-
function
|
|
4041
|
+
function vi(e, t) {
|
|
4042
4042
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4043
4043
|
}
|
|
4044
4044
|
function lr(e) {
|
|
4045
4045
|
return pe[e];
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4047
|
+
function yi(e) {
|
|
4048
4048
|
return Se(e).map((t) => {
|
|
4049
4049
|
const r = lr(t);
|
|
4050
4050
|
return [t, r ? [...r] : []];
|
|
@@ -4058,19 +4058,19 @@ function Je(e) {
|
|
|
4058
4058
|
}
|
|
4059
4059
|
);
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function _i(e, t) {
|
|
4062
4062
|
return Promise.all(
|
|
4063
|
-
t.map((n) => (
|
|
4063
|
+
t.map((n) => (vi(e, n), n().then((i) => i.default || i)))
|
|
4064
4064
|
).then((n) => ur(e, ...n));
|
|
4065
4065
|
}
|
|
4066
4066
|
const q = {};
|
|
4067
4067
|
function hr(e) {
|
|
4068
4068
|
if (!Je(e))
|
|
4069
4069
|
return e in q ? q[e] : Promise.resolve();
|
|
4070
|
-
const t =
|
|
4070
|
+
const t = yi(e);
|
|
4071
4071
|
return q[e] = Promise.all(
|
|
4072
4072
|
t.map(
|
|
4073
|
-
([r, n]) =>
|
|
4073
|
+
([r, n]) => _i(r, n)
|
|
4074
4074
|
)
|
|
4075
4075
|
).then(() => {
|
|
4076
4076
|
if (Je(e))
|
|
@@ -4078,7 +4078,7 @@ function hr(e) {
|
|
|
4078
4078
|
delete q[e];
|
|
4079
4079
|
}), q[e];
|
|
4080
4080
|
}
|
|
4081
|
-
const
|
|
4081
|
+
const xi = {
|
|
4082
4082
|
number: {
|
|
4083
4083
|
scientific: { notation: "scientific" },
|
|
4084
4084
|
engineering: { notation: "engineering" },
|
|
@@ -4107,26 +4107,26 @@ const _i = {
|
|
|
4107
4107
|
timeZoneName: "short"
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
4110
|
-
},
|
|
4110
|
+
}, Ei = {
|
|
4111
4111
|
fallbackLocale: null,
|
|
4112
4112
|
loadingDelay: 200,
|
|
4113
|
-
formats:
|
|
4113
|
+
formats: xi,
|
|
4114
4114
|
warnOnMissingMessages: !0,
|
|
4115
4115
|
handleMissingMessage: void 0,
|
|
4116
4116
|
ignoreTag: !0
|
|
4117
|
-
},
|
|
4117
|
+
}, Si = Ei;
|
|
4118
4118
|
function W() {
|
|
4119
|
-
return
|
|
4119
|
+
return Si;
|
|
4120
4120
|
}
|
|
4121
4121
|
const Ie = _e(!1);
|
|
4122
|
-
var
|
|
4122
|
+
var wi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
|
|
4123
4123
|
for (var r in t || (t = {}))
|
|
4124
|
-
|
|
4124
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4125
4125
|
if (Et)
|
|
4126
4126
|
for (var r of Et(t))
|
|
4127
|
-
|
|
4127
|
+
Bi.call(t, r) && St(e, r, t[r]);
|
|
4128
4128
|
return e;
|
|
4129
|
-
},
|
|
4129
|
+
}, Pi = (e, t) => Ti(e, Hi(t));
|
|
4130
4130
|
let Ye;
|
|
4131
4131
|
const be = _e(null);
|
|
4132
4132
|
function wt(e) {
|
|
@@ -4142,8 +4142,8 @@ function $() {
|
|
|
4142
4142
|
be.subscribe((e) => {
|
|
4143
4143
|
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4144
4144
|
});
|
|
4145
|
-
const
|
|
4146
|
-
if (e &&
|
|
4145
|
+
const Oi = (e) => {
|
|
4146
|
+
if (e && gi(e) && Je(e)) {
|
|
4147
4147
|
const { loadingDelay: t } = W();
|
|
4148
4148
|
let r;
|
|
4149
4149
|
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
@@ -4156,8 +4156,8 @@ const Pi = (e) => {
|
|
|
4156
4156
|
});
|
|
4157
4157
|
}
|
|
4158
4158
|
return be.set(e);
|
|
4159
|
-
}, J = Ci(
|
|
4160
|
-
set:
|
|
4159
|
+
}, J = Pi(Ci({}, be), {
|
|
4160
|
+
set: Oi
|
|
4161
4161
|
}), we = (e) => {
|
|
4162
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4163
4163
|
return (n) => {
|
|
@@ -4165,7 +4165,7 @@ const Pi = (e) => {
|
|
|
4165
4165
|
return i in t ? t[i] : t[i] = e(n);
|
|
4166
4166
|
};
|
|
4167
4167
|
};
|
|
4168
|
-
var
|
|
4168
|
+
var Ii = Object.defineProperty, ge = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4169
4169
|
for (var r in t || (t = {}))
|
|
4170
4170
|
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4171
4171
|
if (ge)
|
|
@@ -4186,21 +4186,21 @@ const re = (e, t) => {
|
|
|
4186
4186
|
if (e in r && t in r[e])
|
|
4187
4187
|
return r[e][t];
|
|
4188
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4189
|
-
},
|
|
4189
|
+
}, Ni = we(
|
|
4190
4190
|
(e) => {
|
|
4191
4191
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4192
4192
|
if (r == null)
|
|
4193
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4194
4194
|
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4195
4195
|
}
|
|
4196
|
-
),
|
|
4196
|
+
), Mi = we(
|
|
4197
4197
|
(e) => {
|
|
4198
4198
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4199
4199
|
if (r == null)
|
|
4200
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4201
4201
|
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4202
4202
|
}
|
|
4203
|
-
),
|
|
4203
|
+
), Li = we(
|
|
4204
4204
|
(e) => {
|
|
4205
4205
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4206
4206
|
if (r == null)
|
|
@@ -4209,33 +4209,33 @@ const re = (e, t) => {
|
|
|
4209
4209
|
);
|
|
4210
4210
|
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4211
4211
|
}
|
|
4212
|
-
),
|
|
4212
|
+
), Ri = (e = {}) => {
|
|
4213
4213
|
var t = e, {
|
|
4214
4214
|
locale: r = $()
|
|
4215
4215
|
} = t, n = Y(t, [
|
|
4216
4216
|
"locale"
|
|
4217
4217
|
]);
|
|
4218
|
-
return
|
|
4219
|
-
},
|
|
4218
|
+
return Ni(tt({ locale: r }, n));
|
|
4219
|
+
}, $i = (e = {}) => {
|
|
4220
4220
|
var t = e, {
|
|
4221
4221
|
locale: r = $()
|
|
4222
4222
|
} = t, n = Y(t, [
|
|
4223
4223
|
"locale"
|
|
4224
4224
|
]);
|
|
4225
|
-
return
|
|
4226
|
-
},
|
|
4225
|
+
return Mi(tt({ locale: r }, n));
|
|
4226
|
+
}, Gi = (e = {}) => {
|
|
4227
4227
|
var t = e, {
|
|
4228
4228
|
locale: r = $()
|
|
4229
4229
|
} = t, n = Y(t, [
|
|
4230
4230
|
"locale"
|
|
4231
4231
|
]);
|
|
4232
|
-
return
|
|
4233
|
-
},
|
|
4232
|
+
return Li(tt({ locale: r }, n));
|
|
4233
|
+
}, Ui = we(
|
|
4234
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4235
|
-
(e, t = $()) => new
|
|
4235
|
+
(e, t = $()) => new fi(e, t, W().formats, {
|
|
4236
4236
|
ignoreTag: W().ignoreTag
|
|
4237
4237
|
})
|
|
4238
|
-
),
|
|
4238
|
+
), Di = (e, t = {}) => {
|
|
4239
4239
|
var r, n, i, o;
|
|
4240
4240
|
let s = t;
|
|
4241
4241
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4257,28 +4257,28 @@ const re = (e, t) => {
|
|
|
4257
4257
|
), h;
|
|
4258
4258
|
if (!a)
|
|
4259
4259
|
return h;
|
|
4260
|
-
let
|
|
4260
|
+
let f = h;
|
|
4261
4261
|
try {
|
|
4262
|
-
|
|
4263
|
-
} catch (
|
|
4264
|
-
|
|
4262
|
+
f = Ui(h, l).format(a);
|
|
4263
|
+
} catch (c) {
|
|
4264
|
+
c instanceof Error && console.warn(
|
|
4265
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4266
|
-
|
|
4266
|
+
c.message
|
|
4267
4267
|
);
|
|
4268
4268
|
}
|
|
4269
|
-
return
|
|
4270
|
-
},
|
|
4271
|
-
Q([J], () => Di);
|
|
4269
|
+
return f;
|
|
4270
|
+
}, Fi = (e, t) => Gi(t).format(e), ji = (e, t) => $i(t).format(e), ki = (e, t) => Ri(t).format(e), Vi = (e, t = $()) => sr(e, t), Xi = Q([J, oe], () => Di);
|
|
4272
4271
|
Q([J], () => Fi);
|
|
4273
4272
|
Q([J], () => ji);
|
|
4274
|
-
Q([J
|
|
4275
|
-
|
|
4276
|
-
|
|
4273
|
+
Q([J], () => ki);
|
|
4274
|
+
Q([J, oe], () => Vi);
|
|
4275
|
+
window.emWidgets = { topic: rn };
|
|
4276
|
+
const Wi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4277
4277
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4278
4278
|
function Ht(e, t) {
|
|
4279
4279
|
ur(e, t);
|
|
4280
4280
|
}
|
|
4281
|
-
function
|
|
4281
|
+
function zi(e) {
|
|
4282
4282
|
J.set(e);
|
|
4283
4283
|
}
|
|
4284
4284
|
const At = {
|
|
@@ -4327,13 +4327,13 @@ const At = {
|
|
|
4327
4327
|
confirm: "Confirm"
|
|
4328
4328
|
}
|
|
4329
4329
|
};
|
|
4330
|
-
function
|
|
4330
|
+
function Zi(e, t) {
|
|
4331
4331
|
if (e) {
|
|
4332
4332
|
const r = document.createElement("style");
|
|
4333
4333
|
r.innerHTML = t, e.appendChild(r);
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function Qi(e, t) {
|
|
4337
4337
|
if (!e || !t)
|
|
4338
4338
|
return;
|
|
4339
4339
|
const r = new URL(t);
|
|
@@ -4344,7 +4344,7 @@ function Zi(e, t) {
|
|
|
4344
4344
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4345
4345
|
});
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4347
|
+
function Ji(e, t, r) {
|
|
4348
4348
|
if (window.emMessageBus) {
|
|
4349
4349
|
const n = document.createElement("style");
|
|
4350
4350
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4352,18 +4352,18 @@ function Qi(e, t, r) {
|
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4356
|
-
|
|
4355
|
+
function Yi(e) {
|
|
4356
|
+
Sr(e, "svelte-8g0wf4", '*,*::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, 10px);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, 10px)}.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}');
|
|
4357
4357
|
}
|
|
4358
|
-
const
|
|
4359
|
-
function
|
|
4358
|
+
const qi = (e) => ({}), Bt = (e) => ({});
|
|
4359
|
+
function Ki(e) {
|
|
4360
4360
|
let t, r;
|
|
4361
4361
|
return {
|
|
4362
4362
|
c() {
|
|
4363
4363
|
t = it("svg"), r = it("path"), T(r, "stroke-linecap", "round"), T(r, "stroke-linejoin", "round"), T(r, "stroke-width", "2"), T(r, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4364
4364
|
},
|
|
4365
4365
|
m(n, i) {
|
|
4366
|
-
ne(n, t, i),
|
|
4366
|
+
ne(n, t, i), C(t, r);
|
|
4367
4367
|
},
|
|
4368
4368
|
p: M,
|
|
4369
4369
|
d(n) {
|
|
@@ -4381,7 +4381,7 @@ function Ct(e) {
|
|
|
4381
4381
|
), T(t, "class", "GeneralConfirmationTitle");
|
|
4382
4382
|
},
|
|
4383
4383
|
m(i, o) {
|
|
4384
|
-
ne(i, t, o),
|
|
4384
|
+
ne(i, t, o), C(t, r), C(r, n);
|
|
4385
4385
|
},
|
|
4386
4386
|
p(i, o) {
|
|
4387
4387
|
o & /*modaltitle*/
|
|
@@ -4406,11 +4406,11 @@ function Pt(e) {
|
|
|
4406
4406
|
t = I("button"), n = ve(r), T(t, "class", "GeneralCancelButton");
|
|
4407
4407
|
},
|
|
4408
4408
|
m(s, a) {
|
|
4409
|
-
ne(s, t, a),
|
|
4409
|
+
ne(s, t, a), C(t, n), i || (o = Ne(
|
|
4410
4410
|
t,
|
|
4411
4411
|
"click",
|
|
4412
4412
|
/*click_handler*/
|
|
4413
|
-
e[
|
|
4413
|
+
e[18]
|
|
4414
4414
|
), i = !0);
|
|
4415
4415
|
},
|
|
4416
4416
|
p(s, a) {
|
|
@@ -4423,38 +4423,38 @@ function Pt(e) {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
};
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4427
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4426
|
+
function eo(e) {
|
|
4427
|
+
let t, r, n, i, o, s, a, l, u, h, f = (
|
|
4428
4428
|
/*$_*/
|
|
4429
4429
|
e[4]("confirm") + ""
|
|
4430
|
-
),
|
|
4431
|
-
const
|
|
4430
|
+
), c, m, y, b;
|
|
4431
|
+
const H = (
|
|
4432
4432
|
/*#slots*/
|
|
4433
|
-
e[
|
|
4434
|
-
),
|
|
4435
|
-
|
|
4433
|
+
e[17].close
|
|
4434
|
+
), S = yr(
|
|
4435
|
+
H,
|
|
4436
4436
|
e,
|
|
4437
4437
|
/*$$scope*/
|
|
4438
|
-
e[
|
|
4438
|
+
e[16],
|
|
4439
4439
|
Bt
|
|
4440
|
-
),
|
|
4440
|
+
), A = S || Ki();
|
|
4441
4441
|
let _ = (
|
|
4442
4442
|
/*modaltitle*/
|
|
4443
4443
|
e[1] && Ct(e)
|
|
4444
|
-
),
|
|
4444
|
+
), E = (
|
|
4445
4445
|
/*hascancelbutton*/
|
|
4446
4446
|
e[2] && Pt(e)
|
|
4447
4447
|
);
|
|
4448
4448
|
return {
|
|
4449
4449
|
c() {
|
|
4450
|
-
t = I("div"), r = I("div"), n = I("span"),
|
|
4450
|
+
t = I("div"), r = I("div"), n = I("span"), A && A.c(), i = ae(), _ && _.c(), o = ae(), s = I("div"), a = ae(), l = I("div"), E && E.c(), u = ae(), h = I("button"), c = ve(f), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4451
4451
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4452
4452
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4453
4453
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4454
4454
|
},
|
|
4455
|
-
m(
|
|
4456
|
-
ne(
|
|
4457
|
-
e[0],
|
|
4455
|
+
m(v, B) {
|
|
4456
|
+
ne(v, t, B), C(t, r), C(r, n), A && A.m(n, null), C(r, i), _ && _.m(r, null), C(r, o), C(r, s), s.innerHTML = /*modaltext*/
|
|
4457
|
+
e[0], C(r, a), C(r, l), E && E.m(l, null), C(l, u), C(l, h), C(h, c), e[20](t), m = !0, y || (b = [
|
|
4458
4458
|
Ne(
|
|
4459
4459
|
n,
|
|
4460
4460
|
"click",
|
|
@@ -4465,58 +4465,66 @@ function Ki(e) {
|
|
|
4465
4465
|
h,
|
|
4466
4466
|
"click",
|
|
4467
4467
|
/*click_handler_1*/
|
|
4468
|
-
e[
|
|
4468
|
+
e[19]
|
|
4469
4469
|
)
|
|
4470
|
-
],
|
|
4470
|
+
], y = !0);
|
|
4471
4471
|
},
|
|
4472
|
-
p(
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
P,
|
|
4472
|
+
p(v, [B]) {
|
|
4473
|
+
S && S.p && (!m || B & /*$$scope*/
|
|
4474
|
+
65536) && xr(
|
|
4476
4475
|
S,
|
|
4477
|
-
|
|
4476
|
+
H,
|
|
4477
|
+
v,
|
|
4478
4478
|
/*$$scope*/
|
|
4479
|
-
|
|
4480
|
-
m ?
|
|
4481
|
-
|
|
4479
|
+
v[16],
|
|
4480
|
+
m ? _r(
|
|
4481
|
+
H,
|
|
4482
4482
|
/*$$scope*/
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
) :
|
|
4483
|
+
v[16],
|
|
4484
|
+
B,
|
|
4485
|
+
qi
|
|
4486
|
+
) : Er(
|
|
4487
4487
|
/*$$scope*/
|
|
4488
|
-
|
|
4488
|
+
v[16]
|
|
4489
4489
|
),
|
|
4490
4490
|
Bt
|
|
4491
4491
|
), /*modaltitle*/
|
|
4492
|
-
|
|
4492
|
+
v[1] ? _ ? _.p(v, B) : (_ = Ct(v), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || B & /*modaltext*/
|
|
4493
4493
|
1) && (s.innerHTML = /*modaltext*/
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
16) &&
|
|
4497
|
-
|
|
4494
|
+
v[0]), /*hascancelbutton*/
|
|
4495
|
+
v[2] ? E ? E.p(v, B) : (E = Pt(v), E.c(), E.m(l, u)) : E && (E.d(1), E = null), (!m || B & /*$_*/
|
|
4496
|
+
16) && f !== (f = /*$_*/
|
|
4497
|
+
v[4]("confirm") + "") && Ke(c, f);
|
|
4498
4498
|
},
|
|
4499
|
-
i(
|
|
4500
|
-
m || (Lt(
|
|
4499
|
+
i(v) {
|
|
4500
|
+
m || (Lt(A, v), m = !0);
|
|
4501
4501
|
},
|
|
4502
|
-
o(
|
|
4503
|
-
|
|
4502
|
+
o(v) {
|
|
4503
|
+
Lr(A, v), m = !1;
|
|
4504
4504
|
},
|
|
4505
|
-
d(
|
|
4506
|
-
|
|
4505
|
+
d(v) {
|
|
4506
|
+
v && Z(t), A && A.d(v), _ && _.d(), E && E.d(), e[20](null), y = !1, z(b);
|
|
4507
4507
|
}
|
|
4508
4508
|
};
|
|
4509
4509
|
}
|
|
4510
|
-
function
|
|
4510
|
+
function to(e, t, r) {
|
|
4511
4511
|
let n;
|
|
4512
|
-
|
|
4513
|
-
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 =
|
|
4514
|
-
const
|
|
4512
|
+
vr(e, Xi, (p) => r(4, n = p));
|
|
4513
|
+
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, { modalconfirmdata: f = {} } = t, { lang: c = "en" } = t, { clientstyling: m = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: b = "" } = t, { mbsource: H } = t, S, A = window.navigator.userAgent, _ = Wi(A) !== "PC";
|
|
4514
|
+
const E = () => {
|
|
4515
4515
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4516
|
-
},
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4516
|
+
}, v = (p) => {
|
|
4517
|
+
p === "confirm" && u && S.dispatchEvent(new CustomEvent(
|
|
4518
|
+
u,
|
|
4519
|
+
{
|
|
4520
|
+
detail: f,
|
|
4521
|
+
// payload
|
|
4522
|
+
bubbles: !0,
|
|
4523
|
+
composed: !0
|
|
4524
|
+
}
|
|
4525
|
+
)), p === "cancel" && h && S.dispatchEvent(new CustomEvent(h, { bubbles: !0, composed: !0 })), E();
|
|
4526
|
+
}, B = () => {
|
|
4527
|
+
fetch(b).then((G) => G.json()).then((G) => {
|
|
4520
4528
|
Object.keys(G).forEach((rt) => {
|
|
4521
4529
|
Ht(rt, G[rt]);
|
|
4522
4530
|
});
|
|
@@ -4524,59 +4532,60 @@ function eo(e, t, r) {
|
|
|
4524
4532
|
console.log(G);
|
|
4525
4533
|
});
|
|
4526
4534
|
};
|
|
4527
|
-
Object.keys(At).forEach((
|
|
4528
|
-
Ht(
|
|
4535
|
+
Object.keys(At).forEach((p) => {
|
|
4536
|
+
Ht(p, At[p]);
|
|
4529
4537
|
});
|
|
4530
|
-
const
|
|
4531
|
-
|
|
4538
|
+
const se = () => {
|
|
4539
|
+
zi(c);
|
|
4532
4540
|
};
|
|
4533
|
-
|
|
4541
|
+
Cr(() => () => {
|
|
4534
4542
|
});
|
|
4535
|
-
const
|
|
4536
|
-
function
|
|
4537
|
-
Me[
|
|
4538
|
-
S =
|
|
4543
|
+
const mr = () => v("cancel"), pr = () => v("confirm");
|
|
4544
|
+
function dr(p) {
|
|
4545
|
+
Me[p ? "unshift" : "push"](() => {
|
|
4546
|
+
S = p, r(3, S);
|
|
4539
4547
|
});
|
|
4540
4548
|
}
|
|
4541
|
-
return e.$$set = (
|
|
4542
|
-
"modaltext" in
|
|
4549
|
+
return e.$$set = (p) => {
|
|
4550
|
+
"modaltext" in p && r(0, s = p.modaltext), "modaltitle" in p && r(1, a = p.modaltitle), "hascancelbutton" in p && r(2, l = p.hascancelbutton), "modalconfirmevent" in p && r(8, u = p.modalconfirmevent), "modalcancelevent" in p && r(9, h = p.modalcancelevent), "modalconfirmdata" in p && r(10, f = p.modalconfirmdata), "lang" in p && r(11, c = p.lang), "clientstyling" in p && r(12, m = p.clientstyling), "clientstylingurl" in p && r(13, y = p.clientstylingurl), "translationurl" in p && r(14, b = p.translationurl), "mbsource" in p && r(15, H = p.mbsource), "$$scope" in p && r(16, o = p.$$scope);
|
|
4543
4551
|
}, e.$$.update = () => {
|
|
4544
4552
|
e.$$.dirty & /*modaltext, lang*/
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4553
|
+
2049 && s && c && se(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4554
|
+
4104 && m && S && Zi(S, m), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4555
|
+
8200 && y && S && Qi(S, y), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4556
|
+
32776 && H && S && Ji(S, `${H}.Style`), e.$$.dirty & /*translationurl*/
|
|
4557
|
+
16384 && b && B();
|
|
4550
4558
|
}, [
|
|
4551
4559
|
s,
|
|
4552
4560
|
a,
|
|
4553
4561
|
l,
|
|
4554
4562
|
S,
|
|
4555
4563
|
n,
|
|
4556
|
-
H,
|
|
4557
4564
|
_,
|
|
4558
|
-
|
|
4565
|
+
E,
|
|
4566
|
+
v,
|
|
4559
4567
|
u,
|
|
4560
4568
|
h,
|
|
4561
|
-
c,
|
|
4562
4569
|
f,
|
|
4570
|
+
c,
|
|
4563
4571
|
m,
|
|
4564
|
-
|
|
4565
|
-
|
|
4572
|
+
y,
|
|
4573
|
+
b,
|
|
4574
|
+
H,
|
|
4566
4575
|
o,
|
|
4567
4576
|
i,
|
|
4568
|
-
se,
|
|
4569
4577
|
mr,
|
|
4570
|
-
pr
|
|
4578
|
+
pr,
|
|
4579
|
+
dr
|
|
4571
4580
|
];
|
|
4572
4581
|
}
|
|
4573
|
-
class
|
|
4582
|
+
class ro extends Fr {
|
|
4574
4583
|
constructor(t) {
|
|
4575
|
-
super(),
|
|
4584
|
+
super(), Ur(
|
|
4576
4585
|
this,
|
|
4577
4586
|
t,
|
|
4587
|
+
to,
|
|
4578
4588
|
eo,
|
|
4579
|
-
Ki,
|
|
4580
4589
|
It,
|
|
4581
4590
|
{
|
|
4582
4591
|
modaltext: 0,
|
|
@@ -4584,13 +4593,14 @@ class to extends Dr {
|
|
|
4584
4593
|
hascancelbutton: 2,
|
|
4585
4594
|
modalconfirmevent: 8,
|
|
4586
4595
|
modalcancelevent: 9,
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4596
|
+
modalconfirmdata: 10,
|
|
4597
|
+
lang: 11,
|
|
4598
|
+
clientstyling: 12,
|
|
4599
|
+
clientstylingurl: 13,
|
|
4600
|
+
translationurl: 14,
|
|
4601
|
+
mbsource: 15
|
|
4592
4602
|
},
|
|
4593
|
-
|
|
4603
|
+
Yi
|
|
4594
4604
|
);
|
|
4595
4605
|
}
|
|
4596
4606
|
get modaltext() {
|
|
@@ -4623,38 +4633,44 @@ class to extends Dr {
|
|
|
4623
4633
|
set modalcancelevent(t) {
|
|
4624
4634
|
this.$$set({ modalcancelevent: t }), O();
|
|
4625
4635
|
}
|
|
4626
|
-
get
|
|
4636
|
+
get modalconfirmdata() {
|
|
4627
4637
|
return this.$$.ctx[10];
|
|
4628
4638
|
}
|
|
4639
|
+
set modalconfirmdata(t) {
|
|
4640
|
+
this.$$set({ modalconfirmdata: t }), O();
|
|
4641
|
+
}
|
|
4642
|
+
get lang() {
|
|
4643
|
+
return this.$$.ctx[11];
|
|
4644
|
+
}
|
|
4629
4645
|
set lang(t) {
|
|
4630
4646
|
this.$$set({ lang: t }), O();
|
|
4631
4647
|
}
|
|
4632
4648
|
get clientstyling() {
|
|
4633
|
-
return this.$$.ctx[
|
|
4649
|
+
return this.$$.ctx[12];
|
|
4634
4650
|
}
|
|
4635
4651
|
set clientstyling(t) {
|
|
4636
4652
|
this.$$set({ clientstyling: t }), O();
|
|
4637
4653
|
}
|
|
4638
4654
|
get clientstylingurl() {
|
|
4639
|
-
return this.$$.ctx[
|
|
4655
|
+
return this.$$.ctx[13];
|
|
4640
4656
|
}
|
|
4641
4657
|
set clientstylingurl(t) {
|
|
4642
4658
|
this.$$set({ clientstylingurl: t }), O();
|
|
4643
4659
|
}
|
|
4644
4660
|
get translationurl() {
|
|
4645
|
-
return this.$$.ctx[
|
|
4661
|
+
return this.$$.ctx[14];
|
|
4646
4662
|
}
|
|
4647
4663
|
set translationurl(t) {
|
|
4648
4664
|
this.$$set({ translationurl: t }), O();
|
|
4649
4665
|
}
|
|
4650
4666
|
get mbsource() {
|
|
4651
|
-
return this.$$.ctx[
|
|
4667
|
+
return this.$$.ctx[15];
|
|
4652
4668
|
}
|
|
4653
4669
|
set mbsource(t) {
|
|
4654
4670
|
this.$$set({ mbsource: t }), O();
|
|
4655
4671
|
}
|
|
4656
4672
|
}
|
|
4657
|
-
|
|
4673
|
+
Dr(ro, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, modalconfirmdata: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4658
4674
|
export {
|
|
4659
|
-
|
|
4675
|
+
ro as P
|
|
4660
4676
|
};
|