@everymatrix/player-account-gaming-limits 1.54.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimits-DxKdHwB4.js → PlayerAccountGamingLimits-CZwML-uF.js} +1064 -1105
- package/components/{PlayerAccountGamingLimitsConfirmationModal-sm3PXoF_.js → PlayerAccountGamingLimitsConfirmationModal-ChZ8Q6lM.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BRHgTMs5.js → PlayerAccountGamingLimitsGroupEdit-C0KWZ__4.js} +16 -16
- package/components/{PlayerAccountGamingLimitsInfoCard-B-zO2vbD.js → PlayerAccountGamingLimitsInfoCard-DMEEX4lz.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPopup-CuljZruT.js → PlayerAccountGamingLimitsPopup-CGtAJbki.js} +1 -1
- package/components/{PlayerAccountModal-BKyu0nsK.js → PlayerAccountModal-DQr9JiVq.js} +1 -1
- package/esnext/player-account-gaming-limits.js +14 -0
- package/package.json +10 -11
- package/components/PlayerAccountGamingLimits-BpLD5zsa.cjs +0 -8
- package/components/PlayerAccountGamingLimitsConfirmationModal-DVzHykTH.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-DJaEC8Tb.cjs +0 -10
- package/components/PlayerAccountGamingLimitsInfoCard-B7IYUwko.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPopup-CQNusvpP.cjs +0 -1
- package/components/PlayerAccountModal-BnU0rfjG.cjs +0 -1
- package/es2015/player-account-gaming-limits.cjs +0 -1
- package/es2015/player-account-gaming-limits.js +0 -16
package/components/{PlayerAccountGamingLimits-DxKdHwB4.js → PlayerAccountGamingLimits-CZwML-uF.js}
RENAMED
|
@@ -1,61 +1,32 @@
|
|
|
1
|
-
var Ir = Object.defineProperty, Mr = Object.defineProperties;
|
|
2
|
-
var Nr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var ct = Object.getOwnPropertySymbols;
|
|
4
|
-
var Cr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ne = (e, t, r) => t in e ? Ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Cr.call(t, r) && Ne(e, r, t[r]);
|
|
8
|
-
if (ct)
|
|
9
|
-
for (var r of ct(t))
|
|
10
|
-
Rr.call(t, r) && Ne(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, mt = (e, t) => Mr(e, Nr(t));
|
|
13
|
-
var N = (e, t, r) => Ne(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var pt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (u) => {
|
|
16
|
-
try {
|
|
17
|
-
o(r.next(u));
|
|
18
|
-
} catch (l) {
|
|
19
|
-
i(l);
|
|
20
|
-
}
|
|
21
|
-
}, a = (u) => {
|
|
22
|
-
try {
|
|
23
|
-
o(r.throw(u));
|
|
24
|
-
} catch (l) {
|
|
25
|
-
i(l);
|
|
26
|
-
}
|
|
27
|
-
}, o = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, a);
|
|
28
|
-
o((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
1
|
function O() {
|
|
31
2
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
3
|
+
const Tr = (e) => e;
|
|
4
|
+
function Sr(e, t) {
|
|
34
5
|
for (const r in t) e[r] = t[r];
|
|
35
6
|
return (
|
|
36
7
|
/** @type {T & S} */
|
|
37
8
|
e
|
|
38
9
|
);
|
|
39
10
|
}
|
|
40
|
-
function
|
|
11
|
+
function Mt(e) {
|
|
41
12
|
return e();
|
|
42
13
|
}
|
|
43
|
-
function
|
|
14
|
+
function lt() {
|
|
44
15
|
return /* @__PURE__ */ Object.create(null);
|
|
45
16
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
17
|
+
function F(e) {
|
|
18
|
+
e.forEach(Mt);
|
|
48
19
|
}
|
|
49
|
-
function
|
|
20
|
+
function He(e) {
|
|
50
21
|
return typeof e == "function";
|
|
51
22
|
}
|
|
52
|
-
function
|
|
23
|
+
function Ct(e, t) {
|
|
53
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
25
|
}
|
|
55
|
-
function
|
|
26
|
+
function Hr(e) {
|
|
56
27
|
return Object.keys(e).length === 0;
|
|
57
28
|
}
|
|
58
|
-
function
|
|
29
|
+
function Rt(e, ...t) {
|
|
59
30
|
if (e == null) {
|
|
60
31
|
for (const n of t)
|
|
61
32
|
n(void 0);
|
|
@@ -64,19 +35,19 @@ function jt(e, ...t) {
|
|
|
64
35
|
const r = e.subscribe(...t);
|
|
65
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
37
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function Ar(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Rt(t, r));
|
|
69
40
|
}
|
|
70
|
-
function
|
|
41
|
+
function vs(e, t, r, n) {
|
|
71
42
|
if (e) {
|
|
72
|
-
const i =
|
|
43
|
+
const i = Dt(e, t, r, n);
|
|
73
44
|
return e[0](i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
47
|
+
function Dt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? Sr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
49
|
}
|
|
79
|
-
function
|
|
50
|
+
function Es(e, t, r, n) {
|
|
80
51
|
if (e[2] && n) {
|
|
81
52
|
const i = e[2](n(r));
|
|
82
53
|
if (t.dirty === void 0)
|
|
@@ -91,13 +62,13 @@ function Ms(e, t, r, n) {
|
|
|
91
62
|
}
|
|
92
63
|
return t.dirty;
|
|
93
64
|
}
|
|
94
|
-
function
|
|
65
|
+
function xs(e, t, r, n, i, s) {
|
|
95
66
|
if (i) {
|
|
96
|
-
const a =
|
|
67
|
+
const a = Dt(t, r, n, s);
|
|
97
68
|
e.p(a, i);
|
|
98
69
|
}
|
|
99
70
|
}
|
|
100
|
-
function
|
|
71
|
+
function ws(e) {
|
|
101
72
|
if (e.ctx.length > 32) {
|
|
102
73
|
const t = [], r = e.ctx.length / 32;
|
|
103
74
|
for (let n = 0; n < r; n++)
|
|
@@ -106,36 +77,36 @@ function Cs(e) {
|
|
|
106
77
|
}
|
|
107
78
|
return -1;
|
|
108
79
|
}
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
t.c(e) || (
|
|
115
|
-
}),
|
|
80
|
+
const Gt = typeof window < "u";
|
|
81
|
+
let Pr = Gt ? () => window.performance.now() : () => Date.now(), rt = Gt ? (e) => requestAnimationFrame(e) : O;
|
|
82
|
+
const J = /* @__PURE__ */ new Set();
|
|
83
|
+
function $t(e) {
|
|
84
|
+
J.forEach((t) => {
|
|
85
|
+
t.c(e) || (J.delete(t), t.f());
|
|
86
|
+
}), J.size !== 0 && rt($t);
|
|
116
87
|
}
|
|
117
|
-
function
|
|
88
|
+
function Br(e) {
|
|
118
89
|
let t;
|
|
119
|
-
return
|
|
90
|
+
return J.size === 0 && rt($t), {
|
|
120
91
|
promise: new Promise((r) => {
|
|
121
|
-
|
|
92
|
+
J.add(t = { c: e, f: r });
|
|
122
93
|
}),
|
|
123
94
|
abort() {
|
|
124
|
-
|
|
95
|
+
J.delete(t);
|
|
125
96
|
}
|
|
126
97
|
};
|
|
127
98
|
}
|
|
128
99
|
function L(e, t) {
|
|
129
100
|
e.appendChild(t);
|
|
130
101
|
}
|
|
131
|
-
function
|
|
132
|
-
const n =
|
|
102
|
+
function Or(e, t, r) {
|
|
103
|
+
const n = nt(e);
|
|
133
104
|
if (!n.getElementById(t)) {
|
|
134
105
|
const i = P("style");
|
|
135
|
-
i.id = t, i.textContent = r,
|
|
106
|
+
i.id = t, i.textContent = r, Ut(n, i);
|
|
136
107
|
}
|
|
137
108
|
}
|
|
138
|
-
function
|
|
109
|
+
function nt(e) {
|
|
139
110
|
if (!e) return document;
|
|
140
111
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
141
112
|
return t && /** @type {ShadowRoot} */
|
|
@@ -144,46 +115,46 @@ function st(e) {
|
|
|
144
115
|
t
|
|
145
116
|
) : e.ownerDocument;
|
|
146
117
|
}
|
|
147
|
-
function
|
|
118
|
+
function Ir(e) {
|
|
148
119
|
const t = P("style");
|
|
149
|
-
return t.textContent = "/* empty */",
|
|
120
|
+
return t.textContent = "/* empty */", Ut(nt(e), t), t.sheet;
|
|
150
121
|
}
|
|
151
|
-
function
|
|
122
|
+
function Ut(e, t) {
|
|
152
123
|
return L(
|
|
153
124
|
/** @type {Document} */
|
|
154
125
|
e.head || e,
|
|
155
126
|
t
|
|
156
127
|
), t.sheet;
|
|
157
128
|
}
|
|
158
|
-
function
|
|
129
|
+
function ne(e, t, r) {
|
|
159
130
|
e.insertBefore(t, r || null);
|
|
160
131
|
}
|
|
161
|
-
function
|
|
132
|
+
function U(e) {
|
|
162
133
|
e.parentNode && e.parentNode.removeChild(e);
|
|
163
134
|
}
|
|
164
|
-
function
|
|
135
|
+
function Ls(e, t) {
|
|
165
136
|
for (let r = 0; r < e.length; r += 1)
|
|
166
137
|
e[r] && e[r].d(t);
|
|
167
138
|
}
|
|
168
139
|
function P(e) {
|
|
169
140
|
return document.createElement(e);
|
|
170
141
|
}
|
|
171
|
-
function
|
|
142
|
+
function X(e) {
|
|
172
143
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
173
144
|
}
|
|
174
|
-
function
|
|
145
|
+
function he(e) {
|
|
175
146
|
return document.createTextNode(e);
|
|
176
147
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
148
|
+
function Z() {
|
|
149
|
+
return he(" ");
|
|
179
150
|
}
|
|
180
|
-
function
|
|
181
|
-
return
|
|
151
|
+
function Ts() {
|
|
152
|
+
return he("");
|
|
182
153
|
}
|
|
183
|
-
function
|
|
154
|
+
function Nr(e, t, r, n) {
|
|
184
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
185
156
|
}
|
|
186
|
-
function
|
|
157
|
+
function Ss(e) {
|
|
187
158
|
return function(t) {
|
|
188
159
|
return t.preventDefault(), e.call(this, t);
|
|
189
160
|
};
|
|
@@ -195,20 +166,20 @@ function p(e, t, r) {
|
|
|
195
166
|
const n = t.toLowerCase();
|
|
196
167
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
|
197
168
|
}
|
|
198
|
-
function
|
|
169
|
+
function Hs(e) {
|
|
199
170
|
return e === "" ? null : +e;
|
|
200
171
|
}
|
|
201
|
-
function
|
|
172
|
+
function Mr(e) {
|
|
202
173
|
return Array.from(e.childNodes);
|
|
203
174
|
}
|
|
204
|
-
function
|
|
175
|
+
function Ft(e, t) {
|
|
205
176
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
206
177
|
t);
|
|
207
178
|
}
|
|
208
|
-
function
|
|
209
|
-
e.value = t
|
|
179
|
+
function As(e, t) {
|
|
180
|
+
e.value = t ?? "";
|
|
210
181
|
}
|
|
211
|
-
function
|
|
182
|
+
function Ps(e, t, r) {
|
|
212
183
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
213
184
|
const i = e.options[n];
|
|
214
185
|
if (i.__value === t) {
|
|
@@ -218,14 +189,14 @@ function Fs(e, t, r) {
|
|
|
218
189
|
}
|
|
219
190
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
220
191
|
}
|
|
221
|
-
function
|
|
192
|
+
function Bs(e) {
|
|
222
193
|
const t = e.querySelector(":checked");
|
|
223
194
|
return t && t.__value;
|
|
224
195
|
}
|
|
225
|
-
function
|
|
196
|
+
function Cr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
226
197
|
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
227
198
|
}
|
|
228
|
-
function
|
|
199
|
+
function Rr(e) {
|
|
229
200
|
const t = {};
|
|
230
201
|
return e.childNodes.forEach(
|
|
231
202
|
/** @param {Element} node */
|
|
@@ -234,145 +205,145 @@ function Zr(e) {
|
|
|
234
205
|
}
|
|
235
206
|
), t;
|
|
236
207
|
}
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
function
|
|
208
|
+
const xe = /* @__PURE__ */ new Map();
|
|
209
|
+
let we = 0;
|
|
210
|
+
function Dr(e) {
|
|
240
211
|
let t = 5381, r = e.length;
|
|
241
212
|
for (; r--; ) t = (t << 5) - t ^ e.charCodeAt(r);
|
|
242
213
|
return t >>> 0;
|
|
243
214
|
}
|
|
244
|
-
function
|
|
245
|
-
const r = { stylesheet:
|
|
246
|
-
return
|
|
215
|
+
function Gr(e, t) {
|
|
216
|
+
const r = { stylesheet: Ir(t), rules: {} };
|
|
217
|
+
return xe.set(e, r), r;
|
|
247
218
|
}
|
|
248
|
-
function
|
|
219
|
+
function ht(e, t, r, n, i, s, a, o = 0) {
|
|
249
220
|
const u = 16.666 / n;
|
|
250
|
-
let
|
|
221
|
+
let h = `{
|
|
251
222
|
`;
|
|
252
223
|
for (let g = 0; g <= 1; g += u) {
|
|
253
224
|
const _ = t + (r - t) * s(g);
|
|
254
|
-
|
|
225
|
+
h += g * 100 + `%{${a(_, 1 - _)}}
|
|
255
226
|
`;
|
|
256
227
|
}
|
|
257
|
-
const
|
|
258
|
-
}`,
|
|
259
|
-
m[
|
|
228
|
+
const l = h + `100% {${a(r, 1 - r)}}
|
|
229
|
+
}`, c = `__svelte_${Dr(l)}_${o}`, f = nt(e), { stylesheet: y, rules: m } = xe.get(f) || Gr(f, e);
|
|
230
|
+
m[c] || (m[c] = !0, y.insertRule(`@keyframes ${c} ${l}`, y.cssRules.length));
|
|
260
231
|
const d = e.style.animation || "";
|
|
261
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${
|
|
232
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, we += 1, c;
|
|
262
233
|
}
|
|
263
|
-
function
|
|
234
|
+
function $r(e, t) {
|
|
264
235
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
265
236
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
266
237
|
// remove all Svelte animations
|
|
267
238
|
), i = r.length - n.length;
|
|
268
|
-
i && (e.style.animation = n.join(", "),
|
|
239
|
+
i && (e.style.animation = n.join(", "), we -= i, we || Ur());
|
|
269
240
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
|
|
241
|
+
function Ur() {
|
|
242
|
+
rt(() => {
|
|
243
|
+
we || (xe.forEach((e) => {
|
|
273
244
|
const { ownerNode: t } = e.stylesheet;
|
|
274
|
-
t &&
|
|
275
|
-
}),
|
|
245
|
+
t && U(t);
|
|
246
|
+
}), xe.clear());
|
|
276
247
|
});
|
|
277
248
|
}
|
|
278
249
|
let fe;
|
|
279
|
-
function
|
|
250
|
+
function le(e) {
|
|
280
251
|
fe = e;
|
|
281
252
|
}
|
|
282
|
-
function
|
|
253
|
+
function Fr() {
|
|
283
254
|
if (!fe) throw new Error("Function called outside component initialization");
|
|
284
255
|
return fe;
|
|
285
256
|
}
|
|
286
|
-
function
|
|
287
|
-
|
|
257
|
+
function jr(e) {
|
|
258
|
+
Fr().$$.on_mount.push(e);
|
|
288
259
|
}
|
|
289
|
-
const
|
|
290
|
-
let
|
|
291
|
-
const
|
|
292
|
-
let
|
|
293
|
-
function
|
|
294
|
-
|
|
260
|
+
const Q = [], Fe = [];
|
|
261
|
+
let q = [];
|
|
262
|
+
const ft = [], kr = /* @__PURE__ */ Promise.resolve();
|
|
263
|
+
let je = !1;
|
|
264
|
+
function Vr() {
|
|
265
|
+
je || (je = !0, kr.then(B));
|
|
295
266
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
267
|
+
function Le(e) {
|
|
268
|
+
q.push(e);
|
|
298
269
|
}
|
|
299
|
-
const
|
|
300
|
-
let
|
|
270
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
271
|
+
let W = 0;
|
|
301
272
|
function B() {
|
|
302
|
-
if (
|
|
273
|
+
if (W !== 0)
|
|
303
274
|
return;
|
|
304
275
|
const e = fe;
|
|
305
276
|
do {
|
|
306
277
|
try {
|
|
307
|
-
for (;
|
|
308
|
-
const t =
|
|
309
|
-
|
|
278
|
+
for (; W < Q.length; ) {
|
|
279
|
+
const t = Q[W];
|
|
280
|
+
W++, le(t), Xr(t.$$);
|
|
310
281
|
}
|
|
311
282
|
} catch (t) {
|
|
312
|
-
throw
|
|
283
|
+
throw Q.length = 0, W = 0, t;
|
|
313
284
|
}
|
|
314
|
-
for (
|
|
315
|
-
for (let t = 0; t <
|
|
316
|
-
const r =
|
|
317
|
-
|
|
285
|
+
for (le(null), Q.length = 0, W = 0; Fe.length; ) Fe.pop()();
|
|
286
|
+
for (let t = 0; t < q.length; t += 1) {
|
|
287
|
+
const r = q[t];
|
|
288
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
318
289
|
}
|
|
319
|
-
|
|
320
|
-
} while (
|
|
321
|
-
for (;
|
|
322
|
-
|
|
323
|
-
|
|
290
|
+
q.length = 0;
|
|
291
|
+
} while (Q.length);
|
|
292
|
+
for (; ft.length; )
|
|
293
|
+
ft.pop()();
|
|
294
|
+
je = !1, Ne.clear(), le(e);
|
|
324
295
|
}
|
|
325
|
-
function
|
|
296
|
+
function Xr(e) {
|
|
326
297
|
if (e.fragment !== null) {
|
|
327
|
-
e.update(),
|
|
298
|
+
e.update(), F(e.before_update);
|
|
328
299
|
const t = e.dirty;
|
|
329
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
300
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
330
301
|
}
|
|
331
302
|
}
|
|
332
|
-
function
|
|
303
|
+
function Wr(e) {
|
|
333
304
|
const t = [], r = [];
|
|
334
|
-
|
|
305
|
+
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
335
306
|
}
|
|
336
|
-
let
|
|
337
|
-
function
|
|
338
|
-
return
|
|
339
|
-
|
|
340
|
-
})),
|
|
307
|
+
let ae;
|
|
308
|
+
function zr() {
|
|
309
|
+
return ae || (ae = Promise.resolve(), ae.then(() => {
|
|
310
|
+
ae = null;
|
|
311
|
+
})), ae;
|
|
341
312
|
}
|
|
342
|
-
function
|
|
343
|
-
e.dispatchEvent(
|
|
313
|
+
function Me(e, t, r) {
|
|
314
|
+
e.dispatchEvent(Cr(`${t ? "intro" : "outro"}${r}`));
|
|
344
315
|
}
|
|
345
|
-
const
|
|
346
|
-
let
|
|
347
|
-
function
|
|
348
|
-
|
|
316
|
+
const be = /* @__PURE__ */ new Set();
|
|
317
|
+
let R;
|
|
318
|
+
function Os() {
|
|
319
|
+
R = {
|
|
349
320
|
r: 0,
|
|
350
321
|
c: [],
|
|
351
|
-
p:
|
|
322
|
+
p: R
|
|
352
323
|
// parent group
|
|
353
324
|
};
|
|
354
325
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
326
|
+
function Is() {
|
|
327
|
+
R.r || F(R.c), R = R.p;
|
|
357
328
|
}
|
|
358
|
-
function
|
|
359
|
-
e && e.i && (
|
|
329
|
+
function Zr(e, t) {
|
|
330
|
+
e && e.i && (be.delete(e), e.i(t));
|
|
360
331
|
}
|
|
361
|
-
function
|
|
332
|
+
function Ns(e, t, r, n) {
|
|
362
333
|
if (e && e.o) {
|
|
363
|
-
if (
|
|
364
|
-
|
|
365
|
-
|
|
334
|
+
if (be.has(e)) return;
|
|
335
|
+
be.add(e), R.c.push(() => {
|
|
336
|
+
be.delete(e), n && (r && e.d(1), n());
|
|
366
337
|
}), e.o(t);
|
|
367
338
|
} else n && n();
|
|
368
339
|
}
|
|
369
|
-
const
|
|
370
|
-
function
|
|
371
|
-
let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, u = null,
|
|
372
|
-
function
|
|
373
|
-
|
|
340
|
+
const Qr = { duration: 0 };
|
|
341
|
+
function Ms(e, t, r, n) {
|
|
342
|
+
let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, u = null, h = null, l;
|
|
343
|
+
function c() {
|
|
344
|
+
h && $r(e, h);
|
|
374
345
|
}
|
|
375
|
-
function
|
|
346
|
+
function f(m, d) {
|
|
376
347
|
const g = (
|
|
377
348
|
/** @type {Program['d']} */
|
|
378
349
|
m.b - a
|
|
@@ -391,16 +362,16 @@ function Ws(e, t, r, n) {
|
|
|
391
362
|
const {
|
|
392
363
|
delay: d = 0,
|
|
393
364
|
duration: g = 300,
|
|
394
|
-
easing: _ =
|
|
365
|
+
easing: _ = Tr,
|
|
395
366
|
tick: I = O,
|
|
396
367
|
css: S
|
|
397
|
-
} = s ||
|
|
398
|
-
start:
|
|
368
|
+
} = s || Qr, N = {
|
|
369
|
+
start: Pr() + d,
|
|
399
370
|
b: m
|
|
400
371
|
};
|
|
401
|
-
m || (
|
|
402
|
-
e.inert, e.inert = !0)), o || u ? u =
|
|
403
|
-
if (u && H > u.start && (o =
|
|
372
|
+
m || (N.group = R, R.r += 1), "inert" in e && (m ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
373
|
+
e.inert, e.inert = !0)), o || u ? u = N : (S && (c(), h = ht(e, a, m, g, d, _, S)), m && I(0, 1), o = f(N, g), Le(() => Me(e, m, "start")), Br((H) => {
|
|
374
|
+
if (u && H > u.start && (o = f(u, g), u = null, Me(e, o.b, "start"), S && (c(), h = ht(
|
|
404
375
|
e,
|
|
405
376
|
a,
|
|
406
377
|
o.b,
|
|
@@ -410,10 +381,10 @@ function Ws(e, t, r, n) {
|
|
|
410
381
|
s.css
|
|
411
382
|
))), o) {
|
|
412
383
|
if (H >= o.end)
|
|
413
|
-
I(a = o.b, 1 - a),
|
|
384
|
+
I(a = o.b, 1 - a), Me(e, o.b, "end"), u || (o.b ? c() : --o.group.r || F(o.group.c)), o = null;
|
|
414
385
|
else if (H >= o.start) {
|
|
415
|
-
const
|
|
416
|
-
a = o.a + o.d * _(
|
|
386
|
+
const C = H - o.start;
|
|
387
|
+
a = o.a + o.d * _(C / o.duration), I(a, 1 - a);
|
|
417
388
|
}
|
|
418
389
|
}
|
|
419
390
|
return !!(o || u);
|
|
@@ -421,43 +392,43 @@ function Ws(e, t, r, n) {
|
|
|
421
392
|
}
|
|
422
393
|
return {
|
|
423
394
|
run(m) {
|
|
424
|
-
|
|
395
|
+
He(s) ? zr().then(() => {
|
|
425
396
|
s = s({ direction: m ? "in" : "out" }), y(m);
|
|
426
397
|
}) : y(m);
|
|
427
398
|
},
|
|
428
399
|
end() {
|
|
429
|
-
|
|
400
|
+
c(), o = u = null;
|
|
430
401
|
}
|
|
431
402
|
};
|
|
432
403
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
404
|
+
function Cs(e) {
|
|
405
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
435
406
|
}
|
|
436
|
-
function
|
|
407
|
+
function Jr(e, t, r) {
|
|
437
408
|
const { fragment: n, after_update: i } = e.$$;
|
|
438
|
-
n && n.m(t, r),
|
|
439
|
-
const s = e.$$.on_mount.map(
|
|
440
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
441
|
-
}), i.forEach(
|
|
409
|
+
n && n.m(t, r), Le(() => {
|
|
410
|
+
const s = e.$$.on_mount.map(Mt).filter(He);
|
|
411
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : F(s), e.$$.on_mount = [];
|
|
412
|
+
}), i.forEach(Le);
|
|
442
413
|
}
|
|
443
|
-
function
|
|
414
|
+
function qr(e, t) {
|
|
444
415
|
const r = e.$$;
|
|
445
|
-
r.fragment !== null && (
|
|
416
|
+
r.fragment !== null && (Wr(r.after_update), F(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
446
417
|
}
|
|
447
|
-
function
|
|
448
|
-
e.$$.dirty[0] === -1 && (
|
|
418
|
+
function Yr(e, t) {
|
|
419
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
449
420
|
}
|
|
450
|
-
function
|
|
421
|
+
function Kr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
451
422
|
const u = fe;
|
|
452
|
-
|
|
453
|
-
const
|
|
423
|
+
le(e);
|
|
424
|
+
const h = e.$$ = {
|
|
454
425
|
fragment: null,
|
|
455
426
|
ctx: [],
|
|
456
427
|
// state
|
|
457
428
|
props: s,
|
|
458
429
|
update: O,
|
|
459
430
|
not_equal: i,
|
|
460
|
-
bound:
|
|
431
|
+
bound: lt(),
|
|
461
432
|
// lifecycle
|
|
462
433
|
on_mount: [],
|
|
463
434
|
on_destroy: [],
|
|
@@ -466,150 +437,146 @@ function fn(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
466
437
|
after_update: [],
|
|
467
438
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
468
439
|
// everything else
|
|
469
|
-
callbacks:
|
|
440
|
+
callbacks: lt(),
|
|
470
441
|
dirty: o,
|
|
471
442
|
skip_bound: !1,
|
|
472
443
|
root: t.target || u.$$.root
|
|
473
444
|
};
|
|
474
|
-
a && a(
|
|
475
|
-
let
|
|
476
|
-
if (
|
|
477
|
-
const m = y.length ? y[0] :
|
|
478
|
-
return
|
|
479
|
-
}) : [],
|
|
445
|
+
a && a(h.root);
|
|
446
|
+
let l = !1;
|
|
447
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...y) => {
|
|
448
|
+
const m = y.length ? y[0] : f;
|
|
449
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = m) && (!h.skip_bound && h.bound[c] && h.bound[c](m), l && Yr(e, c)), f;
|
|
450
|
+
}) : [], h.update(), l = !0, F(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
480
451
|
if (t.hydrate) {
|
|
481
|
-
const
|
|
482
|
-
|
|
452
|
+
const c = Mr(t.target);
|
|
453
|
+
h.fragment && h.fragment.l(c), c.forEach(U);
|
|
483
454
|
} else
|
|
484
|
-
|
|
485
|
-
t.intro &&
|
|
455
|
+
h.fragment && h.fragment.c();
|
|
456
|
+
t.intro && Zr(e.$$.fragment), Jr(e, t.target, t.anchor), B();
|
|
486
457
|
}
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
let
|
|
490
|
-
typeof HTMLElement == "function" && (
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
458
|
+
le(u);
|
|
459
|
+
}
|
|
460
|
+
let jt;
|
|
461
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
|
462
|
+
/** The Svelte component constructor */
|
|
463
|
+
$$ctor;
|
|
464
|
+
/** Slots */
|
|
465
|
+
$$s;
|
|
466
|
+
/** The Svelte component instance */
|
|
467
|
+
$$c;
|
|
468
|
+
/** Whether or not the custom element is connected */
|
|
469
|
+
$$cn = !1;
|
|
470
|
+
/** Component props data */
|
|
471
|
+
$$d = {};
|
|
472
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
473
|
+
$$r = !1;
|
|
474
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
475
|
+
$$p_d = {};
|
|
476
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
477
|
+
$$l = {};
|
|
478
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
479
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
480
|
+
constructor(e, t, r) {
|
|
481
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
512
482
|
}
|
|
513
|
-
addEventListener(t, r
|
|
514
|
-
if (this.$$l[
|
|
515
|
-
const
|
|
516
|
-
this.$$l_u.set(
|
|
483
|
+
addEventListener(e, t, r) {
|
|
484
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
485
|
+
const n = this.$$c.$on(e, t);
|
|
486
|
+
this.$$l_u.set(t, n);
|
|
517
487
|
}
|
|
518
|
-
super.addEventListener(t, r
|
|
488
|
+
super.addEventListener(e, t, r);
|
|
519
489
|
}
|
|
520
|
-
removeEventListener(t, r
|
|
521
|
-
if (super.removeEventListener(t, r
|
|
522
|
-
const
|
|
523
|
-
|
|
490
|
+
removeEventListener(e, t, r) {
|
|
491
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
492
|
+
const n = this.$$l_u.get(t);
|
|
493
|
+
n && (n(), this.$$l_u.delete(t));
|
|
524
494
|
}
|
|
525
495
|
}
|
|
526
|
-
connectedCallback() {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
};
|
|
496
|
+
async connectedCallback() {
|
|
497
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
498
|
+
let e = function(i) {
|
|
499
|
+
return () => {
|
|
500
|
+
let s;
|
|
501
|
+
return {
|
|
502
|
+
c: function() {
|
|
503
|
+
s = P("slot"), i !== "default" && T(s, "name", i);
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* @param {HTMLElement} target
|
|
507
|
+
* @param {HTMLElement} [anchor]
|
|
508
|
+
*/
|
|
509
|
+
m: function(u, h) {
|
|
510
|
+
ne(u, s, h);
|
|
511
|
+
},
|
|
512
|
+
d: function(u) {
|
|
513
|
+
u && U(s);
|
|
514
|
+
}
|
|
547
515
|
};
|
|
548
516
|
};
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
517
|
+
};
|
|
518
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
519
|
+
return;
|
|
520
|
+
const t = {}, r = Rr(this);
|
|
521
|
+
for (const i of this.$$s)
|
|
522
|
+
i in r && (t[i] = [e(i)]);
|
|
523
|
+
for (const i of this.attributes) {
|
|
524
|
+
const s = this.$$g_p(i.name);
|
|
525
|
+
s in this.$$d || (this.$$d[s] = ye(s, i.value, this.$$p_d, "toProp"));
|
|
526
|
+
}
|
|
527
|
+
for (const i in this.$$p_d)
|
|
528
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
529
|
+
this.$$c = new this.$$ctor({
|
|
530
|
+
target: this.shadowRoot || this,
|
|
531
|
+
props: {
|
|
532
|
+
...this.$$d,
|
|
533
|
+
$$slots: t,
|
|
534
|
+
$$scope: {
|
|
535
|
+
ctx: []
|
|
536
|
+
}
|
|
557
537
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
this.$$
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
this.$$r = !0;
|
|
571
|
-
for (const s in this.$$p_d)
|
|
572
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
573
|
-
const a = _e(
|
|
574
|
-
s,
|
|
575
|
-
this.$$d[s],
|
|
576
|
-
this.$$p_d,
|
|
577
|
-
"toAttribute"
|
|
578
|
-
);
|
|
579
|
-
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
580
|
-
}
|
|
581
|
-
this.$$r = !1;
|
|
582
|
-
};
|
|
583
|
-
this.$$c.$$.after_update.push(i), i();
|
|
584
|
-
for (const s in this.$$l)
|
|
585
|
-
for (const a of this.$$l[s]) {
|
|
586
|
-
const o = this.$$c.$on(s, a);
|
|
587
|
-
this.$$l_u.set(a, o);
|
|
538
|
+
});
|
|
539
|
+
const n = () => {
|
|
540
|
+
this.$$r = !0;
|
|
541
|
+
for (const i in this.$$p_d)
|
|
542
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
543
|
+
const s = ye(
|
|
544
|
+
i,
|
|
545
|
+
this.$$d[i],
|
|
546
|
+
this.$$p_d,
|
|
547
|
+
"toAttribute"
|
|
548
|
+
);
|
|
549
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
588
550
|
}
|
|
589
|
-
this.$$
|
|
590
|
-
}
|
|
591
|
-
|
|
551
|
+
this.$$r = !1;
|
|
552
|
+
};
|
|
553
|
+
this.$$c.$$.after_update.push(n), n();
|
|
554
|
+
for (const i in this.$$l)
|
|
555
|
+
for (const s of this.$$l[i]) {
|
|
556
|
+
const a = this.$$c.$on(i, s);
|
|
557
|
+
this.$$l_u.set(s, a);
|
|
558
|
+
}
|
|
559
|
+
this.$$l = {};
|
|
560
|
+
}
|
|
592
561
|
}
|
|
593
562
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
594
563
|
// and setting attributes through setAttribute etc, this is helpful
|
|
595
|
-
attributeChangedCallback(t, r
|
|
596
|
-
|
|
597
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
564
|
+
attributeChangedCallback(e, t, r) {
|
|
565
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
598
566
|
}
|
|
599
567
|
disconnectedCallback() {
|
|
600
568
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
601
569
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
602
570
|
});
|
|
603
571
|
}
|
|
604
|
-
$$g_p(
|
|
572
|
+
$$g_p(e) {
|
|
605
573
|
return Object.keys(this.$$p_d).find(
|
|
606
|
-
(
|
|
607
|
-
) ||
|
|
574
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
575
|
+
) || e;
|
|
608
576
|
}
|
|
609
577
|
});
|
|
610
|
-
function
|
|
611
|
-
|
|
612
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
578
|
+
function ye(e, t, r, n) {
|
|
579
|
+
const i = r[e]?.type;
|
|
613
580
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
614
581
|
return t;
|
|
615
582
|
if (n === "toAttribute")
|
|
@@ -620,7 +587,7 @@ function _e(e, t, r, n) {
|
|
|
620
587
|
case "Boolean":
|
|
621
588
|
return t ? "" : null;
|
|
622
589
|
case "Number":
|
|
623
|
-
return t
|
|
590
|
+
return t ?? null;
|
|
624
591
|
default:
|
|
625
592
|
return t;
|
|
626
593
|
}
|
|
@@ -637,8 +604,8 @@ function _e(e, t, r, n) {
|
|
|
637
604
|
return t;
|
|
638
605
|
}
|
|
639
606
|
}
|
|
640
|
-
function
|
|
641
|
-
let a = class extends
|
|
607
|
+
function en(e, t, r, n, i, s) {
|
|
608
|
+
let a = class extends jt {
|
|
642
609
|
constructor() {
|
|
643
610
|
super(e, r, i), this.$$p_d = t;
|
|
644
611
|
}
|
|
@@ -654,42 +621,38 @@ function mn(e, t, r, n, i, s) {
|
|
|
654
621
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
655
622
|
},
|
|
656
623
|
set(u) {
|
|
657
|
-
|
|
658
|
-
u = _e(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
|
|
624
|
+
u = ye(o, u, t), this.$$d[o] = u, this.$$c?.$set({ [o]: u });
|
|
659
625
|
}
|
|
660
626
|
});
|
|
661
627
|
}), n.forEach((o) => {
|
|
662
628
|
Object.defineProperty(a.prototype, o, {
|
|
663
629
|
get() {
|
|
664
|
-
|
|
665
|
-
return (u = this.$$c) == null ? void 0 : u[o];
|
|
630
|
+
return this.$$c?.[o];
|
|
666
631
|
}
|
|
667
632
|
});
|
|
668
633
|
}), e.element = /** @type {any} */
|
|
669
634
|
a, a;
|
|
670
635
|
}
|
|
671
|
-
class
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
N(this, "$$set");
|
|
689
|
-
}
|
|
636
|
+
class tn {
|
|
637
|
+
/**
|
|
638
|
+
* ### PRIVATE API
|
|
639
|
+
*
|
|
640
|
+
* Do not use, may change at any time
|
|
641
|
+
*
|
|
642
|
+
* @type {any}
|
|
643
|
+
*/
|
|
644
|
+
$$ = void 0;
|
|
645
|
+
/**
|
|
646
|
+
* ### PRIVATE API
|
|
647
|
+
*
|
|
648
|
+
* Do not use, may change at any time
|
|
649
|
+
*
|
|
650
|
+
* @type {any}
|
|
651
|
+
*/
|
|
652
|
+
$$set = void 0;
|
|
690
653
|
/** @returns {void} */
|
|
691
654
|
$destroy() {
|
|
692
|
-
|
|
655
|
+
qr(this, 1), this.$destroy = O;
|
|
693
656
|
}
|
|
694
657
|
/**
|
|
695
658
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -698,7 +661,7 @@ class pn {
|
|
|
698
661
|
* @returns {() => void}
|
|
699
662
|
*/
|
|
700
663
|
$on(t, r) {
|
|
701
|
-
if (!
|
|
664
|
+
if (!He(r))
|
|
702
665
|
return O;
|
|
703
666
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
704
667
|
return n.push(r), () => {
|
|
@@ -711,22 +674,22 @@ class pn {
|
|
|
711
674
|
* @returns {void}
|
|
712
675
|
*/
|
|
713
676
|
$set(t) {
|
|
714
|
-
this.$$set &&
|
|
677
|
+
this.$$set && !Hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
715
678
|
}
|
|
716
679
|
}
|
|
717
|
-
const
|
|
718
|
-
typeof window
|
|
719
|
-
var
|
|
720
|
-
return
|
|
680
|
+
const rn = "4";
|
|
681
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rn);
|
|
682
|
+
var ke = function(e, t) {
|
|
683
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
721
684
|
r.__proto__ = n;
|
|
722
685
|
} || function(r, n) {
|
|
723
686
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
724
|
-
},
|
|
687
|
+
}, ke(e, t);
|
|
725
688
|
};
|
|
726
|
-
function
|
|
689
|
+
function G(e, t) {
|
|
727
690
|
if (typeof t != "function" && t !== null)
|
|
728
691
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
729
|
-
|
|
692
|
+
ke(e, t);
|
|
730
693
|
function r() {
|
|
731
694
|
this.constructor = e;
|
|
732
695
|
}
|
|
@@ -741,7 +704,7 @@ var x = function() {
|
|
|
741
704
|
return t;
|
|
742
705
|
}, x.apply(this, arguments);
|
|
743
706
|
};
|
|
744
|
-
function
|
|
707
|
+
function nn(e, t) {
|
|
745
708
|
var r = {};
|
|
746
709
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
747
710
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -749,7 +712,7 @@ function gn(e, t) {
|
|
|
749
712
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
750
713
|
return r;
|
|
751
714
|
}
|
|
752
|
-
function
|
|
715
|
+
function Ve(e) {
|
|
753
716
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
754
717
|
if (r) return r.call(e);
|
|
755
718
|
if (e && typeof e.length == "number") return {
|
|
@@ -759,7 +722,7 @@ function We(e) {
|
|
|
759
722
|
};
|
|
760
723
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
761
724
|
}
|
|
762
|
-
function
|
|
725
|
+
function Xe(e, t) {
|
|
763
726
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
764
727
|
if (!r) return e;
|
|
765
728
|
var n = r.call(e), i, s = [], a;
|
|
@@ -776,21 +739,21 @@ function ze(e, t) {
|
|
|
776
739
|
}
|
|
777
740
|
return s;
|
|
778
741
|
}
|
|
779
|
-
function
|
|
742
|
+
function Y(e, t, r) {
|
|
780
743
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
781
744
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
782
745
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
783
746
|
}
|
|
784
|
-
function
|
|
747
|
+
function D(e) {
|
|
785
748
|
return typeof e == "function";
|
|
786
749
|
}
|
|
787
|
-
function
|
|
750
|
+
function kt(e) {
|
|
788
751
|
var t = function(n) {
|
|
789
752
|
Error.call(n), n.stack = new Error().stack;
|
|
790
753
|
}, r = e(t);
|
|
791
754
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
792
755
|
}
|
|
793
|
-
var
|
|
756
|
+
var Ce = kt(function(e) {
|
|
794
757
|
return function(r) {
|
|
795
758
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
796
759
|
` + r.map(function(n, i) {
|
|
@@ -799,13 +762,13 @@ var De = Qt(function(e) {
|
|
|
799
762
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
800
763
|
};
|
|
801
764
|
});
|
|
802
|
-
function
|
|
765
|
+
function We(e, t) {
|
|
803
766
|
if (e) {
|
|
804
767
|
var r = e.indexOf(t);
|
|
805
768
|
0 <= r && e.splice(r, 1);
|
|
806
769
|
}
|
|
807
770
|
}
|
|
808
|
-
var
|
|
771
|
+
var Ae = function() {
|
|
809
772
|
function e(t) {
|
|
810
773
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
811
774
|
}
|
|
@@ -817,9 +780,9 @@ var Pe = function() {
|
|
|
817
780
|
if (a)
|
|
818
781
|
if (this._parentage = null, Array.isArray(a))
|
|
819
782
|
try {
|
|
820
|
-
for (var o =
|
|
821
|
-
var
|
|
822
|
-
|
|
783
|
+
for (var o = Ve(a), u = o.next(); !u.done; u = o.next()) {
|
|
784
|
+
var h = u.value;
|
|
785
|
+
h.remove(this);
|
|
823
786
|
}
|
|
824
787
|
} catch (d) {
|
|
825
788
|
t = { error: d };
|
|
@@ -832,43 +795,43 @@ var Pe = function() {
|
|
|
832
795
|
}
|
|
833
796
|
else
|
|
834
797
|
a.remove(this);
|
|
835
|
-
var
|
|
836
|
-
if (
|
|
798
|
+
var l = this.initialTeardown;
|
|
799
|
+
if (D(l))
|
|
837
800
|
try {
|
|
838
|
-
|
|
801
|
+
l();
|
|
839
802
|
} catch (d) {
|
|
840
|
-
s = d instanceof
|
|
803
|
+
s = d instanceof Ce ? d.errors : [d];
|
|
841
804
|
}
|
|
842
|
-
var
|
|
843
|
-
if (
|
|
805
|
+
var c = this._finalizers;
|
|
806
|
+
if (c) {
|
|
844
807
|
this._finalizers = null;
|
|
845
808
|
try {
|
|
846
|
-
for (var
|
|
809
|
+
for (var f = Ve(c), y = f.next(); !y.done; y = f.next()) {
|
|
847
810
|
var m = y.value;
|
|
848
811
|
try {
|
|
849
|
-
|
|
812
|
+
ct(m);
|
|
850
813
|
} catch (d) {
|
|
851
|
-
s = s
|
|
814
|
+
s = s ?? [], d instanceof Ce ? s = Y(Y([], Xe(s)), Xe(d.errors)) : s.push(d);
|
|
852
815
|
}
|
|
853
816
|
}
|
|
854
817
|
} catch (d) {
|
|
855
818
|
n = { error: d };
|
|
856
819
|
} finally {
|
|
857
820
|
try {
|
|
858
|
-
y && !y.done && (i =
|
|
821
|
+
y && !y.done && (i = f.return) && i.call(f);
|
|
859
822
|
} finally {
|
|
860
823
|
if (n) throw n.error;
|
|
861
824
|
}
|
|
862
825
|
}
|
|
863
826
|
}
|
|
864
827
|
if (s)
|
|
865
|
-
throw new
|
|
828
|
+
throw new Ce(s);
|
|
866
829
|
}
|
|
867
830
|
}, e.prototype.add = function(t) {
|
|
868
831
|
var r;
|
|
869
832
|
if (t && t !== this)
|
|
870
833
|
if (this.closed)
|
|
871
|
-
|
|
834
|
+
ct(t);
|
|
872
835
|
else {
|
|
873
836
|
if (t instanceof e) {
|
|
874
837
|
if (t.closed || t._hasParent(this))
|
|
@@ -885,56 +848,56 @@ var Pe = function() {
|
|
|
885
848
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
886
849
|
}, e.prototype._removeParent = function(t) {
|
|
887
850
|
var r = this._parentage;
|
|
888
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
851
|
+
r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
|
|
889
852
|
}, e.prototype.remove = function(t) {
|
|
890
853
|
var r = this._finalizers;
|
|
891
|
-
r &&
|
|
854
|
+
r && We(r, t), t instanceof e && t._removeParent(this);
|
|
892
855
|
}, e.EMPTY = function() {
|
|
893
856
|
var t = new e();
|
|
894
857
|
return t.closed = !0, t;
|
|
895
858
|
}(), e;
|
|
896
|
-
}(),
|
|
897
|
-
function
|
|
898
|
-
return e instanceof
|
|
859
|
+
}(), Vt = Ae.EMPTY;
|
|
860
|
+
function Xt(e) {
|
|
861
|
+
return e instanceof Ae || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
899
862
|
}
|
|
900
|
-
function
|
|
901
|
-
|
|
863
|
+
function ct(e) {
|
|
864
|
+
D(e) ? e() : e.unsubscribe();
|
|
902
865
|
}
|
|
903
|
-
var
|
|
866
|
+
var sn = {
|
|
904
867
|
onUnhandledError: null,
|
|
905
868
|
onStoppedNotification: null,
|
|
906
869
|
Promise: void 0,
|
|
907
870
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
908
871
|
useDeprecatedNextContext: !1
|
|
909
|
-
},
|
|
872
|
+
}, on = {
|
|
910
873
|
setTimeout: function(e, t) {
|
|
911
874
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
912
875
|
r[n - 2] = arguments[n];
|
|
913
|
-
return setTimeout.apply(void 0,
|
|
876
|
+
return setTimeout.apply(void 0, Y([e, t], Xe(r)));
|
|
914
877
|
},
|
|
915
878
|
clearTimeout: function(e) {
|
|
916
879
|
return clearTimeout(e);
|
|
917
880
|
},
|
|
918
881
|
delegate: void 0
|
|
919
882
|
};
|
|
920
|
-
function
|
|
921
|
-
|
|
883
|
+
function an(e) {
|
|
884
|
+
on.setTimeout(function() {
|
|
922
885
|
throw e;
|
|
923
886
|
});
|
|
924
887
|
}
|
|
925
|
-
function
|
|
888
|
+
function mt() {
|
|
926
889
|
}
|
|
927
|
-
function
|
|
890
|
+
function _e(e) {
|
|
928
891
|
e();
|
|
929
892
|
}
|
|
930
|
-
var
|
|
931
|
-
|
|
893
|
+
var Wt = function(e) {
|
|
894
|
+
G(t, e);
|
|
932
895
|
function t(r) {
|
|
933
896
|
var n = e.call(this) || this;
|
|
934
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
897
|
+
return n.isStopped = !1, r ? (n.destination = r, Xt(r) && r.add(n)) : n.destination = hn, n;
|
|
935
898
|
}
|
|
936
899
|
return t.create = function(r, n, i) {
|
|
937
|
-
return new
|
|
900
|
+
return new ze(r, n, i);
|
|
938
901
|
}, t.prototype.next = function(r) {
|
|
939
902
|
this.isStopped || this._next(r);
|
|
940
903
|
}, t.prototype.error = function(r) {
|
|
@@ -958,7 +921,7 @@ var Yt = function(e) {
|
|
|
958
921
|
this.unsubscribe();
|
|
959
922
|
}
|
|
960
923
|
}, t;
|
|
961
|
-
}(
|
|
924
|
+
}(Ae), un = function() {
|
|
962
925
|
function e(t) {
|
|
963
926
|
this.partialObserver = t;
|
|
964
927
|
}
|
|
@@ -968,7 +931,7 @@ var Yt = function(e) {
|
|
|
968
931
|
try {
|
|
969
932
|
r.next(t);
|
|
970
933
|
} catch (n) {
|
|
971
|
-
|
|
934
|
+
de(n);
|
|
972
935
|
}
|
|
973
936
|
}, e.prototype.error = function(t) {
|
|
974
937
|
var r = this.partialObserver;
|
|
@@ -976,56 +939,56 @@ var Yt = function(e) {
|
|
|
976
939
|
try {
|
|
977
940
|
r.error(t);
|
|
978
941
|
} catch (n) {
|
|
979
|
-
|
|
942
|
+
de(n);
|
|
980
943
|
}
|
|
981
944
|
else
|
|
982
|
-
|
|
945
|
+
de(t);
|
|
983
946
|
}, e.prototype.complete = function() {
|
|
984
947
|
var t = this.partialObserver;
|
|
985
948
|
if (t.complete)
|
|
986
949
|
try {
|
|
987
950
|
t.complete();
|
|
988
951
|
} catch (r) {
|
|
989
|
-
|
|
952
|
+
de(r);
|
|
990
953
|
}
|
|
991
954
|
}, e;
|
|
992
|
-
}(),
|
|
993
|
-
|
|
955
|
+
}(), ze = function(e) {
|
|
956
|
+
G(t, e);
|
|
994
957
|
function t(r, n, i) {
|
|
995
958
|
var s = e.call(this) || this, a;
|
|
996
|
-
return
|
|
997
|
-
next: r
|
|
998
|
-
error: n
|
|
999
|
-
complete: i
|
|
1000
|
-
} : a = r, s.destination = new
|
|
959
|
+
return D(r) || !r ? a = {
|
|
960
|
+
next: r ?? void 0,
|
|
961
|
+
error: n ?? void 0,
|
|
962
|
+
complete: i ?? void 0
|
|
963
|
+
} : a = r, s.destination = new un(a), s;
|
|
1001
964
|
}
|
|
1002
965
|
return t;
|
|
1003
|
-
}(
|
|
1004
|
-
function
|
|
1005
|
-
|
|
966
|
+
}(Wt);
|
|
967
|
+
function de(e) {
|
|
968
|
+
an(e);
|
|
1006
969
|
}
|
|
1007
|
-
function
|
|
970
|
+
function ln(e) {
|
|
1008
971
|
throw e;
|
|
1009
972
|
}
|
|
1010
|
-
var
|
|
973
|
+
var hn = {
|
|
1011
974
|
closed: !0,
|
|
1012
|
-
next:
|
|
1013
|
-
error:
|
|
1014
|
-
complete:
|
|
1015
|
-
},
|
|
975
|
+
next: mt,
|
|
976
|
+
error: ln,
|
|
977
|
+
complete: mt
|
|
978
|
+
}, fn = function() {
|
|
1016
979
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1017
980
|
}();
|
|
1018
|
-
function
|
|
981
|
+
function cn(e) {
|
|
1019
982
|
return e;
|
|
1020
983
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return e.length === 0 ?
|
|
984
|
+
function mn(e) {
|
|
985
|
+
return e.length === 0 ? cn : e.length === 1 ? e[0] : function(r) {
|
|
1023
986
|
return e.reduce(function(n, i) {
|
|
1024
987
|
return i(n);
|
|
1025
988
|
}, r);
|
|
1026
989
|
};
|
|
1027
990
|
}
|
|
1028
|
-
var
|
|
991
|
+
var pt = function() {
|
|
1029
992
|
function e(t) {
|
|
1030
993
|
t && (this._subscribe = t);
|
|
1031
994
|
}
|
|
@@ -1033,8 +996,8 @@ var vt = function() {
|
|
|
1033
996
|
var r = new e();
|
|
1034
997
|
return r.source = this, r.operator = t, r;
|
|
1035
998
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
1036
|
-
var i = this, s =
|
|
1037
|
-
return
|
|
999
|
+
var i = this, s = dn(t) ? t : new ze(t, r, n);
|
|
1000
|
+
return _e(function() {
|
|
1038
1001
|
var a = i, o = a.operator, u = a.source;
|
|
1039
1002
|
s.add(o ? o.call(s, u) : u ? i._subscribe(s) : i._trySubscribe(s));
|
|
1040
1003
|
}), s;
|
|
@@ -1046,8 +1009,8 @@ var vt = function() {
|
|
|
1046
1009
|
}
|
|
1047
1010
|
}, e.prototype.forEach = function(t, r) {
|
|
1048
1011
|
var n = this;
|
|
1049
|
-
return r =
|
|
1050
|
-
var a = new
|
|
1012
|
+
return r = dt(r), new r(function(i, s) {
|
|
1013
|
+
var a = new ze({
|
|
1051
1014
|
next: function(o) {
|
|
1052
1015
|
try {
|
|
1053
1016
|
t(o);
|
|
@@ -1063,15 +1026,15 @@ var vt = function() {
|
|
|
1063
1026
|
}, e.prototype._subscribe = function(t) {
|
|
1064
1027
|
var r;
|
|
1065
1028
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1066
|
-
}, e.prototype[
|
|
1029
|
+
}, e.prototype[fn] = function() {
|
|
1067
1030
|
return this;
|
|
1068
1031
|
}, e.prototype.pipe = function() {
|
|
1069
1032
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1070
1033
|
t[r] = arguments[r];
|
|
1071
|
-
return
|
|
1034
|
+
return mn(t)(this);
|
|
1072
1035
|
}, e.prototype.toPromise = function(t) {
|
|
1073
1036
|
var r = this;
|
|
1074
|
-
return t =
|
|
1037
|
+
return t = dt(t), new t(function(n, i) {
|
|
1075
1038
|
var s;
|
|
1076
1039
|
r.subscribe(function(a) {
|
|
1077
1040
|
return s = a;
|
|
@@ -1085,45 +1048,45 @@ var vt = function() {
|
|
|
1085
1048
|
return new e(t);
|
|
1086
1049
|
}, e;
|
|
1087
1050
|
}();
|
|
1088
|
-
function
|
|
1051
|
+
function dt(e) {
|
|
1089
1052
|
var t;
|
|
1090
|
-
return (t = e
|
|
1053
|
+
return (t = e ?? sn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1091
1054
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return e &&
|
|
1055
|
+
function pn(e) {
|
|
1056
|
+
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
1094
1057
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e && e instanceof
|
|
1058
|
+
function dn(e) {
|
|
1059
|
+
return e && e instanceof Wt || pn(e) && Xt(e);
|
|
1097
1060
|
}
|
|
1098
|
-
var
|
|
1061
|
+
var gn = kt(function(e) {
|
|
1099
1062
|
return function() {
|
|
1100
1063
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1101
1064
|
};
|
|
1102
|
-
}),
|
|
1103
|
-
|
|
1065
|
+
}), zt = function(e) {
|
|
1066
|
+
G(t, e);
|
|
1104
1067
|
function t() {
|
|
1105
1068
|
var r = e.call(this) || this;
|
|
1106
1069
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1107
1070
|
}
|
|
1108
1071
|
return t.prototype.lift = function(r) {
|
|
1109
|
-
var n = new
|
|
1072
|
+
var n = new gt(this, this);
|
|
1110
1073
|
return n.operator = r, n;
|
|
1111
1074
|
}, t.prototype._throwIfClosed = function() {
|
|
1112
1075
|
if (this.closed)
|
|
1113
|
-
throw new
|
|
1076
|
+
throw new gn();
|
|
1114
1077
|
}, t.prototype.next = function(r) {
|
|
1115
1078
|
var n = this;
|
|
1116
|
-
|
|
1079
|
+
_e(function() {
|
|
1117
1080
|
var i, s;
|
|
1118
1081
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1119
1082
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1120
1083
|
try {
|
|
1121
|
-
for (var a =
|
|
1084
|
+
for (var a = Ve(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
|
|
1122
1085
|
var u = o.value;
|
|
1123
1086
|
u.next(r);
|
|
1124
1087
|
}
|
|
1125
|
-
} catch (
|
|
1126
|
-
i = { error:
|
|
1088
|
+
} catch (h) {
|
|
1089
|
+
i = { error: h };
|
|
1127
1090
|
} finally {
|
|
1128
1091
|
try {
|
|
1129
1092
|
o && !o.done && (s = a.return) && s.call(a);
|
|
@@ -1135,7 +1098,7 @@ var An = Qt(function(e) {
|
|
|
1135
1098
|
});
|
|
1136
1099
|
}, t.prototype.error = function(r) {
|
|
1137
1100
|
var n = this;
|
|
1138
|
-
|
|
1101
|
+
_e(function() {
|
|
1139
1102
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1140
1103
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1141
1104
|
for (var i = n.observers; i.length; )
|
|
@@ -1144,7 +1107,7 @@ var An = Qt(function(e) {
|
|
|
1144
1107
|
});
|
|
1145
1108
|
}, t.prototype.complete = function() {
|
|
1146
1109
|
var r = this;
|
|
1147
|
-
|
|
1110
|
+
_e(function() {
|
|
1148
1111
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1149
1112
|
r.isStopped = !0;
|
|
1150
1113
|
for (var n = r.observers; n.length; )
|
|
@@ -1166,20 +1129,20 @@ var An = Qt(function(e) {
|
|
|
1166
1129
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1167
1130
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1168
1131
|
var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
|
|
1169
|
-
return s || a ?
|
|
1170
|
-
n.currentObservers = null,
|
|
1132
|
+
return s || a ? Vt : (this.currentObservers = null, o.push(r), new Ae(function() {
|
|
1133
|
+
n.currentObservers = null, We(o, r);
|
|
1171
1134
|
}));
|
|
1172
1135
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1173
1136
|
var n = this, i = n.hasError, s = n.thrownError, a = n.isStopped;
|
|
1174
1137
|
i ? r.error(s) : a && r.complete();
|
|
1175
1138
|
}, t.prototype.asObservable = function() {
|
|
1176
|
-
var r = new
|
|
1139
|
+
var r = new pt();
|
|
1177
1140
|
return r.source = this, r;
|
|
1178
1141
|
}, t.create = function(r, n) {
|
|
1179
|
-
return new
|
|
1142
|
+
return new gt(r, n);
|
|
1180
1143
|
}, t;
|
|
1181
|
-
}(
|
|
1182
|
-
|
|
1144
|
+
}(pt), gt = function(e) {
|
|
1145
|
+
G(t, e);
|
|
1183
1146
|
function t(r, n) {
|
|
1184
1147
|
var i = e.call(this) || this;
|
|
1185
1148
|
return i.destination = r, i.source = n, i;
|
|
@@ -1195,17 +1158,17 @@ var An = Qt(function(e) {
|
|
|
1195
1158
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1196
1159
|
}, t.prototype._subscribe = function(r) {
|
|
1197
1160
|
var n, i;
|
|
1198
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1161
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Vt;
|
|
1199
1162
|
}, t;
|
|
1200
|
-
}(
|
|
1163
|
+
}(zt), Zt = {
|
|
1201
1164
|
now: function() {
|
|
1202
|
-
return (
|
|
1165
|
+
return (Zt.delegate || Date).now();
|
|
1203
1166
|
},
|
|
1204
1167
|
delegate: void 0
|
|
1205
|
-
},
|
|
1206
|
-
|
|
1168
|
+
}, bn = function(e) {
|
|
1169
|
+
G(t, e);
|
|
1207
1170
|
function t(r, n, i) {
|
|
1208
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1171
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Zt);
|
|
1209
1172
|
var s = e.call(this) || this;
|
|
1210
1173
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1211
1174
|
}
|
|
@@ -1220,36 +1183,36 @@ var An = Qt(function(e) {
|
|
|
1220
1183
|
}, t.prototype._trimBuffer = function() {
|
|
1221
1184
|
var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, a = r._infiniteTimeWindow, o = (a ? 1 : 2) * n;
|
|
1222
1185
|
if (n < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
|
|
1223
|
-
for (var u = i.now(),
|
|
1224
|
-
|
|
1225
|
-
|
|
1186
|
+
for (var u = i.now(), h = 0, l = 1; l < s.length && s[l] <= u; l += 2)
|
|
1187
|
+
h = l;
|
|
1188
|
+
h && s.splice(0, h + 1);
|
|
1226
1189
|
}
|
|
1227
1190
|
}, t;
|
|
1228
|
-
}(
|
|
1229
|
-
const
|
|
1230
|
-
if (
|
|
1231
|
-
const r = new
|
|
1232
|
-
|
|
1191
|
+
}(zt);
|
|
1192
|
+
const bt = [], yt = {}, yn = (e, t = 0) => {
|
|
1193
|
+
if (bt.indexOf(e) == -1) {
|
|
1194
|
+
const r = new bn(t);
|
|
1195
|
+
yt[e] = r, bt.push(e);
|
|
1233
1196
|
}
|
|
1234
|
-
return
|
|
1235
|
-
},
|
|
1236
|
-
function
|
|
1197
|
+
return yt[e];
|
|
1198
|
+
}, z = [];
|
|
1199
|
+
function _n(e, t) {
|
|
1237
1200
|
return {
|
|
1238
|
-
subscribe:
|
|
1201
|
+
subscribe: Pe(e, t).subscribe
|
|
1239
1202
|
};
|
|
1240
1203
|
}
|
|
1241
|
-
function
|
|
1204
|
+
function Pe(e, t = O) {
|
|
1242
1205
|
let r;
|
|
1243
1206
|
const n = /* @__PURE__ */ new Set();
|
|
1244
1207
|
function i(o) {
|
|
1245
|
-
if (
|
|
1246
|
-
const u = !
|
|
1247
|
-
for (const
|
|
1248
|
-
|
|
1208
|
+
if (Ct(e, o) && (e = o, r)) {
|
|
1209
|
+
const u = !z.length;
|
|
1210
|
+
for (const h of n)
|
|
1211
|
+
h[1](), z.push(h, e);
|
|
1249
1212
|
if (u) {
|
|
1250
|
-
for (let
|
|
1251
|
-
|
|
1252
|
-
|
|
1213
|
+
for (let h = 0; h < z.length; h += 2)
|
|
1214
|
+
z[h][0](z[h + 1]);
|
|
1215
|
+
z.length = 0;
|
|
1253
1216
|
}
|
|
1254
1217
|
}
|
|
1255
1218
|
}
|
|
@@ -1257,152 +1220,152 @@ function Be(e, t = O) {
|
|
|
1257
1220
|
i(o(e));
|
|
1258
1221
|
}
|
|
1259
1222
|
function a(o, u = O) {
|
|
1260
|
-
const
|
|
1261
|
-
return n.add(
|
|
1262
|
-
n.delete(
|
|
1223
|
+
const h = [o, u];
|
|
1224
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || O), o(e), () => {
|
|
1225
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
|
1263
1226
|
};
|
|
1264
1227
|
}
|
|
1265
1228
|
return { set: i, update: s, subscribe: a };
|
|
1266
1229
|
}
|
|
1267
|
-
function
|
|
1230
|
+
function ie(e, t, r) {
|
|
1268
1231
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1269
1232
|
if (!i.every(Boolean))
|
|
1270
1233
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1271
1234
|
const s = t.length < 2;
|
|
1272
|
-
return
|
|
1235
|
+
return _n(r, (a, o) => {
|
|
1273
1236
|
let u = !1;
|
|
1274
|
-
const
|
|
1275
|
-
let
|
|
1276
|
-
const
|
|
1277
|
-
if (
|
|
1237
|
+
const h = [];
|
|
1238
|
+
let l = 0, c = O;
|
|
1239
|
+
const f = () => {
|
|
1240
|
+
if (l)
|
|
1278
1241
|
return;
|
|
1279
|
-
|
|
1280
|
-
const m = t(n ?
|
|
1281
|
-
s ? a(m) :
|
|
1242
|
+
c();
|
|
1243
|
+
const m = t(n ? h[0] : h, a, o);
|
|
1244
|
+
s ? a(m) : c = He(m) ? m : O;
|
|
1282
1245
|
}, y = i.map(
|
|
1283
|
-
(m, d) =>
|
|
1246
|
+
(m, d) => Rt(
|
|
1284
1247
|
m,
|
|
1285
1248
|
(g) => {
|
|
1286
|
-
|
|
1249
|
+
h[d] = g, l &= ~(1 << d), u && f();
|
|
1287
1250
|
},
|
|
1288
1251
|
() => {
|
|
1289
|
-
|
|
1252
|
+
l |= 1 << d;
|
|
1290
1253
|
}
|
|
1291
1254
|
)
|
|
1292
1255
|
);
|
|
1293
|
-
return u = !0,
|
|
1294
|
-
|
|
1256
|
+
return u = !0, f(), function() {
|
|
1257
|
+
F(y), c(), u = !1;
|
|
1295
1258
|
};
|
|
1296
1259
|
});
|
|
1297
1260
|
}
|
|
1298
|
-
function
|
|
1261
|
+
function vn(e) {
|
|
1299
1262
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1300
1263
|
}
|
|
1301
|
-
var
|
|
1302
|
-
return
|
|
1264
|
+
var En = function(t) {
|
|
1265
|
+
return xn(t) && !wn(t);
|
|
1303
1266
|
};
|
|
1304
|
-
function
|
|
1267
|
+
function xn(e) {
|
|
1305
1268
|
return !!e && typeof e == "object";
|
|
1306
1269
|
}
|
|
1307
|
-
function
|
|
1270
|
+
function wn(e) {
|
|
1308
1271
|
var t = Object.prototype.toString.call(e);
|
|
1309
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1272
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
|
1310
1273
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1313
|
-
return e.$$typeof ===
|
|
1274
|
+
var Ln = typeof Symbol == "function" && Symbol.for, Tn = Ln ? Symbol.for("react.element") : 60103;
|
|
1275
|
+
function Sn(e) {
|
|
1276
|
+
return e.$$typeof === Tn;
|
|
1314
1277
|
}
|
|
1315
|
-
function
|
|
1278
|
+
function Hn(e) {
|
|
1316
1279
|
return Array.isArray(e) ? [] : {};
|
|
1317
1280
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1281
|
+
function ce(e, t) {
|
|
1282
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(Hn(e), e, t) : e;
|
|
1320
1283
|
}
|
|
1321
|
-
function
|
|
1284
|
+
function An(e, t, r) {
|
|
1322
1285
|
return e.concat(t).map(function(n) {
|
|
1323
|
-
return
|
|
1286
|
+
return ce(n, r);
|
|
1324
1287
|
});
|
|
1325
1288
|
}
|
|
1326
|
-
function
|
|
1289
|
+
function Pn(e, t) {
|
|
1327
1290
|
if (!t.customMerge)
|
|
1328
|
-
return
|
|
1291
|
+
return K;
|
|
1329
1292
|
var r = t.customMerge(e);
|
|
1330
|
-
return typeof r == "function" ? r :
|
|
1293
|
+
return typeof r == "function" ? r : K;
|
|
1331
1294
|
}
|
|
1332
|
-
function
|
|
1295
|
+
function Bn(e) {
|
|
1333
1296
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1334
1297
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1335
1298
|
}) : [];
|
|
1336
1299
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return Object.keys(e).concat(
|
|
1300
|
+
function _t(e) {
|
|
1301
|
+
return Object.keys(e).concat(Bn(e));
|
|
1339
1302
|
}
|
|
1340
|
-
function
|
|
1303
|
+
function Qt(e, t) {
|
|
1341
1304
|
try {
|
|
1342
1305
|
return t in e;
|
|
1343
|
-
} catch
|
|
1306
|
+
} catch {
|
|
1344
1307
|
return !1;
|
|
1345
1308
|
}
|
|
1346
1309
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return
|
|
1310
|
+
function On(e, t) {
|
|
1311
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1349
1312
|
}
|
|
1350
|
-
function
|
|
1313
|
+
function In(e, t, r) {
|
|
1351
1314
|
var n = {};
|
|
1352
|
-
return r.isMergeableObject(e) &&
|
|
1353
|
-
n[i] =
|
|
1354
|
-
}),
|
|
1355
|
-
|
|
1315
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1316
|
+
n[i] = ce(e[i], r);
|
|
1317
|
+
}), _t(t).forEach(function(i) {
|
|
1318
|
+
On(e, i) || (Qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1356
1319
|
}), n;
|
|
1357
1320
|
}
|
|
1358
|
-
function
|
|
1359
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1321
|
+
function K(e, t, r) {
|
|
1322
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1360
1323
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1361
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1324
|
+
return s ? n ? r.arrayMerge(e, t, r) : In(e, t, r) : ce(t, r);
|
|
1362
1325
|
}
|
|
1363
|
-
|
|
1326
|
+
K.all = function(t, r) {
|
|
1364
1327
|
if (!Array.isArray(t))
|
|
1365
1328
|
throw new Error("first argument should be an array");
|
|
1366
1329
|
return t.reduce(function(n, i) {
|
|
1367
|
-
return
|
|
1330
|
+
return K(n, i, r);
|
|
1368
1331
|
}, {});
|
|
1369
1332
|
};
|
|
1370
|
-
var
|
|
1371
|
-
const
|
|
1372
|
-
function
|
|
1373
|
-
var r = t && t.cache ? t.cache :
|
|
1333
|
+
var Nn = K, Mn = Nn;
|
|
1334
|
+
const Cn = /* @__PURE__ */ vn(Mn);
|
|
1335
|
+
function Re(e, t) {
|
|
1336
|
+
var r = t && t.cache ? t.cache : jn, n = t && t.serializer ? t.serializer : Un, i = t && t.strategy ? t.strategy : Dn;
|
|
1374
1337
|
return i(e, {
|
|
1375
1338
|
cache: r,
|
|
1376
1339
|
serializer: n
|
|
1377
1340
|
});
|
|
1378
1341
|
}
|
|
1379
|
-
function
|
|
1342
|
+
function Rn(e) {
|
|
1380
1343
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1381
1344
|
}
|
|
1382
|
-
function
|
|
1383
|
-
var i =
|
|
1384
|
-
return typeof s
|
|
1345
|
+
function Jt(e, t, r, n) {
|
|
1346
|
+
var i = Rn(n) ? n : r(n), s = t.get(i);
|
|
1347
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1385
1348
|
}
|
|
1386
|
-
function
|
|
1349
|
+
function qt(e, t, r) {
|
|
1387
1350
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1388
|
-
return typeof s
|
|
1351
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1389
1352
|
}
|
|
1390
|
-
function
|
|
1353
|
+
function it(e, t, r, n, i) {
|
|
1391
1354
|
return r.bind(t, e, n, i);
|
|
1392
1355
|
}
|
|
1393
|
-
function
|
|
1394
|
-
var r = e.length === 1 ?
|
|
1395
|
-
return
|
|
1356
|
+
function Dn(e, t) {
|
|
1357
|
+
var r = e.length === 1 ? Jt : qt;
|
|
1358
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
|
1396
1359
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1360
|
+
function Gn(e, t) {
|
|
1361
|
+
return it(e, this, qt, t.cache.create(), t.serializer);
|
|
1399
1362
|
}
|
|
1400
|
-
function
|
|
1401
|
-
return
|
|
1363
|
+
function $n(e, t) {
|
|
1364
|
+
return it(e, this, Jt, t.cache.create(), t.serializer);
|
|
1402
1365
|
}
|
|
1403
|
-
var
|
|
1366
|
+
var Un = function() {
|
|
1404
1367
|
return JSON.stringify(arguments);
|
|
1405
|
-
},
|
|
1368
|
+
}, Fn = (
|
|
1406
1369
|
/** @class */
|
|
1407
1370
|
function() {
|
|
1408
1371
|
function e() {
|
|
@@ -1414,13 +1377,13 @@ var Yn = function() {
|
|
|
1414
1377
|
this.cache[t] = r;
|
|
1415
1378
|
}, e;
|
|
1416
1379
|
}()
|
|
1417
|
-
),
|
|
1380
|
+
), jn = {
|
|
1418
1381
|
create: function() {
|
|
1419
|
-
return new
|
|
1382
|
+
return new Fn();
|
|
1420
1383
|
}
|
|
1421
|
-
},
|
|
1422
|
-
variadic:
|
|
1423
|
-
monadic:
|
|
1384
|
+
}, De = {
|
|
1385
|
+
variadic: Gn,
|
|
1386
|
+
monadic: $n
|
|
1424
1387
|
}, v;
|
|
1425
1388
|
(function(e) {
|
|
1426
1389
|
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";
|
|
@@ -1429,47 +1392,47 @@ var w;
|
|
|
1429
1392
|
(function(e) {
|
|
1430
1393
|
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";
|
|
1431
1394
|
})(w || (w = {}));
|
|
1432
|
-
var
|
|
1395
|
+
var ee;
|
|
1433
1396
|
(function(e) {
|
|
1434
1397
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1435
|
-
})(
|
|
1436
|
-
function
|
|
1398
|
+
})(ee || (ee = {}));
|
|
1399
|
+
function vt(e) {
|
|
1437
1400
|
return e.type === w.literal;
|
|
1438
1401
|
}
|
|
1439
|
-
function
|
|
1402
|
+
function kn(e) {
|
|
1440
1403
|
return e.type === w.argument;
|
|
1441
1404
|
}
|
|
1442
|
-
function
|
|
1405
|
+
function Yt(e) {
|
|
1443
1406
|
return e.type === w.number;
|
|
1444
1407
|
}
|
|
1445
|
-
function
|
|
1408
|
+
function Kt(e) {
|
|
1446
1409
|
return e.type === w.date;
|
|
1447
1410
|
}
|
|
1448
|
-
function
|
|
1411
|
+
function er(e) {
|
|
1449
1412
|
return e.type === w.time;
|
|
1450
1413
|
}
|
|
1451
|
-
function
|
|
1414
|
+
function tr(e) {
|
|
1452
1415
|
return e.type === w.select;
|
|
1453
1416
|
}
|
|
1454
|
-
function
|
|
1417
|
+
function rr(e) {
|
|
1455
1418
|
return e.type === w.plural;
|
|
1456
1419
|
}
|
|
1457
|
-
function
|
|
1420
|
+
function Vn(e) {
|
|
1458
1421
|
return e.type === w.pound;
|
|
1459
1422
|
}
|
|
1460
|
-
function
|
|
1423
|
+
function nr(e) {
|
|
1461
1424
|
return e.type === w.tag;
|
|
1462
1425
|
}
|
|
1463
|
-
function
|
|
1464
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1426
|
+
function ir(e) {
|
|
1427
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1465
1428
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1429
|
+
function Ze(e) {
|
|
1430
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1468
1431
|
}
|
|
1469
|
-
var
|
|
1470
|
-
function
|
|
1432
|
+
var sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xn = /(?:[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;
|
|
1433
|
+
function Wn(e) {
|
|
1471
1434
|
var t = {};
|
|
1472
|
-
return e.replace(
|
|
1435
|
+
return e.replace(Xn, function(r) {
|
|
1473
1436
|
var n = r.length;
|
|
1474
1437
|
switch (r[0]) {
|
|
1475
1438
|
case "G":
|
|
@@ -1558,36 +1521,36 @@ function ii(e) {
|
|
|
1558
1521
|
return "";
|
|
1559
1522
|
}), t;
|
|
1560
1523
|
}
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1524
|
+
var zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1525
|
+
function Zn(e) {
|
|
1563
1526
|
if (e.length === 0)
|
|
1564
1527
|
throw new Error("Number skeleton cannot be empty");
|
|
1565
|
-
for (var t = e.split(
|
|
1566
|
-
return
|
|
1528
|
+
for (var t = e.split(zn).filter(function(f) {
|
|
1529
|
+
return f.length > 0;
|
|
1567
1530
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1568
1531
|
var s = i[n], a = s.split("/");
|
|
1569
1532
|
if (a.length === 0)
|
|
1570
1533
|
throw new Error("Invalid number skeleton");
|
|
1571
|
-
for (var o = a[0], u = a.slice(1),
|
|
1572
|
-
var
|
|
1573
|
-
if (
|
|
1534
|
+
for (var o = a[0], u = a.slice(1), h = 0, l = u; h < l.length; h++) {
|
|
1535
|
+
var c = l[h];
|
|
1536
|
+
if (c.length === 0)
|
|
1574
1537
|
throw new Error("Invalid number skeleton");
|
|
1575
1538
|
}
|
|
1576
1539
|
r.push({ stem: o, options: u });
|
|
1577
1540
|
}
|
|
1578
1541
|
return r;
|
|
1579
1542
|
}
|
|
1580
|
-
function
|
|
1543
|
+
function Qn(e) {
|
|
1581
1544
|
return e.replace(/^(.*?)-/, "");
|
|
1582
1545
|
}
|
|
1583
|
-
var
|
|
1584
|
-
function
|
|
1546
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
1547
|
+
function xt(e) {
|
|
1585
1548
|
var t = {};
|
|
1586
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1549
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
|
|
1587
1550
|
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)), "";
|
|
1588
1551
|
}), t;
|
|
1589
1552
|
}
|
|
1590
|
-
function
|
|
1553
|
+
function ur(e) {
|
|
1591
1554
|
switch (e) {
|
|
1592
1555
|
case "sign-auto":
|
|
1593
1556
|
return {
|
|
@@ -1627,7 +1590,7 @@ function pr(e) {
|
|
|
1627
1590
|
};
|
|
1628
1591
|
}
|
|
1629
1592
|
}
|
|
1630
|
-
function
|
|
1593
|
+
function qn(e) {
|
|
1631
1594
|
var t;
|
|
1632
1595
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1633
1596
|
notation: "engineering"
|
|
@@ -1635,17 +1598,17 @@ function li(e) {
|
|
|
1635
1598
|
notation: "scientific"
|
|
1636
1599
|
}, e = e.slice(1)), t) {
|
|
1637
1600
|
var r = e.slice(0, 2);
|
|
1638
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1601
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
|
1639
1602
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1640
1603
|
t.minimumIntegerDigits = e.length;
|
|
1641
1604
|
}
|
|
1642
1605
|
return t;
|
|
1643
1606
|
}
|
|
1644
|
-
function
|
|
1645
|
-
var t = {}, r =
|
|
1607
|
+
function wt(e) {
|
|
1608
|
+
var t = {}, r = ur(e);
|
|
1646
1609
|
return r || t;
|
|
1647
1610
|
}
|
|
1648
|
-
function
|
|
1611
|
+
function Yn(e) {
|
|
1649
1612
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1650
1613
|
var i = n[r];
|
|
1651
1614
|
switch (i.stem) {
|
|
@@ -1669,7 +1632,7 @@ function hi(e) {
|
|
|
1669
1632
|
continue;
|
|
1670
1633
|
case "measure-unit":
|
|
1671
1634
|
case "unit":
|
|
1672
|
-
t.style = "unit", t.unit =
|
|
1635
|
+
t.style = "unit", t.unit = Qn(i.options[0]);
|
|
1673
1636
|
continue;
|
|
1674
1637
|
case "compact-short":
|
|
1675
1638
|
case "K":
|
|
@@ -1680,13 +1643,13 @@ function hi(e) {
|
|
|
1680
1643
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1681
1644
|
continue;
|
|
1682
1645
|
case "scientific":
|
|
1683
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u,
|
|
1684
|
-
return x(x({}, u),
|
|
1646
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1647
|
+
return x(x({}, u), wt(h));
|
|
1685
1648
|
}, {}));
|
|
1686
1649
|
continue;
|
|
1687
1650
|
case "engineering":
|
|
1688
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u,
|
|
1689
|
-
return x(x({}, u),
|
|
1651
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1652
|
+
return x(x({}, u), wt(h));
|
|
1690
1653
|
}, {}));
|
|
1691
1654
|
continue;
|
|
1692
1655
|
case "notation-simple":
|
|
@@ -1731,11 +1694,11 @@ function hi(e) {
|
|
|
1731
1694
|
case "integer-width":
|
|
1732
1695
|
if (i.options.length > 1)
|
|
1733
1696
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1734
|
-
i.options[0].replace(
|
|
1735
|
-
if (
|
|
1736
|
-
t.minimumIntegerDigits =
|
|
1697
|
+
i.options[0].replace(Jn, function(u, h, l, c, f, y) {
|
|
1698
|
+
if (h)
|
|
1699
|
+
t.minimumIntegerDigits = l.length;
|
|
1737
1700
|
else {
|
|
1738
|
-
if (
|
|
1701
|
+
if (c && f)
|
|
1739
1702
|
throw new Error("We currently do not support maximum integer digits");
|
|
1740
1703
|
if (y)
|
|
1741
1704
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1744,32 +1707,32 @@ function hi(e) {
|
|
|
1744
1707
|
});
|
|
1745
1708
|
continue;
|
|
1746
1709
|
}
|
|
1747
|
-
if (
|
|
1710
|
+
if (ar.test(i.stem)) {
|
|
1748
1711
|
t.minimumIntegerDigits = i.stem.length;
|
|
1749
1712
|
continue;
|
|
1750
1713
|
}
|
|
1751
|
-
if (
|
|
1714
|
+
if (Et.test(i.stem)) {
|
|
1752
1715
|
if (i.options.length > 1)
|
|
1753
1716
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1754
|
-
i.stem.replace(
|
|
1755
|
-
return
|
|
1717
|
+
i.stem.replace(Et, function(u, h, l, c, f, y) {
|
|
1718
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && y ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + y.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1756
1719
|
});
|
|
1757
1720
|
var s = i.options[0];
|
|
1758
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1721
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), xt(s)));
|
|
1759
1722
|
continue;
|
|
1760
1723
|
}
|
|
1761
|
-
if (
|
|
1762
|
-
t = x(x({}, t),
|
|
1724
|
+
if (or.test(i.stem)) {
|
|
1725
|
+
t = x(x({}, t), xt(i.stem));
|
|
1763
1726
|
continue;
|
|
1764
1727
|
}
|
|
1765
|
-
var a =
|
|
1728
|
+
var a = ur(i.stem);
|
|
1766
1729
|
a && (t = x(x({}, t), a));
|
|
1767
|
-
var o =
|
|
1730
|
+
var o = qn(i.stem);
|
|
1768
1731
|
o && (t = x(x({}, t), o));
|
|
1769
1732
|
}
|
|
1770
1733
|
return t;
|
|
1771
1734
|
}
|
|
1772
|
-
var
|
|
1735
|
+
var ge = {
|
|
1773
1736
|
"001": [
|
|
1774
1737
|
"H",
|
|
1775
1738
|
"h"
|
|
@@ -3184,22 +3147,22 @@ var be = {
|
|
|
3184
3147
|
"h"
|
|
3185
3148
|
]
|
|
3186
3149
|
};
|
|
3187
|
-
function
|
|
3150
|
+
function Kn(e, t) {
|
|
3188
3151
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3189
3152
|
var i = e.charAt(n);
|
|
3190
3153
|
if (i === "j") {
|
|
3191
3154
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3192
3155
|
s++, n++;
|
|
3193
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a",
|
|
3194
|
-
for ((
|
|
3156
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", h = ei(t);
|
|
3157
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
|
3195
3158
|
r += u;
|
|
3196
3159
|
for (; a-- > 0; )
|
|
3197
|
-
r =
|
|
3160
|
+
r = h + r;
|
|
3198
3161
|
} else i === "J" ? r += "H" : r += i;
|
|
3199
3162
|
}
|
|
3200
3163
|
return r;
|
|
3201
3164
|
}
|
|
3202
|
-
function
|
|
3165
|
+
function ei(e) {
|
|
3203
3166
|
var t = e.hourCycle;
|
|
3204
3167
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3205
3168
|
e.hourCycles && // @ts-ignore
|
|
@@ -3218,23 +3181,23 @@ function fi(e) {
|
|
|
3218
3181
|
}
|
|
3219
3182
|
var r = e.language, n;
|
|
3220
3183
|
r !== "root" && (n = e.maximize().region);
|
|
3221
|
-
var i =
|
|
3184
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3222
3185
|
return i[0];
|
|
3223
3186
|
}
|
|
3224
|
-
var
|
|
3187
|
+
var Ge, ti = new RegExp("^".concat(sr.source, "*")), ri = new RegExp("".concat(sr.source, "*$"));
|
|
3225
3188
|
function E(e, t) {
|
|
3226
3189
|
return { start: e, end: t };
|
|
3227
3190
|
}
|
|
3228
|
-
var
|
|
3191
|
+
var ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), ii = !!String.fromCodePoint, si = !!Object.fromEntries, oi = !!String.prototype.codePointAt, ai = !!String.prototype.trimStart, ui = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, hi = li ? Number.isSafeInteger : function(e) {
|
|
3229
3192
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3230
|
-
},
|
|
3193
|
+
}, Qe = !0;
|
|
3231
3194
|
try {
|
|
3232
|
-
var
|
|
3233
|
-
|
|
3234
|
-
} catch
|
|
3235
|
-
|
|
3195
|
+
var fi = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3196
|
+
Qe = ((Ge = fi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3197
|
+
} catch {
|
|
3198
|
+
Qe = !1;
|
|
3236
3199
|
}
|
|
3237
|
-
var
|
|
3200
|
+
var Lt = ni ? (
|
|
3238
3201
|
// Native
|
|
3239
3202
|
function(t, r, n) {
|
|
3240
3203
|
return t.startsWith(r, n);
|
|
@@ -3244,7 +3207,7 @@ var Bt = di ? (
|
|
|
3244
3207
|
function(t, r, n) {
|
|
3245
3208
|
return t.slice(n, n + r.length) === r;
|
|
3246
3209
|
}
|
|
3247
|
-
),
|
|
3210
|
+
), Je = ii ? String.fromCodePoint : (
|
|
3248
3211
|
// IE11
|
|
3249
3212
|
function() {
|
|
3250
3213
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3256,9 +3219,9 @@ var Bt = di ? (
|
|
|
3256
3219
|
}
|
|
3257
3220
|
return n;
|
|
3258
3221
|
}
|
|
3259
|
-
),
|
|
3222
|
+
), Tt = (
|
|
3260
3223
|
// native
|
|
3261
|
-
|
|
3224
|
+
si ? Object.fromEntries : (
|
|
3262
3225
|
// Ponyfill
|
|
3263
3226
|
function(t) {
|
|
3264
3227
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3268,7 +3231,7 @@ var Bt = di ? (
|
|
|
3268
3231
|
return r;
|
|
3269
3232
|
}
|
|
3270
3233
|
)
|
|
3271
|
-
),
|
|
3234
|
+
), lr = oi ? (
|
|
3272
3235
|
// Native
|
|
3273
3236
|
function(t, r) {
|
|
3274
3237
|
return t.codePointAt(r);
|
|
@@ -3282,7 +3245,7 @@ var Bt = di ? (
|
|
|
3282
3245
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3283
3246
|
}
|
|
3284
3247
|
}
|
|
3285
|
-
),
|
|
3248
|
+
), ci = ai ? (
|
|
3286
3249
|
// Native
|
|
3287
3250
|
function(t) {
|
|
3288
3251
|
return t.trimStart();
|
|
@@ -3290,9 +3253,9 @@ var Bt = di ? (
|
|
|
3290
3253
|
) : (
|
|
3291
3254
|
// Ponyfill
|
|
3292
3255
|
function(t) {
|
|
3293
|
-
return t.replace(
|
|
3256
|
+
return t.replace(ti, "");
|
|
3294
3257
|
}
|
|
3295
|
-
),
|
|
3258
|
+
), mi = ui ? (
|
|
3296
3259
|
// Native
|
|
3297
3260
|
function(t) {
|
|
3298
3261
|
return t.trimEnd();
|
|
@@ -3300,32 +3263,32 @@ var Bt = di ? (
|
|
|
3300
3263
|
) : (
|
|
3301
3264
|
// Ponyfill
|
|
3302
3265
|
function(t) {
|
|
3303
|
-
return t.replace(
|
|
3266
|
+
return t.replace(ri, "");
|
|
3304
3267
|
}
|
|
3305
3268
|
);
|
|
3306
|
-
function
|
|
3269
|
+
function hr(e, t) {
|
|
3307
3270
|
return new RegExp(e, t);
|
|
3308
3271
|
}
|
|
3309
|
-
var
|
|
3310
|
-
if (
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3272
|
+
var qe;
|
|
3273
|
+
if (Qe) {
|
|
3274
|
+
var St = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3275
|
+
qe = function(t, r) {
|
|
3313
3276
|
var n;
|
|
3314
|
-
|
|
3315
|
-
var i =
|
|
3277
|
+
St.lastIndex = r;
|
|
3278
|
+
var i = St.exec(t);
|
|
3316
3279
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3317
3280
|
};
|
|
3318
3281
|
} else
|
|
3319
|
-
|
|
3282
|
+
qe = function(t, r) {
|
|
3320
3283
|
for (var n = []; ; ) {
|
|
3321
|
-
var i =
|
|
3322
|
-
if (i === void 0 ||
|
|
3284
|
+
var i = lr(t, r);
|
|
3285
|
+
if (i === void 0 || fr(i) || bi(i))
|
|
3323
3286
|
break;
|
|
3324
3287
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3325
3288
|
}
|
|
3326
|
-
return
|
|
3289
|
+
return Je.apply(void 0, n);
|
|
3327
3290
|
};
|
|
3328
|
-
var
|
|
3291
|
+
var pi = (
|
|
3329
3292
|
/** @class */
|
|
3330
3293
|
function() {
|
|
3331
3294
|
function e(t, r) {
|
|
@@ -3356,7 +3319,7 @@ var Si = (
|
|
|
3356
3319
|
if (n)
|
|
3357
3320
|
break;
|
|
3358
3321
|
return this.error(v.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3359
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3322
|
+
} else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3360
3323
|
var a = this.parseTag(t, r);
|
|
3361
3324
|
if (a.err)
|
|
3362
3325
|
return a;
|
|
@@ -3389,10 +3352,10 @@ var Si = (
|
|
|
3389
3352
|
return s;
|
|
3390
3353
|
var a = s.val, o = this.clonePosition();
|
|
3391
3354
|
if (this.bumpIf("</")) {
|
|
3392
|
-
if (this.isEOF() || !
|
|
3355
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3393
3356
|
return this.error(v.INVALID_TAG, E(o, this.clonePosition()));
|
|
3394
|
-
var u = this.clonePosition(),
|
|
3395
|
-
return i !==
|
|
3357
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
|
3358
|
+
return i !== h ? this.error(v.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3396
3359
|
val: {
|
|
3397
3360
|
type: w.tag,
|
|
3398
3361
|
value: i,
|
|
@@ -3407,7 +3370,7 @@ var Si = (
|
|
|
3407
3370
|
return this.error(v.INVALID_TAG, E(n, this.clonePosition()));
|
|
3408
3371
|
}, e.prototype.parseTagName = function() {
|
|
3409
3372
|
var t = this.offset();
|
|
3410
|
-
for (this.bump(); !this.isEOF() &&
|
|
3373
|
+
for (this.bump(); !this.isEOF() && gi(this.char()); )
|
|
3411
3374
|
this.bump();
|
|
3412
3375
|
return this.message.slice(t, this.offset());
|
|
3413
3376
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3436,7 +3399,7 @@ var Si = (
|
|
|
3436
3399
|
};
|
|
3437
3400
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3438
3401
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3439
|
-
!
|
|
3402
|
+
!di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3440
3403
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3441
3404
|
if (this.isEOF() || this.char() !== 39)
|
|
3442
3405
|
return null;
|
|
@@ -3470,12 +3433,12 @@ var Si = (
|
|
|
3470
3433
|
r.push(n);
|
|
3471
3434
|
this.bump();
|
|
3472
3435
|
}
|
|
3473
|
-
return
|
|
3436
|
+
return Je.apply(void 0, r);
|
|
3474
3437
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3475
3438
|
if (this.isEOF())
|
|
3476
3439
|
return null;
|
|
3477
3440
|
var n = this.char();
|
|
3478
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3441
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
|
3479
3442
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3480
3443
|
var n = this.clonePosition();
|
|
3481
3444
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3504,7 +3467,7 @@ var Si = (
|
|
|
3504
3467
|
return this.error(v.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3505
3468
|
}
|
|
3506
3469
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3507
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3470
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
3508
3471
|
this.bumpTo(i);
|
|
3509
3472
|
var s = this.clonePosition(), a = E(t, s);
|
|
3510
3473
|
return { value: n, location: a };
|
|
@@ -3517,43 +3480,43 @@ var Si = (
|
|
|
3517
3480
|
case "date":
|
|
3518
3481
|
case "time": {
|
|
3519
3482
|
this.bumpSpace();
|
|
3520
|
-
var
|
|
3483
|
+
var h = null;
|
|
3521
3484
|
if (this.bumpIf(",")) {
|
|
3522
3485
|
this.bumpSpace();
|
|
3523
|
-
var
|
|
3524
|
-
if (
|
|
3525
|
-
return
|
|
3526
|
-
var
|
|
3527
|
-
if (
|
|
3486
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3487
|
+
if (c.err)
|
|
3488
|
+
return c;
|
|
3489
|
+
var f = mi(c.val);
|
|
3490
|
+
if (f.length === 0)
|
|
3528
3491
|
return this.error(v.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3529
|
-
var y = E(
|
|
3530
|
-
|
|
3492
|
+
var y = E(l, this.clonePosition());
|
|
3493
|
+
h = { style: f, styleLocation: y };
|
|
3531
3494
|
}
|
|
3532
3495
|
var m = this.tryParseArgumentClose(i);
|
|
3533
3496
|
if (m.err)
|
|
3534
3497
|
return m;
|
|
3535
3498
|
var d = E(i, this.clonePosition());
|
|
3536
|
-
if (
|
|
3537
|
-
var g =
|
|
3499
|
+
if (h && Lt(h?.style, "::", 0)) {
|
|
3500
|
+
var g = ci(h.style.slice(2));
|
|
3538
3501
|
if (o === "number") {
|
|
3539
|
-
var
|
|
3540
|
-
return
|
|
3541
|
-
val: { type: w.number, value: n, location: d, style:
|
|
3502
|
+
var c = this.parseNumberSkeletonFromString(g, h.styleLocation);
|
|
3503
|
+
return c.err ? c : {
|
|
3504
|
+
val: { type: w.number, value: n, location: d, style: c.val },
|
|
3542
3505
|
err: null
|
|
3543
3506
|
};
|
|
3544
3507
|
} else {
|
|
3545
3508
|
if (g.length === 0)
|
|
3546
3509
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, d);
|
|
3547
3510
|
var _ = g;
|
|
3548
|
-
this.locale && (_ =
|
|
3549
|
-
var
|
|
3550
|
-
type:
|
|
3511
|
+
this.locale && (_ = Kn(g, this.locale));
|
|
3512
|
+
var f = {
|
|
3513
|
+
type: ee.dateTime,
|
|
3551
3514
|
pattern: _,
|
|
3552
|
-
location:
|
|
3553
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3515
|
+
location: h.styleLocation,
|
|
3516
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(_) : {}
|
|
3554
3517
|
}, I = o === "date" ? w.date : w.time;
|
|
3555
3518
|
return {
|
|
3556
|
-
val: { type: I, value: n, location: d, style:
|
|
3519
|
+
val: { type: I, value: n, location: d, style: f },
|
|
3557
3520
|
err: null
|
|
3558
3521
|
};
|
|
3559
3522
|
}
|
|
@@ -3563,7 +3526,7 @@ var Si = (
|
|
|
3563
3526
|
type: o === "number" ? w.number : o === "date" ? w.date : w.time,
|
|
3564
3527
|
value: n,
|
|
3565
3528
|
location: d,
|
|
3566
|
-
style: (s =
|
|
3529
|
+
style: (s = h?.style) !== null && s !== void 0 ? s : null
|
|
3567
3530
|
},
|
|
3568
3531
|
err: null
|
|
3569
3532
|
};
|
|
@@ -3575,39 +3538,39 @@ var Si = (
|
|
|
3575
3538
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3576
3539
|
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, x({}, S)));
|
|
3577
3540
|
this.bumpSpace();
|
|
3578
|
-
var
|
|
3579
|
-
if (o !== "select" &&
|
|
3541
|
+
var N = this.parseIdentifierIfPossible(), H = 0;
|
|
3542
|
+
if (o !== "select" && N.value === "offset") {
|
|
3580
3543
|
if (!this.bumpIf(":"))
|
|
3581
3544
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3582
3545
|
this.bumpSpace();
|
|
3583
|
-
var
|
|
3584
|
-
if (
|
|
3585
|
-
return
|
|
3586
|
-
this.bumpSpace(),
|
|
3546
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3547
|
+
if (c.err)
|
|
3548
|
+
return c;
|
|
3549
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), H = c.val;
|
|
3587
3550
|
}
|
|
3588
|
-
var
|
|
3589
|
-
if (
|
|
3590
|
-
return
|
|
3551
|
+
var C = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
3552
|
+
if (C.err)
|
|
3553
|
+
return C;
|
|
3591
3554
|
var m = this.tryParseArgumentClose(i);
|
|
3592
3555
|
if (m.err)
|
|
3593
3556
|
return m;
|
|
3594
|
-
var
|
|
3557
|
+
var k = E(i, this.clonePosition());
|
|
3595
3558
|
return o === "select" ? {
|
|
3596
3559
|
val: {
|
|
3597
3560
|
type: w.select,
|
|
3598
3561
|
value: n,
|
|
3599
|
-
options:
|
|
3600
|
-
location:
|
|
3562
|
+
options: Tt(C.val),
|
|
3563
|
+
location: k
|
|
3601
3564
|
},
|
|
3602
3565
|
err: null
|
|
3603
3566
|
} : {
|
|
3604
3567
|
val: {
|
|
3605
3568
|
type: w.plural,
|
|
3606
3569
|
value: n,
|
|
3607
|
-
options:
|
|
3570
|
+
options: Tt(C.val),
|
|
3608
3571
|
offset: H,
|
|
3609
3572
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3610
|
-
location:
|
|
3573
|
+
location: k
|
|
3611
3574
|
},
|
|
3612
3575
|
err: null
|
|
3613
3576
|
};
|
|
@@ -3655,34 +3618,34 @@ var Si = (
|
|
|
3655
3618
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3656
3619
|
var n = [];
|
|
3657
3620
|
try {
|
|
3658
|
-
n =
|
|
3659
|
-
} catch
|
|
3621
|
+
n = Zn(t);
|
|
3622
|
+
} catch {
|
|
3660
3623
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3661
3624
|
}
|
|
3662
3625
|
return {
|
|
3663
3626
|
val: {
|
|
3664
|
-
type:
|
|
3627
|
+
type: ee.number,
|
|
3665
3628
|
tokens: n,
|
|
3666
3629
|
location: r,
|
|
3667
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3630
|
+
parsedOptions: this.shouldParseSkeletons ? Yn(n) : {}
|
|
3668
3631
|
},
|
|
3669
3632
|
err: null
|
|
3670
3633
|
};
|
|
3671
3634
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3672
|
-
for (var s, a = !1, o = [], u = /* @__PURE__ */ new Set(),
|
|
3673
|
-
if (
|
|
3674
|
-
var
|
|
3635
|
+
for (var s, a = !1, o = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
|
3636
|
+
if (h.length === 0) {
|
|
3637
|
+
var c = this.clonePosition();
|
|
3675
3638
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3676
|
-
var
|
|
3677
|
-
if (
|
|
3678
|
-
return
|
|
3679
|
-
|
|
3639
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3640
|
+
if (f.err)
|
|
3641
|
+
return f;
|
|
3642
|
+
l = E(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
|
3680
3643
|
} else
|
|
3681
3644
|
break;
|
|
3682
3645
|
}
|
|
3683
|
-
if (u.has(
|
|
3684
|
-
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3685
|
-
|
|
3646
|
+
if (u.has(h))
|
|
3647
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3648
|
+
h === "other" && (a = !0), this.bumpSpace();
|
|
3686
3649
|
var y = this.clonePosition();
|
|
3687
3650
|
if (!this.bumpIf("{"))
|
|
3688
3651
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
@@ -3693,12 +3656,12 @@ var Si = (
|
|
|
3693
3656
|
if (d.err)
|
|
3694
3657
|
return d;
|
|
3695
3658
|
o.push([
|
|
3696
|
-
|
|
3659
|
+
h,
|
|
3697
3660
|
{
|
|
3698
3661
|
value: m.val,
|
|
3699
3662
|
location: E(y, this.clonePosition())
|
|
3700
3663
|
}
|
|
3701
|
-
]), u.add(
|
|
3664
|
+
]), u.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, l = s.location;
|
|
3702
3665
|
}
|
|
3703
3666
|
return o.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(v.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3704
3667
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3712,7 +3675,7 @@ var Si = (
|
|
|
3712
3675
|
break;
|
|
3713
3676
|
}
|
|
3714
3677
|
var u = E(i, this.clonePosition());
|
|
3715
|
-
return s ? (a *= n,
|
|
3678
|
+
return s ? (a *= n, hi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3716
3679
|
}, e.prototype.offset = function() {
|
|
3717
3680
|
return this.position.offset;
|
|
3718
3681
|
}, e.prototype.isEOF = function() {
|
|
@@ -3727,7 +3690,7 @@ var Si = (
|
|
|
3727
3690
|
var t = this.position.offset;
|
|
3728
3691
|
if (t >= this.message.length)
|
|
3729
3692
|
throw Error("out of bound");
|
|
3730
|
-
var r =
|
|
3693
|
+
var r = lr(this.message, t);
|
|
3731
3694
|
if (r === void 0)
|
|
3732
3695
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3733
3696
|
return r;
|
|
@@ -3746,7 +3709,7 @@ var Si = (
|
|
|
3746
3709
|
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);
|
|
3747
3710
|
}
|
|
3748
3711
|
}, e.prototype.bumpIf = function(t) {
|
|
3749
|
-
if (
|
|
3712
|
+
if (Lt(this.message, t, this.offset())) {
|
|
3750
3713
|
for (var r = 0; r < t.length; r++)
|
|
3751
3714
|
this.bump();
|
|
3752
3715
|
return !0;
|
|
@@ -3768,56 +3731,56 @@ var Si = (
|
|
|
3768
3731
|
break;
|
|
3769
3732
|
}
|
|
3770
3733
|
}, e.prototype.bumpSpace = function() {
|
|
3771
|
-
for (; !this.isEOF() &&
|
|
3734
|
+
for (; !this.isEOF() && fr(this.char()); )
|
|
3772
3735
|
this.bump();
|
|
3773
3736
|
}, e.prototype.peek = function() {
|
|
3774
3737
|
if (this.isEOF())
|
|
3775
3738
|
return null;
|
|
3776
3739
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3777
|
-
return n
|
|
3740
|
+
return n ?? null;
|
|
3778
3741
|
}, e;
|
|
3779
3742
|
}()
|
|
3780
3743
|
);
|
|
3781
|
-
function
|
|
3744
|
+
function Ye(e) {
|
|
3782
3745
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3783
3746
|
}
|
|
3784
|
-
function
|
|
3785
|
-
return
|
|
3747
|
+
function di(e) {
|
|
3748
|
+
return Ye(e) || e === 47;
|
|
3786
3749
|
}
|
|
3787
|
-
function
|
|
3750
|
+
function gi(e) {
|
|
3788
3751
|
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;
|
|
3789
3752
|
}
|
|
3790
|
-
function
|
|
3753
|
+
function fr(e) {
|
|
3791
3754
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3792
3755
|
}
|
|
3793
|
-
function
|
|
3756
|
+
function bi(e) {
|
|
3794
3757
|
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;
|
|
3795
3758
|
}
|
|
3796
|
-
function
|
|
3759
|
+
function Ke(e) {
|
|
3797
3760
|
e.forEach(function(t) {
|
|
3798
|
-
if (delete t.location,
|
|
3761
|
+
if (delete t.location, tr(t) || rr(t))
|
|
3799
3762
|
for (var r in t.options)
|
|
3800
|
-
delete t.options[r].location,
|
|
3801
|
-
else
|
|
3763
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
|
3764
|
+
else Yt(t) && ir(t.style) || (Kt(t) || er(t)) && Ze(t.style) ? delete t.style.location : nr(t) && Ke(t.children);
|
|
3802
3765
|
});
|
|
3803
3766
|
}
|
|
3804
|
-
function
|
|
3767
|
+
function yi(e, t) {
|
|
3805
3768
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3806
|
-
var r = new
|
|
3769
|
+
var r = new pi(e, t).parse();
|
|
3807
3770
|
if (r.err) {
|
|
3808
3771
|
var n = SyntaxError(v[r.err.kind]);
|
|
3809
3772
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3810
3773
|
}
|
|
3811
|
-
return t
|
|
3774
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
|
3812
3775
|
}
|
|
3813
|
-
var
|
|
3776
|
+
var te;
|
|
3814
3777
|
(function(e) {
|
|
3815
3778
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3816
|
-
})(
|
|
3817
|
-
var
|
|
3779
|
+
})(te || (te = {}));
|
|
3780
|
+
var Be = (
|
|
3818
3781
|
/** @class */
|
|
3819
3782
|
function(e) {
|
|
3820
|
-
|
|
3783
|
+
G(t, e);
|
|
3821
3784
|
function t(r, n, i) {
|
|
3822
3785
|
var s = e.call(this, r) || this;
|
|
3823
3786
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3826,110 +3789,110 @@ var Oe = (
|
|
|
3826
3789
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3827
3790
|
}, t;
|
|
3828
3791
|
}(Error)
|
|
3829
|
-
),
|
|
3792
|
+
), Ht = (
|
|
3830
3793
|
/** @class */
|
|
3831
3794
|
function(e) {
|
|
3832
|
-
|
|
3795
|
+
G(t, e);
|
|
3833
3796
|
function t(r, n, i, s) {
|
|
3834
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3797
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
|
|
3835
3798
|
}
|
|
3836
3799
|
return t;
|
|
3837
|
-
}(
|
|
3838
|
-
),
|
|
3800
|
+
}(Be)
|
|
3801
|
+
), _i = (
|
|
3839
3802
|
/** @class */
|
|
3840
3803
|
function(e) {
|
|
3841
|
-
|
|
3804
|
+
G(t, e);
|
|
3842
3805
|
function t(r, n, i) {
|
|
3843
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3806
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3844
3807
|
}
|
|
3845
3808
|
return t;
|
|
3846
|
-
}(
|
|
3847
|
-
),
|
|
3809
|
+
}(Be)
|
|
3810
|
+
), vi = (
|
|
3848
3811
|
/** @class */
|
|
3849
3812
|
function(e) {
|
|
3850
|
-
|
|
3813
|
+
G(t, e);
|
|
3851
3814
|
function t(r, n) {
|
|
3852
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3815
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3853
3816
|
}
|
|
3854
3817
|
return t;
|
|
3855
|
-
}(
|
|
3818
|
+
}(Be)
|
|
3856
3819
|
), A;
|
|
3857
3820
|
(function(e) {
|
|
3858
3821
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3859
3822
|
})(A || (A = {}));
|
|
3860
|
-
function
|
|
3823
|
+
function Ei(e) {
|
|
3861
3824
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3862
3825
|
var n = t[t.length - 1];
|
|
3863
3826
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3864
3827
|
}, []);
|
|
3865
3828
|
}
|
|
3866
|
-
function
|
|
3829
|
+
function xi(e) {
|
|
3867
3830
|
return typeof e == "function";
|
|
3868
3831
|
}
|
|
3869
|
-
function
|
|
3870
|
-
if (e.length === 1 &&
|
|
3832
|
+
function ve(e, t, r, n, i, s, a) {
|
|
3833
|
+
if (e.length === 1 && vt(e[0]))
|
|
3871
3834
|
return [
|
|
3872
3835
|
{
|
|
3873
3836
|
type: A.literal,
|
|
3874
3837
|
value: e[0].value
|
|
3875
3838
|
}
|
|
3876
3839
|
];
|
|
3877
|
-
for (var o = [], u = 0,
|
|
3878
|
-
var
|
|
3879
|
-
if (
|
|
3840
|
+
for (var o = [], u = 0, h = e; u < h.length; u++) {
|
|
3841
|
+
var l = h[u];
|
|
3842
|
+
if (vt(l)) {
|
|
3880
3843
|
o.push({
|
|
3881
3844
|
type: A.literal,
|
|
3882
|
-
value:
|
|
3845
|
+
value: l.value
|
|
3883
3846
|
});
|
|
3884
3847
|
continue;
|
|
3885
3848
|
}
|
|
3886
|
-
if (
|
|
3849
|
+
if (Vn(l)) {
|
|
3887
3850
|
typeof s == "number" && o.push({
|
|
3888
3851
|
type: A.literal,
|
|
3889
3852
|
value: r.getNumberFormat(t).format(s)
|
|
3890
3853
|
});
|
|
3891
3854
|
continue;
|
|
3892
3855
|
}
|
|
3893
|
-
var
|
|
3894
|
-
if (!(i &&
|
|
3895
|
-
throw new
|
|
3896
|
-
var
|
|
3897
|
-
if (
|
|
3898
|
-
(!
|
|
3899
|
-
type: typeof
|
|
3900
|
-
value:
|
|
3856
|
+
var c = l.value;
|
|
3857
|
+
if (!(i && c in i))
|
|
3858
|
+
throw new vi(c, a);
|
|
3859
|
+
var f = i[c];
|
|
3860
|
+
if (kn(l)) {
|
|
3861
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3862
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3863
|
+
value: f
|
|
3901
3864
|
});
|
|
3902
3865
|
continue;
|
|
3903
3866
|
}
|
|
3904
|
-
if (
|
|
3905
|
-
var y = typeof
|
|
3867
|
+
if (Kt(l)) {
|
|
3868
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
|
|
3906
3869
|
o.push({
|
|
3907
3870
|
type: A.literal,
|
|
3908
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3871
|
+
value: r.getDateTimeFormat(t, y).format(f)
|
|
3909
3872
|
});
|
|
3910
3873
|
continue;
|
|
3911
3874
|
}
|
|
3912
|
-
if (
|
|
3913
|
-
var y = typeof
|
|
3875
|
+
if (er(l)) {
|
|
3876
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3914
3877
|
o.push({
|
|
3915
3878
|
type: A.literal,
|
|
3916
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3879
|
+
value: r.getDateTimeFormat(t, y).format(f)
|
|
3917
3880
|
});
|
|
3918
3881
|
continue;
|
|
3919
3882
|
}
|
|
3920
|
-
if (
|
|
3921
|
-
var y = typeof
|
|
3922
|
-
y && y.scale && (
|
|
3883
|
+
if (Yt(l)) {
|
|
3884
|
+
var y = typeof l.style == "string" ? n.number[l.style] : ir(l.style) ? l.style.parsedOptions : void 0;
|
|
3885
|
+
y && y.scale && (f = f * (y.scale || 1)), o.push({
|
|
3923
3886
|
type: A.literal,
|
|
3924
|
-
value: r.getNumberFormat(t, y).format(
|
|
3887
|
+
value: r.getNumberFormat(t, y).format(f)
|
|
3925
3888
|
});
|
|
3926
3889
|
continue;
|
|
3927
3890
|
}
|
|
3928
|
-
if (
|
|
3929
|
-
var m =
|
|
3930
|
-
if (!
|
|
3931
|
-
throw new
|
|
3932
|
-
var _ =
|
|
3891
|
+
if (nr(l)) {
|
|
3892
|
+
var m = l.children, d = l.value, g = i[d];
|
|
3893
|
+
if (!xi(g))
|
|
3894
|
+
throw new _i(d, "function", a);
|
|
3895
|
+
var _ = ve(m, t, r, n, i, s), I = g(_.map(function(H) {
|
|
3933
3896
|
return H.value;
|
|
3934
3897
|
}));
|
|
3935
3898
|
Array.isArray(I) || (I = [I]), o.push.apply(o, I.map(function(H) {
|
|
@@ -3939,42 +3902,42 @@ function Ee(e, t, r, n, i, s, a) {
|
|
|
3939
3902
|
};
|
|
3940
3903
|
}));
|
|
3941
3904
|
}
|
|
3942
|
-
if (
|
|
3943
|
-
var S =
|
|
3905
|
+
if (tr(l)) {
|
|
3906
|
+
var S = l.options[f] || l.options.other;
|
|
3944
3907
|
if (!S)
|
|
3945
|
-
throw new
|
|
3946
|
-
o.push.apply(o,
|
|
3908
|
+
throw new Ht(l.value, f, Object.keys(l.options), a);
|
|
3909
|
+
o.push.apply(o, ve(S.value, t, r, n, i));
|
|
3947
3910
|
continue;
|
|
3948
3911
|
}
|
|
3949
|
-
if (
|
|
3950
|
-
var S =
|
|
3912
|
+
if (rr(l)) {
|
|
3913
|
+
var S = l.options["=".concat(f)];
|
|
3951
3914
|
if (!S) {
|
|
3952
3915
|
if (!Intl.PluralRules)
|
|
3953
|
-
throw new
|
|
3916
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3954
3917
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3955
|
-
`,
|
|
3956
|
-
var
|
|
3957
|
-
S =
|
|
3918
|
+
`, te.MISSING_INTL_API, a);
|
|
3919
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3920
|
+
S = l.options[N] || l.options.other;
|
|
3958
3921
|
}
|
|
3959
3922
|
if (!S)
|
|
3960
|
-
throw new
|
|
3961
|
-
o.push.apply(o,
|
|
3923
|
+
throw new Ht(l.value, f, Object.keys(l.options), a);
|
|
3924
|
+
o.push.apply(o, ve(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3962
3925
|
continue;
|
|
3963
3926
|
}
|
|
3964
3927
|
}
|
|
3965
|
-
return
|
|
3928
|
+
return Ei(o);
|
|
3966
3929
|
}
|
|
3967
|
-
function
|
|
3930
|
+
function wi(e, t) {
|
|
3968
3931
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3969
3932
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3970
3933
|
}, {})) : e;
|
|
3971
3934
|
}
|
|
3972
|
-
function
|
|
3935
|
+
function Li(e, t) {
|
|
3973
3936
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3974
|
-
return r[n] =
|
|
3937
|
+
return r[n] = wi(e[n], t[n]), r;
|
|
3975
3938
|
}, x({}, e)) : e;
|
|
3976
3939
|
}
|
|
3977
|
-
function
|
|
3940
|
+
function $e(e) {
|
|
3978
3941
|
return {
|
|
3979
3942
|
create: function() {
|
|
3980
3943
|
return {
|
|
@@ -3988,39 +3951,39 @@ function Fe(e) {
|
|
|
3988
3951
|
}
|
|
3989
3952
|
};
|
|
3990
3953
|
}
|
|
3991
|
-
function
|
|
3954
|
+
function Ti(e) {
|
|
3992
3955
|
return e === void 0 && (e = {
|
|
3993
3956
|
number: {},
|
|
3994
3957
|
dateTime: {},
|
|
3995
3958
|
pluralRules: {}
|
|
3996
3959
|
}), {
|
|
3997
|
-
getNumberFormat:
|
|
3960
|
+
getNumberFormat: Re(function() {
|
|
3998
3961
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3999
3962
|
r[n] = arguments[n];
|
|
4000
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3963
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
4001
3964
|
}, {
|
|
4002
|
-
cache:
|
|
4003
|
-
strategy:
|
|
3965
|
+
cache: $e(e.number),
|
|
3966
|
+
strategy: De.variadic
|
|
4004
3967
|
}),
|
|
4005
|
-
getDateTimeFormat:
|
|
3968
|
+
getDateTimeFormat: Re(function() {
|
|
4006
3969
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4007
3970
|
r[n] = arguments[n];
|
|
4008
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3971
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
4009
3972
|
}, {
|
|
4010
|
-
cache:
|
|
4011
|
-
strategy:
|
|
3973
|
+
cache: $e(e.dateTime),
|
|
3974
|
+
strategy: De.variadic
|
|
4012
3975
|
}),
|
|
4013
|
-
getPluralRules:
|
|
3976
|
+
getPluralRules: Re(function() {
|
|
4014
3977
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4015
3978
|
r[n] = arguments[n];
|
|
4016
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3979
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
|
4017
3980
|
}, {
|
|
4018
|
-
cache:
|
|
4019
|
-
strategy:
|
|
3981
|
+
cache: $e(e.pluralRules),
|
|
3982
|
+
strategy: De.variadic
|
|
4020
3983
|
})
|
|
4021
3984
|
};
|
|
4022
3985
|
}
|
|
4023
|
-
var
|
|
3986
|
+
var Si = (
|
|
4024
3987
|
/** @class */
|
|
4025
3988
|
function() {
|
|
4026
3989
|
function e(t, r, n, i) {
|
|
@@ -4031,15 +3994,15 @@ var Gi = (
|
|
|
4031
3994
|
dateTime: {},
|
|
4032
3995
|
pluralRules: {}
|
|
4033
3996
|
}, this.format = function(u) {
|
|
4034
|
-
var
|
|
4035
|
-
if (
|
|
4036
|
-
return
|
|
4037
|
-
var
|
|
4038
|
-
return !
|
|
3997
|
+
var h = s.formatToParts(u);
|
|
3998
|
+
if (h.length === 1)
|
|
3999
|
+
return h[0].value;
|
|
4000
|
+
var l = h.reduce(function(c, f) {
|
|
4001
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4039
4002
|
}, []);
|
|
4040
|
-
return
|
|
4003
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
4041
4004
|
}, this.formatToParts = function(u) {
|
|
4042
|
-
return
|
|
4005
|
+
return ve(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
4043
4006
|
}, this.resolvedOptions = function() {
|
|
4044
4007
|
var u;
|
|
4045
4008
|
return {
|
|
@@ -4052,13 +4015,13 @@ var Gi = (
|
|
|
4052
4015
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4053
4016
|
var a = i || {};
|
|
4054
4017
|
a.formatters;
|
|
4055
|
-
var o =
|
|
4018
|
+
var o = nn(a, ["formatters"]);
|
|
4056
4019
|
this.ast = e.__parse(t, x(x({}, o), { locale: this.resolvedLocale }));
|
|
4057
4020
|
} else
|
|
4058
4021
|
this.ast = t;
|
|
4059
4022
|
if (!Array.isArray(this.ast))
|
|
4060
4023
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4061
|
-
this.formats =
|
|
4024
|
+
this.formats = Li(e.formats, n), this.formatters = i && i.formatters || Ti(this.formatterCache);
|
|
4062
4025
|
}
|
|
4063
4026
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4064
4027
|
get: function() {
|
|
@@ -4067,11 +4030,11 @@ var Gi = (
|
|
|
4067
4030
|
enumerable: !1,
|
|
4068
4031
|
configurable: !0
|
|
4069
4032
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4070
|
-
if (typeof Intl.Locale
|
|
4033
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
4071
4034
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4072
4035
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4073
4036
|
}
|
|
4074
|
-
}, e.__parse =
|
|
4037
|
+
}, e.__parse = yi, e.formats = {
|
|
4075
4038
|
number: {
|
|
4076
4039
|
integer: {
|
|
4077
4040
|
maximumFractionDigits: 0
|
|
@@ -4132,7 +4095,7 @@ var Gi = (
|
|
|
4132
4095
|
}, e;
|
|
4133
4096
|
}()
|
|
4134
4097
|
);
|
|
4135
|
-
function
|
|
4098
|
+
function Hi(e, t) {
|
|
4136
4099
|
if (t == null)
|
|
4137
4100
|
return;
|
|
4138
4101
|
if (t in e)
|
|
@@ -4153,92 +4116,92 @@ function $i(e, t) {
|
|
|
4153
4116
|
n = void 0;
|
|
4154
4117
|
return n;
|
|
4155
4118
|
}
|
|
4156
|
-
const
|
|
4119
|
+
const $ = {}, Ai = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), cr = (e, t) => {
|
|
4157
4120
|
if (t == null)
|
|
4158
4121
|
return;
|
|
4159
|
-
if (t in
|
|
4160
|
-
return
|
|
4161
|
-
const r =
|
|
4122
|
+
if (t in $ && e in $[t])
|
|
4123
|
+
return $[t][e];
|
|
4124
|
+
const r = Oe(t);
|
|
4162
4125
|
for (let n = 0; n < r.length; n++) {
|
|
4163
|
-
const i = r[n], s =
|
|
4126
|
+
const i = r[n], s = Bi(i, e);
|
|
4164
4127
|
if (s)
|
|
4165
|
-
return
|
|
4128
|
+
return Ai(e, t, s);
|
|
4166
4129
|
}
|
|
4167
4130
|
};
|
|
4168
|
-
let
|
|
4169
|
-
const
|
|
4170
|
-
function
|
|
4171
|
-
return
|
|
4131
|
+
let st;
|
|
4132
|
+
const pe = Pe({});
|
|
4133
|
+
function Pi(e) {
|
|
4134
|
+
return st[e] || null;
|
|
4172
4135
|
}
|
|
4173
|
-
function
|
|
4174
|
-
return e in
|
|
4136
|
+
function mr(e) {
|
|
4137
|
+
return e in st;
|
|
4175
4138
|
}
|
|
4176
|
-
function
|
|
4177
|
-
if (!
|
|
4139
|
+
function Bi(e, t) {
|
|
4140
|
+
if (!mr(e))
|
|
4178
4141
|
return null;
|
|
4179
|
-
const r =
|
|
4180
|
-
return
|
|
4142
|
+
const r = Pi(e);
|
|
4143
|
+
return Hi(r, t);
|
|
4181
4144
|
}
|
|
4182
|
-
function
|
|
4145
|
+
function Oi(e) {
|
|
4183
4146
|
if (e == null)
|
|
4184
4147
|
return;
|
|
4185
|
-
const t =
|
|
4148
|
+
const t = Oe(e);
|
|
4186
4149
|
for (let r = 0; r < t.length; r++) {
|
|
4187
4150
|
const n = t[r];
|
|
4188
|
-
if (
|
|
4151
|
+
if (mr(n))
|
|
4189
4152
|
return n;
|
|
4190
4153
|
}
|
|
4191
4154
|
}
|
|
4192
|
-
function
|
|
4193
|
-
delete
|
|
4155
|
+
function pr(e, ...t) {
|
|
4156
|
+
delete $[e], pe.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
4194
4157
|
}
|
|
4195
|
-
|
|
4196
|
-
[
|
|
4158
|
+
ie(
|
|
4159
|
+
[pe],
|
|
4197
4160
|
([e]) => Object.keys(e)
|
|
4198
4161
|
);
|
|
4199
|
-
|
|
4200
|
-
const
|
|
4201
|
-
function
|
|
4202
|
-
|
|
4162
|
+
pe.subscribe((e) => st = e);
|
|
4163
|
+
const Ee = {};
|
|
4164
|
+
function Ii(e, t) {
|
|
4165
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4203
4166
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return
|
|
4167
|
+
function dr(e) {
|
|
4168
|
+
return Ee[e];
|
|
4206
4169
|
}
|
|
4207
|
-
function
|
|
4208
|
-
return
|
|
4209
|
-
const r =
|
|
4170
|
+
function Ni(e) {
|
|
4171
|
+
return Oe(e).map((t) => {
|
|
4172
|
+
const r = dr(t);
|
|
4210
4173
|
return [t, r ? [...r] : []];
|
|
4211
4174
|
}).filter(([, t]) => t.length > 0);
|
|
4212
4175
|
}
|
|
4213
|
-
function
|
|
4214
|
-
return e == null ? !1 :
|
|
4176
|
+
function et(e) {
|
|
4177
|
+
return e == null ? !1 : Oe(e).some(
|
|
4215
4178
|
(t) => {
|
|
4216
4179
|
var r;
|
|
4217
|
-
return (r =
|
|
4180
|
+
return (r = dr(t)) == null ? void 0 : r.size;
|
|
4218
4181
|
}
|
|
4219
4182
|
);
|
|
4220
4183
|
}
|
|
4221
|
-
function
|
|
4184
|
+
function Mi(e, t) {
|
|
4222
4185
|
return Promise.all(
|
|
4223
|
-
t.map((n) => (
|
|
4224
|
-
).then((n) =>
|
|
4225
|
-
}
|
|
4226
|
-
const
|
|
4227
|
-
function
|
|
4228
|
-
if (!
|
|
4229
|
-
return e in
|
|
4230
|
-
const t =
|
|
4231
|
-
return
|
|
4186
|
+
t.map((n) => (Ii(e, n), n().then((i) => i.default || i)))
|
|
4187
|
+
).then((n) => pr(e, ...n));
|
|
4188
|
+
}
|
|
4189
|
+
const ue = {};
|
|
4190
|
+
function gr(e) {
|
|
4191
|
+
if (!et(e))
|
|
4192
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
4193
|
+
const t = Ni(e);
|
|
4194
|
+
return ue[e] = Promise.all(
|
|
4232
4195
|
t.map(
|
|
4233
|
-
([r, n]) =>
|
|
4196
|
+
([r, n]) => Mi(r, n)
|
|
4234
4197
|
)
|
|
4235
4198
|
).then(() => {
|
|
4236
|
-
if (
|
|
4237
|
-
return
|
|
4238
|
-
delete
|
|
4239
|
-
}),
|
|
4199
|
+
if (et(e))
|
|
4200
|
+
return gr(e);
|
|
4201
|
+
delete ue[e];
|
|
4202
|
+
}), ue[e];
|
|
4240
4203
|
}
|
|
4241
|
-
const
|
|
4204
|
+
const Ci = {
|
|
4242
4205
|
number: {
|
|
4243
4206
|
scientific: { notation: "scientific" },
|
|
4244
4207
|
engineering: { notation: "engineering" },
|
|
@@ -4267,180 +4230,180 @@ const zi = {
|
|
|
4267
4230
|
timeZoneName: "short"
|
|
4268
4231
|
}
|
|
4269
4232
|
}
|
|
4270
|
-
},
|
|
4233
|
+
}, Ri = {
|
|
4271
4234
|
fallbackLocale: null,
|
|
4272
4235
|
loadingDelay: 200,
|
|
4273
|
-
formats:
|
|
4236
|
+
formats: Ci,
|
|
4274
4237
|
warnOnMissingMessages: !0,
|
|
4275
4238
|
handleMissingMessage: void 0,
|
|
4276
4239
|
ignoreTag: !0
|
|
4277
|
-
},
|
|
4278
|
-
function
|
|
4279
|
-
return
|
|
4240
|
+
}, Di = Ri;
|
|
4241
|
+
function re() {
|
|
4242
|
+
return Di;
|
|
4280
4243
|
}
|
|
4281
|
-
const
|
|
4282
|
-
var
|
|
4244
|
+
const Ue = Pe(!1);
|
|
4245
|
+
var Gi = Object.defineProperty, $i = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Fi = Object.prototype.hasOwnProperty, ji = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ki = (e, t) => {
|
|
4283
4246
|
for (var r in t)
|
|
4284
|
-
|
|
4285
|
-
if (
|
|
4286
|
-
for (var r of
|
|
4287
|
-
|
|
4247
|
+
Fi.call(t, r) && Pt(e, r, t[r]);
|
|
4248
|
+
if (At)
|
|
4249
|
+
for (var r of At(t))
|
|
4250
|
+
ji.call(t, r) && Pt(e, r, t[r]);
|
|
4288
4251
|
return e;
|
|
4289
|
-
},
|
|
4290
|
-
let
|
|
4291
|
-
const
|
|
4292
|
-
function
|
|
4252
|
+
}, Vi = (e, t) => $i(e, Ui(t));
|
|
4253
|
+
let tt;
|
|
4254
|
+
const Te = Pe(null);
|
|
4255
|
+
function Bt(e) {
|
|
4293
4256
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4294
4257
|
}
|
|
4295
|
-
function
|
|
4296
|
-
const r =
|
|
4297
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4258
|
+
function Oe(e, t = re().fallbackLocale) {
|
|
4259
|
+
const r = Bt(e);
|
|
4260
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4298
4261
|
}
|
|
4299
|
-
function
|
|
4300
|
-
return
|
|
4262
|
+
function j() {
|
|
4263
|
+
return tt ?? void 0;
|
|
4301
4264
|
}
|
|
4302
|
-
|
|
4303
|
-
|
|
4265
|
+
Te.subscribe((e) => {
|
|
4266
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4304
4267
|
});
|
|
4305
|
-
const
|
|
4306
|
-
if (e &&
|
|
4307
|
-
const { loadingDelay: t } =
|
|
4268
|
+
const Xi = (e) => {
|
|
4269
|
+
if (e && Oi(e) && et(e)) {
|
|
4270
|
+
const { loadingDelay: t } = re();
|
|
4308
4271
|
let r;
|
|
4309
|
-
return typeof window
|
|
4310
|
-
() =>
|
|
4272
|
+
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
4273
|
+
() => Ue.set(!0),
|
|
4311
4274
|
t
|
|
4312
|
-
) :
|
|
4313
|
-
|
|
4275
|
+
) : Ue.set(!0), gr(e).then(() => {
|
|
4276
|
+
Te.set(e);
|
|
4314
4277
|
}).finally(() => {
|
|
4315
|
-
clearTimeout(r),
|
|
4278
|
+
clearTimeout(r), Ue.set(!1);
|
|
4316
4279
|
});
|
|
4317
4280
|
}
|
|
4318
|
-
return
|
|
4319
|
-
},
|
|
4320
|
-
set:
|
|
4321
|
-
}),
|
|
4281
|
+
return Te.set(e);
|
|
4282
|
+
}, se = Vi(ki({}, Te), {
|
|
4283
|
+
set: Xi
|
|
4284
|
+
}), Ie = (e) => {
|
|
4322
4285
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4323
4286
|
return (n) => {
|
|
4324
4287
|
const i = JSON.stringify(n);
|
|
4325
4288
|
return i in t ? t[i] : t[i] = e(n);
|
|
4326
4289
|
};
|
|
4327
4290
|
};
|
|
4328
|
-
var
|
|
4291
|
+
var Wi = Object.defineProperty, Se = Object.getOwnPropertySymbols, br = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
4329
4292
|
for (var r in t || (t = {}))
|
|
4330
|
-
|
|
4331
|
-
if (
|
|
4332
|
-
for (var r of
|
|
4333
|
-
|
|
4293
|
+
br.call(t, r) && Ot(e, r, t[r]);
|
|
4294
|
+
if (Se)
|
|
4295
|
+
for (var r of Se(t))
|
|
4296
|
+
yr.call(t, r) && Ot(e, r, t[r]);
|
|
4334
4297
|
return e;
|
|
4335
|
-
},
|
|
4298
|
+
}, oe = (e, t) => {
|
|
4336
4299
|
var r = {};
|
|
4337
4300
|
for (var n in e)
|
|
4338
|
-
|
|
4339
|
-
if (e != null &&
|
|
4340
|
-
for (var n of
|
|
4341
|
-
t.indexOf(n) < 0 &&
|
|
4301
|
+
br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4302
|
+
if (e != null && Se)
|
|
4303
|
+
for (var n of Se(e))
|
|
4304
|
+
t.indexOf(n) < 0 && yr.call(e, n) && (r[n] = e[n]);
|
|
4342
4305
|
return r;
|
|
4343
4306
|
};
|
|
4344
|
-
const
|
|
4345
|
-
const { formats: r } =
|
|
4307
|
+
const me = (e, t) => {
|
|
4308
|
+
const { formats: r } = re();
|
|
4346
4309
|
if (e in r && t in r[e])
|
|
4347
4310
|
return r[e][t];
|
|
4348
4311
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4349
|
-
},
|
|
4312
|
+
}, zi = Ie(
|
|
4350
4313
|
(e) => {
|
|
4351
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4314
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4352
4315
|
if (r == null)
|
|
4353
4316
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4354
|
-
return n && (i =
|
|
4317
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
4355
4318
|
}
|
|
4356
|
-
),
|
|
4319
|
+
), Zi = Ie(
|
|
4357
4320
|
(e) => {
|
|
4358
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4321
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4359
4322
|
if (r == null)
|
|
4360
4323
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4361
|
-
return n ? i =
|
|
4324
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4362
4325
|
}
|
|
4363
|
-
),
|
|
4326
|
+
), Qi = Ie(
|
|
4364
4327
|
(e) => {
|
|
4365
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4328
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4366
4329
|
if (r == null)
|
|
4367
4330
|
throw new Error(
|
|
4368
4331
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4369
4332
|
);
|
|
4370
|
-
return n ? i =
|
|
4333
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4371
4334
|
}
|
|
4372
|
-
),
|
|
4335
|
+
), Ji = (e = {}) => {
|
|
4373
4336
|
var t = e, {
|
|
4374
|
-
locale: r =
|
|
4375
|
-
} = t, n =
|
|
4337
|
+
locale: r = j()
|
|
4338
|
+
} = t, n = oe(t, [
|
|
4376
4339
|
"locale"
|
|
4377
4340
|
]);
|
|
4378
|
-
return
|
|
4379
|
-
},
|
|
4341
|
+
return zi(ot({ locale: r }, n));
|
|
4342
|
+
}, qi = (e = {}) => {
|
|
4380
4343
|
var t = e, {
|
|
4381
|
-
locale: r =
|
|
4382
|
-
} = t, n =
|
|
4344
|
+
locale: r = j()
|
|
4345
|
+
} = t, n = oe(t, [
|
|
4383
4346
|
"locale"
|
|
4384
4347
|
]);
|
|
4385
|
-
return
|
|
4386
|
-
},
|
|
4348
|
+
return Zi(ot({ locale: r }, n));
|
|
4349
|
+
}, Yi = (e = {}) => {
|
|
4387
4350
|
var t = e, {
|
|
4388
|
-
locale: r =
|
|
4389
|
-
} = t, n =
|
|
4351
|
+
locale: r = j()
|
|
4352
|
+
} = t, n = oe(t, [
|
|
4390
4353
|
"locale"
|
|
4391
4354
|
]);
|
|
4392
|
-
return
|
|
4393
|
-
},
|
|
4355
|
+
return Qi(ot({ locale: r }, n));
|
|
4356
|
+
}, Ki = Ie(
|
|
4394
4357
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4395
|
-
(e, t =
|
|
4396
|
-
ignoreTag:
|
|
4358
|
+
(e, t = j()) => new Si(e, t, re().formats, {
|
|
4359
|
+
ignoreTag: re().ignoreTag
|
|
4397
4360
|
})
|
|
4398
|
-
),
|
|
4361
|
+
), es = (e, t = {}) => {
|
|
4399
4362
|
var r, n, i, s;
|
|
4400
4363
|
let a = t;
|
|
4401
4364
|
typeof e == "object" && (a = e, e = a.id);
|
|
4402
4365
|
const {
|
|
4403
4366
|
values: o,
|
|
4404
|
-
locale: u =
|
|
4405
|
-
default:
|
|
4367
|
+
locale: u = j(),
|
|
4368
|
+
default: h
|
|
4406
4369
|
} = a;
|
|
4407
4370
|
if (u == null)
|
|
4408
4371
|
throw new Error(
|
|
4409
4372
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4410
4373
|
);
|
|
4411
|
-
let
|
|
4412
|
-
if (!
|
|
4413
|
-
|
|
4414
|
-
else if (typeof
|
|
4374
|
+
let l = cr(e, u);
|
|
4375
|
+
if (!l)
|
|
4376
|
+
l = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
|
4377
|
+
else if (typeof l != "string")
|
|
4415
4378
|
return console.warn(
|
|
4416
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4417
|
-
),
|
|
4379
|
+
`[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.`
|
|
4380
|
+
), l;
|
|
4418
4381
|
if (!o)
|
|
4419
|
-
return
|
|
4420
|
-
let
|
|
4382
|
+
return l;
|
|
4383
|
+
let c = l;
|
|
4421
4384
|
try {
|
|
4422
|
-
|
|
4423
|
-
} catch (
|
|
4424
|
-
|
|
4385
|
+
c = Ki(l, u).format(o);
|
|
4386
|
+
} catch (f) {
|
|
4387
|
+
f instanceof Error && console.warn(
|
|
4425
4388
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4426
|
-
|
|
4389
|
+
f.message
|
|
4427
4390
|
);
|
|
4428
4391
|
}
|
|
4429
|
-
return
|
|
4430
|
-
},
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
window.emWidgets = { topic:
|
|
4436
|
-
const
|
|
4437
|
-
function
|
|
4438
|
-
|
|
4439
|
-
}
|
|
4440
|
-
function
|
|
4441
|
-
|
|
4442
|
-
}
|
|
4443
|
-
const
|
|
4392
|
+
return c;
|
|
4393
|
+
}, ts = (e, t) => Yi(t).format(e), rs = (e, t) => qi(t).format(e), ns = (e, t) => Ji(t).format(e), is = (e, t = j()) => cr(e, t), ss = ie([se, pe], () => es);
|
|
4394
|
+
ie([se], () => ts);
|
|
4395
|
+
ie([se], () => rs);
|
|
4396
|
+
ie([se], () => ns);
|
|
4397
|
+
ie([se, pe], () => is);
|
|
4398
|
+
window.emWidgets = { topic: yn };
|
|
4399
|
+
const os = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4400
|
+
function It(e, t) {
|
|
4401
|
+
pr(e, t);
|
|
4402
|
+
}
|
|
4403
|
+
function as(e) {
|
|
4404
|
+
se.set(e);
|
|
4405
|
+
}
|
|
4406
|
+
const Nt = {
|
|
4444
4407
|
en: {
|
|
4445
4408
|
returnToMenu: "Return to menu",
|
|
4446
4409
|
gamingLimitsText: "Gaming limits",
|
|
@@ -4530,7 +4493,7 @@ const $t = {
|
|
|
4530
4493
|
lossLimit: "Loss Limit"
|
|
4531
4494
|
}
|
|
4532
4495
|
};
|
|
4533
|
-
if (typeof window
|
|
4496
|
+
if (typeof window < "u") {
|
|
4534
4497
|
let e = function(t) {
|
|
4535
4498
|
return function(...r) {
|
|
4536
4499
|
try {
|
|
@@ -4542,17 +4505,17 @@ if (typeof window != "undefined") {
|
|
|
4542
4505
|
}
|
|
4543
4506
|
};
|
|
4544
4507
|
};
|
|
4545
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
4508
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-DMEEX4lz.js").then(({ default: t }) => {
|
|
4546
4509
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
4547
4510
|
"player-account-gaming-limits-info-card",
|
|
4548
4511
|
t.element
|
|
4549
4512
|
);
|
|
4550
4513
|
});
|
|
4551
4514
|
}
|
|
4552
|
-
function
|
|
4553
|
-
|
|
4515
|
+
function us(e) {
|
|
4516
|
+
Or(e, "svelte-4tnj1c", '.PlayerAccountGamingLimitsWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emw--color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emw--color-primary-50, #FBECF4);border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4554
4517
|
}
|
|
4555
|
-
function
|
|
4518
|
+
function ls(e) {
|
|
4556
4519
|
let t;
|
|
4557
4520
|
return {
|
|
4558
4521
|
c() {
|
|
@@ -4604,7 +4567,7 @@ function Es(e) {
|
|
|
4604
4567
|
);
|
|
4605
4568
|
},
|
|
4606
4569
|
m(r, n) {
|
|
4607
|
-
|
|
4570
|
+
ne(r, t, n);
|
|
4608
4571
|
},
|
|
4609
4572
|
p(r, n) {
|
|
4610
4573
|
n & /*editLimitData*/
|
|
@@ -4664,27 +4627,27 @@ function Es(e) {
|
|
|
4664
4627
|
);
|
|
4665
4628
|
},
|
|
4666
4629
|
d(r) {
|
|
4667
|
-
r &&
|
|
4630
|
+
r && U(t);
|
|
4668
4631
|
}
|
|
4669
4632
|
};
|
|
4670
4633
|
}
|
|
4671
|
-
function
|
|
4634
|
+
function hs(e) {
|
|
4672
4635
|
let t, r, n, i = (
|
|
4673
4636
|
/*$_*/
|
|
4674
4637
|
e[16]("gamingLimitsText") + ""
|
|
4675
|
-
), s, a, o, u, l,
|
|
4638
|
+
), s, a, o, u, h, l, c, f, y, m, d = (
|
|
4676
4639
|
/*isMobile*/
|
|
4677
|
-
e[17] &&
|
|
4640
|
+
e[17] && cs(e)
|
|
4678
4641
|
);
|
|
4679
4642
|
return {
|
|
4680
4643
|
c() {
|
|
4681
|
-
t = P("div"), d && d.c(), r =
|
|
4644
|
+
t = P("div"), d && d.c(), r = Z(), n = P("h2"), s = he(i), a = Z(), o = P("div"), u = P("player-account-gaming-limits-info-card"), h = Z(), l = P("player-account-gaming-limits-info-card"), c = Z(), f = P("player-account-gaming-limits-info-card"), y = Z(), m = P("player-account-gaming-limits-info-card"), T(n, "class", "PlayerGamingLimitsTitle " + /*isMobile*/
|
|
4682
4645
|
(e[17] ? "PlayerGamingLimitsTitleNone" : "")), p(
|
|
4683
4646
|
u,
|
|
4684
4647
|
"limitsdata",
|
|
4685
4648
|
/*depositlimit*/
|
|
4686
4649
|
e[1]
|
|
4687
|
-
), p(u, "limitname",
|
|
4650
|
+
), p(u, "limitname", ps), p(
|
|
4688
4651
|
u,
|
|
4689
4652
|
"playercurrency",
|
|
4690
4653
|
/*playercurrency*/
|
|
@@ -4705,52 +4668,52 @@ function xs(e) {
|
|
|
4705
4668
|
/*clientstylingurl*/
|
|
4706
4669
|
e[10]
|
|
4707
4670
|
), p(
|
|
4708
|
-
|
|
4671
|
+
l,
|
|
4709
4672
|
"limitsdata",
|
|
4710
4673
|
/*wageringlimit*/
|
|
4711
4674
|
e[2]
|
|
4712
|
-
), p(
|
|
4713
|
-
|
|
4675
|
+
), p(l, "limitname", ds), p(
|
|
4676
|
+
l,
|
|
4714
4677
|
"playercurrency",
|
|
4715
4678
|
/*playercurrency*/
|
|
4716
4679
|
e[5]
|
|
4717
4680
|
), p(
|
|
4718
|
-
|
|
4681
|
+
l,
|
|
4719
4682
|
"lang",
|
|
4720
4683
|
/*lang*/
|
|
4721
4684
|
e[0]
|
|
4722
4685
|
), p(
|
|
4723
|
-
|
|
4686
|
+
l,
|
|
4724
4687
|
"clientstyling",
|
|
4725
4688
|
/*clientstyling*/
|
|
4726
4689
|
e[9]
|
|
4727
4690
|
), p(
|
|
4728
|
-
|
|
4691
|
+
l,
|
|
4729
4692
|
"clientstylingurl",
|
|
4730
4693
|
/*clientstylingurl*/
|
|
4731
4694
|
e[10]
|
|
4732
4695
|
), p(
|
|
4733
|
-
|
|
4696
|
+
f,
|
|
4734
4697
|
"limitsdata",
|
|
4735
4698
|
/*losslimit*/
|
|
4736
4699
|
e[3]
|
|
4737
|
-
), p(
|
|
4738
|
-
|
|
4700
|
+
), p(f, "limitname", gs), p(
|
|
4701
|
+
f,
|
|
4739
4702
|
"playercurrency",
|
|
4740
4703
|
/*playercurrency*/
|
|
4741
4704
|
e[5]
|
|
4742
4705
|
), p(
|
|
4743
|
-
|
|
4706
|
+
f,
|
|
4744
4707
|
"lang",
|
|
4745
4708
|
/*lang*/
|
|
4746
4709
|
e[0]
|
|
4747
4710
|
), p(
|
|
4748
|
-
|
|
4711
|
+
f,
|
|
4749
4712
|
"clientstyling",
|
|
4750
4713
|
/*clientstyling*/
|
|
4751
4714
|
e[9]
|
|
4752
4715
|
), p(
|
|
4753
|
-
|
|
4716
|
+
f,
|
|
4754
4717
|
"clientstylingurl",
|
|
4755
4718
|
/*clientstylingurl*/
|
|
4756
4719
|
e[10]
|
|
@@ -4759,7 +4722,7 @@ function xs(e) {
|
|
|
4759
4722
|
"limitsdata",
|
|
4760
4723
|
/*timelimit*/
|
|
4761
4724
|
e[4]
|
|
4762
|
-
), p(m, "limitname",
|
|
4725
|
+
), p(m, "limitname", bs), p(
|
|
4763
4726
|
m,
|
|
4764
4727
|
"playercurrency",
|
|
4765
4728
|
/*playercurrency*/
|
|
@@ -4785,13 +4748,13 @@ function xs(e) {
|
|
|
4785
4748
|
e[17] ? "PlayerAccountTabletGamingLimitsWrapper" : ""));
|
|
4786
4749
|
},
|
|
4787
4750
|
m(g, _) {
|
|
4788
|
-
|
|
4751
|
+
ne(g, t, _), d && d.m(t, null), L(t, r), L(t, n), L(n, s), L(t, a), L(t, o), L(o, u), L(o, h), L(o, l), L(o, c), L(o, f), L(o, y), L(o, m);
|
|
4789
4752
|
},
|
|
4790
4753
|
p(g, _) {
|
|
4791
4754
|
/*isMobile*/
|
|
4792
4755
|
g[17] && d.p(g, _), _ & /*$_*/
|
|
4793
4756
|
65536 && i !== (i = /*$_*/
|
|
4794
|
-
g[16]("gamingLimitsText") + "") &&
|
|
4757
|
+
g[16]("gamingLimitsText") + "") && Ft(s, i), _ & /*depositlimit*/
|
|
4795
4758
|
2 && p(
|
|
4796
4759
|
u,
|
|
4797
4760
|
"limitsdata",
|
|
@@ -4823,61 +4786,61 @@ function xs(e) {
|
|
|
4823
4786
|
g[10]
|
|
4824
4787
|
), _ & /*wageringlimit*/
|
|
4825
4788
|
4 && p(
|
|
4826
|
-
|
|
4789
|
+
l,
|
|
4827
4790
|
"limitsdata",
|
|
4828
4791
|
/*wageringlimit*/
|
|
4829
4792
|
g[2]
|
|
4830
4793
|
), _ & /*playercurrency*/
|
|
4831
4794
|
32 && p(
|
|
4832
|
-
|
|
4795
|
+
l,
|
|
4833
4796
|
"playercurrency",
|
|
4834
4797
|
/*playercurrency*/
|
|
4835
4798
|
g[5]
|
|
4836
4799
|
), _ & /*lang*/
|
|
4837
4800
|
1 && p(
|
|
4838
|
-
|
|
4801
|
+
l,
|
|
4839
4802
|
"lang",
|
|
4840
4803
|
/*lang*/
|
|
4841
4804
|
g[0]
|
|
4842
4805
|
), _ & /*clientstyling*/
|
|
4843
4806
|
512 && p(
|
|
4844
|
-
|
|
4807
|
+
l,
|
|
4845
4808
|
"clientstyling",
|
|
4846
4809
|
/*clientstyling*/
|
|
4847
4810
|
g[9]
|
|
4848
4811
|
), _ & /*clientstylingurl*/
|
|
4849
4812
|
1024 && p(
|
|
4850
|
-
|
|
4813
|
+
l,
|
|
4851
4814
|
"clientstylingurl",
|
|
4852
4815
|
/*clientstylingurl*/
|
|
4853
4816
|
g[10]
|
|
4854
4817
|
), _ & /*losslimit*/
|
|
4855
4818
|
8 && p(
|
|
4856
|
-
|
|
4819
|
+
f,
|
|
4857
4820
|
"limitsdata",
|
|
4858
4821
|
/*losslimit*/
|
|
4859
4822
|
g[3]
|
|
4860
4823
|
), _ & /*playercurrency*/
|
|
4861
4824
|
32 && p(
|
|
4862
|
-
|
|
4825
|
+
f,
|
|
4863
4826
|
"playercurrency",
|
|
4864
4827
|
/*playercurrency*/
|
|
4865
4828
|
g[5]
|
|
4866
4829
|
), _ & /*lang*/
|
|
4867
4830
|
1 && p(
|
|
4868
|
-
|
|
4831
|
+
f,
|
|
4869
4832
|
"lang",
|
|
4870
4833
|
/*lang*/
|
|
4871
4834
|
g[0]
|
|
4872
4835
|
), _ & /*clientstyling*/
|
|
4873
4836
|
512 && p(
|
|
4874
|
-
|
|
4837
|
+
f,
|
|
4875
4838
|
"clientstyling",
|
|
4876
4839
|
/*clientstyling*/
|
|
4877
4840
|
g[9]
|
|
4878
4841
|
), _ & /*clientstylingurl*/
|
|
4879
4842
|
1024 && p(
|
|
4880
|
-
|
|
4843
|
+
f,
|
|
4881
4844
|
"clientstylingurl",
|
|
4882
4845
|
/*clientstylingurl*/
|
|
4883
4846
|
g[10]
|
|
@@ -4914,36 +4877,36 @@ function xs(e) {
|
|
|
4914
4877
|
);
|
|
4915
4878
|
},
|
|
4916
4879
|
d(g) {
|
|
4917
|
-
g &&
|
|
4880
|
+
g && U(t), d && d.d();
|
|
4918
4881
|
}
|
|
4919
4882
|
};
|
|
4920
4883
|
}
|
|
4921
|
-
function
|
|
4884
|
+
function fs(e) {
|
|
4922
4885
|
let t;
|
|
4923
4886
|
return {
|
|
4924
4887
|
c() {
|
|
4925
4888
|
t = P("div"), T(t, "class", "ModalLoader");
|
|
4926
4889
|
},
|
|
4927
4890
|
m(r, n) {
|
|
4928
|
-
|
|
4891
|
+
ne(r, t, n);
|
|
4929
4892
|
},
|
|
4930
4893
|
p: O,
|
|
4931
4894
|
d(r) {
|
|
4932
|
-
r &&
|
|
4895
|
+
r && U(t);
|
|
4933
4896
|
}
|
|
4934
4897
|
};
|
|
4935
4898
|
}
|
|
4936
|
-
function
|
|
4937
|
-
let t, r, n, i, s, a, o, u,
|
|
4899
|
+
function cs(e) {
|
|
4900
|
+
let t, r, n, i, s, a, o, u, h, l, c = (
|
|
4938
4901
|
/*$_*/
|
|
4939
4902
|
e[16]("gamingLimitsText") + ""
|
|
4940
|
-
),
|
|
4903
|
+
), f, y, m;
|
|
4941
4904
|
return {
|
|
4942
4905
|
c() {
|
|
4943
|
-
t = P("div"), r =
|
|
4906
|
+
t = P("div"), r = X("svg"), n = X("defs"), i = X("style"), s = he(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), a = X("g"), o = X("g"), u = X("path"), h = Z(), l = P("h2"), f = he(c), T(u, "class", "aaa"), T(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), T(u, "transform", "translate(15 15) rotate(180)"), T(o, "transform", "translate(20 158)"), T(a, "transform", "translate(-20 -158)"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "width", "15"), T(r, "height", "15"), T(r, "viewBox", "0 0 15 15"), T(l, "class", "PlayerGamingLimitsTitleMobile"), T(t, "class", "MenuReturnButton");
|
|
4944
4907
|
},
|
|
4945
4908
|
m(d, g) {
|
|
4946
|
-
|
|
4909
|
+
ne(d, t, g), L(t, r), L(r, n), L(n, i), L(i, s), L(r, a), L(a, o), L(o, u), L(t, h), L(t, l), L(l, f), y || (m = Nr(
|
|
4947
4910
|
t,
|
|
4948
4911
|
"click",
|
|
4949
4912
|
/*click_handler*/
|
|
@@ -4952,22 +4915,22 @@ function Ls(e) {
|
|
|
4952
4915
|
},
|
|
4953
4916
|
p(d, g) {
|
|
4954
4917
|
g & /*$_*/
|
|
4955
|
-
65536 &&
|
|
4956
|
-
d[16]("gamingLimitsText") + "") &&
|
|
4918
|
+
65536 && c !== (c = /*$_*/
|
|
4919
|
+
d[16]("gamingLimitsText") + "") && Ft(f, c);
|
|
4957
4920
|
},
|
|
4958
4921
|
d(d) {
|
|
4959
|
-
d &&
|
|
4922
|
+
d && U(t), y = !1, m();
|
|
4960
4923
|
}
|
|
4961
4924
|
};
|
|
4962
4925
|
}
|
|
4963
|
-
function
|
|
4926
|
+
function ms(e) {
|
|
4964
4927
|
let t;
|
|
4965
4928
|
function r(s, a) {
|
|
4966
4929
|
return (
|
|
4967
4930
|
/*isLoading*/
|
|
4968
|
-
s[12] ?
|
|
4931
|
+
s[12] ? fs : (
|
|
4969
4932
|
/*limitsGroupView*/
|
|
4970
|
-
s[15] ?
|
|
4933
|
+
s[15] ? hs : ls
|
|
4971
4934
|
)
|
|
4972
4935
|
);
|
|
4973
4936
|
}
|
|
@@ -4977,7 +4940,7 @@ function Ts(e) {
|
|
|
4977
4940
|
t = P("div"), i.c();
|
|
4978
4941
|
},
|
|
4979
4942
|
m(s, a) {
|
|
4980
|
-
|
|
4943
|
+
ne(s, t, a), i.m(t, null), e[22](t);
|
|
4981
4944
|
},
|
|
4982
4945
|
p(s, [a]) {
|
|
4983
4946
|
n === (n = r(s)) && i ? i.p(s, a) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4985,126 +4948,126 @@ function Ts(e) {
|
|
|
4985
4948
|
i: O,
|
|
4986
4949
|
o: O,
|
|
4987
4950
|
d(s) {
|
|
4988
|
-
s &&
|
|
4951
|
+
s && U(t), i.d(), e[22](null);
|
|
4989
4952
|
}
|
|
4990
4953
|
};
|
|
4991
4954
|
}
|
|
4992
|
-
let
|
|
4993
|
-
function
|
|
4955
|
+
let ps = "Deposit Limit", ds = "Wagering Limit", gs = "Loss Limit", bs = "Time Limit";
|
|
4956
|
+
function ys(e, t, r) {
|
|
4994
4957
|
let n;
|
|
4995
|
-
|
|
4996
|
-
let { depositlimit: i } = t, { wageringlimit: s } = t, { losslimit: a } = t, { timelimit: o } = t, { showdeletenotification: u = !1 } = t, { showsuccessnotification:
|
|
4958
|
+
Ar(e, ss, (b) => r(16, n = b));
|
|
4959
|
+
let { depositlimit: i } = t, { wageringlimit: s } = t, { losslimit: a } = t, { timelimit: o } = t, { showdeletenotification: u = !1 } = t, { showsuccessnotification: h = !1 } = t, { lang: l = "en" } = t, { playercurrency: c = "" } = t, { separatelimits: f = "true" } = t, { clientstyling: y = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t;
|
|
4997
4960
|
const g = () => {
|
|
4998
|
-
fetch(d).then((
|
|
4999
|
-
Object.keys(
|
|
5000
|
-
|
|
4961
|
+
fetch(d).then((M) => M.json()).then((M) => {
|
|
4962
|
+
Object.keys(M).forEach((V) => {
|
|
4963
|
+
It(V, M[V]);
|
|
5001
4964
|
});
|
|
5002
|
-
}).catch((
|
|
5003
|
-
console.log(
|
|
4965
|
+
}).catch((M) => {
|
|
4966
|
+
console.log(M);
|
|
5004
4967
|
});
|
|
5005
4968
|
};
|
|
5006
|
-
Object.keys(
|
|
5007
|
-
|
|
4969
|
+
Object.keys(Nt).forEach((b) => {
|
|
4970
|
+
It(b, Nt[b]);
|
|
5008
4971
|
});
|
|
5009
|
-
let _, I = !0, S = window.navigator.userAgent,
|
|
5010
|
-
const
|
|
4972
|
+
let _, I = !0, S = window.navigator.userAgent, N = os(S) !== "PC", H, C = "", k = !0;
|
|
4973
|
+
const _r = window.matchMedia("(min-width: 768px)"), at = () => {
|
|
5011
4974
|
window.postMessage(
|
|
5012
4975
|
{
|
|
5013
4976
|
type: "PlayerAccountMenuActive",
|
|
5014
|
-
isMobile:
|
|
4977
|
+
isMobile: N
|
|
5015
4978
|
},
|
|
5016
4979
|
window.location.href
|
|
5017
4980
|
);
|
|
5018
|
-
},
|
|
5019
|
-
|
|
5020
|
-
},
|
|
4981
|
+
}, vr = () => {
|
|
4982
|
+
as(l);
|
|
4983
|
+
}, ut = (b) => {
|
|
5021
4984
|
if (b.data)
|
|
5022
4985
|
switch (b.data.type) {
|
|
5023
4986
|
case "PlayerLimitsData":
|
|
5024
|
-
r(0,
|
|
4987
|
+
r(0, l = b.data.limits.lang), r(1, i = b.data.limits.depositlimit), r(2, s = b.data.limits.wageringlimit), r(3, a = b.data.limits.losslimit), r(4, o = b.data.limits.timelimit), r(12, I = !1);
|
|
5025
4988
|
break;
|
|
5026
4989
|
case "EditPlayerAccountGamingLimits":
|
|
5027
|
-
r(13, H = b.data.edit), r(14,
|
|
4990
|
+
r(13, H = b.data.edit), r(14, C = b.data.name), r(15, k = !1), window.postMessage(
|
|
5028
4991
|
{
|
|
5029
4992
|
type: "EditPlayerLimit",
|
|
5030
|
-
name:
|
|
4993
|
+
name: C
|
|
5031
4994
|
},
|
|
5032
4995
|
window.location.href
|
|
5033
4996
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
5034
4997
|
break;
|
|
5035
4998
|
case "PlayerAccountBackToLimitsView":
|
|
5036
|
-
r(15,
|
|
4999
|
+
r(15, k = !0);
|
|
5037
5000
|
break;
|
|
5038
5001
|
case "ProfileDetailsData":
|
|
5039
|
-
let
|
|
5040
|
-
r(5,
|
|
5002
|
+
let M = b.data.profileDetails;
|
|
5003
|
+
r(5, c = M.currency);
|
|
5041
5004
|
break;
|
|
5042
5005
|
}
|
|
5043
|
-
},
|
|
5006
|
+
}, Er = () => {
|
|
5044
5007
|
let b = document.createElement("style");
|
|
5045
5008
|
b.innerHTML = y, _.appendChild(b);
|
|
5046
|
-
},
|
|
5047
|
-
let b = new URL(m),
|
|
5048
|
-
fetch(b.href).then((
|
|
5049
|
-
|
|
5009
|
+
}, xr = () => {
|
|
5010
|
+
let b = new URL(m), M = document.createElement("style");
|
|
5011
|
+
fetch(b.href).then((V) => V.text()).then((V) => {
|
|
5012
|
+
M.innerHTML = V, setTimeout(
|
|
5050
5013
|
() => {
|
|
5051
|
-
_.appendChild(
|
|
5014
|
+
_.appendChild(M);
|
|
5052
5015
|
},
|
|
5053
5016
|
1
|
|
5054
5017
|
);
|
|
5055
5018
|
});
|
|
5056
5019
|
};
|
|
5057
|
-
|
|
5058
|
-
window.removeEventListener("message",
|
|
5020
|
+
jr(() => (window.addEventListener("message", ut, !1), () => {
|
|
5021
|
+
window.removeEventListener("message", ut);
|
|
5059
5022
|
}));
|
|
5060
|
-
const
|
|
5061
|
-
function
|
|
5062
|
-
|
|
5023
|
+
const wr = () => at();
|
|
5024
|
+
function Lr(b) {
|
|
5025
|
+
Fe[b ? "unshift" : "push"](() => {
|
|
5063
5026
|
_ = b, r(11, _);
|
|
5064
5027
|
});
|
|
5065
5028
|
}
|
|
5066
5029
|
return e.$$set = (b) => {
|
|
5067
|
-
"depositlimit" in b && r(1, i = b.depositlimit), "wageringlimit" in b && r(2, s = b.wageringlimit), "losslimit" in b && r(3, a = b.losslimit), "timelimit" in b && r(4, o = b.timelimit), "showdeletenotification" in b && r(6, u = b.showdeletenotification), "showsuccessnotification" in b && r(7,
|
|
5030
|
+
"depositlimit" in b && r(1, i = b.depositlimit), "wageringlimit" in b && r(2, s = b.wageringlimit), "losslimit" in b && r(3, a = b.losslimit), "timelimit" in b && r(4, o = b.timelimit), "showdeletenotification" in b && r(6, u = b.showdeletenotification), "showsuccessnotification" in b && r(7, h = b.showsuccessnotification), "lang" in b && r(0, l = b.lang), "playercurrency" in b && r(5, c = b.playercurrency), "separatelimits" in b && r(8, f = b.separatelimits), "clientstyling" in b && r(9, y = b.clientstyling), "clientstylingurl" in b && r(10, m = b.clientstylingurl), "translationurl" in b && r(20, d = b.translationurl);
|
|
5068
5031
|
}, e.$$.update = () => {
|
|
5069
5032
|
e.$$.dirty & /*lang*/
|
|
5070
|
-
1 &&
|
|
5071
|
-
2560 && y && _ &&
|
|
5072
|
-
3072 && m && _ &&
|
|
5033
|
+
1 && l && vr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
5034
|
+
2560 && y && _ && Er(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
5035
|
+
3072 && m && _ && xr(), e.$$.dirty & /*translationurl*/
|
|
5073
5036
|
1048576 && d && g();
|
|
5074
5037
|
}, [
|
|
5075
|
-
|
|
5038
|
+
l,
|
|
5076
5039
|
i,
|
|
5077
5040
|
s,
|
|
5078
5041
|
a,
|
|
5079
5042
|
o,
|
|
5080
|
-
f,
|
|
5081
|
-
u,
|
|
5082
|
-
l,
|
|
5083
5043
|
c,
|
|
5044
|
+
u,
|
|
5045
|
+
h,
|
|
5046
|
+
f,
|
|
5084
5047
|
y,
|
|
5085
5048
|
m,
|
|
5086
5049
|
_,
|
|
5087
5050
|
I,
|
|
5088
5051
|
H,
|
|
5089
|
-
|
|
5090
|
-
|
|
5052
|
+
C,
|
|
5053
|
+
k,
|
|
5091
5054
|
n,
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5055
|
+
N,
|
|
5056
|
+
_r,
|
|
5057
|
+
at,
|
|
5095
5058
|
d,
|
|
5096
|
-
|
|
5097
|
-
|
|
5059
|
+
wr,
|
|
5060
|
+
Lr
|
|
5098
5061
|
];
|
|
5099
5062
|
}
|
|
5100
|
-
class
|
|
5063
|
+
class _s extends tn {
|
|
5101
5064
|
constructor(t) {
|
|
5102
|
-
super(),
|
|
5065
|
+
super(), Kr(
|
|
5103
5066
|
this,
|
|
5104
5067
|
t,
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5068
|
+
ys,
|
|
5069
|
+
ms,
|
|
5070
|
+
Ct,
|
|
5108
5071
|
{
|
|
5109
5072
|
depositlimit: 1,
|
|
5110
5073
|
wageringlimit: 2,
|
|
@@ -5119,7 +5082,7 @@ class Tr extends pn {
|
|
|
5119
5082
|
clientstylingurl: 10,
|
|
5120
5083
|
translationurl: 20
|
|
5121
5084
|
},
|
|
5122
|
-
|
|
5085
|
+
us
|
|
5123
5086
|
);
|
|
5124
5087
|
}
|
|
5125
5088
|
get depositlimit() {
|
|
@@ -5195,57 +5158,53 @@ class Tr extends pn {
|
|
|
5195
5158
|
this.$$set({ translationurl: t }), B();
|
|
5196
5159
|
}
|
|
5197
5160
|
}
|
|
5198
|
-
|
|
5199
|
-
const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5200
|
-
__proto__: null,
|
|
5201
|
-
default: Tr
|
|
5202
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
5161
|
+
en(_s, { depositlimit: {}, wageringlimit: {}, losslimit: {}, timelimit: {}, showdeletenotification: { type: "Boolean" }, showsuccessnotification: { type: "Boolean" }, lang: {}, playercurrency: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
5203
5162
|
export {
|
|
5204
|
-
|
|
5205
|
-
|
|
5163
|
+
se as $,
|
|
5164
|
+
X as A,
|
|
5206
5165
|
O as B,
|
|
5207
|
-
|
|
5166
|
+
ss as C,
|
|
5208
5167
|
p as D,
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5168
|
+
Ss as E,
|
|
5169
|
+
Cs as F,
|
|
5170
|
+
Ls as G,
|
|
5171
|
+
Ts as H,
|
|
5172
|
+
Bs as I,
|
|
5173
|
+
Hs as J,
|
|
5174
|
+
As as K,
|
|
5175
|
+
Le as L,
|
|
5176
|
+
Ps as M,
|
|
5177
|
+
He as N,
|
|
5178
|
+
Tr as O,
|
|
5179
|
+
Is as P,
|
|
5180
|
+
Ms as Q,
|
|
5181
|
+
Os as R,
|
|
5182
|
+
tn as S,
|
|
5183
|
+
_s as T,
|
|
5184
|
+
pr as a,
|
|
5185
|
+
Or as b,
|
|
5186
|
+
en as c,
|
|
5187
|
+
vs as d,
|
|
5229
5188
|
P as e,
|
|
5230
5189
|
B as f,
|
|
5231
|
-
|
|
5190
|
+
Z as g,
|
|
5232
5191
|
T as h,
|
|
5233
|
-
|
|
5234
|
-
|
|
5192
|
+
Kr as i,
|
|
5193
|
+
ne as j,
|
|
5235
5194
|
L as k,
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5195
|
+
Nr as l,
|
|
5196
|
+
ws as m,
|
|
5197
|
+
Es as n,
|
|
5198
|
+
Ft as o,
|
|
5199
|
+
Zr as p,
|
|
5200
|
+
Ns as q,
|
|
5201
|
+
U as r,
|
|
5202
|
+
Ct as s,
|
|
5203
|
+
he as t,
|
|
5204
|
+
xs as u,
|
|
5205
|
+
F as v,
|
|
5206
|
+
Ar as w,
|
|
5207
|
+
os as x,
|
|
5208
|
+
jr as y,
|
|
5209
|
+
Fe as z
|
|
5251
5210
|
};
|