@everymatrix/casino-tournaments-details 1.77.26 → 1.77.27
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/{CasinoTournamentsDetails-UcM6ve2p.js → CasinoTournamentsDetails-B3OQdvCO.js} +687 -666
- package/components/{CasinoTournamentsDetails-DgPqdHqi.js → CasinoTournamentsDetails-BvYvOnXh.js} +712 -691
- package/components/CasinoTournamentsDetails-Su97SO8S.cjs +18 -0
- package/es2015/casino-tournaments-details.cjs +1 -1
- package/es2015/casino-tournaments-details.js +1 -1
- package/esnext/casino-tournaments-details.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsDetails-C0IAABZ3.cjs +0 -18
package/components/{CasinoTournamentsDetails-UcM6ve2p.js → CasinoTournamentsDetails-B3OQdvCO.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function _t(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(_t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ee(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function xt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function er(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function tr(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function er(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return e &&
|
|
30
|
+
function rr(e) {
|
|
31
|
+
return e && ee(e.destroy) ? e.destroy : S;
|
|
32
32
|
}
|
|
33
33
|
function B(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function nr(e, t, r) {
|
|
37
|
+
const n = ir(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = I("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ir(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,14 +50,14 @@ function nr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function or(e, t) {
|
|
54
54
|
return B(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function k(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
63
|
function C(e) {
|
|
@@ -69,26 +69,26 @@ function I(e) {
|
|
|
69
69
|
function fe(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Et(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function St() {
|
|
76
|
+
return Et(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function sr(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function v(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ar(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function ur(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function hr(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function ur(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let J;
|
|
101
|
+
function Q(e) {
|
|
102
|
+
J = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function lr() {
|
|
105
|
+
if (!J)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return J;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function fr(e) {
|
|
110
|
+
lr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const R = [],
|
|
112
|
+
const R = [], Pe = [];
|
|
113
113
|
let D = [];
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
114
|
+
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Oe = !1;
|
|
116
|
+
function pr() {
|
|
117
|
+
Oe || (Oe = !0, cr.then(O));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ie(e) {
|
|
120
120
|
D.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const xe = /* @__PURE__ */ new Set();
|
|
123
123
|
let M = 0;
|
|
124
124
|
function O() {
|
|
125
125
|
if (M !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = J;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
130
|
for (; M < R.length; ) {
|
|
131
131
|
const t = R[M];
|
|
132
|
-
M++,
|
|
132
|
+
M++, Q(t), dr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw R.length = 0, M = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
137
|
+
for (Q(null), R.length = 0, M = 0; Pe.length; )
|
|
138
|
+
Pe.pop()();
|
|
139
139
|
for (let t = 0; t < D.length; t += 1) {
|
|
140
140
|
const r = D[t];
|
|
141
|
-
|
|
141
|
+
xe.has(r) || (xe.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
D.length = 0;
|
|
144
144
|
} while (R.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
for (; Ye.length; )
|
|
146
|
+
Ye.pop()();
|
|
147
|
+
Oe = !1, xe.clear(), Q(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function dr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), K(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function mr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const br = /* @__PURE__ */ new Set();
|
|
161
|
+
function vr(e, t) {
|
|
162
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
164
|
function gr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Ie(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(_t).filter(ee);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Ie);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function yr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (mr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (R.push(e),
|
|
175
|
+
function _r(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (R.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
-
const h =
|
|
180
|
-
|
|
179
|
+
const h = J;
|
|
180
|
+
Q(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: S,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Je(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || h.$$.root
|
|
201
201
|
};
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let l = !1;
|
|
204
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
205
|
-
const p =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l &&
|
|
207
|
-
}) : [], u.update(), l = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
205
|
+
const p = b.length ? b[0] : c;
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && _r(e, f)), c;
|
|
207
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
209
|
+
const f = ar(t.target);
|
|
210
210
|
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && vr(e.$$.fragment), gr(e, t.target, t.anchor), O();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
Q(h);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Tt;
|
|
218
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
266
|
m: function(h, u) {
|
|
267
|
-
|
|
267
|
+
k(h, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(h) {
|
|
270
270
|
h && C(o);
|
|
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = hr(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function ae(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
364
|
+
function Er(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends Tt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function _r(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
s, s;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Sr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class Er {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
yr(this, 1), this.$destroy = S;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class Er {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!ee(r))
|
|
422
422
|
return S;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,12 +431,12 @@ class Er {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
439
|
-
function
|
|
437
|
+
const Tr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
439
|
+
function wr(e, t) {
|
|
440
440
|
if (e) {
|
|
441
441
|
const r = document.createElement("style");
|
|
442
442
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -451,7 +451,7 @@ function Hr(e, t) {
|
|
|
451
451
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Br(e, t, r) {
|
|
455
455
|
if (window.emMessageBus) {
|
|
456
456
|
const n = document.createElement("style");
|
|
457
457
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -473,43 +473,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
473
473
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
474
474
|
PERFORMANCE OF THIS SOFTWARE.
|
|
475
475
|
***************************************************************************** */
|
|
476
|
-
var
|
|
477
|
-
return
|
|
476
|
+
var Ce = function(e, t) {
|
|
477
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
478
478
|
r.__proto__ = n;
|
|
479
479
|
} || function(r, n) {
|
|
480
480
|
for (var i in n)
|
|
481
481
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
482
|
-
},
|
|
482
|
+
}, Ce(e, t);
|
|
483
483
|
};
|
|
484
|
-
function
|
|
484
|
+
function te(e, t) {
|
|
485
485
|
if (typeof t != "function" && t !== null)
|
|
486
486
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
487
|
-
|
|
487
|
+
Ce(e, t);
|
|
488
488
|
function r() {
|
|
489
489
|
this.constructor = e;
|
|
490
490
|
}
|
|
491
491
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
492
492
|
}
|
|
493
|
-
|
|
494
|
-
return b = Object.assign || function(t) {
|
|
495
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
496
|
-
r = arguments[n];
|
|
497
|
-
for (var o in r)
|
|
498
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
499
|
-
}
|
|
500
|
-
return t;
|
|
501
|
-
}, b.apply(this, arguments);
|
|
502
|
-
};
|
|
503
|
-
function Br(e, t) {
|
|
504
|
-
var r = {};
|
|
505
|
-
for (var n in e)
|
|
506
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
507
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
508
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
509
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
510
|
-
return r;
|
|
511
|
-
}
|
|
512
|
-
function Ie(e) {
|
|
493
|
+
function Ne(e) {
|
|
513
494
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
514
495
|
if (r)
|
|
515
496
|
return r.call(e);
|
|
@@ -521,7 +502,7 @@ function Ie(e) {
|
|
|
521
502
|
};
|
|
522
503
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
523
504
|
}
|
|
524
|
-
function
|
|
505
|
+
function Le(e, t) {
|
|
525
506
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
526
507
|
if (!r)
|
|
527
508
|
return e;
|
|
@@ -541,8 +522,8 @@ function Ce(e, t) {
|
|
|
541
522
|
}
|
|
542
523
|
return o;
|
|
543
524
|
}
|
|
544
|
-
function
|
|
545
|
-
if (
|
|
525
|
+
function Me(e, t, r) {
|
|
526
|
+
if (arguments.length === 2)
|
|
546
527
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
547
528
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
548
529
|
return e.concat(o || t);
|
|
@@ -550,13 +531,13 @@ function U(e, t, r) {
|
|
|
550
531
|
function H(e) {
|
|
551
532
|
return typeof e == "function";
|
|
552
533
|
}
|
|
553
|
-
function
|
|
534
|
+
function wt(e) {
|
|
554
535
|
var t = function(n) {
|
|
555
536
|
Error.call(n), n.stack = new Error().stack;
|
|
556
537
|
}, r = e(t);
|
|
557
538
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
558
539
|
}
|
|
559
|
-
var
|
|
540
|
+
var Ee = wt(function(e) {
|
|
560
541
|
return function(r) {
|
|
561
542
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
562
543
|
` + r.map(function(n, i) {
|
|
@@ -565,13 +546,13 @@ var xe = St(function(e) {
|
|
|
565
546
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
566
547
|
};
|
|
567
548
|
});
|
|
568
|
-
function
|
|
549
|
+
function $e(e, t) {
|
|
569
550
|
if (e) {
|
|
570
551
|
var r = e.indexOf(t);
|
|
571
552
|
0 <= r && e.splice(r, 1);
|
|
572
553
|
}
|
|
573
554
|
}
|
|
574
|
-
var
|
|
555
|
+
var me = function() {
|
|
575
556
|
function e(t) {
|
|
576
557
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
577
558
|
}
|
|
@@ -583,12 +564,12 @@ var de = function() {
|
|
|
583
564
|
if (s)
|
|
584
565
|
if (this._parentage = null, Array.isArray(s))
|
|
585
566
|
try {
|
|
586
|
-
for (var a =
|
|
567
|
+
for (var a = Ne(s), h = a.next(); !h.done; h = a.next()) {
|
|
587
568
|
var u = h.value;
|
|
588
569
|
u.remove(this);
|
|
589
570
|
}
|
|
590
|
-
} catch (
|
|
591
|
-
t = { error:
|
|
571
|
+
} catch (g) {
|
|
572
|
+
t = { error: g };
|
|
592
573
|
} finally {
|
|
593
574
|
try {
|
|
594
575
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -603,26 +584,26 @@ var de = function() {
|
|
|
603
584
|
if (H(l))
|
|
604
585
|
try {
|
|
605
586
|
l();
|
|
606
|
-
} catch (
|
|
607
|
-
o =
|
|
587
|
+
} catch (g) {
|
|
588
|
+
o = g instanceof Ee ? g.errors : [g];
|
|
608
589
|
}
|
|
609
590
|
var f = this._finalizers;
|
|
610
591
|
if (f) {
|
|
611
592
|
this._finalizers = null;
|
|
612
593
|
try {
|
|
613
|
-
for (var c =
|
|
614
|
-
var p =
|
|
594
|
+
for (var c = Ne(f), b = c.next(); !b.done; b = c.next()) {
|
|
595
|
+
var p = b.value;
|
|
615
596
|
try {
|
|
616
|
-
|
|
617
|
-
} catch (
|
|
618
|
-
o = o ?? [],
|
|
597
|
+
qe(p);
|
|
598
|
+
} catch (g) {
|
|
599
|
+
o = o ?? [], g instanceof Ee ? o = Me(Me([], Le(o)), Le(g.errors)) : o.push(g);
|
|
619
600
|
}
|
|
620
601
|
}
|
|
621
|
-
} catch (
|
|
622
|
-
n = { error:
|
|
602
|
+
} catch (g) {
|
|
603
|
+
n = { error: g };
|
|
623
604
|
} finally {
|
|
624
605
|
try {
|
|
625
|
-
|
|
606
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
626
607
|
} finally {
|
|
627
608
|
if (n)
|
|
628
609
|
throw n.error;
|
|
@@ -630,13 +611,13 @@ var de = function() {
|
|
|
630
611
|
}
|
|
631
612
|
}
|
|
632
613
|
if (o)
|
|
633
|
-
throw new
|
|
614
|
+
throw new Ee(o);
|
|
634
615
|
}
|
|
635
616
|
}, e.prototype.add = function(t) {
|
|
636
617
|
var r;
|
|
637
618
|
if (t && t !== this)
|
|
638
619
|
if (this.closed)
|
|
639
|
-
|
|
620
|
+
qe(t);
|
|
640
621
|
else {
|
|
641
622
|
if (t instanceof e) {
|
|
642
623
|
if (t.closed || t._hasParent(this))
|
|
@@ -653,56 +634,52 @@ var de = function() {
|
|
|
653
634
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
654
635
|
}, e.prototype._removeParent = function(t) {
|
|
655
636
|
var r = this._parentage;
|
|
656
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
637
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
657
638
|
}, e.prototype.remove = function(t) {
|
|
658
639
|
var r = this._finalizers;
|
|
659
|
-
r &&
|
|
640
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
660
641
|
}, e.EMPTY = function() {
|
|
661
642
|
var t = new e();
|
|
662
643
|
return t.closed = !0, t;
|
|
663
644
|
}(), e;
|
|
664
|
-
}(),
|
|
665
|
-
function
|
|
666
|
-
return e instanceof
|
|
645
|
+
}(), Ht = me.EMPTY;
|
|
646
|
+
function Bt(e) {
|
|
647
|
+
return e instanceof me || e && "closed" in e && H(e.remove) && H(e.add) && H(e.unsubscribe);
|
|
667
648
|
}
|
|
668
|
-
function
|
|
649
|
+
function qe(e) {
|
|
669
650
|
H(e) ? e() : e.unsubscribe();
|
|
670
651
|
}
|
|
671
|
-
var
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
Promise: void 0,
|
|
675
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
676
|
-
useDeprecatedNextContext: !1
|
|
677
|
-
}, Ar = {
|
|
652
|
+
var Ar = {
|
|
653
|
+
Promise: void 0
|
|
654
|
+
}, Pr = {
|
|
678
655
|
setTimeout: function(e, t) {
|
|
679
656
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
680
657
|
r[n - 2] = arguments[n];
|
|
681
|
-
return setTimeout.apply(void 0,
|
|
658
|
+
return setTimeout.apply(void 0, Me([e, t], Le(r)));
|
|
682
659
|
},
|
|
683
660
|
clearTimeout: function(e) {
|
|
684
661
|
return clearTimeout(e);
|
|
685
662
|
},
|
|
686
663
|
delegate: void 0
|
|
687
664
|
};
|
|
688
|
-
function
|
|
689
|
-
|
|
665
|
+
function Or(e) {
|
|
666
|
+
Pr.setTimeout(function() {
|
|
690
667
|
throw e;
|
|
691
668
|
});
|
|
692
669
|
}
|
|
693
|
-
function
|
|
670
|
+
function Ke() {
|
|
694
671
|
}
|
|
695
672
|
function ue(e) {
|
|
696
673
|
e();
|
|
697
674
|
}
|
|
698
|
-
var
|
|
699
|
-
|
|
675
|
+
var At = function(e) {
|
|
676
|
+
te(t, e);
|
|
700
677
|
function t(r) {
|
|
701
678
|
var n = e.call(this) || this;
|
|
702
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
679
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = Nr, n;
|
|
703
680
|
}
|
|
704
681
|
return t.create = function(r, n, i) {
|
|
705
|
-
return new
|
|
682
|
+
return new Re(r, n, i);
|
|
706
683
|
}, t.prototype.next = function(r) {
|
|
707
684
|
this.isStopped || this._next(r);
|
|
708
685
|
}, t.prototype.error = function(r) {
|
|
@@ -726,11 +703,7 @@ var Bt = function(e) {
|
|
|
726
703
|
this.unsubscribe();
|
|
727
704
|
}
|
|
728
705
|
}, t;
|
|
729
|
-
}(
|
|
730
|
-
function _e(e, t) {
|
|
731
|
-
return Or.call(e, t);
|
|
732
|
-
}
|
|
733
|
-
var Ir = function() {
|
|
706
|
+
}(me), Ir = function() {
|
|
734
707
|
function e(t) {
|
|
735
708
|
this.partialObserver = t;
|
|
736
709
|
}
|
|
@@ -761,41 +734,29 @@ var Ir = function() {
|
|
|
761
734
|
oe(r);
|
|
762
735
|
}
|
|
763
736
|
}, e;
|
|
764
|
-
}(),
|
|
765
|
-
|
|
737
|
+
}(), Re = function(e) {
|
|
738
|
+
te(t, e);
|
|
766
739
|
function t(r, n, i) {
|
|
767
740
|
var o = e.call(this) || this, s;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
};
|
|
774
|
-
else {
|
|
775
|
-
var a;
|
|
776
|
-
o && wt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
777
|
-
return o.unsubscribe();
|
|
778
|
-
}, s = {
|
|
779
|
-
next: r.next && _e(r.next, a),
|
|
780
|
-
error: r.error && _e(r.error, a),
|
|
781
|
-
complete: r.complete && _e(r.complete, a)
|
|
782
|
-
}) : s = r;
|
|
783
|
-
}
|
|
784
|
-
return o.destination = new Ir(s), o;
|
|
741
|
+
return H(r) || !r ? s = {
|
|
742
|
+
next: r ?? void 0,
|
|
743
|
+
error: n ?? void 0,
|
|
744
|
+
complete: i ?? void 0
|
|
745
|
+
} : s = r, o.destination = new Ir(s), o;
|
|
785
746
|
}
|
|
786
747
|
return t;
|
|
787
|
-
}(
|
|
748
|
+
}(At);
|
|
788
749
|
function oe(e) {
|
|
789
|
-
|
|
750
|
+
Or(e);
|
|
790
751
|
}
|
|
791
752
|
function Cr(e) {
|
|
792
753
|
throw e;
|
|
793
754
|
}
|
|
794
755
|
var Nr = {
|
|
795
756
|
closed: !0,
|
|
796
|
-
next:
|
|
757
|
+
next: Ke,
|
|
797
758
|
error: Cr,
|
|
798
|
-
complete:
|
|
759
|
+
complete: Ke
|
|
799
760
|
}, Lr = function() {
|
|
800
761
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
801
762
|
}();
|
|
@@ -809,7 +770,7 @@ function $r(e) {
|
|
|
809
770
|
}, r);
|
|
810
771
|
};
|
|
811
772
|
}
|
|
812
|
-
var
|
|
773
|
+
var et = function() {
|
|
813
774
|
function e(t) {
|
|
814
775
|
t && (this._subscribe = t);
|
|
815
776
|
}
|
|
@@ -817,7 +778,7 @@ var qe = function() {
|
|
|
817
778
|
var r = new e();
|
|
818
779
|
return r.source = this, r.operator = t, r;
|
|
819
780
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
820
|
-
var i = this, o = Dr(t) ? t : new
|
|
781
|
+
var i = this, o = Dr(t) ? t : new Re(t, r, n);
|
|
821
782
|
return ue(function() {
|
|
822
783
|
var s = i, a = s.operator, h = s.source;
|
|
823
784
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -830,8 +791,8 @@ var qe = function() {
|
|
|
830
791
|
}
|
|
831
792
|
}, e.prototype.forEach = function(t, r) {
|
|
832
793
|
var n = this;
|
|
833
|
-
return r =
|
|
834
|
-
var s = new
|
|
794
|
+
return r = tt(r), new r(function(i, o) {
|
|
795
|
+
var s = new Re({
|
|
835
796
|
next: function(a) {
|
|
836
797
|
try {
|
|
837
798
|
t(a);
|
|
@@ -855,7 +816,7 @@ var qe = function() {
|
|
|
855
816
|
return $r(t)(this);
|
|
856
817
|
}, e.prototype.toPromise = function(t) {
|
|
857
818
|
var r = this;
|
|
858
|
-
return t =
|
|
819
|
+
return t = tt(t), new t(function(n, i) {
|
|
859
820
|
var o;
|
|
860
821
|
r.subscribe(function(s) {
|
|
861
822
|
return o = s;
|
|
@@ -869,28 +830,28 @@ var qe = function() {
|
|
|
869
830
|
return new e(t);
|
|
870
831
|
}, e;
|
|
871
832
|
}();
|
|
872
|
-
function
|
|
833
|
+
function tt(e) {
|
|
873
834
|
var t;
|
|
874
|
-
return (t = e ??
|
|
835
|
+
return (t = e ?? Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
875
836
|
}
|
|
876
837
|
function Rr(e) {
|
|
877
838
|
return e && H(e.next) && H(e.error) && H(e.complete);
|
|
878
839
|
}
|
|
879
840
|
function Dr(e) {
|
|
880
|
-
return e && e instanceof
|
|
841
|
+
return e && e instanceof At || Rr(e) && Bt(e);
|
|
881
842
|
}
|
|
882
|
-
var Ur =
|
|
843
|
+
var Ur = wt(function(e) {
|
|
883
844
|
return function() {
|
|
884
845
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
885
846
|
};
|
|
886
|
-
}),
|
|
887
|
-
|
|
847
|
+
}), Pt = function(e) {
|
|
848
|
+
te(t, e);
|
|
888
849
|
function t() {
|
|
889
850
|
var r = e.call(this) || this;
|
|
890
851
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
891
852
|
}
|
|
892
853
|
return t.prototype.lift = function(r) {
|
|
893
|
-
var n = new
|
|
854
|
+
var n = new rt(this, this);
|
|
894
855
|
return n.operator = r, n;
|
|
895
856
|
}, t.prototype._throwIfClosed = function() {
|
|
896
857
|
if (this.closed)
|
|
@@ -902,7 +863,7 @@ var Ur = St(function(e) {
|
|
|
902
863
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
903
864
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
904
865
|
try {
|
|
905
|
-
for (var s =
|
|
866
|
+
for (var s = Ne(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
906
867
|
var h = a.value;
|
|
907
868
|
h.next(r);
|
|
908
869
|
}
|
|
@@ -951,20 +912,20 @@ var Ur = St(function(e) {
|
|
|
951
912
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
952
913
|
}, t.prototype._innerSubscribe = function(r) {
|
|
953
914
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
954
|
-
return o || s ?
|
|
955
|
-
n.currentObservers = null,
|
|
915
|
+
return o || s ? Ht : (this.currentObservers = null, a.push(r), new me(function() {
|
|
916
|
+
n.currentObservers = null, $e(a, r);
|
|
956
917
|
}));
|
|
957
918
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
958
919
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
959
920
|
i ? r.error(o) : s && r.complete();
|
|
960
921
|
}, t.prototype.asObservable = function() {
|
|
961
|
-
var r = new
|
|
922
|
+
var r = new et();
|
|
962
923
|
return r.source = this, r;
|
|
963
924
|
}, t.create = function(r, n) {
|
|
964
|
-
return new
|
|
925
|
+
return new rt(r, n);
|
|
965
926
|
}, t;
|
|
966
|
-
}(
|
|
967
|
-
|
|
927
|
+
}(et), rt = function(e) {
|
|
928
|
+
te(t, e);
|
|
968
929
|
function t(r, n) {
|
|
969
930
|
var i = e.call(this) || this;
|
|
970
931
|
return i.destination = r, i.source = n, i;
|
|
@@ -980,17 +941,17 @@ var Ur = St(function(e) {
|
|
|
980
941
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
981
942
|
}, t.prototype._subscribe = function(r) {
|
|
982
943
|
var n, i;
|
|
983
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
944
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
|
|
984
945
|
}, t;
|
|
985
|
-
}(
|
|
946
|
+
}(Pt), Ot = {
|
|
986
947
|
now: function() {
|
|
987
|
-
return (
|
|
948
|
+
return (Ot.delegate || Date).now();
|
|
988
949
|
},
|
|
989
950
|
delegate: void 0
|
|
990
951
|
}, Gr = function(e) {
|
|
991
|
-
|
|
952
|
+
te(t, e);
|
|
992
953
|
function t(r, n, i) {
|
|
993
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
954
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
994
955
|
var o = e.call(this) || this;
|
|
995
956
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
996
957
|
}
|
|
@@ -1010,24 +971,24 @@ var Ur = St(function(e) {
|
|
|
1010
971
|
u && o.splice(0, u + 1);
|
|
1011
972
|
}
|
|
1012
973
|
}, t;
|
|
1013
|
-
}(
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
974
|
+
}(Pt);
|
|
975
|
+
const nt = [], it = {}, Fr = (e, t = 0) => {
|
|
976
|
+
if (nt.indexOf(e) == -1) {
|
|
1016
977
|
const r = new Gr(t);
|
|
1017
|
-
|
|
978
|
+
it[e] = r, nt.push(e);
|
|
1018
979
|
}
|
|
1019
|
-
return
|
|
980
|
+
return it[e];
|
|
1020
981
|
}, $ = [];
|
|
1021
982
|
function jr(e, t) {
|
|
1022
983
|
return {
|
|
1023
|
-
subscribe:
|
|
984
|
+
subscribe: be(e, t).subscribe
|
|
1024
985
|
};
|
|
1025
986
|
}
|
|
1026
|
-
function
|
|
987
|
+
function be(e, t = S) {
|
|
1027
988
|
let r;
|
|
1028
989
|
const n = /* @__PURE__ */ new Set();
|
|
1029
990
|
function i(a) {
|
|
1030
|
-
if (
|
|
991
|
+
if (xt(e, a) && (e = a, r)) {
|
|
1031
992
|
const h = !$.length;
|
|
1032
993
|
for (const u of n)
|
|
1033
994
|
u[1](), $.push(u, e);
|
|
@@ -1049,7 +1010,7 @@ function me(e, t = S) {
|
|
|
1049
1010
|
}
|
|
1050
1011
|
return { set: i, update: o, subscribe: s };
|
|
1051
1012
|
}
|
|
1052
|
-
function
|
|
1013
|
+
function V(e, t, r) {
|
|
1053
1014
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1054
1015
|
if (!i.every(Boolean))
|
|
1055
1016
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1063,20 +1024,20 @@ function X(e, t, r) {
|
|
|
1063
1024
|
return;
|
|
1064
1025
|
f();
|
|
1065
1026
|
const p = t(n ? u[0] : u, s, a);
|
|
1066
|
-
o ? s(p) : f =
|
|
1067
|
-
},
|
|
1068
|
-
(p,
|
|
1027
|
+
o ? s(p) : f = ee(p) ? p : S;
|
|
1028
|
+
}, b = i.map(
|
|
1029
|
+
(p, g) => tr(
|
|
1069
1030
|
p,
|
|
1070
1031
|
(E) => {
|
|
1071
|
-
u[
|
|
1032
|
+
u[g] = E, l &= ~(1 << g), h && c();
|
|
1072
1033
|
},
|
|
1073
1034
|
() => {
|
|
1074
|
-
l |= 1 <<
|
|
1035
|
+
l |= 1 << g;
|
|
1075
1036
|
}
|
|
1076
1037
|
)
|
|
1077
1038
|
);
|
|
1078
1039
|
return h = !0, c(), function() {
|
|
1079
|
-
|
|
1040
|
+
K(b), f(), h = !1;
|
|
1080
1041
|
};
|
|
1081
1042
|
});
|
|
1082
1043
|
}
|
|
@@ -1100,29 +1061,29 @@ function Qr(e) {
|
|
|
1100
1061
|
function Jr(e) {
|
|
1101
1062
|
return Array.isArray(e) ? [] : {};
|
|
1102
1063
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1064
|
+
function Y(e, t) {
|
|
1065
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? U(Jr(e), e, t) : e;
|
|
1105
1066
|
}
|
|
1106
1067
|
function Yr(e, t, r) {
|
|
1107
1068
|
return e.concat(t).map(function(n) {
|
|
1108
|
-
return
|
|
1069
|
+
return Y(n, r);
|
|
1109
1070
|
});
|
|
1110
1071
|
}
|
|
1111
1072
|
function qr(e, t) {
|
|
1112
1073
|
if (!t.customMerge)
|
|
1113
|
-
return
|
|
1074
|
+
return U;
|
|
1114
1075
|
var r = t.customMerge(e);
|
|
1115
|
-
return typeof r == "function" ? r :
|
|
1076
|
+
return typeof r == "function" ? r : U;
|
|
1116
1077
|
}
|
|
1117
1078
|
function Kr(e) {
|
|
1118
1079
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1119
1080
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1120
1081
|
}) : [];
|
|
1121
1082
|
}
|
|
1122
|
-
function
|
|
1083
|
+
function ot(e) {
|
|
1123
1084
|
return Object.keys(e).concat(Kr(e));
|
|
1124
1085
|
}
|
|
1125
|
-
function
|
|
1086
|
+
function It(e, t) {
|
|
1126
1087
|
try {
|
|
1127
1088
|
return t in e;
|
|
1128
1089
|
} catch {
|
|
@@ -1130,129 +1091,179 @@ function Ot(e, t) {
|
|
|
1130
1091
|
}
|
|
1131
1092
|
}
|
|
1132
1093
|
function en(e, t) {
|
|
1133
|
-
return
|
|
1094
|
+
return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1134
1095
|
}
|
|
1135
1096
|
function tn(e, t, r) {
|
|
1136
1097
|
var n = {};
|
|
1137
|
-
return r.isMergeableObject(e) &&
|
|
1138
|
-
n[i] =
|
|
1139
|
-
}),
|
|
1140
|
-
en(e, i) || (
|
|
1098
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
1099
|
+
n[i] = Y(e[i], r);
|
|
1100
|
+
}), ot(t).forEach(function(i) {
|
|
1101
|
+
en(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = qr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1141
1102
|
}), n;
|
|
1142
1103
|
}
|
|
1143
|
-
function
|
|
1144
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified =
|
|
1104
|
+
function U(e, t, r) {
|
|
1105
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1145
1106
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1146
|
-
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) :
|
|
1107
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : Y(t, r);
|
|
1147
1108
|
}
|
|
1148
|
-
|
|
1109
|
+
U.all = function(t, r) {
|
|
1149
1110
|
if (!Array.isArray(t))
|
|
1150
1111
|
throw new Error("first argument should be an array");
|
|
1151
1112
|
return t.reduce(function(n, i) {
|
|
1152
|
-
return
|
|
1113
|
+
return U(n, i, r);
|
|
1153
1114
|
}, {});
|
|
1154
1115
|
};
|
|
1155
|
-
var rn =
|
|
1116
|
+
var rn = U, nn = rn;
|
|
1156
1117
|
const on = /* @__PURE__ */ kr(nn);
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1118
|
+
var De = function(e, t) {
|
|
1119
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1120
|
+
r.__proto__ = n;
|
|
1121
|
+
} || function(r, n) {
|
|
1122
|
+
for (var i in n)
|
|
1123
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1124
|
+
}, De(e, t);
|
|
1125
|
+
};
|
|
1126
|
+
function ve(e, t) {
|
|
1127
|
+
if (typeof t != "function" && t !== null)
|
|
1128
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1129
|
+
De(e, t);
|
|
1130
|
+
function r() {
|
|
1131
|
+
this.constructor = e;
|
|
1132
|
+
}
|
|
1133
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1134
|
+
}
|
|
1135
|
+
var w = function() {
|
|
1136
|
+
return w = Object.assign || function(t) {
|
|
1137
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1138
|
+
r = arguments[n];
|
|
1139
|
+
for (var o in r)
|
|
1140
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1141
|
+
}
|
|
1142
|
+
return t;
|
|
1143
|
+
}, w.apply(this, arguments);
|
|
1144
|
+
};
|
|
1145
|
+
function sn(e, t) {
|
|
1146
|
+
var r = {};
|
|
1147
|
+
for (var n in e)
|
|
1148
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1149
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1150
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1151
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1152
|
+
return r;
|
|
1153
|
+
}
|
|
1154
|
+
function Se(e, t, r) {
|
|
1155
|
+
if (r || arguments.length === 2)
|
|
1156
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1157
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1158
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1159
|
+
}
|
|
1160
|
+
function Te(e, t) {
|
|
1161
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1159
1162
|
return i(e, {
|
|
1160
1163
|
cache: r,
|
|
1161
1164
|
serializer: n
|
|
1162
1165
|
});
|
|
1163
1166
|
}
|
|
1164
|
-
function
|
|
1167
|
+
function an(e) {
|
|
1165
1168
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1166
1169
|
}
|
|
1167
|
-
function
|
|
1168
|
-
var i =
|
|
1170
|
+
function un(e, t, r, n) {
|
|
1171
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1169
1172
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1170
1173
|
}
|
|
1171
1174
|
function Ct(e, t, r) {
|
|
1172
1175
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1173
1176
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1174
1177
|
}
|
|
1175
|
-
function
|
|
1178
|
+
function Nt(e, t, r, n, i) {
|
|
1176
1179
|
return r.bind(t, e, n, i);
|
|
1177
1180
|
}
|
|
1178
|
-
function an(e, t) {
|
|
1179
|
-
var r = e.length === 1 ? It : Ct;
|
|
1180
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1181
|
-
}
|
|
1182
|
-
function un(e, t) {
|
|
1183
|
-
return ke(e, this, Ct, t.cache.create(), t.serializer);
|
|
1184
|
-
}
|
|
1185
1181
|
function hn(e, t) {
|
|
1186
|
-
|
|
1182
|
+
var r = e.length === 1 ? un : Ct;
|
|
1183
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
1187
1184
|
}
|
|
1188
|
-
|
|
1189
|
-
return
|
|
1190
|
-
};
|
|
1191
|
-
function Ve() {
|
|
1192
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1185
|
+
function ln(e, t) {
|
|
1186
|
+
return Nt(e, this, Ct, t.cache.create(), t.serializer);
|
|
1193
1187
|
}
|
|
1194
|
-
|
|
1195
|
-
return
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1188
|
+
var fn = function() {
|
|
1189
|
+
return JSON.stringify(arguments);
|
|
1190
|
+
}, cn = (
|
|
1191
|
+
/** @class */
|
|
1192
|
+
function() {
|
|
1193
|
+
function e() {
|
|
1194
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1195
|
+
}
|
|
1196
|
+
return e.prototype.get = function(t) {
|
|
1197
|
+
return this.cache[t];
|
|
1198
|
+
}, e.prototype.set = function(t, r) {
|
|
1199
|
+
this.cache[t] = r;
|
|
1200
|
+
}, e;
|
|
1201
|
+
}()
|
|
1202
|
+
), pn = {
|
|
1201
1203
|
create: function() {
|
|
1202
|
-
return new
|
|
1204
|
+
return new cn();
|
|
1203
1205
|
}
|
|
1204
|
-
},
|
|
1205
|
-
variadic:
|
|
1206
|
-
|
|
1207
|
-
|
|
1206
|
+
}, we = {
|
|
1207
|
+
variadic: ln
|
|
1208
|
+
}, ce = function() {
|
|
1209
|
+
return ce = Object.assign || function(t) {
|
|
1210
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1211
|
+
r = arguments[n];
|
|
1212
|
+
for (var o in r)
|
|
1213
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1214
|
+
}
|
|
1215
|
+
return t;
|
|
1216
|
+
}, ce.apply(this, arguments);
|
|
1217
|
+
};
|
|
1218
|
+
var d;
|
|
1208
1219
|
(function(e) {
|
|
1209
1220
|
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";
|
|
1210
1221
|
})(d || (d = {}));
|
|
1211
|
-
var
|
|
1222
|
+
var y;
|
|
1212
1223
|
(function(e) {
|
|
1213
1224
|
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";
|
|
1214
|
-
})(
|
|
1215
|
-
var
|
|
1225
|
+
})(y || (y = {}));
|
|
1226
|
+
var G;
|
|
1216
1227
|
(function(e) {
|
|
1217
1228
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1218
|
-
})(
|
|
1219
|
-
function
|
|
1220
|
-
return e.type ===
|
|
1221
|
-
}
|
|
1222
|
-
function cn(e) {
|
|
1223
|
-
return e.type === x.argument;
|
|
1229
|
+
})(G || (G = {}));
|
|
1230
|
+
function st(e) {
|
|
1231
|
+
return e.type === y.literal;
|
|
1224
1232
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return e.type ===
|
|
1233
|
+
function dn(e) {
|
|
1234
|
+
return e.type === y.argument;
|
|
1227
1235
|
}
|
|
1228
1236
|
function Lt(e) {
|
|
1229
|
-
return e.type ===
|
|
1237
|
+
return e.type === y.number;
|
|
1230
1238
|
}
|
|
1231
1239
|
function Mt(e) {
|
|
1232
|
-
return e.type ===
|
|
1240
|
+
return e.type === y.date;
|
|
1233
1241
|
}
|
|
1234
1242
|
function $t(e) {
|
|
1235
|
-
return e.type ===
|
|
1243
|
+
return e.type === y.time;
|
|
1236
1244
|
}
|
|
1237
1245
|
function Rt(e) {
|
|
1238
|
-
return e.type ===
|
|
1239
|
-
}
|
|
1240
|
-
function pn(e) {
|
|
1241
|
-
return e.type === x.pound;
|
|
1246
|
+
return e.type === y.select;
|
|
1242
1247
|
}
|
|
1243
1248
|
function Dt(e) {
|
|
1244
|
-
return e.type ===
|
|
1249
|
+
return e.type === y.plural;
|
|
1250
|
+
}
|
|
1251
|
+
function mn(e) {
|
|
1252
|
+
return e.type === y.pound;
|
|
1245
1253
|
}
|
|
1246
1254
|
function Ut(e) {
|
|
1247
|
-
return
|
|
1255
|
+
return e.type === y.tag;
|
|
1248
1256
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1257
|
+
function Gt(e) {
|
|
1258
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1251
1259
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1260
|
+
function Ue(e) {
|
|
1261
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1262
|
+
}
|
|
1263
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1264
|
+
function vn(e) {
|
|
1254
1265
|
var t = {};
|
|
1255
|
-
return e.replace(
|
|
1266
|
+
return e.replace(bn, function(r) {
|
|
1256
1267
|
var n = r.length;
|
|
1257
1268
|
switch (r[0]) {
|
|
1258
1269
|
case "G":
|
|
@@ -1341,11 +1352,21 @@ function mn(e) {
|
|
|
1341
1352
|
return "";
|
|
1342
1353
|
}), t;
|
|
1343
1354
|
}
|
|
1344
|
-
var
|
|
1345
|
-
function
|
|
1355
|
+
var _ = function() {
|
|
1356
|
+
return _ = Object.assign || function(t) {
|
|
1357
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1358
|
+
r = arguments[n];
|
|
1359
|
+
for (var o in r)
|
|
1360
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1361
|
+
}
|
|
1362
|
+
return t;
|
|
1363
|
+
}, _.apply(this, arguments);
|
|
1364
|
+
};
|
|
1365
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1366
|
+
function yn(e) {
|
|
1346
1367
|
if (e.length === 0)
|
|
1347
1368
|
throw new Error("Number skeleton cannot be empty");
|
|
1348
|
-
for (var t = e.split(
|
|
1369
|
+
for (var t = e.split(gn).filter(function(c) {
|
|
1349
1370
|
return c.length > 0;
|
|
1350
1371
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1351
1372
|
var o = i[n], s = o.split("/");
|
|
@@ -1360,17 +1381,17 @@ function gn(e) {
|
|
|
1360
1381
|
}
|
|
1361
1382
|
return r;
|
|
1362
1383
|
}
|
|
1363
|
-
function
|
|
1384
|
+
function _n(e) {
|
|
1364
1385
|
return e.replace(/^(.*?)-/, "");
|
|
1365
1386
|
}
|
|
1366
|
-
var
|
|
1367
|
-
function
|
|
1387
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, xn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
1388
|
+
function ut(e) {
|
|
1368
1389
|
var t = {};
|
|
1369
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1390
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
1370
1391
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1371
1392
|
}), t;
|
|
1372
1393
|
}
|
|
1373
|
-
function
|
|
1394
|
+
function Vt(e) {
|
|
1374
1395
|
switch (e) {
|
|
1375
1396
|
case "sign-auto":
|
|
1376
1397
|
return {
|
|
@@ -1410,7 +1431,7 @@ function kt(e) {
|
|
|
1410
1431
|
};
|
|
1411
1432
|
}
|
|
1412
1433
|
}
|
|
1413
|
-
function
|
|
1434
|
+
function En(e) {
|
|
1414
1435
|
var t;
|
|
1415
1436
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1416
1437
|
notation: "engineering"
|
|
@@ -1418,17 +1439,17 @@ function xn(e) {
|
|
|
1418
1439
|
notation: "scientific"
|
|
1419
1440
|
}, e = e.slice(1)), t) {
|
|
1420
1441
|
var r = e.slice(0, 2);
|
|
1421
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1442
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
1422
1443
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1423
1444
|
t.minimumIntegerDigits = e.length;
|
|
1424
1445
|
}
|
|
1425
1446
|
return t;
|
|
1426
1447
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var t = {}, r =
|
|
1448
|
+
function ht(e) {
|
|
1449
|
+
var t = {}, r = Vt(e);
|
|
1429
1450
|
return r || t;
|
|
1430
1451
|
}
|
|
1431
|
-
function
|
|
1452
|
+
function Sn(e) {
|
|
1432
1453
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1433
1454
|
var i = n[r];
|
|
1434
1455
|
switch (i.stem) {
|
|
@@ -1452,7 +1473,7 @@ function _n(e) {
|
|
|
1452
1473
|
continue;
|
|
1453
1474
|
case "measure-unit":
|
|
1454
1475
|
case "unit":
|
|
1455
|
-
t.style = "unit", t.unit =
|
|
1476
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1456
1477
|
continue;
|
|
1457
1478
|
case "compact-short":
|
|
1458
1479
|
case "K":
|
|
@@ -1463,13 +1484,13 @@ function _n(e) {
|
|
|
1463
1484
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1464
1485
|
continue;
|
|
1465
1486
|
case "scientific":
|
|
1466
|
-
t =
|
|
1467
|
-
return
|
|
1487
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1488
|
+
return _(_({}, h), ht(u));
|
|
1468
1489
|
}, {}));
|
|
1469
1490
|
continue;
|
|
1470
1491
|
case "engineering":
|
|
1471
|
-
t =
|
|
1472
|
-
return
|
|
1492
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1493
|
+
return _(_({}, h), ht(u));
|
|
1473
1494
|
}, {}));
|
|
1474
1495
|
continue;
|
|
1475
1496
|
case "notation-simple":
|
|
@@ -1514,41 +1535,41 @@ function _n(e) {
|
|
|
1514
1535
|
case "integer-width":
|
|
1515
1536
|
if (i.options.length > 1)
|
|
1516
1537
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1517
|
-
i.options[0].replace(
|
|
1538
|
+
i.options[0].replace(xn, function(h, u, l, f, c, b) {
|
|
1518
1539
|
if (u)
|
|
1519
1540
|
t.minimumIntegerDigits = l.length;
|
|
1520
1541
|
else {
|
|
1521
1542
|
if (f && c)
|
|
1522
1543
|
throw new Error("We currently do not support maximum integer digits");
|
|
1523
|
-
if (
|
|
1544
|
+
if (b)
|
|
1524
1545
|
throw new Error("We currently do not support exact integer digits");
|
|
1525
1546
|
}
|
|
1526
1547
|
return "";
|
|
1527
1548
|
});
|
|
1528
1549
|
continue;
|
|
1529
1550
|
}
|
|
1530
|
-
if (
|
|
1551
|
+
if (kt.test(i.stem)) {
|
|
1531
1552
|
t.minimumIntegerDigits = i.stem.length;
|
|
1532
1553
|
continue;
|
|
1533
1554
|
}
|
|
1534
|
-
if (
|
|
1555
|
+
if (at.test(i.stem)) {
|
|
1535
1556
|
if (i.options.length > 1)
|
|
1536
1557
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1537
|
-
i.stem.replace(
|
|
1538
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1558
|
+
i.stem.replace(at, function(h, u, l, f, c, b) {
|
|
1559
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1539
1560
|
});
|
|
1540
1561
|
var o = i.options[0];
|
|
1541
|
-
o === "w" ? t =
|
|
1562
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ut(o)));
|
|
1542
1563
|
continue;
|
|
1543
1564
|
}
|
|
1544
|
-
if (
|
|
1545
|
-
t =
|
|
1565
|
+
if (jt.test(i.stem)) {
|
|
1566
|
+
t = _(_({}, t), ut(i.stem));
|
|
1546
1567
|
continue;
|
|
1547
1568
|
}
|
|
1548
|
-
var s =
|
|
1549
|
-
s && (t =
|
|
1550
|
-
var a =
|
|
1551
|
-
a && (t =
|
|
1569
|
+
var s = Vt(i.stem);
|
|
1570
|
+
s && (t = _(_({}, t), s));
|
|
1571
|
+
var a = En(i.stem);
|
|
1572
|
+
a && (t = _(_({}, t), a));
|
|
1552
1573
|
}
|
|
1553
1574
|
return t;
|
|
1554
1575
|
}
|
|
@@ -2967,13 +2988,13 @@ var se = {
|
|
|
2967
2988
|
"h"
|
|
2968
2989
|
]
|
|
2969
2990
|
};
|
|
2970
|
-
function
|
|
2991
|
+
function Tn(e, t) {
|
|
2971
2992
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2972
2993
|
var i = e.charAt(n);
|
|
2973
2994
|
if (i === "j") {
|
|
2974
2995
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2975
2996
|
o++, n++;
|
|
2976
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2997
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
|
|
2977
2998
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2978
2999
|
r += h;
|
|
2979
3000
|
for (; s-- > 0; )
|
|
@@ -2983,7 +3004,7 @@ function En(e, t) {
|
|
|
2983
3004
|
}
|
|
2984
3005
|
return r;
|
|
2985
3006
|
}
|
|
2986
|
-
function
|
|
3007
|
+
function wn(e) {
|
|
2987
3008
|
var t = e.hourCycle;
|
|
2988
3009
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2989
3010
|
e.hourCycles && // @ts-ignore
|
|
@@ -3005,20 +3026,20 @@ function Sn(e) {
|
|
|
3005
3026
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3006
3027
|
return i[0];
|
|
3007
3028
|
}
|
|
3008
|
-
var
|
|
3029
|
+
var He, Hn = new RegExp("^".concat(Ft.source, "*")), Bn = new RegExp("".concat(Ft.source, "*$"));
|
|
3009
3030
|
function m(e, t) {
|
|
3010
3031
|
return { start: e, end: t };
|
|
3011
3032
|
}
|
|
3012
|
-
var
|
|
3033
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, Mn = Ln ? Number.isSafeInteger : function(e) {
|
|
3013
3034
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3014
|
-
},
|
|
3035
|
+
}, Ge = !0;
|
|
3015
3036
|
try {
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3037
|
+
var $n = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3038
|
+
Ge = ((He = $n.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3018
3039
|
} catch {
|
|
3019
|
-
|
|
3040
|
+
Ge = !1;
|
|
3020
3041
|
}
|
|
3021
|
-
var
|
|
3042
|
+
var lt = An ? (
|
|
3022
3043
|
// Native
|
|
3023
3044
|
function(t, r, n) {
|
|
3024
3045
|
return t.startsWith(r, n);
|
|
@@ -3028,7 +3049,7 @@ var ut = wn ? (
|
|
|
3028
3049
|
function(t, r, n) {
|
|
3029
3050
|
return t.slice(n, n + r.length) === r;
|
|
3030
3051
|
}
|
|
3031
|
-
),
|
|
3052
|
+
), Fe = Pn ? String.fromCodePoint : (
|
|
3032
3053
|
// IE11
|
|
3033
3054
|
function() {
|
|
3034
3055
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3040,9 +3061,9 @@ var ut = wn ? (
|
|
|
3040
3061
|
}
|
|
3041
3062
|
return n;
|
|
3042
3063
|
}
|
|
3043
|
-
),
|
|
3064
|
+
), ft = (
|
|
3044
3065
|
// native
|
|
3045
|
-
|
|
3066
|
+
On ? Object.fromEntries : (
|
|
3046
3067
|
// Ponyfill
|
|
3047
3068
|
function(t) {
|
|
3048
3069
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3052,7 +3073,7 @@ var ut = wn ? (
|
|
|
3052
3073
|
return r;
|
|
3053
3074
|
}
|
|
3054
3075
|
)
|
|
3055
|
-
),
|
|
3076
|
+
), Xt = In ? (
|
|
3056
3077
|
// Native
|
|
3057
3078
|
function(t, r) {
|
|
3058
3079
|
return t.codePointAt(r);
|
|
@@ -3066,7 +3087,7 @@ var ut = wn ? (
|
|
|
3066
3087
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3067
3088
|
}
|
|
3068
3089
|
}
|
|
3069
|
-
),
|
|
3090
|
+
), Rn = Cn ? (
|
|
3070
3091
|
// Native
|
|
3071
3092
|
function(t) {
|
|
3072
3093
|
return t.trimStart();
|
|
@@ -3074,9 +3095,9 @@ var ut = wn ? (
|
|
|
3074
3095
|
) : (
|
|
3075
3096
|
// Ponyfill
|
|
3076
3097
|
function(t) {
|
|
3077
|
-
return t.replace(
|
|
3098
|
+
return t.replace(Hn, "");
|
|
3078
3099
|
}
|
|
3079
|
-
),
|
|
3100
|
+
), Dn = Nn ? (
|
|
3080
3101
|
// Native
|
|
3081
3102
|
function(t) {
|
|
3082
3103
|
return t.trimEnd();
|
|
@@ -3084,32 +3105,32 @@ var ut = wn ? (
|
|
|
3084
3105
|
) : (
|
|
3085
3106
|
// Ponyfill
|
|
3086
3107
|
function(t) {
|
|
3087
|
-
return t.replace(
|
|
3108
|
+
return t.replace(Bn, "");
|
|
3088
3109
|
}
|
|
3089
3110
|
);
|
|
3090
|
-
function
|
|
3111
|
+
function Wt(e, t) {
|
|
3091
3112
|
return new RegExp(e, t);
|
|
3092
3113
|
}
|
|
3093
|
-
var
|
|
3094
|
-
if (
|
|
3095
|
-
var
|
|
3096
|
-
|
|
3114
|
+
var je;
|
|
3115
|
+
if (Ge) {
|
|
3116
|
+
var ct = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3117
|
+
je = function(t, r) {
|
|
3097
3118
|
var n;
|
|
3098
|
-
|
|
3099
|
-
var i =
|
|
3119
|
+
ct.lastIndex = r;
|
|
3120
|
+
var i = ct.exec(t);
|
|
3100
3121
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3101
3122
|
};
|
|
3102
3123
|
} else
|
|
3103
|
-
|
|
3124
|
+
je = function(t, r) {
|
|
3104
3125
|
for (var n = []; ; ) {
|
|
3105
|
-
var i =
|
|
3106
|
-
if (i === void 0 ||
|
|
3126
|
+
var i = Xt(t, r);
|
|
3127
|
+
if (i === void 0 || zt(i) || jn(i))
|
|
3107
3128
|
break;
|
|
3108
3129
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3109
3130
|
}
|
|
3110
|
-
return
|
|
3131
|
+
return Fe.apply(void 0, n);
|
|
3111
3132
|
};
|
|
3112
|
-
var
|
|
3133
|
+
var Un = (
|
|
3113
3134
|
/** @class */
|
|
3114
3135
|
function() {
|
|
3115
3136
|
function e(t, r) {
|
|
@@ -3133,14 +3154,14 @@ var Rn = (
|
|
|
3133
3154
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3134
3155
|
var a = this.clonePosition();
|
|
3135
3156
|
this.bump(), i.push({
|
|
3136
|
-
type:
|
|
3157
|
+
type: y.pound,
|
|
3137
3158
|
location: m(a, this.clonePosition())
|
|
3138
3159
|
});
|
|
3139
3160
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3140
3161
|
if (n)
|
|
3141
3162
|
break;
|
|
3142
3163
|
return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3143
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3164
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3144
3165
|
var s = this.parseTag(t, r);
|
|
3145
3166
|
if (s.err)
|
|
3146
3167
|
return s;
|
|
@@ -3161,7 +3182,7 @@ var Rn = (
|
|
|
3161
3182
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3162
3183
|
return {
|
|
3163
3184
|
val: {
|
|
3164
|
-
type:
|
|
3185
|
+
type: y.literal,
|
|
3165
3186
|
value: "<".concat(i, "/>"),
|
|
3166
3187
|
location: m(n, this.clonePosition())
|
|
3167
3188
|
},
|
|
@@ -3173,12 +3194,12 @@ var Rn = (
|
|
|
3173
3194
|
return o;
|
|
3174
3195
|
var s = o.val, a = this.clonePosition();
|
|
3175
3196
|
if (this.bumpIf("</")) {
|
|
3176
|
-
if (this.isEOF() || !
|
|
3197
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3177
3198
|
return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
|
|
3178
3199
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3179
3200
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3180
3201
|
val: {
|
|
3181
|
-
type:
|
|
3202
|
+
type: y.tag,
|
|
3182
3203
|
value: i,
|
|
3183
3204
|
children: s,
|
|
3184
3205
|
location: m(n, this.clonePosition())
|
|
@@ -3191,7 +3212,7 @@ var Rn = (
|
|
|
3191
3212
|
return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
|
|
3192
3213
|
}, e.prototype.parseTagName = function() {
|
|
3193
3214
|
var t = this.offset();
|
|
3194
|
-
for (this.bump(); !this.isEOF() &&
|
|
3215
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3195
3216
|
this.bump();
|
|
3196
3217
|
return this.message.slice(t, this.offset());
|
|
3197
3218
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3215,12 +3236,12 @@ var Rn = (
|
|
|
3215
3236
|
}
|
|
3216
3237
|
var h = m(n, this.clonePosition());
|
|
3217
3238
|
return {
|
|
3218
|
-
val: { type:
|
|
3239
|
+
val: { type: y.literal, value: i, location: h },
|
|
3219
3240
|
err: null
|
|
3220
3241
|
};
|
|
3221
3242
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3222
3243
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3223
|
-
!
|
|
3244
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3224
3245
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3225
3246
|
if (this.isEOF() || this.char() !== 39)
|
|
3226
3247
|
return null;
|
|
@@ -3254,12 +3275,12 @@ var Rn = (
|
|
|
3254
3275
|
r.push(n);
|
|
3255
3276
|
this.bump();
|
|
3256
3277
|
}
|
|
3257
|
-
return
|
|
3278
|
+
return Fe.apply(void 0, r);
|
|
3258
3279
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3259
3280
|
if (this.isEOF())
|
|
3260
3281
|
return null;
|
|
3261
3282
|
var n = this.char();
|
|
3262
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3283
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3263
3284
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3264
3285
|
var n = this.clonePosition();
|
|
3265
3286
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3275,7 +3296,7 @@ var Rn = (
|
|
|
3275
3296
|
case 125:
|
|
3276
3297
|
return this.bump(), {
|
|
3277
3298
|
val: {
|
|
3278
|
-
type:
|
|
3299
|
+
type: y.argument,
|
|
3279
3300
|
// value does not include the opening and closing braces.
|
|
3280
3301
|
value: i,
|
|
3281
3302
|
location: m(n, this.clonePosition())
|
|
@@ -3288,7 +3309,7 @@ var Rn = (
|
|
|
3288
3309
|
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3289
3310
|
}
|
|
3290
3311
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3291
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3312
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3292
3313
|
this.bumpTo(i);
|
|
3293
3314
|
var o = this.clonePosition(), s = m(t, o);
|
|
3294
3315
|
return { value: n, location: s };
|
|
@@ -3307,46 +3328,46 @@ var Rn = (
|
|
|
3307
3328
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3308
3329
|
if (f.err)
|
|
3309
3330
|
return f;
|
|
3310
|
-
var c =
|
|
3331
|
+
var c = Dn(f.val);
|
|
3311
3332
|
if (c.length === 0)
|
|
3312
3333
|
return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3313
|
-
var
|
|
3314
|
-
u = { style: c, styleLocation:
|
|
3334
|
+
var b = m(l, this.clonePosition());
|
|
3335
|
+
u = { style: c, styleLocation: b };
|
|
3315
3336
|
}
|
|
3316
3337
|
var p = this.tryParseArgumentClose(i);
|
|
3317
3338
|
if (p.err)
|
|
3318
3339
|
return p;
|
|
3319
|
-
var
|
|
3320
|
-
if (u &&
|
|
3321
|
-
var E =
|
|
3340
|
+
var g = m(i, this.clonePosition());
|
|
3341
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3342
|
+
var E = Rn(u.style.slice(2));
|
|
3322
3343
|
if (a === "number") {
|
|
3323
3344
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3324
3345
|
return f.err ? f : {
|
|
3325
|
-
val: { type:
|
|
3346
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
3326
3347
|
err: null
|
|
3327
3348
|
};
|
|
3328
3349
|
} else {
|
|
3329
3350
|
if (E.length === 0)
|
|
3330
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
3331
|
-
var
|
|
3332
|
-
this.locale && (
|
|
3351
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3352
|
+
var W = E;
|
|
3353
|
+
this.locale && (W = Tn(E, this.locale));
|
|
3333
3354
|
var c = {
|
|
3334
|
-
type:
|
|
3335
|
-
pattern:
|
|
3355
|
+
type: G.dateTime,
|
|
3356
|
+
pattern: W,
|
|
3336
3357
|
location: u.styleLocation,
|
|
3337
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3338
|
-
}, L = a === "date" ?
|
|
3358
|
+
parsedOptions: this.shouldParseSkeletons ? vn(W) : {}
|
|
3359
|
+
}, L = a === "date" ? y.date : y.time;
|
|
3339
3360
|
return {
|
|
3340
|
-
val: { type: L, value: n, location:
|
|
3361
|
+
val: { type: L, value: n, location: g, style: c },
|
|
3341
3362
|
err: null
|
|
3342
3363
|
};
|
|
3343
3364
|
}
|
|
3344
3365
|
}
|
|
3345
3366
|
return {
|
|
3346
3367
|
val: {
|
|
3347
|
-
type: a === "number" ?
|
|
3368
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3348
3369
|
value: n,
|
|
3349
|
-
location:
|
|
3370
|
+
location: g,
|
|
3350
3371
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3351
3372
|
},
|
|
3352
3373
|
err: null
|
|
@@ -3357,41 +3378,41 @@ var Rn = (
|
|
|
3357
3378
|
case "select": {
|
|
3358
3379
|
var T = this.clonePosition();
|
|
3359
3380
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3360
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T,
|
|
3381
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T, ce({}, T)));
|
|
3361
3382
|
this.bumpSpace();
|
|
3362
|
-
var
|
|
3363
|
-
if (a !== "select" &&
|
|
3383
|
+
var z = this.parseIdentifierIfPossible(), P = 0;
|
|
3384
|
+
if (a !== "select" && z.value === "offset") {
|
|
3364
3385
|
if (!this.bumpIf(":"))
|
|
3365
3386
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3366
3387
|
this.bumpSpace();
|
|
3367
3388
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3368
3389
|
if (f.err)
|
|
3369
3390
|
return f;
|
|
3370
|
-
this.bumpSpace(),
|
|
3391
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), P = f.val;
|
|
3371
3392
|
}
|
|
3372
|
-
var ie = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3393
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3373
3394
|
if (ie.err)
|
|
3374
3395
|
return ie;
|
|
3375
3396
|
var p = this.tryParseArgumentClose(i);
|
|
3376
3397
|
if (p.err)
|
|
3377
3398
|
return p;
|
|
3378
|
-
var
|
|
3399
|
+
var Qe = m(i, this.clonePosition());
|
|
3379
3400
|
return a === "select" ? {
|
|
3380
3401
|
val: {
|
|
3381
|
-
type:
|
|
3402
|
+
type: y.select,
|
|
3382
3403
|
value: n,
|
|
3383
|
-
options:
|
|
3384
|
-
location:
|
|
3404
|
+
options: ft(ie.val),
|
|
3405
|
+
location: Qe
|
|
3385
3406
|
},
|
|
3386
3407
|
err: null
|
|
3387
3408
|
} : {
|
|
3388
3409
|
val: {
|
|
3389
|
-
type:
|
|
3410
|
+
type: y.plural,
|
|
3390
3411
|
value: n,
|
|
3391
|
-
options:
|
|
3412
|
+
options: ft(ie.val),
|
|
3392
3413
|
offset: P,
|
|
3393
3414
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3394
|
-
location:
|
|
3415
|
+
location: Qe
|
|
3395
3416
|
},
|
|
3396
3417
|
err: null
|
|
3397
3418
|
};
|
|
@@ -3439,16 +3460,16 @@ var Rn = (
|
|
|
3439
3460
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3440
3461
|
var n = [];
|
|
3441
3462
|
try {
|
|
3442
|
-
n =
|
|
3463
|
+
n = yn(t);
|
|
3443
3464
|
} catch {
|
|
3444
3465
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3445
3466
|
}
|
|
3446
3467
|
return {
|
|
3447
3468
|
val: {
|
|
3448
|
-
type:
|
|
3469
|
+
type: G.number,
|
|
3449
3470
|
tokens: n,
|
|
3450
3471
|
location: r,
|
|
3451
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3472
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3452
3473
|
},
|
|
3453
3474
|
err: null
|
|
3454
3475
|
};
|
|
@@ -3467,20 +3488,20 @@ var Rn = (
|
|
|
3467
3488
|
if (h.has(u))
|
|
3468
3489
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3469
3490
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3470
|
-
var
|
|
3491
|
+
var b = this.clonePosition();
|
|
3471
3492
|
if (!this.bumpIf("{"))
|
|
3472
3493
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3473
3494
|
var p = this.parseMessage(t + 1, r, n);
|
|
3474
3495
|
if (p.err)
|
|
3475
3496
|
return p;
|
|
3476
|
-
var
|
|
3477
|
-
if (
|
|
3478
|
-
return
|
|
3497
|
+
var g = this.tryParseArgumentClose(b);
|
|
3498
|
+
if (g.err)
|
|
3499
|
+
return g;
|
|
3479
3500
|
a.push([
|
|
3480
3501
|
u,
|
|
3481
3502
|
{
|
|
3482
3503
|
value: p.val,
|
|
3483
|
-
location: m(
|
|
3504
|
+
location: m(b, this.clonePosition())
|
|
3484
3505
|
}
|
|
3485
3506
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3486
3507
|
}
|
|
@@ -3496,7 +3517,7 @@ var Rn = (
|
|
|
3496
3517
|
break;
|
|
3497
3518
|
}
|
|
3498
3519
|
var h = m(i, this.clonePosition());
|
|
3499
|
-
return o ? (s *= n,
|
|
3520
|
+
return o ? (s *= n, Mn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3500
3521
|
}, e.prototype.offset = function() {
|
|
3501
3522
|
return this.position.offset;
|
|
3502
3523
|
}, e.prototype.isEOF = function() {
|
|
@@ -3511,7 +3532,7 @@ var Rn = (
|
|
|
3511
3532
|
var t = this.position.offset;
|
|
3512
3533
|
if (t >= this.message.length)
|
|
3513
3534
|
throw Error("out of bound");
|
|
3514
|
-
var r =
|
|
3535
|
+
var r = Xt(this.message, t);
|
|
3515
3536
|
if (r === void 0)
|
|
3516
3537
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3517
3538
|
return r;
|
|
@@ -3530,7 +3551,7 @@ var Rn = (
|
|
|
3530
3551
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3531
3552
|
}
|
|
3532
3553
|
}, e.prototype.bumpIf = function(t) {
|
|
3533
|
-
if (
|
|
3554
|
+
if (lt(this.message, t, this.offset())) {
|
|
3534
3555
|
for (var r = 0; r < t.length; r++)
|
|
3535
3556
|
this.bump();
|
|
3536
3557
|
return !0;
|
|
@@ -3552,7 +3573,7 @@ var Rn = (
|
|
|
3552
3573
|
break;
|
|
3553
3574
|
}
|
|
3554
3575
|
}, e.prototype.bumpSpace = function() {
|
|
3555
|
-
for (; !this.isEOF() &&
|
|
3576
|
+
for (; !this.isEOF() && zt(this.char()); )
|
|
3556
3577
|
this.bump();
|
|
3557
3578
|
}, e.prototype.peek = function() {
|
|
3558
3579
|
if (this.isEOF())
|
|
@@ -3562,47 +3583,47 @@ var Rn = (
|
|
|
3562
3583
|
}, e;
|
|
3563
3584
|
}()
|
|
3564
3585
|
);
|
|
3565
|
-
function
|
|
3586
|
+
function ke(e) {
|
|
3566
3587
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3567
3588
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return
|
|
3589
|
+
function Gn(e) {
|
|
3590
|
+
return ke(e) || e === 47;
|
|
3570
3591
|
}
|
|
3571
|
-
function
|
|
3592
|
+
function Fn(e) {
|
|
3572
3593
|
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;
|
|
3573
3594
|
}
|
|
3574
|
-
function
|
|
3595
|
+
function zt(e) {
|
|
3575
3596
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3576
3597
|
}
|
|
3577
|
-
function
|
|
3598
|
+
function jn(e) {
|
|
3578
3599
|
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;
|
|
3579
3600
|
}
|
|
3580
|
-
function
|
|
3601
|
+
function Ve(e) {
|
|
3581
3602
|
e.forEach(function(t) {
|
|
3582
|
-
if (delete t.location,
|
|
3603
|
+
if (delete t.location, Rt(t) || Dt(t))
|
|
3583
3604
|
for (var r in t.options)
|
|
3584
|
-
delete t.options[r].location,
|
|
3605
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3585
3606
|
else
|
|
3586
|
-
|
|
3607
|
+
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Ut(t) && Ve(t.children);
|
|
3587
3608
|
});
|
|
3588
3609
|
}
|
|
3589
|
-
function
|
|
3590
|
-
t === void 0 && (t = {}), t =
|
|
3591
|
-
var r = new
|
|
3610
|
+
function kn(e, t) {
|
|
3611
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3612
|
+
var r = new Un(e, t).parse();
|
|
3592
3613
|
if (r.err) {
|
|
3593
3614
|
var n = SyntaxError(d[r.err.kind]);
|
|
3594
3615
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3595
3616
|
}
|
|
3596
|
-
return t?.captureLocation ||
|
|
3617
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3597
3618
|
}
|
|
3598
|
-
var
|
|
3619
|
+
var F;
|
|
3599
3620
|
(function(e) {
|
|
3600
3621
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3601
|
-
})(
|
|
3602
|
-
var
|
|
3622
|
+
})(F || (F = {}));
|
|
3623
|
+
var ge = (
|
|
3603
3624
|
/** @class */
|
|
3604
3625
|
function(e) {
|
|
3605
|
-
|
|
3626
|
+
ve(t, e);
|
|
3606
3627
|
function t(r, n, i) {
|
|
3607
3628
|
var o = e.call(this, r) || this;
|
|
3608
3629
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3611,155 +3632,155 @@ var be = (
|
|
|
3611
3632
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3612
3633
|
}, t;
|
|
3613
3634
|
}(Error)
|
|
3614
|
-
),
|
|
3635
|
+
), pt = (
|
|
3615
3636
|
/** @class */
|
|
3616
3637
|
function(e) {
|
|
3617
|
-
|
|
3638
|
+
ve(t, e);
|
|
3618
3639
|
function t(r, n, i, o) {
|
|
3619
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3640
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, o) || this;
|
|
3620
3641
|
}
|
|
3621
3642
|
return t;
|
|
3622
|
-
}(
|
|
3623
|
-
),
|
|
3643
|
+
}(ge)
|
|
3644
|
+
), Vn = (
|
|
3624
3645
|
/** @class */
|
|
3625
3646
|
function(e) {
|
|
3626
|
-
|
|
3647
|
+
ve(t, e);
|
|
3627
3648
|
function t(r, n, i) {
|
|
3628
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3649
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3629
3650
|
}
|
|
3630
3651
|
return t;
|
|
3631
|
-
}(
|
|
3632
|
-
),
|
|
3652
|
+
}(ge)
|
|
3653
|
+
), Xn = (
|
|
3633
3654
|
/** @class */
|
|
3634
3655
|
function(e) {
|
|
3635
|
-
|
|
3656
|
+
ve(t, e);
|
|
3636
3657
|
function t(r, n) {
|
|
3637
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3658
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3638
3659
|
}
|
|
3639
3660
|
return t;
|
|
3640
|
-
}(
|
|
3641
|
-
),
|
|
3661
|
+
}(ge)
|
|
3662
|
+
), x;
|
|
3642
3663
|
(function(e) {
|
|
3643
3664
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3644
|
-
})(
|
|
3645
|
-
function
|
|
3665
|
+
})(x || (x = {}));
|
|
3666
|
+
function Wn(e) {
|
|
3646
3667
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3647
3668
|
var n = t[t.length - 1];
|
|
3648
|
-
return !n || n.type !==
|
|
3669
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3649
3670
|
}, []);
|
|
3650
3671
|
}
|
|
3651
|
-
function
|
|
3672
|
+
function zn(e) {
|
|
3652
3673
|
return typeof e == "function";
|
|
3653
3674
|
}
|
|
3654
3675
|
function he(e, t, r, n, i, o, s) {
|
|
3655
|
-
if (e.length === 1 &&
|
|
3676
|
+
if (e.length === 1 && st(e[0]))
|
|
3656
3677
|
return [
|
|
3657
3678
|
{
|
|
3658
|
-
type:
|
|
3679
|
+
type: x.literal,
|
|
3659
3680
|
value: e[0].value
|
|
3660
3681
|
}
|
|
3661
3682
|
];
|
|
3662
3683
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3663
3684
|
var l = u[h];
|
|
3664
|
-
if (
|
|
3685
|
+
if (st(l)) {
|
|
3665
3686
|
a.push({
|
|
3666
|
-
type:
|
|
3687
|
+
type: x.literal,
|
|
3667
3688
|
value: l.value
|
|
3668
3689
|
});
|
|
3669
3690
|
continue;
|
|
3670
3691
|
}
|
|
3671
|
-
if (
|
|
3692
|
+
if (mn(l)) {
|
|
3672
3693
|
typeof o == "number" && a.push({
|
|
3673
|
-
type:
|
|
3694
|
+
type: x.literal,
|
|
3674
3695
|
value: r.getNumberFormat(t).format(o)
|
|
3675
3696
|
});
|
|
3676
3697
|
continue;
|
|
3677
3698
|
}
|
|
3678
3699
|
var f = l.value;
|
|
3679
3700
|
if (!(i && f in i))
|
|
3680
|
-
throw new
|
|
3701
|
+
throw new Xn(f, s);
|
|
3681
3702
|
var c = i[f];
|
|
3682
|
-
if (
|
|
3703
|
+
if (dn(l)) {
|
|
3683
3704
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3684
|
-
type: typeof c == "string" ?
|
|
3705
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3685
3706
|
value: c
|
|
3686
3707
|
});
|
|
3687
3708
|
continue;
|
|
3688
3709
|
}
|
|
3689
|
-
if (
|
|
3690
|
-
var
|
|
3710
|
+
if (Mt(l)) {
|
|
3711
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3691
3712
|
a.push({
|
|
3692
|
-
type:
|
|
3693
|
-
value: r.getDateTimeFormat(t,
|
|
3713
|
+
type: x.literal,
|
|
3714
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3694
3715
|
});
|
|
3695
3716
|
continue;
|
|
3696
3717
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var
|
|
3718
|
+
if ($t(l)) {
|
|
3719
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3699
3720
|
a.push({
|
|
3700
|
-
type:
|
|
3701
|
-
value: r.getDateTimeFormat(t,
|
|
3721
|
+
type: x.literal,
|
|
3722
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3702
3723
|
});
|
|
3703
3724
|
continue;
|
|
3704
3725
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
var
|
|
3707
|
-
|
|
3708
|
-
type:
|
|
3709
|
-
value: r.getNumberFormat(t,
|
|
3726
|
+
if (Lt(l)) {
|
|
3727
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Gt(l.style) ? l.style.parsedOptions : void 0;
|
|
3728
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3729
|
+
type: x.literal,
|
|
3730
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3710
3731
|
});
|
|
3711
3732
|
continue;
|
|
3712
3733
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var p = l.children,
|
|
3715
|
-
if (!
|
|
3716
|
-
throw new
|
|
3717
|
-
var
|
|
3734
|
+
if (Ut(l)) {
|
|
3735
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3736
|
+
if (!zn(E))
|
|
3737
|
+
throw new Vn(g, "function", s);
|
|
3738
|
+
var W = he(p, t, r, n, i, o), L = E(W.map(function(P) {
|
|
3718
3739
|
return P.value;
|
|
3719
3740
|
}));
|
|
3720
3741
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(P) {
|
|
3721
3742
|
return {
|
|
3722
|
-
type: typeof P == "string" ?
|
|
3743
|
+
type: typeof P == "string" ? x.literal : x.object,
|
|
3723
3744
|
value: P
|
|
3724
3745
|
};
|
|
3725
3746
|
}));
|
|
3726
3747
|
}
|
|
3727
|
-
if (
|
|
3748
|
+
if (Rt(l)) {
|
|
3728
3749
|
var T = l.options[c] || l.options.other;
|
|
3729
3750
|
if (!T)
|
|
3730
|
-
throw new
|
|
3751
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3731
3752
|
a.push.apply(a, he(T.value, t, r, n, i));
|
|
3732
3753
|
continue;
|
|
3733
3754
|
}
|
|
3734
|
-
if (
|
|
3755
|
+
if (Dt(l)) {
|
|
3735
3756
|
var T = l.options["=".concat(c)];
|
|
3736
3757
|
if (!T) {
|
|
3737
3758
|
if (!Intl.PluralRules)
|
|
3738
|
-
throw new
|
|
3759
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3739
3760
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3740
|
-
`,
|
|
3741
|
-
var
|
|
3742
|
-
T = l.options[
|
|
3761
|
+
`, F.MISSING_INTL_API, s);
|
|
3762
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3763
|
+
T = l.options[z] || l.options.other;
|
|
3743
3764
|
}
|
|
3744
3765
|
if (!T)
|
|
3745
|
-
throw new
|
|
3766
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3746
3767
|
a.push.apply(a, he(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3747
3768
|
continue;
|
|
3748
3769
|
}
|
|
3749
3770
|
}
|
|
3750
|
-
return
|
|
3771
|
+
return Wn(a);
|
|
3751
3772
|
}
|
|
3752
|
-
function
|
|
3753
|
-
return t ?
|
|
3754
|
-
return r[n] =
|
|
3773
|
+
function Zn(e, t) {
|
|
3774
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3775
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3755
3776
|
}, {})) : e;
|
|
3756
3777
|
}
|
|
3757
|
-
function
|
|
3778
|
+
function Qn(e, t) {
|
|
3758
3779
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3759
|
-
return r[n] =
|
|
3760
|
-
},
|
|
3780
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3781
|
+
}, w({}, e)) : e;
|
|
3761
3782
|
}
|
|
3762
|
-
function
|
|
3783
|
+
function Be(e) {
|
|
3763
3784
|
return {
|
|
3764
3785
|
create: function() {
|
|
3765
3786
|
return {
|
|
@@ -3773,39 +3794,39 @@ function He(e) {
|
|
|
3773
3794
|
}
|
|
3774
3795
|
};
|
|
3775
3796
|
}
|
|
3776
|
-
function
|
|
3797
|
+
function Jn(e) {
|
|
3777
3798
|
return e === void 0 && (e = {
|
|
3778
3799
|
number: {},
|
|
3779
3800
|
dateTime: {},
|
|
3780
3801
|
pluralRules: {}
|
|
3781
3802
|
}), {
|
|
3782
|
-
getNumberFormat:
|
|
3803
|
+
getNumberFormat: Te(function() {
|
|
3783
3804
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3784
3805
|
r[n] = arguments[n];
|
|
3785
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3806
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3786
3807
|
}, {
|
|
3787
|
-
cache:
|
|
3788
|
-
strategy:
|
|
3808
|
+
cache: Be(e.number),
|
|
3809
|
+
strategy: we.variadic
|
|
3789
3810
|
}),
|
|
3790
|
-
getDateTimeFormat:
|
|
3811
|
+
getDateTimeFormat: Te(function() {
|
|
3791
3812
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3792
3813
|
r[n] = arguments[n];
|
|
3793
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3814
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3794
3815
|
}, {
|
|
3795
|
-
cache:
|
|
3796
|
-
strategy:
|
|
3816
|
+
cache: Be(e.dateTime),
|
|
3817
|
+
strategy: we.variadic
|
|
3797
3818
|
}),
|
|
3798
|
-
getPluralRules:
|
|
3819
|
+
getPluralRules: Te(function() {
|
|
3799
3820
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3800
3821
|
r[n] = arguments[n];
|
|
3801
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3822
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3802
3823
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3824
|
+
cache: Be(e.pluralRules),
|
|
3825
|
+
strategy: we.variadic
|
|
3805
3826
|
})
|
|
3806
3827
|
};
|
|
3807
3828
|
}
|
|
3808
|
-
var
|
|
3829
|
+
var Yn = (
|
|
3809
3830
|
/** @class */
|
|
3810
3831
|
function() {
|
|
3811
3832
|
function e(t, r, n, i) {
|
|
@@ -3820,7 +3841,7 @@ var Qn = (
|
|
|
3820
3841
|
if (u.length === 1)
|
|
3821
3842
|
return u[0].value;
|
|
3822
3843
|
var l = u.reduce(function(f, c) {
|
|
3823
|
-
return !f.length || c.type !==
|
|
3844
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3824
3845
|
}, []);
|
|
3825
3846
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3826
3847
|
}, this.formatToParts = function(h) {
|
|
@@ -3837,13 +3858,13 @@ var Qn = (
|
|
|
3837
3858
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3838
3859
|
var s = i || {};
|
|
3839
3860
|
s.formatters;
|
|
3840
|
-
var a =
|
|
3841
|
-
this.ast = e.__parse(t,
|
|
3861
|
+
var a = sn(s, ["formatters"]);
|
|
3862
|
+
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3842
3863
|
} else
|
|
3843
3864
|
this.ast = t;
|
|
3844
3865
|
if (!Array.isArray(this.ast))
|
|
3845
3866
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3846
|
-
this.formats =
|
|
3867
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3847
3868
|
}
|
|
3848
3869
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3849
3870
|
get: function() {
|
|
@@ -3856,7 +3877,7 @@ var Qn = (
|
|
|
3856
3877
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3857
3878
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3858
3879
|
}
|
|
3859
|
-
}, e.__parse =
|
|
3880
|
+
}, e.__parse = kn, e.formats = {
|
|
3860
3881
|
number: {
|
|
3861
3882
|
integer: {
|
|
3862
3883
|
maximumFractionDigits: 0
|
|
@@ -3917,7 +3938,7 @@ var Qn = (
|
|
|
3917
3938
|
}, e;
|
|
3918
3939
|
}()
|
|
3919
3940
|
);
|
|
3920
|
-
function
|
|
3941
|
+
function qn(e, t) {
|
|
3921
3942
|
if (t == null)
|
|
3922
3943
|
return;
|
|
3923
3944
|
if (t in e)
|
|
@@ -3938,92 +3959,92 @@ function Jn(e, t) {
|
|
|
3938
3959
|
n = void 0;
|
|
3939
3960
|
return n;
|
|
3940
3961
|
}
|
|
3941
|
-
const A = {},
|
|
3962
|
+
const A = {}, Kn = (e, t, r) => r && (t in A || (A[t] = {}), e in A[t] || (A[t][e] = r), r), Zt = (e, t) => {
|
|
3942
3963
|
if (t == null)
|
|
3943
3964
|
return;
|
|
3944
3965
|
if (t in A && e in A[t])
|
|
3945
3966
|
return A[t][e];
|
|
3946
|
-
const r =
|
|
3967
|
+
const r = ye(t);
|
|
3947
3968
|
for (let n = 0; n < r.length; n++) {
|
|
3948
|
-
const i = r[n], o =
|
|
3969
|
+
const i = r[n], o = ti(i, e);
|
|
3949
3970
|
if (o)
|
|
3950
|
-
return
|
|
3971
|
+
return Kn(e, t, o);
|
|
3951
3972
|
}
|
|
3952
3973
|
};
|
|
3953
|
-
let
|
|
3954
|
-
const re =
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
3974
|
+
let ze;
|
|
3975
|
+
const re = be({});
|
|
3976
|
+
function ei(e) {
|
|
3977
|
+
return ze[e] || null;
|
|
3957
3978
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return e in
|
|
3979
|
+
function Qt(e) {
|
|
3980
|
+
return e in ze;
|
|
3960
3981
|
}
|
|
3961
|
-
function
|
|
3962
|
-
if (!
|
|
3982
|
+
function ti(e, t) {
|
|
3983
|
+
if (!Qt(e))
|
|
3963
3984
|
return null;
|
|
3964
|
-
const r =
|
|
3965
|
-
return
|
|
3985
|
+
const r = ei(e);
|
|
3986
|
+
return qn(r, t);
|
|
3966
3987
|
}
|
|
3967
|
-
function
|
|
3988
|
+
function ri(e) {
|
|
3968
3989
|
if (e == null)
|
|
3969
3990
|
return;
|
|
3970
|
-
const t =
|
|
3991
|
+
const t = ye(e);
|
|
3971
3992
|
for (let r = 0; r < t.length; r++) {
|
|
3972
3993
|
const n = t[r];
|
|
3973
|
-
if (
|
|
3994
|
+
if (Qt(n))
|
|
3974
3995
|
return n;
|
|
3975
3996
|
}
|
|
3976
3997
|
}
|
|
3977
|
-
function
|
|
3998
|
+
function ni(e, ...t) {
|
|
3978
3999
|
delete A[e], re.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3979
4000
|
}
|
|
3980
|
-
|
|
4001
|
+
V(
|
|
3981
4002
|
[re],
|
|
3982
4003
|
([e]) => Object.keys(e)
|
|
3983
4004
|
);
|
|
3984
|
-
re.subscribe((e) =>
|
|
4005
|
+
re.subscribe((e) => ze = e);
|
|
3985
4006
|
const le = {};
|
|
3986
|
-
function
|
|
4007
|
+
function ii(e, t) {
|
|
3987
4008
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3988
4009
|
}
|
|
3989
|
-
function
|
|
4010
|
+
function Jt(e) {
|
|
3990
4011
|
return le[e];
|
|
3991
4012
|
}
|
|
3992
|
-
function
|
|
3993
|
-
return
|
|
3994
|
-
const r =
|
|
4013
|
+
function oi(e) {
|
|
4014
|
+
return ye(e).map((t) => {
|
|
4015
|
+
const r = Jt(t);
|
|
3995
4016
|
return [t, r ? [...r] : []];
|
|
3996
4017
|
}).filter(([, t]) => t.length > 0);
|
|
3997
4018
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return e == null ? !1 :
|
|
4019
|
+
function Xe(e) {
|
|
4020
|
+
return e == null ? !1 : ye(e).some(
|
|
4000
4021
|
(t) => {
|
|
4001
4022
|
var r;
|
|
4002
|
-
return (r =
|
|
4023
|
+
return (r = Jt(t)) == null ? void 0 : r.size;
|
|
4003
4024
|
}
|
|
4004
4025
|
);
|
|
4005
4026
|
}
|
|
4006
|
-
function
|
|
4027
|
+
function si(e, t) {
|
|
4007
4028
|
return Promise.all(
|
|
4008
|
-
t.map((n) => (
|
|
4009
|
-
).then((n) =>
|
|
4010
|
-
}
|
|
4011
|
-
const
|
|
4012
|
-
function
|
|
4013
|
-
if (!
|
|
4014
|
-
return e in
|
|
4015
|
-
const t =
|
|
4016
|
-
return
|
|
4029
|
+
t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
|
|
4030
|
+
).then((n) => ni(e, ...n));
|
|
4031
|
+
}
|
|
4032
|
+
const Z = {};
|
|
4033
|
+
function Yt(e) {
|
|
4034
|
+
if (!Xe(e))
|
|
4035
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4036
|
+
const t = oi(e);
|
|
4037
|
+
return Z[e] = Promise.all(
|
|
4017
4038
|
t.map(
|
|
4018
|
-
([r, n]) =>
|
|
4039
|
+
([r, n]) => si(r, n)
|
|
4019
4040
|
)
|
|
4020
4041
|
).then(() => {
|
|
4021
|
-
if (
|
|
4022
|
-
return
|
|
4023
|
-
delete
|
|
4024
|
-
}),
|
|
4042
|
+
if (Xe(e))
|
|
4043
|
+
return Yt(e);
|
|
4044
|
+
delete Z[e];
|
|
4045
|
+
}), Z[e];
|
|
4025
4046
|
}
|
|
4026
|
-
const
|
|
4047
|
+
const ai = {
|
|
4027
4048
|
number: {
|
|
4028
4049
|
scientific: { notation: "scientific" },
|
|
4029
4050
|
engineering: { notation: "engineering" },
|
|
@@ -4052,135 +4073,135 @@ const oi = {
|
|
|
4052
4073
|
timeZoneName: "short"
|
|
4053
4074
|
}
|
|
4054
4075
|
}
|
|
4055
|
-
},
|
|
4076
|
+
}, ui = {
|
|
4056
4077
|
fallbackLocale: null,
|
|
4057
4078
|
loadingDelay: 200,
|
|
4058
|
-
formats:
|
|
4079
|
+
formats: ai,
|
|
4059
4080
|
warnOnMissingMessages: !0,
|
|
4060
4081
|
handleMissingMessage: void 0,
|
|
4061
4082
|
ignoreTag: !0
|
|
4062
|
-
},
|
|
4063
|
-
function
|
|
4064
|
-
return
|
|
4083
|
+
}, hi = ui;
|
|
4084
|
+
function j() {
|
|
4085
|
+
return hi;
|
|
4065
4086
|
}
|
|
4066
|
-
const
|
|
4067
|
-
var
|
|
4087
|
+
const Ae = be(!1);
|
|
4088
|
+
var li = Object.defineProperty, fi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4068
4089
|
for (var r in t || (t = {}))
|
|
4069
|
-
|
|
4070
|
-
if (
|
|
4071
|
-
for (var r of
|
|
4072
|
-
|
|
4090
|
+
pi.call(t, r) && mt(e, r, t[r]);
|
|
4091
|
+
if (dt)
|
|
4092
|
+
for (var r of dt(t))
|
|
4093
|
+
di.call(t, r) && mt(e, r, t[r]);
|
|
4073
4094
|
return e;
|
|
4074
|
-
},
|
|
4075
|
-
let
|
|
4076
|
-
const
|
|
4077
|
-
function
|
|
4095
|
+
}, bi = (e, t) => fi(e, ci(t));
|
|
4096
|
+
let We;
|
|
4097
|
+
const pe = be(null);
|
|
4098
|
+
function bt(e) {
|
|
4078
4099
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4079
4100
|
}
|
|
4080
|
-
function
|
|
4081
|
-
const r =
|
|
4082
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4101
|
+
function ye(e, t = j().fallbackLocale) {
|
|
4102
|
+
const r = bt(e);
|
|
4103
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
4083
4104
|
}
|
|
4084
4105
|
function N() {
|
|
4085
|
-
return
|
|
4106
|
+
return We ?? void 0;
|
|
4086
4107
|
}
|
|
4087
|
-
|
|
4088
|
-
|
|
4108
|
+
pe.subscribe((e) => {
|
|
4109
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4089
4110
|
});
|
|
4090
|
-
const
|
|
4091
|
-
if (e &&
|
|
4092
|
-
const { loadingDelay: t } =
|
|
4111
|
+
const vi = (e) => {
|
|
4112
|
+
if (e && ri(e) && Xe(e)) {
|
|
4113
|
+
const { loadingDelay: t } = j();
|
|
4093
4114
|
let r;
|
|
4094
4115
|
return typeof window < "u" && N() != null && t ? r = window.setTimeout(
|
|
4095
|
-
() =>
|
|
4116
|
+
() => Ae.set(!0),
|
|
4096
4117
|
t
|
|
4097
|
-
) :
|
|
4098
|
-
|
|
4118
|
+
) : Ae.set(!0), Yt(e).then(() => {
|
|
4119
|
+
pe.set(e);
|
|
4099
4120
|
}).finally(() => {
|
|
4100
|
-
clearTimeout(r),
|
|
4121
|
+
clearTimeout(r), Ae.set(!1);
|
|
4101
4122
|
});
|
|
4102
4123
|
}
|
|
4103
|
-
return
|
|
4104
|
-
}, ne =
|
|
4105
|
-
set:
|
|
4106
|
-
}),
|
|
4124
|
+
return pe.set(e);
|
|
4125
|
+
}, ne = bi(mi({}, pe), {
|
|
4126
|
+
set: vi
|
|
4127
|
+
}), _e = (e) => {
|
|
4107
4128
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4108
4129
|
return (n) => {
|
|
4109
4130
|
const i = JSON.stringify(n);
|
|
4110
4131
|
return i in t ? t[i] : t[i] = e(n);
|
|
4111
4132
|
};
|
|
4112
4133
|
};
|
|
4113
|
-
var
|
|
4134
|
+
var gi = Object.defineProperty, de = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4114
4135
|
for (var r in t || (t = {}))
|
|
4115
|
-
|
|
4116
|
-
if (
|
|
4117
|
-
for (var r of
|
|
4118
|
-
|
|
4136
|
+
qt.call(t, r) && vt(e, r, t[r]);
|
|
4137
|
+
if (de)
|
|
4138
|
+
for (var r of de(t))
|
|
4139
|
+
Kt.call(t, r) && vt(e, r, t[r]);
|
|
4119
4140
|
return e;
|
|
4120
|
-
},
|
|
4141
|
+
}, X = (e, t) => {
|
|
4121
4142
|
var r = {};
|
|
4122
4143
|
for (var n in e)
|
|
4123
|
-
|
|
4124
|
-
if (e != null &&
|
|
4125
|
-
for (var n of
|
|
4126
|
-
t.indexOf(n) < 0 &&
|
|
4144
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4145
|
+
if (e != null && de)
|
|
4146
|
+
for (var n of de(e))
|
|
4147
|
+
t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
|
|
4127
4148
|
return r;
|
|
4128
4149
|
};
|
|
4129
|
-
const
|
|
4130
|
-
const { formats: r } =
|
|
4150
|
+
const q = (e, t) => {
|
|
4151
|
+
const { formats: r } = j();
|
|
4131
4152
|
if (e in r && t in r[e])
|
|
4132
4153
|
return r[e][t];
|
|
4133
4154
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4134
|
-
},
|
|
4155
|
+
}, yi = _e(
|
|
4135
4156
|
(e) => {
|
|
4136
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4157
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4137
4158
|
if (r == null)
|
|
4138
4159
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4139
|
-
return n && (i =
|
|
4160
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4140
4161
|
}
|
|
4141
|
-
),
|
|
4162
|
+
), _i = _e(
|
|
4142
4163
|
(e) => {
|
|
4143
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4164
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4144
4165
|
if (r == null)
|
|
4145
4166
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4146
|
-
return n ? i =
|
|
4167
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4147
4168
|
}
|
|
4148
|
-
),
|
|
4169
|
+
), xi = _e(
|
|
4149
4170
|
(e) => {
|
|
4150
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4171
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4151
4172
|
if (r == null)
|
|
4152
4173
|
throw new Error(
|
|
4153
4174
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4154
4175
|
);
|
|
4155
|
-
return n ? i =
|
|
4176
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4156
4177
|
}
|
|
4157
|
-
),
|
|
4178
|
+
), Ei = (e = {}) => {
|
|
4158
4179
|
var t = e, {
|
|
4159
4180
|
locale: r = N()
|
|
4160
|
-
} = t, n =
|
|
4181
|
+
} = t, n = X(t, [
|
|
4161
4182
|
"locale"
|
|
4162
4183
|
]);
|
|
4163
|
-
return
|
|
4164
|
-
},
|
|
4184
|
+
return yi(Ze({ locale: r }, n));
|
|
4185
|
+
}, Si = (e = {}) => {
|
|
4165
4186
|
var t = e, {
|
|
4166
4187
|
locale: r = N()
|
|
4167
|
-
} = t, n =
|
|
4188
|
+
} = t, n = X(t, [
|
|
4168
4189
|
"locale"
|
|
4169
4190
|
]);
|
|
4170
|
-
return
|
|
4171
|
-
},
|
|
4191
|
+
return _i(Ze({ locale: r }, n));
|
|
4192
|
+
}, Ti = (e = {}) => {
|
|
4172
4193
|
var t = e, {
|
|
4173
4194
|
locale: r = N()
|
|
4174
|
-
} = t, n =
|
|
4195
|
+
} = t, n = X(t, [
|
|
4175
4196
|
"locale"
|
|
4176
4197
|
]);
|
|
4177
|
-
return
|
|
4178
|
-
},
|
|
4198
|
+
return xi(Ze({ locale: r }, n));
|
|
4199
|
+
}, wi = _e(
|
|
4179
4200
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4180
|
-
(e, t = N()) => new
|
|
4181
|
-
ignoreTag:
|
|
4201
|
+
(e, t = N()) => new Yn(e, t, j().formats, {
|
|
4202
|
+
ignoreTag: j().ignoreTag
|
|
4182
4203
|
})
|
|
4183
|
-
),
|
|
4204
|
+
), Hi = (e, t = {}) => {
|
|
4184
4205
|
var r, n, i, o;
|
|
4185
4206
|
let s = t;
|
|
4186
4207
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4193,9 +4214,9 @@ const K = (e, t) => {
|
|
|
4193
4214
|
throw new Error(
|
|
4194
4215
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4195
4216
|
);
|
|
4196
|
-
let l =
|
|
4217
|
+
let l = Zt(e, h);
|
|
4197
4218
|
if (!l)
|
|
4198
|
-
l = (o = (i = (n = (r =
|
|
4219
|
+
l = (o = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4199
4220
|
else if (typeof l != "string")
|
|
4200
4221
|
return console.warn(
|
|
4201
4222
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4204,7 +4225,7 @@ const K = (e, t) => {
|
|
|
4204
4225
|
return l;
|
|
4205
4226
|
let f = l;
|
|
4206
4227
|
try {
|
|
4207
|
-
f =
|
|
4228
|
+
f = wi(l, h).format(a);
|
|
4208
4229
|
} catch (c) {
|
|
4209
4230
|
c instanceof Error && console.warn(
|
|
4210
4231
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4212,35 +4233,35 @@ const K = (e, t) => {
|
|
|
4212
4233
|
);
|
|
4213
4234
|
}
|
|
4214
4235
|
return f;
|
|
4215
|
-
},
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4236
|
+
}, Bi = (e, t) => Ti(t).format(e), Ai = (e, t) => Si(t).format(e), Pi = (e, t) => Ei(t).format(e), Oi = (e, t = N()) => Zt(e, t);
|
|
4237
|
+
V([ne, re], () => Hi);
|
|
4238
|
+
V([ne], () => Bi);
|
|
4239
|
+
V([ne], () => Ai);
|
|
4240
|
+
V([ne], () => Pi);
|
|
4241
|
+
V([ne, re], () => Oi);
|
|
4221
4242
|
window.emWidgets = { topic: Fr };
|
|
4222
|
-
const
|
|
4223
|
-
function
|
|
4224
|
-
|
|
4243
|
+
const Ii = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4244
|
+
function Ci(e) {
|
|
4245
|
+
nr(e, "svelte-q9wa7c", "*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsCard.Mobile{margin:10px 0}.DetailsCard.Mobile .DetailsTitle{padding:0 10px;height:30px}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:var(--emw--border-radius-medium, 10px)}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px)}");
|
|
4225
4246
|
}
|
|
4226
|
-
function
|
|
4247
|
+
function gt(e) {
|
|
4227
4248
|
let t, r, n, i, o, s, a;
|
|
4228
4249
|
function h(f, c) {
|
|
4229
4250
|
return (
|
|
4230
4251
|
/*collapsed*/
|
|
4231
|
-
f[3] ?
|
|
4252
|
+
f[3] ? Ni : Li
|
|
4232
4253
|
);
|
|
4233
4254
|
}
|
|
4234
4255
|
let u = h(e), l = u(e);
|
|
4235
4256
|
return {
|
|
4236
4257
|
c() {
|
|
4237
|
-
t = I("div"), r = I("p"), n =
|
|
4258
|
+
t = I("div"), r = I("p"), n = Et(
|
|
4238
4259
|
/*title*/
|
|
4239
4260
|
e[0]
|
|
4240
|
-
), i =
|
|
4261
|
+
), i = St(), o = I("div"), l.c(), v(r, "class", "Title"), v(r, "part", "Title"), v(o, "class", "CollapseButtonDetails"), v(o, "part", "CollapseButtonDetails"), v(t, "class", "DetailsTitle"), v(t, "part", "DetailsTitle");
|
|
4241
4262
|
},
|
|
4242
4263
|
m(f, c) {
|
|
4243
|
-
|
|
4264
|
+
k(f, t, c), B(t, r), B(r, n), B(t, i), B(t, o), l.m(o, null), s || (a = sr(
|
|
4244
4265
|
t,
|
|
4245
4266
|
"click",
|
|
4246
4267
|
/*collapseText*/
|
|
@@ -4249,7 +4270,7 @@ function bt(e) {
|
|
|
4249
4270
|
},
|
|
4250
4271
|
p(f, c) {
|
|
4251
4272
|
c & /*title*/
|
|
4252
|
-
1 &&
|
|
4273
|
+
1 && ur(
|
|
4253
4274
|
n,
|
|
4254
4275
|
/*title*/
|
|
4255
4276
|
f[0]
|
|
@@ -4260,42 +4281,42 @@ function bt(e) {
|
|
|
4260
4281
|
}
|
|
4261
4282
|
};
|
|
4262
4283
|
}
|
|
4263
|
-
function
|
|
4284
|
+
function Ni(e) {
|
|
4264
4285
|
let t, r;
|
|
4265
4286
|
return {
|
|
4266
4287
|
c() {
|
|
4267
4288
|
t = fe("svg"), r = fe("path"), v(r, "d", "M6 9l6 6 6-6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4268
4289
|
},
|
|
4269
4290
|
m(n, i) {
|
|
4270
|
-
|
|
4291
|
+
k(n, t, i), B(t, r);
|
|
4271
4292
|
},
|
|
4272
4293
|
d(n) {
|
|
4273
4294
|
n && C(t);
|
|
4274
4295
|
}
|
|
4275
4296
|
};
|
|
4276
4297
|
}
|
|
4277
|
-
function
|
|
4298
|
+
function Li(e) {
|
|
4278
4299
|
let t, r;
|
|
4279
4300
|
return {
|
|
4280
4301
|
c() {
|
|
4281
4302
|
t = fe("svg"), r = fe("path"), v(r, "d", "M18 15l-6-6-6 6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4282
4303
|
},
|
|
4283
4304
|
m(n, i) {
|
|
4284
|
-
|
|
4305
|
+
k(n, t, i), B(t, r);
|
|
4285
4306
|
},
|
|
4286
4307
|
d(n) {
|
|
4287
4308
|
n && C(t);
|
|
4288
4309
|
}
|
|
4289
4310
|
};
|
|
4290
4311
|
}
|
|
4291
|
-
function
|
|
4312
|
+
function yt(e) {
|
|
4292
4313
|
let t, r, n, i;
|
|
4293
4314
|
return {
|
|
4294
4315
|
c() {
|
|
4295
4316
|
t = I("div"), t.innerHTML = "", v(t, "class", "DetailsContent sc"), v(t, "part", "DetailsContent");
|
|
4296
4317
|
},
|
|
4297
4318
|
m(o, s) {
|
|
4298
|
-
|
|
4319
|
+
k(o, t, s), n || (i = rr(r = /*setContent*/
|
|
4299
4320
|
e[6].call(
|
|
4300
4321
|
null,
|
|
4301
4322
|
t,
|
|
@@ -4304,7 +4325,7 @@ function gt(e) {
|
|
|
4304
4325
|
)), n = !0);
|
|
4305
4326
|
},
|
|
4306
4327
|
p(o, s) {
|
|
4307
|
-
r &&
|
|
4328
|
+
r && ee(r.update) && s & /*text*/
|
|
4308
4329
|
2 && r.update.call(
|
|
4309
4330
|
null,
|
|
4310
4331
|
/*text*/
|
|
@@ -4316,30 +4337,30 @@ function gt(e) {
|
|
|
4316
4337
|
}
|
|
4317
4338
|
};
|
|
4318
4339
|
}
|
|
4319
|
-
function
|
|
4340
|
+
function Mi(e) {
|
|
4320
4341
|
let t, r, n = (
|
|
4321
4342
|
/*title*/
|
|
4322
|
-
e[0] &&
|
|
4343
|
+
e[0] && gt(e)
|
|
4323
4344
|
), i = (
|
|
4324
4345
|
/*text*/
|
|
4325
4346
|
e[1] && !/*collapsed*/
|
|
4326
|
-
e[3] &&
|
|
4347
|
+
e[3] && yt(e)
|
|
4327
4348
|
);
|
|
4328
4349
|
return {
|
|
4329
4350
|
c() {
|
|
4330
|
-
t = I("div"), n && n.c(), r =
|
|
4351
|
+
t = I("div"), n && n.c(), r = St(), i && i.c(), v(t, "class", "DetailsCard " + (Ii(
|
|
4331
4352
|
/*userAgent*/
|
|
4332
4353
|
e[4]
|
|
4333
4354
|
) ? "Mobile" : "")), v(t, "part", "DetailsCard");
|
|
4334
4355
|
},
|
|
4335
4356
|
m(o, s) {
|
|
4336
|
-
|
|
4357
|
+
k(o, t, s), n && n.m(t, null), B(t, r), i && i.m(t, null), e[10](t);
|
|
4337
4358
|
},
|
|
4338
4359
|
p(o, [s]) {
|
|
4339
4360
|
/*title*/
|
|
4340
|
-
o[0] ? n ? n.p(o, s) : (n =
|
|
4361
|
+
o[0] ? n ? n.p(o, s) : (n = gt(o), n.c(), n.m(t, r)) : n && (n.d(1), n = null), /*text*/
|
|
4341
4362
|
o[1] && !/*collapsed*/
|
|
4342
|
-
o[3] ? i ? i.p(o, s) : (i =
|
|
4363
|
+
o[3] ? i ? i.p(o, s) : (i = yt(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
4343
4364
|
},
|
|
4344
4365
|
i: S,
|
|
4345
4366
|
o: S,
|
|
@@ -4348,18 +4369,18 @@ function Ni(e) {
|
|
|
4348
4369
|
}
|
|
4349
4370
|
};
|
|
4350
4371
|
}
|
|
4351
|
-
function
|
|
4372
|
+
function $i(e, t, r) {
|
|
4352
4373
|
let { title: n = "" } = t, { text: i = "" } = t, { mbsource: o } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, h, u = !1, l = window.navigator.userAgent;
|
|
4353
4374
|
const f = () => {
|
|
4354
4375
|
r(3, u = !u);
|
|
4355
|
-
}, c = (p,
|
|
4376
|
+
}, c = (p, g) => {
|
|
4356
4377
|
let E = document.createElement("div");
|
|
4357
|
-
E.innerHTML =
|
|
4378
|
+
E.innerHTML = g, p.append(E);
|
|
4358
4379
|
};
|
|
4359
|
-
|
|
4380
|
+
fr(() => () => {
|
|
4360
4381
|
});
|
|
4361
|
-
function
|
|
4362
|
-
|
|
4382
|
+
function b(p) {
|
|
4383
|
+
Pe[p ? "unshift" : "push"](() => {
|
|
4363
4384
|
h = p, r(2, h);
|
|
4364
4385
|
});
|
|
4365
4386
|
}
|
|
@@ -4367,9 +4388,9 @@ function Li(e, t, r) {
|
|
|
4367
4388
|
"title" in p && r(0, n = p.title), "text" in p && r(1, i = p.text), "mbsource" in p && r(7, o = p.mbsource), "clientstyling" in p && r(8, s = p.clientstyling), "clientstylingurl" in p && r(9, a = p.clientstylingurl);
|
|
4368
4389
|
}, e.$$.update = () => {
|
|
4369
4390
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4370
|
-
260 && s && h &&
|
|
4391
|
+
260 && s && h && wr(h, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4371
4392
|
516 && a && h && Hr(h, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4372
|
-
132 && o && h &&
|
|
4393
|
+
132 && o && h && Br(h, `${o}.Style`);
|
|
4373
4394
|
}, [
|
|
4374
4395
|
n,
|
|
4375
4396
|
i,
|
|
@@ -4381,17 +4402,17 @@ function Li(e, t, r) {
|
|
|
4381
4402
|
o,
|
|
4382
4403
|
s,
|
|
4383
4404
|
a,
|
|
4384
|
-
|
|
4405
|
+
b
|
|
4385
4406
|
];
|
|
4386
4407
|
}
|
|
4387
|
-
class
|
|
4408
|
+
class Ri extends Sr {
|
|
4388
4409
|
constructor(t) {
|
|
4389
4410
|
super(), xr(
|
|
4390
4411
|
this,
|
|
4391
4412
|
t,
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4413
|
+
$i,
|
|
4414
|
+
Mi,
|
|
4415
|
+
xt,
|
|
4395
4416
|
{
|
|
4396
4417
|
title: 0,
|
|
4397
4418
|
text: 1,
|
|
@@ -4399,7 +4420,7 @@ class Mi extends Er {
|
|
|
4399
4420
|
clientstyling: 8,
|
|
4400
4421
|
clientstylingurl: 9
|
|
4401
4422
|
},
|
|
4402
|
-
|
|
4423
|
+
Ci
|
|
4403
4424
|
);
|
|
4404
4425
|
}
|
|
4405
4426
|
get title() {
|
|
@@ -4433,7 +4454,7 @@ class Mi extends Er {
|
|
|
4433
4454
|
this.$$set({ clientstylingurl: t }), O();
|
|
4434
4455
|
}
|
|
4435
4456
|
}
|
|
4436
|
-
|
|
4457
|
+
Er(Ri, { title: {}, text: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4437
4458
|
export {
|
|
4438
|
-
|
|
4459
|
+
Ri as C
|
|
4439
4460
|
};
|