@everymatrix/player-transaction-history 1.76.1 → 1.76.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/PlayerTransactionHistory-BdSKOFDT.cjs +18 -0
- package/components/{PlayerTransactionHistory-Dxsb4pyZ.js → PlayerTransactionHistory-D4qzBHFZ.js} +627 -641
- package/components/{PlayerTransactionHistory-Bx2_JL-P.js → PlayerTransactionHistory-D5hdtz_N.js} +643 -657
- package/es2015/player-transaction-history.cjs +1 -1
- package/es2015/player-transaction-history.js +1 -1
- package/esnext/player-transaction-history.js +1 -1
- package/package.json +1 -1
- package/components/PlayerTransactionHistory-Cys_phhX.cjs +0 -18
package/components/{PlayerTransactionHistory-Bx2_JL-P.js → PlayerTransactionHistory-D5hdtz_N.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var He = (e, t, r) => t in e ?
|
|
1
|
+
var hr = Object.defineProperty, lr = Object.defineProperties;
|
|
2
|
+
var fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var cr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
cr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
dr.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, rt = (e, t) => lr(e, fr(t));
|
|
13
13
|
var w = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Pt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Pt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let le;
|
|
48
|
-
function
|
|
48
|
+
function ot(e, t) {
|
|
49
49
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function It(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function Lt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function mr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(It(t, r));
|
|
65
65
|
}
|
|
66
66
|
function x(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function br(e, t, r) {
|
|
70
|
+
const n = yr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = N("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, gr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function yr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function _r(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function gr(e, t) {
|
|
87
87
|
return x(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -105,23 +105,23 @@ function F(e) {
|
|
|
105
105
|
function ne(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ne() {
|
|
109
109
|
return ne(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function vr(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function E(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function _r(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function qe(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Er(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -134,22 +134,22 @@ let ie;
|
|
|
134
134
|
function re(e) {
|
|
135
135
|
ie = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function xr() {
|
|
138
138
|
if (!ie)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
140
|
return ie;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Tr(e) {
|
|
143
|
+
xr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const V = [],
|
|
145
|
+
const V = [], Le = [];
|
|
146
146
|
let X = [];
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
function
|
|
150
|
-
|
|
147
|
+
const st = [], Hr = /* @__PURE__ */ Promise.resolve();
|
|
148
|
+
let Ce = !1;
|
|
149
|
+
function Sr() {
|
|
150
|
+
Ce || (Ce = !0, Hr.then(A));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Me(e) {
|
|
153
153
|
X.push(e);
|
|
154
154
|
}
|
|
155
155
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -162,53 +162,53 @@ function A() {
|
|
|
162
162
|
try {
|
|
163
163
|
for (; j < V.length; ) {
|
|
164
164
|
const t = V[j];
|
|
165
|
-
j++, re(t),
|
|
165
|
+
j++, re(t), wr(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw V.length = 0, j = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (re(null), V.length = 0, j = 0;
|
|
171
|
-
|
|
170
|
+
for (re(null), V.length = 0, j = 0; Le.length; )
|
|
171
|
+
Le.pop()();
|
|
172
172
|
for (let t = 0; t < X.length; t += 1) {
|
|
173
173
|
const r = X[t];
|
|
174
174
|
Se.has(r) || (Se.add(r), r());
|
|
175
175
|
}
|
|
176
176
|
X.length = 0;
|
|
177
177
|
} while (V.length);
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
for (; st.length; )
|
|
179
|
+
st.pop()();
|
|
180
|
+
Ce = !1, Se.clear(), re(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function wr(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
184
|
e.update(), ae(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Br(e) {
|
|
190
190
|
const t = [], r = [];
|
|
191
191
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Ar = /* @__PURE__ */ new Set();
|
|
194
|
+
function Pr(e, t) {
|
|
195
|
+
e && e.i && (Ar.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Or(e, t, r) {
|
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
|
199
|
-
n && n.m(t, r),
|
|
200
|
-
const o = e.$$.on_mount.map(
|
|
199
|
+
n && n.m(t, r), Me(() => {
|
|
200
|
+
const o = e.$$.on_mount.map(Pt).filter(Qe);
|
|
201
201
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
202
|
-
}), i.forEach(
|
|
202
|
+
}), i.forEach(Me);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ir(e, t) {
|
|
205
205
|
const r = e.$$;
|
|
206
|
-
r.fragment !== null && (
|
|
206
|
+
r.fragment !== null && (Br(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
208
|
+
function Nr(e, t) {
|
|
209
|
+
e.$$.dirty[0] === -1 && (V.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
212
212
|
const h = ie;
|
|
213
213
|
re(e);
|
|
214
214
|
const u = e.$$ = {
|
|
@@ -218,7 +218,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
218
218
|
props: o,
|
|
219
219
|
update: B,
|
|
220
220
|
not_equal: i,
|
|
221
|
-
bound:
|
|
221
|
+
bound: it(),
|
|
222
222
|
// lifecycle
|
|
223
223
|
on_mount: [],
|
|
224
224
|
on_destroy: [],
|
|
@@ -227,28 +227,28 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
227
227
|
after_update: [],
|
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
229
229
|
// everything else
|
|
230
|
-
callbacks:
|
|
230
|
+
callbacks: it(),
|
|
231
231
|
dirty: a,
|
|
232
232
|
skip_bound: !1,
|
|
233
233
|
root: t.target || h.$$.root
|
|
234
234
|
};
|
|
235
235
|
s && s(u.root);
|
|
236
236
|
let l = !1;
|
|
237
|
-
if (u.ctx = r
|
|
238
|
-
const v =
|
|
239
|
-
return u.ctx && i(u.ctx[
|
|
240
|
-
})
|
|
237
|
+
if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
|
238
|
+
const v = d.length ? d[0] : c;
|
|
239
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && Nr(e, f)), c;
|
|
240
|
+
}), u.update(), l = !0, ae(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const
|
|
243
|
-
u.fragment && u.fragment.l(
|
|
242
|
+
const f = _r(t.target);
|
|
243
|
+
u.fragment && u.fragment.l(f), f.forEach(J);
|
|
244
244
|
} else
|
|
245
245
|
u.fragment && u.fragment.c();
|
|
246
|
-
t.intro &&
|
|
246
|
+
t.intro && Pr(e.$$.fragment), Or(e, t.target, t.anchor), A();
|
|
247
247
|
}
|
|
248
248
|
re(h);
|
|
249
249
|
}
|
|
250
|
-
let
|
|
251
|
-
typeof HTMLElement == "function" && (
|
|
250
|
+
let Nt;
|
|
251
|
+
typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
252
252
|
constructor(t, r, n) {
|
|
253
253
|
super();
|
|
254
254
|
/** The Svelte component constructor */
|
|
@@ -285,7 +285,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
connectedCallback() {
|
|
288
|
-
return
|
|
288
|
+
return nt(this, null, function* () {
|
|
289
289
|
if (this.$$cn = !0, !this.$$c) {
|
|
290
290
|
let t = function(o) {
|
|
291
291
|
return () => {
|
|
@@ -309,18 +309,18 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
309
309
|
};
|
|
310
310
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const r = {}, n =
|
|
312
|
+
const r = {}, n = Er(this);
|
|
313
313
|
for (const o of this.$$s)
|
|
314
314
|
o in n && (r[o] = [t(o)]);
|
|
315
315
|
for (const o of this.attributes) {
|
|
316
316
|
const s = this.$$g_p(o.name);
|
|
317
|
-
s in this.$$d || (this.$$d[s] =
|
|
317
|
+
s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
|
|
318
318
|
}
|
|
319
319
|
for (const o in this.$$p_d)
|
|
320
320
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
321
321
|
this.$$c = new this.$$ctor({
|
|
322
322
|
target: this.shadowRoot || this,
|
|
323
|
-
props:
|
|
323
|
+
props: rt(tt({}, this.$$d), {
|
|
324
324
|
$$slots: r,
|
|
325
325
|
$$scope: {
|
|
326
326
|
ctx: []
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
331
331
|
this.$$r = !0;
|
|
332
332
|
for (const o in this.$$p_d)
|
|
333
333
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
334
|
-
const s =
|
|
334
|
+
const s = de(
|
|
335
335
|
o,
|
|
336
336
|
this.$$d[o],
|
|
337
337
|
this.$$p_d,
|
|
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
355
355
|
// and setting attributes through setAttribute etc, this is helpful
|
|
356
356
|
attributeChangedCallback(t, r, n) {
|
|
357
357
|
var i;
|
|
358
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
358
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
359
359
|
}
|
|
360
360
|
disconnectedCallback() {
|
|
361
361
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -368,7 +368,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
368
368
|
) || t;
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
-
function
|
|
371
|
+
function de(e, t, r, n) {
|
|
372
372
|
var o;
|
|
373
373
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
374
374
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -398,8 +398,8 @@ function pe(e, t, r, n) {
|
|
|
398
398
|
return t;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
let s = class extends
|
|
401
|
+
function Cr(e, t, r, n, i, o) {
|
|
402
|
+
let s = class extends Nt {
|
|
403
403
|
constructor() {
|
|
404
404
|
super(e, r, i), this.$$p_d = t;
|
|
405
405
|
}
|
|
@@ -416,7 +416,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
416
416
|
},
|
|
417
417
|
set(h) {
|
|
418
418
|
var u;
|
|
419
|
-
h =
|
|
419
|
+
h = de(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
}), n.forEach((a) => {
|
|
@@ -429,7 +429,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
429
429
|
}), e.element = /** @type {any} */
|
|
430
430
|
s, s;
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Mr {
|
|
433
433
|
constructor() {
|
|
434
434
|
/**
|
|
435
435
|
* ### PRIVATE API
|
|
@@ -450,7 +450,7 @@ class Ur {
|
|
|
450
450
|
}
|
|
451
451
|
/** @returns {void} */
|
|
452
452
|
$destroy() {
|
|
453
|
-
|
|
453
|
+
Ir(this, 1), this.$destroy = B;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -459,7 +459,7 @@ class Ur {
|
|
|
459
459
|
* @returns {() => void}
|
|
460
460
|
*/
|
|
461
461
|
$on(t, r) {
|
|
462
|
-
if (!
|
|
462
|
+
if (!Qe(r))
|
|
463
463
|
return B;
|
|
464
464
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
465
465
|
return n.push(r), () => {
|
|
@@ -472,11 +472,11 @@ class Ur {
|
|
|
472
472
|
* @returns {void}
|
|
473
473
|
*/
|
|
474
474
|
$set(t) {
|
|
475
|
-
this.$$set && !
|
|
475
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
const
|
|
479
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
478
|
+
const $r = "4";
|
|
479
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
|
|
480
480
|
/*! *****************************************************************************
|
|
481
481
|
Copyright (c) Microsoft Corporation.
|
|
482
482
|
|
|
@@ -491,18 +491,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
491
491
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
492
492
|
PERFORMANCE OF THIS SOFTWARE.
|
|
493
493
|
***************************************************************************** */
|
|
494
|
-
var
|
|
495
|
-
return
|
|
494
|
+
var $e = function(e, t) {
|
|
495
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
496
496
|
r.__proto__ = n;
|
|
497
497
|
} || function(r, n) {
|
|
498
498
|
for (var i in n)
|
|
499
499
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
500
|
-
},
|
|
500
|
+
}, $e(e, t);
|
|
501
501
|
};
|
|
502
502
|
function L(e, t) {
|
|
503
503
|
if (typeof t != "function" && t !== null)
|
|
504
504
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
505
|
-
|
|
505
|
+
$e(e, t);
|
|
506
506
|
function r() {
|
|
507
507
|
this.constructor = e;
|
|
508
508
|
}
|
|
@@ -518,7 +518,7 @@ var y = function() {
|
|
|
518
518
|
return t;
|
|
519
519
|
}, y.apply(this, arguments);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function Rr(e, t) {
|
|
522
522
|
var r = {};
|
|
523
523
|
for (var n in e)
|
|
524
524
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -527,7 +527,7 @@ function Gr(e, t) {
|
|
|
527
527
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
528
528
|
return r;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Re(e) {
|
|
531
531
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
532
532
|
if (r)
|
|
533
533
|
return r.call(e);
|
|
@@ -539,7 +539,7 @@ function Ue(e) {
|
|
|
539
539
|
};
|
|
540
540
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ue(e, t) {
|
|
543
543
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
544
544
|
if (!r)
|
|
545
545
|
return e;
|
|
@@ -568,13 +568,13 @@ function W(e, t, r) {
|
|
|
568
568
|
function I(e) {
|
|
569
569
|
return typeof e == "function";
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Lt(e) {
|
|
572
572
|
var t = function(n) {
|
|
573
573
|
Error.call(n), n.stack = new Error().stack;
|
|
574
574
|
}, r = e(t);
|
|
575
575
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
576
576
|
}
|
|
577
|
-
var we =
|
|
577
|
+
var we = Lt(function(e) {
|
|
578
578
|
return function(r) {
|
|
579
579
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
580
580
|
` + r.map(function(n, i) {
|
|
@@ -583,7 +583,7 @@ var we = Mt(function(e) {
|
|
|
583
583
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
584
584
|
};
|
|
585
585
|
});
|
|
586
|
-
function
|
|
586
|
+
function De(e, t) {
|
|
587
587
|
if (e) {
|
|
588
588
|
var r = e.indexOf(t);
|
|
589
589
|
0 <= r && e.splice(r, 1);
|
|
@@ -601,12 +601,12 @@ var ve = function() {
|
|
|
601
601
|
if (s)
|
|
602
602
|
if (this._parentage = null, Array.isArray(s))
|
|
603
603
|
try {
|
|
604
|
-
for (var a =
|
|
604
|
+
for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
|
|
605
605
|
var u = h.value;
|
|
606
606
|
u.remove(this);
|
|
607
607
|
}
|
|
608
|
-
} catch (
|
|
609
|
-
t = { error:
|
|
608
|
+
} catch (p) {
|
|
609
|
+
t = { error: p };
|
|
610
610
|
} finally {
|
|
611
611
|
try {
|
|
612
612
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -621,26 +621,26 @@ var ve = function() {
|
|
|
621
621
|
if (I(l))
|
|
622
622
|
try {
|
|
623
623
|
l();
|
|
624
|
-
} catch (
|
|
625
|
-
o =
|
|
624
|
+
} catch (p) {
|
|
625
|
+
o = p instanceof we ? p.errors : [p];
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
if (
|
|
627
|
+
var f = this._finalizers;
|
|
628
|
+
if (f) {
|
|
629
629
|
this._finalizers = null;
|
|
630
630
|
try {
|
|
631
|
-
for (var
|
|
632
|
-
var v =
|
|
631
|
+
for (var c = Re(f), d = c.next(); !d.done; d = c.next()) {
|
|
632
|
+
var v = d.value;
|
|
633
633
|
try {
|
|
634
|
-
|
|
635
|
-
} catch (
|
|
636
|
-
o = o != null ? o : [],
|
|
634
|
+
at(v);
|
|
635
|
+
} catch (p) {
|
|
636
|
+
o = o != null ? o : [], p instanceof we ? o = W(W([], Ue(o)), Ue(p.errors)) : o.push(p);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
} catch (
|
|
640
|
-
n = { error:
|
|
639
|
+
} catch (p) {
|
|
640
|
+
n = { error: p };
|
|
641
641
|
} finally {
|
|
642
642
|
try {
|
|
643
|
-
|
|
643
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
644
644
|
} finally {
|
|
645
645
|
if (n)
|
|
646
646
|
throw n.error;
|
|
@@ -654,7 +654,7 @@ var ve = function() {
|
|
|
654
654
|
var r;
|
|
655
655
|
if (t && t !== this)
|
|
656
656
|
if (this.closed)
|
|
657
|
-
|
|
657
|
+
at(t);
|
|
658
658
|
else {
|
|
659
659
|
if (t instanceof e) {
|
|
660
660
|
if (t.closed || t._hasParent(this))
|
|
@@ -671,56 +671,56 @@ var ve = function() {
|
|
|
671
671
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
672
672
|
}, e.prototype._removeParent = function(t) {
|
|
673
673
|
var r = this._parentage;
|
|
674
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
674
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
675
675
|
}, e.prototype.remove = function(t) {
|
|
676
676
|
var r = this._finalizers;
|
|
677
|
-
r &&
|
|
677
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
678
678
|
}, e.EMPTY = function() {
|
|
679
679
|
var t = new e();
|
|
680
680
|
return t.closed = !0, t;
|
|
681
681
|
}(), e;
|
|
682
|
-
}(),
|
|
683
|
-
function
|
|
682
|
+
}(), Ct = ve.EMPTY;
|
|
683
|
+
function Mt(e) {
|
|
684
684
|
return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function at(e) {
|
|
687
687
|
I(e) ? e() : e.unsubscribe();
|
|
688
688
|
}
|
|
689
|
-
var
|
|
689
|
+
var Ur = {
|
|
690
690
|
onUnhandledError: null,
|
|
691
691
|
onStoppedNotification: null,
|
|
692
692
|
Promise: void 0,
|
|
693
693
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
694
694
|
useDeprecatedNextContext: !1
|
|
695
|
-
},
|
|
695
|
+
}, Dr = {
|
|
696
696
|
setTimeout: function(e, t) {
|
|
697
697
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
698
698
|
r[n - 2] = arguments[n];
|
|
699
|
-
return setTimeout.apply(void 0, W([e, t],
|
|
699
|
+
return setTimeout.apply(void 0, W([e, t], Ue(r)));
|
|
700
700
|
},
|
|
701
701
|
clearTimeout: function(e) {
|
|
702
702
|
return clearTimeout(e);
|
|
703
703
|
},
|
|
704
704
|
delegate: void 0
|
|
705
705
|
};
|
|
706
|
-
function
|
|
707
|
-
|
|
706
|
+
function Gr(e) {
|
|
707
|
+
Dr.setTimeout(function() {
|
|
708
708
|
throw e;
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function ut() {
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function pe(e) {
|
|
714
714
|
e();
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var $t = function(e) {
|
|
717
717
|
L(t, e);
|
|
718
718
|
function t(r) {
|
|
719
719
|
var n = e.call(this) || this;
|
|
720
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
720
|
+
return n.isStopped = !1, r ? (n.destination = r, Mt(r) && r.add(n)) : n.destination = kr, n;
|
|
721
721
|
}
|
|
722
722
|
return t.create = function(r, n, i) {
|
|
723
|
-
return new
|
|
723
|
+
return new Ge(r, n, i);
|
|
724
724
|
}, t.prototype.next = function(r) {
|
|
725
725
|
this.isStopped || this._next(r);
|
|
726
726
|
}, t.prototype.error = function(r) {
|
|
@@ -744,11 +744,7 @@ var Dt = function(e) {
|
|
|
744
744
|
this.unsubscribe();
|
|
745
745
|
}
|
|
746
746
|
}, t;
|
|
747
|
-
}(ve),
|
|
748
|
-
function Be(e, t) {
|
|
749
|
-
return kr.call(e, t);
|
|
750
|
-
}
|
|
751
|
-
var Vr = function() {
|
|
747
|
+
}(ve), Fr = function() {
|
|
752
748
|
function e(t) {
|
|
753
749
|
this.partialObserver = t;
|
|
754
750
|
}
|
|
@@ -758,7 +754,7 @@ var Vr = function() {
|
|
|
758
754
|
try {
|
|
759
755
|
r.next(t);
|
|
760
756
|
} catch (n) {
|
|
761
|
-
|
|
757
|
+
fe(n);
|
|
762
758
|
}
|
|
763
759
|
}, e.prototype.error = function(t) {
|
|
764
760
|
var r = this.partialObserver;
|
|
@@ -766,68 +762,56 @@ var Vr = function() {
|
|
|
766
762
|
try {
|
|
767
763
|
r.error(t);
|
|
768
764
|
} catch (n) {
|
|
769
|
-
|
|
765
|
+
fe(n);
|
|
770
766
|
}
|
|
771
767
|
else
|
|
772
|
-
|
|
768
|
+
fe(t);
|
|
773
769
|
}, e.prototype.complete = function() {
|
|
774
770
|
var t = this.partialObserver;
|
|
775
771
|
if (t.complete)
|
|
776
772
|
try {
|
|
777
773
|
t.complete();
|
|
778
774
|
} catch (r) {
|
|
779
|
-
|
|
775
|
+
fe(r);
|
|
780
776
|
}
|
|
781
777
|
}, e;
|
|
782
|
-
}(),
|
|
778
|
+
}(), Ge = function(e) {
|
|
783
779
|
L(t, e);
|
|
784
780
|
function t(r, n, i) {
|
|
785
781
|
var o = e.call(this) || this, s;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
};
|
|
792
|
-
else {
|
|
793
|
-
var a;
|
|
794
|
-
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
795
|
-
return o.unsubscribe();
|
|
796
|
-
}, s = {
|
|
797
|
-
next: r.next && Be(r.next, a),
|
|
798
|
-
error: r.error && Be(r.error, a),
|
|
799
|
-
complete: r.complete && Be(r.complete, a)
|
|
800
|
-
}) : s = r;
|
|
801
|
-
}
|
|
802
|
-
return o.destination = new Vr(s), o;
|
|
782
|
+
return I(r) || !r ? s = {
|
|
783
|
+
next: r != null ? r : void 0,
|
|
784
|
+
error: n != null ? n : void 0,
|
|
785
|
+
complete: i != null ? i : void 0
|
|
786
|
+
} : s = r, o.destination = new Fr(s), o;
|
|
803
787
|
}
|
|
804
788
|
return t;
|
|
805
|
-
}(
|
|
806
|
-
function
|
|
807
|
-
|
|
789
|
+
}($t);
|
|
790
|
+
function fe(e) {
|
|
791
|
+
Gr(e);
|
|
808
792
|
}
|
|
809
|
-
function
|
|
793
|
+
function jr(e) {
|
|
810
794
|
throw e;
|
|
811
795
|
}
|
|
812
|
-
var
|
|
796
|
+
var kr = {
|
|
813
797
|
closed: !0,
|
|
814
|
-
next:
|
|
815
|
-
error:
|
|
816
|
-
complete:
|
|
817
|
-
},
|
|
798
|
+
next: ut,
|
|
799
|
+
error: jr,
|
|
800
|
+
complete: ut
|
|
801
|
+
}, Vr = function() {
|
|
818
802
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
819
803
|
}();
|
|
820
|
-
function
|
|
804
|
+
function Xr(e) {
|
|
821
805
|
return e;
|
|
822
806
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.length === 0 ?
|
|
807
|
+
function Wr(e) {
|
|
808
|
+
return e.length === 0 ? Xr : e.length === 1 ? e[0] : function(r) {
|
|
825
809
|
return e.reduce(function(n, i) {
|
|
826
810
|
return i(n);
|
|
827
811
|
}, r);
|
|
828
812
|
};
|
|
829
813
|
}
|
|
830
|
-
var
|
|
814
|
+
var ht = function() {
|
|
831
815
|
function e(t) {
|
|
832
816
|
t && (this._subscribe = t);
|
|
833
817
|
}
|
|
@@ -835,8 +819,8 @@ var ct = function() {
|
|
|
835
819
|
var r = new e();
|
|
836
820
|
return r.source = this, r.operator = t, r;
|
|
837
821
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
838
|
-
var i = this, o =
|
|
839
|
-
return
|
|
822
|
+
var i = this, o = Zr(t) ? t : new Ge(t, r, n);
|
|
823
|
+
return pe(function() {
|
|
840
824
|
var s = i, a = s.operator, h = s.source;
|
|
841
825
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
842
826
|
}), o;
|
|
@@ -848,8 +832,8 @@ var ct = function() {
|
|
|
848
832
|
}
|
|
849
833
|
}, e.prototype.forEach = function(t, r) {
|
|
850
834
|
var n = this;
|
|
851
|
-
return r =
|
|
852
|
-
var s = new
|
|
835
|
+
return r = lt(r), new r(function(i, o) {
|
|
836
|
+
var s = new Ge({
|
|
853
837
|
next: function(a) {
|
|
854
838
|
try {
|
|
855
839
|
t(a);
|
|
@@ -865,15 +849,15 @@ var ct = function() {
|
|
|
865
849
|
}, e.prototype._subscribe = function(t) {
|
|
866
850
|
var r;
|
|
867
851
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
868
|
-
}, e.prototype[
|
|
852
|
+
}, e.prototype[Vr] = function() {
|
|
869
853
|
return this;
|
|
870
854
|
}, e.prototype.pipe = function() {
|
|
871
855
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
872
856
|
t[r] = arguments[r];
|
|
873
|
-
return
|
|
857
|
+
return Wr(t)(this);
|
|
874
858
|
}, e.prototype.toPromise = function(t) {
|
|
875
859
|
var r = this;
|
|
876
|
-
return t =
|
|
860
|
+
return t = lt(t), new t(function(n, i) {
|
|
877
861
|
var o;
|
|
878
862
|
r.subscribe(function(s) {
|
|
879
863
|
return o = s;
|
|
@@ -887,40 +871,40 @@ var ct = function() {
|
|
|
887
871
|
return new e(t);
|
|
888
872
|
}, e;
|
|
889
873
|
}();
|
|
890
|
-
function
|
|
874
|
+
function lt(e) {
|
|
891
875
|
var t;
|
|
892
|
-
return (t = e != null ? e :
|
|
876
|
+
return (t = e != null ? e : Ur.Promise) !== null && t !== void 0 ? t : Promise;
|
|
893
877
|
}
|
|
894
|
-
function
|
|
878
|
+
function zr(e) {
|
|
895
879
|
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
896
880
|
}
|
|
897
|
-
function
|
|
898
|
-
return e && e instanceof
|
|
881
|
+
function Zr(e) {
|
|
882
|
+
return e && e instanceof $t || zr(e) && Mt(e);
|
|
899
883
|
}
|
|
900
|
-
var
|
|
884
|
+
var Qr = Lt(function(e) {
|
|
901
885
|
return function() {
|
|
902
886
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
903
887
|
};
|
|
904
|
-
}),
|
|
888
|
+
}), Rt = function(e) {
|
|
905
889
|
L(t, e);
|
|
906
890
|
function t() {
|
|
907
891
|
var r = e.call(this) || this;
|
|
908
892
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
909
893
|
}
|
|
910
894
|
return t.prototype.lift = function(r) {
|
|
911
|
-
var n = new
|
|
895
|
+
var n = new ft(this, this);
|
|
912
896
|
return n.operator = r, n;
|
|
913
897
|
}, t.prototype._throwIfClosed = function() {
|
|
914
898
|
if (this.closed)
|
|
915
|
-
throw new
|
|
899
|
+
throw new Qr();
|
|
916
900
|
}, t.prototype.next = function(r) {
|
|
917
901
|
var n = this;
|
|
918
|
-
|
|
902
|
+
pe(function() {
|
|
919
903
|
var i, o;
|
|
920
904
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
921
905
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
922
906
|
try {
|
|
923
|
-
for (var s =
|
|
907
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
924
908
|
var h = a.value;
|
|
925
909
|
h.next(r);
|
|
926
910
|
}
|
|
@@ -938,7 +922,7 @@ var Yr = Mt(function(e) {
|
|
|
938
922
|
});
|
|
939
923
|
}, t.prototype.error = function(r) {
|
|
940
924
|
var n = this;
|
|
941
|
-
|
|
925
|
+
pe(function() {
|
|
942
926
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
943
927
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
944
928
|
for (var i = n.observers; i.length; )
|
|
@@ -947,7 +931,7 @@ var Yr = Mt(function(e) {
|
|
|
947
931
|
});
|
|
948
932
|
}, t.prototype.complete = function() {
|
|
949
933
|
var r = this;
|
|
950
|
-
|
|
934
|
+
pe(function() {
|
|
951
935
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
952
936
|
r.isStopped = !0;
|
|
953
937
|
for (var n = r.observers; n.length; )
|
|
@@ -969,19 +953,19 @@ var Yr = Mt(function(e) {
|
|
|
969
953
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
970
954
|
}, t.prototype._innerSubscribe = function(r) {
|
|
971
955
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
972
|
-
return o || s ?
|
|
973
|
-
n.currentObservers = null,
|
|
956
|
+
return o || s ? Ct : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
957
|
+
n.currentObservers = null, De(a, r);
|
|
974
958
|
}));
|
|
975
959
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
976
960
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
977
961
|
i ? r.error(o) : s && r.complete();
|
|
978
962
|
}, t.prototype.asObservable = function() {
|
|
979
|
-
var r = new
|
|
963
|
+
var r = new ht();
|
|
980
964
|
return r.source = this, r;
|
|
981
965
|
}, t.create = function(r, n) {
|
|
982
|
-
return new
|
|
966
|
+
return new ft(r, n);
|
|
983
967
|
}, t;
|
|
984
|
-
}(
|
|
968
|
+
}(ht), ft = function(e) {
|
|
985
969
|
L(t, e);
|
|
986
970
|
function t(r, n) {
|
|
987
971
|
var i = e.call(this) || this;
|
|
@@ -998,17 +982,17 @@ var Yr = Mt(function(e) {
|
|
|
998
982
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
999
983
|
}, t.prototype._subscribe = function(r) {
|
|
1000
984
|
var n, i;
|
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
985
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
1002
986
|
}, t;
|
|
1003
|
-
}(
|
|
987
|
+
}(Rt), Ut = {
|
|
1004
988
|
now: function() {
|
|
1005
|
-
return (
|
|
989
|
+
return (Ut.delegate || Date).now();
|
|
1006
990
|
},
|
|
1007
991
|
delegate: void 0
|
|
1008
|
-
},
|
|
992
|
+
}, qr = function(e) {
|
|
1009
993
|
L(t, e);
|
|
1010
994
|
function t(r, n, i) {
|
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
995
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
1012
996
|
var o = e.call(this) || this;
|
|
1013
997
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1014
998
|
}
|
|
@@ -1028,15 +1012,15 @@ var Yr = Mt(function(e) {
|
|
|
1028
1012
|
u && o.splice(0, u + 1);
|
|
1029
1013
|
}
|
|
1030
1014
|
}, t;
|
|
1031
|
-
}(
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const r = new
|
|
1035
|
-
dt[e] = r,
|
|
1015
|
+
}(Rt);
|
|
1016
|
+
const ct = [], dt = {}, Jr = (e, t = 0) => {
|
|
1017
|
+
if (ct.indexOf(e) == -1) {
|
|
1018
|
+
const r = new qr(t);
|
|
1019
|
+
dt[e] = r, ct.push(e);
|
|
1036
1020
|
}
|
|
1037
1021
|
return dt[e];
|
|
1038
1022
|
}, k = [];
|
|
1039
|
-
function
|
|
1023
|
+
function Yr(e, t) {
|
|
1040
1024
|
return {
|
|
1041
1025
|
subscribe: _e(e, t).subscribe
|
|
1042
1026
|
};
|
|
@@ -1045,7 +1029,7 @@ function _e(e, t = B) {
|
|
|
1045
1029
|
let r;
|
|
1046
1030
|
const n = /* @__PURE__ */ new Set();
|
|
1047
1031
|
function i(a) {
|
|
1048
|
-
if (
|
|
1032
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1049
1033
|
const h = !k.length;
|
|
1050
1034
|
for (const u of n)
|
|
1051
1035
|
u[1](), k.push(u, e);
|
|
@@ -1072,96 +1056,96 @@ function Y(e, t, r) {
|
|
|
1072
1056
|
if (!i.every(Boolean))
|
|
1073
1057
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1074
1058
|
const o = t.length < 2;
|
|
1075
|
-
return
|
|
1059
|
+
return Yr(r, (s, a) => {
|
|
1076
1060
|
let h = !1;
|
|
1077
1061
|
const u = [];
|
|
1078
|
-
let l = 0,
|
|
1079
|
-
const
|
|
1062
|
+
let l = 0, f = B;
|
|
1063
|
+
const c = () => {
|
|
1080
1064
|
if (l)
|
|
1081
1065
|
return;
|
|
1082
|
-
|
|
1066
|
+
f();
|
|
1083
1067
|
const v = t(n ? u[0] : u, s, a);
|
|
1084
|
-
o ? s(v) :
|
|
1085
|
-
},
|
|
1086
|
-
(v,
|
|
1068
|
+
o ? s(v) : f = Qe(v) ? v : B;
|
|
1069
|
+
}, d = i.map(
|
|
1070
|
+
(v, p) => It(
|
|
1087
1071
|
v,
|
|
1088
1072
|
(T) => {
|
|
1089
|
-
u[
|
|
1073
|
+
u[p] = T, l &= ~(1 << p), h && c();
|
|
1090
1074
|
},
|
|
1091
1075
|
() => {
|
|
1092
|
-
l |= 1 <<
|
|
1076
|
+
l |= 1 << p;
|
|
1093
1077
|
}
|
|
1094
1078
|
)
|
|
1095
1079
|
);
|
|
1096
|
-
return h = !0,
|
|
1097
|
-
ae(
|
|
1080
|
+
return h = !0, c(), function() {
|
|
1081
|
+
ae(d), f(), h = !1;
|
|
1098
1082
|
};
|
|
1099
1083
|
});
|
|
1100
1084
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return e
|
|
1085
|
+
function Kr(e) {
|
|
1086
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1103
1087
|
}
|
|
1104
|
-
var
|
|
1105
|
-
return
|
|
1088
|
+
var en = function(t) {
|
|
1089
|
+
return tn(t) && !rn(t);
|
|
1106
1090
|
};
|
|
1107
|
-
function
|
|
1091
|
+
function tn(e) {
|
|
1108
1092
|
return !!e && typeof e == "object";
|
|
1109
1093
|
}
|
|
1110
|
-
function
|
|
1094
|
+
function rn(e) {
|
|
1111
1095
|
var t = Object.prototype.toString.call(e);
|
|
1112
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1096
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1113
1097
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1116
|
-
return e.$$typeof ===
|
|
1098
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
|
1099
|
+
function sn(e) {
|
|
1100
|
+
return e.$$typeof === on;
|
|
1117
1101
|
}
|
|
1118
|
-
function
|
|
1102
|
+
function an(e) {
|
|
1119
1103
|
return Array.isArray(e) ? [] : {};
|
|
1120
1104
|
}
|
|
1121
1105
|
function oe(e, t) {
|
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1106
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(an(e), e, t) : e;
|
|
1123
1107
|
}
|
|
1124
|
-
function
|
|
1108
|
+
function un(e, t, r) {
|
|
1125
1109
|
return e.concat(t).map(function(n) {
|
|
1126
1110
|
return oe(n, r);
|
|
1127
1111
|
});
|
|
1128
1112
|
}
|
|
1129
|
-
function
|
|
1113
|
+
function hn(e, t) {
|
|
1130
1114
|
if (!t.customMerge)
|
|
1131
1115
|
return z;
|
|
1132
1116
|
var r = t.customMerge(e);
|
|
1133
1117
|
return typeof r == "function" ? r : z;
|
|
1134
1118
|
}
|
|
1135
|
-
function
|
|
1119
|
+
function ln(e) {
|
|
1136
1120
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1137
1121
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1138
1122
|
}) : [];
|
|
1139
1123
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return Object.keys(e).concat(
|
|
1124
|
+
function pt(e) {
|
|
1125
|
+
return Object.keys(e).concat(ln(e));
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1127
|
+
function Dt(e, t) {
|
|
1144
1128
|
try {
|
|
1145
1129
|
return t in e;
|
|
1146
1130
|
} catch (r) {
|
|
1147
1131
|
return !1;
|
|
1148
1132
|
}
|
|
1149
1133
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1134
|
+
function fn(e, t) {
|
|
1135
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1152
1136
|
}
|
|
1153
|
-
function
|
|
1137
|
+
function cn(e, t, r) {
|
|
1154
1138
|
var n = {};
|
|
1155
|
-
return r.isMergeableObject(e) &&
|
|
1139
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1156
1140
|
n[i] = oe(e[i], r);
|
|
1157
|
-
}),
|
|
1158
|
-
|
|
1141
|
+
}), pt(t).forEach(function(i) {
|
|
1142
|
+
fn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1159
1143
|
}), n;
|
|
1160
1144
|
}
|
|
1161
1145
|
function z(e, t, r) {
|
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1146
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1163
1147
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1164
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1148
|
+
return o ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : oe(t, r);
|
|
1165
1149
|
}
|
|
1166
1150
|
z.all = function(t, r) {
|
|
1167
1151
|
if (!Array.isArray(t))
|
|
@@ -1170,62 +1154,64 @@ z.all = function(t, r) {
|
|
|
1170
1154
|
return z(n, i, r);
|
|
1171
1155
|
}, {});
|
|
1172
1156
|
};
|
|
1173
|
-
var
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1176
|
-
var r = t && t.cache ? t.cache :
|
|
1157
|
+
var dn = z, pn = dn;
|
|
1158
|
+
const mn = /* @__PURE__ */ Kr(pn);
|
|
1159
|
+
function Be(e, t) {
|
|
1160
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : yn;
|
|
1177
1161
|
return i(e, {
|
|
1178
1162
|
cache: r,
|
|
1179
1163
|
serializer: n
|
|
1180
1164
|
});
|
|
1181
1165
|
}
|
|
1182
|
-
function
|
|
1166
|
+
function bn(e) {
|
|
1183
1167
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1184
1168
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1169
|
+
function Gt(e, t, r, n) {
|
|
1170
|
+
var i = bn(n) ? n : r(n), o = t.get(i);
|
|
1187
1171
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1188
1172
|
}
|
|
1189
|
-
function
|
|
1173
|
+
function Ft(e, t, r) {
|
|
1190
1174
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1191
1175
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1192
1176
|
}
|
|
1193
|
-
function
|
|
1177
|
+
function Je(e, t, r, n, i) {
|
|
1194
1178
|
return r.bind(t, e, n, i);
|
|
1195
1179
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var r = e.length === 1 ?
|
|
1198
|
-
return
|
|
1180
|
+
function yn(e, t) {
|
|
1181
|
+
var r = e.length === 1 ? Gt : Ft;
|
|
1182
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1199
1183
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return
|
|
1184
|
+
function gn(e, t) {
|
|
1185
|
+
return Je(e, this, Ft, t.cache.create(), t.serializer);
|
|
1202
1186
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1187
|
+
function vn(e, t) {
|
|
1188
|
+
return Je(e, this, Gt, t.cache.create(), t.serializer);
|
|
1205
1189
|
}
|
|
1206
|
-
var
|
|
1190
|
+
var _n = function() {
|
|
1207
1191
|
return JSON.stringify(arguments);
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1192
|
+
}, En = (
|
|
1193
|
+
/** @class */
|
|
1194
|
+
function() {
|
|
1195
|
+
function e() {
|
|
1196
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1197
|
+
}
|
|
1198
|
+
return e.prototype.get = function(t) {
|
|
1199
|
+
return this.cache[t];
|
|
1200
|
+
}, e.prototype.set = function(t, r) {
|
|
1201
|
+
this.cache[t] = r;
|
|
1202
|
+
}, e;
|
|
1203
|
+
}()
|
|
1204
|
+
), xn = {
|
|
1219
1205
|
create: function() {
|
|
1220
|
-
return new
|
|
1206
|
+
return new En();
|
|
1221
1207
|
}
|
|
1222
|
-
},
|
|
1223
|
-
variadic:
|
|
1224
|
-
monadic:
|
|
1225
|
-
},
|
|
1208
|
+
}, Ae = {
|
|
1209
|
+
variadic: gn,
|
|
1210
|
+
monadic: vn
|
|
1211
|
+
}, m;
|
|
1226
1212
|
(function(e) {
|
|
1227
1213
|
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";
|
|
1228
|
-
})(
|
|
1214
|
+
})(m || (m = {}));
|
|
1229
1215
|
var _;
|
|
1230
1216
|
(function(e) {
|
|
1231
1217
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1234,43 +1220,43 @@ var Z;
|
|
|
1234
1220
|
(function(e) {
|
|
1235
1221
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1236
1222
|
})(Z || (Z = {}));
|
|
1237
|
-
function
|
|
1223
|
+
function mt(e) {
|
|
1238
1224
|
return e.type === _.literal;
|
|
1239
1225
|
}
|
|
1240
|
-
function
|
|
1226
|
+
function Tn(e) {
|
|
1241
1227
|
return e.type === _.argument;
|
|
1242
1228
|
}
|
|
1243
|
-
function
|
|
1229
|
+
function jt(e) {
|
|
1244
1230
|
return e.type === _.number;
|
|
1245
1231
|
}
|
|
1246
|
-
function
|
|
1232
|
+
function kt(e) {
|
|
1247
1233
|
return e.type === _.date;
|
|
1248
1234
|
}
|
|
1249
|
-
function
|
|
1235
|
+
function Vt(e) {
|
|
1250
1236
|
return e.type === _.time;
|
|
1251
1237
|
}
|
|
1252
|
-
function
|
|
1238
|
+
function Xt(e) {
|
|
1253
1239
|
return e.type === _.select;
|
|
1254
1240
|
}
|
|
1255
|
-
function
|
|
1241
|
+
function Wt(e) {
|
|
1256
1242
|
return e.type === _.plural;
|
|
1257
1243
|
}
|
|
1258
|
-
function
|
|
1244
|
+
function Hn(e) {
|
|
1259
1245
|
return e.type === _.pound;
|
|
1260
1246
|
}
|
|
1261
|
-
function
|
|
1247
|
+
function zt(e) {
|
|
1262
1248
|
return e.type === _.tag;
|
|
1263
1249
|
}
|
|
1264
|
-
function
|
|
1250
|
+
function Zt(e) {
|
|
1265
1251
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1266
1252
|
}
|
|
1267
|
-
function
|
|
1253
|
+
function Fe(e) {
|
|
1268
1254
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1269
1255
|
}
|
|
1270
|
-
var
|
|
1271
|
-
function
|
|
1256
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
|
|
1257
|
+
function wn(e) {
|
|
1272
1258
|
var t = {};
|
|
1273
|
-
return e.replace(
|
|
1259
|
+
return e.replace(Sn, function(r) {
|
|
1274
1260
|
var n = r.length;
|
|
1275
1261
|
switch (r[0]) {
|
|
1276
1262
|
case "G":
|
|
@@ -1359,36 +1345,36 @@ function An(e) {
|
|
|
1359
1345
|
return "";
|
|
1360
1346
|
}), t;
|
|
1361
1347
|
}
|
|
1362
|
-
var
|
|
1363
|
-
function
|
|
1348
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1349
|
+
function An(e) {
|
|
1364
1350
|
if (e.length === 0)
|
|
1365
1351
|
throw new Error("Number skeleton cannot be empty");
|
|
1366
|
-
for (var t = e.split(
|
|
1367
|
-
return
|
|
1352
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
1353
|
+
return c.length > 0;
|
|
1368
1354
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1369
1355
|
var o = i[n], s = o.split("/");
|
|
1370
1356
|
if (s.length === 0)
|
|
1371
1357
|
throw new Error("Invalid number skeleton");
|
|
1372
1358
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1373
|
-
var
|
|
1374
|
-
if (
|
|
1359
|
+
var f = l[u];
|
|
1360
|
+
if (f.length === 0)
|
|
1375
1361
|
throw new Error("Invalid number skeleton");
|
|
1376
1362
|
}
|
|
1377
1363
|
r.push({ stem: a, options: h });
|
|
1378
1364
|
}
|
|
1379
1365
|
return r;
|
|
1380
1366
|
}
|
|
1381
|
-
function
|
|
1367
|
+
function Pn(e) {
|
|
1382
1368
|
return e.replace(/^(.*?)-/, "");
|
|
1383
1369
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1370
|
+
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
1371
|
+
function yt(e) {
|
|
1386
1372
|
var t = {};
|
|
1387
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1373
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
|
|
1388
1374
|
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)), "";
|
|
1389
1375
|
}), t;
|
|
1390
1376
|
}
|
|
1391
|
-
function
|
|
1377
|
+
function Yt(e) {
|
|
1392
1378
|
switch (e) {
|
|
1393
1379
|
case "sign-auto":
|
|
1394
1380
|
return {
|
|
@@ -1428,7 +1414,7 @@ function tr(e) {
|
|
|
1428
1414
|
};
|
|
1429
1415
|
}
|
|
1430
1416
|
}
|
|
1431
|
-
function
|
|
1417
|
+
function In(e) {
|
|
1432
1418
|
var t;
|
|
1433
1419
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1434
1420
|
notation: "engineering"
|
|
@@ -1436,17 +1422,17 @@ function Ln(e) {
|
|
|
1436
1422
|
notation: "scientific"
|
|
1437
1423
|
}, e = e.slice(1)), t) {
|
|
1438
1424
|
var r = e.slice(0, 2);
|
|
1439
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1425
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
|
1440
1426
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1441
1427
|
t.minimumIntegerDigits = e.length;
|
|
1442
1428
|
}
|
|
1443
1429
|
return t;
|
|
1444
1430
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var t = {}, r =
|
|
1431
|
+
function gt(e) {
|
|
1432
|
+
var t = {}, r = Yt(e);
|
|
1447
1433
|
return r || t;
|
|
1448
1434
|
}
|
|
1449
|
-
function
|
|
1435
|
+
function Nn(e) {
|
|
1450
1436
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1451
1437
|
var i = n[r];
|
|
1452
1438
|
switch (i.stem) {
|
|
@@ -1470,7 +1456,7 @@ function Cn(e) {
|
|
|
1470
1456
|
continue;
|
|
1471
1457
|
case "measure-unit":
|
|
1472
1458
|
case "unit":
|
|
1473
|
-
t.style = "unit", t.unit =
|
|
1459
|
+
t.style = "unit", t.unit = Pn(i.options[0]);
|
|
1474
1460
|
continue;
|
|
1475
1461
|
case "compact-short":
|
|
1476
1462
|
case "K":
|
|
@@ -1482,12 +1468,12 @@ function Cn(e) {
|
|
|
1482
1468
|
continue;
|
|
1483
1469
|
case "scientific":
|
|
1484
1470
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1485
|
-
return y(y({}, h),
|
|
1471
|
+
return y(y({}, h), gt(u));
|
|
1486
1472
|
}, {}));
|
|
1487
1473
|
continue;
|
|
1488
1474
|
case "engineering":
|
|
1489
1475
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1490
|
-
return y(y({}, h),
|
|
1476
|
+
return y(y({}, h), gt(u));
|
|
1491
1477
|
}, {}));
|
|
1492
1478
|
continue;
|
|
1493
1479
|
case "notation-simple":
|
|
@@ -1532,45 +1518,45 @@ function Cn(e) {
|
|
|
1532
1518
|
case "integer-width":
|
|
1533
1519
|
if (i.options.length > 1)
|
|
1534
1520
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1535
|
-
i.options[0].replace(
|
|
1521
|
+
i.options[0].replace(On, function(h, u, l, f, c, d) {
|
|
1536
1522
|
if (u)
|
|
1537
1523
|
t.minimumIntegerDigits = l.length;
|
|
1538
1524
|
else {
|
|
1539
|
-
if (
|
|
1525
|
+
if (f && c)
|
|
1540
1526
|
throw new Error("We currently do not support maximum integer digits");
|
|
1541
|
-
if (
|
|
1527
|
+
if (d)
|
|
1542
1528
|
throw new Error("We currently do not support exact integer digits");
|
|
1543
1529
|
}
|
|
1544
1530
|
return "";
|
|
1545
1531
|
});
|
|
1546
1532
|
continue;
|
|
1547
1533
|
}
|
|
1548
|
-
if (
|
|
1534
|
+
if (Jt.test(i.stem)) {
|
|
1549
1535
|
t.minimumIntegerDigits = i.stem.length;
|
|
1550
1536
|
continue;
|
|
1551
1537
|
}
|
|
1552
|
-
if (
|
|
1538
|
+
if (bt.test(i.stem)) {
|
|
1553
1539
|
if (i.options.length > 1)
|
|
1554
1540
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1555
|
-
i.stem.replace(
|
|
1556
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1541
|
+
i.stem.replace(bt, function(h, u, l, f, c, d) {
|
|
1542
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1557
1543
|
});
|
|
1558
1544
|
var o = i.options[0];
|
|
1559
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1545
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), yt(o)));
|
|
1560
1546
|
continue;
|
|
1561
1547
|
}
|
|
1562
|
-
if (
|
|
1563
|
-
t = y(y({}, t),
|
|
1548
|
+
if (qt.test(i.stem)) {
|
|
1549
|
+
t = y(y({}, t), yt(i.stem));
|
|
1564
1550
|
continue;
|
|
1565
1551
|
}
|
|
1566
|
-
var s =
|
|
1552
|
+
var s = Yt(i.stem);
|
|
1567
1553
|
s && (t = y(y({}, t), s));
|
|
1568
|
-
var a =
|
|
1554
|
+
var a = In(i.stem);
|
|
1569
1555
|
a && (t = y(y({}, t), a));
|
|
1570
1556
|
}
|
|
1571
1557
|
return t;
|
|
1572
1558
|
}
|
|
1573
|
-
var
|
|
1559
|
+
var ce = {
|
|
1574
1560
|
"001": [
|
|
1575
1561
|
"H",
|
|
1576
1562
|
"h"
|
|
@@ -2985,13 +2971,13 @@ var fe = {
|
|
|
2985
2971
|
"h"
|
|
2986
2972
|
]
|
|
2987
2973
|
};
|
|
2988
|
-
function
|
|
2974
|
+
function Ln(e, t) {
|
|
2989
2975
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2990
2976
|
var i = e.charAt(n);
|
|
2991
2977
|
if (i === "j") {
|
|
2992
2978
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2993
2979
|
o++, n++;
|
|
2994
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2980
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
|
|
2995
2981
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2996
2982
|
r += h;
|
|
2997
2983
|
for (; s-- > 0; )
|
|
@@ -3001,7 +2987,7 @@ function Mn(e, t) {
|
|
|
3001
2987
|
}
|
|
3002
2988
|
return r;
|
|
3003
2989
|
}
|
|
3004
|
-
function
|
|
2990
|
+
function Cn(e) {
|
|
3005
2991
|
var t = e.hourCycle;
|
|
3006
2992
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3007
2993
|
e.hourCycles && // @ts-ignore
|
|
@@ -3020,23 +3006,23 @@ function $n(e) {
|
|
|
3020
3006
|
}
|
|
3021
3007
|
var r = e.language, n;
|
|
3022
3008
|
r !== "root" && (n = e.maximize().region);
|
|
3023
|
-
var i =
|
|
3009
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3024
3010
|
return i[0];
|
|
3025
3011
|
}
|
|
3026
|
-
var
|
|
3012
|
+
var Pe, Mn = new RegExp("^".concat(Qt.source, "*")), $n = new RegExp("".concat(Qt.source, "*$"));
|
|
3027
3013
|
function b(e, t) {
|
|
3028
3014
|
return { start: e, end: t };
|
|
3029
3015
|
}
|
|
3030
|
-
var
|
|
3016
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Dn = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
|
|
3031
3017
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3032
|
-
},
|
|
3018
|
+
}, je = !0;
|
|
3033
3019
|
try {
|
|
3034
|
-
var
|
|
3035
|
-
|
|
3020
|
+
var Xn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3021
|
+
je = ((Pe = Xn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3036
3022
|
} catch (e) {
|
|
3037
|
-
|
|
3023
|
+
je = !1;
|
|
3038
3024
|
}
|
|
3039
|
-
var
|
|
3025
|
+
var vt = Rn ? (
|
|
3040
3026
|
// Native
|
|
3041
3027
|
function(t, r, n) {
|
|
3042
3028
|
return t.startsWith(r, n);
|
|
@@ -3046,7 +3032,7 @@ var Et = Dn ? (
|
|
|
3046
3032
|
function(t, r, n) {
|
|
3047
3033
|
return t.slice(n, n + r.length) === r;
|
|
3048
3034
|
}
|
|
3049
|
-
),
|
|
3035
|
+
), ke = Un ? String.fromCodePoint : (
|
|
3050
3036
|
// IE11
|
|
3051
3037
|
function() {
|
|
3052
3038
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3058,9 +3044,9 @@ var Et = Dn ? (
|
|
|
3058
3044
|
}
|
|
3059
3045
|
return n;
|
|
3060
3046
|
}
|
|
3061
|
-
),
|
|
3047
|
+
), _t = (
|
|
3062
3048
|
// native
|
|
3063
|
-
|
|
3049
|
+
Dn ? Object.fromEntries : (
|
|
3064
3050
|
// Ponyfill
|
|
3065
3051
|
function(t) {
|
|
3066
3052
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3070,7 +3056,7 @@ var Et = Dn ? (
|
|
|
3070
3056
|
return r;
|
|
3071
3057
|
}
|
|
3072
3058
|
)
|
|
3073
|
-
),
|
|
3059
|
+
), Kt = Gn ? (
|
|
3074
3060
|
// Native
|
|
3075
3061
|
function(t, r) {
|
|
3076
3062
|
return t.codePointAt(r);
|
|
@@ -3084,7 +3070,7 @@ var Et = Dn ? (
|
|
|
3084
3070
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3085
3071
|
}
|
|
3086
3072
|
}
|
|
3087
|
-
),
|
|
3073
|
+
), Wn = Fn ? (
|
|
3088
3074
|
// Native
|
|
3089
3075
|
function(t) {
|
|
3090
3076
|
return t.trimStart();
|
|
@@ -3092,9 +3078,9 @@ var Et = Dn ? (
|
|
|
3092
3078
|
) : (
|
|
3093
3079
|
// Ponyfill
|
|
3094
3080
|
function(t) {
|
|
3095
|
-
return t.replace(
|
|
3081
|
+
return t.replace(Mn, "");
|
|
3096
3082
|
}
|
|
3097
|
-
),
|
|
3083
|
+
), zn = jn ? (
|
|
3098
3084
|
// Native
|
|
3099
3085
|
function(t) {
|
|
3100
3086
|
return t.trimEnd();
|
|
@@ -3102,32 +3088,32 @@ var Et = Dn ? (
|
|
|
3102
3088
|
) : (
|
|
3103
3089
|
// Ponyfill
|
|
3104
3090
|
function(t) {
|
|
3105
|
-
return t.replace(
|
|
3091
|
+
return t.replace($n, "");
|
|
3106
3092
|
}
|
|
3107
3093
|
);
|
|
3108
|
-
function
|
|
3094
|
+
function er(e, t) {
|
|
3109
3095
|
return new RegExp(e, t);
|
|
3110
3096
|
}
|
|
3111
|
-
var
|
|
3112
|
-
if (
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3097
|
+
var Ve;
|
|
3098
|
+
if (je) {
|
|
3099
|
+
var Et = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3100
|
+
Ve = function(t, r) {
|
|
3115
3101
|
var n;
|
|
3116
|
-
|
|
3117
|
-
var i =
|
|
3102
|
+
Et.lastIndex = r;
|
|
3103
|
+
var i = Et.exec(t);
|
|
3118
3104
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3119
3105
|
};
|
|
3120
3106
|
} else
|
|
3121
|
-
|
|
3107
|
+
Ve = function(t, r) {
|
|
3122
3108
|
for (var n = []; ; ) {
|
|
3123
|
-
var i =
|
|
3124
|
-
if (i === void 0 ||
|
|
3109
|
+
var i = Kt(t, r);
|
|
3110
|
+
if (i === void 0 || tr(i) || Jn(i))
|
|
3125
3111
|
break;
|
|
3126
3112
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3127
3113
|
}
|
|
3128
|
-
return
|
|
3114
|
+
return ke.apply(void 0, n);
|
|
3129
3115
|
};
|
|
3130
|
-
var
|
|
3116
|
+
var Zn = (
|
|
3131
3117
|
/** @class */
|
|
3132
3118
|
function() {
|
|
3133
3119
|
function e(t, r) {
|
|
@@ -3157,8 +3143,8 @@ var qn = (
|
|
|
3157
3143
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3158
3144
|
if (n)
|
|
3159
3145
|
break;
|
|
3160
|
-
return this.error(
|
|
3161
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3146
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3147
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3162
3148
|
var s = this.parseTag(t, r);
|
|
3163
3149
|
if (s.err)
|
|
3164
3150
|
return s;
|
|
@@ -3191,10 +3177,10 @@ var qn = (
|
|
|
3191
3177
|
return o;
|
|
3192
3178
|
var s = o.val, a = this.clonePosition();
|
|
3193
3179
|
if (this.bumpIf("</")) {
|
|
3194
|
-
if (this.isEOF() || !
|
|
3195
|
-
return this.error(
|
|
3180
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3181
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3196
3182
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3197
|
-
return i !== u ? this.error(
|
|
3183
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3198
3184
|
val: {
|
|
3199
3185
|
type: _.tag,
|
|
3200
3186
|
value: i,
|
|
@@ -3202,14 +3188,14 @@ var qn = (
|
|
|
3202
3188
|
location: b(n, this.clonePosition())
|
|
3203
3189
|
},
|
|
3204
3190
|
err: null
|
|
3205
|
-
} : this.error(
|
|
3191
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
3206
3192
|
} else
|
|
3207
|
-
return this.error(
|
|
3193
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3208
3194
|
} else
|
|
3209
|
-
return this.error(
|
|
3195
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3210
3196
|
}, e.prototype.parseTagName = function() {
|
|
3211
3197
|
var t = this.offset();
|
|
3212
|
-
for (this.bump(); !this.isEOF() &&
|
|
3198
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3213
3199
|
this.bump();
|
|
3214
3200
|
return this.message.slice(t, this.offset());
|
|
3215
3201
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3238,7 +3224,7 @@ var qn = (
|
|
|
3238
3224
|
};
|
|
3239
3225
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3240
3226
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3241
|
-
!
|
|
3227
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3242
3228
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3243
3229
|
if (this.isEOF() || this.char() !== 39)
|
|
3244
3230
|
return null;
|
|
@@ -3272,23 +3258,23 @@ var qn = (
|
|
|
3272
3258
|
r.push(n);
|
|
3273
3259
|
this.bump();
|
|
3274
3260
|
}
|
|
3275
|
-
return
|
|
3261
|
+
return ke.apply(void 0, r);
|
|
3276
3262
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3277
3263
|
if (this.isEOF())
|
|
3278
3264
|
return null;
|
|
3279
3265
|
var n = this.char();
|
|
3280
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3266
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3281
3267
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3282
3268
|
var n = this.clonePosition();
|
|
3283
3269
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3284
|
-
return this.error(
|
|
3270
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3285
3271
|
if (this.char() === 125)
|
|
3286
|
-
return this.bump(), this.error(
|
|
3272
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3287
3273
|
var i = this.parseIdentifierIfPossible().value;
|
|
3288
3274
|
if (!i)
|
|
3289
|
-
return this.error(
|
|
3275
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3290
3276
|
if (this.bumpSpace(), this.isEOF())
|
|
3291
|
-
return this.error(
|
|
3277
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3292
3278
|
switch (this.char()) {
|
|
3293
3279
|
case 125:
|
|
3294
3280
|
return this.bump(), {
|
|
@@ -3301,12 +3287,12 @@ var qn = (
|
|
|
3301
3287
|
err: null
|
|
3302
3288
|
};
|
|
3303
3289
|
case 44:
|
|
3304
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3290
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3305
3291
|
default:
|
|
3306
|
-
return this.error(
|
|
3292
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3307
3293
|
}
|
|
3308
3294
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3309
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3295
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3310
3296
|
this.bumpTo(i);
|
|
3311
3297
|
var o = this.clonePosition(), s = b(t, o);
|
|
3312
3298
|
return { value: n, location: s };
|
|
@@ -3314,7 +3300,7 @@ var qn = (
|
|
|
3314
3300
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3315
3301
|
switch (a) {
|
|
3316
3302
|
case "":
|
|
3317
|
-
return this.error(
|
|
3303
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3318
3304
|
case "number":
|
|
3319
3305
|
case "date":
|
|
3320
3306
|
case "time": {
|
|
@@ -3322,40 +3308,40 @@ var qn = (
|
|
|
3322
3308
|
var u = null;
|
|
3323
3309
|
if (this.bumpIf(",")) {
|
|
3324
3310
|
this.bumpSpace();
|
|
3325
|
-
var l = this.clonePosition(),
|
|
3326
|
-
if (
|
|
3327
|
-
return
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3330
|
-
return this.error(
|
|
3331
|
-
var
|
|
3332
|
-
u = { style:
|
|
3311
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3312
|
+
if (f.err)
|
|
3313
|
+
return f;
|
|
3314
|
+
var c = zn(f.val);
|
|
3315
|
+
if (c.length === 0)
|
|
3316
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3317
|
+
var d = b(l, this.clonePosition());
|
|
3318
|
+
u = { style: c, styleLocation: d };
|
|
3333
3319
|
}
|
|
3334
3320
|
var v = this.tryParseArgumentClose(i);
|
|
3335
3321
|
if (v.err)
|
|
3336
3322
|
return v;
|
|
3337
|
-
var
|
|
3338
|
-
if (u &&
|
|
3339
|
-
var T =
|
|
3323
|
+
var p = b(i, this.clonePosition());
|
|
3324
|
+
if (u && vt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3325
|
+
var T = Wn(u.style.slice(2));
|
|
3340
3326
|
if (a === "number") {
|
|
3341
|
-
var
|
|
3342
|
-
return
|
|
3343
|
-
val: { type: _.number, value: n, location:
|
|
3327
|
+
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3328
|
+
return f.err ? f : {
|
|
3329
|
+
val: { type: _.number, value: n, location: p, style: f.val },
|
|
3344
3330
|
err: null
|
|
3345
3331
|
};
|
|
3346
3332
|
} else {
|
|
3347
3333
|
if (T.length === 0)
|
|
3348
|
-
return this.error(
|
|
3334
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, p);
|
|
3349
3335
|
var R = T;
|
|
3350
|
-
this.locale && (R =
|
|
3351
|
-
var
|
|
3336
|
+
this.locale && (R = Ln(T, this.locale));
|
|
3337
|
+
var c = {
|
|
3352
3338
|
type: Z.dateTime,
|
|
3353
3339
|
pattern: R,
|
|
3354
3340
|
location: u.styleLocation,
|
|
3355
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3341
|
+
parsedOptions: this.shouldParseSkeletons ? wn(R) : {}
|
|
3356
3342
|
}, P = a === "date" ? _.date : _.time;
|
|
3357
3343
|
return {
|
|
3358
|
-
val: { type: P, value: n, location:
|
|
3344
|
+
val: { type: P, value: n, location: p, style: c },
|
|
3359
3345
|
err: null
|
|
3360
3346
|
};
|
|
3361
3347
|
}
|
|
@@ -3364,7 +3350,7 @@ var qn = (
|
|
|
3364
3350
|
val: {
|
|
3365
3351
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3366
3352
|
value: n,
|
|
3367
|
-
location:
|
|
3353
|
+
location: p,
|
|
3368
3354
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3369
3355
|
},
|
|
3370
3356
|
err: null
|
|
@@ -3375,17 +3361,17 @@ var qn = (
|
|
|
3375
3361
|
case "select": {
|
|
3376
3362
|
var S = this.clonePosition();
|
|
3377
3363
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3378
|
-
return this.error(
|
|
3364
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
|
|
3379
3365
|
this.bumpSpace();
|
|
3380
3366
|
var U = this.parseIdentifierIfPossible(), O = 0;
|
|
3381
3367
|
if (a !== "select" && U.value === "offset") {
|
|
3382
3368
|
if (!this.bumpIf(":"))
|
|
3383
|
-
return this.error(
|
|
3369
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3384
3370
|
this.bumpSpace();
|
|
3385
|
-
var
|
|
3386
|
-
if (
|
|
3387
|
-
return
|
|
3388
|
-
this.bumpSpace(), U = this.parseIdentifierIfPossible(), O =
|
|
3371
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3372
|
+
if (f.err)
|
|
3373
|
+
return f;
|
|
3374
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), O = f.val;
|
|
3389
3375
|
}
|
|
3390
3376
|
var G = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3391
3377
|
if (G.err)
|
|
@@ -3398,7 +3384,7 @@ var qn = (
|
|
|
3398
3384
|
val: {
|
|
3399
3385
|
type: _.select,
|
|
3400
3386
|
value: n,
|
|
3401
|
-
options:
|
|
3387
|
+
options: _t(G.val),
|
|
3402
3388
|
location: g
|
|
3403
3389
|
},
|
|
3404
3390
|
err: null
|
|
@@ -3406,7 +3392,7 @@ var qn = (
|
|
|
3406
3392
|
val: {
|
|
3407
3393
|
type: _.plural,
|
|
3408
3394
|
value: n,
|
|
3409
|
-
options:
|
|
3395
|
+
options: _t(G.val),
|
|
3410
3396
|
offset: O,
|
|
3411
3397
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3412
3398
|
location: g
|
|
@@ -3415,10 +3401,10 @@ var qn = (
|
|
|
3415
3401
|
};
|
|
3416
3402
|
}
|
|
3417
3403
|
default:
|
|
3418
|
-
return this.error(
|
|
3404
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3419
3405
|
}
|
|
3420
3406
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3421
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3407
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3422
3408
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3423
3409
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3424
3410
|
var n = this.char();
|
|
@@ -3427,7 +3413,7 @@ var qn = (
|
|
|
3427
3413
|
this.bump();
|
|
3428
3414
|
var i = this.clonePosition();
|
|
3429
3415
|
if (!this.bumpUntil("'"))
|
|
3430
|
-
return this.error(
|
|
3416
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3431
3417
|
this.bump();
|
|
3432
3418
|
break;
|
|
3433
3419
|
}
|
|
@@ -3457,52 +3443,52 @@ var qn = (
|
|
|
3457
3443
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3458
3444
|
var n = [];
|
|
3459
3445
|
try {
|
|
3460
|
-
n =
|
|
3446
|
+
n = An(t);
|
|
3461
3447
|
} catch (i) {
|
|
3462
|
-
return this.error(
|
|
3448
|
+
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3463
3449
|
}
|
|
3464
3450
|
return {
|
|
3465
3451
|
val: {
|
|
3466
3452
|
type: Z.number,
|
|
3467
3453
|
tokens: n,
|
|
3468
3454
|
location: r,
|
|
3469
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3455
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
|
3470
3456
|
},
|
|
3471
3457
|
err: null
|
|
3472
3458
|
};
|
|
3473
3459
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3474
3460
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3475
3461
|
if (u.length === 0) {
|
|
3476
|
-
var
|
|
3462
|
+
var f = this.clonePosition();
|
|
3477
3463
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3478
|
-
var
|
|
3479
|
-
if (
|
|
3480
|
-
return
|
|
3481
|
-
l = b(
|
|
3464
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3465
|
+
if (c.err)
|
|
3466
|
+
return c;
|
|
3467
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3482
3468
|
} else
|
|
3483
3469
|
break;
|
|
3484
3470
|
}
|
|
3485
3471
|
if (h.has(u))
|
|
3486
|
-
return this.error(r === "select" ?
|
|
3472
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3487
3473
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3488
|
-
var
|
|
3474
|
+
var d = this.clonePosition();
|
|
3489
3475
|
if (!this.bumpIf("{"))
|
|
3490
|
-
return this.error(r === "select" ?
|
|
3476
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3491
3477
|
var v = this.parseMessage(t + 1, r, n);
|
|
3492
3478
|
if (v.err)
|
|
3493
3479
|
return v;
|
|
3494
|
-
var
|
|
3495
|
-
if (
|
|
3496
|
-
return
|
|
3480
|
+
var p = this.tryParseArgumentClose(d);
|
|
3481
|
+
if (p.err)
|
|
3482
|
+
return p;
|
|
3497
3483
|
a.push([
|
|
3498
3484
|
u,
|
|
3499
3485
|
{
|
|
3500
3486
|
value: v.val,
|
|
3501
|
-
location: b(
|
|
3487
|
+
location: b(d, this.clonePosition())
|
|
3502
3488
|
}
|
|
3503
3489
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3504
3490
|
}
|
|
3505
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3491
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3506
3492
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3507
3493
|
var n = 1, i = this.clonePosition();
|
|
3508
3494
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3514,7 +3500,7 @@ var qn = (
|
|
|
3514
3500
|
break;
|
|
3515
3501
|
}
|
|
3516
3502
|
var h = b(i, this.clonePosition());
|
|
3517
|
-
return o ? (s *= n,
|
|
3503
|
+
return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3518
3504
|
}, e.prototype.offset = function() {
|
|
3519
3505
|
return this.position.offset;
|
|
3520
3506
|
}, e.prototype.isEOF = function() {
|
|
@@ -3529,7 +3515,7 @@ var qn = (
|
|
|
3529
3515
|
var t = this.position.offset;
|
|
3530
3516
|
if (t >= this.message.length)
|
|
3531
3517
|
throw Error("out of bound");
|
|
3532
|
-
var r =
|
|
3518
|
+
var r = Kt(this.message, t);
|
|
3533
3519
|
if (r === void 0)
|
|
3534
3520
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3535
3521
|
return r;
|
|
@@ -3548,7 +3534,7 @@ var qn = (
|
|
|
3548
3534
|
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);
|
|
3549
3535
|
}
|
|
3550
3536
|
}, e.prototype.bumpIf = function(t) {
|
|
3551
|
-
if (
|
|
3537
|
+
if (vt(this.message, t, this.offset())) {
|
|
3552
3538
|
for (var r = 0; r < t.length; r++)
|
|
3553
3539
|
this.bump();
|
|
3554
3540
|
return !0;
|
|
@@ -3570,7 +3556,7 @@ var qn = (
|
|
|
3570
3556
|
break;
|
|
3571
3557
|
}
|
|
3572
3558
|
}, e.prototype.bumpSpace = function() {
|
|
3573
|
-
for (; !this.isEOF() &&
|
|
3559
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3574
3560
|
this.bump();
|
|
3575
3561
|
}, e.prototype.peek = function() {
|
|
3576
3562
|
if (this.isEOF())
|
|
@@ -3580,38 +3566,38 @@ var qn = (
|
|
|
3580
3566
|
}, e;
|
|
3581
3567
|
}()
|
|
3582
3568
|
);
|
|
3583
|
-
function
|
|
3569
|
+
function Xe(e) {
|
|
3584
3570
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3585
3571
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return
|
|
3572
|
+
function Qn(e) {
|
|
3573
|
+
return Xe(e) || e === 47;
|
|
3588
3574
|
}
|
|
3589
|
-
function
|
|
3575
|
+
function qn(e) {
|
|
3590
3576
|
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;
|
|
3591
3577
|
}
|
|
3592
|
-
function
|
|
3578
|
+
function tr(e) {
|
|
3593
3579
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3594
3580
|
}
|
|
3595
|
-
function
|
|
3581
|
+
function Jn(e) {
|
|
3596
3582
|
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;
|
|
3597
3583
|
}
|
|
3598
|
-
function
|
|
3584
|
+
function We(e) {
|
|
3599
3585
|
e.forEach(function(t) {
|
|
3600
|
-
if (delete t.location,
|
|
3586
|
+
if (delete t.location, Xt(t) || Wt(t))
|
|
3601
3587
|
for (var r in t.options)
|
|
3602
|
-
delete t.options[r].location,
|
|
3588
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3603
3589
|
else
|
|
3604
|
-
|
|
3590
|
+
jt(t) && Zt(t.style) || (kt(t) || Vt(t)) && Fe(t.style) ? delete t.style.location : zt(t) && We(t.children);
|
|
3605
3591
|
});
|
|
3606
3592
|
}
|
|
3607
|
-
function
|
|
3593
|
+
function Yn(e, t) {
|
|
3608
3594
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3609
|
-
var r = new
|
|
3595
|
+
var r = new Zn(e, t).parse();
|
|
3610
3596
|
if (r.err) {
|
|
3611
|
-
var n = SyntaxError(
|
|
3597
|
+
var n = SyntaxError(m[r.err.kind]);
|
|
3612
3598
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3613
3599
|
}
|
|
3614
|
-
return t != null && t.captureLocation ||
|
|
3600
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3615
3601
|
}
|
|
3616
3602
|
var Q;
|
|
3617
3603
|
(function(e) {
|
|
@@ -3629,7 +3615,7 @@ var Ee = (
|
|
|
3629
3615
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3630
3616
|
}, t;
|
|
3631
3617
|
}(Error)
|
|
3632
|
-
),
|
|
3618
|
+
), xt = (
|
|
3633
3619
|
/** @class */
|
|
3634
3620
|
function(e) {
|
|
3635
3621
|
L(t, e);
|
|
@@ -3638,7 +3624,7 @@ var Ee = (
|
|
|
3638
3624
|
}
|
|
3639
3625
|
return t;
|
|
3640
3626
|
}(Ee)
|
|
3641
|
-
),
|
|
3627
|
+
), Kn = (
|
|
3642
3628
|
/** @class */
|
|
3643
3629
|
function(e) {
|
|
3644
3630
|
L(t, e);
|
|
@@ -3647,7 +3633,7 @@ var Ee = (
|
|
|
3647
3633
|
}
|
|
3648
3634
|
return t;
|
|
3649
3635
|
}(Ee)
|
|
3650
|
-
),
|
|
3636
|
+
), ei = (
|
|
3651
3637
|
/** @class */
|
|
3652
3638
|
function(e) {
|
|
3653
3639
|
L(t, e);
|
|
@@ -3660,17 +3646,17 @@ var Ee = (
|
|
|
3660
3646
|
(function(e) {
|
|
3661
3647
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3662
3648
|
})(H || (H = {}));
|
|
3663
|
-
function
|
|
3649
|
+
function ti(e) {
|
|
3664
3650
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3665
3651
|
var n = t[t.length - 1];
|
|
3666
3652
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3667
3653
|
}, []);
|
|
3668
3654
|
}
|
|
3669
|
-
function
|
|
3655
|
+
function ri(e) {
|
|
3670
3656
|
return typeof e == "function";
|
|
3671
3657
|
}
|
|
3672
|
-
function
|
|
3673
|
-
if (e.length === 1 &&
|
|
3658
|
+
function me(e, t, r, n, i, o, s) {
|
|
3659
|
+
if (e.length === 1 && mt(e[0]))
|
|
3674
3660
|
return [
|
|
3675
3661
|
{
|
|
3676
3662
|
type: H.literal,
|
|
@@ -3679,60 +3665,60 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3679
3665
|
];
|
|
3680
3666
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3681
3667
|
var l = u[h];
|
|
3682
|
-
if (
|
|
3668
|
+
if (mt(l)) {
|
|
3683
3669
|
a.push({
|
|
3684
3670
|
type: H.literal,
|
|
3685
3671
|
value: l.value
|
|
3686
3672
|
});
|
|
3687
3673
|
continue;
|
|
3688
3674
|
}
|
|
3689
|
-
if (
|
|
3675
|
+
if (Hn(l)) {
|
|
3690
3676
|
typeof o == "number" && a.push({
|
|
3691
3677
|
type: H.literal,
|
|
3692
3678
|
value: r.getNumberFormat(t).format(o)
|
|
3693
3679
|
});
|
|
3694
3680
|
continue;
|
|
3695
3681
|
}
|
|
3696
|
-
var
|
|
3697
|
-
if (!(i &&
|
|
3698
|
-
throw new
|
|
3699
|
-
var
|
|
3700
|
-
if (
|
|
3701
|
-
(!
|
|
3702
|
-
type: typeof
|
|
3703
|
-
value:
|
|
3682
|
+
var f = l.value;
|
|
3683
|
+
if (!(i && f in i))
|
|
3684
|
+
throw new ei(f, s);
|
|
3685
|
+
var c = i[f];
|
|
3686
|
+
if (Tn(l)) {
|
|
3687
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3688
|
+
type: typeof c == "string" ? H.literal : H.object,
|
|
3689
|
+
value: c
|
|
3704
3690
|
});
|
|
3705
3691
|
continue;
|
|
3706
3692
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3693
|
+
if (kt(l)) {
|
|
3694
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3709
3695
|
a.push({
|
|
3710
3696
|
type: H.literal,
|
|
3711
|
-
value: r.getDateTimeFormat(t,
|
|
3697
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3712
3698
|
});
|
|
3713
3699
|
continue;
|
|
3714
3700
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3701
|
+
if (Vt(l)) {
|
|
3702
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3717
3703
|
a.push({
|
|
3718
3704
|
type: H.literal,
|
|
3719
|
-
value: r.getDateTimeFormat(t,
|
|
3705
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3720
3706
|
});
|
|
3721
3707
|
continue;
|
|
3722
3708
|
}
|
|
3723
|
-
if (
|
|
3724
|
-
var
|
|
3725
|
-
|
|
3709
|
+
if (jt(l)) {
|
|
3710
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3711
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3726
3712
|
type: H.literal,
|
|
3727
|
-
value: r.getNumberFormat(t,
|
|
3713
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3728
3714
|
});
|
|
3729
3715
|
continue;
|
|
3730
3716
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
var v = l.children,
|
|
3733
|
-
if (!
|
|
3734
|
-
throw new
|
|
3735
|
-
var R =
|
|
3717
|
+
if (zt(l)) {
|
|
3718
|
+
var v = l.children, p = l.value, T = i[p];
|
|
3719
|
+
if (!ri(T))
|
|
3720
|
+
throw new Kn(p, "function", s);
|
|
3721
|
+
var R = me(v, t, r, n, i, o), P = T(R.map(function(O) {
|
|
3736
3722
|
return O.value;
|
|
3737
3723
|
}));
|
|
3738
3724
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
|
|
@@ -3742,42 +3728,42 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3742
3728
|
};
|
|
3743
3729
|
}));
|
|
3744
3730
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var S = l.options[
|
|
3731
|
+
if (Xt(l)) {
|
|
3732
|
+
var S = l.options[c] || l.options.other;
|
|
3747
3733
|
if (!S)
|
|
3748
|
-
throw new
|
|
3749
|
-
a.push.apply(a,
|
|
3734
|
+
throw new xt(l.value, c, Object.keys(l.options), s);
|
|
3735
|
+
a.push.apply(a, me(S.value, t, r, n, i));
|
|
3750
3736
|
continue;
|
|
3751
3737
|
}
|
|
3752
|
-
if (
|
|
3753
|
-
var S = l.options["=".concat(
|
|
3738
|
+
if (Wt(l)) {
|
|
3739
|
+
var S = l.options["=".concat(c)];
|
|
3754
3740
|
if (!S) {
|
|
3755
3741
|
if (!Intl.PluralRules)
|
|
3756
3742
|
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3757
3743
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3758
3744
|
`, Q.MISSING_INTL_API, s);
|
|
3759
|
-
var U = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3745
|
+
var U = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3760
3746
|
S = l.options[U] || l.options.other;
|
|
3761
3747
|
}
|
|
3762
3748
|
if (!S)
|
|
3763
|
-
throw new
|
|
3764
|
-
a.push.apply(a,
|
|
3749
|
+
throw new xt(l.value, c, Object.keys(l.options), s);
|
|
3750
|
+
a.push.apply(a, me(S.value, t, r, n, i, c - (l.offset || 0)));
|
|
3765
3751
|
continue;
|
|
3766
3752
|
}
|
|
3767
3753
|
}
|
|
3768
|
-
return
|
|
3754
|
+
return ti(a);
|
|
3769
3755
|
}
|
|
3770
|
-
function
|
|
3756
|
+
function ni(e, t) {
|
|
3771
3757
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3772
3758
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3773
3759
|
}, {})) : e;
|
|
3774
3760
|
}
|
|
3775
|
-
function
|
|
3761
|
+
function ii(e, t) {
|
|
3776
3762
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3777
|
-
return r[n] =
|
|
3763
|
+
return r[n] = ni(e[n], t[n]), r;
|
|
3778
3764
|
}, y({}, e)) : e;
|
|
3779
3765
|
}
|
|
3780
|
-
function
|
|
3766
|
+
function Oe(e) {
|
|
3781
3767
|
return {
|
|
3782
3768
|
create: function() {
|
|
3783
3769
|
return {
|
|
@@ -3791,39 +3777,39 @@ function Ie(e) {
|
|
|
3791
3777
|
}
|
|
3792
3778
|
};
|
|
3793
3779
|
}
|
|
3794
|
-
function
|
|
3780
|
+
function oi(e) {
|
|
3795
3781
|
return e === void 0 && (e = {
|
|
3796
3782
|
number: {},
|
|
3797
3783
|
dateTime: {},
|
|
3798
3784
|
pluralRules: {}
|
|
3799
3785
|
}), {
|
|
3800
|
-
getNumberFormat:
|
|
3786
|
+
getNumberFormat: Be(function() {
|
|
3801
3787
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3802
3788
|
r[n] = arguments[n];
|
|
3803
3789
|
return new ((t = Intl.NumberFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3804
3790
|
}, {
|
|
3805
|
-
cache:
|
|
3806
|
-
strategy:
|
|
3791
|
+
cache: Oe(e.number),
|
|
3792
|
+
strategy: Ae.variadic
|
|
3807
3793
|
}),
|
|
3808
|
-
getDateTimeFormat:
|
|
3794
|
+
getDateTimeFormat: Be(function() {
|
|
3809
3795
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3810
3796
|
r[n] = arguments[n];
|
|
3811
3797
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3812
3798
|
}, {
|
|
3813
|
-
cache:
|
|
3814
|
-
strategy:
|
|
3799
|
+
cache: Oe(e.dateTime),
|
|
3800
|
+
strategy: Ae.variadic
|
|
3815
3801
|
}),
|
|
3816
|
-
getPluralRules:
|
|
3802
|
+
getPluralRules: Be(function() {
|
|
3817
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3818
3804
|
r[n] = arguments[n];
|
|
3819
3805
|
return new ((t = Intl.PluralRules).bind.apply(t, W([void 0], r, !1)))();
|
|
3820
3806
|
}, {
|
|
3821
|
-
cache:
|
|
3822
|
-
strategy:
|
|
3807
|
+
cache: Oe(e.pluralRules),
|
|
3808
|
+
strategy: Ae.variadic
|
|
3823
3809
|
})
|
|
3824
3810
|
};
|
|
3825
3811
|
}
|
|
3826
|
-
var
|
|
3812
|
+
var si = (
|
|
3827
3813
|
/** @class */
|
|
3828
3814
|
function() {
|
|
3829
3815
|
function e(t, r, n, i) {
|
|
@@ -3837,12 +3823,12 @@ var ui = (
|
|
|
3837
3823
|
var u = o.formatToParts(h);
|
|
3838
3824
|
if (u.length === 1)
|
|
3839
3825
|
return u[0].value;
|
|
3840
|
-
var l = u.reduce(function(
|
|
3841
|
-
return !
|
|
3826
|
+
var l = u.reduce(function(f, c) {
|
|
3827
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3842
3828
|
}, []);
|
|
3843
3829
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3844
3830
|
}, this.formatToParts = function(h) {
|
|
3845
|
-
return
|
|
3831
|
+
return me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3846
3832
|
}, this.resolvedOptions = function() {
|
|
3847
3833
|
var h;
|
|
3848
3834
|
return {
|
|
@@ -3855,13 +3841,13 @@ var ui = (
|
|
|
3855
3841
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3856
3842
|
var s = i || {};
|
|
3857
3843
|
s.formatters;
|
|
3858
|
-
var a =
|
|
3844
|
+
var a = Rr(s, ["formatters"]);
|
|
3859
3845
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3860
3846
|
} else
|
|
3861
3847
|
this.ast = t;
|
|
3862
3848
|
if (!Array.isArray(this.ast))
|
|
3863
3849
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3864
|
-
this.formats =
|
|
3850
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3865
3851
|
}
|
|
3866
3852
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3867
3853
|
get: function() {
|
|
@@ -3874,7 +3860,7 @@ var ui = (
|
|
|
3874
3860
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3875
3861
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3876
3862
|
}
|
|
3877
|
-
}, e.__parse =
|
|
3863
|
+
}, e.__parse = Yn, e.formats = {
|
|
3878
3864
|
number: {
|
|
3879
3865
|
integer: {
|
|
3880
3866
|
maximumFractionDigits: 0
|
|
@@ -3935,7 +3921,7 @@ var ui = (
|
|
|
3935
3921
|
}, e;
|
|
3936
3922
|
}()
|
|
3937
3923
|
);
|
|
3938
|
-
function
|
|
3924
|
+
function ai(e, t) {
|
|
3939
3925
|
if (t == null)
|
|
3940
3926
|
return;
|
|
3941
3927
|
if (t in e)
|
|
@@ -3956,92 +3942,92 @@ function hi(e, t) {
|
|
|
3956
3942
|
n = void 0;
|
|
3957
3943
|
return n;
|
|
3958
3944
|
}
|
|
3959
|
-
const $ = {},
|
|
3945
|
+
const $ = {}, ui = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), rr = (e, t) => {
|
|
3960
3946
|
if (t == null)
|
|
3961
3947
|
return;
|
|
3962
3948
|
if (t in $ && e in $[t])
|
|
3963
3949
|
return $[t][e];
|
|
3964
3950
|
const r = xe(t);
|
|
3965
3951
|
for (let n = 0; n < r.length; n++) {
|
|
3966
|
-
const i = r[n], o =
|
|
3952
|
+
const i = r[n], o = li(i, e);
|
|
3967
3953
|
if (o)
|
|
3968
|
-
return
|
|
3954
|
+
return ui(e, t, o);
|
|
3969
3955
|
}
|
|
3970
3956
|
};
|
|
3971
|
-
let
|
|
3957
|
+
let Ye;
|
|
3972
3958
|
const he = _e({});
|
|
3973
|
-
function
|
|
3974
|
-
return
|
|
3959
|
+
function hi(e) {
|
|
3960
|
+
return Ye[e] || null;
|
|
3975
3961
|
}
|
|
3976
|
-
function
|
|
3977
|
-
return e in
|
|
3962
|
+
function nr(e) {
|
|
3963
|
+
return e in Ye;
|
|
3978
3964
|
}
|
|
3979
|
-
function
|
|
3980
|
-
if (!
|
|
3965
|
+
function li(e, t) {
|
|
3966
|
+
if (!nr(e))
|
|
3981
3967
|
return null;
|
|
3982
|
-
const r =
|
|
3983
|
-
return
|
|
3968
|
+
const r = hi(e);
|
|
3969
|
+
return ai(r, t);
|
|
3984
3970
|
}
|
|
3985
|
-
function
|
|
3971
|
+
function fi(e) {
|
|
3986
3972
|
if (e == null)
|
|
3987
3973
|
return;
|
|
3988
3974
|
const t = xe(e);
|
|
3989
3975
|
for (let r = 0; r < t.length; r++) {
|
|
3990
3976
|
const n = t[r];
|
|
3991
|
-
if (
|
|
3977
|
+
if (nr(n))
|
|
3992
3978
|
return n;
|
|
3993
3979
|
}
|
|
3994
3980
|
}
|
|
3995
|
-
function
|
|
3996
|
-
delete $[e], he.update((r) => (r[e] =
|
|
3981
|
+
function ir(e, ...t) {
|
|
3982
|
+
delete $[e], he.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
|
|
3997
3983
|
}
|
|
3998
3984
|
Y(
|
|
3999
3985
|
[he],
|
|
4000
3986
|
([e]) => Object.keys(e)
|
|
4001
3987
|
);
|
|
4002
|
-
he.subscribe((e) =>
|
|
3988
|
+
he.subscribe((e) => Ye = e);
|
|
4003
3989
|
const be = {};
|
|
4004
|
-
function
|
|
3990
|
+
function ci(e, t) {
|
|
4005
3991
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4006
3992
|
}
|
|
4007
|
-
function
|
|
3993
|
+
function or(e) {
|
|
4008
3994
|
return be[e];
|
|
4009
3995
|
}
|
|
4010
3996
|
function di(e) {
|
|
4011
3997
|
return xe(e).map((t) => {
|
|
4012
|
-
const r =
|
|
3998
|
+
const r = or(t);
|
|
4013
3999
|
return [t, r ? [...r] : []];
|
|
4014
4000
|
}).filter(([, t]) => t.length > 0);
|
|
4015
4001
|
}
|
|
4016
|
-
function
|
|
4002
|
+
function ze(e) {
|
|
4017
4003
|
return e == null ? !1 : xe(e).some(
|
|
4018
4004
|
(t) => {
|
|
4019
4005
|
var r;
|
|
4020
|
-
return (r =
|
|
4006
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4021
4007
|
}
|
|
4022
4008
|
);
|
|
4023
4009
|
}
|
|
4024
|
-
function
|
|
4010
|
+
function pi(e, t) {
|
|
4025
4011
|
return Promise.all(
|
|
4026
|
-
t.map((n) => (
|
|
4027
|
-
).then((n) =>
|
|
4012
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
4013
|
+
).then((n) => ir(e, ...n));
|
|
4028
4014
|
}
|
|
4029
4015
|
const te = {};
|
|
4030
|
-
function
|
|
4031
|
-
if (!
|
|
4016
|
+
function sr(e) {
|
|
4017
|
+
if (!ze(e))
|
|
4032
4018
|
return e in te ? te[e] : Promise.resolve();
|
|
4033
4019
|
const t = di(e);
|
|
4034
4020
|
return te[e] = Promise.all(
|
|
4035
4021
|
t.map(
|
|
4036
|
-
([r, n]) =>
|
|
4022
|
+
([r, n]) => pi(r, n)
|
|
4037
4023
|
)
|
|
4038
4024
|
).then(() => {
|
|
4039
|
-
if (
|
|
4040
|
-
return
|
|
4025
|
+
if (ze(e))
|
|
4026
|
+
return sr(e);
|
|
4041
4027
|
delete te[e];
|
|
4042
4028
|
}), te[e];
|
|
4043
4029
|
}
|
|
4044
|
-
const
|
|
4030
|
+
const mi = {
|
|
4045
4031
|
number: {
|
|
4046
4032
|
scientific: { notation: "scientific" },
|
|
4047
4033
|
engineering: { notation: "engineering" },
|
|
@@ -4070,57 +4056,57 @@ const yi = {
|
|
|
4070
4056
|
timeZoneName: "short"
|
|
4071
4057
|
}
|
|
4072
4058
|
}
|
|
4073
|
-
},
|
|
4059
|
+
}, bi = {
|
|
4074
4060
|
fallbackLocale: null,
|
|
4075
4061
|
loadingDelay: 200,
|
|
4076
|
-
formats:
|
|
4062
|
+
formats: mi,
|
|
4077
4063
|
warnOnMissingMessages: !0,
|
|
4078
4064
|
handleMissingMessage: void 0,
|
|
4079
4065
|
ignoreTag: !0
|
|
4080
|
-
},
|
|
4066
|
+
}, yi = bi;
|
|
4081
4067
|
function q() {
|
|
4082
|
-
return
|
|
4083
|
-
}
|
|
4084
|
-
const
|
|
4085
|
-
var
|
|
4086
|
-
for (var r in t
|
|
4087
|
-
|
|
4088
|
-
if (
|
|
4089
|
-
for (var r of
|
|
4090
|
-
|
|
4068
|
+
return yi;
|
|
4069
|
+
}
|
|
4070
|
+
const Ie = _e(!1);
|
|
4071
|
+
var gi = Object.defineProperty, vi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ti = (e, t) => {
|
|
4072
|
+
for (var r in t)
|
|
4073
|
+
Ei.call(t, r) && Ht(e, r, t[r]);
|
|
4074
|
+
if (Tt)
|
|
4075
|
+
for (var r of Tt(t))
|
|
4076
|
+
xi.call(t, r) && Ht(e, r, t[r]);
|
|
4091
4077
|
return e;
|
|
4092
|
-
},
|
|
4093
|
-
let
|
|
4078
|
+
}, Hi = (e, t) => vi(e, _i(t));
|
|
4079
|
+
let Ze;
|
|
4094
4080
|
const ye = _e(null);
|
|
4095
|
-
function
|
|
4081
|
+
function St(e) {
|
|
4096
4082
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4097
4083
|
}
|
|
4098
4084
|
function xe(e, t = q().fallbackLocale) {
|
|
4099
|
-
const r =
|
|
4100
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4085
|
+
const r = St(e);
|
|
4086
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4101
4087
|
}
|
|
4102
4088
|
function D() {
|
|
4103
|
-
return
|
|
4089
|
+
return Ze != null ? Ze : void 0;
|
|
4104
4090
|
}
|
|
4105
4091
|
ye.subscribe((e) => {
|
|
4106
|
-
|
|
4092
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4107
4093
|
});
|
|
4108
|
-
const
|
|
4109
|
-
if (e &&
|
|
4094
|
+
const Si = (e) => {
|
|
4095
|
+
if (e && fi(e) && ze(e)) {
|
|
4110
4096
|
const { loadingDelay: t } = q();
|
|
4111
4097
|
let r;
|
|
4112
4098
|
return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
|
|
4113
|
-
() =>
|
|
4099
|
+
() => Ie.set(!0),
|
|
4114
4100
|
t
|
|
4115
|
-
) :
|
|
4101
|
+
) : Ie.set(!0), sr(e).then(() => {
|
|
4116
4102
|
ye.set(e);
|
|
4117
4103
|
}).finally(() => {
|
|
4118
|
-
clearTimeout(r),
|
|
4104
|
+
clearTimeout(r), Ie.set(!1);
|
|
4119
4105
|
});
|
|
4120
4106
|
}
|
|
4121
4107
|
return ye.set(e);
|
|
4122
|
-
}, K =
|
|
4123
|
-
set:
|
|
4108
|
+
}, K = Hi(Ti({}, ye), {
|
|
4109
|
+
set: Si
|
|
4124
4110
|
}), Te = (e) => {
|
|
4125
4111
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4126
4112
|
return (n) => {
|
|
@@ -4128,20 +4114,20 @@ const Bi = (e) => {
|
|
|
4128
4114
|
return i in t ? t[i] : t[i] = e(n);
|
|
4129
4115
|
};
|
|
4130
4116
|
};
|
|
4131
|
-
var
|
|
4117
|
+
var wi = Object.defineProperty, ge = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4132
4118
|
for (var r in t || (t = {}))
|
|
4133
|
-
|
|
4119
|
+
ar.call(t, r) && wt(e, r, t[r]);
|
|
4134
4120
|
if (ge)
|
|
4135
4121
|
for (var r of ge(t))
|
|
4136
|
-
|
|
4122
|
+
ur.call(t, r) && wt(e, r, t[r]);
|
|
4137
4123
|
return e;
|
|
4138
4124
|
}, ee = (e, t) => {
|
|
4139
4125
|
var r = {};
|
|
4140
4126
|
for (var n in e)
|
|
4141
|
-
|
|
4127
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4142
4128
|
if (e != null && ge)
|
|
4143
4129
|
for (var n of ge(e))
|
|
4144
|
-
t.indexOf(n) < 0 &&
|
|
4130
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4145
4131
|
return r;
|
|
4146
4132
|
};
|
|
4147
4133
|
const se = (e, t) => {
|
|
@@ -4149,21 +4135,21 @@ const se = (e, t) => {
|
|
|
4149
4135
|
if (e in r && t in r[e])
|
|
4150
4136
|
return r[e][t];
|
|
4151
4137
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4152
|
-
},
|
|
4138
|
+
}, Bi = Te(
|
|
4153
4139
|
(e) => {
|
|
4154
4140
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4155
4141
|
if (r == null)
|
|
4156
4142
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4157
4143
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4158
4144
|
}
|
|
4159
|
-
),
|
|
4145
|
+
), Ai = Te(
|
|
4160
4146
|
(e) => {
|
|
4161
4147
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4162
4148
|
if (r == null)
|
|
4163
4149
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4164
4150
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4165
4151
|
}
|
|
4166
|
-
),
|
|
4152
|
+
), Pi = Te(
|
|
4167
4153
|
(e) => {
|
|
4168
4154
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
4169
4155
|
if (r == null)
|
|
@@ -4172,33 +4158,33 @@ const se = (e, t) => {
|
|
|
4172
4158
|
);
|
|
4173
4159
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4174
4160
|
}
|
|
4175
|
-
),
|
|
4161
|
+
), Oi = (e = {}) => {
|
|
4176
4162
|
var t = e, {
|
|
4177
4163
|
locale: r = D()
|
|
4178
4164
|
} = t, n = ee(t, [
|
|
4179
4165
|
"locale"
|
|
4180
4166
|
]);
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4167
|
+
return Bi(Ke({ locale: r }, n));
|
|
4168
|
+
}, Ii = (e = {}) => {
|
|
4183
4169
|
var t = e, {
|
|
4184
4170
|
locale: r = D()
|
|
4185
4171
|
} = t, n = ee(t, [
|
|
4186
4172
|
"locale"
|
|
4187
4173
|
]);
|
|
4188
|
-
return
|
|
4189
|
-
},
|
|
4174
|
+
return Ai(Ke({ locale: r }, n));
|
|
4175
|
+
}, Ni = (e = {}) => {
|
|
4190
4176
|
var t = e, {
|
|
4191
4177
|
locale: r = D()
|
|
4192
4178
|
} = t, n = ee(t, [
|
|
4193
4179
|
"locale"
|
|
4194
4180
|
]);
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4181
|
+
return Pi(Ke({ locale: r }, n));
|
|
4182
|
+
}, Li = Te(
|
|
4197
4183
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4198
|
-
(e, t = D()) => new
|
|
4184
|
+
(e, t = D()) => new si(e, t, q().formats, {
|
|
4199
4185
|
ignoreTag: q().ignoreTag
|
|
4200
4186
|
})
|
|
4201
|
-
),
|
|
4187
|
+
), Ci = (e, t = {}) => {
|
|
4202
4188
|
var r, n, i, o;
|
|
4203
4189
|
let s = t;
|
|
4204
4190
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4211,7 +4197,7 @@ const se = (e, t) => {
|
|
|
4211
4197
|
throw new Error(
|
|
4212
4198
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4213
4199
|
);
|
|
4214
|
-
let l =
|
|
4200
|
+
let l = rr(e, h);
|
|
4215
4201
|
if (!l)
|
|
4216
4202
|
l = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4217
4203
|
else if (typeof l != "string")
|
|
@@ -4220,30 +4206,30 @@ const se = (e, t) => {
|
|
|
4220
4206
|
), l;
|
|
4221
4207
|
if (!a)
|
|
4222
4208
|
return l;
|
|
4223
|
-
let
|
|
4209
|
+
let f = l;
|
|
4224
4210
|
try {
|
|
4225
|
-
|
|
4226
|
-
} catch (
|
|
4227
|
-
|
|
4211
|
+
f = Li(l, h).format(a);
|
|
4212
|
+
} catch (c) {
|
|
4213
|
+
c instanceof Error && console.warn(
|
|
4228
4214
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4229
|
-
|
|
4215
|
+
c.message
|
|
4230
4216
|
);
|
|
4231
4217
|
}
|
|
4232
|
-
return
|
|
4233
|
-
},
|
|
4218
|
+
return f;
|
|
4219
|
+
}, Mi = (e, t) => Ni(t).format(e), $i = (e, t) => Ii(t).format(e), Ri = (e, t) => Oi(t).format(e), Ui = (e, t = D()) => rr(e, t), Di = Y([K, he], () => Ci);
|
|
4220
|
+
Y([K], () => Mi);
|
|
4221
|
+
Y([K], () => $i);
|
|
4234
4222
|
Y([K], () => Ri);
|
|
4235
|
-
Y([K], () => Ui);
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
}
|
|
4243
|
-
function ki(e) {
|
|
4223
|
+
Y([K, he], () => Ui);
|
|
4224
|
+
window.emWidgets = { topic: Jr };
|
|
4225
|
+
const Gi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4226
|
+
function Bt(e, t) {
|
|
4227
|
+
ir(e, t);
|
|
4228
|
+
}
|
|
4229
|
+
function Fi(e) {
|
|
4244
4230
|
K.set(e);
|
|
4245
4231
|
}
|
|
4246
|
-
const
|
|
4232
|
+
const At = {
|
|
4247
4233
|
en: {
|
|
4248
4234
|
titleTransactionHistory: "Transaction History",
|
|
4249
4235
|
loading: "Loading, please wait ..."
|
|
@@ -4285,13 +4271,13 @@ const Ot = {
|
|
|
4285
4271
|
loading: "Loading, please wait ..."
|
|
4286
4272
|
}
|
|
4287
4273
|
};
|
|
4288
|
-
function
|
|
4274
|
+
function ji(e, t) {
|
|
4289
4275
|
if (e) {
|
|
4290
4276
|
const r = document.createElement("style");
|
|
4291
4277
|
r.innerHTML = t, e.appendChild(r);
|
|
4292
4278
|
}
|
|
4293
4279
|
}
|
|
4294
|
-
function
|
|
4280
|
+
function ki(e, t) {
|
|
4295
4281
|
const r = new URL(t);
|
|
4296
4282
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4297
4283
|
const i = document.createElement("style");
|
|
@@ -4300,7 +4286,7 @@ function Xi(e, t) {
|
|
|
4300
4286
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4301
4287
|
});
|
|
4302
4288
|
}
|
|
4303
|
-
function
|
|
4289
|
+
function Vi(e, t, r) {
|
|
4304
4290
|
if (window.emMessageBus) {
|
|
4305
4291
|
const n = document.createElement("style");
|
|
4306
4292
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4308,41 +4294,41 @@ function Wi(e, t, r) {
|
|
|
4308
4294
|
});
|
|
4309
4295
|
}
|
|
4310
4296
|
}
|
|
4311
|
-
function
|
|
4312
|
-
|
|
4297
|
+
function Xi(e) {
|
|
4298
|
+
br(e, "svelte-1v10tii", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
|
|
4313
4299
|
}
|
|
4314
|
-
function
|
|
4315
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4300
|
+
function Wi(e) {
|
|
4301
|
+
let t, r, n, i, o, s, a, h, u, l, f = (
|
|
4316
4302
|
/*$_*/
|
|
4317
4303
|
e[3]("titleTransactionHistory") + ""
|
|
4318
|
-
),
|
|
4304
|
+
), c, d, v;
|
|
4319
4305
|
return {
|
|
4320
4306
|
c() {
|
|
4321
|
-
t = N("div"), r = F("svg"), n = F("defs"), i = F("style"), o = ne(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = F("g"), a = F("g"), h = F("path"), u =
|
|
4307
|
+
t = N("div"), r = F("svg"), n = F("defs"), i = F("style"), o = ne(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = F("g"), a = F("g"), h = F("path"), u = Ne(), l = N("h2"), c = ne(f), E(h, "class", "aaa"), E(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(h, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(l, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4322
4308
|
},
|
|
4323
|
-
m(
|
|
4324
|
-
ue(
|
|
4309
|
+
m(p, T) {
|
|
4310
|
+
ue(p, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, s), x(s, a), x(a, h), x(t, u), x(t, l), x(l, c), d || (v = vr(
|
|
4325
4311
|
t,
|
|
4326
4312
|
"click",
|
|
4327
4313
|
/*click_handler*/
|
|
4328
4314
|
e[14]
|
|
4329
|
-
),
|
|
4315
|
+
), d = !0);
|
|
4330
4316
|
},
|
|
4331
|
-
p(
|
|
4317
|
+
p(p, T) {
|
|
4332
4318
|
T & /*$_*/
|
|
4333
|
-
8 &&
|
|
4334
|
-
|
|
4319
|
+
8 && f !== (f = /*$_*/
|
|
4320
|
+
p[3]("titleTransactionHistory") + "") && qe(c, f);
|
|
4335
4321
|
},
|
|
4336
|
-
d(
|
|
4337
|
-
|
|
4322
|
+
d(p) {
|
|
4323
|
+
p && J(t), d = !1, v();
|
|
4338
4324
|
}
|
|
4339
4325
|
};
|
|
4340
4326
|
}
|
|
4341
|
-
function
|
|
4327
|
+
function zi(e) {
|
|
4342
4328
|
let t, r, n;
|
|
4343
4329
|
return {
|
|
4344
4330
|
c() {
|
|
4345
|
-
t = N("div"), r = N("iframe"),
|
|
4331
|
+
t = N("div"), r = N("iframe"), ot(r.src, n = /*iframeUrl*/
|
|
4346
4332
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4347
4333
|
},
|
|
4348
4334
|
m(i, o) {
|
|
@@ -4350,7 +4336,7 @@ function Qi(e) {
|
|
|
4350
4336
|
},
|
|
4351
4337
|
p(i, o) {
|
|
4352
4338
|
o & /*iframeUrl*/
|
|
4353
|
-
4 && !
|
|
4339
|
+
4 && !ot(r.src, n = /*iframeUrl*/
|
|
4354
4340
|
i[2]) && E(r, "src", n);
|
|
4355
4341
|
},
|
|
4356
4342
|
d(i) {
|
|
@@ -4358,7 +4344,7 @@ function Qi(e) {
|
|
|
4358
4344
|
}
|
|
4359
4345
|
};
|
|
4360
4346
|
}
|
|
4361
|
-
function
|
|
4347
|
+
function Zi(e) {
|
|
4362
4348
|
let t, r = (
|
|
4363
4349
|
/*$_*/
|
|
4364
4350
|
e[3]("loading") + ""
|
|
@@ -4373,65 +4359,65 @@ function qi(e) {
|
|
|
4373
4359
|
p(i, o) {
|
|
4374
4360
|
o & /*$_*/
|
|
4375
4361
|
8 && r !== (r = /*$_*/
|
|
4376
|
-
i[3]("loading") + "") &&
|
|
4362
|
+
i[3]("loading") + "") && qe(n, r);
|
|
4377
4363
|
},
|
|
4378
4364
|
d(i) {
|
|
4379
4365
|
i && J(t);
|
|
4380
4366
|
}
|
|
4381
4367
|
};
|
|
4382
4368
|
}
|
|
4383
|
-
function
|
|
4369
|
+
function Qi(e) {
|
|
4384
4370
|
let t, r, n, i = (
|
|
4385
4371
|
/*$_*/
|
|
4386
4372
|
e[3]("titleTransactionHistory") + ""
|
|
4387
4373
|
), o, s, a = (
|
|
4388
4374
|
/*isMobile*/
|
|
4389
|
-
e[4] &&
|
|
4375
|
+
e[4] && Wi(e)
|
|
4390
4376
|
);
|
|
4391
|
-
function h(
|
|
4377
|
+
function h(f, c) {
|
|
4392
4378
|
return (
|
|
4393
4379
|
/*isLoading*/
|
|
4394
|
-
|
|
4380
|
+
f[1] ? Zi : zi
|
|
4395
4381
|
);
|
|
4396
4382
|
}
|
|
4397
4383
|
let u = h(e), l = u(e);
|
|
4398
4384
|
return {
|
|
4399
4385
|
c() {
|
|
4400
|
-
t = N("div"), a && a.c(), r =
|
|
4386
|
+
t = N("div"), a && a.c(), r = Ne(), n = N("h2"), o = ne(i), s = Ne(), l.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4401
4387
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4402
4388
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4403
4389
|
},
|
|
4404
|
-
m(
|
|
4405
|
-
ue(
|
|
4390
|
+
m(f, c) {
|
|
4391
|
+
ue(f, t, c), a && a.m(t, null), x(t, r), x(t, n), x(n, o), x(t, s), l.m(t, null), e[15](t);
|
|
4406
4392
|
},
|
|
4407
|
-
p(
|
|
4393
|
+
p(f, [c]) {
|
|
4408
4394
|
/*isMobile*/
|
|
4409
|
-
|
|
4395
|
+
f[4] && a.p(f, c), c & /*$_*/
|
|
4410
4396
|
8 && i !== (i = /*$_*/
|
|
4411
|
-
|
|
4397
|
+
f[3]("titleTransactionHistory") + "") && qe(o, i), u === (u = h(f)) && l ? l.p(f, c) : (l.d(1), l = u(f), l && (l.c(), l.m(t, null)));
|
|
4412
4398
|
},
|
|
4413
4399
|
i: B,
|
|
4414
4400
|
o: B,
|
|
4415
|
-
d(
|
|
4416
|
-
|
|
4401
|
+
d(f) {
|
|
4402
|
+
f && J(t), a && a.d(), l.d(), e[15](null);
|
|
4417
4403
|
}
|
|
4418
4404
|
};
|
|
4419
4405
|
}
|
|
4420
|
-
function
|
|
4406
|
+
function qi(e, t, r) {
|
|
4421
4407
|
let n;
|
|
4422
|
-
|
|
4423
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl:
|
|
4408
|
+
mr(e, Di, (g) => r(3, n = g));
|
|
4409
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { translationurl: f = "" } = t, c, d = window.navigator.userAgent, v = Gi(d) !== "PC", p = !0, T = "";
|
|
4424
4410
|
const R = () => {
|
|
4425
|
-
fetch(
|
|
4411
|
+
fetch(f).then((C) => C.json()).then((C) => {
|
|
4426
4412
|
Object.keys(C).forEach((M) => {
|
|
4427
|
-
|
|
4413
|
+
Bt(M, C[M]);
|
|
4428
4414
|
});
|
|
4429
4415
|
}).catch((C) => {
|
|
4430
4416
|
console.log(C);
|
|
4431
4417
|
});
|
|
4432
4418
|
};
|
|
4433
|
-
Object.keys(
|
|
4434
|
-
|
|
4419
|
+
Object.keys(At).forEach((g) => {
|
|
4420
|
+
Bt(g, At[g]);
|
|
4435
4421
|
});
|
|
4436
4422
|
const P = () => {
|
|
4437
4423
|
window.postMessage(
|
|
@@ -4453,36 +4439,36 @@ function Yi(e, t, r) {
|
|
|
4453
4439
|
};
|
|
4454
4440
|
fetch(g.href, C).then((M) => M.json()).then(
|
|
4455
4441
|
(M) => {
|
|
4456
|
-
r(1,
|
|
4442
|
+
r(1, p = !1), r(2, T = M.CashierUrl);
|
|
4457
4443
|
},
|
|
4458
4444
|
(M) => {
|
|
4459
4445
|
console.error(M);
|
|
4460
4446
|
}
|
|
4461
4447
|
);
|
|
4462
4448
|
}, U = () => {
|
|
4463
|
-
|
|
4449
|
+
Fi(a);
|
|
4464
4450
|
};
|
|
4465
|
-
|
|
4451
|
+
Tr(() => () => {
|
|
4466
4452
|
});
|
|
4467
4453
|
const O = () => P();
|
|
4468
4454
|
function G(g) {
|
|
4469
|
-
|
|
4470
|
-
|
|
4455
|
+
Le[g ? "unshift" : "push"](() => {
|
|
4456
|
+
c = g, r(0, c);
|
|
4471
4457
|
});
|
|
4472
4458
|
}
|
|
4473
4459
|
return e.$$set = (g) => {
|
|
4474
|
-
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, s = g.playerid), "lang" in g && r(9, a = g.lang), "clientstyling" in g && r(10, h = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, l = g.mbsource), "translationurl" in g && r(13,
|
|
4460
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, s = g.playerid), "lang" in g && r(9, a = g.lang), "clientstyling" in g && r(10, h = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, l = g.mbsource), "translationurl" in g && r(13, f = g.translationurl);
|
|
4475
4461
|
}, e.$$.update = () => {
|
|
4476
4462
|
e.$$.dirty & /*lang*/
|
|
4477
4463
|
512 && a && U(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4478
4464
|
960 && o && s && i && a && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4479
|
-
1025 && h &&
|
|
4480
|
-
2049 && u &&
|
|
4481
|
-
4097 && l &&
|
|
4482
|
-
8192 &&
|
|
4465
|
+
1025 && h && c && ji(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4466
|
+
2049 && u && c && ki(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4467
|
+
4097 && l && c && Vi(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
4468
|
+
8192 && f && R();
|
|
4483
4469
|
}, [
|
|
4484
|
-
|
|
4485
|
-
|
|
4470
|
+
c,
|
|
4471
|
+
p,
|
|
4486
4472
|
T,
|
|
4487
4473
|
n,
|
|
4488
4474
|
v,
|
|
@@ -4494,19 +4480,19 @@ function Yi(e, t, r) {
|
|
|
4494
4480
|
h,
|
|
4495
4481
|
u,
|
|
4496
4482
|
l,
|
|
4497
|
-
|
|
4483
|
+
f,
|
|
4498
4484
|
O,
|
|
4499
4485
|
G
|
|
4500
4486
|
];
|
|
4501
4487
|
}
|
|
4502
|
-
class
|
|
4488
|
+
class Ji extends Mr {
|
|
4503
4489
|
constructor(t) {
|
|
4504
|
-
super(),
|
|
4490
|
+
super(), Lr(
|
|
4505
4491
|
this,
|
|
4506
4492
|
t,
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4493
|
+
qi,
|
|
4494
|
+
Qi,
|
|
4495
|
+
Ot,
|
|
4510
4496
|
{
|
|
4511
4497
|
endpoint: 6,
|
|
4512
4498
|
session: 7,
|
|
@@ -4517,7 +4503,7 @@ class Ki extends Ur {
|
|
|
4517
4503
|
mbsource: 12,
|
|
4518
4504
|
translationurl: 13
|
|
4519
4505
|
},
|
|
4520
|
-
|
|
4506
|
+
Xi
|
|
4521
4507
|
);
|
|
4522
4508
|
}
|
|
4523
4509
|
get endpoint() {
|
|
@@ -4569,7 +4555,7 @@ class Ki extends Ur {
|
|
|
4569
4555
|
this.$$set({ translationurl: t }), A();
|
|
4570
4556
|
}
|
|
4571
4557
|
}
|
|
4572
|
-
|
|
4558
|
+
Cr(Ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4573
4559
|
export {
|
|
4574
|
-
|
|
4560
|
+
Ji as default
|
|
4575
4561
|
};
|