@everymatrix/player-reality-check 1.59.2 → 1.59.3
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-D2vxT1p-.js → PlayerRealityCheck-BQeaynG_.js} +681 -703
- package/components/{PlayerRealityCheck-2NLTCkve.js → PlayerRealityCheck-C27Oh3Hv.js} +643 -665
- package/components/PlayerRealityCheck-C6axz4PP.cjs +18 -0
- 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 +2 -2
- package/stencil/index-ae04a8b1-BxaX26xW.js +516 -0
- package/stencil/index-ae04a8b1-D7qYBP-T.js +532 -0
- package/stencil/index-ae04a8b1-Dk7mk6oB.cjs +1 -0
- package/stencil/{ui-skeleton-C5gPr5Xv.js → ui-skeleton-DFpfaKvi.js} +2 -2
- package/stencil/{ui-skeleton-C1buDKbo.cjs → ui-skeleton-IHMCRYEX.cjs} +1 -1
- package/stencil/{ui-skeleton-M7HNQCk1.js → ui-skeleton-UUT_AJxa.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-DO34s50a.cjs → ui-skeleton-a642cced-5nW6b8_l.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-BFJMszWG.js → ui-skeleton-a642cced-BNXFvvk_.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-p8tGooXk.js → ui-skeleton-a642cced-DdY2eEM0.js} +1 -1
- package/components/PlayerRealityCheck-CUNn_TZx.cjs +0 -18
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +0 -1
- package/stencil/index-ae04a8b1-DRAR7dln.js +0 -532
- package/stencil/index-ae04a8b1-eSktas_K.js +0 -516
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ie = (e, t, r) => t in e ?
|
|
1
|
+
var Sr = Object.defineProperty, wr = Object.defineProperties;
|
|
2
|
+
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var lt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Hr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ie = (e, t, r) => t in e ? Sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Hr.call(t, r) && Ie(e, r, t[r]);
|
|
8
|
+
if (lt)
|
|
9
|
+
for (var r of lt(t))
|
|
10
|
+
Cr.call(t, r) && Ie(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, ct = (e, t) => wr(e, Tr(t));
|
|
13
13
|
var U = (e, t, r) => (Ie(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Le = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
@@ -27,50 +27,50 @@ var Le = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-skeleton-UUT_AJxa.js";
|
|
31
|
+
function k() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Dt(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ft() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
39
|
function le(e) {
|
|
40
|
-
e.forEach(
|
|
40
|
+
e.forEach(Dt);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function st(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ft(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Br(e) {
|
|
49
49
|
return Object.keys(e).length === 0;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Gt(e, ...t) {
|
|
52
52
|
if (e == null) {
|
|
53
53
|
for (const n of t)
|
|
54
54
|
n(void 0);
|
|
55
|
-
return
|
|
55
|
+
return k;
|
|
56
56
|
}
|
|
57
57
|
const r = e.subscribe(...t);
|
|
58
58
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
e.$$.on_destroy.push(
|
|
60
|
+
function Pr(e, t, r) {
|
|
61
|
+
e.$$.on_destroy.push(Gt(t, r));
|
|
62
62
|
}
|
|
63
63
|
function b(e, t) {
|
|
64
64
|
e.appendChild(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
66
|
+
function Ar(e, t, r) {
|
|
67
|
+
const n = Or(e);
|
|
68
68
|
if (!n.getElementById(t)) {
|
|
69
69
|
const i = T("style");
|
|
70
|
-
i.id = t, i.textContent = r,
|
|
70
|
+
i.id = t, i.textContent = r, Rr(n, i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Or(e) {
|
|
74
74
|
if (!e)
|
|
75
75
|
return document;
|
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,7 +80,7 @@ function Lr(e) {
|
|
|
80
80
|
t
|
|
81
81
|
) : e.ownerDocument;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Rr(e, t) {
|
|
84
84
|
return b(
|
|
85
85
|
/** @type {Document} */
|
|
86
86
|
e.head || e,
|
|
@@ -93,7 +93,7 @@ function F(e, t, r) {
|
|
|
93
93
|
function $(e) {
|
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function jt(e, t) {
|
|
97
97
|
for (let r = 0; r < e.length; r += 1)
|
|
98
98
|
e[r] && e[r].d(t);
|
|
99
99
|
}
|
|
@@ -103,11 +103,11 @@ function T(e) {
|
|
|
103
103
|
function Y(e) {
|
|
104
104
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function z(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
109
|
function D() {
|
|
110
|
-
return
|
|
110
|
+
return z(" ");
|
|
111
111
|
}
|
|
112
112
|
function He(e, t, r, n) {
|
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -119,7 +119,7 @@ function A(e, t, r) {
|
|
|
119
119
|
const n = t.toLowerCase();
|
|
120
120
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : w(e, t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Mr(e) {
|
|
123
123
|
let t;
|
|
124
124
|
return {
|
|
125
125
|
/* push */
|
|
@@ -132,17 +132,17 @@ function Nr(e) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ir(e) {
|
|
136
136
|
return Array.from(e.childNodes);
|
|
137
137
|
}
|
|
138
138
|
function re(e, t) {
|
|
139
139
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
140
140
|
t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Lr(e, t) {
|
|
143
143
|
e.value = t == null ? "" : t;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Nr(e) {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.childNodes.forEach(
|
|
148
148
|
/** @param {Element} node */
|
|
@@ -155,27 +155,27 @@ let me;
|
|
|
155
155
|
function de(e) {
|
|
156
156
|
me = e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function kr() {
|
|
159
159
|
if (!me)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
161
|
return me;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function $r(e) {
|
|
164
|
+
kr().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
|
-
const te = [],
|
|
166
|
+
const te = [], je = [];
|
|
167
167
|
let ne = [];
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
function
|
|
171
|
-
|
|
168
|
+
const pt = [], Ur = /* @__PURE__ */ Promise.resolve();
|
|
169
|
+
let Ve = !1;
|
|
170
|
+
function Dr() {
|
|
171
|
+
Ve || (Ve = !0, Ur.then(X));
|
|
172
172
|
}
|
|
173
173
|
function Xe(e) {
|
|
174
174
|
ne.push(e);
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
177
177
|
let K = 0;
|
|
178
|
-
function
|
|
178
|
+
function X() {
|
|
179
179
|
if (K !== 0)
|
|
180
180
|
return;
|
|
181
181
|
const e = me;
|
|
@@ -183,56 +183,56 @@ function z() {
|
|
|
183
183
|
try {
|
|
184
184
|
for (; K < te.length; ) {
|
|
185
185
|
const t = te[K];
|
|
186
|
-
K++, de(t),
|
|
186
|
+
K++, de(t), Fr(t.$$);
|
|
187
187
|
}
|
|
188
188
|
} catch (t) {
|
|
189
189
|
throw te.length = 0, K = 0, t;
|
|
190
190
|
}
|
|
191
|
-
for (de(null), te.length = 0, K = 0;
|
|
192
|
-
|
|
191
|
+
for (de(null), te.length = 0, K = 0; je.length; )
|
|
192
|
+
je.pop()();
|
|
193
193
|
for (let t = 0; t < ne.length; t += 1) {
|
|
194
194
|
const r = ne[t];
|
|
195
|
-
|
|
195
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
196
196
|
}
|
|
197
197
|
ne.length = 0;
|
|
198
198
|
} while (te.length);
|
|
199
|
-
for (;
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
for (; pt.length; )
|
|
200
|
+
pt.pop()();
|
|
201
|
+
Ve = !1, Ne.clear(), de(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Fr(e) {
|
|
204
204
|
if (e.fragment !== null) {
|
|
205
205
|
e.update(), le(e.before_update);
|
|
206
206
|
const t = e.dirty;
|
|
207
207
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Gr(e) {
|
|
211
211
|
const t = [], r = [];
|
|
212
212
|
ne.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ne = t;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
216
|
-
e && e.i && (
|
|
214
|
+
const jr = /* @__PURE__ */ new Set();
|
|
215
|
+
function Vr(e, t) {
|
|
216
|
+
e && e.i && (jr.delete(e), e.i(t));
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ze(e) {
|
|
219
219
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Xr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
223
|
n && n.m(t, r), Xe(() => {
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
224
|
+
const o = e.$$.on_mount.map(Dt).filter(st);
|
|
225
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : le(o), e.$$.on_mount = [];
|
|
226
226
|
}), i.forEach(Xe);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function zr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Gr(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (te.push(e),
|
|
232
|
+
function qr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (te.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
236
|
const l = me;
|
|
237
237
|
de(e);
|
|
238
238
|
const u = e.$$ = {
|
|
@@ -240,9 +240,9 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
240
240
|
ctx: [],
|
|
241
241
|
// state
|
|
242
242
|
props: o,
|
|
243
|
-
update:
|
|
243
|
+
update: k,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: ft(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: ft(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || l.$$.root
|
|
258
258
|
};
|
|
259
259
|
s && s(u.root);
|
|
260
|
-
let
|
|
261
|
-
if (u.ctx = r ? r(e, t.props || {}, (f,
|
|
262
|
-
const m = d.length ? d[0] :
|
|
263
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m),
|
|
264
|
-
}) : [], u.update(),
|
|
260
|
+
let h = !1;
|
|
261
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
262
|
+
const m = d.length ? d[0] : c;
|
|
263
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && qr(e, f)), c;
|
|
264
|
+
}) : [], u.update(), h = !0, le(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const f =
|
|
266
|
+
const f = Ir(t.target);
|
|
267
267
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && Vr(e.$$.fragment), Xr(e, t.target, t.anchor), X();
|
|
271
271
|
}
|
|
272
272
|
de(l);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Vt;
|
|
275
|
+
typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
276
276
|
constructor(t, r, n) {
|
|
277
277
|
super();
|
|
278
278
|
/** The Svelte component constructor */
|
|
@@ -322,8 +322,8 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
322
322
|
* @param {HTMLElement} target
|
|
323
323
|
* @param {HTMLElement} [anchor]
|
|
324
324
|
*/
|
|
325
|
-
m: function(u,
|
|
326
|
-
F(u, s,
|
|
325
|
+
m: function(u, h) {
|
|
326
|
+
F(u, s, h);
|
|
327
327
|
},
|
|
328
328
|
d: function(u) {
|
|
329
329
|
u && $(s);
|
|
@@ -333,7 +333,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
333
333
|
};
|
|
334
334
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
335
335
|
return;
|
|
336
|
-
const r = {}, n =
|
|
336
|
+
const r = {}, n = Nr(this);
|
|
337
337
|
for (const o of this.$$s)
|
|
338
338
|
o in n && (r[o] = [t(o)]);
|
|
339
339
|
for (const o of this.attributes) {
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
344
344
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
345
345
|
this.$$c = new this.$$ctor({
|
|
346
346
|
target: this.shadowRoot || this,
|
|
347
|
-
props:
|
|
347
|
+
props: ct(ht({}, this.$$d), {
|
|
348
348
|
$$slots: r,
|
|
349
349
|
$$scope: {
|
|
350
350
|
ctx: []
|
|
@@ -422,8 +422,8 @@ function Ee(e, t, r, n) {
|
|
|
422
422
|
return t;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let s = class extends
|
|
425
|
+
function Zr(e, t, r, n, i, o) {
|
|
426
|
+
let s = class extends Vt {
|
|
427
427
|
constructor() {
|
|
428
428
|
super(e, r, i), this.$$p_d = t;
|
|
429
429
|
}
|
|
@@ -453,7 +453,7 @@ function Kr(e, t, r, n, i, o) {
|
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
454
|
s, s;
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class Qr {
|
|
457
457
|
constructor() {
|
|
458
458
|
/**
|
|
459
459
|
* ### PRIVATE API
|
|
@@ -474,7 +474,7 @@ class en {
|
|
|
474
474
|
}
|
|
475
475
|
/** @returns {void} */
|
|
476
476
|
$destroy() {
|
|
477
|
-
|
|
477
|
+
zr(this, 1), this.$destroy = k;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -483,8 +483,8 @@ class en {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, r) {
|
|
486
|
-
if (!
|
|
487
|
-
return
|
|
486
|
+
if (!st(r))
|
|
487
|
+
return k;
|
|
488
488
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return n.push(r), () => {
|
|
490
490
|
const i = n.indexOf(r);
|
|
@@ -496,11 +496,11 @@ class en {
|
|
|
496
496
|
* @returns {void}
|
|
497
497
|
*/
|
|
498
498
|
$set(t) {
|
|
499
|
-
this.$$set && !
|
|
499
|
+
this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
+
const Jr = "4";
|
|
503
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
504
504
|
/*! *****************************************************************************
|
|
505
505
|
Copyright (c) Microsoft Corporation.
|
|
506
506
|
|
|
@@ -515,18 +515,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
515
515
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
516
516
|
PERFORMANCE OF THIS SOFTWARE.
|
|
517
517
|
***************************************************************************** */
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var qe = function(e, t) {
|
|
519
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
520
520
|
r.__proto__ = n;
|
|
521
521
|
} || function(r, n) {
|
|
522
522
|
for (var i in n)
|
|
523
523
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
524
|
-
},
|
|
524
|
+
}, qe(e, t);
|
|
525
525
|
};
|
|
526
526
|
function W(e, t) {
|
|
527
527
|
if (typeof t != "function" && t !== null)
|
|
528
528
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
529
|
-
|
|
529
|
+
qe(e, t);
|
|
530
530
|
function r() {
|
|
531
531
|
this.constructor = e;
|
|
532
532
|
}
|
|
@@ -542,7 +542,7 @@ var S = function() {
|
|
|
542
542
|
return t;
|
|
543
543
|
}, S.apply(this, arguments);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function Yr(e, t) {
|
|
546
546
|
var r = {};
|
|
547
547
|
for (var n in e)
|
|
548
548
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -551,7 +551,7 @@ function rn(e, t) {
|
|
|
551
551
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
552
552
|
return r;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function We(e) {
|
|
555
555
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
556
556
|
if (r)
|
|
557
557
|
return r.call(e);
|
|
@@ -563,7 +563,7 @@ function Ze(e) {
|
|
|
563
563
|
};
|
|
564
564
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Ze(e, t) {
|
|
567
567
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
568
568
|
if (!r)
|
|
569
569
|
return e;
|
|
@@ -592,13 +592,13 @@ function ie(e, t, r) {
|
|
|
592
592
|
function q(e) {
|
|
593
593
|
return typeof e == "function";
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Xt(e) {
|
|
596
596
|
var t = function(n) {
|
|
597
597
|
Error.call(n), n.stack = new Error().stack;
|
|
598
598
|
}, r = e(t);
|
|
599
599
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
600
600
|
}
|
|
601
|
-
var
|
|
601
|
+
var ke = Xt(function(e) {
|
|
602
602
|
return function(r) {
|
|
603
603
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
604
604
|
` + r.map(function(n, i) {
|
|
@@ -607,7 +607,7 @@ var Ne = Wt(function(e) {
|
|
|
607
607
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
608
608
|
};
|
|
609
609
|
});
|
|
610
|
-
function
|
|
610
|
+
function Qe(e, t) {
|
|
611
611
|
if (e) {
|
|
612
612
|
var r = e.indexOf(t);
|
|
613
613
|
0 <= r && e.splice(r, 1);
|
|
@@ -625,7 +625,7 @@ var Pe = function() {
|
|
|
625
625
|
if (s)
|
|
626
626
|
if (this._parentage = null, Array.isArray(s))
|
|
627
627
|
try {
|
|
628
|
-
for (var a =
|
|
628
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
629
629
|
var u = l.value;
|
|
630
630
|
u.remove(this);
|
|
631
631
|
}
|
|
@@ -641,30 +641,30 @@ var Pe = function() {
|
|
|
641
641
|
}
|
|
642
642
|
else
|
|
643
643
|
s.remove(this);
|
|
644
|
-
var
|
|
645
|
-
if (q(
|
|
644
|
+
var h = this.initialTeardown;
|
|
645
|
+
if (q(h))
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
h();
|
|
648
648
|
} catch (p) {
|
|
649
|
-
o = p instanceof
|
|
649
|
+
o = p instanceof ke ? p.errors : [p];
|
|
650
650
|
}
|
|
651
651
|
var f = this._finalizers;
|
|
652
652
|
if (f) {
|
|
653
653
|
this._finalizers = null;
|
|
654
654
|
try {
|
|
655
|
-
for (var
|
|
655
|
+
for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
|
|
656
656
|
var m = d.value;
|
|
657
657
|
try {
|
|
658
|
-
|
|
658
|
+
dt(m);
|
|
659
659
|
} catch (p) {
|
|
660
|
-
o = o != null ? o : [], p instanceof
|
|
660
|
+
o = o != null ? o : [], p instanceof ke ? o = ie(ie([], Ze(o)), Ze(p.errors)) : o.push(p);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
} catch (p) {
|
|
664
664
|
n = { error: p };
|
|
665
665
|
} finally {
|
|
666
666
|
try {
|
|
667
|
-
d && !d.done && (i =
|
|
667
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
668
668
|
} finally {
|
|
669
669
|
if (n)
|
|
670
670
|
throw n.error;
|
|
@@ -672,13 +672,13 @@ var Pe = function() {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
if (o)
|
|
675
|
-
throw new
|
|
675
|
+
throw new ke(o);
|
|
676
676
|
}
|
|
677
677
|
}, e.prototype.add = function(t) {
|
|
678
678
|
var r;
|
|
679
679
|
if (t && t !== this)
|
|
680
680
|
if (this.closed)
|
|
681
|
-
|
|
681
|
+
dt(t);
|
|
682
682
|
else {
|
|
683
683
|
if (t instanceof e) {
|
|
684
684
|
if (t.closed || t._hasParent(this))
|
|
@@ -695,56 +695,52 @@ var Pe = function() {
|
|
|
695
695
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
696
696
|
}, e.prototype._removeParent = function(t) {
|
|
697
697
|
var r = this._parentage;
|
|
698
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
698
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
|
699
699
|
}, e.prototype.remove = function(t) {
|
|
700
700
|
var r = this._finalizers;
|
|
701
|
-
r &&
|
|
701
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
|
702
702
|
}, e.EMPTY = function() {
|
|
703
703
|
var t = new e();
|
|
704
704
|
return t.closed = !0, t;
|
|
705
705
|
}(), e;
|
|
706
|
-
}(),
|
|
707
|
-
function
|
|
706
|
+
}(), zt = Pe.EMPTY;
|
|
707
|
+
function qt(e) {
|
|
708
708
|
return e instanceof Pe || e && "closed" in e && q(e.remove) && q(e.add) && q(e.unsubscribe);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function dt(e) {
|
|
711
711
|
q(e) ? e() : e.unsubscribe();
|
|
712
712
|
}
|
|
713
|
-
var
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
Promise: void 0,
|
|
717
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
718
|
-
useDeprecatedNextContext: !1
|
|
719
|
-
}, nn = {
|
|
713
|
+
var Kr = {
|
|
714
|
+
Promise: void 0
|
|
715
|
+
}, en = {
|
|
720
716
|
setTimeout: function(e, t) {
|
|
721
717
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
722
718
|
r[n - 2] = arguments[n];
|
|
723
|
-
return setTimeout.apply(void 0, ie([e, t],
|
|
719
|
+
return setTimeout.apply(void 0, ie([e, t], Ze(r)));
|
|
724
720
|
},
|
|
725
721
|
clearTimeout: function(e) {
|
|
726
722
|
return clearTimeout(e);
|
|
727
723
|
},
|
|
728
724
|
delegate: void 0
|
|
729
725
|
};
|
|
730
|
-
function
|
|
731
|
-
|
|
726
|
+
function tn(e) {
|
|
727
|
+
en.setTimeout(function() {
|
|
732
728
|
throw e;
|
|
733
729
|
});
|
|
734
730
|
}
|
|
735
|
-
function
|
|
731
|
+
function mt() {
|
|
736
732
|
}
|
|
737
733
|
function Se(e) {
|
|
738
734
|
e();
|
|
739
735
|
}
|
|
740
|
-
var
|
|
736
|
+
var Wt = function(e) {
|
|
741
737
|
W(t, e);
|
|
742
738
|
function t(r) {
|
|
743
739
|
var n = e.call(this) || this;
|
|
744
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
740
|
+
return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = on, n;
|
|
745
741
|
}
|
|
746
742
|
return t.create = function(r, n, i) {
|
|
747
|
-
return new
|
|
743
|
+
return new Je(r, n, i);
|
|
748
744
|
}, t.prototype.next = function(r) {
|
|
749
745
|
this.isStopped || this._next(r);
|
|
750
746
|
}, t.prototype.error = function(r) {
|
|
@@ -768,11 +764,7 @@ var Yt = function(e) {
|
|
|
768
764
|
this.unsubscribe();
|
|
769
765
|
}
|
|
770
766
|
}, t;
|
|
771
|
-
}(Pe),
|
|
772
|
-
function $e(e, t) {
|
|
773
|
-
return sn.call(e, t);
|
|
774
|
-
}
|
|
775
|
-
var an = function() {
|
|
767
|
+
}(Pe), rn = function() {
|
|
776
768
|
function e(t) {
|
|
777
769
|
this.partialObserver = t;
|
|
778
770
|
}
|
|
@@ -803,55 +795,43 @@ var an = function() {
|
|
|
803
795
|
xe(r);
|
|
804
796
|
}
|
|
805
797
|
}, e;
|
|
806
|
-
}(),
|
|
798
|
+
}(), Je = function(e) {
|
|
807
799
|
W(t, e);
|
|
808
800
|
function t(r, n, i) {
|
|
809
801
|
var o = e.call(this) || this, s;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
};
|
|
816
|
-
else {
|
|
817
|
-
var a;
|
|
818
|
-
o && Jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
819
|
-
return o.unsubscribe();
|
|
820
|
-
}, s = {
|
|
821
|
-
next: r.next && $e(r.next, a),
|
|
822
|
-
error: r.error && $e(r.error, a),
|
|
823
|
-
complete: r.complete && $e(r.complete, a)
|
|
824
|
-
}) : s = r;
|
|
825
|
-
}
|
|
826
|
-
return o.destination = new an(s), o;
|
|
802
|
+
return q(r) || !r ? s = {
|
|
803
|
+
next: r != null ? r : void 0,
|
|
804
|
+
error: n != null ? n : void 0,
|
|
805
|
+
complete: i != null ? i : void 0
|
|
806
|
+
} : s = r, o.destination = new rn(s), o;
|
|
827
807
|
}
|
|
828
808
|
return t;
|
|
829
|
-
}(
|
|
809
|
+
}(Wt);
|
|
830
810
|
function xe(e) {
|
|
831
|
-
|
|
811
|
+
tn(e);
|
|
832
812
|
}
|
|
833
|
-
function
|
|
813
|
+
function nn(e) {
|
|
834
814
|
throw e;
|
|
835
815
|
}
|
|
836
|
-
var
|
|
816
|
+
var on = {
|
|
837
817
|
closed: !0,
|
|
838
|
-
next:
|
|
839
|
-
error:
|
|
840
|
-
complete:
|
|
841
|
-
},
|
|
818
|
+
next: mt,
|
|
819
|
+
error: nn,
|
|
820
|
+
complete: mt
|
|
821
|
+
}, sn = function() {
|
|
842
822
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
843
823
|
}();
|
|
844
|
-
function
|
|
824
|
+
function an(e) {
|
|
845
825
|
return e;
|
|
846
826
|
}
|
|
847
|
-
function
|
|
848
|
-
return e.length === 0 ?
|
|
827
|
+
function un(e) {
|
|
828
|
+
return e.length === 0 ? an : e.length === 1 ? e[0] : function(r) {
|
|
849
829
|
return e.reduce(function(n, i) {
|
|
850
830
|
return i(n);
|
|
851
831
|
}, r);
|
|
852
832
|
};
|
|
853
833
|
}
|
|
854
|
-
var
|
|
834
|
+
var bt = function() {
|
|
855
835
|
function e(t) {
|
|
856
836
|
t && (this._subscribe = t);
|
|
857
837
|
}
|
|
@@ -859,7 +839,7 @@ var vt = function() {
|
|
|
859
839
|
var r = new e();
|
|
860
840
|
return r.source = this, r.operator = t, r;
|
|
861
841
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
862
|
-
var i = this, o =
|
|
842
|
+
var i = this, o = hn(t) ? t : new Je(t, r, n);
|
|
863
843
|
return Se(function() {
|
|
864
844
|
var s = i, a = s.operator, l = s.source;
|
|
865
845
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -872,8 +852,8 @@ var vt = function() {
|
|
|
872
852
|
}
|
|
873
853
|
}, e.prototype.forEach = function(t, r) {
|
|
874
854
|
var n = this;
|
|
875
|
-
return r =
|
|
876
|
-
var s = new
|
|
855
|
+
return r = yt(r), new r(function(i, o) {
|
|
856
|
+
var s = new Je({
|
|
877
857
|
next: function(a) {
|
|
878
858
|
try {
|
|
879
859
|
t(a);
|
|
@@ -889,15 +869,15 @@ var vt = function() {
|
|
|
889
869
|
}, e.prototype._subscribe = function(t) {
|
|
890
870
|
var r;
|
|
891
871
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
892
|
-
}, e.prototype[
|
|
872
|
+
}, e.prototype[sn] = function() {
|
|
893
873
|
return this;
|
|
894
874
|
}, e.prototype.pipe = function() {
|
|
895
875
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
896
876
|
t[r] = arguments[r];
|
|
897
|
-
return
|
|
877
|
+
return un(t)(this);
|
|
898
878
|
}, e.prototype.toPromise = function(t) {
|
|
899
879
|
var r = this;
|
|
900
|
-
return t =
|
|
880
|
+
return t = yt(t), new t(function(n, i) {
|
|
901
881
|
var o;
|
|
902
882
|
r.subscribe(function(s) {
|
|
903
883
|
return o = s;
|
|
@@ -911,32 +891,32 @@ var vt = function() {
|
|
|
911
891
|
return new e(t);
|
|
912
892
|
}, e;
|
|
913
893
|
}();
|
|
914
|
-
function
|
|
894
|
+
function yt(e) {
|
|
915
895
|
var t;
|
|
916
|
-
return (t = e != null ? e :
|
|
896
|
+
return (t = e != null ? e : Kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
917
897
|
}
|
|
918
|
-
function
|
|
898
|
+
function ln(e) {
|
|
919
899
|
return e && q(e.next) && q(e.error) && q(e.complete);
|
|
920
900
|
}
|
|
921
|
-
function
|
|
922
|
-
return e && e instanceof
|
|
901
|
+
function hn(e) {
|
|
902
|
+
return e && e instanceof Wt || ln(e) && qt(e);
|
|
923
903
|
}
|
|
924
|
-
var
|
|
904
|
+
var cn = Xt(function(e) {
|
|
925
905
|
return function() {
|
|
926
906
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
927
907
|
};
|
|
928
|
-
}),
|
|
908
|
+
}), Zt = function(e) {
|
|
929
909
|
W(t, e);
|
|
930
910
|
function t() {
|
|
931
911
|
var r = e.call(this) || this;
|
|
932
912
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
933
913
|
}
|
|
934
914
|
return t.prototype.lift = function(r) {
|
|
935
|
-
var n = new
|
|
915
|
+
var n = new gt(this, this);
|
|
936
916
|
return n.operator = r, n;
|
|
937
917
|
}, t.prototype._throwIfClosed = function() {
|
|
938
918
|
if (this.closed)
|
|
939
|
-
throw new
|
|
919
|
+
throw new cn();
|
|
940
920
|
}, t.prototype.next = function(r) {
|
|
941
921
|
var n = this;
|
|
942
922
|
Se(function() {
|
|
@@ -944,7 +924,7 @@ var mn = Wt(function(e) {
|
|
|
944
924
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
945
925
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
946
926
|
try {
|
|
947
|
-
for (var s =
|
|
927
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
948
928
|
var l = a.value;
|
|
949
929
|
l.next(r);
|
|
950
930
|
}
|
|
@@ -993,19 +973,19 @@ var mn = Wt(function(e) {
|
|
|
993
973
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
994
974
|
}, t.prototype._innerSubscribe = function(r) {
|
|
995
975
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
996
|
-
return o || s ?
|
|
997
|
-
n.currentObservers = null,
|
|
976
|
+
return o || s ? zt : (this.currentObservers = null, a.push(r), new Pe(function() {
|
|
977
|
+
n.currentObservers = null, Qe(a, r);
|
|
998
978
|
}));
|
|
999
979
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1000
980
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1001
981
|
i ? r.error(o) : s && r.complete();
|
|
1002
982
|
}, t.prototype.asObservable = function() {
|
|
1003
|
-
var r = new
|
|
983
|
+
var r = new bt();
|
|
1004
984
|
return r.source = this, r;
|
|
1005
985
|
}, t.create = function(r, n) {
|
|
1006
|
-
return new
|
|
986
|
+
return new gt(r, n);
|
|
1007
987
|
}, t;
|
|
1008
|
-
}(
|
|
988
|
+
}(bt), gt = function(e) {
|
|
1009
989
|
W(t, e);
|
|
1010
990
|
function t(r, n) {
|
|
1011
991
|
var i = e.call(this) || this;
|
|
@@ -1022,17 +1002,17 @@ var mn = Wt(function(e) {
|
|
|
1022
1002
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1023
1003
|
}, t.prototype._subscribe = function(r) {
|
|
1024
1004
|
var n, i;
|
|
1025
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1005
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
|
|
1026
1006
|
}, t;
|
|
1027
|
-
}(
|
|
1007
|
+
}(Zt), Qt = {
|
|
1028
1008
|
now: function() {
|
|
1029
|
-
return (
|
|
1009
|
+
return (Qt.delegate || Date).now();
|
|
1030
1010
|
},
|
|
1031
1011
|
delegate: void 0
|
|
1032
|
-
},
|
|
1012
|
+
}, fn = function(e) {
|
|
1033
1013
|
W(t, e);
|
|
1034
1014
|
function t(r, n, i) {
|
|
1035
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1015
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Qt);
|
|
1036
1016
|
var o = e.call(this) || this;
|
|
1037
1017
|
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;
|
|
1038
1018
|
}
|
|
@@ -1047,29 +1027,29 @@ var mn = Wt(function(e) {
|
|
|
1047
1027
|
}, t.prototype._trimBuffer = function() {
|
|
1048
1028
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1049
1029
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1050
|
-
for (var l = i.now(), u = 0,
|
|
1051
|
-
u =
|
|
1030
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1031
|
+
u = h;
|
|
1052
1032
|
u && o.splice(0, u + 1);
|
|
1053
1033
|
}
|
|
1054
1034
|
}, t;
|
|
1055
|
-
}(
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1058
|
-
const r = new
|
|
1059
|
-
|
|
1035
|
+
}(Zt);
|
|
1036
|
+
const vt = [], xt = {}, pn = (e, t = 0) => {
|
|
1037
|
+
if (vt.indexOf(e) == -1) {
|
|
1038
|
+
const r = new fn(t);
|
|
1039
|
+
xt[e] = r, vt.push(e);
|
|
1060
1040
|
}
|
|
1061
|
-
return
|
|
1041
|
+
return xt[e];
|
|
1062
1042
|
}, ee = [];
|
|
1063
|
-
function
|
|
1043
|
+
function dn(e, t) {
|
|
1064
1044
|
return {
|
|
1065
1045
|
subscribe: Ae(e, t).subscribe
|
|
1066
1046
|
};
|
|
1067
1047
|
}
|
|
1068
|
-
function Ae(e, t =
|
|
1048
|
+
function Ae(e, t = k) {
|
|
1069
1049
|
let r;
|
|
1070
1050
|
const n = /* @__PURE__ */ new Set();
|
|
1071
1051
|
function i(a) {
|
|
1072
|
-
if (
|
|
1052
|
+
if (Ft(e, a) && (e = a, r)) {
|
|
1073
1053
|
const l = !ee.length;
|
|
1074
1054
|
for (const u of n)
|
|
1075
1055
|
u[1](), ee.push(u, e);
|
|
@@ -1083,109 +1063,109 @@ function Ae(e, t = N) {
|
|
|
1083
1063
|
function o(a) {
|
|
1084
1064
|
i(a(e));
|
|
1085
1065
|
}
|
|
1086
|
-
function s(a, l =
|
|
1066
|
+
function s(a, l = k) {
|
|
1087
1067
|
const u = [a, l];
|
|
1088
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1068
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
|
1089
1069
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1090
1070
|
};
|
|
1091
1071
|
}
|
|
1092
1072
|
return { set: i, update: o, subscribe: s };
|
|
1093
1073
|
}
|
|
1094
|
-
function
|
|
1074
|
+
function he(e, t, r) {
|
|
1095
1075
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1096
1076
|
if (!i.every(Boolean))
|
|
1097
1077
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1098
1078
|
const o = t.length < 2;
|
|
1099
|
-
return
|
|
1079
|
+
return dn(r, (s, a) => {
|
|
1100
1080
|
let l = !1;
|
|
1101
1081
|
const u = [];
|
|
1102
|
-
let
|
|
1103
|
-
const
|
|
1104
|
-
if (
|
|
1082
|
+
let h = 0, f = k;
|
|
1083
|
+
const c = () => {
|
|
1084
|
+
if (h)
|
|
1105
1085
|
return;
|
|
1106
1086
|
f();
|
|
1107
1087
|
const m = t(n ? u[0] : u, s, a);
|
|
1108
|
-
o ? s(m) : f =
|
|
1088
|
+
o ? s(m) : f = st(m) ? m : k;
|
|
1109
1089
|
}, d = i.map(
|
|
1110
|
-
(m, p) =>
|
|
1090
|
+
(m, p) => Gt(
|
|
1111
1091
|
m,
|
|
1112
1092
|
(y) => {
|
|
1113
|
-
u[p] = y,
|
|
1093
|
+
u[p] = y, h &= ~(1 << p), l && c();
|
|
1114
1094
|
},
|
|
1115
1095
|
() => {
|
|
1116
|
-
|
|
1096
|
+
h |= 1 << p;
|
|
1117
1097
|
}
|
|
1118
1098
|
)
|
|
1119
1099
|
);
|
|
1120
|
-
return l = !0,
|
|
1100
|
+
return l = !0, c(), function() {
|
|
1121
1101
|
le(d), f(), l = !1;
|
|
1122
1102
|
};
|
|
1123
1103
|
});
|
|
1124
1104
|
}
|
|
1125
|
-
function
|
|
1105
|
+
function mn(e) {
|
|
1126
1106
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1127
1107
|
}
|
|
1128
|
-
var
|
|
1129
|
-
return
|
|
1108
|
+
var bn = function(t) {
|
|
1109
|
+
return yn(t) && !gn(t);
|
|
1130
1110
|
};
|
|
1131
|
-
function
|
|
1111
|
+
function yn(e) {
|
|
1132
1112
|
return !!e && typeof e == "object";
|
|
1133
1113
|
}
|
|
1134
|
-
function
|
|
1114
|
+
function gn(e) {
|
|
1135
1115
|
var t = Object.prototype.toString.call(e);
|
|
1136
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1116
|
+
return t === "[object RegExp]" || t === "[object Date]" || _n(e);
|
|
1137
1117
|
}
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1140
|
-
return e.$$typeof ===
|
|
1118
|
+
var vn = typeof Symbol == "function" && Symbol.for, xn = vn ? Symbol.for("react.element") : 60103;
|
|
1119
|
+
function _n(e) {
|
|
1120
|
+
return e.$$typeof === xn;
|
|
1141
1121
|
}
|
|
1142
|
-
function
|
|
1122
|
+
function En(e) {
|
|
1143
1123
|
return Array.isArray(e) ? [] : {};
|
|
1144
1124
|
}
|
|
1145
1125
|
function be(e, t) {
|
|
1146
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? oe(
|
|
1126
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? oe(En(e), e, t) : e;
|
|
1147
1127
|
}
|
|
1148
|
-
function
|
|
1128
|
+
function Sn(e, t, r) {
|
|
1149
1129
|
return e.concat(t).map(function(n) {
|
|
1150
1130
|
return be(n, r);
|
|
1151
1131
|
});
|
|
1152
1132
|
}
|
|
1153
|
-
function
|
|
1133
|
+
function wn(e, t) {
|
|
1154
1134
|
if (!t.customMerge)
|
|
1155
1135
|
return oe;
|
|
1156
1136
|
var r = t.customMerge(e);
|
|
1157
1137
|
return typeof r == "function" ? r : oe;
|
|
1158
1138
|
}
|
|
1159
|
-
function
|
|
1139
|
+
function Tn(e) {
|
|
1160
1140
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1161
1141
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1162
1142
|
}) : [];
|
|
1163
1143
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return Object.keys(e).concat(
|
|
1144
|
+
function _t(e) {
|
|
1145
|
+
return Object.keys(e).concat(Tn(e));
|
|
1166
1146
|
}
|
|
1167
|
-
function
|
|
1147
|
+
function Jt(e, t) {
|
|
1168
1148
|
try {
|
|
1169
1149
|
return t in e;
|
|
1170
1150
|
} catch (r) {
|
|
1171
1151
|
return !1;
|
|
1172
1152
|
}
|
|
1173
1153
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1154
|
+
function Hn(e, t) {
|
|
1155
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1176
1156
|
}
|
|
1177
|
-
function
|
|
1157
|
+
function Cn(e, t, r) {
|
|
1178
1158
|
var n = {};
|
|
1179
|
-
return r.isMergeableObject(e) &&
|
|
1159
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1180
1160
|
n[i] = be(e[i], r);
|
|
1181
|
-
}),
|
|
1182
|
-
|
|
1161
|
+
}), _t(t).forEach(function(i) {
|
|
1162
|
+
Hn(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = be(t[i], r));
|
|
1183
1163
|
}), n;
|
|
1184
1164
|
}
|
|
1185
1165
|
function oe(e, t, r) {
|
|
1186
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1166
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || bn, r.cloneUnlessOtherwiseSpecified = be;
|
|
1187
1167
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1188
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1168
|
+
return o ? n ? r.arrayMerge(e, t, r) : Cn(e, t, r) : be(t, r);
|
|
1189
1169
|
}
|
|
1190
1170
|
oe.all = function(t, r) {
|
|
1191
1171
|
if (!Array.isArray(t))
|
|
@@ -1194,58 +1174,56 @@ oe.all = function(t, r) {
|
|
|
1194
1174
|
return oe(n, i, r);
|
|
1195
1175
|
}, {});
|
|
1196
1176
|
};
|
|
1197
|
-
var
|
|
1198
|
-
const
|
|
1199
|
-
function
|
|
1200
|
-
var r = t && t.cache ? t.cache :
|
|
1177
|
+
var Bn = oe, Pn = Bn;
|
|
1178
|
+
const An = /* @__PURE__ */ mn(Pn);
|
|
1179
|
+
function $e(e, t) {
|
|
1180
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Mn;
|
|
1201
1181
|
return i(e, {
|
|
1202
1182
|
cache: r,
|
|
1203
1183
|
serializer: n
|
|
1204
1184
|
});
|
|
1205
1185
|
}
|
|
1206
|
-
function
|
|
1186
|
+
function On(e) {
|
|
1207
1187
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1208
1188
|
}
|
|
1209
|
-
function
|
|
1210
|
-
var i =
|
|
1189
|
+
function Rn(e, t, r, n) {
|
|
1190
|
+
var i = On(n) ? n : r(n), o = t.get(i);
|
|
1211
1191
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1212
1192
|
}
|
|
1213
|
-
function
|
|
1193
|
+
function Yt(e, t, r) {
|
|
1214
1194
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1215
1195
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1216
1196
|
}
|
|
1217
|
-
function
|
|
1197
|
+
function Kt(e, t, r, n, i) {
|
|
1218
1198
|
return r.bind(t, e, n, i);
|
|
1219
1199
|
}
|
|
1220
|
-
function
|
|
1221
|
-
var r = e.length === 1 ?
|
|
1222
|
-
return
|
|
1223
|
-
}
|
|
1224
|
-
function Nn(e, t) {
|
|
1225
|
-
return ut(e, this, nr, t.cache.create(), t.serializer);
|
|
1200
|
+
function Mn(e, t) {
|
|
1201
|
+
var r = e.length === 1 ? Rn : Yt;
|
|
1202
|
+
return Kt(e, this, r, t.cache.create(), t.serializer);
|
|
1226
1203
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1204
|
+
function In(e, t) {
|
|
1205
|
+
return Kt(e, this, Yt, t.cache.create(), t.serializer);
|
|
1229
1206
|
}
|
|
1230
|
-
var
|
|
1207
|
+
var Ln = function() {
|
|
1231
1208
|
return JSON.stringify(arguments);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1209
|
+
}, Nn = (
|
|
1210
|
+
/** @class */
|
|
1211
|
+
function() {
|
|
1212
|
+
function e() {
|
|
1213
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1214
|
+
}
|
|
1215
|
+
return e.prototype.get = function(t) {
|
|
1216
|
+
return this.cache[t];
|
|
1217
|
+
}, e.prototype.set = function(t, r) {
|
|
1218
|
+
this.cache[t] = r;
|
|
1219
|
+
}, e;
|
|
1220
|
+
}()
|
|
1221
|
+
), kn = {
|
|
1243
1222
|
create: function() {
|
|
1244
|
-
return new
|
|
1223
|
+
return new Nn();
|
|
1245
1224
|
}
|
|
1246
|
-
},
|
|
1247
|
-
variadic:
|
|
1248
|
-
monadic: $n
|
|
1225
|
+
}, Ue = {
|
|
1226
|
+
variadic: In
|
|
1249
1227
|
}, v;
|
|
1250
1228
|
(function(e) {
|
|
1251
1229
|
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";
|
|
@@ -1258,43 +1236,43 @@ var se;
|
|
|
1258
1236
|
(function(e) {
|
|
1259
1237
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1260
1238
|
})(se || (se = {}));
|
|
1261
|
-
function
|
|
1239
|
+
function Et(e) {
|
|
1262
1240
|
return e.type === C.literal;
|
|
1263
1241
|
}
|
|
1264
|
-
function
|
|
1242
|
+
function $n(e) {
|
|
1265
1243
|
return e.type === C.argument;
|
|
1266
1244
|
}
|
|
1267
|
-
function
|
|
1245
|
+
function er(e) {
|
|
1268
1246
|
return e.type === C.number;
|
|
1269
1247
|
}
|
|
1270
|
-
function
|
|
1248
|
+
function tr(e) {
|
|
1271
1249
|
return e.type === C.date;
|
|
1272
1250
|
}
|
|
1273
|
-
function
|
|
1251
|
+
function rr(e) {
|
|
1274
1252
|
return e.type === C.time;
|
|
1275
1253
|
}
|
|
1276
|
-
function
|
|
1254
|
+
function nr(e) {
|
|
1277
1255
|
return e.type === C.select;
|
|
1278
1256
|
}
|
|
1279
|
-
function
|
|
1257
|
+
function ir(e) {
|
|
1280
1258
|
return e.type === C.plural;
|
|
1281
1259
|
}
|
|
1282
|
-
function
|
|
1260
|
+
function Un(e) {
|
|
1283
1261
|
return e.type === C.pound;
|
|
1284
1262
|
}
|
|
1285
|
-
function
|
|
1263
|
+
function or(e) {
|
|
1286
1264
|
return e.type === C.tag;
|
|
1287
1265
|
}
|
|
1288
|
-
function
|
|
1266
|
+
function sr(e) {
|
|
1289
1267
|
return !!(e && typeof e == "object" && e.type === se.number);
|
|
1290
1268
|
}
|
|
1291
|
-
function
|
|
1269
|
+
function Ye(e) {
|
|
1292
1270
|
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
|
1293
1271
|
}
|
|
1294
|
-
var
|
|
1295
|
-
function
|
|
1272
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
|
|
1273
|
+
function Fn(e) {
|
|
1296
1274
|
var t = {};
|
|
1297
|
-
return e.replace(
|
|
1275
|
+
return e.replace(Dn, function(r) {
|
|
1298
1276
|
var n = r.length;
|
|
1299
1277
|
switch (r[0]) {
|
|
1300
1278
|
case "G":
|
|
@@ -1383,18 +1361,18 @@ function Vn(e) {
|
|
|
1383
1361
|
return "";
|
|
1384
1362
|
}), t;
|
|
1385
1363
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1364
|
+
var Gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1365
|
+
function jn(e) {
|
|
1388
1366
|
if (e.length === 0)
|
|
1389
1367
|
throw new Error("Number skeleton cannot be empty");
|
|
1390
|
-
for (var t = e.split(
|
|
1391
|
-
return
|
|
1368
|
+
for (var t = e.split(Gn).filter(function(c) {
|
|
1369
|
+
return c.length > 0;
|
|
1392
1370
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1393
1371
|
var o = i[n], s = o.split("/");
|
|
1394
1372
|
if (s.length === 0)
|
|
1395
1373
|
throw new Error("Invalid number skeleton");
|
|
1396
|
-
for (var a = s[0], l = s.slice(1), u = 0,
|
|
1397
|
-
var f =
|
|
1374
|
+
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1375
|
+
var f = h[u];
|
|
1398
1376
|
if (f.length === 0)
|
|
1399
1377
|
throw new Error("Invalid number skeleton");
|
|
1400
1378
|
}
|
|
@@ -1402,17 +1380,17 @@ function Xn(e) {
|
|
|
1402
1380
|
}
|
|
1403
1381
|
return r;
|
|
1404
1382
|
}
|
|
1405
|
-
function
|
|
1383
|
+
function Vn(e) {
|
|
1406
1384
|
return e.replace(/^(.*?)-/, "");
|
|
1407
1385
|
}
|
|
1408
|
-
var
|
|
1409
|
-
function
|
|
1386
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Xn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
1387
|
+
function wt(e) {
|
|
1410
1388
|
var t = {};
|
|
1411
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1389
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
|
|
1412
1390
|
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)), "";
|
|
1413
1391
|
}), t;
|
|
1414
1392
|
}
|
|
1415
|
-
function
|
|
1393
|
+
function hr(e) {
|
|
1416
1394
|
switch (e) {
|
|
1417
1395
|
case "sign-auto":
|
|
1418
1396
|
return {
|
|
@@ -1452,7 +1430,7 @@ function dr(e) {
|
|
|
1452
1430
|
};
|
|
1453
1431
|
}
|
|
1454
1432
|
}
|
|
1455
|
-
function
|
|
1433
|
+
function zn(e) {
|
|
1456
1434
|
var t;
|
|
1457
1435
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1458
1436
|
notation: "engineering"
|
|
@@ -1460,17 +1438,17 @@ function Zn(e) {
|
|
|
1460
1438
|
notation: "scientific"
|
|
1461
1439
|
}, e = e.slice(1)), t) {
|
|
1462
1440
|
var r = e.slice(0, 2);
|
|
1463
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1441
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
|
1464
1442
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1465
1443
|
t.minimumIntegerDigits = e.length;
|
|
1466
1444
|
}
|
|
1467
1445
|
return t;
|
|
1468
1446
|
}
|
|
1469
|
-
function
|
|
1470
|
-
var t = {}, r =
|
|
1447
|
+
function Tt(e) {
|
|
1448
|
+
var t = {}, r = hr(e);
|
|
1471
1449
|
return r || t;
|
|
1472
1450
|
}
|
|
1473
|
-
function
|
|
1451
|
+
function qn(e) {
|
|
1474
1452
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1475
1453
|
var i = n[r];
|
|
1476
1454
|
switch (i.stem) {
|
|
@@ -1494,7 +1472,7 @@ function Qn(e) {
|
|
|
1494
1472
|
continue;
|
|
1495
1473
|
case "measure-unit":
|
|
1496
1474
|
case "unit":
|
|
1497
|
-
t.style = "unit", t.unit =
|
|
1475
|
+
t.style = "unit", t.unit = Vn(i.options[0]);
|
|
1498
1476
|
continue;
|
|
1499
1477
|
case "compact-short":
|
|
1500
1478
|
case "K":
|
|
@@ -1506,12 +1484,12 @@ function Qn(e) {
|
|
|
1506
1484
|
continue;
|
|
1507
1485
|
case "scientific":
|
|
1508
1486
|
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1509
|
-
return S(S({}, l),
|
|
1487
|
+
return S(S({}, l), Tt(u));
|
|
1510
1488
|
}, {}));
|
|
1511
1489
|
continue;
|
|
1512
1490
|
case "engineering":
|
|
1513
1491
|
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1514
|
-
return S(S({}, l),
|
|
1492
|
+
return S(S({}, l), Tt(u));
|
|
1515
1493
|
}, {}));
|
|
1516
1494
|
continue;
|
|
1517
1495
|
case "notation-simple":
|
|
@@ -1556,11 +1534,11 @@ function Qn(e) {
|
|
|
1556
1534
|
case "integer-width":
|
|
1557
1535
|
if (i.options.length > 1)
|
|
1558
1536
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1559
|
-
i.options[0].replace(
|
|
1537
|
+
i.options[0].replace(Xn, function(l, u, h, f, c, d) {
|
|
1560
1538
|
if (u)
|
|
1561
|
-
t.minimumIntegerDigits =
|
|
1539
|
+
t.minimumIntegerDigits = h.length;
|
|
1562
1540
|
else {
|
|
1563
|
-
if (f &&
|
|
1541
|
+
if (f && c)
|
|
1564
1542
|
throw new Error("We currently do not support maximum integer digits");
|
|
1565
1543
|
if (d)
|
|
1566
1544
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1569,27 +1547,27 @@ function Qn(e) {
|
|
|
1569
1547
|
});
|
|
1570
1548
|
continue;
|
|
1571
1549
|
}
|
|
1572
|
-
if (
|
|
1550
|
+
if (lr.test(i.stem)) {
|
|
1573
1551
|
t.minimumIntegerDigits = i.stem.length;
|
|
1574
1552
|
continue;
|
|
1575
1553
|
}
|
|
1576
|
-
if (
|
|
1554
|
+
if (St.test(i.stem)) {
|
|
1577
1555
|
if (i.options.length > 1)
|
|
1578
1556
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1579
|
-
i.stem.replace(
|
|
1580
|
-
return
|
|
1557
|
+
i.stem.replace(St, function(l, u, h, f, c, d) {
|
|
1558
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1581
1559
|
});
|
|
1582
1560
|
var o = i.options[0];
|
|
1583
|
-
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t),
|
|
1561
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), wt(o)));
|
|
1584
1562
|
continue;
|
|
1585
1563
|
}
|
|
1586
|
-
if (
|
|
1587
|
-
t = S(S({}, t),
|
|
1564
|
+
if (ur.test(i.stem)) {
|
|
1565
|
+
t = S(S({}, t), wt(i.stem));
|
|
1588
1566
|
continue;
|
|
1589
1567
|
}
|
|
1590
|
-
var s =
|
|
1568
|
+
var s = hr(i.stem);
|
|
1591
1569
|
s && (t = S(S({}, t), s));
|
|
1592
|
-
var a =
|
|
1570
|
+
var a = zn(i.stem);
|
|
1593
1571
|
a && (t = S(S({}, t), a));
|
|
1594
1572
|
}
|
|
1595
1573
|
return t;
|
|
@@ -3009,13 +2987,13 @@ var _e = {
|
|
|
3009
2987
|
"h"
|
|
3010
2988
|
]
|
|
3011
2989
|
};
|
|
3012
|
-
function
|
|
2990
|
+
function Wn(e, t) {
|
|
3013
2991
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3014
2992
|
var i = e.charAt(n);
|
|
3015
2993
|
if (i === "j") {
|
|
3016
2994
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3017
2995
|
o++, n++;
|
|
3018
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2996
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Zn(t);
|
|
3019
2997
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3020
2998
|
r += l;
|
|
3021
2999
|
for (; s-- > 0; )
|
|
@@ -3025,7 +3003,7 @@ function Jn(e, t) {
|
|
|
3025
3003
|
}
|
|
3026
3004
|
return r;
|
|
3027
3005
|
}
|
|
3028
|
-
function
|
|
3006
|
+
function Zn(e) {
|
|
3029
3007
|
var t = e.hourCycle;
|
|
3030
3008
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3031
3009
|
e.hourCycles && // @ts-ignore
|
|
@@ -3047,20 +3025,20 @@ function Yn(e) {
|
|
|
3047
3025
|
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
3048
3026
|
return i[0];
|
|
3049
3027
|
}
|
|
3050
|
-
var
|
|
3028
|
+
var De, Qn = new RegExp("^".concat(ar.source, "*")), Jn = new RegExp("".concat(ar.source, "*$"));
|
|
3051
3029
|
function x(e, t) {
|
|
3052
3030
|
return { start: e, end: t };
|
|
3053
3031
|
}
|
|
3054
|
-
var
|
|
3032
|
+
var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
|
|
3055
3033
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3056
|
-
},
|
|
3034
|
+
}, Ke = !0;
|
|
3057
3035
|
try {
|
|
3058
|
-
var
|
|
3059
|
-
|
|
3036
|
+
var si = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3037
|
+
Ke = ((De = si.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3060
3038
|
} catch (e) {
|
|
3061
|
-
|
|
3039
|
+
Ke = !1;
|
|
3062
3040
|
}
|
|
3063
|
-
var
|
|
3041
|
+
var Ht = Yn ? (
|
|
3064
3042
|
// Native
|
|
3065
3043
|
function(t, r, n) {
|
|
3066
3044
|
return t.startsWith(r, n);
|
|
@@ -3070,7 +3048,7 @@ var Pt = ti ? (
|
|
|
3070
3048
|
function(t, r, n) {
|
|
3071
3049
|
return t.slice(n, n + r.length) === r;
|
|
3072
3050
|
}
|
|
3073
|
-
),
|
|
3051
|
+
), et = Kn ? String.fromCodePoint : (
|
|
3074
3052
|
// IE11
|
|
3075
3053
|
function() {
|
|
3076
3054
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3082,9 +3060,9 @@ var Pt = ti ? (
|
|
|
3082
3060
|
}
|
|
3083
3061
|
return n;
|
|
3084
3062
|
}
|
|
3085
|
-
),
|
|
3063
|
+
), Ct = (
|
|
3086
3064
|
// native
|
|
3087
|
-
|
|
3065
|
+
ei ? Object.fromEntries : (
|
|
3088
3066
|
// Ponyfill
|
|
3089
3067
|
function(t) {
|
|
3090
3068
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3094,7 +3072,7 @@ var Pt = ti ? (
|
|
|
3094
3072
|
return r;
|
|
3095
3073
|
}
|
|
3096
3074
|
)
|
|
3097
|
-
),
|
|
3075
|
+
), cr = ti ? (
|
|
3098
3076
|
// Native
|
|
3099
3077
|
function(t, r) {
|
|
3100
3078
|
return t.codePointAt(r);
|
|
@@ -3108,7 +3086,7 @@ var Pt = ti ? (
|
|
|
3108
3086
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3109
3087
|
}
|
|
3110
3088
|
}
|
|
3111
|
-
),
|
|
3089
|
+
), ai = ri ? (
|
|
3112
3090
|
// Native
|
|
3113
3091
|
function(t) {
|
|
3114
3092
|
return t.trimStart();
|
|
@@ -3116,9 +3094,9 @@ var Pt = ti ? (
|
|
|
3116
3094
|
) : (
|
|
3117
3095
|
// Ponyfill
|
|
3118
3096
|
function(t) {
|
|
3119
|
-
return t.replace(
|
|
3097
|
+
return t.replace(Qn, "");
|
|
3120
3098
|
}
|
|
3121
|
-
),
|
|
3099
|
+
), ui = ni ? (
|
|
3122
3100
|
// Native
|
|
3123
3101
|
function(t) {
|
|
3124
3102
|
return t.trimEnd();
|
|
@@ -3126,32 +3104,32 @@ var Pt = ti ? (
|
|
|
3126
3104
|
) : (
|
|
3127
3105
|
// Ponyfill
|
|
3128
3106
|
function(t) {
|
|
3129
|
-
return t.replace(
|
|
3107
|
+
return t.replace(Jn, "");
|
|
3130
3108
|
}
|
|
3131
3109
|
);
|
|
3132
|
-
function
|
|
3110
|
+
function fr(e, t) {
|
|
3133
3111
|
return new RegExp(e, t);
|
|
3134
3112
|
}
|
|
3135
|
-
var
|
|
3136
|
-
if (
|
|
3137
|
-
var
|
|
3138
|
-
|
|
3113
|
+
var tt;
|
|
3114
|
+
if (Ke) {
|
|
3115
|
+
var Bt = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3116
|
+
tt = function(t, r) {
|
|
3139
3117
|
var n;
|
|
3140
|
-
|
|
3141
|
-
var i =
|
|
3118
|
+
Bt.lastIndex = r;
|
|
3119
|
+
var i = Bt.exec(t);
|
|
3142
3120
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3143
3121
|
};
|
|
3144
3122
|
} else
|
|
3145
|
-
|
|
3123
|
+
tt = function(t, r) {
|
|
3146
3124
|
for (var n = []; ; ) {
|
|
3147
|
-
var i =
|
|
3148
|
-
if (i === void 0 ||
|
|
3125
|
+
var i = cr(t, r);
|
|
3126
|
+
if (i === void 0 || pr(i) || fi(i))
|
|
3149
3127
|
break;
|
|
3150
3128
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3151
3129
|
}
|
|
3152
|
-
return
|
|
3130
|
+
return et.apply(void 0, n);
|
|
3153
3131
|
};
|
|
3154
|
-
var
|
|
3132
|
+
var li = (
|
|
3155
3133
|
/** @class */
|
|
3156
3134
|
function() {
|
|
3157
3135
|
function e(t, r) {
|
|
@@ -3182,7 +3160,7 @@ var fi = (
|
|
|
3182
3160
|
if (n)
|
|
3183
3161
|
break;
|
|
3184
3162
|
return this.error(v.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3185
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3163
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3186
3164
|
var s = this.parseTag(t, r);
|
|
3187
3165
|
if (s.err)
|
|
3188
3166
|
return s;
|
|
@@ -3215,7 +3193,7 @@ var fi = (
|
|
|
3215
3193
|
return o;
|
|
3216
3194
|
var s = o.val, a = this.clonePosition();
|
|
3217
3195
|
if (this.bumpIf("</")) {
|
|
3218
|
-
if (this.isEOF() || !
|
|
3196
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3219
3197
|
return this.error(v.INVALID_TAG, x(a, this.clonePosition()));
|
|
3220
3198
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3221
3199
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3233,7 +3211,7 @@ var fi = (
|
|
|
3233
3211
|
return this.error(v.INVALID_TAG, x(n, this.clonePosition()));
|
|
3234
3212
|
}, e.prototype.parseTagName = function() {
|
|
3235
3213
|
var t = this.offset();
|
|
3236
|
-
for (this.bump(); !this.isEOF() &&
|
|
3214
|
+
for (this.bump(); !this.isEOF() && ci(this.char()); )
|
|
3237
3215
|
this.bump();
|
|
3238
3216
|
return this.message.slice(t, this.offset());
|
|
3239
3217
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3262,7 +3240,7 @@ var fi = (
|
|
|
3262
3240
|
};
|
|
3263
3241
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3264
3242
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3265
|
-
!
|
|
3243
|
+
!hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3266
3244
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3267
3245
|
if (this.isEOF() || this.char() !== 39)
|
|
3268
3246
|
return null;
|
|
@@ -3296,12 +3274,12 @@ var fi = (
|
|
|
3296
3274
|
r.push(n);
|
|
3297
3275
|
this.bump();
|
|
3298
3276
|
}
|
|
3299
|
-
return
|
|
3277
|
+
return et.apply(void 0, r);
|
|
3300
3278
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3301
3279
|
if (this.isEOF())
|
|
3302
3280
|
return null;
|
|
3303
3281
|
var n = this.char();
|
|
3304
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3282
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3305
3283
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3306
3284
|
var n = this.clonePosition();
|
|
3307
3285
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3330,7 +3308,7 @@ var fi = (
|
|
|
3330
3308
|
return this.error(v.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3331
3309
|
}
|
|
3332
3310
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3333
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3311
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3334
3312
|
this.bumpTo(i);
|
|
3335
3313
|
var o = this.clonePosition(), s = x(t, o);
|
|
3336
3314
|
return { value: n, location: s };
|
|
@@ -3346,21 +3324,21 @@ var fi = (
|
|
|
3346
3324
|
var u = null;
|
|
3347
3325
|
if (this.bumpIf(",")) {
|
|
3348
3326
|
this.bumpSpace();
|
|
3349
|
-
var
|
|
3327
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3350
3328
|
if (f.err)
|
|
3351
3329
|
return f;
|
|
3352
|
-
var
|
|
3353
|
-
if (
|
|
3330
|
+
var c = ui(f.val);
|
|
3331
|
+
if (c.length === 0)
|
|
3354
3332
|
return this.error(v.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3355
|
-
var d = x(
|
|
3356
|
-
u = { style:
|
|
3333
|
+
var d = x(h, this.clonePosition());
|
|
3334
|
+
u = { style: c, styleLocation: d };
|
|
3357
3335
|
}
|
|
3358
3336
|
var m = this.tryParseArgumentClose(i);
|
|
3359
3337
|
if (m.err)
|
|
3360
3338
|
return m;
|
|
3361
3339
|
var p = x(i, this.clonePosition());
|
|
3362
|
-
if (u &&
|
|
3363
|
-
var y =
|
|
3340
|
+
if (u && Ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
3341
|
+
var y = ai(u.style.slice(2));
|
|
3364
3342
|
if (a === "number") {
|
|
3365
3343
|
var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
3366
3344
|
return f.err ? f : {
|
|
@@ -3371,15 +3349,15 @@ var fi = (
|
|
|
3371
3349
|
if (y.length === 0)
|
|
3372
3350
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
|
|
3373
3351
|
var _ = y;
|
|
3374
|
-
this.locale && (_ =
|
|
3375
|
-
var
|
|
3352
|
+
this.locale && (_ = Wn(y, this.locale));
|
|
3353
|
+
var c = {
|
|
3376
3354
|
type: se.dateTime,
|
|
3377
3355
|
pattern: _,
|
|
3378
3356
|
location: u.styleLocation,
|
|
3379
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3357
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(_) : {}
|
|
3380
3358
|
}, P = a === "date" ? C.date : C.time;
|
|
3381
3359
|
return {
|
|
3382
|
-
val: { type: P, value: n, location: p, style:
|
|
3360
|
+
val: { type: P, value: n, location: p, style: c },
|
|
3383
3361
|
err: null
|
|
3384
3362
|
};
|
|
3385
3363
|
}
|
|
@@ -3401,7 +3379,7 @@ var fi = (
|
|
|
3401
3379
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3402
3380
|
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, x(I, S({}, I)));
|
|
3403
3381
|
this.bumpSpace();
|
|
3404
|
-
var V = this.parseIdentifierIfPossible(),
|
|
3382
|
+
var V = this.parseIdentifierIfPossible(), M = 0;
|
|
3405
3383
|
if (a !== "select" && V.value === "offset") {
|
|
3406
3384
|
if (!this.bumpIf(":"))
|
|
3407
3385
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
@@ -3409,7 +3387,7 @@ var fi = (
|
|
|
3409
3387
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3410
3388
|
if (f.err)
|
|
3411
3389
|
return f;
|
|
3412
|
-
this.bumpSpace(), V = this.parseIdentifierIfPossible(),
|
|
3390
|
+
this.bumpSpace(), V = this.parseIdentifierIfPossible(), M = f.val;
|
|
3413
3391
|
}
|
|
3414
3392
|
var B = this.tryParsePluralOrSelectOptions(t, a, r, V);
|
|
3415
3393
|
if (B.err)
|
|
@@ -3422,7 +3400,7 @@ var fi = (
|
|
|
3422
3400
|
val: {
|
|
3423
3401
|
type: C.select,
|
|
3424
3402
|
value: n,
|
|
3425
|
-
options:
|
|
3403
|
+
options: Ct(B.val),
|
|
3426
3404
|
location: G
|
|
3427
3405
|
},
|
|
3428
3406
|
err: null
|
|
@@ -3430,8 +3408,8 @@ var fi = (
|
|
|
3430
3408
|
val: {
|
|
3431
3409
|
type: C.plural,
|
|
3432
3410
|
value: n,
|
|
3433
|
-
options:
|
|
3434
|
-
offset:
|
|
3411
|
+
options: Ct(B.val),
|
|
3412
|
+
offset: M,
|
|
3435
3413
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3436
3414
|
location: G
|
|
3437
3415
|
},
|
|
@@ -3481,7 +3459,7 @@ var fi = (
|
|
|
3481
3459
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3482
3460
|
var n = [];
|
|
3483
3461
|
try {
|
|
3484
|
-
n =
|
|
3462
|
+
n = jn(t);
|
|
3485
3463
|
} catch (i) {
|
|
3486
3464
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3487
3465
|
}
|
|
@@ -3490,24 +3468,24 @@ var fi = (
|
|
|
3490
3468
|
type: se.number,
|
|
3491
3469
|
tokens: n,
|
|
3492
3470
|
location: r,
|
|
3493
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3471
|
+
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
|
3494
3472
|
},
|
|
3495
3473
|
err: null
|
|
3496
3474
|
};
|
|
3497
3475
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3498
|
-
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value,
|
|
3476
|
+
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3499
3477
|
if (u.length === 0) {
|
|
3500
3478
|
var f = this.clonePosition();
|
|
3501
3479
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3502
|
-
var
|
|
3503
|
-
if (
|
|
3504
|
-
return
|
|
3505
|
-
|
|
3480
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3481
|
+
if (c.err)
|
|
3482
|
+
return c;
|
|
3483
|
+
h = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3506
3484
|
} else
|
|
3507
3485
|
break;
|
|
3508
3486
|
}
|
|
3509
3487
|
if (l.has(u))
|
|
3510
|
-
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3488
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3511
3489
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3512
3490
|
var d = this.clonePosition();
|
|
3513
3491
|
if (!this.bumpIf("{"))
|
|
@@ -3524,7 +3502,7 @@ var fi = (
|
|
|
3524
3502
|
value: m.val,
|
|
3525
3503
|
location: x(d, this.clonePosition())
|
|
3526
3504
|
}
|
|
3527
|
-
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value,
|
|
3505
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3528
3506
|
}
|
|
3529
3507
|
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3530
3508
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3538,7 +3516,7 @@ var fi = (
|
|
|
3538
3516
|
break;
|
|
3539
3517
|
}
|
|
3540
3518
|
var l = x(i, this.clonePosition());
|
|
3541
|
-
return o ? (s *= n,
|
|
3519
|
+
return o ? (s *= n, oi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3542
3520
|
}, e.prototype.offset = function() {
|
|
3543
3521
|
return this.position.offset;
|
|
3544
3522
|
}, e.prototype.isEOF = function() {
|
|
@@ -3553,7 +3531,7 @@ var fi = (
|
|
|
3553
3531
|
var t = this.position.offset;
|
|
3554
3532
|
if (t >= this.message.length)
|
|
3555
3533
|
throw Error("out of bound");
|
|
3556
|
-
var r =
|
|
3534
|
+
var r = cr(this.message, t);
|
|
3557
3535
|
if (r === void 0)
|
|
3558
3536
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3559
3537
|
return r;
|
|
@@ -3572,7 +3550,7 @@ var fi = (
|
|
|
3572
3550
|
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);
|
|
3573
3551
|
}
|
|
3574
3552
|
}, e.prototype.bumpIf = function(t) {
|
|
3575
|
-
if (
|
|
3553
|
+
if (Ht(this.message, t, this.offset())) {
|
|
3576
3554
|
for (var r = 0; r < t.length; r++)
|
|
3577
3555
|
this.bump();
|
|
3578
3556
|
return !0;
|
|
@@ -3594,7 +3572,7 @@ var fi = (
|
|
|
3594
3572
|
break;
|
|
3595
3573
|
}
|
|
3596
3574
|
}, e.prototype.bumpSpace = function() {
|
|
3597
|
-
for (; !this.isEOF() &&
|
|
3575
|
+
for (; !this.isEOF() && pr(this.char()); )
|
|
3598
3576
|
this.bump();
|
|
3599
3577
|
}, e.prototype.peek = function() {
|
|
3600
3578
|
if (this.isEOF())
|
|
@@ -3604,44 +3582,44 @@ var fi = (
|
|
|
3604
3582
|
}, e;
|
|
3605
3583
|
}()
|
|
3606
3584
|
);
|
|
3607
|
-
function
|
|
3585
|
+
function rt(e) {
|
|
3608
3586
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3609
3587
|
}
|
|
3610
|
-
function
|
|
3611
|
-
return
|
|
3588
|
+
function hi(e) {
|
|
3589
|
+
return rt(e) || e === 47;
|
|
3612
3590
|
}
|
|
3613
|
-
function
|
|
3591
|
+
function ci(e) {
|
|
3614
3592
|
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;
|
|
3615
3593
|
}
|
|
3616
|
-
function
|
|
3594
|
+
function pr(e) {
|
|
3617
3595
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3618
3596
|
}
|
|
3619
|
-
function
|
|
3597
|
+
function fi(e) {
|
|
3620
3598
|
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;
|
|
3621
3599
|
}
|
|
3622
|
-
function
|
|
3600
|
+
function nt(e) {
|
|
3623
3601
|
e.forEach(function(t) {
|
|
3624
|
-
if (delete t.location,
|
|
3602
|
+
if (delete t.location, nr(t) || ir(t))
|
|
3625
3603
|
for (var r in t.options)
|
|
3626
|
-
delete t.options[r].location,
|
|
3604
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3627
3605
|
else
|
|
3628
|
-
|
|
3606
|
+
er(t) && sr(t.style) || (tr(t) || rr(t)) && Ye(t.style) ? delete t.style.location : or(t) && nt(t.children);
|
|
3629
3607
|
});
|
|
3630
3608
|
}
|
|
3631
|
-
function
|
|
3609
|
+
function pi(e, t) {
|
|
3632
3610
|
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3633
|
-
var r = new
|
|
3611
|
+
var r = new li(e, t).parse();
|
|
3634
3612
|
if (r.err) {
|
|
3635
3613
|
var n = SyntaxError(v[r.err.kind]);
|
|
3636
3614
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3637
3615
|
}
|
|
3638
|
-
return t != null && t.captureLocation ||
|
|
3616
|
+
return t != null && t.captureLocation || nt(r.val), r.val;
|
|
3639
3617
|
}
|
|
3640
3618
|
var ae;
|
|
3641
3619
|
(function(e) {
|
|
3642
3620
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3643
3621
|
})(ae || (ae = {}));
|
|
3644
|
-
var
|
|
3622
|
+
var Oe = (
|
|
3645
3623
|
/** @class */
|
|
3646
3624
|
function(e) {
|
|
3647
3625
|
W(t, e);
|
|
@@ -3653,7 +3631,7 @@ var Re = (
|
|
|
3653
3631
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3654
3632
|
}, t;
|
|
3655
3633
|
}(Error)
|
|
3656
|
-
),
|
|
3634
|
+
), Pt = (
|
|
3657
3635
|
/** @class */
|
|
3658
3636
|
function(e) {
|
|
3659
3637
|
W(t, e);
|
|
@@ -3661,8 +3639,8 @@ var Re = (
|
|
|
3661
3639
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ae.INVALID_VALUE, o) || this;
|
|
3662
3640
|
}
|
|
3663
3641
|
return t;
|
|
3664
|
-
}(
|
|
3665
|
-
),
|
|
3642
|
+
}(Oe)
|
|
3643
|
+
), di = (
|
|
3666
3644
|
/** @class */
|
|
3667
3645
|
function(e) {
|
|
3668
3646
|
W(t, e);
|
|
@@ -3670,8 +3648,8 @@ var Re = (
|
|
|
3670
3648
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ae.INVALID_VALUE, i) || this;
|
|
3671
3649
|
}
|
|
3672
3650
|
return t;
|
|
3673
|
-
}(
|
|
3674
|
-
),
|
|
3651
|
+
}(Oe)
|
|
3652
|
+
), mi = (
|
|
3675
3653
|
/** @class */
|
|
3676
3654
|
function(e) {
|
|
3677
3655
|
W(t, e);
|
|
@@ -3679,129 +3657,129 @@ var Re = (
|
|
|
3679
3657
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ae.MISSING_VALUE, n) || this;
|
|
3680
3658
|
}
|
|
3681
3659
|
return t;
|
|
3682
|
-
}(
|
|
3683
|
-
),
|
|
3660
|
+
}(Oe)
|
|
3661
|
+
), N;
|
|
3684
3662
|
(function(e) {
|
|
3685
3663
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3686
|
-
})(
|
|
3687
|
-
function
|
|
3664
|
+
})(N || (N = {}));
|
|
3665
|
+
function bi(e) {
|
|
3688
3666
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3689
3667
|
var n = t[t.length - 1];
|
|
3690
|
-
return !n || n.type !==
|
|
3668
|
+
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3691
3669
|
}, []);
|
|
3692
3670
|
}
|
|
3693
|
-
function
|
|
3671
|
+
function yi(e) {
|
|
3694
3672
|
return typeof e == "function";
|
|
3695
3673
|
}
|
|
3696
3674
|
function we(e, t, r, n, i, o, s) {
|
|
3697
|
-
if (e.length === 1 &&
|
|
3675
|
+
if (e.length === 1 && Et(e[0]))
|
|
3698
3676
|
return [
|
|
3699
3677
|
{
|
|
3700
|
-
type:
|
|
3678
|
+
type: N.literal,
|
|
3701
3679
|
value: e[0].value
|
|
3702
3680
|
}
|
|
3703
3681
|
];
|
|
3704
3682
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3705
|
-
var
|
|
3706
|
-
if (
|
|
3683
|
+
var h = u[l];
|
|
3684
|
+
if (Et(h)) {
|
|
3707
3685
|
a.push({
|
|
3708
|
-
type:
|
|
3709
|
-
value:
|
|
3686
|
+
type: N.literal,
|
|
3687
|
+
value: h.value
|
|
3710
3688
|
});
|
|
3711
3689
|
continue;
|
|
3712
3690
|
}
|
|
3713
|
-
if (
|
|
3691
|
+
if (Un(h)) {
|
|
3714
3692
|
typeof o == "number" && a.push({
|
|
3715
|
-
type:
|
|
3693
|
+
type: N.literal,
|
|
3716
3694
|
value: r.getNumberFormat(t).format(o)
|
|
3717
3695
|
});
|
|
3718
3696
|
continue;
|
|
3719
3697
|
}
|
|
3720
|
-
var f =
|
|
3698
|
+
var f = h.value;
|
|
3721
3699
|
if (!(i && f in i))
|
|
3722
|
-
throw new
|
|
3723
|
-
var
|
|
3724
|
-
if (
|
|
3725
|
-
(!
|
|
3726
|
-
type: typeof
|
|
3727
|
-
value:
|
|
3700
|
+
throw new mi(f, s);
|
|
3701
|
+
var c = i[f];
|
|
3702
|
+
if ($n(h)) {
|
|
3703
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3704
|
+
type: typeof c == "string" ? N.literal : N.object,
|
|
3705
|
+
value: c
|
|
3728
3706
|
});
|
|
3729
3707
|
continue;
|
|
3730
3708
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var d = typeof
|
|
3709
|
+
if (tr(h)) {
|
|
3710
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ye(h.style) ? h.style.parsedOptions : void 0;
|
|
3733
3711
|
a.push({
|
|
3734
|
-
type:
|
|
3735
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3712
|
+
type: N.literal,
|
|
3713
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3736
3714
|
});
|
|
3737
3715
|
continue;
|
|
3738
3716
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var d = typeof
|
|
3717
|
+
if (rr(h)) {
|
|
3718
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ye(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3741
3719
|
a.push({
|
|
3742
|
-
type:
|
|
3743
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3720
|
+
type: N.literal,
|
|
3721
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3744
3722
|
});
|
|
3745
3723
|
continue;
|
|
3746
3724
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var d = typeof
|
|
3749
|
-
d && d.scale && (
|
|
3750
|
-
type:
|
|
3751
|
-
value: r.getNumberFormat(t, d).format(
|
|
3725
|
+
if (er(h)) {
|
|
3726
|
+
var d = typeof h.style == "string" ? n.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3727
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3728
|
+
type: N.literal,
|
|
3729
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3752
3730
|
});
|
|
3753
3731
|
continue;
|
|
3754
3732
|
}
|
|
3755
|
-
if (
|
|
3756
|
-
var m =
|
|
3757
|
-
if (!
|
|
3758
|
-
throw new
|
|
3759
|
-
var _ = we(m, t, r, n, i, o), P = y(_.map(function(
|
|
3760
|
-
return
|
|
3733
|
+
if (or(h)) {
|
|
3734
|
+
var m = h.children, p = h.value, y = i[p];
|
|
3735
|
+
if (!yi(y))
|
|
3736
|
+
throw new di(p, "function", s);
|
|
3737
|
+
var _ = we(m, t, r, n, i, o), P = y(_.map(function(M) {
|
|
3738
|
+
return M.value;
|
|
3761
3739
|
}));
|
|
3762
|
-
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(
|
|
3740
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(M) {
|
|
3763
3741
|
return {
|
|
3764
|
-
type: typeof
|
|
3765
|
-
value:
|
|
3742
|
+
type: typeof M == "string" ? N.literal : N.object,
|
|
3743
|
+
value: M
|
|
3766
3744
|
};
|
|
3767
3745
|
}));
|
|
3768
3746
|
}
|
|
3769
|
-
if (
|
|
3770
|
-
var I =
|
|
3747
|
+
if (nr(h)) {
|
|
3748
|
+
var I = h.options[c] || h.options.other;
|
|
3771
3749
|
if (!I)
|
|
3772
|
-
throw new
|
|
3750
|
+
throw new Pt(h.value, c, Object.keys(h.options), s);
|
|
3773
3751
|
a.push.apply(a, we(I.value, t, r, n, i));
|
|
3774
3752
|
continue;
|
|
3775
3753
|
}
|
|
3776
|
-
if (
|
|
3777
|
-
var I =
|
|
3754
|
+
if (ir(h)) {
|
|
3755
|
+
var I = h.options["=".concat(c)];
|
|
3778
3756
|
if (!I) {
|
|
3779
3757
|
if (!Intl.PluralRules)
|
|
3780
|
-
throw new
|
|
3758
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3781
3759
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3782
3760
|
`, ae.MISSING_INTL_API, s);
|
|
3783
|
-
var V = r.getPluralRules(t, { type:
|
|
3784
|
-
I =
|
|
3761
|
+
var V = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3762
|
+
I = h.options[V] || h.options.other;
|
|
3785
3763
|
}
|
|
3786
3764
|
if (!I)
|
|
3787
|
-
throw new
|
|
3788
|
-
a.push.apply(a, we(I.value, t, r, n, i,
|
|
3765
|
+
throw new Pt(h.value, c, Object.keys(h.options), s);
|
|
3766
|
+
a.push.apply(a, we(I.value, t, r, n, i, c - (h.offset || 0)));
|
|
3789
3767
|
continue;
|
|
3790
3768
|
}
|
|
3791
3769
|
}
|
|
3792
|
-
return
|
|
3770
|
+
return bi(a);
|
|
3793
3771
|
}
|
|
3794
|
-
function
|
|
3772
|
+
function gi(e, t) {
|
|
3795
3773
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3796
3774
|
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3797
3775
|
}, {})) : e;
|
|
3798
3776
|
}
|
|
3799
|
-
function
|
|
3777
|
+
function vi(e, t) {
|
|
3800
3778
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3801
|
-
return r[n] =
|
|
3779
|
+
return r[n] = gi(e[n], t[n]), r;
|
|
3802
3780
|
}, S({}, e)) : e;
|
|
3803
3781
|
}
|
|
3804
|
-
function
|
|
3782
|
+
function Fe(e) {
|
|
3805
3783
|
return {
|
|
3806
3784
|
create: function() {
|
|
3807
3785
|
return {
|
|
@@ -3815,39 +3793,39 @@ function Ge(e) {
|
|
|
3815
3793
|
}
|
|
3816
3794
|
};
|
|
3817
3795
|
}
|
|
3818
|
-
function
|
|
3796
|
+
function xi(e) {
|
|
3819
3797
|
return e === void 0 && (e = {
|
|
3820
3798
|
number: {},
|
|
3821
3799
|
dateTime: {},
|
|
3822
3800
|
pluralRules: {}
|
|
3823
3801
|
}), {
|
|
3824
|
-
getNumberFormat:
|
|
3802
|
+
getNumberFormat: $e(function() {
|
|
3825
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3826
3804
|
r[n] = arguments[n];
|
|
3827
3805
|
return new ((t = Intl.NumberFormat).bind.apply(t, ie([void 0], r, !1)))();
|
|
3828
3806
|
}, {
|
|
3829
|
-
cache:
|
|
3830
|
-
strategy:
|
|
3807
|
+
cache: Fe(e.number),
|
|
3808
|
+
strategy: Ue.variadic
|
|
3831
3809
|
}),
|
|
3832
|
-
getDateTimeFormat:
|
|
3810
|
+
getDateTimeFormat: $e(function() {
|
|
3833
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3834
3812
|
r[n] = arguments[n];
|
|
3835
3813
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, ie([void 0], r, !1)))();
|
|
3836
3814
|
}, {
|
|
3837
|
-
cache:
|
|
3838
|
-
strategy:
|
|
3815
|
+
cache: Fe(e.dateTime),
|
|
3816
|
+
strategy: Ue.variadic
|
|
3839
3817
|
}),
|
|
3840
|
-
getPluralRules:
|
|
3818
|
+
getPluralRules: $e(function() {
|
|
3841
3819
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3842
3820
|
r[n] = arguments[n];
|
|
3843
3821
|
return new ((t = Intl.PluralRules).bind.apply(t, ie([void 0], r, !1)))();
|
|
3844
3822
|
}, {
|
|
3845
|
-
cache:
|
|
3846
|
-
strategy:
|
|
3823
|
+
cache: Fe(e.pluralRules),
|
|
3824
|
+
strategy: Ue.variadic
|
|
3847
3825
|
})
|
|
3848
3826
|
};
|
|
3849
3827
|
}
|
|
3850
|
-
var
|
|
3828
|
+
var _i = (
|
|
3851
3829
|
/** @class */
|
|
3852
3830
|
function() {
|
|
3853
3831
|
function e(t, r, n, i) {
|
|
@@ -3861,10 +3839,10 @@ var wi = (
|
|
|
3861
3839
|
var u = o.formatToParts(l);
|
|
3862
3840
|
if (u.length === 1)
|
|
3863
3841
|
return u[0].value;
|
|
3864
|
-
var
|
|
3865
|
-
return !f.length ||
|
|
3842
|
+
var h = u.reduce(function(f, c) {
|
|
3843
|
+
return !f.length || c.type !== N.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3866
3844
|
}, []);
|
|
3867
|
-
return
|
|
3845
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3868
3846
|
}, this.formatToParts = function(l) {
|
|
3869
3847
|
return we(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3870
3848
|
}, this.resolvedOptions = function() {
|
|
@@ -3879,13 +3857,13 @@ var wi = (
|
|
|
3879
3857
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3880
3858
|
var s = i || {};
|
|
3881
3859
|
s.formatters;
|
|
3882
|
-
var a =
|
|
3860
|
+
var a = Yr(s, ["formatters"]);
|
|
3883
3861
|
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
|
3884
3862
|
} else
|
|
3885
3863
|
this.ast = t;
|
|
3886
3864
|
if (!Array.isArray(this.ast))
|
|
3887
3865
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3888
|
-
this.formats =
|
|
3866
|
+
this.formats = vi(e.formats, n), this.formatters = i && i.formatters || xi(this.formatterCache);
|
|
3889
3867
|
}
|
|
3890
3868
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3891
3869
|
get: function() {
|
|
@@ -3898,7 +3876,7 @@ var wi = (
|
|
|
3898
3876
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3899
3877
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3900
3878
|
}
|
|
3901
|
-
}, e.__parse =
|
|
3879
|
+
}, e.__parse = pi, e.formats = {
|
|
3902
3880
|
number: {
|
|
3903
3881
|
integer: {
|
|
3904
3882
|
maximumFractionDigits: 0
|
|
@@ -3959,7 +3937,7 @@ var wi = (
|
|
|
3959
3937
|
}, e;
|
|
3960
3938
|
}()
|
|
3961
3939
|
);
|
|
3962
|
-
function
|
|
3940
|
+
function Ei(e, t) {
|
|
3963
3941
|
if (t == null)
|
|
3964
3942
|
return;
|
|
3965
3943
|
if (t in e)
|
|
@@ -3980,92 +3958,92 @@ function Ti(e, t) {
|
|
|
3980
3958
|
n = void 0;
|
|
3981
3959
|
return n;
|
|
3982
3960
|
}
|
|
3983
|
-
const Q = {},
|
|
3961
|
+
const Q = {}, Si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), dr = (e, t) => {
|
|
3984
3962
|
if (t == null)
|
|
3985
3963
|
return;
|
|
3986
3964
|
if (t in Q && e in Q[t])
|
|
3987
3965
|
return Q[t][e];
|
|
3988
|
-
const r =
|
|
3966
|
+
const r = Re(t);
|
|
3989
3967
|
for (let n = 0; n < r.length; n++) {
|
|
3990
|
-
const i = r[n], o =
|
|
3968
|
+
const i = r[n], o = Ti(i, e);
|
|
3991
3969
|
if (o)
|
|
3992
|
-
return
|
|
3970
|
+
return Si(e, t, o);
|
|
3993
3971
|
}
|
|
3994
3972
|
};
|
|
3995
|
-
let
|
|
3973
|
+
let at;
|
|
3996
3974
|
const ge = Ae({});
|
|
3997
|
-
function
|
|
3998
|
-
return
|
|
3975
|
+
function wi(e) {
|
|
3976
|
+
return at[e] || null;
|
|
3999
3977
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return e in
|
|
3978
|
+
function mr(e) {
|
|
3979
|
+
return e in at;
|
|
4002
3980
|
}
|
|
4003
|
-
function
|
|
4004
|
-
if (!
|
|
3981
|
+
function Ti(e, t) {
|
|
3982
|
+
if (!mr(e))
|
|
4005
3983
|
return null;
|
|
4006
|
-
const r =
|
|
4007
|
-
return
|
|
3984
|
+
const r = wi(e);
|
|
3985
|
+
return Ei(r, t);
|
|
4008
3986
|
}
|
|
4009
|
-
function
|
|
3987
|
+
function Hi(e) {
|
|
4010
3988
|
if (e == null)
|
|
4011
3989
|
return;
|
|
4012
|
-
const t =
|
|
3990
|
+
const t = Re(e);
|
|
4013
3991
|
for (let r = 0; r < t.length; r++) {
|
|
4014
3992
|
const n = t[r];
|
|
4015
|
-
if (
|
|
3993
|
+
if (mr(n))
|
|
4016
3994
|
return n;
|
|
4017
3995
|
}
|
|
4018
3996
|
}
|
|
4019
|
-
function
|
|
4020
|
-
delete Q[e], ge.update((r) => (r[e] =
|
|
3997
|
+
function br(e, ...t) {
|
|
3998
|
+
delete Q[e], ge.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
|
4021
3999
|
}
|
|
4022
|
-
|
|
4000
|
+
he(
|
|
4023
4001
|
[ge],
|
|
4024
4002
|
([e]) => Object.keys(e)
|
|
4025
4003
|
);
|
|
4026
|
-
ge.subscribe((e) =>
|
|
4004
|
+
ge.subscribe((e) => at = e);
|
|
4027
4005
|
const Te = {};
|
|
4028
|
-
function
|
|
4006
|
+
function Ci(e, t) {
|
|
4029
4007
|
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
4030
4008
|
}
|
|
4031
|
-
function
|
|
4009
|
+
function yr(e) {
|
|
4032
4010
|
return Te[e];
|
|
4033
4011
|
}
|
|
4034
|
-
function
|
|
4035
|
-
return
|
|
4036
|
-
const r =
|
|
4012
|
+
function Bi(e) {
|
|
4013
|
+
return Re(e).map((t) => {
|
|
4014
|
+
const r = yr(t);
|
|
4037
4015
|
return [t, r ? [...r] : []];
|
|
4038
4016
|
}).filter(([, t]) => t.length > 0);
|
|
4039
4017
|
}
|
|
4040
|
-
function
|
|
4041
|
-
return e == null ? !1 :
|
|
4018
|
+
function it(e) {
|
|
4019
|
+
return e == null ? !1 : Re(e).some(
|
|
4042
4020
|
(t) => {
|
|
4043
4021
|
var r;
|
|
4044
|
-
return (r =
|
|
4022
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4045
4023
|
}
|
|
4046
4024
|
);
|
|
4047
4025
|
}
|
|
4048
|
-
function
|
|
4026
|
+
function Pi(e, t) {
|
|
4049
4027
|
return Promise.all(
|
|
4050
|
-
t.map((n) => (
|
|
4051
|
-
).then((n) =>
|
|
4028
|
+
t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
|
|
4029
|
+
).then((n) => br(e, ...n));
|
|
4052
4030
|
}
|
|
4053
4031
|
const pe = {};
|
|
4054
|
-
function
|
|
4055
|
-
if (!
|
|
4032
|
+
function gr(e) {
|
|
4033
|
+
if (!it(e))
|
|
4056
4034
|
return e in pe ? pe[e] : Promise.resolve();
|
|
4057
|
-
const t =
|
|
4035
|
+
const t = Bi(e);
|
|
4058
4036
|
return pe[e] = Promise.all(
|
|
4059
4037
|
t.map(
|
|
4060
|
-
([r, n]) =>
|
|
4038
|
+
([r, n]) => Pi(r, n)
|
|
4061
4039
|
)
|
|
4062
4040
|
).then(() => {
|
|
4063
|
-
if (
|
|
4064
|
-
return
|
|
4041
|
+
if (it(e))
|
|
4042
|
+
return gr(e);
|
|
4065
4043
|
delete pe[e];
|
|
4066
4044
|
}), pe[e];
|
|
4067
4045
|
}
|
|
4068
|
-
const
|
|
4046
|
+
const Ai = {
|
|
4069
4047
|
number: {
|
|
4070
4048
|
scientific: { notation: "scientific" },
|
|
4071
4049
|
engineering: { notation: "engineering" },
|
|
@@ -4094,78 +4072,78 @@ const Oi = {
|
|
|
4094
4072
|
timeZoneName: "short"
|
|
4095
4073
|
}
|
|
4096
4074
|
}
|
|
4097
|
-
},
|
|
4075
|
+
}, Oi = {
|
|
4098
4076
|
fallbackLocale: null,
|
|
4099
4077
|
loadingDelay: 200,
|
|
4100
|
-
formats:
|
|
4078
|
+
formats: Ai,
|
|
4101
4079
|
warnOnMissingMessages: !0,
|
|
4102
4080
|
handleMissingMessage: void 0,
|
|
4103
4081
|
ignoreTag: !0
|
|
4104
|
-
},
|
|
4082
|
+
}, Ri = Oi;
|
|
4105
4083
|
function ue() {
|
|
4106
|
-
return
|
|
4084
|
+
return Ri;
|
|
4107
4085
|
}
|
|
4108
|
-
const
|
|
4109
|
-
var
|
|
4086
|
+
const Ge = Ae(!1);
|
|
4087
|
+
var Mi = Object.defineProperty, Ii = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $i = (e, t) => {
|
|
4110
4088
|
for (var r in t || (t = {}))
|
|
4111
|
-
|
|
4112
|
-
if (
|
|
4113
|
-
for (var r of
|
|
4114
|
-
|
|
4089
|
+
Ni.call(t, r) && Ot(e, r, t[r]);
|
|
4090
|
+
if (At)
|
|
4091
|
+
for (var r of At(t))
|
|
4092
|
+
ki.call(t, r) && Ot(e, r, t[r]);
|
|
4115
4093
|
return e;
|
|
4116
|
-
},
|
|
4117
|
-
let
|
|
4094
|
+
}, Ui = (e, t) => Ii(e, Li(t));
|
|
4095
|
+
let ot;
|
|
4118
4096
|
const Ce = Ae(null);
|
|
4119
|
-
function
|
|
4097
|
+
function Rt(e) {
|
|
4120
4098
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4121
4099
|
}
|
|
4122
|
-
function
|
|
4123
|
-
const r =
|
|
4124
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4100
|
+
function Re(e, t = ue().fallbackLocale) {
|
|
4101
|
+
const r = Rt(e);
|
|
4102
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
4125
4103
|
}
|
|
4126
4104
|
function J() {
|
|
4127
|
-
return
|
|
4105
|
+
return ot != null ? ot : void 0;
|
|
4128
4106
|
}
|
|
4129
4107
|
Ce.subscribe((e) => {
|
|
4130
|
-
|
|
4108
|
+
ot = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4131
4109
|
});
|
|
4132
|
-
const
|
|
4133
|
-
if (e &&
|
|
4110
|
+
const Di = (e) => {
|
|
4111
|
+
if (e && Hi(e) && it(e)) {
|
|
4134
4112
|
const { loadingDelay: t } = ue();
|
|
4135
4113
|
let r;
|
|
4136
4114
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
4137
|
-
() =>
|
|
4115
|
+
() => Ge.set(!0),
|
|
4138
4116
|
t
|
|
4139
|
-
) :
|
|
4117
|
+
) : Ge.set(!0), gr(e).then(() => {
|
|
4140
4118
|
Ce.set(e);
|
|
4141
4119
|
}).finally(() => {
|
|
4142
|
-
clearTimeout(r),
|
|
4120
|
+
clearTimeout(r), Ge.set(!1);
|
|
4143
4121
|
});
|
|
4144
4122
|
}
|
|
4145
4123
|
return Ce.set(e);
|
|
4146
|
-
},
|
|
4147
|
-
set:
|
|
4148
|
-
}),
|
|
4124
|
+
}, ce = Ui($i({}, Ce), {
|
|
4125
|
+
set: Di
|
|
4126
|
+
}), Me = (e) => {
|
|
4149
4127
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4150
4128
|
return (n) => {
|
|
4151
4129
|
const i = JSON.stringify(n);
|
|
4152
4130
|
return i in t ? t[i] : t[i] = e(n);
|
|
4153
4131
|
};
|
|
4154
4132
|
};
|
|
4155
|
-
var
|
|
4133
|
+
var Fi = Object.defineProperty, Be = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
|
4156
4134
|
for (var r in t || (t = {}))
|
|
4157
|
-
|
|
4135
|
+
vr.call(t, r) && Mt(e, r, t[r]);
|
|
4158
4136
|
if (Be)
|
|
4159
4137
|
for (var r of Be(t))
|
|
4160
|
-
|
|
4138
|
+
xr.call(t, r) && Mt(e, r, t[r]);
|
|
4161
4139
|
return e;
|
|
4162
4140
|
}, fe = (e, t) => {
|
|
4163
4141
|
var r = {};
|
|
4164
4142
|
for (var n in e)
|
|
4165
|
-
|
|
4143
|
+
vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4166
4144
|
if (e != null && Be)
|
|
4167
4145
|
for (var n of Be(e))
|
|
4168
|
-
t.indexOf(n) < 0 &&
|
|
4146
|
+
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
|
4169
4147
|
return r;
|
|
4170
4148
|
};
|
|
4171
4149
|
const ye = (e, t) => {
|
|
@@ -4173,21 +4151,21 @@ const ye = (e, t) => {
|
|
|
4173
4151
|
if (e in r && t in r[e])
|
|
4174
4152
|
return r[e][t];
|
|
4175
4153
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4176
|
-
},
|
|
4154
|
+
}, Gi = Me(
|
|
4177
4155
|
(e) => {
|
|
4178
4156
|
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
|
4179
4157
|
if (r == null)
|
|
4180
4158
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4181
4159
|
return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
|
|
4182
4160
|
}
|
|
4183
|
-
),
|
|
4161
|
+
), ji = Me(
|
|
4184
4162
|
(e) => {
|
|
4185
4163
|
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
|
4186
4164
|
if (r == null)
|
|
4187
4165
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4188
4166
|
return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4189
4167
|
}
|
|
4190
|
-
),
|
|
4168
|
+
), Vi = Me(
|
|
4191
4169
|
(e) => {
|
|
4192
4170
|
var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
|
|
4193
4171
|
if (r == null)
|
|
@@ -4196,33 +4174,33 @@ const ye = (e, t) => {
|
|
|
4196
4174
|
);
|
|
4197
4175
|
return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4198
4176
|
}
|
|
4199
|
-
),
|
|
4177
|
+
), Xi = (e = {}) => {
|
|
4200
4178
|
var t = e, {
|
|
4201
4179
|
locale: r = J()
|
|
4202
4180
|
} = t, n = fe(t, [
|
|
4203
4181
|
"locale"
|
|
4204
4182
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4183
|
+
return Gi(ut({ locale: r }, n));
|
|
4184
|
+
}, zi = (e = {}) => {
|
|
4207
4185
|
var t = e, {
|
|
4208
4186
|
locale: r = J()
|
|
4209
4187
|
} = t, n = fe(t, [
|
|
4210
4188
|
"locale"
|
|
4211
4189
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4190
|
+
return ji(ut({ locale: r }, n));
|
|
4191
|
+
}, qi = (e = {}) => {
|
|
4214
4192
|
var t = e, {
|
|
4215
4193
|
locale: r = J()
|
|
4216
4194
|
} = t, n = fe(t, [
|
|
4217
4195
|
"locale"
|
|
4218
4196
|
]);
|
|
4219
|
-
return
|
|
4220
|
-
},
|
|
4197
|
+
return Vi(ut({ locale: r }, n));
|
|
4198
|
+
}, Wi = Me(
|
|
4221
4199
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4222
|
-
(e, t = J()) => new
|
|
4200
|
+
(e, t = J()) => new _i(e, t, ue().formats, {
|
|
4223
4201
|
ignoreTag: ue().ignoreTag
|
|
4224
4202
|
})
|
|
4225
|
-
),
|
|
4203
|
+
), Zi = (e, t = {}) => {
|
|
4226
4204
|
var r, n, i, o;
|
|
4227
4205
|
let s = t;
|
|
4228
4206
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4235,39 +4213,39 @@ const ye = (e, t) => {
|
|
|
4235
4213
|
throw new Error(
|
|
4236
4214
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4237
4215
|
);
|
|
4238
|
-
let
|
|
4239
|
-
if (!
|
|
4240
|
-
|
|
4241
|
-
else if (typeof
|
|
4216
|
+
let h = dr(e, l);
|
|
4217
|
+
if (!h)
|
|
4218
|
+
h = (o = (i = (n = (r = ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4219
|
+
else if (typeof h != "string")
|
|
4242
4220
|
return console.warn(
|
|
4243
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4244
|
-
),
|
|
4221
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4222
|
+
), h;
|
|
4245
4223
|
if (!a)
|
|
4246
|
-
return
|
|
4247
|
-
let f =
|
|
4224
|
+
return h;
|
|
4225
|
+
let f = h;
|
|
4248
4226
|
try {
|
|
4249
|
-
f =
|
|
4250
|
-
} catch (
|
|
4251
|
-
|
|
4227
|
+
f = Wi(h, l).format(a);
|
|
4228
|
+
} catch (c) {
|
|
4229
|
+
c instanceof Error && console.warn(
|
|
4252
4230
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4253
|
-
|
|
4231
|
+
c.message
|
|
4254
4232
|
);
|
|
4255
4233
|
}
|
|
4256
4234
|
return f;
|
|
4257
|
-
},
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
window.emWidgets = { topic:
|
|
4263
|
-
const
|
|
4264
|
-
function
|
|
4265
|
-
|
|
4266
|
-
}
|
|
4267
|
-
function
|
|
4268
|
-
|
|
4269
|
-
}
|
|
4270
|
-
const
|
|
4235
|
+
}, Qi = (e, t) => qi(t).format(e), Ji = (e, t) => zi(t).format(e), Yi = (e, t) => Xi(t).format(e), Ki = (e, t = J()) => dr(e, t), eo = he([ce, ge], () => Zi);
|
|
4236
|
+
he([ce], () => Qi);
|
|
4237
|
+
he([ce], () => Ji);
|
|
4238
|
+
he([ce], () => Yi);
|
|
4239
|
+
he([ce, ge], () => Ki);
|
|
4240
|
+
window.emWidgets = { topic: pn };
|
|
4241
|
+
const to = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4242
|
+
function It(e, t) {
|
|
4243
|
+
br(e, t);
|
|
4244
|
+
}
|
|
4245
|
+
function ro(e) {
|
|
4246
|
+
ce.set(e);
|
|
4247
|
+
}
|
|
4248
|
+
const Lt = {
|
|
4271
4249
|
en: {
|
|
4272
4250
|
titleRealityCheck: "Reality Check",
|
|
4273
4251
|
never: "Never",
|
|
@@ -4379,13 +4357,13 @@ const $t = {
|
|
|
4379
4357
|
setFrequency: "Set frequency"
|
|
4380
4358
|
}
|
|
4381
4359
|
};
|
|
4382
|
-
function
|
|
4360
|
+
function no(e, t) {
|
|
4383
4361
|
if (e) {
|
|
4384
4362
|
const r = document.createElement("style");
|
|
4385
4363
|
r.innerHTML = t, e.appendChild(r);
|
|
4386
4364
|
}
|
|
4387
4365
|
}
|
|
4388
|
-
function
|
|
4366
|
+
function io(e, t) {
|
|
4389
4367
|
const r = new URL(t);
|
|
4390
4368
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4391
4369
|
const i = document.createElement("style");
|
|
@@ -4394,7 +4372,7 @@ function ao(e, t) {
|
|
|
4394
4372
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4395
4373
|
});
|
|
4396
4374
|
}
|
|
4397
|
-
function
|
|
4375
|
+
function oo(e, t, r) {
|
|
4398
4376
|
if (window.emMessageBus) {
|
|
4399
4377
|
const n = document.createElement("style");
|
|
4400
4378
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4402,53 +4380,53 @@ function uo(e, t, r) {
|
|
|
4402
4380
|
});
|
|
4403
4381
|
}
|
|
4404
4382
|
}
|
|
4405
|
-
function
|
|
4406
|
-
|
|
4383
|
+
function so(e) {
|
|
4384
|
+
Ar(e, "svelte-1nvaky6", '.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, #D0046C));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, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.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}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerRealityCheckWrapperTablet{padding:40px 25% 100% 25%}.PlayerRealityCheckWrapperTablet .PlayerRealityCheckContent{grid-row-gap:40px}.PlayerRealityCheckWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerRealityCheckWrapperTablet .MenuReturnButton span{font-size:20px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4407
4385
|
}
|
|
4408
|
-
function
|
|
4386
|
+
function Nt(e, t, r) {
|
|
4409
4387
|
const n = e.slice();
|
|
4410
4388
|
return n[32] = t[r].value, n[33] = t[r].text, n[35] = r, n;
|
|
4411
4389
|
}
|
|
4412
|
-
function
|
|
4390
|
+
function ao(e, t, r) {
|
|
4413
4391
|
const n = e.slice();
|
|
4414
4392
|
return n[29] = t[r], n;
|
|
4415
4393
|
}
|
|
4416
|
-
function
|
|
4394
|
+
function uo(e) {
|
|
4417
4395
|
let t, r, n, i, o = (
|
|
4418
4396
|
/*$_*/
|
|
4419
4397
|
e[4]("titleRealityCheck") + ""
|
|
4420
|
-
), s, a, l, u,
|
|
4398
|
+
), s, a, l, u, h = (
|
|
4421
4399
|
/*$_*/
|
|
4422
4400
|
e[4]("realityCheckText") + ""
|
|
4423
|
-
), f,
|
|
4401
|
+
), f, c, d, m, p, y, _ = (
|
|
4424
4402
|
/*$_*/
|
|
4425
4403
|
e[4]("setFrequency") + ""
|
|
4426
|
-
), P, I, V,
|
|
4404
|
+
), P, I, V, M = (
|
|
4427
4405
|
/*isMobile*/
|
|
4428
|
-
e[5] &&
|
|
4406
|
+
e[5] && ho(e)
|
|
4429
4407
|
), B = (
|
|
4430
4408
|
/*realityCheckSuccess*/
|
|
4431
|
-
e[3] &&
|
|
4432
|
-
), G =
|
|
4409
|
+
e[3] && $t(e)
|
|
4410
|
+
), G = ze(
|
|
4433
4411
|
/*realityCheckOptions*/
|
|
4434
4412
|
e[6]
|
|
4435
|
-
),
|
|
4413
|
+
), R = [];
|
|
4436
4414
|
for (let H = 0; H < G.length; H += 1)
|
|
4437
|
-
|
|
4415
|
+
R[H] = Ut(Nt(e, G, H));
|
|
4438
4416
|
return {
|
|
4439
4417
|
c() {
|
|
4440
|
-
t = T("div"),
|
|
4441
|
-
for (let H = 0; H <
|
|
4442
|
-
|
|
4443
|
-
m = D(), p = T("div"), y = T("button"), P =
|
|
4418
|
+
t = T("div"), M && M.c(), r = D(), B && B.c(), n = D(), i = T("h2"), s = z(o), a = D(), l = T("div"), u = T("p"), f = z(h), c = D(), d = T("form");
|
|
4419
|
+
for (let H = 0; H < R.length; H += 1)
|
|
4420
|
+
R[H].c();
|
|
4421
|
+
m = D(), p = T("div"), y = T("button"), P = z(_), w(i, "class", "RealityCheckTitle " + /*isMobile*/
|
|
4444
4422
|
(e[5] ? "RealityCheckTitleNone" : "")), w(l, "class", "RealityCheckDescription " + /*isMobile*/
|
|
4445
4423
|
(e[5] ? "RealityCheckDescriptionMobile" : "")), w(y, "class", "PlayerRealityCheckButton"), w(p, "class", "BottomButtonsArea " + /*isMobile*/
|
|
4446
4424
|
(e[5] ? "BottomButtonsAreaMobile" : "")), w(d, "class", "customRadio"), w(t, "class", "containerTimeout");
|
|
4447
4425
|
},
|
|
4448
4426
|
m(H, j) {
|
|
4449
|
-
F(H, t, j),
|
|
4450
|
-
for (let
|
|
4451
|
-
|
|
4427
|
+
F(H, t, j), M && M.m(t, null), b(t, r), B && B.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, c), b(t, d);
|
|
4428
|
+
for (let O = 0; O < R.length; O += 1)
|
|
4429
|
+
R[O] && R[O].m(d, null);
|
|
4452
4430
|
b(d, m), b(d, p), b(p, y), b(y, P), I || (V = He(
|
|
4453
4431
|
y,
|
|
4454
4432
|
"click",
|
|
@@ -4459,50 +4437,50 @@ function ho(e) {
|
|
|
4459
4437
|
p(H, j) {
|
|
4460
4438
|
if (
|
|
4461
4439
|
/*isMobile*/
|
|
4462
|
-
H[5] &&
|
|
4463
|
-
H[3] ? B ? B.p(H, j) : (B =
|
|
4440
|
+
H[5] && M.p(H, j), /*realityCheckSuccess*/
|
|
4441
|
+
H[3] ? B ? B.p(H, j) : (B = $t(H), B.c(), B.m(t, n)) : B && (B.d(1), B = null), j[0] & /*$_*/
|
|
4464
4442
|
16 && o !== (o = /*$_*/
|
|
4465
4443
|
H[4]("titleRealityCheck") + "") && re(s, o), j[0] & /*$_*/
|
|
4466
|
-
16 &&
|
|
4467
|
-
H[4]("realityCheckText") + "") && re(f,
|
|
4444
|
+
16 && h !== (h = /*$_*/
|
|
4445
|
+
H[4]("realityCheckText") + "") && re(f, h), j[0] & /*realityCheckOptions, realityCheckValue*/
|
|
4468
4446
|
68
|
|
4469
4447
|
) {
|
|
4470
|
-
G =
|
|
4448
|
+
G = ze(
|
|
4471
4449
|
/*realityCheckOptions*/
|
|
4472
4450
|
H[6]
|
|
4473
4451
|
);
|
|
4474
|
-
let
|
|
4475
|
-
for (
|
|
4476
|
-
const ve =
|
|
4477
|
-
|
|
4452
|
+
let O;
|
|
4453
|
+
for (O = 0; O < G.length; O += 1) {
|
|
4454
|
+
const ve = Nt(H, G, O);
|
|
4455
|
+
R[O] ? R[O].p(ve, j) : (R[O] = Ut(ve), R[O].c(), R[O].m(d, m));
|
|
4478
4456
|
}
|
|
4479
|
-
for (;
|
|
4480
|
-
|
|
4481
|
-
|
|
4457
|
+
for (; O < R.length; O += 1)
|
|
4458
|
+
R[O].d(1);
|
|
4459
|
+
R.length = G.length;
|
|
4482
4460
|
}
|
|
4483
4461
|
j[0] & /*$_*/
|
|
4484
4462
|
16 && _ !== (_ = /*$_*/
|
|
4485
4463
|
H[4]("setFrequency") + "") && re(P, _);
|
|
4486
4464
|
},
|
|
4487
4465
|
d(H) {
|
|
4488
|
-
H && $(t),
|
|
4466
|
+
H && $(t), M && M.d(), B && B.d(), jt(R, H), I = !1, V();
|
|
4489
4467
|
}
|
|
4490
4468
|
};
|
|
4491
4469
|
}
|
|
4492
|
-
function
|
|
4470
|
+
function lo(e) {
|
|
4493
4471
|
let t, r, n, i, o, s, a, l, u;
|
|
4494
|
-
function
|
|
4472
|
+
function h(p, y) {
|
|
4495
4473
|
return (
|
|
4496
4474
|
/*isMobile*/
|
|
4497
|
-
p[5] ?
|
|
4475
|
+
p[5] ? fo : co
|
|
4498
4476
|
);
|
|
4499
4477
|
}
|
|
4500
|
-
let
|
|
4478
|
+
let c = h(e)(e), d = ze({ length: 6 }), m = [];
|
|
4501
4479
|
for (let p = 0; p < d.length; p += 1)
|
|
4502
|
-
m[p] =
|
|
4480
|
+
m[p] = po(ao(e, d, p));
|
|
4503
4481
|
return {
|
|
4504
4482
|
c() {
|
|
4505
|
-
t = T("div"),
|
|
4483
|
+
t = T("div"), c.c(), r = D(), n = T("div"), i = T("ui-skeleton"), o = D(), s = T("div");
|
|
4506
4484
|
for (let p = 0; p < m.length; p += 1)
|
|
4507
4485
|
m[p].c();
|
|
4508
4486
|
a = D(), l = T("div"), u = T("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
|
|
@@ -4518,33 +4496,33 @@ function fo(e) {
|
|
|
4518
4496
|
), w(l, "class", "Button"), w(s, "class", "SkeletonOptionContainer"), w(t, "class", "SkeletonContainer");
|
|
4519
4497
|
},
|
|
4520
4498
|
m(p, y) {
|
|
4521
|
-
F(p, t, y),
|
|
4499
|
+
F(p, t, y), c.m(t, null), b(t, r), b(t, n), b(n, i), b(t, o), b(t, s);
|
|
4522
4500
|
for (let _ = 0; _ < m.length; _ += 1)
|
|
4523
4501
|
m[_] && m[_].m(s, null);
|
|
4524
4502
|
b(s, a), b(s, l), b(l, u);
|
|
4525
4503
|
},
|
|
4526
4504
|
p(p, y) {
|
|
4527
|
-
|
|
4505
|
+
c.p(p, y);
|
|
4528
4506
|
},
|
|
4529
4507
|
d(p) {
|
|
4530
|
-
p && $(t),
|
|
4508
|
+
p && $(t), c.d(), jt(m, p);
|
|
4531
4509
|
}
|
|
4532
4510
|
};
|
|
4533
4511
|
}
|
|
4534
|
-
function
|
|
4535
|
-
let t, r, n, i, o, s, a, l, u,
|
|
4512
|
+
function ho(e) {
|
|
4513
|
+
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4536
4514
|
/*$_*/
|
|
4537
4515
|
e[4]("titleRealityCheck") + ""
|
|
4538
4516
|
), d, m, p, y = (
|
|
4539
4517
|
/*realityCheckSuccess*/
|
|
4540
|
-
e[3] &&
|
|
4518
|
+
e[3] && kt(e)
|
|
4541
4519
|
);
|
|
4542
4520
|
return {
|
|
4543
4521
|
c() {
|
|
4544
|
-
y && y.c(), t = D(), r = T("div"), n = Y("svg"), i = Y("defs"), o = Y("style"), s =
|
|
4522
|
+
y && y.c(), t = D(), r = T("div"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = z(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), a = Y("g"), l = Y("g"), u = Y("path"), h = D(), f = T("h2"), d = z(c), w(u, "class", "aaa"), w(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), w(u, "transform", "translate(15 15) rotate(180)"), w(l, "transform", "translate(20 158)"), w(a, "transform", "translate(-20 -158)"), w(n, "xmlns", "http://www.w3.org/2000/svg"), w(n, "width", "15"), w(n, "height", "15"), w(n, "viewBox", "0 0 15 15"), w(f, "class", "RealityCheckTitleMobile"), w(r, "class", "MenuReturnButton");
|
|
4545
4523
|
},
|
|
4546
4524
|
m(_, P) {
|
|
4547
|
-
y && y.m(_, P), F(_, t, P), F(_, r, P), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r,
|
|
4525
|
+
y && y.m(_, P), F(_, t, P), F(_, r, P), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r, h), b(r, f), b(f, d), m || (p = [
|
|
4548
4526
|
He(
|
|
4549
4527
|
r,
|
|
4550
4528
|
"click",
|
|
@@ -4556,23 +4534,23 @@ function po(e) {
|
|
|
4556
4534
|
},
|
|
4557
4535
|
p(_, P) {
|
|
4558
4536
|
/*realityCheckSuccess*/
|
|
4559
|
-
_[3] ? y ? y.p(_, P) : (y =
|
|
4560
|
-
16 &&
|
|
4561
|
-
_[4]("titleRealityCheck") + "") && re(d,
|
|
4537
|
+
_[3] ? y ? y.p(_, P) : (y = kt(_), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), P[0] & /*$_*/
|
|
4538
|
+
16 && c !== (c = /*$_*/
|
|
4539
|
+
_[4]("titleRealityCheck") + "") && re(d, c);
|
|
4562
4540
|
},
|
|
4563
4541
|
d(_) {
|
|
4564
4542
|
_ && ($(t), $(r)), y && y.d(_), m = !1, le(p);
|
|
4565
4543
|
}
|
|
4566
4544
|
};
|
|
4567
4545
|
}
|
|
4568
|
-
function
|
|
4546
|
+
function kt(e) {
|
|
4569
4547
|
let t, r = (
|
|
4570
4548
|
/*$_*/
|
|
4571
4549
|
e[4]("successMessage") + ""
|
|
4572
4550
|
), n;
|
|
4573
4551
|
return {
|
|
4574
4552
|
c() {
|
|
4575
|
-
t = T("div"), n =
|
|
4553
|
+
t = T("div"), n = z(r), w(t, "class", "successMessageMobile");
|
|
4576
4554
|
},
|
|
4577
4555
|
m(i, o) {
|
|
4578
4556
|
F(i, t, o), b(t, n);
|
|
@@ -4587,14 +4565,14 @@ function Dt(e) {
|
|
|
4587
4565
|
}
|
|
4588
4566
|
};
|
|
4589
4567
|
}
|
|
4590
|
-
function
|
|
4568
|
+
function $t(e) {
|
|
4591
4569
|
let t, r = (
|
|
4592
4570
|
/*$_*/
|
|
4593
4571
|
e[4]("successMessage") + ""
|
|
4594
4572
|
), n;
|
|
4595
4573
|
return {
|
|
4596
4574
|
c() {
|
|
4597
|
-
t = T("div"), n =
|
|
4575
|
+
t = T("div"), n = z(r), w(t, "class", "successMessage " + /*isMobile*/
|
|
4598
4576
|
(e[5] ? "successMessageMobile" : ""));
|
|
4599
4577
|
},
|
|
4600
4578
|
m(i, o) {
|
|
@@ -4610,31 +4588,31 @@ function Ft(e) {
|
|
|
4610
4588
|
}
|
|
4611
4589
|
};
|
|
4612
4590
|
}
|
|
4613
|
-
function
|
|
4591
|
+
function Ut(e) {
|
|
4614
4592
|
let t, r, n, i, o = (
|
|
4615
4593
|
/*text*/
|
|
4616
4594
|
e[33] + ""
|
|
4617
4595
|
), s, a, l, u;
|
|
4618
|
-
return a =
|
|
4596
|
+
return a = Mr(
|
|
4619
4597
|
/*$$binding_groups*/
|
|
4620
4598
|
e[19][0]
|
|
4621
4599
|
), {
|
|
4622
4600
|
c() {
|
|
4623
|
-
t = T("div"), r = T("input"), n = D(), i = T("label"), s =
|
|
4601
|
+
t = T("div"), r = T("input"), n = D(), i = T("label"), s = z(o), w(r, "type", "radio"), w(
|
|
4624
4602
|
r,
|
|
4625
4603
|
"id",
|
|
4626
4604
|
/*value*/
|
|
4627
4605
|
e[32]
|
|
4628
4606
|
), r.__value = /*value*/
|
|
4629
|
-
e[32],
|
|
4607
|
+
e[32], Lr(r, r.__value), w(
|
|
4630
4608
|
i,
|
|
4631
4609
|
"for",
|
|
4632
4610
|
/*value*/
|
|
4633
4611
|
e[32]
|
|
4634
4612
|
), a.p(r);
|
|
4635
4613
|
},
|
|
4636
|
-
m(
|
|
4637
|
-
F(
|
|
4614
|
+
m(h, f) {
|
|
4615
|
+
F(h, t, f), b(t, r), r.checked = r.__value === /*realityCheckValue*/
|
|
4638
4616
|
e[2], b(t, n), b(t, i), b(i, s), l || (u = He(
|
|
4639
4617
|
r,
|
|
4640
4618
|
"change",
|
|
@@ -4642,17 +4620,17 @@ function Gt(e) {
|
|
|
4642
4620
|
e[18]
|
|
4643
4621
|
), l = !0);
|
|
4644
4622
|
},
|
|
4645
|
-
p(
|
|
4623
|
+
p(h, f) {
|
|
4646
4624
|
f[0] & /*realityCheckValue*/
|
|
4647
4625
|
4 && (r.checked = r.__value === /*realityCheckValue*/
|
|
4648
|
-
|
|
4626
|
+
h[2]);
|
|
4649
4627
|
},
|
|
4650
|
-
d(
|
|
4651
|
-
|
|
4628
|
+
d(h) {
|
|
4629
|
+
h && $(t), a.r(), l = !1, u();
|
|
4652
4630
|
}
|
|
4653
4631
|
};
|
|
4654
4632
|
}
|
|
4655
|
-
function
|
|
4633
|
+
function co(e) {
|
|
4656
4634
|
let t;
|
|
4657
4635
|
return {
|
|
4658
4636
|
c() {
|
|
@@ -4661,13 +4639,13 @@ function mo(e) {
|
|
|
4661
4639
|
m(r, n) {
|
|
4662
4640
|
F(r, t, n);
|
|
4663
4641
|
},
|
|
4664
|
-
p:
|
|
4642
|
+
p: k,
|
|
4665
4643
|
d(r) {
|
|
4666
4644
|
r && $(t);
|
|
4667
4645
|
}
|
|
4668
4646
|
};
|
|
4669
4647
|
}
|
|
4670
|
-
function
|
|
4648
|
+
function fo(e) {
|
|
4671
4649
|
let t, r, n, i;
|
|
4672
4650
|
return {
|
|
4673
4651
|
c() {
|
|
@@ -4677,13 +4655,13 @@ function bo(e) {
|
|
|
4677
4655
|
m(o, s) {
|
|
4678
4656
|
F(o, t, s), b(t, r), b(t, n), b(t, i);
|
|
4679
4657
|
},
|
|
4680
|
-
p:
|
|
4658
|
+
p: k,
|
|
4681
4659
|
d(o) {
|
|
4682
4660
|
o && $(t);
|
|
4683
4661
|
}
|
|
4684
4662
|
};
|
|
4685
4663
|
}
|
|
4686
|
-
function
|
|
4664
|
+
function po(e) {
|
|
4687
4665
|
let t;
|
|
4688
4666
|
return {
|
|
4689
4667
|
c() {
|
|
@@ -4692,18 +4670,18 @@ function yo(e) {
|
|
|
4692
4670
|
m(r, n) {
|
|
4693
4671
|
F(r, t, n);
|
|
4694
4672
|
},
|
|
4695
|
-
p:
|
|
4673
|
+
p: k,
|
|
4696
4674
|
d(r) {
|
|
4697
4675
|
r && $(t);
|
|
4698
4676
|
}
|
|
4699
4677
|
};
|
|
4700
4678
|
}
|
|
4701
|
-
function
|
|
4679
|
+
function mo(e) {
|
|
4702
4680
|
let t;
|
|
4703
4681
|
function r(o, s) {
|
|
4704
4682
|
return (
|
|
4705
4683
|
/*skeletonLoading*/
|
|
4706
|
-
o[1] ?
|
|
4684
|
+
o[1] ? lo : uo
|
|
4707
4685
|
);
|
|
4708
4686
|
}
|
|
4709
4687
|
let n = r(e), i = n(e);
|
|
@@ -4718,17 +4696,17 @@ function go(e) {
|
|
|
4718
4696
|
p(o, s) {
|
|
4719
4697
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4720
4698
|
},
|
|
4721
|
-
i:
|
|
4722
|
-
o:
|
|
4699
|
+
i: k,
|
|
4700
|
+
o: k,
|
|
4723
4701
|
d(o) {
|
|
4724
4702
|
o && $(t), i.d(), e[20](null);
|
|
4725
4703
|
}
|
|
4726
4704
|
};
|
|
4727
4705
|
}
|
|
4728
|
-
function
|
|
4706
|
+
function bo(e, t, r) {
|
|
4729
4707
|
let n;
|
|
4730
|
-
|
|
4731
|
-
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource:
|
|
4708
|
+
Pr(e, eo, (g) => r(4, n = g));
|
|
4709
|
+
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, c, d = to(window.navigator.userAgent) !== "PC", m = !0, p, y = !1, _ = [];
|
|
4732
4710
|
const P = () => {
|
|
4733
4711
|
const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
|
|
4734
4712
|
E.append("X-SessionID", s);
|
|
@@ -4769,7 +4747,7 @@ function vo(e, t, r) {
|
|
|
4769
4747
|
text: E / 60 + " " + n("hours")
|
|
4770
4748
|
});
|
|
4771
4749
|
});
|
|
4772
|
-
},
|
|
4750
|
+
}, M = () => Le(this, null, function* () {
|
|
4773
4751
|
const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
|
|
4774
4752
|
E.append("X-SessionID", s), E.append("Content-Type", "application/json"), E.append("Accept", "application/json"), E.append("realityCheckValue", `${parseInt(p, 10)}`);
|
|
4775
4753
|
const Z = { method: "POST", headers: E };
|
|
@@ -4778,7 +4756,7 @@ function vo(e, t, r) {
|
|
|
4778
4756
|
(L) => (console.error(L), !1)
|
|
4779
4757
|
);
|
|
4780
4758
|
}), B = (g) => {
|
|
4781
|
-
g.preventDefault(),
|
|
4759
|
+
g.preventDefault(), M().then((E) => {
|
|
4782
4760
|
E && (G(), P());
|
|
4783
4761
|
});
|
|
4784
4762
|
}, G = () => {
|
|
@@ -4792,7 +4770,7 @@ function vo(e, t, r) {
|
|
|
4792
4770
|
},
|
|
4793
4771
|
window.location.href
|
|
4794
4772
|
), r(3, y = !0), setTimeout(() => r(3, y = !1), 2e3);
|
|
4795
|
-
},
|
|
4773
|
+
}, R = () => {
|
|
4796
4774
|
window.postMessage(
|
|
4797
4775
|
{
|
|
4798
4776
|
type: "PlayerAccountMenuActive",
|
|
@@ -4801,42 +4779,42 @@ function vo(e, t, r) {
|
|
|
4801
4779
|
window.location.href
|
|
4802
4780
|
);
|
|
4803
4781
|
}, H = () => {
|
|
4804
|
-
|
|
4782
|
+
ro(a);
|
|
4805
4783
|
}, j = () => {
|
|
4806
4784
|
fetch(f).then((E) => E.json()).then((E) => {
|
|
4807
4785
|
Object.keys(E).forEach((Z) => {
|
|
4808
|
-
|
|
4786
|
+
It(Z, E[Z]);
|
|
4809
4787
|
});
|
|
4810
4788
|
}).catch((E) => {
|
|
4811
4789
|
console.log(E);
|
|
4812
4790
|
});
|
|
4813
4791
|
};
|
|
4814
|
-
Object.keys(
|
|
4815
|
-
|
|
4816
|
-
}),
|
|
4792
|
+
Object.keys(Lt).forEach((g) => {
|
|
4793
|
+
It(g, Lt[g]);
|
|
4794
|
+
}), $r(() => () => {
|
|
4817
4795
|
});
|
|
4818
|
-
const
|
|
4819
|
-
function
|
|
4796
|
+
const O = [[]], ve = () => R();
|
|
4797
|
+
function _r() {
|
|
4820
4798
|
p = this.__value, r(2, p);
|
|
4821
4799
|
}
|
|
4822
|
-
function
|
|
4823
|
-
|
|
4824
|
-
|
|
4800
|
+
function Er(g) {
|
|
4801
|
+
je[g ? "unshift" : "push"](() => {
|
|
4802
|
+
c = g, r(0, c);
|
|
4825
4803
|
});
|
|
4826
4804
|
}
|
|
4827
4805
|
return e.$$set = (g) => {
|
|
4828
|
-
"endpoint" in g && r(9, i = g.endpoint), "playerid" in g && r(10, o = g.playerid), "session" in g && r(11, s = g.session), "lang" in g && r(12, a = g.lang), "clientstyling" in g && r(13, l = g.clientstyling), "clientstylingurl" in g && r(14, u = g.clientstylingurl), "mbsource" in g && r(15,
|
|
4806
|
+
"endpoint" in g && r(9, i = g.endpoint), "playerid" in g && r(10, o = g.playerid), "session" in g && r(11, s = g.session), "lang" in g && r(12, a = g.lang), "clientstyling" in g && r(13, l = g.clientstyling), "clientstylingurl" in g && r(14, u = g.clientstylingurl), "mbsource" in g && r(15, h = g.mbsource), "translationurl" in g && r(16, f = g.translationurl);
|
|
4829
4807
|
}, e.$$.update = () => {
|
|
4830
4808
|
e.$$.dirty[0] & /*lang*/
|
|
4831
4809
|
4096 && a && H(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4832
4810
|
3584 && i && o && s && P(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4833
4811
|
3584 && i && o && s && I(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4834
|
-
8193 && l &&
|
|
4835
|
-
16385 && u &&
|
|
4836
|
-
32769 &&
|
|
4812
|
+
8193 && l && c && no(c, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4813
|
+
16385 && u && c && io(c, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4814
|
+
32769 && h && c && oo(c, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4837
4815
|
65536 && f && j();
|
|
4838
4816
|
}, [
|
|
4839
|
-
|
|
4817
|
+
c,
|
|
4840
4818
|
m,
|
|
4841
4819
|
p,
|
|
4842
4820
|
y,
|
|
@@ -4844,29 +4822,29 @@ function vo(e, t, r) {
|
|
|
4844
4822
|
d,
|
|
4845
4823
|
_,
|
|
4846
4824
|
B,
|
|
4847
|
-
|
|
4825
|
+
R,
|
|
4848
4826
|
i,
|
|
4849
4827
|
o,
|
|
4850
4828
|
s,
|
|
4851
4829
|
a,
|
|
4852
4830
|
l,
|
|
4853
4831
|
u,
|
|
4854
|
-
|
|
4832
|
+
h,
|
|
4855
4833
|
f,
|
|
4856
4834
|
ve,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4835
|
+
_r,
|
|
4836
|
+
O,
|
|
4837
|
+
Er
|
|
4860
4838
|
];
|
|
4861
4839
|
}
|
|
4862
|
-
class
|
|
4840
|
+
class yo extends Qr {
|
|
4863
4841
|
constructor(t) {
|
|
4864
|
-
super(),
|
|
4842
|
+
super(), Wr(
|
|
4865
4843
|
this,
|
|
4866
4844
|
t,
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4845
|
+
bo,
|
|
4846
|
+
mo,
|
|
4847
|
+
Ft,
|
|
4870
4848
|
{
|
|
4871
4849
|
endpoint: 9,
|
|
4872
4850
|
playerid: 10,
|
|
@@ -4877,7 +4855,7 @@ class xo extends en {
|
|
|
4877
4855
|
mbsource: 15,
|
|
4878
4856
|
translationurl: 16
|
|
4879
4857
|
},
|
|
4880
|
-
|
|
4858
|
+
so,
|
|
4881
4859
|
[-1, -1]
|
|
4882
4860
|
);
|
|
4883
4861
|
}
|
|
@@ -4885,52 +4863,52 @@ class xo extends en {
|
|
|
4885
4863
|
return this.$$.ctx[9];
|
|
4886
4864
|
}
|
|
4887
4865
|
set endpoint(t) {
|
|
4888
|
-
this.$$set({ endpoint: t }),
|
|
4866
|
+
this.$$set({ endpoint: t }), X();
|
|
4889
4867
|
}
|
|
4890
4868
|
get playerid() {
|
|
4891
4869
|
return this.$$.ctx[10];
|
|
4892
4870
|
}
|
|
4893
4871
|
set playerid(t) {
|
|
4894
|
-
this.$$set({ playerid: t }),
|
|
4872
|
+
this.$$set({ playerid: t }), X();
|
|
4895
4873
|
}
|
|
4896
4874
|
get session() {
|
|
4897
4875
|
return this.$$.ctx[11];
|
|
4898
4876
|
}
|
|
4899
4877
|
set session(t) {
|
|
4900
|
-
this.$$set({ session: t }),
|
|
4878
|
+
this.$$set({ session: t }), X();
|
|
4901
4879
|
}
|
|
4902
4880
|
get lang() {
|
|
4903
4881
|
return this.$$.ctx[12];
|
|
4904
4882
|
}
|
|
4905
4883
|
set lang(t) {
|
|
4906
|
-
this.$$set({ lang: t }),
|
|
4884
|
+
this.$$set({ lang: t }), X();
|
|
4907
4885
|
}
|
|
4908
4886
|
get clientstyling() {
|
|
4909
4887
|
return this.$$.ctx[13];
|
|
4910
4888
|
}
|
|
4911
4889
|
set clientstyling(t) {
|
|
4912
|
-
this.$$set({ clientstyling: t }),
|
|
4890
|
+
this.$$set({ clientstyling: t }), X();
|
|
4913
4891
|
}
|
|
4914
4892
|
get clientstylingurl() {
|
|
4915
4893
|
return this.$$.ctx[14];
|
|
4916
4894
|
}
|
|
4917
4895
|
set clientstylingurl(t) {
|
|
4918
|
-
this.$$set({ clientstylingurl: t }),
|
|
4896
|
+
this.$$set({ clientstylingurl: t }), X();
|
|
4919
4897
|
}
|
|
4920
4898
|
get mbsource() {
|
|
4921
4899
|
return this.$$.ctx[15];
|
|
4922
4900
|
}
|
|
4923
4901
|
set mbsource(t) {
|
|
4924
|
-
this.$$set({ mbsource: t }),
|
|
4902
|
+
this.$$set({ mbsource: t }), X();
|
|
4925
4903
|
}
|
|
4926
4904
|
get translationurl() {
|
|
4927
4905
|
return this.$$.ctx[16];
|
|
4928
4906
|
}
|
|
4929
4907
|
set translationurl(t) {
|
|
4930
|
-
this.$$set({ translationurl: t }),
|
|
4908
|
+
this.$$set({ translationurl: t }), X();
|
|
4931
4909
|
}
|
|
4932
4910
|
}
|
|
4933
|
-
|
|
4911
|
+
Zr(yo, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4934
4912
|
export {
|
|
4935
|
-
|
|
4913
|
+
yo as default
|
|
4936
4914
|
};
|