@everymatrix/player-account-notifications 1.74.8 → 1.74.10
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/{PlayerAccountNotifications-B3qMDqKA.js → PlayerAccountNotifications-BtSqCOAk.js} +581 -595
- package/components/PlayerAccountNotifications-DO6TEnPv.cjs +18 -0
- package/components/{PlayerAccountNotifications-0_KDmaPh.js → PlayerAccountNotifications-pd8B8-lX.js} +598 -612
- package/es2015/player-account-notifications.cjs +1 -1
- package/es2015/player-account-notifications.js +1 -1
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BtPvM93e.js → index-b2193545-BbCeNxUG.js} +176 -176
- package/stencil/{index-b2193545-D_KBbaD-.js → index-b2193545-C9PH-6qK.js} +169 -169
- package/stencil/index-b2193545-D-u-gzj3.cjs +1 -0
- package/stencil/{ui-skeleton-NZtdK490.js → ui-skeleton-BKDs0-7H.js} +2 -2
- package/stencil/{ui-skeleton-CWuMYFGQ.js → ui-skeleton-CJbkvgG7.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CKJgMm_5.cjs → ui-skeleton-ae35c6f2-CXlvqczG.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CW3z59Qf.js → ui-skeleton-ae35c6f2-ZB0isFAq.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DlexSQlT.js → ui-skeleton-ae35c6f2-gun6WX2F.js} +1 -1
- package/stencil/{ui-skeleton-BPqjm-YB.cjs → ui-skeleton-bhljBTS7.cjs} +1 -1
- package/components/PlayerAccountNotifications-C4eZW0eI.cjs +0 -18
- package/stencil/index-b2193545-CgelUAhE.cjs +0 -1
package/components/{PlayerAccountNotifications-B3qMDqKA.js → PlayerAccountNotifications-BtSqCOAk.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Te = (e, t, r) => t in e ?
|
|
1
|
+
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (e, t, r) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
mr.call(t, r) && Te(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
br.call(t, r) && Te(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, et = (e, t) => dr(e, pr(t));
|
|
13
13
|
var P = (e, t, r) => (Te(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,32 +27,32 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
30
|
+
import "../stencil/ui-skeleton-CJbkvgG7.js";
|
|
31
31
|
function H() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ot(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
39
|
function oe(e) {
|
|
40
|
-
e.forEach(
|
|
40
|
+
e.forEach(Ot);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ze(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function It(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let ue;
|
|
49
|
-
function
|
|
49
|
+
function nt(e, t) {
|
|
50
50
|
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function gr(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function yr(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -64,14 +64,14 @@ function xr(e, ...t) {
|
|
|
64
64
|
function w(e, t) {
|
|
65
65
|
e.appendChild(t);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const n =
|
|
67
|
+
function xr(e, t, r) {
|
|
68
|
+
const n = _r(e);
|
|
69
69
|
if (!n.getElementById(t)) {
|
|
70
70
|
const i = T("style");
|
|
71
|
-
i.id = t, i.textContent = r,
|
|
71
|
+
i.id = t, i.textContent = r, vr(n, i);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function _r(e) {
|
|
75
75
|
if (!e)
|
|
76
76
|
return document;
|
|
77
77
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -81,7 +81,7 @@ function Sr(e) {
|
|
|
81
81
|
t
|
|
82
82
|
) : e.ownerDocument;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function vr(e, t) {
|
|
85
85
|
return w(
|
|
86
86
|
/** @type {Document} */
|
|
87
87
|
e.head || e,
|
|
@@ -94,37 +94,37 @@ function $(e, t, r) {
|
|
|
94
94
|
function I(e) {
|
|
95
95
|
e.parentNode && e.parentNode.removeChild(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ct(e, t) {
|
|
98
98
|
for (let r = 0; r < e.length; r += 1)
|
|
99
99
|
e[r] && e[r].d(t);
|
|
100
100
|
}
|
|
101
101
|
function T(e) {
|
|
102
102
|
return document.createElement(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Lt(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
107
|
function ce() {
|
|
108
|
-
return
|
|
108
|
+
return Lt(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function v(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
113
|
function X(e, t, r) {
|
|
114
114
|
const n = t.toLowerCase();
|
|
115
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
115
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : v(e, t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Er(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Sr(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function it(e, t, r, n) {
|
|
125
125
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -137,22 +137,22 @@ let re;
|
|
|
137
137
|
function te(e) {
|
|
138
138
|
re = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Hr() {
|
|
141
141
|
if (!re)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return re;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Ar(e) {
|
|
146
|
+
Hr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const V = [],
|
|
148
|
+
const V = [], Ie = [];
|
|
149
149
|
let W = [];
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
150
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Ce = !1;
|
|
152
|
+
function wr() {
|
|
153
|
+
Ce || (Ce = !0, Pr.then(N));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Le(e) {
|
|
156
156
|
W.push(e);
|
|
157
157
|
}
|
|
158
158
|
const He = /* @__PURE__ */ new Set();
|
|
@@ -165,56 +165,56 @@ function N() {
|
|
|
165
165
|
try {
|
|
166
166
|
for (; k < V.length; ) {
|
|
167
167
|
const t = V[k];
|
|
168
|
-
k++, te(t),
|
|
168
|
+
k++, te(t), Br(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
171
|
throw V.length = 0, k = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (te(null), V.length = 0, k = 0;
|
|
174
|
-
|
|
173
|
+
for (te(null), V.length = 0, k = 0; Ie.length; )
|
|
174
|
+
Ie.pop()();
|
|
175
175
|
for (let t = 0; t < W.length; t += 1) {
|
|
176
176
|
const r = W[t];
|
|
177
177
|
He.has(r) || (He.add(r), r());
|
|
178
178
|
}
|
|
179
179
|
W.length = 0;
|
|
180
180
|
} while (V.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
for (; ot.length; )
|
|
182
|
+
ot.pop()();
|
|
183
|
+
Ce = !1, He.clear(), te(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Br(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
187
|
e.update(), oe(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Nr(e) {
|
|
193
193
|
const t = [], r = [];
|
|
194
194
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Or = /* @__PURE__ */ new Set();
|
|
197
|
+
function Ir(e, t) {
|
|
198
|
+
e && e.i && (Or.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
200
|
function be(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Cr(e, t, r) {
|
|
204
204
|
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
-
n && n.m(t, r),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
205
|
+
n && n.m(t, r), Le(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Ot).filter(Ze);
|
|
207
207
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
208
|
-
}), i.forEach(
|
|
208
|
+
}), i.forEach(Le);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Lr(e, t) {
|
|
211
211
|
const r = e.$$;
|
|
212
|
-
r.fragment !== null && (
|
|
212
|
+
r.fragment !== null && (Nr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
214
|
+
function Mr(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (V.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
218
|
const h = re;
|
|
219
219
|
te(e);
|
|
220
220
|
const u = e.$$ = {
|
|
@@ -224,7 +224,7 @@ function Dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
224
224
|
props: o,
|
|
225
225
|
update: H,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: rt(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,28 +233,28 @@ function Dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: rt(),
|
|
237
237
|
dirty: a,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || h.$$.root
|
|
240
240
|
};
|
|
241
241
|
s && s(u.root);
|
|
242
242
|
let l = !1;
|
|
243
|
-
if (u.ctx = r
|
|
244
|
-
const m =
|
|
245
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l &&
|
|
246
|
-
})
|
|
243
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...p) => {
|
|
244
|
+
const m = p.length ? p[0] : f;
|
|
245
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Mr(e, c)), f;
|
|
246
|
+
}), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const c =
|
|
248
|
+
const c = Er(t.target);
|
|
249
249
|
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro &&
|
|
252
|
+
t.intro && Ir(e.$$.fragment), Cr(e, t.target, t.anchor), N();
|
|
253
253
|
}
|
|
254
254
|
te(h);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Mt;
|
|
257
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
258
258
|
constructor(t, r, n) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
@@ -291,14 +291,14 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return tt(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
298
|
let s;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
s = T("slot"), o !== "default" &&
|
|
301
|
+
s = T("slot"), o !== "default" && v(s, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const r = {}, n =
|
|
318
|
+
const r = {}, n = Tr(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in n && (r[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
326
326
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props:
|
|
329
|
+
props: et(Ke({}, this.$$d), {
|
|
330
330
|
$$slots: r,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -404,8 +404,8 @@ function fe(e, t, r, n) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let s = class extends
|
|
407
|
+
function Rr(e, t, r, n, i, o) {
|
|
408
|
+
let s = class extends Mt {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, r, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
@@ -435,7 +435,7 @@ function Gr(e, t, r, n, i, o) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Ur {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -456,7 +456,7 @@ class Fr {
|
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Lr(this, 1), this.$destroy = H;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,7 +465,7 @@ class Fr {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, r) {
|
|
468
|
-
if (!
|
|
468
|
+
if (!Ze(r))
|
|
469
469
|
return H;
|
|
470
470
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return n.push(r), () => {
|
|
@@ -478,11 +478,11 @@ class Fr {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
484
|
+
const Dr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
486
486
|
/*! *****************************************************************************
|
|
487
487
|
Copyright (c) Microsoft Corporation.
|
|
488
488
|
|
|
@@ -497,34 +497,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
497
497
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
498
498
|
PERFORMANCE OF THIS SOFTWARE.
|
|
499
499
|
***************************************************************************** */
|
|
500
|
-
var
|
|
501
|
-
return
|
|
500
|
+
var Me = function(e, t) {
|
|
501
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
502
502
|
r.__proto__ = n;
|
|
503
503
|
} || function(r, n) {
|
|
504
504
|
for (var i in n)
|
|
505
505
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
506
|
-
},
|
|
506
|
+
}, Me(e, t);
|
|
507
507
|
};
|
|
508
508
|
function C(e, t) {
|
|
509
509
|
if (typeof t != "function" && t !== null)
|
|
510
510
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
511
|
-
|
|
511
|
+
Me(e, t);
|
|
512
512
|
function r() {
|
|
513
513
|
this.constructor = e;
|
|
514
514
|
}
|
|
515
515
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
516
516
|
}
|
|
517
|
-
var
|
|
518
|
-
return
|
|
517
|
+
var x = function() {
|
|
518
|
+
return x = Object.assign || function(t) {
|
|
519
519
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
520
520
|
r = arguments[n];
|
|
521
521
|
for (var o in r)
|
|
522
522
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
523
523
|
}
|
|
524
524
|
return t;
|
|
525
|
-
},
|
|
525
|
+
}, x.apply(this, arguments);
|
|
526
526
|
};
|
|
527
|
-
function
|
|
527
|
+
function Gr(e, t) {
|
|
528
528
|
var r = {};
|
|
529
529
|
for (var n in e)
|
|
530
530
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -533,7 +533,7 @@ function jr(e, t) {
|
|
|
533
533
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
534
534
|
return r;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function $e(e) {
|
|
537
537
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
538
538
|
if (r)
|
|
539
539
|
return r.call(e);
|
|
@@ -545,7 +545,7 @@ function Re(e) {
|
|
|
545
545
|
};
|
|
546
546
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Re(e, t) {
|
|
549
549
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
550
550
|
if (!r)
|
|
551
551
|
return e;
|
|
@@ -574,13 +574,13 @@ function z(e, t, r) {
|
|
|
574
574
|
function O(e) {
|
|
575
575
|
return typeof e == "function";
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function $t(e) {
|
|
578
578
|
var t = function(n) {
|
|
579
579
|
Error.call(n), n.stack = new Error().stack;
|
|
580
580
|
}, r = e(t);
|
|
581
581
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
582
582
|
}
|
|
583
|
-
var Ae =
|
|
583
|
+
var Ae = $t(function(e) {
|
|
584
584
|
return function(r) {
|
|
585
585
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
586
586
|
` + r.map(function(n, i) {
|
|
@@ -589,13 +589,13 @@ var Ae = Ut(function(e) {
|
|
|
589
589
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
590
590
|
};
|
|
591
591
|
});
|
|
592
|
-
function
|
|
592
|
+
function Ue(e, t) {
|
|
593
593
|
if (e) {
|
|
594
594
|
var r = e.indexOf(t);
|
|
595
595
|
0 <= r && e.splice(r, 1);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
var
|
|
598
|
+
var xe = function() {
|
|
599
599
|
function e(t) {
|
|
600
600
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
601
601
|
}
|
|
@@ -607,12 +607,12 @@ var ve = function() {
|
|
|
607
607
|
if (s)
|
|
608
608
|
if (this._parentage = null, Array.isArray(s))
|
|
609
609
|
try {
|
|
610
|
-
for (var a =
|
|
610
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
611
611
|
var u = h.value;
|
|
612
612
|
u.remove(this);
|
|
613
613
|
}
|
|
614
|
-
} catch (
|
|
615
|
-
t = { error:
|
|
614
|
+
} catch (d) {
|
|
615
|
+
t = { error: d };
|
|
616
616
|
} finally {
|
|
617
617
|
try {
|
|
618
618
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -627,26 +627,26 @@ var ve = function() {
|
|
|
627
627
|
if (O(l))
|
|
628
628
|
try {
|
|
629
629
|
l();
|
|
630
|
-
} catch (
|
|
631
|
-
o =
|
|
630
|
+
} catch (d) {
|
|
631
|
+
o = d instanceof Ae ? d.errors : [d];
|
|
632
632
|
}
|
|
633
633
|
var c = this._finalizers;
|
|
634
634
|
if (c) {
|
|
635
635
|
this._finalizers = null;
|
|
636
636
|
try {
|
|
637
|
-
for (var f =
|
|
638
|
-
var m =
|
|
637
|
+
for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
|
|
638
|
+
var m = p.value;
|
|
639
639
|
try {
|
|
640
|
-
|
|
641
|
-
} catch (
|
|
642
|
-
o = o != null ? o : [],
|
|
640
|
+
st(m);
|
|
641
|
+
} catch (d) {
|
|
642
|
+
o = o != null ? o : [], d instanceof Ae ? o = z(z([], Re(o)), Re(d.errors)) : o.push(d);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
} catch (
|
|
646
|
-
n = { error:
|
|
645
|
+
} catch (d) {
|
|
646
|
+
n = { error: d };
|
|
647
647
|
} finally {
|
|
648
648
|
try {
|
|
649
|
-
|
|
649
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
650
650
|
} finally {
|
|
651
651
|
if (n)
|
|
652
652
|
throw n.error;
|
|
@@ -660,7 +660,7 @@ var ve = function() {
|
|
|
660
660
|
var r;
|
|
661
661
|
if (t && t !== this)
|
|
662
662
|
if (this.closed)
|
|
663
|
-
|
|
663
|
+
st(t);
|
|
664
664
|
else {
|
|
665
665
|
if (t instanceof e) {
|
|
666
666
|
if (t.closed || t._hasParent(this))
|
|
@@ -677,56 +677,56 @@ var ve = function() {
|
|
|
677
677
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
678
678
|
}, e.prototype._removeParent = function(t) {
|
|
679
679
|
var r = this._parentage;
|
|
680
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
680
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
681
681
|
}, e.prototype.remove = function(t) {
|
|
682
682
|
var r = this._finalizers;
|
|
683
|
-
r &&
|
|
683
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
684
684
|
}, e.EMPTY = function() {
|
|
685
685
|
var t = new e();
|
|
686
686
|
return t.closed = !0, t;
|
|
687
687
|
}(), e;
|
|
688
|
-
}(),
|
|
689
|
-
function
|
|
690
|
-
return e instanceof
|
|
688
|
+
}(), Rt = xe.EMPTY;
|
|
689
|
+
function Ut(e) {
|
|
690
|
+
return e instanceof xe || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function st(e) {
|
|
693
693
|
O(e) ? e() : e.unsubscribe();
|
|
694
694
|
}
|
|
695
|
-
var
|
|
695
|
+
var Fr = {
|
|
696
696
|
onUnhandledError: null,
|
|
697
697
|
onStoppedNotification: null,
|
|
698
698
|
Promise: void 0,
|
|
699
699
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
700
700
|
useDeprecatedNextContext: !1
|
|
701
|
-
},
|
|
701
|
+
}, kr = {
|
|
702
702
|
setTimeout: function(e, t) {
|
|
703
703
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
704
704
|
r[n - 2] = arguments[n];
|
|
705
|
-
return setTimeout.apply(void 0, z([e, t],
|
|
705
|
+
return setTimeout.apply(void 0, z([e, t], Re(r)));
|
|
706
706
|
},
|
|
707
707
|
clearTimeout: function(e) {
|
|
708
708
|
return clearTimeout(e);
|
|
709
709
|
},
|
|
710
710
|
delegate: void 0
|
|
711
711
|
};
|
|
712
|
-
function
|
|
713
|
-
|
|
712
|
+
function jr(e) {
|
|
713
|
+
kr.setTimeout(function() {
|
|
714
714
|
throw e;
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function at() {
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function de(e) {
|
|
720
720
|
e();
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var Dt = function(e) {
|
|
723
723
|
C(t, e);
|
|
724
724
|
function t(r) {
|
|
725
725
|
var n = e.call(this) || this;
|
|
726
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Wr, n;
|
|
727
727
|
}
|
|
728
728
|
return t.create = function(r, n, i) {
|
|
729
|
-
return new
|
|
729
|
+
return new De(r, n, i);
|
|
730
730
|
}, t.prototype.next = function(r) {
|
|
731
731
|
this.isStopped || this._next(r);
|
|
732
732
|
}, t.prototype.error = function(r) {
|
|
@@ -750,11 +750,7 @@ var kt = function(e) {
|
|
|
750
750
|
this.unsubscribe();
|
|
751
751
|
}
|
|
752
752
|
}, t;
|
|
753
|
-
}(
|
|
754
|
-
function Pe(e, t) {
|
|
755
|
-
return Wr.call(e, t);
|
|
756
|
-
}
|
|
757
|
-
var zr = function() {
|
|
753
|
+
}(xe), Vr = function() {
|
|
758
754
|
function e(t) {
|
|
759
755
|
this.partialObserver = t;
|
|
760
756
|
}
|
|
@@ -785,55 +781,43 @@ var zr = function() {
|
|
|
785
781
|
he(r);
|
|
786
782
|
}
|
|
787
783
|
}, e;
|
|
788
|
-
}(),
|
|
784
|
+
}(), De = function(e) {
|
|
789
785
|
C(t, e);
|
|
790
786
|
function t(r, n, i) {
|
|
791
787
|
var o = e.call(this) || this, s;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
};
|
|
798
|
-
else {
|
|
799
|
-
var a;
|
|
800
|
-
o && Ft.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
801
|
-
return o.unsubscribe();
|
|
802
|
-
}, s = {
|
|
803
|
-
next: r.next && Pe(r.next, a),
|
|
804
|
-
error: r.error && Pe(r.error, a),
|
|
805
|
-
complete: r.complete && Pe(r.complete, a)
|
|
806
|
-
}) : s = r;
|
|
807
|
-
}
|
|
808
|
-
return o.destination = new zr(s), o;
|
|
788
|
+
return O(r) || !r ? s = {
|
|
789
|
+
next: r != null ? r : void 0,
|
|
790
|
+
error: n != null ? n : void 0,
|
|
791
|
+
complete: i != null ? i : void 0
|
|
792
|
+
} : s = r, o.destination = new Vr(s), o;
|
|
809
793
|
}
|
|
810
794
|
return t;
|
|
811
|
-
}(
|
|
795
|
+
}(Dt);
|
|
812
796
|
function he(e) {
|
|
813
|
-
|
|
797
|
+
jr(e);
|
|
814
798
|
}
|
|
815
|
-
function
|
|
799
|
+
function Xr(e) {
|
|
816
800
|
throw e;
|
|
817
801
|
}
|
|
818
|
-
var
|
|
802
|
+
var Wr = {
|
|
819
803
|
closed: !0,
|
|
820
|
-
next:
|
|
821
|
-
error:
|
|
822
|
-
complete:
|
|
823
|
-
},
|
|
804
|
+
next: at,
|
|
805
|
+
error: Xr,
|
|
806
|
+
complete: at
|
|
807
|
+
}, zr = function() {
|
|
824
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
825
809
|
}();
|
|
826
|
-
function
|
|
810
|
+
function Zr(e) {
|
|
827
811
|
return e;
|
|
828
812
|
}
|
|
829
|
-
function
|
|
830
|
-
return e.length === 0 ?
|
|
813
|
+
function Qr(e) {
|
|
814
|
+
return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
|
|
831
815
|
return e.reduce(function(n, i) {
|
|
832
816
|
return i(n);
|
|
833
817
|
}, r);
|
|
834
818
|
};
|
|
835
819
|
}
|
|
836
|
-
var
|
|
820
|
+
var ut = function() {
|
|
837
821
|
function e(t) {
|
|
838
822
|
t && (this._subscribe = t);
|
|
839
823
|
}
|
|
@@ -841,8 +825,8 @@ var lt = function() {
|
|
|
841
825
|
var r = new e();
|
|
842
826
|
return r.source = this, r.operator = t, r;
|
|
843
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
844
|
-
var i = this, o =
|
|
845
|
-
return
|
|
828
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
829
|
+
return de(function() {
|
|
846
830
|
var s = i, a = s.operator, h = s.source;
|
|
847
831
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
848
832
|
}), o;
|
|
@@ -854,8 +838,8 @@ var lt = function() {
|
|
|
854
838
|
}
|
|
855
839
|
}, e.prototype.forEach = function(t, r) {
|
|
856
840
|
var n = this;
|
|
857
|
-
return r =
|
|
858
|
-
var s = new
|
|
841
|
+
return r = ht(r), new r(function(i, o) {
|
|
842
|
+
var s = new De({
|
|
859
843
|
next: function(a) {
|
|
860
844
|
try {
|
|
861
845
|
t(a);
|
|
@@ -871,15 +855,15 @@ var lt = function() {
|
|
|
871
855
|
}, e.prototype._subscribe = function(t) {
|
|
872
856
|
var r;
|
|
873
857
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
874
|
-
}, e.prototype[
|
|
858
|
+
}, e.prototype[zr] = function() {
|
|
875
859
|
return this;
|
|
876
860
|
}, e.prototype.pipe = function() {
|
|
877
861
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
878
862
|
t[r] = arguments[r];
|
|
879
|
-
return
|
|
863
|
+
return Qr(t)(this);
|
|
880
864
|
}, e.prototype.toPromise = function(t) {
|
|
881
865
|
var r = this;
|
|
882
|
-
return t =
|
|
866
|
+
return t = ht(t), new t(function(n, i) {
|
|
883
867
|
var o;
|
|
884
868
|
r.subscribe(function(s) {
|
|
885
869
|
return o = s;
|
|
@@ -893,40 +877,40 @@ var lt = function() {
|
|
|
893
877
|
return new e(t);
|
|
894
878
|
}, e;
|
|
895
879
|
}();
|
|
896
|
-
function
|
|
880
|
+
function ht(e) {
|
|
897
881
|
var t;
|
|
898
|
-
return (t = e != null ? e :
|
|
882
|
+
return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
899
883
|
}
|
|
900
|
-
function
|
|
884
|
+
function Jr(e) {
|
|
901
885
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
902
886
|
}
|
|
903
|
-
function
|
|
904
|
-
return e && e instanceof
|
|
887
|
+
function qr(e) {
|
|
888
|
+
return e && e instanceof Dt || Jr(e) && Ut(e);
|
|
905
889
|
}
|
|
906
|
-
var
|
|
890
|
+
var Yr = $t(function(e) {
|
|
907
891
|
return function() {
|
|
908
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
909
893
|
};
|
|
910
|
-
}),
|
|
894
|
+
}), Gt = function(e) {
|
|
911
895
|
C(t, e);
|
|
912
896
|
function t() {
|
|
913
897
|
var r = e.call(this) || this;
|
|
914
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
915
899
|
}
|
|
916
900
|
return t.prototype.lift = function(r) {
|
|
917
|
-
var n = new
|
|
901
|
+
var n = new lt(this, this);
|
|
918
902
|
return n.operator = r, n;
|
|
919
903
|
}, t.prototype._throwIfClosed = function() {
|
|
920
904
|
if (this.closed)
|
|
921
|
-
throw new
|
|
905
|
+
throw new Yr();
|
|
922
906
|
}, t.prototype.next = function(r) {
|
|
923
907
|
var n = this;
|
|
924
|
-
|
|
908
|
+
de(function() {
|
|
925
909
|
var i, o;
|
|
926
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
927
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
928
912
|
try {
|
|
929
|
-
for (var s =
|
|
913
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
930
914
|
var h = a.value;
|
|
931
915
|
h.next(r);
|
|
932
916
|
}
|
|
@@ -944,7 +928,7 @@ var tn = Ut(function(e) {
|
|
|
944
928
|
});
|
|
945
929
|
}, t.prototype.error = function(r) {
|
|
946
930
|
var n = this;
|
|
947
|
-
|
|
931
|
+
de(function() {
|
|
948
932
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
949
933
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
950
934
|
for (var i = n.observers; i.length; )
|
|
@@ -953,7 +937,7 @@ var tn = Ut(function(e) {
|
|
|
953
937
|
});
|
|
954
938
|
}, t.prototype.complete = function() {
|
|
955
939
|
var r = this;
|
|
956
|
-
|
|
940
|
+
de(function() {
|
|
957
941
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
958
942
|
r.isStopped = !0;
|
|
959
943
|
for (var n = r.observers; n.length; )
|
|
@@ -975,19 +959,19 @@ var tn = Ut(function(e) {
|
|
|
975
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
976
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
977
961
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
978
|
-
return o || s ?
|
|
979
|
-
n.currentObservers = null,
|
|
962
|
+
return o || s ? Rt : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
963
|
+
n.currentObservers = null, Ue(a, r);
|
|
980
964
|
}));
|
|
981
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
982
966
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
983
967
|
i ? r.error(o) : s && r.complete();
|
|
984
968
|
}, t.prototype.asObservable = function() {
|
|
985
|
-
var r = new
|
|
969
|
+
var r = new ut();
|
|
986
970
|
return r.source = this, r;
|
|
987
971
|
}, t.create = function(r, n) {
|
|
988
|
-
return new
|
|
972
|
+
return new lt(r, n);
|
|
989
973
|
}, t;
|
|
990
|
-
}(
|
|
974
|
+
}(ut), lt = function(e) {
|
|
991
975
|
C(t, e);
|
|
992
976
|
function t(r, n) {
|
|
993
977
|
var i = e.call(this) || this;
|
|
@@ -1004,17 +988,17 @@ var tn = Ut(function(e) {
|
|
|
1004
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1005
989
|
}, t.prototype._subscribe = function(r) {
|
|
1006
990
|
var n, i;
|
|
1007
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
|
|
1008
992
|
}, t;
|
|
1009
|
-
}(
|
|
993
|
+
}(Gt), Ft = {
|
|
1010
994
|
now: function() {
|
|
1011
|
-
return (
|
|
995
|
+
return (Ft.delegate || Date).now();
|
|
1012
996
|
},
|
|
1013
997
|
delegate: void 0
|
|
1014
|
-
},
|
|
998
|
+
}, Kr = function(e) {
|
|
1015
999
|
C(t, e);
|
|
1016
1000
|
function t(r, n, i) {
|
|
1017
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
1018
1002
|
var o = e.call(this) || this;
|
|
1019
1003
|
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;
|
|
1020
1004
|
}
|
|
@@ -1034,15 +1018,15 @@ var tn = Ut(function(e) {
|
|
|
1034
1018
|
u && o.splice(0, u + 1);
|
|
1035
1019
|
}
|
|
1036
1020
|
}, t;
|
|
1037
|
-
}(
|
|
1038
|
-
const
|
|
1039
|
-
if (
|
|
1040
|
-
const r = new
|
|
1041
|
-
|
|
1021
|
+
}(Gt);
|
|
1022
|
+
const ct = [], ft = {}, en = (e, t = 0) => {
|
|
1023
|
+
if (ct.indexOf(e) == -1) {
|
|
1024
|
+
const r = new Kr(t);
|
|
1025
|
+
ft[e] = r, ct.push(e);
|
|
1042
1026
|
}
|
|
1043
|
-
return
|
|
1027
|
+
return ft[e];
|
|
1044
1028
|
}, j = [];
|
|
1045
|
-
function
|
|
1029
|
+
function tn(e, t) {
|
|
1046
1030
|
return {
|
|
1047
1031
|
subscribe: _e(e, t).subscribe
|
|
1048
1032
|
};
|
|
@@ -1051,7 +1035,7 @@ function _e(e, t = H) {
|
|
|
1051
1035
|
let r;
|
|
1052
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1053
1037
|
function i(a) {
|
|
1054
|
-
if (
|
|
1038
|
+
if (It(e, a) && (e = a, r)) {
|
|
1055
1039
|
const h = !j.length;
|
|
1056
1040
|
for (const u of n)
|
|
1057
1041
|
u[1](), j.push(u, e);
|
|
@@ -1078,7 +1062,7 @@ function Y(e, t, r) {
|
|
|
1078
1062
|
if (!i.every(Boolean))
|
|
1079
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1080
1064
|
const o = t.length < 2;
|
|
1081
|
-
return
|
|
1065
|
+
return tn(r, (s, a) => {
|
|
1082
1066
|
let h = !1;
|
|
1083
1067
|
const u = [];
|
|
1084
1068
|
let l = 0, c = H;
|
|
@@ -1087,87 +1071,87 @@ function Y(e, t, r) {
|
|
|
1087
1071
|
return;
|
|
1088
1072
|
c();
|
|
1089
1073
|
const m = t(n ? u[0] : u, s, a);
|
|
1090
|
-
o ? s(m) : c =
|
|
1091
|
-
},
|
|
1092
|
-
(m,
|
|
1074
|
+
o ? s(m) : c = Ze(m) ? m : H;
|
|
1075
|
+
}, p = i.map(
|
|
1076
|
+
(m, d) => yr(
|
|
1093
1077
|
m,
|
|
1094
1078
|
(S) => {
|
|
1095
|
-
u[
|
|
1079
|
+
u[d] = S, l &= ~(1 << d), h && f();
|
|
1096
1080
|
},
|
|
1097
1081
|
() => {
|
|
1098
|
-
l |= 1 <<
|
|
1082
|
+
l |= 1 << d;
|
|
1099
1083
|
}
|
|
1100
1084
|
)
|
|
1101
1085
|
);
|
|
1102
1086
|
return h = !0, f(), function() {
|
|
1103
|
-
oe(
|
|
1087
|
+
oe(p), c(), h = !1;
|
|
1104
1088
|
};
|
|
1105
1089
|
});
|
|
1106
1090
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return e
|
|
1091
|
+
function rn(e) {
|
|
1092
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1109
1093
|
}
|
|
1110
|
-
var
|
|
1111
|
-
return
|
|
1094
|
+
var nn = function(t) {
|
|
1095
|
+
return on(t) && !sn(t);
|
|
1112
1096
|
};
|
|
1113
|
-
function
|
|
1097
|
+
function on(e) {
|
|
1114
1098
|
return !!e && typeof e == "object";
|
|
1115
1099
|
}
|
|
1116
|
-
function
|
|
1100
|
+
function sn(e) {
|
|
1117
1101
|
var t = Object.prototype.toString.call(e);
|
|
1118
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1102
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1119
1103
|
}
|
|
1120
|
-
var
|
|
1121
|
-
function
|
|
1122
|
-
return e.$$typeof ===
|
|
1104
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1105
|
+
function hn(e) {
|
|
1106
|
+
return e.$$typeof === un;
|
|
1123
1107
|
}
|
|
1124
|
-
function
|
|
1108
|
+
function ln(e) {
|
|
1125
1109
|
return Array.isArray(e) ? [] : {};
|
|
1126
1110
|
}
|
|
1127
1111
|
function ne(e, t) {
|
|
1128
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
1112
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(ln(e), e, t) : e;
|
|
1129
1113
|
}
|
|
1130
|
-
function
|
|
1114
|
+
function cn(e, t, r) {
|
|
1131
1115
|
return e.concat(t).map(function(n) {
|
|
1132
1116
|
return ne(n, r);
|
|
1133
1117
|
});
|
|
1134
1118
|
}
|
|
1135
|
-
function
|
|
1119
|
+
function fn(e, t) {
|
|
1136
1120
|
if (!t.customMerge)
|
|
1137
1121
|
return Z;
|
|
1138
1122
|
var r = t.customMerge(e);
|
|
1139
1123
|
return typeof r == "function" ? r : Z;
|
|
1140
1124
|
}
|
|
1141
|
-
function
|
|
1125
|
+
function dn(e) {
|
|
1142
1126
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1143
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1144
1128
|
}) : [];
|
|
1145
1129
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return Object.keys(e).concat(
|
|
1130
|
+
function dt(e) {
|
|
1131
|
+
return Object.keys(e).concat(dn(e));
|
|
1148
1132
|
}
|
|
1149
|
-
function
|
|
1133
|
+
function kt(e, t) {
|
|
1150
1134
|
try {
|
|
1151
1135
|
return t in e;
|
|
1152
1136
|
} catch (r) {
|
|
1153
1137
|
return !1;
|
|
1154
1138
|
}
|
|
1155
1139
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1140
|
+
function pn(e, t) {
|
|
1141
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1158
1142
|
}
|
|
1159
|
-
function
|
|
1143
|
+
function mn(e, t, r) {
|
|
1160
1144
|
var n = {};
|
|
1161
|
-
return r.isMergeableObject(e) &&
|
|
1145
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1162
1146
|
n[i] = ne(e[i], r);
|
|
1163
|
-
}),
|
|
1164
|
-
|
|
1147
|
+
}), dt(t).forEach(function(i) {
|
|
1148
|
+
pn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1165
1149
|
}), n;
|
|
1166
1150
|
}
|
|
1167
1151
|
function Z(e, t, r) {
|
|
1168
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1169
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1170
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ne(t, r);
|
|
1171
1155
|
}
|
|
1172
1156
|
Z.all = function(t, r) {
|
|
1173
1157
|
if (!Array.isArray(t))
|
|
@@ -1176,58 +1160,60 @@ Z.all = function(t, r) {
|
|
|
1176
1160
|
return Z(n, i, r);
|
|
1177
1161
|
}, {});
|
|
1178
1162
|
};
|
|
1179
|
-
var
|
|
1180
|
-
const
|
|
1181
|
-
function
|
|
1182
|
-
var r = t && t.cache ? t.cache :
|
|
1163
|
+
var bn = Z, gn = bn;
|
|
1164
|
+
const yn = /* @__PURE__ */ rn(gn);
|
|
1165
|
+
function Pe(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : _n;
|
|
1183
1167
|
return i(e, {
|
|
1184
1168
|
cache: r,
|
|
1185
1169
|
serializer: n
|
|
1186
1170
|
});
|
|
1187
1171
|
}
|
|
1188
|
-
function
|
|
1172
|
+
function xn(e) {
|
|
1189
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1190
1174
|
}
|
|
1191
|
-
function
|
|
1192
|
-
var i =
|
|
1175
|
+
function jt(e, t, r, n) {
|
|
1176
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1193
1177
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1194
1178
|
}
|
|
1195
|
-
function
|
|
1179
|
+
function Vt(e, t, r) {
|
|
1196
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1197
1181
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1198
1182
|
}
|
|
1199
|
-
function
|
|
1183
|
+
function Qe(e, t, r, n, i) {
|
|
1200
1184
|
return r.bind(t, e, n, i);
|
|
1201
1185
|
}
|
|
1202
|
-
function
|
|
1203
|
-
var r = e.length === 1 ?
|
|
1204
|
-
return
|
|
1186
|
+
function _n(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? jt : Vt;
|
|
1188
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1205
1189
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1190
|
+
function vn(e, t) {
|
|
1191
|
+
return Qe(e, this, Vt, t.cache.create(), t.serializer);
|
|
1208
1192
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1193
|
+
function En(e, t) {
|
|
1194
|
+
return Qe(e, this, jt, t.cache.create(), t.serializer);
|
|
1211
1195
|
}
|
|
1212
|
-
var
|
|
1196
|
+
var Sn = function() {
|
|
1213
1197
|
return JSON.stringify(arguments);
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1198
|
+
}, Tn = (
|
|
1199
|
+
/** @class */
|
|
1200
|
+
function() {
|
|
1201
|
+
function e() {
|
|
1202
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1203
|
+
}
|
|
1204
|
+
return e.prototype.get = function(t) {
|
|
1205
|
+
return this.cache[t];
|
|
1206
|
+
}, e.prototype.set = function(t, r) {
|
|
1207
|
+
this.cache[t] = r;
|
|
1208
|
+
}, e;
|
|
1209
|
+
}()
|
|
1210
|
+
), Hn = {
|
|
1225
1211
|
create: function() {
|
|
1226
|
-
return new
|
|
1212
|
+
return new Tn();
|
|
1227
1213
|
}
|
|
1228
|
-
},
|
|
1229
|
-
variadic:
|
|
1230
|
-
monadic:
|
|
1214
|
+
}, we = {
|
|
1215
|
+
variadic: vn,
|
|
1216
|
+
monadic: En
|
|
1231
1217
|
}, b;
|
|
1232
1218
|
(function(e) {
|
|
1233
1219
|
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";
|
|
@@ -1240,43 +1226,43 @@ var Q;
|
|
|
1240
1226
|
(function(e) {
|
|
1241
1227
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1242
1228
|
})(Q || (Q = {}));
|
|
1243
|
-
function
|
|
1229
|
+
function pt(e) {
|
|
1244
1230
|
return e.type === _.literal;
|
|
1245
1231
|
}
|
|
1246
|
-
function
|
|
1232
|
+
function An(e) {
|
|
1247
1233
|
return e.type === _.argument;
|
|
1248
1234
|
}
|
|
1249
|
-
function
|
|
1235
|
+
function Xt(e) {
|
|
1250
1236
|
return e.type === _.number;
|
|
1251
1237
|
}
|
|
1252
|
-
function
|
|
1238
|
+
function Wt(e) {
|
|
1253
1239
|
return e.type === _.date;
|
|
1254
1240
|
}
|
|
1255
|
-
function
|
|
1241
|
+
function zt(e) {
|
|
1256
1242
|
return e.type === _.time;
|
|
1257
1243
|
}
|
|
1258
|
-
function
|
|
1244
|
+
function Zt(e) {
|
|
1259
1245
|
return e.type === _.select;
|
|
1260
1246
|
}
|
|
1261
|
-
function
|
|
1247
|
+
function Qt(e) {
|
|
1262
1248
|
return e.type === _.plural;
|
|
1263
1249
|
}
|
|
1264
|
-
function
|
|
1250
|
+
function Pn(e) {
|
|
1265
1251
|
return e.type === _.pound;
|
|
1266
1252
|
}
|
|
1267
|
-
function
|
|
1253
|
+
function Jt(e) {
|
|
1268
1254
|
return e.type === _.tag;
|
|
1269
1255
|
}
|
|
1270
|
-
function
|
|
1256
|
+
function qt(e) {
|
|
1271
1257
|
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
1272
1258
|
}
|
|
1273
|
-
function
|
|
1259
|
+
function Ge(e) {
|
|
1274
1260
|
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
1275
1261
|
}
|
|
1276
|
-
var
|
|
1277
|
-
function
|
|
1262
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
1263
|
+
function Bn(e) {
|
|
1278
1264
|
var t = {};
|
|
1279
|
-
return e.replace(
|
|
1265
|
+
return e.replace(wn, function(r) {
|
|
1280
1266
|
var n = r.length;
|
|
1281
1267
|
switch (r[0]) {
|
|
1282
1268
|
case "G":
|
|
@@ -1365,11 +1351,11 @@ function On(e) {
|
|
|
1365
1351
|
return "";
|
|
1366
1352
|
}), t;
|
|
1367
1353
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1354
|
+
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1355
|
+
function On(e) {
|
|
1370
1356
|
if (e.length === 0)
|
|
1371
1357
|
throw new Error("Number skeleton cannot be empty");
|
|
1372
|
-
for (var t = e.split(
|
|
1358
|
+
for (var t = e.split(Nn).filter(function(f) {
|
|
1373
1359
|
return f.length > 0;
|
|
1374
1360
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1375
1361
|
var o = i[n], s = o.split("/");
|
|
@@ -1384,17 +1370,17 @@ function Cn(e) {
|
|
|
1384
1370
|
}
|
|
1385
1371
|
return r;
|
|
1386
1372
|
}
|
|
1387
|
-
function
|
|
1373
|
+
function In(e) {
|
|
1388
1374
|
return e.replace(/^(.*?)-/, "");
|
|
1389
1375
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1376
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1377
|
+
function bt(e) {
|
|
1392
1378
|
var t = {};
|
|
1393
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1379
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1394
1380
|
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)), "";
|
|
1395
1381
|
}), t;
|
|
1396
1382
|
}
|
|
1397
|
-
function
|
|
1383
|
+
function tr(e) {
|
|
1398
1384
|
switch (e) {
|
|
1399
1385
|
case "sign-auto":
|
|
1400
1386
|
return {
|
|
@@ -1434,7 +1420,7 @@ function ir(e) {
|
|
|
1434
1420
|
};
|
|
1435
1421
|
}
|
|
1436
1422
|
}
|
|
1437
|
-
function
|
|
1423
|
+
function Ln(e) {
|
|
1438
1424
|
var t;
|
|
1439
1425
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1440
1426
|
notation: "engineering"
|
|
@@ -1442,17 +1428,17 @@ function $n(e) {
|
|
|
1442
1428
|
notation: "scientific"
|
|
1443
1429
|
}, e = e.slice(1)), t) {
|
|
1444
1430
|
var r = e.slice(0, 2);
|
|
1445
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1431
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1446
1432
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1447
1433
|
t.minimumIntegerDigits = e.length;
|
|
1448
1434
|
}
|
|
1449
1435
|
return t;
|
|
1450
1436
|
}
|
|
1451
|
-
function
|
|
1452
|
-
var t = {}, r =
|
|
1437
|
+
function gt(e) {
|
|
1438
|
+
var t = {}, r = tr(e);
|
|
1453
1439
|
return r || t;
|
|
1454
1440
|
}
|
|
1455
|
-
function
|
|
1441
|
+
function Mn(e) {
|
|
1456
1442
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1457
1443
|
var i = n[r];
|
|
1458
1444
|
switch (i.stem) {
|
|
@@ -1476,7 +1462,7 @@ function Rn(e) {
|
|
|
1476
1462
|
continue;
|
|
1477
1463
|
case "measure-unit":
|
|
1478
1464
|
case "unit":
|
|
1479
|
-
t.style = "unit", t.unit =
|
|
1465
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1480
1466
|
continue;
|
|
1481
1467
|
case "compact-short":
|
|
1482
1468
|
case "K":
|
|
@@ -1487,13 +1473,13 @@ function Rn(e) {
|
|
|
1487
1473
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1488
1474
|
continue;
|
|
1489
1475
|
case "scientific":
|
|
1490
|
-
t =
|
|
1491
|
-
return
|
|
1476
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1477
|
+
return x(x({}, h), gt(u));
|
|
1492
1478
|
}, {}));
|
|
1493
1479
|
continue;
|
|
1494
1480
|
case "engineering":
|
|
1495
|
-
t =
|
|
1496
|
-
return
|
|
1481
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1482
|
+
return x(x({}, h), gt(u));
|
|
1497
1483
|
}, {}));
|
|
1498
1484
|
continue;
|
|
1499
1485
|
case "notation-simple":
|
|
@@ -1538,41 +1524,41 @@ function Rn(e) {
|
|
|
1538
1524
|
case "integer-width":
|
|
1539
1525
|
if (i.options.length > 1)
|
|
1540
1526
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1541
|
-
i.options[0].replace(
|
|
1527
|
+
i.options[0].replace(Cn, function(h, u, l, c, f, p) {
|
|
1542
1528
|
if (u)
|
|
1543
1529
|
t.minimumIntegerDigits = l.length;
|
|
1544
1530
|
else {
|
|
1545
1531
|
if (c && f)
|
|
1546
1532
|
throw new Error("We currently do not support maximum integer digits");
|
|
1547
|
-
if (
|
|
1533
|
+
if (p)
|
|
1548
1534
|
throw new Error("We currently do not support exact integer digits");
|
|
1549
1535
|
}
|
|
1550
1536
|
return "";
|
|
1551
1537
|
});
|
|
1552
1538
|
continue;
|
|
1553
1539
|
}
|
|
1554
|
-
if (
|
|
1540
|
+
if (er.test(i.stem)) {
|
|
1555
1541
|
t.minimumIntegerDigits = i.stem.length;
|
|
1556
1542
|
continue;
|
|
1557
1543
|
}
|
|
1558
|
-
if (
|
|
1544
|
+
if (mt.test(i.stem)) {
|
|
1559
1545
|
if (i.options.length > 1)
|
|
1560
1546
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1561
|
-
i.stem.replace(
|
|
1562
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1547
|
+
i.stem.replace(mt, function(h, u, l, c, f, p) {
|
|
1548
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1563
1549
|
});
|
|
1564
1550
|
var o = i.options[0];
|
|
1565
|
-
o === "w" ? t =
|
|
1551
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), bt(o)));
|
|
1566
1552
|
continue;
|
|
1567
1553
|
}
|
|
1568
|
-
if (
|
|
1569
|
-
t =
|
|
1554
|
+
if (Kt.test(i.stem)) {
|
|
1555
|
+
t = x(x({}, t), bt(i.stem));
|
|
1570
1556
|
continue;
|
|
1571
1557
|
}
|
|
1572
|
-
var s =
|
|
1573
|
-
s && (t =
|
|
1574
|
-
var a =
|
|
1575
|
-
a && (t =
|
|
1558
|
+
var s = tr(i.stem);
|
|
1559
|
+
s && (t = x(x({}, t), s));
|
|
1560
|
+
var a = Ln(i.stem);
|
|
1561
|
+
a && (t = x(x({}, t), a));
|
|
1576
1562
|
}
|
|
1577
1563
|
return t;
|
|
1578
1564
|
}
|
|
@@ -2991,13 +2977,13 @@ var le = {
|
|
|
2991
2977
|
"h"
|
|
2992
2978
|
]
|
|
2993
2979
|
};
|
|
2994
|
-
function
|
|
2980
|
+
function $n(e, t) {
|
|
2995
2981
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2996
2982
|
var i = e.charAt(n);
|
|
2997
2983
|
if (i === "j") {
|
|
2998
2984
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2999
2985
|
o++, n++;
|
|
3000
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2986
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
|
3001
2987
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3002
2988
|
r += h;
|
|
3003
2989
|
for (; s-- > 0; )
|
|
@@ -3007,7 +2993,7 @@ function Un(e, t) {
|
|
|
3007
2993
|
}
|
|
3008
2994
|
return r;
|
|
3009
2995
|
}
|
|
3010
|
-
function
|
|
2996
|
+
function Rn(e) {
|
|
3011
2997
|
var t = e.hourCycle;
|
|
3012
2998
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3013
2999
|
e.hourCycles && // @ts-ignore
|
|
@@ -3029,20 +3015,20 @@ function Dn(e) {
|
|
|
3029
3015
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3030
3016
|
return i[0];
|
|
3031
3017
|
}
|
|
3032
|
-
var
|
|
3018
|
+
var Be, Un = new RegExp("^".concat(Yt.source, "*")), Dn = new RegExp("".concat(Yt.source, "*$"));
|
|
3033
3019
|
function g(e, t) {
|
|
3034
3020
|
return { start: e, end: t };
|
|
3035
3021
|
}
|
|
3036
|
-
var
|
|
3022
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, kn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3037
3023
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3038
|
-
},
|
|
3024
|
+
}, Fe = !0;
|
|
3039
3025
|
try {
|
|
3040
|
-
var
|
|
3041
|
-
|
|
3026
|
+
var Zn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3027
|
+
Fe = ((Be = Zn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3042
3028
|
} catch (e) {
|
|
3043
|
-
|
|
3029
|
+
Fe = !1;
|
|
3044
3030
|
}
|
|
3045
|
-
var
|
|
3031
|
+
var yt = Gn ? (
|
|
3046
3032
|
// Native
|
|
3047
3033
|
function(t, r, n) {
|
|
3048
3034
|
return t.startsWith(r, n);
|
|
@@ -3052,7 +3038,7 @@ var _t = kn ? (
|
|
|
3052
3038
|
function(t, r, n) {
|
|
3053
3039
|
return t.slice(n, n + r.length) === r;
|
|
3054
3040
|
}
|
|
3055
|
-
),
|
|
3041
|
+
), ke = Fn ? String.fromCodePoint : (
|
|
3056
3042
|
// IE11
|
|
3057
3043
|
function() {
|
|
3058
3044
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3066,7 +3052,7 @@ var _t = kn ? (
|
|
|
3066
3052
|
}
|
|
3067
3053
|
), xt = (
|
|
3068
3054
|
// native
|
|
3069
|
-
|
|
3055
|
+
kn ? Object.fromEntries : (
|
|
3070
3056
|
// Ponyfill
|
|
3071
3057
|
function(t) {
|
|
3072
3058
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3076,7 +3062,7 @@ var _t = kn ? (
|
|
|
3076
3062
|
return r;
|
|
3077
3063
|
}
|
|
3078
3064
|
)
|
|
3079
|
-
),
|
|
3065
|
+
), rr = jn ? (
|
|
3080
3066
|
// Native
|
|
3081
3067
|
function(t, r) {
|
|
3082
3068
|
return t.codePointAt(r);
|
|
@@ -3090,7 +3076,7 @@ var _t = kn ? (
|
|
|
3090
3076
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3091
3077
|
}
|
|
3092
3078
|
}
|
|
3093
|
-
),
|
|
3079
|
+
), Qn = Vn ? (
|
|
3094
3080
|
// Native
|
|
3095
3081
|
function(t) {
|
|
3096
3082
|
return t.trimStart();
|
|
@@ -3098,9 +3084,9 @@ var _t = kn ? (
|
|
|
3098
3084
|
) : (
|
|
3099
3085
|
// Ponyfill
|
|
3100
3086
|
function(t) {
|
|
3101
|
-
return t.replace(
|
|
3087
|
+
return t.replace(Un, "");
|
|
3102
3088
|
}
|
|
3103
|
-
),
|
|
3089
|
+
), Jn = Xn ? (
|
|
3104
3090
|
// Native
|
|
3105
3091
|
function(t) {
|
|
3106
3092
|
return t.trimEnd();
|
|
@@ -3108,32 +3094,32 @@ var _t = kn ? (
|
|
|
3108
3094
|
) : (
|
|
3109
3095
|
// Ponyfill
|
|
3110
3096
|
function(t) {
|
|
3111
|
-
return t.replace(
|
|
3097
|
+
return t.replace(Dn, "");
|
|
3112
3098
|
}
|
|
3113
3099
|
);
|
|
3114
|
-
function
|
|
3100
|
+
function nr(e, t) {
|
|
3115
3101
|
return new RegExp(e, t);
|
|
3116
3102
|
}
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3103
|
+
var je;
|
|
3104
|
+
if (Fe) {
|
|
3105
|
+
var _t = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3106
|
+
je = function(t, r) {
|
|
3121
3107
|
var n;
|
|
3122
|
-
|
|
3123
|
-
var i =
|
|
3108
|
+
_t.lastIndex = r;
|
|
3109
|
+
var i = _t.exec(t);
|
|
3124
3110
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3125
3111
|
};
|
|
3126
3112
|
} else
|
|
3127
|
-
|
|
3113
|
+
je = function(t, r) {
|
|
3128
3114
|
for (var n = []; ; ) {
|
|
3129
|
-
var i =
|
|
3130
|
-
if (i === void 0 ||
|
|
3115
|
+
var i = rr(t, r);
|
|
3116
|
+
if (i === void 0 || ir(i) || ei(i))
|
|
3131
3117
|
break;
|
|
3132
3118
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3133
3119
|
}
|
|
3134
|
-
return
|
|
3120
|
+
return ke.apply(void 0, n);
|
|
3135
3121
|
};
|
|
3136
|
-
var
|
|
3122
|
+
var qn = (
|
|
3137
3123
|
/** @class */
|
|
3138
3124
|
function() {
|
|
3139
3125
|
function e(t, r) {
|
|
@@ -3164,7 +3150,7 @@ var Kn = (
|
|
|
3164
3150
|
if (n)
|
|
3165
3151
|
break;
|
|
3166
3152
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3167
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3153
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3168
3154
|
var s = this.parseTag(t, r);
|
|
3169
3155
|
if (s.err)
|
|
3170
3156
|
return s;
|
|
@@ -3197,7 +3183,7 @@ var Kn = (
|
|
|
3197
3183
|
return o;
|
|
3198
3184
|
var s = o.val, a = this.clonePosition();
|
|
3199
3185
|
if (this.bumpIf("</")) {
|
|
3200
|
-
if (this.isEOF() || !
|
|
3186
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3201
3187
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3202
3188
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3203
3189
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3215,7 +3201,7 @@ var Kn = (
|
|
|
3215
3201
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3216
3202
|
}, e.prototype.parseTagName = function() {
|
|
3217
3203
|
var t = this.offset();
|
|
3218
|
-
for (this.bump(); !this.isEOF() &&
|
|
3204
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3219
3205
|
this.bump();
|
|
3220
3206
|
return this.message.slice(t, this.offset());
|
|
3221
3207
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3244,7 +3230,7 @@ var Kn = (
|
|
|
3244
3230
|
};
|
|
3245
3231
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3246
3232
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3247
|
-
!
|
|
3233
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3248
3234
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3249
3235
|
if (this.isEOF() || this.char() !== 39)
|
|
3250
3236
|
return null;
|
|
@@ -3278,12 +3264,12 @@ var Kn = (
|
|
|
3278
3264
|
r.push(n);
|
|
3279
3265
|
this.bump();
|
|
3280
3266
|
}
|
|
3281
|
-
return
|
|
3267
|
+
return ke.apply(void 0, r);
|
|
3282
3268
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3283
3269
|
if (this.isEOF())
|
|
3284
3270
|
return null;
|
|
3285
3271
|
var n = this.char();
|
|
3286
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3272
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3287
3273
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3288
3274
|
var n = this.clonePosition();
|
|
3289
3275
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3312,7 +3298,7 @@ var Kn = (
|
|
|
3312
3298
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3313
3299
|
}
|
|
3314
3300
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3315
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3301
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3316
3302
|
this.bumpTo(i);
|
|
3317
3303
|
var o = this.clonePosition(), s = g(t, o);
|
|
3318
3304
|
return { value: n, location: s };
|
|
@@ -3331,37 +3317,37 @@ var Kn = (
|
|
|
3331
3317
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3332
3318
|
if (c.err)
|
|
3333
3319
|
return c;
|
|
3334
|
-
var f =
|
|
3320
|
+
var f = Jn(c.val);
|
|
3335
3321
|
if (f.length === 0)
|
|
3336
3322
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3337
|
-
var
|
|
3338
|
-
u = { style: f, styleLocation:
|
|
3323
|
+
var p = g(l, this.clonePosition());
|
|
3324
|
+
u = { style: f, styleLocation: p };
|
|
3339
3325
|
}
|
|
3340
3326
|
var m = this.tryParseArgumentClose(i);
|
|
3341
3327
|
if (m.err)
|
|
3342
3328
|
return m;
|
|
3343
|
-
var
|
|
3344
|
-
if (u &&
|
|
3345
|
-
var S =
|
|
3329
|
+
var d = g(i, this.clonePosition());
|
|
3330
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3331
|
+
var S = Qn(u.style.slice(2));
|
|
3346
3332
|
if (a === "number") {
|
|
3347
3333
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3348
3334
|
return c.err ? c : {
|
|
3349
|
-
val: { type: _.number, value: n, location:
|
|
3335
|
+
val: { type: _.number, value: n, location: d, style: c.val },
|
|
3350
3336
|
err: null
|
|
3351
3337
|
};
|
|
3352
3338
|
} else {
|
|
3353
3339
|
if (S.length === 0)
|
|
3354
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3340
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3355
3341
|
var R = S;
|
|
3356
|
-
this.locale && (R =
|
|
3342
|
+
this.locale && (R = $n(S, this.locale));
|
|
3357
3343
|
var f = {
|
|
3358
3344
|
type: Q.dateTime,
|
|
3359
3345
|
pattern: R,
|
|
3360
3346
|
location: u.styleLocation,
|
|
3361
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3347
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(R) : {}
|
|
3362
3348
|
}, L = a === "date" ? _.date : _.time;
|
|
3363
3349
|
return {
|
|
3364
|
-
val: { type: L, value: n, location:
|
|
3350
|
+
val: { type: L, value: n, location: d, style: f },
|
|
3365
3351
|
err: null
|
|
3366
3352
|
};
|
|
3367
3353
|
}
|
|
@@ -3370,7 +3356,7 @@ var Kn = (
|
|
|
3370
3356
|
val: {
|
|
3371
3357
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3372
3358
|
value: n,
|
|
3373
|
-
location:
|
|
3359
|
+
location: d,
|
|
3374
3360
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3375
3361
|
},
|
|
3376
3362
|
err: null
|
|
@@ -3381,7 +3367,7 @@ var Kn = (
|
|
|
3381
3367
|
case "select": {
|
|
3382
3368
|
var A = this.clonePosition();
|
|
3383
3369
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3384
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A,
|
|
3370
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, x({}, A)));
|
|
3385
3371
|
this.bumpSpace();
|
|
3386
3372
|
var U = this.parseIdentifierIfPossible(), B = 0;
|
|
3387
3373
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3463,7 +3449,7 @@ var Kn = (
|
|
|
3463
3449
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3464
3450
|
var n = [];
|
|
3465
3451
|
try {
|
|
3466
|
-
n =
|
|
3452
|
+
n = On(t);
|
|
3467
3453
|
} catch (i) {
|
|
3468
3454
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3469
3455
|
}
|
|
@@ -3472,7 +3458,7 @@ var Kn = (
|
|
|
3472
3458
|
type: Q.number,
|
|
3473
3459
|
tokens: n,
|
|
3474
3460
|
location: r,
|
|
3475
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3461
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3476
3462
|
},
|
|
3477
3463
|
err: null
|
|
3478
3464
|
};
|
|
@@ -3491,20 +3477,20 @@ var Kn = (
|
|
|
3491
3477
|
if (h.has(u))
|
|
3492
3478
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3493
3479
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3494
|
-
var
|
|
3480
|
+
var p = this.clonePosition();
|
|
3495
3481
|
if (!this.bumpIf("{"))
|
|
3496
3482
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3497
3483
|
var m = this.parseMessage(t + 1, r, n);
|
|
3498
3484
|
if (m.err)
|
|
3499
3485
|
return m;
|
|
3500
|
-
var
|
|
3501
|
-
if (
|
|
3502
|
-
return
|
|
3486
|
+
var d = this.tryParseArgumentClose(p);
|
|
3487
|
+
if (d.err)
|
|
3488
|
+
return d;
|
|
3503
3489
|
a.push([
|
|
3504
3490
|
u,
|
|
3505
3491
|
{
|
|
3506
3492
|
value: m.val,
|
|
3507
|
-
location: g(
|
|
3493
|
+
location: g(p, this.clonePosition())
|
|
3508
3494
|
}
|
|
3509
3495
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3510
3496
|
}
|
|
@@ -3520,7 +3506,7 @@ var Kn = (
|
|
|
3520
3506
|
break;
|
|
3521
3507
|
}
|
|
3522
3508
|
var h = g(i, this.clonePosition());
|
|
3523
|
-
return o ? (s *= n,
|
|
3509
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3524
3510
|
}, e.prototype.offset = function() {
|
|
3525
3511
|
return this.position.offset;
|
|
3526
3512
|
}, e.prototype.isEOF = function() {
|
|
@@ -3535,7 +3521,7 @@ var Kn = (
|
|
|
3535
3521
|
var t = this.position.offset;
|
|
3536
3522
|
if (t >= this.message.length)
|
|
3537
3523
|
throw Error("out of bound");
|
|
3538
|
-
var r =
|
|
3524
|
+
var r = rr(this.message, t);
|
|
3539
3525
|
if (r === void 0)
|
|
3540
3526
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3541
3527
|
return r;
|
|
@@ -3554,7 +3540,7 @@ var Kn = (
|
|
|
3554
3540
|
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);
|
|
3555
3541
|
}
|
|
3556
3542
|
}, e.prototype.bumpIf = function(t) {
|
|
3557
|
-
if (
|
|
3543
|
+
if (yt(this.message, t, this.offset())) {
|
|
3558
3544
|
for (var r = 0; r < t.length; r++)
|
|
3559
3545
|
this.bump();
|
|
3560
3546
|
return !0;
|
|
@@ -3576,7 +3562,7 @@ var Kn = (
|
|
|
3576
3562
|
break;
|
|
3577
3563
|
}
|
|
3578
3564
|
}, e.prototype.bumpSpace = function() {
|
|
3579
|
-
for (; !this.isEOF() &&
|
|
3565
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3580
3566
|
this.bump();
|
|
3581
3567
|
}, e.prototype.peek = function() {
|
|
3582
3568
|
if (this.isEOF())
|
|
@@ -3586,44 +3572,44 @@ var Kn = (
|
|
|
3586
3572
|
}, e;
|
|
3587
3573
|
}()
|
|
3588
3574
|
);
|
|
3589
|
-
function
|
|
3575
|
+
function Ve(e) {
|
|
3590
3576
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3591
3577
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3578
|
+
function Yn(e) {
|
|
3579
|
+
return Ve(e) || e === 47;
|
|
3594
3580
|
}
|
|
3595
|
-
function
|
|
3581
|
+
function Kn(e) {
|
|
3596
3582
|
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;
|
|
3597
3583
|
}
|
|
3598
|
-
function
|
|
3584
|
+
function ir(e) {
|
|
3599
3585
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3600
3586
|
}
|
|
3601
|
-
function
|
|
3587
|
+
function ei(e) {
|
|
3602
3588
|
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;
|
|
3603
3589
|
}
|
|
3604
|
-
function
|
|
3590
|
+
function Xe(e) {
|
|
3605
3591
|
e.forEach(function(t) {
|
|
3606
|
-
if (delete t.location,
|
|
3592
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3607
3593
|
for (var r in t.options)
|
|
3608
|
-
delete t.options[r].location,
|
|
3594
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3609
3595
|
else
|
|
3610
|
-
|
|
3596
|
+
Xt(t) && qt(t.style) || (Wt(t) || zt(t)) && Ge(t.style) ? delete t.style.location : Jt(t) && Xe(t.children);
|
|
3611
3597
|
});
|
|
3612
3598
|
}
|
|
3613
|
-
function
|
|
3614
|
-
t === void 0 && (t = {}), t =
|
|
3615
|
-
var r = new
|
|
3599
|
+
function ti(e, t) {
|
|
3600
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3601
|
+
var r = new qn(e, t).parse();
|
|
3616
3602
|
if (r.err) {
|
|
3617
3603
|
var n = SyntaxError(b[r.err.kind]);
|
|
3618
3604
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3619
3605
|
}
|
|
3620
|
-
return t != null && t.captureLocation ||
|
|
3606
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3621
3607
|
}
|
|
3622
3608
|
var J;
|
|
3623
3609
|
(function(e) {
|
|
3624
3610
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3625
3611
|
})(J || (J = {}));
|
|
3626
|
-
var
|
|
3612
|
+
var ve = (
|
|
3627
3613
|
/** @class */
|
|
3628
3614
|
function(e) {
|
|
3629
3615
|
C(t, e);
|
|
@@ -3635,7 +3621,7 @@ var xe = (
|
|
|
3635
3621
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3636
3622
|
}, t;
|
|
3637
3623
|
}(Error)
|
|
3638
|
-
),
|
|
3624
|
+
), vt = (
|
|
3639
3625
|
/** @class */
|
|
3640
3626
|
function(e) {
|
|
3641
3627
|
C(t, e);
|
|
@@ -3643,8 +3629,8 @@ var xe = (
|
|
|
3643
3629
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
|
|
3644
3630
|
}
|
|
3645
3631
|
return t;
|
|
3646
|
-
}(
|
|
3647
|
-
),
|
|
3632
|
+
}(ve)
|
|
3633
|
+
), ri = (
|
|
3648
3634
|
/** @class */
|
|
3649
3635
|
function(e) {
|
|
3650
3636
|
C(t, e);
|
|
@@ -3652,8 +3638,8 @@ var xe = (
|
|
|
3652
3638
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3653
3639
|
}
|
|
3654
3640
|
return t;
|
|
3655
|
-
}(
|
|
3656
|
-
),
|
|
3641
|
+
}(ve)
|
|
3642
|
+
), ni = (
|
|
3657
3643
|
/** @class */
|
|
3658
3644
|
function(e) {
|
|
3659
3645
|
C(t, e);
|
|
@@ -3661,22 +3647,22 @@ var xe = (
|
|
|
3661
3647
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3662
3648
|
}
|
|
3663
3649
|
return t;
|
|
3664
|
-
}(
|
|
3650
|
+
}(ve)
|
|
3665
3651
|
), E;
|
|
3666
3652
|
(function(e) {
|
|
3667
3653
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3668
3654
|
})(E || (E = {}));
|
|
3669
|
-
function
|
|
3655
|
+
function ii(e) {
|
|
3670
3656
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3671
3657
|
var n = t[t.length - 1];
|
|
3672
3658
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3673
3659
|
}, []);
|
|
3674
3660
|
}
|
|
3675
|
-
function
|
|
3661
|
+
function oi(e) {
|
|
3676
3662
|
return typeof e == "function";
|
|
3677
3663
|
}
|
|
3678
|
-
function
|
|
3679
|
-
if (e.length === 1 &&
|
|
3664
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3665
|
+
if (e.length === 1 && pt(e[0]))
|
|
3680
3666
|
return [
|
|
3681
3667
|
{
|
|
3682
3668
|
type: E.literal,
|
|
@@ -3685,14 +3671,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3685
3671
|
];
|
|
3686
3672
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3687
3673
|
var l = u[h];
|
|
3688
|
-
if (
|
|
3674
|
+
if (pt(l)) {
|
|
3689
3675
|
a.push({
|
|
3690
3676
|
type: E.literal,
|
|
3691
3677
|
value: l.value
|
|
3692
3678
|
});
|
|
3693
3679
|
continue;
|
|
3694
3680
|
}
|
|
3695
|
-
if (
|
|
3681
|
+
if (Pn(l)) {
|
|
3696
3682
|
typeof o == "number" && a.push({
|
|
3697
3683
|
type: E.literal,
|
|
3698
3684
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3701,44 +3687,44 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3701
3687
|
}
|
|
3702
3688
|
var c = l.value;
|
|
3703
3689
|
if (!(i && c in i))
|
|
3704
|
-
throw new
|
|
3690
|
+
throw new ni(c, s);
|
|
3705
3691
|
var f = i[c];
|
|
3706
|
-
if (
|
|
3692
|
+
if (An(l)) {
|
|
3707
3693
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3708
3694
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3709
3695
|
value: f
|
|
3710
3696
|
});
|
|
3711
3697
|
continue;
|
|
3712
3698
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var
|
|
3699
|
+
if (Wt(l)) {
|
|
3700
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3715
3701
|
a.push({
|
|
3716
3702
|
type: E.literal,
|
|
3717
|
-
value: r.getDateTimeFormat(t,
|
|
3703
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3718
3704
|
});
|
|
3719
3705
|
continue;
|
|
3720
3706
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var
|
|
3707
|
+
if (zt(l)) {
|
|
3708
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3723
3709
|
a.push({
|
|
3724
3710
|
type: E.literal,
|
|
3725
|
-
value: r.getDateTimeFormat(t,
|
|
3711
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3726
3712
|
});
|
|
3727
3713
|
continue;
|
|
3728
3714
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3731
|
-
|
|
3715
|
+
if (Xt(l)) {
|
|
3716
|
+
var p = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3717
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3732
3718
|
type: E.literal,
|
|
3733
|
-
value: r.getNumberFormat(t,
|
|
3719
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3734
3720
|
});
|
|
3735
3721
|
continue;
|
|
3736
3722
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var m = l.children,
|
|
3739
|
-
if (!
|
|
3740
|
-
throw new
|
|
3741
|
-
var R =
|
|
3723
|
+
if (Jt(l)) {
|
|
3724
|
+
var m = l.children, d = l.value, S = i[d];
|
|
3725
|
+
if (!oi(S))
|
|
3726
|
+
throw new ri(d, "function", s);
|
|
3727
|
+
var R = pe(m, t, r, n, i, o), L = S(R.map(function(B) {
|
|
3742
3728
|
return B.value;
|
|
3743
3729
|
}));
|
|
3744
3730
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(B) {
|
|
@@ -3748,42 +3734,42 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3748
3734
|
};
|
|
3749
3735
|
}));
|
|
3750
3736
|
}
|
|
3751
|
-
if (
|
|
3737
|
+
if (Zt(l)) {
|
|
3752
3738
|
var A = l.options[f] || l.options.other;
|
|
3753
3739
|
if (!A)
|
|
3754
|
-
throw new
|
|
3755
|
-
a.push.apply(a,
|
|
3740
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3741
|
+
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3756
3742
|
continue;
|
|
3757
3743
|
}
|
|
3758
|
-
if (
|
|
3744
|
+
if (Qt(l)) {
|
|
3759
3745
|
var A = l.options["=".concat(f)];
|
|
3760
3746
|
if (!A) {
|
|
3761
3747
|
if (!Intl.PluralRules)
|
|
3762
|
-
throw new
|
|
3748
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3763
3749
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3764
3750
|
`, J.MISSING_INTL_API, s);
|
|
3765
3751
|
var U = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3766
3752
|
A = l.options[U] || l.options.other;
|
|
3767
3753
|
}
|
|
3768
3754
|
if (!A)
|
|
3769
|
-
throw new
|
|
3770
|
-
a.push.apply(a,
|
|
3755
|
+
throw new vt(l.value, f, Object.keys(l.options), s);
|
|
3756
|
+
a.push.apply(a, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3771
3757
|
continue;
|
|
3772
3758
|
}
|
|
3773
3759
|
}
|
|
3774
|
-
return
|
|
3760
|
+
return ii(a);
|
|
3775
3761
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return t ?
|
|
3778
|
-
return r[n] =
|
|
3762
|
+
function si(e, t) {
|
|
3763
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3764
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3779
3765
|
}, {})) : e;
|
|
3780
3766
|
}
|
|
3781
|
-
function
|
|
3767
|
+
function ai(e, t) {
|
|
3782
3768
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3783
|
-
return r[n] =
|
|
3784
|
-
},
|
|
3769
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3770
|
+
}, x({}, e)) : e;
|
|
3785
3771
|
}
|
|
3786
|
-
function
|
|
3772
|
+
function Ne(e) {
|
|
3787
3773
|
return {
|
|
3788
3774
|
create: function() {
|
|
3789
3775
|
return {
|
|
@@ -3797,39 +3783,39 @@ function Oe(e) {
|
|
|
3797
3783
|
}
|
|
3798
3784
|
};
|
|
3799
3785
|
}
|
|
3800
|
-
function
|
|
3786
|
+
function ui(e) {
|
|
3801
3787
|
return e === void 0 && (e = {
|
|
3802
3788
|
number: {},
|
|
3803
3789
|
dateTime: {},
|
|
3804
3790
|
pluralRules: {}
|
|
3805
3791
|
}), {
|
|
3806
|
-
getNumberFormat:
|
|
3792
|
+
getNumberFormat: Pe(function() {
|
|
3807
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3794
|
r[n] = arguments[n];
|
|
3809
3795
|
return new ((t = Intl.NumberFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3810
3796
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3797
|
+
cache: Ne(e.number),
|
|
3798
|
+
strategy: we.variadic
|
|
3813
3799
|
}),
|
|
3814
|
-
getDateTimeFormat:
|
|
3800
|
+
getDateTimeFormat: Pe(function() {
|
|
3815
3801
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3802
|
r[n] = arguments[n];
|
|
3817
3803
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3818
3804
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3805
|
+
cache: Ne(e.dateTime),
|
|
3806
|
+
strategy: we.variadic
|
|
3821
3807
|
}),
|
|
3822
|
-
getPluralRules:
|
|
3808
|
+
getPluralRules: Pe(function() {
|
|
3823
3809
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3810
|
r[n] = arguments[n];
|
|
3825
3811
|
return new ((t = Intl.PluralRules).bind.apply(t, z([void 0], r, !1)))();
|
|
3826
3812
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3813
|
+
cache: Ne(e.pluralRules),
|
|
3814
|
+
strategy: we.variadic
|
|
3829
3815
|
})
|
|
3830
3816
|
};
|
|
3831
3817
|
}
|
|
3832
|
-
var
|
|
3818
|
+
var hi = (
|
|
3833
3819
|
/** @class */
|
|
3834
3820
|
function() {
|
|
3835
3821
|
function e(t, r, n, i) {
|
|
@@ -3848,7 +3834,7 @@ var ci = (
|
|
|
3848
3834
|
}, []);
|
|
3849
3835
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3850
3836
|
}, this.formatToParts = function(h) {
|
|
3851
|
-
return
|
|
3837
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3852
3838
|
}, this.resolvedOptions = function() {
|
|
3853
3839
|
var h;
|
|
3854
3840
|
return {
|
|
@@ -3861,13 +3847,13 @@ var ci = (
|
|
|
3861
3847
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3862
3848
|
var s = i || {};
|
|
3863
3849
|
s.formatters;
|
|
3864
|
-
var a =
|
|
3865
|
-
this.ast = e.__parse(t,
|
|
3850
|
+
var a = Gr(s, ["formatters"]);
|
|
3851
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3866
3852
|
} else
|
|
3867
3853
|
this.ast = t;
|
|
3868
3854
|
if (!Array.isArray(this.ast))
|
|
3869
3855
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3870
|
-
this.formats =
|
|
3856
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3871
3857
|
}
|
|
3872
3858
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3873
3859
|
get: function() {
|
|
@@ -3880,7 +3866,7 @@ var ci = (
|
|
|
3880
3866
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3881
3867
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3882
3868
|
}
|
|
3883
|
-
}, e.__parse =
|
|
3869
|
+
}, e.__parse = ti, e.formats = {
|
|
3884
3870
|
number: {
|
|
3885
3871
|
integer: {
|
|
3886
3872
|
maximumFractionDigits: 0
|
|
@@ -3941,7 +3927,7 @@ var ci = (
|
|
|
3941
3927
|
}, e;
|
|
3942
3928
|
}()
|
|
3943
3929
|
);
|
|
3944
|
-
function
|
|
3930
|
+
function li(e, t) {
|
|
3945
3931
|
if (t == null)
|
|
3946
3932
|
return;
|
|
3947
3933
|
if (t in e)
|
|
@@ -3962,88 +3948,88 @@ function fi(e, t) {
|
|
|
3962
3948
|
n = void 0;
|
|
3963
3949
|
return n;
|
|
3964
3950
|
}
|
|
3965
|
-
const M = {},
|
|
3951
|
+
const M = {}, ci = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), or = (e, t) => {
|
|
3966
3952
|
if (t == null)
|
|
3967
3953
|
return;
|
|
3968
3954
|
if (t in M && e in M[t])
|
|
3969
3955
|
return M[t][e];
|
|
3970
3956
|
const r = Ee(t);
|
|
3971
3957
|
for (let n = 0; n < r.length; n++) {
|
|
3972
|
-
const i = r[n], o =
|
|
3958
|
+
const i = r[n], o = di(i, e);
|
|
3973
3959
|
if (o)
|
|
3974
|
-
return
|
|
3960
|
+
return ci(e, t, o);
|
|
3975
3961
|
}
|
|
3976
3962
|
};
|
|
3977
|
-
let
|
|
3963
|
+
let Je;
|
|
3978
3964
|
const se = _e({});
|
|
3979
|
-
function
|
|
3980
|
-
return
|
|
3965
|
+
function fi(e) {
|
|
3966
|
+
return Je[e] || null;
|
|
3981
3967
|
}
|
|
3982
|
-
function
|
|
3983
|
-
return e in
|
|
3968
|
+
function sr(e) {
|
|
3969
|
+
return e in Je;
|
|
3984
3970
|
}
|
|
3985
|
-
function
|
|
3986
|
-
if (!
|
|
3971
|
+
function di(e, t) {
|
|
3972
|
+
if (!sr(e))
|
|
3987
3973
|
return null;
|
|
3988
|
-
const r =
|
|
3989
|
-
return
|
|
3974
|
+
const r = fi(e);
|
|
3975
|
+
return li(r, t);
|
|
3990
3976
|
}
|
|
3991
|
-
function
|
|
3977
|
+
function pi(e) {
|
|
3992
3978
|
if (e == null)
|
|
3993
3979
|
return;
|
|
3994
3980
|
const t = Ee(e);
|
|
3995
3981
|
for (let r = 0; r < t.length; r++) {
|
|
3996
3982
|
const n = t[r];
|
|
3997
|
-
if (
|
|
3983
|
+
if (sr(n))
|
|
3998
3984
|
return n;
|
|
3999
3985
|
}
|
|
4000
3986
|
}
|
|
4001
|
-
function
|
|
4002
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3987
|
+
function mi(e, ...t) {
|
|
3988
|
+
delete M[e], se.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
4003
3989
|
}
|
|
4004
3990
|
Y(
|
|
4005
3991
|
[se],
|
|
4006
3992
|
([e]) => Object.keys(e)
|
|
4007
3993
|
);
|
|
4008
|
-
se.subscribe((e) =>
|
|
3994
|
+
se.subscribe((e) => Je = e);
|
|
4009
3995
|
const me = {};
|
|
4010
|
-
function
|
|
3996
|
+
function bi(e, t) {
|
|
4011
3997
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4012
3998
|
}
|
|
4013
|
-
function
|
|
3999
|
+
function ar(e) {
|
|
4014
4000
|
return me[e];
|
|
4015
4001
|
}
|
|
4016
|
-
function
|
|
4002
|
+
function gi(e) {
|
|
4017
4003
|
return Ee(e).map((t) => {
|
|
4018
|
-
const r =
|
|
4004
|
+
const r = ar(t);
|
|
4019
4005
|
return [t, r ? [...r] : []];
|
|
4020
4006
|
}).filter(([, t]) => t.length > 0);
|
|
4021
4007
|
}
|
|
4022
|
-
function
|
|
4008
|
+
function We(e) {
|
|
4023
4009
|
return e == null ? !1 : Ee(e).some(
|
|
4024
4010
|
(t) => {
|
|
4025
4011
|
var r;
|
|
4026
|
-
return (r =
|
|
4012
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4027
4013
|
}
|
|
4028
4014
|
);
|
|
4029
4015
|
}
|
|
4030
|
-
function
|
|
4016
|
+
function yi(e, t) {
|
|
4031
4017
|
return Promise.all(
|
|
4032
|
-
t.map((n) => (
|
|
4033
|
-
).then((n) =>
|
|
4018
|
+
t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
|
|
4019
|
+
).then((n) => mi(e, ...n));
|
|
4034
4020
|
}
|
|
4035
4021
|
const ee = {};
|
|
4036
|
-
function
|
|
4037
|
-
if (!
|
|
4022
|
+
function ur(e) {
|
|
4023
|
+
if (!We(e))
|
|
4038
4024
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4039
|
-
const t =
|
|
4025
|
+
const t = gi(e);
|
|
4040
4026
|
return ee[e] = Promise.all(
|
|
4041
4027
|
t.map(
|
|
4042
|
-
([r, n]) =>
|
|
4028
|
+
([r, n]) => yi(r, n)
|
|
4043
4029
|
)
|
|
4044
4030
|
).then(() => {
|
|
4045
|
-
if (
|
|
4046
|
-
return
|
|
4031
|
+
if (We(e))
|
|
4032
|
+
return ur(e);
|
|
4047
4033
|
delete ee[e];
|
|
4048
4034
|
}), ee[e];
|
|
4049
4035
|
}
|
|
@@ -4076,57 +4062,57 @@ const xi = {
|
|
|
4076
4062
|
timeZoneName: "short"
|
|
4077
4063
|
}
|
|
4078
4064
|
}
|
|
4079
|
-
},
|
|
4065
|
+
}, _i = {
|
|
4080
4066
|
fallbackLocale: null,
|
|
4081
4067
|
loadingDelay: 200,
|
|
4082
4068
|
formats: xi,
|
|
4083
4069
|
warnOnMissingMessages: !0,
|
|
4084
4070
|
handleMissingMessage: void 0,
|
|
4085
4071
|
ignoreTag: !0
|
|
4086
|
-
},
|
|
4072
|
+
}, vi = _i;
|
|
4087
4073
|
function q() {
|
|
4088
|
-
return
|
|
4089
|
-
}
|
|
4090
|
-
const
|
|
4091
|
-
var
|
|
4092
|
-
for (var r in t
|
|
4093
|
-
|
|
4094
|
-
if (
|
|
4095
|
-
for (var r of
|
|
4096
|
-
|
|
4074
|
+
return vi;
|
|
4075
|
+
}
|
|
4076
|
+
const Oe = _e(!1);
|
|
4077
|
+
var Ei = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
|
|
4078
|
+
for (var r in t)
|
|
4079
|
+
Hi.call(t, r) && St(e, r, t[r]);
|
|
4080
|
+
if (Et)
|
|
4081
|
+
for (var r of Et(t))
|
|
4082
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4097
4083
|
return e;
|
|
4098
|
-
},
|
|
4099
|
-
let
|
|
4084
|
+
}, wi = (e, t) => Si(e, Ti(t));
|
|
4085
|
+
let ze;
|
|
4100
4086
|
const ge = _e(null);
|
|
4101
|
-
function
|
|
4087
|
+
function Tt(e) {
|
|
4102
4088
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4103
4089
|
}
|
|
4104
4090
|
function Ee(e, t = q().fallbackLocale) {
|
|
4105
|
-
const r =
|
|
4106
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4091
|
+
const r = Tt(e);
|
|
4092
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4107
4093
|
}
|
|
4108
4094
|
function D() {
|
|
4109
|
-
return
|
|
4095
|
+
return ze != null ? ze : void 0;
|
|
4110
4096
|
}
|
|
4111
4097
|
ge.subscribe((e) => {
|
|
4112
|
-
|
|
4098
|
+
ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4113
4099
|
});
|
|
4114
|
-
const
|
|
4115
|
-
if (e &&
|
|
4100
|
+
const Bi = (e) => {
|
|
4101
|
+
if (e && pi(e) && We(e)) {
|
|
4116
4102
|
const { loadingDelay: t } = q();
|
|
4117
4103
|
let r;
|
|
4118
4104
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4119
|
-
() =>
|
|
4105
|
+
() => Oe.set(!0),
|
|
4120
4106
|
t
|
|
4121
|
-
) :
|
|
4107
|
+
) : Oe.set(!0), ur(e).then(() => {
|
|
4122
4108
|
ge.set(e);
|
|
4123
4109
|
}).finally(() => {
|
|
4124
|
-
clearTimeout(r),
|
|
4110
|
+
clearTimeout(r), Oe.set(!1);
|
|
4125
4111
|
});
|
|
4126
4112
|
}
|
|
4127
4113
|
return ge.set(e);
|
|
4128
|
-
}, ae =
|
|
4129
|
-
set:
|
|
4114
|
+
}, ae = wi(Pi({}, ge), {
|
|
4115
|
+
set: Bi
|
|
4130
4116
|
}), Se = (e) => {
|
|
4131
4117
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4132
4118
|
return (n) => {
|
|
@@ -4134,20 +4120,20 @@ const Oi = (e) => {
|
|
|
4134
4120
|
return i in t ? t[i] : t[i] = e(n);
|
|
4135
4121
|
};
|
|
4136
4122
|
};
|
|
4137
|
-
var
|
|
4123
|
+
var Ni = Object.defineProperty, ye = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4138
4124
|
for (var r in t || (t = {}))
|
|
4139
|
-
|
|
4125
|
+
hr.call(t, r) && Ht(e, r, t[r]);
|
|
4140
4126
|
if (ye)
|
|
4141
4127
|
for (var r of ye(t))
|
|
4142
|
-
|
|
4128
|
+
lr.call(t, r) && Ht(e, r, t[r]);
|
|
4143
4129
|
return e;
|
|
4144
4130
|
}, K = (e, t) => {
|
|
4145
4131
|
var r = {};
|
|
4146
4132
|
for (var n in e)
|
|
4147
|
-
|
|
4133
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4148
4134
|
if (e != null && ye)
|
|
4149
4135
|
for (var n of ye(e))
|
|
4150
|
-
t.indexOf(n) < 0 &&
|
|
4136
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4151
4137
|
return r;
|
|
4152
4138
|
};
|
|
4153
4139
|
const ie = (e, t) => {
|
|
@@ -4155,21 +4141,21 @@ const ie = (e, t) => {
|
|
|
4155
4141
|
if (e in r && t in r[e])
|
|
4156
4142
|
return r[e][t];
|
|
4157
4143
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4158
|
-
},
|
|
4144
|
+
}, Oi = Se(
|
|
4159
4145
|
(e) => {
|
|
4160
4146
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4161
4147
|
if (r == null)
|
|
4162
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4163
4149
|
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4164
4150
|
}
|
|
4165
|
-
),
|
|
4151
|
+
), Ii = Se(
|
|
4166
4152
|
(e) => {
|
|
4167
4153
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4168
4154
|
if (r == null)
|
|
4169
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4170
4156
|
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4171
4157
|
}
|
|
4172
|
-
),
|
|
4158
|
+
), Ci = Se(
|
|
4173
4159
|
(e) => {
|
|
4174
4160
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4175
4161
|
if (r == null)
|
|
@@ -4178,33 +4164,33 @@ const ie = (e, t) => {
|
|
|
4178
4164
|
);
|
|
4179
4165
|
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4180
4166
|
}
|
|
4181
|
-
),
|
|
4167
|
+
), Li = (e = {}) => {
|
|
4182
4168
|
var t = e, {
|
|
4183
4169
|
locale: r = D()
|
|
4184
4170
|
} = t, n = K(t, [
|
|
4185
4171
|
"locale"
|
|
4186
4172
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4173
|
+
return Oi(qe({ locale: r }, n));
|
|
4174
|
+
}, Mi = (e = {}) => {
|
|
4189
4175
|
var t = e, {
|
|
4190
4176
|
locale: r = D()
|
|
4191
4177
|
} = t, n = K(t, [
|
|
4192
4178
|
"locale"
|
|
4193
4179
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4180
|
+
return Ii(qe({ locale: r }, n));
|
|
4181
|
+
}, $i = (e = {}) => {
|
|
4196
4182
|
var t = e, {
|
|
4197
4183
|
locale: r = D()
|
|
4198
4184
|
} = t, n = K(t, [
|
|
4199
4185
|
"locale"
|
|
4200
4186
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4187
|
+
return Ci(qe({ locale: r }, n));
|
|
4188
|
+
}, Ri = Se(
|
|
4203
4189
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4204
|
-
(e, t = D()) => new
|
|
4190
|
+
(e, t = D()) => new hi(e, t, q().formats, {
|
|
4205
4191
|
ignoreTag: q().ignoreTag
|
|
4206
4192
|
})
|
|
4207
|
-
),
|
|
4193
|
+
), Ui = (e, t = {}) => {
|
|
4208
4194
|
var r, n, i, o;
|
|
4209
4195
|
let s = t;
|
|
4210
4196
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4217,7 +4203,7 @@ const ie = (e, t) => {
|
|
|
4217
4203
|
throw new Error(
|
|
4218
4204
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4219
4205
|
);
|
|
4220
|
-
let l =
|
|
4206
|
+
let l = or(e, h);
|
|
4221
4207
|
if (!l)
|
|
4222
4208
|
l = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4223
4209
|
else if (typeof l != "string")
|
|
@@ -4228,7 +4214,7 @@ const ie = (e, t) => {
|
|
|
4228
4214
|
return l;
|
|
4229
4215
|
let c = l;
|
|
4230
4216
|
try {
|
|
4231
|
-
c =
|
|
4217
|
+
c = Ri(l, h).format(a);
|
|
4232
4218
|
} catch (f) {
|
|
4233
4219
|
f instanceof Error && console.warn(
|
|
4234
4220
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4236,21 +4222,21 @@ const ie = (e, t) => {
|
|
|
4236
4222
|
);
|
|
4237
4223
|
}
|
|
4238
4224
|
return c;
|
|
4239
|
-
},
|
|
4240
|
-
Y([ae, se], () =>
|
|
4225
|
+
}, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), Fi = (e, t) => Li(t).format(e), ki = (e, t = D()) => or(e, t);
|
|
4226
|
+
Y([ae, se], () => Ui);
|
|
4227
|
+
Y([ae], () => Di);
|
|
4228
|
+
Y([ae], () => Gi);
|
|
4241
4229
|
Y([ae], () => Fi);
|
|
4242
|
-
Y([ae], () => ki);
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
const wt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4247
|
-
function Xi(e, t) {
|
|
4230
|
+
Y([ae, se], () => ki);
|
|
4231
|
+
window.emWidgets = { topic: en };
|
|
4232
|
+
const At = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4233
|
+
function ji(e, t) {
|
|
4248
4234
|
if (e) {
|
|
4249
4235
|
const r = document.createElement("style");
|
|
4250
4236
|
r.innerHTML = t, e.appendChild(r);
|
|
4251
4237
|
}
|
|
4252
4238
|
}
|
|
4253
|
-
function
|
|
4239
|
+
function Vi(e, t) {
|
|
4254
4240
|
const r = new URL(t);
|
|
4255
4241
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4256
4242
|
const i = document.createElement("style");
|
|
@@ -4259,7 +4245,7 @@ function Wi(e, t) {
|
|
|
4259
4245
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4260
4246
|
});
|
|
4261
4247
|
}
|
|
4262
|
-
function
|
|
4248
|
+
function Xi(e, t, r) {
|
|
4263
4249
|
if (window.emMessageBus) {
|
|
4264
4250
|
const n = document.createElement("style");
|
|
4265
4251
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4267,31 +4253,31 @@ function zi(e, t, r) {
|
|
|
4267
4253
|
});
|
|
4268
4254
|
}
|
|
4269
4255
|
}
|
|
4270
|
-
function
|
|
4271
|
-
|
|
4256
|
+
function Wi(e) {
|
|
4257
|
+
xr(e, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4272
4258
|
}
|
|
4273
|
-
function
|
|
4259
|
+
function Pt(e, t, r) {
|
|
4274
4260
|
const n = e.slice();
|
|
4275
4261
|
return n[24] = t[r], n;
|
|
4276
4262
|
}
|
|
4277
|
-
function
|
|
4263
|
+
function wt(e, t, r) {
|
|
4278
4264
|
const n = e.slice();
|
|
4279
4265
|
return n[21] = t[r], n;
|
|
4280
4266
|
}
|
|
4281
|
-
function
|
|
4267
|
+
function zi(e) {
|
|
4282
4268
|
let t, r = be(
|
|
4283
4269
|
/*notificationsData*/
|
|
4284
4270
|
e[1]
|
|
4285
4271
|
), n = [];
|
|
4286
4272
|
for (let i = 0; i < r.length; i += 1)
|
|
4287
|
-
n[i] =
|
|
4273
|
+
n[i] = Bt(Pt(e, r, i));
|
|
4288
4274
|
return {
|
|
4289
4275
|
c() {
|
|
4290
4276
|
t = T("div");
|
|
4291
4277
|
for (let i = 0; i < n.length; i += 1)
|
|
4292
4278
|
n[i].c();
|
|
4293
|
-
|
|
4294
|
-
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")),
|
|
4279
|
+
v(t, "class", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4280
|
+
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")), v(t, "part", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4295
4281
|
(e[3] ? "PlayerAccountNotificationsMobileContainer" : ""));
|
|
4296
4282
|
},
|
|
4297
4283
|
m(i, o) {
|
|
@@ -4308,8 +4294,8 @@ function Qi(e) {
|
|
|
4308
4294
|
);
|
|
4309
4295
|
let s;
|
|
4310
4296
|
for (s = 0; s < r.length; s += 1) {
|
|
4311
|
-
const a =
|
|
4312
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4297
|
+
const a = Pt(i, r, s);
|
|
4298
|
+
n[s] ? n[s].p(a, o) : (n[s] = Bt(a), n[s].c(), n[s].m(t, null));
|
|
4313
4299
|
}
|
|
4314
4300
|
for (; s < n.length; s += 1)
|
|
4315
4301
|
n[s].d(1);
|
|
@@ -4317,20 +4303,20 @@ function Qi(e) {
|
|
|
4317
4303
|
}
|
|
4318
4304
|
},
|
|
4319
4305
|
d(i) {
|
|
4320
|
-
i && I(t),
|
|
4306
|
+
i && I(t), Ct(n, i);
|
|
4321
4307
|
}
|
|
4322
4308
|
};
|
|
4323
4309
|
}
|
|
4324
|
-
function
|
|
4310
|
+
function Zi(e) {
|
|
4325
4311
|
let t, r, n = be({ length: 3 }), i = [];
|
|
4326
4312
|
for (let o = 0; o < n.length; o += 1)
|
|
4327
|
-
i[o] =
|
|
4313
|
+
i[o] = Nt(wt(e, n, o));
|
|
4328
4314
|
return {
|
|
4329
4315
|
c() {
|
|
4330
4316
|
t = T("div"), r = T("div");
|
|
4331
4317
|
for (let o = 0; o < i.length; o += 1)
|
|
4332
4318
|
i[o].c();
|
|
4333
|
-
|
|
4319
|
+
v(r, "class", "skeletonWrapper"), v(t, "class", "skeletonContainer");
|
|
4334
4320
|
},
|
|
4335
4321
|
m(o, s) {
|
|
4336
4322
|
$(o, t, s), w(t, r);
|
|
@@ -4343,8 +4329,8 @@ function Ji(e) {
|
|
|
4343
4329
|
n = be({ length: 3 });
|
|
4344
4330
|
let a;
|
|
4345
4331
|
for (a = 0; a < n.length; a += 1) {
|
|
4346
|
-
const h =
|
|
4347
|
-
i[a] ? i[a].p(h, s) : (i[a] =
|
|
4332
|
+
const h = wt(o, n, a);
|
|
4333
|
+
i[a] ? i[a].p(h, s) : (i[a] = Nt(h), i[a].c(), i[a].m(r, null));
|
|
4348
4334
|
}
|
|
4349
4335
|
for (; a < i.length; a += 1)
|
|
4350
4336
|
i[a].d(1);
|
|
@@ -4352,43 +4338,43 @@ function Ji(e) {
|
|
|
4352
4338
|
}
|
|
4353
4339
|
},
|
|
4354
4340
|
d(o) {
|
|
4355
|
-
o && I(t),
|
|
4341
|
+
o && I(t), Ct(i, o);
|
|
4356
4342
|
}
|
|
4357
4343
|
};
|
|
4358
4344
|
}
|
|
4359
|
-
function
|
|
4345
|
+
function Bt(e) {
|
|
4360
4346
|
let t, r, n, i, o, s, a, h = (
|
|
4361
4347
|
/*notification*/
|
|
4362
4348
|
e[24].title + ""
|
|
4363
4349
|
), u, l, c, f = (
|
|
4364
4350
|
/*notification*/
|
|
4365
4351
|
e[24].description + ""
|
|
4366
|
-
),
|
|
4352
|
+
), p;
|
|
4367
4353
|
return {
|
|
4368
4354
|
c() {
|
|
4369
|
-
t = T("div"), r = T("div"), n = T("img"), s = ce(), a = T("p"), u =
|
|
4370
|
-
e[24].icon) ||
|
|
4371
|
-
e[24].title),
|
|
4355
|
+
t = T("div"), r = T("div"), n = T("img"), s = ce(), a = T("p"), u = Lt(h), l = ce(), c = T("p"), p = ce(), v(n, "class", "PlayerAccountNotificationIcon"), v(n, "width", "24px"), v(n, "height", "24px"), nt(n.src, i = /*notification*/
|
|
4356
|
+
e[24].icon) || v(n, "src", i), v(n, "alt", o = /*notification*/
|
|
4357
|
+
e[24].title), v(a, "class", "PlayerAccountNotificationTitle"), v(r, "class", "PlayerAccountNotificationBoxHeader"), v(c, "class", "PlayerAccountNotificationText"), v(t, "class", "PlayerAccountNotificationBox"), it(
|
|
4372
4358
|
t,
|
|
4373
4359
|
"background",
|
|
4374
4360
|
/*notification*/
|
|
4375
4361
|
e[24].backgroundColor
|
|
4376
4362
|
);
|
|
4377
4363
|
},
|
|
4378
|
-
m(m,
|
|
4379
|
-
$(m, t,
|
|
4364
|
+
m(m, d) {
|
|
4365
|
+
$(m, t, d), w(t, r), w(r, n), w(r, s), w(r, a), w(a, u), w(t, l), w(t, c), c.innerHTML = f, w(t, p);
|
|
4380
4366
|
},
|
|
4381
|
-
p(m,
|
|
4382
|
-
|
|
4383
|
-
2 && !
|
|
4384
|
-
m[24].icon) &&
|
|
4367
|
+
p(m, d) {
|
|
4368
|
+
d & /*notificationsData*/
|
|
4369
|
+
2 && !nt(n.src, i = /*notification*/
|
|
4370
|
+
m[24].icon) && v(n, "src", i), d & /*notificationsData*/
|
|
4385
4371
|
2 && o !== (o = /*notification*/
|
|
4386
|
-
m[24].title) &&
|
|
4372
|
+
m[24].title) && v(n, "alt", o), d & /*notificationsData*/
|
|
4387
4373
|
2 && h !== (h = /*notification*/
|
|
4388
|
-
m[24].title + "") &&
|
|
4374
|
+
m[24].title + "") && Sr(u, h), d & /*notificationsData*/
|
|
4389
4375
|
2 && f !== (f = /*notification*/
|
|
4390
|
-
m[24].description + "") && (c.innerHTML = f),
|
|
4391
|
-
2 &&
|
|
4376
|
+
m[24].description + "") && (c.innerHTML = f), d & /*notificationsData*/
|
|
4377
|
+
2 && it(
|
|
4392
4378
|
t,
|
|
4393
4379
|
"background",
|
|
4394
4380
|
/*notification*/
|
|
@@ -4400,7 +4386,7 @@ function Ot(e) {
|
|
|
4400
4386
|
}
|
|
4401
4387
|
};
|
|
4402
4388
|
}
|
|
4403
|
-
function
|
|
4389
|
+
function Qi(e) {
|
|
4404
4390
|
let t;
|
|
4405
4391
|
return {
|
|
4406
4392
|
c() {
|
|
@@ -4421,7 +4407,7 @@ function qi(e) {
|
|
|
4421
4407
|
}
|
|
4422
4408
|
};
|
|
4423
4409
|
}
|
|
4424
|
-
function
|
|
4410
|
+
function Ji(e) {
|
|
4425
4411
|
let t;
|
|
4426
4412
|
return {
|
|
4427
4413
|
c() {
|
|
@@ -4436,18 +4422,18 @@ function Yi(e) {
|
|
|
4436
4422
|
}
|
|
4437
4423
|
};
|
|
4438
4424
|
}
|
|
4439
|
-
function
|
|
4425
|
+
function Nt(e) {
|
|
4440
4426
|
let t, r;
|
|
4441
4427
|
function n(s, a) {
|
|
4442
4428
|
return (
|
|
4443
4429
|
/*isMobile*/
|
|
4444
|
-
s[3] ?
|
|
4430
|
+
s[3] ? Qi : Ji
|
|
4445
4431
|
);
|
|
4446
4432
|
}
|
|
4447
4433
|
let o = n(e)(e);
|
|
4448
4434
|
return {
|
|
4449
4435
|
c() {
|
|
4450
|
-
t = T("div"), o.c(), r = ce(),
|
|
4436
|
+
t = T("div"), o.c(), r = ce(), v(t, "class", "skeletonNotification");
|
|
4451
4437
|
},
|
|
4452
4438
|
m(s, a) {
|
|
4453
4439
|
$(s, t, a), o.m(t, null), w(t, r);
|
|
@@ -4460,7 +4446,7 @@ function It(e) {
|
|
|
4460
4446
|
}
|
|
4461
4447
|
};
|
|
4462
4448
|
}
|
|
4463
|
-
function
|
|
4449
|
+
function qi(e) {
|
|
4464
4450
|
let t;
|
|
4465
4451
|
function r(o, s) {
|
|
4466
4452
|
var a;
|
|
@@ -4468,12 +4454,12 @@ function Ki(e) {
|
|
|
4468
4454
|
/*skeletonLoading*/
|
|
4469
4455
|
o[2]
|
|
4470
4456
|
)
|
|
4471
|
-
return
|
|
4457
|
+
return Zi;
|
|
4472
4458
|
if (
|
|
4473
4459
|
/*notificationsData*/
|
|
4474
4460
|
(a = o[1]) != null && a.length
|
|
4475
4461
|
)
|
|
4476
|
-
return
|
|
4462
|
+
return zi;
|
|
4477
4463
|
}
|
|
4478
4464
|
let n = r(e), i = n && n(e);
|
|
4479
4465
|
return {
|
|
@@ -4493,19 +4479,19 @@ function Ki(e) {
|
|
|
4493
4479
|
}
|
|
4494
4480
|
};
|
|
4495
4481
|
}
|
|
4496
|
-
function
|
|
4497
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0,
|
|
4482
|
+
function Yi(e, t, r) {
|
|
4483
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, p = window.navigator.userAgent, m = At(p) !== "PC", d = [], S = [], R = A();
|
|
4498
4484
|
const L = window.matchMedia("(min-width: 768px)");
|
|
4499
4485
|
function A() {
|
|
4500
|
-
const y =
|
|
4486
|
+
const y = At(p);
|
|
4501
4487
|
if (y)
|
|
4502
4488
|
return y === "PC" ? "dk" : "mtWeb";
|
|
4503
4489
|
}
|
|
4504
4490
|
const U = () => {
|
|
4505
4491
|
const y = new URL(`${i}/${n}/support-information`);
|
|
4506
4492
|
y.searchParams.append("env", o), y.searchParams.append("userRoles", s), y.searchParams.append("device", R), fetch(y.href).then((F) => F.json()).then((F) => {
|
|
4507
|
-
F.length && (r(1,
|
|
4508
|
-
S.length && (
|
|
4493
|
+
F.length && (r(1, d = F[0].children), d == null || d.forEach((cr) => {
|
|
4494
|
+
S.length && (cr.backgroundColor = S[0], S.shift());
|
|
4509
4495
|
}));
|
|
4510
4496
|
}).catch((F) => {
|
|
4511
4497
|
console.error(F);
|
|
@@ -4520,10 +4506,10 @@ function eo(e, t, r) {
|
|
|
4520
4506
|
}, B = () => {
|
|
4521
4507
|
a.replace(" ", ""), S = a.split(",");
|
|
4522
4508
|
};
|
|
4523
|
-
|
|
4509
|
+
Ar(() => () => {
|
|
4524
4510
|
});
|
|
4525
4511
|
function G(y) {
|
|
4526
|
-
|
|
4512
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4527
4513
|
c = y, r(0, c);
|
|
4528
4514
|
});
|
|
4529
4515
|
}
|
|
@@ -4532,14 +4518,14 @@ function eo(e, t, r) {
|
|
|
4532
4518
|
}, e.$$.update = () => {
|
|
4533
4519
|
e.$$.dirty & /*customnotif*/
|
|
4534
4520
|
512 && a && B(), e.$$.dirty & /*notificationsData*/
|
|
4535
|
-
2 &&
|
|
4521
|
+
2 && d && B(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4536
4522
|
480 && s && i && o && n && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4537
|
-
1025 && h && c &&
|
|
4538
|
-
2049 && u && c &&
|
|
4539
|
-
4097 && l && c &&
|
|
4523
|
+
1025 && h && c && ji(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4524
|
+
2049 && u && c && Vi(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4525
|
+
4097 && l && c && Xi(c, `${l}.Style`);
|
|
4540
4526
|
}, [
|
|
4541
4527
|
c,
|
|
4542
|
-
|
|
4528
|
+
d,
|
|
4543
4529
|
f,
|
|
4544
4530
|
m,
|
|
4545
4531
|
L,
|
|
@@ -4554,14 +4540,14 @@ function eo(e, t, r) {
|
|
|
4554
4540
|
G
|
|
4555
4541
|
];
|
|
4556
4542
|
}
|
|
4557
|
-
class
|
|
4543
|
+
class Ki extends Ur {
|
|
4558
4544
|
constructor(t) {
|
|
4559
|
-
super(),
|
|
4545
|
+
super(), $r(
|
|
4560
4546
|
this,
|
|
4561
4547
|
t,
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4548
|
+
Yi,
|
|
4549
|
+
qi,
|
|
4550
|
+
It,
|
|
4565
4551
|
{
|
|
4566
4552
|
lang: 5,
|
|
4567
4553
|
cmsendpoint: 6,
|
|
@@ -4572,7 +4558,7 @@ class to extends Fr {
|
|
|
4572
4558
|
clientstylingurl: 11,
|
|
4573
4559
|
mbsource: 12
|
|
4574
4560
|
},
|
|
4575
|
-
|
|
4561
|
+
Wi
|
|
4576
4562
|
);
|
|
4577
4563
|
}
|
|
4578
4564
|
get lang() {
|
|
@@ -4624,7 +4610,7 @@ class to extends Fr {
|
|
|
4624
4610
|
this.$$set({ mbsource: t }), N();
|
|
4625
4611
|
}
|
|
4626
4612
|
}
|
|
4627
|
-
|
|
4613
|
+
Rr(Ki, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4628
4614
|
export {
|
|
4629
|
-
|
|
4615
|
+
Ki as default
|
|
4630
4616
|
};
|