@everymatrix/player-account-gaming-limits-group-edit 1.74.3 → 1.74.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DT5Y2gCB.js → PlayerAccountGamingLimitsConfirmationModal-AL7PieRc.js} +1288 -1274
- package/components/PlayerAccountGamingLimitsConfirmationModal-B2vkjnwF.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-rnfl53qp.js → PlayerAccountGamingLimitsConfirmationModal-YHKBhTQY.js} +762 -748
- package/components/{PlayerAccountGamingLimitsGroupEdit-D7ZhgIQn.js → PlayerAccountGamingLimitsGroupEdit-BWKMuoEc.js} +376 -376
- package/components/{PlayerAccountGamingLimitsGroupEdit-BKWoEXUd.cjs → PlayerAccountGamingLimitsGroupEdit-C0NlGVyK.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DFPbnVtf.js → PlayerAccountGamingLimitsGroupEdit-UARqHqfV.js} +376 -376
- package/components/{PlayerAccountGamingLimitsPopup-CeT2c12X.cjs → PlayerAccountGamingLimitsPopup-B5Q5hoHt.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-3-k3_WPP.js → PlayerAccountGamingLimitsPopup-Bs4BiL4I.js} +29 -29
- package/components/{PlayerAccountGamingLimitsPopup-tTjXmkaa.js → PlayerAccountGamingLimitsPopup-D1tvMy40.js} +29 -29
- package/components/{PlayerAccountModal-DO1sUUOW.cjs → PlayerAccountModal-BoAEKlyU.cjs} +1 -1
- package/components/{PlayerAccountModal-BrzLaYAb.js → PlayerAccountModal-C5ZTAAQs.js} +25 -25
- package/components/{PlayerAccountModal-DTxRhSso.js → PlayerAccountModal-CNeDzB40.js} +25 -25
- package/es2015/player-account-gaming-limits-group-edit.cjs +1 -1
- package/es2015/player-account-gaming-limits-group-edit.js +1 -1
- package/esnext/player-account-gaming-limits-group-edit.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-DkEkFkSs.cjs +0 -21
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ae = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Lr = Object.defineProperty, Or = Object.defineProperties;
|
|
2
|
+
var Ir = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ct = Object.getOwnPropertySymbols;
|
|
4
|
+
var Mr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, r) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Mr.call(t, r) && Ae(e, r, t[r]);
|
|
8
|
+
if (ct)
|
|
9
|
+
for (var r of ct(t))
|
|
10
|
+
Nr.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, mt = (e, t) => Or(e, Ir(t));
|
|
13
|
+
var O = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var pt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (l) => l.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const $r = (e) => e;
|
|
33
|
+
function Rr(e, t) {
|
|
34
|
+
for (const r in t)
|
|
35
|
+
e[r] = t[r];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function jt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function dt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function D(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(jt);
|
|
49
49
|
}
|
|
50
50
|
function we(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function kt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Gr(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Vt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const n of t)
|
|
62
|
+
n(void 0);
|
|
63
63
|
return I;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
const r = e.subscribe(...t);
|
|
66
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function Ur(e, t, r) {
|
|
69
|
+
e.$$.on_destroy.push(Vt(t, r));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Dr(e, t, r, n) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = Xt(e, t, r, n);
|
|
74
74
|
return e[0](i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] &&
|
|
77
|
+
function Xt(e, t, r, n) {
|
|
78
|
+
return e[1] && n ? Rr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (e[2] &&
|
|
82
|
-
const i = e[2](r
|
|
80
|
+
function Fr(e, t, r, n) {
|
|
81
|
+
if (e[2] && n) {
|
|
82
|
+
const i = e[2](n(r));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return i;
|
|
85
85
|
if (typeof i == "object") {
|
|
@@ -92,34 +92,34 @@ function Un(e, t, n, r) {
|
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function jr(e, t, r, n, i, o) {
|
|
96
96
|
if (i) {
|
|
97
|
-
const a =
|
|
97
|
+
const a = Xt(t, r, n, o);
|
|
98
98
|
e.p(a, i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function kr(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
|
-
const t = [],
|
|
104
|
-
for (let
|
|
105
|
-
t[
|
|
103
|
+
const t = [], r = e.ctx.length / 32;
|
|
104
|
+
for (let n = 0; n < r; n++)
|
|
105
|
+
t[n] = -1;
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const zt = typeof window != "undefined";
|
|
111
|
+
let Vr = zt ? () => window.performance.now() : () => Date.now(), nt = zt ? (e) => requestAnimationFrame(e) : I;
|
|
112
112
|
const z = /* @__PURE__ */ new Set();
|
|
113
|
-
function
|
|
113
|
+
function Wt(e) {
|
|
114
114
|
z.forEach((t) => {
|
|
115
115
|
t.c(e) || (z.delete(t), t.f());
|
|
116
|
-
}), z.size !== 0 && nt(
|
|
116
|
+
}), z.size !== 0 && nt(Wt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Xr(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return z.size === 0 && nt(
|
|
121
|
-
promise: new Promise((
|
|
122
|
-
z.add(t = { c: e, f:
|
|
120
|
+
return z.size === 0 && nt(Wt), {
|
|
121
|
+
promise: new Promise((r) => {
|
|
122
|
+
z.add(t = { c: e, f: r });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
125
|
z.delete(t);
|
|
@@ -129,14 +129,14 @@ function kn(e) {
|
|
|
129
129
|
function P(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
132
|
+
function zr(e, t, r) {
|
|
133
|
+
const n = it(e);
|
|
134
|
+
if (!n.getElementById(t)) {
|
|
135
135
|
const i = M("style");
|
|
136
|
-
i.id = t, i.textContent =
|
|
136
|
+
i.id = t, i.textContent = r, Zt(n, i);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function it(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,31 +146,31 @@ function rt(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Wr(e) {
|
|
150
150
|
const t = M("style");
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
151
|
+
return t.textContent = "/* empty */", Zt(it(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Zt(e, t) {
|
|
154
154
|
return P(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
e.insertBefore(t,
|
|
160
|
+
function ot(e, t, r) {
|
|
161
|
+
e.insertBefore(t, r || null);
|
|
162
162
|
}
|
|
163
163
|
function le(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (let
|
|
168
|
-
e[
|
|
166
|
+
function Lo(e, t) {
|
|
167
|
+
for (let r = 0; r < e.length; r += 1)
|
|
168
|
+
e[r] && e[r].d(t);
|
|
169
169
|
}
|
|
170
170
|
function M(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function bt(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
176
|
function ie(e) {
|
|
@@ -179,98 +179,98 @@ function ie(e) {
|
|
|
179
179
|
function Pe() {
|
|
180
180
|
return ie(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Oo() {
|
|
183
183
|
return ie("");
|
|
184
184
|
}
|
|
185
|
-
function Le(e, t,
|
|
186
|
-
return e.addEventListener(t,
|
|
185
|
+
function Le(e, t, r, n) {
|
|
186
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Io(e) {
|
|
189
189
|
return function(t) {
|
|
190
190
|
return t.preventDefault(), e.call(this, t);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function H(e, t,
|
|
194
|
-
|
|
193
|
+
function H(e, t, r) {
|
|
194
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
|
|
196
|
+
function Mo(e, t, r) {
|
|
197
|
+
const n = t.toLowerCase();
|
|
198
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function No(e) {
|
|
201
201
|
return e === "" ? null : +e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Zr(e) {
|
|
204
204
|
return Array.from(e.childNodes);
|
|
205
205
|
}
|
|
206
206
|
function Oe(e, t) {
|
|
207
207
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
208
208
|
t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function $o(e, t) {
|
|
211
211
|
e.value = t == null ? "" : t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
for (let
|
|
215
|
-
const i = e.options[
|
|
213
|
+
function Ro(e, t, r) {
|
|
214
|
+
for (let n = 0; n < e.options.length; n += 1) {
|
|
215
|
+
const i = e.options[n];
|
|
216
216
|
if (i.__value === t) {
|
|
217
217
|
i.selected = !0;
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
(!
|
|
221
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Go(e) {
|
|
224
224
|
const t = e.querySelector(":checked");
|
|
225
225
|
return t && t.__value;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Qr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Jr(e) {
|
|
231
231
|
const t = {};
|
|
232
232
|
return e.childNodes.forEach(
|
|
233
233
|
/** @param {Element} node */
|
|
234
|
-
(
|
|
235
|
-
t[
|
|
234
|
+
(r) => {
|
|
235
|
+
t[r.slot || "default"] = !0;
|
|
236
236
|
}
|
|
237
237
|
), t;
|
|
238
238
|
}
|
|
239
239
|
const ye = /* @__PURE__ */ new Map();
|
|
240
240
|
let ve = 0;
|
|
241
|
-
function
|
|
242
|
-
let t = 5381,
|
|
243
|
-
for (;
|
|
244
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
241
|
+
function qr(e) {
|
|
242
|
+
let t = 5381, r = e.length;
|
|
243
|
+
for (; r--; )
|
|
244
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
245
245
|
return t >>> 0;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return ye.set(e,
|
|
247
|
+
function Yr(e, t) {
|
|
248
|
+
const r = { stylesheet: Wr(t), rules: {} };
|
|
249
|
+
return ye.set(e, r), r;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const l = 16.666 /
|
|
251
|
+
function gt(e, t, r, n, i, o, a, s = 0) {
|
|
252
|
+
const l = 16.666 / n;
|
|
253
253
|
let u = `{
|
|
254
254
|
`;
|
|
255
255
|
for (let v = 0; v <= 1; v += l) {
|
|
256
|
-
const T = t + (
|
|
256
|
+
const T = t + (r - t) * o(v);
|
|
257
257
|
u += v * 100 + `%{${a(T, 1 - T)}}
|
|
258
258
|
`;
|
|
259
259
|
}
|
|
260
|
-
const h = u + `100% {${a(
|
|
261
|
-
}`,
|
|
262
|
-
m[
|
|
263
|
-
const
|
|
264
|
-
return e.style.animation = `${
|
|
265
|
-
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
260
|
+
const h = u + `100% {${a(r, 1 - r)}}
|
|
261
|
+
}`, c = `__svelte_${qr(h)}_${s}`, f = it(e), { stylesheet: p, rules: m } = ye.get(f) || Yr(f, e);
|
|
262
|
+
m[c] || (m[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
|
|
263
|
+
const d = e.style.animation || "";
|
|
264
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, ve += 1, c;
|
|
265
|
+
}
|
|
266
|
+
function Kr(e, t) {
|
|
267
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
268
268
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
269
269
|
// remove all Svelte animations
|
|
270
|
-
), i =
|
|
271
|
-
i && (e.style.animation =
|
|
270
|
+
), i = r.length - n.length;
|
|
271
|
+
i && (e.style.animation = n.join(", "), ve -= i, ve || en());
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function en() {
|
|
274
274
|
nt(() => {
|
|
275
275
|
ve || (ye.forEach((e) => {
|
|
276
276
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -282,22 +282,22 @@ let se;
|
|
|
282
282
|
function oe(e) {
|
|
283
283
|
se = e;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function tn() {
|
|
286
286
|
if (!se)
|
|
287
287
|
throw new Error("Function called outside component initialization");
|
|
288
288
|
return se;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function rn(e) {
|
|
291
|
+
tn().$$.on_mount.push(e);
|
|
292
292
|
}
|
|
293
|
-
const X = [],
|
|
293
|
+
const X = [], je = [];
|
|
294
294
|
let W = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const yt = [], nn = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let ke = !1;
|
|
297
|
+
function on() {
|
|
298
|
+
ke || (ke = !0, nn.then(N));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function _e(e) {
|
|
301
301
|
W.push(e);
|
|
302
302
|
}
|
|
303
303
|
const Ie = /* @__PURE__ */ new Set();
|
|
@@ -310,46 +310,46 @@ function N() {
|
|
|
310
310
|
try {
|
|
311
311
|
for (; k < X.length; ) {
|
|
312
312
|
const t = X[k];
|
|
313
|
-
k++, oe(t),
|
|
313
|
+
k++, oe(t), sn(t.$$);
|
|
314
314
|
}
|
|
315
315
|
} catch (t) {
|
|
316
316
|
throw X.length = 0, k = 0, t;
|
|
317
317
|
}
|
|
318
|
-
for (oe(null), X.length = 0, k = 0;
|
|
319
|
-
|
|
318
|
+
for (oe(null), X.length = 0, k = 0; je.length; )
|
|
319
|
+
je.pop()();
|
|
320
320
|
for (let t = 0; t < W.length; t += 1) {
|
|
321
|
-
const
|
|
322
|
-
Ie.has(
|
|
321
|
+
const r = W[t];
|
|
322
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
323
323
|
}
|
|
324
324
|
W.length = 0;
|
|
325
325
|
} while (X.length);
|
|
326
|
-
for (;
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
for (; yt.length; )
|
|
327
|
+
yt.pop()();
|
|
328
|
+
ke = !1, Ie.clear(), oe(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function sn(e) {
|
|
331
331
|
if (e.fragment !== null) {
|
|
332
332
|
e.update(), D(e.before_update);
|
|
333
333
|
const t = e.dirty;
|
|
334
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
334
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
const t = [],
|
|
339
|
-
W.forEach((
|
|
337
|
+
function an(e) {
|
|
338
|
+
const t = [], r = [];
|
|
339
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
340
340
|
}
|
|
341
|
-
let
|
|
342
|
-
function
|
|
343
|
-
return
|
|
344
|
-
|
|
345
|
-
})),
|
|
341
|
+
let re;
|
|
342
|
+
function un() {
|
|
343
|
+
return re || (re = Promise.resolve(), re.then(() => {
|
|
344
|
+
re = null;
|
|
345
|
+
})), re;
|
|
346
346
|
}
|
|
347
|
-
function Me(e, t,
|
|
348
|
-
e.dispatchEvent(
|
|
347
|
+
function Me(e, t, r) {
|
|
348
|
+
e.dispatchEvent(Qr(`${t ? "intro" : "outro"}${r}`));
|
|
349
349
|
}
|
|
350
350
|
const me = /* @__PURE__ */ new Set();
|
|
351
351
|
let $;
|
|
352
|
-
function
|
|
352
|
+
function Uo() {
|
|
353
353
|
$ = {
|
|
354
354
|
r: 0,
|
|
355
355
|
c: [],
|
|
@@ -357,57 +357,57 @@ function Ro() {
|
|
|
357
357
|
// parent group
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Do() {
|
|
361
361
|
$.r || D($.c), $ = $.p;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Qt(e, t) {
|
|
364
364
|
e && e.i && (me.delete(e), e.i(t));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function ln(e, t, r, n) {
|
|
367
367
|
if (e && e.o) {
|
|
368
368
|
if (me.has(e))
|
|
369
369
|
return;
|
|
370
370
|
me.add(e), $.c.push(() => {
|
|
371
|
-
me.delete(e),
|
|
371
|
+
me.delete(e), n && (r && e.d(1), n());
|
|
372
372
|
}), e.o(t);
|
|
373
373
|
} else
|
|
374
|
-
|
|
374
|
+
n && n();
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
function
|
|
378
|
-
let o = t(e,
|
|
379
|
-
function
|
|
380
|
-
u &&
|
|
376
|
+
const hn = { duration: 0 };
|
|
377
|
+
function Fo(e, t, r, n) {
|
|
378
|
+
let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
|
|
379
|
+
function c() {
|
|
380
|
+
u && Kr(e, u);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function f(m, d) {
|
|
383
383
|
const v = (
|
|
384
384
|
/** @type {Program['d']} */
|
|
385
385
|
m.b - a
|
|
386
386
|
);
|
|
387
|
-
return
|
|
387
|
+
return d *= Math.abs(v), {
|
|
388
388
|
a,
|
|
389
389
|
b: m.b,
|
|
390
390
|
d: v,
|
|
391
|
-
duration:
|
|
391
|
+
duration: d,
|
|
392
392
|
start: m.start,
|
|
393
|
-
end: m.start +
|
|
393
|
+
end: m.start + d,
|
|
394
394
|
group: m.group
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function p(m) {
|
|
398
398
|
const {
|
|
399
|
-
delay:
|
|
399
|
+
delay: d = 0,
|
|
400
400
|
duration: v = 300,
|
|
401
|
-
easing: T =
|
|
401
|
+
easing: T = $r,
|
|
402
402
|
tick: C = I,
|
|
403
|
-
css:
|
|
404
|
-
} = o ||
|
|
405
|
-
start:
|
|
403
|
+
css: S
|
|
404
|
+
} = o || hn, B = {
|
|
405
|
+
start: Vr() + d,
|
|
406
406
|
b: m
|
|
407
407
|
};
|
|
408
408
|
m || (B.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
409
|
-
e.inert, e.inert = !0)), s || l ? l = B : (
|
|
410
|
-
if (l &&
|
|
409
|
+
e.inert, e.inert = !0)), s || l ? l = B : (S && (c(), u = gt(e, a, m, v, d, T, S)), m && C(0, 1), s = f(B, v), _e(() => Me(e, m, "start")), Xr((w) => {
|
|
410
|
+
if (l && w > l.start && (s = f(l, v), l = null, Me(e, s.b, "start"), S && (c(), u = gt(
|
|
411
411
|
e,
|
|
412
412
|
a,
|
|
413
413
|
s.b,
|
|
@@ -416,11 +416,11 @@ function Uo(e, t, n, r) {
|
|
|
416
416
|
T,
|
|
417
417
|
o.css
|
|
418
418
|
))), s) {
|
|
419
|
-
if (
|
|
420
|
-
C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ?
|
|
421
|
-
else if (
|
|
422
|
-
const
|
|
423
|
-
a = s.a + s.d * T(
|
|
419
|
+
if (w >= s.end)
|
|
420
|
+
C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? c() : --s.group.r || D(s.group.c)), s = null;
|
|
421
|
+
else if (w >= s.start) {
|
|
422
|
+
const x = w - s.start;
|
|
423
|
+
a = s.a + s.d * T(x / s.duration), C(a, 1 - a);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
return !!(s || l);
|
|
@@ -428,33 +428,33 @@ function Uo(e, t, n, r) {
|
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
430
|
run(m) {
|
|
431
|
-
we(o) ?
|
|
432
|
-
o = o({ direction: m ? "in" : "out" }),
|
|
433
|
-
}) :
|
|
431
|
+
we(o) ? un().then(() => {
|
|
432
|
+
o = o({ direction: m ? "in" : "out" }), p(m);
|
|
433
|
+
}) : p(m);
|
|
434
434
|
},
|
|
435
435
|
end() {
|
|
436
|
-
|
|
436
|
+
c(), s = l = null;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function jo(e) {
|
|
441
441
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const { fragment:
|
|
445
|
-
|
|
446
|
-
const o = e.$$.on_mount.map(
|
|
443
|
+
function cn(e, t, r) {
|
|
444
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
445
|
+
n && n.m(t, r), _e(() => {
|
|
446
|
+
const o = e.$$.on_mount.map(jt).filter(we);
|
|
447
447
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
|
|
448
|
-
}), i.forEach(
|
|
448
|
+
}), i.forEach(_e);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
const
|
|
452
|
-
|
|
450
|
+
function fn(e, t) {
|
|
451
|
+
const r = e.$$;
|
|
452
|
+
r.fragment !== null && (an(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
454
|
+
function mn(e, t) {
|
|
455
|
+
e.$$.dirty[0] === -1 && (X.push(e), on(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function pn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
458
458
|
const l = se;
|
|
459
459
|
oe(e);
|
|
460
460
|
const u = e.$$ = {
|
|
@@ -464,7 +464,7 @@ function fr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
464
464
|
props: o,
|
|
465
465
|
update: I,
|
|
466
466
|
not_equal: i,
|
|
467
|
-
bound:
|
|
467
|
+
bound: dt(),
|
|
468
468
|
// lifecycle
|
|
469
469
|
on_mount: [],
|
|
470
470
|
on_destroy: [],
|
|
@@ -473,29 +473,29 @@ function fr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
473
473
|
after_update: [],
|
|
474
474
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
475
475
|
// everything else
|
|
476
|
-
callbacks:
|
|
476
|
+
callbacks: dt(),
|
|
477
477
|
dirty: s,
|
|
478
478
|
skip_bound: !1,
|
|
479
479
|
root: t.target || l.$$.root
|
|
480
480
|
};
|
|
481
481
|
a && a(u.root);
|
|
482
482
|
let h = !1;
|
|
483
|
-
if (u.ctx =
|
|
484
|
-
const m =
|
|
485
|
-
return u.ctx && i(u.ctx[
|
|
486
|
-
}) : [], u.update(), h = !0, D(u.before_update), u.fragment =
|
|
483
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
484
|
+
const m = p.length ? p[0] : f;
|
|
485
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && mn(e, c)), f;
|
|
486
|
+
}) : [], u.update(), h = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
487
487
|
if (t.hydrate) {
|
|
488
|
-
const
|
|
489
|
-
u.fragment && u.fragment.l(
|
|
488
|
+
const c = Zr(t.target);
|
|
489
|
+
u.fragment && u.fragment.l(c), c.forEach(le);
|
|
490
490
|
} else
|
|
491
491
|
u.fragment && u.fragment.c();
|
|
492
|
-
t.intro &&
|
|
492
|
+
t.intro && Qt(e.$$.fragment), cn(e, t.target, t.anchor), N();
|
|
493
493
|
}
|
|
494
494
|
oe(l);
|
|
495
495
|
}
|
|
496
|
-
let
|
|
497
|
-
typeof HTMLElement == "function" && (
|
|
498
|
-
constructor(t,
|
|
496
|
+
let Jt;
|
|
497
|
+
typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
498
|
+
constructor(t, r, n) {
|
|
499
499
|
super();
|
|
500
500
|
/** The Svelte component constructor */
|
|
501
501
|
O(this, "$$ctor");
|
|
@@ -515,23 +515,23 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
515
515
|
O(this, "$$l", {});
|
|
516
516
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
517
517
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
518
|
-
this.$$ctor = t, this.$$s =
|
|
518
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
519
519
|
}
|
|
520
|
-
addEventListener(t,
|
|
521
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
522
|
-
const i = this.$$c.$on(t,
|
|
523
|
-
this.$$l_u.set(
|
|
520
|
+
addEventListener(t, r, n) {
|
|
521
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
522
|
+
const i = this.$$c.$on(t, r);
|
|
523
|
+
this.$$l_u.set(r, i);
|
|
524
524
|
}
|
|
525
|
-
super.addEventListener(t,
|
|
525
|
+
super.addEventListener(t, r, n);
|
|
526
526
|
}
|
|
527
|
-
removeEventListener(t,
|
|
528
|
-
if (super.removeEventListener(t,
|
|
529
|
-
const i = this.$$l_u.get(
|
|
530
|
-
i && (i(), this.$$l_u.delete(
|
|
527
|
+
removeEventListener(t, r, n) {
|
|
528
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
529
|
+
const i = this.$$l_u.get(r);
|
|
530
|
+
i && (i(), this.$$l_u.delete(r));
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
connectedCallback() {
|
|
534
|
-
return
|
|
534
|
+
return pt(this, null, function* () {
|
|
535
535
|
if (this.$$cn = !0, !this.$$c) {
|
|
536
536
|
let t = function(o) {
|
|
537
537
|
return () => {
|
|
@@ -545,7 +545,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
545
545
|
* @param {HTMLElement} [anchor]
|
|
546
546
|
*/
|
|
547
547
|
m: function(u, h) {
|
|
548
|
-
|
|
548
|
+
ot(u, a, h);
|
|
549
549
|
},
|
|
550
550
|
d: function(u) {
|
|
551
551
|
u && le(a);
|
|
@@ -555,19 +555,19 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
555
555
|
};
|
|
556
556
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
557
557
|
return;
|
|
558
|
-
const
|
|
558
|
+
const r = {}, n = Jr(this);
|
|
559
559
|
for (const o of this.$$s)
|
|
560
|
-
o in
|
|
560
|
+
o in n && (r[o] = [t(o)]);
|
|
561
561
|
for (const o of this.attributes) {
|
|
562
562
|
const a = this.$$g_p(o.name);
|
|
563
|
-
a in this.$$d || (this.$$d[a] =
|
|
563
|
+
a in this.$$d || (this.$$d[a] = pe(a, o.value, this.$$p_d, "toProp"));
|
|
564
564
|
}
|
|
565
565
|
for (const o in this.$$p_d)
|
|
566
566
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
567
567
|
this.$$c = new this.$$ctor({
|
|
568
568
|
target: this.shadowRoot || this,
|
|
569
|
-
props: ft(
|
|
570
|
-
$$slots:
|
|
569
|
+
props: mt(ft({}, this.$$d), {
|
|
570
|
+
$$slots: r,
|
|
571
571
|
$$scope: {
|
|
572
572
|
ctx: []
|
|
573
573
|
}
|
|
@@ -577,7 +577,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
577
577
|
this.$$r = !0;
|
|
578
578
|
for (const o in this.$$p_d)
|
|
579
579
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
580
|
-
const a =
|
|
580
|
+
const a = pe(
|
|
581
581
|
o,
|
|
582
582
|
this.$$d[o],
|
|
583
583
|
this.$$p_d,
|
|
@@ -599,9 +599,9 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
599
599
|
}
|
|
600
600
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
601
601
|
// and setting attributes through setAttribute etc, this is helpful
|
|
602
|
-
attributeChangedCallback(t,
|
|
602
|
+
attributeChangedCallback(t, r, n) {
|
|
603
603
|
var i;
|
|
604
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
604
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
605
605
|
}
|
|
606
606
|
disconnectedCallback() {
|
|
607
607
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -610,16 +610,16 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
610
610
|
}
|
|
611
611
|
$$g_p(t) {
|
|
612
612
|
return Object.keys(this.$$p_d).find(
|
|
613
|
-
(
|
|
613
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
614
614
|
) || t;
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
function
|
|
617
|
+
function pe(e, t, r, n) {
|
|
618
618
|
var o;
|
|
619
|
-
const i = (o =
|
|
620
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
619
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
620
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
621
621
|
return t;
|
|
622
|
-
if (
|
|
622
|
+
if (n === "toAttribute")
|
|
623
623
|
switch (i) {
|
|
624
624
|
case "Object":
|
|
625
625
|
case "Array":
|
|
@@ -644,10 +644,10 @@ function de(e, t, n, r) {
|
|
|
644
644
|
return t;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
let a = class extends
|
|
647
|
+
function dn(e, t, r, n, i, o) {
|
|
648
|
+
let a = class extends Jt {
|
|
649
649
|
constructor() {
|
|
650
|
-
super(e,
|
|
650
|
+
super(e, r, i), this.$$p_d = t;
|
|
651
651
|
}
|
|
652
652
|
static get observedAttributes() {
|
|
653
653
|
return Object.keys(t).map(
|
|
@@ -662,10 +662,10 @@ function cr(e, t, n, r, i, o) {
|
|
|
662
662
|
},
|
|
663
663
|
set(l) {
|
|
664
664
|
var u;
|
|
665
|
-
l =
|
|
665
|
+
l = pe(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}),
|
|
668
|
+
}), n.forEach((s) => {
|
|
669
669
|
Object.defineProperty(a.prototype, s, {
|
|
670
670
|
get() {
|
|
671
671
|
var l;
|
|
@@ -675,7 +675,7 @@ function cr(e, t, n, r, i, o) {
|
|
|
675
675
|
}), e.element = /** @type {any} */
|
|
676
676
|
a, a;
|
|
677
677
|
}
|
|
678
|
-
class
|
|
678
|
+
class bn {
|
|
679
679
|
constructor() {
|
|
680
680
|
/**
|
|
681
681
|
* ### PRIVATE API
|
|
@@ -696,7 +696,7 @@ class mr {
|
|
|
696
696
|
}
|
|
697
697
|
/** @returns {void} */
|
|
698
698
|
$destroy() {
|
|
699
|
-
|
|
699
|
+
fn(this, 1), this.$destroy = I;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
702
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -704,13 +704,13 @@ class mr {
|
|
|
704
704
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
705
705
|
* @returns {() => void}
|
|
706
706
|
*/
|
|
707
|
-
$on(t,
|
|
708
|
-
if (!we(
|
|
707
|
+
$on(t, r) {
|
|
708
|
+
if (!we(r))
|
|
709
709
|
return I;
|
|
710
|
-
const
|
|
711
|
-
return
|
|
712
|
-
const i =
|
|
713
|
-
i !== -1 &&
|
|
710
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
711
|
+
return n.push(r), () => {
|
|
712
|
+
const i = n.indexOf(r);
|
|
713
|
+
i !== -1 && n.splice(i, 1);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
@@ -718,11 +718,11 @@ class mr {
|
|
|
718
718
|
* @returns {void}
|
|
719
719
|
*/
|
|
720
720
|
$set(t) {
|
|
721
|
-
this.$$set &&
|
|
721
|
+
this.$$set && !Gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
const
|
|
725
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
724
|
+
const gn = "4";
|
|
725
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
|
|
726
726
|
/*! *****************************************************************************
|
|
727
727
|
Copyright (c) Microsoft Corporation.
|
|
728
728
|
|
|
@@ -737,67 +737,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
737
737
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
738
738
|
PERFORMANCE OF THIS SOFTWARE.
|
|
739
739
|
***************************************************************************** */
|
|
740
|
-
var
|
|
741
|
-
return
|
|
742
|
-
|
|
743
|
-
} || function(
|
|
744
|
-
for (var i in
|
|
745
|
-
Object.prototype.hasOwnProperty.call(
|
|
746
|
-
},
|
|
740
|
+
var Ve = function(e, t) {
|
|
741
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
742
|
+
r.__proto__ = n;
|
|
743
|
+
} || function(r, n) {
|
|
744
|
+
for (var i in n)
|
|
745
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
746
|
+
}, Ve(e, t);
|
|
747
747
|
};
|
|
748
748
|
function G(e, t) {
|
|
749
749
|
if (typeof t != "function" && t !== null)
|
|
750
750
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
751
|
-
|
|
752
|
-
function
|
|
751
|
+
Ve(e, t);
|
|
752
|
+
function r() {
|
|
753
753
|
this.constructor = e;
|
|
754
754
|
}
|
|
755
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
756
|
-
}
|
|
757
|
-
var
|
|
758
|
-
return
|
|
759
|
-
for (var
|
|
760
|
-
|
|
761
|
-
for (var o in
|
|
762
|
-
Object.prototype.hasOwnProperty.call(
|
|
755
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
756
|
+
}
|
|
757
|
+
var _ = function() {
|
|
758
|
+
return _ = Object.assign || function(t) {
|
|
759
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
760
|
+
r = arguments[n];
|
|
761
|
+
for (var o in r)
|
|
762
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
763
763
|
}
|
|
764
764
|
return t;
|
|
765
|
-
},
|
|
765
|
+
}, _.apply(this, arguments);
|
|
766
766
|
};
|
|
767
|
-
function
|
|
768
|
-
var
|
|
769
|
-
for (var
|
|
770
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
767
|
+
function yn(e, t) {
|
|
768
|
+
var r = {};
|
|
769
|
+
for (var n in e)
|
|
770
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
771
771
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
772
|
-
for (var i = 0,
|
|
773
|
-
t.indexOf(
|
|
774
|
-
return
|
|
772
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
773
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
774
|
+
return r;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
778
|
-
if (
|
|
779
|
-
return
|
|
776
|
+
function Xe(e) {
|
|
777
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
778
|
+
if (r)
|
|
779
|
+
return r.call(e);
|
|
780
780
|
if (e && typeof e.length == "number")
|
|
781
781
|
return {
|
|
782
782
|
next: function() {
|
|
783
|
-
return e &&
|
|
783
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
786
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
790
|
-
if (!
|
|
788
|
+
function ze(e, t) {
|
|
789
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
|
+
if (!r)
|
|
791
791
|
return e;
|
|
792
|
-
var
|
|
792
|
+
var n = r.call(e), i, o = [], a;
|
|
793
793
|
try {
|
|
794
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
794
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
795
795
|
o.push(i.value);
|
|
796
796
|
} catch (s) {
|
|
797
797
|
a = { error: s };
|
|
798
798
|
} finally {
|
|
799
799
|
try {
|
|
800
|
-
i && !i.done && (
|
|
800
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
801
801
|
} finally {
|
|
802
802
|
if (a)
|
|
803
803
|
throw a.error;
|
|
@@ -805,34 +805,34 @@ function Xe(e, t) {
|
|
|
805
805
|
}
|
|
806
806
|
return o;
|
|
807
807
|
}
|
|
808
|
-
function Z(e, t,
|
|
809
|
-
if (
|
|
810
|
-
for (var
|
|
811
|
-
(o || !(
|
|
808
|
+
function Z(e, t, r) {
|
|
809
|
+
if (r || arguments.length === 2)
|
|
810
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
811
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
812
812
|
return e.concat(o || t);
|
|
813
813
|
}
|
|
814
814
|
function R(e) {
|
|
815
815
|
return typeof e == "function";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
var t = function(
|
|
819
|
-
Error.call(
|
|
820
|
-
},
|
|
821
|
-
return
|
|
822
|
-
}
|
|
823
|
-
var Ne =
|
|
824
|
-
return function(
|
|
825
|
-
e(this), this.message =
|
|
826
|
-
` +
|
|
827
|
-
return i + 1 + ") " +
|
|
817
|
+
function qt(e) {
|
|
818
|
+
var t = function(n) {
|
|
819
|
+
Error.call(n), n.stack = new Error().stack;
|
|
820
|
+
}, r = e(t);
|
|
821
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
822
|
+
}
|
|
823
|
+
var Ne = qt(function(e) {
|
|
824
|
+
return function(r) {
|
|
825
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
826
|
+
` + r.map(function(n, i) {
|
|
827
|
+
return i + 1 + ") " + n.toString();
|
|
828
828
|
}).join(`
|
|
829
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
829
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
830
830
|
};
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function We(e, t) {
|
|
833
833
|
if (e) {
|
|
834
|
-
var
|
|
835
|
-
0 <=
|
|
834
|
+
var r = e.indexOf(t);
|
|
835
|
+
0 <= r && e.splice(r, 1);
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
var Se = function() {
|
|
@@ -840,22 +840,22 @@ var Se = function() {
|
|
|
840
840
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
841
841
|
}
|
|
842
842
|
return e.prototype.unsubscribe = function() {
|
|
843
|
-
var t,
|
|
843
|
+
var t, r, n, i, o;
|
|
844
844
|
if (!this.closed) {
|
|
845
845
|
this.closed = !0;
|
|
846
846
|
var a = this._parentage;
|
|
847
847
|
if (a)
|
|
848
848
|
if (this._parentage = null, Array.isArray(a))
|
|
849
849
|
try {
|
|
850
|
-
for (var s =
|
|
850
|
+
for (var s = Xe(a), l = s.next(); !l.done; l = s.next()) {
|
|
851
851
|
var u = l.value;
|
|
852
852
|
u.remove(this);
|
|
853
853
|
}
|
|
854
|
-
} catch (
|
|
855
|
-
t = { error:
|
|
854
|
+
} catch (d) {
|
|
855
|
+
t = { error: d };
|
|
856
856
|
} finally {
|
|
857
857
|
try {
|
|
858
|
-
l && !l.done && (
|
|
858
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
859
859
|
} finally {
|
|
860
860
|
if (t)
|
|
861
861
|
throw t.error;
|
|
@@ -867,29 +867,29 @@ var Se = function() {
|
|
|
867
867
|
if (R(h))
|
|
868
868
|
try {
|
|
869
869
|
h();
|
|
870
|
-
} catch (
|
|
871
|
-
o =
|
|
870
|
+
} catch (d) {
|
|
871
|
+
o = d instanceof Ne ? d.errors : [d];
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
if (
|
|
873
|
+
var c = this._finalizers;
|
|
874
|
+
if (c) {
|
|
875
875
|
this._finalizers = null;
|
|
876
876
|
try {
|
|
877
|
-
for (var
|
|
878
|
-
var m =
|
|
877
|
+
for (var f = Xe(c), p = f.next(); !p.done; p = f.next()) {
|
|
878
|
+
var m = p.value;
|
|
879
879
|
try {
|
|
880
|
-
|
|
881
|
-
} catch (
|
|
882
|
-
o = o != null ? o : [],
|
|
880
|
+
vt(m);
|
|
881
|
+
} catch (d) {
|
|
882
|
+
o = o != null ? o : [], d instanceof Ne ? o = Z(Z([], ze(o)), ze(d.errors)) : o.push(d);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
} catch (
|
|
886
|
-
|
|
885
|
+
} catch (d) {
|
|
886
|
+
n = { error: d };
|
|
887
887
|
} finally {
|
|
888
888
|
try {
|
|
889
|
-
|
|
889
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
890
890
|
} finally {
|
|
891
|
-
if (
|
|
892
|
-
throw
|
|
891
|
+
if (n)
|
|
892
|
+
throw n.error;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
@@ -897,89 +897,89 @@ var Se = function() {
|
|
|
897
897
|
throw new Ne(o);
|
|
898
898
|
}
|
|
899
899
|
}, e.prototype.add = function(t) {
|
|
900
|
-
var
|
|
900
|
+
var r;
|
|
901
901
|
if (t && t !== this)
|
|
902
902
|
if (this.closed)
|
|
903
|
-
|
|
903
|
+
vt(t);
|
|
904
904
|
else {
|
|
905
905
|
if (t instanceof e) {
|
|
906
906
|
if (t.closed || t._hasParent(this))
|
|
907
907
|
return;
|
|
908
908
|
t._addParent(this);
|
|
909
909
|
}
|
|
910
|
-
(this._finalizers = (
|
|
910
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
911
911
|
}
|
|
912
912
|
}, e.prototype._hasParent = function(t) {
|
|
913
|
-
var
|
|
914
|
-
return
|
|
913
|
+
var r = this._parentage;
|
|
914
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
915
915
|
}, e.prototype._addParent = function(t) {
|
|
916
|
-
var
|
|
917
|
-
this._parentage = Array.isArray(
|
|
916
|
+
var r = this._parentage;
|
|
917
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
918
918
|
}, e.prototype._removeParent = function(t) {
|
|
919
|
-
var
|
|
920
|
-
|
|
919
|
+
var r = this._parentage;
|
|
920
|
+
r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
|
|
921
921
|
}, e.prototype.remove = function(t) {
|
|
922
|
-
var
|
|
923
|
-
|
|
922
|
+
var r = this._finalizers;
|
|
923
|
+
r && We(r, t), t instanceof e && t._removeParent(this);
|
|
924
924
|
}, e.EMPTY = function() {
|
|
925
925
|
var t = new e();
|
|
926
926
|
return t.closed = !0, t;
|
|
927
927
|
}(), e;
|
|
928
|
-
}(),
|
|
929
|
-
function
|
|
928
|
+
}(), Yt = Se.EMPTY;
|
|
929
|
+
function Kt(e) {
|
|
930
930
|
return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function vt(e) {
|
|
933
933
|
R(e) ? e() : e.unsubscribe();
|
|
934
934
|
}
|
|
935
|
-
var
|
|
935
|
+
var er = {
|
|
936
936
|
onUnhandledError: null,
|
|
937
937
|
onStoppedNotification: null,
|
|
938
938
|
Promise: void 0,
|
|
939
939
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
940
940
|
useDeprecatedNextContext: !1
|
|
941
|
-
},
|
|
941
|
+
}, vn = {
|
|
942
942
|
setTimeout: function(e, t) {
|
|
943
|
-
for (var
|
|
944
|
-
n
|
|
945
|
-
return setTimeout.apply(void 0, Z([e, t],
|
|
943
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
944
|
+
r[n - 2] = arguments[n];
|
|
945
|
+
return setTimeout.apply(void 0, Z([e, t], ze(r)));
|
|
946
946
|
},
|
|
947
947
|
clearTimeout: function(e) {
|
|
948
948
|
return clearTimeout(e);
|
|
949
949
|
},
|
|
950
950
|
delegate: void 0
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
|
|
952
|
+
function _n(e) {
|
|
953
|
+
vn.setTimeout(function() {
|
|
954
954
|
throw e;
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function _t() {
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function de(e) {
|
|
960
960
|
e();
|
|
961
961
|
}
|
|
962
|
-
var
|
|
962
|
+
var tr = function(e) {
|
|
963
963
|
G(t, e);
|
|
964
|
-
function t(
|
|
965
|
-
var
|
|
966
|
-
return
|
|
964
|
+
function t(r) {
|
|
965
|
+
var n = e.call(this) || this;
|
|
966
|
+
return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = Sn, n;
|
|
967
967
|
}
|
|
968
|
-
return t.create = function(
|
|
969
|
-
return new
|
|
970
|
-
}, t.prototype.next = function(
|
|
971
|
-
this.isStopped || this._next(
|
|
972
|
-
}, t.prototype.error = function(
|
|
973
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
968
|
+
return t.create = function(r, n, i) {
|
|
969
|
+
return new Ze(r, n, i);
|
|
970
|
+
}, t.prototype.next = function(r) {
|
|
971
|
+
this.isStopped || this._next(r);
|
|
972
|
+
}, t.prototype.error = function(r) {
|
|
973
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
974
974
|
}, t.prototype.complete = function() {
|
|
975
975
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
976
976
|
}, t.prototype.unsubscribe = function() {
|
|
977
977
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
978
|
-
}, t.prototype._next = function(
|
|
979
|
-
this.destination.next(
|
|
980
|
-
}, t.prototype._error = function(
|
|
978
|
+
}, t.prototype._next = function(r) {
|
|
979
|
+
this.destination.next(r);
|
|
980
|
+
}, t.prototype._error = function(r) {
|
|
981
981
|
try {
|
|
982
|
-
this.destination.error(
|
|
982
|
+
this.destination.error(r);
|
|
983
983
|
} finally {
|
|
984
984
|
this.unsubscribe();
|
|
985
985
|
}
|
|
@@ -990,96 +990,112 @@ var Yt = function(e) {
|
|
|
990
990
|
this.unsubscribe();
|
|
991
991
|
}
|
|
992
992
|
}, t;
|
|
993
|
-
}(Se),
|
|
993
|
+
}(Se), xn = Function.prototype.bind;
|
|
994
|
+
function $e(e, t) {
|
|
995
|
+
return xn.call(e, t);
|
|
996
|
+
}
|
|
997
|
+
var En = function() {
|
|
994
998
|
function e(t) {
|
|
995
999
|
this.partialObserver = t;
|
|
996
1000
|
}
|
|
997
1001
|
return e.prototype.next = function(t) {
|
|
998
|
-
var
|
|
999
|
-
if (
|
|
1002
|
+
var r = this.partialObserver;
|
|
1003
|
+
if (r.next)
|
|
1000
1004
|
try {
|
|
1001
|
-
|
|
1002
|
-
} catch (
|
|
1003
|
-
|
|
1005
|
+
r.next(t);
|
|
1006
|
+
} catch (n) {
|
|
1007
|
+
ce(n);
|
|
1004
1008
|
}
|
|
1005
1009
|
}, e.prototype.error = function(t) {
|
|
1006
|
-
var
|
|
1007
|
-
if (
|
|
1010
|
+
var r = this.partialObserver;
|
|
1011
|
+
if (r.error)
|
|
1008
1012
|
try {
|
|
1009
|
-
|
|
1010
|
-
} catch (
|
|
1011
|
-
|
|
1013
|
+
r.error(t);
|
|
1014
|
+
} catch (n) {
|
|
1015
|
+
ce(n);
|
|
1012
1016
|
}
|
|
1013
1017
|
else
|
|
1014
|
-
|
|
1018
|
+
ce(t);
|
|
1015
1019
|
}, e.prototype.complete = function() {
|
|
1016
1020
|
var t = this.partialObserver;
|
|
1017
1021
|
if (t.complete)
|
|
1018
1022
|
try {
|
|
1019
1023
|
t.complete();
|
|
1020
|
-
} catch (
|
|
1021
|
-
|
|
1024
|
+
} catch (r) {
|
|
1025
|
+
ce(r);
|
|
1022
1026
|
}
|
|
1023
1027
|
}, e;
|
|
1024
|
-
}(),
|
|
1028
|
+
}(), Ze = function(e) {
|
|
1025
1029
|
G(t, e);
|
|
1026
|
-
function t(
|
|
1030
|
+
function t(r, n, i) {
|
|
1027
1031
|
var o = e.call(this) || this, a;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1032
|
+
if (R(r) || !r)
|
|
1033
|
+
a = {
|
|
1034
|
+
next: r != null ? r : void 0,
|
|
1035
|
+
error: n != null ? n : void 0,
|
|
1036
|
+
complete: i != null ? i : void 0
|
|
1037
|
+
};
|
|
1038
|
+
else {
|
|
1039
|
+
var s;
|
|
1040
|
+
o && er.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
1041
|
+
return o.unsubscribe();
|
|
1042
|
+
}, a = {
|
|
1043
|
+
next: r.next && $e(r.next, s),
|
|
1044
|
+
error: r.error && $e(r.error, s),
|
|
1045
|
+
complete: r.complete && $e(r.complete, s)
|
|
1046
|
+
}) : a = r;
|
|
1047
|
+
}
|
|
1048
|
+
return o.destination = new En(a), o;
|
|
1033
1049
|
}
|
|
1034
1050
|
return t;
|
|
1035
|
-
}(
|
|
1036
|
-
function
|
|
1037
|
-
|
|
1051
|
+
}(tr);
|
|
1052
|
+
function ce(e) {
|
|
1053
|
+
_n(e);
|
|
1038
1054
|
}
|
|
1039
|
-
function
|
|
1055
|
+
function wn(e) {
|
|
1040
1056
|
throw e;
|
|
1041
1057
|
}
|
|
1042
|
-
var
|
|
1058
|
+
var Sn = {
|
|
1043
1059
|
closed: !0,
|
|
1044
|
-
next:
|
|
1045
|
-
error:
|
|
1046
|
-
complete:
|
|
1047
|
-
},
|
|
1060
|
+
next: _t,
|
|
1061
|
+
error: wn,
|
|
1062
|
+
complete: _t
|
|
1063
|
+
}, Tn = function() {
|
|
1048
1064
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1049
1065
|
}();
|
|
1050
|
-
function
|
|
1066
|
+
function Hn(e) {
|
|
1051
1067
|
return e;
|
|
1052
1068
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return e.length === 0 ?
|
|
1055
|
-
return e.reduce(function(
|
|
1056
|
-
return i(
|
|
1057
|
-
},
|
|
1069
|
+
function Cn(e) {
|
|
1070
|
+
return e.length === 0 ? Hn : e.length === 1 ? e[0] : function(r) {
|
|
1071
|
+
return e.reduce(function(n, i) {
|
|
1072
|
+
return i(n);
|
|
1073
|
+
}, r);
|
|
1058
1074
|
};
|
|
1059
1075
|
}
|
|
1060
|
-
var
|
|
1076
|
+
var xt = function() {
|
|
1061
1077
|
function e(t) {
|
|
1062
1078
|
t && (this._subscribe = t);
|
|
1063
1079
|
}
|
|
1064
1080
|
return e.prototype.lift = function(t) {
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
1067
|
-
}, e.prototype.subscribe = function(t,
|
|
1068
|
-
var i = this, o =
|
|
1069
|
-
return
|
|
1081
|
+
var r = new e();
|
|
1082
|
+
return r.source = this, r.operator = t, r;
|
|
1083
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1084
|
+
var i = this, o = An(t) ? t : new Ze(t, r, n);
|
|
1085
|
+
return de(function() {
|
|
1070
1086
|
var a = i, s = a.operator, l = a.source;
|
|
1071
1087
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1072
1088
|
}), o;
|
|
1073
1089
|
}, e.prototype._trySubscribe = function(t) {
|
|
1074
1090
|
try {
|
|
1075
1091
|
return this._subscribe(t);
|
|
1076
|
-
} catch (
|
|
1077
|
-
t.error(
|
|
1092
|
+
} catch (r) {
|
|
1093
|
+
t.error(r);
|
|
1078
1094
|
}
|
|
1079
|
-
}, e.prototype.forEach = function(t,
|
|
1080
|
-
var
|
|
1081
|
-
return
|
|
1082
|
-
var a = new
|
|
1095
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1096
|
+
var n = this;
|
|
1097
|
+
return r = Et(r), new r(function(i, o) {
|
|
1098
|
+
var a = new Ze({
|
|
1083
1099
|
next: function(s) {
|
|
1084
1100
|
try {
|
|
1085
1101
|
t(s);
|
|
@@ -1090,69 +1106,69 @@ var vt = function() {
|
|
|
1090
1106
|
error: o,
|
|
1091
1107
|
complete: i
|
|
1092
1108
|
});
|
|
1093
|
-
|
|
1109
|
+
n.subscribe(a);
|
|
1094
1110
|
});
|
|
1095
1111
|
}, e.prototype._subscribe = function(t) {
|
|
1096
|
-
var
|
|
1097
|
-
return (
|
|
1098
|
-
}, e.prototype[
|
|
1112
|
+
var r;
|
|
1113
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1114
|
+
}, e.prototype[Tn] = function() {
|
|
1099
1115
|
return this;
|
|
1100
1116
|
}, e.prototype.pipe = function() {
|
|
1101
|
-
for (var t = [],
|
|
1102
|
-
t[
|
|
1103
|
-
return
|
|
1117
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1118
|
+
t[r] = arguments[r];
|
|
1119
|
+
return Cn(t)(this);
|
|
1104
1120
|
}, e.prototype.toPromise = function(t) {
|
|
1105
|
-
var
|
|
1106
|
-
return t =
|
|
1121
|
+
var r = this;
|
|
1122
|
+
return t = Et(t), new t(function(n, i) {
|
|
1107
1123
|
var o;
|
|
1108
|
-
|
|
1124
|
+
r.subscribe(function(a) {
|
|
1109
1125
|
return o = a;
|
|
1110
1126
|
}, function(a) {
|
|
1111
1127
|
return i(a);
|
|
1112
1128
|
}, function() {
|
|
1113
|
-
return
|
|
1129
|
+
return n(o);
|
|
1114
1130
|
});
|
|
1115
1131
|
});
|
|
1116
1132
|
}, e.create = function(t) {
|
|
1117
1133
|
return new e(t);
|
|
1118
1134
|
}, e;
|
|
1119
1135
|
}();
|
|
1120
|
-
function
|
|
1136
|
+
function Et(e) {
|
|
1121
1137
|
var t;
|
|
1122
|
-
return (t = e != null ? e :
|
|
1138
|
+
return (t = e != null ? e : er.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1123
1139
|
}
|
|
1124
|
-
function
|
|
1140
|
+
function Bn(e) {
|
|
1125
1141
|
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1126
1142
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return e && e instanceof
|
|
1143
|
+
function An(e) {
|
|
1144
|
+
return e && e instanceof tr || Bn(e) && Kt(e);
|
|
1129
1145
|
}
|
|
1130
|
-
var
|
|
1146
|
+
var Pn = qt(function(e) {
|
|
1131
1147
|
return function() {
|
|
1132
1148
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1133
1149
|
};
|
|
1134
|
-
}),
|
|
1150
|
+
}), rr = function(e) {
|
|
1135
1151
|
G(t, e);
|
|
1136
1152
|
function t() {
|
|
1137
|
-
var
|
|
1138
|
-
return
|
|
1153
|
+
var r = e.call(this) || this;
|
|
1154
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1139
1155
|
}
|
|
1140
|
-
return t.prototype.lift = function(
|
|
1141
|
-
var
|
|
1142
|
-
return
|
|
1156
|
+
return t.prototype.lift = function(r) {
|
|
1157
|
+
var n = new wt(this, this);
|
|
1158
|
+
return n.operator = r, n;
|
|
1143
1159
|
}, t.prototype._throwIfClosed = function() {
|
|
1144
1160
|
if (this.closed)
|
|
1145
|
-
throw new
|
|
1146
|
-
}, t.prototype.next = function(
|
|
1147
|
-
var
|
|
1148
|
-
|
|
1161
|
+
throw new Pn();
|
|
1162
|
+
}, t.prototype.next = function(r) {
|
|
1163
|
+
var n = this;
|
|
1164
|
+
de(function() {
|
|
1149
1165
|
var i, o;
|
|
1150
|
-
if (
|
|
1151
|
-
|
|
1166
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1167
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1152
1168
|
try {
|
|
1153
|
-
for (var a =
|
|
1169
|
+
for (var a = Xe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1154
1170
|
var l = s.value;
|
|
1155
|
-
l.next(
|
|
1171
|
+
l.next(r);
|
|
1156
1172
|
}
|
|
1157
1173
|
} catch (u) {
|
|
1158
1174
|
i = { error: u };
|
|
@@ -1166,118 +1182,118 @@ var Cr = Qt(function(e) {
|
|
|
1166
1182
|
}
|
|
1167
1183
|
}
|
|
1168
1184
|
});
|
|
1169
|
-
}, t.prototype.error = function(
|
|
1170
|
-
var
|
|
1171
|
-
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1174
|
-
for (var i =
|
|
1175
|
-
i.shift().error(
|
|
1185
|
+
}, t.prototype.error = function(r) {
|
|
1186
|
+
var n = this;
|
|
1187
|
+
de(function() {
|
|
1188
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1189
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1190
|
+
for (var i = n.observers; i.length; )
|
|
1191
|
+
i.shift().error(r);
|
|
1176
1192
|
}
|
|
1177
1193
|
});
|
|
1178
1194
|
}, t.prototype.complete = function() {
|
|
1179
|
-
var
|
|
1180
|
-
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1183
|
-
for (var
|
|
1184
|
-
|
|
1195
|
+
var r = this;
|
|
1196
|
+
de(function() {
|
|
1197
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1198
|
+
r.isStopped = !0;
|
|
1199
|
+
for (var n = r.observers; n.length; )
|
|
1200
|
+
n.shift().complete();
|
|
1185
1201
|
}
|
|
1186
1202
|
});
|
|
1187
1203
|
}, t.prototype.unsubscribe = function() {
|
|
1188
1204
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1189
1205
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1190
1206
|
get: function() {
|
|
1191
|
-
var
|
|
1192
|
-
return ((
|
|
1207
|
+
var r;
|
|
1208
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1193
1209
|
},
|
|
1194
1210
|
enumerable: !1,
|
|
1195
1211
|
configurable: !0
|
|
1196
|
-
}), t.prototype._trySubscribe = function(
|
|
1197
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1198
|
-
}, t.prototype._subscribe = function(
|
|
1199
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1200
|
-
}, t.prototype._innerSubscribe = function(
|
|
1201
|
-
var
|
|
1202
|
-
return o || a ?
|
|
1203
|
-
|
|
1212
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1213
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1214
|
+
}, t.prototype._subscribe = function(r) {
|
|
1215
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1216
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1217
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1218
|
+
return o || a ? Yt : (this.currentObservers = null, s.push(r), new Se(function() {
|
|
1219
|
+
n.currentObservers = null, We(s, r);
|
|
1204
1220
|
}));
|
|
1205
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1206
|
-
var
|
|
1207
|
-
i ?
|
|
1221
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1222
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1223
|
+
i ? r.error(o) : a && r.complete();
|
|
1208
1224
|
}, t.prototype.asObservable = function() {
|
|
1209
|
-
var
|
|
1210
|
-
return
|
|
1211
|
-
}, t.create = function(
|
|
1212
|
-
return new
|
|
1225
|
+
var r = new xt();
|
|
1226
|
+
return r.source = this, r;
|
|
1227
|
+
}, t.create = function(r, n) {
|
|
1228
|
+
return new wt(r, n);
|
|
1213
1229
|
}, t;
|
|
1214
|
-
}(
|
|
1230
|
+
}(xt), wt = function(e) {
|
|
1215
1231
|
G(t, e);
|
|
1216
|
-
function t(
|
|
1232
|
+
function t(r, n) {
|
|
1217
1233
|
var i = e.call(this) || this;
|
|
1218
|
-
return i.destination =
|
|
1234
|
+
return i.destination = r, i.source = n, i;
|
|
1219
1235
|
}
|
|
1220
|
-
return t.prototype.next = function(
|
|
1221
|
-
var
|
|
1222
|
-
(i = (
|
|
1223
|
-
}, t.prototype.error = function(
|
|
1224
|
-
var
|
|
1225
|
-
(i = (
|
|
1236
|
+
return t.prototype.next = function(r) {
|
|
1237
|
+
var n, i;
|
|
1238
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1239
|
+
}, t.prototype.error = function(r) {
|
|
1240
|
+
var n, i;
|
|
1241
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1226
1242
|
}, t.prototype.complete = function() {
|
|
1227
|
-
var
|
|
1228
|
-
(
|
|
1229
|
-
}, t.prototype._subscribe = function(
|
|
1230
|
-
var
|
|
1231
|
-
return (i = (
|
|
1243
|
+
var r, n;
|
|
1244
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1245
|
+
}, t.prototype._subscribe = function(r) {
|
|
1246
|
+
var n, i;
|
|
1247
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
|
|
1232
1248
|
}, t;
|
|
1233
|
-
}(
|
|
1249
|
+
}(rr), nr = {
|
|
1234
1250
|
now: function() {
|
|
1235
|
-
return (
|
|
1251
|
+
return (nr.delegate || Date).now();
|
|
1236
1252
|
},
|
|
1237
1253
|
delegate: void 0
|
|
1238
|
-
},
|
|
1254
|
+
}, Ln = function(e) {
|
|
1239
1255
|
G(t, e);
|
|
1240
|
-
function t(
|
|
1241
|
-
|
|
1256
|
+
function t(r, n, i) {
|
|
1257
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
|
|
1242
1258
|
var o = e.call(this) || this;
|
|
1243
|
-
return o._bufferSize =
|
|
1259
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1244
1260
|
}
|
|
1245
|
-
return t.prototype.next = function(
|
|
1246
|
-
var
|
|
1247
|
-
i || (o.push(
|
|
1248
|
-
}, t.prototype._subscribe = function(
|
|
1261
|
+
return t.prototype.next = function(r) {
|
|
1262
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1263
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1264
|
+
}, t.prototype._subscribe = function(r) {
|
|
1249
1265
|
this._throwIfClosed(), this._trimBuffer();
|
|
1250
|
-
for (var
|
|
1251
|
-
|
|
1252
|
-
return this._checkFinalizedStatuses(
|
|
1266
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1267
|
+
r.next(s[l]);
|
|
1268
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1253
1269
|
}, t.prototype._trimBuffer = function() {
|
|
1254
|
-
var
|
|
1255
|
-
if (
|
|
1270
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1271
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1256
1272
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1257
1273
|
u = h;
|
|
1258
1274
|
u && o.splice(0, u + 1);
|
|
1259
1275
|
}
|
|
1260
1276
|
}, t;
|
|
1261
|
-
}(
|
|
1262
|
-
const
|
|
1263
|
-
if (
|
|
1264
|
-
const
|
|
1265
|
-
|
|
1277
|
+
}(rr);
|
|
1278
|
+
const St = [], Tt = {}, On = (e, t = 0) => {
|
|
1279
|
+
if (St.indexOf(e) == -1) {
|
|
1280
|
+
const r = new Ln(t);
|
|
1281
|
+
Tt[e] = r, St.push(e);
|
|
1266
1282
|
}
|
|
1267
|
-
return
|
|
1283
|
+
return Tt[e];
|
|
1268
1284
|
}, V = [];
|
|
1269
|
-
function
|
|
1285
|
+
function In(e, t) {
|
|
1270
1286
|
return {
|
|
1271
1287
|
subscribe: Te(e, t).subscribe
|
|
1272
1288
|
};
|
|
1273
1289
|
}
|
|
1274
1290
|
function Te(e, t = I) {
|
|
1275
|
-
let
|
|
1276
|
-
const
|
|
1291
|
+
let r;
|
|
1292
|
+
const n = /* @__PURE__ */ new Set();
|
|
1277
1293
|
function i(s) {
|
|
1278
|
-
if (
|
|
1294
|
+
if (kt(e, s) && (e = s, r)) {
|
|
1279
1295
|
const l = !V.length;
|
|
1280
|
-
for (const u of
|
|
1296
|
+
for (const u of n)
|
|
1281
1297
|
u[1](), V.push(u, e);
|
|
1282
1298
|
if (l) {
|
|
1283
1299
|
for (let u = 0; u < V.length; u += 2)
|
|
@@ -1291,169 +1307,167 @@ function Te(e, t = I) {
|
|
|
1291
1307
|
}
|
|
1292
1308
|
function a(s, l = I) {
|
|
1293
1309
|
const u = [s, l];
|
|
1294
|
-
return
|
|
1295
|
-
|
|
1310
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), s(e), () => {
|
|
1311
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1296
1312
|
};
|
|
1297
1313
|
}
|
|
1298
1314
|
return { set: i, update: o, subscribe: a };
|
|
1299
1315
|
}
|
|
1300
|
-
function K(e, t,
|
|
1301
|
-
const
|
|
1316
|
+
function K(e, t, r) {
|
|
1317
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1302
1318
|
if (!i.every(Boolean))
|
|
1303
1319
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1304
1320
|
const o = t.length < 2;
|
|
1305
|
-
return
|
|
1321
|
+
return In(r, (a, s) => {
|
|
1306
1322
|
let l = !1;
|
|
1307
1323
|
const u = [];
|
|
1308
|
-
let h = 0,
|
|
1309
|
-
const
|
|
1324
|
+
let h = 0, c = I;
|
|
1325
|
+
const f = () => {
|
|
1310
1326
|
if (h)
|
|
1311
1327
|
return;
|
|
1312
|
-
|
|
1313
|
-
const m = t(
|
|
1314
|
-
o ? a(m) :
|
|
1315
|
-
},
|
|
1316
|
-
(m,
|
|
1328
|
+
c();
|
|
1329
|
+
const m = t(n ? u[0] : u, a, s);
|
|
1330
|
+
o ? a(m) : c = we(m) ? m : I;
|
|
1331
|
+
}, p = i.map(
|
|
1332
|
+
(m, d) => Vt(
|
|
1317
1333
|
m,
|
|
1318
1334
|
(v) => {
|
|
1319
|
-
u[
|
|
1335
|
+
u[d] = v, h &= ~(1 << d), l && f();
|
|
1320
1336
|
},
|
|
1321
1337
|
() => {
|
|
1322
|
-
h |= 1 <<
|
|
1338
|
+
h |= 1 << d;
|
|
1323
1339
|
}
|
|
1324
1340
|
)
|
|
1325
1341
|
);
|
|
1326
|
-
return l = !0,
|
|
1327
|
-
D(
|
|
1342
|
+
return l = !0, f(), function() {
|
|
1343
|
+
D(p), c(), l = !1;
|
|
1328
1344
|
};
|
|
1329
1345
|
});
|
|
1330
1346
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1347
|
+
function Mn(e) {
|
|
1348
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1333
1349
|
}
|
|
1334
|
-
var
|
|
1335
|
-
return
|
|
1350
|
+
var Nn = function(t) {
|
|
1351
|
+
return $n(t) && !Rn(t);
|
|
1336
1352
|
};
|
|
1337
|
-
function
|
|
1353
|
+
function $n(e) {
|
|
1338
1354
|
return !!e && typeof e == "object";
|
|
1339
1355
|
}
|
|
1340
|
-
function
|
|
1356
|
+
function Rn(e) {
|
|
1341
1357
|
var t = Object.prototype.toString.call(e);
|
|
1342
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1358
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
|
|
1343
1359
|
}
|
|
1344
|
-
var
|
|
1345
|
-
function
|
|
1346
|
-
return e.$$typeof ===
|
|
1360
|
+
var Gn = typeof Symbol == "function" && Symbol.for, Un = Gn ? Symbol.for("react.element") : 60103;
|
|
1361
|
+
function Dn(e) {
|
|
1362
|
+
return e.$$typeof === Un;
|
|
1347
1363
|
}
|
|
1348
|
-
function
|
|
1364
|
+
function Fn(e) {
|
|
1349
1365
|
return Array.isArray(e) ? [] : {};
|
|
1350
1366
|
}
|
|
1351
1367
|
function ae(e, t) {
|
|
1352
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
1368
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Fn(e), e, t) : e;
|
|
1353
1369
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return e.concat(t).map(function(
|
|
1356
|
-
return ae(
|
|
1370
|
+
function jn(e, t, r) {
|
|
1371
|
+
return e.concat(t).map(function(n) {
|
|
1372
|
+
return ae(n, r);
|
|
1357
1373
|
});
|
|
1358
1374
|
}
|
|
1359
|
-
function
|
|
1375
|
+
function kn(e, t) {
|
|
1360
1376
|
if (!t.customMerge)
|
|
1361
1377
|
return Q;
|
|
1362
|
-
var
|
|
1363
|
-
return typeof
|
|
1378
|
+
var r = t.customMerge(e);
|
|
1379
|
+
return typeof r == "function" ? r : Q;
|
|
1364
1380
|
}
|
|
1365
|
-
function
|
|
1381
|
+
function Vn(e) {
|
|
1366
1382
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1367
1383
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1368
1384
|
}) : [];
|
|
1369
1385
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return Object.keys(e).concat(
|
|
1386
|
+
function Ht(e) {
|
|
1387
|
+
return Object.keys(e).concat(Vn(e));
|
|
1372
1388
|
}
|
|
1373
|
-
function
|
|
1389
|
+
function ir(e, t) {
|
|
1374
1390
|
try {
|
|
1375
1391
|
return t in e;
|
|
1376
|
-
} catch (
|
|
1392
|
+
} catch (r) {
|
|
1377
1393
|
return !1;
|
|
1378
1394
|
}
|
|
1379
1395
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return
|
|
1396
|
+
function Xn(e, t) {
|
|
1397
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1382
1398
|
}
|
|
1383
|
-
function
|
|
1384
|
-
var
|
|
1385
|
-
return
|
|
1386
|
-
|
|
1387
|
-
}),
|
|
1388
|
-
|
|
1389
|
-
}),
|
|
1390
|
-
}
|
|
1391
|
-
function Q(e, t,
|
|
1392
|
-
|
|
1393
|
-
var
|
|
1394
|
-
return o ?
|
|
1395
|
-
}
|
|
1396
|
-
Q.all = function(t,
|
|
1399
|
+
function zn(e, t, r) {
|
|
1400
|
+
var n = {};
|
|
1401
|
+
return r.isMergeableObject(e) && Ht(e).forEach(function(i) {
|
|
1402
|
+
n[i] = ae(e[i], r);
|
|
1403
|
+
}), Ht(t).forEach(function(i) {
|
|
1404
|
+
Xn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = kn(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
|
|
1405
|
+
}), n;
|
|
1406
|
+
}
|
|
1407
|
+
function Q(e, t, r) {
|
|
1408
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jn, r.isMergeableObject = r.isMergeableObject || Nn, r.cloneUnlessOtherwiseSpecified = ae;
|
|
1409
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1410
|
+
return o ? n ? r.arrayMerge(e, t, r) : zn(e, t, r) : ae(t, r);
|
|
1411
|
+
}
|
|
1412
|
+
Q.all = function(t, r) {
|
|
1397
1413
|
if (!Array.isArray(t))
|
|
1398
1414
|
throw new Error("first argument should be an array");
|
|
1399
|
-
return t.reduce(function(
|
|
1400
|
-
return Q(
|
|
1415
|
+
return t.reduce(function(n, i) {
|
|
1416
|
+
return Q(n, i, r);
|
|
1401
1417
|
}, {});
|
|
1402
1418
|
};
|
|
1403
|
-
var
|
|
1404
|
-
const
|
|
1405
|
-
function
|
|
1406
|
-
var
|
|
1419
|
+
var Wn = Q, Zn = Wn;
|
|
1420
|
+
const Qn = /* @__PURE__ */ Mn(Zn);
|
|
1421
|
+
function Re(e, t) {
|
|
1422
|
+
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : ei, i = t && t.strategy ? t.strategy : qn;
|
|
1407
1423
|
return i(e, {
|
|
1408
|
-
cache:
|
|
1409
|
-
serializer:
|
|
1424
|
+
cache: r,
|
|
1425
|
+
serializer: n
|
|
1410
1426
|
});
|
|
1411
1427
|
}
|
|
1412
|
-
function
|
|
1428
|
+
function Jn(e) {
|
|
1413
1429
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1414
1430
|
}
|
|
1415
|
-
function
|
|
1416
|
-
var i =
|
|
1417
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1431
|
+
function or(e, t, r, n) {
|
|
1432
|
+
var i = Jn(n) ? n : r(n), o = t.get(i);
|
|
1433
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1418
1434
|
}
|
|
1419
|
-
function
|
|
1420
|
-
var
|
|
1421
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
1435
|
+
function sr(e, t, r) {
|
|
1436
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1437
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1422
1438
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1439
|
+
function st(e, t, r, n, i) {
|
|
1440
|
+
return r.bind(t, e, n, i);
|
|
1425
1441
|
}
|
|
1426
|
-
function
|
|
1427
|
-
var
|
|
1428
|
-
return
|
|
1442
|
+
function qn(e, t) {
|
|
1443
|
+
var r = e.length === 1 ? or : sr;
|
|
1444
|
+
return st(e, this, r, t.cache.create(), t.serializer);
|
|
1429
1445
|
}
|
|
1430
|
-
function
|
|
1431
|
-
return
|
|
1446
|
+
function Yn(e, t) {
|
|
1447
|
+
return st(e, this, sr, t.cache.create(), t.serializer);
|
|
1432
1448
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return
|
|
1449
|
+
function Kn(e, t) {
|
|
1450
|
+
return st(e, this, or, t.cache.create(), t.serializer);
|
|
1435
1451
|
}
|
|
1436
|
-
var
|
|
1452
|
+
var ei = function() {
|
|
1437
1453
|
return JSON.stringify(arguments);
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}()
|
|
1450
|
-
), Kr = {
|
|
1454
|
+
};
|
|
1455
|
+
function at() {
|
|
1456
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1457
|
+
}
|
|
1458
|
+
at.prototype.get = function(e) {
|
|
1459
|
+
return this.cache[e];
|
|
1460
|
+
};
|
|
1461
|
+
at.prototype.set = function(e, t) {
|
|
1462
|
+
this.cache[e] = t;
|
|
1463
|
+
};
|
|
1464
|
+
var ti = {
|
|
1451
1465
|
create: function() {
|
|
1452
|
-
return new
|
|
1466
|
+
return new at();
|
|
1453
1467
|
}
|
|
1454
|
-
},
|
|
1455
|
-
variadic:
|
|
1456
|
-
monadic:
|
|
1468
|
+
}, Ge = {
|
|
1469
|
+
variadic: Yn,
|
|
1470
|
+
monadic: Kn
|
|
1457
1471
|
}, b;
|
|
1458
1472
|
(function(e) {
|
|
1459
1473
|
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";
|
|
@@ -1466,50 +1480,50 @@ var J;
|
|
|
1466
1480
|
(function(e) {
|
|
1467
1481
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1468
1482
|
})(J || (J = {}));
|
|
1469
|
-
function
|
|
1483
|
+
function Ct(e) {
|
|
1470
1484
|
return e.type === E.literal;
|
|
1471
1485
|
}
|
|
1472
|
-
function
|
|
1486
|
+
function ri(e) {
|
|
1473
1487
|
return e.type === E.argument;
|
|
1474
1488
|
}
|
|
1475
|
-
function
|
|
1489
|
+
function ar(e) {
|
|
1476
1490
|
return e.type === E.number;
|
|
1477
1491
|
}
|
|
1478
|
-
function
|
|
1492
|
+
function ur(e) {
|
|
1479
1493
|
return e.type === E.date;
|
|
1480
1494
|
}
|
|
1481
|
-
function
|
|
1495
|
+
function lr(e) {
|
|
1482
1496
|
return e.type === E.time;
|
|
1483
1497
|
}
|
|
1484
|
-
function
|
|
1498
|
+
function hr(e) {
|
|
1485
1499
|
return e.type === E.select;
|
|
1486
1500
|
}
|
|
1487
|
-
function
|
|
1501
|
+
function cr(e) {
|
|
1488
1502
|
return e.type === E.plural;
|
|
1489
1503
|
}
|
|
1490
|
-
function
|
|
1504
|
+
function ni(e) {
|
|
1491
1505
|
return e.type === E.pound;
|
|
1492
1506
|
}
|
|
1493
|
-
function
|
|
1507
|
+
function fr(e) {
|
|
1494
1508
|
return e.type === E.tag;
|
|
1495
1509
|
}
|
|
1496
|
-
function
|
|
1510
|
+
function mr(e) {
|
|
1497
1511
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1498
1512
|
}
|
|
1499
|
-
function
|
|
1513
|
+
function Qe(e) {
|
|
1500
1514
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1501
1515
|
}
|
|
1502
|
-
var
|
|
1503
|
-
function
|
|
1516
|
+
var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
1517
|
+
function oi(e) {
|
|
1504
1518
|
var t = {};
|
|
1505
|
-
return e.replace(
|
|
1506
|
-
var
|
|
1507
|
-
switch (
|
|
1519
|
+
return e.replace(ii, function(r) {
|
|
1520
|
+
var n = r.length;
|
|
1521
|
+
switch (r[0]) {
|
|
1508
1522
|
case "G":
|
|
1509
|
-
t.era =
|
|
1523
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1510
1524
|
break;
|
|
1511
1525
|
case "y":
|
|
1512
|
-
t.year =
|
|
1526
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1513
1527
|
break;
|
|
1514
1528
|
case "Y":
|
|
1515
1529
|
case "u":
|
|
@@ -1521,30 +1535,30 @@ function ri(e) {
|
|
|
1521
1535
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1522
1536
|
case "M":
|
|
1523
1537
|
case "L":
|
|
1524
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1538
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1525
1539
|
break;
|
|
1526
1540
|
case "w":
|
|
1527
1541
|
case "W":
|
|
1528
1542
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1529
1543
|
case "d":
|
|
1530
|
-
t.day = ["numeric", "2-digit"][
|
|
1544
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1531
1545
|
break;
|
|
1532
1546
|
case "D":
|
|
1533
1547
|
case "F":
|
|
1534
1548
|
case "g":
|
|
1535
1549
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1536
1550
|
case "E":
|
|
1537
|
-
t.weekday =
|
|
1551
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1538
1552
|
break;
|
|
1539
1553
|
case "e":
|
|
1540
|
-
if (
|
|
1554
|
+
if (n < 4)
|
|
1541
1555
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1542
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1556
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1543
1557
|
break;
|
|
1544
1558
|
case "c":
|
|
1545
|
-
if (
|
|
1559
|
+
if (n < 4)
|
|
1546
1560
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1547
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1561
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1548
1562
|
break;
|
|
1549
1563
|
case "a":
|
|
1550
1564
|
t.hour12 = !0;
|
|
@@ -1553,32 +1567,32 @@ function ri(e) {
|
|
|
1553
1567
|
case "B":
|
|
1554
1568
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1555
1569
|
case "h":
|
|
1556
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1570
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1557
1571
|
break;
|
|
1558
1572
|
case "H":
|
|
1559
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1573
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1560
1574
|
break;
|
|
1561
1575
|
case "K":
|
|
1562
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1576
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1563
1577
|
break;
|
|
1564
1578
|
case "k":
|
|
1565
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1579
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1566
1580
|
break;
|
|
1567
1581
|
case "j":
|
|
1568
1582
|
case "J":
|
|
1569
1583
|
case "C":
|
|
1570
1584
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1571
1585
|
case "m":
|
|
1572
|
-
t.minute = ["numeric", "2-digit"][
|
|
1586
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1573
1587
|
break;
|
|
1574
1588
|
case "s":
|
|
1575
|
-
t.second = ["numeric", "2-digit"][
|
|
1589
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1576
1590
|
break;
|
|
1577
1591
|
case "S":
|
|
1578
1592
|
case "A":
|
|
1579
1593
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1580
1594
|
case "z":
|
|
1581
|
-
t.timeZoneName =
|
|
1595
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1582
1596
|
break;
|
|
1583
1597
|
case "Z":
|
|
1584
1598
|
case "O":
|
|
@@ -1591,36 +1605,36 @@ function ri(e) {
|
|
|
1591
1605
|
return "";
|
|
1592
1606
|
}), t;
|
|
1593
1607
|
}
|
|
1594
|
-
var
|
|
1595
|
-
function
|
|
1608
|
+
var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1609
|
+
function ai(e) {
|
|
1596
1610
|
if (e.length === 0)
|
|
1597
1611
|
throw new Error("Number skeleton cannot be empty");
|
|
1598
|
-
for (var t = e.split(
|
|
1599
|
-
return
|
|
1600
|
-
}),
|
|
1601
|
-
var o = i[
|
|
1612
|
+
for (var t = e.split(si).filter(function(f) {
|
|
1613
|
+
return f.length > 0;
|
|
1614
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1615
|
+
var o = i[n], a = o.split("/");
|
|
1602
1616
|
if (a.length === 0)
|
|
1603
1617
|
throw new Error("Invalid number skeleton");
|
|
1604
1618
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1605
|
-
var
|
|
1606
|
-
if (
|
|
1619
|
+
var c = h[u];
|
|
1620
|
+
if (c.length === 0)
|
|
1607
1621
|
throw new Error("Invalid number skeleton");
|
|
1608
1622
|
}
|
|
1609
|
-
|
|
1623
|
+
r.push({ stem: s, options: l });
|
|
1610
1624
|
}
|
|
1611
|
-
return
|
|
1625
|
+
return r;
|
|
1612
1626
|
}
|
|
1613
|
-
function
|
|
1627
|
+
function ui(e) {
|
|
1614
1628
|
return e.replace(/^(.*?)-/, "");
|
|
1615
1629
|
}
|
|
1616
|
-
var
|
|
1617
|
-
function
|
|
1630
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
|
1631
|
+
function At(e) {
|
|
1618
1632
|
var t = {};
|
|
1619
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1620
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1633
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
|
|
1634
|
+
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)), "";
|
|
1621
1635
|
}), t;
|
|
1622
1636
|
}
|
|
1623
|
-
function
|
|
1637
|
+
function gr(e) {
|
|
1624
1638
|
switch (e) {
|
|
1625
1639
|
case "sign-auto":
|
|
1626
1640
|
return {
|
|
@@ -1660,27 +1674,27 @@ function pn(e) {
|
|
|
1660
1674
|
};
|
|
1661
1675
|
}
|
|
1662
1676
|
}
|
|
1663
|
-
function
|
|
1677
|
+
function hi(e) {
|
|
1664
1678
|
var t;
|
|
1665
1679
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1666
1680
|
notation: "engineering"
|
|
1667
1681
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1668
1682
|
notation: "scientific"
|
|
1669
1683
|
}, e = e.slice(1)), t) {
|
|
1670
|
-
var
|
|
1671
|
-
if (
|
|
1684
|
+
var r = e.slice(0, 2);
|
|
1685
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
|
|
1672
1686
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1673
1687
|
t.minimumIntegerDigits = e.length;
|
|
1674
1688
|
}
|
|
1675
1689
|
return t;
|
|
1676
1690
|
}
|
|
1677
|
-
function
|
|
1678
|
-
var t = {},
|
|
1679
|
-
return
|
|
1691
|
+
function Pt(e) {
|
|
1692
|
+
var t = {}, r = gr(e);
|
|
1693
|
+
return r || t;
|
|
1680
1694
|
}
|
|
1681
|
-
function
|
|
1682
|
-
for (var t = {},
|
|
1683
|
-
var i = r
|
|
1695
|
+
function ci(e) {
|
|
1696
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1697
|
+
var i = n[r];
|
|
1684
1698
|
switch (i.stem) {
|
|
1685
1699
|
case "percent":
|
|
1686
1700
|
case "%":
|
|
@@ -1702,7 +1716,7 @@ function li(e) {
|
|
|
1702
1716
|
continue;
|
|
1703
1717
|
case "measure-unit":
|
|
1704
1718
|
case "unit":
|
|
1705
|
-
t.style = "unit", t.unit =
|
|
1719
|
+
t.style = "unit", t.unit = ui(i.options[0]);
|
|
1706
1720
|
continue;
|
|
1707
1721
|
case "compact-short":
|
|
1708
1722
|
case "K":
|
|
@@ -1713,13 +1727,13 @@ function li(e) {
|
|
|
1713
1727
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1714
1728
|
continue;
|
|
1715
1729
|
case "scientific":
|
|
1716
|
-
t =
|
|
1717
|
-
return
|
|
1730
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1731
|
+
return _(_({}, l), Pt(u));
|
|
1718
1732
|
}, {}));
|
|
1719
1733
|
continue;
|
|
1720
1734
|
case "engineering":
|
|
1721
|
-
t =
|
|
1722
|
-
return
|
|
1735
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1736
|
+
return _(_({}, l), Pt(u));
|
|
1723
1737
|
}, {}));
|
|
1724
1738
|
continue;
|
|
1725
1739
|
case "notation-simple":
|
|
@@ -1764,45 +1778,45 @@ function li(e) {
|
|
|
1764
1778
|
case "integer-width":
|
|
1765
1779
|
if (i.options.length > 1)
|
|
1766
1780
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1767
|
-
i.options[0].replace(
|
|
1781
|
+
i.options[0].replace(li, function(l, u, h, c, f, p) {
|
|
1768
1782
|
if (u)
|
|
1769
1783
|
t.minimumIntegerDigits = h.length;
|
|
1770
1784
|
else {
|
|
1771
|
-
if (
|
|
1785
|
+
if (c && f)
|
|
1772
1786
|
throw new Error("We currently do not support maximum integer digits");
|
|
1773
|
-
if (
|
|
1787
|
+
if (p)
|
|
1774
1788
|
throw new Error("We currently do not support exact integer digits");
|
|
1775
1789
|
}
|
|
1776
1790
|
return "";
|
|
1777
1791
|
});
|
|
1778
1792
|
continue;
|
|
1779
1793
|
}
|
|
1780
|
-
if (
|
|
1794
|
+
if (br.test(i.stem)) {
|
|
1781
1795
|
t.minimumIntegerDigits = i.stem.length;
|
|
1782
1796
|
continue;
|
|
1783
1797
|
}
|
|
1784
|
-
if (
|
|
1798
|
+
if (Bt.test(i.stem)) {
|
|
1785
1799
|
if (i.options.length > 1)
|
|
1786
1800
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1787
|
-
i.stem.replace(
|
|
1788
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1801
|
+
i.stem.replace(Bt, function(l, u, h, c, f, p) {
|
|
1802
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1789
1803
|
});
|
|
1790
1804
|
var o = i.options[0];
|
|
1791
|
-
o === "w" ? t =
|
|
1805
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), At(o)));
|
|
1792
1806
|
continue;
|
|
1793
1807
|
}
|
|
1794
|
-
if (
|
|
1795
|
-
t =
|
|
1808
|
+
if (dr.test(i.stem)) {
|
|
1809
|
+
t = _(_({}, t), At(i.stem));
|
|
1796
1810
|
continue;
|
|
1797
1811
|
}
|
|
1798
|
-
var a =
|
|
1799
|
-
a && (t =
|
|
1800
|
-
var s =
|
|
1801
|
-
s && (t =
|
|
1812
|
+
var a = gr(i.stem);
|
|
1813
|
+
a && (t = _(_({}, t), a));
|
|
1814
|
+
var s = hi(i.stem);
|
|
1815
|
+
s && (t = _(_({}, t), s));
|
|
1802
1816
|
}
|
|
1803
1817
|
return t;
|
|
1804
1818
|
}
|
|
1805
|
-
var
|
|
1819
|
+
var fe = {
|
|
1806
1820
|
"001": [
|
|
1807
1821
|
"H",
|
|
1808
1822
|
"h"
|
|
@@ -3217,23 +3231,23 @@ var ce = {
|
|
|
3217
3231
|
"h"
|
|
3218
3232
|
]
|
|
3219
3233
|
};
|
|
3220
|
-
function
|
|
3221
|
-
for (var
|
|
3222
|
-
var i = e.charAt(
|
|
3234
|
+
function fi(e, t) {
|
|
3235
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3236
|
+
var i = e.charAt(n);
|
|
3223
3237
|
if (i === "j") {
|
|
3224
|
-
for (var o = 0;
|
|
3225
|
-
o++,
|
|
3226
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3238
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3239
|
+
o++, n++;
|
|
3240
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = mi(t);
|
|
3227
3241
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3228
|
-
|
|
3242
|
+
r += l;
|
|
3229
3243
|
for (; a-- > 0; )
|
|
3230
|
-
|
|
3244
|
+
r = u + r;
|
|
3231
3245
|
} else
|
|
3232
|
-
i === "J" ?
|
|
3246
|
+
i === "J" ? r += "H" : r += i;
|
|
3233
3247
|
}
|
|
3234
|
-
return
|
|
3248
|
+
return r;
|
|
3235
3249
|
}
|
|
3236
|
-
function
|
|
3250
|
+
function mi(e) {
|
|
3237
3251
|
var t = e.hourCycle;
|
|
3238
3252
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3239
3253
|
e.hourCycles && // @ts-ignore
|
|
@@ -3250,73 +3264,73 @@ function fi(e) {
|
|
|
3250
3264
|
default:
|
|
3251
3265
|
throw new Error("Invalid hourCycle");
|
|
3252
3266
|
}
|
|
3253
|
-
var
|
|
3254
|
-
|
|
3255
|
-
var i =
|
|
3267
|
+
var r = e.language, n;
|
|
3268
|
+
r !== "root" && (n = e.maximize().region);
|
|
3269
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
3256
3270
|
return i[0];
|
|
3257
3271
|
}
|
|
3258
|
-
var
|
|
3272
|
+
var Ue, pi = new RegExp("^".concat(pr.source, "*")), di = new RegExp("".concat(pr.source, "*$"));
|
|
3259
3273
|
function y(e, t) {
|
|
3260
3274
|
return { start: e, end: t };
|
|
3261
3275
|
}
|
|
3262
|
-
var
|
|
3276
|
+
var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, wi = Ei ? Number.isSafeInteger : function(e) {
|
|
3263
3277
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3264
|
-
},
|
|
3278
|
+
}, Je = !0;
|
|
3265
3279
|
try {
|
|
3266
|
-
var
|
|
3267
|
-
|
|
3280
|
+
var Si = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3281
|
+
Je = ((Ue = Si.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
3268
3282
|
} catch (e) {
|
|
3269
|
-
|
|
3283
|
+
Je = !1;
|
|
3270
3284
|
}
|
|
3271
|
-
var
|
|
3285
|
+
var Lt = bi ? (
|
|
3272
3286
|
// Native
|
|
3273
|
-
function(t,
|
|
3274
|
-
return t.startsWith(
|
|
3287
|
+
function(t, r, n) {
|
|
3288
|
+
return t.startsWith(r, n);
|
|
3275
3289
|
}
|
|
3276
3290
|
) : (
|
|
3277
3291
|
// For IE11
|
|
3278
|
-
function(t,
|
|
3279
|
-
return t.slice(
|
|
3292
|
+
function(t, r, n) {
|
|
3293
|
+
return t.slice(n, n + r.length) === r;
|
|
3280
3294
|
}
|
|
3281
|
-
),
|
|
3295
|
+
), qe = gi ? String.fromCodePoint : (
|
|
3282
3296
|
// IE11
|
|
3283
3297
|
function() {
|
|
3284
|
-
for (var t = [],
|
|
3285
|
-
t[
|
|
3286
|
-
for (var
|
|
3298
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3299
|
+
t[r] = arguments[r];
|
|
3300
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3287
3301
|
if (a = t[o++], a > 1114111)
|
|
3288
3302
|
throw RangeError(a + " is not a valid code point");
|
|
3289
|
-
|
|
3303
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3290
3304
|
}
|
|
3291
|
-
return
|
|
3305
|
+
return n;
|
|
3292
3306
|
}
|
|
3293
|
-
),
|
|
3307
|
+
), Ot = (
|
|
3294
3308
|
// native
|
|
3295
|
-
|
|
3309
|
+
yi ? Object.fromEntries : (
|
|
3296
3310
|
// Ponyfill
|
|
3297
3311
|
function(t) {
|
|
3298
|
-
for (var
|
|
3299
|
-
var o = i[
|
|
3300
|
-
|
|
3312
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3313
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3314
|
+
r[a] = s;
|
|
3301
3315
|
}
|
|
3302
|
-
return
|
|
3316
|
+
return r;
|
|
3303
3317
|
}
|
|
3304
3318
|
)
|
|
3305
|
-
),
|
|
3319
|
+
), yr = vi ? (
|
|
3306
3320
|
// Native
|
|
3307
|
-
function(t,
|
|
3308
|
-
return t.codePointAt(
|
|
3321
|
+
function(t, r) {
|
|
3322
|
+
return t.codePointAt(r);
|
|
3309
3323
|
}
|
|
3310
3324
|
) : (
|
|
3311
3325
|
// IE 11
|
|
3312
|
-
function(t,
|
|
3313
|
-
var
|
|
3314
|
-
if (!(
|
|
3315
|
-
var i = t.charCodeAt(
|
|
3316
|
-
return i < 55296 || i > 56319 ||
|
|
3326
|
+
function(t, r) {
|
|
3327
|
+
var n = t.length;
|
|
3328
|
+
if (!(r < 0 || r >= n)) {
|
|
3329
|
+
var i = t.charCodeAt(r), o;
|
|
3330
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3317
3331
|
}
|
|
3318
3332
|
}
|
|
3319
|
-
),
|
|
3333
|
+
), Ti = _i ? (
|
|
3320
3334
|
// Native
|
|
3321
3335
|
function(t) {
|
|
3322
3336
|
return t.trimStart();
|
|
@@ -3324,9 +3338,9 @@ var At = di ? (
|
|
|
3324
3338
|
) : (
|
|
3325
3339
|
// Ponyfill
|
|
3326
3340
|
function(t) {
|
|
3327
|
-
return t.replace(
|
|
3341
|
+
return t.replace(pi, "");
|
|
3328
3342
|
}
|
|
3329
|
-
),
|
|
3343
|
+
), Hi = xi ? (
|
|
3330
3344
|
// Native
|
|
3331
3345
|
function(t) {
|
|
3332
3346
|
return t.trimEnd();
|
|
@@ -3334,69 +3348,69 @@ var At = di ? (
|
|
|
3334
3348
|
) : (
|
|
3335
3349
|
// Ponyfill
|
|
3336
3350
|
function(t) {
|
|
3337
|
-
return t.replace(
|
|
3351
|
+
return t.replace(di, "");
|
|
3338
3352
|
}
|
|
3339
3353
|
);
|
|
3340
|
-
function
|
|
3354
|
+
function vr(e, t) {
|
|
3341
3355
|
return new RegExp(e, t);
|
|
3342
3356
|
}
|
|
3343
|
-
var
|
|
3344
|
-
if (
|
|
3345
|
-
var
|
|
3346
|
-
|
|
3347
|
-
var
|
|
3348
|
-
|
|
3349
|
-
var i =
|
|
3350
|
-
return (
|
|
3357
|
+
var Ye;
|
|
3358
|
+
if (Je) {
|
|
3359
|
+
var It = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3360
|
+
Ye = function(t, r) {
|
|
3361
|
+
var n;
|
|
3362
|
+
It.lastIndex = r;
|
|
3363
|
+
var i = It.exec(t);
|
|
3364
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3351
3365
|
};
|
|
3352
3366
|
} else
|
|
3353
|
-
|
|
3354
|
-
for (var
|
|
3355
|
-
var i =
|
|
3356
|
-
if (i === void 0 ||
|
|
3367
|
+
Ye = function(t, r) {
|
|
3368
|
+
for (var n = []; ; ) {
|
|
3369
|
+
var i = yr(t, r);
|
|
3370
|
+
if (i === void 0 || _r(i) || Pi(i))
|
|
3357
3371
|
break;
|
|
3358
|
-
|
|
3372
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3359
3373
|
}
|
|
3360
|
-
return
|
|
3374
|
+
return qe.apply(void 0, n);
|
|
3361
3375
|
};
|
|
3362
|
-
var
|
|
3376
|
+
var Ci = (
|
|
3363
3377
|
/** @class */
|
|
3364
3378
|
function() {
|
|
3365
|
-
function e(t,
|
|
3366
|
-
|
|
3379
|
+
function e(t, r) {
|
|
3380
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3367
3381
|
}
|
|
3368
3382
|
return e.prototype.parse = function() {
|
|
3369
3383
|
if (this.offset() !== 0)
|
|
3370
3384
|
throw Error("parser can only be used once");
|
|
3371
3385
|
return this.parseMessage(0, "", !1);
|
|
3372
|
-
}, e.prototype.parseMessage = function(t,
|
|
3386
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3373
3387
|
for (var i = []; !this.isEOF(); ) {
|
|
3374
3388
|
var o = this.char();
|
|
3375
3389
|
if (o === 123) {
|
|
3376
|
-
var a = this.parseArgument(t,
|
|
3390
|
+
var a = this.parseArgument(t, n);
|
|
3377
3391
|
if (a.err)
|
|
3378
3392
|
return a;
|
|
3379
3393
|
i.push(a.val);
|
|
3380
3394
|
} else {
|
|
3381
3395
|
if (o === 125 && t > 0)
|
|
3382
3396
|
break;
|
|
3383
|
-
if (o === 35 && (
|
|
3397
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3384
3398
|
var s = this.clonePosition();
|
|
3385
3399
|
this.bump(), i.push({
|
|
3386
3400
|
type: E.pound,
|
|
3387
3401
|
location: y(s, this.clonePosition())
|
|
3388
3402
|
});
|
|
3389
3403
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3390
|
-
if (
|
|
3404
|
+
if (n)
|
|
3391
3405
|
break;
|
|
3392
3406
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3393
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3394
|
-
var a = this.parseTag(t,
|
|
3407
|
+
} else if (o === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3408
|
+
var a = this.parseTag(t, r);
|
|
3395
3409
|
if (a.err)
|
|
3396
3410
|
return a;
|
|
3397
3411
|
i.push(a.val);
|
|
3398
3412
|
} else {
|
|
3399
|
-
var a = this.parseLiteral(t,
|
|
3413
|
+
var a = this.parseLiteral(t, r);
|
|
3400
3414
|
if (a.err)
|
|
3401
3415
|
return a;
|
|
3402
3416
|
i.push(a.val);
|
|
@@ -3404,8 +3418,8 @@ var Ti = (
|
|
|
3404
3418
|
}
|
|
3405
3419
|
}
|
|
3406
3420
|
return { val: i, err: null };
|
|
3407
|
-
}, e.prototype.parseTag = function(t,
|
|
3408
|
-
var
|
|
3421
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3422
|
+
var n = this.clonePosition();
|
|
3409
3423
|
this.bump();
|
|
3410
3424
|
var i = this.parseTagName();
|
|
3411
3425
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3413,17 +3427,17 @@ var Ti = (
|
|
|
3413
3427
|
val: {
|
|
3414
3428
|
type: E.literal,
|
|
3415
3429
|
value: "<".concat(i, "/>"),
|
|
3416
|
-
location: y(
|
|
3430
|
+
location: y(n, this.clonePosition())
|
|
3417
3431
|
},
|
|
3418
3432
|
err: null
|
|
3419
3433
|
};
|
|
3420
3434
|
if (this.bumpIf(">")) {
|
|
3421
|
-
var o = this.parseMessage(t + 1,
|
|
3435
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3422
3436
|
if (o.err)
|
|
3423
3437
|
return o;
|
|
3424
3438
|
var a = o.val, s = this.clonePosition();
|
|
3425
3439
|
if (this.bumpIf("</")) {
|
|
3426
|
-
if (this.isEOF() || !
|
|
3440
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3427
3441
|
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3428
3442
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3429
3443
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3431,27 +3445,27 @@ var Ti = (
|
|
|
3431
3445
|
type: E.tag,
|
|
3432
3446
|
value: i,
|
|
3433
3447
|
children: a,
|
|
3434
|
-
location: y(
|
|
3448
|
+
location: y(n, this.clonePosition())
|
|
3435
3449
|
},
|
|
3436
3450
|
err: null
|
|
3437
3451
|
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
3438
3452
|
} else
|
|
3439
|
-
return this.error(b.UNCLOSED_TAG, y(
|
|
3453
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3440
3454
|
} else
|
|
3441
|
-
return this.error(b.INVALID_TAG, y(
|
|
3455
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3442
3456
|
}, e.prototype.parseTagName = function() {
|
|
3443
3457
|
var t = this.offset();
|
|
3444
|
-
for (this.bump(); !this.isEOF() &&
|
|
3458
|
+
for (this.bump(); !this.isEOF() && Ai(this.char()); )
|
|
3445
3459
|
this.bump();
|
|
3446
3460
|
return this.message.slice(t, this.offset());
|
|
3447
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3448
|
-
for (var
|
|
3449
|
-
var o = this.tryParseQuote(
|
|
3461
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3462
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3463
|
+
var o = this.tryParseQuote(r);
|
|
3450
3464
|
if (o) {
|
|
3451
3465
|
i += o;
|
|
3452
3466
|
continue;
|
|
3453
3467
|
}
|
|
3454
|
-
var a = this.tryParseUnquoted(t,
|
|
3468
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3455
3469
|
if (a) {
|
|
3456
3470
|
i += a;
|
|
3457
3471
|
continue;
|
|
@@ -3463,14 +3477,14 @@ var Ti = (
|
|
|
3463
3477
|
}
|
|
3464
3478
|
break;
|
|
3465
3479
|
}
|
|
3466
|
-
var l = y(
|
|
3480
|
+
var l = y(n, this.clonePosition());
|
|
3467
3481
|
return {
|
|
3468
3482
|
val: { type: E.literal, value: i, location: l },
|
|
3469
3483
|
err: null
|
|
3470
3484
|
};
|
|
3471
3485
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3472
3486
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3473
|
-
!
|
|
3487
|
+
!Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3474
3488
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3475
3489
|
if (this.isEOF() || this.char() !== 39)
|
|
3476
3490
|
return null;
|
|
@@ -3490,37 +3504,37 @@ var Ti = (
|
|
|
3490
3504
|
return null;
|
|
3491
3505
|
}
|
|
3492
3506
|
this.bump();
|
|
3493
|
-
var
|
|
3507
|
+
var r = [this.char()];
|
|
3494
3508
|
for (this.bump(); !this.isEOF(); ) {
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3509
|
+
var n = this.char();
|
|
3510
|
+
if (n === 39)
|
|
3497
3511
|
if (this.peek() === 39)
|
|
3498
|
-
|
|
3512
|
+
r.push(39), this.bump();
|
|
3499
3513
|
else {
|
|
3500
3514
|
this.bump();
|
|
3501
3515
|
break;
|
|
3502
3516
|
}
|
|
3503
3517
|
else
|
|
3504
|
-
|
|
3518
|
+
r.push(n);
|
|
3505
3519
|
this.bump();
|
|
3506
3520
|
}
|
|
3507
|
-
return
|
|
3508
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3521
|
+
return qe.apply(void 0, r);
|
|
3522
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3509
3523
|
if (this.isEOF())
|
|
3510
3524
|
return null;
|
|
3511
|
-
var
|
|
3512
|
-
return
|
|
3513
|
-
}, e.prototype.parseArgument = function(t,
|
|
3514
|
-
var
|
|
3525
|
+
var n = this.char();
|
|
3526
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3527
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3528
|
+
var n = this.clonePosition();
|
|
3515
3529
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3516
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3530
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3517
3531
|
if (this.char() === 125)
|
|
3518
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(
|
|
3532
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3519
3533
|
var i = this.parseIdentifierIfPossible().value;
|
|
3520
3534
|
if (!i)
|
|
3521
|
-
return this.error(b.MALFORMED_ARGUMENT, y(
|
|
3535
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3522
3536
|
if (this.bumpSpace(), this.isEOF())
|
|
3523
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3537
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3524
3538
|
switch (this.char()) {
|
|
3525
3539
|
case 125:
|
|
3526
3540
|
return this.bump(), {
|
|
@@ -3528,21 +3542,21 @@ var Ti = (
|
|
|
3528
3542
|
type: E.argument,
|
|
3529
3543
|
// value does not include the opening and closing braces.
|
|
3530
3544
|
value: i,
|
|
3531
|
-
location: y(
|
|
3545
|
+
location: y(n, this.clonePosition())
|
|
3532
3546
|
},
|
|
3533
3547
|
err: null
|
|
3534
3548
|
};
|
|
3535
3549
|
case 44:
|
|
3536
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(
|
|
3550
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3537
3551
|
default:
|
|
3538
|
-
return this.error(b.MALFORMED_ARGUMENT, y(
|
|
3552
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3539
3553
|
}
|
|
3540
3554
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3541
|
-
var t = this.clonePosition(),
|
|
3555
|
+
var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
|
|
3542
3556
|
this.bumpTo(i);
|
|
3543
3557
|
var o = this.clonePosition(), a = y(t, o);
|
|
3544
|
-
return { value:
|
|
3545
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3558
|
+
return { value: n, location: a };
|
|
3559
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3546
3560
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3547
3561
|
switch (s) {
|
|
3548
3562
|
case "":
|
|
@@ -3554,40 +3568,40 @@ var Ti = (
|
|
|
3554
3568
|
var u = null;
|
|
3555
3569
|
if (this.bumpIf(",")) {
|
|
3556
3570
|
this.bumpSpace();
|
|
3557
|
-
var h = this.clonePosition(),
|
|
3558
|
-
if (
|
|
3559
|
-
return
|
|
3560
|
-
var
|
|
3561
|
-
if (
|
|
3571
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3572
|
+
if (c.err)
|
|
3573
|
+
return c;
|
|
3574
|
+
var f = Hi(c.val);
|
|
3575
|
+
if (f.length === 0)
|
|
3562
3576
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3563
|
-
var
|
|
3564
|
-
u = { style:
|
|
3577
|
+
var p = y(h, this.clonePosition());
|
|
3578
|
+
u = { style: f, styleLocation: p };
|
|
3565
3579
|
}
|
|
3566
3580
|
var m = this.tryParseArgumentClose(i);
|
|
3567
3581
|
if (m.err)
|
|
3568
3582
|
return m;
|
|
3569
|
-
var
|
|
3570
|
-
if (u &&
|
|
3571
|
-
var v =
|
|
3583
|
+
var d = y(i, this.clonePosition());
|
|
3584
|
+
if (u && Lt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3585
|
+
var v = Ti(u.style.slice(2));
|
|
3572
3586
|
if (s === "number") {
|
|
3573
|
-
var
|
|
3574
|
-
return
|
|
3575
|
-
val: { type: E.number, value:
|
|
3587
|
+
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3588
|
+
return c.err ? c : {
|
|
3589
|
+
val: { type: E.number, value: n, location: d, style: c.val },
|
|
3576
3590
|
err: null
|
|
3577
3591
|
};
|
|
3578
3592
|
} else {
|
|
3579
3593
|
if (v.length === 0)
|
|
3580
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3594
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3581
3595
|
var T = v;
|
|
3582
|
-
this.locale && (T =
|
|
3583
|
-
var
|
|
3596
|
+
this.locale && (T = fi(v, this.locale));
|
|
3597
|
+
var f = {
|
|
3584
3598
|
type: J.dateTime,
|
|
3585
3599
|
pattern: T,
|
|
3586
3600
|
location: u.styleLocation,
|
|
3587
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3601
|
+
parsedOptions: this.shouldParseSkeletons ? oi(T) : {}
|
|
3588
3602
|
}, C = s === "date" ? E.date : E.time;
|
|
3589
3603
|
return {
|
|
3590
|
-
val: { type: C, value:
|
|
3604
|
+
val: { type: C, value: n, location: d, style: f },
|
|
3591
3605
|
err: null
|
|
3592
3606
|
};
|
|
3593
3607
|
}
|
|
@@ -3595,8 +3609,8 @@ var Ti = (
|
|
|
3595
3609
|
return {
|
|
3596
3610
|
val: {
|
|
3597
3611
|
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3598
|
-
value:
|
|
3599
|
-
location:
|
|
3612
|
+
value: n,
|
|
3613
|
+
location: d,
|
|
3600
3614
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3601
3615
|
},
|
|
3602
3616
|
err: null
|
|
@@ -3605,23 +3619,23 @@ var Ti = (
|
|
|
3605
3619
|
case "plural":
|
|
3606
3620
|
case "selectordinal":
|
|
3607
3621
|
case "select": {
|
|
3608
|
-
var
|
|
3622
|
+
var S = this.clonePosition();
|
|
3609
3623
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3610
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(
|
|
3624
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, _({}, S)));
|
|
3611
3625
|
this.bumpSpace();
|
|
3612
|
-
var B = this.parseIdentifierIfPossible(),
|
|
3626
|
+
var B = this.parseIdentifierIfPossible(), w = 0;
|
|
3613
3627
|
if (s !== "select" && B.value === "offset") {
|
|
3614
3628
|
if (!this.bumpIf(":"))
|
|
3615
3629
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3616
3630
|
this.bumpSpace();
|
|
3617
|
-
var
|
|
3618
|
-
if (
|
|
3619
|
-
return
|
|
3620
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(),
|
|
3631
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3632
|
+
if (c.err)
|
|
3633
|
+
return c;
|
|
3634
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), w = c.val;
|
|
3621
3635
|
}
|
|
3622
|
-
var
|
|
3623
|
-
if (
|
|
3624
|
-
return
|
|
3636
|
+
var x = this.tryParsePluralOrSelectOptions(t, s, r, B);
|
|
3637
|
+
if (x.err)
|
|
3638
|
+
return x;
|
|
3625
3639
|
var m = this.tryParseArgumentClose(i);
|
|
3626
3640
|
if (m.err)
|
|
3627
3641
|
return m;
|
|
@@ -3629,17 +3643,17 @@ var Ti = (
|
|
|
3629
3643
|
return s === "select" ? {
|
|
3630
3644
|
val: {
|
|
3631
3645
|
type: E.select,
|
|
3632
|
-
value:
|
|
3633
|
-
options:
|
|
3646
|
+
value: n,
|
|
3647
|
+
options: Ot(x.val),
|
|
3634
3648
|
location: L
|
|
3635
3649
|
},
|
|
3636
3650
|
err: null
|
|
3637
3651
|
} : {
|
|
3638
3652
|
val: {
|
|
3639
3653
|
type: E.plural,
|
|
3640
|
-
value:
|
|
3641
|
-
options:
|
|
3642
|
-
offset:
|
|
3654
|
+
value: n,
|
|
3655
|
+
options: Ot(x.val),
|
|
3656
|
+
offset: w,
|
|
3643
3657
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3644
3658
|
location: L
|
|
3645
3659
|
},
|
|
@@ -3652,9 +3666,9 @@ var Ti = (
|
|
|
3652
3666
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3653
3667
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3654
3668
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3655
|
-
for (var t = 0,
|
|
3656
|
-
var
|
|
3657
|
-
switch (
|
|
3669
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3670
|
+
var n = this.char();
|
|
3671
|
+
switch (n) {
|
|
3658
3672
|
case 39: {
|
|
3659
3673
|
this.bump();
|
|
3660
3674
|
var i = this.clonePosition();
|
|
@@ -3672,7 +3686,7 @@ var Ti = (
|
|
|
3672
3686
|
t -= 1;
|
|
3673
3687
|
else
|
|
3674
3688
|
return {
|
|
3675
|
-
val: this.message.slice(
|
|
3689
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3676
3690
|
err: null
|
|
3677
3691
|
};
|
|
3678
3692
|
break;
|
|
@@ -3683,61 +3697,61 @@ var Ti = (
|
|
|
3683
3697
|
}
|
|
3684
3698
|
}
|
|
3685
3699
|
return {
|
|
3686
|
-
val: this.message.slice(
|
|
3700
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3687
3701
|
err: null
|
|
3688
3702
|
};
|
|
3689
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3690
|
-
var
|
|
3703
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3704
|
+
var n = [];
|
|
3691
3705
|
try {
|
|
3692
|
-
|
|
3706
|
+
n = ai(t);
|
|
3693
3707
|
} catch (i) {
|
|
3694
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3708
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3695
3709
|
}
|
|
3696
3710
|
return {
|
|
3697
3711
|
val: {
|
|
3698
3712
|
type: J.number,
|
|
3699
|
-
tokens:
|
|
3700
|
-
location:
|
|
3701
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3713
|
+
tokens: n,
|
|
3714
|
+
location: r,
|
|
3715
|
+
parsedOptions: this.shouldParseSkeletons ? ci(n) : {}
|
|
3702
3716
|
},
|
|
3703
3717
|
err: null
|
|
3704
3718
|
};
|
|
3705
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3719
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3706
3720
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3707
3721
|
if (u.length === 0) {
|
|
3708
|
-
var
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
if (
|
|
3712
|
-
return
|
|
3713
|
-
h = y(
|
|
3722
|
+
var c = this.clonePosition();
|
|
3723
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3724
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3725
|
+
if (f.err)
|
|
3726
|
+
return f;
|
|
3727
|
+
h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3714
3728
|
} else
|
|
3715
3729
|
break;
|
|
3716
3730
|
}
|
|
3717
3731
|
if (l.has(u))
|
|
3718
|
-
return this.error(
|
|
3732
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3719
3733
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3720
|
-
var
|
|
3734
|
+
var p = this.clonePosition();
|
|
3721
3735
|
if (!this.bumpIf("{"))
|
|
3722
|
-
return this.error(
|
|
3723
|
-
var m = this.parseMessage(t + 1,
|
|
3736
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3737
|
+
var m = this.parseMessage(t + 1, r, n);
|
|
3724
3738
|
if (m.err)
|
|
3725
3739
|
return m;
|
|
3726
|
-
var
|
|
3727
|
-
if (
|
|
3728
|
-
return
|
|
3740
|
+
var d = this.tryParseArgumentClose(p);
|
|
3741
|
+
if (d.err)
|
|
3742
|
+
return d;
|
|
3729
3743
|
s.push([
|
|
3730
3744
|
u,
|
|
3731
3745
|
{
|
|
3732
3746
|
value: m.val,
|
|
3733
|
-
location: y(
|
|
3747
|
+
location: y(p, this.clonePosition())
|
|
3734
3748
|
}
|
|
3735
3749
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3736
3750
|
}
|
|
3737
|
-
return s.length === 0 ? this.error(
|
|
3738
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3739
|
-
var
|
|
3740
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3751
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3752
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3753
|
+
var n = 1, i = this.clonePosition();
|
|
3754
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3741
3755
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3742
3756
|
var s = this.char();
|
|
3743
3757
|
if (s >= 48 && s <= 57)
|
|
@@ -3746,7 +3760,7 @@ var Ti = (
|
|
|
3746
3760
|
break;
|
|
3747
3761
|
}
|
|
3748
3762
|
var l = y(i, this.clonePosition());
|
|
3749
|
-
return o ? (a *=
|
|
3763
|
+
return o ? (a *= n, wi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3750
3764
|
}, e.prototype.offset = function() {
|
|
3751
3765
|
return this.position.offset;
|
|
3752
3766
|
}, e.prototype.isEOF = function() {
|
|
@@ -3761,17 +3775,17 @@ var Ti = (
|
|
|
3761
3775
|
var t = this.position.offset;
|
|
3762
3776
|
if (t >= this.message.length)
|
|
3763
3777
|
throw Error("out of bound");
|
|
3764
|
-
var
|
|
3765
|
-
if (
|
|
3778
|
+
var r = yr(this.message, t);
|
|
3779
|
+
if (r === void 0)
|
|
3766
3780
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3767
|
-
return
|
|
3768
|
-
}, e.prototype.error = function(t,
|
|
3781
|
+
return r;
|
|
3782
|
+
}, e.prototype.error = function(t, r) {
|
|
3769
3783
|
return {
|
|
3770
3784
|
val: null,
|
|
3771
3785
|
err: {
|
|
3772
3786
|
kind: t,
|
|
3773
3787
|
message: this.message,
|
|
3774
|
-
location:
|
|
3788
|
+
location: r
|
|
3775
3789
|
}
|
|
3776
3790
|
};
|
|
3777
3791
|
}, e.prototype.bump = function() {
|
|
@@ -3780,70 +3794,70 @@ var Ti = (
|
|
|
3780
3794
|
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);
|
|
3781
3795
|
}
|
|
3782
3796
|
}, e.prototype.bumpIf = function(t) {
|
|
3783
|
-
if (
|
|
3784
|
-
for (var
|
|
3797
|
+
if (Lt(this.message, t, this.offset())) {
|
|
3798
|
+
for (var r = 0; r < t.length; r++)
|
|
3785
3799
|
this.bump();
|
|
3786
3800
|
return !0;
|
|
3787
3801
|
}
|
|
3788
3802
|
return !1;
|
|
3789
3803
|
}, e.prototype.bumpUntil = function(t) {
|
|
3790
|
-
var
|
|
3791
|
-
return
|
|
3804
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3805
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3792
3806
|
}, e.prototype.bumpTo = function(t) {
|
|
3793
3807
|
if (this.offset() > t)
|
|
3794
3808
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3795
3809
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3796
|
-
var
|
|
3797
|
-
if (
|
|
3810
|
+
var r = this.offset();
|
|
3811
|
+
if (r === t)
|
|
3798
3812
|
break;
|
|
3799
|
-
if (
|
|
3813
|
+
if (r > t)
|
|
3800
3814
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3801
3815
|
if (this.bump(), this.isEOF())
|
|
3802
3816
|
break;
|
|
3803
3817
|
}
|
|
3804
3818
|
}, e.prototype.bumpSpace = function() {
|
|
3805
|
-
for (; !this.isEOF() &&
|
|
3819
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
3806
3820
|
this.bump();
|
|
3807
3821
|
}, e.prototype.peek = function() {
|
|
3808
3822
|
if (this.isEOF())
|
|
3809
3823
|
return null;
|
|
3810
|
-
var t = this.char(),
|
|
3811
|
-
return
|
|
3824
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3825
|
+
return n != null ? n : null;
|
|
3812
3826
|
}, e;
|
|
3813
3827
|
}()
|
|
3814
3828
|
);
|
|
3815
|
-
function
|
|
3829
|
+
function Ke(e) {
|
|
3816
3830
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3817
3831
|
}
|
|
3818
|
-
function
|
|
3819
|
-
return
|
|
3832
|
+
function Bi(e) {
|
|
3833
|
+
return Ke(e) || e === 47;
|
|
3820
3834
|
}
|
|
3821
|
-
function
|
|
3835
|
+
function Ai(e) {
|
|
3822
3836
|
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;
|
|
3823
3837
|
}
|
|
3824
|
-
function
|
|
3838
|
+
function _r(e) {
|
|
3825
3839
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3826
3840
|
}
|
|
3827
|
-
function
|
|
3841
|
+
function Pi(e) {
|
|
3828
3842
|
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;
|
|
3829
3843
|
}
|
|
3830
|
-
function
|
|
3844
|
+
function et(e) {
|
|
3831
3845
|
e.forEach(function(t) {
|
|
3832
|
-
if (delete t.location,
|
|
3833
|
-
for (var
|
|
3834
|
-
delete t.options[
|
|
3846
|
+
if (delete t.location, hr(t) || cr(t))
|
|
3847
|
+
for (var r in t.options)
|
|
3848
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3835
3849
|
else
|
|
3836
|
-
|
|
3850
|
+
ar(t) && mr(t.style) || (ur(t) || lr(t)) && Qe(t.style) ? delete t.style.location : fr(t) && et(t.children);
|
|
3837
3851
|
});
|
|
3838
3852
|
}
|
|
3839
|
-
function
|
|
3840
|
-
t === void 0 && (t = {}), t =
|
|
3841
|
-
var
|
|
3842
|
-
if (
|
|
3843
|
-
var
|
|
3844
|
-
throw
|
|
3853
|
+
function Li(e, t) {
|
|
3854
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3855
|
+
var r = new Ci(e, t).parse();
|
|
3856
|
+
if (r.err) {
|
|
3857
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3858
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3845
3859
|
}
|
|
3846
|
-
return t != null && t.captureLocation ||
|
|
3860
|
+
return t != null && t.captureLocation || et(r.val), r.val;
|
|
3847
3861
|
}
|
|
3848
3862
|
var q;
|
|
3849
3863
|
(function(e) {
|
|
@@ -3853,38 +3867,38 @@ var He = (
|
|
|
3853
3867
|
/** @class */
|
|
3854
3868
|
function(e) {
|
|
3855
3869
|
G(t, e);
|
|
3856
|
-
function t(
|
|
3857
|
-
var o = e.call(this,
|
|
3858
|
-
return o.code =
|
|
3870
|
+
function t(r, n, i) {
|
|
3871
|
+
var o = e.call(this, r) || this;
|
|
3872
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3859
3873
|
}
|
|
3860
3874
|
return t.prototype.toString = function() {
|
|
3861
3875
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3862
3876
|
}, t;
|
|
3863
3877
|
}(Error)
|
|
3864
|
-
),
|
|
3878
|
+
), Mt = (
|
|
3865
3879
|
/** @class */
|
|
3866
3880
|
function(e) {
|
|
3867
3881
|
G(t, e);
|
|
3868
|
-
function t(
|
|
3869
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3882
|
+
function t(r, n, i, o) {
|
|
3883
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3870
3884
|
}
|
|
3871
3885
|
return t;
|
|
3872
3886
|
}(He)
|
|
3873
|
-
),
|
|
3887
|
+
), Oi = (
|
|
3874
3888
|
/** @class */
|
|
3875
3889
|
function(e) {
|
|
3876
3890
|
G(t, e);
|
|
3877
|
-
function t(
|
|
3878
|
-
return e.call(this, 'Value for "'.concat(
|
|
3891
|
+
function t(r, n, i) {
|
|
3892
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3879
3893
|
}
|
|
3880
3894
|
return t;
|
|
3881
3895
|
}(He)
|
|
3882
|
-
),
|
|
3896
|
+
), Ii = (
|
|
3883
3897
|
/** @class */
|
|
3884
3898
|
function(e) {
|
|
3885
3899
|
G(t, e);
|
|
3886
|
-
function t(
|
|
3887
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3900
|
+
function t(r, n) {
|
|
3901
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3888
3902
|
}
|
|
3889
3903
|
return t;
|
|
3890
3904
|
}(He)
|
|
@@ -3892,17 +3906,17 @@ var He = (
|
|
|
3892
3906
|
(function(e) {
|
|
3893
3907
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3894
3908
|
})(A || (A = {}));
|
|
3895
|
-
function
|
|
3896
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3897
|
-
var
|
|
3898
|
-
return !
|
|
3909
|
+
function Mi(e) {
|
|
3910
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3911
|
+
var n = t[t.length - 1];
|
|
3912
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3899
3913
|
}, []);
|
|
3900
3914
|
}
|
|
3901
|
-
function
|
|
3915
|
+
function Ni(e) {
|
|
3902
3916
|
return typeof e == "function";
|
|
3903
3917
|
}
|
|
3904
|
-
function be(e, t,
|
|
3905
|
-
if (e.length === 1 &&
|
|
3918
|
+
function be(e, t, r, n, i, o, a) {
|
|
3919
|
+
if (e.length === 1 && Ct(e[0]))
|
|
3906
3920
|
return [
|
|
3907
3921
|
{
|
|
3908
3922
|
type: A.literal,
|
|
@@ -3911,155 +3925,155 @@ function be(e, t, n, r, i, o, a) {
|
|
|
3911
3925
|
];
|
|
3912
3926
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3913
3927
|
var h = u[l];
|
|
3914
|
-
if (
|
|
3928
|
+
if (Ct(h)) {
|
|
3915
3929
|
s.push({
|
|
3916
3930
|
type: A.literal,
|
|
3917
3931
|
value: h.value
|
|
3918
3932
|
});
|
|
3919
3933
|
continue;
|
|
3920
3934
|
}
|
|
3921
|
-
if (
|
|
3935
|
+
if (ni(h)) {
|
|
3922
3936
|
typeof o == "number" && s.push({
|
|
3923
3937
|
type: A.literal,
|
|
3924
|
-
value:
|
|
3938
|
+
value: r.getNumberFormat(t).format(o)
|
|
3925
3939
|
});
|
|
3926
3940
|
continue;
|
|
3927
3941
|
}
|
|
3928
|
-
var
|
|
3929
|
-
if (!(i &&
|
|
3930
|
-
throw new
|
|
3931
|
-
var
|
|
3932
|
-
if (
|
|
3933
|
-
(!
|
|
3934
|
-
type: typeof
|
|
3935
|
-
value:
|
|
3942
|
+
var c = h.value;
|
|
3943
|
+
if (!(i && c in i))
|
|
3944
|
+
throw new Ii(c, a);
|
|
3945
|
+
var f = i[c];
|
|
3946
|
+
if (ri(h)) {
|
|
3947
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3948
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3949
|
+
value: f
|
|
3936
3950
|
});
|
|
3937
3951
|
continue;
|
|
3938
3952
|
}
|
|
3939
|
-
if (
|
|
3940
|
-
var
|
|
3953
|
+
if (ur(h)) {
|
|
3954
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Qe(h.style) ? h.style.parsedOptions : void 0;
|
|
3941
3955
|
s.push({
|
|
3942
3956
|
type: A.literal,
|
|
3943
|
-
value:
|
|
3957
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3944
3958
|
});
|
|
3945
3959
|
continue;
|
|
3946
3960
|
}
|
|
3947
|
-
if (
|
|
3948
|
-
var
|
|
3961
|
+
if (lr(h)) {
|
|
3962
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Qe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3949
3963
|
s.push({
|
|
3950
3964
|
type: A.literal,
|
|
3951
|
-
value:
|
|
3965
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3952
3966
|
});
|
|
3953
3967
|
continue;
|
|
3954
3968
|
}
|
|
3955
|
-
if (
|
|
3956
|
-
var
|
|
3957
|
-
|
|
3969
|
+
if (ar(h)) {
|
|
3970
|
+
var p = typeof h.style == "string" ? n.number[h.style] : mr(h.style) ? h.style.parsedOptions : void 0;
|
|
3971
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3958
3972
|
type: A.literal,
|
|
3959
|
-
value:
|
|
3973
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3960
3974
|
});
|
|
3961
3975
|
continue;
|
|
3962
3976
|
}
|
|
3963
|
-
if (
|
|
3964
|
-
var m = h.children,
|
|
3965
|
-
if (!
|
|
3966
|
-
throw new
|
|
3967
|
-
var T = be(m, t,
|
|
3968
|
-
return
|
|
3977
|
+
if (fr(h)) {
|
|
3978
|
+
var m = h.children, d = h.value, v = i[d];
|
|
3979
|
+
if (!Ni(v))
|
|
3980
|
+
throw new Oi(d, "function", a);
|
|
3981
|
+
var T = be(m, t, r, n, i, o), C = v(T.map(function(w) {
|
|
3982
|
+
return w.value;
|
|
3969
3983
|
}));
|
|
3970
|
-
Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(
|
|
3984
|
+
Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(w) {
|
|
3971
3985
|
return {
|
|
3972
|
-
type: typeof
|
|
3973
|
-
value:
|
|
3986
|
+
type: typeof w == "string" ? A.literal : A.object,
|
|
3987
|
+
value: w
|
|
3974
3988
|
};
|
|
3975
3989
|
}));
|
|
3976
3990
|
}
|
|
3977
|
-
if (
|
|
3978
|
-
var
|
|
3979
|
-
if (!
|
|
3980
|
-
throw new
|
|
3981
|
-
s.push.apply(s, be(
|
|
3991
|
+
if (hr(h)) {
|
|
3992
|
+
var S = h.options[f] || h.options.other;
|
|
3993
|
+
if (!S)
|
|
3994
|
+
throw new Mt(h.value, f, Object.keys(h.options), a);
|
|
3995
|
+
s.push.apply(s, be(S.value, t, r, n, i));
|
|
3982
3996
|
continue;
|
|
3983
3997
|
}
|
|
3984
|
-
if (
|
|
3985
|
-
var
|
|
3986
|
-
if (!
|
|
3998
|
+
if (cr(h)) {
|
|
3999
|
+
var S = h.options["=".concat(f)];
|
|
4000
|
+
if (!S) {
|
|
3987
4001
|
if (!Intl.PluralRules)
|
|
3988
4002
|
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3989
4003
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3990
4004
|
`, q.MISSING_INTL_API, a);
|
|
3991
|
-
var B =
|
|
3992
|
-
|
|
4005
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
4006
|
+
S = h.options[B] || h.options.other;
|
|
3993
4007
|
}
|
|
3994
|
-
if (!
|
|
3995
|
-
throw new
|
|
3996
|
-
s.push.apply(s, be(
|
|
4008
|
+
if (!S)
|
|
4009
|
+
throw new Mt(h.value, f, Object.keys(h.options), a);
|
|
4010
|
+
s.push.apply(s, be(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3997
4011
|
continue;
|
|
3998
4012
|
}
|
|
3999
4013
|
}
|
|
4000
|
-
return
|
|
4014
|
+
return Mi(s);
|
|
4001
4015
|
}
|
|
4002
|
-
function
|
|
4003
|
-
return t ?
|
|
4004
|
-
return n
|
|
4016
|
+
function $i(e, t) {
|
|
4017
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4018
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
4005
4019
|
}, {})) : e;
|
|
4006
4020
|
}
|
|
4007
|
-
function
|
|
4008
|
-
return t ? Object.keys(e).reduce(function(
|
|
4009
|
-
return n
|
|
4010
|
-
},
|
|
4021
|
+
function Ri(e, t) {
|
|
4022
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4023
|
+
return r[n] = $i(e[n], t[n]), r;
|
|
4024
|
+
}, _({}, e)) : e;
|
|
4011
4025
|
}
|
|
4012
|
-
function
|
|
4026
|
+
function De(e) {
|
|
4013
4027
|
return {
|
|
4014
4028
|
create: function() {
|
|
4015
4029
|
return {
|
|
4016
4030
|
get: function(t) {
|
|
4017
4031
|
return e[t];
|
|
4018
4032
|
},
|
|
4019
|
-
set: function(t,
|
|
4020
|
-
e[t] =
|
|
4033
|
+
set: function(t, r) {
|
|
4034
|
+
e[t] = r;
|
|
4021
4035
|
}
|
|
4022
4036
|
};
|
|
4023
4037
|
}
|
|
4024
4038
|
};
|
|
4025
4039
|
}
|
|
4026
|
-
function
|
|
4040
|
+
function Gi(e) {
|
|
4027
4041
|
return e === void 0 && (e = {
|
|
4028
4042
|
number: {},
|
|
4029
4043
|
dateTime: {},
|
|
4030
4044
|
pluralRules: {}
|
|
4031
4045
|
}), {
|
|
4032
|
-
getNumberFormat:
|
|
4033
|
-
for (var t,
|
|
4034
|
-
n
|
|
4035
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0],
|
|
4046
|
+
getNumberFormat: Re(function() {
|
|
4047
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4048
|
+
r[n] = arguments[n];
|
|
4049
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
4036
4050
|
}, {
|
|
4037
|
-
cache:
|
|
4038
|
-
strategy:
|
|
4051
|
+
cache: De(e.number),
|
|
4052
|
+
strategy: Ge.variadic
|
|
4039
4053
|
}),
|
|
4040
|
-
getDateTimeFormat:
|
|
4041
|
-
for (var t,
|
|
4042
|
-
n
|
|
4043
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0],
|
|
4054
|
+
getDateTimeFormat: Re(function() {
|
|
4055
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4056
|
+
r[n] = arguments[n];
|
|
4057
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
4044
4058
|
}, {
|
|
4045
|
-
cache:
|
|
4046
|
-
strategy:
|
|
4059
|
+
cache: De(e.dateTime),
|
|
4060
|
+
strategy: Ge.variadic
|
|
4047
4061
|
}),
|
|
4048
|
-
getPluralRules:
|
|
4049
|
-
for (var t,
|
|
4050
|
-
n
|
|
4051
|
-
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0],
|
|
4062
|
+
getPluralRules: Re(function() {
|
|
4063
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4064
|
+
r[n] = arguments[n];
|
|
4065
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], r, !1)))();
|
|
4052
4066
|
}, {
|
|
4053
|
-
cache:
|
|
4054
|
-
strategy:
|
|
4067
|
+
cache: De(e.pluralRules),
|
|
4068
|
+
strategy: Ge.variadic
|
|
4055
4069
|
})
|
|
4056
4070
|
};
|
|
4057
4071
|
}
|
|
4058
|
-
var
|
|
4072
|
+
var Ui = (
|
|
4059
4073
|
/** @class */
|
|
4060
4074
|
function() {
|
|
4061
|
-
function e(t,
|
|
4062
|
-
|
|
4075
|
+
function e(t, r, n, i) {
|
|
4076
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4063
4077
|
var o = this;
|
|
4064
4078
|
if (this.formatterCache = {
|
|
4065
4079
|
number: {},
|
|
@@ -4069,8 +4083,8 @@ var Ri = (
|
|
|
4069
4083
|
var u = o.formatToParts(l);
|
|
4070
4084
|
if (u.length === 1)
|
|
4071
4085
|
return u[0].value;
|
|
4072
|
-
var h = u.reduce(function(
|
|
4073
|
-
return !
|
|
4086
|
+
var h = u.reduce(function(c, f) {
|
|
4087
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
4074
4088
|
}, []);
|
|
4075
4089
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4076
4090
|
}, this.formatToParts = function(l) {
|
|
@@ -4082,18 +4096,18 @@ var Ri = (
|
|
|
4082
4096
|
};
|
|
4083
4097
|
}, this.getAst = function() {
|
|
4084
4098
|
return o.ast;
|
|
4085
|
-
}, this.locales =
|
|
4099
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4086
4100
|
if (this.message = t, !e.__parse)
|
|
4087
4101
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4088
4102
|
var a = i || {};
|
|
4089
4103
|
a.formatters;
|
|
4090
|
-
var s =
|
|
4091
|
-
this.ast = e.__parse(t,
|
|
4104
|
+
var s = yn(a, ["formatters"]);
|
|
4105
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
4092
4106
|
} else
|
|
4093
4107
|
this.ast = t;
|
|
4094
4108
|
if (!Array.isArray(this.ast))
|
|
4095
4109
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4096
|
-
this.formats =
|
|
4110
|
+
this.formats = Ri(e.formats, n), this.formatters = i && i.formatters || Gi(this.formatterCache);
|
|
4097
4111
|
}
|
|
4098
4112
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4099
4113
|
get: function() {
|
|
@@ -4103,10 +4117,10 @@ var Ri = (
|
|
|
4103
4117
|
configurable: !0
|
|
4104
4118
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4105
4119
|
if (typeof Intl.Locale != "undefined") {
|
|
4106
|
-
var
|
|
4107
|
-
return
|
|
4120
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4121
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4108
4122
|
}
|
|
4109
|
-
}, e.__parse =
|
|
4123
|
+
}, e.__parse = Li, e.formats = {
|
|
4110
4124
|
number: {
|
|
4111
4125
|
integer: {
|
|
4112
4126
|
maximumFractionDigits: 0
|
|
@@ -4167,113 +4181,113 @@ var Ri = (
|
|
|
4167
4181
|
}, e;
|
|
4168
4182
|
}()
|
|
4169
4183
|
);
|
|
4170
|
-
function
|
|
4184
|
+
function Di(e, t) {
|
|
4171
4185
|
if (t == null)
|
|
4172
4186
|
return;
|
|
4173
4187
|
if (t in e)
|
|
4174
4188
|
return e[t];
|
|
4175
|
-
const
|
|
4176
|
-
let
|
|
4177
|
-
for (let i = 0; i <
|
|
4178
|
-
if (typeof
|
|
4189
|
+
const r = t.split(".");
|
|
4190
|
+
let n = e;
|
|
4191
|
+
for (let i = 0; i < r.length; i++)
|
|
4192
|
+
if (typeof n == "object") {
|
|
4179
4193
|
if (i > 0) {
|
|
4180
|
-
const o =
|
|
4181
|
-
if (o in
|
|
4182
|
-
|
|
4194
|
+
const o = r.slice(i, r.length).join(".");
|
|
4195
|
+
if (o in n) {
|
|
4196
|
+
n = n[o];
|
|
4183
4197
|
break;
|
|
4184
4198
|
}
|
|
4185
4199
|
}
|
|
4186
|
-
|
|
4200
|
+
n = n[r[i]];
|
|
4187
4201
|
} else
|
|
4188
|
-
|
|
4189
|
-
return
|
|
4202
|
+
n = void 0;
|
|
4203
|
+
return n;
|
|
4190
4204
|
}
|
|
4191
|
-
const U = {},
|
|
4205
|
+
const U = {}, Fi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), xr = (e, t) => {
|
|
4192
4206
|
if (t == null)
|
|
4193
4207
|
return;
|
|
4194
4208
|
if (t in U && e in U[t])
|
|
4195
4209
|
return U[t][e];
|
|
4196
|
-
const
|
|
4197
|
-
for (let
|
|
4198
|
-
const i = n
|
|
4210
|
+
const r = Ce(t);
|
|
4211
|
+
for (let n = 0; n < r.length; n++) {
|
|
4212
|
+
const i = r[n], o = ki(i, e);
|
|
4199
4213
|
if (o)
|
|
4200
|
-
return
|
|
4214
|
+
return Fi(e, t, o);
|
|
4201
4215
|
}
|
|
4202
4216
|
};
|
|
4203
|
-
let
|
|
4217
|
+
let ut;
|
|
4204
4218
|
const he = Te({});
|
|
4205
|
-
function
|
|
4206
|
-
return
|
|
4219
|
+
function ji(e) {
|
|
4220
|
+
return ut[e] || null;
|
|
4207
4221
|
}
|
|
4208
|
-
function
|
|
4209
|
-
return e in
|
|
4222
|
+
function Er(e) {
|
|
4223
|
+
return e in ut;
|
|
4210
4224
|
}
|
|
4211
|
-
function
|
|
4212
|
-
if (!
|
|
4225
|
+
function ki(e, t) {
|
|
4226
|
+
if (!Er(e))
|
|
4213
4227
|
return null;
|
|
4214
|
-
const
|
|
4215
|
-
return
|
|
4228
|
+
const r = ji(e);
|
|
4229
|
+
return Di(r, t);
|
|
4216
4230
|
}
|
|
4217
|
-
function
|
|
4231
|
+
function Vi(e) {
|
|
4218
4232
|
if (e == null)
|
|
4219
4233
|
return;
|
|
4220
4234
|
const t = Ce(e);
|
|
4221
|
-
for (let
|
|
4222
|
-
const
|
|
4223
|
-
if (
|
|
4224
|
-
return
|
|
4235
|
+
for (let r = 0; r < t.length; r++) {
|
|
4236
|
+
const n = t[r];
|
|
4237
|
+
if (Er(n))
|
|
4238
|
+
return n;
|
|
4225
4239
|
}
|
|
4226
4240
|
}
|
|
4227
|
-
function
|
|
4228
|
-
delete U[e], he.update((
|
|
4241
|
+
function wr(e, ...t) {
|
|
4242
|
+
delete U[e], he.update((r) => (r[e] = Qn.all([r[e] || {}, ...t]), r));
|
|
4229
4243
|
}
|
|
4230
4244
|
K(
|
|
4231
4245
|
[he],
|
|
4232
4246
|
([e]) => Object.keys(e)
|
|
4233
4247
|
);
|
|
4234
|
-
he.subscribe((e) =>
|
|
4248
|
+
he.subscribe((e) => ut = e);
|
|
4235
4249
|
const ge = {};
|
|
4236
|
-
function
|
|
4250
|
+
function Xi(e, t) {
|
|
4237
4251
|
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
4238
4252
|
}
|
|
4239
|
-
function
|
|
4253
|
+
function Sr(e) {
|
|
4240
4254
|
return ge[e];
|
|
4241
4255
|
}
|
|
4242
|
-
function
|
|
4256
|
+
function zi(e) {
|
|
4243
4257
|
return Ce(e).map((t) => {
|
|
4244
|
-
const
|
|
4245
|
-
return [t,
|
|
4258
|
+
const r = Sr(t);
|
|
4259
|
+
return [t, r ? [...r] : []];
|
|
4246
4260
|
}).filter(([, t]) => t.length > 0);
|
|
4247
4261
|
}
|
|
4248
|
-
function
|
|
4262
|
+
function tt(e) {
|
|
4249
4263
|
return e == null ? !1 : Ce(e).some(
|
|
4250
4264
|
(t) => {
|
|
4251
|
-
var
|
|
4252
|
-
return (
|
|
4265
|
+
var r;
|
|
4266
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
4253
4267
|
}
|
|
4254
4268
|
);
|
|
4255
4269
|
}
|
|
4256
|
-
function
|
|
4270
|
+
function Wi(e, t) {
|
|
4257
4271
|
return Promise.all(
|
|
4258
|
-
t.map((
|
|
4259
|
-
).then((
|
|
4272
|
+
t.map((n) => (Xi(e, n), n().then((i) => i.default || i)))
|
|
4273
|
+
).then((n) => wr(e, ...n));
|
|
4260
4274
|
}
|
|
4261
|
-
const
|
|
4262
|
-
function
|
|
4263
|
-
if (!
|
|
4264
|
-
return e in
|
|
4265
|
-
const t =
|
|
4266
|
-
return
|
|
4275
|
+
const ne = {};
|
|
4276
|
+
function Tr(e) {
|
|
4277
|
+
if (!tt(e))
|
|
4278
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
4279
|
+
const t = zi(e);
|
|
4280
|
+
return ne[e] = Promise.all(
|
|
4267
4281
|
t.map(
|
|
4268
|
-
([
|
|
4282
|
+
([r, n]) => Wi(r, n)
|
|
4269
4283
|
)
|
|
4270
4284
|
).then(() => {
|
|
4271
|
-
if (
|
|
4272
|
-
return
|
|
4273
|
-
delete
|
|
4274
|
-
}),
|
|
4285
|
+
if (tt(e))
|
|
4286
|
+
return Tr(e);
|
|
4287
|
+
delete ne[e];
|
|
4288
|
+
}), ne[e];
|
|
4275
4289
|
}
|
|
4276
|
-
const
|
|
4290
|
+
const Zi = {
|
|
4277
4291
|
number: {
|
|
4278
4292
|
scientific: { notation: "scientific" },
|
|
4279
4293
|
engineering: { notation: "engineering" },
|
|
@@ -4302,136 +4316,136 @@ const zi = {
|
|
|
4302
4316
|
timeZoneName: "short"
|
|
4303
4317
|
}
|
|
4304
4318
|
}
|
|
4305
|
-
},
|
|
4319
|
+
}, Qi = {
|
|
4306
4320
|
fallbackLocale: null,
|
|
4307
4321
|
loadingDelay: 200,
|
|
4308
|
-
formats:
|
|
4322
|
+
formats: Zi,
|
|
4309
4323
|
warnOnMissingMessages: !0,
|
|
4310
4324
|
handleMissingMessage: void 0,
|
|
4311
4325
|
ignoreTag: !0
|
|
4312
|
-
},
|
|
4326
|
+
}, Ji = Qi;
|
|
4313
4327
|
function Y() {
|
|
4314
|
-
return
|
|
4315
|
-
}
|
|
4316
|
-
const
|
|
4317
|
-
var
|
|
4318
|
-
for (var
|
|
4319
|
-
|
|
4320
|
-
if (
|
|
4321
|
-
for (var
|
|
4322
|
-
|
|
4328
|
+
return Ji;
|
|
4329
|
+
}
|
|
4330
|
+
const Fe = Te(!1);
|
|
4331
|
+
var qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
|
|
4332
|
+
for (var r in t || (t = {}))
|
|
4333
|
+
eo.call(t, r) && $t(e, r, t[r]);
|
|
4334
|
+
if (Nt)
|
|
4335
|
+
for (var r of Nt(t))
|
|
4336
|
+
to.call(t, r) && $t(e, r, t[r]);
|
|
4323
4337
|
return e;
|
|
4324
|
-
},
|
|
4325
|
-
let
|
|
4326
|
-
const
|
|
4327
|
-
function
|
|
4328
|
-
return e.split("-").map((t,
|
|
4338
|
+
}, no = (e, t) => Yi(e, Ki(t));
|
|
4339
|
+
let rt;
|
|
4340
|
+
const xe = Te(null);
|
|
4341
|
+
function Rt(e) {
|
|
4342
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4329
4343
|
}
|
|
4330
4344
|
function Ce(e, t = Y().fallbackLocale) {
|
|
4331
|
-
const
|
|
4332
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4345
|
+
const r = Rt(e);
|
|
4346
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
4333
4347
|
}
|
|
4334
4348
|
function F() {
|
|
4335
|
-
return
|
|
4349
|
+
return rt != null ? rt : void 0;
|
|
4336
4350
|
}
|
|
4337
|
-
|
|
4338
|
-
|
|
4351
|
+
xe.subscribe((e) => {
|
|
4352
|
+
rt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4339
4353
|
});
|
|
4340
|
-
const
|
|
4341
|
-
if (e &&
|
|
4354
|
+
const io = (e) => {
|
|
4355
|
+
if (e && Vi(e) && tt(e)) {
|
|
4342
4356
|
const { loadingDelay: t } = Y();
|
|
4343
|
-
let
|
|
4344
|
-
return typeof window != "undefined" && F() != null && t ?
|
|
4345
|
-
() =>
|
|
4357
|
+
let r;
|
|
4358
|
+
return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
|
|
4359
|
+
() => Fe.set(!0),
|
|
4346
4360
|
t
|
|
4347
|
-
) :
|
|
4348
|
-
|
|
4361
|
+
) : Fe.set(!0), Tr(e).then(() => {
|
|
4362
|
+
xe.set(e);
|
|
4349
4363
|
}).finally(() => {
|
|
4350
|
-
clearTimeout(
|
|
4364
|
+
clearTimeout(r), Fe.set(!1);
|
|
4351
4365
|
});
|
|
4352
4366
|
}
|
|
4353
|
-
return
|
|
4354
|
-
}, ee =
|
|
4355
|
-
set:
|
|
4367
|
+
return xe.set(e);
|
|
4368
|
+
}, ee = no(ro({}, xe), {
|
|
4369
|
+
set: io
|
|
4356
4370
|
}), Be = (e) => {
|
|
4357
4371
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4358
|
-
return (
|
|
4359
|
-
const i = JSON.stringify(
|
|
4360
|
-
return i in t ? t[i] : t[i] = e(
|
|
4372
|
+
return (n) => {
|
|
4373
|
+
const i = JSON.stringify(n);
|
|
4374
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4361
4375
|
};
|
|
4362
4376
|
};
|
|
4363
|
-
var
|
|
4364
|
-
for (var
|
|
4365
|
-
|
|
4377
|
+
var oo = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4378
|
+
for (var r in t || (t = {}))
|
|
4379
|
+
Hr.call(t, r) && Gt(e, r, t[r]);
|
|
4366
4380
|
if (Ee)
|
|
4367
|
-
for (var
|
|
4368
|
-
|
|
4381
|
+
for (var r of Ee(t))
|
|
4382
|
+
Cr.call(t, r) && Gt(e, r, t[r]);
|
|
4369
4383
|
return e;
|
|
4370
4384
|
}, te = (e, t) => {
|
|
4371
|
-
var
|
|
4372
|
-
for (var
|
|
4373
|
-
|
|
4385
|
+
var r = {};
|
|
4386
|
+
for (var n in e)
|
|
4387
|
+
Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4374
4388
|
if (e != null && Ee)
|
|
4375
|
-
for (var
|
|
4376
|
-
t.indexOf(
|
|
4377
|
-
return
|
|
4389
|
+
for (var n of Ee(e))
|
|
4390
|
+
t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
|
|
4391
|
+
return r;
|
|
4378
4392
|
};
|
|
4379
4393
|
const ue = (e, t) => {
|
|
4380
|
-
const { formats:
|
|
4381
|
-
if (e in
|
|
4382
|
-
return
|
|
4394
|
+
const { formats: r } = Y();
|
|
4395
|
+
if (e in r && t in r[e])
|
|
4396
|
+
return r[e][t];
|
|
4383
4397
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4384
|
-
},
|
|
4398
|
+
}, so = Be(
|
|
4385
4399
|
(e) => {
|
|
4386
|
-
var t = e, { locale:
|
|
4387
|
-
if (
|
|
4400
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4401
|
+
if (r == null)
|
|
4388
4402
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4389
|
-
return
|
|
4403
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
4390
4404
|
}
|
|
4391
|
-
),
|
|
4405
|
+
), ao = Be(
|
|
4392
4406
|
(e) => {
|
|
4393
|
-
var t = e, { locale:
|
|
4394
|
-
if (
|
|
4407
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4408
|
+
if (r == null)
|
|
4395
4409
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4396
|
-
return
|
|
4410
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4397
4411
|
}
|
|
4398
|
-
),
|
|
4412
|
+
), uo = Be(
|
|
4399
4413
|
(e) => {
|
|
4400
|
-
var t = e, { locale:
|
|
4401
|
-
if (
|
|
4414
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4415
|
+
if (r == null)
|
|
4402
4416
|
throw new Error(
|
|
4403
4417
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4404
4418
|
);
|
|
4405
|
-
return
|
|
4419
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4406
4420
|
}
|
|
4407
|
-
),
|
|
4421
|
+
), lo = (e = {}) => {
|
|
4408
4422
|
var t = e, {
|
|
4409
|
-
locale:
|
|
4410
|
-
} = t,
|
|
4423
|
+
locale: r = F()
|
|
4424
|
+
} = t, n = te(t, [
|
|
4411
4425
|
"locale"
|
|
4412
4426
|
]);
|
|
4413
|
-
return
|
|
4414
|
-
},
|
|
4427
|
+
return so(lt({ locale: r }, n));
|
|
4428
|
+
}, ho = (e = {}) => {
|
|
4415
4429
|
var t = e, {
|
|
4416
|
-
locale:
|
|
4417
|
-
} = t,
|
|
4430
|
+
locale: r = F()
|
|
4431
|
+
} = t, n = te(t, [
|
|
4418
4432
|
"locale"
|
|
4419
4433
|
]);
|
|
4420
|
-
return
|
|
4421
|
-
},
|
|
4434
|
+
return ao(lt({ locale: r }, n));
|
|
4435
|
+
}, co = (e = {}) => {
|
|
4422
4436
|
var t = e, {
|
|
4423
|
-
locale:
|
|
4424
|
-
} = t,
|
|
4437
|
+
locale: r = F()
|
|
4438
|
+
} = t, n = te(t, [
|
|
4425
4439
|
"locale"
|
|
4426
4440
|
]);
|
|
4427
|
-
return
|
|
4428
|
-
},
|
|
4441
|
+
return uo(lt({ locale: r }, n));
|
|
4442
|
+
}, fo = Be(
|
|
4429
4443
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4430
|
-
(e, t = F()) => new
|
|
4444
|
+
(e, t = F()) => new Ui(e, t, Y().formats, {
|
|
4431
4445
|
ignoreTag: Y().ignoreTag
|
|
4432
4446
|
})
|
|
4433
|
-
),
|
|
4434
|
-
var
|
|
4447
|
+
), mo = (e, t = {}) => {
|
|
4448
|
+
var r, n, i, o;
|
|
4435
4449
|
let a = t;
|
|
4436
4450
|
typeof e == "object" && (a = e, e = a.id);
|
|
4437
4451
|
const {
|
|
@@ -4443,62 +4457,62 @@ const ue = (e, t) => {
|
|
|
4443
4457
|
throw new Error(
|
|
4444
4458
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4445
4459
|
);
|
|
4446
|
-
let h =
|
|
4460
|
+
let h = xr(e, l);
|
|
4447
4461
|
if (!h)
|
|
4448
|
-
h = (o = (i = (
|
|
4462
|
+
h = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4449
4463
|
else if (typeof h != "string")
|
|
4450
4464
|
return console.warn(
|
|
4451
4465
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4452
4466
|
), h;
|
|
4453
4467
|
if (!s)
|
|
4454
4468
|
return h;
|
|
4455
|
-
let
|
|
4469
|
+
let c = h;
|
|
4456
4470
|
try {
|
|
4457
|
-
|
|
4458
|
-
} catch (
|
|
4459
|
-
|
|
4471
|
+
c = fo(h, l).format(s);
|
|
4472
|
+
} catch (f) {
|
|
4473
|
+
f instanceof Error && console.warn(
|
|
4460
4474
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4461
|
-
|
|
4475
|
+
f.message
|
|
4462
4476
|
);
|
|
4463
4477
|
}
|
|
4464
|
-
return
|
|
4465
|
-
},
|
|
4466
|
-
K([ee], () => co);
|
|
4467
|
-
K([ee], () => mo);
|
|
4478
|
+
return c;
|
|
4479
|
+
}, po = (e, t) => co(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), yo = (e, t = F()) => xr(e, t), vo = K([ee, he], () => mo);
|
|
4468
4480
|
K([ee], () => po);
|
|
4469
|
-
K([ee
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4481
|
+
K([ee], () => bo);
|
|
4482
|
+
K([ee], () => go);
|
|
4483
|
+
K([ee, he], () => yo);
|
|
4484
|
+
window.emWidgets = { topic: On };
|
|
4485
|
+
const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4486
|
+
function xo(e, t) {
|
|
4473
4487
|
if (e) {
|
|
4474
|
-
const
|
|
4475
|
-
|
|
4488
|
+
const r = document.createElement("style");
|
|
4489
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4476
4490
|
}
|
|
4477
4491
|
}
|
|
4478
|
-
function
|
|
4479
|
-
const
|
|
4480
|
-
fetch(
|
|
4492
|
+
function Eo(e, t) {
|
|
4493
|
+
const r = new URL(t);
|
|
4494
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4481
4495
|
const i = document.createElement("style");
|
|
4482
|
-
i.innerHTML =
|
|
4483
|
-
}).catch((
|
|
4484
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4496
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4497
|
+
}).catch((n) => {
|
|
4498
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4485
4499
|
});
|
|
4486
4500
|
}
|
|
4487
|
-
function
|
|
4501
|
+
function wo(e, t, r) {
|
|
4488
4502
|
if (window.emMessageBus) {
|
|
4489
|
-
const
|
|
4503
|
+
const n = document.createElement("style");
|
|
4490
4504
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4491
|
-
|
|
4505
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4492
4506
|
});
|
|
4493
4507
|
}
|
|
4494
4508
|
}
|
|
4495
|
-
function
|
|
4496
|
-
|
|
4509
|
+
function Ut(e, t) {
|
|
4510
|
+
wr(e, t);
|
|
4497
4511
|
}
|
|
4498
|
-
function
|
|
4512
|
+
function So(e) {
|
|
4499
4513
|
ee.set(e);
|
|
4500
4514
|
}
|
|
4501
|
-
const
|
|
4515
|
+
const Dt = {
|
|
4502
4516
|
en: {
|
|
4503
4517
|
cancel: "Cancel",
|
|
4504
4518
|
confirm: "Confirm"
|
|
@@ -4544,57 +4558,57 @@ const Gt = {
|
|
|
4544
4558
|
confirm: "Confirm"
|
|
4545
4559
|
}
|
|
4546
4560
|
};
|
|
4547
|
-
function wo(e) {
|
|
4548
|
-
Vn(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4549
|
-
}
|
|
4550
|
-
const So = (e) => ({}), Ut = (e) => ({});
|
|
4551
4561
|
function To(e) {
|
|
4552
|
-
|
|
4562
|
+
zr(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4563
|
+
}
|
|
4564
|
+
const Ho = (e) => ({}), Ft = (e) => ({});
|
|
4565
|
+
function Co(e) {
|
|
4566
|
+
let t, r;
|
|
4553
4567
|
return {
|
|
4554
4568
|
c() {
|
|
4555
|
-
t =
|
|
4569
|
+
t = bt("svg"), r = bt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4556
4570
|
},
|
|
4557
|
-
m(
|
|
4558
|
-
|
|
4571
|
+
m(n, i) {
|
|
4572
|
+
ot(n, t, i), P(t, r);
|
|
4559
4573
|
},
|
|
4560
4574
|
p: I,
|
|
4561
|
-
d(
|
|
4562
|
-
|
|
4575
|
+
d(n) {
|
|
4576
|
+
n && le(t);
|
|
4563
4577
|
}
|
|
4564
4578
|
};
|
|
4565
4579
|
}
|
|
4566
|
-
function
|
|
4567
|
-
let t,
|
|
4580
|
+
function Bo(e) {
|
|
4581
|
+
let t, r, n, i, o, a, s, l, u, h = (
|
|
4568
4582
|
/*$_*/
|
|
4569
4583
|
e[2]("cancel") + ""
|
|
4570
|
-
),
|
|
4584
|
+
), c, f, p, m = (
|
|
4571
4585
|
/*$_*/
|
|
4572
4586
|
e[2]("confirm") + ""
|
|
4573
|
-
),
|
|
4574
|
-
const
|
|
4587
|
+
), d, v, T, C;
|
|
4588
|
+
const S = (
|
|
4575
4589
|
/*#slots*/
|
|
4576
4590
|
e[14].close
|
|
4577
|
-
), B =
|
|
4578
|
-
|
|
4591
|
+
), B = Dr(
|
|
4592
|
+
S,
|
|
4579
4593
|
e,
|
|
4580
4594
|
/*$$scope*/
|
|
4581
4595
|
e[13],
|
|
4582
|
-
|
|
4583
|
-
),
|
|
4596
|
+
Ft
|
|
4597
|
+
), w = B || Co();
|
|
4584
4598
|
return {
|
|
4585
4599
|
c() {
|
|
4586
|
-
t = M("div"),
|
|
4600
|
+
t = M("div"), r = M("div"), n = M("span"), w && w.c(), i = Pe(), o = M("div"), a = ie(
|
|
4587
4601
|
/*modaltext*/
|
|
4588
4602
|
e[0]
|
|
4589
|
-
), s = Pe(), l = M("div"), u = M("button"),
|
|
4590
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(
|
|
4603
|
+
), s = Pe(), l = M("div"), u = M("button"), c = ie(h), f = Pe(), p = M("button"), d = ie(m), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(o, "class", "GamingLimitsConfirmationContent"), H(u, "class", "GamingLimitsCancelButton"), H(p, "class", "GamingLimitsConfirmButton"), H(l, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4604
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4591
4605
|
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4592
4606
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4593
4607
|
},
|
|
4594
|
-
m(
|
|
4595
|
-
|
|
4608
|
+
m(x, L) {
|
|
4609
|
+
ot(x, t, L), P(t, r), P(r, n), w && w.m(n, null), P(r, i), P(r, o), P(o, a), P(r, s), P(r, l), P(l, u), P(u, c), P(l, f), P(l, p), P(p, d), e[15](t), v = !0, T || (C = [
|
|
4596
4610
|
Le(
|
|
4597
|
-
|
|
4611
|
+
n,
|
|
4598
4612
|
"click",
|
|
4599
4613
|
/*close*/
|
|
4600
4614
|
e[4]
|
|
@@ -4606,72 +4620,72 @@ function Ho(e) {
|
|
|
4606
4620
|
e[6]
|
|
4607
4621
|
),
|
|
4608
4622
|
Le(
|
|
4609
|
-
|
|
4623
|
+
p,
|
|
4610
4624
|
"click",
|
|
4611
4625
|
/*confirmChanges*/
|
|
4612
4626
|
e[5]
|
|
4613
4627
|
)
|
|
4614
4628
|
], T = !0);
|
|
4615
4629
|
},
|
|
4616
|
-
p(
|
|
4630
|
+
p(x, [L]) {
|
|
4617
4631
|
B && B.p && (!v || L & /*$$scope*/
|
|
4618
|
-
8192) &&
|
|
4632
|
+
8192) && jr(
|
|
4619
4633
|
B,
|
|
4620
|
-
|
|
4621
|
-
|
|
4634
|
+
S,
|
|
4635
|
+
x,
|
|
4622
4636
|
/*$$scope*/
|
|
4623
|
-
|
|
4624
|
-
v ?
|
|
4625
|
-
|
|
4637
|
+
x[13],
|
|
4638
|
+
v ? Fr(
|
|
4639
|
+
S,
|
|
4626
4640
|
/*$$scope*/
|
|
4627
|
-
|
|
4641
|
+
x[13],
|
|
4628
4642
|
L,
|
|
4629
|
-
|
|
4630
|
-
) :
|
|
4643
|
+
Ho
|
|
4644
|
+
) : kr(
|
|
4631
4645
|
/*$$scope*/
|
|
4632
|
-
|
|
4646
|
+
x[13]
|
|
4633
4647
|
),
|
|
4634
|
-
|
|
4648
|
+
Ft
|
|
4635
4649
|
), (!v || L & /*modaltext*/
|
|
4636
4650
|
1) && Oe(
|
|
4637
4651
|
a,
|
|
4638
4652
|
/*modaltext*/
|
|
4639
|
-
|
|
4653
|
+
x[0]
|
|
4640
4654
|
), (!v || L & /*$_*/
|
|
4641
4655
|
4) && h !== (h = /*$_*/
|
|
4642
|
-
|
|
4656
|
+
x[2]("cancel") + "") && Oe(c, h), (!v || L & /*$_*/
|
|
4643
4657
|
4) && m !== (m = /*$_*/
|
|
4644
|
-
|
|
4658
|
+
x[2]("confirm") + "") && Oe(d, m);
|
|
4645
4659
|
},
|
|
4646
|
-
i(
|
|
4647
|
-
v || (
|
|
4660
|
+
i(x) {
|
|
4661
|
+
v || (Qt(w, x), v = !0);
|
|
4648
4662
|
},
|
|
4649
|
-
o(
|
|
4650
|
-
|
|
4663
|
+
o(x) {
|
|
4664
|
+
ln(w, x), v = !1;
|
|
4651
4665
|
},
|
|
4652
|
-
d(
|
|
4653
|
-
|
|
4666
|
+
d(x) {
|
|
4667
|
+
x && le(t), w && w.d(x), e[15](null), T = !1, D(C);
|
|
4654
4668
|
}
|
|
4655
4669
|
};
|
|
4656
4670
|
}
|
|
4657
|
-
function
|
|
4658
|
-
let
|
|
4659
|
-
|
|
4660
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource:
|
|
4661
|
-
const
|
|
4662
|
-
fetch(
|
|
4663
|
-
Object.keys(j).forEach((
|
|
4664
|
-
|
|
4671
|
+
function Ao(e, t, r) {
|
|
4672
|
+
let n;
|
|
4673
|
+
Ur(e, vo, (g) => r(2, n = g));
|
|
4674
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4675
|
+
const p = () => {
|
|
4676
|
+
fetch(f).then((j) => j.json()).then((j) => {
|
|
4677
|
+
Object.keys(j).forEach((ht) => {
|
|
4678
|
+
Ut(ht, j[ht]);
|
|
4665
4679
|
});
|
|
4666
4680
|
}).catch((j) => {
|
|
4667
4681
|
console.log(j);
|
|
4668
4682
|
});
|
|
4669
4683
|
};
|
|
4670
|
-
Object.keys(
|
|
4671
|
-
|
|
4684
|
+
Object.keys(Dt).forEach((g) => {
|
|
4685
|
+
Ut(g, Dt[g]);
|
|
4672
4686
|
});
|
|
4673
|
-
let m,
|
|
4674
|
-
const
|
|
4687
|
+
let m, d = window.navigator.userAgent, v = _o(d) !== "PC", T = {}, C = "";
|
|
4688
|
+
const S = () => {
|
|
4675
4689
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4676
4690
|
}, B = () => {
|
|
4677
4691
|
s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
|
|
@@ -4682,62 +4696,62 @@ function Co(e, t, n) {
|
|
|
4682
4696
|
},
|
|
4683
4697
|
window.location.href
|
|
4684
4698
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4685
|
-
},
|
|
4699
|
+
}, w = () => {
|
|
4686
4700
|
s === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : s === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4687
|
-
},
|
|
4701
|
+
}, x = (g) => g === "Time Limit" ? "cumulativeSessionLimits" : g === "Deposit Limit" ? "depositLimits" : g === "Wagering Limit" ? "wageringLimit" : "lossLimit", L = (g) => {
|
|
4688
4702
|
if (g.data)
|
|
4689
4703
|
switch (g.data.type) {
|
|
4690
4704
|
case "DeleteLimitsItem":
|
|
4691
|
-
T = g.data.removeData, C =
|
|
4705
|
+
T = g.data.removeData, C = x(g.data.removeName);
|
|
4692
4706
|
break;
|
|
4693
4707
|
}
|
|
4694
|
-
},
|
|
4695
|
-
|
|
4708
|
+
}, Ar = () => {
|
|
4709
|
+
So(l);
|
|
4696
4710
|
};
|
|
4697
|
-
|
|
4711
|
+
rn(() => (window.addEventListener("message", L, !1), () => {
|
|
4698
4712
|
window.removeEventListener("message", L);
|
|
4699
4713
|
}));
|
|
4700
|
-
function
|
|
4701
|
-
|
|
4702
|
-
m = g,
|
|
4714
|
+
function Pr(g) {
|
|
4715
|
+
je[g ? "unshift" : "push"](() => {
|
|
4716
|
+
m = g, r(1, m);
|
|
4703
4717
|
});
|
|
4704
4718
|
}
|
|
4705
4719
|
return e.$$set = (g) => {
|
|
4706
|
-
"modaltext" in g &&
|
|
4720
|
+
"modaltext" in g && r(0, a = g.modaltext), "modalsource" in g && r(7, s = g.modalsource), "lang" in g && r(8, l = g.lang), "clientstyling" in g && r(9, u = g.clientstyling), "clientstylingurl" in g && r(10, h = g.clientstylingurl), "mbsource" in g && r(11, c = g.mbsource), "translationurl" in g && r(12, f = g.translationurl), "$$scope" in g && r(13, o = g.$$scope);
|
|
4707
4721
|
}, e.$$.update = () => {
|
|
4708
4722
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4709
|
-
385 && a && s && l &&
|
|
4710
|
-
514 && u && m &&
|
|
4711
|
-
1026 && h && m &&
|
|
4712
|
-
2050 &&
|
|
4713
|
-
4096 &&
|
|
4723
|
+
385 && a && s && l && Ar(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4724
|
+
514 && u && m && xo(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4725
|
+
1026 && h && m && Eo(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4726
|
+
2050 && c && m && wo(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4727
|
+
4096 && f && p();
|
|
4714
4728
|
}, [
|
|
4715
4729
|
a,
|
|
4716
4730
|
m,
|
|
4717
|
-
|
|
4731
|
+
n,
|
|
4718
4732
|
v,
|
|
4719
|
-
w,
|
|
4720
|
-
B,
|
|
4721
4733
|
S,
|
|
4734
|
+
B,
|
|
4735
|
+
w,
|
|
4722
4736
|
s,
|
|
4723
4737
|
l,
|
|
4724
4738
|
u,
|
|
4725
4739
|
h,
|
|
4726
|
-
f,
|
|
4727
4740
|
c,
|
|
4741
|
+
f,
|
|
4728
4742
|
o,
|
|
4729
4743
|
i,
|
|
4730
|
-
|
|
4744
|
+
Pr
|
|
4731
4745
|
];
|
|
4732
4746
|
}
|
|
4733
|
-
class
|
|
4747
|
+
class Br extends bn {
|
|
4734
4748
|
constructor(t) {
|
|
4735
|
-
super(),
|
|
4749
|
+
super(), pn(
|
|
4736
4750
|
this,
|
|
4737
4751
|
t,
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4752
|
+
Ao,
|
|
4753
|
+
Bo,
|
|
4754
|
+
kt,
|
|
4741
4755
|
{
|
|
4742
4756
|
modaltext: 0,
|
|
4743
4757
|
modalsource: 7,
|
|
@@ -4747,7 +4761,7 @@ class Hn extends mr {
|
|
|
4747
4761
|
mbsource: 11,
|
|
4748
4762
|
translationurl: 12
|
|
4749
4763
|
},
|
|
4750
|
-
|
|
4764
|
+
To
|
|
4751
4765
|
);
|
|
4752
4766
|
}
|
|
4753
4767
|
get modaltext() {
|
|
@@ -4793,60 +4807,60 @@ class Hn extends mr {
|
|
|
4793
4807
|
this.$$set({ translationurl: t }), N();
|
|
4794
4808
|
}
|
|
4795
4809
|
}
|
|
4796
|
-
|
|
4797
|
-
const
|
|
4810
|
+
dn(Br, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4811
|
+
const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4798
4812
|
__proto__: null,
|
|
4799
|
-
default:
|
|
4813
|
+
default: Br
|
|
4800
4814
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4801
4815
|
export {
|
|
4802
4816
|
ee as $,
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4817
|
+
Lo as A,
|
|
4818
|
+
Oo as B,
|
|
4819
|
+
Go as C,
|
|
4820
|
+
No as D,
|
|
4821
|
+
je as E,
|
|
4822
|
+
xo as F,
|
|
4823
|
+
$o as G,
|
|
4824
|
+
_e as H,
|
|
4825
|
+
Ro as I,
|
|
4812
4826
|
we as J,
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4827
|
+
vo as K,
|
|
4828
|
+
$r as L,
|
|
4829
|
+
Qt as M,
|
|
4830
|
+
ln as N,
|
|
4831
|
+
Do as O,
|
|
4832
|
+
Dr as P,
|
|
4833
|
+
jr as Q,
|
|
4834
|
+
kr as R,
|
|
4835
|
+
bn as S,
|
|
4836
|
+
Fr as T,
|
|
4837
|
+
Fo as U,
|
|
4838
|
+
Uo as V,
|
|
4839
|
+
ko as W,
|
|
4840
|
+
wr as a,
|
|
4841
|
+
zr as b,
|
|
4842
|
+
dn as c,
|
|
4829
4843
|
Pe as d,
|
|
4830
4844
|
M as e,
|
|
4831
4845
|
N as f,
|
|
4832
|
-
|
|
4846
|
+
bt as g,
|
|
4833
4847
|
H as h,
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4848
|
+
pn as i,
|
|
4849
|
+
Mo as j,
|
|
4850
|
+
ot as k,
|
|
4837
4851
|
P as l,
|
|
4838
4852
|
Le as m,
|
|
4839
4853
|
Oe as n,
|
|
4840
4854
|
I as o,
|
|
4841
|
-
|
|
4855
|
+
Io as p,
|
|
4842
4856
|
le as q,
|
|
4843
4857
|
D as r,
|
|
4844
|
-
|
|
4858
|
+
kt as s,
|
|
4845
4859
|
ie as t,
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4860
|
+
Ur as u,
|
|
4861
|
+
_o as v,
|
|
4862
|
+
rn as w,
|
|
4863
|
+
Eo as x,
|
|
4864
|
+
wo as y,
|
|
4865
|
+
jo as z
|
|
4852
4866
|
};
|