@everymatrix/player-reality-check 1.76.13 → 1.76.14
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/PlayerRealityCheck-CC4rAuz1.cjs +18 -0
- package/components/{PlayerRealityCheck-DO6MEbMr.js → PlayerRealityCheck-DWAtxZFq.js} +736 -757
- package/components/{PlayerRealityCheck-DxP0rIRt.js → PlayerRealityCheck-nHHYvFwK.js} +731 -752
- package/es2015/player-reality-check.cjs +1 -1
- package/es2015/player-reality-check.js +1 -1
- package/esnext/player-reality-check.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BtPvM93e.js +519 -0
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/index-b2193545-D_KBbaD-.js +503 -0
- package/stencil/{ui-skeleton-BL4789dS.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-Ca5rz3Hv.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-hI4GeaLk.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-xLf3HyeB.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BDBUiN3S.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Cn0ZM_hs.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerRealityCheck-Kj9cadZw.cjs +0 -18
- package/stencil/index-b2193545-BeKKnKhR.js +0 -519
- package/stencil/index-b2193545-HC0t7mHa.js +0 -503
- package/stencil/index-b2193545-YW9b062G.cjs +0 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
2
|
-
function
|
|
1
|
+
import "../stencil/ui-skeleton-NZtdK490.js";
|
|
2
|
+
function k() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Ut(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ht() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ce(e) {
|
|
11
|
+
e.forEach(Ut);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function st(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ft(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Er(e) {
|
|
20
20
|
return Object.keys(e).length === 0;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Dt(e, ...t) {
|
|
23
23
|
if (e == null) {
|
|
24
24
|
for (const n of t)
|
|
25
25
|
n(void 0);
|
|
26
|
-
return
|
|
26
|
+
return k;
|
|
27
27
|
}
|
|
28
28
|
const r = e.subscribe(...t);
|
|
29
29
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e.$$.on_destroy.push(
|
|
31
|
+
function Sr(e, t, r) {
|
|
32
|
+
e.$$.on_destroy.push(Dt(t, r));
|
|
33
33
|
}
|
|
34
34
|
function b(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function wr(e, t, r) {
|
|
38
|
+
const n = Tr(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
|
-
const i =
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
const i = H("style");
|
|
41
|
+
i.id = t, i.textContent = r, Hr(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Tr(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,34 +51,34 @@ function Hr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Hr(e, t) {
|
|
55
55
|
return b(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
58
58
|
t
|
|
59
59
|
), t.sheet;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function j(e, t, r) {
|
|
62
62
|
e.insertBefore(t, r || null);
|
|
63
63
|
}
|
|
64
64
|
function U(e) {
|
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Gt(e, t) {
|
|
68
68
|
for (let r = 0; r < e.length; r += 1)
|
|
69
69
|
e[r] && e[r].d(t);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function H(e) {
|
|
72
72
|
return document.createElement(e);
|
|
73
73
|
}
|
|
74
74
|
function K(e) {
|
|
75
75
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function q(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function G() {
|
|
81
|
+
return q(" ");
|
|
82
82
|
}
|
|
83
83
|
function Ce(e, t, r, n) {
|
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -90,7 +90,7 @@ function A(e, t, r) {
|
|
|
90
90
|
const n = t.toLowerCase();
|
|
91
91
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Cr(e) {
|
|
94
94
|
let t;
|
|
95
95
|
return {
|
|
96
96
|
/* push */
|
|
@@ -103,17 +103,17 @@ function Br(e) {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Br(e) {
|
|
107
107
|
return Array.from(e.childNodes);
|
|
108
108
|
}
|
|
109
109
|
function ne(e, t) {
|
|
110
110
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
111
111
|
t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ar(e, t) {
|
|
114
114
|
e.value = t ?? "";
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Pr(e) {
|
|
117
117
|
const t = {};
|
|
118
118
|
return e.childNodes.forEach(
|
|
119
119
|
/** @param {Element} node */
|
|
@@ -122,98 +122,98 @@ function Or(e) {
|
|
|
122
122
|
}
|
|
123
123
|
), t;
|
|
124
124
|
}
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
let be;
|
|
126
|
+
function me(e) {
|
|
127
|
+
be = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function Or() {
|
|
130
|
+
if (!be)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
|
-
return
|
|
132
|
+
return be;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function Rr(e) {
|
|
135
|
+
Or().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
const re = [],
|
|
137
|
+
const re = [], je = [];
|
|
138
138
|
let ie = [];
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
139
|
+
const ft = [], Mr = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let Ve = !1;
|
|
141
|
+
function Ir() {
|
|
142
|
+
Ve || (Ve = !0, Mr.then(V));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Xe(e) {
|
|
145
145
|
ie.push(e);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Le = /* @__PURE__ */ new Set();
|
|
148
148
|
let ee = 0;
|
|
149
149
|
function V() {
|
|
150
150
|
if (ee !== 0)
|
|
151
151
|
return;
|
|
152
|
-
const e =
|
|
152
|
+
const e = be;
|
|
153
153
|
do {
|
|
154
154
|
try {
|
|
155
155
|
for (; ee < re.length; ) {
|
|
156
156
|
const t = re[ee];
|
|
157
|
-
ee++,
|
|
157
|
+
ee++, me(t), Lr(t.$$);
|
|
158
158
|
}
|
|
159
159
|
} catch (t) {
|
|
160
160
|
throw re.length = 0, ee = 0, t;
|
|
161
161
|
}
|
|
162
|
-
for (
|
|
163
|
-
|
|
162
|
+
for (me(null), re.length = 0, ee = 0; je.length; )
|
|
163
|
+
je.pop()();
|
|
164
164
|
for (let t = 0; t < ie.length; t += 1) {
|
|
165
165
|
const r = ie[t];
|
|
166
|
-
|
|
166
|
+
Le.has(r) || (Le.add(r), r());
|
|
167
167
|
}
|
|
168
168
|
ie.length = 0;
|
|
169
169
|
} while (re.length);
|
|
170
|
-
for (;
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
for (; ft.length; )
|
|
171
|
+
ft.pop()();
|
|
172
|
+
Ve = !1, Le.clear(), me(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Lr(e) {
|
|
175
175
|
if (e.fragment !== null) {
|
|
176
|
-
e.update(),
|
|
176
|
+
e.update(), ce(e.before_update);
|
|
177
177
|
const t = e.dirty;
|
|
178
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
178
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
function kr(e) {
|
|
182
182
|
const t = [], r = [];
|
|
183
183
|
ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
e && e.i && (
|
|
185
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
186
|
+
function $r(e, t) {
|
|
187
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ze(e) {
|
|
190
190
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ur(e, t, r) {
|
|
193
193
|
const { fragment: n, after_update: i } = e.$$;
|
|
194
|
-
n && n.m(t, r),
|
|
195
|
-
const o = e.$$.on_mount.map(
|
|
196
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
197
|
-
}), i.forEach(
|
|
194
|
+
n && n.m(t, r), Xe(() => {
|
|
195
|
+
const o = e.$$.on_mount.map(Ut).filter(st);
|
|
196
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
197
|
+
}), i.forEach(Xe);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Fr(e, t) {
|
|
200
200
|
const r = e.$$;
|
|
201
|
-
r.fragment !== null && (kr(r.after_update),
|
|
201
|
+
r.fragment !== null && (kr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
e.$$.dirty[0] === -1 && (re.push(e),
|
|
203
|
+
function Dr(e, t) {
|
|
204
|
+
e.$$.dirty[0] === -1 && (re.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
205
205
|
}
|
|
206
206
|
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
207
|
-
const l =
|
|
208
|
-
|
|
207
|
+
const l = be;
|
|
208
|
+
me(e);
|
|
209
209
|
const u = e.$$ = {
|
|
210
210
|
fragment: null,
|
|
211
211
|
ctx: [],
|
|
212
212
|
// state
|
|
213
213
|
props: o,
|
|
214
|
-
update:
|
|
214
|
+
update: k,
|
|
215
215
|
not_equal: i,
|
|
216
|
-
bound:
|
|
216
|
+
bound: ht(),
|
|
217
217
|
// lifecycle
|
|
218
218
|
on_mount: [],
|
|
219
219
|
on_destroy: [],
|
|
@@ -222,7 +222,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
222
222
|
after_update: [],
|
|
223
223
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
224
224
|
// everything else
|
|
225
|
-
callbacks:
|
|
225
|
+
callbacks: ht(),
|
|
226
226
|
dirty: a,
|
|
227
227
|
skip_bound: !1,
|
|
228
228
|
root: t.target || l.$$.root
|
|
@@ -231,19 +231,19 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
231
231
|
let c = !1;
|
|
232
232
|
if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
|
|
233
233
|
const m = d.length ? d[0] : h;
|
|
234
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c &&
|
|
235
|
-
}) : [], u.update(), c = !0,
|
|
234
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Dr(e, f)), h;
|
|
235
|
+
}) : [], u.update(), c = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
236
236
|
if (t.hydrate) {
|
|
237
|
-
const f =
|
|
237
|
+
const f = Br(t.target);
|
|
238
238
|
u.fragment && u.fragment.l(f), f.forEach(U);
|
|
239
239
|
} else
|
|
240
240
|
u.fragment && u.fragment.c();
|
|
241
|
-
t.intro &&
|
|
241
|
+
t.intro && $r(e.$$.fragment), Ur(e, t.target, t.anchor), V();
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
me(l);
|
|
244
244
|
}
|
|
245
|
-
let
|
|
246
|
-
typeof HTMLElement == "function" && (
|
|
245
|
+
let jt;
|
|
246
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
247
247
|
/** The Svelte component constructor */
|
|
248
248
|
$$ctor;
|
|
249
249
|
/** Slots */
|
|
@@ -285,14 +285,14 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
285
285
|
let o;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
o =
|
|
288
|
+
o = H("slot"), i !== "default" && x(o, "name", i);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
292
292
|
* @param {HTMLElement} [anchor]
|
|
293
293
|
*/
|
|
294
294
|
m: function(l, u) {
|
|
295
|
-
|
|
295
|
+
j(l, o, u);
|
|
296
296
|
},
|
|
297
297
|
d: function(l) {
|
|
298
298
|
l && U(o);
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
302
302
|
};
|
|
303
303
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const t = {}, r =
|
|
305
|
+
const t = {}, r = Pr(this);
|
|
306
306
|
for (const i of this.$$s)
|
|
307
307
|
i in r && (t[i] = [e(i)]);
|
|
308
308
|
for (const i of this.attributes) {
|
|
@@ -389,8 +389,8 @@ function Se(e, t, r, n) {
|
|
|
389
389
|
return t;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
let s = class extends
|
|
392
|
+
function jr(e, t, r, n, i, o) {
|
|
393
|
+
let s = class extends jt {
|
|
394
394
|
constructor() {
|
|
395
395
|
super(e, r, i), this.$$p_d = t;
|
|
396
396
|
}
|
|
@@ -418,7 +418,7 @@ function Vr(e, t, r, n, i, o) {
|
|
|
418
418
|
}), e.element = /** @type {any} */
|
|
419
419
|
s, s;
|
|
420
420
|
}
|
|
421
|
-
class
|
|
421
|
+
class Vr {
|
|
422
422
|
/**
|
|
423
423
|
* ### PRIVATE API
|
|
424
424
|
*
|
|
@@ -437,7 +437,7 @@ class Xr {
|
|
|
437
437
|
$$set = void 0;
|
|
438
438
|
/** @returns {void} */
|
|
439
439
|
$destroy() {
|
|
440
|
-
|
|
440
|
+
Fr(this, 1), this.$destroy = k;
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -446,8 +446,8 @@ class Xr {
|
|
|
446
446
|
* @returns {() => void}
|
|
447
447
|
*/
|
|
448
448
|
$on(t, r) {
|
|
449
|
-
if (!
|
|
450
|
-
return
|
|
449
|
+
if (!st(r))
|
|
450
|
+
return k;
|
|
451
451
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
452
|
return n.push(r), () => {
|
|
453
453
|
const i = n.indexOf(r);
|
|
@@ -459,11 +459,11 @@ class Xr {
|
|
|
459
459
|
* @returns {void}
|
|
460
460
|
*/
|
|
461
461
|
$set(t) {
|
|
462
|
-
this.$$set && !
|
|
462
|
+
this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
465
|
+
const Xr = "4";
|
|
466
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
|
|
467
467
|
/*! *****************************************************************************
|
|
468
468
|
Copyright (c) Microsoft Corporation.
|
|
469
469
|
|
|
@@ -478,24 +478,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
478
478
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
479
479
|
PERFORMANCE OF THIS SOFTWARE.
|
|
480
480
|
***************************************************************************** */
|
|
481
|
-
var
|
|
482
|
-
return
|
|
481
|
+
var qe = function(e, t) {
|
|
482
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
483
483
|
r.__proto__ = n;
|
|
484
484
|
} || function(r, n) {
|
|
485
485
|
for (var i in n)
|
|
486
486
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
487
|
-
},
|
|
487
|
+
}, qe(e, t);
|
|
488
488
|
};
|
|
489
|
-
function
|
|
489
|
+
function Z(e, t) {
|
|
490
490
|
if (typeof t != "function" && t !== null)
|
|
491
491
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
492
|
-
|
|
492
|
+
qe(e, t);
|
|
493
493
|
function r() {
|
|
494
494
|
this.constructor = e;
|
|
495
495
|
}
|
|
496
496
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
var S = function() {
|
|
499
|
+
return S = Object.assign || function(t) {
|
|
500
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
501
|
+
r = arguments[n];
|
|
502
|
+
for (var o in r)
|
|
503
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
504
|
+
}
|
|
505
|
+
return t;
|
|
506
|
+
}, S.apply(this, arguments);
|
|
507
|
+
};
|
|
508
|
+
function zr(e, t) {
|
|
509
|
+
var r = {};
|
|
510
|
+
for (var n in e)
|
|
511
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
513
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
514
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
515
|
+
return r;
|
|
516
|
+
}
|
|
517
|
+
function We(e) {
|
|
499
518
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
500
519
|
if (r)
|
|
501
520
|
return r.call(e);
|
|
@@ -507,7 +526,7 @@ function Qe(e) {
|
|
|
507
526
|
};
|
|
508
527
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
509
528
|
}
|
|
510
|
-
function
|
|
529
|
+
function Ze(e, t) {
|
|
511
530
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
512
531
|
if (!r)
|
|
513
532
|
return e;
|
|
@@ -527,22 +546,22 @@ function Je(e, t) {
|
|
|
527
546
|
}
|
|
528
547
|
return o;
|
|
529
548
|
}
|
|
530
|
-
function
|
|
531
|
-
if (arguments.length === 2)
|
|
549
|
+
function oe(e, t, r) {
|
|
550
|
+
if (r || arguments.length === 2)
|
|
532
551
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
533
552
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
534
553
|
return e.concat(o || t);
|
|
535
554
|
}
|
|
536
|
-
function
|
|
555
|
+
function W(e) {
|
|
537
556
|
return typeof e == "function";
|
|
538
557
|
}
|
|
539
|
-
function
|
|
558
|
+
function Vt(e) {
|
|
540
559
|
var t = function(n) {
|
|
541
560
|
Error.call(n), n.stack = new Error().stack;
|
|
542
561
|
}, r = e(t);
|
|
543
562
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
544
563
|
}
|
|
545
|
-
var
|
|
564
|
+
var ke = Vt(function(e) {
|
|
546
565
|
return function(r) {
|
|
547
566
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
548
567
|
` + r.map(function(n, i) {
|
|
@@ -551,13 +570,13 @@ var $e = zt(function(e) {
|
|
|
551
570
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
552
571
|
};
|
|
553
572
|
});
|
|
554
|
-
function
|
|
573
|
+
function Qe(e, t) {
|
|
555
574
|
if (e) {
|
|
556
575
|
var r = e.indexOf(t);
|
|
557
576
|
0 <= r && e.splice(r, 1);
|
|
558
577
|
}
|
|
559
578
|
}
|
|
560
|
-
var
|
|
579
|
+
var Pe = function() {
|
|
561
580
|
function e(t) {
|
|
562
581
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
563
582
|
}
|
|
@@ -569,7 +588,7 @@ var Oe = function() {
|
|
|
569
588
|
if (s)
|
|
570
589
|
if (this._parentage = null, Array.isArray(s))
|
|
571
590
|
try {
|
|
572
|
-
for (var a =
|
|
591
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
573
592
|
var u = l.value;
|
|
574
593
|
u.remove(this);
|
|
575
594
|
}
|
|
@@ -586,22 +605,22 @@ var Oe = function() {
|
|
|
586
605
|
else
|
|
587
606
|
s.remove(this);
|
|
588
607
|
var c = this.initialTeardown;
|
|
589
|
-
if (
|
|
608
|
+
if (W(c))
|
|
590
609
|
try {
|
|
591
610
|
c();
|
|
592
611
|
} catch (p) {
|
|
593
|
-
o = p instanceof
|
|
612
|
+
o = p instanceof ke ? p.errors : [p];
|
|
594
613
|
}
|
|
595
614
|
var f = this._finalizers;
|
|
596
615
|
if (f) {
|
|
597
616
|
this._finalizers = null;
|
|
598
617
|
try {
|
|
599
|
-
for (var h =
|
|
618
|
+
for (var h = We(f), d = h.next(); !d.done; d = h.next()) {
|
|
600
619
|
var m = d.value;
|
|
601
620
|
try {
|
|
602
|
-
|
|
621
|
+
pt(m);
|
|
603
622
|
} catch (p) {
|
|
604
|
-
o = o ?? [], p instanceof
|
|
623
|
+
o = o ?? [], p instanceof ke ? o = oe(oe([], Ze(o)), Ze(p.errors)) : o.push(p);
|
|
605
624
|
}
|
|
606
625
|
}
|
|
607
626
|
} catch (p) {
|
|
@@ -616,13 +635,13 @@ var Oe = function() {
|
|
|
616
635
|
}
|
|
617
636
|
}
|
|
618
637
|
if (o)
|
|
619
|
-
throw new
|
|
638
|
+
throw new ke(o);
|
|
620
639
|
}
|
|
621
640
|
}, e.prototype.add = function(t) {
|
|
622
641
|
var r;
|
|
623
642
|
if (t && t !== this)
|
|
624
643
|
if (this.closed)
|
|
625
|
-
|
|
644
|
+
pt(t);
|
|
626
645
|
else {
|
|
627
646
|
if (t instanceof e) {
|
|
628
647
|
if (t.closed || t._hasParent(this))
|
|
@@ -639,52 +658,56 @@ var Oe = function() {
|
|
|
639
658
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
640
659
|
}, e.prototype._removeParent = function(t) {
|
|
641
660
|
var r = this._parentage;
|
|
642
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
661
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
|
643
662
|
}, e.prototype.remove = function(t) {
|
|
644
663
|
var r = this._finalizers;
|
|
645
|
-
r &&
|
|
664
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
|
646
665
|
}, e.EMPTY = function() {
|
|
647
666
|
var t = new e();
|
|
648
667
|
return t.closed = !0, t;
|
|
649
668
|
}(), e;
|
|
650
|
-
}(),
|
|
651
|
-
function
|
|
652
|
-
return e instanceof
|
|
653
|
-
}
|
|
654
|
-
function
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
|
|
669
|
+
}(), Xt = Pe.EMPTY;
|
|
670
|
+
function zt(e) {
|
|
671
|
+
return e instanceof Pe || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
|
|
672
|
+
}
|
|
673
|
+
function pt(e) {
|
|
674
|
+
W(e) ? e() : e.unsubscribe();
|
|
675
|
+
}
|
|
676
|
+
var qt = {
|
|
677
|
+
onUnhandledError: null,
|
|
678
|
+
onStoppedNotification: null,
|
|
679
|
+
Promise: void 0,
|
|
680
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
681
|
+
useDeprecatedNextContext: !1
|
|
682
|
+
}, qr = {
|
|
660
683
|
setTimeout: function(e, t) {
|
|
661
684
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
662
685
|
r[n - 2] = arguments[n];
|
|
663
|
-
return setTimeout.apply(void 0,
|
|
686
|
+
return setTimeout.apply(void 0, oe([e, t], Ze(r)));
|
|
664
687
|
},
|
|
665
688
|
clearTimeout: function(e) {
|
|
666
689
|
return clearTimeout(e);
|
|
667
690
|
},
|
|
668
691
|
delegate: void 0
|
|
669
692
|
};
|
|
670
|
-
function
|
|
671
|
-
|
|
693
|
+
function Wr(e) {
|
|
694
|
+
qr.setTimeout(function() {
|
|
672
695
|
throw e;
|
|
673
696
|
});
|
|
674
697
|
}
|
|
675
|
-
function
|
|
698
|
+
function dt() {
|
|
676
699
|
}
|
|
677
700
|
function we(e) {
|
|
678
701
|
e();
|
|
679
702
|
}
|
|
680
|
-
var
|
|
681
|
-
|
|
703
|
+
var Wt = function(e) {
|
|
704
|
+
Z(t, e);
|
|
682
705
|
function t(r) {
|
|
683
706
|
var n = e.call(this) || this;
|
|
684
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
707
|
+
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = Yr, n;
|
|
685
708
|
}
|
|
686
709
|
return t.create = function(r, n, i) {
|
|
687
|
-
return new
|
|
710
|
+
return new Je(r, n, i);
|
|
688
711
|
}, t.prototype.next = function(r) {
|
|
689
712
|
this.isStopped || this._next(r);
|
|
690
713
|
}, t.prototype.error = function(r) {
|
|
@@ -708,7 +731,11 @@ var Zt = function(e) {
|
|
|
708
731
|
this.unsubscribe();
|
|
709
732
|
}
|
|
710
733
|
}, t;
|
|
711
|
-
}(
|
|
734
|
+
}(Pe), Zr = Function.prototype.bind;
|
|
735
|
+
function Ne(e, t) {
|
|
736
|
+
return Zr.call(e, t);
|
|
737
|
+
}
|
|
738
|
+
var Qr = function() {
|
|
712
739
|
function e(t) {
|
|
713
740
|
this.partialObserver = t;
|
|
714
741
|
}
|
|
@@ -739,29 +766,41 @@ var Zt = function(e) {
|
|
|
739
766
|
xe(r);
|
|
740
767
|
}
|
|
741
768
|
}, e;
|
|
742
|
-
}(),
|
|
743
|
-
|
|
769
|
+
}(), Je = function(e) {
|
|
770
|
+
Z(t, e);
|
|
744
771
|
function t(r, n, i) {
|
|
745
772
|
var o = e.call(this) || this, s;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
773
|
+
if (W(r) || !r)
|
|
774
|
+
s = {
|
|
775
|
+
next: r ?? void 0,
|
|
776
|
+
error: n ?? void 0,
|
|
777
|
+
complete: i ?? void 0
|
|
778
|
+
};
|
|
779
|
+
else {
|
|
780
|
+
var a;
|
|
781
|
+
o && qt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
782
|
+
return o.unsubscribe();
|
|
783
|
+
}, s = {
|
|
784
|
+
next: r.next && Ne(r.next, a),
|
|
785
|
+
error: r.error && Ne(r.error, a),
|
|
786
|
+
complete: r.complete && Ne(r.complete, a)
|
|
787
|
+
}) : s = r;
|
|
788
|
+
}
|
|
789
|
+
return o.destination = new Qr(s), o;
|
|
751
790
|
}
|
|
752
791
|
return t;
|
|
753
|
-
}(
|
|
792
|
+
}(Wt);
|
|
754
793
|
function xe(e) {
|
|
755
|
-
|
|
794
|
+
Wr(e);
|
|
756
795
|
}
|
|
757
796
|
function Jr(e) {
|
|
758
797
|
throw e;
|
|
759
798
|
}
|
|
760
799
|
var Yr = {
|
|
761
800
|
closed: !0,
|
|
762
|
-
next:
|
|
801
|
+
next: dt,
|
|
763
802
|
error: Jr,
|
|
764
|
-
complete:
|
|
803
|
+
complete: dt
|
|
765
804
|
}, Kr = function() {
|
|
766
805
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
767
806
|
}();
|
|
@@ -775,7 +814,7 @@ function tn(e) {
|
|
|
775
814
|
}, r);
|
|
776
815
|
};
|
|
777
816
|
}
|
|
778
|
-
var
|
|
817
|
+
var mt = function() {
|
|
779
818
|
function e(t) {
|
|
780
819
|
t && (this._subscribe = t);
|
|
781
820
|
}
|
|
@@ -783,7 +822,7 @@ var yt = function() {
|
|
|
783
822
|
var r = new e();
|
|
784
823
|
return r.source = this, r.operator = t, r;
|
|
785
824
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
786
|
-
var i = this, o = nn(t) ? t : new
|
|
825
|
+
var i = this, o = nn(t) ? t : new Je(t, r, n);
|
|
787
826
|
return we(function() {
|
|
788
827
|
var s = i, a = s.operator, l = s.source;
|
|
789
828
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -796,8 +835,8 @@ var yt = function() {
|
|
|
796
835
|
}
|
|
797
836
|
}, e.prototype.forEach = function(t, r) {
|
|
798
837
|
var n = this;
|
|
799
|
-
return r =
|
|
800
|
-
var s = new
|
|
838
|
+
return r = bt(r), new r(function(i, o) {
|
|
839
|
+
var s = new Je({
|
|
801
840
|
next: function(a) {
|
|
802
841
|
try {
|
|
803
842
|
t(a);
|
|
@@ -821,7 +860,7 @@ var yt = function() {
|
|
|
821
860
|
return tn(t)(this);
|
|
822
861
|
}, e.prototype.toPromise = function(t) {
|
|
823
862
|
var r = this;
|
|
824
|
-
return t =
|
|
863
|
+
return t = bt(t), new t(function(n, i) {
|
|
825
864
|
var o;
|
|
826
865
|
r.subscribe(function(s) {
|
|
827
866
|
return o = s;
|
|
@@ -835,28 +874,28 @@ var yt = function() {
|
|
|
835
874
|
return new e(t);
|
|
836
875
|
}, e;
|
|
837
876
|
}();
|
|
838
|
-
function
|
|
877
|
+
function bt(e) {
|
|
839
878
|
var t;
|
|
840
|
-
return (t = e ??
|
|
879
|
+
return (t = e ?? qt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
841
880
|
}
|
|
842
881
|
function rn(e) {
|
|
843
|
-
return e &&
|
|
882
|
+
return e && W(e.next) && W(e.error) && W(e.complete);
|
|
844
883
|
}
|
|
845
884
|
function nn(e) {
|
|
846
|
-
return e && e instanceof
|
|
885
|
+
return e && e instanceof Wt || rn(e) && zt(e);
|
|
847
886
|
}
|
|
848
|
-
var on =
|
|
887
|
+
var on = Vt(function(e) {
|
|
849
888
|
return function() {
|
|
850
889
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
851
890
|
};
|
|
852
|
-
}),
|
|
853
|
-
|
|
891
|
+
}), Zt = function(e) {
|
|
892
|
+
Z(t, e);
|
|
854
893
|
function t() {
|
|
855
894
|
var r = e.call(this) || this;
|
|
856
895
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
857
896
|
}
|
|
858
897
|
return t.prototype.lift = function(r) {
|
|
859
|
-
var n = new
|
|
898
|
+
var n = new yt(this, this);
|
|
860
899
|
return n.operator = r, n;
|
|
861
900
|
}, t.prototype._throwIfClosed = function() {
|
|
862
901
|
if (this.closed)
|
|
@@ -868,7 +907,7 @@ var on = zt(function(e) {
|
|
|
868
907
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
869
908
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
870
909
|
try {
|
|
871
|
-
for (var s =
|
|
910
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
872
911
|
var l = a.value;
|
|
873
912
|
l.next(r);
|
|
874
913
|
}
|
|
@@ -917,20 +956,20 @@ var on = zt(function(e) {
|
|
|
917
956
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
918
957
|
}, t.prototype._innerSubscribe = function(r) {
|
|
919
958
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
920
|
-
return o || s ?
|
|
921
|
-
n.currentObservers = null,
|
|
959
|
+
return o || s ? Xt : (this.currentObservers = null, a.push(r), new Pe(function() {
|
|
960
|
+
n.currentObservers = null, Qe(a, r);
|
|
922
961
|
}));
|
|
923
962
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
924
963
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
925
964
|
i ? r.error(o) : s && r.complete();
|
|
926
965
|
}, t.prototype.asObservable = function() {
|
|
927
|
-
var r = new
|
|
966
|
+
var r = new mt();
|
|
928
967
|
return r.source = this, r;
|
|
929
968
|
}, t.create = function(r, n) {
|
|
930
|
-
return new
|
|
969
|
+
return new yt(r, n);
|
|
931
970
|
}, t;
|
|
932
|
-
}(
|
|
933
|
-
|
|
971
|
+
}(mt), yt = function(e) {
|
|
972
|
+
Z(t, e);
|
|
934
973
|
function t(r, n) {
|
|
935
974
|
var i = e.call(this) || this;
|
|
936
975
|
return i.destination = r, i.source = n, i;
|
|
@@ -946,17 +985,17 @@ var on = zt(function(e) {
|
|
|
946
985
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
947
986
|
}, t.prototype._subscribe = function(r) {
|
|
948
987
|
var n, i;
|
|
949
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
988
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
|
|
950
989
|
}, t;
|
|
951
|
-
}(
|
|
990
|
+
}(Zt), Qt = {
|
|
952
991
|
now: function() {
|
|
953
|
-
return (
|
|
992
|
+
return (Qt.delegate || Date).now();
|
|
954
993
|
},
|
|
955
994
|
delegate: void 0
|
|
956
995
|
}, sn = function(e) {
|
|
957
|
-
|
|
996
|
+
Z(t, e);
|
|
958
997
|
function t(r, n, i) {
|
|
959
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
998
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Qt);
|
|
960
999
|
var o = e.call(this) || this;
|
|
961
1000
|
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;
|
|
962
1001
|
}
|
|
@@ -976,24 +1015,24 @@ var on = zt(function(e) {
|
|
|
976
1015
|
u && o.splice(0, u + 1);
|
|
977
1016
|
}
|
|
978
1017
|
}, t;
|
|
979
|
-
}(
|
|
980
|
-
const
|
|
981
|
-
if (
|
|
1018
|
+
}(Zt);
|
|
1019
|
+
const gt = [], vt = {}, an = (e, t = 0) => {
|
|
1020
|
+
if (gt.indexOf(e) == -1) {
|
|
982
1021
|
const r = new sn(t);
|
|
983
|
-
|
|
1022
|
+
vt[e] = r, gt.push(e);
|
|
984
1023
|
}
|
|
985
|
-
return
|
|
1024
|
+
return vt[e];
|
|
986
1025
|
}, te = [];
|
|
987
1026
|
function un(e, t) {
|
|
988
1027
|
return {
|
|
989
|
-
subscribe:
|
|
1028
|
+
subscribe: Oe(e, t).subscribe
|
|
990
1029
|
};
|
|
991
1030
|
}
|
|
992
|
-
function
|
|
1031
|
+
function Oe(e, t = k) {
|
|
993
1032
|
let r;
|
|
994
1033
|
const n = /* @__PURE__ */ new Set();
|
|
995
1034
|
function i(a) {
|
|
996
|
-
if (
|
|
1035
|
+
if (Ft(e, a) && (e = a, r)) {
|
|
997
1036
|
const l = !te.length;
|
|
998
1037
|
for (const u of n)
|
|
999
1038
|
u[1](), te.push(u, e);
|
|
@@ -1007,15 +1046,15 @@ function Re(e, t = N) {
|
|
|
1007
1046
|
function o(a) {
|
|
1008
1047
|
i(a(e));
|
|
1009
1048
|
}
|
|
1010
|
-
function s(a, l =
|
|
1049
|
+
function s(a, l = k) {
|
|
1011
1050
|
const u = [a, l];
|
|
1012
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1051
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
|
1013
1052
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1014
1053
|
};
|
|
1015
1054
|
}
|
|
1016
1055
|
return { set: i, update: o, subscribe: s };
|
|
1017
1056
|
}
|
|
1018
|
-
function
|
|
1057
|
+
function he(e, t, r) {
|
|
1019
1058
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1020
1059
|
if (!i.every(Boolean))
|
|
1021
1060
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1023,15 +1062,15 @@ function ce(e, t, r) {
|
|
|
1023
1062
|
return un(r, (s, a) => {
|
|
1024
1063
|
let l = !1;
|
|
1025
1064
|
const u = [];
|
|
1026
|
-
let c = 0, f =
|
|
1065
|
+
let c = 0, f = k;
|
|
1027
1066
|
const h = () => {
|
|
1028
1067
|
if (c)
|
|
1029
1068
|
return;
|
|
1030
1069
|
f();
|
|
1031
1070
|
const m = t(n ? u[0] : u, s, a);
|
|
1032
|
-
o ? s(m) : f =
|
|
1071
|
+
o ? s(m) : f = st(m) ? m : k;
|
|
1033
1072
|
}, d = i.map(
|
|
1034
|
-
(m, p) =>
|
|
1073
|
+
(m, p) => Dt(
|
|
1035
1074
|
m,
|
|
1036
1075
|
(y) => {
|
|
1037
1076
|
u[p] = y, c &= ~(1 << p), l && h();
|
|
@@ -1042,7 +1081,7 @@ function ce(e, t, r) {
|
|
|
1042
1081
|
)
|
|
1043
1082
|
);
|
|
1044
1083
|
return l = !0, h(), function() {
|
|
1045
|
-
|
|
1084
|
+
ce(d), f(), l = !1;
|
|
1046
1085
|
};
|
|
1047
1086
|
});
|
|
1048
1087
|
}
|
|
@@ -1066,29 +1105,29 @@ function mn(e) {
|
|
|
1066
1105
|
function bn(e) {
|
|
1067
1106
|
return Array.isArray(e) ? [] : {};
|
|
1068
1107
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1108
|
+
function ye(e, t) {
|
|
1109
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? se(bn(e), e, t) : e;
|
|
1071
1110
|
}
|
|
1072
1111
|
function yn(e, t, r) {
|
|
1073
1112
|
return e.concat(t).map(function(n) {
|
|
1074
|
-
return
|
|
1113
|
+
return ye(n, r);
|
|
1075
1114
|
});
|
|
1076
1115
|
}
|
|
1077
1116
|
function gn(e, t) {
|
|
1078
1117
|
if (!t.customMerge)
|
|
1079
|
-
return
|
|
1118
|
+
return se;
|
|
1080
1119
|
var r = t.customMerge(e);
|
|
1081
|
-
return typeof r == "function" ? r :
|
|
1120
|
+
return typeof r == "function" ? r : se;
|
|
1082
1121
|
}
|
|
1083
1122
|
function vn(e) {
|
|
1084
1123
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1085
1124
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1086
1125
|
}) : [];
|
|
1087
1126
|
}
|
|
1088
|
-
function
|
|
1127
|
+
function _t(e) {
|
|
1089
1128
|
return Object.keys(e).concat(vn(e));
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1130
|
+
function Jt(e, t) {
|
|
1092
1131
|
try {
|
|
1093
1132
|
return t in e;
|
|
1094
1133
|
} catch {
|
|
@@ -1096,179 +1135,129 @@ function Yt(e, t) {
|
|
|
1096
1135
|
}
|
|
1097
1136
|
}
|
|
1098
1137
|
function _n(e, t) {
|
|
1099
|
-
return
|
|
1138
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1100
1139
|
}
|
|
1101
1140
|
function xn(e, t, r) {
|
|
1102
1141
|
var n = {};
|
|
1103
|
-
return r.isMergeableObject(e) &&
|
|
1104
|
-
n[i] =
|
|
1105
|
-
}),
|
|
1106
|
-
_n(e, i) || (
|
|
1142
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1143
|
+
n[i] = ye(e[i], r);
|
|
1144
|
+
}), _t(t).forEach(function(i) {
|
|
1145
|
+
_n(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = ye(t[i], r));
|
|
1107
1146
|
}), n;
|
|
1108
1147
|
}
|
|
1109
|
-
function
|
|
1110
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified =
|
|
1148
|
+
function se(e, t, r) {
|
|
1149
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = ye;
|
|
1111
1150
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1112
|
-
return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) :
|
|
1151
|
+
return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : ye(t, r);
|
|
1113
1152
|
}
|
|
1114
|
-
|
|
1153
|
+
se.all = function(t, r) {
|
|
1115
1154
|
if (!Array.isArray(t))
|
|
1116
1155
|
throw new Error("first argument should be an array");
|
|
1117
1156
|
return t.reduce(function(n, i) {
|
|
1118
|
-
return
|
|
1157
|
+
return se(n, i, r);
|
|
1119
1158
|
}, {});
|
|
1120
1159
|
};
|
|
1121
|
-
var En =
|
|
1160
|
+
var En = se, Sn = En;
|
|
1122
1161
|
const wn = /* @__PURE__ */ ln(Sn);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
r.__proto__ = n;
|
|
1126
|
-
} || function(r, n) {
|
|
1127
|
-
for (var i in n)
|
|
1128
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1129
|
-
}, tt(e, t);
|
|
1130
|
-
};
|
|
1131
|
-
function Me(e, t) {
|
|
1132
|
-
if (typeof t != "function" && t !== null)
|
|
1133
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1134
|
-
tt(e, t);
|
|
1135
|
-
function r() {
|
|
1136
|
-
this.constructor = e;
|
|
1137
|
-
}
|
|
1138
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1139
|
-
}
|
|
1140
|
-
var X = function() {
|
|
1141
|
-
return X = Object.assign || function(t) {
|
|
1142
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1143
|
-
r = arguments[n];
|
|
1144
|
-
for (var o in r)
|
|
1145
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1146
|
-
}
|
|
1147
|
-
return t;
|
|
1148
|
-
}, X.apply(this, arguments);
|
|
1149
|
-
};
|
|
1150
|
-
function Tn(e, t) {
|
|
1151
|
-
var r = {};
|
|
1152
|
-
for (var n in e)
|
|
1153
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1154
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1155
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1156
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1157
|
-
return r;
|
|
1158
|
-
}
|
|
1159
|
-
function Ue(e, t, r) {
|
|
1160
|
-
if (r || arguments.length === 2)
|
|
1161
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1162
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1163
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1164
|
-
}
|
|
1165
|
-
function Fe(e, t) {
|
|
1166
|
-
var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Pn, i = t && t.strategy ? t.strategy : Bn;
|
|
1162
|
+
function $e(e, t) {
|
|
1163
|
+
var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Hn;
|
|
1167
1164
|
return i(e, {
|
|
1168
1165
|
cache: r,
|
|
1169
1166
|
serializer: n
|
|
1170
1167
|
});
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1169
|
+
function Tn(e) {
|
|
1173
1170
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1174
1171
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var i =
|
|
1172
|
+
function Yt(e, t, r, n) {
|
|
1173
|
+
var i = Tn(n) ? n : r(n), o = t.get(i);
|
|
1177
1174
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1178
1175
|
}
|
|
1179
1176
|
function Kt(e, t, r) {
|
|
1180
1177
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1181
1178
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1182
1179
|
}
|
|
1183
|
-
function
|
|
1180
|
+
function at(e, t, r, n, i) {
|
|
1184
1181
|
return r.bind(t, e, n, i);
|
|
1185
1182
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var r = e.length === 1 ?
|
|
1188
|
-
return
|
|
1183
|
+
function Hn(e, t) {
|
|
1184
|
+
var r = e.length === 1 ? Yt : Kt;
|
|
1185
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
|
1186
|
+
}
|
|
1187
|
+
function Cn(e, t) {
|
|
1188
|
+
return at(e, this, Kt, t.cache.create(), t.serializer);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1190
|
+
function Bn(e, t) {
|
|
1191
|
+
return at(e, this, Yt, t.cache.create(), t.serializer);
|
|
1192
1192
|
}
|
|
1193
|
-
var
|
|
1193
|
+
var An = function() {
|
|
1194
1194
|
return JSON.stringify(arguments);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}()
|
|
1207
|
-
), Rn = {
|
|
1195
|
+
};
|
|
1196
|
+
function ut() {
|
|
1197
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1198
|
+
}
|
|
1199
|
+
ut.prototype.get = function(e) {
|
|
1200
|
+
return this.cache[e];
|
|
1201
|
+
};
|
|
1202
|
+
ut.prototype.set = function(e, t) {
|
|
1203
|
+
this.cache[e] = t;
|
|
1204
|
+
};
|
|
1205
|
+
var Pn = {
|
|
1208
1206
|
create: function() {
|
|
1209
|
-
return new
|
|
1207
|
+
return new ut();
|
|
1210
1208
|
}
|
|
1211
|
-
},
|
|
1212
|
-
variadic:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1216
|
-
r = arguments[n];
|
|
1217
|
-
for (var o in r)
|
|
1218
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1219
|
-
}
|
|
1220
|
-
return t;
|
|
1221
|
-
}, Be.apply(this, arguments);
|
|
1222
|
-
};
|
|
1223
|
-
var v;
|
|
1209
|
+
}, Ue = {
|
|
1210
|
+
variadic: Cn,
|
|
1211
|
+
monadic: Bn
|
|
1212
|
+
}, v;
|
|
1224
1213
|
(function(e) {
|
|
1225
1214
|
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";
|
|
1226
1215
|
})(v || (v = {}));
|
|
1227
|
-
var
|
|
1216
|
+
var C;
|
|
1228
1217
|
(function(e) {
|
|
1229
1218
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1219
|
+
})(C || (C = {}));
|
|
1220
|
+
var ae;
|
|
1232
1221
|
(function(e) {
|
|
1233
1222
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1234
|
-
})(
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1223
|
+
})(ae || (ae = {}));
|
|
1224
|
+
function xt(e) {
|
|
1225
|
+
return e.type === C.literal;
|
|
1226
|
+
}
|
|
1227
|
+
function On(e) {
|
|
1228
|
+
return e.type === C.argument;
|
|
1237
1229
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1230
|
+
function er(e) {
|
|
1231
|
+
return e.type === C.number;
|
|
1240
1232
|
}
|
|
1241
1233
|
function tr(e) {
|
|
1242
|
-
return e.type ===
|
|
1234
|
+
return e.type === C.date;
|
|
1243
1235
|
}
|
|
1244
1236
|
function rr(e) {
|
|
1245
|
-
return e.type ===
|
|
1237
|
+
return e.type === C.time;
|
|
1246
1238
|
}
|
|
1247
1239
|
function nr(e) {
|
|
1248
|
-
return e.type ===
|
|
1240
|
+
return e.type === C.select;
|
|
1249
1241
|
}
|
|
1250
1242
|
function ir(e) {
|
|
1251
|
-
return e.type ===
|
|
1243
|
+
return e.type === C.plural;
|
|
1252
1244
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1245
|
+
function Rn(e) {
|
|
1246
|
+
return e.type === C.pound;
|
|
1255
1247
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1248
|
+
function or(e) {
|
|
1249
|
+
return e.type === C.tag;
|
|
1258
1250
|
}
|
|
1259
1251
|
function sr(e) {
|
|
1260
|
-
return e.type ===
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === ae.number);
|
|
1261
1253
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1264
|
-
}
|
|
1265
|
-
function rt(e) {
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
|
1254
|
+
function Ye(e) {
|
|
1255
|
+
return !!(e && typeof e == "object" && e.type === ae.dateTime);
|
|
1267
1256
|
}
|
|
1268
|
-
var
|
|
1269
|
-
function
|
|
1257
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mn = /(?:[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;
|
|
1258
|
+
function In(e) {
|
|
1270
1259
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1260
|
+
return e.replace(Mn, function(r) {
|
|
1272
1261
|
var n = r.length;
|
|
1273
1262
|
switch (r[0]) {
|
|
1274
1263
|
case "G":
|
|
@@ -1357,21 +1346,11 @@ function Nn(e) {
|
|
|
1357
1346
|
return "";
|
|
1358
1347
|
}), t;
|
|
1359
1348
|
}
|
|
1360
|
-
var
|
|
1361
|
-
|
|
1362
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1363
|
-
r = arguments[n];
|
|
1364
|
-
for (var o in r)
|
|
1365
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1366
|
-
}
|
|
1367
|
-
return t;
|
|
1368
|
-
}, B.apply(this, arguments);
|
|
1369
|
-
};
|
|
1370
|
-
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1371
|
-
function $n(e) {
|
|
1349
|
+
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1350
|
+
function kn(e) {
|
|
1372
1351
|
if (e.length === 0)
|
|
1373
1352
|
throw new Error("Number skeleton cannot be empty");
|
|
1374
|
-
for (var t = e.split(
|
|
1353
|
+
for (var t = e.split(Ln).filter(function(h) {
|
|
1375
1354
|
return h.length > 0;
|
|
1376
1355
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1377
1356
|
var o = i[n], s = o.split("/");
|
|
@@ -1386,17 +1365,17 @@ function $n(e) {
|
|
|
1386
1365
|
}
|
|
1387
1366
|
return r;
|
|
1388
1367
|
}
|
|
1389
|
-
function
|
|
1368
|
+
function Nn(e) {
|
|
1390
1369
|
return e.replace(/^(.*?)-/, "");
|
|
1391
1370
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1371
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
1372
|
+
function St(e) {
|
|
1394
1373
|
var t = {};
|
|
1395
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1374
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
|
|
1396
1375
|
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)), "";
|
|
1397
1376
|
}), t;
|
|
1398
1377
|
}
|
|
1399
|
-
function
|
|
1378
|
+
function cr(e) {
|
|
1400
1379
|
switch (e) {
|
|
1401
1380
|
case "sign-auto":
|
|
1402
1381
|
return {
|
|
@@ -1436,7 +1415,7 @@ function hr(e) {
|
|
|
1436
1415
|
};
|
|
1437
1416
|
}
|
|
1438
1417
|
}
|
|
1439
|
-
function
|
|
1418
|
+
function Un(e) {
|
|
1440
1419
|
var t;
|
|
1441
1420
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1442
1421
|
notation: "engineering"
|
|
@@ -1444,17 +1423,17 @@ function Dn(e) {
|
|
|
1444
1423
|
notation: "scientific"
|
|
1445
1424
|
}, e = e.slice(1)), t) {
|
|
1446
1425
|
var r = e.slice(0, 2);
|
|
1447
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1426
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
|
1448
1427
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1449
1428
|
t.minimumIntegerDigits = e.length;
|
|
1450
1429
|
}
|
|
1451
1430
|
return t;
|
|
1452
1431
|
}
|
|
1453
|
-
function
|
|
1454
|
-
var t = {}, r =
|
|
1432
|
+
function wt(e) {
|
|
1433
|
+
var t = {}, r = cr(e);
|
|
1455
1434
|
return r || t;
|
|
1456
1435
|
}
|
|
1457
|
-
function
|
|
1436
|
+
function Fn(e) {
|
|
1458
1437
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1459
1438
|
var i = n[r];
|
|
1460
1439
|
switch (i.stem) {
|
|
@@ -1478,7 +1457,7 @@ function jn(e) {
|
|
|
1478
1457
|
continue;
|
|
1479
1458
|
case "measure-unit":
|
|
1480
1459
|
case "unit":
|
|
1481
|
-
t.style = "unit", t.unit =
|
|
1460
|
+
t.style = "unit", t.unit = Nn(i.options[0]);
|
|
1482
1461
|
continue;
|
|
1483
1462
|
case "compact-short":
|
|
1484
1463
|
case "K":
|
|
@@ -1489,13 +1468,13 @@ function jn(e) {
|
|
|
1489
1468
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1490
1469
|
continue;
|
|
1491
1470
|
case "scientific":
|
|
1492
|
-
t =
|
|
1493
|
-
return
|
|
1471
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1472
|
+
return S(S({}, l), wt(u));
|
|
1494
1473
|
}, {}));
|
|
1495
1474
|
continue;
|
|
1496
1475
|
case "engineering":
|
|
1497
|
-
t =
|
|
1498
|
-
return
|
|
1476
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1477
|
+
return S(S({}, l), wt(u));
|
|
1499
1478
|
}, {}));
|
|
1500
1479
|
continue;
|
|
1501
1480
|
case "notation-simple":
|
|
@@ -1540,7 +1519,7 @@ function jn(e) {
|
|
|
1540
1519
|
case "integer-width":
|
|
1541
1520
|
if (i.options.length > 1)
|
|
1542
1521
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1543
|
-
i.options[0].replace(
|
|
1522
|
+
i.options[0].replace($n, function(l, u, c, f, h, d) {
|
|
1544
1523
|
if (u)
|
|
1545
1524
|
t.minimumIntegerDigits = c.length;
|
|
1546
1525
|
else {
|
|
@@ -1553,28 +1532,28 @@ function jn(e) {
|
|
|
1553
1532
|
});
|
|
1554
1533
|
continue;
|
|
1555
1534
|
}
|
|
1556
|
-
if (
|
|
1535
|
+
if (lr.test(i.stem)) {
|
|
1557
1536
|
t.minimumIntegerDigits = i.stem.length;
|
|
1558
1537
|
continue;
|
|
1559
1538
|
}
|
|
1560
|
-
if (
|
|
1539
|
+
if (Et.test(i.stem)) {
|
|
1561
1540
|
if (i.options.length > 1)
|
|
1562
1541
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1563
|
-
i.stem.replace(
|
|
1542
|
+
i.stem.replace(Et, function(l, u, c, f, h, d) {
|
|
1564
1543
|
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1565
1544
|
});
|
|
1566
1545
|
var o = i.options[0];
|
|
1567
|
-
o === "w" ? t =
|
|
1546
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), St(o)));
|
|
1568
1547
|
continue;
|
|
1569
1548
|
}
|
|
1570
|
-
if (
|
|
1571
|
-
t =
|
|
1549
|
+
if (ur.test(i.stem)) {
|
|
1550
|
+
t = S(S({}, t), St(i.stem));
|
|
1572
1551
|
continue;
|
|
1573
1552
|
}
|
|
1574
|
-
var s =
|
|
1575
|
-
s && (t =
|
|
1576
|
-
var a =
|
|
1577
|
-
a && (t =
|
|
1553
|
+
var s = cr(i.stem);
|
|
1554
|
+
s && (t = S(S({}, t), s));
|
|
1555
|
+
var a = Un(i.stem);
|
|
1556
|
+
a && (t = S(S({}, t), a));
|
|
1578
1557
|
}
|
|
1579
1558
|
return t;
|
|
1580
1559
|
}
|
|
@@ -2993,13 +2972,13 @@ var Ee = {
|
|
|
2993
2972
|
"h"
|
|
2994
2973
|
]
|
|
2995
2974
|
};
|
|
2996
|
-
function
|
|
2975
|
+
function Dn(e, t) {
|
|
2997
2976
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2998
2977
|
var i = e.charAt(n);
|
|
2999
2978
|
if (i === "j") {
|
|
3000
2979
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3001
2980
|
o++, n++;
|
|
3002
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2981
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Gn(t);
|
|
3003
2982
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3004
2983
|
r += l;
|
|
3005
2984
|
for (; s-- > 0; )
|
|
@@ -3009,7 +2988,7 @@ function Gn(e, t) {
|
|
|
3009
2988
|
}
|
|
3010
2989
|
return r;
|
|
3011
2990
|
}
|
|
3012
|
-
function
|
|
2991
|
+
function Gn(e) {
|
|
3013
2992
|
var t = e.hourCycle;
|
|
3014
2993
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3015
2994
|
e.hourCycles && // @ts-ignore
|
|
@@ -3031,20 +3010,20 @@ function Vn(e) {
|
|
|
3031
3010
|
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3032
3011
|
return i[0];
|
|
3033
3012
|
}
|
|
3034
|
-
var
|
|
3013
|
+
var Fe, jn = new RegExp("^".concat(ar.source, "*")), Vn = new RegExp("".concat(ar.source, "*$"));
|
|
3035
3014
|
function _(e, t) {
|
|
3036
3015
|
return { start: e, end: t };
|
|
3037
3016
|
}
|
|
3038
|
-
var
|
|
3017
|
+
var Xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, qn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, Zn = !!String.prototype.trimStart, Qn = !!String.prototype.trimEnd, Jn = !!Number.isSafeInteger, Yn = Jn ? Number.isSafeInteger : function(e) {
|
|
3039
3018
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3040
|
-
},
|
|
3019
|
+
}, Ke = !0;
|
|
3041
3020
|
try {
|
|
3042
|
-
var
|
|
3043
|
-
|
|
3021
|
+
var Kn = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3022
|
+
Ke = ((Fe = Kn.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
3044
3023
|
} catch {
|
|
3045
|
-
|
|
3024
|
+
Ke = !1;
|
|
3046
3025
|
}
|
|
3047
|
-
var
|
|
3026
|
+
var Tt = Xn ? (
|
|
3048
3027
|
// Native
|
|
3049
3028
|
function(t, r, n) {
|
|
3050
3029
|
return t.startsWith(r, n);
|
|
@@ -3054,7 +3033,7 @@ var Ct = qn ? (
|
|
|
3054
3033
|
function(t, r, n) {
|
|
3055
3034
|
return t.slice(n, n + r.length) === r;
|
|
3056
3035
|
}
|
|
3057
|
-
),
|
|
3036
|
+
), et = zn ? String.fromCodePoint : (
|
|
3058
3037
|
// IE11
|
|
3059
3038
|
function() {
|
|
3060
3039
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3066,9 +3045,9 @@ var Ct = qn ? (
|
|
|
3066
3045
|
}
|
|
3067
3046
|
return n;
|
|
3068
3047
|
}
|
|
3069
|
-
),
|
|
3048
|
+
), Ht = (
|
|
3070
3049
|
// native
|
|
3071
|
-
|
|
3050
|
+
qn ? Object.fromEntries : (
|
|
3072
3051
|
// Ponyfill
|
|
3073
3052
|
function(t) {
|
|
3074
3053
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3078,7 +3057,7 @@ var Ct = qn ? (
|
|
|
3078
3057
|
return r;
|
|
3079
3058
|
}
|
|
3080
3059
|
)
|
|
3081
|
-
),
|
|
3060
|
+
), hr = Wn ? (
|
|
3082
3061
|
// Native
|
|
3083
3062
|
function(t, r) {
|
|
3084
3063
|
return t.codePointAt(r);
|
|
@@ -3092,7 +3071,7 @@ var Ct = qn ? (
|
|
|
3092
3071
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3093
3072
|
}
|
|
3094
3073
|
}
|
|
3095
|
-
),
|
|
3074
|
+
), ei = Zn ? (
|
|
3096
3075
|
// Native
|
|
3097
3076
|
function(t) {
|
|
3098
3077
|
return t.trimStart();
|
|
@@ -3100,9 +3079,9 @@ var Ct = qn ? (
|
|
|
3100
3079
|
) : (
|
|
3101
3080
|
// Ponyfill
|
|
3102
3081
|
function(t) {
|
|
3103
|
-
return t.replace(
|
|
3082
|
+
return t.replace(jn, "");
|
|
3104
3083
|
}
|
|
3105
|
-
),
|
|
3084
|
+
), ti = Qn ? (
|
|
3106
3085
|
// Native
|
|
3107
3086
|
function(t) {
|
|
3108
3087
|
return t.trimEnd();
|
|
@@ -3110,32 +3089,32 @@ var Ct = qn ? (
|
|
|
3110
3089
|
) : (
|
|
3111
3090
|
// Ponyfill
|
|
3112
3091
|
function(t) {
|
|
3113
|
-
return t.replace(
|
|
3092
|
+
return t.replace(Vn, "");
|
|
3114
3093
|
}
|
|
3115
3094
|
);
|
|
3116
|
-
function
|
|
3095
|
+
function fr(e, t) {
|
|
3117
3096
|
return new RegExp(e, t);
|
|
3118
3097
|
}
|
|
3119
|
-
var
|
|
3120
|
-
if (
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3098
|
+
var tt;
|
|
3099
|
+
if (Ke) {
|
|
3100
|
+
var Ct = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3101
|
+
tt = function(t, r) {
|
|
3123
3102
|
var n;
|
|
3124
|
-
|
|
3125
|
-
var i =
|
|
3103
|
+
Ct.lastIndex = r;
|
|
3104
|
+
var i = Ct.exec(t);
|
|
3126
3105
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3127
3106
|
};
|
|
3128
3107
|
} else
|
|
3129
|
-
|
|
3108
|
+
tt = function(t, r) {
|
|
3130
3109
|
for (var n = []; ; ) {
|
|
3131
|
-
var i =
|
|
3132
|
-
if (i === void 0 ||
|
|
3110
|
+
var i = hr(t, r);
|
|
3111
|
+
if (i === void 0 || pr(i) || oi(i))
|
|
3133
3112
|
break;
|
|
3134
3113
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3135
3114
|
}
|
|
3136
|
-
return
|
|
3115
|
+
return et.apply(void 0, n);
|
|
3137
3116
|
};
|
|
3138
|
-
var
|
|
3117
|
+
var ri = (
|
|
3139
3118
|
/** @class */
|
|
3140
3119
|
function() {
|
|
3141
3120
|
function e(t, r) {
|
|
@@ -3159,14 +3138,14 @@ var ii = (
|
|
|
3159
3138
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3160
3139
|
var a = this.clonePosition();
|
|
3161
3140
|
this.bump(), i.push({
|
|
3162
|
-
type:
|
|
3141
|
+
type: C.pound,
|
|
3163
3142
|
location: _(a, this.clonePosition())
|
|
3164
3143
|
});
|
|
3165
3144
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3166
3145
|
if (n)
|
|
3167
3146
|
break;
|
|
3168
3147
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3169
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3148
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3170
3149
|
var s = this.parseTag(t, r);
|
|
3171
3150
|
if (s.err)
|
|
3172
3151
|
return s;
|
|
@@ -3187,7 +3166,7 @@ var ii = (
|
|
|
3187
3166
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3188
3167
|
return {
|
|
3189
3168
|
val: {
|
|
3190
|
-
type:
|
|
3169
|
+
type: C.literal,
|
|
3191
3170
|
value: "<".concat(i, "/>"),
|
|
3192
3171
|
location: _(n, this.clonePosition())
|
|
3193
3172
|
},
|
|
@@ -3199,12 +3178,12 @@ var ii = (
|
|
|
3199
3178
|
return o;
|
|
3200
3179
|
var s = o.val, a = this.clonePosition();
|
|
3201
3180
|
if (this.bumpIf("</")) {
|
|
3202
|
-
if (this.isEOF() || !
|
|
3181
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3203
3182
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
3204
3183
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3205
3184
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3206
3185
|
val: {
|
|
3207
|
-
type:
|
|
3186
|
+
type: C.tag,
|
|
3208
3187
|
value: i,
|
|
3209
3188
|
children: s,
|
|
3210
3189
|
location: _(n, this.clonePosition())
|
|
@@ -3217,7 +3196,7 @@ var ii = (
|
|
|
3217
3196
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
3218
3197
|
}, e.prototype.parseTagName = function() {
|
|
3219
3198
|
var t = this.offset();
|
|
3220
|
-
for (this.bump(); !this.isEOF() &&
|
|
3199
|
+
for (this.bump(); !this.isEOF() && ii(this.char()); )
|
|
3221
3200
|
this.bump();
|
|
3222
3201
|
return this.message.slice(t, this.offset());
|
|
3223
3202
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3241,12 +3220,12 @@ var ii = (
|
|
|
3241
3220
|
}
|
|
3242
3221
|
var l = _(n, this.clonePosition());
|
|
3243
3222
|
return {
|
|
3244
|
-
val: { type:
|
|
3223
|
+
val: { type: C.literal, value: i, location: l },
|
|
3245
3224
|
err: null
|
|
3246
3225
|
};
|
|
3247
3226
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3248
3227
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3249
|
-
!
|
|
3228
|
+
!ni(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3250
3229
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3251
3230
|
if (this.isEOF() || this.char() !== 39)
|
|
3252
3231
|
return null;
|
|
@@ -3280,12 +3259,12 @@ var ii = (
|
|
|
3280
3259
|
r.push(n);
|
|
3281
3260
|
this.bump();
|
|
3282
3261
|
}
|
|
3283
|
-
return
|
|
3262
|
+
return et.apply(void 0, r);
|
|
3284
3263
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3285
3264
|
if (this.isEOF())
|
|
3286
3265
|
return null;
|
|
3287
3266
|
var n = this.char();
|
|
3288
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3267
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3289
3268
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3290
3269
|
var n = this.clonePosition();
|
|
3291
3270
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3301,7 +3280,7 @@ var ii = (
|
|
|
3301
3280
|
case 125:
|
|
3302
3281
|
return this.bump(), {
|
|
3303
3282
|
val: {
|
|
3304
|
-
type:
|
|
3283
|
+
type: C.argument,
|
|
3305
3284
|
// value does not include the opening and closing braces.
|
|
3306
3285
|
value: i,
|
|
3307
3286
|
location: _(n, this.clonePosition())
|
|
@@ -3314,7 +3293,7 @@ var ii = (
|
|
|
3314
3293
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3315
3294
|
}
|
|
3316
3295
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3317
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3296
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3318
3297
|
this.bumpTo(i);
|
|
3319
3298
|
var o = this.clonePosition(), s = _(t, o);
|
|
3320
3299
|
return { value: n, location: s };
|
|
@@ -3333,7 +3312,7 @@ var ii = (
|
|
|
3333
3312
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3334
3313
|
if (f.err)
|
|
3335
3314
|
return f;
|
|
3336
|
-
var h =
|
|
3315
|
+
var h = ti(f.val);
|
|
3337
3316
|
if (h.length === 0)
|
|
3338
3317
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3339
3318
|
var d = _(c, this.clonePosition());
|
|
@@ -3343,34 +3322,34 @@ var ii = (
|
|
|
3343
3322
|
if (m.err)
|
|
3344
3323
|
return m;
|
|
3345
3324
|
var p = _(i, this.clonePosition());
|
|
3346
|
-
if (u &&
|
|
3347
|
-
var y =
|
|
3325
|
+
if (u && Tt(u?.style, "::", 0)) {
|
|
3326
|
+
var y = ei(u.style.slice(2));
|
|
3348
3327
|
if (a === "number") {
|
|
3349
3328
|
var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
3350
3329
|
return f.err ? f : {
|
|
3351
|
-
val: { type:
|
|
3330
|
+
val: { type: C.number, value: n, location: p, style: f.val },
|
|
3352
3331
|
err: null
|
|
3353
3332
|
};
|
|
3354
3333
|
} else {
|
|
3355
3334
|
if (y.length === 0)
|
|
3356
3335
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
|
|
3357
|
-
var
|
|
3358
|
-
this.locale && (
|
|
3336
|
+
var w = y;
|
|
3337
|
+
this.locale && (w = Dn(y, this.locale));
|
|
3359
3338
|
var h = {
|
|
3360
|
-
type:
|
|
3361
|
-
pattern:
|
|
3339
|
+
type: ae.dateTime,
|
|
3340
|
+
pattern: w,
|
|
3362
3341
|
location: u.styleLocation,
|
|
3363
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3364
|
-
},
|
|
3342
|
+
parsedOptions: this.shouldParseSkeletons ? In(w) : {}
|
|
3343
|
+
}, B = a === "date" ? C.date : C.time;
|
|
3365
3344
|
return {
|
|
3366
|
-
val: { type:
|
|
3345
|
+
val: { type: B, value: n, location: p, style: h },
|
|
3367
3346
|
err: null
|
|
3368
3347
|
};
|
|
3369
3348
|
}
|
|
3370
3349
|
}
|
|
3371
3350
|
return {
|
|
3372
3351
|
val: {
|
|
3373
|
-
type: a === "number" ?
|
|
3352
|
+
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3374
3353
|
value: n,
|
|
3375
3354
|
location: p,
|
|
3376
3355
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3383,9 +3362,9 @@ var ii = (
|
|
|
3383
3362
|
case "select": {
|
|
3384
3363
|
var O = this.clonePosition();
|
|
3385
3364
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3386
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(O,
|
|
3365
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(O, S({}, O)));
|
|
3387
3366
|
this.bumpSpace();
|
|
3388
|
-
var F = this.parseIdentifierIfPossible(),
|
|
3367
|
+
var F = this.parseIdentifierIfPossible(), N = 0;
|
|
3389
3368
|
if (a !== "select" && F.value === "offset") {
|
|
3390
3369
|
if (!this.bumpIf(":"))
|
|
3391
3370
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3393,29 +3372,29 @@ var ii = (
|
|
|
3393
3372
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3394
3373
|
if (f.err)
|
|
3395
3374
|
return f;
|
|
3396
|
-
this.bumpSpace(), F = this.parseIdentifierIfPossible(),
|
|
3375
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), N = f.val;
|
|
3397
3376
|
}
|
|
3398
|
-
var
|
|
3399
|
-
if (
|
|
3400
|
-
return
|
|
3377
|
+
var X = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
|
3378
|
+
if (X.err)
|
|
3379
|
+
return X;
|
|
3401
3380
|
var m = this.tryParseArgumentClose(i);
|
|
3402
3381
|
if (m.err)
|
|
3403
3382
|
return m;
|
|
3404
3383
|
var D = _(i, this.clonePosition());
|
|
3405
3384
|
return a === "select" ? {
|
|
3406
3385
|
val: {
|
|
3407
|
-
type:
|
|
3386
|
+
type: C.select,
|
|
3408
3387
|
value: n,
|
|
3409
|
-
options:
|
|
3388
|
+
options: Ht(X.val),
|
|
3410
3389
|
location: D
|
|
3411
3390
|
},
|
|
3412
3391
|
err: null
|
|
3413
3392
|
} : {
|
|
3414
3393
|
val: {
|
|
3415
|
-
type:
|
|
3394
|
+
type: C.plural,
|
|
3416
3395
|
value: n,
|
|
3417
|
-
options:
|
|
3418
|
-
offset:
|
|
3396
|
+
options: Ht(X.val),
|
|
3397
|
+
offset: N,
|
|
3419
3398
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3420
3399
|
location: D
|
|
3421
3400
|
},
|
|
@@ -3465,16 +3444,16 @@ var ii = (
|
|
|
3465
3444
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3466
3445
|
var n = [];
|
|
3467
3446
|
try {
|
|
3468
|
-
n =
|
|
3447
|
+
n = kn(t);
|
|
3469
3448
|
} catch {
|
|
3470
3449
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3471
3450
|
}
|
|
3472
3451
|
return {
|
|
3473
3452
|
val: {
|
|
3474
|
-
type:
|
|
3453
|
+
type: ae.number,
|
|
3475
3454
|
tokens: n,
|
|
3476
3455
|
location: r,
|
|
3477
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3456
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(n) : {}
|
|
3478
3457
|
},
|
|
3479
3458
|
err: null
|
|
3480
3459
|
};
|
|
@@ -3522,7 +3501,7 @@ var ii = (
|
|
|
3522
3501
|
break;
|
|
3523
3502
|
}
|
|
3524
3503
|
var l = _(i, this.clonePosition());
|
|
3525
|
-
return o ? (s *= n,
|
|
3504
|
+
return o ? (s *= n, Yn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3526
3505
|
}, e.prototype.offset = function() {
|
|
3527
3506
|
return this.position.offset;
|
|
3528
3507
|
}, e.prototype.isEOF = function() {
|
|
@@ -3537,7 +3516,7 @@ var ii = (
|
|
|
3537
3516
|
var t = this.position.offset;
|
|
3538
3517
|
if (t >= this.message.length)
|
|
3539
3518
|
throw Error("out of bound");
|
|
3540
|
-
var r =
|
|
3519
|
+
var r = hr(this.message, t);
|
|
3541
3520
|
if (r === void 0)
|
|
3542
3521
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3543
3522
|
return r;
|
|
@@ -3556,7 +3535,7 @@ var ii = (
|
|
|
3556
3535
|
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);
|
|
3557
3536
|
}
|
|
3558
3537
|
}, e.prototype.bumpIf = function(t) {
|
|
3559
|
-
if (
|
|
3538
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3560
3539
|
for (var r = 0; r < t.length; r++)
|
|
3561
3540
|
this.bump();
|
|
3562
3541
|
return !0;
|
|
@@ -3578,7 +3557,7 @@ var ii = (
|
|
|
3578
3557
|
break;
|
|
3579
3558
|
}
|
|
3580
3559
|
}, e.prototype.bumpSpace = function() {
|
|
3581
|
-
for (; !this.isEOF() &&
|
|
3560
|
+
for (; !this.isEOF() && pr(this.char()); )
|
|
3582
3561
|
this.bump();
|
|
3583
3562
|
}, e.prototype.peek = function() {
|
|
3584
3563
|
if (this.isEOF())
|
|
@@ -3588,47 +3567,47 @@ var ii = (
|
|
|
3588
3567
|
}, e;
|
|
3589
3568
|
}()
|
|
3590
3569
|
);
|
|
3591
|
-
function
|
|
3570
|
+
function rt(e) {
|
|
3592
3571
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3593
3572
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3573
|
+
function ni(e) {
|
|
3574
|
+
return rt(e) || e === 47;
|
|
3596
3575
|
}
|
|
3597
|
-
function
|
|
3576
|
+
function ii(e) {
|
|
3598
3577
|
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;
|
|
3599
3578
|
}
|
|
3600
|
-
function
|
|
3579
|
+
function pr(e) {
|
|
3601
3580
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3602
3581
|
}
|
|
3603
|
-
function
|
|
3582
|
+
function oi(e) {
|
|
3604
3583
|
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;
|
|
3605
3584
|
}
|
|
3606
|
-
function
|
|
3585
|
+
function nt(e) {
|
|
3607
3586
|
e.forEach(function(t) {
|
|
3608
|
-
if (delete t.location,
|
|
3587
|
+
if (delete t.location, nr(t) || ir(t))
|
|
3609
3588
|
for (var r in t.options)
|
|
3610
|
-
delete t.options[r].location,
|
|
3589
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3611
3590
|
else
|
|
3612
|
-
|
|
3591
|
+
er(t) && sr(t.style) || (tr(t) || rr(t)) && Ye(t.style) ? delete t.style.location : or(t) && nt(t.children);
|
|
3613
3592
|
});
|
|
3614
3593
|
}
|
|
3615
|
-
function
|
|
3616
|
-
t === void 0 && (t = {}), t =
|
|
3617
|
-
var r = new
|
|
3594
|
+
function si(e, t) {
|
|
3595
|
+
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3596
|
+
var r = new ri(e, t).parse();
|
|
3618
3597
|
if (r.err) {
|
|
3619
3598
|
var n = SyntaxError(v[r.err.kind]);
|
|
3620
3599
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3621
3600
|
}
|
|
3622
|
-
return t?.captureLocation ||
|
|
3601
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3623
3602
|
}
|
|
3624
|
-
var
|
|
3603
|
+
var ue;
|
|
3625
3604
|
(function(e) {
|
|
3626
3605
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3627
|
-
})(
|
|
3628
|
-
var
|
|
3606
|
+
})(ue || (ue = {}));
|
|
3607
|
+
var Re = (
|
|
3629
3608
|
/** @class */
|
|
3630
3609
|
function(e) {
|
|
3631
|
-
|
|
3610
|
+
Z(t, e);
|
|
3632
3611
|
function t(r, n, i) {
|
|
3633
3612
|
var o = e.call(this, r) || this;
|
|
3634
3613
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3637,48 +3616,48 @@ var Ie = (
|
|
|
3637
3616
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3638
3617
|
}, t;
|
|
3639
3618
|
}(Error)
|
|
3640
|
-
),
|
|
3619
|
+
), Bt = (
|
|
3641
3620
|
/** @class */
|
|
3642
3621
|
function(e) {
|
|
3643
|
-
|
|
3622
|
+
Z(t, e);
|
|
3644
3623
|
function t(r, n, i, o) {
|
|
3645
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3624
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ue.INVALID_VALUE, o) || this;
|
|
3646
3625
|
}
|
|
3647
3626
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3627
|
+
}(Re)
|
|
3628
|
+
), ai = (
|
|
3650
3629
|
/** @class */
|
|
3651
3630
|
function(e) {
|
|
3652
|
-
|
|
3631
|
+
Z(t, e);
|
|
3653
3632
|
function t(r, n, i) {
|
|
3654
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3633
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ue.INVALID_VALUE, i) || this;
|
|
3655
3634
|
}
|
|
3656
3635
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3636
|
+
}(Re)
|
|
3637
|
+
), ui = (
|
|
3659
3638
|
/** @class */
|
|
3660
3639
|
function(e) {
|
|
3661
|
-
|
|
3640
|
+
Z(t, e);
|
|
3662
3641
|
function t(r, n) {
|
|
3663
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3642
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ue.MISSING_VALUE, n) || this;
|
|
3664
3643
|
}
|
|
3665
3644
|
return t;
|
|
3666
|
-
}(
|
|
3645
|
+
}(Re)
|
|
3667
3646
|
), L;
|
|
3668
3647
|
(function(e) {
|
|
3669
3648
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3670
3649
|
})(L || (L = {}));
|
|
3671
|
-
function
|
|
3650
|
+
function li(e) {
|
|
3672
3651
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3673
3652
|
var n = t[t.length - 1];
|
|
3674
3653
|
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
|
3675
3654
|
}, []);
|
|
3676
3655
|
}
|
|
3677
|
-
function
|
|
3656
|
+
function ci(e) {
|
|
3678
3657
|
return typeof e == "function";
|
|
3679
3658
|
}
|
|
3680
3659
|
function Te(e, t, r, n, i, o, s) {
|
|
3681
|
-
if (e.length === 1 &&
|
|
3660
|
+
if (e.length === 1 && xt(e[0]))
|
|
3682
3661
|
return [
|
|
3683
3662
|
{
|
|
3684
3663
|
type: L.literal,
|
|
@@ -3687,14 +3666,14 @@ function Te(e, t, r, n, i, o, s) {
|
|
|
3687
3666
|
];
|
|
3688
3667
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3689
3668
|
var c = u[l];
|
|
3690
|
-
if (
|
|
3669
|
+
if (xt(c)) {
|
|
3691
3670
|
a.push({
|
|
3692
3671
|
type: L.literal,
|
|
3693
3672
|
value: c.value
|
|
3694
3673
|
});
|
|
3695
3674
|
continue;
|
|
3696
3675
|
}
|
|
3697
|
-
if (
|
|
3676
|
+
if (Rn(c)) {
|
|
3698
3677
|
typeof o == "number" && a.push({
|
|
3699
3678
|
type: L.literal,
|
|
3700
3679
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3703,89 +3682,89 @@ function Te(e, t, r, n, i, o, s) {
|
|
|
3703
3682
|
}
|
|
3704
3683
|
var f = c.value;
|
|
3705
3684
|
if (!(i && f in i))
|
|
3706
|
-
throw new
|
|
3685
|
+
throw new ui(f, s);
|
|
3707
3686
|
var h = i[f];
|
|
3708
|
-
if (
|
|
3687
|
+
if (On(c)) {
|
|
3709
3688
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3710
3689
|
type: typeof h == "string" ? L.literal : L.object,
|
|
3711
3690
|
value: h
|
|
3712
3691
|
});
|
|
3713
3692
|
continue;
|
|
3714
3693
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var d = typeof c.style == "string" ? n.date[c.style] :
|
|
3694
|
+
if (tr(c)) {
|
|
3695
|
+
var d = typeof c.style == "string" ? n.date[c.style] : Ye(c.style) ? c.style.parsedOptions : void 0;
|
|
3717
3696
|
a.push({
|
|
3718
3697
|
type: L.literal,
|
|
3719
3698
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
3720
3699
|
});
|
|
3721
3700
|
continue;
|
|
3722
3701
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var d = typeof c.style == "string" ? n.time[c.style] :
|
|
3702
|
+
if (rr(c)) {
|
|
3703
|
+
var d = typeof c.style == "string" ? n.time[c.style] : Ye(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3725
3704
|
a.push({
|
|
3726
3705
|
type: L.literal,
|
|
3727
3706
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
3728
3707
|
});
|
|
3729
3708
|
continue;
|
|
3730
3709
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var d = typeof c.style == "string" ? n.number[c.style] :
|
|
3710
|
+
if (er(c)) {
|
|
3711
|
+
var d = typeof c.style == "string" ? n.number[c.style] : sr(c.style) ? c.style.parsedOptions : void 0;
|
|
3733
3712
|
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
3734
3713
|
type: L.literal,
|
|
3735
3714
|
value: r.getNumberFormat(t, d).format(h)
|
|
3736
3715
|
});
|
|
3737
3716
|
continue;
|
|
3738
3717
|
}
|
|
3739
|
-
if (
|
|
3718
|
+
if (or(c)) {
|
|
3740
3719
|
var m = c.children, p = c.value, y = i[p];
|
|
3741
|
-
if (!
|
|
3742
|
-
throw new
|
|
3743
|
-
var
|
|
3744
|
-
return
|
|
3720
|
+
if (!ci(y))
|
|
3721
|
+
throw new ai(p, "function", s);
|
|
3722
|
+
var w = Te(m, t, r, n, i, o), B = y(w.map(function(N) {
|
|
3723
|
+
return N.value;
|
|
3745
3724
|
}));
|
|
3746
|
-
Array.isArray(
|
|
3725
|
+
Array.isArray(B) || (B = [B]), a.push.apply(a, B.map(function(N) {
|
|
3747
3726
|
return {
|
|
3748
|
-
type: typeof
|
|
3749
|
-
value:
|
|
3727
|
+
type: typeof N == "string" ? L.literal : L.object,
|
|
3728
|
+
value: N
|
|
3750
3729
|
};
|
|
3751
3730
|
}));
|
|
3752
3731
|
}
|
|
3753
|
-
if (
|
|
3732
|
+
if (nr(c)) {
|
|
3754
3733
|
var O = c.options[h] || c.options.other;
|
|
3755
3734
|
if (!O)
|
|
3756
|
-
throw new
|
|
3735
|
+
throw new Bt(c.value, h, Object.keys(c.options), s);
|
|
3757
3736
|
a.push.apply(a, Te(O.value, t, r, n, i));
|
|
3758
3737
|
continue;
|
|
3759
3738
|
}
|
|
3760
|
-
if (
|
|
3739
|
+
if (ir(c)) {
|
|
3761
3740
|
var O = c.options["=".concat(h)];
|
|
3762
3741
|
if (!O) {
|
|
3763
3742
|
if (!Intl.PluralRules)
|
|
3764
|
-
throw new
|
|
3743
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3765
3744
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3766
|
-
`,
|
|
3745
|
+
`, ue.MISSING_INTL_API, s);
|
|
3767
3746
|
var F = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3768
3747
|
O = c.options[F] || c.options.other;
|
|
3769
3748
|
}
|
|
3770
3749
|
if (!O)
|
|
3771
|
-
throw new
|
|
3750
|
+
throw new Bt(c.value, h, Object.keys(c.options), s);
|
|
3772
3751
|
a.push.apply(a, Te(O.value, t, r, n, i, h - (c.offset || 0)));
|
|
3773
3752
|
continue;
|
|
3774
3753
|
}
|
|
3775
3754
|
}
|
|
3776
|
-
return
|
|
3755
|
+
return li(a);
|
|
3777
3756
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return t ?
|
|
3780
|
-
return r[n] =
|
|
3757
|
+
function hi(e, t) {
|
|
3758
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3759
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3781
3760
|
}, {})) : e;
|
|
3782
3761
|
}
|
|
3783
|
-
function
|
|
3762
|
+
function fi(e, t) {
|
|
3784
3763
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3785
|
-
return r[n] =
|
|
3786
|
-
},
|
|
3764
|
+
return r[n] = hi(e[n], t[n]), r;
|
|
3765
|
+
}, S({}, e)) : e;
|
|
3787
3766
|
}
|
|
3788
|
-
function
|
|
3767
|
+
function De(e) {
|
|
3789
3768
|
return {
|
|
3790
3769
|
create: function() {
|
|
3791
3770
|
return {
|
|
@@ -3799,39 +3778,39 @@ function Ge(e) {
|
|
|
3799
3778
|
}
|
|
3800
3779
|
};
|
|
3801
3780
|
}
|
|
3802
|
-
function
|
|
3781
|
+
function pi(e) {
|
|
3803
3782
|
return e === void 0 && (e = {
|
|
3804
3783
|
number: {},
|
|
3805
3784
|
dateTime: {},
|
|
3806
3785
|
pluralRules: {}
|
|
3807
3786
|
}), {
|
|
3808
|
-
getNumberFormat:
|
|
3787
|
+
getNumberFormat: $e(function() {
|
|
3809
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3810
3789
|
r[n] = arguments[n];
|
|
3811
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, oe([void 0], r, !1)))();
|
|
3812
3791
|
}, {
|
|
3813
|
-
cache:
|
|
3814
|
-
strategy:
|
|
3792
|
+
cache: De(e.number),
|
|
3793
|
+
strategy: Ue.variadic
|
|
3815
3794
|
}),
|
|
3816
|
-
getDateTimeFormat:
|
|
3795
|
+
getDateTimeFormat: $e(function() {
|
|
3817
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3797
|
r[n] = arguments[n];
|
|
3819
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3798
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, oe([void 0], r, !1)))();
|
|
3820
3799
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3800
|
+
cache: De(e.dateTime),
|
|
3801
|
+
strategy: Ue.variadic
|
|
3823
3802
|
}),
|
|
3824
|
-
getPluralRules:
|
|
3803
|
+
getPluralRules: $e(function() {
|
|
3825
3804
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3805
|
r[n] = arguments[n];
|
|
3827
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3806
|
+
return new ((t = Intl.PluralRules).bind.apply(t, oe([void 0], r, !1)))();
|
|
3828
3807
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3808
|
+
cache: De(e.pluralRules),
|
|
3809
|
+
strategy: Ue.variadic
|
|
3831
3810
|
})
|
|
3832
3811
|
};
|
|
3833
3812
|
}
|
|
3834
|
-
var
|
|
3813
|
+
var di = (
|
|
3835
3814
|
/** @class */
|
|
3836
3815
|
function() {
|
|
3837
3816
|
function e(t, r, n, i) {
|
|
@@ -3863,13 +3842,13 @@ var bi = (
|
|
|
3863
3842
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3864
3843
|
var s = i || {};
|
|
3865
3844
|
s.formatters;
|
|
3866
|
-
var a =
|
|
3867
|
-
this.ast = e.__parse(t,
|
|
3845
|
+
var a = zr(s, ["formatters"]);
|
|
3846
|
+
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
|
3868
3847
|
} else
|
|
3869
3848
|
this.ast = t;
|
|
3870
3849
|
if (!Array.isArray(this.ast))
|
|
3871
3850
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3872
|
-
this.formats =
|
|
3851
|
+
this.formats = fi(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
|
|
3873
3852
|
}
|
|
3874
3853
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3875
3854
|
get: function() {
|
|
@@ -3882,7 +3861,7 @@ var bi = (
|
|
|
3882
3861
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3883
3862
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3884
3863
|
}
|
|
3885
|
-
}, e.__parse =
|
|
3864
|
+
}, e.__parse = si, e.formats = {
|
|
3886
3865
|
number: {
|
|
3887
3866
|
integer: {
|
|
3888
3867
|
maximumFractionDigits: 0
|
|
@@ -3943,7 +3922,7 @@ var bi = (
|
|
|
3943
3922
|
}, e;
|
|
3944
3923
|
}()
|
|
3945
3924
|
);
|
|
3946
|
-
function
|
|
3925
|
+
function mi(e, t) {
|
|
3947
3926
|
if (t == null)
|
|
3948
3927
|
return;
|
|
3949
3928
|
if (t in e)
|
|
@@ -3964,92 +3943,92 @@ function yi(e, t) {
|
|
|
3964
3943
|
n = void 0;
|
|
3965
3944
|
return n;
|
|
3966
3945
|
}
|
|
3967
|
-
const J = {},
|
|
3946
|
+
const J = {}, bi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), dr = (e, t) => {
|
|
3968
3947
|
if (t == null)
|
|
3969
3948
|
return;
|
|
3970
3949
|
if (t in J && e in J[t])
|
|
3971
3950
|
return J[t][e];
|
|
3972
|
-
const r =
|
|
3951
|
+
const r = Me(t);
|
|
3973
3952
|
for (let n = 0; n < r.length; n++) {
|
|
3974
|
-
const i = r[n], o =
|
|
3953
|
+
const i = r[n], o = gi(i, e);
|
|
3975
3954
|
if (o)
|
|
3976
|
-
return
|
|
3955
|
+
return bi(e, t, o);
|
|
3977
3956
|
}
|
|
3978
3957
|
};
|
|
3979
|
-
let
|
|
3980
|
-
const ve =
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
3958
|
+
let lt;
|
|
3959
|
+
const ve = Oe({});
|
|
3960
|
+
function yi(e) {
|
|
3961
|
+
return lt[e] || null;
|
|
3983
3962
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return e in
|
|
3963
|
+
function mr(e) {
|
|
3964
|
+
return e in lt;
|
|
3986
3965
|
}
|
|
3987
|
-
function
|
|
3988
|
-
if (!
|
|
3966
|
+
function gi(e, t) {
|
|
3967
|
+
if (!mr(e))
|
|
3989
3968
|
return null;
|
|
3990
|
-
const r =
|
|
3991
|
-
return
|
|
3969
|
+
const r = yi(e);
|
|
3970
|
+
return mi(r, t);
|
|
3992
3971
|
}
|
|
3993
|
-
function
|
|
3972
|
+
function vi(e) {
|
|
3994
3973
|
if (e == null)
|
|
3995
3974
|
return;
|
|
3996
|
-
const t =
|
|
3975
|
+
const t = Me(e);
|
|
3997
3976
|
for (let r = 0; r < t.length; r++) {
|
|
3998
3977
|
const n = t[r];
|
|
3999
|
-
if (
|
|
3978
|
+
if (mr(n))
|
|
4000
3979
|
return n;
|
|
4001
3980
|
}
|
|
4002
3981
|
}
|
|
4003
|
-
function
|
|
3982
|
+
function br(e, ...t) {
|
|
4004
3983
|
delete J[e], ve.update((r) => (r[e] = wn.all([r[e] || {}, ...t]), r));
|
|
4005
3984
|
}
|
|
4006
|
-
|
|
3985
|
+
he(
|
|
4007
3986
|
[ve],
|
|
4008
3987
|
([e]) => Object.keys(e)
|
|
4009
3988
|
);
|
|
4010
|
-
ve.subscribe((e) =>
|
|
3989
|
+
ve.subscribe((e) => lt = e);
|
|
4011
3990
|
const He = {};
|
|
4012
|
-
function
|
|
3991
|
+
function _i(e, t) {
|
|
4013
3992
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4014
3993
|
}
|
|
4015
|
-
function
|
|
3994
|
+
function yr(e) {
|
|
4016
3995
|
return He[e];
|
|
4017
3996
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
4020
|
-
const r =
|
|
3997
|
+
function xi(e) {
|
|
3998
|
+
return Me(e).map((t) => {
|
|
3999
|
+
const r = yr(t);
|
|
4021
4000
|
return [t, r ? [...r] : []];
|
|
4022
4001
|
}).filter(([, t]) => t.length > 0);
|
|
4023
4002
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return e == null ? !1 :
|
|
4003
|
+
function it(e) {
|
|
4004
|
+
return e == null ? !1 : Me(e).some(
|
|
4026
4005
|
(t) => {
|
|
4027
4006
|
var r;
|
|
4028
|
-
return (r =
|
|
4007
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4029
4008
|
}
|
|
4030
4009
|
);
|
|
4031
4010
|
}
|
|
4032
|
-
function
|
|
4011
|
+
function Ei(e, t) {
|
|
4033
4012
|
return Promise.all(
|
|
4034
|
-
t.map((n) => (
|
|
4035
|
-
).then((n) =>
|
|
4036
|
-
}
|
|
4037
|
-
const
|
|
4038
|
-
function
|
|
4039
|
-
if (!
|
|
4040
|
-
return e in
|
|
4041
|
-
const t =
|
|
4042
|
-
return
|
|
4013
|
+
t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
|
|
4014
|
+
).then((n) => br(e, ...n));
|
|
4015
|
+
}
|
|
4016
|
+
const de = {};
|
|
4017
|
+
function gr(e) {
|
|
4018
|
+
if (!it(e))
|
|
4019
|
+
return e in de ? de[e] : Promise.resolve();
|
|
4020
|
+
const t = xi(e);
|
|
4021
|
+
return de[e] = Promise.all(
|
|
4043
4022
|
t.map(
|
|
4044
|
-
([r, n]) =>
|
|
4023
|
+
([r, n]) => Ei(r, n)
|
|
4045
4024
|
)
|
|
4046
4025
|
).then(() => {
|
|
4047
|
-
if (
|
|
4048
|
-
return
|
|
4049
|
-
delete
|
|
4050
|
-
}),
|
|
4026
|
+
if (it(e))
|
|
4027
|
+
return gr(e);
|
|
4028
|
+
delete de[e];
|
|
4029
|
+
}), de[e];
|
|
4051
4030
|
}
|
|
4052
|
-
const
|
|
4031
|
+
const Si = {
|
|
4053
4032
|
number: {
|
|
4054
4033
|
scientific: { notation: "scientific" },
|
|
4055
4034
|
engineering: { notation: "engineering" },
|
|
@@ -4078,135 +4057,135 @@ const Ti = {
|
|
|
4078
4057
|
timeZoneName: "short"
|
|
4079
4058
|
}
|
|
4080
4059
|
}
|
|
4081
|
-
},
|
|
4060
|
+
}, wi = {
|
|
4082
4061
|
fallbackLocale: null,
|
|
4083
4062
|
loadingDelay: 200,
|
|
4084
|
-
formats:
|
|
4063
|
+
formats: Si,
|
|
4085
4064
|
warnOnMissingMessages: !0,
|
|
4086
4065
|
handleMissingMessage: void 0,
|
|
4087
4066
|
ignoreTag: !0
|
|
4088
|
-
},
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4067
|
+
}, Ti = wi;
|
|
4068
|
+
function le() {
|
|
4069
|
+
return Ti;
|
|
4091
4070
|
}
|
|
4092
|
-
const
|
|
4093
|
-
var
|
|
4071
|
+
const Ge = Oe(!1);
|
|
4072
|
+
var Hi = Object.defineProperty, Ci = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oi = (e, t) => {
|
|
4094
4073
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4074
|
+
Ai.call(t, r) && Pt(e, r, t[r]);
|
|
4075
|
+
if (At)
|
|
4076
|
+
for (var r of At(t))
|
|
4077
|
+
Pi.call(t, r) && Pt(e, r, t[r]);
|
|
4099
4078
|
return e;
|
|
4100
|
-
},
|
|
4101
|
-
let
|
|
4102
|
-
const
|
|
4103
|
-
function
|
|
4079
|
+
}, Ri = (e, t) => Ci(e, Bi(t));
|
|
4080
|
+
let ot;
|
|
4081
|
+
const Be = Oe(null);
|
|
4082
|
+
function Ot(e) {
|
|
4104
4083
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4105
4084
|
}
|
|
4106
|
-
function
|
|
4107
|
-
const r =
|
|
4108
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
function Me(e, t = le().fallbackLocale) {
|
|
4086
|
+
const r = Ot(e);
|
|
4087
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ot(t)])] : r;
|
|
4109
4088
|
}
|
|
4110
4089
|
function Y() {
|
|
4111
|
-
return
|
|
4090
|
+
return ot ?? void 0;
|
|
4112
4091
|
}
|
|
4113
|
-
|
|
4114
|
-
|
|
4092
|
+
Be.subscribe((e) => {
|
|
4093
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4115
4094
|
});
|
|
4116
|
-
const
|
|
4117
|
-
if (e &&
|
|
4118
|
-
const { loadingDelay: t } =
|
|
4095
|
+
const Mi = (e) => {
|
|
4096
|
+
if (e && vi(e) && it(e)) {
|
|
4097
|
+
const { loadingDelay: t } = le();
|
|
4119
4098
|
let r;
|
|
4120
4099
|
return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
|
|
4121
|
-
() =>
|
|
4100
|
+
() => Ge.set(!0),
|
|
4122
4101
|
t
|
|
4123
|
-
) :
|
|
4124
|
-
|
|
4102
|
+
) : Ge.set(!0), gr(e).then(() => {
|
|
4103
|
+
Be.set(e);
|
|
4125
4104
|
}).finally(() => {
|
|
4126
|
-
clearTimeout(r),
|
|
4105
|
+
clearTimeout(r), Ge.set(!1);
|
|
4127
4106
|
});
|
|
4128
4107
|
}
|
|
4129
|
-
return
|
|
4130
|
-
},
|
|
4131
|
-
set:
|
|
4132
|
-
}),
|
|
4108
|
+
return Be.set(e);
|
|
4109
|
+
}, fe = Ri(Oi({}, Be), {
|
|
4110
|
+
set: Mi
|
|
4111
|
+
}), Ie = (e) => {
|
|
4133
4112
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4134
4113
|
return (n) => {
|
|
4135
4114
|
const i = JSON.stringify(n);
|
|
4136
4115
|
return i in t ? t[i] : t[i] = e(n);
|
|
4137
4116
|
};
|
|
4138
4117
|
};
|
|
4139
|
-
var
|
|
4118
|
+
var Ii = Object.defineProperty, Ae = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4140
4119
|
for (var r in t || (t = {}))
|
|
4141
|
-
|
|
4142
|
-
if (
|
|
4143
|
-
for (var r of
|
|
4144
|
-
|
|
4120
|
+
vr.call(t, r) && Rt(e, r, t[r]);
|
|
4121
|
+
if (Ae)
|
|
4122
|
+
for (var r of Ae(t))
|
|
4123
|
+
_r.call(t, r) && Rt(e, r, t[r]);
|
|
4145
4124
|
return e;
|
|
4146
|
-
},
|
|
4125
|
+
}, pe = (e, t) => {
|
|
4147
4126
|
var r = {};
|
|
4148
4127
|
for (var n in e)
|
|
4149
|
-
|
|
4150
|
-
if (e != null &&
|
|
4151
|
-
for (var n of
|
|
4152
|
-
t.indexOf(n) < 0 &&
|
|
4128
|
+
vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4129
|
+
if (e != null && Ae)
|
|
4130
|
+
for (var n of Ae(e))
|
|
4131
|
+
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
4153
4132
|
return r;
|
|
4154
4133
|
};
|
|
4155
|
-
const
|
|
4156
|
-
const { formats: r } =
|
|
4134
|
+
const ge = (e, t) => {
|
|
4135
|
+
const { formats: r } = le();
|
|
4157
4136
|
if (e in r && t in r[e])
|
|
4158
4137
|
return r[e][t];
|
|
4159
4138
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4160
|
-
},
|
|
4139
|
+
}, Li = Ie(
|
|
4161
4140
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
4163
4142
|
if (r == null)
|
|
4164
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4165
|
-
return n && (i =
|
|
4144
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
4166
4145
|
}
|
|
4167
|
-
),
|
|
4146
|
+
), ki = Ie(
|
|
4168
4147
|
(e) => {
|
|
4169
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
4170
4149
|
if (r == null)
|
|
4171
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4172
|
-
return n ? i =
|
|
4151
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4152
|
}
|
|
4174
|
-
),
|
|
4153
|
+
), Ni = Ie(
|
|
4175
4154
|
(e) => {
|
|
4176
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
4177
4156
|
if (r == null)
|
|
4178
4157
|
throw new Error(
|
|
4179
4158
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4180
4159
|
);
|
|
4181
|
-
return n ? i =
|
|
4160
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4161
|
}
|
|
4183
|
-
),
|
|
4162
|
+
), $i = (e = {}) => {
|
|
4184
4163
|
var t = e, {
|
|
4185
4164
|
locale: r = Y()
|
|
4186
|
-
} = t, n =
|
|
4165
|
+
} = t, n = pe(t, [
|
|
4187
4166
|
"locale"
|
|
4188
4167
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4168
|
+
return Li(ct({ locale: r }, n));
|
|
4169
|
+
}, Ui = (e = {}) => {
|
|
4191
4170
|
var t = e, {
|
|
4192
4171
|
locale: r = Y()
|
|
4193
|
-
} = t, n =
|
|
4172
|
+
} = t, n = pe(t, [
|
|
4194
4173
|
"locale"
|
|
4195
4174
|
]);
|
|
4196
|
-
return
|
|
4197
|
-
},
|
|
4175
|
+
return ki(ct({ locale: r }, n));
|
|
4176
|
+
}, Fi = (e = {}) => {
|
|
4198
4177
|
var t = e, {
|
|
4199
4178
|
locale: r = Y()
|
|
4200
|
-
} = t, n =
|
|
4179
|
+
} = t, n = pe(t, [
|
|
4201
4180
|
"locale"
|
|
4202
4181
|
]);
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4182
|
+
return Ni(ct({ locale: r }, n));
|
|
4183
|
+
}, Di = Ie(
|
|
4205
4184
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4206
|
-
(e, t = Y()) => new
|
|
4207
|
-
ignoreTag:
|
|
4185
|
+
(e, t = Y()) => new di(e, t, le().formats, {
|
|
4186
|
+
ignoreTag: le().ignoreTag
|
|
4208
4187
|
})
|
|
4209
|
-
),
|
|
4188
|
+
), Gi = (e, t = {}) => {
|
|
4210
4189
|
var r, n, i, o;
|
|
4211
4190
|
let s = t;
|
|
4212
4191
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4219,9 +4198,9 @@ const ye = (e, t) => {
|
|
|
4219
4198
|
throw new Error(
|
|
4220
4199
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4221
4200
|
);
|
|
4222
|
-
let c =
|
|
4201
|
+
let c = dr(e, l);
|
|
4223
4202
|
if (!c)
|
|
4224
|
-
c = (o = (i = (n = (r =
|
|
4203
|
+
c = (o = (i = (n = (r = le()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4225
4204
|
else if (typeof c != "string")
|
|
4226
4205
|
return console.warn(
|
|
4227
4206
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4230,7 +4209,7 @@ const ye = (e, t) => {
|
|
|
4230
4209
|
return c;
|
|
4231
4210
|
let f = c;
|
|
4232
4211
|
try {
|
|
4233
|
-
f =
|
|
4212
|
+
f = Di(c, l).format(a);
|
|
4234
4213
|
} catch (h) {
|
|
4235
4214
|
h instanceof Error && console.warn(
|
|
4236
4215
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4238,20 +4217,20 @@ const ye = (e, t) => {
|
|
|
4238
4217
|
);
|
|
4239
4218
|
}
|
|
4240
4219
|
return f;
|
|
4241
|
-
},
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4220
|
+
}, ji = (e, t) => Fi(t).format(e), Vi = (e, t) => Ui(t).format(e), Xi = (e, t) => $i(t).format(e), zi = (e, t = Y()) => dr(e, t), qi = he([fe, ve], () => Gi);
|
|
4221
|
+
he([fe], () => ji);
|
|
4222
|
+
he([fe], () => Vi);
|
|
4223
|
+
he([fe], () => Xi);
|
|
4224
|
+
he([fe, ve], () => zi);
|
|
4246
4225
|
window.emWidgets = { topic: an };
|
|
4247
|
-
const
|
|
4248
|
-
function
|
|
4249
|
-
|
|
4226
|
+
const Wi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4227
|
+
function Mt(e, t) {
|
|
4228
|
+
br(e, t);
|
|
4250
4229
|
}
|
|
4251
|
-
function
|
|
4252
|
-
|
|
4230
|
+
function Zi(e) {
|
|
4231
|
+
fe.set(e);
|
|
4253
4232
|
}
|
|
4254
|
-
const
|
|
4233
|
+
const It = {
|
|
4255
4234
|
en: {
|
|
4256
4235
|
titleRealityCheck: "Reality Check",
|
|
4257
4236
|
never: "Never",
|
|
@@ -4363,13 +4342,13 @@ const Nt = {
|
|
|
4363
4342
|
setFrequency: "Set frequency"
|
|
4364
4343
|
}
|
|
4365
4344
|
};
|
|
4366
|
-
function
|
|
4345
|
+
function Qi(e, t) {
|
|
4367
4346
|
if (e) {
|
|
4368
4347
|
const r = document.createElement("style");
|
|
4369
4348
|
r.innerHTML = t, e.appendChild(r);
|
|
4370
4349
|
}
|
|
4371
4350
|
}
|
|
4372
|
-
function
|
|
4351
|
+
function Ji(e, t) {
|
|
4373
4352
|
const r = new URL(t);
|
|
4374
4353
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4375
4354
|
const i = document.createElement("style");
|
|
@@ -4378,7 +4357,7 @@ function Ki(e, t) {
|
|
|
4378
4357
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4379
4358
|
});
|
|
4380
4359
|
}
|
|
4381
|
-
function
|
|
4360
|
+
function Yi(e, t, r) {
|
|
4382
4361
|
if (window.emMessageBus) {
|
|
4383
4362
|
const n = document.createElement("style");
|
|
4384
4363
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4386,45 +4365,45 @@ function eo(e, t, r) {
|
|
|
4386
4365
|
});
|
|
4387
4366
|
}
|
|
4388
4367
|
}
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4368
|
+
function Ki(e) {
|
|
4369
|
+
wr(e, "svelte-17lev58", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription p{min-height:140px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsContent{grid-template-columns:1fr}.containerTimeout{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4391
4370
|
}
|
|
4392
|
-
function
|
|
4371
|
+
function Lt(e, t, r) {
|
|
4393
4372
|
const n = e.slice();
|
|
4394
4373
|
return n[33] = t[r].value, n[34] = t[r].text, n[36] = r, n;
|
|
4395
4374
|
}
|
|
4396
|
-
function
|
|
4375
|
+
function eo(e, t, r) {
|
|
4397
4376
|
const n = e.slice();
|
|
4398
4377
|
return n[30] = t[r], n;
|
|
4399
4378
|
}
|
|
4400
|
-
function
|
|
4379
|
+
function to(e) {
|
|
4401
4380
|
let t, r, n, i, o = (
|
|
4402
4381
|
/*$_*/
|
|
4403
4382
|
e[5]("titleRealityCheck") + ""
|
|
4404
4383
|
), s, a, l, u, c = (
|
|
4405
4384
|
/*$_*/
|
|
4406
4385
|
e[5]("realityCheckText") + ""
|
|
4407
|
-
), f, h, d, m, p, y,
|
|
4386
|
+
), f, h, d, m, p, y, w = (
|
|
4408
4387
|
/*$_*/
|
|
4409
4388
|
e[5]("setFrequency") + ""
|
|
4410
|
-
),
|
|
4389
|
+
), B, O, F, N, X, D = (
|
|
4411
4390
|
/*isMobile*/
|
|
4412
|
-
e[6] &&
|
|
4391
|
+
e[6] && no(e)
|
|
4413
4392
|
), M = (
|
|
4414
4393
|
/*realityCheckSuccess*/
|
|
4415
|
-
e[4] &&
|
|
4416
|
-
),
|
|
4394
|
+
e[4] && Nt(e)
|
|
4395
|
+
), z = ze(
|
|
4417
4396
|
/*realityCheckOptions*/
|
|
4418
4397
|
e[7]
|
|
4419
4398
|
), R = [];
|
|
4420
|
-
for (let
|
|
4421
|
-
R[
|
|
4399
|
+
for (let T = 0; T < z.length; T += 1)
|
|
4400
|
+
R[T] = $t(Lt(e, z, T));
|
|
4422
4401
|
return {
|
|
4423
4402
|
c() {
|
|
4424
|
-
t =
|
|
4425
|
-
for (let
|
|
4426
|
-
R[
|
|
4427
|
-
m =
|
|
4403
|
+
t = H("div"), D && D.c(), r = G(), M && M.c(), n = G(), i = H("h2"), s = q(o), a = G(), l = H("div"), u = H("p"), f = q(c), h = G(), d = H("form");
|
|
4404
|
+
for (let T = 0; T < R.length; T += 1)
|
|
4405
|
+
R[T].c();
|
|
4406
|
+
m = G(), p = H("div"), y = H("button"), B = q(w), x(i, "class", "RealityCheckTitle " + /*isMobile*/
|
|
4428
4407
|
(e[6] ? "RealityCheckTitleNone" : "")), x(l, "class", "RealityCheckDescription " + /*isMobile*/
|
|
4429
4408
|
(e[6] ? "RealityCheckDescriptionMobile" : "")), x(y, "class", O = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
|
|
4430
4409
|
(e[3] === /*realityCheckValue*/
|
|
@@ -4433,73 +4412,73 @@ function no(e) {
|
|
|
4433
4412
|
e[2], x(p, "class", "BottomButtonsArea " + /*isMobile*/
|
|
4434
4413
|
(e[6] ? "BottomButtonsAreaMobile" : "")), x(d, "class", "customRadio"), x(t, "class", "containerTimeout");
|
|
4435
4414
|
},
|
|
4436
|
-
m(
|
|
4437
|
-
|
|
4415
|
+
m(T, $) {
|
|
4416
|
+
j(T, t, $), D && D.m(t, null), b(t, r), M && M.m(t, null), b(t, n), b(t, i), b(i, s), b(t, a), b(t, l), b(l, u), b(u, f), b(t, h), b(t, d);
|
|
4438
4417
|
for (let P = 0; P < R.length; P += 1)
|
|
4439
4418
|
R[P] && R[P].m(d, null);
|
|
4440
|
-
b(d, m), b(d, p), b(p, y), b(y,
|
|
4419
|
+
b(d, m), b(d, p), b(p, y), b(y, B), N || (X = Ce(
|
|
4441
4420
|
y,
|
|
4442
4421
|
"click",
|
|
4443
4422
|
/*submitRealityCheckValue*/
|
|
4444
4423
|
e[8]
|
|
4445
|
-
),
|
|
4424
|
+
), N = !0);
|
|
4446
4425
|
},
|
|
4447
|
-
p(
|
|
4426
|
+
p(T, $) {
|
|
4448
4427
|
if (
|
|
4449
4428
|
/*isMobile*/
|
|
4450
|
-
|
|
4451
|
-
|
|
4429
|
+
T[6] && D.p(T, $), /*realityCheckSuccess*/
|
|
4430
|
+
T[4] ? M ? M.p(T, $) : (M = Nt(T), M.c(), M.m(t, n)) : M && (M.d(1), M = null), $[0] & /*$_*/
|
|
4452
4431
|
32 && o !== (o = /*$_*/
|
|
4453
|
-
|
|
4432
|
+
T[5]("titleRealityCheck") + "") && ne(s, o), $[0] & /*$_*/
|
|
4454
4433
|
32 && c !== (c = /*$_*/
|
|
4455
|
-
|
|
4434
|
+
T[5]("realityCheckText") + "") && ne(f, c), $[0] & /*realityCheckOptions, realityCheckValue*/
|
|
4456
4435
|
132
|
|
4457
4436
|
) {
|
|
4458
|
-
|
|
4437
|
+
z = ze(
|
|
4459
4438
|
/*realityCheckOptions*/
|
|
4460
|
-
|
|
4439
|
+
T[7]
|
|
4461
4440
|
);
|
|
4462
4441
|
let P;
|
|
4463
|
-
for (P = 0; P <
|
|
4464
|
-
const _e =
|
|
4465
|
-
R[P] ? R[P].p(_e, $) : (R[P] =
|
|
4442
|
+
for (P = 0; P < z.length; P += 1) {
|
|
4443
|
+
const _e = Lt(T, z, P);
|
|
4444
|
+
R[P] ? R[P].p(_e, $) : (R[P] = $t(_e), R[P].c(), R[P].m(d, m));
|
|
4466
4445
|
}
|
|
4467
4446
|
for (; P < R.length; P += 1)
|
|
4468
4447
|
R[P].d(1);
|
|
4469
|
-
R.length =
|
|
4448
|
+
R.length = z.length;
|
|
4470
4449
|
}
|
|
4471
4450
|
$[0] & /*$_*/
|
|
4472
|
-
32 &&
|
|
4473
|
-
|
|
4451
|
+
32 && w !== (w = /*$_*/
|
|
4452
|
+
T[5]("setFrequency") + "") && ne(B, w), $[0] & /*currentRealityCheckValue, realityCheckValue*/
|
|
4474
4453
|
12 && O !== (O = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
|
|
4475
|
-
(
|
|
4476
|
-
|
|
4454
|
+
(T[3] === /*realityCheckValue*/
|
|
4455
|
+
T[2] ? "ButtonInactive" : "")) && x(y, "class", O), $[0] & /*currentRealityCheckValue, realityCheckValue*/
|
|
4477
4456
|
12 && F !== (F = /*currentRealityCheckValue*/
|
|
4478
|
-
|
|
4479
|
-
|
|
4457
|
+
T[3] === /*realityCheckValue*/
|
|
4458
|
+
T[2]) && (y.disabled = F);
|
|
4480
4459
|
},
|
|
4481
|
-
d(
|
|
4482
|
-
|
|
4460
|
+
d(T) {
|
|
4461
|
+
T && U(t), D && D.d(), M && M.d(), Gt(R, T), N = !1, X();
|
|
4483
4462
|
}
|
|
4484
4463
|
};
|
|
4485
4464
|
}
|
|
4486
|
-
function
|
|
4465
|
+
function ro(e) {
|
|
4487
4466
|
let t, r, n, i, o, s, a, l, u;
|
|
4488
4467
|
function c(p, y) {
|
|
4489
4468
|
return (
|
|
4490
4469
|
/*isMobile*/
|
|
4491
|
-
p[6] ?
|
|
4470
|
+
p[6] ? oo : io
|
|
4492
4471
|
);
|
|
4493
4472
|
}
|
|
4494
|
-
let h = c(e)(e), d =
|
|
4473
|
+
let h = c(e)(e), d = ze({ length: 6 }), m = [];
|
|
4495
4474
|
for (let p = 0; p < d.length; p += 1)
|
|
4496
|
-
m[p] =
|
|
4475
|
+
m[p] = so(eo(e, d, p));
|
|
4497
4476
|
return {
|
|
4498
4477
|
c() {
|
|
4499
|
-
t =
|
|
4478
|
+
t = H("div"), h.c(), r = G(), n = H("div"), i = H("ui-skeleton"), o = G(), s = H("div");
|
|
4500
4479
|
for (let p = 0; p < m.length; p += 1)
|
|
4501
4480
|
m[p].c();
|
|
4502
|
-
a =
|
|
4481
|
+
a = G(), l = H("div"), u = H("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
|
|
4503
4482
|
i,
|
|
4504
4483
|
"rows",
|
|
4505
4484
|
/*isMobile*/
|
|
@@ -4512,33 +4491,33 @@ function io(e) {
|
|
|
4512
4491
|
), x(l, "class", "Button"), x(s, "class", "SkeletonOptionContainer"), x(t, "class", "SkeletonContainer");
|
|
4513
4492
|
},
|
|
4514
4493
|
m(p, y) {
|
|
4515
|
-
|
|
4516
|
-
for (let
|
|
4517
|
-
m[
|
|
4494
|
+
j(p, t, y), h.m(t, null), b(t, r), b(t, n), b(n, i), b(t, o), b(t, s);
|
|
4495
|
+
for (let w = 0; w < m.length; w += 1)
|
|
4496
|
+
m[w] && m[w].m(s, null);
|
|
4518
4497
|
b(s, a), b(s, l), b(l, u);
|
|
4519
4498
|
},
|
|
4520
4499
|
p(p, y) {
|
|
4521
4500
|
h.p(p, y);
|
|
4522
4501
|
},
|
|
4523
4502
|
d(p) {
|
|
4524
|
-
p && U(t), h.d(),
|
|
4503
|
+
p && U(t), h.d(), Gt(m, p);
|
|
4525
4504
|
}
|
|
4526
4505
|
};
|
|
4527
4506
|
}
|
|
4528
|
-
function
|
|
4507
|
+
function no(e) {
|
|
4529
4508
|
let t, r, n, i, o, s, a, l, u, c, f, h = (
|
|
4530
4509
|
/*$_*/
|
|
4531
4510
|
e[5]("titleRealityCheck") + ""
|
|
4532
4511
|
), d, m, p, y = (
|
|
4533
4512
|
/*realityCheckSuccess*/
|
|
4534
|
-
e[4] &&
|
|
4513
|
+
e[4] && kt(e)
|
|
4535
4514
|
);
|
|
4536
4515
|
return {
|
|
4537
4516
|
c() {
|
|
4538
|
-
y && y.c(), t =
|
|
4517
|
+
y && y.c(), t = G(), r = H("div"), n = K("svg"), i = K("defs"), o = K("style"), s = q(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = K("g"), l = K("g"), u = K("path"), c = G(), f = H("h2"), d = q(h), x(u, "class", "aaa"), x(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(u, "transform", "translate(15 15) rotate(180)"), x(l, "transform", "translate(20 158)"), x(a, "transform", "translate(-20 -158)"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "15"), x(n, "height", "15"), x(n, "viewBox", "0 0 15 15"), x(f, "class", "RealityCheckTitleMobile"), x(r, "class", "MenuReturnButton");
|
|
4539
4518
|
},
|
|
4540
|
-
m(
|
|
4541
|
-
y && y.m(
|
|
4519
|
+
m(w, B) {
|
|
4520
|
+
y && y.m(w, B), j(w, t, B), j(w, r, B), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r, c), b(r, f), b(f, d), m || (p = [
|
|
4542
4521
|
Ce(
|
|
4543
4522
|
r,
|
|
4544
4523
|
"click",
|
|
@@ -4548,28 +4527,28 @@ function oo(e) {
|
|
|
4548
4527
|
Ce(r, "keydown", null)
|
|
4549
4528
|
], m = !0);
|
|
4550
4529
|
},
|
|
4551
|
-
p(
|
|
4530
|
+
p(w, B) {
|
|
4552
4531
|
/*realityCheckSuccess*/
|
|
4553
|
-
|
|
4532
|
+
w[4] ? y ? y.p(w, B) : (y = kt(w), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), B[0] & /*$_*/
|
|
4554
4533
|
32 && h !== (h = /*$_*/
|
|
4555
|
-
|
|
4534
|
+
w[5]("titleRealityCheck") + "") && ne(d, h);
|
|
4556
4535
|
},
|
|
4557
|
-
d(
|
|
4558
|
-
|
|
4536
|
+
d(w) {
|
|
4537
|
+
w && (U(t), U(r)), y && y.d(w), m = !1, ce(p);
|
|
4559
4538
|
}
|
|
4560
4539
|
};
|
|
4561
4540
|
}
|
|
4562
|
-
function
|
|
4541
|
+
function kt(e) {
|
|
4563
4542
|
let t, r = (
|
|
4564
4543
|
/*$_*/
|
|
4565
4544
|
e[5]("successMessage") + ""
|
|
4566
4545
|
), n;
|
|
4567
4546
|
return {
|
|
4568
4547
|
c() {
|
|
4569
|
-
t =
|
|
4548
|
+
t = H("div"), n = q(r), x(t, "class", "successMessageMobile");
|
|
4570
4549
|
},
|
|
4571
4550
|
m(i, o) {
|
|
4572
|
-
|
|
4551
|
+
j(i, t, o), b(t, n);
|
|
4573
4552
|
},
|
|
4574
4553
|
p(i, o) {
|
|
4575
4554
|
o[0] & /*$_*/
|
|
@@ -4581,18 +4560,18 @@ function $t(e) {
|
|
|
4581
4560
|
}
|
|
4582
4561
|
};
|
|
4583
4562
|
}
|
|
4584
|
-
function
|
|
4563
|
+
function Nt(e) {
|
|
4585
4564
|
let t, r = (
|
|
4586
4565
|
/*$_*/
|
|
4587
4566
|
e[5]("successMessage") + ""
|
|
4588
4567
|
), n;
|
|
4589
4568
|
return {
|
|
4590
4569
|
c() {
|
|
4591
|
-
t =
|
|
4570
|
+
t = H("div"), n = q(r), x(t, "class", "successMessage " + /*isMobile*/
|
|
4592
4571
|
(e[6] ? "successMessageMobile" : ""));
|
|
4593
4572
|
},
|
|
4594
4573
|
m(i, o) {
|
|
4595
|
-
|
|
4574
|
+
j(i, t, o), b(t, n);
|
|
4596
4575
|
},
|
|
4597
4576
|
p(i, o) {
|
|
4598
4577
|
o[0] & /*$_*/
|
|
@@ -4604,23 +4583,23 @@ function Ut(e) {
|
|
|
4604
4583
|
}
|
|
4605
4584
|
};
|
|
4606
4585
|
}
|
|
4607
|
-
function
|
|
4586
|
+
function $t(e) {
|
|
4608
4587
|
let t, r, n, i, o = (
|
|
4609
4588
|
/*text*/
|
|
4610
4589
|
e[34] + ""
|
|
4611
4590
|
), s, a, l, u;
|
|
4612
|
-
return a =
|
|
4591
|
+
return a = Cr(
|
|
4613
4592
|
/*$$binding_groups*/
|
|
4614
4593
|
e[20][0]
|
|
4615
4594
|
), {
|
|
4616
4595
|
c() {
|
|
4617
|
-
t =
|
|
4596
|
+
t = H("div"), r = H("input"), n = G(), i = H("label"), s = q(o), x(r, "type", "radio"), x(
|
|
4618
4597
|
r,
|
|
4619
4598
|
"id",
|
|
4620
4599
|
/*value*/
|
|
4621
4600
|
e[33]
|
|
4622
4601
|
), r.__value = /*value*/
|
|
4623
|
-
e[33],
|
|
4602
|
+
e[33], Ar(r, r.__value), x(
|
|
4624
4603
|
i,
|
|
4625
4604
|
"for",
|
|
4626
4605
|
/*value*/
|
|
@@ -4628,7 +4607,7 @@ function Ft(e) {
|
|
|
4628
4607
|
), a.p(r);
|
|
4629
4608
|
},
|
|
4630
4609
|
m(c, f) {
|
|
4631
|
-
|
|
4610
|
+
j(c, t, f), b(t, r), r.checked = r.__value === /*realityCheckValue*/
|
|
4632
4611
|
e[2], b(t, n), b(t, i), b(i, s), l || (u = Ce(
|
|
4633
4612
|
r,
|
|
4634
4613
|
"change",
|
|
@@ -4646,83 +4625,83 @@ function Ft(e) {
|
|
|
4646
4625
|
}
|
|
4647
4626
|
};
|
|
4648
4627
|
}
|
|
4649
|
-
function
|
|
4628
|
+
function io(e) {
|
|
4650
4629
|
let t;
|
|
4651
4630
|
return {
|
|
4652
4631
|
c() {
|
|
4653
|
-
t =
|
|
4632
|
+
t = H("div"), t.innerHTML = '<ui-skeleton structure="title" width="200px" margin-top="20px"></ui-skeleton>', x(t, "class", "SkeletonHeaderText");
|
|
4654
4633
|
},
|
|
4655
4634
|
m(r, n) {
|
|
4656
|
-
|
|
4635
|
+
j(r, t, n);
|
|
4657
4636
|
},
|
|
4658
|
-
p:
|
|
4637
|
+
p: k,
|
|
4659
4638
|
d(r) {
|
|
4660
4639
|
r && U(t);
|
|
4661
4640
|
}
|
|
4662
4641
|
};
|
|
4663
4642
|
}
|
|
4664
|
-
function
|
|
4643
|
+
function oo(e) {
|
|
4665
4644
|
let t, r, n, i;
|
|
4666
4645
|
return {
|
|
4667
4646
|
c() {
|
|
4668
|
-
t =
|
|
4647
|
+
t = H("div"), r = H("ui-skeleton"), n = G(), i = H("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "100px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), x(t, "class", "SkeletonMenuButton " + /*isMobile*/
|
|
4669
4648
|
(e[6] ? "Mobile" : ""));
|
|
4670
4649
|
},
|
|
4671
4650
|
m(o, s) {
|
|
4672
|
-
|
|
4651
|
+
j(o, t, s), b(t, r), b(t, n), b(t, i);
|
|
4673
4652
|
},
|
|
4674
|
-
p:
|
|
4653
|
+
p: k,
|
|
4675
4654
|
d(o) {
|
|
4676
4655
|
o && U(t);
|
|
4677
4656
|
}
|
|
4678
4657
|
};
|
|
4679
4658
|
}
|
|
4680
|
-
function
|
|
4659
|
+
function so(e) {
|
|
4681
4660
|
let t;
|
|
4682
4661
|
return {
|
|
4683
4662
|
c() {
|
|
4684
|
-
t =
|
|
4663
|
+
t = H("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', x(t, "class", "SkeletonOption");
|
|
4685
4664
|
},
|
|
4686
4665
|
m(r, n) {
|
|
4687
|
-
|
|
4666
|
+
j(r, t, n);
|
|
4688
4667
|
},
|
|
4689
|
-
p:
|
|
4668
|
+
p: k,
|
|
4690
4669
|
d(r) {
|
|
4691
4670
|
r && U(t);
|
|
4692
4671
|
}
|
|
4693
4672
|
};
|
|
4694
4673
|
}
|
|
4695
|
-
function
|
|
4674
|
+
function ao(e) {
|
|
4696
4675
|
let t;
|
|
4697
4676
|
function r(o, s) {
|
|
4698
4677
|
return (
|
|
4699
4678
|
/*skeletonLoading*/
|
|
4700
|
-
o[1] ?
|
|
4679
|
+
o[1] ? ro : to
|
|
4701
4680
|
);
|
|
4702
4681
|
}
|
|
4703
4682
|
let n = r(e), i = n(e);
|
|
4704
4683
|
return {
|
|
4705
4684
|
c() {
|
|
4706
|
-
t =
|
|
4685
|
+
t = H("div"), i.c(), x(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
|
|
4707
4686
|
(e[6] ? "PlayerRealityCheckWrapperMobile" : ""));
|
|
4708
4687
|
},
|
|
4709
4688
|
m(o, s) {
|
|
4710
|
-
|
|
4689
|
+
j(o, t, s), i.m(t, null), e[21](t);
|
|
4711
4690
|
},
|
|
4712
4691
|
p(o, s) {
|
|
4713
4692
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4714
4693
|
},
|
|
4715
|
-
i:
|
|
4716
|
-
o:
|
|
4694
|
+
i: k,
|
|
4695
|
+
o: k,
|
|
4717
4696
|
d(o) {
|
|
4718
4697
|
o && U(t), i.d(), e[21](null);
|
|
4719
4698
|
}
|
|
4720
4699
|
};
|
|
4721
4700
|
}
|
|
4722
|
-
function
|
|
4701
|
+
function uo(e, t, r) {
|
|
4723
4702
|
let n;
|
|
4724
|
-
|
|
4725
|
-
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, h, d =
|
|
4703
|
+
Sr(e, qi, (g) => r(5, n = g));
|
|
4704
|
+
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, h, d = Wi(window.navigator.userAgent) !== "PC", m = !0, p, y, w = !1, B = [];
|
|
4726
4705
|
const O = () => {
|
|
4727
4706
|
const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
|
|
4728
4707
|
E.append("X-SessionID", s);
|
|
@@ -4741,29 +4720,29 @@ function co(e, t, r) {
|
|
|
4741
4720
|
const Q = { method: "GET", headers: E };
|
|
4742
4721
|
fetch(g.href, Q).then((I) => I.json()).then(
|
|
4743
4722
|
(I) => {
|
|
4744
|
-
|
|
4723
|
+
N(I.AvailableRealityCheckValues), r(1, m = !1);
|
|
4745
4724
|
},
|
|
4746
4725
|
(I) => {
|
|
4747
4726
|
console.error(I);
|
|
4748
4727
|
}
|
|
4749
4728
|
);
|
|
4750
|
-
},
|
|
4729
|
+
}, N = (g) => {
|
|
4751
4730
|
g.forEach((E) => {
|
|
4752
|
-
E == 0 ?
|
|
4731
|
+
E == 0 ? B.push({
|
|
4753
4732
|
value: E.toString(),
|
|
4754
4733
|
text: n("never")
|
|
4755
|
-
}) : E < 60 ?
|
|
4734
|
+
}) : E < 60 ? B.push({
|
|
4756
4735
|
value: E.toString(),
|
|
4757
4736
|
text: E + " " + n("minutes")
|
|
4758
|
-
}) : E == 60 ?
|
|
4737
|
+
}) : E == 60 ? B.push({
|
|
4759
4738
|
value: E.toString(),
|
|
4760
4739
|
text: n("oneHour")
|
|
4761
|
-
}) : E > 60 &&
|
|
4740
|
+
}) : E > 60 && B.push({
|
|
4762
4741
|
value: E.toString(),
|
|
4763
4742
|
text: E / 60 + " " + n("hours")
|
|
4764
4743
|
});
|
|
4765
4744
|
});
|
|
4766
|
-
},
|
|
4745
|
+
}, X = async () => {
|
|
4767
4746
|
const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
|
|
4768
4747
|
E.append("X-SessionID", s), E.append("Content-Type", "application/json"), E.append("Accept", "application/json"), E.append("realityCheckValue", `${parseInt(p, 10)}`);
|
|
4769
4748
|
const Q = { method: "POST", headers: E };
|
|
@@ -4772,7 +4751,7 @@ function co(e, t, r) {
|
|
|
4772
4751
|
(I) => (console.error(I), !1)
|
|
4773
4752
|
);
|
|
4774
4753
|
}, D = (g) => {
|
|
4775
|
-
g.preventDefault(),
|
|
4754
|
+
g.preventDefault(), X().then((E) => {
|
|
4776
4755
|
E && (M(), O());
|
|
4777
4756
|
});
|
|
4778
4757
|
}, M = () => {
|
|
@@ -4785,8 +4764,8 @@ function co(e, t, r) {
|
|
|
4785
4764
|
}
|
|
4786
4765
|
},
|
|
4787
4766
|
window.location.href
|
|
4788
|
-
), r(4,
|
|
4789
|
-
},
|
|
4767
|
+
), r(4, w = !0), setTimeout(() => r(4, w = !1), 2e3);
|
|
4768
|
+
}, z = () => {
|
|
4790
4769
|
window.postMessage(
|
|
4791
4770
|
{
|
|
4792
4771
|
type: "PlayerAccountMenuActive",
|
|
@@ -4795,26 +4774,26 @@ function co(e, t, r) {
|
|
|
4795
4774
|
window.location.href
|
|
4796
4775
|
);
|
|
4797
4776
|
}, R = () => {
|
|
4798
|
-
|
|
4799
|
-
},
|
|
4777
|
+
Zi(a);
|
|
4778
|
+
}, T = () => {
|
|
4800
4779
|
fetch(f).then((E) => E.json()).then((E) => {
|
|
4801
4780
|
Object.keys(E).forEach((Q) => {
|
|
4802
|
-
|
|
4781
|
+
Mt(Q, E[Q]);
|
|
4803
4782
|
});
|
|
4804
4783
|
}).catch((E) => {
|
|
4805
4784
|
console.log(E);
|
|
4806
4785
|
});
|
|
4807
4786
|
};
|
|
4808
|
-
Object.keys(
|
|
4809
|
-
|
|
4810
|
-
}),
|
|
4787
|
+
Object.keys(It).forEach((g) => {
|
|
4788
|
+
Mt(g, It[g]);
|
|
4789
|
+
}), Rr(() => () => {
|
|
4811
4790
|
});
|
|
4812
|
-
const $ = [[]], P = () =>
|
|
4791
|
+
const $ = [[]], P = () => z();
|
|
4813
4792
|
function _e() {
|
|
4814
4793
|
p = this.__value, r(2, p);
|
|
4815
4794
|
}
|
|
4816
|
-
function
|
|
4817
|
-
|
|
4795
|
+
function xr(g) {
|
|
4796
|
+
je[g ? "unshift" : "push"](() => {
|
|
4818
4797
|
h = g, r(0, h);
|
|
4819
4798
|
});
|
|
4820
4799
|
}
|
|
@@ -4825,21 +4804,21 @@ function co(e, t, r) {
|
|
|
4825
4804
|
8192 && a && R(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4826
4805
|
7168 && i && o && s && O(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4827
4806
|
7168 && i && o && s && F(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4828
|
-
16385 && l && h &&
|
|
4829
|
-
32769 && u && h &&
|
|
4830
|
-
65537 && c && h &&
|
|
4831
|
-
131072 && f &&
|
|
4807
|
+
16385 && l && h && Qi(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4808
|
+
32769 && u && h && Ji(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4809
|
+
65537 && c && h && Yi(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4810
|
+
131072 && f && T();
|
|
4832
4811
|
}, [
|
|
4833
4812
|
h,
|
|
4834
4813
|
m,
|
|
4835
4814
|
p,
|
|
4836
4815
|
y,
|
|
4837
|
-
|
|
4816
|
+
w,
|
|
4838
4817
|
n,
|
|
4839
4818
|
d,
|
|
4840
|
-
|
|
4819
|
+
B,
|
|
4841
4820
|
D,
|
|
4842
|
-
|
|
4821
|
+
z,
|
|
4843
4822
|
i,
|
|
4844
4823
|
o,
|
|
4845
4824
|
s,
|
|
@@ -4851,17 +4830,17 @@ function co(e, t, r) {
|
|
|
4851
4830
|
P,
|
|
4852
4831
|
_e,
|
|
4853
4832
|
$,
|
|
4854
|
-
|
|
4833
|
+
xr
|
|
4855
4834
|
];
|
|
4856
4835
|
}
|
|
4857
|
-
class
|
|
4836
|
+
class lo extends Vr {
|
|
4858
4837
|
constructor(t) {
|
|
4859
4838
|
super(), Gr(
|
|
4860
4839
|
this,
|
|
4861
4840
|
t,
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4841
|
+
uo,
|
|
4842
|
+
ao,
|
|
4843
|
+
Ft,
|
|
4865
4844
|
{
|
|
4866
4845
|
endpoint: 10,
|
|
4867
4846
|
playerid: 11,
|
|
@@ -4872,7 +4851,7 @@ class ho extends Xr {
|
|
|
4872
4851
|
mbsource: 16,
|
|
4873
4852
|
translationurl: 17
|
|
4874
4853
|
},
|
|
4875
|
-
|
|
4854
|
+
Ki,
|
|
4876
4855
|
[-1, -1]
|
|
4877
4856
|
);
|
|
4878
4857
|
}
|
|
@@ -4925,7 +4904,7 @@ class ho extends Xr {
|
|
|
4925
4904
|
this.$$set({ translationurl: t }), V();
|
|
4926
4905
|
}
|
|
4927
4906
|
}
|
|
4928
|
-
|
|
4907
|
+
jr(lo, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4929
4908
|
export {
|
|
4930
|
-
|
|
4909
|
+
lo as P
|
|
4931
4910
|
};
|