@everymatrix/player-account-review-frequency 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountReviewFrequency-BJTdLDwm.cjs +21 -0
- package/components/{PlayerAccountReviewFrequency-CnLig5-N.js → PlayerAccountReviewFrequency-DfCXWa6T.js} +744 -765
- package/components/{PlayerAccountReviewFrequency-Cz0AO7eX.js → PlayerAccountReviewFrequency-DvtAkr5h.js} +743 -764
- package/es2015/player-account-review-frequency.cjs +1 -1
- package/es2015/player-account-review-frequency.js +1 -1
- package/esnext/player-account-review-frequency.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CMoQ4Pov.js +503 -0
- package/stencil/index-b2193545-CQaBo5im.cjs +1 -0
- package/stencil/index-b2193545-DvP9W4Go.js +519 -0
- package/stencil/{ui-skeleton-BreIU6e5.cjs → ui-skeleton-C7KTfaPd.cjs} +1 -1
- package/stencil/{ui-skeleton-W50o8tfg.js → ui-skeleton-Cn9Rv2BY.js} +2 -2
- package/stencil/{ui-skeleton-xXZA3rYO.js → ui-skeleton-YNoAIoec.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-CVY4B-CP.js → ui-skeleton-ed169f8f-BA-lE0xf.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D3TjbVKy.js → ui-skeleton-ed169f8f-b70BXhTZ.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CpiCXJrP.cjs → ui-skeleton-ed169f8f-cGTgZqRU.cjs} +1 -1
- package/components/PlayerAccountReviewFrequency-mujxqbH8.cjs +0 -21
- package/stencil/index-b2193545-9K-aI7zC.cjs +0 -1
- package/stencil/index-b2193545-DsMHU6jb.js +0 -519
- package/stencil/index-b2193545-R7ZoV-kY.js +0 -503
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Hr = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
1
|
+
var wr = Object.defineProperty, Sr = Object.defineProperties;
|
|
2
|
+
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ct = Object.getOwnPropertySymbols;
|
|
4
|
+
var Hr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ie = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Hr.call(t, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Hr.call(t, r) && Ie(e, r, t[r]);
|
|
8
|
+
if (ct)
|
|
9
|
+
for (var r of ct(t))
|
|
10
|
+
Ar.call(t, r) && Ie(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var $ = (e, t, r) => (
|
|
12
|
+
}, ft = (e, t) => Sr(e, Tr(t));
|
|
13
|
+
var $ = (e, t, r) => (Ie(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,28 +27,28 @@ var ye = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
30
|
+
import "../stencil/ui-skeleton-YNoAIoec.js";
|
|
31
31
|
function I() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ft(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function pt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function ae(e) {
|
|
40
|
+
e.forEach(Ft);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ot(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function jt(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Br(e) {
|
|
49
49
|
return Object.keys(e).length === 0;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Gt(e, ...t) {
|
|
52
52
|
if (e == null) {
|
|
53
53
|
for (const n of t)
|
|
54
54
|
n(void 0);
|
|
@@ -57,20 +57,20 @@ function qt(e, ...t) {
|
|
|
57
57
|
const r = e.subscribe(...t);
|
|
58
58
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
e.$$.on_destroy.push(
|
|
60
|
+
function Pr(e, t, r) {
|
|
61
|
+
e.$$.on_destroy.push(Gt(t, r));
|
|
62
62
|
}
|
|
63
63
|
function v(e, t) {
|
|
64
64
|
e.appendChild(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
66
|
+
function Or(e, t, r) {
|
|
67
|
+
const n = Rr(e);
|
|
68
68
|
if (!n.getElementById(t)) {
|
|
69
|
-
const i =
|
|
70
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
const i = S("style");
|
|
70
|
+
i.id = t, i.textContent = r, Mr(n, i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Rr(e) {
|
|
74
74
|
if (!e)
|
|
75
75
|
return document;
|
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,24 +80,24 @@ function Mr(e) {
|
|
|
80
80
|
t
|
|
81
81
|
) : e.ownerDocument;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Mr(e, t) {
|
|
84
84
|
return v(
|
|
85
85
|
/** @type {Document} */
|
|
86
86
|
e.head || e,
|
|
87
87
|
t
|
|
88
88
|
), t.sheet;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function V(e, t, r) {
|
|
91
91
|
e.insertBefore(t, r || null);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function j(e) {
|
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Vt(e, t) {
|
|
97
97
|
for (let r = 0; r < e.length; r += 1)
|
|
98
98
|
e[r] && e[r].d(t);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function S(e) {
|
|
101
101
|
return document.createElement(e);
|
|
102
102
|
}
|
|
103
103
|
function Q(e) {
|
|
@@ -106,7 +106,7 @@ function Q(e) {
|
|
|
106
106
|
function Z(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function F() {
|
|
110
110
|
return Z(" ");
|
|
111
111
|
}
|
|
112
112
|
function Te(e, t, r, n) {
|
|
@@ -115,11 +115,11 @@ function Te(e, t, r, n) {
|
|
|
115
115
|
function _(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function A(e, t, r) {
|
|
119
119
|
const n = t.toLowerCase();
|
|
120
120
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ir(e) {
|
|
123
123
|
let t;
|
|
124
124
|
return {
|
|
125
125
|
/* push */
|
|
@@ -135,14 +135,14 @@ function Nr(e) {
|
|
|
135
135
|
function Cr(e) {
|
|
136
136
|
return Array.from(e.childNodes);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function fe(e, t) {
|
|
139
139
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
140
140
|
t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function dt(e, t) {
|
|
143
143
|
e.value = t == null ? "" : t;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Nr(e) {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.childNodes.forEach(
|
|
148
148
|
/** @param {Element} node */
|
|
@@ -151,90 +151,90 @@ function Lr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
), t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
let de;
|
|
155
|
+
function pe(e) {
|
|
156
|
+
de = e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
158
|
+
function Lr() {
|
|
159
|
+
if (!de)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
|
-
return
|
|
161
|
+
return de;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function $r(e) {
|
|
164
|
+
Lr().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
|
-
const ee = [],
|
|
166
|
+
const ee = [], je = [];
|
|
167
167
|
let te = [];
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
function
|
|
171
|
-
|
|
168
|
+
const mt = [], Dr = /* @__PURE__ */ Promise.resolve();
|
|
169
|
+
let Ge = !1;
|
|
170
|
+
function kr() {
|
|
171
|
+
Ge || (Ge = !0, Dr.then(U));
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ve(e) {
|
|
174
174
|
te.push(e);
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
177
177
|
let Y = 0;
|
|
178
178
|
function U() {
|
|
179
179
|
if (Y !== 0)
|
|
180
180
|
return;
|
|
181
|
-
const e =
|
|
181
|
+
const e = de;
|
|
182
182
|
do {
|
|
183
183
|
try {
|
|
184
184
|
for (; Y < ee.length; ) {
|
|
185
185
|
const t = ee[Y];
|
|
186
|
-
Y++,
|
|
186
|
+
Y++, pe(t), Ur(t.$$);
|
|
187
187
|
}
|
|
188
188
|
} catch (t) {
|
|
189
189
|
throw ee.length = 0, Y = 0, t;
|
|
190
190
|
}
|
|
191
|
-
for (
|
|
192
|
-
|
|
191
|
+
for (pe(null), ee.length = 0, Y = 0; je.length; )
|
|
192
|
+
je.pop()();
|
|
193
193
|
for (let t = 0; t < te.length; t += 1) {
|
|
194
194
|
const r = te[t];
|
|
195
|
-
|
|
195
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
196
196
|
}
|
|
197
197
|
te.length = 0;
|
|
198
198
|
} while (ee.length);
|
|
199
|
-
for (;
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
for (; mt.length; )
|
|
200
|
+
mt.pop()();
|
|
201
|
+
Ge = !1, Ce.clear(), pe(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ur(e) {
|
|
204
204
|
if (e.fragment !== null) {
|
|
205
|
-
e.update(),
|
|
205
|
+
e.update(), ae(e.before_update);
|
|
206
206
|
const t = e.dirty;
|
|
207
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
207
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Fr(e) {
|
|
211
211
|
const t = [], r = [];
|
|
212
212
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
216
|
-
e && e.i && (
|
|
214
|
+
const jr = /* @__PURE__ */ new Set();
|
|
215
|
+
function Gr(e, t) {
|
|
216
|
+
e && e.i && (jr.delete(e), e.i(t));
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function qe(e) {
|
|
219
219
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Vr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), Ve(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(Ft).filter(ot);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach(Ve);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function qr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (ee.push(e),
|
|
232
|
+
function Xr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (ee.push(e), kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const l =
|
|
237
|
-
|
|
235
|
+
function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const l = de;
|
|
237
|
+
pe(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
@@ -242,7 +242,7 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
props: o,
|
|
243
243
|
update: I,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: pt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,7 +251,7 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: pt(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || l.$$.root
|
|
@@ -260,19 +260,19 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
260
260
|
let c = !1;
|
|
261
261
|
if (u.ctx = r ? r(e, t.props || {}, (p, h, ...b) => {
|
|
262
262
|
const m = b.length ? b[0] : h;
|
|
263
|
-
return u.ctx && i(u.ctx[p], u.ctx[p] = m) && (!u.skip_bound && u.bound[p] && u.bound[p](m), c &&
|
|
264
|
-
}) : [], u.update(), c = !0,
|
|
263
|
+
return u.ctx && i(u.ctx[p], u.ctx[p] = m) && (!u.skip_bound && u.bound[p] && u.bound[p](m), c && Xr(e, p)), h;
|
|
264
|
+
}) : [], u.update(), c = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
266
|
const p = Cr(t.target);
|
|
267
|
-
u.fragment && u.fragment.l(p), p.forEach(
|
|
267
|
+
u.fragment && u.fragment.l(p), p.forEach(j);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && Gr(e.$$.fragment), Vr(e, t.target, t.anchor), U();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
pe(l);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let qt;
|
|
275
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
276
276
|
constructor(t, r, n) {
|
|
277
277
|
super();
|
|
278
278
|
/** The Svelte component constructor */
|
|
@@ -316,24 +316,24 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
316
316
|
let s;
|
|
317
317
|
return {
|
|
318
318
|
c: function() {
|
|
319
|
-
s =
|
|
319
|
+
s = S("slot"), o !== "default" && _(s, "name", o);
|
|
320
320
|
},
|
|
321
321
|
/**
|
|
322
322
|
* @param {HTMLElement} target
|
|
323
323
|
* @param {HTMLElement} [anchor]
|
|
324
324
|
*/
|
|
325
325
|
m: function(u, c) {
|
|
326
|
-
|
|
326
|
+
V(u, s, c);
|
|
327
327
|
},
|
|
328
328
|
d: function(u) {
|
|
329
|
-
u &&
|
|
329
|
+
u && j(s);
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
334
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
335
335
|
return;
|
|
336
|
-
const r = {}, n =
|
|
336
|
+
const r = {}, n = Nr(this);
|
|
337
337
|
for (const o of this.$$s)
|
|
338
338
|
o in n && (r[o] = [t(o)]);
|
|
339
339
|
for (const o of this.attributes) {
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
|
344
344
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
345
345
|
this.$$c = new this.$$ctor({
|
|
346
346
|
target: this.shadowRoot || this,
|
|
347
|
-
props:
|
|
347
|
+
props: ft(ht({}, this.$$d), {
|
|
348
348
|
$$slots: r,
|
|
349
349
|
$$scope: {
|
|
350
350
|
ctx: []
|
|
@@ -422,8 +422,8 @@ function xe(e, t, r, n) {
|
|
|
422
422
|
return t;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let s = class extends
|
|
425
|
+
function zr(e, t, r, n, i, o) {
|
|
426
|
+
let s = class extends qt {
|
|
427
427
|
constructor() {
|
|
428
428
|
super(e, r, i), this.$$p_d = t;
|
|
429
429
|
}
|
|
@@ -453,7 +453,7 @@ function Zr(e, t, r, n, i, o) {
|
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
454
|
s, s;
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class Zr {
|
|
457
457
|
constructor() {
|
|
458
458
|
/**
|
|
459
459
|
* ### PRIVATE API
|
|
@@ -474,7 +474,7 @@ class Jr {
|
|
|
474
474
|
}
|
|
475
475
|
/** @returns {void} */
|
|
476
476
|
$destroy() {
|
|
477
|
-
|
|
477
|
+
qr(this, 1), this.$destroy = I;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -483,7 +483,7 @@ class Jr {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, r) {
|
|
486
|
-
if (!
|
|
486
|
+
if (!ot(r))
|
|
487
487
|
return I;
|
|
488
488
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return n.push(r), () => {
|
|
@@ -496,11 +496,11 @@ class Jr {
|
|
|
496
496
|
* @returns {void}
|
|
497
497
|
*/
|
|
498
498
|
$set(t) {
|
|
499
|
-
this.$$set && !
|
|
499
|
+
this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
+
const Jr = "4";
|
|
503
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
504
504
|
/*! *****************************************************************************
|
|
505
505
|
Copyright (c) Microsoft Corporation.
|
|
506
506
|
|
|
@@ -515,24 +515,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
515
515
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
516
516
|
PERFORMANCE OF THIS SOFTWARE.
|
|
517
517
|
***************************************************************************** */
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var Xe = function(e, t) {
|
|
519
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
520
520
|
r.__proto__ = n;
|
|
521
521
|
} || function(r, n) {
|
|
522
522
|
for (var i in n)
|
|
523
523
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
524
|
-
},
|
|
524
|
+
}, Xe(e, t);
|
|
525
525
|
};
|
|
526
|
-
function
|
|
526
|
+
function q(e, t) {
|
|
527
527
|
if (typeof t != "function" && t !== null)
|
|
528
528
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
529
|
-
|
|
529
|
+
Xe(e, t);
|
|
530
530
|
function r() {
|
|
531
531
|
this.constructor = e;
|
|
532
532
|
}
|
|
533
533
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
var x = function() {
|
|
536
|
+
return x = Object.assign || function(t) {
|
|
537
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
538
|
+
r = arguments[n];
|
|
539
|
+
for (var o in r)
|
|
540
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
541
|
+
}
|
|
542
|
+
return t;
|
|
543
|
+
}, x.apply(this, arguments);
|
|
544
|
+
};
|
|
545
|
+
function Qr(e, t) {
|
|
546
|
+
var r = {};
|
|
547
|
+
for (var n in e)
|
|
548
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
549
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
550
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
551
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
552
|
+
return r;
|
|
553
|
+
}
|
|
554
|
+
function We(e) {
|
|
536
555
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
537
556
|
if (r)
|
|
538
557
|
return r.call(e);
|
|
@@ -544,7 +563,7 @@ function Ze(e) {
|
|
|
544
563
|
};
|
|
545
564
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
546
565
|
}
|
|
547
|
-
function
|
|
566
|
+
function ze(e, t) {
|
|
548
567
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
549
568
|
if (!r)
|
|
550
569
|
return e;
|
|
@@ -564,22 +583,22 @@ function Je(e, t) {
|
|
|
564
583
|
}
|
|
565
584
|
return o;
|
|
566
585
|
}
|
|
567
|
-
function
|
|
568
|
-
if (arguments.length === 2)
|
|
586
|
+
function re(e, t, r) {
|
|
587
|
+
if (r || arguments.length === 2)
|
|
569
588
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
570
589
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
571
590
|
return e.concat(o || t);
|
|
572
591
|
}
|
|
573
|
-
function
|
|
592
|
+
function G(e) {
|
|
574
593
|
return typeof e == "function";
|
|
575
594
|
}
|
|
576
|
-
function
|
|
595
|
+
function Xt(e) {
|
|
577
596
|
var t = function(n) {
|
|
578
597
|
Error.call(n), n.stack = new Error().stack;
|
|
579
598
|
}, r = e(t);
|
|
580
599
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
581
600
|
}
|
|
582
|
-
var
|
|
601
|
+
var Ne = Xt(function(e) {
|
|
583
602
|
return function(r) {
|
|
584
603
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
585
604
|
` + r.map(function(n, i) {
|
|
@@ -588,13 +607,13 @@ var $e = zt(function(e) {
|
|
|
588
607
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
589
608
|
};
|
|
590
609
|
});
|
|
591
|
-
function
|
|
610
|
+
function Ze(e, t) {
|
|
592
611
|
if (e) {
|
|
593
612
|
var r = e.indexOf(t);
|
|
594
613
|
0 <= r && e.splice(r, 1);
|
|
595
614
|
}
|
|
596
615
|
}
|
|
597
|
-
var
|
|
616
|
+
var Be = function() {
|
|
598
617
|
function e(t) {
|
|
599
618
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
600
619
|
}
|
|
@@ -606,7 +625,7 @@ var Pe = function() {
|
|
|
606
625
|
if (s)
|
|
607
626
|
if (this._parentage = null, Array.isArray(s))
|
|
608
627
|
try {
|
|
609
|
-
for (var a =
|
|
628
|
+
for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
|
|
610
629
|
var u = l.value;
|
|
611
630
|
u.remove(this);
|
|
612
631
|
}
|
|
@@ -623,22 +642,22 @@ var Pe = function() {
|
|
|
623
642
|
else
|
|
624
643
|
s.remove(this);
|
|
625
644
|
var c = this.initialTeardown;
|
|
626
|
-
if (
|
|
645
|
+
if (G(c))
|
|
627
646
|
try {
|
|
628
647
|
c();
|
|
629
648
|
} catch (f) {
|
|
630
|
-
o = f instanceof
|
|
649
|
+
o = f instanceof Ne ? f.errors : [f];
|
|
631
650
|
}
|
|
632
651
|
var p = this._finalizers;
|
|
633
652
|
if (p) {
|
|
634
653
|
this._finalizers = null;
|
|
635
654
|
try {
|
|
636
|
-
for (var h =
|
|
655
|
+
for (var h = We(p), b = h.next(); !b.done; b = h.next()) {
|
|
637
656
|
var m = b.value;
|
|
638
657
|
try {
|
|
639
|
-
|
|
658
|
+
bt(m);
|
|
640
659
|
} catch (f) {
|
|
641
|
-
o = o != null ? o : [], f instanceof
|
|
660
|
+
o = o != null ? o : [], f instanceof Ne ? o = re(re([], ze(o)), ze(f.errors)) : o.push(f);
|
|
642
661
|
}
|
|
643
662
|
}
|
|
644
663
|
} catch (f) {
|
|
@@ -653,13 +672,13 @@ var Pe = function() {
|
|
|
653
672
|
}
|
|
654
673
|
}
|
|
655
674
|
if (o)
|
|
656
|
-
throw new
|
|
675
|
+
throw new Ne(o);
|
|
657
676
|
}
|
|
658
677
|
}, e.prototype.add = function(t) {
|
|
659
678
|
var r;
|
|
660
679
|
if (t && t !== this)
|
|
661
680
|
if (this.closed)
|
|
662
|
-
|
|
681
|
+
bt(t);
|
|
663
682
|
else {
|
|
664
683
|
if (t instanceof e) {
|
|
665
684
|
if (t.closed || t._hasParent(this))
|
|
@@ -676,52 +695,56 @@ var Pe = function() {
|
|
|
676
695
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
677
696
|
}, e.prototype._removeParent = function(t) {
|
|
678
697
|
var r = this._parentage;
|
|
679
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
698
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
680
699
|
}, e.prototype.remove = function(t) {
|
|
681
700
|
var r = this._finalizers;
|
|
682
|
-
r &&
|
|
701
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
683
702
|
}, e.EMPTY = function() {
|
|
684
703
|
var t = new e();
|
|
685
704
|
return t.closed = !0, t;
|
|
686
705
|
}(), e;
|
|
687
|
-
}(),
|
|
688
|
-
function
|
|
689
|
-
return e instanceof
|
|
690
|
-
}
|
|
691
|
-
function
|
|
692
|
-
|
|
693
|
-
}
|
|
694
|
-
var
|
|
695
|
-
|
|
696
|
-
|
|
706
|
+
}(), Wt = Be.EMPTY;
|
|
707
|
+
function zt(e) {
|
|
708
|
+
return e instanceof Be || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
709
|
+
}
|
|
710
|
+
function bt(e) {
|
|
711
|
+
G(e) ? e() : e.unsubscribe();
|
|
712
|
+
}
|
|
713
|
+
var Zt = {
|
|
714
|
+
onUnhandledError: null,
|
|
715
|
+
onStoppedNotification: null,
|
|
716
|
+
Promise: void 0,
|
|
717
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
718
|
+
useDeprecatedNextContext: !1
|
|
719
|
+
}, Yr = {
|
|
697
720
|
setTimeout: function(e, t) {
|
|
698
721
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
699
722
|
r[n - 2] = arguments[n];
|
|
700
|
-
return setTimeout.apply(void 0,
|
|
723
|
+
return setTimeout.apply(void 0, re([e, t], ze(r)));
|
|
701
724
|
},
|
|
702
725
|
clearTimeout: function(e) {
|
|
703
726
|
return clearTimeout(e);
|
|
704
727
|
},
|
|
705
728
|
delegate: void 0
|
|
706
729
|
};
|
|
707
|
-
function
|
|
708
|
-
|
|
730
|
+
function Kr(e) {
|
|
731
|
+
Yr.setTimeout(function() {
|
|
709
732
|
throw e;
|
|
710
733
|
});
|
|
711
734
|
}
|
|
712
|
-
function
|
|
735
|
+
function vt() {
|
|
713
736
|
}
|
|
714
737
|
function Ee(e) {
|
|
715
738
|
e();
|
|
716
739
|
}
|
|
717
|
-
var
|
|
718
|
-
|
|
740
|
+
var Jt = function(e) {
|
|
741
|
+
q(t, e);
|
|
719
742
|
function t(r) {
|
|
720
743
|
var n = e.call(this) || this;
|
|
721
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
744
|
+
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = nn, n;
|
|
722
745
|
}
|
|
723
746
|
return t.create = function(r, n, i) {
|
|
724
|
-
return new
|
|
747
|
+
return new Je(r, n, i);
|
|
725
748
|
}, t.prototype.next = function(r) {
|
|
726
749
|
this.isStopped || this._next(r);
|
|
727
750
|
}, t.prototype.error = function(r) {
|
|
@@ -745,7 +768,11 @@ var Qt = function(e) {
|
|
|
745
768
|
this.unsubscribe();
|
|
746
769
|
}
|
|
747
770
|
}, t;
|
|
748
|
-
}(
|
|
771
|
+
}(Be), en = Function.prototype.bind;
|
|
772
|
+
function Le(e, t) {
|
|
773
|
+
return en.call(e, t);
|
|
774
|
+
}
|
|
775
|
+
var tn = function() {
|
|
749
776
|
function e(t) {
|
|
750
777
|
this.partialObserver = t;
|
|
751
778
|
}
|
|
@@ -776,29 +803,41 @@ var Qt = function(e) {
|
|
|
776
803
|
ge(r);
|
|
777
804
|
}
|
|
778
805
|
}, e;
|
|
779
|
-
}(),
|
|
780
|
-
|
|
806
|
+
}(), Je = function(e) {
|
|
807
|
+
q(t, e);
|
|
781
808
|
function t(r, n, i) {
|
|
782
809
|
var o = e.call(this) || this, s;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
810
|
+
if (G(r) || !r)
|
|
811
|
+
s = {
|
|
812
|
+
next: r != null ? r : void 0,
|
|
813
|
+
error: n != null ? n : void 0,
|
|
814
|
+
complete: i != null ? i : void 0
|
|
815
|
+
};
|
|
816
|
+
else {
|
|
817
|
+
var a;
|
|
818
|
+
o && Zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
819
|
+
return o.unsubscribe();
|
|
820
|
+
}, s = {
|
|
821
|
+
next: r.next && Le(r.next, a),
|
|
822
|
+
error: r.error && Le(r.error, a),
|
|
823
|
+
complete: r.complete && Le(r.complete, a)
|
|
824
|
+
}) : s = r;
|
|
825
|
+
}
|
|
826
|
+
return o.destination = new tn(s), o;
|
|
788
827
|
}
|
|
789
828
|
return t;
|
|
790
|
-
}(
|
|
829
|
+
}(Jt);
|
|
791
830
|
function ge(e) {
|
|
792
|
-
|
|
831
|
+
Kr(e);
|
|
793
832
|
}
|
|
794
833
|
function rn(e) {
|
|
795
834
|
throw e;
|
|
796
835
|
}
|
|
797
836
|
var nn = {
|
|
798
837
|
closed: !0,
|
|
799
|
-
next:
|
|
838
|
+
next: vt,
|
|
800
839
|
error: rn,
|
|
801
|
-
complete:
|
|
840
|
+
complete: vt
|
|
802
841
|
}, on = function() {
|
|
803
842
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
804
843
|
}();
|
|
@@ -812,7 +851,7 @@ function an(e) {
|
|
|
812
851
|
}, r);
|
|
813
852
|
};
|
|
814
853
|
}
|
|
815
|
-
var
|
|
854
|
+
var yt = function() {
|
|
816
855
|
function e(t) {
|
|
817
856
|
t && (this._subscribe = t);
|
|
818
857
|
}
|
|
@@ -820,7 +859,7 @@ var _t = function() {
|
|
|
820
859
|
var r = new e();
|
|
821
860
|
return r.source = this, r.operator = t, r;
|
|
822
861
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
823
|
-
var i = this, o = ln(t) ? t : new
|
|
862
|
+
var i = this, o = ln(t) ? t : new Je(t, r, n);
|
|
824
863
|
return Ee(function() {
|
|
825
864
|
var s = i, a = s.operator, l = s.source;
|
|
826
865
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -833,8 +872,8 @@ var _t = function() {
|
|
|
833
872
|
}
|
|
834
873
|
}, e.prototype.forEach = function(t, r) {
|
|
835
874
|
var n = this;
|
|
836
|
-
return r =
|
|
837
|
-
var s = new
|
|
875
|
+
return r = gt(r), new r(function(i, o) {
|
|
876
|
+
var s = new Je({
|
|
838
877
|
next: function(a) {
|
|
839
878
|
try {
|
|
840
879
|
t(a);
|
|
@@ -858,7 +897,7 @@ var _t = function() {
|
|
|
858
897
|
return an(t)(this);
|
|
859
898
|
}, e.prototype.toPromise = function(t) {
|
|
860
899
|
var r = this;
|
|
861
|
-
return t =
|
|
900
|
+
return t = gt(t), new t(function(n, i) {
|
|
862
901
|
var o;
|
|
863
902
|
r.subscribe(function(s) {
|
|
864
903
|
return o = s;
|
|
@@ -872,28 +911,28 @@ var _t = function() {
|
|
|
872
911
|
return new e(t);
|
|
873
912
|
}, e;
|
|
874
913
|
}();
|
|
875
|
-
function
|
|
914
|
+
function gt(e) {
|
|
876
915
|
var t;
|
|
877
|
-
return (t = e != null ? e :
|
|
916
|
+
return (t = e != null ? e : Zt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
878
917
|
}
|
|
879
918
|
function un(e) {
|
|
880
|
-
return e &&
|
|
919
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
881
920
|
}
|
|
882
921
|
function ln(e) {
|
|
883
|
-
return e && e instanceof
|
|
922
|
+
return e && e instanceof Jt || un(e) && zt(e);
|
|
884
923
|
}
|
|
885
|
-
var cn =
|
|
924
|
+
var cn = Xt(function(e) {
|
|
886
925
|
return function() {
|
|
887
926
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
888
927
|
};
|
|
889
|
-
}),
|
|
890
|
-
|
|
928
|
+
}), Qt = function(e) {
|
|
929
|
+
q(t, e);
|
|
891
930
|
function t() {
|
|
892
931
|
var r = e.call(this) || this;
|
|
893
932
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
894
933
|
}
|
|
895
934
|
return t.prototype.lift = function(r) {
|
|
896
|
-
var n = new
|
|
935
|
+
var n = new _t(this, this);
|
|
897
936
|
return n.operator = r, n;
|
|
898
937
|
}, t.prototype._throwIfClosed = function() {
|
|
899
938
|
if (this.closed)
|
|
@@ -905,7 +944,7 @@ var cn = zt(function(e) {
|
|
|
905
944
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
906
945
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
907
946
|
try {
|
|
908
|
-
for (var s =
|
|
947
|
+
for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
909
948
|
var l = a.value;
|
|
910
949
|
l.next(r);
|
|
911
950
|
}
|
|
@@ -954,20 +993,20 @@ var cn = zt(function(e) {
|
|
|
954
993
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
955
994
|
}, t.prototype._innerSubscribe = function(r) {
|
|
956
995
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
957
|
-
return o || s ?
|
|
958
|
-
n.currentObservers = null,
|
|
996
|
+
return o || s ? Wt : (this.currentObservers = null, a.push(r), new Be(function() {
|
|
997
|
+
n.currentObservers = null, Ze(a, r);
|
|
959
998
|
}));
|
|
960
999
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
961
1000
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
962
1001
|
i ? r.error(o) : s && r.complete();
|
|
963
1002
|
}, t.prototype.asObservable = function() {
|
|
964
|
-
var r = new
|
|
1003
|
+
var r = new yt();
|
|
965
1004
|
return r.source = this, r;
|
|
966
1005
|
}, t.create = function(r, n) {
|
|
967
|
-
return new
|
|
1006
|
+
return new _t(r, n);
|
|
968
1007
|
}, t;
|
|
969
|
-
}(
|
|
970
|
-
|
|
1008
|
+
}(yt), _t = function(e) {
|
|
1009
|
+
q(t, e);
|
|
971
1010
|
function t(r, n) {
|
|
972
1011
|
var i = e.call(this) || this;
|
|
973
1012
|
return i.destination = r, i.source = n, i;
|
|
@@ -983,17 +1022,17 @@ var cn = zt(function(e) {
|
|
|
983
1022
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
984
1023
|
}, t.prototype._subscribe = function(r) {
|
|
985
1024
|
var n, i;
|
|
986
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1025
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Wt;
|
|
987
1026
|
}, t;
|
|
988
|
-
}(
|
|
1027
|
+
}(Qt), Yt = {
|
|
989
1028
|
now: function() {
|
|
990
|
-
return (
|
|
1029
|
+
return (Yt.delegate || Date).now();
|
|
991
1030
|
},
|
|
992
1031
|
delegate: void 0
|
|
993
1032
|
}, hn = function(e) {
|
|
994
|
-
|
|
1033
|
+
q(t, e);
|
|
995
1034
|
function t(r, n, i) {
|
|
996
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1035
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
|
|
997
1036
|
var o = e.call(this) || this;
|
|
998
1037
|
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;
|
|
999
1038
|
}
|
|
@@ -1013,24 +1052,24 @@ var cn = zt(function(e) {
|
|
|
1013
1052
|
u && o.splice(0, u + 1);
|
|
1014
1053
|
}
|
|
1015
1054
|
}, t;
|
|
1016
|
-
}(
|
|
1017
|
-
const
|
|
1018
|
-
if (
|
|
1055
|
+
}(Qt);
|
|
1056
|
+
const xt = [], Et = {}, fn = (e, t = 0) => {
|
|
1057
|
+
if (xt.indexOf(e) == -1) {
|
|
1019
1058
|
const r = new hn(t);
|
|
1020
|
-
|
|
1059
|
+
Et[e] = r, xt.push(e);
|
|
1021
1060
|
}
|
|
1022
|
-
return
|
|
1061
|
+
return Et[e];
|
|
1023
1062
|
}, K = [];
|
|
1024
1063
|
function pn(e, t) {
|
|
1025
1064
|
return {
|
|
1026
|
-
subscribe:
|
|
1065
|
+
subscribe: Pe(e, t).subscribe
|
|
1027
1066
|
};
|
|
1028
1067
|
}
|
|
1029
|
-
function
|
|
1068
|
+
function Pe(e, t = I) {
|
|
1030
1069
|
let r;
|
|
1031
1070
|
const n = /* @__PURE__ */ new Set();
|
|
1032
1071
|
function i(a) {
|
|
1033
|
-
if (
|
|
1072
|
+
if (jt(e, a) && (e = a, r)) {
|
|
1034
1073
|
const l = !K.length;
|
|
1035
1074
|
for (const u of n)
|
|
1036
1075
|
u[1](), K.push(u, e);
|
|
@@ -1052,7 +1091,7 @@ function Oe(e, t = I) {
|
|
|
1052
1091
|
}
|
|
1053
1092
|
return { set: i, update: o, subscribe: s };
|
|
1054
1093
|
}
|
|
1055
|
-
function
|
|
1094
|
+
function ue(e, t, r) {
|
|
1056
1095
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1057
1096
|
if (!i.every(Boolean))
|
|
1058
1097
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1066,12 +1105,12 @@ function ae(e, t, r) {
|
|
|
1066
1105
|
return;
|
|
1067
1106
|
p();
|
|
1068
1107
|
const m = t(n ? u[0] : u, s, a);
|
|
1069
|
-
o ? s(m) : p =
|
|
1108
|
+
o ? s(m) : p = ot(m) ? m : I;
|
|
1070
1109
|
}, b = i.map(
|
|
1071
|
-
(m, f) =>
|
|
1110
|
+
(m, f) => Gt(
|
|
1072
1111
|
m,
|
|
1073
|
-
(
|
|
1074
|
-
u[f] =
|
|
1112
|
+
(w) => {
|
|
1113
|
+
u[f] = w, c &= ~(1 << f), l && h();
|
|
1075
1114
|
},
|
|
1076
1115
|
() => {
|
|
1077
1116
|
c |= 1 << f;
|
|
@@ -1079,7 +1118,7 @@ function ae(e, t, r) {
|
|
|
1079
1118
|
)
|
|
1080
1119
|
);
|
|
1081
1120
|
return l = !0, h(), function() {
|
|
1082
|
-
|
|
1121
|
+
ae(b), p(), l = !1;
|
|
1083
1122
|
};
|
|
1084
1123
|
});
|
|
1085
1124
|
}
|
|
@@ -1103,29 +1142,29 @@ function _n(e) {
|
|
|
1103
1142
|
function xn(e) {
|
|
1104
1143
|
return Array.isArray(e) ? [] : {};
|
|
1105
1144
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1145
|
+
function me(e, t) {
|
|
1146
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(xn(e), e, t) : e;
|
|
1108
1147
|
}
|
|
1109
1148
|
function En(e, t, r) {
|
|
1110
1149
|
return e.concat(t).map(function(n) {
|
|
1111
|
-
return
|
|
1150
|
+
return me(n, r);
|
|
1112
1151
|
});
|
|
1113
1152
|
}
|
|
1114
1153
|
function wn(e, t) {
|
|
1115
1154
|
if (!t.customMerge)
|
|
1116
|
-
return
|
|
1155
|
+
return ne;
|
|
1117
1156
|
var r = t.customMerge(e);
|
|
1118
|
-
return typeof r == "function" ? r :
|
|
1157
|
+
return typeof r == "function" ? r : ne;
|
|
1119
1158
|
}
|
|
1120
1159
|
function Sn(e) {
|
|
1121
1160
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1122
1161
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1123
1162
|
}) : [];
|
|
1124
1163
|
}
|
|
1125
|
-
function
|
|
1164
|
+
function wt(e) {
|
|
1126
1165
|
return Object.keys(e).concat(Sn(e));
|
|
1127
1166
|
}
|
|
1128
|
-
function
|
|
1167
|
+
function Kt(e, t) {
|
|
1129
1168
|
try {
|
|
1130
1169
|
return t in e;
|
|
1131
1170
|
} catch (r) {
|
|
@@ -1133,179 +1172,129 @@ function er(e, t) {
|
|
|
1133
1172
|
}
|
|
1134
1173
|
}
|
|
1135
1174
|
function Tn(e, t) {
|
|
1136
|
-
return
|
|
1175
|
+
return Kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1137
1176
|
}
|
|
1138
|
-
function
|
|
1177
|
+
function Hn(e, t, r) {
|
|
1139
1178
|
var n = {};
|
|
1140
|
-
return r.isMergeableObject(e) &&
|
|
1141
|
-
n[i] =
|
|
1142
|
-
}),
|
|
1143
|
-
Tn(e, i) || (
|
|
1179
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1180
|
+
n[i] = me(e[i], r);
|
|
1181
|
+
}), wt(t).forEach(function(i) {
|
|
1182
|
+
Tn(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1144
1183
|
}), n;
|
|
1145
1184
|
}
|
|
1146
|
-
function
|
|
1147
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || En, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified =
|
|
1185
|
+
function ne(e, t, r) {
|
|
1186
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || En, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1148
1187
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1149
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1188
|
+
return o ? n ? r.arrayMerge(e, t, r) : Hn(e, t, r) : me(t, r);
|
|
1150
1189
|
}
|
|
1151
|
-
|
|
1190
|
+
ne.all = function(t, r) {
|
|
1152
1191
|
if (!Array.isArray(t))
|
|
1153
1192
|
throw new Error("first argument should be an array");
|
|
1154
1193
|
return t.reduce(function(n, i) {
|
|
1155
|
-
return
|
|
1194
|
+
return ne(n, i, r);
|
|
1156
1195
|
}, {});
|
|
1157
1196
|
};
|
|
1158
|
-
var
|
|
1197
|
+
var An = ne, Bn = An;
|
|
1159
1198
|
const Pn = /* @__PURE__ */ dn(Bn);
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
r.__proto__ = n;
|
|
1163
|
-
} || function(r, n) {
|
|
1164
|
-
for (var i in n)
|
|
1165
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1166
|
-
}, et(e, t);
|
|
1167
|
-
};
|
|
1168
|
-
function Re(e, t) {
|
|
1169
|
-
if (typeof t != "function" && t !== null)
|
|
1170
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1171
|
-
et(e, t);
|
|
1172
|
-
function r() {
|
|
1173
|
-
this.constructor = e;
|
|
1174
|
-
}
|
|
1175
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1176
|
-
}
|
|
1177
|
-
var F = function() {
|
|
1178
|
-
return F = Object.assign || function(t) {
|
|
1179
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1180
|
-
r = arguments[n];
|
|
1181
|
-
for (var o in r)
|
|
1182
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1183
|
-
}
|
|
1184
|
-
return t;
|
|
1185
|
-
}, F.apply(this, arguments);
|
|
1186
|
-
};
|
|
1187
|
-
function On(e, t) {
|
|
1188
|
-
var r = {};
|
|
1189
|
-
for (var n in e)
|
|
1190
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1191
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1192
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1193
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1194
|
-
return r;
|
|
1195
|
-
}
|
|
1196
|
-
function De(e, t, r) {
|
|
1197
|
-
if (r || arguments.length === 2)
|
|
1198
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1199
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1200
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1201
|
-
}
|
|
1202
|
-
function ke(e, t) {
|
|
1203
|
-
var r = t && t.cache ? t.cache : $n, n = t && t.serializer ? t.serializer : Cn, i = t && t.strategy ? t.strategy : In;
|
|
1199
|
+
function $e(e, t) {
|
|
1200
|
+
var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : Cn, i = t && t.strategy ? t.strategy : Rn;
|
|
1204
1201
|
return i(e, {
|
|
1205
1202
|
cache: r,
|
|
1206
1203
|
serializer: n
|
|
1207
1204
|
});
|
|
1208
1205
|
}
|
|
1209
|
-
function
|
|
1206
|
+
function On(e) {
|
|
1210
1207
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1211
1208
|
}
|
|
1212
|
-
function
|
|
1213
|
-
var i =
|
|
1209
|
+
function er(e, t, r, n) {
|
|
1210
|
+
var i = On(n) ? n : r(n), o = t.get(i);
|
|
1214
1211
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1215
1212
|
}
|
|
1216
1213
|
function tr(e, t, r) {
|
|
1217
1214
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1218
1215
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1219
1216
|
}
|
|
1220
|
-
function
|
|
1217
|
+
function st(e, t, r, n, i) {
|
|
1221
1218
|
return r.bind(t, e, n, i);
|
|
1222
1219
|
}
|
|
1223
|
-
function
|
|
1224
|
-
var r = e.length === 1 ?
|
|
1225
|
-
return
|
|
1220
|
+
function Rn(e, t) {
|
|
1221
|
+
var r = e.length === 1 ? er : tr;
|
|
1222
|
+
return st(e, this, r, t.cache.create(), t.serializer);
|
|
1226
1223
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1224
|
+
function Mn(e, t) {
|
|
1225
|
+
return st(e, this, tr, t.cache.create(), t.serializer);
|
|
1226
|
+
}
|
|
1227
|
+
function In(e, t) {
|
|
1228
|
+
return st(e, this, er, t.cache.create(), t.serializer);
|
|
1229
1229
|
}
|
|
1230
1230
|
var Cn = function() {
|
|
1231
1231
|
return JSON.stringify(arguments);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}()
|
|
1244
|
-
), $n = {
|
|
1232
|
+
};
|
|
1233
|
+
function at() {
|
|
1234
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1235
|
+
}
|
|
1236
|
+
at.prototype.get = function(e) {
|
|
1237
|
+
return this.cache[e];
|
|
1238
|
+
};
|
|
1239
|
+
at.prototype.set = function(e, t) {
|
|
1240
|
+
this.cache[e] = t;
|
|
1241
|
+
};
|
|
1242
|
+
var Nn = {
|
|
1245
1243
|
create: function() {
|
|
1246
|
-
return new
|
|
1244
|
+
return new at();
|
|
1247
1245
|
}
|
|
1248
|
-
},
|
|
1249
|
-
variadic:
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1253
|
-
r = arguments[n];
|
|
1254
|
-
for (var o in r)
|
|
1255
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1256
|
-
}
|
|
1257
|
-
return t;
|
|
1258
|
-
}, Ae.apply(this, arguments);
|
|
1259
|
-
};
|
|
1260
|
-
var y;
|
|
1246
|
+
}, De = {
|
|
1247
|
+
variadic: Mn,
|
|
1248
|
+
monadic: In
|
|
1249
|
+
}, y;
|
|
1261
1250
|
(function(e) {
|
|
1262
1251
|
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";
|
|
1263
1252
|
})(y || (y = {}));
|
|
1264
|
-
var
|
|
1253
|
+
var T;
|
|
1265
1254
|
(function(e) {
|
|
1266
1255
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1267
|
-
})(
|
|
1268
|
-
var
|
|
1256
|
+
})(T || (T = {}));
|
|
1257
|
+
var ie;
|
|
1269
1258
|
(function(e) {
|
|
1270
1259
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1271
|
-
})(
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1260
|
+
})(ie || (ie = {}));
|
|
1261
|
+
function St(e) {
|
|
1262
|
+
return e.type === T.literal;
|
|
1274
1263
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1264
|
+
function Ln(e) {
|
|
1265
|
+
return e.type === T.argument;
|
|
1266
|
+
}
|
|
1267
|
+
function rr(e) {
|
|
1268
|
+
return e.type === T.number;
|
|
1277
1269
|
}
|
|
1278
1270
|
function nr(e) {
|
|
1279
|
-
return e.type ===
|
|
1271
|
+
return e.type === T.date;
|
|
1280
1272
|
}
|
|
1281
1273
|
function ir(e) {
|
|
1282
|
-
return e.type ===
|
|
1274
|
+
return e.type === T.time;
|
|
1283
1275
|
}
|
|
1284
1276
|
function or(e) {
|
|
1285
|
-
return e.type ===
|
|
1277
|
+
return e.type === T.select;
|
|
1286
1278
|
}
|
|
1287
1279
|
function sr(e) {
|
|
1288
|
-
return e.type ===
|
|
1280
|
+
return e.type === T.plural;
|
|
1289
1281
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return e.type ===
|
|
1282
|
+
function $n(e) {
|
|
1283
|
+
return e.type === T.pound;
|
|
1292
1284
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e.type ===
|
|
1285
|
+
function ar(e) {
|
|
1286
|
+
return e.type === T.tag;
|
|
1295
1287
|
}
|
|
1296
1288
|
function ur(e) {
|
|
1297
|
-
return e.type ===
|
|
1289
|
+
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
1298
1290
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function Qe(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
1301
1293
|
}
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1305
|
-
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Un = /(?:[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;
|
|
1306
|
-
function Fn(e) {
|
|
1294
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
|
|
1295
|
+
function kn(e) {
|
|
1307
1296
|
var t = {};
|
|
1308
|
-
return e.replace(
|
|
1297
|
+
return e.replace(Dn, function(r) {
|
|
1309
1298
|
var n = r.length;
|
|
1310
1299
|
switch (r[0]) {
|
|
1311
1300
|
case "G":
|
|
@@ -1394,21 +1383,11 @@ function Fn(e) {
|
|
|
1394
1383
|
return "";
|
|
1395
1384
|
}), t;
|
|
1396
1385
|
}
|
|
1397
|
-
var
|
|
1398
|
-
|
|
1399
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1400
|
-
r = arguments[n];
|
|
1401
|
-
for (var o in r)
|
|
1402
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1403
|
-
}
|
|
1404
|
-
return t;
|
|
1405
|
-
}, T.apply(this, arguments);
|
|
1406
|
-
};
|
|
1407
|
-
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1408
|
-
function Gn(e) {
|
|
1386
|
+
var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1387
|
+
function Fn(e) {
|
|
1409
1388
|
if (e.length === 0)
|
|
1410
1389
|
throw new Error("Number skeleton cannot be empty");
|
|
1411
|
-
for (var t = e.split(
|
|
1390
|
+
for (var t = e.split(Un).filter(function(h) {
|
|
1412
1391
|
return h.length > 0;
|
|
1413
1392
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1414
1393
|
var o = i[n], s = o.split("/");
|
|
@@ -1423,17 +1402,17 @@ function Gn(e) {
|
|
|
1423
1402
|
}
|
|
1424
1403
|
return r;
|
|
1425
1404
|
}
|
|
1426
|
-
function
|
|
1405
|
+
function jn(e) {
|
|
1427
1406
|
return e.replace(/^(.*?)-/, "");
|
|
1428
1407
|
}
|
|
1429
|
-
var
|
|
1430
|
-
function
|
|
1408
|
+
var Tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Gn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
|
|
1409
|
+
function Ht(e) {
|
|
1431
1410
|
var t = {};
|
|
1432
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1411
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1433
1412
|
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)), "";
|
|
1434
1413
|
}), t;
|
|
1435
1414
|
}
|
|
1436
|
-
function
|
|
1415
|
+
function fr(e) {
|
|
1437
1416
|
switch (e) {
|
|
1438
1417
|
case "sign-auto":
|
|
1439
1418
|
return {
|
|
@@ -1473,7 +1452,7 @@ function pr(e) {
|
|
|
1473
1452
|
};
|
|
1474
1453
|
}
|
|
1475
1454
|
}
|
|
1476
|
-
function
|
|
1455
|
+
function Vn(e) {
|
|
1477
1456
|
var t;
|
|
1478
1457
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1479
1458
|
notation: "engineering"
|
|
@@ -1481,17 +1460,17 @@ function Xn(e) {
|
|
|
1481
1460
|
notation: "scientific"
|
|
1482
1461
|
}, e = e.slice(1)), t) {
|
|
1483
1462
|
var r = e.slice(0, 2);
|
|
1484
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1463
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
|
|
1485
1464
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1486
1465
|
t.minimumIntegerDigits = e.length;
|
|
1487
1466
|
}
|
|
1488
1467
|
return t;
|
|
1489
1468
|
}
|
|
1490
|
-
function
|
|
1491
|
-
var t = {}, r =
|
|
1469
|
+
function At(e) {
|
|
1470
|
+
var t = {}, r = fr(e);
|
|
1492
1471
|
return r || t;
|
|
1493
1472
|
}
|
|
1494
|
-
function
|
|
1473
|
+
function qn(e) {
|
|
1495
1474
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1496
1475
|
var i = n[r];
|
|
1497
1476
|
switch (i.stem) {
|
|
@@ -1515,7 +1494,7 @@ function Wn(e) {
|
|
|
1515
1494
|
continue;
|
|
1516
1495
|
case "measure-unit":
|
|
1517
1496
|
case "unit":
|
|
1518
|
-
t.style = "unit", t.unit =
|
|
1497
|
+
t.style = "unit", t.unit = jn(i.options[0]);
|
|
1519
1498
|
continue;
|
|
1520
1499
|
case "compact-short":
|
|
1521
1500
|
case "K":
|
|
@@ -1526,13 +1505,13 @@ function Wn(e) {
|
|
|
1526
1505
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1527
1506
|
continue;
|
|
1528
1507
|
case "scientific":
|
|
1529
|
-
t =
|
|
1530
|
-
return
|
|
1508
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1509
|
+
return x(x({}, l), At(u));
|
|
1531
1510
|
}, {}));
|
|
1532
1511
|
continue;
|
|
1533
1512
|
case "engineering":
|
|
1534
|
-
t =
|
|
1535
|
-
return
|
|
1513
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1514
|
+
return x(x({}, l), At(u));
|
|
1536
1515
|
}, {}));
|
|
1537
1516
|
continue;
|
|
1538
1517
|
case "notation-simple":
|
|
@@ -1577,7 +1556,7 @@ function Wn(e) {
|
|
|
1577
1556
|
case "integer-width":
|
|
1578
1557
|
if (i.options.length > 1)
|
|
1579
1558
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1580
|
-
i.options[0].replace(
|
|
1559
|
+
i.options[0].replace(Gn, function(l, u, c, p, h, b) {
|
|
1581
1560
|
if (u)
|
|
1582
1561
|
t.minimumIntegerDigits = c.length;
|
|
1583
1562
|
else {
|
|
@@ -1590,28 +1569,28 @@ function Wn(e) {
|
|
|
1590
1569
|
});
|
|
1591
1570
|
continue;
|
|
1592
1571
|
}
|
|
1593
|
-
if (
|
|
1572
|
+
if (hr.test(i.stem)) {
|
|
1594
1573
|
t.minimumIntegerDigits = i.stem.length;
|
|
1595
1574
|
continue;
|
|
1596
1575
|
}
|
|
1597
|
-
if (
|
|
1576
|
+
if (Tt.test(i.stem)) {
|
|
1598
1577
|
if (i.options.length > 1)
|
|
1599
1578
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1600
|
-
i.stem.replace(
|
|
1579
|
+
i.stem.replace(Tt, function(l, u, c, p, h, b) {
|
|
1601
1580
|
return c === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : h && b ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1602
1581
|
});
|
|
1603
1582
|
var o = i.options[0];
|
|
1604
|
-
o === "w" ? t =
|
|
1583
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ht(o)));
|
|
1605
1584
|
continue;
|
|
1606
1585
|
}
|
|
1607
|
-
if (
|
|
1608
|
-
t =
|
|
1586
|
+
if (cr.test(i.stem)) {
|
|
1587
|
+
t = x(x({}, t), Ht(i.stem));
|
|
1609
1588
|
continue;
|
|
1610
1589
|
}
|
|
1611
|
-
var s =
|
|
1612
|
-
s && (t =
|
|
1613
|
-
var a =
|
|
1614
|
-
a && (t =
|
|
1590
|
+
var s = fr(i.stem);
|
|
1591
|
+
s && (t = x(x({}, t), s));
|
|
1592
|
+
var a = Vn(i.stem);
|
|
1593
|
+
a && (t = x(x({}, t), a));
|
|
1615
1594
|
}
|
|
1616
1595
|
return t;
|
|
1617
1596
|
}
|
|
@@ -3030,13 +3009,13 @@ var _e = {
|
|
|
3030
3009
|
"h"
|
|
3031
3010
|
]
|
|
3032
3011
|
};
|
|
3033
|
-
function
|
|
3012
|
+
function Xn(e, t) {
|
|
3034
3013
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3035
3014
|
var i = e.charAt(n);
|
|
3036
3015
|
if (i === "j") {
|
|
3037
3016
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3038
3017
|
o++, n++;
|
|
3039
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3018
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Wn(t);
|
|
3040
3019
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3041
3020
|
r += l;
|
|
3042
3021
|
for (; s-- > 0; )
|
|
@@ -3046,7 +3025,7 @@ function zn(e, t) {
|
|
|
3046
3025
|
}
|
|
3047
3026
|
return r;
|
|
3048
3027
|
}
|
|
3049
|
-
function
|
|
3028
|
+
function Wn(e) {
|
|
3050
3029
|
var t = e.hourCycle;
|
|
3051
3030
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3052
3031
|
e.hourCycles && // @ts-ignore
|
|
@@ -3068,20 +3047,20 @@ function Zn(e) {
|
|
|
3068
3047
|
var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
|
|
3069
3048
|
return i[0];
|
|
3070
3049
|
}
|
|
3071
|
-
var
|
|
3050
|
+
var ke, zn = new RegExp("^".concat(lr.source, "*")), Zn = new RegExp("".concat(lr.source, "*$"));
|
|
3072
3051
|
function g(e, t) {
|
|
3073
3052
|
return { start: e, end: t };
|
|
3074
3053
|
}
|
|
3075
|
-
var
|
|
3054
|
+
var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, Yn = !!Object.fromEntries, Kn = !!String.prototype.codePointAt, ei = !!String.prototype.trimStart, ti = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ni = ri ? Number.isSafeInteger : function(e) {
|
|
3076
3055
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3077
|
-
},
|
|
3056
|
+
}, Ye = !0;
|
|
3078
3057
|
try {
|
|
3079
|
-
var
|
|
3080
|
-
|
|
3058
|
+
var ii = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3059
|
+
Ye = ((ke = ii.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
3081
3060
|
} catch (e) {
|
|
3082
|
-
|
|
3061
|
+
Ye = !1;
|
|
3083
3062
|
}
|
|
3084
|
-
var
|
|
3063
|
+
var Bt = Jn ? (
|
|
3085
3064
|
// Native
|
|
3086
3065
|
function(t, r, n) {
|
|
3087
3066
|
return t.startsWith(r, n);
|
|
@@ -3091,7 +3070,7 @@ var Ot = Yn ? (
|
|
|
3091
3070
|
function(t, r, n) {
|
|
3092
3071
|
return t.slice(n, n + r.length) === r;
|
|
3093
3072
|
}
|
|
3094
|
-
),
|
|
3073
|
+
), Ke = Qn ? String.fromCodePoint : (
|
|
3095
3074
|
// IE11
|
|
3096
3075
|
function() {
|
|
3097
3076
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3103,9 +3082,9 @@ var Ot = Yn ? (
|
|
|
3103
3082
|
}
|
|
3104
3083
|
return n;
|
|
3105
3084
|
}
|
|
3106
|
-
),
|
|
3085
|
+
), Pt = (
|
|
3107
3086
|
// native
|
|
3108
|
-
|
|
3087
|
+
Yn ? Object.fromEntries : (
|
|
3109
3088
|
// Ponyfill
|
|
3110
3089
|
function(t) {
|
|
3111
3090
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3115,7 +3094,7 @@ var Ot = Yn ? (
|
|
|
3115
3094
|
return r;
|
|
3116
3095
|
}
|
|
3117
3096
|
)
|
|
3118
|
-
),
|
|
3097
|
+
), pr = Kn ? (
|
|
3119
3098
|
// Native
|
|
3120
3099
|
function(t, r) {
|
|
3121
3100
|
return t.codePointAt(r);
|
|
@@ -3129,7 +3108,7 @@ var Ot = Yn ? (
|
|
|
3129
3108
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3130
3109
|
}
|
|
3131
3110
|
}
|
|
3132
|
-
),
|
|
3111
|
+
), oi = ei ? (
|
|
3133
3112
|
// Native
|
|
3134
3113
|
function(t) {
|
|
3135
3114
|
return t.trimStart();
|
|
@@ -3137,9 +3116,9 @@ var Ot = Yn ? (
|
|
|
3137
3116
|
) : (
|
|
3138
3117
|
// Ponyfill
|
|
3139
3118
|
function(t) {
|
|
3140
|
-
return t.replace(
|
|
3119
|
+
return t.replace(zn, "");
|
|
3141
3120
|
}
|
|
3142
|
-
),
|
|
3121
|
+
), si = ti ? (
|
|
3143
3122
|
// Native
|
|
3144
3123
|
function(t) {
|
|
3145
3124
|
return t.trimEnd();
|
|
@@ -3147,32 +3126,32 @@ var Ot = Yn ? (
|
|
|
3147
3126
|
) : (
|
|
3148
3127
|
// Ponyfill
|
|
3149
3128
|
function(t) {
|
|
3150
|
-
return t.replace(
|
|
3129
|
+
return t.replace(Zn, "");
|
|
3151
3130
|
}
|
|
3152
3131
|
);
|
|
3153
|
-
function
|
|
3132
|
+
function dr(e, t) {
|
|
3154
3133
|
return new RegExp(e, t);
|
|
3155
3134
|
}
|
|
3156
|
-
var
|
|
3157
|
-
if (
|
|
3158
|
-
var
|
|
3159
|
-
|
|
3135
|
+
var et;
|
|
3136
|
+
if (Ye) {
|
|
3137
|
+
var Ot = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3138
|
+
et = function(t, r) {
|
|
3160
3139
|
var n;
|
|
3161
|
-
|
|
3162
|
-
var i =
|
|
3140
|
+
Ot.lastIndex = r;
|
|
3141
|
+
var i = Ot.exec(t);
|
|
3163
3142
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3164
3143
|
};
|
|
3165
3144
|
} else
|
|
3166
|
-
|
|
3145
|
+
et = function(t, r) {
|
|
3167
3146
|
for (var n = []; ; ) {
|
|
3168
|
-
var i =
|
|
3169
|
-
if (i === void 0 ||
|
|
3147
|
+
var i = pr(t, r);
|
|
3148
|
+
if (i === void 0 || mr(i) || ci(i))
|
|
3170
3149
|
break;
|
|
3171
3150
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3172
3151
|
}
|
|
3173
|
-
return
|
|
3152
|
+
return Ke.apply(void 0, n);
|
|
3174
3153
|
};
|
|
3175
|
-
var
|
|
3154
|
+
var ai = (
|
|
3176
3155
|
/** @class */
|
|
3177
3156
|
function() {
|
|
3178
3157
|
function e(t, r) {
|
|
@@ -3196,14 +3175,14 @@ var li = (
|
|
|
3196
3175
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3197
3176
|
var a = this.clonePosition();
|
|
3198
3177
|
this.bump(), i.push({
|
|
3199
|
-
type:
|
|
3178
|
+
type: T.pound,
|
|
3200
3179
|
location: g(a, this.clonePosition())
|
|
3201
3180
|
});
|
|
3202
3181
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3203
3182
|
if (n)
|
|
3204
3183
|
break;
|
|
3205
3184
|
return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3206
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3185
|
+
} else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
|
3207
3186
|
var s = this.parseTag(t, r);
|
|
3208
3187
|
if (s.err)
|
|
3209
3188
|
return s;
|
|
@@ -3224,7 +3203,7 @@ var li = (
|
|
|
3224
3203
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3225
3204
|
return {
|
|
3226
3205
|
val: {
|
|
3227
|
-
type:
|
|
3206
|
+
type: T.literal,
|
|
3228
3207
|
value: "<".concat(i, "/>"),
|
|
3229
3208
|
location: g(n, this.clonePosition())
|
|
3230
3209
|
},
|
|
@@ -3236,12 +3215,12 @@ var li = (
|
|
|
3236
3215
|
return o;
|
|
3237
3216
|
var s = o.val, a = this.clonePosition();
|
|
3238
3217
|
if (this.bumpIf("</")) {
|
|
3239
|
-
if (this.isEOF() || !
|
|
3218
|
+
if (this.isEOF() || !tt(this.char()))
|
|
3240
3219
|
return this.error(y.INVALID_TAG, g(a, this.clonePosition()));
|
|
3241
3220
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3242
3221
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3243
3222
|
val: {
|
|
3244
|
-
type:
|
|
3223
|
+
type: T.tag,
|
|
3245
3224
|
value: i,
|
|
3246
3225
|
children: s,
|
|
3247
3226
|
location: g(n, this.clonePosition())
|
|
@@ -3254,7 +3233,7 @@ var li = (
|
|
|
3254
3233
|
return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
|
|
3255
3234
|
}, e.prototype.parseTagName = function() {
|
|
3256
3235
|
var t = this.offset();
|
|
3257
|
-
for (this.bump(); !this.isEOF() &&
|
|
3236
|
+
for (this.bump(); !this.isEOF() && li(this.char()); )
|
|
3258
3237
|
this.bump();
|
|
3259
3238
|
return this.message.slice(t, this.offset());
|
|
3260
3239
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3278,12 +3257,12 @@ var li = (
|
|
|
3278
3257
|
}
|
|
3279
3258
|
var l = g(n, this.clonePosition());
|
|
3280
3259
|
return {
|
|
3281
|
-
val: { type:
|
|
3260
|
+
val: { type: T.literal, value: i, location: l },
|
|
3282
3261
|
err: null
|
|
3283
3262
|
};
|
|
3284
3263
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3285
3264
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3286
|
-
!
|
|
3265
|
+
!ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3287
3266
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3288
3267
|
if (this.isEOF() || this.char() !== 39)
|
|
3289
3268
|
return null;
|
|
@@ -3317,12 +3296,12 @@ var li = (
|
|
|
3317
3296
|
r.push(n);
|
|
3318
3297
|
this.bump();
|
|
3319
3298
|
}
|
|
3320
|
-
return
|
|
3299
|
+
return Ke.apply(void 0, r);
|
|
3321
3300
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3322
3301
|
if (this.isEOF())
|
|
3323
3302
|
return null;
|
|
3324
3303
|
var n = this.char();
|
|
3325
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3304
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
|
3326
3305
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3327
3306
|
var n = this.clonePosition();
|
|
3328
3307
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3338,7 +3317,7 @@ var li = (
|
|
|
3338
3317
|
case 125:
|
|
3339
3318
|
return this.bump(), {
|
|
3340
3319
|
val: {
|
|
3341
|
-
type:
|
|
3320
|
+
type: T.argument,
|
|
3342
3321
|
// value does not include the opening and closing braces.
|
|
3343
3322
|
value: i,
|
|
3344
3323
|
location: g(n, this.clonePosition())
|
|
@@ -3351,7 +3330,7 @@ var li = (
|
|
|
3351
3330
|
return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3352
3331
|
}
|
|
3353
3332
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3354
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3333
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
|
3355
3334
|
this.bumpTo(i);
|
|
3356
3335
|
var o = this.clonePosition(), s = g(t, o);
|
|
3357
3336
|
return { value: n, location: s };
|
|
@@ -3370,7 +3349,7 @@ var li = (
|
|
|
3370
3349
|
var c = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
3371
3350
|
if (p.err)
|
|
3372
3351
|
return p;
|
|
3373
|
-
var h =
|
|
3352
|
+
var h = si(p.val);
|
|
3374
3353
|
if (h.length === 0)
|
|
3375
3354
|
return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3376
3355
|
var b = g(c, this.clonePosition());
|
|
@@ -3380,34 +3359,34 @@ var li = (
|
|
|
3380
3359
|
if (m.err)
|
|
3381
3360
|
return m;
|
|
3382
3361
|
var f = g(i, this.clonePosition());
|
|
3383
|
-
if (u &&
|
|
3384
|
-
var
|
|
3362
|
+
if (u && Bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3363
|
+
var w = oi(u.style.slice(2));
|
|
3385
3364
|
if (a === "number") {
|
|
3386
|
-
var p = this.parseNumberSkeletonFromString(
|
|
3365
|
+
var p = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3387
3366
|
return p.err ? p : {
|
|
3388
|
-
val: { type:
|
|
3367
|
+
val: { type: T.number, value: n, location: f, style: p.val },
|
|
3389
3368
|
err: null
|
|
3390
3369
|
};
|
|
3391
3370
|
} else {
|
|
3392
|
-
if (
|
|
3371
|
+
if (w.length === 0)
|
|
3393
3372
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, f);
|
|
3394
|
-
var B =
|
|
3395
|
-
this.locale && (B =
|
|
3373
|
+
var B = w;
|
|
3374
|
+
this.locale && (B = Xn(w, this.locale));
|
|
3396
3375
|
var h = {
|
|
3397
|
-
type:
|
|
3376
|
+
type: ie.dateTime,
|
|
3398
3377
|
pattern: B,
|
|
3399
3378
|
location: u.styleLocation,
|
|
3400
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3401
|
-
},
|
|
3379
|
+
parsedOptions: this.shouldParseSkeletons ? kn(B) : {}
|
|
3380
|
+
}, C = a === "date" ? T.date : T.time;
|
|
3402
3381
|
return {
|
|
3403
|
-
val: { type:
|
|
3382
|
+
val: { type: C, value: n, location: f, style: h },
|
|
3404
3383
|
err: null
|
|
3405
3384
|
};
|
|
3406
3385
|
}
|
|
3407
3386
|
}
|
|
3408
3387
|
return {
|
|
3409
3388
|
val: {
|
|
3410
|
-
type: a === "number" ?
|
|
3389
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3411
3390
|
value: n,
|
|
3412
3391
|
location: f,
|
|
3413
3392
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3420,9 +3399,9 @@ var li = (
|
|
|
3420
3399
|
case "select": {
|
|
3421
3400
|
var P = this.clonePosition();
|
|
3422
3401
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3423
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P,
|
|
3402
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(P, x({}, P)));
|
|
3424
3403
|
this.bumpSpace();
|
|
3425
|
-
var D = this.parseIdentifierIfPossible(),
|
|
3404
|
+
var D = this.parseIdentifierIfPossible(), N = 0;
|
|
3426
3405
|
if (a !== "select" && D.value === "offset") {
|
|
3427
3406
|
if (!this.bumpIf(":"))
|
|
3428
3407
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3430,7 +3409,7 @@ var li = (
|
|
|
3430
3409
|
var p = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3431
3410
|
if (p.err)
|
|
3432
3411
|
return p;
|
|
3433
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(),
|
|
3412
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), N = p.val;
|
|
3434
3413
|
}
|
|
3435
3414
|
var M = this.tryParsePluralOrSelectOptions(t, a, r, D);
|
|
3436
3415
|
if (M.err)
|
|
@@ -3441,18 +3420,18 @@ var li = (
|
|
|
3441
3420
|
var k = g(i, this.clonePosition());
|
|
3442
3421
|
return a === "select" ? {
|
|
3443
3422
|
val: {
|
|
3444
|
-
type:
|
|
3423
|
+
type: T.select,
|
|
3445
3424
|
value: n,
|
|
3446
|
-
options:
|
|
3425
|
+
options: Pt(M.val),
|
|
3447
3426
|
location: k
|
|
3448
3427
|
},
|
|
3449
3428
|
err: null
|
|
3450
3429
|
} : {
|
|
3451
3430
|
val: {
|
|
3452
|
-
type:
|
|
3431
|
+
type: T.plural,
|
|
3453
3432
|
value: n,
|
|
3454
|
-
options:
|
|
3455
|
-
offset:
|
|
3433
|
+
options: Pt(M.val),
|
|
3434
|
+
offset: N,
|
|
3456
3435
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3457
3436
|
location: k
|
|
3458
3437
|
},
|
|
@@ -3502,16 +3481,16 @@ var li = (
|
|
|
3502
3481
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3503
3482
|
var n = [];
|
|
3504
3483
|
try {
|
|
3505
|
-
n =
|
|
3484
|
+
n = Fn(t);
|
|
3506
3485
|
} catch (i) {
|
|
3507
3486
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3508
3487
|
}
|
|
3509
3488
|
return {
|
|
3510
3489
|
val: {
|
|
3511
|
-
type:
|
|
3490
|
+
type: ie.number,
|
|
3512
3491
|
tokens: n,
|
|
3513
3492
|
location: r,
|
|
3514
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3493
|
+
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
|
3515
3494
|
},
|
|
3516
3495
|
err: null
|
|
3517
3496
|
};
|
|
@@ -3559,7 +3538,7 @@ var li = (
|
|
|
3559
3538
|
break;
|
|
3560
3539
|
}
|
|
3561
3540
|
var l = g(i, this.clonePosition());
|
|
3562
|
-
return o ? (s *= n,
|
|
3541
|
+
return o ? (s *= n, ni(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3563
3542
|
}, e.prototype.offset = function() {
|
|
3564
3543
|
return this.position.offset;
|
|
3565
3544
|
}, e.prototype.isEOF = function() {
|
|
@@ -3574,7 +3553,7 @@ var li = (
|
|
|
3574
3553
|
var t = this.position.offset;
|
|
3575
3554
|
if (t >= this.message.length)
|
|
3576
3555
|
throw Error("out of bound");
|
|
3577
|
-
var r =
|
|
3556
|
+
var r = pr(this.message, t);
|
|
3578
3557
|
if (r === void 0)
|
|
3579
3558
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3580
3559
|
return r;
|
|
@@ -3593,7 +3572,7 @@ var li = (
|
|
|
3593
3572
|
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);
|
|
3594
3573
|
}
|
|
3595
3574
|
}, e.prototype.bumpIf = function(t) {
|
|
3596
|
-
if (
|
|
3575
|
+
if (Bt(this.message, t, this.offset())) {
|
|
3597
3576
|
for (var r = 0; r < t.length; r++)
|
|
3598
3577
|
this.bump();
|
|
3599
3578
|
return !0;
|
|
@@ -3615,7 +3594,7 @@ var li = (
|
|
|
3615
3594
|
break;
|
|
3616
3595
|
}
|
|
3617
3596
|
}, e.prototype.bumpSpace = function() {
|
|
3618
|
-
for (; !this.isEOF() &&
|
|
3597
|
+
for (; !this.isEOF() && mr(this.char()); )
|
|
3619
3598
|
this.bump();
|
|
3620
3599
|
}, e.prototype.peek = function() {
|
|
3621
3600
|
if (this.isEOF())
|
|
@@ -3625,47 +3604,47 @@ var li = (
|
|
|
3625
3604
|
}, e;
|
|
3626
3605
|
}()
|
|
3627
3606
|
);
|
|
3628
|
-
function
|
|
3607
|
+
function tt(e) {
|
|
3629
3608
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3630
3609
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return
|
|
3610
|
+
function ui(e) {
|
|
3611
|
+
return tt(e) || e === 47;
|
|
3633
3612
|
}
|
|
3634
|
-
function
|
|
3613
|
+
function li(e) {
|
|
3635
3614
|
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;
|
|
3636
3615
|
}
|
|
3637
|
-
function
|
|
3616
|
+
function mr(e) {
|
|
3638
3617
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3639
3618
|
}
|
|
3640
|
-
function
|
|
3619
|
+
function ci(e) {
|
|
3641
3620
|
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;
|
|
3642
3621
|
}
|
|
3643
|
-
function
|
|
3622
|
+
function rt(e) {
|
|
3644
3623
|
e.forEach(function(t) {
|
|
3645
|
-
if (delete t.location,
|
|
3624
|
+
if (delete t.location, or(t) || sr(t))
|
|
3646
3625
|
for (var r in t.options)
|
|
3647
|
-
delete t.options[r].location,
|
|
3626
|
+
delete t.options[r].location, rt(t.options[r].value);
|
|
3648
3627
|
else
|
|
3649
|
-
|
|
3628
|
+
rr(t) && ur(t.style) || (nr(t) || ir(t)) && Qe(t.style) ? delete t.style.location : ar(t) && rt(t.children);
|
|
3650
3629
|
});
|
|
3651
3630
|
}
|
|
3652
|
-
function
|
|
3653
|
-
t === void 0 && (t = {}), t =
|
|
3654
|
-
var r = new
|
|
3631
|
+
function hi(e, t) {
|
|
3632
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3633
|
+
var r = new ai(e, t).parse();
|
|
3655
3634
|
if (r.err) {
|
|
3656
3635
|
var n = SyntaxError(y[r.err.kind]);
|
|
3657
3636
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3658
3637
|
}
|
|
3659
|
-
return t != null && t.captureLocation ||
|
|
3638
|
+
return t != null && t.captureLocation || rt(r.val), r.val;
|
|
3660
3639
|
}
|
|
3661
|
-
var
|
|
3640
|
+
var oe;
|
|
3662
3641
|
(function(e) {
|
|
3663
3642
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3664
|
-
})(
|
|
3665
|
-
var
|
|
3643
|
+
})(oe || (oe = {}));
|
|
3644
|
+
var Oe = (
|
|
3666
3645
|
/** @class */
|
|
3667
3646
|
function(e) {
|
|
3668
|
-
|
|
3647
|
+
q(t, e);
|
|
3669
3648
|
function t(r, n, i) {
|
|
3670
3649
|
var o = e.call(this, r) || this;
|
|
3671
3650
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3674,48 +3653,48 @@ var Me = (
|
|
|
3674
3653
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3675
3654
|
}, t;
|
|
3676
3655
|
}(Error)
|
|
3677
|
-
),
|
|
3656
|
+
), Rt = (
|
|
3678
3657
|
/** @class */
|
|
3679
3658
|
function(e) {
|
|
3680
|
-
|
|
3659
|
+
q(t, e);
|
|
3681
3660
|
function t(r, n, i, o) {
|
|
3682
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3661
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, o) || this;
|
|
3683
3662
|
}
|
|
3684
3663
|
return t;
|
|
3685
|
-
}(
|
|
3686
|
-
),
|
|
3664
|
+
}(Oe)
|
|
3665
|
+
), fi = (
|
|
3687
3666
|
/** @class */
|
|
3688
3667
|
function(e) {
|
|
3689
|
-
|
|
3668
|
+
q(t, e);
|
|
3690
3669
|
function t(r, n, i) {
|
|
3691
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3670
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
|
|
3692
3671
|
}
|
|
3693
3672
|
return t;
|
|
3694
|
-
}(
|
|
3695
|
-
),
|
|
3673
|
+
}(Oe)
|
|
3674
|
+
), pi = (
|
|
3696
3675
|
/** @class */
|
|
3697
3676
|
function(e) {
|
|
3698
|
-
|
|
3677
|
+
q(t, e);
|
|
3699
3678
|
function t(r, n) {
|
|
3700
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3679
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
|
|
3701
3680
|
}
|
|
3702
3681
|
return t;
|
|
3703
|
-
}(
|
|
3682
|
+
}(Oe)
|
|
3704
3683
|
), R;
|
|
3705
3684
|
(function(e) {
|
|
3706
3685
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3707
3686
|
})(R || (R = {}));
|
|
3708
|
-
function
|
|
3687
|
+
function di(e) {
|
|
3709
3688
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3710
3689
|
var n = t[t.length - 1];
|
|
3711
3690
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3712
3691
|
}, []);
|
|
3713
3692
|
}
|
|
3714
|
-
function
|
|
3693
|
+
function mi(e) {
|
|
3715
3694
|
return typeof e == "function";
|
|
3716
3695
|
}
|
|
3717
3696
|
function we(e, t, r, n, i, o, s) {
|
|
3718
|
-
if (e.length === 1 &&
|
|
3697
|
+
if (e.length === 1 && St(e[0]))
|
|
3719
3698
|
return [
|
|
3720
3699
|
{
|
|
3721
3700
|
type: R.literal,
|
|
@@ -3724,14 +3703,14 @@ function we(e, t, r, n, i, o, s) {
|
|
|
3724
3703
|
];
|
|
3725
3704
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3726
3705
|
var c = u[l];
|
|
3727
|
-
if (
|
|
3706
|
+
if (St(c)) {
|
|
3728
3707
|
a.push({
|
|
3729
3708
|
type: R.literal,
|
|
3730
3709
|
value: c.value
|
|
3731
3710
|
});
|
|
3732
3711
|
continue;
|
|
3733
3712
|
}
|
|
3734
|
-
if (
|
|
3713
|
+
if ($n(c)) {
|
|
3735
3714
|
typeof o == "number" && a.push({
|
|
3736
3715
|
type: R.literal,
|
|
3737
3716
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3740,89 +3719,89 @@ function we(e, t, r, n, i, o, s) {
|
|
|
3740
3719
|
}
|
|
3741
3720
|
var p = c.value;
|
|
3742
3721
|
if (!(i && p in i))
|
|
3743
|
-
throw new
|
|
3722
|
+
throw new pi(p, s);
|
|
3744
3723
|
var h = i[p];
|
|
3745
|
-
if (
|
|
3724
|
+
if (Ln(c)) {
|
|
3746
3725
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3747
3726
|
type: typeof h == "string" ? R.literal : R.object,
|
|
3748
3727
|
value: h
|
|
3749
3728
|
});
|
|
3750
3729
|
continue;
|
|
3751
3730
|
}
|
|
3752
|
-
if (
|
|
3753
|
-
var b = typeof c.style == "string" ? n.date[c.style] :
|
|
3731
|
+
if (nr(c)) {
|
|
3732
|
+
var b = typeof c.style == "string" ? n.date[c.style] : Qe(c.style) ? c.style.parsedOptions : void 0;
|
|
3754
3733
|
a.push({
|
|
3755
3734
|
type: R.literal,
|
|
3756
3735
|
value: r.getDateTimeFormat(t, b).format(h)
|
|
3757
3736
|
});
|
|
3758
3737
|
continue;
|
|
3759
3738
|
}
|
|
3760
|
-
if (
|
|
3761
|
-
var b = typeof c.style == "string" ? n.time[c.style] :
|
|
3739
|
+
if (ir(c)) {
|
|
3740
|
+
var b = typeof c.style == "string" ? n.time[c.style] : Qe(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3762
3741
|
a.push({
|
|
3763
3742
|
type: R.literal,
|
|
3764
3743
|
value: r.getDateTimeFormat(t, b).format(h)
|
|
3765
3744
|
});
|
|
3766
3745
|
continue;
|
|
3767
3746
|
}
|
|
3768
|
-
if (
|
|
3769
|
-
var b = typeof c.style == "string" ? n.number[c.style] :
|
|
3747
|
+
if (rr(c)) {
|
|
3748
|
+
var b = typeof c.style == "string" ? n.number[c.style] : ur(c.style) ? c.style.parsedOptions : void 0;
|
|
3770
3749
|
b && b.scale && (h = h * (b.scale || 1)), a.push({
|
|
3771
3750
|
type: R.literal,
|
|
3772
3751
|
value: r.getNumberFormat(t, b).format(h)
|
|
3773
3752
|
});
|
|
3774
3753
|
continue;
|
|
3775
3754
|
}
|
|
3776
|
-
if (
|
|
3777
|
-
var m = c.children, f = c.value,
|
|
3778
|
-
if (!
|
|
3779
|
-
throw new
|
|
3780
|
-
var B = we(m, t, r, n, i, o),
|
|
3781
|
-
return
|
|
3755
|
+
if (ar(c)) {
|
|
3756
|
+
var m = c.children, f = c.value, w = i[f];
|
|
3757
|
+
if (!mi(w))
|
|
3758
|
+
throw new fi(f, "function", s);
|
|
3759
|
+
var B = we(m, t, r, n, i, o), C = w(B.map(function(N) {
|
|
3760
|
+
return N.value;
|
|
3782
3761
|
}));
|
|
3783
|
-
Array.isArray(
|
|
3762
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(N) {
|
|
3784
3763
|
return {
|
|
3785
|
-
type: typeof
|
|
3786
|
-
value:
|
|
3764
|
+
type: typeof N == "string" ? R.literal : R.object,
|
|
3765
|
+
value: N
|
|
3787
3766
|
};
|
|
3788
3767
|
}));
|
|
3789
3768
|
}
|
|
3790
|
-
if (
|
|
3769
|
+
if (or(c)) {
|
|
3791
3770
|
var P = c.options[h] || c.options.other;
|
|
3792
3771
|
if (!P)
|
|
3793
|
-
throw new
|
|
3772
|
+
throw new Rt(c.value, h, Object.keys(c.options), s);
|
|
3794
3773
|
a.push.apply(a, we(P.value, t, r, n, i));
|
|
3795
3774
|
continue;
|
|
3796
3775
|
}
|
|
3797
|
-
if (
|
|
3776
|
+
if (sr(c)) {
|
|
3798
3777
|
var P = c.options["=".concat(h)];
|
|
3799
3778
|
if (!P) {
|
|
3800
3779
|
if (!Intl.PluralRules)
|
|
3801
|
-
throw new
|
|
3780
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3802
3781
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3803
|
-
`,
|
|
3782
|
+
`, oe.MISSING_INTL_API, s);
|
|
3804
3783
|
var D = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3805
3784
|
P = c.options[D] || c.options.other;
|
|
3806
3785
|
}
|
|
3807
3786
|
if (!P)
|
|
3808
|
-
throw new
|
|
3787
|
+
throw new Rt(c.value, h, Object.keys(c.options), s);
|
|
3809
3788
|
a.push.apply(a, we(P.value, t, r, n, i, h - (c.offset || 0)));
|
|
3810
3789
|
continue;
|
|
3811
3790
|
}
|
|
3812
3791
|
}
|
|
3813
|
-
return
|
|
3792
|
+
return di(a);
|
|
3814
3793
|
}
|
|
3815
|
-
function
|
|
3816
|
-
return t ?
|
|
3817
|
-
return r[n] =
|
|
3794
|
+
function bi(e, t) {
|
|
3795
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3796
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3818
3797
|
}, {})) : e;
|
|
3819
3798
|
}
|
|
3820
|
-
function
|
|
3799
|
+
function vi(e, t) {
|
|
3821
3800
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3822
|
-
return r[n] =
|
|
3823
|
-
},
|
|
3801
|
+
return r[n] = bi(e[n], t[n]), r;
|
|
3802
|
+
}, x({}, e)) : e;
|
|
3824
3803
|
}
|
|
3825
|
-
function
|
|
3804
|
+
function Ue(e) {
|
|
3826
3805
|
return {
|
|
3827
3806
|
create: function() {
|
|
3828
3807
|
return {
|
|
@@ -3836,39 +3815,39 @@ function je(e) {
|
|
|
3836
3815
|
}
|
|
3837
3816
|
};
|
|
3838
3817
|
}
|
|
3839
|
-
function
|
|
3818
|
+
function yi(e) {
|
|
3840
3819
|
return e === void 0 && (e = {
|
|
3841
3820
|
number: {},
|
|
3842
3821
|
dateTime: {},
|
|
3843
3822
|
pluralRules: {}
|
|
3844
3823
|
}), {
|
|
3845
|
-
getNumberFormat:
|
|
3824
|
+
getNumberFormat: $e(function() {
|
|
3846
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3847
3826
|
r[n] = arguments[n];
|
|
3848
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3827
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3849
3828
|
}, {
|
|
3850
|
-
cache:
|
|
3851
|
-
strategy:
|
|
3829
|
+
cache: Ue(e.number),
|
|
3830
|
+
strategy: De.variadic
|
|
3852
3831
|
}),
|
|
3853
|
-
getDateTimeFormat:
|
|
3832
|
+
getDateTimeFormat: $e(function() {
|
|
3854
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3855
3834
|
r[n] = arguments[n];
|
|
3856
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3835
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3857
3836
|
}, {
|
|
3858
|
-
cache:
|
|
3859
|
-
strategy:
|
|
3837
|
+
cache: Ue(e.dateTime),
|
|
3838
|
+
strategy: De.variadic
|
|
3860
3839
|
}),
|
|
3861
|
-
getPluralRules:
|
|
3840
|
+
getPluralRules: $e(function() {
|
|
3862
3841
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3863
3842
|
r[n] = arguments[n];
|
|
3864
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3843
|
+
return new ((t = Intl.PluralRules).bind.apply(t, re([void 0], r, !1)))();
|
|
3865
3844
|
}, {
|
|
3866
|
-
cache:
|
|
3867
|
-
strategy:
|
|
3845
|
+
cache: Ue(e.pluralRules),
|
|
3846
|
+
strategy: De.variadic
|
|
3868
3847
|
})
|
|
3869
3848
|
};
|
|
3870
3849
|
}
|
|
3871
|
-
var
|
|
3850
|
+
var gi = (
|
|
3872
3851
|
/** @class */
|
|
3873
3852
|
function() {
|
|
3874
3853
|
function e(t, r, n, i) {
|
|
@@ -3900,13 +3879,13 @@ var xi = (
|
|
|
3900
3879
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3901
3880
|
var s = i || {};
|
|
3902
3881
|
s.formatters;
|
|
3903
|
-
var a =
|
|
3904
|
-
this.ast = e.__parse(t,
|
|
3882
|
+
var a = Qr(s, ["formatters"]);
|
|
3883
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3905
3884
|
} else
|
|
3906
3885
|
this.ast = t;
|
|
3907
3886
|
if (!Array.isArray(this.ast))
|
|
3908
3887
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3909
|
-
this.formats =
|
|
3888
|
+
this.formats = vi(e.formats, n), this.formatters = i && i.formatters || yi(this.formatterCache);
|
|
3910
3889
|
}
|
|
3911
3890
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3912
3891
|
get: function() {
|
|
@@ -3919,7 +3898,7 @@ var xi = (
|
|
|
3919
3898
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3920
3899
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3921
3900
|
}
|
|
3922
|
-
}, e.__parse =
|
|
3901
|
+
}, e.__parse = hi, e.formats = {
|
|
3923
3902
|
number: {
|
|
3924
3903
|
integer: {
|
|
3925
3904
|
maximumFractionDigits: 0
|
|
@@ -3980,7 +3959,7 @@ var xi = (
|
|
|
3980
3959
|
}, e;
|
|
3981
3960
|
}()
|
|
3982
3961
|
);
|
|
3983
|
-
function
|
|
3962
|
+
function _i(e, t) {
|
|
3984
3963
|
if (t == null)
|
|
3985
3964
|
return;
|
|
3986
3965
|
if (t in e)
|
|
@@ -4001,92 +3980,92 @@ function Ei(e, t) {
|
|
|
4001
3980
|
n = void 0;
|
|
4002
3981
|
return n;
|
|
4003
3982
|
}
|
|
4004
|
-
const X = {},
|
|
3983
|
+
const X = {}, xi = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), br = (e, t) => {
|
|
4005
3984
|
if (t == null)
|
|
4006
3985
|
return;
|
|
4007
3986
|
if (t in X && e in X[t])
|
|
4008
3987
|
return X[t][e];
|
|
4009
|
-
const r =
|
|
3988
|
+
const r = Re(t);
|
|
4010
3989
|
for (let n = 0; n < r.length; n++) {
|
|
4011
|
-
const i = r[n], o =
|
|
3990
|
+
const i = r[n], o = wi(i, e);
|
|
4012
3991
|
if (o)
|
|
4013
|
-
return
|
|
3992
|
+
return xi(e, t, o);
|
|
4014
3993
|
}
|
|
4015
3994
|
};
|
|
4016
|
-
let
|
|
4017
|
-
const ve =
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
3995
|
+
let ut;
|
|
3996
|
+
const ve = Pe({});
|
|
3997
|
+
function Ei(e) {
|
|
3998
|
+
return ut[e] || null;
|
|
4020
3999
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return e in
|
|
4000
|
+
function vr(e) {
|
|
4001
|
+
return e in ut;
|
|
4023
4002
|
}
|
|
4024
|
-
function
|
|
4025
|
-
if (!
|
|
4003
|
+
function wi(e, t) {
|
|
4004
|
+
if (!vr(e))
|
|
4026
4005
|
return null;
|
|
4027
|
-
const r =
|
|
4028
|
-
return
|
|
4006
|
+
const r = Ei(e);
|
|
4007
|
+
return _i(r, t);
|
|
4029
4008
|
}
|
|
4030
|
-
function
|
|
4009
|
+
function Si(e) {
|
|
4031
4010
|
if (e == null)
|
|
4032
4011
|
return;
|
|
4033
|
-
const t =
|
|
4012
|
+
const t = Re(e);
|
|
4034
4013
|
for (let r = 0; r < t.length; r++) {
|
|
4035
4014
|
const n = t[r];
|
|
4036
|
-
if (
|
|
4015
|
+
if (vr(n))
|
|
4037
4016
|
return n;
|
|
4038
4017
|
}
|
|
4039
4018
|
}
|
|
4040
|
-
function
|
|
4019
|
+
function yr(e, ...t) {
|
|
4041
4020
|
delete X[e], ve.update((r) => (r[e] = Pn.all([r[e] || {}, ...t]), r));
|
|
4042
4021
|
}
|
|
4043
|
-
|
|
4022
|
+
ue(
|
|
4044
4023
|
[ve],
|
|
4045
4024
|
([e]) => Object.keys(e)
|
|
4046
4025
|
);
|
|
4047
|
-
ve.subscribe((e) =>
|
|
4026
|
+
ve.subscribe((e) => ut = e);
|
|
4048
4027
|
const Se = {};
|
|
4049
|
-
function
|
|
4028
|
+
function Ti(e, t) {
|
|
4050
4029
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4051
4030
|
}
|
|
4052
|
-
function
|
|
4031
|
+
function gr(e) {
|
|
4053
4032
|
return Se[e];
|
|
4054
4033
|
}
|
|
4055
|
-
function
|
|
4056
|
-
return
|
|
4057
|
-
const r =
|
|
4034
|
+
function Hi(e) {
|
|
4035
|
+
return Re(e).map((t) => {
|
|
4036
|
+
const r = gr(t);
|
|
4058
4037
|
return [t, r ? [...r] : []];
|
|
4059
4038
|
}).filter(([, t]) => t.length > 0);
|
|
4060
4039
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return e == null ? !1 :
|
|
4040
|
+
function nt(e) {
|
|
4041
|
+
return e == null ? !1 : Re(e).some(
|
|
4063
4042
|
(t) => {
|
|
4064
4043
|
var r;
|
|
4065
|
-
return (r =
|
|
4044
|
+
return (r = gr(t)) == null ? void 0 : r.size;
|
|
4066
4045
|
}
|
|
4067
4046
|
);
|
|
4068
4047
|
}
|
|
4069
|
-
function
|
|
4048
|
+
function Ai(e, t) {
|
|
4070
4049
|
return Promise.all(
|
|
4071
|
-
t.map((n) => (
|
|
4072
|
-
).then((n) =>
|
|
4073
|
-
}
|
|
4074
|
-
const
|
|
4075
|
-
function
|
|
4076
|
-
if (!
|
|
4077
|
-
return e in
|
|
4078
|
-
const t =
|
|
4079
|
-
return
|
|
4050
|
+
t.map((n) => (Ti(e, n), n().then((i) => i.default || i)))
|
|
4051
|
+
).then((n) => yr(e, ...n));
|
|
4052
|
+
}
|
|
4053
|
+
const he = {};
|
|
4054
|
+
function _r(e) {
|
|
4055
|
+
if (!nt(e))
|
|
4056
|
+
return e in he ? he[e] : Promise.resolve();
|
|
4057
|
+
const t = Hi(e);
|
|
4058
|
+
return he[e] = Promise.all(
|
|
4080
4059
|
t.map(
|
|
4081
|
-
([r, n]) =>
|
|
4060
|
+
([r, n]) => Ai(r, n)
|
|
4082
4061
|
)
|
|
4083
4062
|
).then(() => {
|
|
4084
|
-
if (
|
|
4085
|
-
return
|
|
4086
|
-
delete
|
|
4087
|
-
}),
|
|
4063
|
+
if (nt(e))
|
|
4064
|
+
return _r(e);
|
|
4065
|
+
delete he[e];
|
|
4066
|
+
}), he[e];
|
|
4088
4067
|
}
|
|
4089
|
-
const
|
|
4068
|
+
const Bi = {
|
|
4090
4069
|
number: {
|
|
4091
4070
|
scientific: { notation: "scientific" },
|
|
4092
4071
|
engineering: { notation: "engineering" },
|
|
@@ -4115,135 +4094,135 @@ const Oi = {
|
|
|
4115
4094
|
timeZoneName: "short"
|
|
4116
4095
|
}
|
|
4117
4096
|
}
|
|
4118
|
-
},
|
|
4097
|
+
}, Pi = {
|
|
4119
4098
|
fallbackLocale: null,
|
|
4120
4099
|
loadingDelay: 200,
|
|
4121
|
-
formats:
|
|
4100
|
+
formats: Bi,
|
|
4122
4101
|
warnOnMissingMessages: !0,
|
|
4123
4102
|
handleMissingMessage: void 0,
|
|
4124
4103
|
ignoreTag: !0
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4127
|
-
return
|
|
4104
|
+
}, Oi = Pi;
|
|
4105
|
+
function se() {
|
|
4106
|
+
return Oi;
|
|
4128
4107
|
}
|
|
4129
|
-
const
|
|
4130
|
-
var
|
|
4108
|
+
const Fe = Pe(!1);
|
|
4109
|
+
var Ri = Object.defineProperty, Mi = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Li = (e, t) => {
|
|
4131
4110
|
for (var r in t || (t = {}))
|
|
4132
|
-
|
|
4133
|
-
if (
|
|
4134
|
-
for (var r of
|
|
4135
|
-
|
|
4111
|
+
Ci.call(t, r) && It(e, r, t[r]);
|
|
4112
|
+
if (Mt)
|
|
4113
|
+
for (var r of Mt(t))
|
|
4114
|
+
Ni.call(t, r) && It(e, r, t[r]);
|
|
4136
4115
|
return e;
|
|
4137
|
-
},
|
|
4138
|
-
let
|
|
4139
|
-
const He =
|
|
4140
|
-
function
|
|
4116
|
+
}, $i = (e, t) => Mi(e, Ii(t));
|
|
4117
|
+
let it;
|
|
4118
|
+
const He = Pe(null);
|
|
4119
|
+
function Ct(e) {
|
|
4141
4120
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4142
4121
|
}
|
|
4143
|
-
function
|
|
4144
|
-
const r =
|
|
4145
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4122
|
+
function Re(e, t = se().fallbackLocale) {
|
|
4123
|
+
const r = Ct(e);
|
|
4124
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4146
4125
|
}
|
|
4147
4126
|
function J() {
|
|
4148
|
-
return
|
|
4127
|
+
return it != null ? it : void 0;
|
|
4149
4128
|
}
|
|
4150
4129
|
He.subscribe((e) => {
|
|
4151
|
-
|
|
4130
|
+
it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4152
4131
|
});
|
|
4153
|
-
const
|
|
4154
|
-
if (e &&
|
|
4155
|
-
const { loadingDelay: t } =
|
|
4132
|
+
const Di = (e) => {
|
|
4133
|
+
if (e && Si(e) && nt(e)) {
|
|
4134
|
+
const { loadingDelay: t } = se();
|
|
4156
4135
|
let r;
|
|
4157
4136
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
4158
|
-
() =>
|
|
4137
|
+
() => Fe.set(!0),
|
|
4159
4138
|
t
|
|
4160
|
-
) :
|
|
4139
|
+
) : Fe.set(!0), _r(e).then(() => {
|
|
4161
4140
|
He.set(e);
|
|
4162
4141
|
}).finally(() => {
|
|
4163
|
-
clearTimeout(r),
|
|
4142
|
+
clearTimeout(r), Fe.set(!1);
|
|
4164
4143
|
});
|
|
4165
4144
|
}
|
|
4166
4145
|
return He.set(e);
|
|
4167
|
-
},
|
|
4168
|
-
set:
|
|
4169
|
-
}),
|
|
4146
|
+
}, le = $i(Li({}, He), {
|
|
4147
|
+
set: Di
|
|
4148
|
+
}), Me = (e) => {
|
|
4170
4149
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4171
4150
|
return (n) => {
|
|
4172
4151
|
const i = JSON.stringify(n);
|
|
4173
4152
|
return i in t ? t[i] : t[i] = e(n);
|
|
4174
4153
|
};
|
|
4175
4154
|
};
|
|
4176
|
-
var
|
|
4155
|
+
var ki = Object.defineProperty, Ae = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4177
4156
|
for (var r in t || (t = {}))
|
|
4178
|
-
|
|
4179
|
-
if (
|
|
4180
|
-
for (var r of
|
|
4181
|
-
|
|
4157
|
+
xr.call(t, r) && Nt(e, r, t[r]);
|
|
4158
|
+
if (Ae)
|
|
4159
|
+
for (var r of Ae(t))
|
|
4160
|
+
Er.call(t, r) && Nt(e, r, t[r]);
|
|
4182
4161
|
return e;
|
|
4183
|
-
},
|
|
4162
|
+
}, ce = (e, t) => {
|
|
4184
4163
|
var r = {};
|
|
4185
4164
|
for (var n in e)
|
|
4186
|
-
|
|
4187
|
-
if (e != null &&
|
|
4188
|
-
for (var n of
|
|
4189
|
-
t.indexOf(n) < 0 &&
|
|
4165
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4166
|
+
if (e != null && Ae)
|
|
4167
|
+
for (var n of Ae(e))
|
|
4168
|
+
t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
|
|
4190
4169
|
return r;
|
|
4191
4170
|
};
|
|
4192
|
-
const
|
|
4193
|
-
const { formats: r } =
|
|
4171
|
+
const be = (e, t) => {
|
|
4172
|
+
const { formats: r } = se();
|
|
4194
4173
|
if (e in r && t in r[e])
|
|
4195
4174
|
return r[e][t];
|
|
4196
4175
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4197
|
-
},
|
|
4176
|
+
}, Ui = Me(
|
|
4198
4177
|
(e) => {
|
|
4199
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4178
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4200
4179
|
if (r == null)
|
|
4201
4180
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4202
|
-
return n && (i =
|
|
4181
|
+
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
|
4203
4182
|
}
|
|
4204
|
-
),
|
|
4183
|
+
), Fi = Me(
|
|
4205
4184
|
(e) => {
|
|
4206
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4185
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4207
4186
|
if (r == null)
|
|
4208
4187
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4209
|
-
return n ? i =
|
|
4188
|
+
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4189
|
}
|
|
4211
|
-
),
|
|
4190
|
+
), ji = Me(
|
|
4212
4191
|
(e) => {
|
|
4213
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4192
|
+
var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
|
|
4214
4193
|
if (r == null)
|
|
4215
4194
|
throw new Error(
|
|
4216
4195
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4217
4196
|
);
|
|
4218
|
-
return n ? i =
|
|
4197
|
+
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4219
4198
|
}
|
|
4220
|
-
),
|
|
4199
|
+
), Gi = (e = {}) => {
|
|
4221
4200
|
var t = e, {
|
|
4222
4201
|
locale: r = J()
|
|
4223
|
-
} = t, n =
|
|
4202
|
+
} = t, n = ce(t, [
|
|
4224
4203
|
"locale"
|
|
4225
4204
|
]);
|
|
4226
|
-
return
|
|
4227
|
-
},
|
|
4205
|
+
return Ui(lt({ locale: r }, n));
|
|
4206
|
+
}, Vi = (e = {}) => {
|
|
4228
4207
|
var t = e, {
|
|
4229
4208
|
locale: r = J()
|
|
4230
|
-
} = t, n =
|
|
4209
|
+
} = t, n = ce(t, [
|
|
4231
4210
|
"locale"
|
|
4232
4211
|
]);
|
|
4233
|
-
return
|
|
4234
|
-
},
|
|
4212
|
+
return Fi(lt({ locale: r }, n));
|
|
4213
|
+
}, qi = (e = {}) => {
|
|
4235
4214
|
var t = e, {
|
|
4236
4215
|
locale: r = J()
|
|
4237
|
-
} = t, n =
|
|
4216
|
+
} = t, n = ce(t, [
|
|
4238
4217
|
"locale"
|
|
4239
4218
|
]);
|
|
4240
|
-
return
|
|
4241
|
-
},
|
|
4219
|
+
return ji(lt({ locale: r }, n));
|
|
4220
|
+
}, Xi = Me(
|
|
4242
4221
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4243
|
-
(e, t = J()) => new
|
|
4244
|
-
ignoreTag:
|
|
4222
|
+
(e, t = J()) => new gi(e, t, se().formats, {
|
|
4223
|
+
ignoreTag: se().ignoreTag
|
|
4245
4224
|
})
|
|
4246
|
-
),
|
|
4225
|
+
), Wi = (e, t = {}) => {
|
|
4247
4226
|
var r, n, i, o;
|
|
4248
4227
|
let s = t;
|
|
4249
4228
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4256,9 +4235,9 @@ const me = (e, t) => {
|
|
|
4256
4235
|
throw new Error(
|
|
4257
4236
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4258
4237
|
);
|
|
4259
|
-
let c =
|
|
4238
|
+
let c = br(e, l);
|
|
4260
4239
|
if (!c)
|
|
4261
|
-
c = (o = (i = (n = (r =
|
|
4240
|
+
c = (o = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4262
4241
|
else if (typeof c != "string")
|
|
4263
4242
|
return console.warn(
|
|
4264
4243
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4267,7 +4246,7 @@ const me = (e, t) => {
|
|
|
4267
4246
|
return c;
|
|
4268
4247
|
let p = c;
|
|
4269
4248
|
try {
|
|
4270
|
-
p =
|
|
4249
|
+
p = Xi(c, l).format(a);
|
|
4271
4250
|
} catch (h) {
|
|
4272
4251
|
h instanceof Error && console.warn(
|
|
4273
4252
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4275,21 +4254,21 @@ const me = (e, t) => {
|
|
|
4275
4254
|
);
|
|
4276
4255
|
}
|
|
4277
4256
|
return p;
|
|
4278
|
-
},
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4257
|
+
}, zi = (e, t) => qi(t).format(e), Zi = (e, t) => Vi(t).format(e), Ji = (e, t) => Gi(t).format(e), Qi = (e, t = J()) => br(e, t), Yi = ue([le, ve], () => Wi);
|
|
4258
|
+
ue([le], () => zi);
|
|
4259
|
+
ue([le], () => Zi);
|
|
4260
|
+
ue([le], () => Ji);
|
|
4261
|
+
ue([le, ve], () => Qi);
|
|
4283
4262
|
window.emWidgets = { topic: fn };
|
|
4284
|
-
const
|
|
4263
|
+
const Ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4285
4264
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4286
|
-
function
|
|
4287
|
-
|
|
4265
|
+
function Lt(e, t) {
|
|
4266
|
+
yr(e, t);
|
|
4288
4267
|
}
|
|
4289
|
-
function
|
|
4290
|
-
|
|
4268
|
+
function eo(e) {
|
|
4269
|
+
le.set(e);
|
|
4291
4270
|
}
|
|
4292
|
-
const
|
|
4271
|
+
const $t = {
|
|
4293
4272
|
en: {
|
|
4294
4273
|
titleAccountReview: "Account Review Frequency",
|
|
4295
4274
|
accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
|
|
@@ -4401,13 +4380,13 @@ const kt = {
|
|
|
4401
4380
|
monthly: "Monthly"
|
|
4402
4381
|
}
|
|
4403
4382
|
};
|
|
4404
|
-
function
|
|
4383
|
+
function to(e, t) {
|
|
4405
4384
|
if (e) {
|
|
4406
4385
|
const r = document.createElement("style");
|
|
4407
4386
|
r.innerHTML = t, e.appendChild(r);
|
|
4408
4387
|
}
|
|
4409
4388
|
}
|
|
4410
|
-
function
|
|
4389
|
+
function ro(e, t) {
|
|
4411
4390
|
if (!e || !t)
|
|
4412
4391
|
return;
|
|
4413
4392
|
const r = new URL(t);
|
|
@@ -4418,7 +4397,7 @@ function io(e, t) {
|
|
|
4418
4397
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4419
4398
|
});
|
|
4420
4399
|
}
|
|
4421
|
-
function
|
|
4400
|
+
function no(e, t, r) {
|
|
4422
4401
|
if (window.emMessageBus) {
|
|
4423
4402
|
const n = document.createElement("style");
|
|
4424
4403
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4426,44 +4405,44 @@ function oo(e, t, r) {
|
|
|
4426
4405
|
});
|
|
4427
4406
|
}
|
|
4428
4407
|
}
|
|
4429
|
-
function
|
|
4430
|
-
|
|
4408
|
+
function io(e) {
|
|
4409
|
+
Or(e, "svelte-1u91vzw", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation:fadeIn 0.3s ease-in 1}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #fff);border:1px solid var(--emw--color-gray-300, #58586b);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.PlayerAccountReviewWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px}.PlayerAccountReviewWrapper.PlayerAccountReviewWrapperMobile{padding:20px 15px;max-width:unset}.AccountReviewTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.AccountReviewTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.AccountReviewTitleNone{display:none}.AccountReviewDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));line-height:24px}.AccountReviewDescription p{min-height:140px}.AccountReviewDescription.AccountReviewDescriptionMobile{font-size:12px;line-height:18px}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #fff));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.containerTimeout{animation:fadeIn 0.3s ease-in 1}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4431
4410
|
}
|
|
4432
|
-
function
|
|
4411
|
+
function Dt(e, t, r) {
|
|
4433
4412
|
const n = e.slice();
|
|
4434
4413
|
return n[28] = t[r].value, n[29] = t[r].text, n;
|
|
4435
4414
|
}
|
|
4436
|
-
function
|
|
4415
|
+
function oo(e, t, r) {
|
|
4437
4416
|
const n = e.slice();
|
|
4438
4417
|
return n[25] = t[r], n;
|
|
4439
4418
|
}
|
|
4440
|
-
function
|
|
4419
|
+
function so(e) {
|
|
4441
4420
|
let t, r, n, i = (
|
|
4442
4421
|
/*$_*/
|
|
4443
4422
|
e[5]("titleAccountReview") + ""
|
|
4444
4423
|
), o, s, a, l, u = (
|
|
4445
4424
|
/*$_*/
|
|
4446
4425
|
e[5]("accountReviewText") + ""
|
|
4447
|
-
), c, p, h, b, m, f,
|
|
4426
|
+
), c, p, h, b, m, f, w = (
|
|
4448
4427
|
/*$_*/
|
|
4449
4428
|
e[5]("setFrequency") + ""
|
|
4450
|
-
), B,
|
|
4429
|
+
), B, C, P, D, N, M = (
|
|
4451
4430
|
/*isMobile*/
|
|
4452
|
-
e[6] &&
|
|
4453
|
-
), k =
|
|
4431
|
+
e[6] && uo(e)
|
|
4432
|
+
), k = qe(
|
|
4454
4433
|
/*options*/
|
|
4455
4434
|
e[4]
|
|
4456
4435
|
), O = [];
|
|
4457
|
-
for (let
|
|
4458
|
-
O[
|
|
4436
|
+
for (let E = 0; E < k.length; E += 1)
|
|
4437
|
+
O[E] = kt(Dt(e, k, E));
|
|
4459
4438
|
return {
|
|
4460
4439
|
c() {
|
|
4461
|
-
t =
|
|
4462
|
-
for (let
|
|
4463
|
-
O[
|
|
4464
|
-
b =
|
|
4440
|
+
t = S("div"), M && M.c(), r = F(), n = S("h2"), o = Z(i), s = F(), a = S("div"), l = S("p"), c = Z(u), p = F(), h = S("form");
|
|
4441
|
+
for (let E = 0; E < O.length; E += 1)
|
|
4442
|
+
O[E].c();
|
|
4443
|
+
b = F(), m = S("div"), f = S("button"), B = Z(w), _(n, "class", "AccountReviewTitle " + /*isMobile*/
|
|
4465
4444
|
(e[6] ? "AccountReviewTitleNone" : "")), _(a, "class", "AccountReviewDescription " + /*isMobile*/
|
|
4466
|
-
(e[6] ? "AccountReviewDescriptionMobile" : "")), _(f, "class",
|
|
4445
|
+
(e[6] ? "AccountReviewDescriptionMobile" : "")), _(f, "class", C = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
4467
4446
|
e[2] || /*currentInterval*/
|
|
4468
4447
|
e[3] === /*selectedInterval*/
|
|
4469
4448
|
e[2] ? "ButtonInactive" : "")), f.disabled = P = !/*selectedInterval*/
|
|
@@ -4472,113 +4451,113 @@ function uo(e) {
|
|
|
4472
4451
|
e[2], _(m, "class", "BottomButtonsArea " + /*isMobile*/
|
|
4473
4452
|
(e[6] ? "BottomButtonsAreaMobile" : "")), _(h, "class", "customRadio"), _(t, "class", "containerTimeout");
|
|
4474
4453
|
},
|
|
4475
|
-
m(
|
|
4476
|
-
|
|
4454
|
+
m(E, L) {
|
|
4455
|
+
V(E, t, L), M && M.m(t, null), v(t, r), v(t, n), v(n, o), v(t, s), v(t, a), v(a, l), v(l, c), v(t, p), v(t, h);
|
|
4477
4456
|
for (let d = 0; d < O.length; d += 1)
|
|
4478
4457
|
O[d] && O[d].m(h, null);
|
|
4479
|
-
v(h, b), v(h, m), v(m, f), v(f, B), D || (
|
|
4458
|
+
v(h, b), v(h, m), v(m, f), v(f, B), D || (N = Te(
|
|
4480
4459
|
f,
|
|
4481
4460
|
"click",
|
|
4482
4461
|
/*submit*/
|
|
4483
4462
|
e[7]
|
|
4484
4463
|
), D = !0);
|
|
4485
4464
|
},
|
|
4486
|
-
p(
|
|
4465
|
+
p(E, L) {
|
|
4487
4466
|
if (
|
|
4488
4467
|
/*isMobile*/
|
|
4489
|
-
|
|
4468
|
+
E[6] && M.p(E, L), L[0] & /*$_*/
|
|
4490
4469
|
32 && i !== (i = /*$_*/
|
|
4491
|
-
|
|
4470
|
+
E[5]("titleAccountReview") + "") && fe(o, i), L[0] & /*$_*/
|
|
4492
4471
|
32 && u !== (u = /*$_*/
|
|
4493
|
-
|
|
4472
|
+
E[5]("accountReviewText") + "") && fe(c, u), L[0] & /*options, selectedInterval*/
|
|
4494
4473
|
20
|
|
4495
4474
|
) {
|
|
4496
|
-
k =
|
|
4475
|
+
k = qe(
|
|
4497
4476
|
/*options*/
|
|
4498
|
-
|
|
4477
|
+
E[4]
|
|
4499
4478
|
);
|
|
4500
4479
|
let d;
|
|
4501
4480
|
for (d = 0; d < k.length; d += 1) {
|
|
4502
|
-
const
|
|
4503
|
-
O[d] ? O[d].p(
|
|
4481
|
+
const H = Dt(E, k, d);
|
|
4482
|
+
O[d] ? O[d].p(H, L) : (O[d] = kt(H), O[d].c(), O[d].m(h, b));
|
|
4504
4483
|
}
|
|
4505
4484
|
for (; d < O.length; d += 1)
|
|
4506
4485
|
O[d].d(1);
|
|
4507
4486
|
O.length = k.length;
|
|
4508
4487
|
}
|
|
4509
4488
|
L[0] & /*$_*/
|
|
4510
|
-
32 &&
|
|
4511
|
-
|
|
4512
|
-
12 &&
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4489
|
+
32 && w !== (w = /*$_*/
|
|
4490
|
+
E[5]("setFrequency") + "") && fe(B, w), L[0] & /*selectedInterval, currentInterval*/
|
|
4491
|
+
12 && C !== (C = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
4492
|
+
E[2] || /*currentInterval*/
|
|
4493
|
+
E[3] === /*selectedInterval*/
|
|
4494
|
+
E[2] ? "ButtonInactive" : "")) && _(f, "class", C), L[0] & /*selectedInterval, currentInterval*/
|
|
4516
4495
|
12 && P !== (P = !/*selectedInterval*/
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4496
|
+
E[2] || /*currentInterval*/
|
|
4497
|
+
E[3] === /*selectedInterval*/
|
|
4498
|
+
E[2]) && (f.disabled = P);
|
|
4520
4499
|
},
|
|
4521
|
-
d(
|
|
4522
|
-
|
|
4500
|
+
d(E) {
|
|
4501
|
+
E && j(t), M && M.d(), Vt(O, E), D = !1, N();
|
|
4523
4502
|
}
|
|
4524
4503
|
};
|
|
4525
4504
|
}
|
|
4526
|
-
function
|
|
4505
|
+
function ao(e) {
|
|
4527
4506
|
let t, r, n, i, o, s, a, l, u;
|
|
4528
|
-
function c(f,
|
|
4507
|
+
function c(f, w) {
|
|
4529
4508
|
return (
|
|
4530
4509
|
/*isMobile*/
|
|
4531
|
-
f[6] ?
|
|
4510
|
+
f[6] ? co : lo
|
|
4532
4511
|
);
|
|
4533
4512
|
}
|
|
4534
|
-
let h = c(e)(e), b =
|
|
4513
|
+
let h = c(e)(e), b = qe({ length: 6 }), m = [];
|
|
4535
4514
|
for (let f = 0; f < b.length; f += 1)
|
|
4536
|
-
m[f] =
|
|
4515
|
+
m[f] = ho(oo(e, b, f));
|
|
4537
4516
|
return {
|
|
4538
4517
|
c() {
|
|
4539
|
-
t =
|
|
4518
|
+
t = S("div"), h.c(), r = F(), n = S("div"), i = S("ui-skeleton"), o = F(), s = S("div");
|
|
4540
4519
|
for (let f = 0; f < m.length; f += 1)
|
|
4541
4520
|
m[f].c();
|
|
4542
|
-
a =
|
|
4521
|
+
a = F(), l = S("div"), u = S("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
|
|
4543
4522
|
i,
|
|
4544
4523
|
"rows",
|
|
4545
4524
|
/*isMobile*/
|
|
4546
4525
|
e[6] ? "5" : "3"
|
|
4547
|
-
), _(n, "class", "SkeletonTextContainer"),
|
|
4526
|
+
), _(n, "class", "SkeletonTextContainer"), A(u, "structure", "rectangle"), A(u, "height", "50px"), A(u, "margin-bottom", "0"), A(u, "borderRadius", "5px"), A(
|
|
4548
4527
|
u,
|
|
4549
4528
|
"width",
|
|
4550
4529
|
/*isMobile*/
|
|
4551
4530
|
e[6] ? "100%" : "350px"
|
|
4552
4531
|
), _(l, "class", "Button"), _(s, "class", "SkeletonOptionContainer"), _(t, "class", "SkeletonContainer");
|
|
4553
4532
|
},
|
|
4554
|
-
m(f,
|
|
4555
|
-
|
|
4533
|
+
m(f, w) {
|
|
4534
|
+
V(f, t, w), h.m(t, null), v(t, r), v(t, n), v(n, i), v(t, o), v(t, s);
|
|
4556
4535
|
for (let B = 0; B < m.length; B += 1)
|
|
4557
4536
|
m[B] && m[B].m(s, null);
|
|
4558
4537
|
v(s, a), v(s, l), v(l, u);
|
|
4559
4538
|
},
|
|
4560
|
-
p(f,
|
|
4561
|
-
h.p(f,
|
|
4539
|
+
p(f, w) {
|
|
4540
|
+
h.p(f, w);
|
|
4562
4541
|
},
|
|
4563
4542
|
d(f) {
|
|
4564
|
-
f &&
|
|
4543
|
+
f && j(t), h.d(), Vt(m, f);
|
|
4565
4544
|
}
|
|
4566
4545
|
};
|
|
4567
4546
|
}
|
|
4568
|
-
function
|
|
4547
|
+
function uo(e) {
|
|
4569
4548
|
let t, r, n, i, o, s, a, l, u, c, p = (
|
|
4570
4549
|
/*$_*/
|
|
4571
4550
|
e[5]("titleAccountReview") + ""
|
|
4572
4551
|
), h, b, m;
|
|
4573
4552
|
return {
|
|
4574
4553
|
c() {
|
|
4575
|
-
t =
|
|
4554
|
+
t = S("div"), r = Q("svg"), n = Q("defs"), i = Q("style"), o = Z(`.aaa {
|
|
4576
4555
|
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
|
|
4577
4556
|
}
|
|
4578
|
-
`), s = Q("g"), a = Q("g"), l = Q("path"), u =
|
|
4557
|
+
`), s = Q("g"), a = Q("g"), l = Q("path"), u = F(), c = S("h2"), h = Z(p), _(l, "class", "aaa"), _(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), _(l, "transform", "translate(15 15) rotate(180)"), _(a, "transform", "translate(20 158)"), _(s, "transform", "translate(-20 -158)"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "15"), _(r, "height", "15"), _(r, "viewBox", "0 0 15 15"), _(c, "class", "AccountReviewTitleMobile"), _(t, "class", "MenuReturnButton");
|
|
4579
4558
|
},
|
|
4580
|
-
m(f,
|
|
4581
|
-
|
|
4559
|
+
m(f, w) {
|
|
4560
|
+
V(f, t, w), v(t, r), v(r, n), v(n, i), v(i, o), v(r, s), v(s, a), v(a, l), v(t, u), v(t, c), v(c, h), b || (m = [
|
|
4582
4561
|
Te(
|
|
4583
4562
|
t,
|
|
4584
4563
|
"click",
|
|
@@ -4588,33 +4567,33 @@ function co(e) {
|
|
|
4588
4567
|
Te(t, "keydown", null)
|
|
4589
4568
|
], b = !0);
|
|
4590
4569
|
},
|
|
4591
|
-
p(f,
|
|
4592
|
-
|
|
4570
|
+
p(f, w) {
|
|
4571
|
+
w[0] & /*$_*/
|
|
4593
4572
|
32 && p !== (p = /*$_*/
|
|
4594
|
-
f[5]("titleAccountReview") + "") &&
|
|
4573
|
+
f[5]("titleAccountReview") + "") && fe(h, p);
|
|
4595
4574
|
},
|
|
4596
4575
|
d(f) {
|
|
4597
|
-
f &&
|
|
4576
|
+
f && j(t), b = !1, ae(m);
|
|
4598
4577
|
}
|
|
4599
4578
|
};
|
|
4600
4579
|
}
|
|
4601
|
-
function
|
|
4580
|
+
function kt(e) {
|
|
4602
4581
|
let t, r, n, i, o = !1, s, a, l = (
|
|
4603
4582
|
/*text*/
|
|
4604
4583
|
e[29] + ""
|
|
4605
4584
|
), u, c, p, h, b;
|
|
4606
|
-
return p =
|
|
4585
|
+
return p = Ir(
|
|
4607
4586
|
/*$$binding_groups*/
|
|
4608
4587
|
e[18][0]
|
|
4609
4588
|
), {
|
|
4610
4589
|
c() {
|
|
4611
|
-
t =
|
|
4590
|
+
t = S("div"), r = S("input"), s = F(), a = S("label"), u = Z(l), _(r, "type", "radio"), _(r, "id", n = "interval-" + /*value*/
|
|
4612
4591
|
e[28]), r.__value = i = /*value*/
|
|
4613
|
-
e[28],
|
|
4592
|
+
e[28], dt(r, r.__value), _(a, "for", c = "interval-" + /*value*/
|
|
4614
4593
|
e[28]), p.p(r);
|
|
4615
4594
|
},
|
|
4616
4595
|
m(m, f) {
|
|
4617
|
-
|
|
4596
|
+
V(m, t, f), v(t, r), r.checked = r.__value === /*selectedInterval*/
|
|
4618
4597
|
e[2], v(t, s), v(t, a), v(a, u), h || (b = Te(
|
|
4619
4598
|
r,
|
|
4620
4599
|
"change",
|
|
@@ -4627,81 +4606,81 @@ function Ft(e) {
|
|
|
4627
4606
|
16 && n !== (n = "interval-" + /*value*/
|
|
4628
4607
|
m[28]) && _(r, "id", n), f[0] & /*options*/
|
|
4629
4608
|
16 && i !== (i = /*value*/
|
|
4630
|
-
m[28]) && (r.__value = i,
|
|
4609
|
+
m[28]) && (r.__value = i, dt(r, r.__value), o = !0), (o || f[0] & /*selectedInterval, options*/
|
|
4631
4610
|
20) && (r.checked = r.__value === /*selectedInterval*/
|
|
4632
4611
|
m[2]), f[0] & /*options*/
|
|
4633
4612
|
16 && l !== (l = /*text*/
|
|
4634
|
-
m[29] + "") &&
|
|
4613
|
+
m[29] + "") && fe(u, l), f[0] & /*options*/
|
|
4635
4614
|
16 && c !== (c = "interval-" + /*value*/
|
|
4636
4615
|
m[28]) && _(a, "for", c);
|
|
4637
4616
|
},
|
|
4638
4617
|
d(m) {
|
|
4639
|
-
m &&
|
|
4618
|
+
m && j(t), p.r(), h = !1, b();
|
|
4640
4619
|
}
|
|
4641
4620
|
};
|
|
4642
4621
|
}
|
|
4643
|
-
function
|
|
4622
|
+
function lo(e) {
|
|
4644
4623
|
let t;
|
|
4645
4624
|
return {
|
|
4646
4625
|
c() {
|
|
4647
|
-
t =
|
|
4626
|
+
t = S("div"), t.innerHTML = '<ui-skeleton structure="title" width="280px" margin-top="20px"></ui-skeleton>', _(t, "class", "SkeletonHeaderText");
|
|
4648
4627
|
},
|
|
4649
4628
|
m(r, n) {
|
|
4650
|
-
|
|
4629
|
+
V(r, t, n);
|
|
4651
4630
|
},
|
|
4652
4631
|
p: I,
|
|
4653
4632
|
d(r) {
|
|
4654
|
-
r &&
|
|
4633
|
+
r && j(t);
|
|
4655
4634
|
}
|
|
4656
4635
|
};
|
|
4657
4636
|
}
|
|
4658
|
-
function
|
|
4637
|
+
function co(e) {
|
|
4659
4638
|
let t, r, n, i;
|
|
4660
4639
|
return {
|
|
4661
4640
|
c() {
|
|
4662
|
-
t =
|
|
4641
|
+
t = S("div"), r = S("ui-skeleton"), n = F(), i = S("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "180px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), _(t, "class", "SkeletonMenuButton " + /*isMobile*/
|
|
4663
4642
|
(e[6] ? "Mobile" : ""));
|
|
4664
4643
|
},
|
|
4665
4644
|
m(o, s) {
|
|
4666
|
-
|
|
4645
|
+
V(o, t, s), v(t, r), v(t, n), v(t, i);
|
|
4667
4646
|
},
|
|
4668
4647
|
p: I,
|
|
4669
4648
|
d(o) {
|
|
4670
|
-
o &&
|
|
4649
|
+
o && j(t);
|
|
4671
4650
|
}
|
|
4672
4651
|
};
|
|
4673
4652
|
}
|
|
4674
|
-
function
|
|
4653
|
+
function ho(e) {
|
|
4675
4654
|
let t;
|
|
4676
4655
|
return {
|
|
4677
4656
|
c() {
|
|
4678
|
-
t =
|
|
4657
|
+
t = S("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', _(t, "class", "SkeletonOption");
|
|
4679
4658
|
},
|
|
4680
4659
|
m(r, n) {
|
|
4681
|
-
|
|
4660
|
+
V(r, t, n);
|
|
4682
4661
|
},
|
|
4683
4662
|
p: I,
|
|
4684
4663
|
d(r) {
|
|
4685
|
-
r &&
|
|
4664
|
+
r && j(t);
|
|
4686
4665
|
}
|
|
4687
4666
|
};
|
|
4688
4667
|
}
|
|
4689
|
-
function
|
|
4668
|
+
function fo(e) {
|
|
4690
4669
|
let t;
|
|
4691
4670
|
function r(o, s) {
|
|
4692
4671
|
return (
|
|
4693
4672
|
/*skeletonLoading*/
|
|
4694
|
-
o[1] ?
|
|
4673
|
+
o[1] ? ao : so
|
|
4695
4674
|
);
|
|
4696
4675
|
}
|
|
4697
4676
|
let n = r(e), i = n(e);
|
|
4698
4677
|
return {
|
|
4699
4678
|
c() {
|
|
4700
|
-
t =
|
|
4679
|
+
t = S("div"), i.c(), _(t, "class", "PlayerAccountReviewWrapper " + /*isMobile*/
|
|
4701
4680
|
(e[6] ? "PlayerAccountReviewWrapperMobile" : ""));
|
|
4702
4681
|
},
|
|
4703
4682
|
m(o, s) {
|
|
4704
|
-
|
|
4683
|
+
V(o, t, s), i.m(t, null), e[19](t);
|
|
4705
4684
|
},
|
|
4706
4685
|
p(o, s) {
|
|
4707
4686
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4709,23 +4688,23 @@ function mo(e) {
|
|
|
4709
4688
|
i: I,
|
|
4710
4689
|
o: I,
|
|
4711
4690
|
d(o) {
|
|
4712
|
-
o &&
|
|
4691
|
+
o && j(t), i.d(), e[19](null);
|
|
4713
4692
|
}
|
|
4714
4693
|
};
|
|
4715
4694
|
}
|
|
4716
|
-
const
|
|
4717
|
-
function
|
|
4695
|
+
const Ut = 2;
|
|
4696
|
+
function po(e, t, r) {
|
|
4718
4697
|
let n;
|
|
4719
|
-
|
|
4720
|
-
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: p = "" } = t, h, b =
|
|
4721
|
-
const
|
|
4698
|
+
Pr(e, Yi, (d) => r(5, n = d));
|
|
4699
|
+
let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: p = "" } = t, h, b = Ki(window.navigator.userAgent) !== "PC", m = !0, f = "", w = "", B = [];
|
|
4700
|
+
const C = () => ye(this, null, function* () {
|
|
4722
4701
|
try {
|
|
4723
4702
|
const d = new URL(`${i}/api/pam/v1/player-notifications`);
|
|
4724
|
-
d.searchParams.set("type", String(
|
|
4725
|
-
const
|
|
4726
|
-
|
|
4727
|
-
const z = yield (yield fetch(d.href, { method: "GET", headers:
|
|
4728
|
-
z != null && z.interval && (r(3,
|
|
4703
|
+
d.searchParams.set("type", String(Ut)), d.searchParams.append("createNotificationIfNotFound", "true");
|
|
4704
|
+
const H = new Headers();
|
|
4705
|
+
H.append("X-SessionID", s), H.append("accept", "application/json");
|
|
4706
|
+
const z = yield (yield fetch(d.href, { method: "GET", headers: H })).json();
|
|
4707
|
+
z != null && z.interval && (r(3, w = String(z == null ? void 0 : z.interval)), r(2, f = w)), B.length || r(4, B = [
|
|
4729
4708
|
{ value: "1", text: n("daily") },
|
|
4730
4709
|
{ value: "2", text: n("weekly") },
|
|
4731
4710
|
{ value: "3", text: n("monthly") },
|
|
@@ -4736,25 +4715,25 @@ function bo(e, t, r) {
|
|
|
4736
4715
|
}
|
|
4737
4716
|
}), P = () => ye(this, null, function* () {
|
|
4738
4717
|
try {
|
|
4739
|
-
const d = new URL(`${i}/api/pam/v1/player-notifications`),
|
|
4740
|
-
|
|
4718
|
+
const d = new URL(`${i}/api/pam/v1/player-notifications`), H = new Headers();
|
|
4719
|
+
H.append("X-SessionID", s), H.append("Content-Type", "application/json"), H.append("Accept", "application/json"), d.searchParams.append("createNotificationIfNotFound", "true");
|
|
4741
4720
|
const W = {
|
|
4742
|
-
type:
|
|
4721
|
+
type: Ut,
|
|
4743
4722
|
interval: Number(f),
|
|
4744
4723
|
ackNotification: !0,
|
|
4745
4724
|
ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
4746
4725
|
};
|
|
4747
4726
|
return (yield fetch(d.href, {
|
|
4748
4727
|
method: "PATCH",
|
|
4749
|
-
headers:
|
|
4728
|
+
headers: H,
|
|
4750
4729
|
body: JSON.stringify(W)
|
|
4751
4730
|
})).ok;
|
|
4752
4731
|
} catch (d) {
|
|
4753
4732
|
return console.error(d), !1;
|
|
4754
4733
|
}
|
|
4755
4734
|
}), D = (d) => {
|
|
4756
|
-
d.preventDefault(), f && P().then((
|
|
4757
|
-
const W =
|
|
4735
|
+
d.preventDefault(), f && P().then((H) => {
|
|
4736
|
+
const W = H ? {
|
|
4758
4737
|
type: "success",
|
|
4759
4738
|
message: n("successMessage")
|
|
4760
4739
|
} : {
|
|
@@ -4767,9 +4746,9 @@ function bo(e, t, r) {
|
|
|
4767
4746
|
data: W
|
|
4768
4747
|
},
|
|
4769
4748
|
window.location.href
|
|
4770
|
-
),
|
|
4749
|
+
), H && r(3, w = f);
|
|
4771
4750
|
});
|
|
4772
|
-
},
|
|
4751
|
+
}, N = () => {
|
|
4773
4752
|
window.postMessage(
|
|
4774
4753
|
{
|
|
4775
4754
|
type: "PlayerAccountMenuActive",
|
|
@@ -4777,22 +4756,22 @@ function bo(e, t, r) {
|
|
|
4777
4756
|
},
|
|
4778
4757
|
window.location.href
|
|
4779
4758
|
);
|
|
4780
|
-
}, M = () =>
|
|
4759
|
+
}, M = () => eo(a), k = () => {
|
|
4781
4760
|
const d = p;
|
|
4782
|
-
d && fetch(d).then((
|
|
4783
|
-
Object.keys(
|
|
4784
|
-
|
|
4761
|
+
d && fetch(d).then((H) => H.json()).then((H) => {
|
|
4762
|
+
Object.keys(H).forEach((W) => {
|
|
4763
|
+
Lt(W, H[W]);
|
|
4785
4764
|
});
|
|
4786
|
-
}).catch((
|
|
4765
|
+
}).catch((H) => console.log(H));
|
|
4787
4766
|
};
|
|
4788
|
-
Object.keys(
|
|
4767
|
+
Object.keys($t).forEach((d) => Lt(d, $t[d])), $r(() => () => {
|
|
4789
4768
|
});
|
|
4790
4769
|
const O = [[]];
|
|
4791
|
-
function
|
|
4770
|
+
function E() {
|
|
4792
4771
|
f = this.__value, r(2, f);
|
|
4793
4772
|
}
|
|
4794
4773
|
function L(d) {
|
|
4795
|
-
|
|
4774
|
+
je[d ? "unshift" : "push"](() => {
|
|
4796
4775
|
h = d, r(0, h);
|
|
4797
4776
|
});
|
|
4798
4777
|
}
|
|
@@ -4801,21 +4780,21 @@ function bo(e, t, r) {
|
|
|
4801
4780
|
}, e.$$.update = () => {
|
|
4802
4781
|
e.$$.dirty[0] & /*lang*/
|
|
4803
4782
|
4096 && a && M(), e.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
4804
|
-
3584 && i && o && s &&
|
|
4805
|
-
8193 && l && h &&
|
|
4806
|
-
16385 && u && h &&
|
|
4807
|
-
32769 && c && h &&
|
|
4783
|
+
3584 && i && o && s && C(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4784
|
+
8193 && l && h && to(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4785
|
+
16385 && u && h && ro(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4786
|
+
32769 && c && h && no(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4808
4787
|
65536 && p && k();
|
|
4809
4788
|
}, [
|
|
4810
4789
|
h,
|
|
4811
4790
|
m,
|
|
4812
4791
|
f,
|
|
4813
|
-
|
|
4792
|
+
w,
|
|
4814
4793
|
B,
|
|
4815
4794
|
n,
|
|
4816
4795
|
b,
|
|
4817
4796
|
D,
|
|
4818
|
-
|
|
4797
|
+
N,
|
|
4819
4798
|
i,
|
|
4820
4799
|
o,
|
|
4821
4800
|
s,
|
|
@@ -4824,19 +4803,19 @@ function bo(e, t, r) {
|
|
|
4824
4803
|
u,
|
|
4825
4804
|
c,
|
|
4826
4805
|
p,
|
|
4827
|
-
|
|
4806
|
+
E,
|
|
4828
4807
|
O,
|
|
4829
4808
|
L
|
|
4830
4809
|
];
|
|
4831
4810
|
}
|
|
4832
|
-
class
|
|
4811
|
+
class mo extends Zr {
|
|
4833
4812
|
constructor(t) {
|
|
4834
|
-
super(),
|
|
4813
|
+
super(), Wr(
|
|
4835
4814
|
this,
|
|
4836
4815
|
t,
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4816
|
+
po,
|
|
4817
|
+
fo,
|
|
4818
|
+
jt,
|
|
4840
4819
|
{
|
|
4841
4820
|
endpoint: 9,
|
|
4842
4821
|
playerid: 10,
|
|
@@ -4847,7 +4826,7 @@ class vo extends Jr {
|
|
|
4847
4826
|
mbsource: 15,
|
|
4848
4827
|
translationurl: 16
|
|
4849
4828
|
},
|
|
4850
|
-
|
|
4829
|
+
io,
|
|
4851
4830
|
[-1, -1]
|
|
4852
4831
|
);
|
|
4853
4832
|
}
|
|
@@ -4900,7 +4879,7 @@ class vo extends Jr {
|
|
|
4900
4879
|
this.$$set({ translationurl: t }), U();
|
|
4901
4880
|
}
|
|
4902
4881
|
}
|
|
4903
|
-
|
|
4882
|
+
zr(mo, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4904
4883
|
export {
|
|
4905
|
-
|
|
4884
|
+
mo as default
|
|
4906
4885
|
};
|