@everymatrix/casino-tournaments-details 1.86.3 → 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/{CasinoTournamentsDetails-DQtIBrQd.js → CasinoTournamentsDetails-0R--1EdU.js} +705 -684
- package/components/{CasinoTournamentsDetails-D0LT_f4r.js → CasinoTournamentsDetails-Ds5qo3pI.js} +723 -702
- package/components/CasinoTournamentsDetails-JLyuVROc.cjs +18 -0
- package/es2015/casino-tournaments-details.cjs +1 -1
- package/es2015/casino-tournaments-details.js +1 -1
- package/esnext/casino-tournaments-details.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsDetails-BH-QewNx.cjs +0 -18
package/components/{CasinoTournamentsDetails-DQtIBrQd.js → CasinoTournamentsDetails-0R--1EdU.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function _t(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(_t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ee(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function xt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function er(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function tr(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function er(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return e &&
|
|
30
|
+
function rr(e) {
|
|
31
|
+
return e && ee(e.destroy) ? e.destroy : S;
|
|
32
32
|
}
|
|
33
33
|
function B(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function nr(e, t, r) {
|
|
37
|
+
const n = ir(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = I("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ir(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,17 +50,17 @@ function nr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function or(e, t) {
|
|
54
54
|
return B(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function k(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function N(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function I(e) {
|
|
@@ -69,26 +69,26 @@ function I(e) {
|
|
|
69
69
|
function fe(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Et(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function St() {
|
|
76
|
+
return Et(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function sr(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function v(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ar(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function ur(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function hr(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function ur(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let J;
|
|
101
|
+
function Q(e) {
|
|
102
|
+
J = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function lr() {
|
|
105
|
+
if (!J)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return J;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function fr(e) {
|
|
110
|
+
lr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const R = [],
|
|
112
|
+
const R = [], Pe = [];
|
|
113
113
|
let D = [];
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
114
|
+
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Oe = !1;
|
|
116
|
+
function pr() {
|
|
117
|
+
Oe || (Oe = !0, cr.then(O));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ie(e) {
|
|
120
120
|
D.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const xe = /* @__PURE__ */ new Set();
|
|
123
123
|
let M = 0;
|
|
124
124
|
function O() {
|
|
125
125
|
if (M !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = J;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
130
|
for (; M < R.length; ) {
|
|
131
131
|
const t = R[M];
|
|
132
|
-
M++,
|
|
132
|
+
M++, Q(t), dr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw R.length = 0, M = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
137
|
+
for (Q(null), R.length = 0, M = 0; Pe.length; )
|
|
138
|
+
Pe.pop()();
|
|
139
139
|
for (let t = 0; t < D.length; t += 1) {
|
|
140
140
|
const r = D[t];
|
|
141
|
-
|
|
141
|
+
xe.has(r) || (xe.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
D.length = 0;
|
|
144
144
|
} while (R.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
for (; Ye.length; )
|
|
146
|
+
Ye.pop()();
|
|
147
|
+
Oe = !1, xe.clear(), Q(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function dr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), K(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function mr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const br = /* @__PURE__ */ new Set();
|
|
161
|
+
function vr(e, t) {
|
|
162
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
164
|
function gr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Ie(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(_t).filter(ee);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Ie);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function yr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (mr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (R.push(e),
|
|
175
|
+
function _r(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (R.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
-
const h =
|
|
180
|
-
|
|
179
|
+
const h = J;
|
|
180
|
+
Q(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: S,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Je(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || h.$$.root
|
|
201
201
|
};
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let l = !1;
|
|
204
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
205
|
-
const p =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l &&
|
|
207
|
-
}) : [], u.update(), l = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
205
|
+
const p = b.length ? b[0] : c;
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && _r(e, f)), c;
|
|
207
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
210
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
209
|
+
const f = ar(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(N);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && vr(e.$$.fragment), gr(e, t.target, t.anchor), O();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
Q(h);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Tt;
|
|
218
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -264,17 +264,17 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
266
|
m: function(h, u) {
|
|
267
|
-
|
|
267
|
+
k(h, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(h) {
|
|
270
|
-
h &&
|
|
270
|
+
h && N(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = hr(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function ae(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
364
|
+
function Er(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends Tt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function _r(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
s, s;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Sr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class Er {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
yr(this, 1), this.$destroy = S;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class Er {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!ee(r))
|
|
422
422
|
return S;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,12 +431,12 @@ class Er {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
439
|
-
function
|
|
437
|
+
const Tr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
439
|
+
function wr(e, t) {
|
|
440
440
|
if (e) {
|
|
441
441
|
const r = document.createElement("style");
|
|
442
442
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -453,7 +453,7 @@ function Hr(e, t) {
|
|
|
453
453
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Br(e, t, r) {
|
|
457
457
|
if (window.emMessageBus) {
|
|
458
458
|
const n = document.createElement("style");
|
|
459
459
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -475,43 +475,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
475
475
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
476
476
|
PERFORMANCE OF THIS SOFTWARE.
|
|
477
477
|
***************************************************************************** */
|
|
478
|
-
var
|
|
479
|
-
return
|
|
478
|
+
var Ne = function(e, t) {
|
|
479
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
480
480
|
r.__proto__ = n;
|
|
481
481
|
} || function(r, n) {
|
|
482
482
|
for (var i in n)
|
|
483
483
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
484
|
-
},
|
|
484
|
+
}, Ne(e, t);
|
|
485
485
|
};
|
|
486
|
-
function
|
|
486
|
+
function te(e, t) {
|
|
487
487
|
if (typeof t != "function" && t !== null)
|
|
488
488
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
489
|
-
|
|
489
|
+
Ne(e, t);
|
|
490
490
|
function r() {
|
|
491
491
|
this.constructor = e;
|
|
492
492
|
}
|
|
493
493
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
494
494
|
}
|
|
495
|
-
|
|
496
|
-
return b = Object.assign || function(t) {
|
|
497
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
498
|
-
r = arguments[n];
|
|
499
|
-
for (var o in r)
|
|
500
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
501
|
-
}
|
|
502
|
-
return t;
|
|
503
|
-
}, b.apply(this, arguments);
|
|
504
|
-
};
|
|
505
|
-
function Br(e, t) {
|
|
506
|
-
var r = {};
|
|
507
|
-
for (var n in e)
|
|
508
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
509
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
510
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
511
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
512
|
-
return r;
|
|
513
|
-
}
|
|
514
|
-
function Ie(e) {
|
|
495
|
+
function Ce(e) {
|
|
515
496
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
516
497
|
if (r)
|
|
517
498
|
return r.call(e);
|
|
@@ -523,7 +504,7 @@ function Ie(e) {
|
|
|
523
504
|
};
|
|
524
505
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
525
506
|
}
|
|
526
|
-
function
|
|
507
|
+
function Le(e, t) {
|
|
527
508
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
528
509
|
if (!r)
|
|
529
510
|
return e;
|
|
@@ -543,8 +524,8 @@ function Ce(e, t) {
|
|
|
543
524
|
}
|
|
544
525
|
return o;
|
|
545
526
|
}
|
|
546
|
-
function
|
|
547
|
-
if (
|
|
527
|
+
function Me(e, t, r) {
|
|
528
|
+
if (arguments.length === 2)
|
|
548
529
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
549
530
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
550
531
|
return e.concat(o || t);
|
|
@@ -552,13 +533,13 @@ function U(e, t, r) {
|
|
|
552
533
|
function H(e) {
|
|
553
534
|
return typeof e == "function";
|
|
554
535
|
}
|
|
555
|
-
function
|
|
536
|
+
function wt(e) {
|
|
556
537
|
var t = function(n) {
|
|
557
538
|
Error.call(n), n.stack = new Error().stack;
|
|
558
539
|
}, r = e(t);
|
|
559
540
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
560
541
|
}
|
|
561
|
-
var
|
|
542
|
+
var Ee = wt(function(e) {
|
|
562
543
|
return function(r) {
|
|
563
544
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
564
545
|
` + r.map(function(n, i) {
|
|
@@ -567,13 +548,13 @@ var xe = St(function(e) {
|
|
|
567
548
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
568
549
|
};
|
|
569
550
|
});
|
|
570
|
-
function
|
|
551
|
+
function $e(e, t) {
|
|
571
552
|
if (e) {
|
|
572
553
|
var r = e.indexOf(t);
|
|
573
554
|
0 <= r && e.splice(r, 1);
|
|
574
555
|
}
|
|
575
556
|
}
|
|
576
|
-
var
|
|
557
|
+
var me = function() {
|
|
577
558
|
function e(t) {
|
|
578
559
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
579
560
|
}
|
|
@@ -585,12 +566,12 @@ var de = function() {
|
|
|
585
566
|
if (s)
|
|
586
567
|
if (this._parentage = null, Array.isArray(s))
|
|
587
568
|
try {
|
|
588
|
-
for (var a =
|
|
569
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
589
570
|
var u = h.value;
|
|
590
571
|
u.remove(this);
|
|
591
572
|
}
|
|
592
|
-
} catch (
|
|
593
|
-
t = { error:
|
|
573
|
+
} catch (g) {
|
|
574
|
+
t = { error: g };
|
|
594
575
|
} finally {
|
|
595
576
|
try {
|
|
596
577
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -605,26 +586,26 @@ var de = function() {
|
|
|
605
586
|
if (H(l))
|
|
606
587
|
try {
|
|
607
588
|
l();
|
|
608
|
-
} catch (
|
|
609
|
-
o =
|
|
589
|
+
} catch (g) {
|
|
590
|
+
o = g instanceof Ee ? g.errors : [g];
|
|
610
591
|
}
|
|
611
592
|
var f = this._finalizers;
|
|
612
593
|
if (f) {
|
|
613
594
|
this._finalizers = null;
|
|
614
595
|
try {
|
|
615
|
-
for (var c =
|
|
616
|
-
var p =
|
|
596
|
+
for (var c = Ce(f), b = c.next(); !b.done; b = c.next()) {
|
|
597
|
+
var p = b.value;
|
|
617
598
|
try {
|
|
618
|
-
|
|
619
|
-
} catch (
|
|
620
|
-
o = o ?? [],
|
|
599
|
+
qe(p);
|
|
600
|
+
} catch (g) {
|
|
601
|
+
o = o ?? [], g instanceof Ee ? o = Me(Me([], Le(o)), Le(g.errors)) : o.push(g);
|
|
621
602
|
}
|
|
622
603
|
}
|
|
623
|
-
} catch (
|
|
624
|
-
n = { error:
|
|
604
|
+
} catch (g) {
|
|
605
|
+
n = { error: g };
|
|
625
606
|
} finally {
|
|
626
607
|
try {
|
|
627
|
-
|
|
608
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
628
609
|
} finally {
|
|
629
610
|
if (n)
|
|
630
611
|
throw n.error;
|
|
@@ -632,13 +613,13 @@ var de = function() {
|
|
|
632
613
|
}
|
|
633
614
|
}
|
|
634
615
|
if (o)
|
|
635
|
-
throw new
|
|
616
|
+
throw new Ee(o);
|
|
636
617
|
}
|
|
637
618
|
}, e.prototype.add = function(t) {
|
|
638
619
|
var r;
|
|
639
620
|
if (t && t !== this)
|
|
640
621
|
if (this.closed)
|
|
641
|
-
|
|
622
|
+
qe(t);
|
|
642
623
|
else {
|
|
643
624
|
if (t instanceof e) {
|
|
644
625
|
if (t.closed || t._hasParent(this))
|
|
@@ -655,56 +636,52 @@ var de = function() {
|
|
|
655
636
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
656
637
|
}, e.prototype._removeParent = function(t) {
|
|
657
638
|
var r = this._parentage;
|
|
658
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
639
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
659
640
|
}, e.prototype.remove = function(t) {
|
|
660
641
|
var r = this._finalizers;
|
|
661
|
-
r &&
|
|
642
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
662
643
|
}, e.EMPTY = function() {
|
|
663
644
|
var t = new e();
|
|
664
645
|
return t.closed = !0, t;
|
|
665
646
|
}(), e;
|
|
666
|
-
}(),
|
|
667
|
-
function
|
|
668
|
-
return e instanceof
|
|
647
|
+
}(), Ht = me.EMPTY;
|
|
648
|
+
function Bt(e) {
|
|
649
|
+
return e instanceof me || e && "closed" in e && H(e.remove) && H(e.add) && H(e.unsubscribe);
|
|
669
650
|
}
|
|
670
|
-
function
|
|
651
|
+
function qe(e) {
|
|
671
652
|
H(e) ? e() : e.unsubscribe();
|
|
672
653
|
}
|
|
673
|
-
var
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
Promise: void 0,
|
|
677
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
678
|
-
useDeprecatedNextContext: !1
|
|
679
|
-
}, Ar = {
|
|
654
|
+
var Ar = {
|
|
655
|
+
Promise: void 0
|
|
656
|
+
}, Pr = {
|
|
680
657
|
setTimeout: function(e, t) {
|
|
681
658
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
682
659
|
r[n - 2] = arguments[n];
|
|
683
|
-
return setTimeout.apply(void 0,
|
|
660
|
+
return setTimeout.apply(void 0, Me([e, t], Le(r)));
|
|
684
661
|
},
|
|
685
662
|
clearTimeout: function(e) {
|
|
686
663
|
return clearTimeout(e);
|
|
687
664
|
},
|
|
688
665
|
delegate: void 0
|
|
689
666
|
};
|
|
690
|
-
function
|
|
691
|
-
|
|
667
|
+
function Or(e) {
|
|
668
|
+
Pr.setTimeout(function() {
|
|
692
669
|
throw e;
|
|
693
670
|
});
|
|
694
671
|
}
|
|
695
|
-
function
|
|
672
|
+
function Ke() {
|
|
696
673
|
}
|
|
697
674
|
function ue(e) {
|
|
698
675
|
e();
|
|
699
676
|
}
|
|
700
|
-
var
|
|
701
|
-
|
|
677
|
+
var At = function(e) {
|
|
678
|
+
te(t, e);
|
|
702
679
|
function t(r) {
|
|
703
680
|
var n = e.call(this) || this;
|
|
704
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
681
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = Cr, n;
|
|
705
682
|
}
|
|
706
683
|
return t.create = function(r, n, i) {
|
|
707
|
-
return new
|
|
684
|
+
return new Re(r, n, i);
|
|
708
685
|
}, t.prototype.next = function(r) {
|
|
709
686
|
this.isStopped || this._next(r);
|
|
710
687
|
}, t.prototype.error = function(r) {
|
|
@@ -728,11 +705,7 @@ var Bt = function(e) {
|
|
|
728
705
|
this.unsubscribe();
|
|
729
706
|
}
|
|
730
707
|
}, t;
|
|
731
|
-
}(
|
|
732
|
-
function _e(e, t) {
|
|
733
|
-
return Or.call(e, t);
|
|
734
|
-
}
|
|
735
|
-
var Ir = function() {
|
|
708
|
+
}(me), Ir = function() {
|
|
736
709
|
function e(t) {
|
|
737
710
|
this.partialObserver = t;
|
|
738
711
|
}
|
|
@@ -763,41 +736,29 @@ var Ir = function() {
|
|
|
763
736
|
oe(r);
|
|
764
737
|
}
|
|
765
738
|
}, e;
|
|
766
|
-
}(),
|
|
767
|
-
|
|
739
|
+
}(), Re = function(e) {
|
|
740
|
+
te(t, e);
|
|
768
741
|
function t(r, n, i) {
|
|
769
742
|
var o = e.call(this) || this, s;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
};
|
|
776
|
-
else {
|
|
777
|
-
var a;
|
|
778
|
-
o && wt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
779
|
-
return o.unsubscribe();
|
|
780
|
-
}, s = {
|
|
781
|
-
next: r.next && _e(r.next, a),
|
|
782
|
-
error: r.error && _e(r.error, a),
|
|
783
|
-
complete: r.complete && _e(r.complete, a)
|
|
784
|
-
}) : s = r;
|
|
785
|
-
}
|
|
786
|
-
return o.destination = new Ir(s), o;
|
|
743
|
+
return H(r) || !r ? s = {
|
|
744
|
+
next: r ?? void 0,
|
|
745
|
+
error: n ?? void 0,
|
|
746
|
+
complete: i ?? void 0
|
|
747
|
+
} : s = r, o.destination = new Ir(s), o;
|
|
787
748
|
}
|
|
788
749
|
return t;
|
|
789
|
-
}(
|
|
750
|
+
}(At);
|
|
790
751
|
function oe(e) {
|
|
791
|
-
|
|
752
|
+
Or(e);
|
|
792
753
|
}
|
|
793
|
-
function
|
|
754
|
+
function Nr(e) {
|
|
794
755
|
throw e;
|
|
795
756
|
}
|
|
796
|
-
var
|
|
757
|
+
var Cr = {
|
|
797
758
|
closed: !0,
|
|
798
|
-
next:
|
|
799
|
-
error:
|
|
800
|
-
complete:
|
|
759
|
+
next: Ke,
|
|
760
|
+
error: Nr,
|
|
761
|
+
complete: Ke
|
|
801
762
|
}, Lr = function() {
|
|
802
763
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
803
764
|
}();
|
|
@@ -811,7 +772,7 @@ function $r(e) {
|
|
|
811
772
|
}, r);
|
|
812
773
|
};
|
|
813
774
|
}
|
|
814
|
-
var
|
|
775
|
+
var et = function() {
|
|
815
776
|
function e(t) {
|
|
816
777
|
t && (this._subscribe = t);
|
|
817
778
|
}
|
|
@@ -819,7 +780,7 @@ var qe = function() {
|
|
|
819
780
|
var r = new e();
|
|
820
781
|
return r.source = this, r.operator = t, r;
|
|
821
782
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
822
|
-
var i = this, o = Dr(t) ? t : new
|
|
783
|
+
var i = this, o = Dr(t) ? t : new Re(t, r, n);
|
|
823
784
|
return ue(function() {
|
|
824
785
|
var s = i, a = s.operator, h = s.source;
|
|
825
786
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -832,8 +793,8 @@ var qe = function() {
|
|
|
832
793
|
}
|
|
833
794
|
}, e.prototype.forEach = function(t, r) {
|
|
834
795
|
var n = this;
|
|
835
|
-
return r =
|
|
836
|
-
var s = new
|
|
796
|
+
return r = tt(r), new r(function(i, o) {
|
|
797
|
+
var s = new Re({
|
|
837
798
|
next: function(a) {
|
|
838
799
|
try {
|
|
839
800
|
t(a);
|
|
@@ -857,7 +818,7 @@ var qe = function() {
|
|
|
857
818
|
return $r(t)(this);
|
|
858
819
|
}, e.prototype.toPromise = function(t) {
|
|
859
820
|
var r = this;
|
|
860
|
-
return t =
|
|
821
|
+
return t = tt(t), new t(function(n, i) {
|
|
861
822
|
var o;
|
|
862
823
|
r.subscribe(function(s) {
|
|
863
824
|
return o = s;
|
|
@@ -871,28 +832,28 @@ var qe = function() {
|
|
|
871
832
|
return new e(t);
|
|
872
833
|
}, e;
|
|
873
834
|
}();
|
|
874
|
-
function
|
|
835
|
+
function tt(e) {
|
|
875
836
|
var t;
|
|
876
|
-
return (t = e ??
|
|
837
|
+
return (t = e ?? Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
877
838
|
}
|
|
878
839
|
function Rr(e) {
|
|
879
840
|
return e && H(e.next) && H(e.error) && H(e.complete);
|
|
880
841
|
}
|
|
881
842
|
function Dr(e) {
|
|
882
|
-
return e && e instanceof
|
|
843
|
+
return e && e instanceof At || Rr(e) && Bt(e);
|
|
883
844
|
}
|
|
884
|
-
var Ur =
|
|
845
|
+
var Ur = wt(function(e) {
|
|
885
846
|
return function() {
|
|
886
847
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
887
848
|
};
|
|
888
|
-
}),
|
|
889
|
-
|
|
849
|
+
}), Pt = function(e) {
|
|
850
|
+
te(t, e);
|
|
890
851
|
function t() {
|
|
891
852
|
var r = e.call(this) || this;
|
|
892
853
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
893
854
|
}
|
|
894
855
|
return t.prototype.lift = function(r) {
|
|
895
|
-
var n = new
|
|
856
|
+
var n = new rt(this, this);
|
|
896
857
|
return n.operator = r, n;
|
|
897
858
|
}, t.prototype._throwIfClosed = function() {
|
|
898
859
|
if (this.closed)
|
|
@@ -904,7 +865,7 @@ var Ur = St(function(e) {
|
|
|
904
865
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
905
866
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
906
867
|
try {
|
|
907
|
-
for (var s =
|
|
868
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
908
869
|
var h = a.value;
|
|
909
870
|
h.next(r);
|
|
910
871
|
}
|
|
@@ -953,20 +914,20 @@ var Ur = St(function(e) {
|
|
|
953
914
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
954
915
|
}, t.prototype._innerSubscribe = function(r) {
|
|
955
916
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
956
|
-
return o || s ?
|
|
957
|
-
n.currentObservers = null,
|
|
917
|
+
return o || s ? Ht : (this.currentObservers = null, a.push(r), new me(function() {
|
|
918
|
+
n.currentObservers = null, $e(a, r);
|
|
958
919
|
}));
|
|
959
920
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
960
921
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
961
922
|
i ? r.error(o) : s && r.complete();
|
|
962
923
|
}, t.prototype.asObservable = function() {
|
|
963
|
-
var r = new
|
|
924
|
+
var r = new et();
|
|
964
925
|
return r.source = this, r;
|
|
965
926
|
}, t.create = function(r, n) {
|
|
966
|
-
return new
|
|
927
|
+
return new rt(r, n);
|
|
967
928
|
}, t;
|
|
968
|
-
}(
|
|
969
|
-
|
|
929
|
+
}(et), rt = function(e) {
|
|
930
|
+
te(t, e);
|
|
970
931
|
function t(r, n) {
|
|
971
932
|
var i = e.call(this) || this;
|
|
972
933
|
return i.destination = r, i.source = n, i;
|
|
@@ -982,17 +943,17 @@ var Ur = St(function(e) {
|
|
|
982
943
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
983
944
|
}, t.prototype._subscribe = function(r) {
|
|
984
945
|
var n, i;
|
|
985
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
946
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
|
|
986
947
|
}, t;
|
|
987
|
-
}(
|
|
948
|
+
}(Pt), Ot = {
|
|
988
949
|
now: function() {
|
|
989
|
-
return (
|
|
950
|
+
return (Ot.delegate || Date).now();
|
|
990
951
|
},
|
|
991
952
|
delegate: void 0
|
|
992
953
|
}, Gr = function(e) {
|
|
993
|
-
|
|
954
|
+
te(t, e);
|
|
994
955
|
function t(r, n, i) {
|
|
995
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
956
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
996
957
|
var o = e.call(this) || this;
|
|
997
958
|
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;
|
|
998
959
|
}
|
|
@@ -1012,24 +973,24 @@ var Ur = St(function(e) {
|
|
|
1012
973
|
u && o.splice(0, u + 1);
|
|
1013
974
|
}
|
|
1014
975
|
}, t;
|
|
1015
|
-
}(
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
976
|
+
}(Pt);
|
|
977
|
+
const nt = [], it = {}, Fr = (e, t = 0) => {
|
|
978
|
+
if (nt.indexOf(e) == -1) {
|
|
1018
979
|
const r = new Gr(t);
|
|
1019
|
-
|
|
980
|
+
it[e] = r, nt.push(e);
|
|
1020
981
|
}
|
|
1021
|
-
return
|
|
982
|
+
return it[e];
|
|
1022
983
|
}, $ = [];
|
|
1023
984
|
function jr(e, t) {
|
|
1024
985
|
return {
|
|
1025
|
-
subscribe:
|
|
986
|
+
subscribe: be(e, t).subscribe
|
|
1026
987
|
};
|
|
1027
988
|
}
|
|
1028
|
-
function
|
|
989
|
+
function be(e, t = S) {
|
|
1029
990
|
let r;
|
|
1030
991
|
const n = /* @__PURE__ */ new Set();
|
|
1031
992
|
function i(a) {
|
|
1032
|
-
if (
|
|
993
|
+
if (xt(e, a) && (e = a, r)) {
|
|
1033
994
|
const h = !$.length;
|
|
1034
995
|
for (const u of n)
|
|
1035
996
|
u[1](), $.push(u, e);
|
|
@@ -1051,7 +1012,7 @@ function me(e, t = S) {
|
|
|
1051
1012
|
}
|
|
1052
1013
|
return { set: i, update: o, subscribe: s };
|
|
1053
1014
|
}
|
|
1054
|
-
function
|
|
1015
|
+
function V(e, t, r) {
|
|
1055
1016
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1056
1017
|
if (!i.every(Boolean))
|
|
1057
1018
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1065,20 +1026,20 @@ function X(e, t, r) {
|
|
|
1065
1026
|
return;
|
|
1066
1027
|
f();
|
|
1067
1028
|
const p = t(n ? u[0] : u, s, a);
|
|
1068
|
-
o ? s(p) : f =
|
|
1069
|
-
},
|
|
1070
|
-
(p,
|
|
1029
|
+
o ? s(p) : f = ee(p) ? p : S;
|
|
1030
|
+
}, b = i.map(
|
|
1031
|
+
(p, g) => tr(
|
|
1071
1032
|
p,
|
|
1072
1033
|
(E) => {
|
|
1073
|
-
u[
|
|
1034
|
+
u[g] = E, l &= ~(1 << g), h && c();
|
|
1074
1035
|
},
|
|
1075
1036
|
() => {
|
|
1076
|
-
l |= 1 <<
|
|
1037
|
+
l |= 1 << g;
|
|
1077
1038
|
}
|
|
1078
1039
|
)
|
|
1079
1040
|
);
|
|
1080
1041
|
return h = !0, c(), function() {
|
|
1081
|
-
|
|
1042
|
+
K(b), f(), h = !1;
|
|
1082
1043
|
};
|
|
1083
1044
|
});
|
|
1084
1045
|
}
|
|
@@ -1102,29 +1063,29 @@ function Qr(e) {
|
|
|
1102
1063
|
function Jr(e) {
|
|
1103
1064
|
return Array.isArray(e) ? [] : {};
|
|
1104
1065
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1066
|
+
function Y(e, t) {
|
|
1067
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? U(Jr(e), e, t) : e;
|
|
1107
1068
|
}
|
|
1108
1069
|
function Yr(e, t, r) {
|
|
1109
1070
|
return e.concat(t).map(function(n) {
|
|
1110
|
-
return
|
|
1071
|
+
return Y(n, r);
|
|
1111
1072
|
});
|
|
1112
1073
|
}
|
|
1113
1074
|
function qr(e, t) {
|
|
1114
1075
|
if (!t.customMerge)
|
|
1115
|
-
return
|
|
1076
|
+
return U;
|
|
1116
1077
|
var r = t.customMerge(e);
|
|
1117
|
-
return typeof r == "function" ? r :
|
|
1078
|
+
return typeof r == "function" ? r : U;
|
|
1118
1079
|
}
|
|
1119
1080
|
function Kr(e) {
|
|
1120
1081
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1121
1082
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1122
1083
|
}) : [];
|
|
1123
1084
|
}
|
|
1124
|
-
function
|
|
1085
|
+
function ot(e) {
|
|
1125
1086
|
return Object.keys(e).concat(Kr(e));
|
|
1126
1087
|
}
|
|
1127
|
-
function
|
|
1088
|
+
function It(e, t) {
|
|
1128
1089
|
try {
|
|
1129
1090
|
return t in e;
|
|
1130
1091
|
} catch {
|
|
@@ -1132,129 +1093,179 @@ function Ot(e, t) {
|
|
|
1132
1093
|
}
|
|
1133
1094
|
}
|
|
1134
1095
|
function en(e, t) {
|
|
1135
|
-
return
|
|
1096
|
+
return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1136
1097
|
}
|
|
1137
1098
|
function tn(e, t, r) {
|
|
1138
1099
|
var n = {};
|
|
1139
|
-
return r.isMergeableObject(e) &&
|
|
1140
|
-
n[i] =
|
|
1141
|
-
}),
|
|
1142
|
-
en(e, i) || (
|
|
1100
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
1101
|
+
n[i] = Y(e[i], r);
|
|
1102
|
+
}), ot(t).forEach(function(i) {
|
|
1103
|
+
en(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = qr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1143
1104
|
}), n;
|
|
1144
1105
|
}
|
|
1145
|
-
function
|
|
1146
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified =
|
|
1106
|
+
function U(e, t, r) {
|
|
1107
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1147
1108
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1148
|
-
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) :
|
|
1109
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : Y(t, r);
|
|
1149
1110
|
}
|
|
1150
|
-
|
|
1111
|
+
U.all = function(t, r) {
|
|
1151
1112
|
if (!Array.isArray(t))
|
|
1152
1113
|
throw new Error("first argument should be an array");
|
|
1153
1114
|
return t.reduce(function(n, i) {
|
|
1154
|
-
return
|
|
1115
|
+
return U(n, i, r);
|
|
1155
1116
|
}, {});
|
|
1156
1117
|
};
|
|
1157
|
-
var rn =
|
|
1118
|
+
var rn = U, nn = rn;
|
|
1158
1119
|
const on = /* @__PURE__ */ kr(nn);
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1120
|
+
var De = function(e, t) {
|
|
1121
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1122
|
+
r.__proto__ = n;
|
|
1123
|
+
} || function(r, n) {
|
|
1124
|
+
for (var i in n)
|
|
1125
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1126
|
+
}, De(e, t);
|
|
1127
|
+
};
|
|
1128
|
+
function ve(e, t) {
|
|
1129
|
+
if (typeof t != "function" && t !== null)
|
|
1130
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1131
|
+
De(e, t);
|
|
1132
|
+
function r() {
|
|
1133
|
+
this.constructor = e;
|
|
1134
|
+
}
|
|
1135
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1136
|
+
}
|
|
1137
|
+
var w = function() {
|
|
1138
|
+
return w = Object.assign || function(t) {
|
|
1139
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1140
|
+
r = arguments[n];
|
|
1141
|
+
for (var o in r)
|
|
1142
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1143
|
+
}
|
|
1144
|
+
return t;
|
|
1145
|
+
}, w.apply(this, arguments);
|
|
1146
|
+
};
|
|
1147
|
+
function sn(e, t) {
|
|
1148
|
+
var r = {};
|
|
1149
|
+
for (var n in e)
|
|
1150
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1151
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1152
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1153
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1154
|
+
return r;
|
|
1155
|
+
}
|
|
1156
|
+
function Se(e, t, r) {
|
|
1157
|
+
if (r || arguments.length === 2)
|
|
1158
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1159
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1160
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1161
|
+
}
|
|
1162
|
+
function Te(e, t) {
|
|
1163
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
|
|
1161
1164
|
return i(e, {
|
|
1162
1165
|
cache: r,
|
|
1163
1166
|
serializer: n
|
|
1164
1167
|
});
|
|
1165
1168
|
}
|
|
1166
|
-
function
|
|
1169
|
+
function an(e) {
|
|
1167
1170
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1168
1171
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var i =
|
|
1172
|
+
function un(e, t, r, n) {
|
|
1173
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1171
1174
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1172
1175
|
}
|
|
1173
|
-
function
|
|
1176
|
+
function Nt(e, t, r) {
|
|
1174
1177
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1175
1178
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1176
1179
|
}
|
|
1177
|
-
function
|
|
1180
|
+
function Ct(e, t, r, n, i) {
|
|
1178
1181
|
return r.bind(t, e, n, i);
|
|
1179
1182
|
}
|
|
1180
|
-
function an(e, t) {
|
|
1181
|
-
var r = e.length === 1 ? It : Ct;
|
|
1182
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1183
|
-
}
|
|
1184
|
-
function un(e, t) {
|
|
1185
|
-
return ke(e, this, Ct, t.cache.create(), t.serializer);
|
|
1186
|
-
}
|
|
1187
1183
|
function hn(e, t) {
|
|
1188
|
-
|
|
1184
|
+
var r = e.length === 1 ? un : Nt;
|
|
1185
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
1189
1186
|
}
|
|
1190
|
-
|
|
1191
|
-
return
|
|
1192
|
-
};
|
|
1193
|
-
function Ve() {
|
|
1194
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1187
|
+
function ln(e, t) {
|
|
1188
|
+
return Ct(e, this, Nt, t.cache.create(), t.serializer);
|
|
1195
1189
|
}
|
|
1196
|
-
|
|
1197
|
-
return
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1190
|
+
var fn = function() {
|
|
1191
|
+
return JSON.stringify(arguments);
|
|
1192
|
+
}, cn = (
|
|
1193
|
+
/** @class */
|
|
1194
|
+
function() {
|
|
1195
|
+
function e() {
|
|
1196
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1197
|
+
}
|
|
1198
|
+
return e.prototype.get = function(t) {
|
|
1199
|
+
return this.cache[t];
|
|
1200
|
+
}, e.prototype.set = function(t, r) {
|
|
1201
|
+
this.cache[t] = r;
|
|
1202
|
+
}, e;
|
|
1203
|
+
}()
|
|
1204
|
+
), pn = {
|
|
1203
1205
|
create: function() {
|
|
1204
|
-
return new
|
|
1206
|
+
return new cn();
|
|
1205
1207
|
}
|
|
1206
|
-
},
|
|
1207
|
-
variadic:
|
|
1208
|
-
|
|
1209
|
-
|
|
1208
|
+
}, we = {
|
|
1209
|
+
variadic: ln
|
|
1210
|
+
}, ce = function() {
|
|
1211
|
+
return ce = Object.assign || function(t) {
|
|
1212
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1213
|
+
r = arguments[n];
|
|
1214
|
+
for (var o in r)
|
|
1215
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1216
|
+
}
|
|
1217
|
+
return t;
|
|
1218
|
+
}, ce.apply(this, arguments);
|
|
1219
|
+
};
|
|
1220
|
+
var d;
|
|
1210
1221
|
(function(e) {
|
|
1211
1222
|
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";
|
|
1212
1223
|
})(d || (d = {}));
|
|
1213
|
-
var
|
|
1224
|
+
var y;
|
|
1214
1225
|
(function(e) {
|
|
1215
1226
|
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";
|
|
1216
|
-
})(
|
|
1217
|
-
var
|
|
1227
|
+
})(y || (y = {}));
|
|
1228
|
+
var G;
|
|
1218
1229
|
(function(e) {
|
|
1219
1230
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1220
|
-
})(
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1223
|
-
}
|
|
1224
|
-
function cn(e) {
|
|
1225
|
-
return e.type === x.argument;
|
|
1231
|
+
})(G || (G = {}));
|
|
1232
|
+
function st(e) {
|
|
1233
|
+
return e.type === y.literal;
|
|
1226
1234
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.type ===
|
|
1235
|
+
function dn(e) {
|
|
1236
|
+
return e.type === y.argument;
|
|
1229
1237
|
}
|
|
1230
1238
|
function Lt(e) {
|
|
1231
|
-
return e.type ===
|
|
1239
|
+
return e.type === y.number;
|
|
1232
1240
|
}
|
|
1233
1241
|
function Mt(e) {
|
|
1234
|
-
return e.type ===
|
|
1242
|
+
return e.type === y.date;
|
|
1235
1243
|
}
|
|
1236
1244
|
function $t(e) {
|
|
1237
|
-
return e.type ===
|
|
1245
|
+
return e.type === y.time;
|
|
1238
1246
|
}
|
|
1239
1247
|
function Rt(e) {
|
|
1240
|
-
return e.type ===
|
|
1241
|
-
}
|
|
1242
|
-
function pn(e) {
|
|
1243
|
-
return e.type === x.pound;
|
|
1248
|
+
return e.type === y.select;
|
|
1244
1249
|
}
|
|
1245
1250
|
function Dt(e) {
|
|
1246
|
-
return e.type ===
|
|
1251
|
+
return e.type === y.plural;
|
|
1252
|
+
}
|
|
1253
|
+
function mn(e) {
|
|
1254
|
+
return e.type === y.pound;
|
|
1247
1255
|
}
|
|
1248
1256
|
function Ut(e) {
|
|
1249
|
-
return
|
|
1257
|
+
return e.type === y.tag;
|
|
1250
1258
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1259
|
+
function Gt(e) {
|
|
1260
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1253
1261
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1262
|
+
function Ue(e) {
|
|
1263
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1264
|
+
}
|
|
1265
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1266
|
+
function vn(e) {
|
|
1256
1267
|
var t = {};
|
|
1257
|
-
return e.replace(
|
|
1268
|
+
return e.replace(bn, function(r) {
|
|
1258
1269
|
var n = r.length;
|
|
1259
1270
|
switch (r[0]) {
|
|
1260
1271
|
case "G":
|
|
@@ -1343,11 +1354,21 @@ function mn(e) {
|
|
|
1343
1354
|
return "";
|
|
1344
1355
|
}), t;
|
|
1345
1356
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1357
|
+
var _ = function() {
|
|
1358
|
+
return _ = Object.assign || function(t) {
|
|
1359
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1360
|
+
r = arguments[n];
|
|
1361
|
+
for (var o in r)
|
|
1362
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1363
|
+
}
|
|
1364
|
+
return t;
|
|
1365
|
+
}, _.apply(this, arguments);
|
|
1366
|
+
};
|
|
1367
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1368
|
+
function yn(e) {
|
|
1348
1369
|
if (e.length === 0)
|
|
1349
1370
|
throw new Error("Number skeleton cannot be empty");
|
|
1350
|
-
for (var t = e.split(
|
|
1371
|
+
for (var t = e.split(gn).filter(function(c) {
|
|
1351
1372
|
return c.length > 0;
|
|
1352
1373
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1353
1374
|
var o = i[n], s = o.split("/");
|
|
@@ -1362,17 +1383,17 @@ function gn(e) {
|
|
|
1362
1383
|
}
|
|
1363
1384
|
return r;
|
|
1364
1385
|
}
|
|
1365
|
-
function
|
|
1386
|
+
function _n(e) {
|
|
1366
1387
|
return e.replace(/^(.*?)-/, "");
|
|
1367
1388
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1389
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, xn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
1390
|
+
function ut(e) {
|
|
1370
1391
|
var t = {};
|
|
1371
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1392
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
1372
1393
|
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)), "";
|
|
1373
1394
|
}), t;
|
|
1374
1395
|
}
|
|
1375
|
-
function
|
|
1396
|
+
function Vt(e) {
|
|
1376
1397
|
switch (e) {
|
|
1377
1398
|
case "sign-auto":
|
|
1378
1399
|
return {
|
|
@@ -1412,7 +1433,7 @@ function kt(e) {
|
|
|
1412
1433
|
};
|
|
1413
1434
|
}
|
|
1414
1435
|
}
|
|
1415
|
-
function
|
|
1436
|
+
function En(e) {
|
|
1416
1437
|
var t;
|
|
1417
1438
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1418
1439
|
notation: "engineering"
|
|
@@ -1420,17 +1441,17 @@ function xn(e) {
|
|
|
1420
1441
|
notation: "scientific"
|
|
1421
1442
|
}, e = e.slice(1)), t) {
|
|
1422
1443
|
var r = e.slice(0, 2);
|
|
1423
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1444
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
1424
1445
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1425
1446
|
t.minimumIntegerDigits = e.length;
|
|
1426
1447
|
}
|
|
1427
1448
|
return t;
|
|
1428
1449
|
}
|
|
1429
|
-
function
|
|
1430
|
-
var t = {}, r =
|
|
1450
|
+
function ht(e) {
|
|
1451
|
+
var t = {}, r = Vt(e);
|
|
1431
1452
|
return r || t;
|
|
1432
1453
|
}
|
|
1433
|
-
function
|
|
1454
|
+
function Sn(e) {
|
|
1434
1455
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1435
1456
|
var i = n[r];
|
|
1436
1457
|
switch (i.stem) {
|
|
@@ -1454,7 +1475,7 @@ function _n(e) {
|
|
|
1454
1475
|
continue;
|
|
1455
1476
|
case "measure-unit":
|
|
1456
1477
|
case "unit":
|
|
1457
|
-
t.style = "unit", t.unit =
|
|
1478
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1458
1479
|
continue;
|
|
1459
1480
|
case "compact-short":
|
|
1460
1481
|
case "K":
|
|
@@ -1465,13 +1486,13 @@ function _n(e) {
|
|
|
1465
1486
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1466
1487
|
continue;
|
|
1467
1488
|
case "scientific":
|
|
1468
|
-
t =
|
|
1469
|
-
return
|
|
1489
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1490
|
+
return _(_({}, h), ht(u));
|
|
1470
1491
|
}, {}));
|
|
1471
1492
|
continue;
|
|
1472
1493
|
case "engineering":
|
|
1473
|
-
t =
|
|
1474
|
-
return
|
|
1494
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1495
|
+
return _(_({}, h), ht(u));
|
|
1475
1496
|
}, {}));
|
|
1476
1497
|
continue;
|
|
1477
1498
|
case "notation-simple":
|
|
@@ -1516,41 +1537,41 @@ function _n(e) {
|
|
|
1516
1537
|
case "integer-width":
|
|
1517
1538
|
if (i.options.length > 1)
|
|
1518
1539
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1519
|
-
i.options[0].replace(
|
|
1540
|
+
i.options[0].replace(xn, function(h, u, l, f, c, b) {
|
|
1520
1541
|
if (u)
|
|
1521
1542
|
t.minimumIntegerDigits = l.length;
|
|
1522
1543
|
else {
|
|
1523
1544
|
if (f && c)
|
|
1524
1545
|
throw new Error("We currently do not support maximum integer digits");
|
|
1525
|
-
if (
|
|
1546
|
+
if (b)
|
|
1526
1547
|
throw new Error("We currently do not support exact integer digits");
|
|
1527
1548
|
}
|
|
1528
1549
|
return "";
|
|
1529
1550
|
});
|
|
1530
1551
|
continue;
|
|
1531
1552
|
}
|
|
1532
|
-
if (
|
|
1553
|
+
if (kt.test(i.stem)) {
|
|
1533
1554
|
t.minimumIntegerDigits = i.stem.length;
|
|
1534
1555
|
continue;
|
|
1535
1556
|
}
|
|
1536
|
-
if (
|
|
1557
|
+
if (at.test(i.stem)) {
|
|
1537
1558
|
if (i.options.length > 1)
|
|
1538
1559
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1539
|
-
i.stem.replace(
|
|
1540
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1560
|
+
i.stem.replace(at, function(h, u, l, f, c, b) {
|
|
1561
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1541
1562
|
});
|
|
1542
1563
|
var o = i.options[0];
|
|
1543
|
-
o === "w" ? t =
|
|
1564
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ut(o)));
|
|
1544
1565
|
continue;
|
|
1545
1566
|
}
|
|
1546
|
-
if (
|
|
1547
|
-
t =
|
|
1567
|
+
if (jt.test(i.stem)) {
|
|
1568
|
+
t = _(_({}, t), ut(i.stem));
|
|
1548
1569
|
continue;
|
|
1549
1570
|
}
|
|
1550
|
-
var s =
|
|
1551
|
-
s && (t =
|
|
1552
|
-
var a =
|
|
1553
|
-
a && (t =
|
|
1571
|
+
var s = Vt(i.stem);
|
|
1572
|
+
s && (t = _(_({}, t), s));
|
|
1573
|
+
var a = En(i.stem);
|
|
1574
|
+
a && (t = _(_({}, t), a));
|
|
1554
1575
|
}
|
|
1555
1576
|
return t;
|
|
1556
1577
|
}
|
|
@@ -2969,13 +2990,13 @@ var se = {
|
|
|
2969
2990
|
"h"
|
|
2970
2991
|
]
|
|
2971
2992
|
};
|
|
2972
|
-
function
|
|
2993
|
+
function Tn(e, t) {
|
|
2973
2994
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2974
2995
|
var i = e.charAt(n);
|
|
2975
2996
|
if (i === "j") {
|
|
2976
2997
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2977
2998
|
o++, n++;
|
|
2978
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2999
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
|
|
2979
3000
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2980
3001
|
r += h;
|
|
2981
3002
|
for (; s-- > 0; )
|
|
@@ -2985,7 +3006,7 @@ function En(e, t) {
|
|
|
2985
3006
|
}
|
|
2986
3007
|
return r;
|
|
2987
3008
|
}
|
|
2988
|
-
function
|
|
3009
|
+
function wn(e) {
|
|
2989
3010
|
var t = e.hourCycle;
|
|
2990
3011
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2991
3012
|
e.hourCycles && // @ts-ignore
|
|
@@ -3007,20 +3028,20 @@ function Sn(e) {
|
|
|
3007
3028
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3008
3029
|
return i[0];
|
|
3009
3030
|
}
|
|
3010
|
-
var
|
|
3031
|
+
var He, Hn = new RegExp("^".concat(Ft.source, "*")), Bn = new RegExp("".concat(Ft.source, "*$"));
|
|
3011
3032
|
function m(e, t) {
|
|
3012
3033
|
return { start: e, end: t };
|
|
3013
3034
|
}
|
|
3014
|
-
var
|
|
3035
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, Mn = Ln ? Number.isSafeInteger : function(e) {
|
|
3015
3036
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3016
|
-
},
|
|
3037
|
+
}, Ge = !0;
|
|
3017
3038
|
try {
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3039
|
+
var $n = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3040
|
+
Ge = ((He = $n.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3020
3041
|
} catch {
|
|
3021
|
-
|
|
3042
|
+
Ge = !1;
|
|
3022
3043
|
}
|
|
3023
|
-
var
|
|
3044
|
+
var lt = An ? (
|
|
3024
3045
|
// Native
|
|
3025
3046
|
function(t, r, n) {
|
|
3026
3047
|
return t.startsWith(r, n);
|
|
@@ -3030,7 +3051,7 @@ var ut = wn ? (
|
|
|
3030
3051
|
function(t, r, n) {
|
|
3031
3052
|
return t.slice(n, n + r.length) === r;
|
|
3032
3053
|
}
|
|
3033
|
-
),
|
|
3054
|
+
), Fe = Pn ? String.fromCodePoint : (
|
|
3034
3055
|
// IE11
|
|
3035
3056
|
function() {
|
|
3036
3057
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3042,9 +3063,9 @@ var ut = wn ? (
|
|
|
3042
3063
|
}
|
|
3043
3064
|
return n;
|
|
3044
3065
|
}
|
|
3045
|
-
),
|
|
3066
|
+
), ft = (
|
|
3046
3067
|
// native
|
|
3047
|
-
|
|
3068
|
+
On ? Object.fromEntries : (
|
|
3048
3069
|
// Ponyfill
|
|
3049
3070
|
function(t) {
|
|
3050
3071
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3054,7 +3075,7 @@ var ut = wn ? (
|
|
|
3054
3075
|
return r;
|
|
3055
3076
|
}
|
|
3056
3077
|
)
|
|
3057
|
-
),
|
|
3078
|
+
), Xt = In ? (
|
|
3058
3079
|
// Native
|
|
3059
3080
|
function(t, r) {
|
|
3060
3081
|
return t.codePointAt(r);
|
|
@@ -3068,7 +3089,7 @@ var ut = wn ? (
|
|
|
3068
3089
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3069
3090
|
}
|
|
3070
3091
|
}
|
|
3071
|
-
),
|
|
3092
|
+
), Rn = Nn ? (
|
|
3072
3093
|
// Native
|
|
3073
3094
|
function(t) {
|
|
3074
3095
|
return t.trimStart();
|
|
@@ -3076,9 +3097,9 @@ var ut = wn ? (
|
|
|
3076
3097
|
) : (
|
|
3077
3098
|
// Ponyfill
|
|
3078
3099
|
function(t) {
|
|
3079
|
-
return t.replace(
|
|
3100
|
+
return t.replace(Hn, "");
|
|
3080
3101
|
}
|
|
3081
|
-
),
|
|
3102
|
+
), Dn = Cn ? (
|
|
3082
3103
|
// Native
|
|
3083
3104
|
function(t) {
|
|
3084
3105
|
return t.trimEnd();
|
|
@@ -3086,32 +3107,32 @@ var ut = wn ? (
|
|
|
3086
3107
|
) : (
|
|
3087
3108
|
// Ponyfill
|
|
3088
3109
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3110
|
+
return t.replace(Bn, "");
|
|
3090
3111
|
}
|
|
3091
3112
|
);
|
|
3092
|
-
function
|
|
3113
|
+
function Wt(e, t) {
|
|
3093
3114
|
return new RegExp(e, t);
|
|
3094
3115
|
}
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3116
|
+
var je;
|
|
3117
|
+
if (Ge) {
|
|
3118
|
+
var ct = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3119
|
+
je = function(t, r) {
|
|
3099
3120
|
var n;
|
|
3100
|
-
|
|
3101
|
-
var i =
|
|
3121
|
+
ct.lastIndex = r;
|
|
3122
|
+
var i = ct.exec(t);
|
|
3102
3123
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3103
3124
|
};
|
|
3104
3125
|
} else
|
|
3105
|
-
|
|
3126
|
+
je = function(t, r) {
|
|
3106
3127
|
for (var n = []; ; ) {
|
|
3107
|
-
var i =
|
|
3108
|
-
if (i === void 0 ||
|
|
3128
|
+
var i = Xt(t, r);
|
|
3129
|
+
if (i === void 0 || zt(i) || jn(i))
|
|
3109
3130
|
break;
|
|
3110
3131
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3111
3132
|
}
|
|
3112
|
-
return
|
|
3133
|
+
return Fe.apply(void 0, n);
|
|
3113
3134
|
};
|
|
3114
|
-
var
|
|
3135
|
+
var Un = (
|
|
3115
3136
|
/** @class */
|
|
3116
3137
|
function() {
|
|
3117
3138
|
function e(t, r) {
|
|
@@ -3135,14 +3156,14 @@ var Rn = (
|
|
|
3135
3156
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3136
3157
|
var a = this.clonePosition();
|
|
3137
3158
|
this.bump(), i.push({
|
|
3138
|
-
type:
|
|
3159
|
+
type: y.pound,
|
|
3139
3160
|
location: m(a, this.clonePosition())
|
|
3140
3161
|
});
|
|
3141
3162
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3142
3163
|
if (n)
|
|
3143
3164
|
break;
|
|
3144
3165
|
return this.error(d.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
3145
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3166
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3146
3167
|
var s = this.parseTag(t, r);
|
|
3147
3168
|
if (s.err)
|
|
3148
3169
|
return s;
|
|
@@ -3163,7 +3184,7 @@ var Rn = (
|
|
|
3163
3184
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3164
3185
|
return {
|
|
3165
3186
|
val: {
|
|
3166
|
-
type:
|
|
3187
|
+
type: y.literal,
|
|
3167
3188
|
value: "<".concat(i, "/>"),
|
|
3168
3189
|
location: m(n, this.clonePosition())
|
|
3169
3190
|
},
|
|
@@ -3175,12 +3196,12 @@ var Rn = (
|
|
|
3175
3196
|
return o;
|
|
3176
3197
|
var s = o.val, a = this.clonePosition();
|
|
3177
3198
|
if (this.bumpIf("</")) {
|
|
3178
|
-
if (this.isEOF() || !
|
|
3199
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3179
3200
|
return this.error(d.INVALID_TAG, m(a, this.clonePosition()));
|
|
3180
3201
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3181
3202
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3182
3203
|
val: {
|
|
3183
|
-
type:
|
|
3204
|
+
type: y.tag,
|
|
3184
3205
|
value: i,
|
|
3185
3206
|
children: s,
|
|
3186
3207
|
location: m(n, this.clonePosition())
|
|
@@ -3193,7 +3214,7 @@ var Rn = (
|
|
|
3193
3214
|
return this.error(d.INVALID_TAG, m(n, this.clonePosition()));
|
|
3194
3215
|
}, e.prototype.parseTagName = function() {
|
|
3195
3216
|
var t = this.offset();
|
|
3196
|
-
for (this.bump(); !this.isEOF() &&
|
|
3217
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3197
3218
|
this.bump();
|
|
3198
3219
|
return this.message.slice(t, this.offset());
|
|
3199
3220
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3217,12 +3238,12 @@ var Rn = (
|
|
|
3217
3238
|
}
|
|
3218
3239
|
var h = m(n, this.clonePosition());
|
|
3219
3240
|
return {
|
|
3220
|
-
val: { type:
|
|
3241
|
+
val: { type: y.literal, value: i, location: h },
|
|
3221
3242
|
err: null
|
|
3222
3243
|
};
|
|
3223
3244
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3224
3245
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3225
|
-
!
|
|
3246
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3226
3247
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3227
3248
|
if (this.isEOF() || this.char() !== 39)
|
|
3228
3249
|
return null;
|
|
@@ -3256,12 +3277,12 @@ var Rn = (
|
|
|
3256
3277
|
r.push(n);
|
|
3257
3278
|
this.bump();
|
|
3258
3279
|
}
|
|
3259
|
-
return
|
|
3280
|
+
return Fe.apply(void 0, r);
|
|
3260
3281
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3261
3282
|
if (this.isEOF())
|
|
3262
3283
|
return null;
|
|
3263
3284
|
var n = this.char();
|
|
3264
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3285
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3265
3286
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3266
3287
|
var n = this.clonePosition();
|
|
3267
3288
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3277,7 +3298,7 @@ var Rn = (
|
|
|
3277
3298
|
case 125:
|
|
3278
3299
|
return this.bump(), {
|
|
3279
3300
|
val: {
|
|
3280
|
-
type:
|
|
3301
|
+
type: y.argument,
|
|
3281
3302
|
// value does not include the opening and closing braces.
|
|
3282
3303
|
value: i,
|
|
3283
3304
|
location: m(n, this.clonePosition())
|
|
@@ -3290,7 +3311,7 @@ var Rn = (
|
|
|
3290
3311
|
return this.error(d.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
3291
3312
|
}
|
|
3292
3313
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3293
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3314
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3294
3315
|
this.bumpTo(i);
|
|
3295
3316
|
var o = this.clonePosition(), s = m(t, o);
|
|
3296
3317
|
return { value: n, location: s };
|
|
@@ -3309,46 +3330,46 @@ var Rn = (
|
|
|
3309
3330
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3310
3331
|
if (f.err)
|
|
3311
3332
|
return f;
|
|
3312
|
-
var c =
|
|
3333
|
+
var c = Dn(f.val);
|
|
3313
3334
|
if (c.length === 0)
|
|
3314
3335
|
return this.error(d.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
3315
|
-
var
|
|
3316
|
-
u = { style: c, styleLocation:
|
|
3336
|
+
var b = m(l, this.clonePosition());
|
|
3337
|
+
u = { style: c, styleLocation: b };
|
|
3317
3338
|
}
|
|
3318
3339
|
var p = this.tryParseArgumentClose(i);
|
|
3319
3340
|
if (p.err)
|
|
3320
3341
|
return p;
|
|
3321
|
-
var
|
|
3322
|
-
if (u &&
|
|
3323
|
-
var E =
|
|
3342
|
+
var g = m(i, this.clonePosition());
|
|
3343
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3344
|
+
var E = Rn(u.style.slice(2));
|
|
3324
3345
|
if (a === "number") {
|
|
3325
3346
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3326
3347
|
return f.err ? f : {
|
|
3327
|
-
val: { type:
|
|
3348
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
3328
3349
|
err: null
|
|
3329
3350
|
};
|
|
3330
3351
|
} else {
|
|
3331
3352
|
if (E.length === 0)
|
|
3332
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
3333
|
-
var
|
|
3334
|
-
this.locale && (
|
|
3353
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
3354
|
+
var W = E;
|
|
3355
|
+
this.locale && (W = Tn(E, this.locale));
|
|
3335
3356
|
var c = {
|
|
3336
|
-
type:
|
|
3337
|
-
pattern:
|
|
3357
|
+
type: G.dateTime,
|
|
3358
|
+
pattern: W,
|
|
3338
3359
|
location: u.styleLocation,
|
|
3339
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3340
|
-
}, L = a === "date" ?
|
|
3360
|
+
parsedOptions: this.shouldParseSkeletons ? vn(W) : {}
|
|
3361
|
+
}, L = a === "date" ? y.date : y.time;
|
|
3341
3362
|
return {
|
|
3342
|
-
val: { type: L, value: n, location:
|
|
3363
|
+
val: { type: L, value: n, location: g, style: c },
|
|
3343
3364
|
err: null
|
|
3344
3365
|
};
|
|
3345
3366
|
}
|
|
3346
3367
|
}
|
|
3347
3368
|
return {
|
|
3348
3369
|
val: {
|
|
3349
|
-
type: a === "number" ?
|
|
3370
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3350
3371
|
value: n,
|
|
3351
|
-
location:
|
|
3372
|
+
location: g,
|
|
3352
3373
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3353
3374
|
},
|
|
3354
3375
|
err: null
|
|
@@ -3359,41 +3380,41 @@ var Rn = (
|
|
|
3359
3380
|
case "select": {
|
|
3360
3381
|
var T = this.clonePosition();
|
|
3361
3382
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3362
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T,
|
|
3383
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T, ce({}, T)));
|
|
3363
3384
|
this.bumpSpace();
|
|
3364
|
-
var
|
|
3365
|
-
if (a !== "select" &&
|
|
3385
|
+
var z = this.parseIdentifierIfPossible(), P = 0;
|
|
3386
|
+
if (a !== "select" && z.value === "offset") {
|
|
3366
3387
|
if (!this.bumpIf(":"))
|
|
3367
3388
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
3368
3389
|
this.bumpSpace();
|
|
3369
3390
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3370
3391
|
if (f.err)
|
|
3371
3392
|
return f;
|
|
3372
|
-
this.bumpSpace(),
|
|
3393
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), P = f.val;
|
|
3373
3394
|
}
|
|
3374
|
-
var ie = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3395
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3375
3396
|
if (ie.err)
|
|
3376
3397
|
return ie;
|
|
3377
3398
|
var p = this.tryParseArgumentClose(i);
|
|
3378
3399
|
if (p.err)
|
|
3379
3400
|
return p;
|
|
3380
|
-
var
|
|
3401
|
+
var Qe = m(i, this.clonePosition());
|
|
3381
3402
|
return a === "select" ? {
|
|
3382
3403
|
val: {
|
|
3383
|
-
type:
|
|
3404
|
+
type: y.select,
|
|
3384
3405
|
value: n,
|
|
3385
|
-
options:
|
|
3386
|
-
location:
|
|
3406
|
+
options: ft(ie.val),
|
|
3407
|
+
location: Qe
|
|
3387
3408
|
},
|
|
3388
3409
|
err: null
|
|
3389
3410
|
} : {
|
|
3390
3411
|
val: {
|
|
3391
|
-
type:
|
|
3412
|
+
type: y.plural,
|
|
3392
3413
|
value: n,
|
|
3393
|
-
options:
|
|
3414
|
+
options: ft(ie.val),
|
|
3394
3415
|
offset: P,
|
|
3395
3416
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3396
|
-
location:
|
|
3417
|
+
location: Qe
|
|
3397
3418
|
},
|
|
3398
3419
|
err: null
|
|
3399
3420
|
};
|
|
@@ -3441,16 +3462,16 @@ var Rn = (
|
|
|
3441
3462
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3442
3463
|
var n = [];
|
|
3443
3464
|
try {
|
|
3444
|
-
n =
|
|
3465
|
+
n = yn(t);
|
|
3445
3466
|
} catch {
|
|
3446
3467
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3447
3468
|
}
|
|
3448
3469
|
return {
|
|
3449
3470
|
val: {
|
|
3450
|
-
type:
|
|
3471
|
+
type: G.number,
|
|
3451
3472
|
tokens: n,
|
|
3452
3473
|
location: r,
|
|
3453
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3474
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3454
3475
|
},
|
|
3455
3476
|
err: null
|
|
3456
3477
|
};
|
|
@@ -3469,20 +3490,20 @@ var Rn = (
|
|
|
3469
3490
|
if (h.has(u))
|
|
3470
3491
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3471
3492
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3472
|
-
var
|
|
3493
|
+
var b = this.clonePosition();
|
|
3473
3494
|
if (!this.bumpIf("{"))
|
|
3474
3495
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, m(this.clonePosition(), this.clonePosition()));
|
|
3475
3496
|
var p = this.parseMessage(t + 1, r, n);
|
|
3476
3497
|
if (p.err)
|
|
3477
3498
|
return p;
|
|
3478
|
-
var
|
|
3479
|
-
if (
|
|
3480
|
-
return
|
|
3499
|
+
var g = this.tryParseArgumentClose(b);
|
|
3500
|
+
if (g.err)
|
|
3501
|
+
return g;
|
|
3481
3502
|
a.push([
|
|
3482
3503
|
u,
|
|
3483
3504
|
{
|
|
3484
3505
|
value: p.val,
|
|
3485
|
-
location: m(
|
|
3506
|
+
location: m(b, this.clonePosition())
|
|
3486
3507
|
}
|
|
3487
3508
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3488
3509
|
}
|
|
@@ -3498,7 +3519,7 @@ var Rn = (
|
|
|
3498
3519
|
break;
|
|
3499
3520
|
}
|
|
3500
3521
|
var h = m(i, this.clonePosition());
|
|
3501
|
-
return o ? (s *= n,
|
|
3522
|
+
return o ? (s *= n, Mn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3502
3523
|
}, e.prototype.offset = function() {
|
|
3503
3524
|
return this.position.offset;
|
|
3504
3525
|
}, e.prototype.isEOF = function() {
|
|
@@ -3513,7 +3534,7 @@ var Rn = (
|
|
|
3513
3534
|
var t = this.position.offset;
|
|
3514
3535
|
if (t >= this.message.length)
|
|
3515
3536
|
throw Error("out of bound");
|
|
3516
|
-
var r =
|
|
3537
|
+
var r = Xt(this.message, t);
|
|
3517
3538
|
if (r === void 0)
|
|
3518
3539
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3519
3540
|
return r;
|
|
@@ -3532,7 +3553,7 @@ var Rn = (
|
|
|
3532
3553
|
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);
|
|
3533
3554
|
}
|
|
3534
3555
|
}, e.prototype.bumpIf = function(t) {
|
|
3535
|
-
if (
|
|
3556
|
+
if (lt(this.message, t, this.offset())) {
|
|
3536
3557
|
for (var r = 0; r < t.length; r++)
|
|
3537
3558
|
this.bump();
|
|
3538
3559
|
return !0;
|
|
@@ -3554,7 +3575,7 @@ var Rn = (
|
|
|
3554
3575
|
break;
|
|
3555
3576
|
}
|
|
3556
3577
|
}, e.prototype.bumpSpace = function() {
|
|
3557
|
-
for (; !this.isEOF() &&
|
|
3578
|
+
for (; !this.isEOF() && zt(this.char()); )
|
|
3558
3579
|
this.bump();
|
|
3559
3580
|
}, e.prototype.peek = function() {
|
|
3560
3581
|
if (this.isEOF())
|
|
@@ -3564,47 +3585,47 @@ var Rn = (
|
|
|
3564
3585
|
}, e;
|
|
3565
3586
|
}()
|
|
3566
3587
|
);
|
|
3567
|
-
function
|
|
3588
|
+
function ke(e) {
|
|
3568
3589
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3569
3590
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3591
|
+
function Gn(e) {
|
|
3592
|
+
return ke(e) || e === 47;
|
|
3572
3593
|
}
|
|
3573
|
-
function
|
|
3594
|
+
function Fn(e) {
|
|
3574
3595
|
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;
|
|
3575
3596
|
}
|
|
3576
|
-
function
|
|
3597
|
+
function zt(e) {
|
|
3577
3598
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3578
3599
|
}
|
|
3579
|
-
function
|
|
3600
|
+
function jn(e) {
|
|
3580
3601
|
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;
|
|
3581
3602
|
}
|
|
3582
|
-
function
|
|
3603
|
+
function Ve(e) {
|
|
3583
3604
|
e.forEach(function(t) {
|
|
3584
|
-
if (delete t.location,
|
|
3605
|
+
if (delete t.location, Rt(t) || Dt(t))
|
|
3585
3606
|
for (var r in t.options)
|
|
3586
|
-
delete t.options[r].location,
|
|
3607
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3587
3608
|
else
|
|
3588
|
-
|
|
3609
|
+
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Ut(t) && Ve(t.children);
|
|
3589
3610
|
});
|
|
3590
3611
|
}
|
|
3591
|
-
function
|
|
3592
|
-
t === void 0 && (t = {}), t =
|
|
3593
|
-
var r = new
|
|
3612
|
+
function kn(e, t) {
|
|
3613
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3614
|
+
var r = new Un(e, t).parse();
|
|
3594
3615
|
if (r.err) {
|
|
3595
3616
|
var n = SyntaxError(d[r.err.kind]);
|
|
3596
3617
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3597
3618
|
}
|
|
3598
|
-
return t?.captureLocation ||
|
|
3619
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3599
3620
|
}
|
|
3600
|
-
var
|
|
3621
|
+
var F;
|
|
3601
3622
|
(function(e) {
|
|
3602
3623
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3603
|
-
})(
|
|
3604
|
-
var
|
|
3624
|
+
})(F || (F = {}));
|
|
3625
|
+
var ge = (
|
|
3605
3626
|
/** @class */
|
|
3606
3627
|
function(e) {
|
|
3607
|
-
|
|
3628
|
+
ve(t, e);
|
|
3608
3629
|
function t(r, n, i) {
|
|
3609
3630
|
var o = e.call(this, r) || this;
|
|
3610
3631
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3613,155 +3634,155 @@ var be = (
|
|
|
3613
3634
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3614
3635
|
}, t;
|
|
3615
3636
|
}(Error)
|
|
3616
|
-
),
|
|
3637
|
+
), pt = (
|
|
3617
3638
|
/** @class */
|
|
3618
3639
|
function(e) {
|
|
3619
|
-
|
|
3640
|
+
ve(t, e);
|
|
3620
3641
|
function t(r, n, i, o) {
|
|
3621
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3642
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, o) || this;
|
|
3622
3643
|
}
|
|
3623
3644
|
return t;
|
|
3624
|
-
}(
|
|
3625
|
-
),
|
|
3645
|
+
}(ge)
|
|
3646
|
+
), Vn = (
|
|
3626
3647
|
/** @class */
|
|
3627
3648
|
function(e) {
|
|
3628
|
-
|
|
3649
|
+
ve(t, e);
|
|
3629
3650
|
function t(r, n, i) {
|
|
3630
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3651
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3631
3652
|
}
|
|
3632
3653
|
return t;
|
|
3633
|
-
}(
|
|
3634
|
-
),
|
|
3654
|
+
}(ge)
|
|
3655
|
+
), Xn = (
|
|
3635
3656
|
/** @class */
|
|
3636
3657
|
function(e) {
|
|
3637
|
-
|
|
3658
|
+
ve(t, e);
|
|
3638
3659
|
function t(r, n) {
|
|
3639
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3660
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3640
3661
|
}
|
|
3641
3662
|
return t;
|
|
3642
|
-
}(
|
|
3643
|
-
),
|
|
3663
|
+
}(ge)
|
|
3664
|
+
), x;
|
|
3644
3665
|
(function(e) {
|
|
3645
3666
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3646
|
-
})(
|
|
3647
|
-
function
|
|
3667
|
+
})(x || (x = {}));
|
|
3668
|
+
function Wn(e) {
|
|
3648
3669
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3649
3670
|
var n = t[t.length - 1];
|
|
3650
|
-
return !n || n.type !==
|
|
3671
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3651
3672
|
}, []);
|
|
3652
3673
|
}
|
|
3653
|
-
function
|
|
3674
|
+
function zn(e) {
|
|
3654
3675
|
return typeof e == "function";
|
|
3655
3676
|
}
|
|
3656
3677
|
function he(e, t, r, n, i, o, s) {
|
|
3657
|
-
if (e.length === 1 &&
|
|
3678
|
+
if (e.length === 1 && st(e[0]))
|
|
3658
3679
|
return [
|
|
3659
3680
|
{
|
|
3660
|
-
type:
|
|
3681
|
+
type: x.literal,
|
|
3661
3682
|
value: e[0].value
|
|
3662
3683
|
}
|
|
3663
3684
|
];
|
|
3664
3685
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3665
3686
|
var l = u[h];
|
|
3666
|
-
if (
|
|
3687
|
+
if (st(l)) {
|
|
3667
3688
|
a.push({
|
|
3668
|
-
type:
|
|
3689
|
+
type: x.literal,
|
|
3669
3690
|
value: l.value
|
|
3670
3691
|
});
|
|
3671
3692
|
continue;
|
|
3672
3693
|
}
|
|
3673
|
-
if (
|
|
3694
|
+
if (mn(l)) {
|
|
3674
3695
|
typeof o == "number" && a.push({
|
|
3675
|
-
type:
|
|
3696
|
+
type: x.literal,
|
|
3676
3697
|
value: r.getNumberFormat(t).format(o)
|
|
3677
3698
|
});
|
|
3678
3699
|
continue;
|
|
3679
3700
|
}
|
|
3680
3701
|
var f = l.value;
|
|
3681
3702
|
if (!(i && f in i))
|
|
3682
|
-
throw new
|
|
3703
|
+
throw new Xn(f, s);
|
|
3683
3704
|
var c = i[f];
|
|
3684
|
-
if (
|
|
3705
|
+
if (dn(l)) {
|
|
3685
3706
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3686
|
-
type: typeof c == "string" ?
|
|
3707
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3687
3708
|
value: c
|
|
3688
3709
|
});
|
|
3689
3710
|
continue;
|
|
3690
3711
|
}
|
|
3691
|
-
if (
|
|
3692
|
-
var
|
|
3712
|
+
if (Mt(l)) {
|
|
3713
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3693
3714
|
a.push({
|
|
3694
|
-
type:
|
|
3695
|
-
value: r.getDateTimeFormat(t,
|
|
3715
|
+
type: x.literal,
|
|
3716
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3696
3717
|
});
|
|
3697
3718
|
continue;
|
|
3698
3719
|
}
|
|
3699
|
-
if (
|
|
3700
|
-
var
|
|
3720
|
+
if ($t(l)) {
|
|
3721
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3701
3722
|
a.push({
|
|
3702
|
-
type:
|
|
3703
|
-
value: r.getDateTimeFormat(t,
|
|
3723
|
+
type: x.literal,
|
|
3724
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3704
3725
|
});
|
|
3705
3726
|
continue;
|
|
3706
3727
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3709
|
-
|
|
3710
|
-
type:
|
|
3711
|
-
value: r.getNumberFormat(t,
|
|
3728
|
+
if (Lt(l)) {
|
|
3729
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Gt(l.style) ? l.style.parsedOptions : void 0;
|
|
3730
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3731
|
+
type: x.literal,
|
|
3732
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3712
3733
|
});
|
|
3713
3734
|
continue;
|
|
3714
3735
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var p = l.children,
|
|
3717
|
-
if (!
|
|
3718
|
-
throw new
|
|
3719
|
-
var
|
|
3736
|
+
if (Ut(l)) {
|
|
3737
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3738
|
+
if (!zn(E))
|
|
3739
|
+
throw new Vn(g, "function", s);
|
|
3740
|
+
var W = he(p, t, r, n, i, o), L = E(W.map(function(P) {
|
|
3720
3741
|
return P.value;
|
|
3721
3742
|
}));
|
|
3722
3743
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(P) {
|
|
3723
3744
|
return {
|
|
3724
|
-
type: typeof P == "string" ?
|
|
3745
|
+
type: typeof P == "string" ? x.literal : x.object,
|
|
3725
3746
|
value: P
|
|
3726
3747
|
};
|
|
3727
3748
|
}));
|
|
3728
3749
|
}
|
|
3729
|
-
if (
|
|
3750
|
+
if (Rt(l)) {
|
|
3730
3751
|
var T = l.options[c] || l.options.other;
|
|
3731
3752
|
if (!T)
|
|
3732
|
-
throw new
|
|
3753
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3733
3754
|
a.push.apply(a, he(T.value, t, r, n, i));
|
|
3734
3755
|
continue;
|
|
3735
3756
|
}
|
|
3736
|
-
if (
|
|
3757
|
+
if (Dt(l)) {
|
|
3737
3758
|
var T = l.options["=".concat(c)];
|
|
3738
3759
|
if (!T) {
|
|
3739
3760
|
if (!Intl.PluralRules)
|
|
3740
|
-
throw new
|
|
3761
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3741
3762
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3742
|
-
`,
|
|
3743
|
-
var
|
|
3744
|
-
T = l.options[
|
|
3763
|
+
`, F.MISSING_INTL_API, s);
|
|
3764
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3765
|
+
T = l.options[z] || l.options.other;
|
|
3745
3766
|
}
|
|
3746
3767
|
if (!T)
|
|
3747
|
-
throw new
|
|
3768
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3748
3769
|
a.push.apply(a, he(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3749
3770
|
continue;
|
|
3750
3771
|
}
|
|
3751
3772
|
}
|
|
3752
|
-
return
|
|
3773
|
+
return Wn(a);
|
|
3753
3774
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return t ?
|
|
3756
|
-
return r[n] =
|
|
3775
|
+
function Zn(e, t) {
|
|
3776
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3777
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3757
3778
|
}, {})) : e;
|
|
3758
3779
|
}
|
|
3759
|
-
function
|
|
3780
|
+
function Qn(e, t) {
|
|
3760
3781
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3761
|
-
return r[n] =
|
|
3762
|
-
},
|
|
3782
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3783
|
+
}, w({}, e)) : e;
|
|
3763
3784
|
}
|
|
3764
|
-
function
|
|
3785
|
+
function Be(e) {
|
|
3765
3786
|
return {
|
|
3766
3787
|
create: function() {
|
|
3767
3788
|
return {
|
|
@@ -3775,39 +3796,39 @@ function He(e) {
|
|
|
3775
3796
|
}
|
|
3776
3797
|
};
|
|
3777
3798
|
}
|
|
3778
|
-
function
|
|
3799
|
+
function Jn(e) {
|
|
3779
3800
|
return e === void 0 && (e = {
|
|
3780
3801
|
number: {},
|
|
3781
3802
|
dateTime: {},
|
|
3782
3803
|
pluralRules: {}
|
|
3783
3804
|
}), {
|
|
3784
|
-
getNumberFormat:
|
|
3805
|
+
getNumberFormat: Te(function() {
|
|
3785
3806
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3807
|
r[n] = arguments[n];
|
|
3787
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3808
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3788
3809
|
}, {
|
|
3789
|
-
cache:
|
|
3790
|
-
strategy:
|
|
3810
|
+
cache: Be(e.number),
|
|
3811
|
+
strategy: we.variadic
|
|
3791
3812
|
}),
|
|
3792
|
-
getDateTimeFormat:
|
|
3813
|
+
getDateTimeFormat: Te(function() {
|
|
3793
3814
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3815
|
r[n] = arguments[n];
|
|
3795
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3816
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3796
3817
|
}, {
|
|
3797
|
-
cache:
|
|
3798
|
-
strategy:
|
|
3818
|
+
cache: Be(e.dateTime),
|
|
3819
|
+
strategy: we.variadic
|
|
3799
3820
|
}),
|
|
3800
|
-
getPluralRules:
|
|
3821
|
+
getPluralRules: Te(function() {
|
|
3801
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3802
3823
|
r[n] = arguments[n];
|
|
3803
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3824
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3804
3825
|
}, {
|
|
3805
|
-
cache:
|
|
3806
|
-
strategy:
|
|
3826
|
+
cache: Be(e.pluralRules),
|
|
3827
|
+
strategy: we.variadic
|
|
3807
3828
|
})
|
|
3808
3829
|
};
|
|
3809
3830
|
}
|
|
3810
|
-
var
|
|
3831
|
+
var Yn = (
|
|
3811
3832
|
/** @class */
|
|
3812
3833
|
function() {
|
|
3813
3834
|
function e(t, r, n, i) {
|
|
@@ -3822,7 +3843,7 @@ var Qn = (
|
|
|
3822
3843
|
if (u.length === 1)
|
|
3823
3844
|
return u[0].value;
|
|
3824
3845
|
var l = u.reduce(function(f, c) {
|
|
3825
|
-
return !f.length || c.type !==
|
|
3846
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3826
3847
|
}, []);
|
|
3827
3848
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3828
3849
|
}, this.formatToParts = function(h) {
|
|
@@ -3839,13 +3860,13 @@ var Qn = (
|
|
|
3839
3860
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3840
3861
|
var s = i || {};
|
|
3841
3862
|
s.formatters;
|
|
3842
|
-
var a =
|
|
3843
|
-
this.ast = e.__parse(t,
|
|
3863
|
+
var a = sn(s, ["formatters"]);
|
|
3864
|
+
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3844
3865
|
} else
|
|
3845
3866
|
this.ast = t;
|
|
3846
3867
|
if (!Array.isArray(this.ast))
|
|
3847
3868
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3848
|
-
this.formats =
|
|
3869
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3849
3870
|
}
|
|
3850
3871
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3851
3872
|
get: function() {
|
|
@@ -3858,7 +3879,7 @@ var Qn = (
|
|
|
3858
3879
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3859
3880
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3860
3881
|
}
|
|
3861
|
-
}, e.__parse =
|
|
3882
|
+
}, e.__parse = kn, e.formats = {
|
|
3862
3883
|
number: {
|
|
3863
3884
|
integer: {
|
|
3864
3885
|
maximumFractionDigits: 0
|
|
@@ -3919,7 +3940,7 @@ var Qn = (
|
|
|
3919
3940
|
}, e;
|
|
3920
3941
|
}()
|
|
3921
3942
|
);
|
|
3922
|
-
function
|
|
3943
|
+
function qn(e, t) {
|
|
3923
3944
|
if (t == null)
|
|
3924
3945
|
return;
|
|
3925
3946
|
if (t in e)
|
|
@@ -3940,92 +3961,92 @@ function Jn(e, t) {
|
|
|
3940
3961
|
n = void 0;
|
|
3941
3962
|
return n;
|
|
3942
3963
|
}
|
|
3943
|
-
const A = {},
|
|
3964
|
+
const A = {}, Kn = (e, t, r) => r && (t in A || (A[t] = {}), e in A[t] || (A[t][e] = r), r), Zt = (e, t) => {
|
|
3944
3965
|
if (t == null)
|
|
3945
3966
|
return;
|
|
3946
3967
|
if (t in A && e in A[t])
|
|
3947
3968
|
return A[t][e];
|
|
3948
|
-
const r =
|
|
3969
|
+
const r = ye(t);
|
|
3949
3970
|
for (let n = 0; n < r.length; n++) {
|
|
3950
|
-
const i = r[n], o =
|
|
3971
|
+
const i = r[n], o = ti(i, e);
|
|
3951
3972
|
if (o)
|
|
3952
|
-
return
|
|
3973
|
+
return Kn(e, t, o);
|
|
3953
3974
|
}
|
|
3954
3975
|
};
|
|
3955
|
-
let
|
|
3956
|
-
const re =
|
|
3957
|
-
function
|
|
3958
|
-
return
|
|
3976
|
+
let ze;
|
|
3977
|
+
const re = be({});
|
|
3978
|
+
function ei(e) {
|
|
3979
|
+
return ze[e] || null;
|
|
3959
3980
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return e in
|
|
3981
|
+
function Qt(e) {
|
|
3982
|
+
return e in ze;
|
|
3962
3983
|
}
|
|
3963
|
-
function
|
|
3964
|
-
if (!
|
|
3984
|
+
function ti(e, t) {
|
|
3985
|
+
if (!Qt(e))
|
|
3965
3986
|
return null;
|
|
3966
|
-
const r =
|
|
3967
|
-
return
|
|
3987
|
+
const r = ei(e);
|
|
3988
|
+
return qn(r, t);
|
|
3968
3989
|
}
|
|
3969
|
-
function
|
|
3990
|
+
function ri(e) {
|
|
3970
3991
|
if (e == null)
|
|
3971
3992
|
return;
|
|
3972
|
-
const t =
|
|
3993
|
+
const t = ye(e);
|
|
3973
3994
|
for (let r = 0; r < t.length; r++) {
|
|
3974
3995
|
const n = t[r];
|
|
3975
|
-
if (
|
|
3996
|
+
if (Qt(n))
|
|
3976
3997
|
return n;
|
|
3977
3998
|
}
|
|
3978
3999
|
}
|
|
3979
|
-
function
|
|
4000
|
+
function ni(e, ...t) {
|
|
3980
4001
|
delete A[e], re.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3981
4002
|
}
|
|
3982
|
-
|
|
4003
|
+
V(
|
|
3983
4004
|
[re],
|
|
3984
4005
|
([e]) => Object.keys(e)
|
|
3985
4006
|
);
|
|
3986
|
-
re.subscribe((e) =>
|
|
4007
|
+
re.subscribe((e) => ze = e);
|
|
3987
4008
|
const le = {};
|
|
3988
|
-
function
|
|
4009
|
+
function ii(e, t) {
|
|
3989
4010
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3990
4011
|
}
|
|
3991
|
-
function
|
|
4012
|
+
function Jt(e) {
|
|
3992
4013
|
return le[e];
|
|
3993
4014
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return
|
|
3996
|
-
const r =
|
|
4015
|
+
function oi(e) {
|
|
4016
|
+
return ye(e).map((t) => {
|
|
4017
|
+
const r = Jt(t);
|
|
3997
4018
|
return [t, r ? [...r] : []];
|
|
3998
4019
|
}).filter(([, t]) => t.length > 0);
|
|
3999
4020
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return e == null ? !1 :
|
|
4021
|
+
function Xe(e) {
|
|
4022
|
+
return e == null ? !1 : ye(e).some(
|
|
4002
4023
|
(t) => {
|
|
4003
4024
|
var r;
|
|
4004
|
-
return (r =
|
|
4025
|
+
return (r = Jt(t)) == null ? void 0 : r.size;
|
|
4005
4026
|
}
|
|
4006
4027
|
);
|
|
4007
4028
|
}
|
|
4008
|
-
function
|
|
4029
|
+
function si(e, t) {
|
|
4009
4030
|
return Promise.all(
|
|
4010
|
-
t.map((n) => (
|
|
4011
|
-
).then((n) =>
|
|
4012
|
-
}
|
|
4013
|
-
const
|
|
4014
|
-
function
|
|
4015
|
-
if (!
|
|
4016
|
-
return e in
|
|
4017
|
-
const t =
|
|
4018
|
-
return
|
|
4031
|
+
t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
|
|
4032
|
+
).then((n) => ni(e, ...n));
|
|
4033
|
+
}
|
|
4034
|
+
const Z = {};
|
|
4035
|
+
function Yt(e) {
|
|
4036
|
+
if (!Xe(e))
|
|
4037
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4038
|
+
const t = oi(e);
|
|
4039
|
+
return Z[e] = Promise.all(
|
|
4019
4040
|
t.map(
|
|
4020
|
-
([r, n]) =>
|
|
4041
|
+
([r, n]) => si(r, n)
|
|
4021
4042
|
)
|
|
4022
4043
|
).then(() => {
|
|
4023
|
-
if (
|
|
4024
|
-
return
|
|
4025
|
-
delete
|
|
4026
|
-
}),
|
|
4044
|
+
if (Xe(e))
|
|
4045
|
+
return Yt(e);
|
|
4046
|
+
delete Z[e];
|
|
4047
|
+
}), Z[e];
|
|
4027
4048
|
}
|
|
4028
|
-
const
|
|
4049
|
+
const ai = {
|
|
4029
4050
|
number: {
|
|
4030
4051
|
scientific: { notation: "scientific" },
|
|
4031
4052
|
engineering: { notation: "engineering" },
|
|
@@ -4054,150 +4075,150 @@ const oi = {
|
|
|
4054
4075
|
timeZoneName: "short"
|
|
4055
4076
|
}
|
|
4056
4077
|
}
|
|
4057
|
-
},
|
|
4078
|
+
}, ui = {
|
|
4058
4079
|
fallbackLocale: null,
|
|
4059
4080
|
loadingDelay: 200,
|
|
4060
|
-
formats:
|
|
4081
|
+
formats: ai,
|
|
4061
4082
|
warnOnMissingMessages: !0,
|
|
4062
4083
|
handleMissingMessage: void 0,
|
|
4063
4084
|
ignoreTag: !0
|
|
4064
|
-
},
|
|
4065
|
-
function
|
|
4066
|
-
return
|
|
4085
|
+
}, hi = ui;
|
|
4086
|
+
function j() {
|
|
4087
|
+
return hi;
|
|
4067
4088
|
}
|
|
4068
|
-
const
|
|
4069
|
-
var
|
|
4089
|
+
const Ae = be(!1);
|
|
4090
|
+
var li = Object.defineProperty, fi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4070
4091
|
for (var r in t || (t = {}))
|
|
4071
|
-
|
|
4072
|
-
if (
|
|
4073
|
-
for (var r of
|
|
4074
|
-
|
|
4092
|
+
pi.call(t, r) && mt(e, r, t[r]);
|
|
4093
|
+
if (dt)
|
|
4094
|
+
for (var r of dt(t))
|
|
4095
|
+
di.call(t, r) && mt(e, r, t[r]);
|
|
4075
4096
|
return e;
|
|
4076
|
-
},
|
|
4077
|
-
let
|
|
4078
|
-
const
|
|
4079
|
-
function
|
|
4097
|
+
}, bi = (e, t) => fi(e, ci(t));
|
|
4098
|
+
let We;
|
|
4099
|
+
const pe = be(null);
|
|
4100
|
+
function bt(e) {
|
|
4080
4101
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4081
4102
|
}
|
|
4082
|
-
function
|
|
4083
|
-
const r =
|
|
4084
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4103
|
+
function ye(e, t = j().fallbackLocale) {
|
|
4104
|
+
const r = bt(e);
|
|
4105
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
4085
4106
|
}
|
|
4086
|
-
function
|
|
4087
|
-
return
|
|
4107
|
+
function C() {
|
|
4108
|
+
return We ?? void 0;
|
|
4088
4109
|
}
|
|
4089
|
-
|
|
4090
|
-
|
|
4110
|
+
pe.subscribe((e) => {
|
|
4111
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4091
4112
|
});
|
|
4092
|
-
const
|
|
4093
|
-
if (e &&
|
|
4094
|
-
const { loadingDelay: t } =
|
|
4113
|
+
const vi = (e) => {
|
|
4114
|
+
if (e && ri(e) && Xe(e)) {
|
|
4115
|
+
const { loadingDelay: t } = j();
|
|
4095
4116
|
let r;
|
|
4096
|
-
return typeof window < "u" &&
|
|
4097
|
-
() =>
|
|
4117
|
+
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4118
|
+
() => Ae.set(!0),
|
|
4098
4119
|
t
|
|
4099
|
-
) :
|
|
4100
|
-
|
|
4120
|
+
) : Ae.set(!0), Yt(e).then(() => {
|
|
4121
|
+
pe.set(e);
|
|
4101
4122
|
}).finally(() => {
|
|
4102
|
-
clearTimeout(r),
|
|
4123
|
+
clearTimeout(r), Ae.set(!1);
|
|
4103
4124
|
});
|
|
4104
4125
|
}
|
|
4105
|
-
return
|
|
4106
|
-
}, ne =
|
|
4107
|
-
set:
|
|
4108
|
-
}),
|
|
4126
|
+
return pe.set(e);
|
|
4127
|
+
}, ne = bi(mi({}, pe), {
|
|
4128
|
+
set: vi
|
|
4129
|
+
}), _e = (e) => {
|
|
4109
4130
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4110
4131
|
return (n) => {
|
|
4111
4132
|
const i = JSON.stringify(n);
|
|
4112
4133
|
return i in t ? t[i] : t[i] = e(n);
|
|
4113
4134
|
};
|
|
4114
4135
|
};
|
|
4115
|
-
var
|
|
4136
|
+
var gi = Object.defineProperty, de = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4116
4137
|
for (var r in t || (t = {}))
|
|
4117
|
-
|
|
4118
|
-
if (
|
|
4119
|
-
for (var r of
|
|
4120
|
-
|
|
4138
|
+
qt.call(t, r) && vt(e, r, t[r]);
|
|
4139
|
+
if (de)
|
|
4140
|
+
for (var r of de(t))
|
|
4141
|
+
Kt.call(t, r) && vt(e, r, t[r]);
|
|
4121
4142
|
return e;
|
|
4122
|
-
},
|
|
4143
|
+
}, X = (e, t) => {
|
|
4123
4144
|
var r = {};
|
|
4124
4145
|
for (var n in e)
|
|
4125
|
-
|
|
4126
|
-
if (e != null &&
|
|
4127
|
-
for (var n of
|
|
4128
|
-
t.indexOf(n) < 0 &&
|
|
4146
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4147
|
+
if (e != null && de)
|
|
4148
|
+
for (var n of de(e))
|
|
4149
|
+
t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
|
|
4129
4150
|
return r;
|
|
4130
4151
|
};
|
|
4131
|
-
const
|
|
4132
|
-
const { formats: r } =
|
|
4152
|
+
const q = (e, t) => {
|
|
4153
|
+
const { formats: r } = j();
|
|
4133
4154
|
if (e in r && t in r[e])
|
|
4134
4155
|
return r[e][t];
|
|
4135
4156
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4136
|
-
},
|
|
4157
|
+
}, yi = _e(
|
|
4137
4158
|
(e) => {
|
|
4138
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4159
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4139
4160
|
if (r == null)
|
|
4140
4161
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4141
|
-
return n && (i =
|
|
4162
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4142
4163
|
}
|
|
4143
|
-
),
|
|
4164
|
+
), _i = _e(
|
|
4144
4165
|
(e) => {
|
|
4145
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4166
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4146
4167
|
if (r == null)
|
|
4147
4168
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4148
|
-
return n ? i =
|
|
4169
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4149
4170
|
}
|
|
4150
|
-
),
|
|
4171
|
+
), xi = _e(
|
|
4151
4172
|
(e) => {
|
|
4152
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4173
|
+
var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
|
|
4153
4174
|
if (r == null)
|
|
4154
4175
|
throw new Error(
|
|
4155
4176
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4156
4177
|
);
|
|
4157
|
-
return n ? i =
|
|
4178
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4158
4179
|
}
|
|
4159
|
-
),
|
|
4180
|
+
), Ei = (e = {}) => {
|
|
4160
4181
|
var t = e, {
|
|
4161
|
-
locale: r =
|
|
4162
|
-
} = t, n =
|
|
4182
|
+
locale: r = C()
|
|
4183
|
+
} = t, n = X(t, [
|
|
4163
4184
|
"locale"
|
|
4164
4185
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4186
|
+
return yi(Ze({ locale: r }, n));
|
|
4187
|
+
}, Si = (e = {}) => {
|
|
4167
4188
|
var t = e, {
|
|
4168
|
-
locale: r =
|
|
4169
|
-
} = t, n =
|
|
4189
|
+
locale: r = C()
|
|
4190
|
+
} = t, n = X(t, [
|
|
4170
4191
|
"locale"
|
|
4171
4192
|
]);
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4193
|
+
return _i(Ze({ locale: r }, n));
|
|
4194
|
+
}, Ti = (e = {}) => {
|
|
4174
4195
|
var t = e, {
|
|
4175
|
-
locale: r =
|
|
4176
|
-
} = t, n =
|
|
4196
|
+
locale: r = C()
|
|
4197
|
+
} = t, n = X(t, [
|
|
4177
4198
|
"locale"
|
|
4178
4199
|
]);
|
|
4179
|
-
return
|
|
4180
|
-
},
|
|
4200
|
+
return xi(Ze({ locale: r }, n));
|
|
4201
|
+
}, wi = _e(
|
|
4181
4202
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4182
|
-
(e, t =
|
|
4183
|
-
ignoreTag:
|
|
4203
|
+
(e, t = C()) => new Yn(e, t, j().formats, {
|
|
4204
|
+
ignoreTag: j().ignoreTag
|
|
4184
4205
|
})
|
|
4185
|
-
),
|
|
4206
|
+
), Hi = (e, t = {}) => {
|
|
4186
4207
|
var r, n, i, o;
|
|
4187
4208
|
let s = t;
|
|
4188
4209
|
typeof e == "object" && (s = e, e = s.id);
|
|
4189
4210
|
const {
|
|
4190
4211
|
values: a,
|
|
4191
|
-
locale: h =
|
|
4212
|
+
locale: h = C(),
|
|
4192
4213
|
default: u
|
|
4193
4214
|
} = s;
|
|
4194
4215
|
if (h == null)
|
|
4195
4216
|
throw new Error(
|
|
4196
4217
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4197
4218
|
);
|
|
4198
|
-
let l =
|
|
4219
|
+
let l = Zt(e, h);
|
|
4199
4220
|
if (!l)
|
|
4200
|
-
l = (o = (i = (n = (r =
|
|
4221
|
+
l = (o = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4201
4222
|
else if (typeof l != "string")
|
|
4202
4223
|
return console.warn(
|
|
4203
4224
|
`[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.`
|
|
@@ -4206,7 +4227,7 @@ const K = (e, t) => {
|
|
|
4206
4227
|
return l;
|
|
4207
4228
|
let f = l;
|
|
4208
4229
|
try {
|
|
4209
|
-
f =
|
|
4230
|
+
f = wi(l, h).format(a);
|
|
4210
4231
|
} catch (c) {
|
|
4211
4232
|
c instanceof Error && console.warn(
|
|
4212
4233
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4214,36 +4235,36 @@ const K = (e, t) => {
|
|
|
4214
4235
|
);
|
|
4215
4236
|
}
|
|
4216
4237
|
return f;
|
|
4217
|
-
},
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4238
|
+
}, Bi = (e, t) => Ti(t).format(e), Ai = (e, t) => Si(t).format(e), Pi = (e, t) => Ei(t).format(e), Oi = (e, t = C()) => Zt(e, t);
|
|
4239
|
+
V([ne, re], () => Hi);
|
|
4240
|
+
V([ne], () => Bi);
|
|
4241
|
+
V([ne], () => Ai);
|
|
4242
|
+
V([ne], () => Pi);
|
|
4243
|
+
V([ne, re], () => Oi);
|
|
4223
4244
|
window.emWidgets = { topic: Fr };
|
|
4224
|
-
const
|
|
4245
|
+
const Ii = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4225
4246
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4247
|
+
function Ni(e) {
|
|
4248
|
+
nr(e, "svelte-q9wa7c", "*,*::before,*::after{box-sizing:border-box}.Title{text-transform:uppercase}.DetailsCard{border:1px solid var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);width:100%;margin:25px 0 25px 0}.DetailsCard.Mobile{margin:10px 0}.DetailsCard.Mobile .DetailsTitle{padding:0 10px;height:30px}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--color-contrast, #07072A)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:var(--emw--border-radius-medium, 10px)}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px)}");
|
|
4228
4249
|
}
|
|
4229
|
-
function
|
|
4250
|
+
function gt(e) {
|
|
4230
4251
|
let t, r, n, i, o, s, a;
|
|
4231
4252
|
function h(f, c) {
|
|
4232
4253
|
return (
|
|
4233
4254
|
/*collapsed*/
|
|
4234
|
-
f[3] ?
|
|
4255
|
+
f[3] ? Ci : Li
|
|
4235
4256
|
);
|
|
4236
4257
|
}
|
|
4237
4258
|
let u = h(e), l = u(e);
|
|
4238
4259
|
return {
|
|
4239
4260
|
c() {
|
|
4240
|
-
t = I("div"), r = I("p"), n =
|
|
4261
|
+
t = I("div"), r = I("p"), n = Et(
|
|
4241
4262
|
/*title*/
|
|
4242
4263
|
e[0]
|
|
4243
|
-
), i =
|
|
4264
|
+
), i = St(), o = I("div"), l.c(), v(r, "class", "Title"), v(r, "part", "Title"), v(o, "class", "CollapseButtonDetails"), v(o, "part", "CollapseButtonDetails"), v(t, "class", "DetailsTitle"), v(t, "part", "DetailsTitle");
|
|
4244
4265
|
},
|
|
4245
4266
|
m(f, c) {
|
|
4246
|
-
|
|
4267
|
+
k(f, t, c), B(t, r), B(r, n), B(t, i), B(t, o), l.m(o, null), s || (a = sr(
|
|
4247
4268
|
t,
|
|
4248
4269
|
"click",
|
|
4249
4270
|
/*collapseText*/
|
|
@@ -4252,53 +4273,53 @@ function bt(e) {
|
|
|
4252
4273
|
},
|
|
4253
4274
|
p(f, c) {
|
|
4254
4275
|
c & /*title*/
|
|
4255
|
-
1 &&
|
|
4276
|
+
1 && ur(
|
|
4256
4277
|
n,
|
|
4257
4278
|
/*title*/
|
|
4258
4279
|
f[0]
|
|
4259
4280
|
), u !== (u = h(f)) && (l.d(1), l = u(f), l && (l.c(), l.m(o, null)));
|
|
4260
4281
|
},
|
|
4261
4282
|
d(f) {
|
|
4262
|
-
f &&
|
|
4283
|
+
f && N(t), l.d(), s = !1, a();
|
|
4263
4284
|
}
|
|
4264
4285
|
};
|
|
4265
4286
|
}
|
|
4266
|
-
function
|
|
4287
|
+
function Ci(e) {
|
|
4267
4288
|
let t, r;
|
|
4268
4289
|
return {
|
|
4269
4290
|
c() {
|
|
4270
4291
|
t = fe("svg"), r = fe("path"), v(r, "d", "M6 9l6 6 6-6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4271
4292
|
},
|
|
4272
4293
|
m(n, i) {
|
|
4273
|
-
|
|
4294
|
+
k(n, t, i), B(t, r);
|
|
4274
4295
|
},
|
|
4275
4296
|
d(n) {
|
|
4276
|
-
n &&
|
|
4297
|
+
n && N(t);
|
|
4277
4298
|
}
|
|
4278
4299
|
};
|
|
4279
4300
|
}
|
|
4280
|
-
function
|
|
4301
|
+
function Li(e) {
|
|
4281
4302
|
let t, r;
|
|
4282
4303
|
return {
|
|
4283
4304
|
c() {
|
|
4284
4305
|
t = fe("svg"), r = fe("path"), v(r, "d", "M18 15l-6-6-6 6"), v(t, "xmlns", "http://www.w3.org/2000/svg"), v(t, "width", "24"), v(t, "height", "24"), v(t, "viewBox", "0 0 24 24"), v(t, "fill", "none"), v(t, "stroke", "#ffffff"), v(t, "stroke-width", "2"), v(t, "stroke-linecap", "round"), v(t, "stroke-linejoin", "round");
|
|
4285
4306
|
},
|
|
4286
4307
|
m(n, i) {
|
|
4287
|
-
|
|
4308
|
+
k(n, t, i), B(t, r);
|
|
4288
4309
|
},
|
|
4289
4310
|
d(n) {
|
|
4290
|
-
n &&
|
|
4311
|
+
n && N(t);
|
|
4291
4312
|
}
|
|
4292
4313
|
};
|
|
4293
4314
|
}
|
|
4294
|
-
function
|
|
4315
|
+
function yt(e) {
|
|
4295
4316
|
let t, r, n, i;
|
|
4296
4317
|
return {
|
|
4297
4318
|
c() {
|
|
4298
4319
|
t = I("div"), t.innerHTML = "", v(t, "class", "DetailsContent sc"), v(t, "part", "DetailsContent");
|
|
4299
4320
|
},
|
|
4300
4321
|
m(o, s) {
|
|
4301
|
-
|
|
4322
|
+
k(o, t, s), n || (i = rr(r = /*setContent*/
|
|
4302
4323
|
e[6].call(
|
|
4303
4324
|
null,
|
|
4304
4325
|
t,
|
|
@@ -4307,7 +4328,7 @@ function gt(e) {
|
|
|
4307
4328
|
)), n = !0);
|
|
4308
4329
|
},
|
|
4309
4330
|
p(o, s) {
|
|
4310
|
-
r &&
|
|
4331
|
+
r && ee(r.update) && s & /*text*/
|
|
4311
4332
|
2 && r.update.call(
|
|
4312
4333
|
null,
|
|
4313
4334
|
/*text*/
|
|
@@ -4315,54 +4336,54 @@ function gt(e) {
|
|
|
4315
4336
|
);
|
|
4316
4337
|
},
|
|
4317
4338
|
d(o) {
|
|
4318
|
-
o &&
|
|
4339
|
+
o && N(t), n = !1, i();
|
|
4319
4340
|
}
|
|
4320
4341
|
};
|
|
4321
4342
|
}
|
|
4322
|
-
function
|
|
4343
|
+
function Mi(e) {
|
|
4323
4344
|
let t, r, n = (
|
|
4324
4345
|
/*title*/
|
|
4325
|
-
e[0] &&
|
|
4346
|
+
e[0] && gt(e)
|
|
4326
4347
|
), i = (
|
|
4327
4348
|
/*text*/
|
|
4328
4349
|
e[1] && !/*collapsed*/
|
|
4329
|
-
e[3] &&
|
|
4350
|
+
e[3] && yt(e)
|
|
4330
4351
|
);
|
|
4331
4352
|
return {
|
|
4332
4353
|
c() {
|
|
4333
|
-
t = I("div"), n && n.c(), r =
|
|
4354
|
+
t = I("div"), n && n.c(), r = St(), i && i.c(), v(t, "class", "DetailsCard " + (Ii(
|
|
4334
4355
|
/*userAgent*/
|
|
4335
4356
|
e[4]
|
|
4336
4357
|
) ? "Mobile" : "")), v(t, "part", "DetailsCard");
|
|
4337
4358
|
},
|
|
4338
4359
|
m(o, s) {
|
|
4339
|
-
|
|
4360
|
+
k(o, t, s), n && n.m(t, null), B(t, r), i && i.m(t, null), e[10](t);
|
|
4340
4361
|
},
|
|
4341
4362
|
p(o, [s]) {
|
|
4342
4363
|
/*title*/
|
|
4343
|
-
o[0] ? n ? n.p(o, s) : (n =
|
|
4364
|
+
o[0] ? n ? n.p(o, s) : (n = gt(o), n.c(), n.m(t, r)) : n && (n.d(1), n = null), /*text*/
|
|
4344
4365
|
o[1] && !/*collapsed*/
|
|
4345
|
-
o[3] ? i ? i.p(o, s) : (i =
|
|
4366
|
+
o[3] ? i ? i.p(o, s) : (i = yt(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
4346
4367
|
},
|
|
4347
4368
|
i: S,
|
|
4348
4369
|
o: S,
|
|
4349
4370
|
d(o) {
|
|
4350
|
-
o &&
|
|
4371
|
+
o && N(t), n && n.d(), i && i.d(), e[10](null);
|
|
4351
4372
|
}
|
|
4352
4373
|
};
|
|
4353
4374
|
}
|
|
4354
|
-
function
|
|
4375
|
+
function $i(e, t, r) {
|
|
4355
4376
|
let { title: n = "" } = t, { text: i = "" } = t, { mbsource: o } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, h, u = !1, l = window.navigator.userAgent;
|
|
4356
4377
|
const f = () => {
|
|
4357
4378
|
r(3, u = !u);
|
|
4358
|
-
}, c = (p,
|
|
4379
|
+
}, c = (p, g) => {
|
|
4359
4380
|
let E = document.createElement("div");
|
|
4360
|
-
E.innerHTML =
|
|
4381
|
+
E.innerHTML = g, p.append(E);
|
|
4361
4382
|
};
|
|
4362
|
-
|
|
4383
|
+
fr(() => () => {
|
|
4363
4384
|
});
|
|
4364
|
-
function
|
|
4365
|
-
|
|
4385
|
+
function b(p) {
|
|
4386
|
+
Pe[p ? "unshift" : "push"](() => {
|
|
4366
4387
|
h = p, r(2, h);
|
|
4367
4388
|
});
|
|
4368
4389
|
}
|
|
@@ -4370,9 +4391,9 @@ function Li(e, t, r) {
|
|
|
4370
4391
|
"title" in p && r(0, n = p.title), "text" in p && r(1, i = p.text), "mbsource" in p && r(7, o = p.mbsource), "clientstyling" in p && r(8, s = p.clientstyling), "clientstylingurl" in p && r(9, a = p.clientstylingurl);
|
|
4371
4392
|
}, e.$$.update = () => {
|
|
4372
4393
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4373
|
-
260 && s && h &&
|
|
4394
|
+
260 && s && h && wr(h, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4374
4395
|
516 && a && h && Hr(h, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4375
|
-
132 && o && h &&
|
|
4396
|
+
132 && o && h && Br(h, `${o}.Style`);
|
|
4376
4397
|
}, [
|
|
4377
4398
|
n,
|
|
4378
4399
|
i,
|
|
@@ -4384,17 +4405,17 @@ function Li(e, t, r) {
|
|
|
4384
4405
|
o,
|
|
4385
4406
|
s,
|
|
4386
4407
|
a,
|
|
4387
|
-
|
|
4408
|
+
b
|
|
4388
4409
|
];
|
|
4389
4410
|
}
|
|
4390
|
-
class
|
|
4411
|
+
class Ri extends Sr {
|
|
4391
4412
|
constructor(t) {
|
|
4392
4413
|
super(), xr(
|
|
4393
4414
|
this,
|
|
4394
4415
|
t,
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4416
|
+
$i,
|
|
4417
|
+
Mi,
|
|
4418
|
+
xt,
|
|
4398
4419
|
{
|
|
4399
4420
|
title: 0,
|
|
4400
4421
|
text: 1,
|
|
@@ -4402,7 +4423,7 @@ class Mi extends Er {
|
|
|
4402
4423
|
clientstyling: 8,
|
|
4403
4424
|
clientstylingurl: 9
|
|
4404
4425
|
},
|
|
4405
|
-
|
|
4426
|
+
Ni
|
|
4406
4427
|
);
|
|
4407
4428
|
}
|
|
4408
4429
|
get title() {
|
|
@@ -4436,7 +4457,7 @@ class Mi extends Er {
|
|
|
4436
4457
|
this.$$set({ clientstylingurl: t }), O();
|
|
4437
4458
|
}
|
|
4438
4459
|
}
|
|
4439
|
-
|
|
4460
|
+
Er(Ri, { title: {}, text: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4440
4461
|
export {
|
|
4441
|
-
|
|
4462
|
+
Ri as C
|
|
4442
4463
|
};
|