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