@everymatrix/player-account-gaming-limits-wrapper-2-nd 1.53.0 → 1.53.11
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/{PlayerAccountGamingLimitsHistory2Nd-B7zcUPMs.js → PlayerAccountGamingLimitsHistory2Nd-DUvnDph9.js} +1033 -1084
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B7aazRxI.js → PlayerAccountGamingLimitsPage2Gm16Nd-CYuehZ4x.js} +859 -890
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-QA3TP1Ga.js → PlayerAccountGamingLimitsWrapper2Nd-BZrPkzuY.js} +115 -121
- package/esnext/player-account-gaming-limits-wrapper-2-nd.js +14 -0
- package/package.json +12 -12
- package/components/PlayerAccountGamingLimitsHistory2Nd-Dfp0E_jC.cjs +0 -5
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DHIn7X0L.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-DMF2z6jt.cjs +0 -1
- package/es2015/player-account-gaming-limits-wrapper-2-nd.cjs +0 -1
- package/es2015/player-account-gaming-limits-wrapper-2-nd.js +0 -19
|
@@ -1,82 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
var jr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var pt = Object.getOwnPropertySymbols;
|
|
4
|
-
var kr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Me = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ye = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
kr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
-
if (pt)
|
|
9
|
-
for (var r of pt(t))
|
|
10
|
-
Vr.call(t, r) && Me(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, dt = (e, t) => Fr(e, jr(t));
|
|
13
|
-
var M = (e, t, r) => Me(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var yt = (e, t, r) => new Promise((i, n) => {
|
|
15
|
-
var o = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
s(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
n(u);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
s(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
n(u);
|
|
26
|
-
}
|
|
27
|
-
}, s = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
-
s((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function O() {
|
|
1
|
+
function C() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Rt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function lt() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function ce(e) {
|
|
10
|
+
e.forEach(Rt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function nt(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Dt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function Cr(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function zt(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const i of t)
|
|
53
24
|
i(void 0);
|
|
54
|
-
return
|
|
25
|
+
return C;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
61
32
|
}
|
|
62
|
-
function
|
|
63
|
-
return e
|
|
33
|
+
function ht(e) {
|
|
34
|
+
return e ?? "";
|
|
64
35
|
}
|
|
65
|
-
const
|
|
36
|
+
const bo = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
66
37
|
// @ts-ignore Node typings have this
|
|
67
38
|
global
|
|
68
39
|
);
|
|
69
40
|
function L(e, t) {
|
|
70
41
|
e.appendChild(t);
|
|
71
42
|
}
|
|
72
|
-
function
|
|
73
|
-
const i =
|
|
43
|
+
function Nr(e, t, r) {
|
|
44
|
+
const i = Mr(e);
|
|
74
45
|
if (!i.getElementById(t)) {
|
|
75
46
|
const n = H("style");
|
|
76
|
-
n.id = t, n.textContent = r,
|
|
47
|
+
n.id = t, n.textContent = r, Rr(i, n);
|
|
77
48
|
}
|
|
78
49
|
}
|
|
79
|
-
function
|
|
50
|
+
function Mr(e) {
|
|
80
51
|
if (!e) return document;
|
|
81
52
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
82
53
|
return t && /** @type {ShadowRoot} */
|
|
@@ -85,65 +56,65 @@ function Qr(e) {
|
|
|
85
56
|
t
|
|
86
57
|
) : e.ownerDocument;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function Rr(e, t) {
|
|
89
60
|
return L(
|
|
90
61
|
/** @type {Document} */
|
|
91
62
|
e.head || e,
|
|
92
63
|
t
|
|
93
64
|
), t.sheet;
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function V(e, t, r) {
|
|
96
67
|
e.insertBefore(t, r || null);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function j(e) {
|
|
99
70
|
e.parentNode && e.parentNode.removeChild(e);
|
|
100
71
|
}
|
|
101
|
-
function
|
|
72
|
+
function Dr(e, t) {
|
|
102
73
|
for (let r = 0; r < e.length; r += 1)
|
|
103
74
|
e[r] && e[r].d(t);
|
|
104
75
|
}
|
|
105
76
|
function H(e) {
|
|
106
77
|
return document.createElement(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
79
|
+
function Ie(e) {
|
|
109
80
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
110
81
|
}
|
|
111
|
-
function
|
|
82
|
+
function M(e) {
|
|
112
83
|
return document.createTextNode(e);
|
|
113
84
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
85
|
+
function Fe() {
|
|
86
|
+
return M(" ");
|
|
116
87
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
88
|
+
function go() {
|
|
89
|
+
return M("");
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function zr(e, t, r, i) {
|
|
121
92
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
122
93
|
}
|
|
123
|
-
function
|
|
94
|
+
function E(e, t, r) {
|
|
124
95
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
125
96
|
}
|
|
126
|
-
function
|
|
97
|
+
function vo(e, t, r) {
|
|
127
98
|
const i = t.toLowerCase();
|
|
128
|
-
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
99
|
+
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
|
|
129
100
|
}
|
|
130
|
-
function
|
|
101
|
+
function _o(e) {
|
|
131
102
|
return e === "" ? null : +e;
|
|
132
103
|
}
|
|
133
|
-
function
|
|
104
|
+
function $r(e) {
|
|
134
105
|
return Array.from(e.childNodes);
|
|
135
106
|
}
|
|
136
|
-
function
|
|
107
|
+
function F(e, t) {
|
|
137
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
138
109
|
t);
|
|
139
110
|
}
|
|
140
|
-
function
|
|
141
|
-
e.value = t
|
|
111
|
+
function xo(e, t) {
|
|
112
|
+
e.value = t ?? "";
|
|
142
113
|
}
|
|
143
|
-
function
|
|
114
|
+
function Ur(e, t, r, i) {
|
|
144
115
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
145
116
|
}
|
|
146
|
-
function
|
|
117
|
+
function Eo(e, t, r) {
|
|
147
118
|
for (let i = 0; i < e.options.length; i += 1) {
|
|
148
119
|
const n = e.options[i];
|
|
149
120
|
if (n.__value === t) {
|
|
@@ -153,14 +124,14 @@ function Ro(e, t, r) {
|
|
|
153
124
|
}
|
|
154
125
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
155
126
|
}
|
|
156
|
-
function
|
|
127
|
+
function To(e) {
|
|
157
128
|
const t = e.querySelector(":checked");
|
|
158
129
|
return t && t.__value;
|
|
159
130
|
}
|
|
160
|
-
function
|
|
131
|
+
function de(e, t, r) {
|
|
161
132
|
e.classList.toggle(t, !!r);
|
|
162
133
|
}
|
|
163
|
-
function
|
|
134
|
+
function Gr(e) {
|
|
164
135
|
const t = {};
|
|
165
136
|
return e.childNodes.forEach(
|
|
166
137
|
/** @param {Element} node */
|
|
@@ -169,248 +140,244 @@ function ti(e) {
|
|
|
169
140
|
}
|
|
170
141
|
), t;
|
|
171
142
|
}
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
143
|
+
let ue;
|
|
144
|
+
function ae(e) {
|
|
145
|
+
ue = e;
|
|
175
146
|
}
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
178
|
-
return
|
|
147
|
+
function Fr() {
|
|
148
|
+
if (!ue) throw new Error("Function called outside component initialization");
|
|
149
|
+
return ue;
|
|
179
150
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
151
|
+
function jr(e) {
|
|
152
|
+
Fr().$$.on_mount.push(e);
|
|
182
153
|
}
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
function
|
|
188
|
-
|
|
154
|
+
const Q = [], Ee = [];
|
|
155
|
+
let Y = [];
|
|
156
|
+
const ct = [], kr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let je = !1;
|
|
158
|
+
function Vr() {
|
|
159
|
+
je || (je = !0, kr.then(I));
|
|
189
160
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
161
|
+
function ke(e) {
|
|
162
|
+
Y.push(e);
|
|
192
163
|
}
|
|
193
|
-
const
|
|
194
|
-
let
|
|
164
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
165
|
+
let X = 0;
|
|
195
166
|
function I() {
|
|
196
|
-
if (
|
|
167
|
+
if (X !== 0)
|
|
197
168
|
return;
|
|
198
|
-
const e =
|
|
169
|
+
const e = ue;
|
|
199
170
|
do {
|
|
200
171
|
try {
|
|
201
|
-
for (;
|
|
202
|
-
const t =
|
|
203
|
-
|
|
172
|
+
for (; X < Q.length; ) {
|
|
173
|
+
const t = Q[X];
|
|
174
|
+
X++, ae(t), Wr(t.$$);
|
|
204
175
|
}
|
|
205
176
|
} catch (t) {
|
|
206
|
-
throw
|
|
177
|
+
throw Q.length = 0, X = 0, t;
|
|
207
178
|
}
|
|
208
|
-
for (
|
|
209
|
-
for (let t = 0; t <
|
|
210
|
-
const r =
|
|
211
|
-
|
|
179
|
+
for (ae(null), Q.length = 0, X = 0; Ee.length; ) Ee.pop()();
|
|
180
|
+
for (let t = 0; t < Y.length; t += 1) {
|
|
181
|
+
const r = Y[t];
|
|
182
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
212
183
|
}
|
|
213
|
-
|
|
214
|
-
} while (
|
|
215
|
-
for (;
|
|
216
|
-
|
|
217
|
-
|
|
184
|
+
Y.length = 0;
|
|
185
|
+
} while (Q.length);
|
|
186
|
+
for (; ct.length; )
|
|
187
|
+
ct.pop()();
|
|
188
|
+
je = !1, Ne.clear(), ae(e);
|
|
218
189
|
}
|
|
219
|
-
function
|
|
190
|
+
function Wr(e) {
|
|
220
191
|
if (e.fragment !== null) {
|
|
221
|
-
e.update(),
|
|
192
|
+
e.update(), ce(e.before_update);
|
|
222
193
|
const t = e.dirty;
|
|
223
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
194
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
|
|
224
195
|
}
|
|
225
196
|
}
|
|
226
|
-
function
|
|
197
|
+
function Xr(e) {
|
|
227
198
|
const t = [], r = [];
|
|
228
|
-
|
|
199
|
+
Y.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), Y = t;
|
|
229
200
|
}
|
|
230
|
-
const
|
|
231
|
-
function
|
|
232
|
-
e && e.i && (
|
|
201
|
+
const Zr = /* @__PURE__ */ new Set();
|
|
202
|
+
function Qr(e, t) {
|
|
203
|
+
e && e.i && (Zr.delete(e), e.i(t));
|
|
233
204
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
205
|
+
function ft(e) {
|
|
206
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
236
207
|
}
|
|
237
|
-
function
|
|
208
|
+
function Yr(e, t, r) {
|
|
238
209
|
const { fragment: i, after_update: n } = e.$$;
|
|
239
|
-
i && i.m(t, r),
|
|
240
|
-
const o = e.$$.on_mount.map(
|
|
241
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
242
|
-
}), n.forEach(
|
|
210
|
+
i && i.m(t, r), ke(() => {
|
|
211
|
+
const o = e.$$.on_mount.map(Rt).filter(nt);
|
|
212
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
213
|
+
}), n.forEach(ke);
|
|
243
214
|
}
|
|
244
|
-
function
|
|
215
|
+
function Jr(e, t) {
|
|
245
216
|
const r = e.$$;
|
|
246
|
-
r.fragment !== null && (
|
|
217
|
+
r.fragment !== null && (Xr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
247
218
|
}
|
|
248
|
-
function
|
|
249
|
-
e.$$.dirty[0] === -1 && (
|
|
219
|
+
function qr(e, t) {
|
|
220
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
250
221
|
}
|
|
251
|
-
function
|
|
252
|
-
const
|
|
253
|
-
|
|
222
|
+
function Kr(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
223
|
+
const h = ue;
|
|
224
|
+
ae(e);
|
|
254
225
|
const u = e.$$ = {
|
|
255
226
|
fragment: null,
|
|
256
227
|
ctx: [],
|
|
257
228
|
// state
|
|
258
229
|
props: o,
|
|
259
|
-
update:
|
|
230
|
+
update: C,
|
|
260
231
|
not_equal: n,
|
|
261
|
-
bound:
|
|
232
|
+
bound: lt(),
|
|
262
233
|
// lifecycle
|
|
263
234
|
on_mount: [],
|
|
264
235
|
on_destroy: [],
|
|
265
236
|
on_disconnect: [],
|
|
266
237
|
before_update: [],
|
|
267
238
|
after_update: [],
|
|
268
|
-
context: new Map(t.context || (
|
|
239
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
269
240
|
// everything else
|
|
270
|
-
callbacks:
|
|
241
|
+
callbacks: lt(),
|
|
271
242
|
dirty: s,
|
|
272
243
|
skip_bound: !1,
|
|
273
|
-
root: t.target ||
|
|
244
|
+
root: t.target || h.$$.root
|
|
274
245
|
};
|
|
275
246
|
a && a(u.root);
|
|
276
|
-
let
|
|
247
|
+
let l = !1;
|
|
277
248
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
278
249
|
const y = p.length ? p[0] : f;
|
|
279
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y),
|
|
280
|
-
}) : [], u.update(),
|
|
250
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && qr(e, c)), f;
|
|
251
|
+
}) : [], u.update(), l = !0, ce(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
281
252
|
if (t.hydrate) {
|
|
282
|
-
const c =
|
|
283
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
253
|
+
const c = $r(t.target);
|
|
254
|
+
u.fragment && u.fragment.l(c), c.forEach(j);
|
|
284
255
|
} else
|
|
285
256
|
u.fragment && u.fragment.c();
|
|
286
|
-
t.intro &&
|
|
257
|
+
t.intro && Qr(e.$$.fragment), Yr(e, t.target, t.anchor), I();
|
|
287
258
|
}
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
let
|
|
291
|
-
typeof HTMLElement == "function" && (
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
259
|
+
ae(h);
|
|
260
|
+
}
|
|
261
|
+
let $t;
|
|
262
|
+
typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
263
|
+
/** The Svelte component constructor */
|
|
264
|
+
$$ctor;
|
|
265
|
+
/** Slots */
|
|
266
|
+
$$s;
|
|
267
|
+
/** The Svelte component instance */
|
|
268
|
+
$$c;
|
|
269
|
+
/** Whether or not the custom element is connected */
|
|
270
|
+
$$cn = !1;
|
|
271
|
+
/** Component props data */
|
|
272
|
+
$$d = {};
|
|
273
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
274
|
+
$$r = !1;
|
|
275
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
276
|
+
$$p_d = {};
|
|
277
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
278
|
+
$$l = {};
|
|
279
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
281
|
+
constructor(e, t, r) {
|
|
282
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
313
283
|
}
|
|
314
|
-
addEventListener(t, r
|
|
315
|
-
if (this.$$l[
|
|
316
|
-
const
|
|
317
|
-
this.$$l_u.set(
|
|
284
|
+
addEventListener(e, t, r) {
|
|
285
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
286
|
+
const i = this.$$c.$on(e, t);
|
|
287
|
+
this.$$l_u.set(t, i);
|
|
318
288
|
}
|
|
319
|
-
super.addEventListener(t, r
|
|
289
|
+
super.addEventListener(e, t, r);
|
|
320
290
|
}
|
|
321
|
-
removeEventListener(t, r
|
|
322
|
-
if (super.removeEventListener(t, r
|
|
323
|
-
const
|
|
324
|
-
|
|
291
|
+
removeEventListener(e, t, r) {
|
|
292
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
293
|
+
const i = this.$$l_u.get(t);
|
|
294
|
+
i && (i(), this.$$l_u.delete(t));
|
|
325
295
|
}
|
|
326
296
|
}
|
|
327
|
-
connectedCallback() {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
};
|
|
297
|
+
async connectedCallback() {
|
|
298
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
299
|
+
let e = function(n) {
|
|
300
|
+
return () => {
|
|
301
|
+
let o;
|
|
302
|
+
return {
|
|
303
|
+
c: function() {
|
|
304
|
+
o = H("slot"), n !== "default" && E(o, "name", n);
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* @param {HTMLElement} target
|
|
308
|
+
* @param {HTMLElement} [anchor]
|
|
309
|
+
*/
|
|
310
|
+
m: function(h, u) {
|
|
311
|
+
V(h, o, u);
|
|
312
|
+
},
|
|
313
|
+
d: function(h) {
|
|
314
|
+
h && j(o);
|
|
315
|
+
}
|
|
348
316
|
};
|
|
349
317
|
};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
318
|
+
};
|
|
319
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
|
+
return;
|
|
321
|
+
const t = {}, r = Gr(this);
|
|
322
|
+
for (const n of this.$$s)
|
|
323
|
+
n in r && (t[n] = [e(n)]);
|
|
324
|
+
for (const n of this.attributes) {
|
|
325
|
+
const o = this.$$g_p(n.name);
|
|
326
|
+
o in this.$$d || (this.$$d[o] = ge(o, n.value, this.$$p_d, "toProp"));
|
|
327
|
+
}
|
|
328
|
+
for (const n in this.$$p_d)
|
|
329
|
+
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
330
|
+
this.$$c = new this.$$ctor({
|
|
331
|
+
target: this.shadowRoot || this,
|
|
332
|
+
props: {
|
|
333
|
+
...this.$$d,
|
|
334
|
+
$$slots: t,
|
|
335
|
+
$$scope: {
|
|
336
|
+
ctx: []
|
|
337
|
+
}
|
|
358
338
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
this.$$
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
this.$$r = !0;
|
|
372
|
-
for (const o in this.$$p_d)
|
|
373
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
374
|
-
const a = _e(
|
|
375
|
-
o,
|
|
376
|
-
this.$$d[o],
|
|
377
|
-
this.$$p_d,
|
|
378
|
-
"toAttribute"
|
|
379
|
-
);
|
|
380
|
-
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
381
|
-
}
|
|
382
|
-
this.$$r = !1;
|
|
383
|
-
};
|
|
384
|
-
this.$$c.$$.after_update.push(n), n();
|
|
385
|
-
for (const o in this.$$l)
|
|
386
|
-
for (const a of this.$$l[o]) {
|
|
387
|
-
const s = this.$$c.$on(o, a);
|
|
388
|
-
this.$$l_u.set(a, s);
|
|
339
|
+
});
|
|
340
|
+
const i = () => {
|
|
341
|
+
this.$$r = !0;
|
|
342
|
+
for (const n in this.$$p_d)
|
|
343
|
+
if (this.$$d[n] = this.$$c.$$.ctx[this.$$c.$$.props[n]], this.$$p_d[n].reflect) {
|
|
344
|
+
const o = ge(
|
|
345
|
+
n,
|
|
346
|
+
this.$$d[n],
|
|
347
|
+
this.$$p_d,
|
|
348
|
+
"toAttribute"
|
|
349
|
+
);
|
|
350
|
+
o == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, o);
|
|
389
351
|
}
|
|
390
|
-
this.$$
|
|
391
|
-
}
|
|
392
|
-
|
|
352
|
+
this.$$r = !1;
|
|
353
|
+
};
|
|
354
|
+
this.$$c.$$.after_update.push(i), i();
|
|
355
|
+
for (const n in this.$$l)
|
|
356
|
+
for (const o of this.$$l[n]) {
|
|
357
|
+
const a = this.$$c.$on(n, o);
|
|
358
|
+
this.$$l_u.set(o, a);
|
|
359
|
+
}
|
|
360
|
+
this.$$l = {};
|
|
361
|
+
}
|
|
393
362
|
}
|
|
394
363
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
395
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
396
|
-
attributeChangedCallback(t, r
|
|
397
|
-
|
|
398
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
365
|
+
attributeChangedCallback(e, t, r) {
|
|
366
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
399
367
|
}
|
|
400
368
|
disconnectedCallback() {
|
|
401
369
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
402
370
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
403
371
|
});
|
|
404
372
|
}
|
|
405
|
-
$$g_p(
|
|
373
|
+
$$g_p(e) {
|
|
406
374
|
return Object.keys(this.$$p_d).find(
|
|
407
|
-
(
|
|
408
|
-
) ||
|
|
375
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
376
|
+
) || e;
|
|
409
377
|
}
|
|
410
378
|
});
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
const n = (o = r[e]) == null ? void 0 : o.type;
|
|
379
|
+
function ge(e, t, r, i) {
|
|
380
|
+
const n = r[e]?.type;
|
|
414
381
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
415
382
|
return t;
|
|
416
383
|
if (i === "toAttribute")
|
|
@@ -421,7 +388,7 @@ function _e(e, t, r, i) {
|
|
|
421
388
|
case "Boolean":
|
|
422
389
|
return t ? "" : null;
|
|
423
390
|
case "Number":
|
|
424
|
-
return t
|
|
391
|
+
return t ?? null;
|
|
425
392
|
default:
|
|
426
393
|
return t;
|
|
427
394
|
}
|
|
@@ -438,8 +405,8 @@ function _e(e, t, r, i) {
|
|
|
438
405
|
return t;
|
|
439
406
|
}
|
|
440
407
|
}
|
|
441
|
-
function
|
|
442
|
-
let a = class extends
|
|
408
|
+
function ei(e, t, r, i, n, o) {
|
|
409
|
+
let a = class extends $t {
|
|
443
410
|
constructor() {
|
|
444
411
|
super(e, r, n), this.$$p_d = t;
|
|
445
412
|
}
|
|
@@ -454,43 +421,39 @@ function pi(e, t, r, i, n, o) {
|
|
|
454
421
|
get() {
|
|
455
422
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
456
423
|
},
|
|
457
|
-
set(
|
|
458
|
-
|
|
459
|
-
l = _e(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
424
|
+
set(h) {
|
|
425
|
+
h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
460
426
|
}
|
|
461
427
|
});
|
|
462
428
|
}), i.forEach((s) => {
|
|
463
429
|
Object.defineProperty(a.prototype, s, {
|
|
464
430
|
get() {
|
|
465
|
-
|
|
466
|
-
return (l = this.$$c) == null ? void 0 : l[s];
|
|
431
|
+
return this.$$c?.[s];
|
|
467
432
|
}
|
|
468
433
|
});
|
|
469
434
|
}), e.element = /** @type {any} */
|
|
470
435
|
a, a;
|
|
471
436
|
}
|
|
472
|
-
class
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
M(this, "$$set");
|
|
490
|
-
}
|
|
437
|
+
class ti {
|
|
438
|
+
/**
|
|
439
|
+
* ### PRIVATE API
|
|
440
|
+
*
|
|
441
|
+
* Do not use, may change at any time
|
|
442
|
+
*
|
|
443
|
+
* @type {any}
|
|
444
|
+
*/
|
|
445
|
+
$$ = void 0;
|
|
446
|
+
/**
|
|
447
|
+
* ### PRIVATE API
|
|
448
|
+
*
|
|
449
|
+
* Do not use, may change at any time
|
|
450
|
+
*
|
|
451
|
+
* @type {any}
|
|
452
|
+
*/
|
|
453
|
+
$$set = void 0;
|
|
491
454
|
/** @returns {void} */
|
|
492
455
|
$destroy() {
|
|
493
|
-
|
|
456
|
+
Jr(this, 1), this.$destroy = C;
|
|
494
457
|
}
|
|
495
458
|
/**
|
|
496
459
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -499,8 +462,8 @@ class di {
|
|
|
499
462
|
* @returns {() => void}
|
|
500
463
|
*/
|
|
501
464
|
$on(t, r) {
|
|
502
|
-
if (!
|
|
503
|
-
return
|
|
465
|
+
if (!nt(r))
|
|
466
|
+
return C;
|
|
504
467
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
505
468
|
return i.push(r), () => {
|
|
506
469
|
const n = i.indexOf(r);
|
|
@@ -512,37 +475,37 @@ class di {
|
|
|
512
475
|
* @returns {void}
|
|
513
476
|
*/
|
|
514
477
|
$set(t) {
|
|
515
|
-
this.$$set && !
|
|
478
|
+
this.$$set && !Cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
516
479
|
}
|
|
517
480
|
}
|
|
518
|
-
const
|
|
519
|
-
typeof window
|
|
520
|
-
var
|
|
521
|
-
return
|
|
481
|
+
const ri = "4";
|
|
482
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ri);
|
|
483
|
+
var Ve = function(e, t) {
|
|
484
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
522
485
|
r.__proto__ = i;
|
|
523
486
|
} || function(r, i) {
|
|
524
487
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
525
|
-
},
|
|
488
|
+
}, Ve(e, t);
|
|
526
489
|
};
|
|
527
|
-
function
|
|
490
|
+
function U(e, t) {
|
|
528
491
|
if (typeof t != "function" && t !== null)
|
|
529
492
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
530
|
-
|
|
493
|
+
Ve(e, t);
|
|
531
494
|
function r() {
|
|
532
495
|
this.constructor = e;
|
|
533
496
|
}
|
|
534
497
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
535
498
|
}
|
|
536
|
-
var
|
|
537
|
-
return
|
|
499
|
+
var x = function() {
|
|
500
|
+
return x = Object.assign || function(t) {
|
|
538
501
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
539
502
|
r = arguments[i];
|
|
540
503
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
541
504
|
}
|
|
542
505
|
return t;
|
|
543
|
-
},
|
|
506
|
+
}, x.apply(this, arguments);
|
|
544
507
|
};
|
|
545
|
-
function
|
|
508
|
+
function ii(e, t) {
|
|
546
509
|
var r = {};
|
|
547
510
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
548
511
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -550,7 +513,7 @@ function bi(e, t) {
|
|
|
550
513
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
551
514
|
return r;
|
|
552
515
|
}
|
|
553
|
-
function
|
|
516
|
+
function We(e) {
|
|
554
517
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
555
518
|
if (r) return r.call(e);
|
|
556
519
|
if (e && typeof e.length == "number") return {
|
|
@@ -560,7 +523,7 @@ function Ye(e) {
|
|
|
560
523
|
};
|
|
561
524
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
562
525
|
}
|
|
563
|
-
function
|
|
526
|
+
function Xe(e, t) {
|
|
564
527
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
565
528
|
if (!r) return e;
|
|
566
529
|
var i = r.call(e), n, o = [], a;
|
|
@@ -577,21 +540,21 @@ function Je(e, t) {
|
|
|
577
540
|
}
|
|
578
541
|
return o;
|
|
579
542
|
}
|
|
580
|
-
function
|
|
543
|
+
function J(e, t, r) {
|
|
581
544
|
if (r || arguments.length === 2) for (var i = 0, n = t.length, o; i < n; i++)
|
|
582
545
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
583
546
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
584
547
|
}
|
|
585
|
-
function
|
|
548
|
+
function $(e) {
|
|
586
549
|
return typeof e == "function";
|
|
587
550
|
}
|
|
588
|
-
function
|
|
551
|
+
function Ut(e) {
|
|
589
552
|
var t = function(i) {
|
|
590
553
|
Error.call(i), i.stack = new Error().stack;
|
|
591
554
|
}, r = e(t);
|
|
592
555
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
593
556
|
}
|
|
594
|
-
var
|
|
557
|
+
var Me = Ut(function(e) {
|
|
595
558
|
return function(r) {
|
|
596
559
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
597
560
|
` + r.map(function(i, n) {
|
|
@@ -600,13 +563,13 @@ var ze = Zt(function(e) {
|
|
|
600
563
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
601
564
|
};
|
|
602
565
|
});
|
|
603
|
-
function
|
|
566
|
+
function Ze(e, t) {
|
|
604
567
|
if (e) {
|
|
605
568
|
var r = e.indexOf(t);
|
|
606
569
|
0 <= r && e.splice(r, 1);
|
|
607
570
|
}
|
|
608
571
|
}
|
|
609
|
-
var
|
|
572
|
+
var Se = function() {
|
|
610
573
|
function e(t) {
|
|
611
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
612
575
|
}
|
|
@@ -618,38 +581,38 @@ var Ae = function() {
|
|
|
618
581
|
if (a)
|
|
619
582
|
if (this._parentage = null, Array.isArray(a))
|
|
620
583
|
try {
|
|
621
|
-
for (var s =
|
|
622
|
-
var u =
|
|
584
|
+
for (var s = We(a), h = s.next(); !h.done; h = s.next()) {
|
|
585
|
+
var u = h.value;
|
|
623
586
|
u.remove(this);
|
|
624
587
|
}
|
|
625
588
|
} catch (d) {
|
|
626
589
|
t = { error: d };
|
|
627
590
|
} finally {
|
|
628
591
|
try {
|
|
629
|
-
|
|
592
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
630
593
|
} finally {
|
|
631
594
|
if (t) throw t.error;
|
|
632
595
|
}
|
|
633
596
|
}
|
|
634
597
|
else
|
|
635
598
|
a.remove(this);
|
|
636
|
-
var
|
|
637
|
-
if (
|
|
599
|
+
var l = this.initialTeardown;
|
|
600
|
+
if ($(l))
|
|
638
601
|
try {
|
|
639
|
-
|
|
602
|
+
l();
|
|
640
603
|
} catch (d) {
|
|
641
|
-
o = d instanceof
|
|
604
|
+
o = d instanceof Me ? d.errors : [d];
|
|
642
605
|
}
|
|
643
606
|
var c = this._finalizers;
|
|
644
607
|
if (c) {
|
|
645
608
|
this._finalizers = null;
|
|
646
609
|
try {
|
|
647
|
-
for (var f =
|
|
610
|
+
for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
|
|
648
611
|
var y = p.value;
|
|
649
612
|
try {
|
|
650
|
-
|
|
613
|
+
mt(y);
|
|
651
614
|
} catch (d) {
|
|
652
|
-
o = o
|
|
615
|
+
o = o ?? [], d instanceof Me ? o = J(J([], Xe(o)), Xe(d.errors)) : o.push(d);
|
|
653
616
|
}
|
|
654
617
|
}
|
|
655
618
|
} catch (d) {
|
|
@@ -663,13 +626,13 @@ var Ae = function() {
|
|
|
663
626
|
}
|
|
664
627
|
}
|
|
665
628
|
if (o)
|
|
666
|
-
throw new
|
|
629
|
+
throw new Me(o);
|
|
667
630
|
}
|
|
668
631
|
}, e.prototype.add = function(t) {
|
|
669
632
|
var r;
|
|
670
633
|
if (t && t !== this)
|
|
671
634
|
if (this.closed)
|
|
672
|
-
|
|
635
|
+
mt(t);
|
|
673
636
|
else {
|
|
674
637
|
if (t instanceof e) {
|
|
675
638
|
if (t.closed || t._hasParent(this))
|
|
@@ -686,56 +649,56 @@ var Ae = function() {
|
|
|
686
649
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
687
650
|
}, e.prototype._removeParent = function(t) {
|
|
688
651
|
var r = this._parentage;
|
|
689
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
652
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
|
|
690
653
|
}, e.prototype.remove = function(t) {
|
|
691
654
|
var r = this._finalizers;
|
|
692
|
-
r &&
|
|
655
|
+
r && Ze(r, t), t instanceof e && t._removeParent(this);
|
|
693
656
|
}, e.EMPTY = function() {
|
|
694
657
|
var t = new e();
|
|
695
658
|
return t.closed = !0, t;
|
|
696
659
|
}(), e;
|
|
697
|
-
}(),
|
|
698
|
-
function
|
|
699
|
-
return e instanceof
|
|
660
|
+
}(), Gt = Se.EMPTY;
|
|
661
|
+
function Ft(e) {
|
|
662
|
+
return e instanceof Se || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
700
663
|
}
|
|
701
|
-
function
|
|
702
|
-
|
|
664
|
+
function mt(e) {
|
|
665
|
+
$(e) ? e() : e.unsubscribe();
|
|
703
666
|
}
|
|
704
|
-
var
|
|
667
|
+
var ni = {
|
|
705
668
|
onUnhandledError: null,
|
|
706
669
|
onStoppedNotification: null,
|
|
707
670
|
Promise: void 0,
|
|
708
671
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
709
672
|
useDeprecatedNextContext: !1
|
|
710
|
-
},
|
|
673
|
+
}, oi = {
|
|
711
674
|
setTimeout: function(e, t) {
|
|
712
675
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
713
676
|
r[i - 2] = arguments[i];
|
|
714
|
-
return setTimeout.apply(void 0,
|
|
677
|
+
return setTimeout.apply(void 0, J([e, t], Xe(r)));
|
|
715
678
|
},
|
|
716
679
|
clearTimeout: function(e) {
|
|
717
680
|
return clearTimeout(e);
|
|
718
681
|
},
|
|
719
682
|
delegate: void 0
|
|
720
683
|
};
|
|
721
|
-
function
|
|
722
|
-
|
|
684
|
+
function si(e) {
|
|
685
|
+
oi.setTimeout(function() {
|
|
723
686
|
throw e;
|
|
724
687
|
});
|
|
725
688
|
}
|
|
726
|
-
function
|
|
689
|
+
function pt() {
|
|
727
690
|
}
|
|
728
|
-
function
|
|
691
|
+
function ve(e) {
|
|
729
692
|
e();
|
|
730
693
|
}
|
|
731
|
-
var
|
|
732
|
-
|
|
694
|
+
var jt = function(e) {
|
|
695
|
+
U(t, e);
|
|
733
696
|
function t(r) {
|
|
734
697
|
var i = e.call(this) || this;
|
|
735
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
698
|
+
return i.isStopped = !1, r ? (i.destination = r, Ft(r) && r.add(i)) : i.destination = li, i;
|
|
736
699
|
}
|
|
737
700
|
return t.create = function(r, i, n) {
|
|
738
|
-
return new
|
|
701
|
+
return new Qe(r, i, n);
|
|
739
702
|
}, t.prototype.next = function(r) {
|
|
740
703
|
this.isStopped || this._next(r);
|
|
741
704
|
}, t.prototype.error = function(r) {
|
|
@@ -759,11 +722,7 @@ var qt = function(e) {
|
|
|
759
722
|
this.unsubscribe();
|
|
760
723
|
}
|
|
761
724
|
}, t;
|
|
762
|
-
}(
|
|
763
|
-
function $e(e, t) {
|
|
764
|
-
return _i.call(e, t);
|
|
765
|
-
}
|
|
766
|
-
var Ei = function() {
|
|
725
|
+
}(Se), ai = function() {
|
|
767
726
|
function e(t) {
|
|
768
727
|
this.partialObserver = t;
|
|
769
728
|
}
|
|
@@ -773,7 +732,7 @@ var Ei = function() {
|
|
|
773
732
|
try {
|
|
774
733
|
r.next(t);
|
|
775
734
|
} catch (i) {
|
|
776
|
-
|
|
735
|
+
ye(i);
|
|
777
736
|
}
|
|
778
737
|
}, e.prototype.error = function(t) {
|
|
779
738
|
var r = this.partialObserver;
|
|
@@ -781,68 +740,56 @@ var Ei = function() {
|
|
|
781
740
|
try {
|
|
782
741
|
r.error(t);
|
|
783
742
|
} catch (i) {
|
|
784
|
-
|
|
743
|
+
ye(i);
|
|
785
744
|
}
|
|
786
745
|
else
|
|
787
|
-
|
|
746
|
+
ye(t);
|
|
788
747
|
}, e.prototype.complete = function() {
|
|
789
748
|
var t = this.partialObserver;
|
|
790
749
|
if (t.complete)
|
|
791
750
|
try {
|
|
792
751
|
t.complete();
|
|
793
752
|
} catch (r) {
|
|
794
|
-
|
|
753
|
+
ye(r);
|
|
795
754
|
}
|
|
796
755
|
}, e;
|
|
797
|
-
}(),
|
|
798
|
-
|
|
756
|
+
}(), Qe = function(e) {
|
|
757
|
+
U(t, e);
|
|
799
758
|
function t(r, i, n) {
|
|
800
759
|
var o = e.call(this) || this, a;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
};
|
|
807
|
-
else {
|
|
808
|
-
var s;
|
|
809
|
-
o && Jt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
810
|
-
return o.unsubscribe();
|
|
811
|
-
}, a = {
|
|
812
|
-
next: r.next && $e(r.next, s),
|
|
813
|
-
error: r.error && $e(r.error, s),
|
|
814
|
-
complete: r.complete && $e(r.complete, s)
|
|
815
|
-
}) : a = r;
|
|
816
|
-
}
|
|
817
|
-
return o.destination = new Ei(a), o;
|
|
760
|
+
return $(r) || !r ? a = {
|
|
761
|
+
next: r ?? void 0,
|
|
762
|
+
error: i ?? void 0,
|
|
763
|
+
complete: n ?? void 0
|
|
764
|
+
} : a = r, o.destination = new ai(a), o;
|
|
818
765
|
}
|
|
819
766
|
return t;
|
|
820
|
-
}(
|
|
821
|
-
function
|
|
822
|
-
|
|
767
|
+
}(jt);
|
|
768
|
+
function ye(e) {
|
|
769
|
+
si(e);
|
|
823
770
|
}
|
|
824
|
-
function
|
|
771
|
+
function ui(e) {
|
|
825
772
|
throw e;
|
|
826
773
|
}
|
|
827
|
-
var
|
|
774
|
+
var li = {
|
|
828
775
|
closed: !0,
|
|
829
|
-
next:
|
|
830
|
-
error:
|
|
831
|
-
complete:
|
|
832
|
-
},
|
|
776
|
+
next: pt,
|
|
777
|
+
error: ui,
|
|
778
|
+
complete: pt
|
|
779
|
+
}, hi = function() {
|
|
833
780
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
834
781
|
}();
|
|
835
|
-
function
|
|
782
|
+
function ci(e) {
|
|
836
783
|
return e;
|
|
837
784
|
}
|
|
838
|
-
function
|
|
839
|
-
return e.length === 0 ?
|
|
785
|
+
function fi(e) {
|
|
786
|
+
return e.length === 0 ? ci : e.length === 1 ? e[0] : function(r) {
|
|
840
787
|
return e.reduce(function(i, n) {
|
|
841
788
|
return n(i);
|
|
842
789
|
}, r);
|
|
843
790
|
};
|
|
844
791
|
}
|
|
845
|
-
var
|
|
792
|
+
var dt = function() {
|
|
846
793
|
function e(t) {
|
|
847
794
|
t && (this._subscribe = t);
|
|
848
795
|
}
|
|
@@ -850,10 +797,10 @@ var Tt = function() {
|
|
|
850
797
|
var r = new e();
|
|
851
798
|
return r.source = this, r.operator = t, r;
|
|
852
799
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
853
|
-
var n = this, o =
|
|
854
|
-
return
|
|
855
|
-
var a = n, s = a.operator,
|
|
856
|
-
o.add(s ? s.call(o,
|
|
800
|
+
var n = this, o = pi(t) ? t : new Qe(t, r, i);
|
|
801
|
+
return ve(function() {
|
|
802
|
+
var a = n, s = a.operator, h = a.source;
|
|
803
|
+
o.add(s ? s.call(o, h) : h ? n._subscribe(o) : n._trySubscribe(o));
|
|
857
804
|
}), o;
|
|
858
805
|
}, e.prototype._trySubscribe = function(t) {
|
|
859
806
|
try {
|
|
@@ -863,13 +810,13 @@ var Tt = function() {
|
|
|
863
810
|
}
|
|
864
811
|
}, e.prototype.forEach = function(t, r) {
|
|
865
812
|
var i = this;
|
|
866
|
-
return r =
|
|
867
|
-
var a = new
|
|
813
|
+
return r = yt(r), new r(function(n, o) {
|
|
814
|
+
var a = new Qe({
|
|
868
815
|
next: function(s) {
|
|
869
816
|
try {
|
|
870
817
|
t(s);
|
|
871
|
-
} catch (
|
|
872
|
-
o(
|
|
818
|
+
} catch (h) {
|
|
819
|
+
o(h), a.unsubscribe();
|
|
873
820
|
}
|
|
874
821
|
},
|
|
875
822
|
error: o,
|
|
@@ -880,15 +827,15 @@ var Tt = function() {
|
|
|
880
827
|
}, e.prototype._subscribe = function(t) {
|
|
881
828
|
var r;
|
|
882
829
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
883
|
-
}, e.prototype[
|
|
830
|
+
}, e.prototype[hi] = function() {
|
|
884
831
|
return this;
|
|
885
832
|
}, e.prototype.pipe = function() {
|
|
886
833
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
887
834
|
t[r] = arguments[r];
|
|
888
|
-
return
|
|
835
|
+
return fi(t)(this);
|
|
889
836
|
}, e.prototype.toPromise = function(t) {
|
|
890
837
|
var r = this;
|
|
891
|
-
return t =
|
|
838
|
+
return t = yt(t), new t(function(i, n) {
|
|
892
839
|
var o;
|
|
893
840
|
r.subscribe(function(a) {
|
|
894
841
|
return o = a;
|
|
@@ -902,42 +849,42 @@ var Tt = function() {
|
|
|
902
849
|
return new e(t);
|
|
903
850
|
}, e;
|
|
904
851
|
}();
|
|
905
|
-
function
|
|
852
|
+
function yt(e) {
|
|
906
853
|
var t;
|
|
907
|
-
return (t = e
|
|
854
|
+
return (t = e ?? ni.Promise) !== null && t !== void 0 ? t : Promise;
|
|
908
855
|
}
|
|
909
|
-
function
|
|
910
|
-
return e &&
|
|
856
|
+
function mi(e) {
|
|
857
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
911
858
|
}
|
|
912
|
-
function
|
|
913
|
-
return e && e instanceof
|
|
859
|
+
function pi(e) {
|
|
860
|
+
return e && e instanceof jt || mi(e) && Ft(e);
|
|
914
861
|
}
|
|
915
|
-
var
|
|
862
|
+
var di = Ut(function(e) {
|
|
916
863
|
return function() {
|
|
917
864
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
918
865
|
};
|
|
919
|
-
}),
|
|
920
|
-
|
|
866
|
+
}), kt = function(e) {
|
|
867
|
+
U(t, e);
|
|
921
868
|
function t() {
|
|
922
869
|
var r = e.call(this) || this;
|
|
923
870
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
924
871
|
}
|
|
925
872
|
return t.prototype.lift = function(r) {
|
|
926
|
-
var i = new
|
|
873
|
+
var i = new bt(this, this);
|
|
927
874
|
return i.operator = r, i;
|
|
928
875
|
}, t.prototype._throwIfClosed = function() {
|
|
929
876
|
if (this.closed)
|
|
930
|
-
throw new
|
|
877
|
+
throw new di();
|
|
931
878
|
}, t.prototype.next = function(r) {
|
|
932
879
|
var i = this;
|
|
933
|
-
|
|
880
|
+
ve(function() {
|
|
934
881
|
var n, o;
|
|
935
882
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
936
883
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
937
884
|
try {
|
|
938
|
-
for (var a =
|
|
939
|
-
var
|
|
940
|
-
|
|
885
|
+
for (var a = We(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
886
|
+
var h = s.value;
|
|
887
|
+
h.next(r);
|
|
941
888
|
}
|
|
942
889
|
} catch (u) {
|
|
943
890
|
n = { error: u };
|
|
@@ -952,7 +899,7 @@ var Pi = Zt(function(e) {
|
|
|
952
899
|
});
|
|
953
900
|
}, t.prototype.error = function(r) {
|
|
954
901
|
var i = this;
|
|
955
|
-
|
|
902
|
+
ve(function() {
|
|
956
903
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
957
904
|
i.hasError = i.isStopped = !0, i.thrownError = r;
|
|
958
905
|
for (var n = i.observers; n.length; )
|
|
@@ -961,7 +908,7 @@ var Pi = Zt(function(e) {
|
|
|
961
908
|
});
|
|
962
909
|
}, t.prototype.complete = function() {
|
|
963
910
|
var r = this;
|
|
964
|
-
|
|
911
|
+
ve(function() {
|
|
965
912
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
966
913
|
r.isStopped = !0;
|
|
967
914
|
for (var i = r.observers; i.length; )
|
|
@@ -983,20 +930,20 @@ var Pi = Zt(function(e) {
|
|
|
983
930
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
984
931
|
}, t.prototype._innerSubscribe = function(r) {
|
|
985
932
|
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
986
|
-
return o || a ?
|
|
987
|
-
i.currentObservers = null,
|
|
933
|
+
return o || a ? Gt : (this.currentObservers = null, s.push(r), new Se(function() {
|
|
934
|
+
i.currentObservers = null, Ze(s, r);
|
|
988
935
|
}));
|
|
989
936
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
990
937
|
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
991
938
|
n ? r.error(o) : a && r.complete();
|
|
992
939
|
}, t.prototype.asObservable = function() {
|
|
993
|
-
var r = new
|
|
940
|
+
var r = new dt();
|
|
994
941
|
return r.source = this, r;
|
|
995
942
|
}, t.create = function(r, i) {
|
|
996
|
-
return new
|
|
943
|
+
return new bt(r, i);
|
|
997
944
|
}, t;
|
|
998
|
-
}(
|
|
999
|
-
|
|
945
|
+
}(dt), bt = function(e) {
|
|
946
|
+
U(t, e);
|
|
1000
947
|
function t(r, i) {
|
|
1001
948
|
var n = e.call(this) || this;
|
|
1002
949
|
return n.destination = r, n.source = i, n;
|
|
@@ -1012,230 +959,232 @@ var Pi = Zt(function(e) {
|
|
|
1012
959
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
1013
960
|
}, t.prototype._subscribe = function(r) {
|
|
1014
961
|
var i, n;
|
|
1015
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
962
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : Gt;
|
|
1016
963
|
}, t;
|
|
1017
|
-
}(
|
|
964
|
+
}(kt), Vt = {
|
|
1018
965
|
now: function() {
|
|
1019
|
-
return (
|
|
966
|
+
return (Vt.delegate || Date).now();
|
|
1020
967
|
},
|
|
1021
968
|
delegate: void 0
|
|
1022
|
-
},
|
|
1023
|
-
|
|
969
|
+
}, yi = function(e) {
|
|
970
|
+
U(t, e);
|
|
1024
971
|
function t(r, i, n) {
|
|
1025
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
972
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = Vt);
|
|
1026
973
|
var o = e.call(this) || this;
|
|
1027
974
|
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
1028
975
|
}
|
|
1029
976
|
return t.prototype.next = function(r) {
|
|
1030
|
-
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider,
|
|
1031
|
-
n || (o.push(r), !a && o.push(s.now() +
|
|
977
|
+
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider, h = i._windowTime;
|
|
978
|
+
n || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1032
979
|
}, t.prototype._subscribe = function(r) {
|
|
1033
980
|
this._throwIfClosed(), this._trimBuffer();
|
|
1034
|
-
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(),
|
|
1035
|
-
r.next(s[
|
|
981
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
982
|
+
r.next(s[h]);
|
|
1036
983
|
return this._checkFinalizedStatuses(r), i;
|
|
1037
984
|
}, t.prototype._trimBuffer = function() {
|
|
1038
985
|
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * i;
|
|
1039
986
|
if (i < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1040
|
-
for (var
|
|
1041
|
-
u =
|
|
987
|
+
for (var h = n.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
988
|
+
u = l;
|
|
1042
989
|
u && o.splice(0, u + 1);
|
|
1043
990
|
}
|
|
1044
991
|
}, t;
|
|
1045
|
-
}(
|
|
1046
|
-
const
|
|
1047
|
-
if (
|
|
1048
|
-
const r = new
|
|
1049
|
-
|
|
992
|
+
}(kt);
|
|
993
|
+
const gt = [], vt = {}, bi = (e, t = 0) => {
|
|
994
|
+
if (gt.indexOf(e) == -1) {
|
|
995
|
+
const r = new yi(t);
|
|
996
|
+
vt[e] = r, gt.push(e);
|
|
1050
997
|
}
|
|
1051
|
-
return
|
|
1052
|
-
},
|
|
1053
|
-
function
|
|
998
|
+
return vt[e];
|
|
999
|
+
}, Z = [];
|
|
1000
|
+
function gi(e, t) {
|
|
1054
1001
|
return {
|
|
1055
|
-
subscribe:
|
|
1002
|
+
subscribe: we(e, t).subscribe
|
|
1056
1003
|
};
|
|
1057
1004
|
}
|
|
1058
|
-
function
|
|
1005
|
+
function we(e, t = C) {
|
|
1059
1006
|
let r;
|
|
1060
1007
|
const i = /* @__PURE__ */ new Set();
|
|
1061
1008
|
function n(s) {
|
|
1062
|
-
if (
|
|
1063
|
-
const
|
|
1009
|
+
if (Dt(e, s) && (e = s, r)) {
|
|
1010
|
+
const h = !Z.length;
|
|
1064
1011
|
for (const u of i)
|
|
1065
|
-
u[1](),
|
|
1066
|
-
if (
|
|
1067
|
-
for (let u = 0; u <
|
|
1068
|
-
|
|
1069
|
-
|
|
1012
|
+
u[1](), Z.push(u, e);
|
|
1013
|
+
if (h) {
|
|
1014
|
+
for (let u = 0; u < Z.length; u += 2)
|
|
1015
|
+
Z[u][0](Z[u + 1]);
|
|
1016
|
+
Z.length = 0;
|
|
1070
1017
|
}
|
|
1071
1018
|
}
|
|
1072
1019
|
}
|
|
1073
1020
|
function o(s) {
|
|
1074
1021
|
n(s(e));
|
|
1075
1022
|
}
|
|
1076
|
-
function a(s,
|
|
1077
|
-
const u = [s,
|
|
1078
|
-
return i.add(u), i.size === 1 && (r = t(n, o) ||
|
|
1023
|
+
function a(s, h = C) {
|
|
1024
|
+
const u = [s, h];
|
|
1025
|
+
return i.add(u), i.size === 1 && (r = t(n, o) || C), s(e), () => {
|
|
1079
1026
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
1080
1027
|
};
|
|
1081
1028
|
}
|
|
1082
1029
|
return { set: n, update: o, subscribe: a };
|
|
1083
1030
|
}
|
|
1084
|
-
function
|
|
1031
|
+
function re(e, t, r) {
|
|
1085
1032
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
1086
1033
|
if (!n.every(Boolean))
|
|
1087
1034
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1088
1035
|
const o = t.length < 2;
|
|
1089
|
-
return
|
|
1090
|
-
let
|
|
1036
|
+
return gi(r, (a, s) => {
|
|
1037
|
+
let h = !1;
|
|
1091
1038
|
const u = [];
|
|
1092
|
-
let
|
|
1039
|
+
let l = 0, c = C;
|
|
1093
1040
|
const f = () => {
|
|
1094
|
-
if (
|
|
1041
|
+
if (l)
|
|
1095
1042
|
return;
|
|
1096
1043
|
c();
|
|
1097
1044
|
const y = t(i ? u[0] : u, a, s);
|
|
1098
|
-
o ? a(y) : c =
|
|
1045
|
+
o ? a(y) : c = nt(y) ? y : C;
|
|
1099
1046
|
}, p = n.map(
|
|
1100
|
-
(y, d) =>
|
|
1047
|
+
(y, d) => zt(
|
|
1101
1048
|
y,
|
|
1102
1049
|
(g) => {
|
|
1103
|
-
u[d] = g,
|
|
1050
|
+
u[d] = g, l &= ~(1 << d), h && f();
|
|
1104
1051
|
},
|
|
1105
1052
|
() => {
|
|
1106
|
-
|
|
1053
|
+
l |= 1 << d;
|
|
1107
1054
|
}
|
|
1108
1055
|
)
|
|
1109
1056
|
);
|
|
1110
|
-
return
|
|
1111
|
-
|
|
1057
|
+
return h = !0, f(), function() {
|
|
1058
|
+
ce(p), c(), h = !1;
|
|
1112
1059
|
};
|
|
1113
1060
|
});
|
|
1114
1061
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return e
|
|
1062
|
+
function vi(e) {
|
|
1063
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1117
1064
|
}
|
|
1118
|
-
var
|
|
1119
|
-
return
|
|
1065
|
+
var _i = function(t) {
|
|
1066
|
+
return xi(t) && !Ei(t);
|
|
1120
1067
|
};
|
|
1121
|
-
function
|
|
1068
|
+
function xi(e) {
|
|
1122
1069
|
return !!e && typeof e == "object";
|
|
1123
1070
|
}
|
|
1124
|
-
function
|
|
1071
|
+
function Ei(e) {
|
|
1125
1072
|
var t = Object.prototype.toString.call(e);
|
|
1126
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1073
|
+
return t === "[object RegExp]" || t === "[object Date]" || Si(e);
|
|
1127
1074
|
}
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1130
|
-
return e.$$typeof ===
|
|
1075
|
+
var Ti = typeof Symbol == "function" && Symbol.for, Li = Ti ? Symbol.for("react.element") : 60103;
|
|
1076
|
+
function Si(e) {
|
|
1077
|
+
return e.$$typeof === Li;
|
|
1131
1078
|
}
|
|
1132
|
-
function
|
|
1079
|
+
function wi(e) {
|
|
1133
1080
|
return Array.isArray(e) ? [] : {};
|
|
1134
1081
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1082
|
+
function le(e, t) {
|
|
1083
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(wi(e), e, t) : e;
|
|
1137
1084
|
}
|
|
1138
|
-
function
|
|
1085
|
+
function Ai(e, t, r) {
|
|
1139
1086
|
return e.concat(t).map(function(i) {
|
|
1140
|
-
return
|
|
1087
|
+
return le(i, r);
|
|
1141
1088
|
});
|
|
1142
1089
|
}
|
|
1143
|
-
function
|
|
1090
|
+
function Hi(e, t) {
|
|
1144
1091
|
if (!t.customMerge)
|
|
1145
|
-
return
|
|
1092
|
+
return q;
|
|
1146
1093
|
var r = t.customMerge(e);
|
|
1147
|
-
return typeof r == "function" ? r :
|
|
1094
|
+
return typeof r == "function" ? r : q;
|
|
1148
1095
|
}
|
|
1149
|
-
function
|
|
1096
|
+
function Pi(e) {
|
|
1150
1097
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1151
1098
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1152
1099
|
}) : [];
|
|
1153
1100
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return Object.keys(e).concat(
|
|
1101
|
+
function _t(e) {
|
|
1102
|
+
return Object.keys(e).concat(Pi(e));
|
|
1156
1103
|
}
|
|
1157
|
-
function
|
|
1104
|
+
function Wt(e, t) {
|
|
1158
1105
|
try {
|
|
1159
1106
|
return t in e;
|
|
1160
|
-
} catch
|
|
1107
|
+
} catch {
|
|
1161
1108
|
return !1;
|
|
1162
1109
|
}
|
|
1163
1110
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1111
|
+
function Bi(e, t) {
|
|
1112
|
+
return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1166
1113
|
}
|
|
1167
|
-
function
|
|
1114
|
+
function Oi(e, t, r) {
|
|
1168
1115
|
var i = {};
|
|
1169
|
-
return r.isMergeableObject(e) &&
|
|
1170
|
-
i[n] =
|
|
1171
|
-
}),
|
|
1172
|
-
|
|
1116
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(n) {
|
|
1117
|
+
i[n] = le(e[n], r);
|
|
1118
|
+
}), _t(t).forEach(function(n) {
|
|
1119
|
+
Bi(e, n) || (Wt(e, n) && r.isMergeableObject(t[n]) ? i[n] = Hi(n, r)(e[n], t[n], r) : i[n] = le(t[n], r));
|
|
1173
1120
|
}), i;
|
|
1174
1121
|
}
|
|
1175
|
-
function
|
|
1176
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1122
|
+
function q(e, t, r) {
|
|
1123
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ai, r.isMergeableObject = r.isMergeableObject || _i, r.cloneUnlessOtherwiseSpecified = le;
|
|
1177
1124
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
1178
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
1125
|
+
return o ? i ? r.arrayMerge(e, t, r) : Oi(e, t, r) : le(t, r);
|
|
1179
1126
|
}
|
|
1180
|
-
|
|
1127
|
+
q.all = function(t, r) {
|
|
1181
1128
|
if (!Array.isArray(t))
|
|
1182
1129
|
throw new Error("first argument should be an array");
|
|
1183
1130
|
return t.reduce(function(i, n) {
|
|
1184
|
-
return
|
|
1131
|
+
return q(i, n, r);
|
|
1185
1132
|
}, {});
|
|
1186
1133
|
};
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1190
|
-
var r = t && t.cache ? t.cache :
|
|
1134
|
+
var Ci = q, Ii = Ci;
|
|
1135
|
+
const Ni = /* @__PURE__ */ vi(Ii);
|
|
1136
|
+
function Re(e, t) {
|
|
1137
|
+
var r = t && t.cache ? t.cache : Gi, i = t && t.serializer ? t.serializer : $i, n = t && t.strategy ? t.strategy : Ri;
|
|
1191
1138
|
return n(e, {
|
|
1192
1139
|
cache: r,
|
|
1193
1140
|
serializer: i
|
|
1194
1141
|
});
|
|
1195
1142
|
}
|
|
1196
|
-
function
|
|
1143
|
+
function Mi(e) {
|
|
1197
1144
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1198
1145
|
}
|
|
1199
|
-
function
|
|
1200
|
-
var n =
|
|
1201
|
-
return typeof o
|
|
1146
|
+
function Xt(e, t, r, i) {
|
|
1147
|
+
var n = Mi(i) ? i : r(i), o = t.get(n);
|
|
1148
|
+
return typeof o > "u" && (o = e.call(this, i), t.set(n, o)), o;
|
|
1202
1149
|
}
|
|
1203
|
-
function
|
|
1150
|
+
function Zt(e, t, r) {
|
|
1204
1151
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
1205
|
-
return typeof o
|
|
1152
|
+
return typeof o > "u" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
1206
1153
|
}
|
|
1207
|
-
function
|
|
1154
|
+
function ot(e, t, r, i, n) {
|
|
1208
1155
|
return r.bind(t, e, i, n);
|
|
1209
1156
|
}
|
|
1210
|
-
function
|
|
1211
|
-
var r = e.length === 1 ?
|
|
1212
|
-
return
|
|
1157
|
+
function Ri(e, t) {
|
|
1158
|
+
var r = e.length === 1 ? Xt : Zt;
|
|
1159
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
|
1213
1160
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1161
|
+
function Di(e, t) {
|
|
1162
|
+
return ot(e, this, Zt, t.cache.create(), t.serializer);
|
|
1216
1163
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return
|
|
1164
|
+
function zi(e, t) {
|
|
1165
|
+
return ot(e, this, Xt, t.cache.create(), t.serializer);
|
|
1219
1166
|
}
|
|
1220
|
-
var
|
|
1167
|
+
var $i = function() {
|
|
1221
1168
|
return JSON.stringify(arguments);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1169
|
+
}, Ui = (
|
|
1170
|
+
/** @class */
|
|
1171
|
+
function() {
|
|
1172
|
+
function e() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
return e.prototype.get = function(t) {
|
|
1176
|
+
return this.cache[t];
|
|
1177
|
+
}, e.prototype.set = function(t, r) {
|
|
1178
|
+
this.cache[t] = r;
|
|
1179
|
+
}, e;
|
|
1180
|
+
}()
|
|
1181
|
+
), Gi = {
|
|
1233
1182
|
create: function() {
|
|
1234
|
-
return new
|
|
1183
|
+
return new Ui();
|
|
1235
1184
|
}
|
|
1236
|
-
},
|
|
1237
|
-
variadic:
|
|
1238
|
-
monadic:
|
|
1185
|
+
}, De = {
|
|
1186
|
+
variadic: Di,
|
|
1187
|
+
monadic: zi
|
|
1239
1188
|
}, b;
|
|
1240
1189
|
(function(e) {
|
|
1241
1190
|
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";
|
|
@@ -1244,47 +1193,47 @@ var S;
|
|
|
1244
1193
|
(function(e) {
|
|
1245
1194
|
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";
|
|
1246
1195
|
})(S || (S = {}));
|
|
1247
|
-
var
|
|
1196
|
+
var K;
|
|
1248
1197
|
(function(e) {
|
|
1249
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1250
|
-
})(
|
|
1251
|
-
function
|
|
1199
|
+
})(K || (K = {}));
|
|
1200
|
+
function xt(e) {
|
|
1252
1201
|
return e.type === S.literal;
|
|
1253
1202
|
}
|
|
1254
|
-
function
|
|
1203
|
+
function Fi(e) {
|
|
1255
1204
|
return e.type === S.argument;
|
|
1256
1205
|
}
|
|
1257
|
-
function
|
|
1206
|
+
function Qt(e) {
|
|
1258
1207
|
return e.type === S.number;
|
|
1259
1208
|
}
|
|
1260
|
-
function
|
|
1209
|
+
function Yt(e) {
|
|
1261
1210
|
return e.type === S.date;
|
|
1262
1211
|
}
|
|
1263
|
-
function
|
|
1212
|
+
function Jt(e) {
|
|
1264
1213
|
return e.type === S.time;
|
|
1265
1214
|
}
|
|
1266
|
-
function
|
|
1215
|
+
function qt(e) {
|
|
1267
1216
|
return e.type === S.select;
|
|
1268
1217
|
}
|
|
1269
|
-
function
|
|
1218
|
+
function Kt(e) {
|
|
1270
1219
|
return e.type === S.plural;
|
|
1271
1220
|
}
|
|
1272
|
-
function
|
|
1221
|
+
function ji(e) {
|
|
1273
1222
|
return e.type === S.pound;
|
|
1274
1223
|
}
|
|
1275
|
-
function
|
|
1224
|
+
function er(e) {
|
|
1276
1225
|
return e.type === S.tag;
|
|
1277
1226
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1227
|
+
function tr(e) {
|
|
1228
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1280
1229
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1230
|
+
function Ye(e) {
|
|
1231
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1283
1232
|
}
|
|
1284
|
-
var
|
|
1285
|
-
function
|
|
1233
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ki = /(?:[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;
|
|
1234
|
+
function Vi(e) {
|
|
1286
1235
|
var t = {};
|
|
1287
|
-
return e.replace(
|
|
1236
|
+
return e.replace(ki, function(r) {
|
|
1288
1237
|
var i = r.length;
|
|
1289
1238
|
switch (r[0]) {
|
|
1290
1239
|
case "G":
|
|
@@ -1373,36 +1322,36 @@ function on(e) {
|
|
|
1373
1322
|
return "";
|
|
1374
1323
|
}), t;
|
|
1375
1324
|
}
|
|
1376
|
-
var
|
|
1377
|
-
function
|
|
1325
|
+
var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function Xi(e) {
|
|
1378
1327
|
if (e.length === 0)
|
|
1379
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1380
|
-
for (var t = e.split(
|
|
1329
|
+
for (var t = e.split(Wi).filter(function(f) {
|
|
1381
1330
|
return f.length > 0;
|
|
1382
1331
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
1383
1332
|
var o = n[i], a = o.split("/");
|
|
1384
1333
|
if (a.length === 0)
|
|
1385
1334
|
throw new Error("Invalid number skeleton");
|
|
1386
|
-
for (var s = a[0],
|
|
1387
|
-
var c =
|
|
1335
|
+
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1336
|
+
var c = l[u];
|
|
1388
1337
|
if (c.length === 0)
|
|
1389
1338
|
throw new Error("Invalid number skeleton");
|
|
1390
1339
|
}
|
|
1391
|
-
r.push({ stem: s, options:
|
|
1340
|
+
r.push({ stem: s, options: h });
|
|
1392
1341
|
}
|
|
1393
1342
|
return r;
|
|
1394
1343
|
}
|
|
1395
|
-
function
|
|
1344
|
+
function Zi(e) {
|
|
1396
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1397
1346
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1347
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Qi = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
|
|
1348
|
+
function Tt(e) {
|
|
1400
1349
|
var t = {};
|
|
1401
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, i, n) {
|
|
1402
1351
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
1403
1352
|
}), t;
|
|
1404
1353
|
}
|
|
1405
|
-
function
|
|
1354
|
+
function or(e) {
|
|
1406
1355
|
switch (e) {
|
|
1407
1356
|
case "sign-auto":
|
|
1408
1357
|
return {
|
|
@@ -1442,7 +1391,7 @@ function pr(e) {
|
|
|
1442
1391
|
};
|
|
1443
1392
|
}
|
|
1444
1393
|
}
|
|
1445
|
-
function
|
|
1394
|
+
function Yi(e) {
|
|
1446
1395
|
var t;
|
|
1447
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1448
1397
|
notation: "engineering"
|
|
@@ -1450,17 +1399,17 @@ function hn(e) {
|
|
|
1450
1399
|
notation: "scientific"
|
|
1451
1400
|
}, e = e.slice(1)), t) {
|
|
1452
1401
|
var r = e.slice(0, 2);
|
|
1453
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !nr.test(e))
|
|
1454
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1455
1404
|
t.minimumIntegerDigits = e.length;
|
|
1456
1405
|
}
|
|
1457
1406
|
return t;
|
|
1458
1407
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var t = {}, r =
|
|
1408
|
+
function Lt(e) {
|
|
1409
|
+
var t = {}, r = or(e);
|
|
1461
1410
|
return r || t;
|
|
1462
1411
|
}
|
|
1463
|
-
function
|
|
1412
|
+
function Ji(e) {
|
|
1464
1413
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
1465
1414
|
var n = i[r];
|
|
1466
1415
|
switch (n.stem) {
|
|
@@ -1484,7 +1433,7 @@ function cn(e) {
|
|
|
1484
1433
|
continue;
|
|
1485
1434
|
case "measure-unit":
|
|
1486
1435
|
case "unit":
|
|
1487
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = Zi(n.options[0]);
|
|
1488
1437
|
continue;
|
|
1489
1438
|
case "compact-short":
|
|
1490
1439
|
case "K":
|
|
@@ -1495,13 +1444,13 @@ function cn(e) {
|
|
|
1495
1444
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1496
1445
|
continue;
|
|
1497
1446
|
case "scientific":
|
|
1498
|
-
t =
|
|
1499
|
-
return
|
|
1447
|
+
t = x(x(x({}, t), { notation: "scientific" }), n.options.reduce(function(h, u) {
|
|
1448
|
+
return x(x({}, h), Lt(u));
|
|
1500
1449
|
}, {}));
|
|
1501
1450
|
continue;
|
|
1502
1451
|
case "engineering":
|
|
1503
|
-
t =
|
|
1504
|
-
return
|
|
1452
|
+
t = x(x(x({}, t), { notation: "engineering" }), n.options.reduce(function(h, u) {
|
|
1453
|
+
return x(x({}, h), Lt(u));
|
|
1505
1454
|
}, {}));
|
|
1506
1455
|
continue;
|
|
1507
1456
|
case "notation-simple":
|
|
@@ -1546,9 +1495,9 @@ function cn(e) {
|
|
|
1546
1495
|
case "integer-width":
|
|
1547
1496
|
if (n.options.length > 1)
|
|
1548
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1549
|
-
n.options[0].replace(
|
|
1498
|
+
n.options[0].replace(Qi, function(h, u, l, c, f, p) {
|
|
1550
1499
|
if (u)
|
|
1551
|
-
t.minimumIntegerDigits =
|
|
1500
|
+
t.minimumIntegerDigits = l.length;
|
|
1552
1501
|
else {
|
|
1553
1502
|
if (c && f)
|
|
1554
1503
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1559,32 +1508,32 @@ function cn(e) {
|
|
|
1559
1508
|
});
|
|
1560
1509
|
continue;
|
|
1561
1510
|
}
|
|
1562
|
-
if (
|
|
1511
|
+
if (nr.test(n.stem)) {
|
|
1563
1512
|
t.minimumIntegerDigits = n.stem.length;
|
|
1564
1513
|
continue;
|
|
1565
1514
|
}
|
|
1566
|
-
if (
|
|
1515
|
+
if (Et.test(n.stem)) {
|
|
1567
1516
|
if (n.options.length > 1)
|
|
1568
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1569
|
-
n.stem.replace(
|
|
1570
|
-
return
|
|
1518
|
+
n.stem.replace(Et, function(h, u, l, c, f, p) {
|
|
1519
|
+
return l === "*" ? 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), "";
|
|
1571
1520
|
});
|
|
1572
1521
|
var o = n.options[0];
|
|
1573
|
-
o === "w" ? t =
|
|
1522
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Tt(o)));
|
|
1574
1523
|
continue;
|
|
1575
1524
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
t =
|
|
1525
|
+
if (ir.test(n.stem)) {
|
|
1526
|
+
t = x(x({}, t), Tt(n.stem));
|
|
1578
1527
|
continue;
|
|
1579
1528
|
}
|
|
1580
|
-
var a =
|
|
1581
|
-
a && (t =
|
|
1582
|
-
var s =
|
|
1583
|
-
s && (t =
|
|
1529
|
+
var a = or(n.stem);
|
|
1530
|
+
a && (t = x(x({}, t), a));
|
|
1531
|
+
var s = Yi(n.stem);
|
|
1532
|
+
s && (t = x(x({}, t), s));
|
|
1584
1533
|
}
|
|
1585
1534
|
return t;
|
|
1586
1535
|
}
|
|
1587
|
-
var
|
|
1536
|
+
var be = {
|
|
1588
1537
|
"001": [
|
|
1589
1538
|
"H",
|
|
1590
1539
|
"h"
|
|
@@ -2999,22 +2948,22 @@ var ve = {
|
|
|
2999
2948
|
"h"
|
|
3000
2949
|
]
|
|
3001
2950
|
};
|
|
3002
|
-
function
|
|
2951
|
+
function qi(e, t) {
|
|
3003
2952
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
3004
2953
|
var n = e.charAt(i);
|
|
3005
2954
|
if (n === "j") {
|
|
3006
2955
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
3007
2956
|
o++, i++;
|
|
3008
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2957
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Ki(t);
|
|
3009
2958
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3010
|
-
r +=
|
|
2959
|
+
r += h;
|
|
3011
2960
|
for (; a-- > 0; )
|
|
3012
2961
|
r = u + r;
|
|
3013
2962
|
} else n === "J" ? r += "H" : r += n;
|
|
3014
2963
|
}
|
|
3015
2964
|
return r;
|
|
3016
2965
|
}
|
|
3017
|
-
function
|
|
2966
|
+
function Ki(e) {
|
|
3018
2967
|
var t = e.hourCycle;
|
|
3019
2968
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3020
2969
|
e.hourCycles && // @ts-ignore
|
|
@@ -3033,23 +2982,23 @@ function mn(e) {
|
|
|
3033
2982
|
}
|
|
3034
2983
|
var r = e.language, i;
|
|
3035
2984
|
r !== "root" && (i = e.maximize().region);
|
|
3036
|
-
var n =
|
|
2985
|
+
var n = be[i || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
3037
2986
|
return n[0];
|
|
3038
2987
|
}
|
|
3039
|
-
var
|
|
2988
|
+
var ze, en = new RegExp("^".concat(rr.source, "*")), tn = new RegExp("".concat(rr.source, "*$"));
|
|
3040
2989
|
function v(e, t) {
|
|
3041
2990
|
return { start: e, end: t };
|
|
3042
2991
|
}
|
|
3043
|
-
var
|
|
2992
|
+
var rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), nn = !!String.fromCodePoint, on = !!Object.fromEntries, sn = !!String.prototype.codePointAt, an = !!String.prototype.trimStart, un = !!String.prototype.trimEnd, ln = !!Number.isSafeInteger, hn = ln ? Number.isSafeInteger : function(e) {
|
|
3044
2993
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3045
|
-
},
|
|
2994
|
+
}, Je = !0;
|
|
3046
2995
|
try {
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3049
|
-
} catch
|
|
3050
|
-
|
|
2996
|
+
var cn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2997
|
+
Je = ((ze = cn.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
|
|
2998
|
+
} catch {
|
|
2999
|
+
Je = !1;
|
|
3051
3000
|
}
|
|
3052
|
-
var
|
|
3001
|
+
var St = rn ? (
|
|
3053
3002
|
// Native
|
|
3054
3003
|
function(t, r, i) {
|
|
3055
3004
|
return t.startsWith(r, i);
|
|
@@ -3059,7 +3008,7 @@ var It = yn ? (
|
|
|
3059
3008
|
function(t, r, i) {
|
|
3060
3009
|
return t.slice(i, i + r.length) === r;
|
|
3061
3010
|
}
|
|
3062
|
-
),
|
|
3011
|
+
), qe = nn ? String.fromCodePoint : (
|
|
3063
3012
|
// IE11
|
|
3064
3013
|
function() {
|
|
3065
3014
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3071,9 +3020,9 @@ var It = yn ? (
|
|
|
3071
3020
|
}
|
|
3072
3021
|
return i;
|
|
3073
3022
|
}
|
|
3074
|
-
),
|
|
3023
|
+
), wt = (
|
|
3075
3024
|
// native
|
|
3076
|
-
|
|
3025
|
+
on ? Object.fromEntries : (
|
|
3077
3026
|
// Ponyfill
|
|
3078
3027
|
function(t) {
|
|
3079
3028
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -3083,7 +3032,7 @@ var It = yn ? (
|
|
|
3083
3032
|
return r;
|
|
3084
3033
|
}
|
|
3085
3034
|
)
|
|
3086
|
-
),
|
|
3035
|
+
), sr = sn ? (
|
|
3087
3036
|
// Native
|
|
3088
3037
|
function(t, r) {
|
|
3089
3038
|
return t.codePointAt(r);
|
|
@@ -3097,7 +3046,7 @@ var It = yn ? (
|
|
|
3097
3046
|
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
3098
3047
|
}
|
|
3099
3048
|
}
|
|
3100
|
-
),
|
|
3049
|
+
), fn = an ? (
|
|
3101
3050
|
// Native
|
|
3102
3051
|
function(t) {
|
|
3103
3052
|
return t.trimStart();
|
|
@@ -3105,9 +3054,9 @@ var It = yn ? (
|
|
|
3105
3054
|
) : (
|
|
3106
3055
|
// Ponyfill
|
|
3107
3056
|
function(t) {
|
|
3108
|
-
return t.replace(
|
|
3057
|
+
return t.replace(en, "");
|
|
3109
3058
|
}
|
|
3110
|
-
),
|
|
3059
|
+
), mn = un ? (
|
|
3111
3060
|
// Native
|
|
3112
3061
|
function(t) {
|
|
3113
3062
|
return t.trimEnd();
|
|
@@ -3115,32 +3064,32 @@ var It = yn ? (
|
|
|
3115
3064
|
) : (
|
|
3116
3065
|
// Ponyfill
|
|
3117
3066
|
function(t) {
|
|
3118
|
-
return t.replace(
|
|
3067
|
+
return t.replace(tn, "");
|
|
3119
3068
|
}
|
|
3120
3069
|
);
|
|
3121
|
-
function
|
|
3070
|
+
function ar(e, t) {
|
|
3122
3071
|
return new RegExp(e, t);
|
|
3123
3072
|
}
|
|
3124
|
-
var
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3127
|
-
|
|
3073
|
+
var Ke;
|
|
3074
|
+
if (Je) {
|
|
3075
|
+
var At = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3076
|
+
Ke = function(t, r) {
|
|
3128
3077
|
var i;
|
|
3129
|
-
|
|
3130
|
-
var n =
|
|
3078
|
+
At.lastIndex = r;
|
|
3079
|
+
var n = At.exec(t);
|
|
3131
3080
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
3132
3081
|
};
|
|
3133
3082
|
} else
|
|
3134
|
-
|
|
3083
|
+
Ke = function(t, r) {
|
|
3135
3084
|
for (var i = []; ; ) {
|
|
3136
|
-
var n =
|
|
3137
|
-
if (n === void 0 ||
|
|
3085
|
+
var n = sr(t, r);
|
|
3086
|
+
if (n === void 0 || ur(n) || bn(n))
|
|
3138
3087
|
break;
|
|
3139
3088
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
3140
3089
|
}
|
|
3141
|
-
return
|
|
3090
|
+
return qe.apply(void 0, i);
|
|
3142
3091
|
};
|
|
3143
|
-
var
|
|
3092
|
+
var pn = (
|
|
3144
3093
|
/** @class */
|
|
3145
3094
|
function() {
|
|
3146
3095
|
function e(t, r) {
|
|
@@ -3171,7 +3120,7 @@ var An = (
|
|
|
3171
3120
|
if (i)
|
|
3172
3121
|
break;
|
|
3173
3122
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3174
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3123
|
+
} else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
|
|
3175
3124
|
var a = this.parseTag(t, r);
|
|
3176
3125
|
if (a.err)
|
|
3177
3126
|
return a;
|
|
@@ -3204,10 +3153,10 @@ var An = (
|
|
|
3204
3153
|
return o;
|
|
3205
3154
|
var a = o.val, s = this.clonePosition();
|
|
3206
3155
|
if (this.bumpIf("</")) {
|
|
3207
|
-
if (this.isEOF() || !
|
|
3156
|
+
if (this.isEOF() || !et(this.char()))
|
|
3208
3157
|
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3209
|
-
var
|
|
3210
|
-
return n !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(
|
|
3158
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
3159
|
+
return n !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3211
3160
|
val: {
|
|
3212
3161
|
type: S.tag,
|
|
3213
3162
|
value: n,
|
|
@@ -3222,7 +3171,7 @@ var An = (
|
|
|
3222
3171
|
return this.error(b.INVALID_TAG, v(i, this.clonePosition()));
|
|
3223
3172
|
}, e.prototype.parseTagName = function() {
|
|
3224
3173
|
var t = this.offset();
|
|
3225
|
-
for (this.bump(); !this.isEOF() &&
|
|
3174
|
+
for (this.bump(); !this.isEOF() && yn(this.char()); )
|
|
3226
3175
|
this.bump();
|
|
3227
3176
|
return this.message.slice(t, this.offset());
|
|
3228
3177
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3244,14 +3193,14 @@ var An = (
|
|
|
3244
3193
|
}
|
|
3245
3194
|
break;
|
|
3246
3195
|
}
|
|
3247
|
-
var
|
|
3196
|
+
var h = v(i, this.clonePosition());
|
|
3248
3197
|
return {
|
|
3249
|
-
val: { type: S.literal, value: n, location:
|
|
3198
|
+
val: { type: S.literal, value: n, location: h },
|
|
3250
3199
|
err: null
|
|
3251
3200
|
};
|
|
3252
3201
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3253
3202
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3254
|
-
!
|
|
3203
|
+
!dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3255
3204
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3256
3205
|
if (this.isEOF() || this.char() !== 39)
|
|
3257
3206
|
return null;
|
|
@@ -3285,12 +3234,12 @@ var An = (
|
|
|
3285
3234
|
r.push(i);
|
|
3286
3235
|
this.bump();
|
|
3287
3236
|
}
|
|
3288
|
-
return
|
|
3237
|
+
return qe.apply(void 0, r);
|
|
3289
3238
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3290
3239
|
if (this.isEOF())
|
|
3291
3240
|
return null;
|
|
3292
3241
|
var i = this.char();
|
|
3293
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
3242
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), qe(i));
|
|
3294
3243
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3295
3244
|
var i = this.clonePosition();
|
|
3296
3245
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3319,15 +3268,15 @@ var An = (
|
|
|
3319
3268
|
return this.error(b.MALFORMED_ARGUMENT, v(i, this.clonePosition()));
|
|
3320
3269
|
}
|
|
3321
3270
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3322
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
3271
|
+
var t = this.clonePosition(), r = this.offset(), i = Ke(this.message, r), n = r + i.length;
|
|
3323
3272
|
this.bumpTo(n);
|
|
3324
3273
|
var o = this.clonePosition(), a = v(t, o);
|
|
3325
3274
|
return { value: i, location: a };
|
|
3326
3275
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
3327
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3276
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3328
3277
|
switch (s) {
|
|
3329
3278
|
case "":
|
|
3330
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, v(a,
|
|
3279
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(a, h));
|
|
3331
3280
|
case "number":
|
|
3332
3281
|
case "date":
|
|
3333
3282
|
case "time": {
|
|
@@ -3335,21 +3284,21 @@ var An = (
|
|
|
3335
3284
|
var u = null;
|
|
3336
3285
|
if (this.bumpIf(",")) {
|
|
3337
3286
|
this.bumpSpace();
|
|
3338
|
-
var
|
|
3287
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3339
3288
|
if (c.err)
|
|
3340
3289
|
return c;
|
|
3341
|
-
var f =
|
|
3290
|
+
var f = mn(c.val);
|
|
3342
3291
|
if (f.length === 0)
|
|
3343
3292
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3344
|
-
var p = v(
|
|
3293
|
+
var p = v(l, this.clonePosition());
|
|
3345
3294
|
u = { style: f, styleLocation: p };
|
|
3346
3295
|
}
|
|
3347
3296
|
var y = this.tryParseArgumentClose(n);
|
|
3348
3297
|
if (y.err)
|
|
3349
3298
|
return y;
|
|
3350
3299
|
var d = v(n, this.clonePosition());
|
|
3351
|
-
if (u &&
|
|
3352
|
-
var g =
|
|
3300
|
+
if (u && St(u?.style, "::", 0)) {
|
|
3301
|
+
var g = fn(u.style.slice(2));
|
|
3353
3302
|
if (s === "number") {
|
|
3354
3303
|
var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3355
3304
|
return c.err ? c : {
|
|
@@ -3360,12 +3309,12 @@ var An = (
|
|
|
3360
3309
|
if (g.length === 0)
|
|
3361
3310
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3362
3311
|
var w = g;
|
|
3363
|
-
this.locale && (w =
|
|
3312
|
+
this.locale && (w = qi(g, this.locale));
|
|
3364
3313
|
var f = {
|
|
3365
|
-
type:
|
|
3314
|
+
type: K.dateTime,
|
|
3366
3315
|
pattern: w,
|
|
3367
3316
|
location: u.styleLocation,
|
|
3368
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3317
|
+
parsedOptions: this.shouldParseSkeletons ? Vi(w) : {}
|
|
3369
3318
|
}, _ = s === "date" ? S.date : S.time;
|
|
3370
3319
|
return {
|
|
3371
3320
|
val: { type: _, value: i, location: d, style: f },
|
|
@@ -3378,7 +3327,7 @@ var An = (
|
|
|
3378
3327
|
type: s === "number" ? S.number : s === "date" ? S.date : S.time,
|
|
3379
3328
|
value: i,
|
|
3380
3329
|
location: d,
|
|
3381
|
-
style: (o = u
|
|
3330
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3382
3331
|
},
|
|
3383
3332
|
err: null
|
|
3384
3333
|
};
|
|
@@ -3388,47 +3337,47 @@ var An = (
|
|
|
3388
3337
|
case "select": {
|
|
3389
3338
|
var P = this.clonePosition();
|
|
3390
3339
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3391
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(P,
|
|
3340
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(P, x({}, P)));
|
|
3392
3341
|
this.bumpSpace();
|
|
3393
|
-
var
|
|
3394
|
-
if (s !== "select" &&
|
|
3342
|
+
var R = this.parseIdentifierIfPossible(), N = 0;
|
|
3343
|
+
if (s !== "select" && R.value === "offset") {
|
|
3395
3344
|
if (!this.bumpIf(":"))
|
|
3396
3345
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3397
3346
|
this.bumpSpace();
|
|
3398
3347
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3399
3348
|
if (c.err)
|
|
3400
3349
|
return c;
|
|
3401
|
-
this.bumpSpace(),
|
|
3350
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
|
|
3402
3351
|
}
|
|
3403
|
-
var
|
|
3404
|
-
if (
|
|
3405
|
-
return
|
|
3352
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
|
3353
|
+
if (D.err)
|
|
3354
|
+
return D;
|
|
3406
3355
|
var y = this.tryParseArgumentClose(n);
|
|
3407
3356
|
if (y.err)
|
|
3408
3357
|
return y;
|
|
3409
|
-
var
|
|
3358
|
+
var k = v(n, this.clonePosition());
|
|
3410
3359
|
return s === "select" ? {
|
|
3411
3360
|
val: {
|
|
3412
3361
|
type: S.select,
|
|
3413
3362
|
value: i,
|
|
3414
|
-
options:
|
|
3415
|
-
location:
|
|
3363
|
+
options: wt(D.val),
|
|
3364
|
+
location: k
|
|
3416
3365
|
},
|
|
3417
3366
|
err: null
|
|
3418
3367
|
} : {
|
|
3419
3368
|
val: {
|
|
3420
3369
|
type: S.plural,
|
|
3421
3370
|
value: i,
|
|
3422
|
-
options:
|
|
3371
|
+
options: wt(D.val),
|
|
3423
3372
|
offset: N,
|
|
3424
3373
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3425
|
-
location:
|
|
3374
|
+
location: k
|
|
3426
3375
|
},
|
|
3427
3376
|
err: null
|
|
3428
3377
|
};
|
|
3429
3378
|
}
|
|
3430
3379
|
default:
|
|
3431
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, v(a,
|
|
3380
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(a, h));
|
|
3432
3381
|
}
|
|
3433
3382
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3434
3383
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3470,33 +3419,33 @@ var An = (
|
|
|
3470
3419
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3471
3420
|
var i = [];
|
|
3472
3421
|
try {
|
|
3473
|
-
i =
|
|
3474
|
-
} catch
|
|
3422
|
+
i = Xi(t);
|
|
3423
|
+
} catch {
|
|
3475
3424
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3476
3425
|
}
|
|
3477
3426
|
return {
|
|
3478
3427
|
val: {
|
|
3479
|
-
type:
|
|
3428
|
+
type: K.number,
|
|
3480
3429
|
tokens: i,
|
|
3481
3430
|
location: r,
|
|
3482
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3431
|
+
parsedOptions: this.shouldParseSkeletons ? Ji(i) : {}
|
|
3483
3432
|
},
|
|
3484
3433
|
err: null
|
|
3485
3434
|
};
|
|
3486
3435
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
3487
|
-
for (var o, a = !1, s = [],
|
|
3436
|
+
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = n.value, l = n.location; ; ) {
|
|
3488
3437
|
if (u.length === 0) {
|
|
3489
3438
|
var c = this.clonePosition();
|
|
3490
3439
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3491
3440
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3492
3441
|
if (f.err)
|
|
3493
3442
|
return f;
|
|
3494
|
-
|
|
3443
|
+
l = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3495
3444
|
} else
|
|
3496
3445
|
break;
|
|
3497
3446
|
}
|
|
3498
|
-
if (
|
|
3499
|
-
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3447
|
+
if (h.has(u))
|
|
3448
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3500
3449
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3501
3450
|
var p = this.clonePosition();
|
|
3502
3451
|
if (!this.bumpIf("{"))
|
|
@@ -3513,7 +3462,7 @@ var An = (
|
|
|
3513
3462
|
value: y.val,
|
|
3514
3463
|
location: v(p, this.clonePosition())
|
|
3515
3464
|
}
|
|
3516
|
-
]),
|
|
3465
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3517
3466
|
}
|
|
3518
3467
|
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3519
3468
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3526,8 +3475,8 @@ var An = (
|
|
|
3526
3475
|
else
|
|
3527
3476
|
break;
|
|
3528
3477
|
}
|
|
3529
|
-
var
|
|
3530
|
-
return o ? (a *= i,
|
|
3478
|
+
var h = v(n, this.clonePosition());
|
|
3479
|
+
return o ? (a *= i, hn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3531
3480
|
}, e.prototype.offset = function() {
|
|
3532
3481
|
return this.position.offset;
|
|
3533
3482
|
}, e.prototype.isEOF = function() {
|
|
@@ -3542,7 +3491,7 @@ var An = (
|
|
|
3542
3491
|
var t = this.position.offset;
|
|
3543
3492
|
if (t >= this.message.length)
|
|
3544
3493
|
throw Error("out of bound");
|
|
3545
|
-
var r =
|
|
3494
|
+
var r = sr(this.message, t);
|
|
3546
3495
|
if (r === void 0)
|
|
3547
3496
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3548
3497
|
return r;
|
|
@@ -3561,7 +3510,7 @@ var An = (
|
|
|
3561
3510
|
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);
|
|
3562
3511
|
}
|
|
3563
3512
|
}, e.prototype.bumpIf = function(t) {
|
|
3564
|
-
if (
|
|
3513
|
+
if (St(this.message, t, this.offset())) {
|
|
3565
3514
|
for (var r = 0; r < t.length; r++)
|
|
3566
3515
|
this.bump();
|
|
3567
3516
|
return !0;
|
|
@@ -3583,56 +3532,56 @@ var An = (
|
|
|
3583
3532
|
break;
|
|
3584
3533
|
}
|
|
3585
3534
|
}, e.prototype.bumpSpace = function() {
|
|
3586
|
-
for (; !this.isEOF() &&
|
|
3535
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3587
3536
|
this.bump();
|
|
3588
3537
|
}, e.prototype.peek = function() {
|
|
3589
3538
|
if (this.isEOF())
|
|
3590
3539
|
return null;
|
|
3591
3540
|
var t = this.char(), r = this.offset(), i = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3592
|
-
return i
|
|
3541
|
+
return i ?? null;
|
|
3593
3542
|
}, e;
|
|
3594
3543
|
}()
|
|
3595
3544
|
);
|
|
3596
|
-
function
|
|
3545
|
+
function et(e) {
|
|
3597
3546
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3598
3547
|
}
|
|
3599
|
-
function
|
|
3600
|
-
return
|
|
3548
|
+
function dn(e) {
|
|
3549
|
+
return et(e) || e === 47;
|
|
3601
3550
|
}
|
|
3602
|
-
function
|
|
3551
|
+
function yn(e) {
|
|
3603
3552
|
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;
|
|
3604
3553
|
}
|
|
3605
|
-
function
|
|
3554
|
+
function ur(e) {
|
|
3606
3555
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3607
3556
|
}
|
|
3608
|
-
function
|
|
3557
|
+
function bn(e) {
|
|
3609
3558
|
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;
|
|
3610
3559
|
}
|
|
3611
|
-
function
|
|
3560
|
+
function tt(e) {
|
|
3612
3561
|
e.forEach(function(t) {
|
|
3613
|
-
if (delete t.location,
|
|
3562
|
+
if (delete t.location, qt(t) || Kt(t))
|
|
3614
3563
|
for (var r in t.options)
|
|
3615
|
-
delete t.options[r].location,
|
|
3616
|
-
else
|
|
3564
|
+
delete t.options[r].location, tt(t.options[r].value);
|
|
3565
|
+
else Qt(t) && tr(t.style) || (Yt(t) || Jt(t)) && Ye(t.style) ? delete t.style.location : er(t) && tt(t.children);
|
|
3617
3566
|
});
|
|
3618
3567
|
}
|
|
3619
|
-
function
|
|
3620
|
-
t === void 0 && (t = {}), t =
|
|
3621
|
-
var r = new
|
|
3568
|
+
function gn(e, t) {
|
|
3569
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3570
|
+
var r = new pn(e, t).parse();
|
|
3622
3571
|
if (r.err) {
|
|
3623
3572
|
var i = SyntaxError(b[r.err.kind]);
|
|
3624
3573
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3625
3574
|
}
|
|
3626
|
-
return t
|
|
3575
|
+
return t?.captureLocation || tt(r.val), r.val;
|
|
3627
3576
|
}
|
|
3628
|
-
var
|
|
3577
|
+
var ee;
|
|
3629
3578
|
(function(e) {
|
|
3630
3579
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3631
|
-
})(
|
|
3632
|
-
var
|
|
3580
|
+
})(ee || (ee = {}));
|
|
3581
|
+
var Ae = (
|
|
3633
3582
|
/** @class */
|
|
3634
3583
|
function(e) {
|
|
3635
|
-
|
|
3584
|
+
U(t, e);
|
|
3636
3585
|
function t(r, i, n) {
|
|
3637
3586
|
var o = e.call(this, r) || this;
|
|
3638
3587
|
return o.code = i, o.originalMessage = n, o;
|
|
@@ -3641,155 +3590,155 @@ var Pe = (
|
|
|
3641
3590
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3642
3591
|
}, t;
|
|
3643
3592
|
}(Error)
|
|
3644
|
-
),
|
|
3593
|
+
), Ht = (
|
|
3645
3594
|
/** @class */
|
|
3646
3595
|
function(e) {
|
|
3647
|
-
|
|
3596
|
+
U(t, e);
|
|
3648
3597
|
function t(r, i, n, o) {
|
|
3649
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3598
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3650
3599
|
}
|
|
3651
3600
|
return t;
|
|
3652
|
-
}(
|
|
3653
|
-
),
|
|
3601
|
+
}(Ae)
|
|
3602
|
+
), vn = (
|
|
3654
3603
|
/** @class */
|
|
3655
3604
|
function(e) {
|
|
3656
|
-
|
|
3605
|
+
U(t, e);
|
|
3657
3606
|
function t(r, i, n) {
|
|
3658
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3607
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), ee.INVALID_VALUE, n) || this;
|
|
3659
3608
|
}
|
|
3660
3609
|
return t;
|
|
3661
|
-
}(
|
|
3662
|
-
),
|
|
3610
|
+
}(Ae)
|
|
3611
|
+
), _n = (
|
|
3663
3612
|
/** @class */
|
|
3664
3613
|
function(e) {
|
|
3665
|
-
|
|
3614
|
+
U(t, e);
|
|
3666
3615
|
function t(r, i) {
|
|
3667
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3616
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), ee.MISSING_VALUE, i) || this;
|
|
3668
3617
|
}
|
|
3669
3618
|
return t;
|
|
3670
|
-
}(
|
|
3671
|
-
),
|
|
3619
|
+
}(Ae)
|
|
3620
|
+
), O;
|
|
3672
3621
|
(function(e) {
|
|
3673
3622
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3674
|
-
})(
|
|
3675
|
-
function
|
|
3623
|
+
})(O || (O = {}));
|
|
3624
|
+
function xn(e) {
|
|
3676
3625
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3677
3626
|
var i = t[t.length - 1];
|
|
3678
|
-
return !i || i.type !==
|
|
3627
|
+
return !i || i.type !== O.literal || r.type !== O.literal ? t.push(r) : i.value += r.value, t;
|
|
3679
3628
|
}, []);
|
|
3680
3629
|
}
|
|
3681
|
-
function
|
|
3630
|
+
function En(e) {
|
|
3682
3631
|
return typeof e == "function";
|
|
3683
3632
|
}
|
|
3684
|
-
function
|
|
3685
|
-
if (e.length === 1 &&
|
|
3633
|
+
function _e(e, t, r, i, n, o, a) {
|
|
3634
|
+
if (e.length === 1 && xt(e[0]))
|
|
3686
3635
|
return [
|
|
3687
3636
|
{
|
|
3688
|
-
type:
|
|
3637
|
+
type: O.literal,
|
|
3689
3638
|
value: e[0].value
|
|
3690
3639
|
}
|
|
3691
3640
|
];
|
|
3692
|
-
for (var s = [],
|
|
3693
|
-
var
|
|
3694
|
-
if (
|
|
3641
|
+
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3642
|
+
var l = u[h];
|
|
3643
|
+
if (xt(l)) {
|
|
3695
3644
|
s.push({
|
|
3696
|
-
type:
|
|
3697
|
-
value:
|
|
3645
|
+
type: O.literal,
|
|
3646
|
+
value: l.value
|
|
3698
3647
|
});
|
|
3699
3648
|
continue;
|
|
3700
3649
|
}
|
|
3701
|
-
if (
|
|
3650
|
+
if (ji(l)) {
|
|
3702
3651
|
typeof o == "number" && s.push({
|
|
3703
|
-
type:
|
|
3652
|
+
type: O.literal,
|
|
3704
3653
|
value: r.getNumberFormat(t).format(o)
|
|
3705
3654
|
});
|
|
3706
3655
|
continue;
|
|
3707
3656
|
}
|
|
3708
|
-
var c =
|
|
3657
|
+
var c = l.value;
|
|
3709
3658
|
if (!(n && c in n))
|
|
3710
|
-
throw new
|
|
3659
|
+
throw new _n(c, a);
|
|
3711
3660
|
var f = n[c];
|
|
3712
|
-
if (
|
|
3661
|
+
if (Fi(l)) {
|
|
3713
3662
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3714
|
-
type: typeof f == "string" ?
|
|
3663
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3715
3664
|
value: f
|
|
3716
3665
|
});
|
|
3717
3666
|
continue;
|
|
3718
3667
|
}
|
|
3719
|
-
if (
|
|
3720
|
-
var p = typeof
|
|
3668
|
+
if (Yt(l)) {
|
|
3669
|
+
var p = typeof l.style == "string" ? i.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
|
3721
3670
|
s.push({
|
|
3722
|
-
type:
|
|
3671
|
+
type: O.literal,
|
|
3723
3672
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3724
3673
|
});
|
|
3725
3674
|
continue;
|
|
3726
3675
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var p = typeof
|
|
3676
|
+
if (Jt(l)) {
|
|
3677
|
+
var p = typeof l.style == "string" ? i.time[l.style] : Ye(l.style) ? l.style.parsedOptions : i.time.medium;
|
|
3729
3678
|
s.push({
|
|
3730
|
-
type:
|
|
3679
|
+
type: O.literal,
|
|
3731
3680
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3732
3681
|
});
|
|
3733
3682
|
continue;
|
|
3734
3683
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var p = typeof
|
|
3684
|
+
if (Qt(l)) {
|
|
3685
|
+
var p = typeof l.style == "string" ? i.number[l.style] : tr(l.style) ? l.style.parsedOptions : void 0;
|
|
3737
3686
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3738
|
-
type:
|
|
3687
|
+
type: O.literal,
|
|
3739
3688
|
value: r.getNumberFormat(t, p).format(f)
|
|
3740
3689
|
});
|
|
3741
3690
|
continue;
|
|
3742
3691
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var y =
|
|
3745
|
-
if (!
|
|
3746
|
-
throw new
|
|
3747
|
-
var w =
|
|
3692
|
+
if (er(l)) {
|
|
3693
|
+
var y = l.children, d = l.value, g = n[d];
|
|
3694
|
+
if (!En(g))
|
|
3695
|
+
throw new vn(d, "function", a);
|
|
3696
|
+
var w = _e(y, t, r, i, n, o), _ = g(w.map(function(N) {
|
|
3748
3697
|
return N.value;
|
|
3749
3698
|
}));
|
|
3750
3699
|
Array.isArray(_) || (_ = [_]), s.push.apply(s, _.map(function(N) {
|
|
3751
3700
|
return {
|
|
3752
|
-
type: typeof N == "string" ?
|
|
3701
|
+
type: typeof N == "string" ? O.literal : O.object,
|
|
3753
3702
|
value: N
|
|
3754
3703
|
};
|
|
3755
3704
|
}));
|
|
3756
3705
|
}
|
|
3757
|
-
if (
|
|
3758
|
-
var P =
|
|
3706
|
+
if (qt(l)) {
|
|
3707
|
+
var P = l.options[f] || l.options.other;
|
|
3759
3708
|
if (!P)
|
|
3760
|
-
throw new
|
|
3761
|
-
s.push.apply(s,
|
|
3709
|
+
throw new Ht(l.value, f, Object.keys(l.options), a);
|
|
3710
|
+
s.push.apply(s, _e(P.value, t, r, i, n));
|
|
3762
3711
|
continue;
|
|
3763
3712
|
}
|
|
3764
|
-
if (
|
|
3765
|
-
var P =
|
|
3713
|
+
if (Kt(l)) {
|
|
3714
|
+
var P = l.options["=".concat(f)];
|
|
3766
3715
|
if (!P) {
|
|
3767
3716
|
if (!Intl.PluralRules)
|
|
3768
|
-
throw new
|
|
3717
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3769
3718
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3770
|
-
`,
|
|
3771
|
-
var
|
|
3772
|
-
P =
|
|
3719
|
+
`, ee.MISSING_INTL_API, a);
|
|
3720
|
+
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3721
|
+
P = l.options[R] || l.options.other;
|
|
3773
3722
|
}
|
|
3774
3723
|
if (!P)
|
|
3775
|
-
throw new
|
|
3776
|
-
s.push.apply(s,
|
|
3724
|
+
throw new Ht(l.value, f, Object.keys(l.options), a);
|
|
3725
|
+
s.push.apply(s, _e(P.value, t, r, i, n, f - (l.offset || 0)));
|
|
3777
3726
|
continue;
|
|
3778
3727
|
}
|
|
3779
3728
|
}
|
|
3780
|
-
return
|
|
3729
|
+
return xn(s);
|
|
3781
3730
|
}
|
|
3782
|
-
function
|
|
3783
|
-
return t ?
|
|
3784
|
-
return r[i] =
|
|
3731
|
+
function Tn(e, t) {
|
|
3732
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3733
|
+
return r[i] = x(x({}, e[i]), t[i] || {}), r;
|
|
3785
3734
|
}, {})) : e;
|
|
3786
3735
|
}
|
|
3787
|
-
function
|
|
3736
|
+
function Ln(e, t) {
|
|
3788
3737
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3789
|
-
return r[i] =
|
|
3790
|
-
},
|
|
3738
|
+
return r[i] = Tn(e[i], t[i]), r;
|
|
3739
|
+
}, x({}, e)) : e;
|
|
3791
3740
|
}
|
|
3792
|
-
function
|
|
3741
|
+
function $e(e) {
|
|
3793
3742
|
return {
|
|
3794
3743
|
create: function() {
|
|
3795
3744
|
return {
|
|
@@ -3803,39 +3752,39 @@ function je(e) {
|
|
|
3803
3752
|
}
|
|
3804
3753
|
};
|
|
3805
3754
|
}
|
|
3806
|
-
function
|
|
3755
|
+
function Sn(e) {
|
|
3807
3756
|
return e === void 0 && (e = {
|
|
3808
3757
|
number: {},
|
|
3809
3758
|
dateTime: {},
|
|
3810
3759
|
pluralRules: {}
|
|
3811
3760
|
}), {
|
|
3812
|
-
getNumberFormat:
|
|
3761
|
+
getNumberFormat: Re(function() {
|
|
3813
3762
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3814
3763
|
r[i] = arguments[i];
|
|
3815
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3764
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
|
|
3816
3765
|
}, {
|
|
3817
|
-
cache:
|
|
3818
|
-
strategy:
|
|
3766
|
+
cache: $e(e.number),
|
|
3767
|
+
strategy: De.variadic
|
|
3819
3768
|
}),
|
|
3820
|
-
getDateTimeFormat:
|
|
3769
|
+
getDateTimeFormat: Re(function() {
|
|
3821
3770
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3822
3771
|
r[i] = arguments[i];
|
|
3823
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3772
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
|
|
3824
3773
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3774
|
+
cache: $e(e.dateTime),
|
|
3775
|
+
strategy: De.variadic
|
|
3827
3776
|
}),
|
|
3828
|
-
getPluralRules:
|
|
3777
|
+
getPluralRules: Re(function() {
|
|
3829
3778
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3830
3779
|
r[i] = arguments[i];
|
|
3831
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3780
|
+
return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
|
|
3832
3781
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3782
|
+
cache: $e(e.pluralRules),
|
|
3783
|
+
strategy: De.variadic
|
|
3835
3784
|
})
|
|
3836
3785
|
};
|
|
3837
3786
|
}
|
|
3838
|
-
var
|
|
3787
|
+
var wn = (
|
|
3839
3788
|
/** @class */
|
|
3840
3789
|
function() {
|
|
3841
3790
|
function e(t, r, i, n) {
|
|
@@ -3845,20 +3794,20 @@ var $n = (
|
|
|
3845
3794
|
number: {},
|
|
3846
3795
|
dateTime: {},
|
|
3847
3796
|
pluralRules: {}
|
|
3848
|
-
}, this.format = function(
|
|
3849
|
-
var u = o.formatToParts(
|
|
3797
|
+
}, this.format = function(h) {
|
|
3798
|
+
var u = o.formatToParts(h);
|
|
3850
3799
|
if (u.length === 1)
|
|
3851
3800
|
return u[0].value;
|
|
3852
|
-
var
|
|
3853
|
-
return !c.length || f.type !==
|
|
3801
|
+
var l = u.reduce(function(c, f) {
|
|
3802
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3854
3803
|
}, []);
|
|
3855
|
-
return
|
|
3856
|
-
}, this.formatToParts = function(
|
|
3857
|
-
return
|
|
3804
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3805
|
+
}, this.formatToParts = function(h) {
|
|
3806
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3858
3807
|
}, this.resolvedOptions = function() {
|
|
3859
|
-
var
|
|
3808
|
+
var h;
|
|
3860
3809
|
return {
|
|
3861
|
-
locale: ((
|
|
3810
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3862
3811
|
};
|
|
3863
3812
|
}, this.getAst = function() {
|
|
3864
3813
|
return o.ast;
|
|
@@ -3867,13 +3816,13 @@ var $n = (
|
|
|
3867
3816
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3868
3817
|
var a = n || {};
|
|
3869
3818
|
a.formatters;
|
|
3870
|
-
var s =
|
|
3871
|
-
this.ast = e.__parse(t,
|
|
3819
|
+
var s = ii(a, ["formatters"]);
|
|
3820
|
+
this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
|
|
3872
3821
|
} else
|
|
3873
3822
|
this.ast = t;
|
|
3874
3823
|
if (!Array.isArray(this.ast))
|
|
3875
3824
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3876
|
-
this.formats =
|
|
3825
|
+
this.formats = Ln(e.formats, i), this.formatters = n && n.formatters || Sn(this.formatterCache);
|
|
3877
3826
|
}
|
|
3878
3827
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3879
3828
|
get: function() {
|
|
@@ -3882,11 +3831,11 @@ var $n = (
|
|
|
3882
3831
|
enumerable: !1,
|
|
3883
3832
|
configurable: !0
|
|
3884
3833
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3885
|
-
if (typeof Intl.Locale
|
|
3834
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3886
3835
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3887
3836
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3888
3837
|
}
|
|
3889
|
-
}, e.__parse =
|
|
3838
|
+
}, e.__parse = gn, e.formats = {
|
|
3890
3839
|
number: {
|
|
3891
3840
|
integer: {
|
|
3892
3841
|
maximumFractionDigits: 0
|
|
@@ -3947,7 +3896,7 @@ var $n = (
|
|
|
3947
3896
|
}, e;
|
|
3948
3897
|
}()
|
|
3949
3898
|
);
|
|
3950
|
-
function
|
|
3899
|
+
function An(e, t) {
|
|
3951
3900
|
if (t == null)
|
|
3952
3901
|
return;
|
|
3953
3902
|
if (t in e)
|
|
@@ -3968,92 +3917,92 @@ function Un(e, t) {
|
|
|
3968
3917
|
i = void 0;
|
|
3969
3918
|
return i;
|
|
3970
3919
|
}
|
|
3971
|
-
const
|
|
3920
|
+
const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), lr = (e, t) => {
|
|
3972
3921
|
if (t == null)
|
|
3973
3922
|
return;
|
|
3974
|
-
if (t in
|
|
3975
|
-
return
|
|
3976
|
-
const r =
|
|
3923
|
+
if (t in G && e in G[t])
|
|
3924
|
+
return G[t][e];
|
|
3925
|
+
const r = He(t);
|
|
3977
3926
|
for (let i = 0; i < r.length; i++) {
|
|
3978
|
-
const n = r[i], o =
|
|
3927
|
+
const n = r[i], o = Bn(n, e);
|
|
3979
3928
|
if (o)
|
|
3980
|
-
return
|
|
3929
|
+
return Hn(e, t, o);
|
|
3981
3930
|
}
|
|
3982
3931
|
};
|
|
3983
|
-
let
|
|
3984
|
-
const
|
|
3985
|
-
function
|
|
3986
|
-
return
|
|
3932
|
+
let st;
|
|
3933
|
+
const fe = we({});
|
|
3934
|
+
function Pn(e) {
|
|
3935
|
+
return st[e] || null;
|
|
3987
3936
|
}
|
|
3988
|
-
function
|
|
3989
|
-
return e in
|
|
3937
|
+
function hr(e) {
|
|
3938
|
+
return e in st;
|
|
3990
3939
|
}
|
|
3991
|
-
function
|
|
3992
|
-
if (!
|
|
3940
|
+
function Bn(e, t) {
|
|
3941
|
+
if (!hr(e))
|
|
3993
3942
|
return null;
|
|
3994
|
-
const r =
|
|
3995
|
-
return
|
|
3943
|
+
const r = Pn(e);
|
|
3944
|
+
return An(r, t);
|
|
3996
3945
|
}
|
|
3997
|
-
function
|
|
3946
|
+
function On(e) {
|
|
3998
3947
|
if (e == null)
|
|
3999
3948
|
return;
|
|
4000
|
-
const t =
|
|
3949
|
+
const t = He(e);
|
|
4001
3950
|
for (let r = 0; r < t.length; r++) {
|
|
4002
3951
|
const i = t[r];
|
|
4003
|
-
if (
|
|
3952
|
+
if (hr(i))
|
|
4004
3953
|
return i;
|
|
4005
3954
|
}
|
|
4006
3955
|
}
|
|
4007
|
-
function
|
|
4008
|
-
delete
|
|
3956
|
+
function cr(e, ...t) {
|
|
3957
|
+
delete G[e], fe.update((r) => (r[e] = Ni.all([r[e] || {}, ...t]), r));
|
|
4009
3958
|
}
|
|
4010
|
-
|
|
4011
|
-
[
|
|
3959
|
+
re(
|
|
3960
|
+
[fe],
|
|
4012
3961
|
([e]) => Object.keys(e)
|
|
4013
3962
|
);
|
|
4014
|
-
|
|
4015
|
-
const
|
|
4016
|
-
function
|
|
4017
|
-
|
|
3963
|
+
fe.subscribe((e) => st = e);
|
|
3964
|
+
const xe = {};
|
|
3965
|
+
function Cn(e, t) {
|
|
3966
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4018
3967
|
}
|
|
4019
|
-
function
|
|
4020
|
-
return
|
|
3968
|
+
function fr(e) {
|
|
3969
|
+
return xe[e];
|
|
4021
3970
|
}
|
|
4022
|
-
function
|
|
4023
|
-
return
|
|
4024
|
-
const r =
|
|
3971
|
+
function In(e) {
|
|
3972
|
+
return He(e).map((t) => {
|
|
3973
|
+
const r = fr(t);
|
|
4025
3974
|
return [t, r ? [...r] : []];
|
|
4026
3975
|
}).filter(([, t]) => t.length > 0);
|
|
4027
3976
|
}
|
|
4028
|
-
function
|
|
4029
|
-
return e == null ? !1 :
|
|
3977
|
+
function rt(e) {
|
|
3978
|
+
return e == null ? !1 : He(e).some(
|
|
4030
3979
|
(t) => {
|
|
4031
3980
|
var r;
|
|
4032
|
-
return (r =
|
|
3981
|
+
return (r = fr(t)) == null ? void 0 : r.size;
|
|
4033
3982
|
}
|
|
4034
3983
|
);
|
|
4035
3984
|
}
|
|
4036
|
-
function
|
|
3985
|
+
function Nn(e, t) {
|
|
4037
3986
|
return Promise.all(
|
|
4038
|
-
t.map((i) => (
|
|
4039
|
-
).then((i) =>
|
|
4040
|
-
}
|
|
4041
|
-
const
|
|
4042
|
-
function
|
|
4043
|
-
if (!
|
|
4044
|
-
return e in
|
|
4045
|
-
const t =
|
|
4046
|
-
return
|
|
3987
|
+
t.map((i) => (Cn(e, i), i().then((n) => n.default || n)))
|
|
3988
|
+
).then((i) => cr(e, ...i));
|
|
3989
|
+
}
|
|
3990
|
+
const se = {};
|
|
3991
|
+
function mr(e) {
|
|
3992
|
+
if (!rt(e))
|
|
3993
|
+
return e in se ? se[e] : Promise.resolve();
|
|
3994
|
+
const t = In(e);
|
|
3995
|
+
return se[e] = Promise.all(
|
|
4047
3996
|
t.map(
|
|
4048
|
-
([r, i]) =>
|
|
3997
|
+
([r, i]) => Nn(r, i)
|
|
4049
3998
|
)
|
|
4050
3999
|
).then(() => {
|
|
4051
|
-
if (
|
|
4052
|
-
return
|
|
4053
|
-
delete
|
|
4054
|
-
}),
|
|
4000
|
+
if (rt(e))
|
|
4001
|
+
return mr(e);
|
|
4002
|
+
delete se[e];
|
|
4003
|
+
}), se[e];
|
|
4055
4004
|
}
|
|
4056
|
-
const
|
|
4005
|
+
const Mn = {
|
|
4057
4006
|
number: {
|
|
4058
4007
|
scientific: { notation: "scientific" },
|
|
4059
4008
|
engineering: { notation: "engineering" },
|
|
@@ -4082,159 +4031,159 @@ const Zn = {
|
|
|
4082
4031
|
timeZoneName: "short"
|
|
4083
4032
|
}
|
|
4084
4033
|
}
|
|
4085
|
-
},
|
|
4034
|
+
}, Rn = {
|
|
4086
4035
|
fallbackLocale: null,
|
|
4087
4036
|
loadingDelay: 200,
|
|
4088
|
-
formats:
|
|
4037
|
+
formats: Mn,
|
|
4089
4038
|
warnOnMissingMessages: !0,
|
|
4090
4039
|
handleMissingMessage: void 0,
|
|
4091
4040
|
ignoreTag: !0
|
|
4092
|
-
},
|
|
4093
|
-
function
|
|
4094
|
-
return
|
|
4095
|
-
}
|
|
4096
|
-
const
|
|
4097
|
-
var
|
|
4098
|
-
for (var r in t
|
|
4099
|
-
|
|
4100
|
-
if (
|
|
4101
|
-
for (var r of
|
|
4102
|
-
|
|
4041
|
+
}, Dn = Rn;
|
|
4042
|
+
function te() {
|
|
4043
|
+
return Dn;
|
|
4044
|
+
}
|
|
4045
|
+
const Ue = we(!1);
|
|
4046
|
+
var zn = Object.defineProperty, $n = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
|
|
4047
|
+
for (var r in t)
|
|
4048
|
+
Gn.call(t, r) && Bt(e, r, t[r]);
|
|
4049
|
+
if (Pt)
|
|
4050
|
+
for (var r of Pt(t))
|
|
4051
|
+
Fn.call(t, r) && Bt(e, r, t[r]);
|
|
4103
4052
|
return e;
|
|
4104
|
-
},
|
|
4105
|
-
let
|
|
4106
|
-
const
|
|
4107
|
-
function
|
|
4053
|
+
}, kn = (e, t) => $n(e, Un(t));
|
|
4054
|
+
let it;
|
|
4055
|
+
const Te = we(null);
|
|
4056
|
+
function Ot(e) {
|
|
4108
4057
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
4109
4058
|
}
|
|
4110
|
-
function
|
|
4111
|
-
const r =
|
|
4112
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
4059
|
+
function He(e, t = te().fallbackLocale) {
|
|
4060
|
+
const r = Ot(e);
|
|
4061
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ot(t)])] : r;
|
|
4113
4062
|
}
|
|
4114
|
-
function
|
|
4115
|
-
return
|
|
4063
|
+
function W() {
|
|
4064
|
+
return it ?? void 0;
|
|
4116
4065
|
}
|
|
4117
|
-
|
|
4118
|
-
|
|
4066
|
+
Te.subscribe((e) => {
|
|
4067
|
+
it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4119
4068
|
});
|
|
4120
|
-
const
|
|
4121
|
-
if (e &&
|
|
4122
|
-
const { loadingDelay: t } =
|
|
4069
|
+
const Vn = (e) => {
|
|
4070
|
+
if (e && On(e) && rt(e)) {
|
|
4071
|
+
const { loadingDelay: t } = te();
|
|
4123
4072
|
let r;
|
|
4124
|
-
return typeof window
|
|
4125
|
-
() =>
|
|
4073
|
+
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
4074
|
+
() => Ue.set(!0),
|
|
4126
4075
|
t
|
|
4127
|
-
) :
|
|
4128
|
-
|
|
4076
|
+
) : Ue.set(!0), mr(e).then(() => {
|
|
4077
|
+
Te.set(e);
|
|
4129
4078
|
}).finally(() => {
|
|
4130
|
-
clearTimeout(r),
|
|
4079
|
+
clearTimeout(r), Ue.set(!1);
|
|
4131
4080
|
});
|
|
4132
4081
|
}
|
|
4133
|
-
return
|
|
4134
|
-
},
|
|
4135
|
-
set:
|
|
4136
|
-
}),
|
|
4082
|
+
return Te.set(e);
|
|
4083
|
+
}, ie = kn(jn({}, Te), {
|
|
4084
|
+
set: Vn
|
|
4085
|
+
}), Pe = (e) => {
|
|
4137
4086
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4138
4087
|
return (i) => {
|
|
4139
4088
|
const n = JSON.stringify(i);
|
|
4140
4089
|
return n in t ? t[n] : t[n] = e(i);
|
|
4141
4090
|
};
|
|
4142
4091
|
};
|
|
4143
|
-
var
|
|
4092
|
+
var Wn = Object.defineProperty, Le = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
4144
4093
|
for (var r in t || (t = {}))
|
|
4145
|
-
|
|
4146
|
-
if (
|
|
4147
|
-
for (var r of
|
|
4148
|
-
|
|
4094
|
+
pr.call(t, r) && Ct(e, r, t[r]);
|
|
4095
|
+
if (Le)
|
|
4096
|
+
for (var r of Le(t))
|
|
4097
|
+
dr.call(t, r) && Ct(e, r, t[r]);
|
|
4149
4098
|
return e;
|
|
4150
|
-
},
|
|
4099
|
+
}, ne = (e, t) => {
|
|
4151
4100
|
var r = {};
|
|
4152
4101
|
for (var i in e)
|
|
4153
|
-
|
|
4154
|
-
if (e != null &&
|
|
4155
|
-
for (var i of
|
|
4156
|
-
t.indexOf(i) < 0 &&
|
|
4102
|
+
pr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
4103
|
+
if (e != null && Le)
|
|
4104
|
+
for (var i of Le(e))
|
|
4105
|
+
t.indexOf(i) < 0 && dr.call(e, i) && (r[i] = e[i]);
|
|
4157
4106
|
return r;
|
|
4158
4107
|
};
|
|
4159
|
-
const
|
|
4160
|
-
const { formats: r } =
|
|
4108
|
+
const he = (e, t) => {
|
|
4109
|
+
const { formats: r } = te();
|
|
4161
4110
|
if (e in r && t in r[e])
|
|
4162
4111
|
return r[e][t];
|
|
4163
4112
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4164
|
-
},
|
|
4113
|
+
}, Xn = Pe(
|
|
4165
4114
|
(e) => {
|
|
4166
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4115
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
4167
4116
|
if (r == null)
|
|
4168
4117
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4169
|
-
return i && (n =
|
|
4118
|
+
return i && (n = he("number", i)), new Intl.NumberFormat(r, n);
|
|
4170
4119
|
}
|
|
4171
|
-
),
|
|
4120
|
+
), Zn = Pe(
|
|
4172
4121
|
(e) => {
|
|
4173
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4122
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
4174
4123
|
if (r == null)
|
|
4175
4124
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4176
|
-
return i ? n =
|
|
4125
|
+
return i ? n = he("date", i) : Object.keys(n).length === 0 && (n = he("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
4177
4126
|
}
|
|
4178
|
-
),
|
|
4127
|
+
), Qn = Pe(
|
|
4179
4128
|
(e) => {
|
|
4180
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
4129
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
4181
4130
|
if (r == null)
|
|
4182
4131
|
throw new Error(
|
|
4183
4132
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4184
4133
|
);
|
|
4185
|
-
return i ? n =
|
|
4134
|
+
return i ? n = he("time", i) : Object.keys(n).length === 0 && (n = he("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
4186
4135
|
}
|
|
4187
|
-
),
|
|
4136
|
+
), Yn = (e = {}) => {
|
|
4188
4137
|
var t = e, {
|
|
4189
|
-
locale: r =
|
|
4190
|
-
} = t, i =
|
|
4138
|
+
locale: r = W()
|
|
4139
|
+
} = t, i = ne(t, [
|
|
4191
4140
|
"locale"
|
|
4192
4141
|
]);
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4142
|
+
return Xn(at({ locale: r }, i));
|
|
4143
|
+
}, Jn = (e = {}) => {
|
|
4195
4144
|
var t = e, {
|
|
4196
|
-
locale: r =
|
|
4197
|
-
} = t, i =
|
|
4145
|
+
locale: r = W()
|
|
4146
|
+
} = t, i = ne(t, [
|
|
4198
4147
|
"locale"
|
|
4199
4148
|
]);
|
|
4200
|
-
return
|
|
4201
|
-
},
|
|
4149
|
+
return Zn(at({ locale: r }, i));
|
|
4150
|
+
}, qn = (e = {}) => {
|
|
4202
4151
|
var t = e, {
|
|
4203
|
-
locale: r =
|
|
4204
|
-
} = t, i =
|
|
4152
|
+
locale: r = W()
|
|
4153
|
+
} = t, i = ne(t, [
|
|
4205
4154
|
"locale"
|
|
4206
4155
|
]);
|
|
4207
|
-
return
|
|
4208
|
-
},
|
|
4156
|
+
return Qn(at({ locale: r }, i));
|
|
4157
|
+
}, Kn = Pe(
|
|
4209
4158
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4210
|
-
(e, t =
|
|
4211
|
-
ignoreTag:
|
|
4159
|
+
(e, t = W()) => new wn(e, t, te().formats, {
|
|
4160
|
+
ignoreTag: te().ignoreTag
|
|
4212
4161
|
})
|
|
4213
|
-
),
|
|
4162
|
+
), eo = (e, t = {}) => {
|
|
4214
4163
|
var r, i, n, o;
|
|
4215
4164
|
let a = t;
|
|
4216
4165
|
typeof e == "object" && (a = e, e = a.id);
|
|
4217
4166
|
const {
|
|
4218
4167
|
values: s,
|
|
4219
|
-
locale:
|
|
4168
|
+
locale: h = W(),
|
|
4220
4169
|
default: u
|
|
4221
4170
|
} = a;
|
|
4222
|
-
if (
|
|
4171
|
+
if (h == null)
|
|
4223
4172
|
throw new Error(
|
|
4224
4173
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4225
4174
|
);
|
|
4226
|
-
let
|
|
4227
|
-
if (!
|
|
4228
|
-
|
|
4229
|
-
else if (typeof
|
|
4175
|
+
let l = lr(e, h);
|
|
4176
|
+
if (!l)
|
|
4177
|
+
l = (o = (n = (i = (r = te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: h, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
4178
|
+
else if (typeof l != "string")
|
|
4230
4179
|
return console.warn(
|
|
4231
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4232
|
-
),
|
|
4180
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4181
|
+
), l;
|
|
4233
4182
|
if (!s)
|
|
4234
|
-
return
|
|
4235
|
-
let c =
|
|
4183
|
+
return l;
|
|
4184
|
+
let c = l;
|
|
4236
4185
|
try {
|
|
4237
|
-
c =
|
|
4186
|
+
c = Kn(l, h).format(s);
|
|
4238
4187
|
} catch (f) {
|
|
4239
4188
|
f instanceof Error && console.warn(
|
|
4240
4189
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4242,20 +4191,20 @@ const ce = (e, t) => {
|
|
|
4242
4191
|
);
|
|
4243
4192
|
}
|
|
4244
4193
|
return c;
|
|
4245
|
-
},
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
window.emWidgets = { topic:
|
|
4251
|
-
const
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4254
|
-
}
|
|
4255
|
-
function
|
|
4256
|
-
|
|
4257
|
-
}
|
|
4258
|
-
const
|
|
4194
|
+
}, to = (e, t) => qn(t).format(e), ro = (e, t) => Jn(t).format(e), io = (e, t) => Yn(t).format(e), no = (e, t = W()) => lr(e, t), oo = re([ie, fe], () => eo);
|
|
4195
|
+
re([ie], () => to);
|
|
4196
|
+
re([ie], () => ro);
|
|
4197
|
+
re([ie], () => io);
|
|
4198
|
+
re([ie, fe], () => no);
|
|
4199
|
+
window.emWidgets = { topic: bi };
|
|
4200
|
+
const so = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Lo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4201
|
+
function It(e, t) {
|
|
4202
|
+
cr(e, t);
|
|
4203
|
+
}
|
|
4204
|
+
function ao(e) {
|
|
4205
|
+
ie.set(e);
|
|
4206
|
+
}
|
|
4207
|
+
const Ge = {
|
|
4259
4208
|
en: {
|
|
4260
4209
|
expandLimits: "Limit history",
|
|
4261
4210
|
daily: "per day",
|
|
@@ -4486,48 +4435,48 @@ const Ve = {
|
|
|
4486
4435
|
historyLimitTypeLoss: "Kayıp Limiti"
|
|
4487
4436
|
}
|
|
4488
4437
|
};
|
|
4489
|
-
function
|
|
4490
|
-
|
|
4438
|
+
function uo(e) {
|
|
4439
|
+
Nr(e, "svelte-16zv8bz", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-16zv8bz.svelte-16zv8bz,.svelte-16zv8bz.svelte-16zv8bz::before,.svelte-16zv8bz.svelte-16zv8bz::after{color:var(--emw--color-typography-contrast, #444444);margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-16zv8bz.svelte-16zv8bz{color:var(--emw--color-white, #FFFFFF)}button.svelte-16zv8bz.svelte-16zv8bz{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-16zv8bz.svelte-16zv8bz{display:flex;align-items:center;margin-right:-14px;background:transparent;border:none;color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-large, 20px);text-transform:capitalize;font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.Mobile.svelte-16zv8bz.svelte-16zv8bz{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.svelte-16zv8bz svg.svelte-16zv8bz{width:40px;height:auto;margin-left:-4px}.extended.svelte-16zv8bz.svelte-16zv8bz{transform:rotate(180deg)}.HistoryWrapper.svelte-16zv8bz.svelte-16zv8bz{display:flex;flex-direction:column;width:320px;padding:0 12px;margin:12px auto}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea.svelte-16zv8bz{width:inherit;background-color:var(--emw--color-typpgraphy, #FFFFFF);border-radius:var(--emw--border-radius-large, 20px);box-shadow:0px 3px 19px 0px rgba(0, 0, 0, 0.3);padding:30px 20px}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea .LimitType.svelte-16zv8bz{font-size:var(--emw--font-size-medium, 16px);color:color-mix(in srgb, var(--emw--color-secondary, #E1A749) 80%, black 10%)}.HistoryWrapper.svelte-16zv8bz .HistoryDisplayArea.Mobile.svelte-16zv8bz{width:auto;font-size:var(--emw--font-size-x-small, 12px);padding:15px}.hidden.svelte-16zv8bz.svelte-16zv8bz{display:none}.HistoryRow.svelte-16zv8bz.svelte-16zv8bz{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-16zv8bz.svelte-16zv8bz{display:flex;flex-direction:column;gap:4px;color:var(--emw--color-grey-150, #C0CBC3)}.LimitAmountPeriod.svelte-16zv8bz.svelte-16zv8bz{color:var(--emw--color-grey-150, #C0CBC3)}.LimitContainer.svelte-16zv8bz.svelte-16zv8bz{animation:svelte-16zv8bz-animateEntry 0.7s ease-in}@keyframes svelte-16zv8bz-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
4491
4440
|
}
|
|
4492
|
-
function
|
|
4441
|
+
function Nt(e, t, r) {
|
|
4493
4442
|
const i = e.slice();
|
|
4494
4443
|
return i[38] = t[r], i[39] = t, i[40] = r, i;
|
|
4495
4444
|
}
|
|
4496
|
-
function
|
|
4445
|
+
function lo(e) {
|
|
4497
4446
|
let t, r, i, n = (
|
|
4498
4447
|
/*$_*/
|
|
4499
4448
|
e[9]("expandLimits") + ""
|
|
4500
|
-
), o, a, s,
|
|
4449
|
+
), o, a, s, h, u, l, c, f, p, y = ft(
|
|
4501
4450
|
/*lazyShowedHistoryArray*/
|
|
4502
4451
|
e[7]
|
|
4503
4452
|
), d = [];
|
|
4504
4453
|
for (let g = 0; g < y.length; g += 1)
|
|
4505
|
-
d[g] =
|
|
4454
|
+
d[g] = Mt(Nt(e, y, g));
|
|
4506
4455
|
return {
|
|
4507
4456
|
c() {
|
|
4508
|
-
t = H("div"), r = H("div"), i = H("button"), o =
|
|
4457
|
+
t = H("div"), r = H("div"), i = H("button"), o = M(n), a = Fe(), s = Ie("svg"), h = Ie("path"), u = Ie("path"), l = Fe(), c = H("div");
|
|
4509
4458
|
for (let g = 0; g < d.length; g += 1)
|
|
4510
4459
|
d[g].c();
|
|
4511
|
-
|
|
4512
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4460
|
+
E(h, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), E(h, "class", "svelte-16zv8bz"), E(u, "d", "M0 0h36v36h-36z"), E(u, "fill", "none"), E(u, "class", "svelte-16zv8bz"), E(s, "class", "ExpandArrow " + (/*isDesktop*/
|
|
4461
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), E(s, "xmlns", "http://www.w3.org/2000/svg"), E(s, "width", "36"), E(s, "height", "36"), E(s, "viewBox", "0 0 36 36"), Ur(s, "fill", "var(--emw--color-primary, #22B04E)"), de(
|
|
4513
4462
|
s,
|
|
4514
4463
|
"extended",
|
|
4515
4464
|
/*extended*/
|
|
4516
4465
|
e[8]
|
|
4517
|
-
),
|
|
4518
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4519
|
-
e[10] ? "" : "Mobile") + " svelte-16zv8bz"),
|
|
4466
|
+
), E(i, "class", "ExpandButton " + (/*isDesktop*/
|
|
4467
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), E(c, "class", "HistoryDisplayArea " + (/*isDesktop*/
|
|
4468
|
+
e[10] ? "" : "Mobile") + " svelte-16zv8bz"), de(
|
|
4520
4469
|
c,
|
|
4521
4470
|
"hidden",
|
|
4522
4471
|
/*hidden*/
|
|
4523
4472
|
e[5]
|
|
4524
|
-
),
|
|
4473
|
+
), E(r, "class", "HistoryWrapper svelte-16zv8bz"), E(t, "class", "player-account-gaming-limits-history-2 svelte-16zv8bz");
|
|
4525
4474
|
},
|
|
4526
4475
|
m(g, w) {
|
|
4527
|
-
|
|
4476
|
+
V(g, t, w), L(t, r), L(r, i), L(i, o), L(i, a), L(i, s), L(s, h), L(s, u), L(r, l), L(r, c);
|
|
4528
4477
|
for (let _ = 0; _ < d.length; _ += 1)
|
|
4529
4478
|
d[_] && d[_].m(c, null);
|
|
4530
|
-
f || (p =
|
|
4479
|
+
f || (p = zr(
|
|
4531
4480
|
i,
|
|
4532
4481
|
"click",
|
|
4533
4482
|
/*toggleHistoryDisplayArea*/
|
|
@@ -4537,29 +4486,29 @@ function To(e) {
|
|
|
4537
4486
|
p(g, w) {
|
|
4538
4487
|
if (w[0] & /*$_*/
|
|
4539
4488
|
512 && n !== (n = /*$_*/
|
|
4540
|
-
g[9]("expandLimits") + "") &&
|
|
4541
|
-
256 &&
|
|
4489
|
+
g[9]("expandLimits") + "") && F(o, n), w[0] & /*extended*/
|
|
4490
|
+
256 && de(
|
|
4542
4491
|
s,
|
|
4543
4492
|
"extended",
|
|
4544
4493
|
/*extended*/
|
|
4545
4494
|
g[8]
|
|
4546
4495
|
), w[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4547
4496
|
650) {
|
|
4548
|
-
y =
|
|
4497
|
+
y = ft(
|
|
4549
4498
|
/*lazyShowedHistoryArray*/
|
|
4550
4499
|
g[7]
|
|
4551
4500
|
);
|
|
4552
4501
|
let _;
|
|
4553
4502
|
for (_ = 0; _ < y.length; _ += 1) {
|
|
4554
|
-
const P =
|
|
4555
|
-
d[_] ? d[_].p(P, w) : (d[_] =
|
|
4503
|
+
const P = Nt(g, y, _);
|
|
4504
|
+
d[_] ? d[_].p(P, w) : (d[_] = Mt(P), d[_].c(), d[_].m(c, null));
|
|
4556
4505
|
}
|
|
4557
4506
|
for (; _ < d.length; _ += 1)
|
|
4558
4507
|
d[_].d(1);
|
|
4559
4508
|
d.length = y.length;
|
|
4560
4509
|
}
|
|
4561
4510
|
w[0] & /*hidden*/
|
|
4562
|
-
32 &&
|
|
4511
|
+
32 && de(
|
|
4563
4512
|
c,
|
|
4564
4513
|
"hidden",
|
|
4565
4514
|
/*hidden*/
|
|
@@ -4567,14 +4516,14 @@ function To(e) {
|
|
|
4567
4516
|
);
|
|
4568
4517
|
},
|
|
4569
4518
|
d(g) {
|
|
4570
|
-
g &&
|
|
4519
|
+
g && j(t), Dr(d, g), f = !1, p();
|
|
4571
4520
|
}
|
|
4572
4521
|
};
|
|
4573
4522
|
}
|
|
4574
|
-
function
|
|
4575
|
-
return { c:
|
|
4523
|
+
function ho(e) {
|
|
4524
|
+
return { c: C, m: C, p: C, d: C };
|
|
4576
4525
|
}
|
|
4577
|
-
function
|
|
4526
|
+
function co(e) {
|
|
4578
4527
|
let t, r = (
|
|
4579
4528
|
/*lang*/
|
|
4580
4529
|
(e[0] ? (
|
|
@@ -4584,10 +4533,10 @@ function So(e) {
|
|
|
4584
4533
|
), i;
|
|
4585
4534
|
return {
|
|
4586
4535
|
c() {
|
|
4587
|
-
t = H("p"), i =
|
|
4536
|
+
t = H("p"), i = M(r), E(t, "class", "svelte-16zv8bz");
|
|
4588
4537
|
},
|
|
4589
4538
|
m(n, o) {
|
|
4590
|
-
|
|
4539
|
+
V(n, t, o), L(t, i);
|
|
4591
4540
|
},
|
|
4592
4541
|
p(n, o) {
|
|
4593
4542
|
o[0] & /*lang, $_*/
|
|
@@ -4595,90 +4544,90 @@ function So(e) {
|
|
|
4595
4544
|
(n[0] ? (
|
|
4596
4545
|
/*$_*/
|
|
4597
4546
|
n[9]("error")
|
|
4598
|
-
) : "500 Server Error") + "") &&
|
|
4547
|
+
) : "500 Server Error") + "") && F(i, r);
|
|
4599
4548
|
},
|
|
4600
4549
|
d(n) {
|
|
4601
|
-
n &&
|
|
4550
|
+
n && j(t);
|
|
4602
4551
|
}
|
|
4603
4552
|
};
|
|
4604
4553
|
}
|
|
4605
|
-
function
|
|
4554
|
+
function fo(e) {
|
|
4606
4555
|
let t, r, i, n = (
|
|
4607
4556
|
/*history*/
|
|
4608
4557
|
e[38].type + ""
|
|
4609
4558
|
), o, a, s = (
|
|
4610
4559
|
/*history*/
|
|
4611
4560
|
e[38].amount + ""
|
|
4612
|
-
),
|
|
4561
|
+
), h, u, l = (
|
|
4613
4562
|
/*history*/
|
|
4614
4563
|
e[38].date + ""
|
|
4615
4564
|
), c;
|
|
4616
4565
|
return {
|
|
4617
4566
|
c() {
|
|
4618
|
-
t = H("div"), r = H("span"), i = H("span"), o =
|
|
4567
|
+
t = H("div"), r = H("span"), i = H("span"), o = M(n), a = H("span"), h = M(s), u = H("span"), c = M(l), E(i, "class", "LimitType svelte-16zv8bz"), E(a, "class", "LimitAmountPeriod svelte-16zv8bz"), E(r, "class", "GeneralLimitInformation svelte-16zv8bz"), E(u, "class", "DateLimitInformation svelte-16zv8bz"), E(t, "class", "HistoryRow svelte-16zv8bz");
|
|
4619
4568
|
},
|
|
4620
4569
|
m(f, p) {
|
|
4621
|
-
|
|
4570
|
+
V(f, t, p), L(t, r), L(r, i), L(i, o), L(r, a), L(a, h), L(t, u), L(u, c);
|
|
4622
4571
|
},
|
|
4623
4572
|
p(f, p) {
|
|
4624
4573
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4625
4574
|
128 && n !== (n = /*history*/
|
|
4626
|
-
f[38].type + "") &&
|
|
4575
|
+
f[38].type + "") && F(o, n), p[0] & /*lazyShowedHistoryArray*/
|
|
4627
4576
|
128 && s !== (s = /*history*/
|
|
4628
|
-
f[38].amount + "") &&
|
|
4629
|
-
128 &&
|
|
4630
|
-
f[38].date + "") &&
|
|
4577
|
+
f[38].amount + "") && F(h, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4578
|
+
128 && l !== (l = /*history*/
|
|
4579
|
+
f[38].date + "") && F(c, l);
|
|
4631
4580
|
},
|
|
4632
4581
|
d(f) {
|
|
4633
|
-
f &&
|
|
4582
|
+
f && j(t);
|
|
4634
4583
|
}
|
|
4635
4584
|
};
|
|
4636
4585
|
}
|
|
4637
|
-
function
|
|
4586
|
+
function mo(e) {
|
|
4638
4587
|
let t, r, i, n = (
|
|
4639
4588
|
/*history*/
|
|
4640
4589
|
e[38].type + ""
|
|
4641
4590
|
), o, a, s = (
|
|
4642
4591
|
/*$_*/
|
|
4643
4592
|
e[9]("limitRemoved") + ""
|
|
4644
|
-
),
|
|
4593
|
+
), h, u, l = (
|
|
4645
4594
|
/*history*/
|
|
4646
4595
|
e[38].date + ""
|
|
4647
4596
|
), c;
|
|
4648
4597
|
return {
|
|
4649
4598
|
c() {
|
|
4650
|
-
t = H("div"), r = H("span"), i = H("span"), o =
|
|
4599
|
+
t = H("div"), r = H("span"), i = H("span"), o = M(n), a = H("span"), h = M(s), u = H("span"), c = M(l), E(i, "class", "LimitType svelte-16zv8bz"), E(a, "class", "LimitAmountPeriod svelte-16zv8bz"), E(r, "class", "GeneralLimitInformation svelte-16zv8bz"), E(u, "class", "DateLimitInformation svelte-16zv8bz"), E(t, "class", "HistoryRow svelte-16zv8bz");
|
|
4651
4600
|
},
|
|
4652
4601
|
m(f, p) {
|
|
4653
|
-
|
|
4602
|
+
V(f, t, p), L(t, r), L(r, i), L(i, o), L(r, a), L(a, h), L(t, u), L(u, c);
|
|
4654
4603
|
},
|
|
4655
4604
|
p(f, p) {
|
|
4656
4605
|
p[0] & /*lazyShowedHistoryArray*/
|
|
4657
4606
|
128 && n !== (n = /*history*/
|
|
4658
|
-
f[38].type + "") &&
|
|
4607
|
+
f[38].type + "") && F(o, n), p[0] & /*$_*/
|
|
4659
4608
|
512 && s !== (s = /*$_*/
|
|
4660
|
-
f[9]("limitRemoved") + "") &&
|
|
4661
|
-
128 &&
|
|
4662
|
-
f[38].date + "") &&
|
|
4609
|
+
f[9]("limitRemoved") + "") && F(h, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4610
|
+
128 && l !== (l = /*history*/
|
|
4611
|
+
f[38].date + "") && F(c, l);
|
|
4663
4612
|
},
|
|
4664
4613
|
d(f) {
|
|
4665
|
-
f &&
|
|
4614
|
+
f && j(t);
|
|
4666
4615
|
}
|
|
4667
4616
|
};
|
|
4668
4617
|
}
|
|
4669
|
-
function
|
|
4618
|
+
function Mt(e) {
|
|
4670
4619
|
let t, r, i, n = (
|
|
4671
4620
|
/*index*/
|
|
4672
4621
|
e[40]
|
|
4673
4622
|
);
|
|
4674
|
-
function o(
|
|
4623
|
+
function o(l, c) {
|
|
4675
4624
|
return (
|
|
4676
4625
|
/*history*/
|
|
4677
|
-
|
|
4626
|
+
l[38].removed ? mo : fo
|
|
4678
4627
|
);
|
|
4679
4628
|
}
|
|
4680
4629
|
let a = o(e), s = a(e);
|
|
4681
|
-
const
|
|
4630
|
+
const h = () => (
|
|
4682
4631
|
/*div_binding*/
|
|
4683
4632
|
e[21](t, n)
|
|
4684
4633
|
), u = () => (
|
|
@@ -4687,98 +4636,98 @@ function jt(e) {
|
|
|
4687
4636
|
);
|
|
4688
4637
|
return {
|
|
4689
4638
|
c() {
|
|
4690
|
-
t = H("div"), s.c(), r =
|
|
4639
|
+
t = H("div"), s.c(), r = Fe(), E(t, "class", i = ht(
|
|
4691
4640
|
/*index*/
|
|
4692
4641
|
e[40] > +/*numberofentries*/
|
|
4693
4642
|
e[1] ? "LimitContainer" : ""
|
|
4694
4643
|
) + " svelte-16zv8bz");
|
|
4695
4644
|
},
|
|
4696
|
-
m(
|
|
4697
|
-
|
|
4645
|
+
m(l, c) {
|
|
4646
|
+
V(l, t, c), s.m(t, null), L(t, r), h();
|
|
4698
4647
|
},
|
|
4699
|
-
p(
|
|
4700
|
-
e =
|
|
4701
|
-
2 && i !== (i =
|
|
4648
|
+
p(l, c) {
|
|
4649
|
+
e = l, a === (a = o(e)) && s ? s.p(e, c) : (s.d(1), s = a(e), s && (s.c(), s.m(t, r))), c[0] & /*numberofentries*/
|
|
4650
|
+
2 && i !== (i = ht(
|
|
4702
4651
|
/*index*/
|
|
4703
4652
|
e[40] > +/*numberofentries*/
|
|
4704
4653
|
e[1] ? "LimitContainer" : ""
|
|
4705
|
-
) + " svelte-16zv8bz") &&
|
|
4654
|
+
) + " svelte-16zv8bz") && E(t, "class", i), n !== /*index*/
|
|
4706
4655
|
e[40] && (u(), n = /*index*/
|
|
4707
|
-
e[40],
|
|
4656
|
+
e[40], h());
|
|
4708
4657
|
},
|
|
4709
|
-
d(
|
|
4710
|
-
|
|
4658
|
+
d(l) {
|
|
4659
|
+
l && j(t), s.d(), u();
|
|
4711
4660
|
}
|
|
4712
4661
|
};
|
|
4713
4662
|
}
|
|
4714
|
-
function
|
|
4663
|
+
function po(e) {
|
|
4715
4664
|
let t;
|
|
4716
4665
|
function r(o, a) {
|
|
4717
4666
|
return (
|
|
4718
4667
|
/*hasErrors*/
|
|
4719
|
-
o[6] ?
|
|
4668
|
+
o[6] ? co : (
|
|
4720
4669
|
/*isLoading*/
|
|
4721
|
-
o[4] ?
|
|
4670
|
+
o[4] ? ho : lo
|
|
4722
4671
|
)
|
|
4723
4672
|
);
|
|
4724
4673
|
}
|
|
4725
4674
|
let i = r(e), n = i(e);
|
|
4726
4675
|
return {
|
|
4727
4676
|
c() {
|
|
4728
|
-
t = H("div"), n.c(),
|
|
4677
|
+
t = H("div"), n.c(), E(t, "class", "svelte-16zv8bz");
|
|
4729
4678
|
},
|
|
4730
4679
|
m(o, a) {
|
|
4731
|
-
|
|
4680
|
+
V(o, t, a), n.m(t, null), e[22](t);
|
|
4732
4681
|
},
|
|
4733
4682
|
p(o, a) {
|
|
4734
4683
|
i === (i = r(o)) && n ? n.p(o, a) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
4735
4684
|
},
|
|
4736
|
-
i:
|
|
4737
|
-
o:
|
|
4685
|
+
i: C,
|
|
4686
|
+
o: C,
|
|
4738
4687
|
d(o) {
|
|
4739
|
-
o &&
|
|
4688
|
+
o && j(t), n.d(), e[22](null);
|
|
4740
4689
|
}
|
|
4741
4690
|
};
|
|
4742
4691
|
}
|
|
4743
|
-
function
|
|
4692
|
+
function yo(e, t, r) {
|
|
4744
4693
|
let i;
|
|
4745
|
-
|
|
4746
|
-
let n = window.navigator.userAgent, o = !
|
|
4747
|
-
const
|
|
4694
|
+
Ir(e, oo, (m) => r(9, i = m));
|
|
4695
|
+
let n = window.navigator.userAgent, o = !so(n), { lang: a = "" } = t, { userid: s = "" } = t, { session: h = "" } = t, { endpoint: u = "" } = t, { apiversion: l = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, w, _ = new Array(), P = parseInt(c, 10), R = !1, N = !0, D = [], k = [], me = !0, Be = !1, oe = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4696
|
+
const br = () => {
|
|
4748
4697
|
fetch(g).then((T) => T.json()).then((T) => {
|
|
4749
4698
|
Object.keys(T).forEach((B) => {
|
|
4750
|
-
|
|
4699
|
+
It(B, T[B]);
|
|
4751
4700
|
});
|
|
4752
4701
|
}).catch((T) => {
|
|
4753
4702
|
console.log(T);
|
|
4754
4703
|
});
|
|
4755
4704
|
};
|
|
4756
|
-
Object.keys(
|
|
4757
|
-
|
|
4705
|
+
Object.keys(Ge).forEach((m) => {
|
|
4706
|
+
It(m, Ge[m]);
|
|
4758
4707
|
});
|
|
4759
|
-
const
|
|
4760
|
-
let m =
|
|
4708
|
+
const gr = () => {
|
|
4709
|
+
let m = l === "gmcore" ? `/v2/player/${s}/transactions/limit` : `/v1/player/${s}/limits/monetary/history`, T = new URL(m, u);
|
|
4761
4710
|
T.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), T.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), T.searchParams.append("limit", "10000");
|
|
4762
4711
|
let B = {
|
|
4763
4712
|
method: "GET",
|
|
4764
|
-
headers: { "X-SessionID":
|
|
4713
|
+
headers: { "X-SessionID": h }
|
|
4765
4714
|
};
|
|
4766
4715
|
fetch(T.href, B).then((A) => {
|
|
4767
4716
|
if (A.status >= 300)
|
|
4768
|
-
throw r(4, N = !1), r(6,
|
|
4717
|
+
throw r(4, N = !1), r(6, R = !0), new Error("There was an error fetching the limits");
|
|
4769
4718
|
return A.json();
|
|
4770
4719
|
}).then(
|
|
4771
4720
|
(A) => {
|
|
4772
|
-
A.length && (
|
|
4721
|
+
A.length && (D = vr(A), r(7, k = D.slice(0, P))), r(4, N = !1);
|
|
4773
4722
|
},
|
|
4774
4723
|
(A) => {
|
|
4775
|
-
console.error("There was an error", A), r(6,
|
|
4724
|
+
console.error("There was an error", A), r(6, R = !0);
|
|
4776
4725
|
}
|
|
4777
4726
|
);
|
|
4778
|
-
},
|
|
4779
|
-
const T = !!
|
|
4727
|
+
}, vr = (m) => {
|
|
4728
|
+
const T = !!Ge[a];
|
|
4780
4729
|
return m.map((A) => {
|
|
4781
|
-
let
|
|
4730
|
+
let z = {
|
|
4782
4731
|
amount: "",
|
|
4783
4732
|
currency: "",
|
|
4784
4733
|
date: "",
|
|
@@ -4786,44 +4735,44 @@ function Po(e, t, r) {
|
|
|
4786
4735
|
type: "",
|
|
4787
4736
|
removed: !1
|
|
4788
4737
|
};
|
|
4789
|
-
return
|
|
4738
|
+
return z.amount = _r(A), z.currency = T ? oe[A.limitCurrencyCode] : A.limitCurrencyCode, z.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(A.limitDate)), z.period = i(`${A.limitPeriod.toLowerCase()}`), z.type = l === "gmcore" ? i(`historyLimitType${A.limitType.split(" ")[0]}`) : i(`historyLimitType${A.limitType.split(" ")[0]}`) + " " + i(`historyProductType${A.limitProductType}`), z.removed = A.limitAmount === -1, z;
|
|
4790
4739
|
});
|
|
4791
|
-
},
|
|
4740
|
+
}, _r = (m) => {
|
|
4792
4741
|
let T = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
4793
4742
|
if (!p) {
|
|
4794
|
-
let
|
|
4795
|
-
return `${T}${
|
|
4743
|
+
let Or = oe[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
4744
|
+
return `${T}${Or}`;
|
|
4796
4745
|
}
|
|
4797
4746
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4798
|
-
const B = T.match(/\{(\d+)decimals\}/), A = B ? parseInt(B[1], 10) : 2,
|
|
4799
|
-
let
|
|
4800
|
-
const [
|
|
4801
|
-
let [
|
|
4802
|
-
return
|
|
4803
|
-
|
|
4804
|
-
|
|
4747
|
+
const B = T.match(/\{(\d+)decimals\}/), A = B ? parseInt(B[1], 10) : 2, z = B ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4748
|
+
let pe = parseFloat(m.limitAmount).toFixed(A);
|
|
4749
|
+
const [Pr, Oe] = p.includes(".") ? [",", "."] : [".", ","];
|
|
4750
|
+
let [Ce, Br] = pe.split(".");
|
|
4751
|
+
return Ce = Ce.replace(/\B(?=(\d{3})+(?!\d))/g, Pr), pe = `${Ce}${Oe}${Br}`, T = T.replace("{currency}", oe[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", pe.split(Oe)[0]).replace(
|
|
4752
|
+
z,
|
|
4753
|
+
pe.split(Oe)[1]
|
|
4805
4754
|
), T;
|
|
4806
|
-
},
|
|
4807
|
-
r(5,
|
|
4755
|
+
}, xr = () => {
|
|
4756
|
+
r(5, me = !me), r(8, Be = !Be);
|
|
4808
4757
|
};
|
|
4809
|
-
let
|
|
4758
|
+
let ut = new IntersectionObserver((m) => {
|
|
4810
4759
|
m.forEach((T) => {
|
|
4811
|
-
T.isIntersecting && (P += parseInt(c, 10) || 10,
|
|
4760
|
+
T.isIntersecting && (P += parseInt(c, 10) || 10, k.length < D.length && r(7, k = D.slice(0, P)));
|
|
4812
4761
|
});
|
|
4813
4762
|
});
|
|
4814
|
-
const
|
|
4815
|
-
|
|
4816
|
-
},
|
|
4763
|
+
const Er = () => {
|
|
4764
|
+
ut.observe(_[_.length - 1]);
|
|
4765
|
+
}, Tr = () => {
|
|
4817
4766
|
if (!f) return;
|
|
4818
4767
|
let m = {};
|
|
4819
4768
|
f.split(",").forEach((T) => {
|
|
4820
4769
|
let B = T.split(":");
|
|
4821
4770
|
m[B[0].trim()] = B[1].trim();
|
|
4822
|
-
}),
|
|
4823
|
-
},
|
|
4771
|
+
}), oe = { ...oe, ...m };
|
|
4772
|
+
}, Lr = () => {
|
|
4824
4773
|
let m = document.createElement("style");
|
|
4825
4774
|
m.innerHTML = y, w.appendChild(m);
|
|
4826
|
-
},
|
|
4775
|
+
}, Sr = () => {
|
|
4827
4776
|
let m = new URL(d), T = document.createElement("style");
|
|
4828
4777
|
fetch(m.href).then((B) => B.text()).then((B) => {
|
|
4829
4778
|
T.innerHTML = B, w && (setTimeout(
|
|
@@ -4837,67 +4786,67 @@ function Po(e, t, r) {
|
|
|
4837
4786
|
500
|
|
4838
4787
|
));
|
|
4839
4788
|
});
|
|
4840
|
-
},
|
|
4841
|
-
|
|
4789
|
+
}, wr = () => {
|
|
4790
|
+
ao(a);
|
|
4842
4791
|
};
|
|
4843
|
-
|
|
4844
|
-
|
|
4792
|
+
jr(() => () => {
|
|
4793
|
+
ut.unobserve(_[_.length - 1]);
|
|
4845
4794
|
});
|
|
4846
|
-
function
|
|
4847
|
-
|
|
4795
|
+
function Ar(m, T) {
|
|
4796
|
+
Ee[m ? "unshift" : "push"](() => {
|
|
4848
4797
|
_[T] = m, r(3, _);
|
|
4849
4798
|
});
|
|
4850
4799
|
}
|
|
4851
|
-
function
|
|
4852
|
-
|
|
4800
|
+
function Hr(m) {
|
|
4801
|
+
Ee[m ? "unshift" : "push"](() => {
|
|
4853
4802
|
w = m, r(2, w);
|
|
4854
4803
|
});
|
|
4855
4804
|
}
|
|
4856
4805
|
return e.$$set = (m) => {
|
|
4857
|
-
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13,
|
|
4806
|
+
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13, h = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, l = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "translationurl" in m && r(20, g = m.translationurl);
|
|
4858
4807
|
}, e.$$.update = () => {
|
|
4859
4808
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
4860
|
-
65536 && f &&
|
|
4861
|
-
61440 && u && s &&
|
|
4862
|
-
56 && _[0] && !N && !
|
|
4863
|
-
1 && a &&
|
|
4864
|
-
524288 && d &&
|
|
4865
|
-
262148 && y && w &&
|
|
4866
|
-
1048580 && g && w &&
|
|
4809
|
+
65536 && f && Tr(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
4810
|
+
61440 && u && s && h && l && gr(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
4811
|
+
56 && _[0] && !N && !me && Er(), e.$$.dirty[0] & /*lang*/
|
|
4812
|
+
1 && a && wr(), e.$$.dirty[0] & /*clientstylingurl*/
|
|
4813
|
+
524288 && d && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4814
|
+
262148 && y && w && Lr(), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
4815
|
+
1048580 && g && w && br();
|
|
4867
4816
|
}, [
|
|
4868
4817
|
a,
|
|
4869
4818
|
c,
|
|
4870
4819
|
w,
|
|
4871
4820
|
_,
|
|
4872
4821
|
N,
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4822
|
+
me,
|
|
4823
|
+
R,
|
|
4824
|
+
k,
|
|
4825
|
+
Be,
|
|
4877
4826
|
i,
|
|
4878
4827
|
o,
|
|
4879
|
-
|
|
4828
|
+
xr,
|
|
4880
4829
|
s,
|
|
4881
|
-
l,
|
|
4882
|
-
u,
|
|
4883
4830
|
h,
|
|
4831
|
+
u,
|
|
4832
|
+
l,
|
|
4884
4833
|
f,
|
|
4885
4834
|
p,
|
|
4886
4835
|
y,
|
|
4887
4836
|
d,
|
|
4888
4837
|
g,
|
|
4889
|
-
|
|
4890
|
-
|
|
4838
|
+
Ar,
|
|
4839
|
+
Hr
|
|
4891
4840
|
];
|
|
4892
4841
|
}
|
|
4893
|
-
class
|
|
4842
|
+
class yr extends ti {
|
|
4894
4843
|
constructor(t) {
|
|
4895
|
-
super(),
|
|
4844
|
+
super(), Kr(
|
|
4896
4845
|
this,
|
|
4897
4846
|
t,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4847
|
+
yo,
|
|
4848
|
+
po,
|
|
4849
|
+
Dt,
|
|
4901
4850
|
{
|
|
4902
4851
|
lang: 0,
|
|
4903
4852
|
userid: 12,
|
|
@@ -4911,7 +4860,7 @@ class Sr extends di {
|
|
|
4911
4860
|
clientstylingurl: 19,
|
|
4912
4861
|
translationurl: 20
|
|
4913
4862
|
},
|
|
4914
|
-
|
|
4863
|
+
uo,
|
|
4915
4864
|
[-1, -1]
|
|
4916
4865
|
);
|
|
4917
4866
|
}
|
|
@@ -4982,49 +4931,49 @@ class Sr extends di {
|
|
|
4982
4931
|
this.$$set({ translationurl: t }), I();
|
|
4983
4932
|
}
|
|
4984
4933
|
}
|
|
4985
|
-
|
|
4986
|
-
const
|
|
4934
|
+
ei(yr, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4935
|
+
const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4987
4936
|
__proto__: null,
|
|
4988
|
-
default:
|
|
4937
|
+
default: yr
|
|
4989
4938
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4990
4939
|
export {
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
4940
|
+
ie as $,
|
|
4941
|
+
ce as A,
|
|
4942
|
+
ke as B,
|
|
4943
|
+
Eo as C,
|
|
4944
|
+
oo as D,
|
|
4945
|
+
Ie as E,
|
|
4946
|
+
Ur as F,
|
|
4947
|
+
fe as G,
|
|
4948
|
+
Lo as H,
|
|
4949
|
+
jr as I,
|
|
4950
|
+
vo as J,
|
|
4951
|
+
So as P,
|
|
4952
|
+
ti as S,
|
|
4953
|
+
cr as a,
|
|
4954
|
+
Nr as b,
|
|
4955
|
+
ei as c,
|
|
4956
|
+
Fe as d,
|
|
5008
4957
|
H as e,
|
|
5009
4958
|
I as f,
|
|
5010
|
-
|
|
4959
|
+
E as g,
|
|
5011
4960
|
L as h,
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
k,
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
4961
|
+
Kr as i,
|
|
4962
|
+
V as j,
|
|
4963
|
+
j as k,
|
|
4964
|
+
Ir as l,
|
|
4965
|
+
so as m,
|
|
4966
|
+
C as n,
|
|
4967
|
+
bo as o,
|
|
4968
|
+
To as p,
|
|
4969
|
+
Ee as q,
|
|
4970
|
+
M as r,
|
|
4971
|
+
Dt as s,
|
|
4972
|
+
_o as t,
|
|
4973
|
+
go as u,
|
|
4974
|
+
zr as v,
|
|
4975
|
+
F as w,
|
|
4976
|
+
ft as x,
|
|
4977
|
+
xo as y,
|
|
4978
|
+
Dr as z
|
|
5030
4979
|
};
|