@everymatrix/player-account-biometrics 1.55.0 → 1.56.2
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/{PlayerAccountBiometrics-BFnSVNSu.js → PlayerAccountBiometrics-CfKUs-Zn.js} +678 -618
- package/components/{PlayerAccountBiometrics-DS7oKWzQ.cjs → PlayerAccountBiometrics-DCou_eHK.cjs} +16 -3
- package/components/{PlayerAccountBiometrics-j3kXjzVq.js → PlayerAccountBiometrics-DXo_V1bD.js} +695 -635
- package/es2015/player-account-biometrics.cjs +1 -1
- package/es2015/player-account-biometrics.js +1 -1
- package/esnext/player-account-biometrics.js +1 -1
- package/package.json +1 -1
package/components/{PlayerAccountBiometrics-j3kXjzVq.js → PlayerAccountBiometrics-DXo_V1bD.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var cr = Object.defineProperty, fr = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var tt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var pr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Se = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
pr.call(t, r) && Se(e, r, t[r]);
|
|
8
8
|
if (tt)
|
|
9
9
|
for (var r of tt(t))
|
|
10
|
-
br.call(t, r) &&
|
|
10
|
+
br.call(t, r) && Se(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, nt = (e, t) => fr(e,
|
|
13
|
-
var
|
|
12
|
+
}, nt = (e, t) => fr(e, mr(t));
|
|
13
|
+
var O = (e, t, r) => (Se(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var it = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var it = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function N() {
|
|
31
31
|
}
|
|
32
32
|
function Pt(e) {
|
|
33
33
|
return e();
|
|
@@ -35,10 +35,10 @@ function Pt(e) {
|
|
|
35
35
|
function ot() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ue(e) {
|
|
39
39
|
e.forEach(Pt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ye(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Ot(e, t) {
|
|
@@ -51,7 +51,7 @@ function It(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return N;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -65,12 +65,13 @@ function E(e, t) {
|
|
|
65
65
|
function yr(e, t, r) {
|
|
66
66
|
const n = vr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
68
|
+
const i = I("style");
|
|
69
69
|
i.id = t, i.textContent = r, Er(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
function vr(e) {
|
|
73
|
-
if (!e)
|
|
73
|
+
if (!e)
|
|
74
|
+
return document;
|
|
74
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
76
|
return t && /** @type {ShadowRoot} */
|
|
76
77
|
t.host ? (
|
|
@@ -85,13 +86,13 @@ function Er(e, t) {
|
|
|
85
86
|
t
|
|
86
87
|
), t.sheet;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function Qe(e, t, r) {
|
|
89
90
|
e.insertBefore(t, r || null);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function ye(e) {
|
|
92
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function I(e) {
|
|
95
96
|
return document.createElement(e);
|
|
96
97
|
}
|
|
97
98
|
function j(e) {
|
|
@@ -125,84 +126,93 @@ function xr(e) {
|
|
|
125
126
|
}
|
|
126
127
|
), t;
|
|
127
128
|
}
|
|
128
|
-
let
|
|
129
|
+
let oe;
|
|
129
130
|
function ie(e) {
|
|
130
|
-
|
|
131
|
+
oe = e;
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
+
function Br() {
|
|
134
|
+
if (!oe)
|
|
135
|
+
throw new Error("Function called outside component initialization");
|
|
136
|
+
return oe;
|
|
137
|
+
}
|
|
138
|
+
function Sr(e) {
|
|
139
|
+
Br().$$.on_mount.push(e);
|
|
140
|
+
}
|
|
141
|
+
const X = [], Me = [];
|
|
133
142
|
let W = [];
|
|
134
|
-
const st = [],
|
|
143
|
+
const st = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
135
144
|
let Ce = !1;
|
|
136
|
-
function
|
|
137
|
-
Ce || (Ce = !0,
|
|
145
|
+
function wr() {
|
|
146
|
+
Ce || (Ce = !0, Tr.then(R));
|
|
138
147
|
}
|
|
139
|
-
function
|
|
148
|
+
function Le(e) {
|
|
140
149
|
W.push(e);
|
|
141
150
|
}
|
|
142
|
-
const
|
|
151
|
+
const Te = /* @__PURE__ */ new Set();
|
|
143
152
|
let k = 0;
|
|
144
|
-
function
|
|
153
|
+
function R() {
|
|
145
154
|
if (k !== 0)
|
|
146
155
|
return;
|
|
147
|
-
const e =
|
|
156
|
+
const e = oe;
|
|
148
157
|
do {
|
|
149
158
|
try {
|
|
150
159
|
for (; k < X.length; ) {
|
|
151
160
|
const t = X[k];
|
|
152
|
-
k++, ie(t),
|
|
161
|
+
k++, ie(t), Hr(t.$$);
|
|
153
162
|
}
|
|
154
163
|
} catch (t) {
|
|
155
164
|
throw X.length = 0, k = 0, t;
|
|
156
165
|
}
|
|
157
|
-
for (ie(null), X.length = 0, k = 0;
|
|
166
|
+
for (ie(null), X.length = 0, k = 0; Me.length; )
|
|
167
|
+
Me.pop()();
|
|
158
168
|
for (let t = 0; t < W.length; t += 1) {
|
|
159
169
|
const r = W[t];
|
|
160
|
-
|
|
170
|
+
Te.has(r) || (Te.add(r), r());
|
|
161
171
|
}
|
|
162
172
|
W.length = 0;
|
|
163
173
|
} while (X.length);
|
|
164
174
|
for (; st.length; )
|
|
165
175
|
st.pop()();
|
|
166
|
-
Ce = !1,
|
|
176
|
+
Ce = !1, Te.clear(), ie(e);
|
|
167
177
|
}
|
|
168
|
-
function
|
|
178
|
+
function Hr(e) {
|
|
169
179
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
180
|
+
e.update(), ue(e.before_update);
|
|
171
181
|
const t = e.dirty;
|
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
173
183
|
}
|
|
174
184
|
}
|
|
175
|
-
function
|
|
185
|
+
function Ar(e) {
|
|
176
186
|
const t = [], r = [];
|
|
177
187
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
178
188
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
e && e.i && (
|
|
189
|
+
const Pr = /* @__PURE__ */ new Set();
|
|
190
|
+
function Or(e, t) {
|
|
191
|
+
e && e.i && (Pr.delete(e), e.i(t));
|
|
182
192
|
}
|
|
183
|
-
function
|
|
193
|
+
function Ir(e, t, r) {
|
|
184
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
185
|
-
n && n.m(t, r),
|
|
186
|
-
const o = e.$$.on_mount.map(Pt).filter(
|
|
187
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
188
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Le(() => {
|
|
196
|
+
const o = e.$$.on_mount.map(Pt).filter(Ye);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Le);
|
|
189
199
|
}
|
|
190
|
-
function
|
|
200
|
+
function Nr(e, t) {
|
|
191
201
|
const r = e.$$;
|
|
192
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (Ar(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
193
203
|
}
|
|
194
|
-
function
|
|
195
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
204
|
+
function Mr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (X.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
196
206
|
}
|
|
197
|
-
function
|
|
198
|
-
const h =
|
|
207
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
|
+
const h = oe;
|
|
199
209
|
ie(e);
|
|
200
210
|
const u = e.$$ = {
|
|
201
211
|
fragment: null,
|
|
202
212
|
ctx: [],
|
|
203
213
|
// state
|
|
204
214
|
props: o,
|
|
205
|
-
update:
|
|
215
|
+
update: N,
|
|
206
216
|
not_equal: i,
|
|
207
217
|
bound: ot(),
|
|
208
218
|
// lifecycle
|
|
@@ -220,41 +230,41 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
220
230
|
};
|
|
221
231
|
s && s(u.root);
|
|
222
232
|
let l = !1;
|
|
223
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
224
|
-
const
|
|
225
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
226
|
-
}) : [], u.update(), l = !0,
|
|
233
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
234
|
+
const g = m.length ? m[0] : f;
|
|
235
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && Mr(e, c)), f;
|
|
236
|
+
}) : [], u.update(), l = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
227
237
|
if (t.hydrate) {
|
|
228
238
|
const c = _r(t.target);
|
|
229
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
239
|
+
u.fragment && u.fragment.l(c), c.forEach(ye);
|
|
230
240
|
} else
|
|
231
241
|
u.fragment && u.fragment.c();
|
|
232
|
-
t.intro &&
|
|
242
|
+
t.intro && Or(e.$$.fragment), Ir(e, t.target, t.anchor), R();
|
|
233
243
|
}
|
|
234
244
|
ie(h);
|
|
235
245
|
}
|
|
236
|
-
let
|
|
237
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Mt;
|
|
247
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
238
248
|
constructor(t, r, n) {
|
|
239
249
|
super();
|
|
240
250
|
/** The Svelte component constructor */
|
|
241
|
-
|
|
251
|
+
O(this, "$$ctor");
|
|
242
252
|
/** Slots */
|
|
243
|
-
|
|
253
|
+
O(this, "$$s");
|
|
244
254
|
/** The Svelte component instance */
|
|
245
|
-
|
|
255
|
+
O(this, "$$c");
|
|
246
256
|
/** Whether or not the custom element is connected */
|
|
247
|
-
|
|
257
|
+
O(this, "$$cn", !1);
|
|
248
258
|
/** Component props data */
|
|
249
|
-
|
|
259
|
+
O(this, "$$d", {});
|
|
250
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
251
|
-
|
|
261
|
+
O(this, "$$r", !1);
|
|
252
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
253
|
-
|
|
263
|
+
O(this, "$$p_d", {});
|
|
254
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
255
|
-
|
|
265
|
+
O(this, "$$l", {});
|
|
256
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
257
|
-
|
|
267
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
258
268
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
259
269
|
}
|
|
260
270
|
addEventListener(t, r, n) {
|
|
@@ -278,17 +288,17 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
278
288
|
let s;
|
|
279
289
|
return {
|
|
280
290
|
c: function() {
|
|
281
|
-
s =
|
|
291
|
+
s = I("slot"), o !== "default" && B(s, "name", o);
|
|
282
292
|
},
|
|
283
293
|
/**
|
|
284
294
|
* @param {HTMLElement} target
|
|
285
295
|
* @param {HTMLElement} [anchor]
|
|
286
296
|
*/
|
|
287
297
|
m: function(u, l) {
|
|
288
|
-
|
|
298
|
+
Qe(u, s, l);
|
|
289
299
|
},
|
|
290
300
|
d: function(u) {
|
|
291
|
-
u &&
|
|
301
|
+
u && ye(s);
|
|
292
302
|
}
|
|
293
303
|
};
|
|
294
304
|
};
|
|
@@ -300,7 +310,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
300
310
|
o in n && (r[o] = [t(o)]);
|
|
301
311
|
for (const o of this.attributes) {
|
|
302
312
|
const s = this.$$g_p(o.name);
|
|
303
|
-
s in this.$$d || (this.$$d[s] =
|
|
313
|
+
s in this.$$d || (this.$$d[s] = fe(s, o.value, this.$$p_d, "toProp"));
|
|
304
314
|
}
|
|
305
315
|
for (const o in this.$$p_d)
|
|
306
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -317,7 +327,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
317
327
|
this.$$r = !0;
|
|
318
328
|
for (const o in this.$$p_d)
|
|
319
329
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
320
|
-
const s =
|
|
330
|
+
const s = fe(
|
|
321
331
|
o,
|
|
322
332
|
this.$$d[o],
|
|
323
333
|
this.$$p_d,
|
|
@@ -341,7 +351,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
341
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
342
352
|
attributeChangedCallback(t, r, n) {
|
|
343
353
|
var i;
|
|
344
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
345
355
|
}
|
|
346
356
|
disconnectedCallback() {
|
|
347
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -354,7 +364,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
354
364
|
) || t;
|
|
355
365
|
}
|
|
356
366
|
});
|
|
357
|
-
function
|
|
367
|
+
function fe(e, t, r, n) {
|
|
358
368
|
var o;
|
|
359
369
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
360
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -384,8 +394,8 @@ function ce(e, t, r, n) {
|
|
|
384
394
|
return t;
|
|
385
395
|
}
|
|
386
396
|
}
|
|
387
|
-
function
|
|
388
|
-
let s = class extends
|
|
397
|
+
function Lr(e, t, r, n, i, o) {
|
|
398
|
+
let s = class extends Mt {
|
|
389
399
|
constructor() {
|
|
390
400
|
super(e, r, i), this.$$p_d = t;
|
|
391
401
|
}
|
|
@@ -402,7 +412,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
402
412
|
},
|
|
403
413
|
set(h) {
|
|
404
414
|
var u;
|
|
405
|
-
h =
|
|
415
|
+
h = fe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
406
416
|
}
|
|
407
417
|
});
|
|
408
418
|
}), n.forEach((a) => {
|
|
@@ -415,7 +425,7 @@ function Cr(e, t, r, n, i, o) {
|
|
|
415
425
|
}), e.element = /** @type {any} */
|
|
416
426
|
s, s;
|
|
417
427
|
}
|
|
418
|
-
class
|
|
428
|
+
class $r {
|
|
419
429
|
constructor() {
|
|
420
430
|
/**
|
|
421
431
|
* ### PRIVATE API
|
|
@@ -424,7 +434,7 @@ class Mr {
|
|
|
424
434
|
*
|
|
425
435
|
* @type {any}
|
|
426
436
|
*/
|
|
427
|
-
|
|
437
|
+
O(this, "$$");
|
|
428
438
|
/**
|
|
429
439
|
* ### PRIVATE API
|
|
430
440
|
*
|
|
@@ -432,11 +442,11 @@ class Mr {
|
|
|
432
442
|
*
|
|
433
443
|
* @type {any}
|
|
434
444
|
*/
|
|
435
|
-
|
|
445
|
+
O(this, "$$set");
|
|
436
446
|
}
|
|
437
447
|
/** @returns {void} */
|
|
438
448
|
$destroy() {
|
|
439
|
-
|
|
449
|
+
Nr(this, 1), this.$destroy = N;
|
|
440
450
|
}
|
|
441
451
|
/**
|
|
442
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -445,8 +455,8 @@ class Mr {
|
|
|
445
455
|
* @returns {() => void}
|
|
446
456
|
*/
|
|
447
457
|
$on(t, r) {
|
|
448
|
-
if (!
|
|
449
|
-
return
|
|
458
|
+
if (!Ye(r))
|
|
459
|
+
return N;
|
|
450
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
451
461
|
return n.push(r), () => {
|
|
452
462
|
const i = n.indexOf(r);
|
|
@@ -461,83 +471,106 @@ class Mr {
|
|
|
461
471
|
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
462
472
|
}
|
|
463
473
|
}
|
|
464
|
-
const
|
|
465
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
466
|
-
|
|
467
|
-
|
|
474
|
+
const Rr = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
|
|
476
|
+
/*! *****************************************************************************
|
|
477
|
+
Copyright (c) Microsoft Corporation.
|
|
478
|
+
|
|
479
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
480
|
+
purpose with or without fee is hereby granted.
|
|
481
|
+
|
|
482
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
483
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
484
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
485
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
486
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
487
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
488
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
489
|
+
***************************************************************************** */
|
|
490
|
+
var $e = function(e, t) {
|
|
491
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
468
492
|
r.__proto__ = n;
|
|
469
493
|
} || function(r, n) {
|
|
470
|
-
for (var i in n)
|
|
471
|
-
|
|
494
|
+
for (var i in n)
|
|
495
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
496
|
+
}, $e(e, t);
|
|
472
497
|
};
|
|
473
498
|
function $(e, t) {
|
|
474
499
|
if (typeof t != "function" && t !== null)
|
|
475
500
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
476
|
-
|
|
501
|
+
$e(e, t);
|
|
477
502
|
function r() {
|
|
478
503
|
this.constructor = e;
|
|
479
504
|
}
|
|
480
505
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
481
506
|
}
|
|
482
|
-
var
|
|
483
|
-
return
|
|
507
|
+
var y = function() {
|
|
508
|
+
return y = Object.assign || function(t) {
|
|
484
509
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
485
510
|
r = arguments[n];
|
|
486
|
-
for (var o in r)
|
|
511
|
+
for (var o in r)
|
|
512
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
487
513
|
}
|
|
488
514
|
return t;
|
|
489
|
-
},
|
|
515
|
+
}, y.apply(this, arguments);
|
|
490
516
|
};
|
|
491
|
-
function
|
|
517
|
+
function Dr(e, t) {
|
|
492
518
|
var r = {};
|
|
493
|
-
for (var n in e)
|
|
519
|
+
for (var n in e)
|
|
520
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
494
521
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
495
522
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
496
523
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
497
524
|
return r;
|
|
498
525
|
}
|
|
499
|
-
function
|
|
526
|
+
function Re(e) {
|
|
500
527
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
501
|
-
if (r)
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
528
|
+
if (r)
|
|
529
|
+
return r.call(e);
|
|
530
|
+
if (e && typeof e.length == "number")
|
|
531
|
+
return {
|
|
532
|
+
next: function() {
|
|
533
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
534
|
+
}
|
|
535
|
+
};
|
|
507
536
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
508
537
|
}
|
|
509
|
-
function
|
|
538
|
+
function De(e, t) {
|
|
510
539
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
511
|
-
if (!r)
|
|
540
|
+
if (!r)
|
|
541
|
+
return e;
|
|
512
542
|
var n = r.call(e), i, o = [], s;
|
|
513
543
|
try {
|
|
514
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
544
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
545
|
+
o.push(i.value);
|
|
515
546
|
} catch (a) {
|
|
516
547
|
s = { error: a };
|
|
517
548
|
} finally {
|
|
518
549
|
try {
|
|
519
550
|
i && !i.done && (r = n.return) && r.call(n);
|
|
520
551
|
} finally {
|
|
521
|
-
if (s)
|
|
552
|
+
if (s)
|
|
553
|
+
throw s.error;
|
|
522
554
|
}
|
|
523
555
|
}
|
|
524
556
|
return o;
|
|
525
557
|
}
|
|
526
558
|
function z(e, t, r) {
|
|
527
|
-
if (r || arguments.length === 2)
|
|
528
|
-
(
|
|
529
|
-
|
|
559
|
+
if (r || arguments.length === 2)
|
|
560
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
561
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
562
|
+
return e.concat(o || t);
|
|
530
563
|
}
|
|
531
564
|
function L(e) {
|
|
532
565
|
return typeof e == "function";
|
|
533
566
|
}
|
|
534
|
-
function
|
|
567
|
+
function Ct(e) {
|
|
535
568
|
var t = function(n) {
|
|
536
569
|
Error.call(n), n.stack = new Error().stack;
|
|
537
570
|
}, r = e(t);
|
|
538
571
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
539
572
|
}
|
|
540
|
-
var
|
|
573
|
+
var we = Ct(function(e) {
|
|
541
574
|
return function(r) {
|
|
542
575
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
543
576
|
` + r.map(function(n, i) {
|
|
@@ -546,13 +579,13 @@ var Te = Mt(function(e) {
|
|
|
546
579
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
547
580
|
};
|
|
548
581
|
});
|
|
549
|
-
function
|
|
582
|
+
function Ue(e, t) {
|
|
550
583
|
if (e) {
|
|
551
584
|
var r = e.indexOf(t);
|
|
552
585
|
0 <= r && e.splice(r, 1);
|
|
553
586
|
}
|
|
554
587
|
}
|
|
555
|
-
var
|
|
588
|
+
var ve = function() {
|
|
556
589
|
function e(t) {
|
|
557
590
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
558
591
|
}
|
|
@@ -564,17 +597,18 @@ var ye = function() {
|
|
|
564
597
|
if (s)
|
|
565
598
|
if (this._parentage = null, Array.isArray(s))
|
|
566
599
|
try {
|
|
567
|
-
for (var a =
|
|
600
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
568
601
|
var u = h.value;
|
|
569
602
|
u.remove(this);
|
|
570
603
|
}
|
|
571
|
-
} catch (
|
|
572
|
-
t = { error:
|
|
604
|
+
} catch (p) {
|
|
605
|
+
t = { error: p };
|
|
573
606
|
} finally {
|
|
574
607
|
try {
|
|
575
608
|
h && !h.done && (r = a.return) && r.call(a);
|
|
576
609
|
} finally {
|
|
577
|
-
if (t)
|
|
610
|
+
if (t)
|
|
611
|
+
throw t.error;
|
|
578
612
|
}
|
|
579
613
|
}
|
|
580
614
|
else
|
|
@@ -583,33 +617,34 @@ var ye = function() {
|
|
|
583
617
|
if (L(l))
|
|
584
618
|
try {
|
|
585
619
|
l();
|
|
586
|
-
} catch (
|
|
587
|
-
o =
|
|
620
|
+
} catch (p) {
|
|
621
|
+
o = p instanceof we ? p.errors : [p];
|
|
588
622
|
}
|
|
589
623
|
var c = this._finalizers;
|
|
590
624
|
if (c) {
|
|
591
625
|
this._finalizers = null;
|
|
592
626
|
try {
|
|
593
|
-
for (var f =
|
|
594
|
-
var
|
|
627
|
+
for (var f = Re(c), m = f.next(); !m.done; m = f.next()) {
|
|
628
|
+
var g = m.value;
|
|
595
629
|
try {
|
|
596
|
-
at(
|
|
597
|
-
} catch (
|
|
598
|
-
o = o != null ? o : [],
|
|
630
|
+
at(g);
|
|
631
|
+
} catch (p) {
|
|
632
|
+
o = o != null ? o : [], p instanceof we ? o = z(z([], De(o)), De(p.errors)) : o.push(p);
|
|
599
633
|
}
|
|
600
634
|
}
|
|
601
|
-
} catch (
|
|
602
|
-
n = { error:
|
|
635
|
+
} catch (p) {
|
|
636
|
+
n = { error: p };
|
|
603
637
|
} finally {
|
|
604
638
|
try {
|
|
605
|
-
|
|
639
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
606
640
|
} finally {
|
|
607
|
-
if (n)
|
|
641
|
+
if (n)
|
|
642
|
+
throw n.error;
|
|
608
643
|
}
|
|
609
644
|
}
|
|
610
645
|
}
|
|
611
646
|
if (o)
|
|
612
|
-
throw new
|
|
647
|
+
throw new we(o);
|
|
613
648
|
}
|
|
614
649
|
}, e.prototype.add = function(t) {
|
|
615
650
|
var r;
|
|
@@ -632,17 +667,17 @@ var ye = function() {
|
|
|
632
667
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
633
668
|
}, e.prototype._removeParent = function(t) {
|
|
634
669
|
var r = this._parentage;
|
|
635
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
670
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
636
671
|
}, e.prototype.remove = function(t) {
|
|
637
672
|
var r = this._finalizers;
|
|
638
|
-
r &&
|
|
673
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
639
674
|
}, e.EMPTY = function() {
|
|
640
675
|
var t = new e();
|
|
641
676
|
return t.closed = !0, t;
|
|
642
677
|
}(), e;
|
|
643
|
-
}(), Lt =
|
|
678
|
+
}(), Lt = ve.EMPTY;
|
|
644
679
|
function $t(e) {
|
|
645
|
-
return e instanceof
|
|
680
|
+
return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
646
681
|
}
|
|
647
682
|
function at(e) {
|
|
648
683
|
L(e) ? e() : e.unsubscribe();
|
|
@@ -653,35 +688,35 @@ var Rt = {
|
|
|
653
688
|
Promise: void 0,
|
|
654
689
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
655
690
|
useDeprecatedNextContext: !1
|
|
656
|
-
},
|
|
691
|
+
}, Ur = {
|
|
657
692
|
setTimeout: function(e, t) {
|
|
658
693
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
659
694
|
r[n - 2] = arguments[n];
|
|
660
|
-
return setTimeout.apply(void 0, z([e, t],
|
|
695
|
+
return setTimeout.apply(void 0, z([e, t], De(r)));
|
|
661
696
|
},
|
|
662
697
|
clearTimeout: function(e) {
|
|
663
698
|
return clearTimeout(e);
|
|
664
699
|
},
|
|
665
700
|
delegate: void 0
|
|
666
701
|
};
|
|
667
|
-
function
|
|
668
|
-
|
|
702
|
+
function Gr(e) {
|
|
703
|
+
Ur.setTimeout(function() {
|
|
669
704
|
throw e;
|
|
670
705
|
});
|
|
671
706
|
}
|
|
672
707
|
function ut() {
|
|
673
708
|
}
|
|
674
|
-
function
|
|
709
|
+
function me(e) {
|
|
675
710
|
e();
|
|
676
711
|
}
|
|
677
712
|
var Dt = function(e) {
|
|
678
713
|
$(t, e);
|
|
679
714
|
function t(r) {
|
|
680
715
|
var n = e.call(this) || this;
|
|
681
|
-
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination =
|
|
716
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Vr, n;
|
|
682
717
|
}
|
|
683
718
|
return t.create = function(r, n, i) {
|
|
684
|
-
return new
|
|
719
|
+
return new Ge(r, n, i);
|
|
685
720
|
}, t.prototype.next = function(r) {
|
|
686
721
|
this.isStopped || this._next(r);
|
|
687
722
|
}, t.prototype.error = function(r) {
|
|
@@ -705,11 +740,11 @@ var Dt = function(e) {
|
|
|
705
740
|
this.unsubscribe();
|
|
706
741
|
}
|
|
707
742
|
}, t;
|
|
708
|
-
}(
|
|
743
|
+
}(ve), Fr = Function.prototype.bind;
|
|
709
744
|
function He(e, t) {
|
|
710
|
-
return
|
|
745
|
+
return Fr.call(e, t);
|
|
711
746
|
}
|
|
712
|
-
var
|
|
747
|
+
var jr = function() {
|
|
713
748
|
function e(t) {
|
|
714
749
|
this.partialObserver = t;
|
|
715
750
|
}
|
|
@@ -719,7 +754,7 @@ var Gr = function() {
|
|
|
719
754
|
try {
|
|
720
755
|
r.next(t);
|
|
721
756
|
} catch (n) {
|
|
722
|
-
|
|
757
|
+
le(n);
|
|
723
758
|
}
|
|
724
759
|
}, e.prototype.error = function(t) {
|
|
725
760
|
var r = this.partialObserver;
|
|
@@ -727,20 +762,20 @@ var Gr = function() {
|
|
|
727
762
|
try {
|
|
728
763
|
r.error(t);
|
|
729
764
|
} catch (n) {
|
|
730
|
-
|
|
765
|
+
le(n);
|
|
731
766
|
}
|
|
732
767
|
else
|
|
733
|
-
|
|
768
|
+
le(t);
|
|
734
769
|
}, e.prototype.complete = function() {
|
|
735
770
|
var t = this.partialObserver;
|
|
736
771
|
if (t.complete)
|
|
737
772
|
try {
|
|
738
773
|
t.complete();
|
|
739
774
|
} catch (r) {
|
|
740
|
-
|
|
775
|
+
le(r);
|
|
741
776
|
}
|
|
742
777
|
}, e;
|
|
743
|
-
}(),
|
|
778
|
+
}(), Ge = function(e) {
|
|
744
779
|
$(t, e);
|
|
745
780
|
function t(r, n, i) {
|
|
746
781
|
var o = e.call(this) || this, s;
|
|
@@ -760,29 +795,29 @@ var Gr = function() {
|
|
|
760
795
|
complete: r.complete && He(r.complete, a)
|
|
761
796
|
}) : s = r;
|
|
762
797
|
}
|
|
763
|
-
return o.destination = new
|
|
798
|
+
return o.destination = new jr(s), o;
|
|
764
799
|
}
|
|
765
800
|
return t;
|
|
766
801
|
}(Dt);
|
|
767
|
-
function
|
|
768
|
-
|
|
802
|
+
function le(e) {
|
|
803
|
+
Gr(e);
|
|
769
804
|
}
|
|
770
|
-
function
|
|
805
|
+
function kr(e) {
|
|
771
806
|
throw e;
|
|
772
807
|
}
|
|
773
|
-
var
|
|
808
|
+
var Vr = {
|
|
774
809
|
closed: !0,
|
|
775
810
|
next: ut,
|
|
776
|
-
error:
|
|
811
|
+
error: kr,
|
|
777
812
|
complete: ut
|
|
778
|
-
},
|
|
813
|
+
}, Xr = function() {
|
|
779
814
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
780
815
|
}();
|
|
781
|
-
function
|
|
816
|
+
function Wr(e) {
|
|
782
817
|
return e;
|
|
783
818
|
}
|
|
784
|
-
function
|
|
785
|
-
return e.length === 0 ?
|
|
819
|
+
function zr(e) {
|
|
820
|
+
return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
|
|
786
821
|
return e.reduce(function(n, i) {
|
|
787
822
|
return i(n);
|
|
788
823
|
}, r);
|
|
@@ -796,8 +831,8 @@ var ht = function() {
|
|
|
796
831
|
var r = new e();
|
|
797
832
|
return r.source = this, r.operator = t, r;
|
|
798
833
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
799
|
-
var i = this, o =
|
|
800
|
-
return
|
|
834
|
+
var i = this, o = Yr(t) ? t : new Ge(t, r, n);
|
|
835
|
+
return me(function() {
|
|
801
836
|
var s = i, a = s.operator, h = s.source;
|
|
802
837
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
803
838
|
}), o;
|
|
@@ -810,7 +845,7 @@ var ht = function() {
|
|
|
810
845
|
}, e.prototype.forEach = function(t, r) {
|
|
811
846
|
var n = this;
|
|
812
847
|
return r = lt(r), new r(function(i, o) {
|
|
813
|
-
var s = new
|
|
848
|
+
var s = new Ge({
|
|
814
849
|
next: function(a) {
|
|
815
850
|
try {
|
|
816
851
|
t(a);
|
|
@@ -826,12 +861,12 @@ var ht = function() {
|
|
|
826
861
|
}, e.prototype._subscribe = function(t) {
|
|
827
862
|
var r;
|
|
828
863
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
829
|
-
}, e.prototype[
|
|
864
|
+
}, e.prototype[Xr] = function() {
|
|
830
865
|
return this;
|
|
831
866
|
}, e.prototype.pipe = function() {
|
|
832
867
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
833
868
|
t[r] = arguments[r];
|
|
834
|
-
return
|
|
869
|
+
return zr(t)(this);
|
|
835
870
|
}, e.prototype.toPromise = function(t) {
|
|
836
871
|
var r = this;
|
|
837
872
|
return t = lt(t), new t(function(n, i) {
|
|
@@ -852,13 +887,13 @@ function lt(e) {
|
|
|
852
887
|
var t;
|
|
853
888
|
return (t = e != null ? e : Rt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
854
889
|
}
|
|
855
|
-
function
|
|
890
|
+
function Zr(e) {
|
|
856
891
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
857
892
|
}
|
|
858
|
-
function
|
|
859
|
-
return e && e instanceof Dt ||
|
|
893
|
+
function Yr(e) {
|
|
894
|
+
return e && e instanceof Dt || Zr(e) && $t(e);
|
|
860
895
|
}
|
|
861
|
-
var
|
|
896
|
+
var Qr = Ct(function(e) {
|
|
862
897
|
return function() {
|
|
863
898
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
864
899
|
};
|
|
@@ -873,15 +908,15 @@ var Zr = Mt(function(e) {
|
|
|
873
908
|
return n.operator = r, n;
|
|
874
909
|
}, t.prototype._throwIfClosed = function() {
|
|
875
910
|
if (this.closed)
|
|
876
|
-
throw new
|
|
911
|
+
throw new Qr();
|
|
877
912
|
}, t.prototype.next = function(r) {
|
|
878
913
|
var n = this;
|
|
879
|
-
|
|
914
|
+
me(function() {
|
|
880
915
|
var i, o;
|
|
881
916
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
882
917
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
883
918
|
try {
|
|
884
|
-
for (var s =
|
|
919
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
885
920
|
var h = a.value;
|
|
886
921
|
h.next(r);
|
|
887
922
|
}
|
|
@@ -891,14 +926,15 @@ var Zr = Mt(function(e) {
|
|
|
891
926
|
try {
|
|
892
927
|
a && !a.done && (o = s.return) && o.call(s);
|
|
893
928
|
} finally {
|
|
894
|
-
if (i)
|
|
929
|
+
if (i)
|
|
930
|
+
throw i.error;
|
|
895
931
|
}
|
|
896
932
|
}
|
|
897
933
|
}
|
|
898
934
|
});
|
|
899
935
|
}, t.prototype.error = function(r) {
|
|
900
936
|
var n = this;
|
|
901
|
-
|
|
937
|
+
me(function() {
|
|
902
938
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
903
939
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
904
940
|
for (var i = n.observers; i.length; )
|
|
@@ -907,7 +943,7 @@ var Zr = Mt(function(e) {
|
|
|
907
943
|
});
|
|
908
944
|
}, t.prototype.complete = function() {
|
|
909
945
|
var r = this;
|
|
910
|
-
|
|
946
|
+
me(function() {
|
|
911
947
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
912
948
|
r.isStopped = !0;
|
|
913
949
|
for (var n = r.observers; n.length; )
|
|
@@ -929,8 +965,8 @@ var Zr = Mt(function(e) {
|
|
|
929
965
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
930
966
|
}, t.prototype._innerSubscribe = function(r) {
|
|
931
967
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
932
|
-
return o || s ? Lt : (this.currentObservers = null, a.push(r), new
|
|
933
|
-
n.currentObservers = null,
|
|
968
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
969
|
+
n.currentObservers = null, Ue(a, r);
|
|
934
970
|
}));
|
|
935
971
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
936
972
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -965,7 +1001,7 @@ var Zr = Mt(function(e) {
|
|
|
965
1001
|
return (Gt.delegate || Date).now();
|
|
966
1002
|
},
|
|
967
1003
|
delegate: void 0
|
|
968
|
-
},
|
|
1004
|
+
}, Jr = function(e) {
|
|
969
1005
|
$(t, e);
|
|
970
1006
|
function t(r, n, i) {
|
|
971
1007
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Gt);
|
|
@@ -989,19 +1025,19 @@ var Zr = Mt(function(e) {
|
|
|
989
1025
|
}
|
|
990
1026
|
}, t;
|
|
991
1027
|
}(Ut);
|
|
992
|
-
const ft = [],
|
|
1028
|
+
const ft = [], mt = {}, qr = (e, t = 0) => {
|
|
993
1029
|
if (ft.indexOf(e) == -1) {
|
|
994
|
-
const r = new
|
|
995
|
-
|
|
1030
|
+
const r = new Jr(t);
|
|
1031
|
+
mt[e] = r, ft.push(e);
|
|
996
1032
|
}
|
|
997
|
-
return
|
|
1033
|
+
return mt[e];
|
|
998
1034
|
}, V = [];
|
|
999
|
-
function
|
|
1035
|
+
function Kr(e, t) {
|
|
1000
1036
|
return {
|
|
1001
|
-
subscribe:
|
|
1037
|
+
subscribe: Ee(e, t).subscribe
|
|
1002
1038
|
};
|
|
1003
1039
|
}
|
|
1004
|
-
function
|
|
1040
|
+
function Ee(e, t = N) {
|
|
1005
1041
|
let r;
|
|
1006
1042
|
const n = /* @__PURE__ */ new Set();
|
|
1007
1043
|
function i(a) {
|
|
@@ -1019,9 +1055,9 @@ function ve(e, t = M) {
|
|
|
1019
1055
|
function o(a) {
|
|
1020
1056
|
i(a(e));
|
|
1021
1057
|
}
|
|
1022
|
-
function s(a, h =
|
|
1058
|
+
function s(a, h = N) {
|
|
1023
1059
|
const u = [a, h];
|
|
1024
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1060
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1025
1061
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1026
1062
|
};
|
|
1027
1063
|
}
|
|
@@ -1032,73 +1068,73 @@ function q(e, t, r) {
|
|
|
1032
1068
|
if (!i.every(Boolean))
|
|
1033
1069
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1034
1070
|
const o = t.length < 2;
|
|
1035
|
-
return
|
|
1071
|
+
return Kr(r, (s, a) => {
|
|
1036
1072
|
let h = !1;
|
|
1037
1073
|
const u = [];
|
|
1038
|
-
let l = 0, c =
|
|
1074
|
+
let l = 0, c = N;
|
|
1039
1075
|
const f = () => {
|
|
1040
1076
|
if (l)
|
|
1041
1077
|
return;
|
|
1042
1078
|
c();
|
|
1043
|
-
const
|
|
1044
|
-
o ? s(
|
|
1045
|
-
},
|
|
1046
|
-
(
|
|
1047
|
-
|
|
1079
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1080
|
+
o ? s(g) : c = Ye(g) ? g : N;
|
|
1081
|
+
}, m = i.map(
|
|
1082
|
+
(g, p) => It(
|
|
1083
|
+
g,
|
|
1048
1084
|
(x) => {
|
|
1049
|
-
u[
|
|
1085
|
+
u[p] = x, l &= ~(1 << p), h && f();
|
|
1050
1086
|
},
|
|
1051
1087
|
() => {
|
|
1052
|
-
l |= 1 <<
|
|
1088
|
+
l |= 1 << p;
|
|
1053
1089
|
}
|
|
1054
1090
|
)
|
|
1055
1091
|
);
|
|
1056
1092
|
return h = !0, f(), function() {
|
|
1057
|
-
|
|
1093
|
+
ue(m), c(), h = !1;
|
|
1058
1094
|
};
|
|
1059
1095
|
});
|
|
1060
1096
|
}
|
|
1061
|
-
function
|
|
1097
|
+
function en(e) {
|
|
1062
1098
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1063
1099
|
}
|
|
1064
|
-
var
|
|
1065
|
-
return
|
|
1100
|
+
var tn = function(t) {
|
|
1101
|
+
return rn(t) && !nn(t);
|
|
1066
1102
|
};
|
|
1067
|
-
function
|
|
1103
|
+
function rn(e) {
|
|
1068
1104
|
return !!e && typeof e == "object";
|
|
1069
1105
|
}
|
|
1070
|
-
function
|
|
1106
|
+
function nn(e) {
|
|
1071
1107
|
var t = Object.prototype.toString.call(e);
|
|
1072
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1108
|
+
return t === "[object RegExp]" || t === "[object Date]" || an(e);
|
|
1073
1109
|
}
|
|
1074
|
-
var
|
|
1075
|
-
function
|
|
1076
|
-
return e.$$typeof ===
|
|
1110
|
+
var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
|
|
1111
|
+
function an(e) {
|
|
1112
|
+
return e.$$typeof === sn;
|
|
1077
1113
|
}
|
|
1078
|
-
function
|
|
1114
|
+
function un(e) {
|
|
1079
1115
|
return Array.isArray(e) ? [] : {};
|
|
1080
1116
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
1117
|
+
function se(e, t) {
|
|
1118
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(un(e), e, t) : e;
|
|
1083
1119
|
}
|
|
1084
|
-
function
|
|
1120
|
+
function hn(e, t, r) {
|
|
1085
1121
|
return e.concat(t).map(function(n) {
|
|
1086
|
-
return
|
|
1122
|
+
return se(n, r);
|
|
1087
1123
|
});
|
|
1088
1124
|
}
|
|
1089
|
-
function
|
|
1125
|
+
function ln(e, t) {
|
|
1090
1126
|
if (!t.customMerge)
|
|
1091
1127
|
return Z;
|
|
1092
1128
|
var r = t.customMerge(e);
|
|
1093
1129
|
return typeof r == "function" ? r : Z;
|
|
1094
1130
|
}
|
|
1095
|
-
function
|
|
1131
|
+
function cn(e) {
|
|
1096
1132
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1097
1133
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1098
1134
|
}) : [];
|
|
1099
1135
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return Object.keys(e).concat(
|
|
1136
|
+
function pt(e) {
|
|
1137
|
+
return Object.keys(e).concat(cn(e));
|
|
1102
1138
|
}
|
|
1103
1139
|
function Ft(e, t) {
|
|
1104
1140
|
try {
|
|
@@ -1107,21 +1143,21 @@ function Ft(e, t) {
|
|
|
1107
1143
|
return !1;
|
|
1108
1144
|
}
|
|
1109
1145
|
}
|
|
1110
|
-
function
|
|
1146
|
+
function fn(e, t) {
|
|
1111
1147
|
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1112
1148
|
}
|
|
1113
|
-
function
|
|
1149
|
+
function mn(e, t, r) {
|
|
1114
1150
|
var n = {};
|
|
1115
|
-
return r.isMergeableObject(e) &&
|
|
1116
|
-
n[i] =
|
|
1117
|
-
}),
|
|
1118
|
-
|
|
1151
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1152
|
+
n[i] = se(e[i], r);
|
|
1153
|
+
}), pt(t).forEach(function(i) {
|
|
1154
|
+
fn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1119
1155
|
}), n;
|
|
1120
1156
|
}
|
|
1121
1157
|
function Z(e, t, r) {
|
|
1122
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1158
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = se;
|
|
1123
1159
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1124
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1160
|
+
return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : se(t, r);
|
|
1125
1161
|
}
|
|
1126
1162
|
Z.all = function(t, r) {
|
|
1127
1163
|
if (!Array.isArray(t))
|
|
@@ -1130,20 +1166,20 @@ Z.all = function(t, r) {
|
|
|
1130
1166
|
return Z(n, i, r);
|
|
1131
1167
|
}, {});
|
|
1132
1168
|
};
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1135
|
-
function
|
|
1136
|
-
var r = t && t.cache ? t.cache :
|
|
1169
|
+
var pn = Z, bn = pn;
|
|
1170
|
+
const dn = /* @__PURE__ */ en(bn);
|
|
1171
|
+
function Ae(e, t) {
|
|
1172
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : yn;
|
|
1137
1173
|
return i(e, {
|
|
1138
1174
|
cache: r,
|
|
1139
1175
|
serializer: n
|
|
1140
1176
|
});
|
|
1141
1177
|
}
|
|
1142
|
-
function
|
|
1178
|
+
function gn(e) {
|
|
1143
1179
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1144
1180
|
}
|
|
1145
1181
|
function jt(e, t, r, n) {
|
|
1146
|
-
var i =
|
|
1182
|
+
var i = gn(n) ? n : r(n), o = t.get(i);
|
|
1147
1183
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1148
1184
|
}
|
|
1149
1185
|
function kt(e, t, r) {
|
|
@@ -1153,17 +1189,17 @@ function kt(e, t, r) {
|
|
|
1153
1189
|
function Je(e, t, r, n, i) {
|
|
1154
1190
|
return r.bind(t, e, n, i);
|
|
1155
1191
|
}
|
|
1156
|
-
function
|
|
1192
|
+
function yn(e, t) {
|
|
1157
1193
|
var r = e.length === 1 ? jt : kt;
|
|
1158
1194
|
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1159
1195
|
}
|
|
1160
|
-
function
|
|
1196
|
+
function vn(e, t) {
|
|
1161
1197
|
return Je(e, this, kt, t.cache.create(), t.serializer);
|
|
1162
1198
|
}
|
|
1163
|
-
function
|
|
1199
|
+
function En(e, t) {
|
|
1164
1200
|
return Je(e, this, jt, t.cache.create(), t.serializer);
|
|
1165
1201
|
}
|
|
1166
|
-
var
|
|
1202
|
+
var _n = function() {
|
|
1167
1203
|
return JSON.stringify(arguments);
|
|
1168
1204
|
};
|
|
1169
1205
|
function qe() {
|
|
@@ -1175,17 +1211,17 @@ qe.prototype.get = function(e) {
|
|
|
1175
1211
|
qe.prototype.set = function(e, t) {
|
|
1176
1212
|
this.cache[e] = t;
|
|
1177
1213
|
};
|
|
1178
|
-
var
|
|
1214
|
+
var xn = {
|
|
1179
1215
|
create: function() {
|
|
1180
1216
|
return new qe();
|
|
1181
1217
|
}
|
|
1182
|
-
},
|
|
1183
|
-
variadic:
|
|
1184
|
-
monadic:
|
|
1185
|
-
},
|
|
1218
|
+
}, Pe = {
|
|
1219
|
+
variadic: vn,
|
|
1220
|
+
monadic: En
|
|
1221
|
+
}, b;
|
|
1186
1222
|
(function(e) {
|
|
1187
1223
|
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";
|
|
1188
|
-
})(
|
|
1224
|
+
})(b || (b = {}));
|
|
1189
1225
|
var _;
|
|
1190
1226
|
(function(e) {
|
|
1191
1227
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1197,7 +1233,7 @@ var Y;
|
|
|
1197
1233
|
function bt(e) {
|
|
1198
1234
|
return e.type === _.literal;
|
|
1199
1235
|
}
|
|
1200
|
-
function
|
|
1236
|
+
function Bn(e) {
|
|
1201
1237
|
return e.type === _.argument;
|
|
1202
1238
|
}
|
|
1203
1239
|
function Vt(e) {
|
|
@@ -1215,7 +1251,7 @@ function zt(e) {
|
|
|
1215
1251
|
function Zt(e) {
|
|
1216
1252
|
return e.type === _.plural;
|
|
1217
1253
|
}
|
|
1218
|
-
function
|
|
1254
|
+
function Sn(e) {
|
|
1219
1255
|
return e.type === _.pound;
|
|
1220
1256
|
}
|
|
1221
1257
|
function Yt(e) {
|
|
@@ -1224,13 +1260,13 @@ function Yt(e) {
|
|
|
1224
1260
|
function Qt(e) {
|
|
1225
1261
|
return !!(e && typeof e == "object" && e.type === Y.number);
|
|
1226
1262
|
}
|
|
1227
|
-
function
|
|
1263
|
+
function Fe(e) {
|
|
1228
1264
|
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
|
1229
1265
|
}
|
|
1230
|
-
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1231
|
-
function
|
|
1266
|
+
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
|
|
1267
|
+
function wn(e) {
|
|
1232
1268
|
var t = {};
|
|
1233
|
-
return e.replace(
|
|
1269
|
+
return e.replace(Tn, function(r) {
|
|
1234
1270
|
var n = r.length;
|
|
1235
1271
|
switch (r[0]) {
|
|
1236
1272
|
case "G":
|
|
@@ -1319,11 +1355,11 @@ function Sn(e) {
|
|
|
1319
1355
|
return "";
|
|
1320
1356
|
}), t;
|
|
1321
1357
|
}
|
|
1322
|
-
var
|
|
1323
|
-
function
|
|
1358
|
+
var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1359
|
+
function An(e) {
|
|
1324
1360
|
if (e.length === 0)
|
|
1325
1361
|
throw new Error("Number skeleton cannot be empty");
|
|
1326
|
-
for (var t = e.split(
|
|
1362
|
+
for (var t = e.split(Hn).filter(function(f) {
|
|
1327
1363
|
return f.length > 0;
|
|
1328
1364
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1329
1365
|
var o = i[n], s = o.split("/");
|
|
@@ -1338,10 +1374,10 @@ function Hn(e) {
|
|
|
1338
1374
|
}
|
|
1339
1375
|
return r;
|
|
1340
1376
|
}
|
|
1341
|
-
function
|
|
1377
|
+
function Pn(e) {
|
|
1342
1378
|
return e.replace(/^(.*?)-/, "");
|
|
1343
1379
|
}
|
|
1344
|
-
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1380
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Kt = /^(0+)$/;
|
|
1345
1381
|
function gt(e) {
|
|
1346
1382
|
var t = {};
|
|
1347
1383
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
@@ -1388,7 +1424,7 @@ function er(e) {
|
|
|
1388
1424
|
};
|
|
1389
1425
|
}
|
|
1390
1426
|
}
|
|
1391
|
-
function
|
|
1427
|
+
function In(e) {
|
|
1392
1428
|
var t;
|
|
1393
1429
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1394
1430
|
notation: "engineering"
|
|
@@ -1406,7 +1442,7 @@ function yt(e) {
|
|
|
1406
1442
|
var t = {}, r = er(e);
|
|
1407
1443
|
return r || t;
|
|
1408
1444
|
}
|
|
1409
|
-
function
|
|
1445
|
+
function Nn(e) {
|
|
1410
1446
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1411
1447
|
var i = n[r];
|
|
1412
1448
|
switch (i.stem) {
|
|
@@ -1430,7 +1466,7 @@ function On(e) {
|
|
|
1430
1466
|
continue;
|
|
1431
1467
|
case "measure-unit":
|
|
1432
1468
|
case "unit":
|
|
1433
|
-
t.style = "unit", t.unit =
|
|
1469
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1434
1470
|
continue;
|
|
1435
1471
|
case "compact-short":
|
|
1436
1472
|
case "K":
|
|
@@ -1441,13 +1477,13 @@ function On(e) {
|
|
|
1441
1477
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1442
1478
|
continue;
|
|
1443
1479
|
case "scientific":
|
|
1444
|
-
t =
|
|
1445
|
-
return
|
|
1480
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1481
|
+
return y(y({}, h), yt(u));
|
|
1446
1482
|
}, {}));
|
|
1447
1483
|
continue;
|
|
1448
1484
|
case "engineering":
|
|
1449
|
-
t =
|
|
1450
|
-
return
|
|
1485
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1486
|
+
return y(y({}, h), yt(u));
|
|
1451
1487
|
}, {}));
|
|
1452
1488
|
continue;
|
|
1453
1489
|
case "notation-simple":
|
|
@@ -1492,13 +1528,13 @@ function On(e) {
|
|
|
1492
1528
|
case "integer-width":
|
|
1493
1529
|
if (i.options.length > 1)
|
|
1494
1530
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1495
|
-
i.options[0].replace(
|
|
1531
|
+
i.options[0].replace(On, function(h, u, l, c, f, m) {
|
|
1496
1532
|
if (u)
|
|
1497
1533
|
t.minimumIntegerDigits = l.length;
|
|
1498
1534
|
else {
|
|
1499
1535
|
if (c && f)
|
|
1500
1536
|
throw new Error("We currently do not support maximum integer digits");
|
|
1501
|
-
if (
|
|
1537
|
+
if (m)
|
|
1502
1538
|
throw new Error("We currently do not support exact integer digits");
|
|
1503
1539
|
}
|
|
1504
1540
|
return "";
|
|
@@ -1512,25 +1548,25 @@ function On(e) {
|
|
|
1512
1548
|
if (dt.test(i.stem)) {
|
|
1513
1549
|
if (i.options.length > 1)
|
|
1514
1550
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1515
|
-
i.stem.replace(dt, function(h, u, l, c, f,
|
|
1516
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1551
|
+
i.stem.replace(dt, function(h, u, l, c, f, m) {
|
|
1552
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1517
1553
|
});
|
|
1518
1554
|
var o = i.options[0];
|
|
1519
|
-
o === "w" ? t =
|
|
1555
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), gt(o)));
|
|
1520
1556
|
continue;
|
|
1521
1557
|
}
|
|
1522
1558
|
if (qt.test(i.stem)) {
|
|
1523
|
-
t =
|
|
1559
|
+
t = y(y({}, t), gt(i.stem));
|
|
1524
1560
|
continue;
|
|
1525
1561
|
}
|
|
1526
1562
|
var s = er(i.stem);
|
|
1527
|
-
s && (t =
|
|
1528
|
-
var a =
|
|
1529
|
-
a && (t =
|
|
1563
|
+
s && (t = y(y({}, t), s));
|
|
1564
|
+
var a = In(i.stem);
|
|
1565
|
+
a && (t = y(y({}, t), a));
|
|
1530
1566
|
}
|
|
1531
1567
|
return t;
|
|
1532
1568
|
}
|
|
1533
|
-
var
|
|
1569
|
+
var ce = {
|
|
1534
1570
|
"001": [
|
|
1535
1571
|
"H",
|
|
1536
1572
|
"h"
|
|
@@ -2945,22 +2981,23 @@ var le = {
|
|
|
2945
2981
|
"h"
|
|
2946
2982
|
]
|
|
2947
2983
|
};
|
|
2948
|
-
function
|
|
2984
|
+
function Mn(e, t) {
|
|
2949
2985
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2950
2986
|
var i = e.charAt(n);
|
|
2951
2987
|
if (i === "j") {
|
|
2952
2988
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2953
2989
|
o++, n++;
|
|
2954
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2990
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
|
|
2955
2991
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2956
2992
|
r += h;
|
|
2957
2993
|
for (; s-- > 0; )
|
|
2958
2994
|
r = u + r;
|
|
2959
|
-
} else
|
|
2995
|
+
} else
|
|
2996
|
+
i === "J" ? r += "H" : r += i;
|
|
2960
2997
|
}
|
|
2961
2998
|
return r;
|
|
2962
2999
|
}
|
|
2963
|
-
function
|
|
3000
|
+
function Cn(e) {
|
|
2964
3001
|
var t = e.hourCycle;
|
|
2965
3002
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2966
3003
|
e.hourCycles && // @ts-ignore
|
|
@@ -2979,23 +3016,23 @@ function Nn(e) {
|
|
|
2979
3016
|
}
|
|
2980
3017
|
var r = e.language, n;
|
|
2981
3018
|
r !== "root" && (n = e.maximize().region);
|
|
2982
|
-
var i =
|
|
3019
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2983
3020
|
return i[0];
|
|
2984
3021
|
}
|
|
2985
|
-
var
|
|
2986
|
-
function
|
|
3022
|
+
var Oe, Ln = new RegExp("^".concat(Jt.source, "*")), $n = new RegExp("".concat(Jt.source, "*$"));
|
|
3023
|
+
function d(e, t) {
|
|
2987
3024
|
return { start: e, end: t };
|
|
2988
3025
|
}
|
|
2989
|
-
var
|
|
3026
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Un = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
|
|
2990
3027
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2991
|
-
},
|
|
3028
|
+
}, je = !0;
|
|
2992
3029
|
try {
|
|
2993
|
-
var
|
|
2994
|
-
|
|
3030
|
+
var Xn = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3031
|
+
je = ((Oe = Xn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2995
3032
|
} catch (e) {
|
|
2996
|
-
|
|
3033
|
+
je = !1;
|
|
2997
3034
|
}
|
|
2998
|
-
var vt =
|
|
3035
|
+
var vt = Rn ? (
|
|
2999
3036
|
// Native
|
|
3000
3037
|
function(t, r, n) {
|
|
3001
3038
|
return t.startsWith(r, n);
|
|
@@ -3005,7 +3042,7 @@ var vt = Ln ? (
|
|
|
3005
3042
|
function(t, r, n) {
|
|
3006
3043
|
return t.slice(n, n + r.length) === r;
|
|
3007
3044
|
}
|
|
3008
|
-
),
|
|
3045
|
+
), ke = Dn ? String.fromCodePoint : (
|
|
3009
3046
|
// IE11
|
|
3010
3047
|
function() {
|
|
3011
3048
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3019,7 +3056,7 @@ var vt = Ln ? (
|
|
|
3019
3056
|
}
|
|
3020
3057
|
), Et = (
|
|
3021
3058
|
// native
|
|
3022
|
-
|
|
3059
|
+
Un ? Object.fromEntries : (
|
|
3023
3060
|
// Ponyfill
|
|
3024
3061
|
function(t) {
|
|
3025
3062
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3029,7 +3066,7 @@ var vt = Ln ? (
|
|
|
3029
3066
|
return r;
|
|
3030
3067
|
}
|
|
3031
3068
|
)
|
|
3032
|
-
), tr =
|
|
3069
|
+
), tr = Gn ? (
|
|
3033
3070
|
// Native
|
|
3034
3071
|
function(t, r) {
|
|
3035
3072
|
return t.codePointAt(r);
|
|
@@ -3043,7 +3080,7 @@ var vt = Ln ? (
|
|
|
3043
3080
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3044
3081
|
}
|
|
3045
3082
|
}
|
|
3046
|
-
),
|
|
3083
|
+
), Wn = Fn ? (
|
|
3047
3084
|
// Native
|
|
3048
3085
|
function(t) {
|
|
3049
3086
|
return t.trimStart();
|
|
@@ -3051,9 +3088,9 @@ var vt = Ln ? (
|
|
|
3051
3088
|
) : (
|
|
3052
3089
|
// Ponyfill
|
|
3053
3090
|
function(t) {
|
|
3054
|
-
return t.replace(
|
|
3091
|
+
return t.replace(Ln, "");
|
|
3055
3092
|
}
|
|
3056
|
-
),
|
|
3093
|
+
), zn = jn ? (
|
|
3057
3094
|
// Native
|
|
3058
3095
|
function(t) {
|
|
3059
3096
|
return t.trimEnd();
|
|
@@ -3061,32 +3098,32 @@ var vt = Ln ? (
|
|
|
3061
3098
|
) : (
|
|
3062
3099
|
// Ponyfill
|
|
3063
3100
|
function(t) {
|
|
3064
|
-
return t.replace(
|
|
3101
|
+
return t.replace($n, "");
|
|
3065
3102
|
}
|
|
3066
3103
|
);
|
|
3067
3104
|
function rr(e, t) {
|
|
3068
3105
|
return new RegExp(e, t);
|
|
3069
3106
|
}
|
|
3070
|
-
var
|
|
3071
|
-
if (
|
|
3107
|
+
var Ve;
|
|
3108
|
+
if (je) {
|
|
3072
3109
|
var _t = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3073
|
-
|
|
3110
|
+
Ve = function(t, r) {
|
|
3074
3111
|
var n;
|
|
3075
3112
|
_t.lastIndex = r;
|
|
3076
3113
|
var i = _t.exec(t);
|
|
3077
3114
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3078
3115
|
};
|
|
3079
3116
|
} else
|
|
3080
|
-
|
|
3117
|
+
Ve = function(t, r) {
|
|
3081
3118
|
for (var n = []; ; ) {
|
|
3082
3119
|
var i = tr(t, r);
|
|
3083
|
-
if (i === void 0 || nr(i) ||
|
|
3120
|
+
if (i === void 0 || nr(i) || Jn(i))
|
|
3084
3121
|
break;
|
|
3085
3122
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3086
3123
|
}
|
|
3087
|
-
return
|
|
3124
|
+
return ke.apply(void 0, n);
|
|
3088
3125
|
};
|
|
3089
|
-
var
|
|
3126
|
+
var Zn = (
|
|
3090
3127
|
/** @class */
|
|
3091
3128
|
function() {
|
|
3092
3129
|
function e(t, r) {
|
|
@@ -3111,13 +3148,13 @@ var Wn = (
|
|
|
3111
3148
|
var a = this.clonePosition();
|
|
3112
3149
|
this.bump(), i.push({
|
|
3113
3150
|
type: _.pound,
|
|
3114
|
-
location:
|
|
3151
|
+
location: d(a, this.clonePosition())
|
|
3115
3152
|
});
|
|
3116
3153
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3117
3154
|
if (n)
|
|
3118
3155
|
break;
|
|
3119
|
-
return this.error(
|
|
3120
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3156
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3157
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3121
3158
|
var s = this.parseTag(t, r);
|
|
3122
3159
|
if (s.err)
|
|
3123
3160
|
return s;
|
|
@@ -3140,7 +3177,7 @@ var Wn = (
|
|
|
3140
3177
|
val: {
|
|
3141
3178
|
type: _.literal,
|
|
3142
3179
|
value: "<".concat(i, "/>"),
|
|
3143
|
-
location:
|
|
3180
|
+
location: d(n, this.clonePosition())
|
|
3144
3181
|
},
|
|
3145
3182
|
err: null
|
|
3146
3183
|
};
|
|
@@ -3150,25 +3187,25 @@ var Wn = (
|
|
|
3150
3187
|
return o;
|
|
3151
3188
|
var s = o.val, a = this.clonePosition();
|
|
3152
3189
|
if (this.bumpIf("</")) {
|
|
3153
|
-
if (this.isEOF() || !
|
|
3154
|
-
return this.error(
|
|
3190
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3191
|
+
return this.error(b.INVALID_TAG, d(a, this.clonePosition()));
|
|
3155
3192
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3156
|
-
return i !== u ? this.error(
|
|
3193
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3157
3194
|
val: {
|
|
3158
3195
|
type: _.tag,
|
|
3159
3196
|
value: i,
|
|
3160
3197
|
children: s,
|
|
3161
|
-
location:
|
|
3198
|
+
location: d(n, this.clonePosition())
|
|
3162
3199
|
},
|
|
3163
3200
|
err: null
|
|
3164
|
-
} : this.error(
|
|
3201
|
+
} : this.error(b.INVALID_TAG, d(a, this.clonePosition())));
|
|
3165
3202
|
} else
|
|
3166
|
-
return this.error(
|
|
3203
|
+
return this.error(b.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3167
3204
|
} else
|
|
3168
|
-
return this.error(
|
|
3205
|
+
return this.error(b.INVALID_TAG, d(n, this.clonePosition()));
|
|
3169
3206
|
}, e.prototype.parseTagName = function() {
|
|
3170
3207
|
var t = this.offset();
|
|
3171
|
-
for (this.bump(); !this.isEOF() &&
|
|
3208
|
+
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
3172
3209
|
this.bump();
|
|
3173
3210
|
return this.message.slice(t, this.offset());
|
|
3174
3211
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3190,14 +3227,14 @@ var Wn = (
|
|
|
3190
3227
|
}
|
|
3191
3228
|
break;
|
|
3192
3229
|
}
|
|
3193
|
-
var h =
|
|
3230
|
+
var h = d(n, this.clonePosition());
|
|
3194
3231
|
return {
|
|
3195
3232
|
val: { type: _.literal, value: i, location: h },
|
|
3196
3233
|
err: null
|
|
3197
3234
|
};
|
|
3198
3235
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3199
3236
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3200
|
-
!
|
|
3237
|
+
!Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3201
3238
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3202
3239
|
if (this.isEOF() || this.char() !== 39)
|
|
3203
3240
|
return null;
|
|
@@ -3231,23 +3268,23 @@ var Wn = (
|
|
|
3231
3268
|
r.push(n);
|
|
3232
3269
|
this.bump();
|
|
3233
3270
|
}
|
|
3234
|
-
return
|
|
3271
|
+
return ke.apply(void 0, r);
|
|
3235
3272
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3236
3273
|
if (this.isEOF())
|
|
3237
3274
|
return null;
|
|
3238
3275
|
var n = this.char();
|
|
3239
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3276
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3240
3277
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3241
3278
|
var n = this.clonePosition();
|
|
3242
3279
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3243
|
-
return this.error(
|
|
3280
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3244
3281
|
if (this.char() === 125)
|
|
3245
|
-
return this.bump(), this.error(
|
|
3282
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3246
3283
|
var i = this.parseIdentifierIfPossible().value;
|
|
3247
3284
|
if (!i)
|
|
3248
|
-
return this.error(
|
|
3285
|
+
return this.error(b.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3249
3286
|
if (this.bumpSpace(), this.isEOF())
|
|
3250
|
-
return this.error(
|
|
3287
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3251
3288
|
switch (this.char()) {
|
|
3252
3289
|
case 125:
|
|
3253
3290
|
return this.bump(), {
|
|
@@ -3255,25 +3292,25 @@ var Wn = (
|
|
|
3255
3292
|
type: _.argument,
|
|
3256
3293
|
// value does not include the opening and closing braces.
|
|
3257
3294
|
value: i,
|
|
3258
|
-
location:
|
|
3295
|
+
location: d(n, this.clonePosition())
|
|
3259
3296
|
},
|
|
3260
3297
|
err: null
|
|
3261
3298
|
};
|
|
3262
3299
|
case 44:
|
|
3263
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3300
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3264
3301
|
default:
|
|
3265
|
-
return this.error(
|
|
3302
|
+
return this.error(b.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3266
3303
|
}
|
|
3267
3304
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3268
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3305
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3269
3306
|
this.bumpTo(i);
|
|
3270
|
-
var o = this.clonePosition(), s =
|
|
3307
|
+
var o = this.clonePosition(), s = d(t, o);
|
|
3271
3308
|
return { value: n, location: s };
|
|
3272
3309
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3273
3310
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3274
3311
|
switch (a) {
|
|
3275
3312
|
case "":
|
|
3276
|
-
return this.error(
|
|
3313
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, d(s, h));
|
|
3277
3314
|
case "number":
|
|
3278
3315
|
case "date":
|
|
3279
3316
|
case "time": {
|
|
@@ -3284,37 +3321,37 @@ var Wn = (
|
|
|
3284
3321
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3285
3322
|
if (c.err)
|
|
3286
3323
|
return c;
|
|
3287
|
-
var f =
|
|
3324
|
+
var f = zn(c.val);
|
|
3288
3325
|
if (f.length === 0)
|
|
3289
|
-
return this.error(
|
|
3290
|
-
var
|
|
3291
|
-
u = { style: f, styleLocation:
|
|
3326
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3327
|
+
var m = d(l, this.clonePosition());
|
|
3328
|
+
u = { style: f, styleLocation: m };
|
|
3292
3329
|
}
|
|
3293
|
-
var
|
|
3294
|
-
if (
|
|
3295
|
-
return
|
|
3296
|
-
var
|
|
3330
|
+
var g = this.tryParseArgumentClose(i);
|
|
3331
|
+
if (g.err)
|
|
3332
|
+
return g;
|
|
3333
|
+
var p = d(i, this.clonePosition());
|
|
3297
3334
|
if (u && vt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3298
|
-
var x =
|
|
3335
|
+
var x = Wn(u.style.slice(2));
|
|
3299
3336
|
if (a === "number") {
|
|
3300
3337
|
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3301
3338
|
return c.err ? c : {
|
|
3302
|
-
val: { type: _.number, value: n, location:
|
|
3339
|
+
val: { type: _.number, value: n, location: p, style: c.val },
|
|
3303
3340
|
err: null
|
|
3304
3341
|
};
|
|
3305
3342
|
} else {
|
|
3306
3343
|
if (x.length === 0)
|
|
3307
|
-
return this.error(
|
|
3308
|
-
var
|
|
3309
|
-
this.locale && (
|
|
3344
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3345
|
+
var A = x;
|
|
3346
|
+
this.locale && (A = Mn(x, this.locale));
|
|
3310
3347
|
var f = {
|
|
3311
3348
|
type: Y.dateTime,
|
|
3312
|
-
pattern:
|
|
3349
|
+
pattern: A,
|
|
3313
3350
|
location: u.styleLocation,
|
|
3314
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3315
|
-
},
|
|
3351
|
+
parsedOptions: this.shouldParseSkeletons ? wn(A) : {}
|
|
3352
|
+
}, H = a === "date" ? _.date : _.time;
|
|
3316
3353
|
return {
|
|
3317
|
-
val: { type:
|
|
3354
|
+
val: { type: H, value: n, location: p, style: f },
|
|
3318
3355
|
err: null
|
|
3319
3356
|
};
|
|
3320
3357
|
}
|
|
@@ -3323,7 +3360,7 @@ var Wn = (
|
|
|
3323
3360
|
val: {
|
|
3324
3361
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3325
3362
|
value: n,
|
|
3326
|
-
location:
|
|
3363
|
+
location: p,
|
|
3327
3364
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3328
3365
|
},
|
|
3329
3366
|
err: null
|
|
@@ -3332,52 +3369,52 @@ var Wn = (
|
|
|
3332
3369
|
case "plural":
|
|
3333
3370
|
case "selectordinal":
|
|
3334
3371
|
case "select": {
|
|
3335
|
-
var
|
|
3372
|
+
var T = this.clonePosition();
|
|
3336
3373
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3337
|
-
return this.error(
|
|
3374
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T, y({}, T)));
|
|
3338
3375
|
this.bumpSpace();
|
|
3339
|
-
var
|
|
3340
|
-
if (a !== "select" &&
|
|
3376
|
+
var v = this.parseIdentifierIfPossible(), S = 0;
|
|
3377
|
+
if (a !== "select" && v.value === "offset") {
|
|
3341
3378
|
if (!this.bumpIf(":"))
|
|
3342
|
-
return this.error(
|
|
3379
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3343
3380
|
this.bumpSpace();
|
|
3344
|
-
var c = this.tryParseDecimalInteger(
|
|
3381
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3345
3382
|
if (c.err)
|
|
3346
3383
|
return c;
|
|
3347
|
-
this.bumpSpace(),
|
|
3384
|
+
this.bumpSpace(), v = this.parseIdentifierIfPossible(), S = c.val;
|
|
3348
3385
|
}
|
|
3349
|
-
var
|
|
3350
|
-
if (
|
|
3351
|
-
return
|
|
3352
|
-
var
|
|
3353
|
-
if (
|
|
3354
|
-
return
|
|
3355
|
-
var
|
|
3386
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, v);
|
|
3387
|
+
if (M.err)
|
|
3388
|
+
return M;
|
|
3389
|
+
var g = this.tryParseArgumentClose(i);
|
|
3390
|
+
if (g.err)
|
|
3391
|
+
return g;
|
|
3392
|
+
var C = d(i, this.clonePosition());
|
|
3356
3393
|
return a === "select" ? {
|
|
3357
3394
|
val: {
|
|
3358
3395
|
type: _.select,
|
|
3359
3396
|
value: n,
|
|
3360
|
-
options: Et(
|
|
3361
|
-
location:
|
|
3397
|
+
options: Et(M.val),
|
|
3398
|
+
location: C
|
|
3362
3399
|
},
|
|
3363
3400
|
err: null
|
|
3364
3401
|
} : {
|
|
3365
3402
|
val: {
|
|
3366
3403
|
type: _.plural,
|
|
3367
3404
|
value: n,
|
|
3368
|
-
options: Et(
|
|
3369
|
-
offset:
|
|
3405
|
+
options: Et(M.val),
|
|
3406
|
+
offset: S,
|
|
3370
3407
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3371
|
-
location:
|
|
3408
|
+
location: C
|
|
3372
3409
|
},
|
|
3373
3410
|
err: null
|
|
3374
3411
|
};
|
|
3375
3412
|
}
|
|
3376
3413
|
default:
|
|
3377
|
-
return this.error(
|
|
3414
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, d(s, h));
|
|
3378
3415
|
}
|
|
3379
3416
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3380
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3417
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3381
3418
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3382
3419
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3383
3420
|
var n = this.char();
|
|
@@ -3386,7 +3423,7 @@ var Wn = (
|
|
|
3386
3423
|
this.bump();
|
|
3387
3424
|
var i = this.clonePosition();
|
|
3388
3425
|
if (!this.bumpUntil("'"))
|
|
3389
|
-
return this.error(
|
|
3426
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3390
3427
|
this.bump();
|
|
3391
3428
|
break;
|
|
3392
3429
|
}
|
|
@@ -3416,16 +3453,16 @@ var Wn = (
|
|
|
3416
3453
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3417
3454
|
var n = [];
|
|
3418
3455
|
try {
|
|
3419
|
-
n =
|
|
3456
|
+
n = An(t);
|
|
3420
3457
|
} catch (i) {
|
|
3421
|
-
return this.error(
|
|
3458
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3422
3459
|
}
|
|
3423
3460
|
return {
|
|
3424
3461
|
val: {
|
|
3425
3462
|
type: Y.number,
|
|
3426
3463
|
tokens: n,
|
|
3427
3464
|
location: r,
|
|
3428
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3465
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3429
3466
|
},
|
|
3430
3467
|
err: null
|
|
3431
3468
|
};
|
|
@@ -3434,34 +3471,34 @@ var Wn = (
|
|
|
3434
3471
|
if (u.length === 0) {
|
|
3435
3472
|
var c = this.clonePosition();
|
|
3436
3473
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3437
|
-
var f = this.tryParseDecimalInteger(
|
|
3474
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3438
3475
|
if (f.err)
|
|
3439
3476
|
return f;
|
|
3440
|
-
l =
|
|
3477
|
+
l = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3441
3478
|
} else
|
|
3442
3479
|
break;
|
|
3443
3480
|
}
|
|
3444
3481
|
if (h.has(u))
|
|
3445
|
-
return this.error(r === "select" ?
|
|
3482
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3446
3483
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3447
|
-
var
|
|
3484
|
+
var m = this.clonePosition();
|
|
3448
3485
|
if (!this.bumpIf("{"))
|
|
3449
|
-
return this.error(r === "select" ?
|
|
3450
|
-
var
|
|
3451
|
-
if (
|
|
3452
|
-
return
|
|
3453
|
-
var
|
|
3454
|
-
if (
|
|
3455
|
-
return
|
|
3486
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3487
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3488
|
+
if (g.err)
|
|
3489
|
+
return g;
|
|
3490
|
+
var p = this.tryParseArgumentClose(m);
|
|
3491
|
+
if (p.err)
|
|
3492
|
+
return p;
|
|
3456
3493
|
a.push([
|
|
3457
3494
|
u,
|
|
3458
3495
|
{
|
|
3459
|
-
value:
|
|
3460
|
-
location:
|
|
3496
|
+
value: g.val,
|
|
3497
|
+
location: d(m, this.clonePosition())
|
|
3461
3498
|
}
|
|
3462
3499
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3463
3500
|
}
|
|
3464
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3501
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3465
3502
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3466
3503
|
var n = 1, i = this.clonePosition();
|
|
3467
3504
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3472,8 +3509,8 @@ var Wn = (
|
|
|
3472
3509
|
else
|
|
3473
3510
|
break;
|
|
3474
3511
|
}
|
|
3475
|
-
var h =
|
|
3476
|
-
return o ? (s *= n,
|
|
3512
|
+
var h = d(i, this.clonePosition());
|
|
3513
|
+
return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3477
3514
|
}, e.prototype.offset = function() {
|
|
3478
3515
|
return this.position.offset;
|
|
3479
3516
|
}, e.prototype.isEOF = function() {
|
|
@@ -3539,43 +3576,44 @@ var Wn = (
|
|
|
3539
3576
|
}, e;
|
|
3540
3577
|
}()
|
|
3541
3578
|
);
|
|
3542
|
-
function
|
|
3579
|
+
function Xe(e) {
|
|
3543
3580
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3544
3581
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return
|
|
3582
|
+
function Yn(e) {
|
|
3583
|
+
return Xe(e) || e === 47;
|
|
3547
3584
|
}
|
|
3548
|
-
function
|
|
3585
|
+
function Qn(e) {
|
|
3549
3586
|
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;
|
|
3550
3587
|
}
|
|
3551
3588
|
function nr(e) {
|
|
3552
3589
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3553
3590
|
}
|
|
3554
|
-
function
|
|
3591
|
+
function Jn(e) {
|
|
3555
3592
|
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;
|
|
3556
3593
|
}
|
|
3557
|
-
function
|
|
3594
|
+
function We(e) {
|
|
3558
3595
|
e.forEach(function(t) {
|
|
3559
3596
|
if (delete t.location, zt(t) || Zt(t))
|
|
3560
3597
|
for (var r in t.options)
|
|
3561
|
-
delete t.options[r].location,
|
|
3562
|
-
else
|
|
3598
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3599
|
+
else
|
|
3600
|
+
Vt(t) && Qt(t.style) || (Xt(t) || Wt(t)) && Fe(t.style) ? delete t.style.location : Yt(t) && We(t.children);
|
|
3563
3601
|
});
|
|
3564
3602
|
}
|
|
3565
|
-
function
|
|
3566
|
-
t === void 0 && (t = {}), t =
|
|
3567
|
-
var r = new
|
|
3603
|
+
function qn(e, t) {
|
|
3604
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3605
|
+
var r = new Zn(e, t).parse();
|
|
3568
3606
|
if (r.err) {
|
|
3569
|
-
var n = SyntaxError(
|
|
3607
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3570
3608
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3571
3609
|
}
|
|
3572
|
-
return t != null && t.captureLocation ||
|
|
3610
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3573
3611
|
}
|
|
3574
3612
|
var Q;
|
|
3575
3613
|
(function(e) {
|
|
3576
3614
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3577
3615
|
})(Q || (Q = {}));
|
|
3578
|
-
var
|
|
3616
|
+
var _e = (
|
|
3579
3617
|
/** @class */
|
|
3580
3618
|
function(e) {
|
|
3581
3619
|
$(t, e);
|
|
@@ -3595,8 +3633,8 @@ var Ee = (
|
|
|
3595
3633
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3596
3634
|
}
|
|
3597
3635
|
return t;
|
|
3598
|
-
}(
|
|
3599
|
-
),
|
|
3636
|
+
}(_e)
|
|
3637
|
+
), Kn = (
|
|
3600
3638
|
/** @class */
|
|
3601
3639
|
function(e) {
|
|
3602
3640
|
$(t, e);
|
|
@@ -3604,8 +3642,8 @@ var Ee = (
|
|
|
3604
3642
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3605
3643
|
}
|
|
3606
3644
|
return t;
|
|
3607
|
-
}(
|
|
3608
|
-
),
|
|
3645
|
+
}(_e)
|
|
3646
|
+
), ei = (
|
|
3609
3647
|
/** @class */
|
|
3610
3648
|
function(e) {
|
|
3611
3649
|
$(t, e);
|
|
@@ -3613,18 +3651,18 @@ var Ee = (
|
|
|
3613
3651
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3614
3652
|
}
|
|
3615
3653
|
return t;
|
|
3616
|
-
}(
|
|
3654
|
+
}(_e)
|
|
3617
3655
|
), w;
|
|
3618
3656
|
(function(e) {
|
|
3619
3657
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3620
3658
|
})(w || (w = {}));
|
|
3621
|
-
function
|
|
3659
|
+
function ti(e) {
|
|
3622
3660
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3623
3661
|
var n = t[t.length - 1];
|
|
3624
3662
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3625
3663
|
}, []);
|
|
3626
3664
|
}
|
|
3627
|
-
function
|
|
3665
|
+
function ri(e) {
|
|
3628
3666
|
return typeof e == "function";
|
|
3629
3667
|
}
|
|
3630
3668
|
function pe(e, t, r, n, i, o, s) {
|
|
@@ -3644,7 +3682,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3644
3682
|
});
|
|
3645
3683
|
continue;
|
|
3646
3684
|
}
|
|
3647
|
-
if (
|
|
3685
|
+
if (Sn(l)) {
|
|
3648
3686
|
typeof o == "number" && a.push({
|
|
3649
3687
|
type: w.literal,
|
|
3650
3688
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3653,9 +3691,9 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3653
3691
|
}
|
|
3654
3692
|
var c = l.value;
|
|
3655
3693
|
if (!(i && c in i))
|
|
3656
|
-
throw new
|
|
3694
|
+
throw new ei(c, s);
|
|
3657
3695
|
var f = i[c];
|
|
3658
|
-
if (
|
|
3696
|
+
if (Bn(l)) {
|
|
3659
3697
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3660
3698
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3661
3699
|
value: f
|
|
@@ -3663,79 +3701,79 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3663
3701
|
continue;
|
|
3664
3702
|
}
|
|
3665
3703
|
if (Xt(l)) {
|
|
3666
|
-
var
|
|
3704
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3667
3705
|
a.push({
|
|
3668
3706
|
type: w.literal,
|
|
3669
|
-
value: r.getDateTimeFormat(t,
|
|
3707
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3670
3708
|
});
|
|
3671
3709
|
continue;
|
|
3672
3710
|
}
|
|
3673
3711
|
if (Wt(l)) {
|
|
3674
|
-
var
|
|
3712
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3675
3713
|
a.push({
|
|
3676
3714
|
type: w.literal,
|
|
3677
|
-
value: r.getDateTimeFormat(t,
|
|
3715
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3678
3716
|
});
|
|
3679
3717
|
continue;
|
|
3680
3718
|
}
|
|
3681
3719
|
if (Vt(l)) {
|
|
3682
|
-
var
|
|
3683
|
-
|
|
3720
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3721
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3684
3722
|
type: w.literal,
|
|
3685
|
-
value: r.getNumberFormat(t,
|
|
3723
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3686
3724
|
});
|
|
3687
3725
|
continue;
|
|
3688
3726
|
}
|
|
3689
3727
|
if (Yt(l)) {
|
|
3690
|
-
var
|
|
3691
|
-
if (!
|
|
3692
|
-
throw new
|
|
3693
|
-
var
|
|
3694
|
-
return
|
|
3728
|
+
var g = l.children, p = l.value, x = i[p];
|
|
3729
|
+
if (!ri(x))
|
|
3730
|
+
throw new Kn(p, "function", s);
|
|
3731
|
+
var A = pe(g, t, r, n, i, o), H = x(A.map(function(S) {
|
|
3732
|
+
return S.value;
|
|
3695
3733
|
}));
|
|
3696
|
-
Array.isArray(
|
|
3734
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(S) {
|
|
3697
3735
|
return {
|
|
3698
|
-
type: typeof
|
|
3699
|
-
value:
|
|
3736
|
+
type: typeof S == "string" ? w.literal : w.object,
|
|
3737
|
+
value: S
|
|
3700
3738
|
};
|
|
3701
3739
|
}));
|
|
3702
3740
|
}
|
|
3703
3741
|
if (zt(l)) {
|
|
3704
|
-
var
|
|
3705
|
-
if (!
|
|
3742
|
+
var T = l.options[f] || l.options.other;
|
|
3743
|
+
if (!T)
|
|
3706
3744
|
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3707
|
-
a.push.apply(a, pe(
|
|
3745
|
+
a.push.apply(a, pe(T.value, t, r, n, i));
|
|
3708
3746
|
continue;
|
|
3709
3747
|
}
|
|
3710
3748
|
if (Zt(l)) {
|
|
3711
|
-
var
|
|
3712
|
-
if (!
|
|
3749
|
+
var T = l.options["=".concat(f)];
|
|
3750
|
+
if (!T) {
|
|
3713
3751
|
if (!Intl.PluralRules)
|
|
3714
|
-
throw new
|
|
3752
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3715
3753
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3716
3754
|
`, Q.MISSING_INTL_API, s);
|
|
3717
|
-
var
|
|
3718
|
-
|
|
3755
|
+
var v = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3756
|
+
T = l.options[v] || l.options.other;
|
|
3719
3757
|
}
|
|
3720
|
-
if (!
|
|
3758
|
+
if (!T)
|
|
3721
3759
|
throw new xt(l.value, f, Object.keys(l.options), s);
|
|
3722
|
-
a.push.apply(a, pe(
|
|
3760
|
+
a.push.apply(a, pe(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3723
3761
|
continue;
|
|
3724
3762
|
}
|
|
3725
3763
|
}
|
|
3726
|
-
return
|
|
3764
|
+
return ti(a);
|
|
3727
3765
|
}
|
|
3728
|
-
function
|
|
3729
|
-
return t ?
|
|
3730
|
-
return r[n] =
|
|
3766
|
+
function ni(e, t) {
|
|
3767
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3768
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3731
3769
|
}, {})) : e;
|
|
3732
3770
|
}
|
|
3733
|
-
function
|
|
3771
|
+
function ii(e, t) {
|
|
3734
3772
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3735
|
-
return r[n] =
|
|
3736
|
-
},
|
|
3773
|
+
return r[n] = ni(e[n], t[n]), r;
|
|
3774
|
+
}, y({}, e)) : e;
|
|
3737
3775
|
}
|
|
3738
|
-
function
|
|
3776
|
+
function Ie(e) {
|
|
3739
3777
|
return {
|
|
3740
3778
|
create: function() {
|
|
3741
3779
|
return {
|
|
@@ -3749,39 +3787,39 @@ function Oe(e) {
|
|
|
3749
3787
|
}
|
|
3750
3788
|
};
|
|
3751
3789
|
}
|
|
3752
|
-
function
|
|
3790
|
+
function oi(e) {
|
|
3753
3791
|
return e === void 0 && (e = {
|
|
3754
3792
|
number: {},
|
|
3755
3793
|
dateTime: {},
|
|
3756
3794
|
pluralRules: {}
|
|
3757
3795
|
}), {
|
|
3758
|
-
getNumberFormat:
|
|
3796
|
+
getNumberFormat: Ae(function() {
|
|
3759
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3760
3798
|
r[n] = arguments[n];
|
|
3761
3799
|
return new ((t = Intl.NumberFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3762
3800
|
}, {
|
|
3763
|
-
cache:
|
|
3764
|
-
strategy:
|
|
3801
|
+
cache: Ie(e.number),
|
|
3802
|
+
strategy: Pe.variadic
|
|
3765
3803
|
}),
|
|
3766
|
-
getDateTimeFormat:
|
|
3804
|
+
getDateTimeFormat: Ae(function() {
|
|
3767
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3768
3806
|
r[n] = arguments[n];
|
|
3769
3807
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, z([void 0], r, !1)))();
|
|
3770
3808
|
}, {
|
|
3771
|
-
cache:
|
|
3772
|
-
strategy:
|
|
3809
|
+
cache: Ie(e.dateTime),
|
|
3810
|
+
strategy: Pe.variadic
|
|
3773
3811
|
}),
|
|
3774
|
-
getPluralRules:
|
|
3812
|
+
getPluralRules: Ae(function() {
|
|
3775
3813
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3776
3814
|
r[n] = arguments[n];
|
|
3777
3815
|
return new ((t = Intl.PluralRules).bind.apply(t, z([void 0], r, !1)))();
|
|
3778
3816
|
}, {
|
|
3779
|
-
cache:
|
|
3780
|
-
strategy:
|
|
3817
|
+
cache: Ie(e.pluralRules),
|
|
3818
|
+
strategy: Pe.variadic
|
|
3781
3819
|
})
|
|
3782
3820
|
};
|
|
3783
3821
|
}
|
|
3784
|
-
var
|
|
3822
|
+
var si = (
|
|
3785
3823
|
/** @class */
|
|
3786
3824
|
function() {
|
|
3787
3825
|
function e(t, r, n, i) {
|
|
@@ -3813,13 +3851,13 @@ var ii = (
|
|
|
3813
3851
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3814
3852
|
var s = i || {};
|
|
3815
3853
|
s.formatters;
|
|
3816
|
-
var a =
|
|
3817
|
-
this.ast = e.__parse(t,
|
|
3854
|
+
var a = Dr(s, ["formatters"]);
|
|
3855
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3818
3856
|
} else
|
|
3819
3857
|
this.ast = t;
|
|
3820
3858
|
if (!Array.isArray(this.ast))
|
|
3821
3859
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3822
|
-
this.formats =
|
|
3860
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3823
3861
|
}
|
|
3824
3862
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3825
3863
|
get: function() {
|
|
@@ -3832,7 +3870,7 @@ var ii = (
|
|
|
3832
3870
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3833
3871
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3834
3872
|
}
|
|
3835
|
-
}, e.__parse =
|
|
3873
|
+
}, e.__parse = qn, e.formats = {
|
|
3836
3874
|
number: {
|
|
3837
3875
|
integer: {
|
|
3838
3876
|
maximumFractionDigits: 0
|
|
@@ -3893,7 +3931,7 @@ var ii = (
|
|
|
3893
3931
|
}, e;
|
|
3894
3932
|
}()
|
|
3895
3933
|
);
|
|
3896
|
-
function
|
|
3934
|
+
function ai(e, t) {
|
|
3897
3935
|
if (t == null)
|
|
3898
3936
|
return;
|
|
3899
3937
|
if (t in e)
|
|
@@ -3914,36 +3952,36 @@ function oi(e, t) {
|
|
|
3914
3952
|
n = void 0;
|
|
3915
3953
|
return n;
|
|
3916
3954
|
}
|
|
3917
|
-
const
|
|
3955
|
+
const D = {}, ui = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), ir = (e, t) => {
|
|
3918
3956
|
if (t == null)
|
|
3919
3957
|
return;
|
|
3920
|
-
if (t in
|
|
3921
|
-
return
|
|
3922
|
-
const r =
|
|
3958
|
+
if (t in D && e in D[t])
|
|
3959
|
+
return D[t][e];
|
|
3960
|
+
const r = xe(t);
|
|
3923
3961
|
for (let n = 0; n < r.length; n++) {
|
|
3924
|
-
const i = r[n], o =
|
|
3962
|
+
const i = r[n], o = li(i, e);
|
|
3925
3963
|
if (o)
|
|
3926
|
-
return
|
|
3964
|
+
return ui(e, t, o);
|
|
3927
3965
|
}
|
|
3928
3966
|
};
|
|
3929
3967
|
let Ke;
|
|
3930
|
-
const
|
|
3931
|
-
function
|
|
3968
|
+
const he = Ee({});
|
|
3969
|
+
function hi(e) {
|
|
3932
3970
|
return Ke[e] || null;
|
|
3933
3971
|
}
|
|
3934
3972
|
function or(e) {
|
|
3935
3973
|
return e in Ke;
|
|
3936
3974
|
}
|
|
3937
|
-
function
|
|
3975
|
+
function li(e, t) {
|
|
3938
3976
|
if (!or(e))
|
|
3939
3977
|
return null;
|
|
3940
|
-
const r =
|
|
3941
|
-
return
|
|
3978
|
+
const r = hi(e);
|
|
3979
|
+
return ai(r, t);
|
|
3942
3980
|
}
|
|
3943
|
-
function
|
|
3981
|
+
function ci(e) {
|
|
3944
3982
|
if (e == null)
|
|
3945
3983
|
return;
|
|
3946
|
-
const t =
|
|
3984
|
+
const t = xe(e);
|
|
3947
3985
|
for (let r = 0; r < t.length; r++) {
|
|
3948
3986
|
const n = t[r];
|
|
3949
3987
|
if (or(n))
|
|
@@ -3951,55 +3989,55 @@ function hi(e) {
|
|
|
3951
3989
|
}
|
|
3952
3990
|
}
|
|
3953
3991
|
function sr(e, ...t) {
|
|
3954
|
-
delete
|
|
3992
|
+
delete D[e], he.update((r) => (r[e] = dn.all([r[e] || {}, ...t]), r));
|
|
3955
3993
|
}
|
|
3956
3994
|
q(
|
|
3957
|
-
[
|
|
3995
|
+
[he],
|
|
3958
3996
|
([e]) => Object.keys(e)
|
|
3959
3997
|
);
|
|
3960
|
-
|
|
3961
|
-
const
|
|
3962
|
-
function
|
|
3963
|
-
|
|
3998
|
+
he.subscribe((e) => Ke = e);
|
|
3999
|
+
const be = {};
|
|
4000
|
+
function fi(e, t) {
|
|
4001
|
+
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3964
4002
|
}
|
|
3965
4003
|
function ar(e) {
|
|
3966
|
-
return
|
|
4004
|
+
return be[e];
|
|
3967
4005
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return
|
|
4006
|
+
function mi(e) {
|
|
4007
|
+
return xe(e).map((t) => {
|
|
3970
4008
|
const r = ar(t);
|
|
3971
4009
|
return [t, r ? [...r] : []];
|
|
3972
4010
|
}).filter(([, t]) => t.length > 0);
|
|
3973
4011
|
}
|
|
3974
|
-
function
|
|
3975
|
-
return e == null ? !1 :
|
|
4012
|
+
function ze(e) {
|
|
4013
|
+
return e == null ? !1 : xe(e).some(
|
|
3976
4014
|
(t) => {
|
|
3977
4015
|
var r;
|
|
3978
4016
|
return (r = ar(t)) == null ? void 0 : r.size;
|
|
3979
4017
|
}
|
|
3980
4018
|
);
|
|
3981
4019
|
}
|
|
3982
|
-
function
|
|
4020
|
+
function pi(e, t) {
|
|
3983
4021
|
return Promise.all(
|
|
3984
|
-
t.map((n) => (
|
|
4022
|
+
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
|
3985
4023
|
).then((n) => sr(e, ...n));
|
|
3986
4024
|
}
|
|
3987
4025
|
const te = {};
|
|
3988
4026
|
function ur(e) {
|
|
3989
|
-
if (!
|
|
4027
|
+
if (!ze(e))
|
|
3990
4028
|
return e in te ? te[e] : Promise.resolve();
|
|
3991
|
-
const t =
|
|
4029
|
+
const t = mi(e);
|
|
3992
4030
|
return te[e] = Promise.all(
|
|
3993
4031
|
t.map(
|
|
3994
|
-
([r, n]) =>
|
|
4032
|
+
([r, n]) => pi(r, n)
|
|
3995
4033
|
)
|
|
3996
4034
|
).then(() => {
|
|
3997
|
-
if (
|
|
4035
|
+
if (ze(e))
|
|
3998
4036
|
return ur(e);
|
|
3999
4037
|
delete te[e];
|
|
4000
4038
|
}), te[e];
|
|
4001
4039
|
}
|
|
4002
|
-
const
|
|
4040
|
+
const bi = {
|
|
4003
4041
|
number: {
|
|
4004
4042
|
scientific: { notation: "scientific" },
|
|
4005
4043
|
engineering: { notation: "engineering" },
|
|
@@ -4028,135 +4066,135 @@ const pi = {
|
|
|
4028
4066
|
timeZoneName: "short"
|
|
4029
4067
|
}
|
|
4030
4068
|
}
|
|
4031
|
-
},
|
|
4069
|
+
}, di = {
|
|
4032
4070
|
fallbackLocale: null,
|
|
4033
4071
|
loadingDelay: 200,
|
|
4034
|
-
formats:
|
|
4072
|
+
formats: bi,
|
|
4035
4073
|
warnOnMissingMessages: !0,
|
|
4036
4074
|
handleMissingMessage: void 0,
|
|
4037
4075
|
ignoreTag: !0
|
|
4038
|
-
},
|
|
4076
|
+
}, gi = di;
|
|
4039
4077
|
function J() {
|
|
4040
|
-
return
|
|
4078
|
+
return gi;
|
|
4041
4079
|
}
|
|
4042
|
-
const
|
|
4043
|
-
var
|
|
4080
|
+
const Ne = Ee(!1);
|
|
4081
|
+
var yi = Object.defineProperty, vi = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4044
4082
|
for (var r in t || (t = {}))
|
|
4045
|
-
|
|
4083
|
+
_i.call(t, r) && St(e, r, t[r]);
|
|
4046
4084
|
if (Bt)
|
|
4047
4085
|
for (var r of Bt(t))
|
|
4048
|
-
|
|
4086
|
+
xi.call(t, r) && St(e, r, t[r]);
|
|
4049
4087
|
return e;
|
|
4050
|
-
},
|
|
4051
|
-
let
|
|
4052
|
-
const
|
|
4088
|
+
}, Si = (e, t) => vi(e, Ei(t));
|
|
4089
|
+
let Ze;
|
|
4090
|
+
const de = Ee(null);
|
|
4053
4091
|
function Tt(e) {
|
|
4054
4092
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4055
4093
|
}
|
|
4056
|
-
function
|
|
4094
|
+
function xe(e, t = J().fallbackLocale) {
|
|
4057
4095
|
const r = Tt(e);
|
|
4058
4096
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4059
4097
|
}
|
|
4060
4098
|
function F() {
|
|
4061
|
-
return
|
|
4099
|
+
return Ze != null ? Ze : void 0;
|
|
4062
4100
|
}
|
|
4063
|
-
|
|
4064
|
-
|
|
4101
|
+
de.subscribe((e) => {
|
|
4102
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4065
4103
|
});
|
|
4066
|
-
const
|
|
4067
|
-
if (e &&
|
|
4104
|
+
const Ti = (e) => {
|
|
4105
|
+
if (e && ci(e) && ze(e)) {
|
|
4068
4106
|
const { loadingDelay: t } = J();
|
|
4069
4107
|
let r;
|
|
4070
4108
|
return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
|
|
4071
|
-
() =>
|
|
4109
|
+
() => Ne.set(!0),
|
|
4072
4110
|
t
|
|
4073
|
-
) :
|
|
4074
|
-
|
|
4111
|
+
) : Ne.set(!0), ur(e).then(() => {
|
|
4112
|
+
de.set(e);
|
|
4075
4113
|
}).finally(() => {
|
|
4076
|
-
clearTimeout(r),
|
|
4114
|
+
clearTimeout(r), Ne.set(!1);
|
|
4077
4115
|
});
|
|
4078
4116
|
}
|
|
4079
|
-
return
|
|
4080
|
-
}, K =
|
|
4081
|
-
set:
|
|
4082
|
-
}),
|
|
4117
|
+
return de.set(e);
|
|
4118
|
+
}, K = Si(Bi({}, de), {
|
|
4119
|
+
set: Ti
|
|
4120
|
+
}), Be = (e) => {
|
|
4083
4121
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4084
4122
|
return (n) => {
|
|
4085
4123
|
const i = JSON.stringify(n);
|
|
4086
4124
|
return i in t ? t[i] : t[i] = e(n);
|
|
4087
4125
|
};
|
|
4088
4126
|
};
|
|
4089
|
-
var
|
|
4127
|
+
var wi = Object.defineProperty, ge = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4090
4128
|
for (var r in t || (t = {}))
|
|
4091
|
-
hr.call(t, r) &&
|
|
4092
|
-
if (
|
|
4093
|
-
for (var r of
|
|
4094
|
-
lr.call(t, r) &&
|
|
4129
|
+
hr.call(t, r) && wt(e, r, t[r]);
|
|
4130
|
+
if (ge)
|
|
4131
|
+
for (var r of ge(t))
|
|
4132
|
+
lr.call(t, r) && wt(e, r, t[r]);
|
|
4095
4133
|
return e;
|
|
4096
4134
|
}, ee = (e, t) => {
|
|
4097
4135
|
var r = {};
|
|
4098
4136
|
for (var n in e)
|
|
4099
4137
|
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4100
|
-
if (e != null &&
|
|
4101
|
-
for (var n of
|
|
4138
|
+
if (e != null && ge)
|
|
4139
|
+
for (var n of ge(e))
|
|
4102
4140
|
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4103
4141
|
return r;
|
|
4104
4142
|
};
|
|
4105
|
-
const
|
|
4143
|
+
const ae = (e, t) => {
|
|
4106
4144
|
const { formats: r } = J();
|
|
4107
4145
|
if (e in r && t in r[e])
|
|
4108
4146
|
return r[e][t];
|
|
4109
4147
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4110
|
-
},
|
|
4148
|
+
}, Hi = Be(
|
|
4111
4149
|
(e) => {
|
|
4112
4150
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4113
4151
|
if (r == null)
|
|
4114
4152
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4115
|
-
return n && (i =
|
|
4153
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4116
4154
|
}
|
|
4117
|
-
),
|
|
4155
|
+
), Ai = Be(
|
|
4118
4156
|
(e) => {
|
|
4119
4157
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4120
4158
|
if (r == null)
|
|
4121
4159
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4122
|
-
return n ? i =
|
|
4160
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4123
4161
|
}
|
|
4124
|
-
),
|
|
4162
|
+
), Pi = Be(
|
|
4125
4163
|
(e) => {
|
|
4126
4164
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4127
4165
|
if (r == null)
|
|
4128
4166
|
throw new Error(
|
|
4129
4167
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4130
4168
|
);
|
|
4131
|
-
return n ? i =
|
|
4169
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4132
4170
|
}
|
|
4133
|
-
),
|
|
4171
|
+
), Oi = (e = {}) => {
|
|
4134
4172
|
var t = e, {
|
|
4135
4173
|
locale: r = F()
|
|
4136
4174
|
} = t, n = ee(t, [
|
|
4137
4175
|
"locale"
|
|
4138
4176
|
]);
|
|
4139
|
-
return
|
|
4140
|
-
},
|
|
4177
|
+
return Hi(et({ locale: r }, n));
|
|
4178
|
+
}, Ii = (e = {}) => {
|
|
4141
4179
|
var t = e, {
|
|
4142
4180
|
locale: r = F()
|
|
4143
4181
|
} = t, n = ee(t, [
|
|
4144
4182
|
"locale"
|
|
4145
4183
|
]);
|
|
4146
|
-
return
|
|
4147
|
-
},
|
|
4184
|
+
return Ai(et({ locale: r }, n));
|
|
4185
|
+
}, Ni = (e = {}) => {
|
|
4148
4186
|
var t = e, {
|
|
4149
4187
|
locale: r = F()
|
|
4150
4188
|
} = t, n = ee(t, [
|
|
4151
4189
|
"locale"
|
|
4152
4190
|
]);
|
|
4153
|
-
return
|
|
4154
|
-
},
|
|
4191
|
+
return Pi(et({ locale: r }, n));
|
|
4192
|
+
}, Mi = Be(
|
|
4155
4193
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4156
|
-
(e, t = F()) => new
|
|
4194
|
+
(e, t = F()) => new si(e, t, J().formats, {
|
|
4157
4195
|
ignoreTag: J().ignoreTag
|
|
4158
4196
|
})
|
|
4159
|
-
),
|
|
4197
|
+
), Ci = (e, t = {}) => {
|
|
4160
4198
|
var r, n, i, o;
|
|
4161
4199
|
let s = t;
|
|
4162
4200
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4180,7 +4218,7 @@ const se = (e, t) => {
|
|
|
4180
4218
|
return l;
|
|
4181
4219
|
let c = l;
|
|
4182
4220
|
try {
|
|
4183
|
-
c =
|
|
4221
|
+
c = Mi(l, h).format(a);
|
|
4184
4222
|
} catch (f) {
|
|
4185
4223
|
f instanceof Error && console.warn(
|
|
4186
4224
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4188,17 +4226,17 @@ const se = (e, t) => {
|
|
|
4188
4226
|
);
|
|
4189
4227
|
}
|
|
4190
4228
|
return c;
|
|
4191
|
-
},
|
|
4192
|
-
q([K], () => Ci);
|
|
4193
|
-
q([K], () => Mi);
|
|
4229
|
+
}, Li = (e, t) => Ni(t).format(e), $i = (e, t) => Ii(t).format(e), Ri = (e, t) => Oi(t).format(e), Di = (e, t = F()) => ir(e, t), Ui = q([K, he], () => Ci);
|
|
4194
4230
|
q([K], () => Li);
|
|
4195
|
-
q([K
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4231
|
+
q([K], () => $i);
|
|
4232
|
+
q([K], () => Ri);
|
|
4233
|
+
q([K, he], () => Di);
|
|
4234
|
+
window.emWidgets = { topic: qr };
|
|
4235
|
+
const Gi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4236
|
+
function Ht(e, t) {
|
|
4199
4237
|
sr(e, t);
|
|
4200
4238
|
}
|
|
4201
|
-
function
|
|
4239
|
+
function Fi(e) {
|
|
4202
4240
|
K.set(e);
|
|
4203
4241
|
}
|
|
4204
4242
|
const At = {
|
|
@@ -4280,47 +4318,70 @@ const At = {
|
|
|
4280
4318
|
btnDisableBiometrics: "Disable biometrics"
|
|
4281
4319
|
}
|
|
4282
4320
|
};
|
|
4283
|
-
function
|
|
4321
|
+
function ji(e, t) {
|
|
4322
|
+
if (e) {
|
|
4323
|
+
const r = document.createElement("style");
|
|
4324
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4325
|
+
}
|
|
4326
|
+
}
|
|
4327
|
+
function ki(e, t) {
|
|
4328
|
+
const r = new URL(t);
|
|
4329
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4330
|
+
const i = document.createElement("style");
|
|
4331
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4332
|
+
}).catch((n) => {
|
|
4333
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4334
|
+
});
|
|
4335
|
+
}
|
|
4336
|
+
function Vi(e, t, r) {
|
|
4337
|
+
if (window.emMessageBus) {
|
|
4338
|
+
const n = document.createElement("style");
|
|
4339
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4340
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4341
|
+
});
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
function Xi(e) {
|
|
4284
4345
|
yr(e, "svelte-1cpvxby", ".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.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))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons .BiometricsToggle{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
|
|
4285
4346
|
}
|
|
4286
|
-
function
|
|
4347
|
+
function Wi(e) {
|
|
4287
4348
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4288
4349
|
/*$_*/
|
|
4289
4350
|
e[2]("titleBiometrics") + ""
|
|
4290
|
-
), f,
|
|
4351
|
+
), f, m, g;
|
|
4291
4352
|
return {
|
|
4292
4353
|
c() {
|
|
4293
|
-
t =
|
|
4354
|
+
t = I("div"), r = j("svg"), n = j("defs"), i = j("style"), o = G(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = j("g"), a = j("g"), h = j("path"), u = re(), l = I("h2"), f = G(c), B(h, "class", "aaa"), B(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(h, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "width", "15"), B(r, "height", "15"), B(r, "viewBox", "0 0 15 15"), B(l, "class", "BiometricsTitleMobile"), B(l, "part", "BiometricsTitleMobile"), B(t, "class", "MenuReturnButton"), B(t, "part", "MenuReturnButton");
|
|
4294
4355
|
},
|
|
4295
|
-
m(
|
|
4296
|
-
|
|
4356
|
+
m(p, x) {
|
|
4357
|
+
Qe(p, t, x), E(t, r), E(r, n), E(n, i), E(i, o), E(r, s), E(s, a), E(a, h), E(t, u), E(t, l), E(l, f), m || (g = Nt(
|
|
4297
4358
|
t,
|
|
4298
4359
|
"click",
|
|
4299
4360
|
/*click_handler*/
|
|
4300
|
-
e[
|
|
4301
|
-
),
|
|
4361
|
+
e[11]
|
|
4362
|
+
), m = !0);
|
|
4302
4363
|
},
|
|
4303
|
-
p(
|
|
4364
|
+
p(p, x) {
|
|
4304
4365
|
x & /*$_*/
|
|
4305
4366
|
4 && c !== (c = /*$_*/
|
|
4306
|
-
|
|
4367
|
+
p[2]("titleBiometrics") + "") && ne(f, c);
|
|
4307
4368
|
},
|
|
4308
|
-
d(
|
|
4309
|
-
|
|
4369
|
+
d(p) {
|
|
4370
|
+
p && ye(t), m = !1, g();
|
|
4310
4371
|
}
|
|
4311
4372
|
};
|
|
4312
4373
|
}
|
|
4313
|
-
function
|
|
4374
|
+
function zi(e) {
|
|
4314
4375
|
let t, r, n, i, o = (
|
|
4315
4376
|
/*$_*/
|
|
4316
4377
|
e[2]("titleBiometrics") + ""
|
|
4317
4378
|
), s, a, h, u, l = (
|
|
4318
4379
|
/*$_*/
|
|
4319
4380
|
e[2]("descriptionParagraph1") + ""
|
|
4320
|
-
), c, f,
|
|
4381
|
+
), c, f, m, g = (
|
|
4321
4382
|
/*$_*/
|
|
4322
4383
|
e[2]("descriptionParagraph2") + ""
|
|
4323
|
-
),
|
|
4384
|
+
), p, x, A, H, T = (
|
|
4324
4385
|
/*biometricsenabled*/
|
|
4325
4386
|
(e[0] === "true" ? (
|
|
4326
4387
|
/*$_*/
|
|
@@ -4329,175 +4390,174 @@ function ji(e) {
|
|
|
4329
4390
|
/*$_*/
|
|
4330
4391
|
e[2]("btnEnableBiometrics")
|
|
4331
4392
|
)) + ""
|
|
4332
|
-
),
|
|
4393
|
+
), v, S, M, C = (
|
|
4333
4394
|
/*isMobile*/
|
|
4334
|
-
e[3] &&
|
|
4395
|
+
e[3] && Wi(e)
|
|
4335
4396
|
);
|
|
4336
4397
|
return {
|
|
4337
4398
|
c() {
|
|
4338
|
-
t =
|
|
4399
|
+
t = I("div"), r = I("div"), C && C.c(), n = re(), i = I("h2"), s = G(o), a = re(), h = I("div"), u = I("p"), c = G(l), f = re(), m = I("p"), p = G(g), x = re(), A = I("div"), H = I("button"), v = G(T), B(i, "class", "BiometricsTitle " + /*isMobile*/
|
|
4339
4400
|
(e[3] ? "BiometricsTitleNone" : "")), B(h, "class", "BiometricsDescription " + /*isMobile*/
|
|
4340
|
-
(e[3] ? "BiometricsDescriptionMobile" : "")), B(
|
|
4401
|
+
(e[3] ? "BiometricsDescriptionMobile" : "")), B(H, "class", "BiometricsToggle"), B(A, "class", "BiometricsActionButtons " + /*isMobile*/
|
|
4341
4402
|
(e[3] ? "BiometricsActionButtonsMobile" : "")), B(r, "class", "BiometricsWrapper " + /*isMobile*/
|
|
4342
4403
|
(e[3] ? "BiometricsWrapperMobile" : ""));
|
|
4343
4404
|
},
|
|
4344
|
-
m(
|
|
4345
|
-
|
|
4346
|
-
|
|
4405
|
+
m(P, U) {
|
|
4406
|
+
Qe(P, t, U), E(t, r), C && C.m(r, null), E(r, n), E(r, i), E(i, s), E(r, a), E(r, h), E(h, u), E(u, c), E(h, f), E(h, m), E(m, p), E(r, x), E(r, A), E(A, H), E(H, v), e[13](t), S || (M = Nt(
|
|
4407
|
+
H,
|
|
4347
4408
|
"click",
|
|
4348
4409
|
/*click_handler_1*/
|
|
4349
|
-
e[
|
|
4350
|
-
),
|
|
4410
|
+
e[12]
|
|
4411
|
+
), S = !0);
|
|
4351
4412
|
},
|
|
4352
|
-
p(
|
|
4413
|
+
p(P, [U]) {
|
|
4353
4414
|
/*isMobile*/
|
|
4354
|
-
|
|
4415
|
+
P[3] && C.p(P, U), U & /*$_*/
|
|
4355
4416
|
4 && o !== (o = /*$_*/
|
|
4356
|
-
|
|
4417
|
+
P[2]("titleBiometrics") + "") && ne(s, o), U & /*$_*/
|
|
4357
4418
|
4 && l !== (l = /*$_*/
|
|
4358
|
-
|
|
4359
|
-
4 &&
|
|
4360
|
-
|
|
4361
|
-
5 &&
|
|
4362
|
-
(
|
|
4419
|
+
P[2]("descriptionParagraph1") + "") && ne(c, l), U & /*$_*/
|
|
4420
|
+
4 && g !== (g = /*$_*/
|
|
4421
|
+
P[2]("descriptionParagraph2") + "") && ne(p, g), U & /*biometricsenabled, $_*/
|
|
4422
|
+
5 && T !== (T = /*biometricsenabled*/
|
|
4423
|
+
(P[0] === "true" ? (
|
|
4363
4424
|
/*$_*/
|
|
4364
|
-
|
|
4425
|
+
P[2]("btnDisableBiometrics")
|
|
4365
4426
|
) : (
|
|
4366
4427
|
/*$_*/
|
|
4367
|
-
|
|
4368
|
-
)) + "") && ne(
|
|
4428
|
+
P[2]("btnEnableBiometrics")
|
|
4429
|
+
)) + "") && ne(v, T);
|
|
4369
4430
|
},
|
|
4370
|
-
i:
|
|
4371
|
-
o:
|
|
4372
|
-
d(
|
|
4373
|
-
|
|
4431
|
+
i: N,
|
|
4432
|
+
o: N,
|
|
4433
|
+
d(P) {
|
|
4434
|
+
P && ye(t), C && C.d(), e[13](null), S = !1, M();
|
|
4374
4435
|
}
|
|
4375
4436
|
};
|
|
4376
4437
|
}
|
|
4377
|
-
function
|
|
4438
|
+
function Zi(e, t, r) {
|
|
4378
4439
|
let n;
|
|
4379
|
-
gr(e,
|
|
4380
|
-
let { biometricsenabled: i = "false" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, {
|
|
4381
|
-
const
|
|
4382
|
-
fetch(
|
|
4383
|
-
Object.keys(
|
|
4384
|
-
|
|
4440
|
+
gr(e, Ui, (v) => r(2, n = v));
|
|
4441
|
+
let { biometricsenabled: i = "false" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: h } = t, { translationurl: u = "" } = t, l, c = window.navigator.userAgent, f = Gi(c) !== "PC";
|
|
4442
|
+
const m = () => {
|
|
4443
|
+
fetch(u).then((S) => S.json()).then((S) => {
|
|
4444
|
+
Object.keys(S).forEach((M) => {
|
|
4445
|
+
Ht(M, S[M]);
|
|
4385
4446
|
});
|
|
4386
|
-
}).catch((
|
|
4387
|
-
console.log(
|
|
4447
|
+
}).catch((S) => {
|
|
4448
|
+
console.log(S);
|
|
4388
4449
|
});
|
|
4389
4450
|
};
|
|
4390
|
-
Object.keys(At).forEach((
|
|
4391
|
-
|
|
4451
|
+
Object.keys(At).forEach((v) => {
|
|
4452
|
+
Ht(v, At[v]);
|
|
4392
4453
|
});
|
|
4393
|
-
const
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
}, y = () => {
|
|
4397
|
-
let b = new URL(a), T = document.createElement("style");
|
|
4398
|
-
fetch(b.href).then((H) => H.text()).then((H) => {
|
|
4399
|
-
T.innerHTML = H, setTimeout(
|
|
4400
|
-
() => {
|
|
4401
|
-
u.appendChild(T);
|
|
4402
|
-
},
|
|
4403
|
-
1
|
|
4404
|
-
);
|
|
4405
|
-
});
|
|
4406
|
-
}, m = () => {
|
|
4407
|
-
Ui(o);
|
|
4408
|
-
}, x = () => {
|
|
4454
|
+
const g = () => {
|
|
4455
|
+
Fi(o);
|
|
4456
|
+
}, p = () => {
|
|
4409
4457
|
window.postMessage(
|
|
4410
4458
|
{
|
|
4411
4459
|
type: "PlayerAccountMenuActive",
|
|
4412
|
-
isMobile:
|
|
4460
|
+
isMobile: f
|
|
4413
4461
|
},
|
|
4414
4462
|
window.location.href
|
|
4415
4463
|
);
|
|
4416
|
-
},
|
|
4464
|
+
}, x = () => {
|
|
4417
4465
|
i === "true" ? r(0, i = "false") : i === "false" && r(0, i = "true"), window.postMessage({
|
|
4418
4466
|
type: "ToggleBiometrics",
|
|
4419
4467
|
data: i
|
|
4420
4468
|
});
|
|
4421
|
-
}
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4469
|
+
};
|
|
4470
|
+
Sr(() => () => {
|
|
4471
|
+
});
|
|
4472
|
+
const A = () => p(), H = () => x();
|
|
4473
|
+
function T(v) {
|
|
4474
|
+
Me[v ? "unshift" : "push"](() => {
|
|
4475
|
+
l = v, r(1, l);
|
|
4425
4476
|
});
|
|
4426
4477
|
}
|
|
4427
|
-
return e.$$set = (
|
|
4428
|
-
"biometricsenabled" in
|
|
4478
|
+
return e.$$set = (v) => {
|
|
4479
|
+
"biometricsenabled" in v && r(0, i = v.biometricsenabled), "lang" in v && r(6, o = v.lang), "clientstyling" in v && r(7, s = v.clientstyling), "clientstylingurl" in v && r(8, a = v.clientstylingurl), "mbsource" in v && r(9, h = v.mbsource), "translationurl" in v && r(10, u = v.translationurl);
|
|
4429
4480
|
}, e.$$.update = () => {
|
|
4430
4481
|
e.$$.dirty & /*lang*/
|
|
4431
|
-
64 && o &&
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4482
|
+
64 && o && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4483
|
+
130 && s && l && ji(l, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4484
|
+
258 && a && l && ki(l, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4485
|
+
514 && h && l && Vi(l, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4486
|
+
1024 && u && m();
|
|
4435
4487
|
}, [
|
|
4436
4488
|
i,
|
|
4437
|
-
|
|
4489
|
+
l,
|
|
4438
4490
|
n,
|
|
4439
|
-
|
|
4491
|
+
f,
|
|
4492
|
+
p,
|
|
4440
4493
|
x,
|
|
4441
|
-
P,
|
|
4442
4494
|
o,
|
|
4443
4495
|
s,
|
|
4444
4496
|
a,
|
|
4445
4497
|
h,
|
|
4498
|
+
u,
|
|
4446
4499
|
A,
|
|
4447
|
-
|
|
4448
|
-
|
|
4500
|
+
H,
|
|
4501
|
+
T
|
|
4449
4502
|
];
|
|
4450
4503
|
}
|
|
4451
|
-
class
|
|
4504
|
+
class Yi extends $r {
|
|
4452
4505
|
constructor(t) {
|
|
4453
|
-
super(),
|
|
4506
|
+
super(), Cr(
|
|
4454
4507
|
this,
|
|
4455
4508
|
t,
|
|
4456
|
-
|
|
4457
|
-
|
|
4509
|
+
Zi,
|
|
4510
|
+
zi,
|
|
4458
4511
|
Ot,
|
|
4459
4512
|
{
|
|
4460
4513
|
biometricsenabled: 0,
|
|
4461
4514
|
lang: 6,
|
|
4462
4515
|
clientstyling: 7,
|
|
4463
4516
|
clientstylingurl: 8,
|
|
4464
|
-
|
|
4517
|
+
mbsource: 9,
|
|
4518
|
+
translationurl: 10
|
|
4465
4519
|
},
|
|
4466
|
-
|
|
4520
|
+
Xi
|
|
4467
4521
|
);
|
|
4468
4522
|
}
|
|
4469
4523
|
get biometricsenabled() {
|
|
4470
4524
|
return this.$$.ctx[0];
|
|
4471
4525
|
}
|
|
4472
4526
|
set biometricsenabled(t) {
|
|
4473
|
-
this.$$set({ biometricsenabled: t }),
|
|
4527
|
+
this.$$set({ biometricsenabled: t }), R();
|
|
4474
4528
|
}
|
|
4475
4529
|
get lang() {
|
|
4476
4530
|
return this.$$.ctx[6];
|
|
4477
4531
|
}
|
|
4478
4532
|
set lang(t) {
|
|
4479
|
-
this.$$set({ lang: t }),
|
|
4533
|
+
this.$$set({ lang: t }), R();
|
|
4480
4534
|
}
|
|
4481
4535
|
get clientstyling() {
|
|
4482
4536
|
return this.$$.ctx[7];
|
|
4483
4537
|
}
|
|
4484
4538
|
set clientstyling(t) {
|
|
4485
|
-
this.$$set({ clientstyling: t }),
|
|
4539
|
+
this.$$set({ clientstyling: t }), R();
|
|
4486
4540
|
}
|
|
4487
4541
|
get clientstylingurl() {
|
|
4488
4542
|
return this.$$.ctx[8];
|
|
4489
4543
|
}
|
|
4490
4544
|
set clientstylingurl(t) {
|
|
4491
|
-
this.$$set({ clientstylingurl: t }),
|
|
4545
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4492
4546
|
}
|
|
4493
|
-
get
|
|
4547
|
+
get mbsource() {
|
|
4494
4548
|
return this.$$.ctx[9];
|
|
4495
4549
|
}
|
|
4550
|
+
set mbsource(t) {
|
|
4551
|
+
this.$$set({ mbsource: t }), R();
|
|
4552
|
+
}
|
|
4553
|
+
get translationurl() {
|
|
4554
|
+
return this.$$.ctx[10];
|
|
4555
|
+
}
|
|
4496
4556
|
set translationurl(t) {
|
|
4497
|
-
this.$$set({ translationurl: t }),
|
|
4557
|
+
this.$$set({ translationurl: t }), R();
|
|
4498
4558
|
}
|
|
4499
4559
|
}
|
|
4500
|
-
|
|
4560
|
+
Lr(Yi, { biometricsenabled: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4501
4561
|
export {
|
|
4502
|
-
|
|
4562
|
+
Yi as default
|
|
4503
4563
|
};
|