@everymatrix/general-logout 1.86.4 → 1.86.5
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/{GeneralLogout-iMef3v_8.js → GeneralLogout-CQef-Jah.js} +744 -723
- package/components/GeneralLogout-DsmMdpPL.cjs +18 -0
- package/components/{GeneralLogout-C_gz1doD.js → GeneralLogout-IXsvPAN0.js} +727 -706
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
- package/components/GeneralLogout-4N6fm6KZ.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ht(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ne(e) {
|
|
10
|
+
e.forEach(Ht);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ur(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Ht(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function hr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function S(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function lr(e, t, r) {
|
|
37
|
+
const n = cr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = O("style");
|
|
40
|
+
i.id = t, i.textContent = r, fr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function cr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,48 +50,48 @@ function lr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function fr(e, t) {
|
|
54
54
|
return S(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ie(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function O(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Y(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ge(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function pr() {
|
|
76
|
+
return ge(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function At(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function T(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function dr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Pt(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function mr(e, t, r, n) {
|
|
92
92
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function br(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,87 +100,87 @@ function mr(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let ee;
|
|
104
|
+
function K(e) {
|
|
105
|
+
ee = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function gr() {
|
|
108
|
+
if (!ee)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return ee;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function yr(e) {
|
|
113
|
+
gr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const F = [],
|
|
115
|
+
const F = [], Ne = [];
|
|
116
116
|
let j = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const tt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Me = !1;
|
|
119
|
+
function _r() {
|
|
120
|
+
Me || (Me = !0, vr.then(w));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ce(e) {
|
|
123
123
|
j.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
125
|
+
const He = /* @__PURE__ */ new Set();
|
|
126
|
+
let G = 0;
|
|
127
|
+
function w() {
|
|
128
|
+
if (G !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = ee;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
|
-
for (;
|
|
134
|
-
const t = F[
|
|
135
|
-
|
|
133
|
+
for (; G < F.length; ) {
|
|
134
|
+
const t = F[G];
|
|
135
|
+
G++, K(t), Er(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
|
-
throw F.length = 0,
|
|
138
|
+
throw F.length = 0, G = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
140
|
+
for (K(null), F.length = 0, G = 0; Ne.length; )
|
|
141
|
+
Ne.pop()();
|
|
142
142
|
for (let t = 0; t < j.length; t += 1) {
|
|
143
143
|
const r = j[t];
|
|
144
|
-
|
|
144
|
+
He.has(r) || (He.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
j.length = 0;
|
|
147
147
|
} while (F.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; tt.length; )
|
|
149
|
+
tt.pop()();
|
|
150
|
+
Me = !1, He.clear(), K(e);
|
|
151
151
|
}
|
|
152
152
|
function Er(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), ne(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function xr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
164
|
+
function Tr(e, t) {
|
|
165
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Hr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Ce(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Ht).filter(Ye);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Ce);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Br(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (xr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
178
|
+
function wr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
181
|
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
-
const h =
|
|
183
|
-
|
|
182
|
+
const h = ee;
|
|
183
|
+
K(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: B,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: et(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,7 +197,7 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: et(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
@@ -206,19 +206,19 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
let l = !1;
|
|
207
207
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
208
208
|
const d = p.length ? p[0] : c;
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && wr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = dr(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(z);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), w();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
K(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let Ot;
|
|
221
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,24 +260,24 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = O("slot"), i !== "default" && T(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
ie(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && z(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = br(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Pr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends Ot {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Or {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Pr {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
Br(this, 1), this.$destroy = B;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class Pr {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!Ye(r))
|
|
425
425
|
return B;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,11 +434,11 @@ class Pr {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
+
const Ir = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
442
442
|
/*! *****************************************************************************
|
|
443
443
|
Copyright (c) Microsoft Corporation.
|
|
444
444
|
|
|
@@ -453,43 +453,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
453
453
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
454
454
|
PERFORMANCE OF THIS SOFTWARE.
|
|
455
455
|
***************************************************************************** */
|
|
456
|
-
var
|
|
457
|
-
return
|
|
456
|
+
var $e = function(e, t) {
|
|
457
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
458
458
|
r.__proto__ = n;
|
|
459
459
|
} || function(r, n) {
|
|
460
460
|
for (var i in n)
|
|
461
461
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
|
-
},
|
|
462
|
+
}, $e(e, t);
|
|
463
463
|
};
|
|
464
|
-
function
|
|
464
|
+
function oe(e, t) {
|
|
465
465
|
if (typeof t != "function" && t !== null)
|
|
466
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
467
|
-
|
|
467
|
+
$e(e, t);
|
|
468
468
|
function r() {
|
|
469
469
|
this.constructor = e;
|
|
470
470
|
}
|
|
471
471
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
472
472
|
}
|
|
473
|
-
|
|
474
|
-
return g = Object.assign || function(t) {
|
|
475
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
476
|
-
r = arguments[n];
|
|
477
|
-
for (var o in r)
|
|
478
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
479
|
-
}
|
|
480
|
-
return t;
|
|
481
|
-
}, g.apply(this, arguments);
|
|
482
|
-
};
|
|
483
|
-
function Ir(e, t) {
|
|
484
|
-
var r = {};
|
|
485
|
-
for (var n in e)
|
|
486
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
487
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
488
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
489
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
490
|
-
return r;
|
|
491
|
-
}
|
|
492
|
-
function Ce(e) {
|
|
473
|
+
function Re(e) {
|
|
493
474
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
494
475
|
if (r)
|
|
495
476
|
return r.call(e);
|
|
@@ -501,7 +482,7 @@ function Ce(e) {
|
|
|
501
482
|
};
|
|
502
483
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
503
484
|
}
|
|
504
|
-
function
|
|
485
|
+
function Ue(e, t) {
|
|
505
486
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
506
487
|
if (!r)
|
|
507
488
|
return e;
|
|
@@ -521,22 +502,22 @@ function $e(e, t) {
|
|
|
521
502
|
}
|
|
522
503
|
return o;
|
|
523
504
|
}
|
|
524
|
-
function
|
|
525
|
-
if (
|
|
505
|
+
function Ge(e, t, r) {
|
|
506
|
+
if (arguments.length === 2)
|
|
526
507
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
527
508
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
528
509
|
return e.concat(o || t);
|
|
529
510
|
}
|
|
530
|
-
function
|
|
511
|
+
function I(e) {
|
|
531
512
|
return typeof e == "function";
|
|
532
513
|
}
|
|
533
|
-
function
|
|
514
|
+
function It(e) {
|
|
534
515
|
var t = function(n) {
|
|
535
516
|
Error.call(n), n.stack = new Error().stack;
|
|
536
517
|
}, r = e(t);
|
|
537
518
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
538
519
|
}
|
|
539
|
-
var
|
|
520
|
+
var Be = It(function(e) {
|
|
540
521
|
return function(r) {
|
|
541
522
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
542
523
|
` + r.map(function(n, i) {
|
|
@@ -545,13 +526,13 @@ var Te = Pt(function(e) {
|
|
|
545
526
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
546
527
|
};
|
|
547
528
|
});
|
|
548
|
-
function
|
|
529
|
+
function De(e, t) {
|
|
549
530
|
if (e) {
|
|
550
531
|
var r = e.indexOf(t);
|
|
551
532
|
0 <= r && e.splice(r, 1);
|
|
552
533
|
}
|
|
553
534
|
}
|
|
554
|
-
var
|
|
535
|
+
var ye = function() {
|
|
555
536
|
function e(t) {
|
|
556
537
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
557
538
|
}
|
|
@@ -563,12 +544,12 @@ var ge = function() {
|
|
|
563
544
|
if (s)
|
|
564
545
|
if (this._parentage = null, Array.isArray(s))
|
|
565
546
|
try {
|
|
566
|
-
for (var a =
|
|
547
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
567
548
|
var u = h.value;
|
|
568
549
|
u.remove(this);
|
|
569
550
|
}
|
|
570
|
-
} catch (
|
|
571
|
-
t = { error:
|
|
551
|
+
} catch (y) {
|
|
552
|
+
t = { error: y };
|
|
572
553
|
} finally {
|
|
573
554
|
try {
|
|
574
555
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -580,26 +561,26 @@ var ge = function() {
|
|
|
580
561
|
else
|
|
581
562
|
s.remove(this);
|
|
582
563
|
var l = this.initialTeardown;
|
|
583
|
-
if (
|
|
564
|
+
if (I(l))
|
|
584
565
|
try {
|
|
585
566
|
l();
|
|
586
|
-
} catch (
|
|
587
|
-
o =
|
|
567
|
+
} catch (y) {
|
|
568
|
+
o = y instanceof Be ? y.errors : [y];
|
|
588
569
|
}
|
|
589
570
|
var f = this._finalizers;
|
|
590
571
|
if (f) {
|
|
591
572
|
this._finalizers = null;
|
|
592
573
|
try {
|
|
593
|
-
for (var c =
|
|
574
|
+
for (var c = Re(f), p = c.next(); !p.done; p = c.next()) {
|
|
594
575
|
var d = p.value;
|
|
595
576
|
try {
|
|
596
|
-
|
|
597
|
-
} catch (
|
|
598
|
-
o = o ?? [],
|
|
577
|
+
rt(d);
|
|
578
|
+
} catch (y) {
|
|
579
|
+
o = o ?? [], y instanceof Be ? o = Ge(Ge([], Ue(o)), Ue(y.errors)) : o.push(y);
|
|
599
580
|
}
|
|
600
581
|
}
|
|
601
|
-
} catch (
|
|
602
|
-
n = { error:
|
|
582
|
+
} catch (y) {
|
|
583
|
+
n = { error: y };
|
|
603
584
|
} finally {
|
|
604
585
|
try {
|
|
605
586
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -610,13 +591,13 @@ var ge = function() {
|
|
|
610
591
|
}
|
|
611
592
|
}
|
|
612
593
|
if (o)
|
|
613
|
-
throw new
|
|
594
|
+
throw new Be(o);
|
|
614
595
|
}
|
|
615
596
|
}, e.prototype.add = function(t) {
|
|
616
597
|
var r;
|
|
617
598
|
if (t && t !== this)
|
|
618
599
|
if (this.closed)
|
|
619
|
-
|
|
600
|
+
rt(t);
|
|
620
601
|
else {
|
|
621
602
|
if (t instanceof e) {
|
|
622
603
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,56 +614,52 @@ var ge = function() {
|
|
|
633
614
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
634
615
|
}, e.prototype._removeParent = function(t) {
|
|
635
616
|
var r = this._parentage;
|
|
636
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
617
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
637
618
|
}, e.prototype.remove = function(t) {
|
|
638
619
|
var r = this._finalizers;
|
|
639
|
-
r &&
|
|
620
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
640
621
|
}, e.EMPTY = function() {
|
|
641
622
|
var t = new e();
|
|
642
623
|
return t.closed = !0, t;
|
|
643
624
|
}(), e;
|
|
644
|
-
}(),
|
|
645
|
-
function
|
|
646
|
-
return e instanceof
|
|
647
|
-
}
|
|
648
|
-
function
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
Promise: void 0,
|
|
655
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
|
-
useDeprecatedNextContext: !1
|
|
657
|
-
}, Lr = {
|
|
625
|
+
}(), Lt = ye.EMPTY;
|
|
626
|
+
function Nt(e) {
|
|
627
|
+
return e instanceof ye || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
628
|
+
}
|
|
629
|
+
function rt(e) {
|
|
630
|
+
I(e) ? e() : e.unsubscribe();
|
|
631
|
+
}
|
|
632
|
+
var Lr = {
|
|
633
|
+
Promise: void 0
|
|
634
|
+
}, Nr = {
|
|
658
635
|
setTimeout: function(e, t) {
|
|
659
636
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
637
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0,
|
|
638
|
+
return setTimeout.apply(void 0, Ge([e, t], Ue(r)));
|
|
662
639
|
},
|
|
663
640
|
clearTimeout: function(e) {
|
|
664
641
|
return clearTimeout(e);
|
|
665
642
|
},
|
|
666
643
|
delegate: void 0
|
|
667
644
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
645
|
+
function Mr(e) {
|
|
646
|
+
Nr.setTimeout(function() {
|
|
670
647
|
throw e;
|
|
671
648
|
});
|
|
672
649
|
}
|
|
673
|
-
function
|
|
650
|
+
function nt() {
|
|
674
651
|
}
|
|
675
652
|
function ce(e) {
|
|
676
653
|
e();
|
|
677
654
|
}
|
|
678
|
-
var
|
|
679
|
-
|
|
655
|
+
var Mt = function(e) {
|
|
656
|
+
oe(t, e);
|
|
680
657
|
function t(r) {
|
|
681
658
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
659
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Rr, n;
|
|
683
660
|
}
|
|
684
661
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
662
|
+
return new Fe(r, n, i);
|
|
686
663
|
}, t.prototype.next = function(r) {
|
|
687
664
|
this.isStopped || this._next(r);
|
|
688
665
|
}, t.prototype.error = function(r) {
|
|
@@ -706,11 +683,7 @@ var Nt = function(e) {
|
|
|
706
683
|
this.unsubscribe();
|
|
707
684
|
}
|
|
708
685
|
}, t;
|
|
709
|
-
}(
|
|
710
|
-
function He(e, t) {
|
|
711
|
-
return Mr.call(e, t);
|
|
712
|
-
}
|
|
713
|
-
var Cr = function() {
|
|
686
|
+
}(ye), Cr = function() {
|
|
714
687
|
function e(t) {
|
|
715
688
|
this.partialObserver = t;
|
|
716
689
|
}
|
|
@@ -741,55 +714,43 @@ var Cr = function() {
|
|
|
741
714
|
ue(r);
|
|
742
715
|
}
|
|
743
716
|
}, e;
|
|
744
|
-
}(),
|
|
745
|
-
|
|
717
|
+
}(), Fe = function(e) {
|
|
718
|
+
oe(t, e);
|
|
746
719
|
function t(r, n, i) {
|
|
747
720
|
var o = e.call(this) || this, s;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
};
|
|
754
|
-
else {
|
|
755
|
-
var a;
|
|
756
|
-
o && Lt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
757
|
-
return o.unsubscribe();
|
|
758
|
-
}, s = {
|
|
759
|
-
next: r.next && He(r.next, a),
|
|
760
|
-
error: r.error && He(r.error, a),
|
|
761
|
-
complete: r.complete && He(r.complete, a)
|
|
762
|
-
}) : s = r;
|
|
763
|
-
}
|
|
764
|
-
return o.destination = new Cr(s), o;
|
|
721
|
+
return I(r) || !r ? s = {
|
|
722
|
+
next: r ?? void 0,
|
|
723
|
+
error: n ?? void 0,
|
|
724
|
+
complete: i ?? void 0
|
|
725
|
+
} : s = r, o.destination = new Cr(s), o;
|
|
765
726
|
}
|
|
766
727
|
return t;
|
|
767
|
-
}(
|
|
728
|
+
}(Mt);
|
|
768
729
|
function ue(e) {
|
|
769
|
-
|
|
730
|
+
Mr(e);
|
|
770
731
|
}
|
|
771
732
|
function $r(e) {
|
|
772
733
|
throw e;
|
|
773
734
|
}
|
|
774
735
|
var Rr = {
|
|
775
736
|
closed: !0,
|
|
776
|
-
next:
|
|
737
|
+
next: nt,
|
|
777
738
|
error: $r,
|
|
778
|
-
complete:
|
|
739
|
+
complete: nt
|
|
779
740
|
}, Ur = function() {
|
|
780
741
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
781
742
|
}();
|
|
782
|
-
function
|
|
743
|
+
function Gr(e) {
|
|
783
744
|
return e;
|
|
784
745
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.length === 0 ?
|
|
746
|
+
function Dr(e) {
|
|
747
|
+
return e.length === 0 ? Gr : e.length === 1 ? e[0] : function(r) {
|
|
787
748
|
return e.reduce(function(n, i) {
|
|
788
749
|
return i(n);
|
|
789
750
|
}, r);
|
|
790
751
|
};
|
|
791
752
|
}
|
|
792
|
-
var
|
|
753
|
+
var it = function() {
|
|
793
754
|
function e(t) {
|
|
794
755
|
t && (this._subscribe = t);
|
|
795
756
|
}
|
|
@@ -797,7 +758,7 @@ var rt = function() {
|
|
|
797
758
|
var r = new e();
|
|
798
759
|
return r.source = this, r.operator = t, r;
|
|
799
760
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
800
|
-
var i = this, o = jr(t) ? t : new
|
|
761
|
+
var i = this, o = jr(t) ? t : new Fe(t, r, n);
|
|
801
762
|
return ce(function() {
|
|
802
763
|
var s = i, a = s.operator, h = s.source;
|
|
803
764
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -810,8 +771,8 @@ var rt = function() {
|
|
|
810
771
|
}
|
|
811
772
|
}, e.prototype.forEach = function(t, r) {
|
|
812
773
|
var n = this;
|
|
813
|
-
return r =
|
|
814
|
-
var s = new
|
|
774
|
+
return r = ot(r), new r(function(i, o) {
|
|
775
|
+
var s = new Fe({
|
|
815
776
|
next: function(a) {
|
|
816
777
|
try {
|
|
817
778
|
t(a);
|
|
@@ -832,10 +793,10 @@ var rt = function() {
|
|
|
832
793
|
}, e.prototype.pipe = function() {
|
|
833
794
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
834
795
|
t[r] = arguments[r];
|
|
835
|
-
return
|
|
796
|
+
return Dr(t)(this);
|
|
836
797
|
}, e.prototype.toPromise = function(t) {
|
|
837
798
|
var r = this;
|
|
838
|
-
return t =
|
|
799
|
+
return t = ot(t), new t(function(n, i) {
|
|
839
800
|
var o;
|
|
840
801
|
r.subscribe(function(s) {
|
|
841
802
|
return o = s;
|
|
@@ -849,28 +810,28 @@ var rt = function() {
|
|
|
849
810
|
return new e(t);
|
|
850
811
|
}, e;
|
|
851
812
|
}();
|
|
852
|
-
function
|
|
813
|
+
function ot(e) {
|
|
853
814
|
var t;
|
|
854
|
-
return (t = e ??
|
|
815
|
+
return (t = e ?? Lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
855
816
|
}
|
|
856
817
|
function Fr(e) {
|
|
857
|
-
return e &&
|
|
818
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
858
819
|
}
|
|
859
820
|
function jr(e) {
|
|
860
|
-
return e && e instanceof
|
|
821
|
+
return e && e instanceof Mt || Fr(e) && Nt(e);
|
|
861
822
|
}
|
|
862
|
-
var kr =
|
|
823
|
+
var kr = It(function(e) {
|
|
863
824
|
return function() {
|
|
864
825
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
865
826
|
};
|
|
866
|
-
}),
|
|
867
|
-
|
|
827
|
+
}), Ct = function(e) {
|
|
828
|
+
oe(t, e);
|
|
868
829
|
function t() {
|
|
869
830
|
var r = e.call(this) || this;
|
|
870
831
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
871
832
|
}
|
|
872
833
|
return t.prototype.lift = function(r) {
|
|
873
|
-
var n = new
|
|
834
|
+
var n = new st(this, this);
|
|
874
835
|
return n.operator = r, n;
|
|
875
836
|
}, t.prototype._throwIfClosed = function() {
|
|
876
837
|
if (this.closed)
|
|
@@ -882,7 +843,7 @@ var kr = Pt(function(e) {
|
|
|
882
843
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
883
844
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
884
845
|
try {
|
|
885
|
-
for (var s =
|
|
846
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
886
847
|
var h = a.value;
|
|
887
848
|
h.next(r);
|
|
888
849
|
}
|
|
@@ -931,20 +892,20 @@ var kr = Pt(function(e) {
|
|
|
931
892
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
932
893
|
}, t.prototype._innerSubscribe = function(r) {
|
|
933
894
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
934
|
-
return o || s ?
|
|
935
|
-
n.currentObservers = null,
|
|
895
|
+
return o || s ? Lt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
896
|
+
n.currentObservers = null, De(a, r);
|
|
936
897
|
}));
|
|
937
898
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
938
899
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
939
900
|
i ? r.error(o) : s && r.complete();
|
|
940
901
|
}, t.prototype.asObservable = function() {
|
|
941
|
-
var r = new
|
|
902
|
+
var r = new it();
|
|
942
903
|
return r.source = this, r;
|
|
943
904
|
}, t.create = function(r, n) {
|
|
944
|
-
return new
|
|
905
|
+
return new st(r, n);
|
|
945
906
|
}, t;
|
|
946
|
-
}(
|
|
947
|
-
|
|
907
|
+
}(it), st = function(e) {
|
|
908
|
+
oe(t, e);
|
|
948
909
|
function t(r, n) {
|
|
949
910
|
var i = e.call(this) || this;
|
|
950
911
|
return i.destination = r, i.source = n, i;
|
|
@@ -960,17 +921,17 @@ var kr = Pt(function(e) {
|
|
|
960
921
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
961
922
|
}, t.prototype._subscribe = function(r) {
|
|
962
923
|
var n, i;
|
|
963
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lt;
|
|
964
925
|
}, t;
|
|
965
|
-
}(
|
|
926
|
+
}(Ct), $t = {
|
|
966
927
|
now: function() {
|
|
967
|
-
return (
|
|
928
|
+
return ($t.delegate || Date).now();
|
|
968
929
|
},
|
|
969
930
|
delegate: void 0
|
|
970
931
|
}, Vr = function(e) {
|
|
971
|
-
|
|
932
|
+
oe(t, e);
|
|
972
933
|
function t(r, n, i) {
|
|
973
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
974
935
|
var o = e.call(this) || this;
|
|
975
936
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
976
937
|
}
|
|
@@ -990,31 +951,31 @@ var kr = Pt(function(e) {
|
|
|
990
951
|
u && o.splice(0, u + 1);
|
|
991
952
|
}
|
|
992
953
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
954
|
+
}(Ct);
|
|
955
|
+
const at = [], ut = {}, Xr = (e, t = 0) => {
|
|
956
|
+
if (at.indexOf(e) == -1) {
|
|
996
957
|
const r = new Vr(t);
|
|
997
|
-
|
|
958
|
+
ut[e] = r, at.push(e);
|
|
998
959
|
}
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
960
|
+
return ut[e];
|
|
961
|
+
}, D = [];
|
|
1001
962
|
function Wr(e, t) {
|
|
1002
963
|
return {
|
|
1003
|
-
subscribe:
|
|
964
|
+
subscribe: ve(e, t).subscribe
|
|
1004
965
|
};
|
|
1005
966
|
}
|
|
1006
|
-
function
|
|
967
|
+
function ve(e, t = B) {
|
|
1007
968
|
let r;
|
|
1008
969
|
const n = /* @__PURE__ */ new Set();
|
|
1009
970
|
function i(a) {
|
|
1010
|
-
if (
|
|
1011
|
-
const h = !
|
|
971
|
+
if (Bt(e, a) && (e = a, r)) {
|
|
972
|
+
const h = !D.length;
|
|
1012
973
|
for (const u of n)
|
|
1013
|
-
u[1](),
|
|
974
|
+
u[1](), D.push(u, e);
|
|
1014
975
|
if (h) {
|
|
1015
|
-
for (let u = 0; u <
|
|
1016
|
-
|
|
1017
|
-
|
|
976
|
+
for (let u = 0; u < D.length; u += 2)
|
|
977
|
+
D[u][0](D[u + 1]);
|
|
978
|
+
D.length = 0;
|
|
1018
979
|
}
|
|
1019
980
|
}
|
|
1020
981
|
}
|
|
@@ -1029,7 +990,7 @@ function ye(e, t = B) {
|
|
|
1029
990
|
}
|
|
1030
991
|
return { set: i, update: o, subscribe: s };
|
|
1031
992
|
}
|
|
1032
|
-
function
|
|
993
|
+
function Z(e, t, r) {
|
|
1033
994
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1034
995
|
if (!i.every(Boolean))
|
|
1035
996
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1043,20 +1004,20 @@ function Q(e, t, r) {
|
|
|
1043
1004
|
return;
|
|
1044
1005
|
f();
|
|
1045
1006
|
const d = t(n ? u[0] : u, s, a);
|
|
1046
|
-
o ? s(d) : f =
|
|
1007
|
+
o ? s(d) : f = Ye(d) ? d : B;
|
|
1047
1008
|
}, p = i.map(
|
|
1048
|
-
(d,
|
|
1009
|
+
(d, y) => wt(
|
|
1049
1010
|
d,
|
|
1050
1011
|
(H) => {
|
|
1051
|
-
u[
|
|
1012
|
+
u[y] = H, l &= ~(1 << y), h && c();
|
|
1052
1013
|
},
|
|
1053
1014
|
() => {
|
|
1054
|
-
l |= 1 <<
|
|
1015
|
+
l |= 1 << y;
|
|
1055
1016
|
}
|
|
1056
1017
|
)
|
|
1057
1018
|
);
|
|
1058
1019
|
return h = !0, c(), function() {
|
|
1059
|
-
|
|
1020
|
+
ne(p), f(), h = !1;
|
|
1060
1021
|
};
|
|
1061
1022
|
});
|
|
1062
1023
|
}
|
|
@@ -1080,29 +1041,29 @@ function Kr(e) {
|
|
|
1080
1041
|
function en(e) {
|
|
1081
1042
|
return Array.isArray(e) ? [] : {};
|
|
1082
1043
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1044
|
+
function te(e, t) {
|
|
1045
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(en(e), e, t) : e;
|
|
1085
1046
|
}
|
|
1086
1047
|
function tn(e, t, r) {
|
|
1087
1048
|
return e.concat(t).map(function(n) {
|
|
1088
|
-
return
|
|
1049
|
+
return te(n, r);
|
|
1089
1050
|
});
|
|
1090
1051
|
}
|
|
1091
1052
|
function rn(e, t) {
|
|
1092
1053
|
if (!t.customMerge)
|
|
1093
|
-
return
|
|
1054
|
+
return k;
|
|
1094
1055
|
var r = t.customMerge(e);
|
|
1095
|
-
return typeof r == "function" ? r :
|
|
1056
|
+
return typeof r == "function" ? r : k;
|
|
1096
1057
|
}
|
|
1097
1058
|
function nn(e) {
|
|
1098
1059
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1099
1060
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1100
1061
|
}) : [];
|
|
1101
1062
|
}
|
|
1102
|
-
function
|
|
1063
|
+
function ht(e) {
|
|
1103
1064
|
return Object.keys(e).concat(nn(e));
|
|
1104
1065
|
}
|
|
1105
|
-
function
|
|
1066
|
+
function Rt(e, t) {
|
|
1106
1067
|
try {
|
|
1107
1068
|
return t in e;
|
|
1108
1069
|
} catch {
|
|
@@ -1110,129 +1071,179 @@ function $t(e, t) {
|
|
|
1110
1071
|
}
|
|
1111
1072
|
}
|
|
1112
1073
|
function on(e, t) {
|
|
1113
|
-
return
|
|
1074
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1114
1075
|
}
|
|
1115
1076
|
function sn(e, t, r) {
|
|
1116
1077
|
var n = {};
|
|
1117
|
-
return r.isMergeableObject(e) &&
|
|
1118
|
-
n[i] =
|
|
1119
|
-
}),
|
|
1120
|
-
on(e, i) || (
|
|
1078
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1079
|
+
n[i] = te(e[i], r);
|
|
1080
|
+
}), ht(t).forEach(function(i) {
|
|
1081
|
+
on(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1121
1082
|
}), n;
|
|
1122
1083
|
}
|
|
1123
|
-
function
|
|
1124
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified =
|
|
1084
|
+
function k(e, t, r) {
|
|
1085
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1125
1086
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1126
|
-
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) :
|
|
1087
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : te(t, r);
|
|
1127
1088
|
}
|
|
1128
|
-
|
|
1089
|
+
k.all = function(t, r) {
|
|
1129
1090
|
if (!Array.isArray(t))
|
|
1130
1091
|
throw new Error("first argument should be an array");
|
|
1131
1092
|
return t.reduce(function(n, i) {
|
|
1132
|
-
return
|
|
1093
|
+
return k(n, i, r);
|
|
1133
1094
|
}, {});
|
|
1134
1095
|
};
|
|
1135
|
-
var an =
|
|
1096
|
+
var an = k, un = an;
|
|
1136
1097
|
const hn = /* @__PURE__ */ zr(un);
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1098
|
+
var je = function(e, t) {
|
|
1099
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1100
|
+
r.__proto__ = n;
|
|
1101
|
+
} || function(r, n) {
|
|
1102
|
+
for (var i in n)
|
|
1103
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1104
|
+
}, je(e, t);
|
|
1105
|
+
};
|
|
1106
|
+
function _e(e, t) {
|
|
1107
|
+
if (typeof t != "function" && t !== null)
|
|
1108
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1109
|
+
je(e, t);
|
|
1110
|
+
function r() {
|
|
1111
|
+
this.constructor = e;
|
|
1112
|
+
}
|
|
1113
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1114
|
+
}
|
|
1115
|
+
var A = function() {
|
|
1116
|
+
return A = Object.assign || function(t) {
|
|
1117
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1118
|
+
r = arguments[n];
|
|
1119
|
+
for (var o in r)
|
|
1120
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1121
|
+
}
|
|
1122
|
+
return t;
|
|
1123
|
+
}, A.apply(this, arguments);
|
|
1124
|
+
};
|
|
1125
|
+
function ln(e, t) {
|
|
1126
|
+
var r = {};
|
|
1127
|
+
for (var n in e)
|
|
1128
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1129
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1130
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1131
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1132
|
+
return r;
|
|
1133
|
+
}
|
|
1134
|
+
function we(e, t, r) {
|
|
1135
|
+
if (r || arguments.length === 2)
|
|
1136
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1137
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1138
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1139
|
+
}
|
|
1140
|
+
function Ae(e, t) {
|
|
1141
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1139
1142
|
return i(e, {
|
|
1140
1143
|
cache: r,
|
|
1141
1144
|
serializer: n
|
|
1142
1145
|
});
|
|
1143
1146
|
}
|
|
1144
|
-
function
|
|
1147
|
+
function cn(e) {
|
|
1145
1148
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1149
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1150
|
+
function fn(e, t, r, n) {
|
|
1151
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1149
1152
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1153
|
}
|
|
1151
1154
|
function Ut(e, t, r) {
|
|
1152
1155
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1156
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1157
|
}
|
|
1155
|
-
function
|
|
1158
|
+
function Gt(e, t, r, n, i) {
|
|
1156
1159
|
return r.bind(t, e, n, i);
|
|
1157
1160
|
}
|
|
1158
|
-
function cn(e, t) {
|
|
1159
|
-
var r = e.length === 1 ? Rt : Ut;
|
|
1160
|
-
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1161
|
-
}
|
|
1162
|
-
function fn(e, t) {
|
|
1163
|
-
return Ze(e, this, Ut, t.cache.create(), t.serializer);
|
|
1164
|
-
}
|
|
1165
1161
|
function pn(e, t) {
|
|
1166
|
-
|
|
1162
|
+
var r = e.length === 1 ? fn : Ut;
|
|
1163
|
+
return Gt(e, this, r, t.cache.create(), t.serializer);
|
|
1167
1164
|
}
|
|
1168
|
-
|
|
1169
|
-
return
|
|
1170
|
-
};
|
|
1171
|
-
function Qe() {
|
|
1172
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1165
|
+
function dn(e, t) {
|
|
1166
|
+
return Gt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1173
1167
|
}
|
|
1174
|
-
|
|
1175
|
-
return
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1168
|
+
var mn = function() {
|
|
1169
|
+
return JSON.stringify(arguments);
|
|
1170
|
+
}, bn = (
|
|
1171
|
+
/** @class */
|
|
1172
|
+
function() {
|
|
1173
|
+
function e() {
|
|
1174
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1175
|
+
}
|
|
1176
|
+
return e.prototype.get = function(t) {
|
|
1177
|
+
return this.cache[t];
|
|
1178
|
+
}, e.prototype.set = function(t, r) {
|
|
1179
|
+
this.cache[t] = r;
|
|
1180
|
+
}, e;
|
|
1181
|
+
}()
|
|
1182
|
+
), gn = {
|
|
1181
1183
|
create: function() {
|
|
1182
|
-
return new
|
|
1184
|
+
return new bn();
|
|
1183
1185
|
}
|
|
1184
|
-
},
|
|
1185
|
-
variadic:
|
|
1186
|
-
|
|
1187
|
-
|
|
1186
|
+
}, Pe = {
|
|
1187
|
+
variadic: dn
|
|
1188
|
+
}, de = function() {
|
|
1189
|
+
return de = Object.assign || function(t) {
|
|
1190
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1191
|
+
r = arguments[n];
|
|
1192
|
+
for (var o in r)
|
|
1193
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1194
|
+
}
|
|
1195
|
+
return t;
|
|
1196
|
+
}, de.apply(this, arguments);
|
|
1197
|
+
};
|
|
1198
|
+
var m;
|
|
1188
1199
|
(function(e) {
|
|
1189
1200
|
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";
|
|
1190
1201
|
})(m || (m = {}));
|
|
1191
|
-
var
|
|
1202
|
+
var v;
|
|
1192
1203
|
(function(e) {
|
|
1193
1204
|
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";
|
|
1194
|
-
})(
|
|
1195
|
-
var
|
|
1205
|
+
})(v || (v = {}));
|
|
1206
|
+
var V;
|
|
1196
1207
|
(function(e) {
|
|
1197
1208
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1198
|
-
})(
|
|
1199
|
-
function
|
|
1200
|
-
return e.type ===
|
|
1209
|
+
})(V || (V = {}));
|
|
1210
|
+
function lt(e) {
|
|
1211
|
+
return e.type === v.literal;
|
|
1201
1212
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return e.type ===
|
|
1213
|
+
function yn(e) {
|
|
1214
|
+
return e.type === v.argument;
|
|
1204
1215
|
}
|
|
1205
1216
|
function Dt(e) {
|
|
1206
|
-
return e.type ===
|
|
1207
|
-
}
|
|
1208
|
-
function Gt(e) {
|
|
1209
|
-
return e.type === E.date;
|
|
1217
|
+
return e.type === v.number;
|
|
1210
1218
|
}
|
|
1211
1219
|
function Ft(e) {
|
|
1212
|
-
return e.type ===
|
|
1220
|
+
return e.type === v.date;
|
|
1213
1221
|
}
|
|
1214
1222
|
function jt(e) {
|
|
1215
|
-
return e.type ===
|
|
1223
|
+
return e.type === v.time;
|
|
1216
1224
|
}
|
|
1217
1225
|
function kt(e) {
|
|
1218
|
-
return e.type ===
|
|
1219
|
-
}
|
|
1220
|
-
function gn(e) {
|
|
1221
|
-
return e.type === E.pound;
|
|
1226
|
+
return e.type === v.select;
|
|
1222
1227
|
}
|
|
1223
1228
|
function Vt(e) {
|
|
1224
|
-
return e.type ===
|
|
1229
|
+
return e.type === v.plural;
|
|
1230
|
+
}
|
|
1231
|
+
function vn(e) {
|
|
1232
|
+
return e.type === v.pound;
|
|
1225
1233
|
}
|
|
1226
1234
|
function Xt(e) {
|
|
1227
|
-
return
|
|
1235
|
+
return e.type === v.tag;
|
|
1228
1236
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1237
|
+
function Wt(e) {
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1231
1239
|
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1240
|
+
function ke(e) {
|
|
1241
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1242
|
+
}
|
|
1243
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1244
|
+
function En(e) {
|
|
1234
1245
|
var t = {};
|
|
1235
|
-
return e.replace(
|
|
1246
|
+
return e.replace(_n, function(r) {
|
|
1236
1247
|
var n = r.length;
|
|
1237
1248
|
switch (r[0]) {
|
|
1238
1249
|
case "G":
|
|
@@ -1321,11 +1332,21 @@ function vn(e) {
|
|
|
1321
1332
|
return "";
|
|
1322
1333
|
}), t;
|
|
1323
1334
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1335
|
+
var _ = function() {
|
|
1336
|
+
return _ = Object.assign || function(t) {
|
|
1337
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1338
|
+
r = arguments[n];
|
|
1339
|
+
for (var o in r)
|
|
1340
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1341
|
+
}
|
|
1342
|
+
return t;
|
|
1343
|
+
}, _.apply(this, arguments);
|
|
1344
|
+
};
|
|
1345
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1346
|
+
function Sn(e) {
|
|
1326
1347
|
if (e.length === 0)
|
|
1327
1348
|
throw new Error("Number skeleton cannot be empty");
|
|
1328
|
-
for (var t = e.split(
|
|
1349
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1329
1350
|
return c.length > 0;
|
|
1330
1351
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1331
1352
|
var o = i[n], s = o.split("/");
|
|
@@ -1340,17 +1361,17 @@ function _n(e) {
|
|
|
1340
1361
|
}
|
|
1341
1362
|
return r;
|
|
1342
1363
|
}
|
|
1343
|
-
function
|
|
1364
|
+
function Tn(e) {
|
|
1344
1365
|
return e.replace(/^(.*?)-/, "");
|
|
1345
1366
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1367
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1368
|
+
function ft(e) {
|
|
1348
1369
|
var t = {};
|
|
1349
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1370
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1350
1371
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1351
1372
|
}), t;
|
|
1352
1373
|
}
|
|
1353
|
-
function
|
|
1374
|
+
function Jt(e) {
|
|
1354
1375
|
switch (e) {
|
|
1355
1376
|
case "sign-auto":
|
|
1356
1377
|
return {
|
|
@@ -1390,7 +1411,7 @@ function Qt(e) {
|
|
|
1390
1411
|
};
|
|
1391
1412
|
}
|
|
1392
1413
|
}
|
|
1393
|
-
function
|
|
1414
|
+
function Bn(e) {
|
|
1394
1415
|
var t;
|
|
1395
1416
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1396
1417
|
notation: "engineering"
|
|
@@ -1398,17 +1419,17 @@ function Tn(e) {
|
|
|
1398
1419
|
notation: "scientific"
|
|
1399
1420
|
}, e = e.slice(1)), t) {
|
|
1400
1421
|
var r = e.slice(0, 2);
|
|
1401
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1422
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1402
1423
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1403
1424
|
t.minimumIntegerDigits = e.length;
|
|
1404
1425
|
}
|
|
1405
1426
|
return t;
|
|
1406
1427
|
}
|
|
1407
|
-
function
|
|
1408
|
-
var t = {}, r =
|
|
1428
|
+
function pt(e) {
|
|
1429
|
+
var t = {}, r = Jt(e);
|
|
1409
1430
|
return r || t;
|
|
1410
1431
|
}
|
|
1411
|
-
function
|
|
1432
|
+
function wn(e) {
|
|
1412
1433
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1413
1434
|
var i = n[r];
|
|
1414
1435
|
switch (i.stem) {
|
|
@@ -1432,7 +1453,7 @@ function Hn(e) {
|
|
|
1432
1453
|
continue;
|
|
1433
1454
|
case "measure-unit":
|
|
1434
1455
|
case "unit":
|
|
1435
|
-
t.style = "unit", t.unit =
|
|
1456
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1436
1457
|
continue;
|
|
1437
1458
|
case "compact-short":
|
|
1438
1459
|
case "K":
|
|
@@ -1443,13 +1464,13 @@ function Hn(e) {
|
|
|
1443
1464
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1444
1465
|
continue;
|
|
1445
1466
|
case "scientific":
|
|
1446
|
-
t =
|
|
1447
|
-
return
|
|
1467
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1468
|
+
return _(_({}, h), pt(u));
|
|
1448
1469
|
}, {}));
|
|
1449
1470
|
continue;
|
|
1450
1471
|
case "engineering":
|
|
1451
|
-
t =
|
|
1452
|
-
return
|
|
1472
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1473
|
+
return _(_({}, h), pt(u));
|
|
1453
1474
|
}, {}));
|
|
1454
1475
|
continue;
|
|
1455
1476
|
case "notation-simple":
|
|
@@ -1494,7 +1515,7 @@ function Hn(e) {
|
|
|
1494
1515
|
case "integer-width":
|
|
1495
1516
|
if (i.options.length > 1)
|
|
1496
1517
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1497
|
-
i.options[0].replace(
|
|
1518
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, p) {
|
|
1498
1519
|
if (u)
|
|
1499
1520
|
t.minimumIntegerDigits = l.length;
|
|
1500
1521
|
else {
|
|
@@ -1507,28 +1528,28 @@ function Hn(e) {
|
|
|
1507
1528
|
});
|
|
1508
1529
|
continue;
|
|
1509
1530
|
}
|
|
1510
|
-
if (
|
|
1531
|
+
if (Qt.test(i.stem)) {
|
|
1511
1532
|
t.minimumIntegerDigits = i.stem.length;
|
|
1512
1533
|
continue;
|
|
1513
1534
|
}
|
|
1514
|
-
if (
|
|
1535
|
+
if (ct.test(i.stem)) {
|
|
1515
1536
|
if (i.options.length > 1)
|
|
1516
1537
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1517
|
-
i.stem.replace(
|
|
1538
|
+
i.stem.replace(ct, function(h, u, l, f, c, p) {
|
|
1518
1539
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1519
1540
|
});
|
|
1520
1541
|
var o = i.options[0];
|
|
1521
|
-
o === "w" ? t =
|
|
1542
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ft(o)));
|
|
1522
1543
|
continue;
|
|
1523
1544
|
}
|
|
1524
|
-
if (
|
|
1525
|
-
t =
|
|
1545
|
+
if (Zt.test(i.stem)) {
|
|
1546
|
+
t = _(_({}, t), ft(i.stem));
|
|
1526
1547
|
continue;
|
|
1527
1548
|
}
|
|
1528
|
-
var s =
|
|
1529
|
-
s && (t =
|
|
1530
|
-
var a =
|
|
1531
|
-
a && (t =
|
|
1549
|
+
var s = Jt(i.stem);
|
|
1550
|
+
s && (t = _(_({}, t), s));
|
|
1551
|
+
var a = Bn(i.stem);
|
|
1552
|
+
a && (t = _(_({}, t), a));
|
|
1532
1553
|
}
|
|
1533
1554
|
return t;
|
|
1534
1555
|
}
|
|
@@ -2947,13 +2968,13 @@ var he = {
|
|
|
2947
2968
|
"h"
|
|
2948
2969
|
]
|
|
2949
2970
|
};
|
|
2950
|
-
function
|
|
2971
|
+
function An(e, t) {
|
|
2951
2972
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2952
2973
|
var i = e.charAt(n);
|
|
2953
2974
|
if (i === "j") {
|
|
2954
2975
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2955
2976
|
o++, n++;
|
|
2956
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2977
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2957
2978
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2958
2979
|
r += h;
|
|
2959
2980
|
for (; s-- > 0; )
|
|
@@ -2963,7 +2984,7 @@ function Bn(e, t) {
|
|
|
2963
2984
|
}
|
|
2964
2985
|
return r;
|
|
2965
2986
|
}
|
|
2966
|
-
function
|
|
2987
|
+
function Pn(e) {
|
|
2967
2988
|
var t = e.hourCycle;
|
|
2968
2989
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2969
2990
|
e.hourCycles && // @ts-ignore
|
|
@@ -2985,20 +3006,20 @@ function An(e) {
|
|
|
2985
3006
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2986
3007
|
return i[0];
|
|
2987
3008
|
}
|
|
2988
|
-
var
|
|
3009
|
+
var Oe, On = new RegExp("^".concat(zt.source, "*")), In = new RegExp("".concat(zt.source, "*$"));
|
|
2989
3010
|
function b(e, t) {
|
|
2990
3011
|
return { start: e, end: t };
|
|
2991
3012
|
}
|
|
2992
|
-
var
|
|
3013
|
+
var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Gn = Un ? Number.isSafeInteger : function(e) {
|
|
2993
3014
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2994
|
-
},
|
|
3015
|
+
}, Ve = !0;
|
|
2995
3016
|
try {
|
|
2996
|
-
var
|
|
2997
|
-
|
|
3017
|
+
var Dn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3018
|
+
Ve = ((Oe = Dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2998
3019
|
} catch {
|
|
2999
|
-
|
|
3020
|
+
Ve = !1;
|
|
3000
3021
|
}
|
|
3001
|
-
var
|
|
3022
|
+
var dt = Ln ? (
|
|
3002
3023
|
// Native
|
|
3003
3024
|
function(t, r, n) {
|
|
3004
3025
|
return t.startsWith(r, n);
|
|
@@ -3008,7 +3029,7 @@ var ft = On ? (
|
|
|
3008
3029
|
function(t, r, n) {
|
|
3009
3030
|
return t.slice(n, n + r.length) === r;
|
|
3010
3031
|
}
|
|
3011
|
-
),
|
|
3032
|
+
), Xe = Nn ? String.fromCodePoint : (
|
|
3012
3033
|
// IE11
|
|
3013
3034
|
function() {
|
|
3014
3035
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3020,9 +3041,9 @@ var ft = On ? (
|
|
|
3020
3041
|
}
|
|
3021
3042
|
return n;
|
|
3022
3043
|
}
|
|
3023
|
-
),
|
|
3044
|
+
), mt = (
|
|
3024
3045
|
// native
|
|
3025
|
-
|
|
3046
|
+
Mn ? Object.fromEntries : (
|
|
3026
3047
|
// Ponyfill
|
|
3027
3048
|
function(t) {
|
|
3028
3049
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3032,7 +3053,7 @@ var ft = On ? (
|
|
|
3032
3053
|
return r;
|
|
3033
3054
|
}
|
|
3034
3055
|
)
|
|
3035
|
-
),
|
|
3056
|
+
), Yt = Cn ? (
|
|
3036
3057
|
// Native
|
|
3037
3058
|
function(t, r) {
|
|
3038
3059
|
return t.codePointAt(r);
|
|
@@ -3046,7 +3067,7 @@ var ft = On ? (
|
|
|
3046
3067
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3047
3068
|
}
|
|
3048
3069
|
}
|
|
3049
|
-
),
|
|
3070
|
+
), Fn = $n ? (
|
|
3050
3071
|
// Native
|
|
3051
3072
|
function(t) {
|
|
3052
3073
|
return t.trimStart();
|
|
@@ -3054,9 +3075,9 @@ var ft = On ? (
|
|
|
3054
3075
|
) : (
|
|
3055
3076
|
// Ponyfill
|
|
3056
3077
|
function(t) {
|
|
3057
|
-
return t.replace(
|
|
3078
|
+
return t.replace(On, "");
|
|
3058
3079
|
}
|
|
3059
|
-
),
|
|
3080
|
+
), jn = Rn ? (
|
|
3060
3081
|
// Native
|
|
3061
3082
|
function(t) {
|
|
3062
3083
|
return t.trimEnd();
|
|
@@ -3064,32 +3085,32 @@ var ft = On ? (
|
|
|
3064
3085
|
) : (
|
|
3065
3086
|
// Ponyfill
|
|
3066
3087
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3088
|
+
return t.replace(In, "");
|
|
3068
3089
|
}
|
|
3069
3090
|
);
|
|
3070
|
-
function
|
|
3091
|
+
function qt(e, t) {
|
|
3071
3092
|
return new RegExp(e, t);
|
|
3072
3093
|
}
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3094
|
+
var We;
|
|
3095
|
+
if (Ve) {
|
|
3096
|
+
var bt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3097
|
+
We = function(t, r) {
|
|
3077
3098
|
var n;
|
|
3078
|
-
|
|
3079
|
-
var i =
|
|
3099
|
+
bt.lastIndex = r;
|
|
3100
|
+
var i = bt.exec(t);
|
|
3080
3101
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3081
3102
|
};
|
|
3082
3103
|
} else
|
|
3083
|
-
|
|
3104
|
+
We = function(t, r) {
|
|
3084
3105
|
for (var n = []; ; ) {
|
|
3085
|
-
var i =
|
|
3086
|
-
if (i === void 0 ||
|
|
3106
|
+
var i = Yt(t, r);
|
|
3107
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3087
3108
|
break;
|
|
3088
3109
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3089
3110
|
}
|
|
3090
|
-
return
|
|
3111
|
+
return Xe.apply(void 0, n);
|
|
3091
3112
|
};
|
|
3092
|
-
var
|
|
3113
|
+
var kn = (
|
|
3093
3114
|
/** @class */
|
|
3094
3115
|
function() {
|
|
3095
3116
|
function e(t, r) {
|
|
@@ -3113,14 +3134,14 @@ var Fn = (
|
|
|
3113
3134
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3114
3135
|
var a = this.clonePosition();
|
|
3115
3136
|
this.bump(), i.push({
|
|
3116
|
-
type:
|
|
3137
|
+
type: v.pound,
|
|
3117
3138
|
location: b(a, this.clonePosition())
|
|
3118
3139
|
});
|
|
3119
3140
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3120
3141
|
if (n)
|
|
3121
3142
|
break;
|
|
3122
3143
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3123
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3144
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3124
3145
|
var s = this.parseTag(t, r);
|
|
3125
3146
|
if (s.err)
|
|
3126
3147
|
return s;
|
|
@@ -3141,7 +3162,7 @@ var Fn = (
|
|
|
3141
3162
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3142
3163
|
return {
|
|
3143
3164
|
val: {
|
|
3144
|
-
type:
|
|
3165
|
+
type: v.literal,
|
|
3145
3166
|
value: "<".concat(i, "/>"),
|
|
3146
3167
|
location: b(n, this.clonePosition())
|
|
3147
3168
|
},
|
|
@@ -3153,12 +3174,12 @@ var Fn = (
|
|
|
3153
3174
|
return o;
|
|
3154
3175
|
var s = o.val, a = this.clonePosition();
|
|
3155
3176
|
if (this.bumpIf("</")) {
|
|
3156
|
-
if (this.isEOF() || !
|
|
3177
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3157
3178
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3158
3179
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3159
3180
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3160
3181
|
val: {
|
|
3161
|
-
type:
|
|
3182
|
+
type: v.tag,
|
|
3162
3183
|
value: i,
|
|
3163
3184
|
children: s,
|
|
3164
3185
|
location: b(n, this.clonePosition())
|
|
@@ -3171,7 +3192,7 @@ var Fn = (
|
|
|
3171
3192
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3172
3193
|
}, e.prototype.parseTagName = function() {
|
|
3173
3194
|
var t = this.offset();
|
|
3174
|
-
for (this.bump(); !this.isEOF() &&
|
|
3195
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3175
3196
|
this.bump();
|
|
3176
3197
|
return this.message.slice(t, this.offset());
|
|
3177
3198
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3195,12 +3216,12 @@ var Fn = (
|
|
|
3195
3216
|
}
|
|
3196
3217
|
var h = b(n, this.clonePosition());
|
|
3197
3218
|
return {
|
|
3198
|
-
val: { type:
|
|
3219
|
+
val: { type: v.literal, value: i, location: h },
|
|
3199
3220
|
err: null
|
|
3200
3221
|
};
|
|
3201
3222
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3202
3223
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3203
|
-
!
|
|
3224
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3204
3225
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3205
3226
|
if (this.isEOF() || this.char() !== 39)
|
|
3206
3227
|
return null;
|
|
@@ -3234,12 +3255,12 @@ var Fn = (
|
|
|
3234
3255
|
r.push(n);
|
|
3235
3256
|
this.bump();
|
|
3236
3257
|
}
|
|
3237
|
-
return
|
|
3258
|
+
return Xe.apply(void 0, r);
|
|
3238
3259
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3239
3260
|
if (this.isEOF())
|
|
3240
3261
|
return null;
|
|
3241
3262
|
var n = this.char();
|
|
3242
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3263
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
3243
3264
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3244
3265
|
var n = this.clonePosition();
|
|
3245
3266
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3255,7 +3276,7 @@ var Fn = (
|
|
|
3255
3276
|
case 125:
|
|
3256
3277
|
return this.bump(), {
|
|
3257
3278
|
val: {
|
|
3258
|
-
type:
|
|
3279
|
+
type: v.argument,
|
|
3259
3280
|
// value does not include the opening and closing braces.
|
|
3260
3281
|
value: i,
|
|
3261
3282
|
location: b(n, this.clonePosition())
|
|
@@ -3268,7 +3289,7 @@ var Fn = (
|
|
|
3268
3289
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3269
3290
|
}
|
|
3270
3291
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3271
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3292
|
+
var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
|
|
3272
3293
|
this.bumpTo(i);
|
|
3273
3294
|
var o = this.clonePosition(), s = b(t, o);
|
|
3274
3295
|
return { value: n, location: s };
|
|
@@ -3287,7 +3308,7 @@ var Fn = (
|
|
|
3287
3308
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3288
3309
|
if (f.err)
|
|
3289
3310
|
return f;
|
|
3290
|
-
var c =
|
|
3311
|
+
var c = jn(f.val);
|
|
3291
3312
|
if (c.length === 0)
|
|
3292
3313
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3293
3314
|
var p = b(l, this.clonePosition());
|
|
@@ -3296,37 +3317,37 @@ var Fn = (
|
|
|
3296
3317
|
var d = this.tryParseArgumentClose(i);
|
|
3297
3318
|
if (d.err)
|
|
3298
3319
|
return d;
|
|
3299
|
-
var
|
|
3300
|
-
if (u &&
|
|
3301
|
-
var H =
|
|
3320
|
+
var y = b(i, this.clonePosition());
|
|
3321
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3322
|
+
var H = Fn(u.style.slice(2));
|
|
3302
3323
|
if (a === "number") {
|
|
3303
3324
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3304
3325
|
return f.err ? f : {
|
|
3305
|
-
val: { type:
|
|
3326
|
+
val: { type: v.number, value: n, location: y, style: f.val },
|
|
3306
3327
|
err: null
|
|
3307
3328
|
};
|
|
3308
3329
|
} else {
|
|
3309
3330
|
if (H.length === 0)
|
|
3310
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3331
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
3311
3332
|
var C = H;
|
|
3312
|
-
this.locale && (C =
|
|
3333
|
+
this.locale && (C = An(H, this.locale));
|
|
3313
3334
|
var c = {
|
|
3314
|
-
type:
|
|
3335
|
+
type: V.dateTime,
|
|
3315
3336
|
pattern: C,
|
|
3316
3337
|
location: u.styleLocation,
|
|
3317
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
-
}, L = a === "date" ?
|
|
3338
|
+
parsedOptions: this.shouldParseSkeletons ? En(C) : {}
|
|
3339
|
+
}, L = a === "date" ? v.date : v.time;
|
|
3319
3340
|
return {
|
|
3320
|
-
val: { type: L, value: n, location:
|
|
3341
|
+
val: { type: L, value: n, location: y, style: c },
|
|
3321
3342
|
err: null
|
|
3322
3343
|
};
|
|
3323
3344
|
}
|
|
3324
3345
|
}
|
|
3325
3346
|
return {
|
|
3326
3347
|
val: {
|
|
3327
|
-
type: a === "number" ?
|
|
3348
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3328
3349
|
value: n,
|
|
3329
|
-
location:
|
|
3350
|
+
location: y,
|
|
3330
3351
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3331
3352
|
},
|
|
3332
3353
|
err: null
|
|
@@ -3337,9 +3358,9 @@ var Fn = (
|
|
|
3337
3358
|
case "select": {
|
|
3338
3359
|
var x = this.clonePosition();
|
|
3339
3360
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3340
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x,
|
|
3361
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, de({}, x)));
|
|
3341
3362
|
this.bumpSpace();
|
|
3342
|
-
var $ = this.parseIdentifierIfPossible(),
|
|
3363
|
+
var $ = this.parseIdentifierIfPossible(), P = 0;
|
|
3343
3364
|
if (a !== "select" && $.value === "offset") {
|
|
3344
3365
|
if (!this.bumpIf(":"))
|
|
3345
3366
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3347,7 +3368,7 @@ var Fn = (
|
|
|
3347
3368
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3348
3369
|
if (f.err)
|
|
3349
3370
|
return f;
|
|
3350
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(),
|
|
3371
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), P = f.val;
|
|
3351
3372
|
}
|
|
3352
3373
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3353
3374
|
if (U.err)
|
|
@@ -3358,18 +3379,18 @@ var Fn = (
|
|
|
3358
3379
|
var ae = b(i, this.clonePosition());
|
|
3359
3380
|
return a === "select" ? {
|
|
3360
3381
|
val: {
|
|
3361
|
-
type:
|
|
3382
|
+
type: v.select,
|
|
3362
3383
|
value: n,
|
|
3363
|
-
options:
|
|
3384
|
+
options: mt(U.val),
|
|
3364
3385
|
location: ae
|
|
3365
3386
|
},
|
|
3366
3387
|
err: null
|
|
3367
3388
|
} : {
|
|
3368
3389
|
val: {
|
|
3369
|
-
type:
|
|
3390
|
+
type: v.plural,
|
|
3370
3391
|
value: n,
|
|
3371
|
-
options:
|
|
3372
|
-
offset:
|
|
3392
|
+
options: mt(U.val),
|
|
3393
|
+
offset: P,
|
|
3373
3394
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3374
3395
|
location: ae
|
|
3375
3396
|
},
|
|
@@ -3419,16 +3440,16 @@ var Fn = (
|
|
|
3419
3440
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3420
3441
|
var n = [];
|
|
3421
3442
|
try {
|
|
3422
|
-
n =
|
|
3443
|
+
n = Sn(t);
|
|
3423
3444
|
} catch {
|
|
3424
3445
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3425
3446
|
}
|
|
3426
3447
|
return {
|
|
3427
3448
|
val: {
|
|
3428
|
-
type:
|
|
3449
|
+
type: V.number,
|
|
3429
3450
|
tokens: n,
|
|
3430
3451
|
location: r,
|
|
3431
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3452
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3432
3453
|
},
|
|
3433
3454
|
err: null
|
|
3434
3455
|
};
|
|
@@ -3453,9 +3474,9 @@ var Fn = (
|
|
|
3453
3474
|
var d = this.parseMessage(t + 1, r, n);
|
|
3454
3475
|
if (d.err)
|
|
3455
3476
|
return d;
|
|
3456
|
-
var
|
|
3457
|
-
if (
|
|
3458
|
-
return
|
|
3477
|
+
var y = this.tryParseArgumentClose(p);
|
|
3478
|
+
if (y.err)
|
|
3479
|
+
return y;
|
|
3459
3480
|
a.push([
|
|
3460
3481
|
u,
|
|
3461
3482
|
{
|
|
@@ -3476,7 +3497,7 @@ var Fn = (
|
|
|
3476
3497
|
break;
|
|
3477
3498
|
}
|
|
3478
3499
|
var h = b(i, this.clonePosition());
|
|
3479
|
-
return o ? (s *= n,
|
|
3500
|
+
return o ? (s *= n, Gn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3480
3501
|
}, e.prototype.offset = function() {
|
|
3481
3502
|
return this.position.offset;
|
|
3482
3503
|
}, e.prototype.isEOF = function() {
|
|
@@ -3491,7 +3512,7 @@ var Fn = (
|
|
|
3491
3512
|
var t = this.position.offset;
|
|
3492
3513
|
if (t >= this.message.length)
|
|
3493
3514
|
throw Error("out of bound");
|
|
3494
|
-
var r =
|
|
3515
|
+
var r = Yt(this.message, t);
|
|
3495
3516
|
if (r === void 0)
|
|
3496
3517
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3497
3518
|
return r;
|
|
@@ -3510,7 +3531,7 @@ var Fn = (
|
|
|
3510
3531
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3511
3532
|
}
|
|
3512
3533
|
}, e.prototype.bumpIf = function(t) {
|
|
3513
|
-
if (
|
|
3534
|
+
if (dt(this.message, t, this.offset())) {
|
|
3514
3535
|
for (var r = 0; r < t.length; r++)
|
|
3515
3536
|
this.bump();
|
|
3516
3537
|
return !0;
|
|
@@ -3532,7 +3553,7 @@ var Fn = (
|
|
|
3532
3553
|
break;
|
|
3533
3554
|
}
|
|
3534
3555
|
}, e.prototype.bumpSpace = function() {
|
|
3535
|
-
for (; !this.isEOF() &&
|
|
3556
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3536
3557
|
this.bump();
|
|
3537
3558
|
}, e.prototype.peek = function() {
|
|
3538
3559
|
if (this.isEOF())
|
|
@@ -3542,47 +3563,47 @@ var Fn = (
|
|
|
3542
3563
|
}, e;
|
|
3543
3564
|
}()
|
|
3544
3565
|
);
|
|
3545
|
-
function
|
|
3566
|
+
function ze(e) {
|
|
3546
3567
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3547
3568
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3569
|
+
function Vn(e) {
|
|
3570
|
+
return ze(e) || e === 47;
|
|
3550
3571
|
}
|
|
3551
|
-
function
|
|
3572
|
+
function Xn(e) {
|
|
3552
3573
|
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;
|
|
3553
3574
|
}
|
|
3554
|
-
function
|
|
3575
|
+
function Kt(e) {
|
|
3555
3576
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3556
3577
|
}
|
|
3557
|
-
function
|
|
3578
|
+
function Wn(e) {
|
|
3558
3579
|
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;
|
|
3559
3580
|
}
|
|
3560
|
-
function
|
|
3581
|
+
function Ze(e) {
|
|
3561
3582
|
e.forEach(function(t) {
|
|
3562
|
-
if (delete t.location,
|
|
3583
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3563
3584
|
for (var r in t.options)
|
|
3564
|
-
delete t.options[r].location,
|
|
3585
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3565
3586
|
else
|
|
3566
|
-
Dt(t) &&
|
|
3587
|
+
Dt(t) && Wt(t.style) || (Ft(t) || jt(t)) && ke(t.style) ? delete t.style.location : Xt(t) && Ze(t.children);
|
|
3567
3588
|
});
|
|
3568
3589
|
}
|
|
3569
|
-
function
|
|
3570
|
-
t === void 0 && (t = {}), t =
|
|
3571
|
-
var r = new
|
|
3590
|
+
function zn(e, t) {
|
|
3591
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3592
|
+
var r = new kn(e, t).parse();
|
|
3572
3593
|
if (r.err) {
|
|
3573
3594
|
var n = SyntaxError(m[r.err.kind]);
|
|
3574
3595
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3575
3596
|
}
|
|
3576
|
-
return t?.captureLocation ||
|
|
3597
|
+
return t?.captureLocation || Ze(r.val), r.val;
|
|
3577
3598
|
}
|
|
3578
|
-
var
|
|
3599
|
+
var X;
|
|
3579
3600
|
(function(e) {
|
|
3580
3601
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3581
|
-
})(
|
|
3582
|
-
var
|
|
3602
|
+
})(X || (X = {}));
|
|
3603
|
+
var Ee = (
|
|
3583
3604
|
/** @class */
|
|
3584
3605
|
function(e) {
|
|
3585
|
-
|
|
3606
|
+
_e(t, e);
|
|
3586
3607
|
function t(r, n, i) {
|
|
3587
3608
|
var o = e.call(this, r) || this;
|
|
3588
3609
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3591,155 +3612,155 @@ var ve = (
|
|
|
3591
3612
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3613
|
}, t;
|
|
3593
3614
|
}(Error)
|
|
3594
|
-
),
|
|
3615
|
+
), gt = (
|
|
3595
3616
|
/** @class */
|
|
3596
3617
|
function(e) {
|
|
3597
|
-
|
|
3618
|
+
_e(t, e);
|
|
3598
3619
|
function t(r, n, i, o) {
|
|
3599
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3620
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3600
3621
|
}
|
|
3601
3622
|
return t;
|
|
3602
|
-
}(
|
|
3603
|
-
),
|
|
3623
|
+
}(Ee)
|
|
3624
|
+
), Zn = (
|
|
3604
3625
|
/** @class */
|
|
3605
3626
|
function(e) {
|
|
3606
|
-
|
|
3627
|
+
_e(t, e);
|
|
3607
3628
|
function t(r, n, i) {
|
|
3608
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3629
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3609
3630
|
}
|
|
3610
3631
|
return t;
|
|
3611
|
-
}(
|
|
3612
|
-
),
|
|
3632
|
+
}(Ee)
|
|
3633
|
+
), Qn = (
|
|
3613
3634
|
/** @class */
|
|
3614
3635
|
function(e) {
|
|
3615
|
-
|
|
3636
|
+
_e(t, e);
|
|
3616
3637
|
function t(r, n) {
|
|
3617
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3638
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3618
3639
|
}
|
|
3619
3640
|
return t;
|
|
3620
|
-
}(
|
|
3621
|
-
),
|
|
3641
|
+
}(Ee)
|
|
3642
|
+
), E;
|
|
3622
3643
|
(function(e) {
|
|
3623
3644
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
|
-
})(
|
|
3625
|
-
function
|
|
3645
|
+
})(E || (E = {}));
|
|
3646
|
+
function Jn(e) {
|
|
3626
3647
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3648
|
var n = t[t.length - 1];
|
|
3628
|
-
return !n || n.type !==
|
|
3649
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3650
|
}, []);
|
|
3630
3651
|
}
|
|
3631
|
-
function
|
|
3652
|
+
function Yn(e) {
|
|
3632
3653
|
return typeof e == "function";
|
|
3633
3654
|
}
|
|
3634
3655
|
function fe(e, t, r, n, i, o, s) {
|
|
3635
|
-
if (e.length === 1 &&
|
|
3656
|
+
if (e.length === 1 && lt(e[0]))
|
|
3636
3657
|
return [
|
|
3637
3658
|
{
|
|
3638
|
-
type:
|
|
3659
|
+
type: E.literal,
|
|
3639
3660
|
value: e[0].value
|
|
3640
3661
|
}
|
|
3641
3662
|
];
|
|
3642
3663
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3643
3664
|
var l = u[h];
|
|
3644
|
-
if (
|
|
3665
|
+
if (lt(l)) {
|
|
3645
3666
|
a.push({
|
|
3646
|
-
type:
|
|
3667
|
+
type: E.literal,
|
|
3647
3668
|
value: l.value
|
|
3648
3669
|
});
|
|
3649
3670
|
continue;
|
|
3650
3671
|
}
|
|
3651
|
-
if (
|
|
3672
|
+
if (vn(l)) {
|
|
3652
3673
|
typeof o == "number" && a.push({
|
|
3653
|
-
type:
|
|
3674
|
+
type: E.literal,
|
|
3654
3675
|
value: r.getNumberFormat(t).format(o)
|
|
3655
3676
|
});
|
|
3656
3677
|
continue;
|
|
3657
3678
|
}
|
|
3658
3679
|
var f = l.value;
|
|
3659
3680
|
if (!(i && f in i))
|
|
3660
|
-
throw new
|
|
3681
|
+
throw new Qn(f, s);
|
|
3661
3682
|
var c = i[f];
|
|
3662
|
-
if (
|
|
3683
|
+
if (yn(l)) {
|
|
3663
3684
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3664
|
-
type: typeof c == "string" ?
|
|
3685
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3665
3686
|
value: c
|
|
3666
3687
|
});
|
|
3667
3688
|
continue;
|
|
3668
3689
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3690
|
+
if (Ft(l)) {
|
|
3691
|
+
var p = typeof l.style == "string" ? n.date[l.style] : ke(l.style) ? l.style.parsedOptions : void 0;
|
|
3671
3692
|
a.push({
|
|
3672
|
-
type:
|
|
3693
|
+
type: E.literal,
|
|
3673
3694
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3674
3695
|
});
|
|
3675
3696
|
continue;
|
|
3676
3697
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3698
|
+
if (jt(l)) {
|
|
3699
|
+
var p = typeof l.style == "string" ? n.time[l.style] : ke(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3679
3700
|
a.push({
|
|
3680
|
-
type:
|
|
3701
|
+
type: E.literal,
|
|
3681
3702
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3682
3703
|
});
|
|
3683
3704
|
continue;
|
|
3684
3705
|
}
|
|
3685
3706
|
if (Dt(l)) {
|
|
3686
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3707
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3687
3708
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3688
|
-
type:
|
|
3709
|
+
type: E.literal,
|
|
3689
3710
|
value: r.getNumberFormat(t, p).format(c)
|
|
3690
3711
|
});
|
|
3691
3712
|
continue;
|
|
3692
3713
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var d = l.children,
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3697
|
-
var C = fe(d, t, r, n, i, o), L = H(C.map(function(
|
|
3698
|
-
return
|
|
3714
|
+
if (Xt(l)) {
|
|
3715
|
+
var d = l.children, y = l.value, H = i[y];
|
|
3716
|
+
if (!Yn(H))
|
|
3717
|
+
throw new Zn(y, "function", s);
|
|
3718
|
+
var C = fe(d, t, r, n, i, o), L = H(C.map(function(P) {
|
|
3719
|
+
return P.value;
|
|
3699
3720
|
}));
|
|
3700
|
-
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(
|
|
3721
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(P) {
|
|
3701
3722
|
return {
|
|
3702
|
-
type: typeof
|
|
3703
|
-
value:
|
|
3723
|
+
type: typeof P == "string" ? E.literal : E.object,
|
|
3724
|
+
value: P
|
|
3704
3725
|
};
|
|
3705
3726
|
}));
|
|
3706
3727
|
}
|
|
3707
|
-
if (
|
|
3728
|
+
if (kt(l)) {
|
|
3708
3729
|
var x = l.options[c] || l.options.other;
|
|
3709
3730
|
if (!x)
|
|
3710
|
-
throw new
|
|
3731
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3711
3732
|
a.push.apply(a, fe(x.value, t, r, n, i));
|
|
3712
3733
|
continue;
|
|
3713
3734
|
}
|
|
3714
|
-
if (
|
|
3735
|
+
if (Vt(l)) {
|
|
3715
3736
|
var x = l.options["=".concat(c)];
|
|
3716
3737
|
if (!x) {
|
|
3717
3738
|
if (!Intl.PluralRules)
|
|
3718
|
-
throw new
|
|
3739
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3719
3740
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
|
-
`,
|
|
3741
|
+
`, X.MISSING_INTL_API, s);
|
|
3721
3742
|
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3722
3743
|
x = l.options[$] || l.options.other;
|
|
3723
3744
|
}
|
|
3724
3745
|
if (!x)
|
|
3725
|
-
throw new
|
|
3746
|
+
throw new gt(l.value, c, Object.keys(l.options), s);
|
|
3726
3747
|
a.push.apply(a, fe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3727
3748
|
continue;
|
|
3728
3749
|
}
|
|
3729
3750
|
}
|
|
3730
|
-
return
|
|
3751
|
+
return Jn(a);
|
|
3731
3752
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return t ?
|
|
3734
|
-
return r[n] =
|
|
3753
|
+
function qn(e, t) {
|
|
3754
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3755
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3735
3756
|
}, {})) : e;
|
|
3736
3757
|
}
|
|
3737
|
-
function
|
|
3758
|
+
function Kn(e, t) {
|
|
3738
3759
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3740
|
-
},
|
|
3760
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3761
|
+
}, A({}, e)) : e;
|
|
3741
3762
|
}
|
|
3742
|
-
function
|
|
3763
|
+
function Ie(e) {
|
|
3743
3764
|
return {
|
|
3744
3765
|
create: function() {
|
|
3745
3766
|
return {
|
|
@@ -3753,39 +3774,39 @@ function Pe(e) {
|
|
|
3753
3774
|
}
|
|
3754
3775
|
};
|
|
3755
3776
|
}
|
|
3756
|
-
function
|
|
3777
|
+
function ei(e) {
|
|
3757
3778
|
return e === void 0 && (e = {
|
|
3758
3779
|
number: {},
|
|
3759
3780
|
dateTime: {},
|
|
3760
3781
|
pluralRules: {}
|
|
3761
3782
|
}), {
|
|
3762
|
-
getNumberFormat:
|
|
3783
|
+
getNumberFormat: Ae(function() {
|
|
3763
3784
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3785
|
r[n] = arguments[n];
|
|
3765
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3786
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3766
3787
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3788
|
+
cache: Ie(e.number),
|
|
3789
|
+
strategy: Pe.variadic
|
|
3769
3790
|
}),
|
|
3770
|
-
getDateTimeFormat:
|
|
3791
|
+
getDateTimeFormat: Ae(function() {
|
|
3771
3792
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3793
|
r[n] = arguments[n];
|
|
3773
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3794
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3774
3795
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3796
|
+
cache: Ie(e.dateTime),
|
|
3797
|
+
strategy: Pe.variadic
|
|
3777
3798
|
}),
|
|
3778
|
-
getPluralRules:
|
|
3799
|
+
getPluralRules: Ae(function() {
|
|
3779
3800
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3801
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3802
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3782
3803
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3804
|
+
cache: Ie(e.pluralRules),
|
|
3805
|
+
strategy: Pe.variadic
|
|
3785
3806
|
})
|
|
3786
3807
|
};
|
|
3787
3808
|
}
|
|
3788
|
-
var
|
|
3809
|
+
var ti = (
|
|
3789
3810
|
/** @class */
|
|
3790
3811
|
function() {
|
|
3791
3812
|
function e(t, r, n, i) {
|
|
@@ -3800,7 +3821,7 @@ var Kn = (
|
|
|
3800
3821
|
if (u.length === 1)
|
|
3801
3822
|
return u[0].value;
|
|
3802
3823
|
var l = u.reduce(function(f, c) {
|
|
3803
|
-
return !f.length || c.type !==
|
|
3824
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3804
3825
|
}, []);
|
|
3805
3826
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3806
3827
|
}, this.formatToParts = function(h) {
|
|
@@ -3817,13 +3838,13 @@ var Kn = (
|
|
|
3817
3838
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
3839
|
var s = i || {};
|
|
3819
3840
|
s.formatters;
|
|
3820
|
-
var a =
|
|
3821
|
-
this.ast = e.__parse(t,
|
|
3841
|
+
var a = ln(s, ["formatters"]);
|
|
3842
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3822
3843
|
} else
|
|
3823
3844
|
this.ast = t;
|
|
3824
3845
|
if (!Array.isArray(this.ast))
|
|
3825
3846
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3847
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3827
3848
|
}
|
|
3828
3849
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3850
|
get: function() {
|
|
@@ -3836,7 +3857,7 @@ var Kn = (
|
|
|
3836
3857
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3858
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3859
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3860
|
+
}, e.__parse = zn, e.formats = {
|
|
3840
3861
|
number: {
|
|
3841
3862
|
integer: {
|
|
3842
3863
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3918,7 @@ var Kn = (
|
|
|
3897
3918
|
}, e;
|
|
3898
3919
|
}()
|
|
3899
3920
|
);
|
|
3900
|
-
function
|
|
3921
|
+
function ri(e, t) {
|
|
3901
3922
|
if (t == null)
|
|
3902
3923
|
return;
|
|
3903
3924
|
if (t in e)
|
|
@@ -3918,92 +3939,92 @@ function ei(e, t) {
|
|
|
3918
3939
|
n = void 0;
|
|
3919
3940
|
return n;
|
|
3920
3941
|
}
|
|
3921
|
-
const M = {},
|
|
3942
|
+
const M = {}, ni = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
|
|
3922
3943
|
if (t == null)
|
|
3923
3944
|
return;
|
|
3924
3945
|
if (t in M && e in M[t])
|
|
3925
3946
|
return M[t][e];
|
|
3926
|
-
const r =
|
|
3947
|
+
const r = xe(t);
|
|
3927
3948
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n], o =
|
|
3949
|
+
const i = r[n], o = oi(i, e);
|
|
3929
3950
|
if (o)
|
|
3930
|
-
return
|
|
3951
|
+
return ni(e, t, o);
|
|
3931
3952
|
}
|
|
3932
3953
|
};
|
|
3933
|
-
let
|
|
3934
|
-
const se =
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3954
|
+
let qe;
|
|
3955
|
+
const se = ve({});
|
|
3956
|
+
function ii(e) {
|
|
3957
|
+
return qe[e] || null;
|
|
3937
3958
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3959
|
+
function tr(e) {
|
|
3960
|
+
return e in qe;
|
|
3940
3961
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3962
|
+
function oi(e, t) {
|
|
3963
|
+
if (!tr(e))
|
|
3943
3964
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3965
|
+
const r = ii(e);
|
|
3966
|
+
return ri(r, t);
|
|
3946
3967
|
}
|
|
3947
|
-
function
|
|
3968
|
+
function si(e) {
|
|
3948
3969
|
if (e == null)
|
|
3949
3970
|
return;
|
|
3950
|
-
const t =
|
|
3971
|
+
const t = xe(e);
|
|
3951
3972
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3973
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3974
|
+
if (tr(n))
|
|
3954
3975
|
return n;
|
|
3955
3976
|
}
|
|
3956
3977
|
}
|
|
3957
|
-
function
|
|
3978
|
+
function rr(e, ...t) {
|
|
3958
3979
|
delete M[e], se.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
3959
3980
|
}
|
|
3960
|
-
|
|
3981
|
+
Z(
|
|
3961
3982
|
[se],
|
|
3962
3983
|
([e]) => Object.keys(e)
|
|
3963
3984
|
);
|
|
3964
|
-
se.subscribe((e) =>
|
|
3985
|
+
se.subscribe((e) => qe = e);
|
|
3965
3986
|
const pe = {};
|
|
3966
|
-
function
|
|
3987
|
+
function ai(e, t) {
|
|
3967
3988
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3968
3989
|
}
|
|
3969
|
-
function
|
|
3990
|
+
function nr(e) {
|
|
3970
3991
|
return pe[e];
|
|
3971
3992
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3974
|
-
const r =
|
|
3993
|
+
function ui(e) {
|
|
3994
|
+
return xe(e).map((t) => {
|
|
3995
|
+
const r = nr(t);
|
|
3975
3996
|
return [t, r ? [...r] : []];
|
|
3976
3997
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3998
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e == null ? !1 :
|
|
3999
|
+
function Qe(e) {
|
|
4000
|
+
return e == null ? !1 : xe(e).some(
|
|
3980
4001
|
(t) => {
|
|
3981
4002
|
var r;
|
|
3982
|
-
return (r =
|
|
4003
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3983
4004
|
}
|
|
3984
4005
|
);
|
|
3985
4006
|
}
|
|
3986
|
-
function
|
|
4007
|
+
function hi(e, t) {
|
|
3987
4008
|
return Promise.all(
|
|
3988
|
-
t.map((n) => (
|
|
3989
|
-
).then((n) =>
|
|
3990
|
-
}
|
|
3991
|
-
const
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
3994
|
-
return e in
|
|
3995
|
-
const t =
|
|
3996
|
-
return
|
|
4009
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
4010
|
+
).then((n) => rr(e, ...n));
|
|
4011
|
+
}
|
|
4012
|
+
const q = {};
|
|
4013
|
+
function ir(e) {
|
|
4014
|
+
if (!Qe(e))
|
|
4015
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4016
|
+
const t = ui(e);
|
|
4017
|
+
return q[e] = Promise.all(
|
|
3997
4018
|
t.map(
|
|
3998
|
-
([r, n]) =>
|
|
4019
|
+
([r, n]) => hi(r, n)
|
|
3999
4020
|
)
|
|
4000
4021
|
).then(() => {
|
|
4001
|
-
if (
|
|
4002
|
-
return
|
|
4003
|
-
delete
|
|
4004
|
-
}),
|
|
4022
|
+
if (Qe(e))
|
|
4023
|
+
return ir(e);
|
|
4024
|
+
delete q[e];
|
|
4025
|
+
}), q[e];
|
|
4005
4026
|
}
|
|
4006
|
-
const
|
|
4027
|
+
const li = {
|
|
4007
4028
|
number: {
|
|
4008
4029
|
scientific: { notation: "scientific" },
|
|
4009
4030
|
engineering: { notation: "engineering" },
|
|
@@ -4032,135 +4053,135 @@ const ui = {
|
|
|
4032
4053
|
timeZoneName: "short"
|
|
4033
4054
|
}
|
|
4034
4055
|
}
|
|
4035
|
-
},
|
|
4056
|
+
}, ci = {
|
|
4036
4057
|
fallbackLocale: null,
|
|
4037
4058
|
loadingDelay: 200,
|
|
4038
|
-
formats:
|
|
4059
|
+
formats: li,
|
|
4039
4060
|
warnOnMissingMessages: !0,
|
|
4040
4061
|
handleMissingMessage: void 0,
|
|
4041
4062
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4063
|
+
}, fi = ci;
|
|
4064
|
+
function W() {
|
|
4065
|
+
return fi;
|
|
4045
4066
|
}
|
|
4046
|
-
const
|
|
4047
|
-
var
|
|
4067
|
+
const Le = ve(!1);
|
|
4068
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4048
4069
|
for (var r in t || (t = {}))
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
4070
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
4071
|
+
if (yt)
|
|
4072
|
+
for (var r of yt(t))
|
|
4073
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
4053
4074
|
return e;
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4075
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4076
|
+
let Je;
|
|
4077
|
+
const me = ve(null);
|
|
4078
|
+
function _t(e) {
|
|
4058
4079
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4080
|
}
|
|
4060
|
-
function
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4081
|
+
function xe(e, t = W().fallbackLocale) {
|
|
4082
|
+
const r = _t(e);
|
|
4083
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4063
4084
|
}
|
|
4064
4085
|
function R() {
|
|
4065
|
-
return
|
|
4086
|
+
return Je ?? void 0;
|
|
4066
4087
|
}
|
|
4067
|
-
|
|
4068
|
-
|
|
4088
|
+
me.subscribe((e) => {
|
|
4089
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4090
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4072
|
-
const { loadingDelay: t } =
|
|
4091
|
+
const _i = (e) => {
|
|
4092
|
+
if (e && si(e) && Qe(e)) {
|
|
4093
|
+
const { loadingDelay: t } = W();
|
|
4073
4094
|
let r;
|
|
4074
4095
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4075
|
-
() =>
|
|
4096
|
+
() => Le.set(!0),
|
|
4076
4097
|
t
|
|
4077
|
-
) :
|
|
4078
|
-
|
|
4098
|
+
) : Le.set(!0), ir(e).then(() => {
|
|
4099
|
+
me.set(e);
|
|
4079
4100
|
}).finally(() => {
|
|
4080
|
-
clearTimeout(r),
|
|
4101
|
+
clearTimeout(r), Le.set(!1);
|
|
4081
4102
|
});
|
|
4082
4103
|
}
|
|
4083
|
-
return
|
|
4084
|
-
},
|
|
4085
|
-
set:
|
|
4086
|
-
}),
|
|
4104
|
+
return me.set(e);
|
|
4105
|
+
}, Q = vi(yi({}, me), {
|
|
4106
|
+
set: _i
|
|
4107
|
+
}), Se = (e) => {
|
|
4087
4108
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4109
|
return (n) => {
|
|
4089
4110
|
const i = JSON.stringify(n);
|
|
4090
4111
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4112
|
};
|
|
4092
4113
|
};
|
|
4093
|
-
var
|
|
4114
|
+
var Ei = Object.defineProperty, be = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4094
4115
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4096
|
-
if (
|
|
4097
|
-
for (var r of
|
|
4098
|
-
|
|
4116
|
+
or.call(t, r) && Et(e, r, t[r]);
|
|
4117
|
+
if (be)
|
|
4118
|
+
for (var r of be(t))
|
|
4119
|
+
sr.call(t, r) && Et(e, r, t[r]);
|
|
4099
4120
|
return e;
|
|
4100
|
-
},
|
|
4121
|
+
}, J = (e, t) => {
|
|
4101
4122
|
var r = {};
|
|
4102
4123
|
for (var n in e)
|
|
4103
|
-
|
|
4104
|
-
if (e != null &&
|
|
4105
|
-
for (var n of
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4124
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4125
|
+
if (e != null && be)
|
|
4126
|
+
for (var n of be(e))
|
|
4127
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4107
4128
|
return r;
|
|
4108
4129
|
};
|
|
4109
|
-
const
|
|
4110
|
-
const { formats: r } =
|
|
4130
|
+
const re = (e, t) => {
|
|
4131
|
+
const { formats: r } = W();
|
|
4111
4132
|
if (e in r && t in r[e])
|
|
4112
4133
|
return r[e][t];
|
|
4113
4134
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4135
|
+
}, xi = Se(
|
|
4115
4136
|
(e) => {
|
|
4116
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4137
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4117
4138
|
if (r == null)
|
|
4118
4139
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
|
-
return n && (i =
|
|
4140
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4141
|
}
|
|
4121
|
-
),
|
|
4142
|
+
), Si = Se(
|
|
4122
4143
|
(e) => {
|
|
4123
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4144
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4124
4145
|
if (r == null)
|
|
4125
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4126
|
-
return n ? i =
|
|
4147
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4127
4148
|
}
|
|
4128
|
-
),
|
|
4149
|
+
), Ti = Se(
|
|
4129
4150
|
(e) => {
|
|
4130
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4131
4152
|
if (r == null)
|
|
4132
4153
|
throw new Error(
|
|
4133
4154
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4134
4155
|
);
|
|
4135
|
-
return n ? i =
|
|
4156
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4157
|
}
|
|
4137
|
-
),
|
|
4158
|
+
), Hi = (e = {}) => {
|
|
4138
4159
|
var t = e, {
|
|
4139
4160
|
locale: r = R()
|
|
4140
|
-
} = t, n =
|
|
4161
|
+
} = t, n = J(t, [
|
|
4141
4162
|
"locale"
|
|
4142
4163
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4164
|
+
return xi(Ke({ locale: r }, n));
|
|
4165
|
+
}, Bi = (e = {}) => {
|
|
4145
4166
|
var t = e, {
|
|
4146
4167
|
locale: r = R()
|
|
4147
|
-
} = t, n =
|
|
4168
|
+
} = t, n = J(t, [
|
|
4148
4169
|
"locale"
|
|
4149
4170
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4171
|
+
return Si(Ke({ locale: r }, n));
|
|
4172
|
+
}, wi = (e = {}) => {
|
|
4152
4173
|
var t = e, {
|
|
4153
4174
|
locale: r = R()
|
|
4154
|
-
} = t, n =
|
|
4175
|
+
} = t, n = J(t, [
|
|
4155
4176
|
"locale"
|
|
4156
4177
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4178
|
+
return Ti(Ke({ locale: r }, n));
|
|
4179
|
+
}, Ai = Se(
|
|
4159
4180
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t = R()) => new
|
|
4161
|
-
ignoreTag:
|
|
4181
|
+
(e, t = R()) => new ti(e, t, W().formats, {
|
|
4182
|
+
ignoreTag: W().ignoreTag
|
|
4162
4183
|
})
|
|
4163
|
-
),
|
|
4184
|
+
), Pi = (e, t = {}) => {
|
|
4164
4185
|
var r, n, i, o;
|
|
4165
4186
|
let s = t;
|
|
4166
4187
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4173,9 +4194,9 @@ const ne = (e, t) => {
|
|
|
4173
4194
|
throw new Error(
|
|
4174
4195
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4196
|
);
|
|
4176
|
-
let l =
|
|
4197
|
+
let l = er(e, h);
|
|
4177
4198
|
if (!l)
|
|
4178
|
-
l = (o = (i = (n = (r =
|
|
4199
|
+
l = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4179
4200
|
else if (typeof l != "string")
|
|
4180
4201
|
return console.warn(
|
|
4181
4202
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4184,7 +4205,7 @@ const ne = (e, t) => {
|
|
|
4184
4205
|
return l;
|
|
4185
4206
|
let f = l;
|
|
4186
4207
|
try {
|
|
4187
|
-
f =
|
|
4208
|
+
f = Ai(l, h).format(a);
|
|
4188
4209
|
} catch (c) {
|
|
4189
4210
|
c instanceof Error && console.warn(
|
|
4190
4211
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4192,15 +4213,15 @@ const ne = (e, t) => {
|
|
|
4192
4213
|
);
|
|
4193
4214
|
}
|
|
4194
4215
|
return f;
|
|
4195
|
-
},
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4216
|
+
}, Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Li = (e, t) => Hi(t).format(e), Ni = (e, t = R()) => er(e, t), Mi = Z([Q, se], () => Pi);
|
|
4217
|
+
Z([Q], () => Oi);
|
|
4218
|
+
Z([Q], () => Ii);
|
|
4219
|
+
Z([Q], () => Li);
|
|
4220
|
+
Z([Q, se], () => Ni);
|
|
4200
4221
|
window.emWidgets = { topic: Xr };
|
|
4201
|
-
const
|
|
4222
|
+
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4202
4223
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4203
|
-
const
|
|
4224
|
+
const $i = (e, t = {}) => {
|
|
4204
4225
|
const r = new CustomEvent("track-custom-event", {
|
|
4205
4226
|
detail: {
|
|
4206
4227
|
type: e,
|
|
@@ -4211,13 +4232,13 @@ const Mi = (e, t = {}) => {
|
|
|
4211
4232
|
});
|
|
4212
4233
|
document.dispatchEvent(r);
|
|
4213
4234
|
};
|
|
4214
|
-
function
|
|
4215
|
-
|
|
4235
|
+
function xt(e, t) {
|
|
4236
|
+
rr(e, t);
|
|
4216
4237
|
}
|
|
4217
|
-
function
|
|
4218
|
-
|
|
4238
|
+
function Ri(e) {
|
|
4239
|
+
Q.set(e);
|
|
4219
4240
|
}
|
|
4220
|
-
const
|
|
4241
|
+
const St = {
|
|
4221
4242
|
en: {
|
|
4222
4243
|
logoutButton: "Logout"
|
|
4223
4244
|
},
|
|
@@ -4252,13 +4273,13 @@ const _t = {
|
|
|
4252
4273
|
logoutButton: "Logout"
|
|
4253
4274
|
}
|
|
4254
4275
|
};
|
|
4255
|
-
function
|
|
4276
|
+
function Tt(e, t) {
|
|
4256
4277
|
if (e) {
|
|
4257
4278
|
const r = document.createElement("style");
|
|
4258
4279
|
r.innerHTML = t, e.appendChild(r);
|
|
4259
4280
|
}
|
|
4260
4281
|
}
|
|
4261
|
-
function
|
|
4282
|
+
function Ui(e, t) {
|
|
4262
4283
|
if (!e || !t)
|
|
4263
4284
|
return;
|
|
4264
4285
|
const r = new URL(t);
|
|
@@ -4269,7 +4290,7 @@ function $i(e, t) {
|
|
|
4269
4290
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4270
4291
|
});
|
|
4271
4292
|
}
|
|
4272
|
-
function
|
|
4293
|
+
function Gi(e, t, r) {
|
|
4273
4294
|
if (window.emMessageBus) {
|
|
4274
4295
|
const n = document.createElement("style");
|
|
4275
4296
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4277,20 +4298,20 @@ function Ri(e, t, r) {
|
|
|
4277
4298
|
});
|
|
4278
4299
|
}
|
|
4279
4300
|
}
|
|
4280
|
-
function Ui(e) {
|
|
4281
|
-
hr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4282
|
-
}
|
|
4283
4301
|
function Di(e) {
|
|
4302
|
+
lr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4303
|
+
}
|
|
4304
|
+
function Fi(e) {
|
|
4284
4305
|
let t, r, n, i = (
|
|
4285
4306
|
/*$_*/
|
|
4286
4307
|
e[2]("logoutButton") + ""
|
|
4287
4308
|
), o, s, a;
|
|
4288
4309
|
return {
|
|
4289
4310
|
c() {
|
|
4290
|
-
t =
|
|
4311
|
+
t = O("div"), r = O("button"), n = O("span"), o = ge(i), T(t, "class", "GeneralLogout");
|
|
4291
4312
|
},
|
|
4292
4313
|
m(h, u) {
|
|
4293
|
-
|
|
4314
|
+
ie(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = At(
|
|
4294
4315
|
r,
|
|
4295
4316
|
"click",
|
|
4296
4317
|
/*click_handler_1*/
|
|
@@ -4300,19 +4321,19 @@ function Di(e) {
|
|
|
4300
4321
|
p(h, u) {
|
|
4301
4322
|
u & /*$_*/
|
|
4302
4323
|
4 && i !== (i = /*$_*/
|
|
4303
|
-
h[2]("logoutButton") + "") &&
|
|
4324
|
+
h[2]("logoutButton") + "") && Pt(o, i);
|
|
4304
4325
|
},
|
|
4305
4326
|
d(h) {
|
|
4306
|
-
h &&
|
|
4327
|
+
h && z(t), s = !1, a();
|
|
4307
4328
|
}
|
|
4308
4329
|
};
|
|
4309
4330
|
}
|
|
4310
|
-
function
|
|
4331
|
+
function ji(e) {
|
|
4311
4332
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4312
|
-
e[3] &&
|
|
4333
|
+
e[3] && ki(e);
|
|
4313
4334
|
return {
|
|
4314
4335
|
c() {
|
|
4315
|
-
t =
|
|
4336
|
+
t = O("p"), r = O("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u = pr(), c && c.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), mr(r, "width", /*isMobile*/
|
|
4316
4337
|
e[3] ? (
|
|
4317
4338
|
/*mediaQuery*/
|
|
4318
4339
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4322,7 +4343,7 @@ function Gi(e) {
|
|
|
4322
4343
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4323
4344
|
},
|
|
4324
4345
|
m(p, d) {
|
|
4325
|
-
|
|
4346
|
+
ie(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f = At(
|
|
4326
4347
|
t,
|
|
4327
4348
|
"click",
|
|
4328
4349
|
/*click_handler*/
|
|
@@ -4334,47 +4355,47 @@ function Gi(e) {
|
|
|
4334
4355
|
p[3] || c.p(p, d);
|
|
4335
4356
|
},
|
|
4336
4357
|
d(p) {
|
|
4337
|
-
p &&
|
|
4358
|
+
p && z(t), c && c.d(), l = !1, f();
|
|
4338
4359
|
}
|
|
4339
4360
|
};
|
|
4340
4361
|
}
|
|
4341
|
-
function
|
|
4362
|
+
function ki(e) {
|
|
4342
4363
|
let t, r = (
|
|
4343
4364
|
/*$_*/
|
|
4344
4365
|
e[2]("logoutButton") + ""
|
|
4345
4366
|
), n;
|
|
4346
4367
|
return {
|
|
4347
4368
|
c() {
|
|
4348
|
-
t =
|
|
4369
|
+
t = O("span"), n = ge(r), T(t, "class", "PlayerLogoutText");
|
|
4349
4370
|
},
|
|
4350
4371
|
m(i, o) {
|
|
4351
|
-
|
|
4372
|
+
ie(i, t, o), S(t, n);
|
|
4352
4373
|
},
|
|
4353
4374
|
p(i, o) {
|
|
4354
4375
|
o & /*$_*/
|
|
4355
4376
|
4 && r !== (r = /*$_*/
|
|
4356
|
-
i[2]("logoutButton") + "") &&
|
|
4377
|
+
i[2]("logoutButton") + "") && Pt(n, r);
|
|
4357
4378
|
},
|
|
4358
4379
|
d(i) {
|
|
4359
|
-
i &&
|
|
4380
|
+
i && z(t);
|
|
4360
4381
|
}
|
|
4361
4382
|
};
|
|
4362
4383
|
}
|
|
4363
|
-
function
|
|
4384
|
+
function Vi(e) {
|
|
4364
4385
|
let t;
|
|
4365
4386
|
function r(o, s) {
|
|
4366
4387
|
return (
|
|
4367
4388
|
/*buttonlocation*/
|
|
4368
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4389
|
+
o[0] === "PlayerAccountMenu" ? ji : Fi
|
|
4369
4390
|
);
|
|
4370
4391
|
}
|
|
4371
4392
|
let n = r(e), i = n(e);
|
|
4372
4393
|
return {
|
|
4373
4394
|
c() {
|
|
4374
|
-
t =
|
|
4395
|
+
t = O("div"), i.c();
|
|
4375
4396
|
},
|
|
4376
4397
|
m(o, s) {
|
|
4377
|
-
|
|
4398
|
+
ie(o, t, s), i.m(t, null), e[15](t);
|
|
4378
4399
|
},
|
|
4379
4400
|
p(o, [s]) {
|
|
4380
4401
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4382,54 +4403,54 @@ function ji(e) {
|
|
|
4382
4403
|
i: B,
|
|
4383
4404
|
o: B,
|
|
4384
4405
|
d(o) {
|
|
4385
|
-
o &&
|
|
4406
|
+
o && z(t), i.d(), e[15](null);
|
|
4386
4407
|
}
|
|
4387
4408
|
};
|
|
4388
4409
|
}
|
|
4389
|
-
function
|
|
4410
|
+
function Xi(e, t, r) {
|
|
4390
4411
|
let n;
|
|
4391
|
-
|
|
4392
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d,
|
|
4412
|
+
hr(e, Mi, (g) => r(2, n = g));
|
|
4413
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, y = window.navigator.userAgent, H = Ci(y) !== "PC";
|
|
4393
4414
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4394
4415
|
fetch(f).then((N) => N.json()).then((N) => {
|
|
4395
|
-
Object.keys(N).forEach((
|
|
4396
|
-
|
|
4416
|
+
Object.keys(N).forEach((Te) => {
|
|
4417
|
+
xt(Te, N[Te]);
|
|
4397
4418
|
});
|
|
4398
4419
|
}).catch((N) => {
|
|
4399
4420
|
console.log(N);
|
|
4400
4421
|
});
|
|
4401
4422
|
};
|
|
4402
|
-
Object.keys(
|
|
4403
|
-
|
|
4423
|
+
Object.keys(St).forEach((g) => {
|
|
4424
|
+
xt(g, St[g]);
|
|
4404
4425
|
});
|
|
4405
4426
|
const x = () => {
|
|
4406
|
-
let
|
|
4407
|
-
|
|
4408
|
-
let N = { method: "DELETE", headers:
|
|
4409
|
-
fetch(`${i}/v1/player/session/player`, N).then((
|
|
4410
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4427
|
+
let g = new Headers();
|
|
4428
|
+
g.append("Content-type", "application/json"), g.append("X-SessionID", o);
|
|
4429
|
+
let N = { method: "DELETE", headers: g };
|
|
4430
|
+
fetch(`${i}/v1/player/session/player`, N).then((Te) => {
|
|
4431
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), $i("logged_out", {});
|
|
4411
4432
|
});
|
|
4412
|
-
}, $ = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p),
|
|
4413
|
-
|
|
4433
|
+
}, $ = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), P = () => {
|
|
4434
|
+
Ri(a);
|
|
4414
4435
|
};
|
|
4415
|
-
|
|
4436
|
+
yr(() => () => {
|
|
4416
4437
|
});
|
|
4417
4438
|
const U = () => x(), ae = () => x();
|
|
4418
|
-
function
|
|
4419
|
-
|
|
4420
|
-
d =
|
|
4439
|
+
function ar(g) {
|
|
4440
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4441
|
+
d = g, r(1, d);
|
|
4421
4442
|
});
|
|
4422
4443
|
}
|
|
4423
|
-
return e.$$set = (
|
|
4424
|
-
"endpoint" in
|
|
4444
|
+
return e.$$set = (g) => {
|
|
4445
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "mbsource" in g && r(9, h = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, l = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
|
|
4425
4446
|
}, e.$$.update = () => {
|
|
4426
4447
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4427
4448
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4428
|
-
256 && a &&
|
|
4429
|
-
1026 && u && d &&
|
|
4430
|
-
1026 && u && d &&
|
|
4431
|
-
2050 && l && d &&
|
|
4432
|
-
514 && h && d &&
|
|
4449
|
+
256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4450
|
+
1026 && u && d && Tt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4451
|
+
1026 && u && d && Tt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4452
|
+
2050 && l && d && Ui(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4453
|
+
514 && h && d && Gi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4433
4454
|
4096 && f && L();
|
|
4434
4455
|
}, [
|
|
4435
4456
|
s,
|
|
@@ -4447,17 +4468,17 @@ function ki(e, t, r) {
|
|
|
4447
4468
|
f,
|
|
4448
4469
|
U,
|
|
4449
4470
|
ae,
|
|
4450
|
-
|
|
4471
|
+
ar
|
|
4451
4472
|
];
|
|
4452
4473
|
}
|
|
4453
|
-
class
|
|
4474
|
+
class Wi extends Or {
|
|
4454
4475
|
constructor(t) {
|
|
4455
4476
|
super(), Ar(
|
|
4456
4477
|
this,
|
|
4457
4478
|
t,
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4479
|
+
Xi,
|
|
4480
|
+
Vi,
|
|
4481
|
+
Bt,
|
|
4461
4482
|
{
|
|
4462
4483
|
endpoint: 6,
|
|
4463
4484
|
session: 7,
|
|
@@ -4468,59 +4489,59 @@ class Vi extends Pr {
|
|
|
4468
4489
|
clientstylingurl: 11,
|
|
4469
4490
|
translationurl: 12
|
|
4470
4491
|
},
|
|
4471
|
-
|
|
4492
|
+
Di
|
|
4472
4493
|
);
|
|
4473
4494
|
}
|
|
4474
4495
|
get endpoint() {
|
|
4475
4496
|
return this.$$.ctx[6];
|
|
4476
4497
|
}
|
|
4477
4498
|
set endpoint(t) {
|
|
4478
|
-
this.$$set({ endpoint: t }),
|
|
4499
|
+
this.$$set({ endpoint: t }), w();
|
|
4479
4500
|
}
|
|
4480
4501
|
get session() {
|
|
4481
4502
|
return this.$$.ctx[7];
|
|
4482
4503
|
}
|
|
4483
4504
|
set session(t) {
|
|
4484
|
-
this.$$set({ session: t }),
|
|
4505
|
+
this.$$set({ session: t }), w();
|
|
4485
4506
|
}
|
|
4486
4507
|
get buttonlocation() {
|
|
4487
4508
|
return this.$$.ctx[0];
|
|
4488
4509
|
}
|
|
4489
4510
|
set buttonlocation(t) {
|
|
4490
|
-
this.$$set({ buttonlocation: t }),
|
|
4511
|
+
this.$$set({ buttonlocation: t }), w();
|
|
4491
4512
|
}
|
|
4492
4513
|
get lang() {
|
|
4493
4514
|
return this.$$.ctx[8];
|
|
4494
4515
|
}
|
|
4495
4516
|
set lang(t) {
|
|
4496
|
-
this.$$set({ lang: t }),
|
|
4517
|
+
this.$$set({ lang: t }), w();
|
|
4497
4518
|
}
|
|
4498
4519
|
get mbsource() {
|
|
4499
4520
|
return this.$$.ctx[9];
|
|
4500
4521
|
}
|
|
4501
4522
|
set mbsource(t) {
|
|
4502
|
-
this.$$set({ mbsource: t }),
|
|
4523
|
+
this.$$set({ mbsource: t }), w();
|
|
4503
4524
|
}
|
|
4504
4525
|
get clientstyling() {
|
|
4505
4526
|
return this.$$.ctx[10];
|
|
4506
4527
|
}
|
|
4507
4528
|
set clientstyling(t) {
|
|
4508
|
-
this.$$set({ clientstyling: t }),
|
|
4529
|
+
this.$$set({ clientstyling: t }), w();
|
|
4509
4530
|
}
|
|
4510
4531
|
get clientstylingurl() {
|
|
4511
4532
|
return this.$$.ctx[11];
|
|
4512
4533
|
}
|
|
4513
4534
|
set clientstylingurl(t) {
|
|
4514
|
-
this.$$set({ clientstylingurl: t }),
|
|
4535
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
4515
4536
|
}
|
|
4516
4537
|
get translationurl() {
|
|
4517
4538
|
return this.$$.ctx[12];
|
|
4518
4539
|
}
|
|
4519
4540
|
set translationurl(t) {
|
|
4520
|
-
this.$$set({ translationurl: t }),
|
|
4541
|
+
this.$$set({ translationurl: t }), w();
|
|
4521
4542
|
}
|
|
4522
4543
|
}
|
|
4523
|
-
|
|
4544
|
+
Pr(Wi, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4524
4545
|
export {
|
|
4525
|
-
|
|
4546
|
+
Wi as G
|
|
4526
4547
|
};
|