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