@everymatrix/player-account-gaming-limits-confirmation-modal 1.67.3 → 1.69.0
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/{PlayerAccountGamingLimitsConfirmationModal-C-JRKsl9.js → PlayerAccountGamingLimitsConfirmationModal-BFEycNl5.js} +861 -826
- package/components/PlayerAccountGamingLimitsConfirmationModal-D-Dyivi3.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CBq9ToYp.js → PlayerAccountGamingLimitsConfirmationModal-DPTWXl6u.js} +842 -807
- package/es2015/player-account-gaming-limits-confirmation-modal.cjs +1 -1
- package/es2015/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/esnext/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-bt2baWxP.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,46 +8,46 @@ function hr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function At(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function Z(e) {
|
|
18
|
+
e.forEach(At);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function qe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function pr(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ot(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
33
|
-
return
|
|
33
|
+
return I;
|
|
34
34
|
}
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function dr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Ot(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function br(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Lt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Lt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function gr(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function mr(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function yr(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = Lt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function vr(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function pr(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function xr(e, t, r) {
|
|
84
|
+
const n = _r(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = M("style");
|
|
87
|
+
i.id = t, i.textContent = r, Er(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function _r(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,45 +97,45 @@ function gr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Er(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ke(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function be(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function M(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function it(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
119
|
function ae(e) {
|
|
120
120
|
return document.createTextNode(e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function we() {
|
|
123
123
|
return ae(" ");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Se(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function S(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function wr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Te(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Sr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,105 +144,105 @@ function vr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let ee;
|
|
148
|
+
function K(e) {
|
|
149
|
+
ee = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Tr() {
|
|
152
|
+
if (!ee)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return ee;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Hr(e) {
|
|
157
|
+
Tr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const j = [],
|
|
159
|
+
const j = [], Me = [];
|
|
160
160
|
let k = [];
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
161
|
+
const ot = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Ne = !1;
|
|
163
|
+
function Cr() {
|
|
164
|
+
Ne || (Ne = !0, Br.then(N));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function $e(e) {
|
|
167
167
|
k.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const He = /* @__PURE__ */ new Set();
|
|
170
170
|
let D = 0;
|
|
171
|
-
function
|
|
171
|
+
function N() {
|
|
172
172
|
if (D !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = ee;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
177
|
for (; D < j.length; ) {
|
|
178
178
|
const t = j[D];
|
|
179
|
-
D++,
|
|
179
|
+
D++, K(t), Ar(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw j.length = 0, D = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
184
|
+
for (K(null), j.length = 0, D = 0; Me.length; )
|
|
185
|
+
Me.pop()();
|
|
186
186
|
for (let t = 0; t < k.length; t += 1) {
|
|
187
187
|
const r = k[t];
|
|
188
|
-
|
|
188
|
+
He.has(r) || (He.add(r), r());
|
|
189
189
|
}
|
|
190
190
|
k.length = 0;
|
|
191
191
|
} while (j.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
for (; ot.length; )
|
|
193
|
+
ot.pop()();
|
|
194
|
+
Ne = !1, He.clear(), K(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ar(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Z(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Pr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
206
206
|
}
|
|
207
207
|
const ue = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
209
|
-
function
|
|
208
|
+
let Or;
|
|
209
|
+
function It(e, t) {
|
|
210
210
|
e && e.i && (ue.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
if (e.o) {
|
|
212
|
+
function Lr(e, t, r, n) {
|
|
213
|
+
if (e && e.o) {
|
|
214
214
|
if (ue.has(e))
|
|
215
215
|
return;
|
|
216
|
-
ue.add(e),
|
|
216
|
+
ue.add(e), Or.c.push(() => {
|
|
217
217
|
ue.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ir(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), $e(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(At).filter(qe);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Z(o), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach($e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Mr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Pr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
232
|
+
function Nr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const h =
|
|
237
|
-
|
|
235
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const h = ee;
|
|
237
|
+
K(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
241
241
|
// state
|
|
242
242
|
props: o,
|
|
243
|
-
update:
|
|
243
|
+
update: I,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: nt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: nt(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || h.$$.root
|
|
258
258
|
};
|
|
259
259
|
s && s(u.root);
|
|
260
260
|
let l = !1;
|
|
261
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
262
|
-
const m =
|
|
263
|
-
return u.ctx && i(u.ctx[
|
|
264
|
-
}), u.update(), l = !0,
|
|
261
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
262
|
+
const m = p.length ? p[0] : f;
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Nr(e, c)), f;
|
|
264
|
+
}) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const
|
|
267
|
-
u.fragment && u.fragment.l(
|
|
266
|
+
const c = wr(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(be);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && It(e.$$.fragment), Ir(e, t.target, t.anchor), N();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
K(h);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Mt;
|
|
275
|
+
typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -314,24 +314,24 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
314
314
|
let o;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
o =
|
|
317
|
+
o = M("slot"), i !== "default" && S(o, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(h, u) {
|
|
324
|
-
|
|
324
|
+
Ke(h, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(h) {
|
|
327
|
-
h &&
|
|
327
|
+
h && be(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Sr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
@@ -418,8 +418,8 @@ function he(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let s = class extends
|
|
421
|
+
function Rr(e, t, r, n, i, o) {
|
|
422
|
+
let s = class extends Mt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
@@ -447,7 +447,7 @@ function Ir(e, t, r, n, i, o) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Gr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Mr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
Mr(this, 1), this.$destroy = I;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,8 +475,8 @@ class Mr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
478
|
+
if (!qe(r))
|
|
479
|
+
return I;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
482
482
|
const i = n.indexOf(r);
|
|
@@ -488,11 +488,11 @@ class Mr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Ur = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -507,43 +507,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
|
509
509
|
***************************************************************************** */
|
|
510
|
-
var
|
|
511
|
-
return
|
|
510
|
+
var Re = function(e, t) {
|
|
511
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
512
512
|
r.__proto__ = n;
|
|
513
513
|
} || function(r, n) {
|
|
514
514
|
for (var i in n)
|
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
-
},
|
|
516
|
+
}, Re(e, t);
|
|
517
517
|
};
|
|
518
|
-
function
|
|
518
|
+
function ne(e, t) {
|
|
519
519
|
if (typeof t != "function" && t !== null)
|
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
521
|
-
|
|
521
|
+
Re(e, t);
|
|
522
522
|
function r() {
|
|
523
523
|
this.constructor = e;
|
|
524
524
|
}
|
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
526
526
|
}
|
|
527
|
-
|
|
528
|
-
return x = Object.assign || function(t) {
|
|
529
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
530
|
-
r = arguments[n];
|
|
531
|
-
for (var o in r)
|
|
532
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
533
|
-
}
|
|
534
|
-
return t;
|
|
535
|
-
}, x.apply(this, arguments);
|
|
536
|
-
};
|
|
537
|
-
function Rr(e, t) {
|
|
538
|
-
var r = {};
|
|
539
|
-
for (var n in e)
|
|
540
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
541
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
542
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
543
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
544
|
-
return r;
|
|
545
|
-
}
|
|
546
|
-
function Ne(e) {
|
|
527
|
+
function Ge(e) {
|
|
547
528
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
548
529
|
if (r)
|
|
549
530
|
return r.call(e);
|
|
@@ -555,7 +536,7 @@ function Ne(e) {
|
|
|
555
536
|
};
|
|
556
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
557
538
|
}
|
|
558
|
-
function
|
|
539
|
+
function Ue(e, t) {
|
|
559
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
560
541
|
if (!r)
|
|
561
542
|
return e;
|
|
@@ -575,22 +556,22 @@ function Re(e, t) {
|
|
|
575
556
|
}
|
|
576
557
|
return o;
|
|
577
558
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
559
|
+
function De(e, t, r) {
|
|
560
|
+
if (arguments.length === 2)
|
|
580
561
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
581
562
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
582
563
|
return e.concat(o || t);
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function $(e) {
|
|
585
566
|
return typeof e == "function";
|
|
586
567
|
}
|
|
587
|
-
function
|
|
568
|
+
function Nt(e) {
|
|
588
569
|
var t = function(n) {
|
|
589
570
|
Error.call(n), n.stack = new Error().stack;
|
|
590
571
|
}, r = e(t);
|
|
591
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
592
573
|
}
|
|
593
|
-
var
|
|
574
|
+
var Be = Nt(function(e) {
|
|
594
575
|
return function(r) {
|
|
595
576
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
596
577
|
` + r.map(function(n, i) {
|
|
@@ -599,13 +580,13 @@ var Te = Lt(function(e) {
|
|
|
599
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
600
581
|
};
|
|
601
582
|
});
|
|
602
|
-
function
|
|
583
|
+
function Fe(e, t) {
|
|
603
584
|
if (e) {
|
|
604
585
|
var r = e.indexOf(t);
|
|
605
586
|
0 <= r && e.splice(r, 1);
|
|
606
587
|
}
|
|
607
588
|
}
|
|
608
|
-
var
|
|
589
|
+
var ge = function() {
|
|
609
590
|
function e(t) {
|
|
610
591
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
611
592
|
}
|
|
@@ -617,7 +598,7 @@ var be = function() {
|
|
|
617
598
|
if (s)
|
|
618
599
|
if (this._parentage = null, Array.isArray(s))
|
|
619
600
|
try {
|
|
620
|
-
for (var a =
|
|
601
|
+
for (var a = Ge(s), h = a.next(); !h.done; h = a.next()) {
|
|
621
602
|
var u = h.value;
|
|
622
603
|
u.remove(this);
|
|
623
604
|
}
|
|
@@ -634,29 +615,29 @@ var be = function() {
|
|
|
634
615
|
else
|
|
635
616
|
s.remove(this);
|
|
636
617
|
var l = this.initialTeardown;
|
|
637
|
-
if (
|
|
618
|
+
if ($(l))
|
|
638
619
|
try {
|
|
639
620
|
l();
|
|
640
621
|
} catch (y) {
|
|
641
|
-
o = y instanceof
|
|
622
|
+
o = y instanceof Be ? y.errors : [y];
|
|
642
623
|
}
|
|
643
|
-
var
|
|
644
|
-
if (
|
|
624
|
+
var c = this._finalizers;
|
|
625
|
+
if (c) {
|
|
645
626
|
this._finalizers = null;
|
|
646
627
|
try {
|
|
647
|
-
for (var
|
|
648
|
-
var m =
|
|
628
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
629
|
+
var m = p.value;
|
|
649
630
|
try {
|
|
650
|
-
|
|
631
|
+
st(m);
|
|
651
632
|
} catch (y) {
|
|
652
|
-
o = o ?? [], y instanceof
|
|
633
|
+
o = o ?? [], y instanceof Be ? o = De(De([], Ue(o)), Ue(y.errors)) : o.push(y);
|
|
653
634
|
}
|
|
654
635
|
}
|
|
655
636
|
} catch (y) {
|
|
656
637
|
n = { error: y };
|
|
657
638
|
} finally {
|
|
658
639
|
try {
|
|
659
|
-
|
|
640
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
660
641
|
} finally {
|
|
661
642
|
if (n)
|
|
662
643
|
throw n.error;
|
|
@@ -664,13 +645,13 @@ var be = function() {
|
|
|
664
645
|
}
|
|
665
646
|
}
|
|
666
647
|
if (o)
|
|
667
|
-
throw new
|
|
648
|
+
throw new Be(o);
|
|
668
649
|
}
|
|
669
650
|
}, e.prototype.add = function(t) {
|
|
670
651
|
var r;
|
|
671
652
|
if (t && t !== this)
|
|
672
653
|
if (this.closed)
|
|
673
|
-
|
|
654
|
+
st(t);
|
|
674
655
|
else {
|
|
675
656
|
if (t instanceof e) {
|
|
676
657
|
if (t.closed || t._hasParent(this))
|
|
@@ -687,56 +668,52 @@ var be = function() {
|
|
|
687
668
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
688
669
|
}, e.prototype._removeParent = function(t) {
|
|
689
670
|
var r = this._parentage;
|
|
690
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
671
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
691
672
|
}, e.prototype.remove = function(t) {
|
|
692
673
|
var r = this._finalizers;
|
|
693
|
-
r &&
|
|
674
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
694
675
|
}, e.EMPTY = function() {
|
|
695
676
|
var t = new e();
|
|
696
677
|
return t.closed = !0, t;
|
|
697
678
|
}(), e;
|
|
698
|
-
}(),
|
|
699
|
-
function
|
|
700
|
-
return e instanceof
|
|
701
|
-
}
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
-
}
|
|
705
|
-
var
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
Promise: void 0,
|
|
709
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
|
-
useDeprecatedNextContext: !1
|
|
711
|
-
}, Gr = {
|
|
679
|
+
}(), $t = ge.EMPTY;
|
|
680
|
+
function Rt(e) {
|
|
681
|
+
return e instanceof ge || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
682
|
+
}
|
|
683
|
+
function st(e) {
|
|
684
|
+
$(e) ? e() : e.unsubscribe();
|
|
685
|
+
}
|
|
686
|
+
var Dr = {
|
|
687
|
+
Promise: void 0
|
|
688
|
+
}, Fr = {
|
|
712
689
|
setTimeout: function(e, t) {
|
|
713
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
714
691
|
r[n - 2] = arguments[n];
|
|
715
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
716
693
|
},
|
|
717
694
|
clearTimeout: function(e) {
|
|
718
695
|
return clearTimeout(e);
|
|
719
696
|
},
|
|
720
697
|
delegate: void 0
|
|
721
698
|
};
|
|
722
|
-
function
|
|
723
|
-
|
|
699
|
+
function jr(e) {
|
|
700
|
+
Fr.setTimeout(function() {
|
|
724
701
|
throw e;
|
|
725
702
|
});
|
|
726
703
|
}
|
|
727
|
-
function
|
|
704
|
+
function at() {
|
|
728
705
|
}
|
|
729
706
|
function le(e) {
|
|
730
707
|
e();
|
|
731
708
|
}
|
|
732
|
-
var
|
|
733
|
-
|
|
709
|
+
var Gt = function(e) {
|
|
710
|
+
ne(t, e);
|
|
734
711
|
function t(r) {
|
|
735
712
|
var n = e.call(this) || this;
|
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Xr, n;
|
|
737
714
|
}
|
|
738
715
|
return t.create = function(r, n, i) {
|
|
739
|
-
return new
|
|
716
|
+
return new je(r, n, i);
|
|
740
717
|
}, t.prototype.next = function(r) {
|
|
741
718
|
this.isStopped || this._next(r);
|
|
742
719
|
}, t.prototype.error = function(r) {
|
|
@@ -760,7 +737,7 @@ var Mt = function(e) {
|
|
|
760
737
|
this.unsubscribe();
|
|
761
738
|
}
|
|
762
739
|
}, t;
|
|
763
|
-
}(
|
|
740
|
+
}(ge), kr = function() {
|
|
764
741
|
function e(t) {
|
|
765
742
|
this.partialObserver = t;
|
|
766
743
|
}
|
|
@@ -791,43 +768,43 @@ var Mt = function(e) {
|
|
|
791
768
|
oe(r);
|
|
792
769
|
}
|
|
793
770
|
}, e;
|
|
794
|
-
}(),
|
|
795
|
-
|
|
771
|
+
}(), je = function(e) {
|
|
772
|
+
ne(t, e);
|
|
796
773
|
function t(r, n, i) {
|
|
797
774
|
var o = e.call(this) || this, s;
|
|
798
|
-
return
|
|
775
|
+
return $(r) || !r ? s = {
|
|
799
776
|
next: r ?? void 0,
|
|
800
777
|
error: n ?? void 0,
|
|
801
778
|
complete: i ?? void 0
|
|
802
|
-
} : s = r, o.destination = new
|
|
779
|
+
} : s = r, o.destination = new kr(s), o;
|
|
803
780
|
}
|
|
804
781
|
return t;
|
|
805
|
-
}(
|
|
782
|
+
}(Gt);
|
|
806
783
|
function oe(e) {
|
|
807
|
-
|
|
784
|
+
jr(e);
|
|
808
785
|
}
|
|
809
|
-
function
|
|
786
|
+
function Vr(e) {
|
|
810
787
|
throw e;
|
|
811
788
|
}
|
|
812
|
-
var
|
|
789
|
+
var Xr = {
|
|
813
790
|
closed: !0,
|
|
814
|
-
next:
|
|
815
|
-
error:
|
|
816
|
-
complete:
|
|
817
|
-
},
|
|
791
|
+
next: at,
|
|
792
|
+
error: Vr,
|
|
793
|
+
complete: at
|
|
794
|
+
}, Wr = function() {
|
|
818
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
819
796
|
}();
|
|
820
|
-
function
|
|
797
|
+
function zr(e) {
|
|
821
798
|
return e;
|
|
822
799
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.length === 0 ?
|
|
800
|
+
function Zr(e) {
|
|
801
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
825
802
|
return e.reduce(function(n, i) {
|
|
826
803
|
return i(n);
|
|
827
804
|
}, r);
|
|
828
805
|
};
|
|
829
806
|
}
|
|
830
|
-
var
|
|
807
|
+
var ut = function() {
|
|
831
808
|
function e(t) {
|
|
832
809
|
t && (this._subscribe = t);
|
|
833
810
|
}
|
|
@@ -835,7 +812,7 @@ var it = function() {
|
|
|
835
812
|
var r = new e();
|
|
836
813
|
return r.source = this, r.operator = t, r;
|
|
837
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
838
|
-
var i = this, o =
|
|
815
|
+
var i = this, o = Jr(t) ? t : new je(t, r, n);
|
|
839
816
|
return le(function() {
|
|
840
817
|
var s = i, a = s.operator, h = s.source;
|
|
841
818
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -848,8 +825,8 @@ var it = function() {
|
|
|
848
825
|
}
|
|
849
826
|
}, e.prototype.forEach = function(t, r) {
|
|
850
827
|
var n = this;
|
|
851
|
-
return r =
|
|
852
|
-
var s = new
|
|
828
|
+
return r = ht(r), new r(function(i, o) {
|
|
829
|
+
var s = new je({
|
|
853
830
|
next: function(a) {
|
|
854
831
|
try {
|
|
855
832
|
t(a);
|
|
@@ -865,15 +842,15 @@ var it = function() {
|
|
|
865
842
|
}, e.prototype._subscribe = function(t) {
|
|
866
843
|
var r;
|
|
867
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
868
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Wr] = function() {
|
|
869
846
|
return this;
|
|
870
847
|
}, e.prototype.pipe = function() {
|
|
871
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
872
849
|
t[r] = arguments[r];
|
|
873
|
-
return
|
|
850
|
+
return Zr(t)(this);
|
|
874
851
|
}, e.prototype.toPromise = function(t) {
|
|
875
852
|
var r = this;
|
|
876
|
-
return t =
|
|
853
|
+
return t = ht(t), new t(function(n, i) {
|
|
877
854
|
var o;
|
|
878
855
|
r.subscribe(function(s) {
|
|
879
856
|
return o = s;
|
|
@@ -887,32 +864,32 @@ var it = function() {
|
|
|
887
864
|
return new e(t);
|
|
888
865
|
}, e;
|
|
889
866
|
}();
|
|
890
|
-
function
|
|
867
|
+
function ht(e) {
|
|
891
868
|
var t;
|
|
892
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? Dr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
893
870
|
}
|
|
894
|
-
function
|
|
895
|
-
return e &&
|
|
871
|
+
function Qr(e) {
|
|
872
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
896
873
|
}
|
|
897
|
-
function
|
|
898
|
-
return e && e instanceof
|
|
874
|
+
function Jr(e) {
|
|
875
|
+
return e && e instanceof Gt || Qr(e) && Rt(e);
|
|
899
876
|
}
|
|
900
|
-
var
|
|
877
|
+
var Yr = Nt(function(e) {
|
|
901
878
|
return function() {
|
|
902
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
903
880
|
};
|
|
904
|
-
}),
|
|
905
|
-
|
|
881
|
+
}), Ut = function(e) {
|
|
882
|
+
ne(t, e);
|
|
906
883
|
function t() {
|
|
907
884
|
var r = e.call(this) || this;
|
|
908
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
909
886
|
}
|
|
910
887
|
return t.prototype.lift = function(r) {
|
|
911
|
-
var n = new
|
|
888
|
+
var n = new lt(this, this);
|
|
912
889
|
return n.operator = r, n;
|
|
913
890
|
}, t.prototype._throwIfClosed = function() {
|
|
914
891
|
if (this.closed)
|
|
915
|
-
throw new
|
|
892
|
+
throw new Yr();
|
|
916
893
|
}, t.prototype.next = function(r) {
|
|
917
894
|
var n = this;
|
|
918
895
|
le(function() {
|
|
@@ -920,7 +897,7 @@ var Zr = Lt(function(e) {
|
|
|
920
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
921
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
922
899
|
try {
|
|
923
|
-
for (var s =
|
|
900
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
924
901
|
var h = a.value;
|
|
925
902
|
h.next(r);
|
|
926
903
|
}
|
|
@@ -969,20 +946,20 @@ var Zr = Lt(function(e) {
|
|
|
969
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
970
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
971
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
972
|
-
return o || s ?
|
|
973
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? $t : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
950
|
+
n.currentObservers = null, Fe(a, r);
|
|
974
951
|
}));
|
|
975
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
976
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
977
954
|
i ? r.error(o) : s && r.complete();
|
|
978
955
|
}, t.prototype.asObservable = function() {
|
|
979
|
-
var r = new
|
|
956
|
+
var r = new ut();
|
|
980
957
|
return r.source = this, r;
|
|
981
958
|
}, t.create = function(r, n) {
|
|
982
|
-
return new
|
|
959
|
+
return new lt(r, n);
|
|
983
960
|
}, t;
|
|
984
|
-
}(
|
|
985
|
-
|
|
961
|
+
}(ut), lt = function(e) {
|
|
962
|
+
ne(t, e);
|
|
986
963
|
function t(r, n) {
|
|
987
964
|
var i = e.call(this) || this;
|
|
988
965
|
return i.destination = r, i.source = n, i;
|
|
@@ -998,17 +975,17 @@ var Zr = Lt(function(e) {
|
|
|
998
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
999
976
|
}, t.prototype._subscribe = function(r) {
|
|
1000
977
|
var n, i;
|
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
|
|
1002
979
|
}, t;
|
|
1003
|
-
}(
|
|
980
|
+
}(Ut), Dt = {
|
|
1004
981
|
now: function() {
|
|
1005
|
-
return (
|
|
982
|
+
return (Dt.delegate || Date).now();
|
|
1006
983
|
},
|
|
1007
984
|
delegate: void 0
|
|
1008
|
-
},
|
|
1009
|
-
|
|
985
|
+
}, qr = function(e) {
|
|
986
|
+
ne(t, e);
|
|
1010
987
|
function t(r, n, i) {
|
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
1012
989
|
var o = e.call(this) || this;
|
|
1013
990
|
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;
|
|
1014
991
|
}
|
|
@@ -1028,24 +1005,24 @@ var Zr = Lt(function(e) {
|
|
|
1028
1005
|
u && o.splice(0, u + 1);
|
|
1029
1006
|
}
|
|
1030
1007
|
}, t;
|
|
1031
|
-
}(
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const r = new
|
|
1035
|
-
|
|
1008
|
+
}(Ut);
|
|
1009
|
+
const ct = [], ft = {}, Kr = (e, t = 0) => {
|
|
1010
|
+
if (ct.indexOf(e) == -1) {
|
|
1011
|
+
const r = new qr(t);
|
|
1012
|
+
ft[e] = r, ct.push(e);
|
|
1036
1013
|
}
|
|
1037
|
-
return
|
|
1014
|
+
return ft[e];
|
|
1038
1015
|
}, F = [];
|
|
1039
|
-
function
|
|
1016
|
+
function en(e, t) {
|
|
1040
1017
|
return {
|
|
1041
|
-
subscribe:
|
|
1018
|
+
subscribe: ye(e, t).subscribe
|
|
1042
1019
|
};
|
|
1043
1020
|
}
|
|
1044
|
-
function
|
|
1021
|
+
function ye(e, t = I) {
|
|
1045
1022
|
let r;
|
|
1046
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1047
1024
|
function i(a) {
|
|
1048
|
-
if (
|
|
1025
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1049
1026
|
const h = !F.length;
|
|
1050
1027
|
for (const u of n)
|
|
1051
1028
|
u[1](), F.push(u, e);
|
|
@@ -1059,153 +1036,192 @@ function ge(e, t = O) {
|
|
|
1059
1036
|
function o(a) {
|
|
1060
1037
|
i(a(e));
|
|
1061
1038
|
}
|
|
1062
|
-
function s(a, h =
|
|
1039
|
+
function s(a, h = I) {
|
|
1063
1040
|
const u = [a, h];
|
|
1064
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1041
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
1065
1042
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1066
1043
|
};
|
|
1067
1044
|
}
|
|
1068
1045
|
return { set: i, update: o, subscribe: s };
|
|
1069
1046
|
}
|
|
1070
|
-
function
|
|
1047
|
+
function Q(e, t, r) {
|
|
1071
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1072
1049
|
if (!i.every(Boolean))
|
|
1073
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1074
1051
|
const o = t.length < 2;
|
|
1075
|
-
return
|
|
1052
|
+
return en(r, (s, a) => {
|
|
1076
1053
|
let h = !1;
|
|
1077
1054
|
const u = [];
|
|
1078
|
-
let l = 0,
|
|
1079
|
-
const
|
|
1055
|
+
let l = 0, c = I;
|
|
1056
|
+
const f = () => {
|
|
1080
1057
|
if (l)
|
|
1081
1058
|
return;
|
|
1082
|
-
|
|
1059
|
+
c();
|
|
1083
1060
|
const m = t(n ? u[0] : u, s, a);
|
|
1084
|
-
o ? s(m) :
|
|
1085
|
-
},
|
|
1086
|
-
(m, y) =>
|
|
1061
|
+
o ? s(m) : c = qe(m) ? m : I;
|
|
1062
|
+
}, p = i.map(
|
|
1063
|
+
(m, y) => Ot(
|
|
1087
1064
|
m,
|
|
1088
1065
|
(E) => {
|
|
1089
|
-
u[y] = E, l &= ~(1 << y), h &&
|
|
1066
|
+
u[y] = E, l &= ~(1 << y), h && f();
|
|
1090
1067
|
},
|
|
1091
1068
|
() => {
|
|
1092
1069
|
l |= 1 << y;
|
|
1093
1070
|
}
|
|
1094
1071
|
)
|
|
1095
1072
|
);
|
|
1096
|
-
return h = !0,
|
|
1097
|
-
|
|
1073
|
+
return h = !0, f(), function() {
|
|
1074
|
+
Z(p), c(), h = !1;
|
|
1098
1075
|
};
|
|
1099
1076
|
});
|
|
1100
1077
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1078
|
+
function tn(e) {
|
|
1079
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1103
1080
|
}
|
|
1104
|
-
var
|
|
1105
|
-
return
|
|
1081
|
+
var rn = function(t) {
|
|
1082
|
+
return nn(t) && !on(t);
|
|
1106
1083
|
};
|
|
1107
|
-
function
|
|
1084
|
+
function nn(e) {
|
|
1108
1085
|
return !!e && typeof e == "object";
|
|
1109
1086
|
}
|
|
1110
|
-
function
|
|
1087
|
+
function on(e) {
|
|
1111
1088
|
var t = Object.prototype.toString.call(e);
|
|
1112
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || un(e);
|
|
1113
1090
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1116
|
-
return e.$$typeof ===
|
|
1091
|
+
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function un(e) {
|
|
1093
|
+
return e.$$typeof === an;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1095
|
+
function hn(e) {
|
|
1119
1096
|
return Array.isArray(e) ? [] : {};
|
|
1120
1097
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function te(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(hn(e), e, t) : e;
|
|
1123
1100
|
}
|
|
1124
|
-
function
|
|
1101
|
+
function ln(e, t, r) {
|
|
1125
1102
|
return e.concat(t).map(function(n) {
|
|
1126
|
-
return
|
|
1103
|
+
return te(n, r);
|
|
1127
1104
|
});
|
|
1128
1105
|
}
|
|
1129
|
-
function
|
|
1106
|
+
function cn(e, t) {
|
|
1130
1107
|
if (!t.customMerge)
|
|
1131
|
-
return
|
|
1108
|
+
return V;
|
|
1132
1109
|
var r = t.customMerge(e);
|
|
1133
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : V;
|
|
1134
1111
|
}
|
|
1135
|
-
function
|
|
1112
|
+
function fn(e) {
|
|
1136
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1137
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1138
1115
|
}) : [];
|
|
1139
1116
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function mt(e) {
|
|
1118
|
+
return Object.keys(e).concat(fn(e));
|
|
1142
1119
|
}
|
|
1143
|
-
function
|
|
1120
|
+
function Ft(e, t) {
|
|
1144
1121
|
try {
|
|
1145
1122
|
return t in e;
|
|
1146
1123
|
} catch {
|
|
1147
1124
|
return !1;
|
|
1148
1125
|
}
|
|
1149
1126
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1127
|
+
function mn(e, t) {
|
|
1128
|
+
return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1152
1129
|
}
|
|
1153
|
-
function
|
|
1130
|
+
function pn(e, t, r) {
|
|
1154
1131
|
var n = {};
|
|
1155
|
-
return r.isMergeableObject(e) &&
|
|
1156
|
-
n[i] =
|
|
1157
|
-
}),
|
|
1158
|
-
|
|
1132
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = te(e[i], r);
|
|
1134
|
+
}), mt(t).forEach(function(i) {
|
|
1135
|
+
mn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1159
1136
|
}), n;
|
|
1160
1137
|
}
|
|
1161
|
-
function
|
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
function V(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = te;
|
|
1163
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1164
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : te(t, r);
|
|
1165
1142
|
}
|
|
1166
|
-
|
|
1143
|
+
V.all = function(t, r) {
|
|
1167
1144
|
if (!Array.isArray(t))
|
|
1168
1145
|
throw new Error("first argument should be an array");
|
|
1169
1146
|
return t.reduce(function(n, i) {
|
|
1170
|
-
return
|
|
1147
|
+
return V(n, i, r);
|
|
1171
1148
|
}, {});
|
|
1172
1149
|
};
|
|
1173
|
-
var
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1176
|
-
|
|
1150
|
+
var dn = V, bn = dn;
|
|
1151
|
+
const gn = /* @__PURE__ */ tn(bn);
|
|
1152
|
+
var ke = function(e, t) {
|
|
1153
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1154
|
+
r.__proto__ = n;
|
|
1155
|
+
} || function(r, n) {
|
|
1156
|
+
for (var i in n)
|
|
1157
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1158
|
+
}, ke(e, t);
|
|
1159
|
+
};
|
|
1160
|
+
function ve(e, t) {
|
|
1161
|
+
if (typeof t != "function" && t !== null)
|
|
1162
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1163
|
+
ke(e, t);
|
|
1164
|
+
function r() {
|
|
1165
|
+
this.constructor = e;
|
|
1166
|
+
}
|
|
1167
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1168
|
+
}
|
|
1169
|
+
var L = function() {
|
|
1170
|
+
return L = Object.assign || function(t) {
|
|
1171
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1172
|
+
r = arguments[n];
|
|
1173
|
+
for (var o in r)
|
|
1174
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1175
|
+
}
|
|
1176
|
+
return t;
|
|
1177
|
+
}, L.apply(this, arguments);
|
|
1178
|
+
};
|
|
1179
|
+
function yn(e, t) {
|
|
1180
|
+
var r = {};
|
|
1181
|
+
for (var n in e)
|
|
1182
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1183
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1184
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1185
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1186
|
+
return r;
|
|
1187
|
+
}
|
|
1188
|
+
function Ce(e, t, r) {
|
|
1189
|
+
if (r || arguments.length === 2)
|
|
1190
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1191
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1192
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1193
|
+
}
|
|
1194
|
+
function Ae(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1177
1196
|
return i(e, {
|
|
1178
1197
|
cache: r,
|
|
1179
1198
|
serializer: n
|
|
1180
1199
|
});
|
|
1181
1200
|
}
|
|
1182
|
-
function
|
|
1201
|
+
function vn(e) {
|
|
1183
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1184
1203
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1204
|
+
function xn(e, t, r, n) {
|
|
1205
|
+
var i = vn(n) ? n : r(n), o = t.get(i);
|
|
1187
1206
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1188
1207
|
}
|
|
1189
|
-
function
|
|
1208
|
+
function jt(e, t, r) {
|
|
1190
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1191
1210
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1192
1211
|
}
|
|
1193
|
-
function
|
|
1212
|
+
function kt(e, t, r, n, i) {
|
|
1194
1213
|
return r.bind(t, e, n, i);
|
|
1195
1214
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var r = e.length === 1 ?
|
|
1198
|
-
return
|
|
1215
|
+
function _n(e, t) {
|
|
1216
|
+
var r = e.length === 1 ? xn : jt;
|
|
1217
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
1199
1218
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return
|
|
1219
|
+
function En(e, t) {
|
|
1220
|
+
return kt(e, this, jt, t.cache.create(), t.serializer);
|
|
1202
1221
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return Qe(e, this, Gt, t.cache.create(), t.serializer);
|
|
1205
|
-
}
|
|
1206
|
-
var xn = function() {
|
|
1222
|
+
var wn = function() {
|
|
1207
1223
|
return JSON.stringify(arguments);
|
|
1208
|
-
},
|
|
1224
|
+
}, Sn = (
|
|
1209
1225
|
/** @class */
|
|
1210
1226
|
function() {
|
|
1211
1227
|
function e() {
|
|
@@ -1217,62 +1233,71 @@ var xn = function() {
|
|
|
1217
1233
|
this.cache[t] = r;
|
|
1218
1234
|
}, e;
|
|
1219
1235
|
}()
|
|
1220
|
-
),
|
|
1236
|
+
), Tn = {
|
|
1221
1237
|
create: function() {
|
|
1222
|
-
return new
|
|
1238
|
+
return new Sn();
|
|
1223
1239
|
}
|
|
1224
|
-
},
|
|
1225
|
-
variadic:
|
|
1226
|
-
|
|
1227
|
-
|
|
1240
|
+
}, Pe = {
|
|
1241
|
+
variadic: En
|
|
1242
|
+
}, me = function() {
|
|
1243
|
+
return me = Object.assign || function(t) {
|
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1245
|
+
r = arguments[n];
|
|
1246
|
+
for (var o in r)
|
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1248
|
+
}
|
|
1249
|
+
return t;
|
|
1250
|
+
}, me.apply(this, arguments);
|
|
1251
|
+
};
|
|
1252
|
+
var d;
|
|
1228
1253
|
(function(e) {
|
|
1229
1254
|
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";
|
|
1230
|
-
})(
|
|
1255
|
+
})(d || (d = {}));
|
|
1231
1256
|
var v;
|
|
1232
1257
|
(function(e) {
|
|
1233
1258
|
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";
|
|
1234
1259
|
})(v || (v = {}));
|
|
1235
|
-
var
|
|
1260
|
+
var X;
|
|
1236
1261
|
(function(e) {
|
|
1237
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1238
|
-
})(
|
|
1239
|
-
function
|
|
1263
|
+
})(X || (X = {}));
|
|
1264
|
+
function pt(e) {
|
|
1240
1265
|
return e.type === v.literal;
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1267
|
+
function Hn(e) {
|
|
1243
1268
|
return e.type === v.argument;
|
|
1244
1269
|
}
|
|
1245
|
-
function
|
|
1270
|
+
function Vt(e) {
|
|
1246
1271
|
return e.type === v.number;
|
|
1247
1272
|
}
|
|
1248
|
-
function
|
|
1273
|
+
function Xt(e) {
|
|
1249
1274
|
return e.type === v.date;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1276
|
+
function Wt(e) {
|
|
1252
1277
|
return e.type === v.time;
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1279
|
+
function zt(e) {
|
|
1255
1280
|
return e.type === v.select;
|
|
1256
1281
|
}
|
|
1257
|
-
function
|
|
1282
|
+
function Zt(e) {
|
|
1258
1283
|
return e.type === v.plural;
|
|
1259
1284
|
}
|
|
1260
|
-
function
|
|
1285
|
+
function Bn(e) {
|
|
1261
1286
|
return e.type === v.pound;
|
|
1262
1287
|
}
|
|
1263
|
-
function
|
|
1288
|
+
function Qt(e) {
|
|
1264
1289
|
return e.type === v.tag;
|
|
1265
1290
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function Jt(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1268
1293
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1294
|
+
function Ve(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1271
1296
|
}
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1297
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1298
|
+
function An(e) {
|
|
1274
1299
|
var t = {};
|
|
1275
|
-
return e.replace(
|
|
1300
|
+
return e.replace(Cn, function(r) {
|
|
1276
1301
|
var n = r.length;
|
|
1277
1302
|
switch (r[0]) {
|
|
1278
1303
|
case "G":
|
|
@@ -1361,36 +1386,46 @@ function Tn(e) {
|
|
|
1361
1386
|
return "";
|
|
1362
1387
|
}), t;
|
|
1363
1388
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1389
|
+
var _ = function() {
|
|
1390
|
+
return _ = Object.assign || function(t) {
|
|
1391
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1392
|
+
r = arguments[n];
|
|
1393
|
+
for (var o in r)
|
|
1394
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1395
|
+
}
|
|
1396
|
+
return t;
|
|
1397
|
+
}, _.apply(this, arguments);
|
|
1398
|
+
};
|
|
1399
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
+
function On(e) {
|
|
1366
1401
|
if (e.length === 0)
|
|
1367
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1368
|
-
for (var t = e.split(
|
|
1369
|
-
return
|
|
1403
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1404
|
+
return f.length > 0;
|
|
1370
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1371
1406
|
var o = i[n], s = o.split("/");
|
|
1372
1407
|
if (s.length === 0)
|
|
1373
1408
|
throw new Error("Invalid number skeleton");
|
|
1374
1409
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1410
|
+
var c = l[u];
|
|
1411
|
+
if (c.length === 0)
|
|
1377
1412
|
throw new Error("Invalid number skeleton");
|
|
1378
1413
|
}
|
|
1379
1414
|
r.push({ stem: a, options: h });
|
|
1380
1415
|
}
|
|
1381
1416
|
return r;
|
|
1382
1417
|
}
|
|
1383
|
-
function
|
|
1418
|
+
function Ln(e) {
|
|
1384
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1385
1420
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1421
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, Kt = /^(0+)$/;
|
|
1422
|
+
function bt(e) {
|
|
1388
1423
|
var t = {};
|
|
1389
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1424
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1390
1425
|
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)), "";
|
|
1391
1426
|
}), t;
|
|
1392
1427
|
}
|
|
1393
|
-
function
|
|
1428
|
+
function er(e) {
|
|
1394
1429
|
switch (e) {
|
|
1395
1430
|
case "sign-auto":
|
|
1396
1431
|
return {
|
|
@@ -1430,7 +1465,7 @@ function Jt(e) {
|
|
|
1430
1465
|
};
|
|
1431
1466
|
}
|
|
1432
1467
|
}
|
|
1433
|
-
function
|
|
1468
|
+
function Mn(e) {
|
|
1434
1469
|
var t;
|
|
1435
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1436
1471
|
notation: "engineering"
|
|
@@ -1438,17 +1473,17 @@ function Pn(e) {
|
|
|
1438
1473
|
notation: "scientific"
|
|
1439
1474
|
}, e = e.slice(1)), t) {
|
|
1440
1475
|
var r = e.slice(0, 2);
|
|
1441
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1476
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kt.test(e))
|
|
1442
1477
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1443
1478
|
t.minimumIntegerDigits = e.length;
|
|
1444
1479
|
}
|
|
1445
1480
|
return t;
|
|
1446
1481
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var t = {}, r =
|
|
1482
|
+
function gt(e) {
|
|
1483
|
+
var t = {}, r = er(e);
|
|
1449
1484
|
return r || t;
|
|
1450
1485
|
}
|
|
1451
|
-
function
|
|
1486
|
+
function Nn(e) {
|
|
1452
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1453
1488
|
var i = n[r];
|
|
1454
1489
|
switch (i.stem) {
|
|
@@ -1472,7 +1507,7 @@ function Ln(e) {
|
|
|
1472
1507
|
continue;
|
|
1473
1508
|
case "measure-unit":
|
|
1474
1509
|
case "unit":
|
|
1475
|
-
t.style = "unit", t.unit =
|
|
1510
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1476
1511
|
continue;
|
|
1477
1512
|
case "compact-short":
|
|
1478
1513
|
case "K":
|
|
@@ -1483,13 +1518,13 @@ function Ln(e) {
|
|
|
1483
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1484
1519
|
continue;
|
|
1485
1520
|
case "scientific":
|
|
1486
|
-
t =
|
|
1487
|
-
return
|
|
1521
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1522
|
+
return _(_({}, h), gt(u));
|
|
1488
1523
|
}, {}));
|
|
1489
1524
|
continue;
|
|
1490
1525
|
case "engineering":
|
|
1491
|
-
t =
|
|
1492
|
-
return
|
|
1526
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1527
|
+
return _(_({}, h), gt(u));
|
|
1493
1528
|
}, {}));
|
|
1494
1529
|
continue;
|
|
1495
1530
|
case "notation-simple":
|
|
@@ -1534,41 +1569,41 @@ function Ln(e) {
|
|
|
1534
1569
|
case "integer-width":
|
|
1535
1570
|
if (i.options.length > 1)
|
|
1536
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1537
|
-
i.options[0].replace(
|
|
1572
|
+
i.options[0].replace(In, function(h, u, l, c, f, p) {
|
|
1538
1573
|
if (u)
|
|
1539
1574
|
t.minimumIntegerDigits = l.length;
|
|
1540
1575
|
else {
|
|
1541
|
-
if (
|
|
1576
|
+
if (c && f)
|
|
1542
1577
|
throw new Error("We currently do not support maximum integer digits");
|
|
1543
|
-
if (
|
|
1578
|
+
if (p)
|
|
1544
1579
|
throw new Error("We currently do not support exact integer digits");
|
|
1545
1580
|
}
|
|
1546
1581
|
return "";
|
|
1547
1582
|
});
|
|
1548
1583
|
continue;
|
|
1549
1584
|
}
|
|
1550
|
-
if (
|
|
1585
|
+
if (Kt.test(i.stem)) {
|
|
1551
1586
|
t.minimumIntegerDigits = i.stem.length;
|
|
1552
1587
|
continue;
|
|
1553
1588
|
}
|
|
1554
|
-
if (
|
|
1589
|
+
if (dt.test(i.stem)) {
|
|
1555
1590
|
if (i.options.length > 1)
|
|
1556
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1557
|
-
i.stem.replace(
|
|
1558
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1592
|
+
i.stem.replace(dt, function(h, u, l, c, f, p) {
|
|
1593
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1559
1594
|
});
|
|
1560
1595
|
var o = i.options[0];
|
|
1561
|
-
o === "w" ? t =
|
|
1596
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
|
|
1562
1597
|
continue;
|
|
1563
1598
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
t =
|
|
1599
|
+
if (qt.test(i.stem)) {
|
|
1600
|
+
t = _(_({}, t), bt(i.stem));
|
|
1566
1601
|
continue;
|
|
1567
1602
|
}
|
|
1568
|
-
var s =
|
|
1569
|
-
s && (t =
|
|
1570
|
-
var a =
|
|
1571
|
-
a && (t =
|
|
1603
|
+
var s = er(i.stem);
|
|
1604
|
+
s && (t = _(_({}, t), s));
|
|
1605
|
+
var a = Mn(i.stem);
|
|
1606
|
+
a && (t = _(_({}, t), a));
|
|
1572
1607
|
}
|
|
1573
1608
|
return t;
|
|
1574
1609
|
}
|
|
@@ -2987,13 +3022,13 @@ var se = {
|
|
|
2987
3022
|
"h"
|
|
2988
3023
|
]
|
|
2989
3024
|
};
|
|
2990
|
-
function
|
|
3025
|
+
function $n(e, t) {
|
|
2991
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2992
3027
|
var i = e.charAt(n);
|
|
2993
3028
|
if (i === "j") {
|
|
2994
3029
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2995
3030
|
o++, n++;
|
|
2996
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3031
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
|
|
2997
3032
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2998
3033
|
r += h;
|
|
2999
3034
|
for (; s-- > 0; )
|
|
@@ -3003,7 +3038,7 @@ function On(e, t) {
|
|
|
3003
3038
|
}
|
|
3004
3039
|
return r;
|
|
3005
3040
|
}
|
|
3006
|
-
function
|
|
3041
|
+
function Rn(e) {
|
|
3007
3042
|
var t = e.hourCycle;
|
|
3008
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3009
3044
|
e.hourCycles && // @ts-ignore
|
|
@@ -3025,20 +3060,20 @@ function In(e) {
|
|
|
3025
3060
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3026
3061
|
return i[0];
|
|
3027
3062
|
}
|
|
3028
|
-
var
|
|
3063
|
+
var Oe, Gn = new RegExp("^".concat(Yt.source, "*")), Un = new RegExp("".concat(Yt.source, "*$"));
|
|
3029
3064
|
function g(e, t) {
|
|
3030
3065
|
return { start: e, end: t };
|
|
3031
3066
|
}
|
|
3032
|
-
var
|
|
3067
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
|
|
3033
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3034
|
-
},
|
|
3069
|
+
}, Xe = !0;
|
|
3035
3070
|
try {
|
|
3036
|
-
var
|
|
3037
|
-
|
|
3071
|
+
var Zn = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
+
Xe = ((Oe = Zn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
3038
3073
|
} catch {
|
|
3039
|
-
|
|
3074
|
+
Xe = !1;
|
|
3040
3075
|
}
|
|
3041
|
-
var
|
|
3076
|
+
var yt = Dn ? (
|
|
3042
3077
|
// Native
|
|
3043
3078
|
function(t, r, n) {
|
|
3044
3079
|
return t.startsWith(r, n);
|
|
@@ -3048,7 +3083,7 @@ var dt = Rn ? (
|
|
|
3048
3083
|
function(t, r, n) {
|
|
3049
3084
|
return t.slice(n, n + r.length) === r;
|
|
3050
3085
|
}
|
|
3051
|
-
),
|
|
3086
|
+
), We = Fn ? String.fromCodePoint : (
|
|
3052
3087
|
// IE11
|
|
3053
3088
|
function() {
|
|
3054
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3060,9 +3095,9 @@ var dt = Rn ? (
|
|
|
3060
3095
|
}
|
|
3061
3096
|
return n;
|
|
3062
3097
|
}
|
|
3063
|
-
),
|
|
3098
|
+
), vt = (
|
|
3064
3099
|
// native
|
|
3065
|
-
|
|
3100
|
+
jn ? Object.fromEntries : (
|
|
3066
3101
|
// Ponyfill
|
|
3067
3102
|
function(t) {
|
|
3068
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3072,7 +3107,7 @@ var dt = Rn ? (
|
|
|
3072
3107
|
return r;
|
|
3073
3108
|
}
|
|
3074
3109
|
)
|
|
3075
|
-
),
|
|
3110
|
+
), tr = kn ? (
|
|
3076
3111
|
// Native
|
|
3077
3112
|
function(t, r) {
|
|
3078
3113
|
return t.codePointAt(r);
|
|
@@ -3086,7 +3121,7 @@ var dt = Rn ? (
|
|
|
3086
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3087
3122
|
}
|
|
3088
3123
|
}
|
|
3089
|
-
),
|
|
3124
|
+
), Qn = Vn ? (
|
|
3090
3125
|
// Native
|
|
3091
3126
|
function(t) {
|
|
3092
3127
|
return t.trimStart();
|
|
@@ -3094,9 +3129,9 @@ var dt = Rn ? (
|
|
|
3094
3129
|
) : (
|
|
3095
3130
|
// Ponyfill
|
|
3096
3131
|
function(t) {
|
|
3097
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Gn, "");
|
|
3098
3133
|
}
|
|
3099
|
-
),
|
|
3134
|
+
), Jn = Xn ? (
|
|
3100
3135
|
// Native
|
|
3101
3136
|
function(t) {
|
|
3102
3137
|
return t.trimEnd();
|
|
@@ -3104,32 +3139,32 @@ var dt = Rn ? (
|
|
|
3104
3139
|
) : (
|
|
3105
3140
|
// Ponyfill
|
|
3106
3141
|
function(t) {
|
|
3107
|
-
return t.replace(
|
|
3142
|
+
return t.replace(Un, "");
|
|
3108
3143
|
}
|
|
3109
3144
|
);
|
|
3110
|
-
function
|
|
3145
|
+
function rr(e, t) {
|
|
3111
3146
|
return new RegExp(e, t);
|
|
3112
3147
|
}
|
|
3113
|
-
var
|
|
3114
|
-
if (
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3148
|
+
var ze;
|
|
3149
|
+
if (Xe) {
|
|
3150
|
+
var xt = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3151
|
+
ze = function(t, r) {
|
|
3117
3152
|
var n;
|
|
3118
|
-
|
|
3119
|
-
var i =
|
|
3153
|
+
xt.lastIndex = r;
|
|
3154
|
+
var i = xt.exec(t);
|
|
3120
3155
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3121
3156
|
};
|
|
3122
3157
|
} else
|
|
3123
|
-
|
|
3158
|
+
ze = function(t, r) {
|
|
3124
3159
|
for (var n = []; ; ) {
|
|
3125
|
-
var i =
|
|
3126
|
-
if (i === void 0 ||
|
|
3160
|
+
var i = tr(t, r);
|
|
3161
|
+
if (i === void 0 || nr(i) || ei(i))
|
|
3127
3162
|
break;
|
|
3128
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3129
3164
|
}
|
|
3130
|
-
return
|
|
3165
|
+
return We.apply(void 0, n);
|
|
3131
3166
|
};
|
|
3132
|
-
var
|
|
3167
|
+
var Yn = (
|
|
3133
3168
|
/** @class */
|
|
3134
3169
|
function() {
|
|
3135
3170
|
function e(t, r) {
|
|
@@ -3159,8 +3194,8 @@ var zn = (
|
|
|
3159
3194
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3160
3195
|
if (n)
|
|
3161
3196
|
break;
|
|
3162
|
-
return this.error(
|
|
3163
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3197
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3198
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3164
3199
|
var s = this.parseTag(t, r);
|
|
3165
3200
|
if (s.err)
|
|
3166
3201
|
return s;
|
|
@@ -3193,10 +3228,10 @@ var zn = (
|
|
|
3193
3228
|
return o;
|
|
3194
3229
|
var s = o.val, a = this.clonePosition();
|
|
3195
3230
|
if (this.bumpIf("</")) {
|
|
3196
|
-
if (this.isEOF() || !
|
|
3197
|
-
return this.error(
|
|
3231
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3232
|
+
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3198
3233
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3199
|
-
return i !== u ? this.error(
|
|
3234
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3200
3235
|
val: {
|
|
3201
3236
|
type: v.tag,
|
|
3202
3237
|
value: i,
|
|
@@ -3204,14 +3239,14 @@ var zn = (
|
|
|
3204
3239
|
location: g(n, this.clonePosition())
|
|
3205
3240
|
},
|
|
3206
3241
|
err: null
|
|
3207
|
-
} : this.error(
|
|
3242
|
+
} : this.error(d.INVALID_TAG, g(a, this.clonePosition())));
|
|
3208
3243
|
} else
|
|
3209
|
-
return this.error(
|
|
3244
|
+
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3210
3245
|
} else
|
|
3211
|
-
return this.error(
|
|
3246
|
+
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3212
3247
|
}, e.prototype.parseTagName = function() {
|
|
3213
3248
|
var t = this.offset();
|
|
3214
|
-
for (this.bump(); !this.isEOF() &&
|
|
3249
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3215
3250
|
this.bump();
|
|
3216
3251
|
return this.message.slice(t, this.offset());
|
|
3217
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3240,7 +3275,7 @@ var zn = (
|
|
|
3240
3275
|
};
|
|
3241
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3242
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3243
|
-
!
|
|
3278
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3244
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3245
3280
|
if (this.isEOF() || this.char() !== 39)
|
|
3246
3281
|
return null;
|
|
@@ -3274,23 +3309,23 @@ var zn = (
|
|
|
3274
3309
|
r.push(n);
|
|
3275
3310
|
this.bump();
|
|
3276
3311
|
}
|
|
3277
|
-
return
|
|
3312
|
+
return We.apply(void 0, r);
|
|
3278
3313
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3279
3314
|
if (this.isEOF())
|
|
3280
3315
|
return null;
|
|
3281
3316
|
var n = this.char();
|
|
3282
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3317
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3283
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3284
3319
|
var n = this.clonePosition();
|
|
3285
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3286
|
-
return this.error(
|
|
3321
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3287
3322
|
if (this.char() === 125)
|
|
3288
|
-
return this.bump(), this.error(
|
|
3323
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3289
3324
|
var i = this.parseIdentifierIfPossible().value;
|
|
3290
3325
|
if (!i)
|
|
3291
|
-
return this.error(
|
|
3326
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3292
3327
|
if (this.bumpSpace(), this.isEOF())
|
|
3293
|
-
return this.error(
|
|
3328
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3294
3329
|
switch (this.char()) {
|
|
3295
3330
|
case 125:
|
|
3296
3331
|
return this.bump(), {
|
|
@@ -3303,12 +3338,12 @@ var zn = (
|
|
|
3303
3338
|
err: null
|
|
3304
3339
|
};
|
|
3305
3340
|
case 44:
|
|
3306
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3341
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3307
3342
|
default:
|
|
3308
|
-
return this.error(
|
|
3343
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3309
3344
|
}
|
|
3310
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3311
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3346
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3312
3347
|
this.bumpTo(i);
|
|
3313
3348
|
var o = this.clonePosition(), s = g(t, o);
|
|
3314
3349
|
return { value: n, location: s };
|
|
@@ -3316,7 +3351,7 @@ var zn = (
|
|
|
3316
3351
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3317
3352
|
switch (a) {
|
|
3318
3353
|
case "":
|
|
3319
|
-
return this.error(
|
|
3354
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, g(s, h));
|
|
3320
3355
|
case "number":
|
|
3321
3356
|
case "date":
|
|
3322
3357
|
case "time": {
|
|
@@ -3324,40 +3359,40 @@ var zn = (
|
|
|
3324
3359
|
var u = null;
|
|
3325
3360
|
if (this.bumpIf(",")) {
|
|
3326
3361
|
this.bumpSpace();
|
|
3327
|
-
var l = this.clonePosition(),
|
|
3328
|
-
if (
|
|
3329
|
-
return
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return this.error(
|
|
3333
|
-
var
|
|
3334
|
-
u = { style:
|
|
3362
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3363
|
+
if (c.err)
|
|
3364
|
+
return c;
|
|
3365
|
+
var f = Jn(c.val);
|
|
3366
|
+
if (f.length === 0)
|
|
3367
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3368
|
+
var p = g(l, this.clonePosition());
|
|
3369
|
+
u = { style: f, styleLocation: p };
|
|
3335
3370
|
}
|
|
3336
3371
|
var m = this.tryParseArgumentClose(i);
|
|
3337
3372
|
if (m.err)
|
|
3338
3373
|
return m;
|
|
3339
3374
|
var y = g(i, this.clonePosition());
|
|
3340
|
-
if (u &&
|
|
3341
|
-
var E =
|
|
3375
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3376
|
+
var E = Qn(u.style.slice(2));
|
|
3342
3377
|
if (a === "number") {
|
|
3343
|
-
var
|
|
3344
|
-
return
|
|
3345
|
-
val: { type: v.number, value: n, location: y, style:
|
|
3378
|
+
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3379
|
+
return c.err ? c : {
|
|
3380
|
+
val: { type: v.number, value: n, location: y, style: c.val },
|
|
3346
3381
|
err: null
|
|
3347
3382
|
};
|
|
3348
3383
|
} else {
|
|
3349
3384
|
if (E.length === 0)
|
|
3350
|
-
return this.error(
|
|
3385
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
3351
3386
|
var A = E;
|
|
3352
|
-
this.locale && (A =
|
|
3353
|
-
var
|
|
3354
|
-
type:
|
|
3387
|
+
this.locale && (A = $n(E, this.locale));
|
|
3388
|
+
var f = {
|
|
3389
|
+
type: X.dateTime,
|
|
3355
3390
|
pattern: A,
|
|
3356
3391
|
location: u.styleLocation,
|
|
3357
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? An(A) : {}
|
|
3358
3393
|
}, P = a === "date" ? v.date : v.time;
|
|
3359
3394
|
return {
|
|
3360
|
-
val: { type: P, value: n, location: y, style:
|
|
3395
|
+
val: { type: P, value: n, location: y, style: f },
|
|
3361
3396
|
err: null
|
|
3362
3397
|
};
|
|
3363
3398
|
}
|
|
@@ -3375,23 +3410,23 @@ var zn = (
|
|
|
3375
3410
|
case "plural":
|
|
3376
3411
|
case "selectordinal":
|
|
3377
3412
|
case "select": {
|
|
3378
|
-
var
|
|
3413
|
+
var T = this.clonePosition();
|
|
3379
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3380
|
-
return this.error(
|
|
3415
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, me({}, T)));
|
|
3381
3416
|
this.bumpSpace();
|
|
3382
|
-
var
|
|
3383
|
-
if (a !== "select" &&
|
|
3417
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3418
|
+
if (a !== "select" && O.value === "offset") {
|
|
3384
3419
|
if (!this.bumpIf(":"))
|
|
3385
|
-
return this.error(
|
|
3420
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3386
3421
|
this.bumpSpace();
|
|
3387
|
-
var
|
|
3388
|
-
if (
|
|
3389
|
-
return
|
|
3390
|
-
this.bumpSpace(),
|
|
3422
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3423
|
+
if (c.err)
|
|
3424
|
+
return c;
|
|
3425
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
3391
3426
|
}
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3394
|
-
return
|
|
3427
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3428
|
+
if (x.err)
|
|
3429
|
+
return x;
|
|
3395
3430
|
var m = this.tryParseArgumentClose(i);
|
|
3396
3431
|
if (m.err)
|
|
3397
3432
|
return m;
|
|
@@ -3400,7 +3435,7 @@ var zn = (
|
|
|
3400
3435
|
val: {
|
|
3401
3436
|
type: v.select,
|
|
3402
3437
|
value: n,
|
|
3403
|
-
options:
|
|
3438
|
+
options: vt(x.val),
|
|
3404
3439
|
location: C
|
|
3405
3440
|
},
|
|
3406
3441
|
err: null
|
|
@@ -3408,8 +3443,8 @@ var zn = (
|
|
|
3408
3443
|
val: {
|
|
3409
3444
|
type: v.plural,
|
|
3410
3445
|
value: n,
|
|
3411
|
-
options:
|
|
3412
|
-
offset:
|
|
3446
|
+
options: vt(x.val),
|
|
3447
|
+
offset: w,
|
|
3413
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3414
3449
|
location: C
|
|
3415
3450
|
},
|
|
@@ -3417,10 +3452,10 @@ var zn = (
|
|
|
3417
3452
|
};
|
|
3418
3453
|
}
|
|
3419
3454
|
default:
|
|
3420
|
-
return this.error(
|
|
3455
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, g(s, h));
|
|
3421
3456
|
}
|
|
3422
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3423
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3458
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3424
3459
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3425
3460
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3426
3461
|
var n = this.char();
|
|
@@ -3429,7 +3464,7 @@ var zn = (
|
|
|
3429
3464
|
this.bump();
|
|
3430
3465
|
var i = this.clonePosition();
|
|
3431
3466
|
if (!this.bumpUntil("'"))
|
|
3432
|
-
return this.error(
|
|
3467
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3433
3468
|
this.bump();
|
|
3434
3469
|
break;
|
|
3435
3470
|
}
|
|
@@ -3459,52 +3494,52 @@ var zn = (
|
|
|
3459
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3460
3495
|
var n = [];
|
|
3461
3496
|
try {
|
|
3462
|
-
n =
|
|
3497
|
+
n = On(t);
|
|
3463
3498
|
} catch {
|
|
3464
|
-
return this.error(
|
|
3499
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3465
3500
|
}
|
|
3466
3501
|
return {
|
|
3467
3502
|
val: {
|
|
3468
|
-
type:
|
|
3503
|
+
type: X.number,
|
|
3469
3504
|
tokens: n,
|
|
3470
3505
|
location: r,
|
|
3471
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3472
3507
|
},
|
|
3473
3508
|
err: null
|
|
3474
3509
|
};
|
|
3475
3510
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3476
3511
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3477
3512
|
if (u.length === 0) {
|
|
3478
|
-
var
|
|
3513
|
+
var c = this.clonePosition();
|
|
3479
3514
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3480
|
-
var
|
|
3481
|
-
if (
|
|
3482
|
-
return
|
|
3483
|
-
l = g(
|
|
3515
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3516
|
+
if (f.err)
|
|
3517
|
+
return f;
|
|
3518
|
+
l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3484
3519
|
} else
|
|
3485
3520
|
break;
|
|
3486
3521
|
}
|
|
3487
3522
|
if (h.has(u))
|
|
3488
|
-
return this.error(r === "select" ?
|
|
3523
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3489
3524
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3490
|
-
var
|
|
3525
|
+
var p = this.clonePosition();
|
|
3491
3526
|
if (!this.bumpIf("{"))
|
|
3492
|
-
return this.error(r === "select" ?
|
|
3527
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3493
3528
|
var m = this.parseMessage(t + 1, r, n);
|
|
3494
3529
|
if (m.err)
|
|
3495
3530
|
return m;
|
|
3496
|
-
var y = this.tryParseArgumentClose(
|
|
3531
|
+
var y = this.tryParseArgumentClose(p);
|
|
3497
3532
|
if (y.err)
|
|
3498
3533
|
return y;
|
|
3499
3534
|
a.push([
|
|
3500
3535
|
u,
|
|
3501
3536
|
{
|
|
3502
3537
|
value: m.val,
|
|
3503
|
-
location: g(
|
|
3538
|
+
location: g(p, this.clonePosition())
|
|
3504
3539
|
}
|
|
3505
3540
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3506
3541
|
}
|
|
3507
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3508
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3509
3544
|
var n = 1, i = this.clonePosition();
|
|
3510
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3516,7 +3551,7 @@ var zn = (
|
|
|
3516
3551
|
break;
|
|
3517
3552
|
}
|
|
3518
3553
|
var h = g(i, this.clonePosition());
|
|
3519
|
-
return o ? (s *= n,
|
|
3554
|
+
return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3520
3555
|
}, e.prototype.offset = function() {
|
|
3521
3556
|
return this.position.offset;
|
|
3522
3557
|
}, e.prototype.isEOF = function() {
|
|
@@ -3531,7 +3566,7 @@ var zn = (
|
|
|
3531
3566
|
var t = this.position.offset;
|
|
3532
3567
|
if (t >= this.message.length)
|
|
3533
3568
|
throw Error("out of bound");
|
|
3534
|
-
var r =
|
|
3569
|
+
var r = tr(this.message, t);
|
|
3535
3570
|
if (r === void 0)
|
|
3536
3571
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3537
3572
|
return r;
|
|
@@ -3550,7 +3585,7 @@ var zn = (
|
|
|
3550
3585
|
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);
|
|
3551
3586
|
}
|
|
3552
3587
|
}, e.prototype.bumpIf = function(t) {
|
|
3553
|
-
if (
|
|
3588
|
+
if (yt(this.message, t, this.offset())) {
|
|
3554
3589
|
for (var r = 0; r < t.length; r++)
|
|
3555
3590
|
this.bump();
|
|
3556
3591
|
return !0;
|
|
@@ -3572,7 +3607,7 @@ var zn = (
|
|
|
3572
3607
|
break;
|
|
3573
3608
|
}
|
|
3574
3609
|
}, e.prototype.bumpSpace = function() {
|
|
3575
|
-
for (; !this.isEOF() &&
|
|
3610
|
+
for (; !this.isEOF() && nr(this.char()); )
|
|
3576
3611
|
this.bump();
|
|
3577
3612
|
}, e.prototype.peek = function() {
|
|
3578
3613
|
if (this.isEOF())
|
|
@@ -3582,47 +3617,47 @@ var zn = (
|
|
|
3582
3617
|
}, e;
|
|
3583
3618
|
}()
|
|
3584
3619
|
);
|
|
3585
|
-
function
|
|
3620
|
+
function Ze(e) {
|
|
3586
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3587
3622
|
}
|
|
3588
|
-
function
|
|
3589
|
-
return
|
|
3623
|
+
function qn(e) {
|
|
3624
|
+
return Ze(e) || e === 47;
|
|
3590
3625
|
}
|
|
3591
|
-
function
|
|
3626
|
+
function Kn(e) {
|
|
3592
3627
|
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;
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3629
|
+
function nr(e) {
|
|
3595
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3596
3631
|
}
|
|
3597
|
-
function
|
|
3632
|
+
function ei(e) {
|
|
3598
3633
|
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;
|
|
3599
3634
|
}
|
|
3600
|
-
function
|
|
3635
|
+
function Qe(e) {
|
|
3601
3636
|
e.forEach(function(t) {
|
|
3602
|
-
if (delete t.location,
|
|
3637
|
+
if (delete t.location, zt(t) || Zt(t))
|
|
3603
3638
|
for (var r in t.options)
|
|
3604
|
-
delete t.options[r].location,
|
|
3639
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3605
3640
|
else
|
|
3606
|
-
|
|
3641
|
+
Vt(t) && Jt(t.style) || (Xt(t) || Wt(t)) && Ve(t.style) ? delete t.style.location : Qt(t) && Qe(t.children);
|
|
3607
3642
|
});
|
|
3608
3643
|
}
|
|
3609
|
-
function
|
|
3610
|
-
t === void 0 && (t = {}), t =
|
|
3611
|
-
var r = new
|
|
3644
|
+
function ti(e, t) {
|
|
3645
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
|
+
var r = new Yn(e, t).parse();
|
|
3612
3647
|
if (r.err) {
|
|
3613
|
-
var n = SyntaxError(
|
|
3648
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3614
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3615
3650
|
}
|
|
3616
|
-
return t?.captureLocation ||
|
|
3651
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3617
3652
|
}
|
|
3618
|
-
var
|
|
3653
|
+
var W;
|
|
3619
3654
|
(function(e) {
|
|
3620
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3621
|
-
})(
|
|
3622
|
-
var
|
|
3656
|
+
})(W || (W = {}));
|
|
3657
|
+
var xe = (
|
|
3623
3658
|
/** @class */
|
|
3624
3659
|
function(e) {
|
|
3625
|
-
|
|
3660
|
+
ve(t, e);
|
|
3626
3661
|
function t(r, n, i) {
|
|
3627
3662
|
var o = e.call(this, r) || this;
|
|
3628
3663
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3631,48 +3666,48 @@ var ye = (
|
|
|
3631
3666
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3632
3667
|
}, t;
|
|
3633
3668
|
}(Error)
|
|
3634
|
-
),
|
|
3669
|
+
), _t = (
|
|
3635
3670
|
/** @class */
|
|
3636
3671
|
function(e) {
|
|
3637
|
-
|
|
3672
|
+
ve(t, e);
|
|
3638
3673
|
function t(r, n, i, o) {
|
|
3639
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3674
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3640
3675
|
}
|
|
3641
3676
|
return t;
|
|
3642
|
-
}(
|
|
3643
|
-
),
|
|
3677
|
+
}(xe)
|
|
3678
|
+
), ri = (
|
|
3644
3679
|
/** @class */
|
|
3645
3680
|
function(e) {
|
|
3646
|
-
|
|
3681
|
+
ve(t, e);
|
|
3647
3682
|
function t(r, n, i) {
|
|
3648
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3683
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3649
3684
|
}
|
|
3650
3685
|
return t;
|
|
3651
|
-
}(
|
|
3652
|
-
),
|
|
3686
|
+
}(xe)
|
|
3687
|
+
), ni = (
|
|
3653
3688
|
/** @class */
|
|
3654
3689
|
function(e) {
|
|
3655
|
-
|
|
3690
|
+
ve(t, e);
|
|
3656
3691
|
function t(r, n) {
|
|
3657
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3692
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3658
3693
|
}
|
|
3659
3694
|
return t;
|
|
3660
|
-
}(
|
|
3695
|
+
}(xe)
|
|
3661
3696
|
), H;
|
|
3662
3697
|
(function(e) {
|
|
3663
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3664
3699
|
})(H || (H = {}));
|
|
3665
|
-
function
|
|
3700
|
+
function ii(e) {
|
|
3666
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3667
3702
|
var n = t[t.length - 1];
|
|
3668
3703
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3669
3704
|
}, []);
|
|
3670
3705
|
}
|
|
3671
|
-
function
|
|
3706
|
+
function oi(e) {
|
|
3672
3707
|
return typeof e == "function";
|
|
3673
3708
|
}
|
|
3674
|
-
function
|
|
3675
|
-
if (e.length === 1 &&
|
|
3709
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3710
|
+
if (e.length === 1 && pt(e[0]))
|
|
3676
3711
|
return [
|
|
3677
3712
|
{
|
|
3678
3713
|
type: H.literal,
|
|
@@ -3681,105 +3716,105 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3681
3716
|
];
|
|
3682
3717
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3683
3718
|
var l = u[h];
|
|
3684
|
-
if (
|
|
3719
|
+
if (pt(l)) {
|
|
3685
3720
|
a.push({
|
|
3686
3721
|
type: H.literal,
|
|
3687
3722
|
value: l.value
|
|
3688
3723
|
});
|
|
3689
3724
|
continue;
|
|
3690
3725
|
}
|
|
3691
|
-
if (
|
|
3726
|
+
if (Bn(l)) {
|
|
3692
3727
|
typeof o == "number" && a.push({
|
|
3693
3728
|
type: H.literal,
|
|
3694
3729
|
value: r.getNumberFormat(t).format(o)
|
|
3695
3730
|
});
|
|
3696
3731
|
continue;
|
|
3697
3732
|
}
|
|
3698
|
-
var
|
|
3699
|
-
if (!(i &&
|
|
3700
|
-
throw new
|
|
3701
|
-
var
|
|
3702
|
-
if (
|
|
3703
|
-
(!
|
|
3704
|
-
type: typeof
|
|
3705
|
-
value:
|
|
3733
|
+
var c = l.value;
|
|
3734
|
+
if (!(i && c in i))
|
|
3735
|
+
throw new ni(c, s);
|
|
3736
|
+
var f = i[c];
|
|
3737
|
+
if (Hn(l)) {
|
|
3738
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3739
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3740
|
+
value: f
|
|
3706
3741
|
});
|
|
3707
3742
|
continue;
|
|
3708
3743
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3744
|
+
if (Xt(l)) {
|
|
3745
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
|
|
3711
3746
|
a.push({
|
|
3712
3747
|
type: H.literal,
|
|
3713
|
-
value: r.getDateTimeFormat(t,
|
|
3748
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3714
3749
|
});
|
|
3715
3750
|
continue;
|
|
3716
3751
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var
|
|
3752
|
+
if (Wt(l)) {
|
|
3753
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3719
3754
|
a.push({
|
|
3720
3755
|
type: H.literal,
|
|
3721
|
-
value: r.getDateTimeFormat(t,
|
|
3756
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3722
3757
|
});
|
|
3723
3758
|
continue;
|
|
3724
3759
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
|
|
3760
|
+
if (Vt(l)) {
|
|
3761
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3762
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3728
3763
|
type: H.literal,
|
|
3729
|
-
value: r.getNumberFormat(t,
|
|
3764
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3730
3765
|
});
|
|
3731
3766
|
continue;
|
|
3732
3767
|
}
|
|
3733
|
-
if (
|
|
3768
|
+
if (Qt(l)) {
|
|
3734
3769
|
var m = l.children, y = l.value, E = i[y];
|
|
3735
|
-
if (!
|
|
3736
|
-
throw new
|
|
3737
|
-
var A =
|
|
3738
|
-
return
|
|
3770
|
+
if (!oi(E))
|
|
3771
|
+
throw new ri(y, "function", s);
|
|
3772
|
+
var A = ce(m, t, r, n, i, o), P = E(A.map(function(w) {
|
|
3773
|
+
return w.value;
|
|
3739
3774
|
}));
|
|
3740
|
-
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(
|
|
3775
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3741
3776
|
return {
|
|
3742
|
-
type: typeof
|
|
3743
|
-
value:
|
|
3777
|
+
type: typeof w == "string" ? H.literal : H.object,
|
|
3778
|
+
value: w
|
|
3744
3779
|
};
|
|
3745
3780
|
}));
|
|
3746
3781
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3751
|
-
a.push.apply(a,
|
|
3782
|
+
if (zt(l)) {
|
|
3783
|
+
var T = l.options[f] || l.options.other;
|
|
3784
|
+
if (!T)
|
|
3785
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3786
|
+
a.push.apply(a, ce(T.value, t, r, n, i));
|
|
3752
3787
|
continue;
|
|
3753
3788
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var
|
|
3756
|
-
if (!
|
|
3789
|
+
if (Zt(l)) {
|
|
3790
|
+
var T = l.options["=".concat(f)];
|
|
3791
|
+
if (!T) {
|
|
3757
3792
|
if (!Intl.PluralRules)
|
|
3758
|
-
throw new
|
|
3793
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3759
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3760
|
-
`,
|
|
3761
|
-
var
|
|
3762
|
-
|
|
3795
|
+
`, W.MISSING_INTL_API, s);
|
|
3796
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3797
|
+
T = l.options[O] || l.options.other;
|
|
3763
3798
|
}
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
a.push.apply(a,
|
|
3799
|
+
if (!T)
|
|
3800
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
|
3801
|
+
a.push.apply(a, ce(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3767
3802
|
continue;
|
|
3768
3803
|
}
|
|
3769
3804
|
}
|
|
3770
|
-
return
|
|
3805
|
+
return ii(a);
|
|
3771
3806
|
}
|
|
3772
|
-
function
|
|
3773
|
-
return t ?
|
|
3774
|
-
return r[n] =
|
|
3807
|
+
function si(e, t) {
|
|
3808
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3809
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3775
3810
|
}, {})) : e;
|
|
3776
3811
|
}
|
|
3777
|
-
function
|
|
3812
|
+
function ai(e, t) {
|
|
3778
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3779
|
-
return r[n] =
|
|
3780
|
-
},
|
|
3814
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3815
|
+
}, L({}, e)) : e;
|
|
3781
3816
|
}
|
|
3782
|
-
function
|
|
3817
|
+
function Le(e) {
|
|
3783
3818
|
return {
|
|
3784
3819
|
create: function() {
|
|
3785
3820
|
return {
|
|
@@ -3793,39 +3828,39 @@ function Ae(e) {
|
|
|
3793
3828
|
}
|
|
3794
3829
|
};
|
|
3795
3830
|
}
|
|
3796
|
-
function
|
|
3831
|
+
function ui(e) {
|
|
3797
3832
|
return e === void 0 && (e = {
|
|
3798
3833
|
number: {},
|
|
3799
3834
|
dateTime: {},
|
|
3800
3835
|
pluralRules: {}
|
|
3801
3836
|
}), {
|
|
3802
|
-
getNumberFormat:
|
|
3837
|
+
getNumberFormat: Ae(function() {
|
|
3803
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3839
|
r[n] = arguments[n];
|
|
3805
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3806
3841
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3842
|
+
cache: Le(e.number),
|
|
3843
|
+
strategy: Pe.variadic
|
|
3809
3844
|
}),
|
|
3810
|
-
getDateTimeFormat:
|
|
3845
|
+
getDateTimeFormat: Ae(function() {
|
|
3811
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3847
|
r[n] = arguments[n];
|
|
3813
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3848
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3814
3849
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3850
|
+
cache: Le(e.dateTime),
|
|
3851
|
+
strategy: Pe.variadic
|
|
3817
3852
|
}),
|
|
3818
|
-
getPluralRules:
|
|
3853
|
+
getPluralRules: Ae(function() {
|
|
3819
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3820
3855
|
r[n] = arguments[n];
|
|
3821
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3856
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3822
3857
|
}, {
|
|
3823
|
-
cache:
|
|
3824
|
-
strategy:
|
|
3858
|
+
cache: Le(e.pluralRules),
|
|
3859
|
+
strategy: Pe.variadic
|
|
3825
3860
|
})
|
|
3826
3861
|
};
|
|
3827
3862
|
}
|
|
3828
|
-
var
|
|
3863
|
+
var hi = (
|
|
3829
3864
|
/** @class */
|
|
3830
3865
|
function() {
|
|
3831
3866
|
function e(t, r, n, i) {
|
|
@@ -3839,12 +3874,12 @@ var oi = (
|
|
|
3839
3874
|
var u = o.formatToParts(h);
|
|
3840
3875
|
if (u.length === 1)
|
|
3841
3876
|
return u[0].value;
|
|
3842
|
-
var l = u.reduce(function(
|
|
3843
|
-
return !
|
|
3877
|
+
var l = u.reduce(function(c, f) {
|
|
3878
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3844
3879
|
}, []);
|
|
3845
3880
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3846
3881
|
}, this.formatToParts = function(h) {
|
|
3847
|
-
return
|
|
3882
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3848
3883
|
}, this.resolvedOptions = function() {
|
|
3849
3884
|
var h;
|
|
3850
3885
|
return {
|
|
@@ -3857,13 +3892,13 @@ var oi = (
|
|
|
3857
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3858
3893
|
var s = i || {};
|
|
3859
3894
|
s.formatters;
|
|
3860
|
-
var a =
|
|
3861
|
-
this.ast = e.__parse(t,
|
|
3895
|
+
var a = yn(s, ["formatters"]);
|
|
3896
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3862
3897
|
} else
|
|
3863
3898
|
this.ast = t;
|
|
3864
3899
|
if (!Array.isArray(this.ast))
|
|
3865
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3866
|
-
this.formats =
|
|
3901
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3867
3902
|
}
|
|
3868
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3869
3904
|
get: function() {
|
|
@@ -3876,7 +3911,7 @@ var oi = (
|
|
|
3876
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3877
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3878
3913
|
}
|
|
3879
|
-
}, e.__parse =
|
|
3914
|
+
}, e.__parse = ti, e.formats = {
|
|
3880
3915
|
number: {
|
|
3881
3916
|
integer: {
|
|
3882
3917
|
maximumFractionDigits: 0
|
|
@@ -3937,7 +3972,7 @@ var oi = (
|
|
|
3937
3972
|
}, e;
|
|
3938
3973
|
}()
|
|
3939
3974
|
);
|
|
3940
|
-
function
|
|
3975
|
+
function li(e, t) {
|
|
3941
3976
|
if (t == null)
|
|
3942
3977
|
return;
|
|
3943
3978
|
if (t in e)
|
|
@@ -3958,92 +3993,92 @@ function si(e, t) {
|
|
|
3958
3993
|
n = void 0;
|
|
3959
3994
|
return n;
|
|
3960
3995
|
}
|
|
3961
|
-
const
|
|
3996
|
+
const R = {}, ci = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), ir = (e, t) => {
|
|
3962
3997
|
if (t == null)
|
|
3963
3998
|
return;
|
|
3964
|
-
if (t in
|
|
3965
|
-
return
|
|
3966
|
-
const r =
|
|
3999
|
+
if (t in R && e in R[t])
|
|
4000
|
+
return R[t][e];
|
|
4001
|
+
const r = _e(t);
|
|
3967
4002
|
for (let n = 0; n < r.length; n++) {
|
|
3968
|
-
const i = r[n], o =
|
|
4003
|
+
const i = r[n], o = mi(i, e);
|
|
3969
4004
|
if (o)
|
|
3970
|
-
return
|
|
4005
|
+
return ci(e, t, o);
|
|
3971
4006
|
}
|
|
3972
4007
|
};
|
|
3973
|
-
let
|
|
3974
|
-
const ie =
|
|
3975
|
-
function
|
|
3976
|
-
return
|
|
4008
|
+
let et;
|
|
4009
|
+
const ie = ye({});
|
|
4010
|
+
function fi(e) {
|
|
4011
|
+
return et[e] || null;
|
|
3977
4012
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e in
|
|
4013
|
+
function or(e) {
|
|
4014
|
+
return e in et;
|
|
3980
4015
|
}
|
|
3981
|
-
function
|
|
3982
|
-
if (!
|
|
4016
|
+
function mi(e, t) {
|
|
4017
|
+
if (!or(e))
|
|
3983
4018
|
return null;
|
|
3984
|
-
const r =
|
|
3985
|
-
return
|
|
4019
|
+
const r = fi(e);
|
|
4020
|
+
return li(r, t);
|
|
3986
4021
|
}
|
|
3987
|
-
function
|
|
4022
|
+
function pi(e) {
|
|
3988
4023
|
if (e == null)
|
|
3989
4024
|
return;
|
|
3990
|
-
const t =
|
|
4025
|
+
const t = _e(e);
|
|
3991
4026
|
for (let r = 0; r < t.length; r++) {
|
|
3992
4027
|
const n = t[r];
|
|
3993
|
-
if (
|
|
4028
|
+
if (or(n))
|
|
3994
4029
|
return n;
|
|
3995
4030
|
}
|
|
3996
4031
|
}
|
|
3997
|
-
function
|
|
3998
|
-
delete
|
|
4032
|
+
function sr(e, ...t) {
|
|
4033
|
+
delete R[e], ie.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3999
4034
|
}
|
|
4000
|
-
|
|
4035
|
+
Q(
|
|
4001
4036
|
[ie],
|
|
4002
4037
|
([e]) => Object.keys(e)
|
|
4003
4038
|
);
|
|
4004
|
-
ie.subscribe((e) =>
|
|
4005
|
-
const
|
|
4006
|
-
function
|
|
4007
|
-
|
|
4039
|
+
ie.subscribe((e) => et = e);
|
|
4040
|
+
const fe = {};
|
|
4041
|
+
function di(e, t) {
|
|
4042
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4008
4043
|
}
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4044
|
+
function ar(e) {
|
|
4045
|
+
return fe[e];
|
|
4011
4046
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return
|
|
4014
|
-
const r =
|
|
4047
|
+
function bi(e) {
|
|
4048
|
+
return _e(e).map((t) => {
|
|
4049
|
+
const r = ar(t);
|
|
4015
4050
|
return [t, r ? [...r] : []];
|
|
4016
4051
|
}).filter(([, t]) => t.length > 0);
|
|
4017
4052
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return e == null ? !1 :
|
|
4053
|
+
function Je(e) {
|
|
4054
|
+
return e == null ? !1 : _e(e).some(
|
|
4020
4055
|
(t) => {
|
|
4021
4056
|
var r;
|
|
4022
|
-
return (r =
|
|
4057
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4023
4058
|
}
|
|
4024
4059
|
);
|
|
4025
4060
|
}
|
|
4026
|
-
function
|
|
4061
|
+
function gi(e, t) {
|
|
4027
4062
|
return Promise.all(
|
|
4028
|
-
t.map((n) => (
|
|
4029
|
-
).then((n) =>
|
|
4030
|
-
}
|
|
4031
|
-
const
|
|
4032
|
-
function
|
|
4033
|
-
if (!
|
|
4034
|
-
return e in
|
|
4035
|
-
const t =
|
|
4036
|
-
return
|
|
4063
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4064
|
+
).then((n) => sr(e, ...n));
|
|
4065
|
+
}
|
|
4066
|
+
const q = {};
|
|
4067
|
+
function ur(e) {
|
|
4068
|
+
if (!Je(e))
|
|
4069
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4070
|
+
const t = bi(e);
|
|
4071
|
+
return q[e] = Promise.all(
|
|
4037
4072
|
t.map(
|
|
4038
|
-
([r, n]) =>
|
|
4073
|
+
([r, n]) => gi(r, n)
|
|
4039
4074
|
)
|
|
4040
4075
|
).then(() => {
|
|
4041
|
-
if (
|
|
4042
|
-
return
|
|
4043
|
-
delete
|
|
4044
|
-
}),
|
|
4076
|
+
if (Je(e))
|
|
4077
|
+
return ur(e);
|
|
4078
|
+
delete q[e];
|
|
4079
|
+
}), q[e];
|
|
4045
4080
|
}
|
|
4046
|
-
const
|
|
4081
|
+
const yi = {
|
|
4047
4082
|
number: {
|
|
4048
4083
|
scientific: { notation: "scientific" },
|
|
4049
4084
|
engineering: { notation: "engineering" },
|
|
@@ -4072,135 +4107,135 @@ const di = {
|
|
|
4072
4107
|
timeZoneName: "short"
|
|
4073
4108
|
}
|
|
4074
4109
|
}
|
|
4075
|
-
},
|
|
4110
|
+
}, vi = {
|
|
4076
4111
|
fallbackLocale: null,
|
|
4077
4112
|
loadingDelay: 200,
|
|
4078
|
-
formats:
|
|
4113
|
+
formats: yi,
|
|
4079
4114
|
warnOnMissingMessages: !0,
|
|
4080
4115
|
handleMissingMessage: void 0,
|
|
4081
4116
|
ignoreTag: !0
|
|
4082
|
-
},
|
|
4083
|
-
function
|
|
4084
|
-
return
|
|
4085
|
-
}
|
|
4086
|
-
const
|
|
4087
|
-
var
|
|
4088
|
-
for (var r in t)
|
|
4089
|
-
|
|
4090
|
-
if (
|
|
4091
|
-
for (var r of
|
|
4092
|
-
|
|
4117
|
+
}, xi = vi;
|
|
4118
|
+
function z() {
|
|
4119
|
+
return xi;
|
|
4120
|
+
}
|
|
4121
|
+
const Ie = ye(!1);
|
|
4122
|
+
var _i = Object.defineProperty, Ei = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4123
|
+
for (var r in t || (t = {}))
|
|
4124
|
+
Si.call(t, r) && wt(e, r, t[r]);
|
|
4125
|
+
if (Et)
|
|
4126
|
+
for (var r of Et(t))
|
|
4127
|
+
Ti.call(t, r) && wt(e, r, t[r]);
|
|
4093
4128
|
return e;
|
|
4094
|
-
},
|
|
4095
|
-
let
|
|
4096
|
-
const
|
|
4097
|
-
function
|
|
4129
|
+
}, Bi = (e, t) => Ei(e, wi(t));
|
|
4130
|
+
let Ye;
|
|
4131
|
+
const pe = ye(null);
|
|
4132
|
+
function St(e) {
|
|
4098
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4099
4134
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const r =
|
|
4102
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4135
|
+
function _e(e, t = z().fallbackLocale) {
|
|
4136
|
+
const r = St(e);
|
|
4137
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4103
4138
|
}
|
|
4104
4139
|
function G() {
|
|
4105
|
-
return
|
|
4140
|
+
return Ye ?? void 0;
|
|
4106
4141
|
}
|
|
4107
|
-
|
|
4108
|
-
|
|
4142
|
+
pe.subscribe((e) => {
|
|
4143
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4109
4144
|
});
|
|
4110
|
-
const
|
|
4111
|
-
if (e &&
|
|
4112
|
-
const { loadingDelay: t } =
|
|
4145
|
+
const Ci = (e) => {
|
|
4146
|
+
if (e && pi(e) && Je(e)) {
|
|
4147
|
+
const { loadingDelay: t } = z();
|
|
4113
4148
|
let r;
|
|
4114
4149
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4115
|
-
() =>
|
|
4150
|
+
() => Ie.set(!0),
|
|
4116
4151
|
t
|
|
4117
|
-
) :
|
|
4118
|
-
|
|
4152
|
+
) : Ie.set(!0), ur(e).then(() => {
|
|
4153
|
+
pe.set(e);
|
|
4119
4154
|
}).finally(() => {
|
|
4120
|
-
clearTimeout(r),
|
|
4155
|
+
clearTimeout(r), Ie.set(!1);
|
|
4121
4156
|
});
|
|
4122
4157
|
}
|
|
4123
|
-
return
|
|
4124
|
-
},
|
|
4125
|
-
set:
|
|
4126
|
-
}),
|
|
4158
|
+
return pe.set(e);
|
|
4159
|
+
}, J = Bi(Hi({}, pe), {
|
|
4160
|
+
set: Ci
|
|
4161
|
+
}), Ee = (e) => {
|
|
4127
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4128
4163
|
return (n) => {
|
|
4129
4164
|
const i = JSON.stringify(n);
|
|
4130
4165
|
return i in t ? t[i] : t[i] = e(n);
|
|
4131
4166
|
};
|
|
4132
4167
|
};
|
|
4133
|
-
var
|
|
4168
|
+
var Ai = Object.defineProperty, de = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4134
4169
|
for (var r in t || (t = {}))
|
|
4135
|
-
|
|
4170
|
+
hr.call(t, r) && Tt(e, r, t[r]);
|
|
4136
4171
|
if (de)
|
|
4137
4172
|
for (var r of de(t))
|
|
4138
|
-
|
|
4173
|
+
lr.call(t, r) && Tt(e, r, t[r]);
|
|
4139
4174
|
return e;
|
|
4140
|
-
},
|
|
4175
|
+
}, Y = (e, t) => {
|
|
4141
4176
|
var r = {};
|
|
4142
4177
|
for (var n in e)
|
|
4143
|
-
|
|
4178
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4144
4179
|
if (e != null && de)
|
|
4145
4180
|
for (var n of de(e))
|
|
4146
|
-
t.indexOf(n) < 0 &&
|
|
4181
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4147
4182
|
return r;
|
|
4148
4183
|
};
|
|
4149
|
-
const
|
|
4150
|
-
const { formats: r } =
|
|
4184
|
+
const re = (e, t) => {
|
|
4185
|
+
const { formats: r } = z();
|
|
4151
4186
|
if (e in r && t in r[e])
|
|
4152
4187
|
return r[e][t];
|
|
4153
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4154
|
-
},
|
|
4189
|
+
}, Pi = Ee(
|
|
4155
4190
|
(e) => {
|
|
4156
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4157
4192
|
if (r == null)
|
|
4158
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4159
|
-
return n && (i =
|
|
4194
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4160
4195
|
}
|
|
4161
|
-
),
|
|
4196
|
+
), Oi = Ee(
|
|
4162
4197
|
(e) => {
|
|
4163
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4164
4199
|
if (r == null)
|
|
4165
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4166
|
-
return n ? i =
|
|
4201
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4167
4202
|
}
|
|
4168
|
-
),
|
|
4203
|
+
), Li = Ee(
|
|
4169
4204
|
(e) => {
|
|
4170
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4171
4206
|
if (r == null)
|
|
4172
4207
|
throw new Error(
|
|
4173
4208
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4174
4209
|
);
|
|
4175
|
-
return n ? i =
|
|
4210
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4176
4211
|
}
|
|
4177
|
-
),
|
|
4212
|
+
), Ii = (e = {}) => {
|
|
4178
4213
|
var t = e, {
|
|
4179
4214
|
locale: r = G()
|
|
4180
|
-
} = t, n =
|
|
4215
|
+
} = t, n = Y(t, [
|
|
4181
4216
|
"locale"
|
|
4182
4217
|
]);
|
|
4183
|
-
return
|
|
4184
|
-
},
|
|
4218
|
+
return Pi(tt({ locale: r }, n));
|
|
4219
|
+
}, Mi = (e = {}) => {
|
|
4185
4220
|
var t = e, {
|
|
4186
4221
|
locale: r = G()
|
|
4187
|
-
} = t, n =
|
|
4222
|
+
} = t, n = Y(t, [
|
|
4188
4223
|
"locale"
|
|
4189
4224
|
]);
|
|
4190
|
-
return
|
|
4191
|
-
},
|
|
4225
|
+
return Oi(tt({ locale: r }, n));
|
|
4226
|
+
}, Ni = (e = {}) => {
|
|
4192
4227
|
var t = e, {
|
|
4193
4228
|
locale: r = G()
|
|
4194
|
-
} = t, n =
|
|
4229
|
+
} = t, n = Y(t, [
|
|
4195
4230
|
"locale"
|
|
4196
4231
|
]);
|
|
4197
|
-
return
|
|
4198
|
-
},
|
|
4232
|
+
return Li(tt({ locale: r }, n));
|
|
4233
|
+
}, $i = Ee(
|
|
4199
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4200
|
-
(e, t = G()) => new
|
|
4201
|
-
ignoreTag:
|
|
4235
|
+
(e, t = G()) => new hi(e, t, z().formats, {
|
|
4236
|
+
ignoreTag: z().ignoreTag
|
|
4202
4237
|
})
|
|
4203
|
-
),
|
|
4238
|
+
), Ri = (e, t = {}) => {
|
|
4204
4239
|
var r, n, i, o;
|
|
4205
4240
|
let s = t;
|
|
4206
4241
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4213,39 +4248,39 @@ const ne = (e, t) => {
|
|
|
4213
4248
|
throw new Error(
|
|
4214
4249
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4215
4250
|
);
|
|
4216
|
-
let l =
|
|
4251
|
+
let l = ir(e, h);
|
|
4217
4252
|
if (!l)
|
|
4218
|
-
l = (o = (i = (n = (r =
|
|
4253
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4219
4254
|
else if (typeof l != "string")
|
|
4220
4255
|
return console.warn(
|
|
4221
4256
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4222
4257
|
), l;
|
|
4223
4258
|
if (!a)
|
|
4224
4259
|
return l;
|
|
4225
|
-
let
|
|
4260
|
+
let c = l;
|
|
4226
4261
|
try {
|
|
4227
|
-
|
|
4228
|
-
} catch (
|
|
4229
|
-
|
|
4262
|
+
c = $i(l, h).format(a);
|
|
4263
|
+
} catch (f) {
|
|
4264
|
+
f instanceof Error && console.warn(
|
|
4230
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4231
|
-
|
|
4266
|
+
f.message
|
|
4232
4267
|
);
|
|
4233
4268
|
}
|
|
4234
|
-
return
|
|
4235
|
-
},
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
window.emWidgets = { topic:
|
|
4241
|
-
const
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4244
|
-
}
|
|
4245
|
-
function
|
|
4246
|
-
|
|
4247
|
-
}
|
|
4248
|
-
const
|
|
4269
|
+
return c;
|
|
4270
|
+
}, Gi = (e, t) => Ni(t).format(e), Ui = (e, t) => Mi(t).format(e), Di = (e, t) => Ii(t).format(e), Fi = (e, t = G()) => ir(e, t), ji = Q([J, ie], () => Ri);
|
|
4271
|
+
Q([J], () => Gi);
|
|
4272
|
+
Q([J], () => Ui);
|
|
4273
|
+
Q([J], () => Di);
|
|
4274
|
+
Q([J, ie], () => Fi);
|
|
4275
|
+
window.emWidgets = { topic: Kr };
|
|
4276
|
+
const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4277
|
+
function Ht(e, t) {
|
|
4278
|
+
sr(e, t);
|
|
4279
|
+
}
|
|
4280
|
+
function Vi(e) {
|
|
4281
|
+
J.set(e);
|
|
4282
|
+
}
|
|
4283
|
+
const Bt = {
|
|
4249
4284
|
en: {
|
|
4250
4285
|
cancel: "Cancel",
|
|
4251
4286
|
confirm: "Confirm"
|
|
@@ -4291,13 +4326,13 @@ const wt = {
|
|
|
4291
4326
|
confirm: "Confirm"
|
|
4292
4327
|
}
|
|
4293
4328
|
};
|
|
4294
|
-
function
|
|
4329
|
+
function Xi(e, t) {
|
|
4295
4330
|
if (e) {
|
|
4296
4331
|
const r = document.createElement("style");
|
|
4297
4332
|
r.innerHTML = t, e.appendChild(r);
|
|
4298
4333
|
}
|
|
4299
4334
|
}
|
|
4300
|
-
function
|
|
4335
|
+
function Wi(e, t) {
|
|
4301
4336
|
const r = new URL(t);
|
|
4302
4337
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4303
4338
|
const i = document.createElement("style");
|
|
@@ -4306,7 +4341,7 @@ function ji(e, t) {
|
|
|
4306
4341
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4307
4342
|
});
|
|
4308
4343
|
}
|
|
4309
|
-
function
|
|
4344
|
+
function zi(e, t, r) {
|
|
4310
4345
|
if (window.emMessageBus) {
|
|
4311
4346
|
const n = document.createElement("style");
|
|
4312
4347
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4314,136 +4349,136 @@ function ki(e, t, r) {
|
|
|
4314
4349
|
});
|
|
4315
4350
|
}
|
|
4316
4351
|
}
|
|
4317
|
-
function
|
|
4318
|
-
|
|
4352
|
+
function Zi(e) {
|
|
4353
|
+
xr(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4319
4354
|
}
|
|
4320
|
-
const
|
|
4321
|
-
function
|
|
4355
|
+
const Qi = (e) => ({}), Ct = (e) => ({});
|
|
4356
|
+
function Ji(e) {
|
|
4322
4357
|
let t, r;
|
|
4323
4358
|
return {
|
|
4324
4359
|
c() {
|
|
4325
|
-
t =
|
|
4360
|
+
t = it("svg"), r = it("path"), S(r, "stroke-linecap", "round"), S(r, "stroke-linejoin", "round"), S(r, "stroke-width", "2"), S(r, "d", "M6 18L18 6M6 6l12 12"), S(t, "class", "w-6 h-6"), S(t, "fill", "none"), S(t, "stroke", "currentColor"), S(t, "viewBox", "0 0 24 24"), S(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4326
4361
|
},
|
|
4327
4362
|
m(n, i) {
|
|
4328
|
-
|
|
4363
|
+
Ke(n, t, i), B(t, r);
|
|
4329
4364
|
},
|
|
4330
|
-
p:
|
|
4365
|
+
p: I,
|
|
4331
4366
|
d(n) {
|
|
4332
|
-
n &&
|
|
4367
|
+
n && be(t);
|
|
4333
4368
|
}
|
|
4334
4369
|
};
|
|
4335
4370
|
}
|
|
4336
|
-
function
|
|
4371
|
+
function Yi(e) {
|
|
4337
4372
|
let t, r, n, i, o, s, a, h, u, l = (
|
|
4338
4373
|
/*$_*/
|
|
4339
4374
|
e[2]("cancel") + ""
|
|
4340
|
-
),
|
|
4375
|
+
), c, f, p, m = (
|
|
4341
4376
|
/*$_*/
|
|
4342
4377
|
e[2]("confirm") + ""
|
|
4343
4378
|
), y, E, A, P;
|
|
4344
|
-
const
|
|
4379
|
+
const T = (
|
|
4345
4380
|
/*#slots*/
|
|
4346
4381
|
e[14].close
|
|
4347
|
-
),
|
|
4348
|
-
|
|
4382
|
+
), O = br(
|
|
4383
|
+
T,
|
|
4349
4384
|
e,
|
|
4350
4385
|
/*$$scope*/
|
|
4351
4386
|
e[13],
|
|
4352
|
-
|
|
4353
|
-
),
|
|
4387
|
+
Ct
|
|
4388
|
+
), w = O || Ji();
|
|
4354
4389
|
return {
|
|
4355
4390
|
c() {
|
|
4356
|
-
t =
|
|
4391
|
+
t = M("div"), r = M("div"), n = M("span"), w && w.c(), i = we(), o = M("div"), s = ae(
|
|
4357
4392
|
/*modaltext*/
|
|
4358
4393
|
e[0]
|
|
4359
|
-
), a =
|
|
4360
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")),
|
|
4361
|
-
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")),
|
|
4394
|
+
), a = we(), h = M("div"), u = M("button"), c = ae(l), f = we(), p = M("button"), y = ae(m), S(n, "class", "ModalCloseBtn"), S(n, "role", "button"), S(o, "class", "GamingLimitsConfirmationContent"), S(u, "class", "GamingLimitsCancelButton"), S(p, "class", "GamingLimitsConfirmButton"), S(h, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4395
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), S(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4396
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), S(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4362
4397
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4363
4398
|
},
|
|
4364
|
-
m(
|
|
4365
|
-
|
|
4366
|
-
|
|
4399
|
+
m(x, C) {
|
|
4400
|
+
Ke(x, t, C), B(t, r), B(r, n), w && w.m(n, null), B(r, i), B(r, o), B(o, s), B(r, a), B(r, h), B(h, u), B(u, c), B(h, f), B(h, p), B(p, y), e[15](t), E = !0, A || (P = [
|
|
4401
|
+
Se(
|
|
4367
4402
|
n,
|
|
4368
4403
|
"click",
|
|
4369
4404
|
/*close*/
|
|
4370
4405
|
e[4]
|
|
4371
4406
|
),
|
|
4372
|
-
|
|
4407
|
+
Se(
|
|
4373
4408
|
u,
|
|
4374
4409
|
"click",
|
|
4375
4410
|
/*cancelChanges*/
|
|
4376
4411
|
e[6]
|
|
4377
4412
|
),
|
|
4378
|
-
|
|
4379
|
-
|
|
4413
|
+
Se(
|
|
4414
|
+
p,
|
|
4380
4415
|
"click",
|
|
4381
4416
|
/*confirmChanges*/
|
|
4382
4417
|
e[5]
|
|
4383
4418
|
)
|
|
4384
4419
|
], A = !0);
|
|
4385
4420
|
},
|
|
4386
|
-
p(
|
|
4387
|
-
|
|
4388
|
-
8192) &&
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4421
|
+
p(x, [C]) {
|
|
4422
|
+
O && O.p && (!E || C & /*$$scope*/
|
|
4423
|
+
8192) && yr(
|
|
4424
|
+
O,
|
|
4425
|
+
T,
|
|
4426
|
+
x,
|
|
4392
4427
|
/*$$scope*/
|
|
4393
|
-
|
|
4394
|
-
E ?
|
|
4395
|
-
|
|
4428
|
+
x[13],
|
|
4429
|
+
E ? gr(
|
|
4430
|
+
T,
|
|
4396
4431
|
/*$$scope*/
|
|
4397
|
-
|
|
4432
|
+
x[13],
|
|
4398
4433
|
C,
|
|
4399
|
-
|
|
4400
|
-
) :
|
|
4434
|
+
Qi
|
|
4435
|
+
) : vr(
|
|
4401
4436
|
/*$$scope*/
|
|
4402
|
-
|
|
4437
|
+
x[13]
|
|
4403
4438
|
),
|
|
4404
|
-
|
|
4439
|
+
Ct
|
|
4405
4440
|
), (!E || C & /*modaltext*/
|
|
4406
|
-
1) &&
|
|
4441
|
+
1) && Te(
|
|
4407
4442
|
s,
|
|
4408
4443
|
/*modaltext*/
|
|
4409
|
-
|
|
4444
|
+
x[0]
|
|
4410
4445
|
), (!E || C & /*$_*/
|
|
4411
4446
|
4) && l !== (l = /*$_*/
|
|
4412
|
-
|
|
4447
|
+
x[2]("cancel") + "") && Te(c, l), (!E || C & /*$_*/
|
|
4413
4448
|
4) && m !== (m = /*$_*/
|
|
4414
|
-
|
|
4449
|
+
x[2]("confirm") + "") && Te(y, m);
|
|
4415
4450
|
},
|
|
4416
|
-
i(
|
|
4417
|
-
E || (
|
|
4451
|
+
i(x) {
|
|
4452
|
+
E || (It(w, x), E = !0);
|
|
4418
4453
|
},
|
|
4419
|
-
o(
|
|
4420
|
-
|
|
4454
|
+
o(x) {
|
|
4455
|
+
Lr(w, x), E = !1;
|
|
4421
4456
|
},
|
|
4422
|
-
d(
|
|
4423
|
-
|
|
4457
|
+
d(x) {
|
|
4458
|
+
x && be(t), w && w.d(x), e[15](null), A = !1, Z(P);
|
|
4424
4459
|
}
|
|
4425
4460
|
};
|
|
4426
4461
|
}
|
|
4427
|
-
function
|
|
4462
|
+
function qi(e, t, r) {
|
|
4428
4463
|
let n;
|
|
4429
|
-
|
|
4430
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { mbsource:
|
|
4431
|
-
const
|
|
4432
|
-
fetch(
|
|
4433
|
-
Object.keys(U).forEach((
|
|
4434
|
-
|
|
4464
|
+
dr(e, ji, (b) => r(2, n = b));
|
|
4465
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4466
|
+
const p = () => {
|
|
4467
|
+
fetch(f).then((U) => U.json()).then((U) => {
|
|
4468
|
+
Object.keys(U).forEach((rt) => {
|
|
4469
|
+
Ht(rt, U[rt]);
|
|
4435
4470
|
});
|
|
4436
4471
|
}).catch((U) => {
|
|
4437
4472
|
console.log(U);
|
|
4438
4473
|
});
|
|
4439
4474
|
};
|
|
4440
|
-
Object.keys(
|
|
4441
|
-
|
|
4475
|
+
Object.keys(Bt).forEach((b) => {
|
|
4476
|
+
Ht(b, Bt[b]);
|
|
4442
4477
|
});
|
|
4443
|
-
let m, y = window.navigator.userAgent, E =
|
|
4444
|
-
const
|
|
4478
|
+
let m, y = window.navigator.userAgent, E = ki(y) !== "PC", A = {}, P = "";
|
|
4479
|
+
const T = () => {
|
|
4445
4480
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4446
|
-
},
|
|
4481
|
+
}, O = () => {
|
|
4447
4482
|
a === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : a === "infoCard" && window.postMessage(
|
|
4448
4483
|
{
|
|
4449
4484
|
type: "PlayerAccountGamingLimitDelete",
|
|
@@ -4452,62 +4487,62 @@ function Zi(e, t, r) {
|
|
|
4452
4487
|
},
|
|
4453
4488
|
window.location.href
|
|
4454
4489
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4455
|
-
},
|
|
4490
|
+
}, w = () => {
|
|
4456
4491
|
a === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : a === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4457
|
-
},
|
|
4492
|
+
}, x = (b) => b === "Time Limit" ? "cumulativeSessionLimits" : b === "Deposit Limit" ? "depositLimits" : b === "Wagering Limit" ? "wageringLimit" : "lossLimit", C = (b) => {
|
|
4458
4493
|
if (b.data)
|
|
4459
4494
|
switch (b.data.type) {
|
|
4460
4495
|
case "DeleteLimitsItem":
|
|
4461
|
-
A = b.data.removeData, P =
|
|
4496
|
+
A = b.data.removeData, P = x(b.data.removeName);
|
|
4462
4497
|
break;
|
|
4463
4498
|
}
|
|
4464
|
-
},
|
|
4465
|
-
|
|
4499
|
+
}, cr = () => {
|
|
4500
|
+
Vi(h);
|
|
4466
4501
|
};
|
|
4467
|
-
|
|
4502
|
+
Hr(() => (window.addEventListener("message", C, !1), () => {
|
|
4468
4503
|
window.removeEventListener("message", C);
|
|
4469
4504
|
}));
|
|
4470
|
-
function
|
|
4471
|
-
|
|
4505
|
+
function fr(b) {
|
|
4506
|
+
Me[b ? "unshift" : "push"](() => {
|
|
4472
4507
|
m = b, r(1, m);
|
|
4473
4508
|
});
|
|
4474
4509
|
}
|
|
4475
4510
|
return e.$$set = (b) => {
|
|
4476
|
-
"modaltext" in b && r(0, s = b.modaltext), "modalsource" in b && r(7, a = b.modalsource), "lang" in b && r(8, h = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "mbsource" in b && r(11,
|
|
4511
|
+
"modaltext" in b && r(0, s = b.modaltext), "modalsource" in b && r(7, a = b.modalsource), "lang" in b && r(8, h = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "mbsource" in b && r(11, c = b.mbsource), "translationurl" in b && r(12, f = b.translationurl), "$$scope" in b && r(13, o = b.$$scope);
|
|
4477
4512
|
}, e.$$.update = () => {
|
|
4478
4513
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4479
|
-
385 && s && a && h &&
|
|
4480
|
-
514 && u && m &&
|
|
4481
|
-
1026 && l && m &&
|
|
4482
|
-
2050 &&
|
|
4483
|
-
4096 &&
|
|
4514
|
+
385 && s && a && h && cr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4515
|
+
514 && u && m && Xi(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4516
|
+
1026 && l && m && Wi(m, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4517
|
+
2050 && c && m && zi(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4518
|
+
4096 && f && p();
|
|
4484
4519
|
}, [
|
|
4485
4520
|
s,
|
|
4486
4521
|
m,
|
|
4487
4522
|
n,
|
|
4488
4523
|
E,
|
|
4489
|
-
S,
|
|
4490
|
-
L,
|
|
4491
4524
|
T,
|
|
4525
|
+
O,
|
|
4526
|
+
w,
|
|
4492
4527
|
a,
|
|
4493
4528
|
h,
|
|
4494
4529
|
u,
|
|
4495
4530
|
l,
|
|
4496
|
-
f,
|
|
4497
4531
|
c,
|
|
4532
|
+
f,
|
|
4498
4533
|
o,
|
|
4499
4534
|
i,
|
|
4500
|
-
|
|
4535
|
+
fr
|
|
4501
4536
|
];
|
|
4502
4537
|
}
|
|
4503
|
-
class
|
|
4538
|
+
class Ki extends Gr {
|
|
4504
4539
|
constructor(t) {
|
|
4505
|
-
super(),
|
|
4540
|
+
super(), $r(
|
|
4506
4541
|
this,
|
|
4507
4542
|
t,
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4543
|
+
qi,
|
|
4544
|
+
Yi,
|
|
4545
|
+
Pt,
|
|
4511
4546
|
{
|
|
4512
4547
|
modaltext: 0,
|
|
4513
4548
|
modalsource: 7,
|
|
@@ -4517,53 +4552,53 @@ class Qi extends Mr {
|
|
|
4517
4552
|
mbsource: 11,
|
|
4518
4553
|
translationurl: 12
|
|
4519
4554
|
},
|
|
4520
|
-
|
|
4555
|
+
Zi
|
|
4521
4556
|
);
|
|
4522
4557
|
}
|
|
4523
4558
|
get modaltext() {
|
|
4524
4559
|
return this.$$.ctx[0];
|
|
4525
4560
|
}
|
|
4526
4561
|
set modaltext(t) {
|
|
4527
|
-
this.$$set({ modaltext: t }),
|
|
4562
|
+
this.$$set({ modaltext: t }), N();
|
|
4528
4563
|
}
|
|
4529
4564
|
get modalsource() {
|
|
4530
4565
|
return this.$$.ctx[7];
|
|
4531
4566
|
}
|
|
4532
4567
|
set modalsource(t) {
|
|
4533
|
-
this.$$set({ modalsource: t }),
|
|
4568
|
+
this.$$set({ modalsource: t }), N();
|
|
4534
4569
|
}
|
|
4535
4570
|
get lang() {
|
|
4536
4571
|
return this.$$.ctx[8];
|
|
4537
4572
|
}
|
|
4538
4573
|
set lang(t) {
|
|
4539
|
-
this.$$set({ lang: t }),
|
|
4574
|
+
this.$$set({ lang: t }), N();
|
|
4540
4575
|
}
|
|
4541
4576
|
get clientstyling() {
|
|
4542
4577
|
return this.$$.ctx[9];
|
|
4543
4578
|
}
|
|
4544
4579
|
set clientstyling(t) {
|
|
4545
|
-
this.$$set({ clientstyling: t }),
|
|
4580
|
+
this.$$set({ clientstyling: t }), N();
|
|
4546
4581
|
}
|
|
4547
4582
|
get clientstylingurl() {
|
|
4548
4583
|
return this.$$.ctx[10];
|
|
4549
4584
|
}
|
|
4550
4585
|
set clientstylingurl(t) {
|
|
4551
|
-
this.$$set({ clientstylingurl: t }),
|
|
4586
|
+
this.$$set({ clientstylingurl: t }), N();
|
|
4552
4587
|
}
|
|
4553
4588
|
get mbsource() {
|
|
4554
4589
|
return this.$$.ctx[11];
|
|
4555
4590
|
}
|
|
4556
4591
|
set mbsource(t) {
|
|
4557
|
-
this.$$set({ mbsource: t }),
|
|
4592
|
+
this.$$set({ mbsource: t }), N();
|
|
4558
4593
|
}
|
|
4559
4594
|
get translationurl() {
|
|
4560
4595
|
return this.$$.ctx[12];
|
|
4561
4596
|
}
|
|
4562
4597
|
set translationurl(t) {
|
|
4563
|
-
this.$$set({ translationurl: t }),
|
|
4598
|
+
this.$$set({ translationurl: t }), N();
|
|
4564
4599
|
}
|
|
4565
4600
|
}
|
|
4566
|
-
|
|
4601
|
+
Rr(Ki, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4567
4602
|
export {
|
|
4568
|
-
|
|
4603
|
+
Ki as P
|
|
4569
4604
|
};
|