@everymatrix/player-transaction-history 1.76.3 → 1.76.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerTransactionHistory-B6yo4R0t.cjs +18 -0
- package/components/{PlayerTransactionHistory-D5hdtz_N.js → PlayerTransactionHistory-CjXe2mkN.js} +874 -839
- package/components/{PlayerTransactionHistory-D4qzBHFZ.js → PlayerTransactionHistory-CrLY5TgC.js} +858 -823
- 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-BdSKOFDT.cjs +0 -18
package/components/{PlayerTransactionHistory-D4qzBHFZ.js → PlayerTransactionHistory-CrLY5TgC.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function w() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Bt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function rt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function oe(e) {
|
|
10
|
+
e.forEach(Bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function At(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
|
-
function
|
|
19
|
+
function nt(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ar(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Pt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function St(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ur(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function hr(e, t, r) {
|
|
41
|
+
const n = lr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = N("style");
|
|
44
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function lr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,45 +54,45 @@ function sr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function cr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function se(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Q(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function N(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function G(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function te(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Le() {
|
|
80
|
+
return te(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fr(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function E(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function pr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ke(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function mr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,87 +101,87 @@ function lr(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let re;
|
|
105
|
+
function ee(e) {
|
|
106
|
+
re = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
108
|
+
function dr() {
|
|
109
|
+
if (!re)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return re;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function br(e) {
|
|
114
|
+
dr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ce = [];
|
|
117
117
|
let V = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const it = [], yr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Me = !1;
|
|
120
|
+
function gr() {
|
|
121
|
+
Me || (Me = !0, yr.then(B));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function $e(e) {
|
|
124
124
|
V.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const Se = /* @__PURE__ */ new Set();
|
|
127
127
|
let F = 0;
|
|
128
128
|
function B() {
|
|
129
129
|
if (F !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = re;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++,
|
|
136
|
+
F++, ee(t), vr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
141
|
+
for (ee(null), k.length = 0, F = 0; Ce.length; )
|
|
142
|
+
Ce.pop()();
|
|
143
143
|
for (let t = 0; t < V.length; t += 1) {
|
|
144
144
|
const r = V[t];
|
|
145
|
-
|
|
145
|
+
Se.has(r) || (Se.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
V.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; it.length; )
|
|
150
|
+
it.pop()();
|
|
151
|
+
Me = !1, Se.clear(), ee(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function vr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), oe(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function _r(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const Er = /* @__PURE__ */ new Set();
|
|
165
|
+
function xr(e, t) {
|
|
166
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Tr(e, t, r) {
|
|
169
169
|
const { fragment: n, after_update: i } = e.$$;
|
|
170
|
-
n && n.m(t, r),
|
|
171
|
-
const o = e.$$.on_mount.map(
|
|
172
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
173
|
-
}), i.forEach(
|
|
170
|
+
n && n.m(t, r), $e(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(Bt).filter(Ye);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
173
|
+
}), i.forEach($e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Hr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (_r(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
179
|
+
function Sr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
const l =
|
|
184
|
-
|
|
182
|
+
function wr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
|
+
const l = re;
|
|
184
|
+
ee(e);
|
|
185
185
|
const u = e.$$ = {
|
|
186
186
|
fragment: null,
|
|
187
187
|
ctx: [],
|
|
@@ -189,7 +189,7 @@ function xr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: w,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: rt(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,28 +198,28 @@ function xr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: rt(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
205
205
|
};
|
|
206
206
|
a && a(u.root);
|
|
207
207
|
let h = !1;
|
|
208
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
209
|
-
const
|
|
210
|
-
return u.ctx && i(u.ctx[
|
|
211
|
-
}), u.update(), h = !0,
|
|
208
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
|
+
const g = p.length ? p[0] : f;
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Sr(e, c)), f;
|
|
211
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const
|
|
214
|
-
u.fragment && u.fragment.l(
|
|
213
|
+
const c = pr(t.target);
|
|
214
|
+
u.fragment && u.fragment.l(c), c.forEach(Q);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && xr(e.$$.fragment), Tr(e, t.target, t.anchor), B();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
ee(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let Ot;
|
|
222
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -261,29 +261,29 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
261
261
|
let o;
|
|
262
262
|
return {
|
|
263
263
|
c: function() {
|
|
264
|
-
o =
|
|
264
|
+
o = N("slot"), i !== "default" && E(o, "name", i);
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
* @param {HTMLElement} target
|
|
268
268
|
* @param {HTMLElement} [anchor]
|
|
269
269
|
*/
|
|
270
270
|
m: function(l, u) {
|
|
271
|
-
|
|
271
|
+
se(l, o, u);
|
|
272
272
|
},
|
|
273
273
|
d: function(l) {
|
|
274
|
-
l &&
|
|
274
|
+
l && Q(o);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = mr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
285
285
|
const o = this.$$g_p(i.name);
|
|
286
|
-
o in this.$$d || (this.$$d[o] =
|
|
286
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
287
287
|
}
|
|
288
288
|
for (const i in this.$$p_d)
|
|
289
289
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
301
301
|
this.$$r = !0;
|
|
302
302
|
for (const i in this.$$p_d)
|
|
303
303
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
304
|
-
const o =
|
|
304
|
+
const o = fe(
|
|
305
305
|
i,
|
|
306
306
|
this.$$d[i],
|
|
307
307
|
this.$$p_d,
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
323
323
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
324
324
|
// and setting attributes through setAttribute etc, this is helpful
|
|
325
325
|
attributeChangedCallback(e, t, r) {
|
|
326
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
326
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
327
327
|
}
|
|
328
328
|
disconnectedCallback() {
|
|
329
329
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
336
336
|
) || e;
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function fe(e, t, r, n) {
|
|
340
340
|
const i = r[e]?.type;
|
|
341
341
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
342
342
|
return t;
|
|
@@ -365,8 +365,8 @@ function ce(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function Br(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends Ot {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -382,7 +382,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
382
382
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
383
383
|
},
|
|
384
384
|
set(l) {
|
|
385
|
-
l =
|
|
385
|
+
l = fe(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}), n.forEach((s) => {
|
|
@@ -394,7 +394,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Ar {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Hr {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
Hr(this, 1), this.$destroy = w;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Hr {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ye(r))
|
|
426
426
|
return w;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,11 +435,11 @@ class Hr {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
441
|
+
const Pr = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
443
443
|
/*! *****************************************************************************
|
|
444
444
|
Copyright (c) Microsoft Corporation.
|
|
445
445
|
|
|
@@ -454,43 +454,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
454
454
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
455
455
|
PERFORMANCE OF THIS SOFTWARE.
|
|
456
456
|
***************************************************************************** */
|
|
457
|
-
var
|
|
458
|
-
return
|
|
457
|
+
var Re = function(e, t) {
|
|
458
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
459
459
|
r.__proto__ = n;
|
|
460
460
|
} || function(r, n) {
|
|
461
461
|
for (var i in n)
|
|
462
462
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
463
|
-
},
|
|
463
|
+
}, Re(e, t);
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function ae(e, t) {
|
|
466
466
|
if (typeof t != "function" && t !== null)
|
|
467
467
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
468
|
-
|
|
468
|
+
Re(e, t);
|
|
469
469
|
function r() {
|
|
470
470
|
this.constructor = e;
|
|
471
471
|
}
|
|
472
472
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
return y = Object.assign || function(t) {
|
|
476
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
477
|
-
r = arguments[n];
|
|
478
|
-
for (var o in r)
|
|
479
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
480
|
-
}
|
|
481
|
-
return t;
|
|
482
|
-
}, y.apply(this, arguments);
|
|
483
|
-
};
|
|
484
|
-
function wr(e, t) {
|
|
485
|
-
var r = {};
|
|
486
|
-
for (var n in e)
|
|
487
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
488
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
489
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
490
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
491
|
-
return r;
|
|
492
|
-
}
|
|
493
|
-
function Me(e) {
|
|
474
|
+
function Ue(e) {
|
|
494
475
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
495
476
|
if (r)
|
|
496
477
|
return r.call(e);
|
|
@@ -502,7 +483,7 @@ function Me(e) {
|
|
|
502
483
|
};
|
|
503
484
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
504
485
|
}
|
|
505
|
-
function
|
|
486
|
+
function De(e, t) {
|
|
506
487
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
507
488
|
if (!r)
|
|
508
489
|
return e;
|
|
@@ -522,22 +503,22 @@ function $e(e, t) {
|
|
|
522
503
|
}
|
|
523
504
|
return o;
|
|
524
505
|
}
|
|
525
|
-
function
|
|
526
|
-
if (
|
|
506
|
+
function Ge(e, t, r) {
|
|
507
|
+
if (arguments.length === 2)
|
|
527
508
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
528
509
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
529
510
|
return e.concat(o || t);
|
|
530
511
|
}
|
|
531
|
-
function
|
|
512
|
+
function I(e) {
|
|
532
513
|
return typeof e == "function";
|
|
533
514
|
}
|
|
534
|
-
function
|
|
515
|
+
function It(e) {
|
|
535
516
|
var t = function(n) {
|
|
536
517
|
Error.call(n), n.stack = new Error().stack;
|
|
537
518
|
}, r = e(t);
|
|
538
519
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
539
520
|
}
|
|
540
|
-
var
|
|
521
|
+
var we = It(function(e) {
|
|
541
522
|
return function(r) {
|
|
542
523
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
543
524
|
` + r.map(function(n, i) {
|
|
@@ -546,13 +527,13 @@ var He = Bt(function(e) {
|
|
|
546
527
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
547
528
|
};
|
|
548
529
|
});
|
|
549
|
-
function
|
|
530
|
+
function Fe(e, t) {
|
|
550
531
|
if (e) {
|
|
551
532
|
var r = e.indexOf(t);
|
|
552
533
|
0 <= r && e.splice(r, 1);
|
|
553
534
|
}
|
|
554
535
|
}
|
|
555
|
-
var
|
|
536
|
+
var ve = function() {
|
|
556
537
|
function e(t) {
|
|
557
538
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
558
539
|
}
|
|
@@ -564,12 +545,12 @@ var ge = function() {
|
|
|
564
545
|
if (a)
|
|
565
546
|
if (this._parentage = null, Array.isArray(a))
|
|
566
547
|
try {
|
|
567
|
-
for (var s =
|
|
548
|
+
for (var s = Ue(a), l = s.next(); !l.done; l = s.next()) {
|
|
568
549
|
var u = l.value;
|
|
569
550
|
u.remove(this);
|
|
570
551
|
}
|
|
571
|
-
} catch (
|
|
572
|
-
t = { error:
|
|
552
|
+
} catch (m) {
|
|
553
|
+
t = { error: m };
|
|
573
554
|
} finally {
|
|
574
555
|
try {
|
|
575
556
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -581,29 +562,29 @@ var ge = function() {
|
|
|
581
562
|
else
|
|
582
563
|
a.remove(this);
|
|
583
564
|
var h = this.initialTeardown;
|
|
584
|
-
if (
|
|
565
|
+
if (I(h))
|
|
585
566
|
try {
|
|
586
567
|
h();
|
|
587
|
-
} catch (
|
|
588
|
-
o =
|
|
568
|
+
} catch (m) {
|
|
569
|
+
o = m instanceof we ? m.errors : [m];
|
|
589
570
|
}
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
571
|
+
var c = this._finalizers;
|
|
572
|
+
if (c) {
|
|
592
573
|
this._finalizers = null;
|
|
593
574
|
try {
|
|
594
|
-
for (var
|
|
595
|
-
var
|
|
575
|
+
for (var f = Ue(c), p = f.next(); !p.done; p = f.next()) {
|
|
576
|
+
var g = p.value;
|
|
596
577
|
try {
|
|
597
|
-
|
|
598
|
-
} catch (
|
|
599
|
-
o = o ?? [],
|
|
578
|
+
ot(g);
|
|
579
|
+
} catch (m) {
|
|
580
|
+
o = o ?? [], m instanceof we ? o = Ge(Ge([], De(o)), De(m.errors)) : o.push(m);
|
|
600
581
|
}
|
|
601
582
|
}
|
|
602
|
-
} catch (
|
|
603
|
-
n = { error:
|
|
583
|
+
} catch (m) {
|
|
584
|
+
n = { error: m };
|
|
604
585
|
} finally {
|
|
605
586
|
try {
|
|
606
|
-
|
|
587
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
607
588
|
} finally {
|
|
608
589
|
if (n)
|
|
609
590
|
throw n.error;
|
|
@@ -611,13 +592,13 @@ var ge = function() {
|
|
|
611
592
|
}
|
|
612
593
|
}
|
|
613
594
|
if (o)
|
|
614
|
-
throw new
|
|
595
|
+
throw new we(o);
|
|
615
596
|
}
|
|
616
597
|
}, e.prototype.add = function(t) {
|
|
617
598
|
var r;
|
|
618
599
|
if (t && t !== this)
|
|
619
600
|
if (this.closed)
|
|
620
|
-
|
|
601
|
+
ot(t);
|
|
621
602
|
else {
|
|
622
603
|
if (t instanceof e) {
|
|
623
604
|
if (t.closed || t._hasParent(this))
|
|
@@ -634,56 +615,52 @@ var ge = function() {
|
|
|
634
615
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
635
616
|
}, e.prototype._removeParent = function(t) {
|
|
636
617
|
var r = this._parentage;
|
|
637
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
618
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
638
619
|
}, e.prototype.remove = function(t) {
|
|
639
620
|
var r = this._finalizers;
|
|
640
|
-
r &&
|
|
621
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
641
622
|
}, e.EMPTY = function() {
|
|
642
623
|
var t = new e();
|
|
643
624
|
return t.closed = !0, t;
|
|
644
625
|
}(), e;
|
|
645
|
-
}(),
|
|
646
|
-
function
|
|
647
|
-
return e instanceof
|
|
648
|
-
}
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
Promise: void 0,
|
|
656
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
657
|
-
useDeprecatedNextContext: !1
|
|
658
|
-
}, Ar = {
|
|
626
|
+
}(), Nt = ve.EMPTY;
|
|
627
|
+
function Lt(e) {
|
|
628
|
+
return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
629
|
+
}
|
|
630
|
+
function ot(e) {
|
|
631
|
+
I(e) ? e() : e.unsubscribe();
|
|
632
|
+
}
|
|
633
|
+
var Or = {
|
|
634
|
+
Promise: void 0
|
|
635
|
+
}, Ir = {
|
|
659
636
|
setTimeout: function(e, t) {
|
|
660
637
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
661
638
|
r[n - 2] = arguments[n];
|
|
662
|
-
return setTimeout.apply(void 0,
|
|
639
|
+
return setTimeout.apply(void 0, Ge([e, t], De(r)));
|
|
663
640
|
},
|
|
664
641
|
clearTimeout: function(e) {
|
|
665
642
|
return clearTimeout(e);
|
|
666
643
|
},
|
|
667
644
|
delegate: void 0
|
|
668
645
|
};
|
|
669
|
-
function
|
|
670
|
-
|
|
646
|
+
function Nr(e) {
|
|
647
|
+
Ir.setTimeout(function() {
|
|
671
648
|
throw e;
|
|
672
649
|
});
|
|
673
650
|
}
|
|
674
|
-
function
|
|
651
|
+
function st() {
|
|
675
652
|
}
|
|
676
|
-
function
|
|
653
|
+
function pe(e) {
|
|
677
654
|
e();
|
|
678
655
|
}
|
|
679
|
-
var
|
|
680
|
-
|
|
656
|
+
var Ct = function(e) {
|
|
657
|
+
ae(t, e);
|
|
681
658
|
function t(r) {
|
|
682
659
|
var n = e.call(this) || this;
|
|
683
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
660
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Mr, n;
|
|
684
661
|
}
|
|
685
662
|
return t.create = function(r, n, i) {
|
|
686
|
-
return new
|
|
663
|
+
return new je(r, n, i);
|
|
687
664
|
}, t.prototype.next = function(r) {
|
|
688
665
|
this.isStopped || this._next(r);
|
|
689
666
|
}, t.prototype.error = function(r) {
|
|
@@ -707,7 +684,7 @@ var Ot = function(e) {
|
|
|
707
684
|
this.unsubscribe();
|
|
708
685
|
}
|
|
709
686
|
}, t;
|
|
710
|
-
}(
|
|
687
|
+
}(ve), Lr = function() {
|
|
711
688
|
function e(t) {
|
|
712
689
|
this.partialObserver = t;
|
|
713
690
|
}
|
|
@@ -738,43 +715,43 @@ var Ot = function(e) {
|
|
|
738
715
|
le(r);
|
|
739
716
|
}
|
|
740
717
|
}, e;
|
|
741
|
-
}(),
|
|
742
|
-
|
|
718
|
+
}(), je = function(e) {
|
|
719
|
+
ae(t, e);
|
|
743
720
|
function t(r, n, i) {
|
|
744
721
|
var o = e.call(this) || this, a;
|
|
745
|
-
return
|
|
722
|
+
return I(r) || !r ? a = {
|
|
746
723
|
next: r ?? void 0,
|
|
747
724
|
error: n ?? void 0,
|
|
748
725
|
complete: i ?? void 0
|
|
749
|
-
} : a = r, o.destination = new
|
|
726
|
+
} : a = r, o.destination = new Lr(a), o;
|
|
750
727
|
}
|
|
751
728
|
return t;
|
|
752
|
-
}(
|
|
729
|
+
}(Ct);
|
|
753
730
|
function le(e) {
|
|
754
|
-
|
|
731
|
+
Nr(e);
|
|
755
732
|
}
|
|
756
|
-
function
|
|
733
|
+
function Cr(e) {
|
|
757
734
|
throw e;
|
|
758
735
|
}
|
|
759
|
-
var
|
|
736
|
+
var Mr = {
|
|
760
737
|
closed: !0,
|
|
761
|
-
next:
|
|
762
|
-
error:
|
|
763
|
-
complete:
|
|
764
|
-
},
|
|
738
|
+
next: st,
|
|
739
|
+
error: Cr,
|
|
740
|
+
complete: st
|
|
741
|
+
}, $r = function() {
|
|
765
742
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
766
743
|
}();
|
|
767
|
-
function
|
|
744
|
+
function Rr(e) {
|
|
768
745
|
return e;
|
|
769
746
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.length === 0 ?
|
|
747
|
+
function Ur(e) {
|
|
748
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
772
749
|
return e.reduce(function(n, i) {
|
|
773
750
|
return i(n);
|
|
774
751
|
}, r);
|
|
775
752
|
};
|
|
776
753
|
}
|
|
777
|
-
var
|
|
754
|
+
var at = function() {
|
|
778
755
|
function e(t) {
|
|
779
756
|
t && (this._subscribe = t);
|
|
780
757
|
}
|
|
@@ -782,8 +759,8 @@ var nt = function() {
|
|
|
782
759
|
var r = new e();
|
|
783
760
|
return r.source = this, r.operator = t, r;
|
|
784
761
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
785
|
-
var i = this, o =
|
|
786
|
-
return
|
|
762
|
+
var i = this, o = Gr(t) ? t : new je(t, r, n);
|
|
763
|
+
return pe(function() {
|
|
787
764
|
var a = i, s = a.operator, l = a.source;
|
|
788
765
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
789
766
|
}), o;
|
|
@@ -795,8 +772,8 @@ var nt = function() {
|
|
|
795
772
|
}
|
|
796
773
|
}, e.prototype.forEach = function(t, r) {
|
|
797
774
|
var n = this;
|
|
798
|
-
return r =
|
|
799
|
-
var a = new
|
|
775
|
+
return r = ut(r), new r(function(i, o) {
|
|
776
|
+
var a = new je({
|
|
800
777
|
next: function(s) {
|
|
801
778
|
try {
|
|
802
779
|
t(s);
|
|
@@ -812,15 +789,15 @@ var nt = function() {
|
|
|
812
789
|
}, e.prototype._subscribe = function(t) {
|
|
813
790
|
var r;
|
|
814
791
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
815
|
-
}, e.prototype[
|
|
792
|
+
}, e.prototype[$r] = function() {
|
|
816
793
|
return this;
|
|
817
794
|
}, e.prototype.pipe = function() {
|
|
818
795
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
819
796
|
t[r] = arguments[r];
|
|
820
|
-
return
|
|
797
|
+
return Ur(t)(this);
|
|
821
798
|
}, e.prototype.toPromise = function(t) {
|
|
822
799
|
var r = this;
|
|
823
|
-
return t =
|
|
800
|
+
return t = ut(t), new t(function(n, i) {
|
|
824
801
|
var o;
|
|
825
802
|
r.subscribe(function(a) {
|
|
826
803
|
return o = a;
|
|
@@ -834,40 +811,40 @@ var nt = function() {
|
|
|
834
811
|
return new e(t);
|
|
835
812
|
}, e;
|
|
836
813
|
}();
|
|
837
|
-
function
|
|
814
|
+
function ut(e) {
|
|
838
815
|
var t;
|
|
839
|
-
return (t = e ??
|
|
816
|
+
return (t = e ?? Or.Promise) !== null && t !== void 0 ? t : Promise;
|
|
840
817
|
}
|
|
841
|
-
function
|
|
842
|
-
return e &&
|
|
818
|
+
function Dr(e) {
|
|
819
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
843
820
|
}
|
|
844
|
-
function
|
|
845
|
-
return e && e instanceof
|
|
821
|
+
function Gr(e) {
|
|
822
|
+
return e && e instanceof Ct || Dr(e) && Lt(e);
|
|
846
823
|
}
|
|
847
|
-
var
|
|
824
|
+
var Fr = It(function(e) {
|
|
848
825
|
return function() {
|
|
849
826
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
850
827
|
};
|
|
851
|
-
}),
|
|
852
|
-
|
|
828
|
+
}), Mt = function(e) {
|
|
829
|
+
ae(t, e);
|
|
853
830
|
function t() {
|
|
854
831
|
var r = e.call(this) || this;
|
|
855
832
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
856
833
|
}
|
|
857
834
|
return t.prototype.lift = function(r) {
|
|
858
|
-
var n = new
|
|
835
|
+
var n = new ht(this, this);
|
|
859
836
|
return n.operator = r, n;
|
|
860
837
|
}, t.prototype._throwIfClosed = function() {
|
|
861
838
|
if (this.closed)
|
|
862
|
-
throw new
|
|
839
|
+
throw new Fr();
|
|
863
840
|
}, t.prototype.next = function(r) {
|
|
864
841
|
var n = this;
|
|
865
|
-
|
|
842
|
+
pe(function() {
|
|
866
843
|
var i, o;
|
|
867
844
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
868
845
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
869
846
|
try {
|
|
870
|
-
for (var a =
|
|
847
|
+
for (var a = Ue(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
871
848
|
var l = s.value;
|
|
872
849
|
l.next(r);
|
|
873
850
|
}
|
|
@@ -885,7 +862,7 @@ var Ur = Bt(function(e) {
|
|
|
885
862
|
});
|
|
886
863
|
}, t.prototype.error = function(r) {
|
|
887
864
|
var n = this;
|
|
888
|
-
|
|
865
|
+
pe(function() {
|
|
889
866
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
890
867
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
891
868
|
for (var i = n.observers; i.length; )
|
|
@@ -894,7 +871,7 @@ var Ur = Bt(function(e) {
|
|
|
894
871
|
});
|
|
895
872
|
}, t.prototype.complete = function() {
|
|
896
873
|
var r = this;
|
|
897
|
-
|
|
874
|
+
pe(function() {
|
|
898
875
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
899
876
|
r.isStopped = !0;
|
|
900
877
|
for (var n = r.observers; n.length; )
|
|
@@ -916,20 +893,20 @@ var Ur = Bt(function(e) {
|
|
|
916
893
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
917
894
|
}, t.prototype._innerSubscribe = function(r) {
|
|
918
895
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
919
|
-
return o || a ?
|
|
920
|
-
n.currentObservers = null,
|
|
896
|
+
return o || a ? Nt : (this.currentObservers = null, s.push(r), new ve(function() {
|
|
897
|
+
n.currentObservers = null, Fe(s, r);
|
|
921
898
|
}));
|
|
922
899
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
923
900
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
924
901
|
i ? r.error(o) : a && r.complete();
|
|
925
902
|
}, t.prototype.asObservable = function() {
|
|
926
|
-
var r = new
|
|
903
|
+
var r = new at();
|
|
927
904
|
return r.source = this, r;
|
|
928
905
|
}, t.create = function(r, n) {
|
|
929
|
-
return new
|
|
906
|
+
return new ht(r, n);
|
|
930
907
|
}, t;
|
|
931
|
-
}(
|
|
932
|
-
|
|
908
|
+
}(at), ht = function(e) {
|
|
909
|
+
ae(t, e);
|
|
933
910
|
function t(r, n) {
|
|
934
911
|
var i = e.call(this) || this;
|
|
935
912
|
return i.destination = r, i.source = n, i;
|
|
@@ -945,17 +922,17 @@ var Ur = Bt(function(e) {
|
|
|
945
922
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
946
923
|
}, t.prototype._subscribe = function(r) {
|
|
947
924
|
var n, i;
|
|
948
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
925
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
949
926
|
}, t;
|
|
950
|
-
}(
|
|
927
|
+
}(Mt), $t = {
|
|
951
928
|
now: function() {
|
|
952
|
-
return (
|
|
929
|
+
return ($t.delegate || Date).now();
|
|
953
930
|
},
|
|
954
931
|
delegate: void 0
|
|
955
|
-
},
|
|
956
|
-
|
|
932
|
+
}, jr = function(e) {
|
|
933
|
+
ae(t, e);
|
|
957
934
|
function t(r, n, i) {
|
|
958
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
935
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
959
936
|
var o = e.call(this) || this;
|
|
960
937
|
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;
|
|
961
938
|
}
|
|
@@ -975,24 +952,24 @@ var Ur = Bt(function(e) {
|
|
|
975
952
|
u && o.splice(0, u + 1);
|
|
976
953
|
}
|
|
977
954
|
}, t;
|
|
978
|
-
}(
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
const r = new
|
|
982
|
-
|
|
955
|
+
}(Mt);
|
|
956
|
+
const lt = [], ct = {}, kr = (e, t = 0) => {
|
|
957
|
+
if (lt.indexOf(e) == -1) {
|
|
958
|
+
const r = new jr(t);
|
|
959
|
+
ct[e] = r, lt.push(e);
|
|
983
960
|
}
|
|
984
|
-
return
|
|
961
|
+
return ct[e];
|
|
985
962
|
}, j = [];
|
|
986
|
-
function
|
|
963
|
+
function Vr(e, t) {
|
|
987
964
|
return {
|
|
988
|
-
subscribe:
|
|
965
|
+
subscribe: _e(e, t).subscribe
|
|
989
966
|
};
|
|
990
967
|
}
|
|
991
|
-
function
|
|
968
|
+
function _e(e, t = w) {
|
|
992
969
|
let r;
|
|
993
970
|
const n = /* @__PURE__ */ new Set();
|
|
994
971
|
function i(s) {
|
|
995
|
-
if (
|
|
972
|
+
if (At(e, s) && (e = s, r)) {
|
|
996
973
|
const l = !j.length;
|
|
997
974
|
for (const u of n)
|
|
998
975
|
u[1](), j.push(u, e);
|
|
@@ -1014,145 +991,184 @@ function ve(e, t = w) {
|
|
|
1014
991
|
}
|
|
1015
992
|
return { set: i, update: o, subscribe: a };
|
|
1016
993
|
}
|
|
1017
|
-
function
|
|
994
|
+
function q(e, t, r) {
|
|
1018
995
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1019
996
|
if (!i.every(Boolean))
|
|
1020
997
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1021
998
|
const o = t.length < 2;
|
|
1022
|
-
return
|
|
999
|
+
return Vr(r, (a, s) => {
|
|
1023
1000
|
let l = !1;
|
|
1024
1001
|
const u = [];
|
|
1025
|
-
let h = 0,
|
|
1026
|
-
const
|
|
1002
|
+
let h = 0, c = w;
|
|
1003
|
+
const f = () => {
|
|
1027
1004
|
if (h)
|
|
1028
1005
|
return;
|
|
1029
|
-
|
|
1030
|
-
const
|
|
1031
|
-
o ? a(
|
|
1032
|
-
},
|
|
1033
|
-
(
|
|
1034
|
-
|
|
1006
|
+
c();
|
|
1007
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1008
|
+
o ? a(g) : c = Ye(g) ? g : w;
|
|
1009
|
+
}, p = i.map(
|
|
1010
|
+
(g, m) => Pt(
|
|
1011
|
+
g,
|
|
1035
1012
|
(T) => {
|
|
1036
|
-
u[
|
|
1013
|
+
u[m] = T, h &= ~(1 << m), l && f();
|
|
1037
1014
|
},
|
|
1038
1015
|
() => {
|
|
1039
|
-
h |= 1 <<
|
|
1016
|
+
h |= 1 << m;
|
|
1040
1017
|
}
|
|
1041
1018
|
)
|
|
1042
1019
|
);
|
|
1043
|
-
return l = !0,
|
|
1044
|
-
|
|
1020
|
+
return l = !0, f(), function() {
|
|
1021
|
+
oe(p), c(), l = !1;
|
|
1045
1022
|
};
|
|
1046
1023
|
});
|
|
1047
1024
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1025
|
+
function Xr(e) {
|
|
1026
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1050
1027
|
}
|
|
1051
|
-
var
|
|
1052
|
-
return
|
|
1028
|
+
var Wr = function(t) {
|
|
1029
|
+
return zr(t) && !Zr(t);
|
|
1053
1030
|
};
|
|
1054
|
-
function
|
|
1031
|
+
function zr(e) {
|
|
1055
1032
|
return !!e && typeof e == "object";
|
|
1056
1033
|
}
|
|
1057
|
-
function
|
|
1034
|
+
function Zr(e) {
|
|
1058
1035
|
var t = Object.prototype.toString.call(e);
|
|
1059
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1036
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
1060
1037
|
}
|
|
1061
|
-
var
|
|
1062
|
-
function
|
|
1063
|
-
return e.$$typeof ===
|
|
1038
|
+
var Qr = typeof Symbol == "function" && Symbol.for, qr = Qr ? Symbol.for("react.element") : 60103;
|
|
1039
|
+
function Jr(e) {
|
|
1040
|
+
return e.$$typeof === qr;
|
|
1064
1041
|
}
|
|
1065
|
-
function
|
|
1042
|
+
function Yr(e) {
|
|
1066
1043
|
return Array.isArray(e) ? [] : {};
|
|
1067
1044
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1045
|
+
function ne(e, t) {
|
|
1046
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Yr(e), e, t) : e;
|
|
1070
1047
|
}
|
|
1071
|
-
function
|
|
1048
|
+
function Kr(e, t, r) {
|
|
1072
1049
|
return e.concat(t).map(function(n) {
|
|
1073
|
-
return
|
|
1050
|
+
return ne(n, r);
|
|
1074
1051
|
});
|
|
1075
1052
|
}
|
|
1076
|
-
function
|
|
1053
|
+
function en(e, t) {
|
|
1077
1054
|
if (!t.customMerge)
|
|
1078
|
-
return
|
|
1055
|
+
return X;
|
|
1079
1056
|
var r = t.customMerge(e);
|
|
1080
|
-
return typeof r == "function" ? r :
|
|
1057
|
+
return typeof r == "function" ? r : X;
|
|
1081
1058
|
}
|
|
1082
|
-
function
|
|
1059
|
+
function tn(e) {
|
|
1083
1060
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1084
1061
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1085
1062
|
}) : [];
|
|
1086
1063
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return Object.keys(e).concat(
|
|
1064
|
+
function ft(e) {
|
|
1065
|
+
return Object.keys(e).concat(tn(e));
|
|
1089
1066
|
}
|
|
1090
|
-
function
|
|
1067
|
+
function Rt(e, t) {
|
|
1091
1068
|
try {
|
|
1092
1069
|
return t in e;
|
|
1093
1070
|
} catch {
|
|
1094
1071
|
return !1;
|
|
1095
1072
|
}
|
|
1096
1073
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1074
|
+
function rn(e, t) {
|
|
1075
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1099
1076
|
}
|
|
1100
|
-
function
|
|
1077
|
+
function nn(e, t, r) {
|
|
1101
1078
|
var n = {};
|
|
1102
|
-
return r.isMergeableObject(e) &&
|
|
1103
|
-
n[i] =
|
|
1104
|
-
}),
|
|
1105
|
-
|
|
1079
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1080
|
+
n[i] = ne(e[i], r);
|
|
1081
|
+
}), ft(t).forEach(function(i) {
|
|
1082
|
+
rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1106
1083
|
}), n;
|
|
1107
1084
|
}
|
|
1108
|
-
function
|
|
1109
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1085
|
+
function X(e, t, r) {
|
|
1086
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1110
1087
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1111
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1088
|
+
return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ne(t, r);
|
|
1112
1089
|
}
|
|
1113
|
-
|
|
1090
|
+
X.all = function(t, r) {
|
|
1114
1091
|
if (!Array.isArray(t))
|
|
1115
1092
|
throw new Error("first argument should be an array");
|
|
1116
1093
|
return t.reduce(function(n, i) {
|
|
1117
|
-
return
|
|
1094
|
+
return X(n, i, r);
|
|
1118
1095
|
}, {});
|
|
1119
1096
|
};
|
|
1120
|
-
var
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1097
|
+
var on = X, sn = on;
|
|
1098
|
+
const an = /* @__PURE__ */ Xr(sn);
|
|
1099
|
+
var ke = function(e, t) {
|
|
1100
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1101
|
+
r.__proto__ = n;
|
|
1102
|
+
} || function(r, n) {
|
|
1103
|
+
for (var i in n)
|
|
1104
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1105
|
+
}, ke(e, t);
|
|
1106
|
+
};
|
|
1107
|
+
function Ee(e, t) {
|
|
1108
|
+
if (typeof t != "function" && t !== null)
|
|
1109
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1110
|
+
ke(e, t);
|
|
1111
|
+
function r() {
|
|
1112
|
+
this.constructor = e;
|
|
1113
|
+
}
|
|
1114
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1115
|
+
}
|
|
1116
|
+
var A = function() {
|
|
1117
|
+
return A = Object.assign || function(t) {
|
|
1118
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1119
|
+
r = arguments[n];
|
|
1120
|
+
for (var o in r)
|
|
1121
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1122
|
+
}
|
|
1123
|
+
return t;
|
|
1124
|
+
}, A.apply(this, arguments);
|
|
1125
|
+
};
|
|
1126
|
+
function un(e, t) {
|
|
1127
|
+
var r = {};
|
|
1128
|
+
for (var n in e)
|
|
1129
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1130
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1131
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1132
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1133
|
+
return r;
|
|
1134
|
+
}
|
|
1135
|
+
function Be(e, t, r) {
|
|
1136
|
+
if (r || arguments.length === 2)
|
|
1137
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1138
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1139
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1140
|
+
}
|
|
1141
|
+
function Ae(e, t) {
|
|
1142
|
+
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
|
|
1124
1143
|
return i(e, {
|
|
1125
1144
|
cache: r,
|
|
1126
1145
|
serializer: n
|
|
1127
1146
|
});
|
|
1128
1147
|
}
|
|
1129
|
-
function
|
|
1148
|
+
function hn(e) {
|
|
1130
1149
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1131
1150
|
}
|
|
1132
|
-
function
|
|
1133
|
-
var i =
|
|
1151
|
+
function ln(e, t, r, n) {
|
|
1152
|
+
var i = hn(n) ? n : r(n), o = t.get(i);
|
|
1134
1153
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1135
1154
|
}
|
|
1136
|
-
function
|
|
1155
|
+
function Ut(e, t, r) {
|
|
1137
1156
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1138
1157
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1139
1158
|
}
|
|
1140
|
-
function
|
|
1159
|
+
function Dt(e, t, r, n, i) {
|
|
1141
1160
|
return r.bind(t, e, n, i);
|
|
1142
1161
|
}
|
|
1143
|
-
function
|
|
1144
|
-
var r = e.length === 1 ?
|
|
1145
|
-
return
|
|
1146
|
-
}
|
|
1147
|
-
function an(e, t) {
|
|
1148
|
-
return Qe(e, this, Mt, t.cache.create(), t.serializer);
|
|
1162
|
+
function cn(e, t) {
|
|
1163
|
+
var r = e.length === 1 ? ln : Ut;
|
|
1164
|
+
return Dt(e, this, r, t.cache.create(), t.serializer);
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1166
|
+
function fn(e, t) {
|
|
1167
|
+
return Dt(e, this, Ut, t.cache.create(), t.serializer);
|
|
1152
1168
|
}
|
|
1153
|
-
var
|
|
1169
|
+
var pn = function() {
|
|
1154
1170
|
return JSON.stringify(arguments);
|
|
1155
|
-
},
|
|
1171
|
+
}, mn = (
|
|
1156
1172
|
/** @class */
|
|
1157
1173
|
function() {
|
|
1158
1174
|
function e() {
|
|
@@ -1164,62 +1180,71 @@ var hn = function() {
|
|
|
1164
1180
|
this.cache[t] = r;
|
|
1165
1181
|
}, e;
|
|
1166
1182
|
}()
|
|
1167
|
-
),
|
|
1183
|
+
), dn = {
|
|
1168
1184
|
create: function() {
|
|
1169
|
-
return new
|
|
1185
|
+
return new mn();
|
|
1170
1186
|
}
|
|
1171
|
-
},
|
|
1172
|
-
variadic:
|
|
1173
|
-
|
|
1174
|
-
|
|
1187
|
+
}, Pe = {
|
|
1188
|
+
variadic: fn
|
|
1189
|
+
}, be = function() {
|
|
1190
|
+
return be = Object.assign || function(t) {
|
|
1191
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1192
|
+
r = arguments[n];
|
|
1193
|
+
for (var o in r)
|
|
1194
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1195
|
+
}
|
|
1196
|
+
return t;
|
|
1197
|
+
}, be.apply(this, arguments);
|
|
1198
|
+
};
|
|
1199
|
+
var d;
|
|
1175
1200
|
(function(e) {
|
|
1176
1201
|
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";
|
|
1177
|
-
})(
|
|
1178
|
-
var
|
|
1202
|
+
})(d || (d = {}));
|
|
1203
|
+
var v;
|
|
1179
1204
|
(function(e) {
|
|
1180
1205
|
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";
|
|
1181
|
-
})(
|
|
1182
|
-
var
|
|
1206
|
+
})(v || (v = {}));
|
|
1207
|
+
var W;
|
|
1183
1208
|
(function(e) {
|
|
1184
1209
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1185
|
-
})(
|
|
1186
|
-
function
|
|
1187
|
-
return e.type ===
|
|
1210
|
+
})(W || (W = {}));
|
|
1211
|
+
function pt(e) {
|
|
1212
|
+
return e.type === v.literal;
|
|
1188
1213
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return e.type ===
|
|
1214
|
+
function bn(e) {
|
|
1215
|
+
return e.type === v.argument;
|
|
1191
1216
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e.type ===
|
|
1217
|
+
function Gt(e) {
|
|
1218
|
+
return e.type === v.number;
|
|
1194
1219
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return e.type ===
|
|
1220
|
+
function Ft(e) {
|
|
1221
|
+
return e.type === v.date;
|
|
1197
1222
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return e.type ===
|
|
1223
|
+
function jt(e) {
|
|
1224
|
+
return e.type === v.time;
|
|
1200
1225
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return e.type ===
|
|
1226
|
+
function kt(e) {
|
|
1227
|
+
return e.type === v.select;
|
|
1203
1228
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return e.type ===
|
|
1229
|
+
function Vt(e) {
|
|
1230
|
+
return e.type === v.plural;
|
|
1206
1231
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return e.type ===
|
|
1232
|
+
function yn(e) {
|
|
1233
|
+
return e.type === v.pound;
|
|
1209
1234
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return e.type ===
|
|
1235
|
+
function Xt(e) {
|
|
1236
|
+
return e.type === v.tag;
|
|
1212
1237
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1238
|
+
function Wt(e) {
|
|
1239
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1215
1240
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1241
|
+
function Ve(e) {
|
|
1242
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1218
1243
|
}
|
|
1219
|
-
var
|
|
1220
|
-
function
|
|
1244
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
|
|
1245
|
+
function vn(e) {
|
|
1221
1246
|
var t = {};
|
|
1222
|
-
return e.replace(
|
|
1247
|
+
return e.replace(gn, function(r) {
|
|
1223
1248
|
var n = r.length;
|
|
1224
1249
|
switch (r[0]) {
|
|
1225
1250
|
case "G":
|
|
@@ -1308,36 +1333,46 @@ function mn(e) {
|
|
|
1308
1333
|
return "";
|
|
1309
1334
|
}), t;
|
|
1310
1335
|
}
|
|
1311
|
-
var
|
|
1312
|
-
function
|
|
1336
|
+
var _ = function() {
|
|
1337
|
+
return _ = Object.assign || function(t) {
|
|
1338
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1339
|
+
r = arguments[n];
|
|
1340
|
+
for (var o in r)
|
|
1341
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1342
|
+
}
|
|
1343
|
+
return t;
|
|
1344
|
+
}, _.apply(this, arguments);
|
|
1345
|
+
};
|
|
1346
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1347
|
+
function En(e) {
|
|
1313
1348
|
if (e.length === 0)
|
|
1314
1349
|
throw new Error("Number skeleton cannot be empty");
|
|
1315
|
-
for (var t = e.split(
|
|
1316
|
-
return
|
|
1350
|
+
for (var t = e.split(_n).filter(function(f) {
|
|
1351
|
+
return f.length > 0;
|
|
1317
1352
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1318
1353
|
var o = i[n], a = o.split("/");
|
|
1319
1354
|
if (a.length === 0)
|
|
1320
1355
|
throw new Error("Invalid number skeleton");
|
|
1321
1356
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1322
|
-
var
|
|
1323
|
-
if (
|
|
1357
|
+
var c = h[u];
|
|
1358
|
+
if (c.length === 0)
|
|
1324
1359
|
throw new Error("Invalid number skeleton");
|
|
1325
1360
|
}
|
|
1326
1361
|
r.push({ stem: s, options: l });
|
|
1327
1362
|
}
|
|
1328
1363
|
return r;
|
|
1329
1364
|
}
|
|
1330
|
-
function
|
|
1365
|
+
function xn(e) {
|
|
1331
1366
|
return e.replace(/^(.*?)-/, "");
|
|
1332
1367
|
}
|
|
1333
|
-
var
|
|
1334
|
-
function
|
|
1368
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1369
|
+
function dt(e) {
|
|
1335
1370
|
var t = {};
|
|
1336
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1371
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1337
1372
|
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)), "";
|
|
1338
1373
|
}), t;
|
|
1339
1374
|
}
|
|
1340
|
-
function
|
|
1375
|
+
function qt(e) {
|
|
1341
1376
|
switch (e) {
|
|
1342
1377
|
case "sign-auto":
|
|
1343
1378
|
return {
|
|
@@ -1377,7 +1412,7 @@ function Wt(e) {
|
|
|
1377
1412
|
};
|
|
1378
1413
|
}
|
|
1379
1414
|
}
|
|
1380
|
-
function
|
|
1415
|
+
function Hn(e) {
|
|
1381
1416
|
var t;
|
|
1382
1417
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1383
1418
|
notation: "engineering"
|
|
@@ -1385,17 +1420,17 @@ function _n(e) {
|
|
|
1385
1420
|
notation: "scientific"
|
|
1386
1421
|
}, e = e.slice(1)), t) {
|
|
1387
1422
|
var r = e.slice(0, 2);
|
|
1388
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1423
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1389
1424
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1390
1425
|
t.minimumIntegerDigits = e.length;
|
|
1391
1426
|
}
|
|
1392
1427
|
return t;
|
|
1393
1428
|
}
|
|
1394
|
-
function
|
|
1395
|
-
var t = {}, r =
|
|
1429
|
+
function bt(e) {
|
|
1430
|
+
var t = {}, r = qt(e);
|
|
1396
1431
|
return r || t;
|
|
1397
1432
|
}
|
|
1398
|
-
function
|
|
1433
|
+
function Sn(e) {
|
|
1399
1434
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1400
1435
|
var i = n[r];
|
|
1401
1436
|
switch (i.stem) {
|
|
@@ -1419,7 +1454,7 @@ function En(e) {
|
|
|
1419
1454
|
continue;
|
|
1420
1455
|
case "measure-unit":
|
|
1421
1456
|
case "unit":
|
|
1422
|
-
t.style = "unit", t.unit =
|
|
1457
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1423
1458
|
continue;
|
|
1424
1459
|
case "compact-short":
|
|
1425
1460
|
case "K":
|
|
@@ -1430,13 +1465,13 @@ function En(e) {
|
|
|
1430
1465
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1431
1466
|
continue;
|
|
1432
1467
|
case "scientific":
|
|
1433
|
-
t =
|
|
1434
|
-
return
|
|
1468
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1469
|
+
return _(_({}, l), bt(u));
|
|
1435
1470
|
}, {}));
|
|
1436
1471
|
continue;
|
|
1437
1472
|
case "engineering":
|
|
1438
|
-
t =
|
|
1439
|
-
return
|
|
1473
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1474
|
+
return _(_({}, l), bt(u));
|
|
1440
1475
|
}, {}));
|
|
1441
1476
|
continue;
|
|
1442
1477
|
case "notation-simple":
|
|
@@ -1481,45 +1516,45 @@ function En(e) {
|
|
|
1481
1516
|
case "integer-width":
|
|
1482
1517
|
if (i.options.length > 1)
|
|
1483
1518
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1484
|
-
i.options[0].replace(
|
|
1519
|
+
i.options[0].replace(Tn, function(l, u, h, c, f, p) {
|
|
1485
1520
|
if (u)
|
|
1486
1521
|
t.minimumIntegerDigits = h.length;
|
|
1487
1522
|
else {
|
|
1488
|
-
if (
|
|
1523
|
+
if (c && f)
|
|
1489
1524
|
throw new Error("We currently do not support maximum integer digits");
|
|
1490
|
-
if (
|
|
1525
|
+
if (p)
|
|
1491
1526
|
throw new Error("We currently do not support exact integer digits");
|
|
1492
1527
|
}
|
|
1493
1528
|
return "";
|
|
1494
1529
|
});
|
|
1495
1530
|
continue;
|
|
1496
1531
|
}
|
|
1497
|
-
if (
|
|
1532
|
+
if (Qt.test(i.stem)) {
|
|
1498
1533
|
t.minimumIntegerDigits = i.stem.length;
|
|
1499
1534
|
continue;
|
|
1500
1535
|
}
|
|
1501
|
-
if (
|
|
1536
|
+
if (mt.test(i.stem)) {
|
|
1502
1537
|
if (i.options.length > 1)
|
|
1503
1538
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1504
|
-
i.stem.replace(
|
|
1505
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1539
|
+
i.stem.replace(mt, function(l, u, h, c, f, p) {
|
|
1540
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1506
1541
|
});
|
|
1507
1542
|
var o = i.options[0];
|
|
1508
|
-
o === "w" ? t =
|
|
1543
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), dt(o)));
|
|
1509
1544
|
continue;
|
|
1510
1545
|
}
|
|
1511
|
-
if (
|
|
1512
|
-
t =
|
|
1546
|
+
if (Zt.test(i.stem)) {
|
|
1547
|
+
t = _(_({}, t), dt(i.stem));
|
|
1513
1548
|
continue;
|
|
1514
1549
|
}
|
|
1515
|
-
var a =
|
|
1516
|
-
a && (t =
|
|
1517
|
-
var s =
|
|
1518
|
-
s && (t =
|
|
1550
|
+
var a = qt(i.stem);
|
|
1551
|
+
a && (t = _(_({}, t), a));
|
|
1552
|
+
var s = Hn(i.stem);
|
|
1553
|
+
s && (t = _(_({}, t), s));
|
|
1519
1554
|
}
|
|
1520
1555
|
return t;
|
|
1521
1556
|
}
|
|
1522
|
-
var
|
|
1557
|
+
var ce = {
|
|
1523
1558
|
"001": [
|
|
1524
1559
|
"H",
|
|
1525
1560
|
"h"
|
|
@@ -2934,13 +2969,13 @@ var fe = {
|
|
|
2934
2969
|
"h"
|
|
2935
2970
|
]
|
|
2936
2971
|
};
|
|
2937
|
-
function
|
|
2972
|
+
function wn(e, t) {
|
|
2938
2973
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2939
2974
|
var i = e.charAt(n);
|
|
2940
2975
|
if (i === "j") {
|
|
2941
2976
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2942
2977
|
o++, n++;
|
|
2943
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2978
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Bn(t);
|
|
2944
2979
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2945
2980
|
r += l;
|
|
2946
2981
|
for (; a-- > 0; )
|
|
@@ -2950,7 +2985,7 @@ function xn(e, t) {
|
|
|
2950
2985
|
}
|
|
2951
2986
|
return r;
|
|
2952
2987
|
}
|
|
2953
|
-
function
|
|
2988
|
+
function Bn(e) {
|
|
2954
2989
|
var t = e.hourCycle;
|
|
2955
2990
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2956
2991
|
e.hourCycles && // @ts-ignore
|
|
@@ -2969,23 +3004,23 @@ function Tn(e) {
|
|
|
2969
3004
|
}
|
|
2970
3005
|
var r = e.language, n;
|
|
2971
3006
|
r !== "root" && (n = e.maximize().region);
|
|
2972
|
-
var i =
|
|
3007
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2973
3008
|
return i[0];
|
|
2974
3009
|
}
|
|
2975
|
-
var
|
|
3010
|
+
var Oe, An = new RegExp("^".concat(zt.source, "*")), Pn = new RegExp("".concat(zt.source, "*$"));
|
|
2976
3011
|
function b(e, t) {
|
|
2977
3012
|
return { start: e, end: t };
|
|
2978
3013
|
}
|
|
2979
|
-
var
|
|
3014
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Nn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
2980
3015
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2981
|
-
},
|
|
3016
|
+
}, Xe = !0;
|
|
2982
3017
|
try {
|
|
2983
|
-
var
|
|
2984
|
-
|
|
3018
|
+
var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3019
|
+
Xe = ((Oe = Un.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2985
3020
|
} catch {
|
|
2986
|
-
|
|
3021
|
+
Xe = !1;
|
|
2987
3022
|
}
|
|
2988
|
-
var
|
|
3023
|
+
var yt = On ? (
|
|
2989
3024
|
// Native
|
|
2990
3025
|
function(t, r, n) {
|
|
2991
3026
|
return t.startsWith(r, n);
|
|
@@ -2995,7 +3030,7 @@ var dt = wn ? (
|
|
|
2995
3030
|
function(t, r, n) {
|
|
2996
3031
|
return t.slice(n, n + r.length) === r;
|
|
2997
3032
|
}
|
|
2998
|
-
),
|
|
3033
|
+
), We = In ? String.fromCodePoint : (
|
|
2999
3034
|
// IE11
|
|
3000
3035
|
function() {
|
|
3001
3036
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3007,9 +3042,9 @@ var dt = wn ? (
|
|
|
3007
3042
|
}
|
|
3008
3043
|
return n;
|
|
3009
3044
|
}
|
|
3010
|
-
),
|
|
3045
|
+
), gt = (
|
|
3011
3046
|
// native
|
|
3012
|
-
|
|
3047
|
+
Nn ? Object.fromEntries : (
|
|
3013
3048
|
// Ponyfill
|
|
3014
3049
|
function(t) {
|
|
3015
3050
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3019,7 +3054,7 @@ var dt = wn ? (
|
|
|
3019
3054
|
return r;
|
|
3020
3055
|
}
|
|
3021
3056
|
)
|
|
3022
|
-
),
|
|
3057
|
+
), Jt = Ln ? (
|
|
3023
3058
|
// Native
|
|
3024
3059
|
function(t, r) {
|
|
3025
3060
|
return t.codePointAt(r);
|
|
@@ -3033,7 +3068,7 @@ var dt = wn ? (
|
|
|
3033
3068
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3034
3069
|
}
|
|
3035
3070
|
}
|
|
3036
|
-
),
|
|
3071
|
+
), Dn = Cn ? (
|
|
3037
3072
|
// Native
|
|
3038
3073
|
function(t) {
|
|
3039
3074
|
return t.trimStart();
|
|
@@ -3041,9 +3076,9 @@ var dt = wn ? (
|
|
|
3041
3076
|
) : (
|
|
3042
3077
|
// Ponyfill
|
|
3043
3078
|
function(t) {
|
|
3044
|
-
return t.replace(
|
|
3079
|
+
return t.replace(An, "");
|
|
3045
3080
|
}
|
|
3046
|
-
),
|
|
3081
|
+
), Gn = Mn ? (
|
|
3047
3082
|
// Native
|
|
3048
3083
|
function(t) {
|
|
3049
3084
|
return t.trimEnd();
|
|
@@ -3051,32 +3086,32 @@ var dt = wn ? (
|
|
|
3051
3086
|
) : (
|
|
3052
3087
|
// Ponyfill
|
|
3053
3088
|
function(t) {
|
|
3054
|
-
return t.replace(
|
|
3089
|
+
return t.replace(Pn, "");
|
|
3055
3090
|
}
|
|
3056
3091
|
);
|
|
3057
|
-
function
|
|
3092
|
+
function Yt(e, t) {
|
|
3058
3093
|
return new RegExp(e, t);
|
|
3059
3094
|
}
|
|
3060
|
-
var
|
|
3061
|
-
if (
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3095
|
+
var ze;
|
|
3096
|
+
if (Xe) {
|
|
3097
|
+
var vt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3098
|
+
ze = function(t, r) {
|
|
3064
3099
|
var n;
|
|
3065
|
-
|
|
3066
|
-
var i =
|
|
3100
|
+
vt.lastIndex = r;
|
|
3101
|
+
var i = vt.exec(t);
|
|
3067
3102
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3068
3103
|
};
|
|
3069
3104
|
} else
|
|
3070
|
-
|
|
3105
|
+
ze = function(t, r) {
|
|
3071
3106
|
for (var n = []; ; ) {
|
|
3072
|
-
var i =
|
|
3073
|
-
if (i === void 0 ||
|
|
3107
|
+
var i = Jt(t, r);
|
|
3108
|
+
if (i === void 0 || Kt(i) || Vn(i))
|
|
3074
3109
|
break;
|
|
3075
3110
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3076
3111
|
}
|
|
3077
|
-
return
|
|
3112
|
+
return We.apply(void 0, n);
|
|
3078
3113
|
};
|
|
3079
|
-
var
|
|
3114
|
+
var Fn = (
|
|
3080
3115
|
/** @class */
|
|
3081
3116
|
function() {
|
|
3082
3117
|
function e(t, r) {
|
|
@@ -3100,14 +3135,14 @@ var Rn = (
|
|
|
3100
3135
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3101
3136
|
var s = this.clonePosition();
|
|
3102
3137
|
this.bump(), i.push({
|
|
3103
|
-
type:
|
|
3138
|
+
type: v.pound,
|
|
3104
3139
|
location: b(s, this.clonePosition())
|
|
3105
3140
|
});
|
|
3106
3141
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3107
3142
|
if (n)
|
|
3108
3143
|
break;
|
|
3109
|
-
return this.error(
|
|
3110
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3144
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3145
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3111
3146
|
var a = this.parseTag(t, r);
|
|
3112
3147
|
if (a.err)
|
|
3113
3148
|
return a;
|
|
@@ -3128,7 +3163,7 @@ var Rn = (
|
|
|
3128
3163
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3129
3164
|
return {
|
|
3130
3165
|
val: {
|
|
3131
|
-
type:
|
|
3166
|
+
type: v.literal,
|
|
3132
3167
|
value: "<".concat(i, "/>"),
|
|
3133
3168
|
location: b(n, this.clonePosition())
|
|
3134
3169
|
},
|
|
@@ -3140,25 +3175,25 @@ var Rn = (
|
|
|
3140
3175
|
return o;
|
|
3141
3176
|
var a = o.val, s = this.clonePosition();
|
|
3142
3177
|
if (this.bumpIf("</")) {
|
|
3143
|
-
if (this.isEOF() || !
|
|
3144
|
-
return this.error(
|
|
3178
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3179
|
+
return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
|
|
3145
3180
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3146
|
-
return i !== u ? this.error(
|
|
3181
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3147
3182
|
val: {
|
|
3148
|
-
type:
|
|
3183
|
+
type: v.tag,
|
|
3149
3184
|
value: i,
|
|
3150
3185
|
children: a,
|
|
3151
3186
|
location: b(n, this.clonePosition())
|
|
3152
3187
|
},
|
|
3153
3188
|
err: null
|
|
3154
|
-
} : this.error(
|
|
3189
|
+
} : this.error(d.INVALID_TAG, b(s, this.clonePosition())));
|
|
3155
3190
|
} else
|
|
3156
|
-
return this.error(
|
|
3191
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3157
3192
|
} else
|
|
3158
|
-
return this.error(
|
|
3193
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3159
3194
|
}, e.prototype.parseTagName = function() {
|
|
3160
3195
|
var t = this.offset();
|
|
3161
|
-
for (this.bump(); !this.isEOF() &&
|
|
3196
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
3162
3197
|
this.bump();
|
|
3163
3198
|
return this.message.slice(t, this.offset());
|
|
3164
3199
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3182,12 +3217,12 @@ var Rn = (
|
|
|
3182
3217
|
}
|
|
3183
3218
|
var l = b(n, this.clonePosition());
|
|
3184
3219
|
return {
|
|
3185
|
-
val: { type:
|
|
3220
|
+
val: { type: v.literal, value: i, location: l },
|
|
3186
3221
|
err: null
|
|
3187
3222
|
};
|
|
3188
3223
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3189
3224
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3190
|
-
!
|
|
3225
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3191
3226
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3192
3227
|
if (this.isEOF() || this.char() !== 39)
|
|
3193
3228
|
return null;
|
|
@@ -3221,28 +3256,28 @@ var Rn = (
|
|
|
3221
3256
|
r.push(n);
|
|
3222
3257
|
this.bump();
|
|
3223
3258
|
}
|
|
3224
|
-
return
|
|
3259
|
+
return We.apply(void 0, r);
|
|
3225
3260
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3226
3261
|
if (this.isEOF())
|
|
3227
3262
|
return null;
|
|
3228
3263
|
var n = this.char();
|
|
3229
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3264
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3230
3265
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3231
3266
|
var n = this.clonePosition();
|
|
3232
3267
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3233
|
-
return this.error(
|
|
3268
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3234
3269
|
if (this.char() === 125)
|
|
3235
|
-
return this.bump(), this.error(
|
|
3270
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3236
3271
|
var i = this.parseIdentifierIfPossible().value;
|
|
3237
3272
|
if (!i)
|
|
3238
|
-
return this.error(
|
|
3273
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3239
3274
|
if (this.bumpSpace(), this.isEOF())
|
|
3240
|
-
return this.error(
|
|
3275
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3241
3276
|
switch (this.char()) {
|
|
3242
3277
|
case 125:
|
|
3243
3278
|
return this.bump(), {
|
|
3244
3279
|
val: {
|
|
3245
|
-
type:
|
|
3280
|
+
type: v.argument,
|
|
3246
3281
|
// value does not include the opening and closing braces.
|
|
3247
3282
|
value: i,
|
|
3248
3283
|
location: b(n, this.clonePosition())
|
|
@@ -3250,12 +3285,12 @@ var Rn = (
|
|
|
3250
3285
|
err: null
|
|
3251
3286
|
};
|
|
3252
3287
|
case 44:
|
|
3253
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3288
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3254
3289
|
default:
|
|
3255
|
-
return this.error(
|
|
3290
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3256
3291
|
}
|
|
3257
3292
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3258
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3293
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3259
3294
|
this.bumpTo(i);
|
|
3260
3295
|
var o = this.clonePosition(), a = b(t, o);
|
|
3261
3296
|
return { value: n, location: a };
|
|
@@ -3263,7 +3298,7 @@ var Rn = (
|
|
|
3263
3298
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3264
3299
|
switch (s) {
|
|
3265
3300
|
case "":
|
|
3266
|
-
return this.error(
|
|
3301
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
3267
3302
|
case "number":
|
|
3268
3303
|
case "date":
|
|
3269
3304
|
case "time": {
|
|
@@ -3271,49 +3306,49 @@ var Rn = (
|
|
|
3271
3306
|
var u = null;
|
|
3272
3307
|
if (this.bumpIf(",")) {
|
|
3273
3308
|
this.bumpSpace();
|
|
3274
|
-
var h = this.clonePosition(),
|
|
3275
|
-
if (
|
|
3276
|
-
return
|
|
3277
|
-
var
|
|
3278
|
-
if (
|
|
3279
|
-
return this.error(
|
|
3280
|
-
var
|
|
3281
|
-
u = { style:
|
|
3309
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3310
|
+
if (c.err)
|
|
3311
|
+
return c;
|
|
3312
|
+
var f = Gn(c.val);
|
|
3313
|
+
if (f.length === 0)
|
|
3314
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3315
|
+
var p = b(h, this.clonePosition());
|
|
3316
|
+
u = { style: f, styleLocation: p };
|
|
3282
3317
|
}
|
|
3283
|
-
var
|
|
3284
|
-
if (
|
|
3285
|
-
return
|
|
3286
|
-
var
|
|
3287
|
-
if (u &&
|
|
3288
|
-
var T =
|
|
3318
|
+
var g = this.tryParseArgumentClose(i);
|
|
3319
|
+
if (g.err)
|
|
3320
|
+
return g;
|
|
3321
|
+
var m = b(i, this.clonePosition());
|
|
3322
|
+
if (u && yt(u?.style, "::", 0)) {
|
|
3323
|
+
var T = Dn(u.style.slice(2));
|
|
3289
3324
|
if (s === "number") {
|
|
3290
|
-
var
|
|
3291
|
-
return
|
|
3292
|
-
val: { type:
|
|
3325
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3326
|
+
return c.err ? c : {
|
|
3327
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
|
3293
3328
|
err: null
|
|
3294
3329
|
};
|
|
3295
3330
|
} else {
|
|
3296
3331
|
if (T.length === 0)
|
|
3297
|
-
return this.error(
|
|
3332
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3298
3333
|
var $ = T;
|
|
3299
|
-
this.locale && ($ =
|
|
3300
|
-
var
|
|
3301
|
-
type:
|
|
3334
|
+
this.locale && ($ = wn(T, this.locale));
|
|
3335
|
+
var f = {
|
|
3336
|
+
type: W.dateTime,
|
|
3302
3337
|
pattern: $,
|
|
3303
3338
|
location: u.styleLocation,
|
|
3304
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3305
|
-
},
|
|
3339
|
+
parsedOptions: this.shouldParseSkeletons ? vn($) : {}
|
|
3340
|
+
}, P = s === "date" ? v.date : v.time;
|
|
3306
3341
|
return {
|
|
3307
|
-
val: { type:
|
|
3342
|
+
val: { type: P, value: n, location: m, style: f },
|
|
3308
3343
|
err: null
|
|
3309
3344
|
};
|
|
3310
3345
|
}
|
|
3311
3346
|
}
|
|
3312
3347
|
return {
|
|
3313
3348
|
val: {
|
|
3314
|
-
type: s === "number" ?
|
|
3349
|
+
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3315
3350
|
value: n,
|
|
3316
|
-
location:
|
|
3351
|
+
location: m,
|
|
3317
3352
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3318
3353
|
},
|
|
3319
3354
|
err: null
|
|
@@ -3324,50 +3359,50 @@ var Rn = (
|
|
|
3324
3359
|
case "select": {
|
|
3325
3360
|
var S = this.clonePosition();
|
|
3326
3361
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3327
|
-
return this.error(
|
|
3362
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, be({}, S)));
|
|
3328
3363
|
this.bumpSpace();
|
|
3329
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3364
|
+
var R = this.parseIdentifierIfPossible(), O = 0;
|
|
3330
3365
|
if (s !== "select" && R.value === "offset") {
|
|
3331
3366
|
if (!this.bumpIf(":"))
|
|
3332
|
-
return this.error(
|
|
3367
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3333
3368
|
this.bumpSpace();
|
|
3334
|
-
var
|
|
3335
|
-
if (
|
|
3336
|
-
return
|
|
3337
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3369
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3370
|
+
if (c.err)
|
|
3371
|
+
return c;
|
|
3372
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
|
|
3338
3373
|
}
|
|
3339
3374
|
var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
|
3340
3375
|
if (D.err)
|
|
3341
3376
|
return D;
|
|
3342
|
-
var
|
|
3343
|
-
if (
|
|
3344
|
-
return
|
|
3345
|
-
var
|
|
3377
|
+
var g = this.tryParseArgumentClose(i);
|
|
3378
|
+
if (g.err)
|
|
3379
|
+
return g;
|
|
3380
|
+
var y = b(i, this.clonePosition());
|
|
3346
3381
|
return s === "select" ? {
|
|
3347
3382
|
val: {
|
|
3348
|
-
type:
|
|
3383
|
+
type: v.select,
|
|
3349
3384
|
value: n,
|
|
3350
|
-
options:
|
|
3351
|
-
location:
|
|
3385
|
+
options: gt(D.val),
|
|
3386
|
+
location: y
|
|
3352
3387
|
},
|
|
3353
3388
|
err: null
|
|
3354
3389
|
} : {
|
|
3355
3390
|
val: {
|
|
3356
|
-
type:
|
|
3391
|
+
type: v.plural,
|
|
3357
3392
|
value: n,
|
|
3358
|
-
options:
|
|
3359
|
-
offset:
|
|
3393
|
+
options: gt(D.val),
|
|
3394
|
+
offset: O,
|
|
3360
3395
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3361
|
-
location:
|
|
3396
|
+
location: y
|
|
3362
3397
|
},
|
|
3363
3398
|
err: null
|
|
3364
3399
|
};
|
|
3365
3400
|
}
|
|
3366
3401
|
default:
|
|
3367
|
-
return this.error(
|
|
3402
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
3368
3403
|
}
|
|
3369
3404
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3370
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3405
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3371
3406
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3372
3407
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3373
3408
|
var n = this.char();
|
|
@@ -3376,7 +3411,7 @@ var Rn = (
|
|
|
3376
3411
|
this.bump();
|
|
3377
3412
|
var i = this.clonePosition();
|
|
3378
3413
|
if (!this.bumpUntil("'"))
|
|
3379
|
-
return this.error(
|
|
3414
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3380
3415
|
this.bump();
|
|
3381
3416
|
break;
|
|
3382
3417
|
}
|
|
@@ -3406,52 +3441,52 @@ var Rn = (
|
|
|
3406
3441
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3407
3442
|
var n = [];
|
|
3408
3443
|
try {
|
|
3409
|
-
n =
|
|
3444
|
+
n = En(t);
|
|
3410
3445
|
} catch {
|
|
3411
|
-
return this.error(
|
|
3446
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3412
3447
|
}
|
|
3413
3448
|
return {
|
|
3414
3449
|
val: {
|
|
3415
|
-
type:
|
|
3450
|
+
type: W.number,
|
|
3416
3451
|
tokens: n,
|
|
3417
3452
|
location: r,
|
|
3418
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3453
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3419
3454
|
},
|
|
3420
3455
|
err: null
|
|
3421
3456
|
};
|
|
3422
3457
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3423
3458
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3424
3459
|
if (u.length === 0) {
|
|
3425
|
-
var
|
|
3460
|
+
var c = this.clonePosition();
|
|
3426
3461
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3427
|
-
var
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3430
|
-
h = b(
|
|
3462
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3463
|
+
if (f.err)
|
|
3464
|
+
return f;
|
|
3465
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3431
3466
|
} else
|
|
3432
3467
|
break;
|
|
3433
3468
|
}
|
|
3434
3469
|
if (l.has(u))
|
|
3435
|
-
return this.error(r === "select" ?
|
|
3470
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3436
3471
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3437
|
-
var
|
|
3472
|
+
var p = this.clonePosition();
|
|
3438
3473
|
if (!this.bumpIf("{"))
|
|
3439
|
-
return this.error(r === "select" ?
|
|
3440
|
-
var
|
|
3441
|
-
if (
|
|
3442
|
-
return
|
|
3443
|
-
var
|
|
3444
|
-
if (
|
|
3445
|
-
return
|
|
3474
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3475
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3476
|
+
if (g.err)
|
|
3477
|
+
return g;
|
|
3478
|
+
var m = this.tryParseArgumentClose(p);
|
|
3479
|
+
if (m.err)
|
|
3480
|
+
return m;
|
|
3446
3481
|
s.push([
|
|
3447
3482
|
u,
|
|
3448
3483
|
{
|
|
3449
|
-
value:
|
|
3450
|
-
location: b(
|
|
3484
|
+
value: g.val,
|
|
3485
|
+
location: b(p, this.clonePosition())
|
|
3451
3486
|
}
|
|
3452
3487
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3453
3488
|
}
|
|
3454
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3489
|
+
return s.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3455
3490
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3456
3491
|
var n = 1, i = this.clonePosition();
|
|
3457
3492
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3463,7 +3498,7 @@ var Rn = (
|
|
|
3463
3498
|
break;
|
|
3464
3499
|
}
|
|
3465
3500
|
var l = b(i, this.clonePosition());
|
|
3466
|
-
return o ? (a *= n,
|
|
3501
|
+
return o ? (a *= n, Rn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3467
3502
|
}, e.prototype.offset = function() {
|
|
3468
3503
|
return this.position.offset;
|
|
3469
3504
|
}, e.prototype.isEOF = function() {
|
|
@@ -3478,7 +3513,7 @@ var Rn = (
|
|
|
3478
3513
|
var t = this.position.offset;
|
|
3479
3514
|
if (t >= this.message.length)
|
|
3480
3515
|
throw Error("out of bound");
|
|
3481
|
-
var r =
|
|
3516
|
+
var r = Jt(this.message, t);
|
|
3482
3517
|
if (r === void 0)
|
|
3483
3518
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3484
3519
|
return r;
|
|
@@ -3497,7 +3532,7 @@ var Rn = (
|
|
|
3497
3532
|
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);
|
|
3498
3533
|
}
|
|
3499
3534
|
}, e.prototype.bumpIf = function(t) {
|
|
3500
|
-
if (
|
|
3535
|
+
if (yt(this.message, t, this.offset())) {
|
|
3501
3536
|
for (var r = 0; r < t.length; r++)
|
|
3502
3537
|
this.bump();
|
|
3503
3538
|
return !0;
|
|
@@ -3519,7 +3554,7 @@ var Rn = (
|
|
|
3519
3554
|
break;
|
|
3520
3555
|
}
|
|
3521
3556
|
}, e.prototype.bumpSpace = function() {
|
|
3522
|
-
for (; !this.isEOF() &&
|
|
3557
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3523
3558
|
this.bump();
|
|
3524
3559
|
}, e.prototype.peek = function() {
|
|
3525
3560
|
if (this.isEOF())
|
|
@@ -3529,47 +3564,47 @@ var Rn = (
|
|
|
3529
3564
|
}, e;
|
|
3530
3565
|
}()
|
|
3531
3566
|
);
|
|
3532
|
-
function
|
|
3567
|
+
function Ze(e) {
|
|
3533
3568
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3534
3569
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3570
|
+
function jn(e) {
|
|
3571
|
+
return Ze(e) || e === 47;
|
|
3537
3572
|
}
|
|
3538
|
-
function
|
|
3573
|
+
function kn(e) {
|
|
3539
3574
|
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;
|
|
3540
3575
|
}
|
|
3541
|
-
function
|
|
3576
|
+
function Kt(e) {
|
|
3542
3577
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3543
3578
|
}
|
|
3544
|
-
function
|
|
3579
|
+
function Vn(e) {
|
|
3545
3580
|
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;
|
|
3546
3581
|
}
|
|
3547
|
-
function
|
|
3582
|
+
function Qe(e) {
|
|
3548
3583
|
e.forEach(function(t) {
|
|
3549
|
-
if (delete t.location,
|
|
3584
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3550
3585
|
for (var r in t.options)
|
|
3551
|
-
delete t.options[r].location,
|
|
3586
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3552
3587
|
else
|
|
3553
|
-
|
|
3588
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ve(t.style) ? delete t.style.location : Xt(t) && Qe(t.children);
|
|
3554
3589
|
});
|
|
3555
3590
|
}
|
|
3556
|
-
function
|
|
3557
|
-
t === void 0 && (t = {}), t =
|
|
3558
|
-
var r = new
|
|
3591
|
+
function Xn(e, t) {
|
|
3592
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3593
|
+
var r = new Fn(e, t).parse();
|
|
3559
3594
|
if (r.err) {
|
|
3560
|
-
var n = SyntaxError(
|
|
3595
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3561
3596
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3562
3597
|
}
|
|
3563
|
-
return t?.captureLocation ||
|
|
3598
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3564
3599
|
}
|
|
3565
|
-
var
|
|
3600
|
+
var z;
|
|
3566
3601
|
(function(e) {
|
|
3567
3602
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3568
|
-
})(
|
|
3569
|
-
var
|
|
3603
|
+
})(z || (z = {}));
|
|
3604
|
+
var xe = (
|
|
3570
3605
|
/** @class */
|
|
3571
3606
|
function(e) {
|
|
3572
|
-
|
|
3607
|
+
Ee(t, e);
|
|
3573
3608
|
function t(r, n, i) {
|
|
3574
3609
|
var o = e.call(this, r) || this;
|
|
3575
3610
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3578,48 +3613,48 @@ var _e = (
|
|
|
3578
3613
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3579
3614
|
}, t;
|
|
3580
3615
|
}(Error)
|
|
3581
|
-
),
|
|
3616
|
+
), _t = (
|
|
3582
3617
|
/** @class */
|
|
3583
3618
|
function(e) {
|
|
3584
|
-
|
|
3619
|
+
Ee(t, e);
|
|
3585
3620
|
function t(r, n, i, o) {
|
|
3586
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3621
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3587
3622
|
}
|
|
3588
3623
|
return t;
|
|
3589
|
-
}(
|
|
3590
|
-
),
|
|
3624
|
+
}(xe)
|
|
3625
|
+
), Wn = (
|
|
3591
3626
|
/** @class */
|
|
3592
3627
|
function(e) {
|
|
3593
|
-
|
|
3628
|
+
Ee(t, e);
|
|
3594
3629
|
function t(r, n, i) {
|
|
3595
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3630
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3596
3631
|
}
|
|
3597
3632
|
return t;
|
|
3598
|
-
}(
|
|
3599
|
-
),
|
|
3633
|
+
}(xe)
|
|
3634
|
+
), zn = (
|
|
3600
3635
|
/** @class */
|
|
3601
3636
|
function(e) {
|
|
3602
|
-
|
|
3637
|
+
Ee(t, e);
|
|
3603
3638
|
function t(r, n) {
|
|
3604
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3639
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3605
3640
|
}
|
|
3606
3641
|
return t;
|
|
3607
|
-
}(
|
|
3642
|
+
}(xe)
|
|
3608
3643
|
), H;
|
|
3609
3644
|
(function(e) {
|
|
3610
3645
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3611
3646
|
})(H || (H = {}));
|
|
3612
|
-
function
|
|
3647
|
+
function Zn(e) {
|
|
3613
3648
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3614
3649
|
var n = t[t.length - 1];
|
|
3615
3650
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3616
3651
|
}, []);
|
|
3617
3652
|
}
|
|
3618
|
-
function
|
|
3653
|
+
function Qn(e) {
|
|
3619
3654
|
return typeof e == "function";
|
|
3620
3655
|
}
|
|
3621
|
-
function
|
|
3622
|
-
if (e.length === 1 &&
|
|
3656
|
+
function me(e, t, r, n, i, o, a) {
|
|
3657
|
+
if (e.length === 1 && pt(e[0]))
|
|
3623
3658
|
return [
|
|
3624
3659
|
{
|
|
3625
3660
|
type: H.literal,
|
|
@@ -3628,105 +3663,105 @@ function pe(e, t, r, n, i, o, a) {
|
|
|
3628
3663
|
];
|
|
3629
3664
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3630
3665
|
var h = u[l];
|
|
3631
|
-
if (
|
|
3666
|
+
if (pt(h)) {
|
|
3632
3667
|
s.push({
|
|
3633
3668
|
type: H.literal,
|
|
3634
3669
|
value: h.value
|
|
3635
3670
|
});
|
|
3636
3671
|
continue;
|
|
3637
3672
|
}
|
|
3638
|
-
if (
|
|
3673
|
+
if (yn(h)) {
|
|
3639
3674
|
typeof o == "number" && s.push({
|
|
3640
3675
|
type: H.literal,
|
|
3641
3676
|
value: r.getNumberFormat(t).format(o)
|
|
3642
3677
|
});
|
|
3643
3678
|
continue;
|
|
3644
3679
|
}
|
|
3645
|
-
var
|
|
3646
|
-
if (!(i &&
|
|
3647
|
-
throw new
|
|
3648
|
-
var
|
|
3649
|
-
if (
|
|
3650
|
-
(!
|
|
3651
|
-
type: typeof
|
|
3652
|
-
value:
|
|
3680
|
+
var c = h.value;
|
|
3681
|
+
if (!(i && c in i))
|
|
3682
|
+
throw new zn(c, a);
|
|
3683
|
+
var f = i[c];
|
|
3684
|
+
if (bn(h)) {
|
|
3685
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3686
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3687
|
+
value: f
|
|
3653
3688
|
});
|
|
3654
3689
|
continue;
|
|
3655
3690
|
}
|
|
3656
|
-
if (
|
|
3657
|
-
var
|
|
3691
|
+
if (Ft(h)) {
|
|
3692
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3658
3693
|
s.push({
|
|
3659
3694
|
type: H.literal,
|
|
3660
|
-
value: r.getDateTimeFormat(t,
|
|
3695
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3661
3696
|
});
|
|
3662
3697
|
continue;
|
|
3663
3698
|
}
|
|
3664
|
-
if (
|
|
3665
|
-
var
|
|
3699
|
+
if (jt(h)) {
|
|
3700
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3666
3701
|
s.push({
|
|
3667
3702
|
type: H.literal,
|
|
3668
|
-
value: r.getDateTimeFormat(t,
|
|
3703
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3669
3704
|
});
|
|
3670
3705
|
continue;
|
|
3671
3706
|
}
|
|
3672
|
-
if (
|
|
3673
|
-
var
|
|
3674
|
-
|
|
3707
|
+
if (Gt(h)) {
|
|
3708
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3709
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3675
3710
|
type: H.literal,
|
|
3676
|
-
value: r.getNumberFormat(t,
|
|
3711
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3677
3712
|
});
|
|
3678
3713
|
continue;
|
|
3679
3714
|
}
|
|
3680
|
-
if (
|
|
3681
|
-
var
|
|
3682
|
-
if (!
|
|
3683
|
-
throw new
|
|
3684
|
-
var $ =
|
|
3685
|
-
return
|
|
3715
|
+
if (Xt(h)) {
|
|
3716
|
+
var g = h.children, m = h.value, T = i[m];
|
|
3717
|
+
if (!Qn(T))
|
|
3718
|
+
throw new Wn(m, "function", a);
|
|
3719
|
+
var $ = me(g, t, r, n, i, o), P = T($.map(function(O) {
|
|
3720
|
+
return O.value;
|
|
3686
3721
|
}));
|
|
3687
|
-
Array.isArray(
|
|
3722
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(O) {
|
|
3688
3723
|
return {
|
|
3689
|
-
type: typeof
|
|
3690
|
-
value:
|
|
3724
|
+
type: typeof O == "string" ? H.literal : H.object,
|
|
3725
|
+
value: O
|
|
3691
3726
|
};
|
|
3692
3727
|
}));
|
|
3693
3728
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var S = h.options[
|
|
3729
|
+
if (kt(h)) {
|
|
3730
|
+
var S = h.options[f] || h.options.other;
|
|
3696
3731
|
if (!S)
|
|
3697
|
-
throw new
|
|
3698
|
-
s.push.apply(s,
|
|
3732
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3733
|
+
s.push.apply(s, me(S.value, t, r, n, i));
|
|
3699
3734
|
continue;
|
|
3700
3735
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var S = h.options["=".concat(
|
|
3736
|
+
if (Vt(h)) {
|
|
3737
|
+
var S = h.options["=".concat(f)];
|
|
3703
3738
|
if (!S) {
|
|
3704
3739
|
if (!Intl.PluralRules)
|
|
3705
|
-
throw new
|
|
3740
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3706
3741
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3707
|
-
`,
|
|
3708
|
-
var R = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3742
|
+
`, z.MISSING_INTL_API, a);
|
|
3743
|
+
var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3709
3744
|
S = h.options[R] || h.options.other;
|
|
3710
3745
|
}
|
|
3711
3746
|
if (!S)
|
|
3712
|
-
throw new
|
|
3713
|
-
s.push.apply(s,
|
|
3747
|
+
throw new _t(h.value, f, Object.keys(h.options), a);
|
|
3748
|
+
s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3714
3749
|
continue;
|
|
3715
3750
|
}
|
|
3716
3751
|
}
|
|
3717
|
-
return
|
|
3752
|
+
return Zn(s);
|
|
3718
3753
|
}
|
|
3719
|
-
function
|
|
3720
|
-
return t ?
|
|
3721
|
-
return r[n] =
|
|
3754
|
+
function qn(e, t) {
|
|
3755
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3756
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3722
3757
|
}, {})) : e;
|
|
3723
3758
|
}
|
|
3724
|
-
function
|
|
3759
|
+
function Jn(e, t) {
|
|
3725
3760
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3726
|
-
return r[n] =
|
|
3727
|
-
},
|
|
3761
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3762
|
+
}, A({}, e)) : e;
|
|
3728
3763
|
}
|
|
3729
|
-
function
|
|
3764
|
+
function Ie(e) {
|
|
3730
3765
|
return {
|
|
3731
3766
|
create: function() {
|
|
3732
3767
|
return {
|
|
@@ -3740,39 +3775,39 @@ function Ae(e) {
|
|
|
3740
3775
|
}
|
|
3741
3776
|
};
|
|
3742
3777
|
}
|
|
3743
|
-
function
|
|
3778
|
+
function Yn(e) {
|
|
3744
3779
|
return e === void 0 && (e = {
|
|
3745
3780
|
number: {},
|
|
3746
3781
|
dateTime: {},
|
|
3747
3782
|
pluralRules: {}
|
|
3748
3783
|
}), {
|
|
3749
|
-
getNumberFormat:
|
|
3784
|
+
getNumberFormat: Ae(function() {
|
|
3750
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3751
3786
|
r[n] = arguments[n];
|
|
3752
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3787
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3753
3788
|
}, {
|
|
3754
|
-
cache:
|
|
3755
|
-
strategy:
|
|
3789
|
+
cache: Ie(e.number),
|
|
3790
|
+
strategy: Pe.variadic
|
|
3756
3791
|
}),
|
|
3757
|
-
getDateTimeFormat:
|
|
3792
|
+
getDateTimeFormat: Ae(function() {
|
|
3758
3793
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3759
3794
|
r[n] = arguments[n];
|
|
3760
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3795
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3761
3796
|
}, {
|
|
3762
|
-
cache:
|
|
3763
|
-
strategy:
|
|
3797
|
+
cache: Ie(e.dateTime),
|
|
3798
|
+
strategy: Pe.variadic
|
|
3764
3799
|
}),
|
|
3765
|
-
getPluralRules:
|
|
3800
|
+
getPluralRules: Ae(function() {
|
|
3766
3801
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3767
3802
|
r[n] = arguments[n];
|
|
3768
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3803
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3769
3804
|
}, {
|
|
3770
|
-
cache:
|
|
3771
|
-
strategy:
|
|
3805
|
+
cache: Ie(e.pluralRules),
|
|
3806
|
+
strategy: Pe.variadic
|
|
3772
3807
|
})
|
|
3773
3808
|
};
|
|
3774
3809
|
}
|
|
3775
|
-
var
|
|
3810
|
+
var Kn = (
|
|
3776
3811
|
/** @class */
|
|
3777
3812
|
function() {
|
|
3778
3813
|
function e(t, r, n, i) {
|
|
@@ -3786,12 +3821,12 @@ var Qn = (
|
|
|
3786
3821
|
var u = o.formatToParts(l);
|
|
3787
3822
|
if (u.length === 1)
|
|
3788
3823
|
return u[0].value;
|
|
3789
|
-
var h = u.reduce(function(
|
|
3790
|
-
return !
|
|
3824
|
+
var h = u.reduce(function(c, f) {
|
|
3825
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3791
3826
|
}, []);
|
|
3792
3827
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3793
3828
|
}, this.formatToParts = function(l) {
|
|
3794
|
-
return
|
|
3829
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3795
3830
|
}, this.resolvedOptions = function() {
|
|
3796
3831
|
var l;
|
|
3797
3832
|
return {
|
|
@@ -3804,13 +3839,13 @@ var Qn = (
|
|
|
3804
3839
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3805
3840
|
var a = i || {};
|
|
3806
3841
|
a.formatters;
|
|
3807
|
-
var s =
|
|
3808
|
-
this.ast = e.__parse(t,
|
|
3842
|
+
var s = un(a, ["formatters"]);
|
|
3843
|
+
this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
|
|
3809
3844
|
} else
|
|
3810
3845
|
this.ast = t;
|
|
3811
3846
|
if (!Array.isArray(this.ast))
|
|
3812
3847
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3813
|
-
this.formats =
|
|
3848
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3814
3849
|
}
|
|
3815
3850
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3816
3851
|
get: function() {
|
|
@@ -3823,7 +3858,7 @@ var Qn = (
|
|
|
3823
3858
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3824
3859
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3825
3860
|
}
|
|
3826
|
-
}, e.__parse =
|
|
3861
|
+
}, e.__parse = Xn, e.formats = {
|
|
3827
3862
|
number: {
|
|
3828
3863
|
integer: {
|
|
3829
3864
|
maximumFractionDigits: 0
|
|
@@ -3884,7 +3919,7 @@ var Qn = (
|
|
|
3884
3919
|
}, e;
|
|
3885
3920
|
}()
|
|
3886
3921
|
);
|
|
3887
|
-
function
|
|
3922
|
+
function ei(e, t) {
|
|
3888
3923
|
if (t == null)
|
|
3889
3924
|
return;
|
|
3890
3925
|
if (t in e)
|
|
@@ -3905,92 +3940,92 @@ function qn(e, t) {
|
|
|
3905
3940
|
n = void 0;
|
|
3906
3941
|
return n;
|
|
3907
3942
|
}
|
|
3908
|
-
const M = {},
|
|
3943
|
+
const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
|
|
3909
3944
|
if (t == null)
|
|
3910
3945
|
return;
|
|
3911
3946
|
if (t in M && e in M[t])
|
|
3912
3947
|
return M[t][e];
|
|
3913
|
-
const r =
|
|
3948
|
+
const r = Te(t);
|
|
3914
3949
|
for (let n = 0; n < r.length; n++) {
|
|
3915
|
-
const i = r[n], o =
|
|
3950
|
+
const i = r[n], o = ni(i, e);
|
|
3916
3951
|
if (o)
|
|
3917
|
-
return
|
|
3952
|
+
return ti(e, t, o);
|
|
3918
3953
|
}
|
|
3919
3954
|
};
|
|
3920
|
-
let
|
|
3921
|
-
const ue =
|
|
3922
|
-
function
|
|
3923
|
-
return
|
|
3955
|
+
let et;
|
|
3956
|
+
const ue = _e({});
|
|
3957
|
+
function ri(e) {
|
|
3958
|
+
return et[e] || null;
|
|
3924
3959
|
}
|
|
3925
|
-
function
|
|
3926
|
-
return e in
|
|
3960
|
+
function tr(e) {
|
|
3961
|
+
return e in et;
|
|
3927
3962
|
}
|
|
3928
|
-
function
|
|
3929
|
-
if (!
|
|
3963
|
+
function ni(e, t) {
|
|
3964
|
+
if (!tr(e))
|
|
3930
3965
|
return null;
|
|
3931
|
-
const r =
|
|
3932
|
-
return
|
|
3966
|
+
const r = ri(e);
|
|
3967
|
+
return ei(r, t);
|
|
3933
3968
|
}
|
|
3934
|
-
function
|
|
3969
|
+
function ii(e) {
|
|
3935
3970
|
if (e == null)
|
|
3936
3971
|
return;
|
|
3937
|
-
const t =
|
|
3972
|
+
const t = Te(e);
|
|
3938
3973
|
for (let r = 0; r < t.length; r++) {
|
|
3939
3974
|
const n = t[r];
|
|
3940
|
-
if (
|
|
3975
|
+
if (tr(n))
|
|
3941
3976
|
return n;
|
|
3942
3977
|
}
|
|
3943
3978
|
}
|
|
3944
|
-
function
|
|
3945
|
-
delete M[e], ue.update((r) => (r[e] =
|
|
3979
|
+
function rr(e, ...t) {
|
|
3980
|
+
delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
|
|
3946
3981
|
}
|
|
3947
|
-
|
|
3982
|
+
q(
|
|
3948
3983
|
[ue],
|
|
3949
3984
|
([e]) => Object.keys(e)
|
|
3950
3985
|
);
|
|
3951
|
-
ue.subscribe((e) =>
|
|
3952
|
-
const
|
|
3953
|
-
function
|
|
3954
|
-
|
|
3986
|
+
ue.subscribe((e) => et = e);
|
|
3987
|
+
const de = {};
|
|
3988
|
+
function oi(e, t) {
|
|
3989
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3955
3990
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return
|
|
3991
|
+
function nr(e) {
|
|
3992
|
+
return de[e];
|
|
3958
3993
|
}
|
|
3959
|
-
function
|
|
3960
|
-
return
|
|
3961
|
-
const r =
|
|
3994
|
+
function si(e) {
|
|
3995
|
+
return Te(e).map((t) => {
|
|
3996
|
+
const r = nr(t);
|
|
3962
3997
|
return [t, r ? [...r] : []];
|
|
3963
3998
|
}).filter(([, t]) => t.length > 0);
|
|
3964
3999
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return e == null ? !1 :
|
|
4000
|
+
function qe(e) {
|
|
4001
|
+
return e == null ? !1 : Te(e).some(
|
|
3967
4002
|
(t) => {
|
|
3968
4003
|
var r;
|
|
3969
|
-
return (r =
|
|
4004
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3970
4005
|
}
|
|
3971
4006
|
);
|
|
3972
4007
|
}
|
|
3973
|
-
function
|
|
4008
|
+
function ai(e, t) {
|
|
3974
4009
|
return Promise.all(
|
|
3975
|
-
t.map((n) => (
|
|
3976
|
-
).then((n) =>
|
|
3977
|
-
}
|
|
3978
|
-
const
|
|
3979
|
-
function
|
|
3980
|
-
if (!
|
|
3981
|
-
return e in
|
|
3982
|
-
const t =
|
|
3983
|
-
return
|
|
4010
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
4011
|
+
).then((n) => rr(e, ...n));
|
|
4012
|
+
}
|
|
4013
|
+
const K = {};
|
|
4014
|
+
function ir(e) {
|
|
4015
|
+
if (!qe(e))
|
|
4016
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4017
|
+
const t = si(e);
|
|
4018
|
+
return K[e] = Promise.all(
|
|
3984
4019
|
t.map(
|
|
3985
|
-
([r, n]) =>
|
|
4020
|
+
([r, n]) => ai(r, n)
|
|
3986
4021
|
)
|
|
3987
4022
|
).then(() => {
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
3990
|
-
delete
|
|
3991
|
-
}),
|
|
4023
|
+
if (qe(e))
|
|
4024
|
+
return ir(e);
|
|
4025
|
+
delete K[e];
|
|
4026
|
+
}), K[e];
|
|
3992
4027
|
}
|
|
3993
|
-
const
|
|
4028
|
+
const ui = {
|
|
3994
4029
|
number: {
|
|
3995
4030
|
scientific: { notation: "scientific" },
|
|
3996
4031
|
engineering: { notation: "engineering" },
|
|
@@ -4019,135 +4054,135 @@ const ii = {
|
|
|
4019
4054
|
timeZoneName: "short"
|
|
4020
4055
|
}
|
|
4021
4056
|
}
|
|
4022
|
-
},
|
|
4057
|
+
}, hi = {
|
|
4023
4058
|
fallbackLocale: null,
|
|
4024
4059
|
loadingDelay: 200,
|
|
4025
|
-
formats:
|
|
4060
|
+
formats: ui,
|
|
4026
4061
|
warnOnMissingMessages: !0,
|
|
4027
4062
|
handleMissingMessage: void 0,
|
|
4028
4063
|
ignoreTag: !0
|
|
4029
|
-
},
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4032
|
-
}
|
|
4033
|
-
const
|
|
4034
|
-
var
|
|
4035
|
-
for (var r in t)
|
|
4036
|
-
|
|
4037
|
-
if (
|
|
4038
|
-
for (var r of
|
|
4039
|
-
|
|
4064
|
+
}, li = hi;
|
|
4065
|
+
function Z() {
|
|
4066
|
+
return li;
|
|
4067
|
+
}
|
|
4068
|
+
const Ne = _e(!1);
|
|
4069
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
4070
|
+
for (var r in t || (t = {}))
|
|
4071
|
+
mi.call(t, r) && xt(e, r, t[r]);
|
|
4072
|
+
if (Et)
|
|
4073
|
+
for (var r of Et(t))
|
|
4074
|
+
di.call(t, r) && xt(e, r, t[r]);
|
|
4040
4075
|
return e;
|
|
4041
|
-
},
|
|
4042
|
-
let
|
|
4043
|
-
const
|
|
4044
|
-
function
|
|
4076
|
+
}, yi = (e, t) => fi(e, pi(t));
|
|
4077
|
+
let Je;
|
|
4078
|
+
const ye = _e(null);
|
|
4079
|
+
function Tt(e) {
|
|
4045
4080
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4046
4081
|
}
|
|
4047
|
-
function
|
|
4048
|
-
const r =
|
|
4049
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4082
|
+
function Te(e, t = Z().fallbackLocale) {
|
|
4083
|
+
const r = Tt(e);
|
|
4084
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
|
|
4050
4085
|
}
|
|
4051
4086
|
function U() {
|
|
4052
|
-
return
|
|
4087
|
+
return Je ?? void 0;
|
|
4053
4088
|
}
|
|
4054
|
-
|
|
4055
|
-
|
|
4089
|
+
ye.subscribe((e) => {
|
|
4090
|
+
Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4056
4091
|
});
|
|
4057
|
-
const
|
|
4058
|
-
if (e &&
|
|
4059
|
-
const { loadingDelay: t } =
|
|
4092
|
+
const gi = (e) => {
|
|
4093
|
+
if (e && ii(e) && qe(e)) {
|
|
4094
|
+
const { loadingDelay: t } = Z();
|
|
4060
4095
|
let r;
|
|
4061
4096
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4062
|
-
() =>
|
|
4097
|
+
() => Ne.set(!0),
|
|
4063
4098
|
t
|
|
4064
|
-
) :
|
|
4065
|
-
|
|
4099
|
+
) : Ne.set(!0), ir(e).then(() => {
|
|
4100
|
+
ye.set(e);
|
|
4066
4101
|
}).finally(() => {
|
|
4067
|
-
clearTimeout(r),
|
|
4102
|
+
clearTimeout(r), Ne.set(!1);
|
|
4068
4103
|
});
|
|
4069
4104
|
}
|
|
4070
|
-
return
|
|
4071
|
-
},
|
|
4072
|
-
set:
|
|
4073
|
-
}),
|
|
4105
|
+
return ye.set(e);
|
|
4106
|
+
}, J = yi(bi({}, ye), {
|
|
4107
|
+
set: gi
|
|
4108
|
+
}), He = (e) => {
|
|
4074
4109
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4075
4110
|
return (n) => {
|
|
4076
4111
|
const i = JSON.stringify(n);
|
|
4077
4112
|
return i in t ? t[i] : t[i] = e(n);
|
|
4078
4113
|
};
|
|
4079
4114
|
};
|
|
4080
|
-
var
|
|
4115
|
+
var vi = Object.defineProperty, ge = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4081
4116
|
for (var r in t || (t = {}))
|
|
4082
|
-
|
|
4083
|
-
if (
|
|
4084
|
-
for (var r of
|
|
4085
|
-
|
|
4117
|
+
or.call(t, r) && Ht(e, r, t[r]);
|
|
4118
|
+
if (ge)
|
|
4119
|
+
for (var r of ge(t))
|
|
4120
|
+
sr.call(t, r) && Ht(e, r, t[r]);
|
|
4086
4121
|
return e;
|
|
4087
|
-
},
|
|
4122
|
+
}, Y = (e, t) => {
|
|
4088
4123
|
var r = {};
|
|
4089
4124
|
for (var n in e)
|
|
4090
|
-
|
|
4091
|
-
if (e != null &&
|
|
4092
|
-
for (var n of
|
|
4093
|
-
t.indexOf(n) < 0 &&
|
|
4125
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4126
|
+
if (e != null && ge)
|
|
4127
|
+
for (var n of ge(e))
|
|
4128
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4094
4129
|
return r;
|
|
4095
4130
|
};
|
|
4096
|
-
const
|
|
4097
|
-
const { formats: r } =
|
|
4131
|
+
const ie = (e, t) => {
|
|
4132
|
+
const { formats: r } = Z();
|
|
4098
4133
|
if (e in r && t in r[e])
|
|
4099
4134
|
return r[e][t];
|
|
4100
4135
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4101
|
-
},
|
|
4136
|
+
}, _i = He(
|
|
4102
4137
|
(e) => {
|
|
4103
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4138
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4104
4139
|
if (r == null)
|
|
4105
4140
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4106
|
-
return n && (i =
|
|
4141
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4107
4142
|
}
|
|
4108
|
-
),
|
|
4143
|
+
), Ei = He(
|
|
4109
4144
|
(e) => {
|
|
4110
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4145
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4111
4146
|
if (r == null)
|
|
4112
4147
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4113
|
-
return n ? i =
|
|
4148
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4114
4149
|
}
|
|
4115
|
-
),
|
|
4150
|
+
), xi = He(
|
|
4116
4151
|
(e) => {
|
|
4117
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4152
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4118
4153
|
if (r == null)
|
|
4119
4154
|
throw new Error(
|
|
4120
4155
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4121
4156
|
);
|
|
4122
|
-
return n ? i =
|
|
4157
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4123
4158
|
}
|
|
4124
|
-
),
|
|
4159
|
+
), Ti = (e = {}) => {
|
|
4125
4160
|
var t = e, {
|
|
4126
4161
|
locale: r = U()
|
|
4127
|
-
} = t, n =
|
|
4162
|
+
} = t, n = Y(t, [
|
|
4128
4163
|
"locale"
|
|
4129
4164
|
]);
|
|
4130
|
-
return
|
|
4131
|
-
},
|
|
4165
|
+
return _i(tt({ locale: r }, n));
|
|
4166
|
+
}, Hi = (e = {}) => {
|
|
4132
4167
|
var t = e, {
|
|
4133
4168
|
locale: r = U()
|
|
4134
|
-
} = t, n =
|
|
4169
|
+
} = t, n = Y(t, [
|
|
4135
4170
|
"locale"
|
|
4136
4171
|
]);
|
|
4137
|
-
return
|
|
4138
|
-
},
|
|
4172
|
+
return Ei(tt({ locale: r }, n));
|
|
4173
|
+
}, Si = (e = {}) => {
|
|
4139
4174
|
var t = e, {
|
|
4140
4175
|
locale: r = U()
|
|
4141
|
-
} = t, n =
|
|
4176
|
+
} = t, n = Y(t, [
|
|
4142
4177
|
"locale"
|
|
4143
4178
|
]);
|
|
4144
|
-
return
|
|
4145
|
-
},
|
|
4179
|
+
return xi(tt({ locale: r }, n));
|
|
4180
|
+
}, wi = He(
|
|
4146
4181
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4147
|
-
(e, t = U()) => new
|
|
4148
|
-
ignoreTag:
|
|
4182
|
+
(e, t = U()) => new Kn(e, t, Z().formats, {
|
|
4183
|
+
ignoreTag: Z().ignoreTag
|
|
4149
4184
|
})
|
|
4150
|
-
),
|
|
4185
|
+
), Bi = (e, t = {}) => {
|
|
4151
4186
|
var r, n, i, o;
|
|
4152
4187
|
let a = t;
|
|
4153
4188
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4160,39 +4195,39 @@ const oe = (e, t) => {
|
|
|
4160
4195
|
throw new Error(
|
|
4161
4196
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4162
4197
|
);
|
|
4163
|
-
let h =
|
|
4198
|
+
let h = er(e, l);
|
|
4164
4199
|
if (!h)
|
|
4165
|
-
h = (o = (i = (n = (r =
|
|
4200
|
+
h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4166
4201
|
else if (typeof h != "string")
|
|
4167
4202
|
return console.warn(
|
|
4168
4203
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4169
4204
|
), h;
|
|
4170
4205
|
if (!s)
|
|
4171
4206
|
return h;
|
|
4172
|
-
let
|
|
4207
|
+
let c = h;
|
|
4173
4208
|
try {
|
|
4174
|
-
|
|
4175
|
-
} catch (
|
|
4176
|
-
|
|
4209
|
+
c = wi(h, l).format(s);
|
|
4210
|
+
} catch (f) {
|
|
4211
|
+
f instanceof Error && console.warn(
|
|
4177
4212
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4178
|
-
|
|
4213
|
+
f.message
|
|
4179
4214
|
);
|
|
4180
4215
|
}
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
window.emWidgets = { topic:
|
|
4188
|
-
const
|
|
4189
|
-
function
|
|
4190
|
-
|
|
4191
|
-
}
|
|
4192
|
-
function
|
|
4193
|
-
|
|
4194
|
-
}
|
|
4195
|
-
const
|
|
4216
|
+
return c;
|
|
4217
|
+
}, Ai = (e, t) => Si(t).format(e), Pi = (e, t) => Hi(t).format(e), Oi = (e, t) => Ti(t).format(e), Ii = (e, t = U()) => er(e, t), Ni = q([J, ue], () => Bi);
|
|
4218
|
+
q([J], () => Ai);
|
|
4219
|
+
q([J], () => Pi);
|
|
4220
|
+
q([J], () => Oi);
|
|
4221
|
+
q([J, ue], () => Ii);
|
|
4222
|
+
window.emWidgets = { topic: kr };
|
|
4223
|
+
const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4224
|
+
function St(e, t) {
|
|
4225
|
+
rr(e, t);
|
|
4226
|
+
}
|
|
4227
|
+
function Ci(e) {
|
|
4228
|
+
J.set(e);
|
|
4229
|
+
}
|
|
4230
|
+
const wt = {
|
|
4196
4231
|
en: {
|
|
4197
4232
|
titleTransactionHistory: "Transaction History",
|
|
4198
4233
|
loading: "Loading, please wait ..."
|
|
@@ -4234,13 +4269,13 @@ const xt = {
|
|
|
4234
4269
|
loading: "Loading, please wait ..."
|
|
4235
4270
|
}
|
|
4236
4271
|
};
|
|
4237
|
-
function
|
|
4272
|
+
function Mi(e, t) {
|
|
4238
4273
|
if (e) {
|
|
4239
4274
|
const r = document.createElement("style");
|
|
4240
4275
|
r.innerHTML = t, e.appendChild(r);
|
|
4241
4276
|
}
|
|
4242
4277
|
}
|
|
4243
|
-
function
|
|
4278
|
+
function $i(e, t) {
|
|
4244
4279
|
const r = new URL(t);
|
|
4245
4280
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4246
4281
|
const i = document.createElement("style");
|
|
@@ -4249,7 +4284,7 @@ function Ni(e, t) {
|
|
|
4249
4284
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4250
4285
|
});
|
|
4251
4286
|
}
|
|
4252
|
-
function
|
|
4287
|
+
function Ri(e, t, r) {
|
|
4253
4288
|
if (window.emMessageBus) {
|
|
4254
4289
|
const n = document.createElement("style");
|
|
4255
4290
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4257,142 +4292,142 @@ function Li(e, t, r) {
|
|
|
4257
4292
|
});
|
|
4258
4293
|
}
|
|
4259
4294
|
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4295
|
+
function Ui(e) {
|
|
4296
|
+
hr(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}");
|
|
4262
4297
|
}
|
|
4263
|
-
function
|
|
4264
|
-
let t, r, n, i, o, a, s, l, u, h,
|
|
4298
|
+
function Di(e) {
|
|
4299
|
+
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4265
4300
|
/*$_*/
|
|
4266
4301
|
e[3]("titleTransactionHistory") + ""
|
|
4267
|
-
),
|
|
4302
|
+
), f, p, g;
|
|
4268
4303
|
return {
|
|
4269
4304
|
c() {
|
|
4270
|
-
t =
|
|
4305
|
+
t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), o = te(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Le(), h = N("h2"), f = te(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "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(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
|
|
4271
4306
|
},
|
|
4272
|
-
m(
|
|
4273
|
-
|
|
4307
|
+
m(m, T) {
|
|
4308
|
+
se(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (g = fr(
|
|
4274
4309
|
t,
|
|
4275
4310
|
"click",
|
|
4276
4311
|
/*click_handler*/
|
|
4277
4312
|
e[14]
|
|
4278
|
-
),
|
|
4313
|
+
), p = !0);
|
|
4279
4314
|
},
|
|
4280
|
-
p(
|
|
4315
|
+
p(m, T) {
|
|
4281
4316
|
T & /*$_*/
|
|
4282
|
-
8 &&
|
|
4283
|
-
|
|
4317
|
+
8 && c !== (c = /*$_*/
|
|
4318
|
+
m[3]("titleTransactionHistory") + "") && Ke(f, c);
|
|
4284
4319
|
},
|
|
4285
|
-
d(
|
|
4286
|
-
|
|
4320
|
+
d(m) {
|
|
4321
|
+
m && Q(t), p = !1, g();
|
|
4287
4322
|
}
|
|
4288
4323
|
};
|
|
4289
4324
|
}
|
|
4290
|
-
function
|
|
4325
|
+
function Gi(e) {
|
|
4291
4326
|
let t, r, n;
|
|
4292
4327
|
return {
|
|
4293
4328
|
c() {
|
|
4294
|
-
t =
|
|
4329
|
+
t = N("div"), r = N("iframe"), nt(r.src, n = /*iframeUrl*/
|
|
4295
4330
|
e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
|
|
4296
4331
|
},
|
|
4297
4332
|
m(i, o) {
|
|
4298
|
-
|
|
4333
|
+
se(i, t, o), x(t, r);
|
|
4299
4334
|
},
|
|
4300
4335
|
p(i, o) {
|
|
4301
4336
|
o & /*iframeUrl*/
|
|
4302
|
-
4 && !
|
|
4337
|
+
4 && !nt(r.src, n = /*iframeUrl*/
|
|
4303
4338
|
i[2]) && E(r, "src", n);
|
|
4304
4339
|
},
|
|
4305
4340
|
d(i) {
|
|
4306
|
-
i &&
|
|
4341
|
+
i && Q(t);
|
|
4307
4342
|
}
|
|
4308
4343
|
};
|
|
4309
4344
|
}
|
|
4310
|
-
function
|
|
4345
|
+
function Fi(e) {
|
|
4311
4346
|
let t, r = (
|
|
4312
4347
|
/*$_*/
|
|
4313
4348
|
e[3]("loading") + ""
|
|
4314
4349
|
), n;
|
|
4315
4350
|
return {
|
|
4316
4351
|
c() {
|
|
4317
|
-
t =
|
|
4352
|
+
t = N("p"), n = te(r);
|
|
4318
4353
|
},
|
|
4319
4354
|
m(i, o) {
|
|
4320
|
-
|
|
4355
|
+
se(i, t, o), x(t, n);
|
|
4321
4356
|
},
|
|
4322
4357
|
p(i, o) {
|
|
4323
4358
|
o & /*$_*/
|
|
4324
4359
|
8 && r !== (r = /*$_*/
|
|
4325
|
-
i[3]("loading") + "") &&
|
|
4360
|
+
i[3]("loading") + "") && Ke(n, r);
|
|
4326
4361
|
},
|
|
4327
4362
|
d(i) {
|
|
4328
|
-
i &&
|
|
4363
|
+
i && Q(t);
|
|
4329
4364
|
}
|
|
4330
4365
|
};
|
|
4331
4366
|
}
|
|
4332
|
-
function
|
|
4367
|
+
function ji(e) {
|
|
4333
4368
|
let t, r, n, i = (
|
|
4334
4369
|
/*$_*/
|
|
4335
4370
|
e[3]("titleTransactionHistory") + ""
|
|
4336
4371
|
), o, a, s = (
|
|
4337
4372
|
/*isMobile*/
|
|
4338
|
-
e[4] &&
|
|
4373
|
+
e[4] && Di(e)
|
|
4339
4374
|
);
|
|
4340
|
-
function l(
|
|
4375
|
+
function l(c, f) {
|
|
4341
4376
|
return (
|
|
4342
4377
|
/*isLoading*/
|
|
4343
|
-
|
|
4378
|
+
c[1] ? Fi : Gi
|
|
4344
4379
|
);
|
|
4345
4380
|
}
|
|
4346
4381
|
let u = l(e), h = u(e);
|
|
4347
4382
|
return {
|
|
4348
4383
|
c() {
|
|
4349
|
-
t =
|
|
4384
|
+
t = N("div"), s && s.c(), r = Le(), n = N("h2"), o = te(i), a = Le(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
|
|
4350
4385
|
(e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
|
|
4351
4386
|
(e[4] ? "TransactionHistoryWrapperMobile" : ""));
|
|
4352
4387
|
},
|
|
4353
|
-
m(
|
|
4354
|
-
|
|
4388
|
+
m(c, f) {
|
|
4389
|
+
se(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
|
|
4355
4390
|
},
|
|
4356
|
-
p(
|
|
4391
|
+
p(c, [f]) {
|
|
4357
4392
|
/*isMobile*/
|
|
4358
|
-
|
|
4393
|
+
c[4] && s.p(c, f), f & /*$_*/
|
|
4359
4394
|
8 && i !== (i = /*$_*/
|
|
4360
|
-
|
|
4395
|
+
c[3]("titleTransactionHistory") + "") && Ke(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4361
4396
|
},
|
|
4362
4397
|
i: w,
|
|
4363
4398
|
o: w,
|
|
4364
|
-
d(
|
|
4365
|
-
|
|
4399
|
+
d(c) {
|
|
4400
|
+
c && Q(t), s && s.d(), h.d(), e[15](null);
|
|
4366
4401
|
}
|
|
4367
4402
|
};
|
|
4368
4403
|
}
|
|
4369
|
-
function
|
|
4404
|
+
function ki(e, t, r) {
|
|
4370
4405
|
let n;
|
|
4371
|
-
|
|
4372
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl:
|
|
4406
|
+
ur(e, Ni, (y) => r(3, n = y));
|
|
4407
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, g = Li(p) !== "PC", m = !0, T = "";
|
|
4373
4408
|
const $ = () => {
|
|
4374
|
-
fetch(
|
|
4409
|
+
fetch(c).then((L) => L.json()).then((L) => {
|
|
4375
4410
|
Object.keys(L).forEach((C) => {
|
|
4376
|
-
|
|
4411
|
+
St(C, L[C]);
|
|
4377
4412
|
});
|
|
4378
4413
|
}).catch((L) => {
|
|
4379
4414
|
console.log(L);
|
|
4380
4415
|
});
|
|
4381
4416
|
};
|
|
4382
|
-
Object.keys(
|
|
4383
|
-
|
|
4417
|
+
Object.keys(wt).forEach((y) => {
|
|
4418
|
+
St(y, wt[y]);
|
|
4384
4419
|
});
|
|
4385
|
-
const
|
|
4420
|
+
const P = () => {
|
|
4386
4421
|
window.postMessage(
|
|
4387
4422
|
{
|
|
4388
4423
|
type: "PlayerAccountMenuActive",
|
|
4389
|
-
isMobile:
|
|
4424
|
+
isMobile: g
|
|
4390
4425
|
},
|
|
4391
4426
|
window.location.href
|
|
4392
4427
|
);
|
|
4393
4428
|
}, S = () => {
|
|
4394
|
-
let
|
|
4395
|
-
|
|
4429
|
+
let y = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
|
|
4430
|
+
y.searchParams.append("language", s);
|
|
4396
4431
|
let L = {
|
|
4397
4432
|
method: "GET",
|
|
4398
4433
|
headers: {
|
|
@@ -4400,42 +4435,42 @@ function Di(e, t, r) {
|
|
|
4400
4435
|
accept: "application/json"
|
|
4401
4436
|
}
|
|
4402
4437
|
};
|
|
4403
|
-
fetch(
|
|
4438
|
+
fetch(y.href, L).then((C) => C.json()).then(
|
|
4404
4439
|
(C) => {
|
|
4405
|
-
r(1,
|
|
4440
|
+
r(1, m = !1), r(2, T = C.CashierUrl);
|
|
4406
4441
|
},
|
|
4407
4442
|
(C) => {
|
|
4408
4443
|
console.error(C);
|
|
4409
4444
|
}
|
|
4410
4445
|
);
|
|
4411
4446
|
}, R = () => {
|
|
4412
|
-
|
|
4447
|
+
Ci(s);
|
|
4413
4448
|
};
|
|
4414
|
-
|
|
4449
|
+
br(() => () => {
|
|
4415
4450
|
});
|
|
4416
|
-
const
|
|
4417
|
-
function D(
|
|
4418
|
-
|
|
4419
|
-
|
|
4451
|
+
const O = () => P();
|
|
4452
|
+
function D(y) {
|
|
4453
|
+
Ce[y ? "unshift" : "push"](() => {
|
|
4454
|
+
f = y, r(0, f);
|
|
4420
4455
|
});
|
|
4421
4456
|
}
|
|
4422
|
-
return e.$$set = (
|
|
4423
|
-
"endpoint" in
|
|
4457
|
+
return e.$$set = (y) => {
|
|
4458
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, a = y.playerid), "lang" in y && r(9, s = y.lang), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, h = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
|
|
4424
4459
|
}, e.$$.update = () => {
|
|
4425
4460
|
e.$$.dirty & /*lang*/
|
|
4426
4461
|
512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
|
|
4427
4462
|
960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4428
|
-
1025 && l &&
|
|
4429
|
-
2049 && u &&
|
|
4430
|
-
4097 && h &&
|
|
4431
|
-
8192 &&
|
|
4463
|
+
1025 && l && f && Mi(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4464
|
+
2049 && u && f && $i(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4465
|
+
4097 && h && f && Ri(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4466
|
+
8192 && c && $();
|
|
4432
4467
|
}, [
|
|
4433
|
-
|
|
4434
|
-
|
|
4468
|
+
f,
|
|
4469
|
+
m,
|
|
4435
4470
|
T,
|
|
4436
4471
|
n,
|
|
4437
|
-
|
|
4438
|
-
|
|
4472
|
+
g,
|
|
4473
|
+
P,
|
|
4439
4474
|
i,
|
|
4440
4475
|
o,
|
|
4441
4476
|
a,
|
|
@@ -4443,19 +4478,19 @@ function Di(e, t, r) {
|
|
|
4443
4478
|
l,
|
|
4444
4479
|
u,
|
|
4445
4480
|
h,
|
|
4446
|
-
|
|
4447
|
-
|
|
4481
|
+
c,
|
|
4482
|
+
O,
|
|
4448
4483
|
D
|
|
4449
4484
|
];
|
|
4450
4485
|
}
|
|
4451
|
-
class
|
|
4486
|
+
class Vi extends Ar {
|
|
4452
4487
|
constructor(t) {
|
|
4453
|
-
super(),
|
|
4488
|
+
super(), wr(
|
|
4454
4489
|
this,
|
|
4455
4490
|
t,
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4491
|
+
ki,
|
|
4492
|
+
ji,
|
|
4493
|
+
At,
|
|
4459
4494
|
{
|
|
4460
4495
|
endpoint: 6,
|
|
4461
4496
|
session: 7,
|
|
@@ -4466,7 +4501,7 @@ class Gi extends Hr {
|
|
|
4466
4501
|
mbsource: 12,
|
|
4467
4502
|
translationurl: 13
|
|
4468
4503
|
},
|
|
4469
|
-
|
|
4504
|
+
Ui
|
|
4470
4505
|
);
|
|
4471
4506
|
}
|
|
4472
4507
|
get endpoint() {
|
|
@@ -4518,7 +4553,7 @@ class Gi extends Hr {
|
|
|
4518
4553
|
this.$$set({ translationurl: t }), B();
|
|
4519
4554
|
}
|
|
4520
4555
|
}
|
|
4521
|
-
|
|
4556
|
+
Br(Vi, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4522
4557
|
export {
|
|
4523
|
-
|
|
4558
|
+
Vi as P
|
|
4524
4559
|
};
|