@everymatrix/player-account-gaming-limits-popup 1.53.0 → 1.53.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsPopup-Cwwha4We.js → PlayerAccountGamingLimitsPopup-z2lwg4lb.js} +930 -981
- package/esnext/player-account-gaming-limits-popup.js +14 -0
- package/package.json +12 -8
- package/components/PlayerAccountGamingLimitsPopup-Czq9kJGd.cjs +0 -5
- package/es2015/player-account-gaming-limits-popup.cjs +0 -1
- package/es2015/player-account-gaming-limits-popup.js +0 -16
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Ke = Object.getOwnPropertySymbols;
|
|
4
|
-
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ee = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
fr.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
-
if (Ke)
|
|
9
|
-
for (var r of Ke(t))
|
|
10
|
-
pr.call(t, r) && Ee(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, tt = (e, t) => hr(e, cr(t));
|
|
13
|
-
var C = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
s(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
s(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
-
s((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function O() {
|
|
1
|
+
function A() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function xt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ze() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function ne(e) {
|
|
10
|
+
e.forEach(xt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Ve(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function _t(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function er(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function Et(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
54
|
-
return
|
|
25
|
+
return A;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function tr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
61
32
|
}
|
|
62
33
|
function H(e, t) {
|
|
63
34
|
e.appendChild(t);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
36
|
+
function rr(e, t, r) {
|
|
37
|
+
const n = nr(e);
|
|
67
38
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = B("style");
|
|
40
|
+
i.id = t, i.textContent = r, ir(n, i);
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
|
-
function
|
|
43
|
+
function nr(e) {
|
|
73
44
|
if (!e) return document;
|
|
74
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,50 +49,50 @@ function vr(e) {
|
|
|
78
49
|
t
|
|
79
50
|
) : e.ownerDocument;
|
|
80
51
|
}
|
|
81
|
-
function
|
|
52
|
+
function ir(e, t) {
|
|
82
53
|
return H(
|
|
83
54
|
/** @type {Document} */
|
|
84
55
|
e.head || e,
|
|
85
56
|
t
|
|
86
57
|
), t.sheet;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function ie(e, t, r) {
|
|
89
60
|
e.insertBefore(t, r || null);
|
|
90
61
|
}
|
|
91
|
-
function
|
|
62
|
+
function q(e) {
|
|
92
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
64
|
}
|
|
94
|
-
function
|
|
65
|
+
function B(e) {
|
|
95
66
|
return document.createElement(e);
|
|
96
67
|
}
|
|
97
|
-
function
|
|
68
|
+
function oe(e) {
|
|
98
69
|
return document.createTextNode(e);
|
|
99
70
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
71
|
+
function xe() {
|
|
72
|
+
return oe(" ");
|
|
102
73
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
74
|
+
function or() {
|
|
75
|
+
return oe("");
|
|
105
76
|
}
|
|
106
|
-
function
|
|
77
|
+
function ar(e, t, r, n) {
|
|
107
78
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
108
79
|
}
|
|
109
|
-
function
|
|
80
|
+
function sr(e) {
|
|
110
81
|
return function(t) {
|
|
111
82
|
return t.preventDefault(), e.call(this, t);
|
|
112
83
|
};
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function C(e, t, r) {
|
|
115
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
87
|
}
|
|
117
|
-
function
|
|
88
|
+
function ur(e) {
|
|
118
89
|
return Array.from(e.childNodes);
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function ze(e, t) {
|
|
121
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
93
|
t);
|
|
123
94
|
}
|
|
124
|
-
function
|
|
95
|
+
function lr(e) {
|
|
125
96
|
const t = {};
|
|
126
97
|
return e.childNodes.forEach(
|
|
127
98
|
/** @param {Element} node */
|
|
@@ -130,93 +101,93 @@ function Tr(e) {
|
|
|
130
101
|
}
|
|
131
102
|
), t;
|
|
132
103
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
104
|
+
let ee;
|
|
105
|
+
function K(e) {
|
|
106
|
+
ee = e;
|
|
136
107
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
108
|
+
function hr() {
|
|
109
|
+
if (!ee) throw new Error("Function called outside component initialization");
|
|
110
|
+
return ee;
|
|
140
111
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
112
|
+
function fr(e) {
|
|
113
|
+
hr().$$.on_mount.push(e);
|
|
143
114
|
}
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
115
|
+
const F = [], Ie = [];
|
|
116
|
+
let j = [];
|
|
117
|
+
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Ce = !1;
|
|
119
|
+
function dr() {
|
|
120
|
+
Ce || (Ce = !0, cr.then(N));
|
|
150
121
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
122
|
+
function Be(e) {
|
|
123
|
+
j.push(e);
|
|
153
124
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
125
|
+
const _e = /* @__PURE__ */ new Set();
|
|
126
|
+
let G = 0;
|
|
127
|
+
function N() {
|
|
128
|
+
if (G !== 0)
|
|
158
129
|
return;
|
|
159
|
-
const e =
|
|
130
|
+
const e = ee;
|
|
160
131
|
do {
|
|
161
132
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t =
|
|
164
|
-
|
|
133
|
+
for (; G < F.length; ) {
|
|
134
|
+
const t = F[G];
|
|
135
|
+
G++, K(t), pr(t.$$);
|
|
165
136
|
}
|
|
166
137
|
} catch (t) {
|
|
167
|
-
throw
|
|
138
|
+
throw F.length = 0, G = 0, t;
|
|
168
139
|
}
|
|
169
|
-
for (
|
|
170
|
-
for (let t = 0; t <
|
|
171
|
-
const r =
|
|
172
|
-
|
|
140
|
+
for (K(null), F.length = 0, G = 0; Ie.length; ) Ie.pop()();
|
|
141
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
142
|
+
const r = j[t];
|
|
143
|
+
_e.has(r) || (_e.add(r), r());
|
|
173
144
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
176
|
-
for (;
|
|
177
|
-
|
|
178
|
-
|
|
145
|
+
j.length = 0;
|
|
146
|
+
} while (F.length);
|
|
147
|
+
for (; Ye.length; )
|
|
148
|
+
Ye.pop()();
|
|
149
|
+
Ce = !1, _e.clear(), K(e);
|
|
179
150
|
}
|
|
180
|
-
function
|
|
151
|
+
function pr(e) {
|
|
181
152
|
if (e.fragment !== null) {
|
|
182
|
-
e.update(),
|
|
153
|
+
e.update(), ne(e.before_update);
|
|
183
154
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
155
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Be);
|
|
185
156
|
}
|
|
186
157
|
}
|
|
187
|
-
function
|
|
158
|
+
function mr(e) {
|
|
188
159
|
const t = [], r = [];
|
|
189
|
-
|
|
160
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
190
161
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
162
|
+
const br = /* @__PURE__ */ new Set();
|
|
163
|
+
function yr(e, t) {
|
|
164
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
194
165
|
}
|
|
195
|
-
function
|
|
166
|
+
function gr(e, t, r) {
|
|
196
167
|
const { fragment: n, after_update: i } = e.$$;
|
|
197
|
-
n && n.m(t, r),
|
|
198
|
-
const o = e.$$.on_mount.map(
|
|
199
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
200
|
-
}), i.forEach(
|
|
168
|
+
n && n.m(t, r), Be(() => {
|
|
169
|
+
const o = e.$$.on_mount.map(xt).filter(Ve);
|
|
170
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
171
|
+
}), i.forEach(Be);
|
|
201
172
|
}
|
|
202
|
-
function
|
|
173
|
+
function vr(e, t) {
|
|
203
174
|
const r = e.$$;
|
|
204
|
-
r.fragment !== null && (
|
|
175
|
+
r.fragment !== null && (mr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
205
176
|
}
|
|
206
|
-
function
|
|
207
|
-
e.$$.dirty[0] === -1 && (
|
|
177
|
+
function xr(e, t) {
|
|
178
|
+
e.$$.dirty[0] === -1 && (F.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
208
179
|
}
|
|
209
|
-
function
|
|
210
|
-
const l =
|
|
211
|
-
|
|
180
|
+
function _r(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
181
|
+
const l = ee;
|
|
182
|
+
K(e);
|
|
212
183
|
const u = e.$$ = {
|
|
213
184
|
fragment: null,
|
|
214
185
|
ctx: [],
|
|
215
186
|
// state
|
|
216
187
|
props: o,
|
|
217
|
-
update:
|
|
188
|
+
update: A,
|
|
218
189
|
not_equal: i,
|
|
219
|
-
bound:
|
|
190
|
+
bound: Ze(),
|
|
220
191
|
// lifecycle
|
|
221
192
|
on_mount: [],
|
|
222
193
|
on_destroy: [],
|
|
@@ -225,150 +196,146 @@ function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
225
196
|
after_update: [],
|
|
226
197
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
227
198
|
// everything else
|
|
228
|
-
callbacks:
|
|
199
|
+
callbacks: Ze(),
|
|
229
200
|
dirty: s,
|
|
230
201
|
skip_bound: !1,
|
|
231
202
|
root: t.target || l.$$.root
|
|
232
203
|
};
|
|
233
204
|
a && a(u.root);
|
|
234
205
|
let h = !1;
|
|
235
|
-
if (u.ctx = r
|
|
236
|
-
const
|
|
237
|
-
return u.ctx && i(u.ctx[
|
|
238
|
-
})
|
|
206
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...d) => {
|
|
207
|
+
const v = d.length ? d[0] : f;
|
|
208
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && xr(e, c)), f;
|
|
209
|
+
}), u.update(), h = !0, ne(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
239
210
|
if (t.hydrate) {
|
|
240
|
-
const
|
|
241
|
-
u.fragment && u.fragment.l(
|
|
211
|
+
const c = ur(t.target);
|
|
212
|
+
u.fragment && u.fragment.l(c), c.forEach(q);
|
|
242
213
|
} else
|
|
243
214
|
u.fragment && u.fragment.c();
|
|
244
|
-
t.intro &&
|
|
215
|
+
t.intro && yr(e.$$.fragment), gr(e, t.target, t.anchor), N();
|
|
245
216
|
}
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
let
|
|
249
|
-
typeof HTMLElement == "function" && (
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
217
|
+
K(l);
|
|
218
|
+
}
|
|
219
|
+
let Tt;
|
|
220
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
221
|
+
/** The Svelte component constructor */
|
|
222
|
+
$$ctor;
|
|
223
|
+
/** Slots */
|
|
224
|
+
$$s;
|
|
225
|
+
/** The Svelte component instance */
|
|
226
|
+
$$c;
|
|
227
|
+
/** Whether or not the custom element is connected */
|
|
228
|
+
$$cn = !1;
|
|
229
|
+
/** Component props data */
|
|
230
|
+
$$d = {};
|
|
231
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
232
|
+
$$r = !1;
|
|
233
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
234
|
+
$$p_d = {};
|
|
235
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
236
|
+
$$l = {};
|
|
237
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
238
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
239
|
+
constructor(e, t, r) {
|
|
240
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
271
241
|
}
|
|
272
|
-
addEventListener(t, r
|
|
273
|
-
if (this.$$l[
|
|
274
|
-
const
|
|
275
|
-
this.$$l_u.set(
|
|
242
|
+
addEventListener(e, t, r) {
|
|
243
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
244
|
+
const n = this.$$c.$on(e, t);
|
|
245
|
+
this.$$l_u.set(t, n);
|
|
276
246
|
}
|
|
277
|
-
super.addEventListener(t, r
|
|
247
|
+
super.addEventListener(e, t, r);
|
|
278
248
|
}
|
|
279
|
-
removeEventListener(t, r
|
|
280
|
-
if (super.removeEventListener(t, r
|
|
281
|
-
const
|
|
282
|
-
|
|
249
|
+
removeEventListener(e, t, r) {
|
|
250
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
251
|
+
const n = this.$$l_u.get(t);
|
|
252
|
+
n && (n(), this.$$l_u.delete(t));
|
|
283
253
|
}
|
|
284
254
|
}
|
|
285
|
-
connectedCallback() {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
};
|
|
255
|
+
async connectedCallback() {
|
|
256
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
257
|
+
let e = function(i) {
|
|
258
|
+
return () => {
|
|
259
|
+
let o;
|
|
260
|
+
return {
|
|
261
|
+
c: function() {
|
|
262
|
+
o = B("slot"), i !== "default" && C(o, "name", i);
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* @param {HTMLElement} target
|
|
266
|
+
* @param {HTMLElement} [anchor]
|
|
267
|
+
*/
|
|
268
|
+
m: function(l, u) {
|
|
269
|
+
ie(l, o, u);
|
|
270
|
+
},
|
|
271
|
+
d: function(l) {
|
|
272
|
+
l && q(o);
|
|
273
|
+
}
|
|
306
274
|
};
|
|
307
275
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
276
|
+
};
|
|
277
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
278
|
+
return;
|
|
279
|
+
const t = {}, r = lr(this);
|
|
280
|
+
for (const i of this.$$s)
|
|
281
|
+
i in r && (t[i] = [e(i)]);
|
|
282
|
+
for (const i of this.attributes) {
|
|
283
|
+
const o = this.$$g_p(i.name);
|
|
284
|
+
o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
|
|
285
|
+
}
|
|
286
|
+
for (const i in this.$$p_d)
|
|
287
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
288
|
+
this.$$c = new this.$$ctor({
|
|
289
|
+
target: this.shadowRoot || this,
|
|
290
|
+
props: {
|
|
291
|
+
...this.$$d,
|
|
292
|
+
$$slots: t,
|
|
293
|
+
$$scope: {
|
|
294
|
+
ctx: []
|
|
295
|
+
}
|
|
316
296
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
this.$$
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
this.$$r = !0;
|
|
330
|
-
for (const o in this.$$p_d)
|
|
331
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
332
|
-
const a = he(
|
|
333
|
-
o,
|
|
334
|
-
this.$$d[o],
|
|
335
|
-
this.$$p_d,
|
|
336
|
-
"toAttribute"
|
|
337
|
-
);
|
|
338
|
-
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
339
|
-
}
|
|
340
|
-
this.$$r = !1;
|
|
341
|
-
};
|
|
342
|
-
this.$$c.$$.after_update.push(i), i();
|
|
343
|
-
for (const o in this.$$l)
|
|
344
|
-
for (const a of this.$$l[o]) {
|
|
345
|
-
const s = this.$$c.$on(o, a);
|
|
346
|
-
this.$$l_u.set(a, s);
|
|
297
|
+
});
|
|
298
|
+
const n = () => {
|
|
299
|
+
this.$$r = !0;
|
|
300
|
+
for (const i in this.$$p_d)
|
|
301
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
302
|
+
const o = le(
|
|
303
|
+
i,
|
|
304
|
+
this.$$d[i],
|
|
305
|
+
this.$$p_d,
|
|
306
|
+
"toAttribute"
|
|
307
|
+
);
|
|
308
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
347
309
|
}
|
|
348
|
-
this.$$
|
|
349
|
-
}
|
|
350
|
-
|
|
310
|
+
this.$$r = !1;
|
|
311
|
+
};
|
|
312
|
+
this.$$c.$$.after_update.push(n), n();
|
|
313
|
+
for (const i in this.$$l)
|
|
314
|
+
for (const o of this.$$l[i]) {
|
|
315
|
+
const a = this.$$c.$on(i, o);
|
|
316
|
+
this.$$l_u.set(o, a);
|
|
317
|
+
}
|
|
318
|
+
this.$$l = {};
|
|
319
|
+
}
|
|
351
320
|
}
|
|
352
321
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
353
322
|
// and setting attributes through setAttribute etc, this is helpful
|
|
354
|
-
attributeChangedCallback(t, r
|
|
355
|
-
|
|
356
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
323
|
+
attributeChangedCallback(e, t, r) {
|
|
324
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
357
325
|
}
|
|
358
326
|
disconnectedCallback() {
|
|
359
327
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
360
328
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
361
329
|
});
|
|
362
330
|
}
|
|
363
|
-
$$g_p(
|
|
331
|
+
$$g_p(e) {
|
|
364
332
|
return Object.keys(this.$$p_d).find(
|
|
365
|
-
(
|
|
366
|
-
) ||
|
|
333
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
334
|
+
) || e;
|
|
367
335
|
}
|
|
368
336
|
});
|
|
369
|
-
function
|
|
370
|
-
|
|
371
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
337
|
+
function le(e, t, r, n) {
|
|
338
|
+
const i = r[e]?.type;
|
|
372
339
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
373
340
|
return t;
|
|
374
341
|
if (n === "toAttribute")
|
|
@@ -379,7 +346,7 @@ function he(e, t, r, n) {
|
|
|
379
346
|
case "Boolean":
|
|
380
347
|
return t ? "" : null;
|
|
381
348
|
case "Number":
|
|
382
|
-
return t
|
|
349
|
+
return t ?? null;
|
|
383
350
|
default:
|
|
384
351
|
return t;
|
|
385
352
|
}
|
|
@@ -396,8 +363,8 @@ function he(e, t, r, n) {
|
|
|
396
363
|
return t;
|
|
397
364
|
}
|
|
398
365
|
}
|
|
399
|
-
function
|
|
400
|
-
let a = class extends
|
|
366
|
+
function Er(e, t, r, n, i, o) {
|
|
367
|
+
let a = class extends Tt {
|
|
401
368
|
constructor() {
|
|
402
369
|
super(e, r, i), this.$$p_d = t;
|
|
403
370
|
}
|
|
@@ -413,42 +380,38 @@ function $r(e, t, r, n, i, o) {
|
|
|
413
380
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
414
381
|
},
|
|
415
382
|
set(l) {
|
|
416
|
-
|
|
417
|
-
l = he(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
383
|
+
l = le(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
418
384
|
}
|
|
419
385
|
});
|
|
420
386
|
}), n.forEach((s) => {
|
|
421
387
|
Object.defineProperty(a.prototype, s, {
|
|
422
388
|
get() {
|
|
423
|
-
|
|
424
|
-
return (l = this.$$c) == null ? void 0 : l[s];
|
|
389
|
+
return this.$$c?.[s];
|
|
425
390
|
}
|
|
426
391
|
});
|
|
427
392
|
}), e.element = /** @type {any} */
|
|
428
393
|
a, a;
|
|
429
394
|
}
|
|
430
|
-
class
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
C(this, "$$set");
|
|
448
|
-
}
|
|
395
|
+
class Tr {
|
|
396
|
+
/**
|
|
397
|
+
* ### PRIVATE API
|
|
398
|
+
*
|
|
399
|
+
* Do not use, may change at any time
|
|
400
|
+
*
|
|
401
|
+
* @type {any}
|
|
402
|
+
*/
|
|
403
|
+
$$ = void 0;
|
|
404
|
+
/**
|
|
405
|
+
* ### PRIVATE API
|
|
406
|
+
*
|
|
407
|
+
* Do not use, may change at any time
|
|
408
|
+
*
|
|
409
|
+
* @type {any}
|
|
410
|
+
*/
|
|
411
|
+
$$set = void 0;
|
|
449
412
|
/** @returns {void} */
|
|
450
413
|
$destroy() {
|
|
451
|
-
|
|
414
|
+
vr(this, 1), this.$destroy = A;
|
|
452
415
|
}
|
|
453
416
|
/**
|
|
454
417
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -457,8 +420,8 @@ class Rr {
|
|
|
457
420
|
* @returns {() => void}
|
|
458
421
|
*/
|
|
459
422
|
$on(t, r) {
|
|
460
|
-
if (!
|
|
461
|
-
return
|
|
423
|
+
if (!Ve(r))
|
|
424
|
+
return A;
|
|
462
425
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
463
426
|
return n.push(r), () => {
|
|
464
427
|
const i = n.indexOf(r);
|
|
@@ -470,37 +433,37 @@ class Rr {
|
|
|
470
433
|
* @returns {void}
|
|
471
434
|
*/
|
|
472
435
|
$set(t) {
|
|
473
|
-
this.$$set && !
|
|
436
|
+
this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
474
437
|
}
|
|
475
438
|
}
|
|
476
|
-
const
|
|
477
|
-
typeof window
|
|
478
|
-
var
|
|
479
|
-
return
|
|
439
|
+
const Sr = "4";
|
|
440
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
441
|
+
var Ae = function(e, t) {
|
|
442
|
+
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
480
443
|
r.__proto__ = n;
|
|
481
444
|
} || function(r, n) {
|
|
482
445
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
483
|
-
},
|
|
446
|
+
}, Ae(e, t);
|
|
484
447
|
};
|
|
485
|
-
function
|
|
448
|
+
function M(e, t) {
|
|
486
449
|
if (typeof t != "function" && t !== null)
|
|
487
450
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
488
|
-
|
|
451
|
+
Ae(e, t);
|
|
489
452
|
function r() {
|
|
490
453
|
this.constructor = e;
|
|
491
454
|
}
|
|
492
455
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
493
456
|
}
|
|
494
|
-
var
|
|
495
|
-
return
|
|
457
|
+
var y = function() {
|
|
458
|
+
return y = Object.assign || function(t) {
|
|
496
459
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
497
460
|
r = arguments[n];
|
|
498
461
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
499
462
|
}
|
|
500
463
|
return t;
|
|
501
|
-
},
|
|
464
|
+
}, y.apply(this, arguments);
|
|
502
465
|
};
|
|
503
|
-
function
|
|
466
|
+
function wr(e, t) {
|
|
504
467
|
var r = {};
|
|
505
468
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
506
469
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -508,7 +471,7 @@ function Gr(e, t) {
|
|
|
508
471
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
509
472
|
return r;
|
|
510
473
|
}
|
|
511
|
-
function
|
|
474
|
+
function Oe(e) {
|
|
512
475
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
513
476
|
if (r) return r.call(e);
|
|
514
477
|
if (e && typeof e.length == "number") return {
|
|
@@ -518,7 +481,7 @@ function Ne(e) {
|
|
|
518
481
|
};
|
|
519
482
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
520
483
|
}
|
|
521
|
-
function
|
|
484
|
+
function Ne(e, t) {
|
|
522
485
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
523
486
|
if (!r) return e;
|
|
524
487
|
var n = r.call(e), i, o = [], a;
|
|
@@ -535,21 +498,21 @@ function $e(e, t) {
|
|
|
535
498
|
}
|
|
536
499
|
return o;
|
|
537
500
|
}
|
|
538
|
-
function
|
|
501
|
+
function k(e, t, r) {
|
|
539
502
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
540
503
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
541
504
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
542
505
|
}
|
|
543
|
-
function
|
|
506
|
+
function L(e) {
|
|
544
507
|
return typeof e == "function";
|
|
545
508
|
}
|
|
546
|
-
function
|
|
509
|
+
function St(e) {
|
|
547
510
|
var t = function(n) {
|
|
548
511
|
Error.call(n), n.stack = new Error().stack;
|
|
549
512
|
}, r = e(t);
|
|
550
513
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
551
514
|
}
|
|
552
|
-
var
|
|
515
|
+
var Ee = St(function(e) {
|
|
553
516
|
return function(r) {
|
|
554
517
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
555
518
|
` + r.map(function(n, i) {
|
|
@@ -558,13 +521,13 @@ var Se = Ot(function(e) {
|
|
|
558
521
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
559
522
|
};
|
|
560
523
|
});
|
|
561
|
-
function
|
|
524
|
+
function Le(e, t) {
|
|
562
525
|
if (e) {
|
|
563
526
|
var r = e.indexOf(t);
|
|
564
527
|
0 <= r && e.splice(r, 1);
|
|
565
528
|
}
|
|
566
529
|
}
|
|
567
|
-
var
|
|
530
|
+
var me = function() {
|
|
568
531
|
function e(t) {
|
|
569
532
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
570
533
|
}
|
|
@@ -576,12 +539,12 @@ var be = function() {
|
|
|
576
539
|
if (a)
|
|
577
540
|
if (this._parentage = null, Array.isArray(a))
|
|
578
541
|
try {
|
|
579
|
-
for (var s =
|
|
542
|
+
for (var s = Oe(a), l = s.next(); !l.done; l = s.next()) {
|
|
580
543
|
var u = l.value;
|
|
581
544
|
u.remove(this);
|
|
582
545
|
}
|
|
583
|
-
} catch (
|
|
584
|
-
t = { error:
|
|
546
|
+
} catch (g) {
|
|
547
|
+
t = { error: g };
|
|
585
548
|
} finally {
|
|
586
549
|
try {
|
|
587
550
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -592,42 +555,42 @@ var be = function() {
|
|
|
592
555
|
else
|
|
593
556
|
a.remove(this);
|
|
594
557
|
var h = this.initialTeardown;
|
|
595
|
-
if (
|
|
558
|
+
if (L(h))
|
|
596
559
|
try {
|
|
597
560
|
h();
|
|
598
|
-
} catch (
|
|
599
|
-
o =
|
|
561
|
+
} catch (g) {
|
|
562
|
+
o = g instanceof Ee ? g.errors : [g];
|
|
600
563
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
564
|
+
var c = this._finalizers;
|
|
565
|
+
if (c) {
|
|
603
566
|
this._finalizers = null;
|
|
604
567
|
try {
|
|
605
|
-
for (var
|
|
606
|
-
var
|
|
568
|
+
for (var f = Oe(c), d = f.next(); !d.done; d = f.next()) {
|
|
569
|
+
var v = d.value;
|
|
607
570
|
try {
|
|
608
|
-
|
|
609
|
-
} catch (
|
|
610
|
-
o = o
|
|
571
|
+
Qe(v);
|
|
572
|
+
} catch (g) {
|
|
573
|
+
o = o ?? [], g instanceof Ee ? o = k(k([], Ne(o)), Ne(g.errors)) : o.push(g);
|
|
611
574
|
}
|
|
612
575
|
}
|
|
613
|
-
} catch (
|
|
614
|
-
n = { error:
|
|
576
|
+
} catch (g) {
|
|
577
|
+
n = { error: g };
|
|
615
578
|
} finally {
|
|
616
579
|
try {
|
|
617
|
-
|
|
580
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
618
581
|
} finally {
|
|
619
582
|
if (n) throw n.error;
|
|
620
583
|
}
|
|
621
584
|
}
|
|
622
585
|
}
|
|
623
586
|
if (o)
|
|
624
|
-
throw new
|
|
587
|
+
throw new Ee(o);
|
|
625
588
|
}
|
|
626
589
|
}, e.prototype.add = function(t) {
|
|
627
590
|
var r;
|
|
628
591
|
if (t && t !== this)
|
|
629
592
|
if (this.closed)
|
|
630
|
-
|
|
593
|
+
Qe(t);
|
|
631
594
|
else {
|
|
632
595
|
if (t instanceof e) {
|
|
633
596
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,56 +607,56 @@ var be = function() {
|
|
|
644
607
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
645
608
|
}, e.prototype._removeParent = function(t) {
|
|
646
609
|
var r = this._parentage;
|
|
647
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
610
|
+
r === t ? this._parentage = null : Array.isArray(r) && Le(r, t);
|
|
648
611
|
}, e.prototype.remove = function(t) {
|
|
649
612
|
var r = this._finalizers;
|
|
650
|
-
r &&
|
|
613
|
+
r && Le(r, t), t instanceof e && t._removeParent(this);
|
|
651
614
|
}, e.EMPTY = function() {
|
|
652
615
|
var t = new e();
|
|
653
616
|
return t.closed = !0, t;
|
|
654
617
|
}(), e;
|
|
655
|
-
}(),
|
|
656
|
-
function
|
|
657
|
-
return e instanceof
|
|
618
|
+
}(), wt = me.EMPTY;
|
|
619
|
+
function Pt(e) {
|
|
620
|
+
return e instanceof me || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
658
621
|
}
|
|
659
|
-
function
|
|
660
|
-
|
|
622
|
+
function Qe(e) {
|
|
623
|
+
L(e) ? e() : e.unsubscribe();
|
|
661
624
|
}
|
|
662
|
-
var
|
|
625
|
+
var Pr = {
|
|
663
626
|
onUnhandledError: null,
|
|
664
627
|
onStoppedNotification: null,
|
|
665
628
|
Promise: void 0,
|
|
666
629
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
667
630
|
useDeprecatedNextContext: !1
|
|
668
|
-
},
|
|
631
|
+
}, Hr = {
|
|
669
632
|
setTimeout: function(e, t) {
|
|
670
633
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
634
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
635
|
+
return setTimeout.apply(void 0, k([e, t], Ne(r)));
|
|
673
636
|
},
|
|
674
637
|
clearTimeout: function(e) {
|
|
675
638
|
return clearTimeout(e);
|
|
676
639
|
},
|
|
677
640
|
delegate: void 0
|
|
678
641
|
};
|
|
679
|
-
function
|
|
680
|
-
|
|
642
|
+
function Ir(e) {
|
|
643
|
+
Hr.setTimeout(function() {
|
|
681
644
|
throw e;
|
|
682
645
|
});
|
|
683
646
|
}
|
|
684
|
-
function
|
|
647
|
+
function Je() {
|
|
685
648
|
}
|
|
686
|
-
function
|
|
649
|
+
function he(e) {
|
|
687
650
|
e();
|
|
688
651
|
}
|
|
689
|
-
var
|
|
690
|
-
|
|
652
|
+
var Ht = function(e) {
|
|
653
|
+
M(t, e);
|
|
691
654
|
function t(r) {
|
|
692
655
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
656
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Ar, n;
|
|
694
657
|
}
|
|
695
658
|
return t.create = function(r, n, i) {
|
|
696
|
-
return new
|
|
659
|
+
return new Me(r, n, i);
|
|
697
660
|
}, t.prototype.next = function(r) {
|
|
698
661
|
this.isStopped || this._next(r);
|
|
699
662
|
}, t.prototype.error = function(r) {
|
|
@@ -717,11 +680,7 @@ var $t = function(e) {
|
|
|
717
680
|
this.unsubscribe();
|
|
718
681
|
}
|
|
719
682
|
}, t;
|
|
720
|
-
}(
|
|
721
|
-
function we(e, t) {
|
|
722
|
-
return jr.call(e, t);
|
|
723
|
-
}
|
|
724
|
-
var kr = function() {
|
|
683
|
+
}(me), Cr = function() {
|
|
725
684
|
function e(t) {
|
|
726
685
|
this.partialObserver = t;
|
|
727
686
|
}
|
|
@@ -731,7 +690,7 @@ var kr = function() {
|
|
|
731
690
|
try {
|
|
732
691
|
r.next(t);
|
|
733
692
|
} catch (n) {
|
|
734
|
-
|
|
693
|
+
se(n);
|
|
735
694
|
}
|
|
736
695
|
}, e.prototype.error = function(t) {
|
|
737
696
|
var r = this.partialObserver;
|
|
@@ -739,68 +698,56 @@ var kr = function() {
|
|
|
739
698
|
try {
|
|
740
699
|
r.error(t);
|
|
741
700
|
} catch (n) {
|
|
742
|
-
|
|
701
|
+
se(n);
|
|
743
702
|
}
|
|
744
703
|
else
|
|
745
|
-
|
|
704
|
+
se(t);
|
|
746
705
|
}, e.prototype.complete = function() {
|
|
747
706
|
var t = this.partialObserver;
|
|
748
707
|
if (t.complete)
|
|
749
708
|
try {
|
|
750
709
|
t.complete();
|
|
751
710
|
} catch (r) {
|
|
752
|
-
|
|
711
|
+
se(r);
|
|
753
712
|
}
|
|
754
713
|
}, e;
|
|
755
|
-
}(),
|
|
756
|
-
|
|
714
|
+
}(), Me = function(e) {
|
|
715
|
+
M(t, e);
|
|
757
716
|
function t(r, n, i) {
|
|
758
717
|
var o = e.call(this) || this, a;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
};
|
|
765
|
-
else {
|
|
766
|
-
var s;
|
|
767
|
-
o && Nt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
768
|
-
return o.unsubscribe();
|
|
769
|
-
}, a = {
|
|
770
|
-
next: r.next && we(r.next, s),
|
|
771
|
-
error: r.error && we(r.error, s),
|
|
772
|
-
complete: r.complete && we(r.complete, s)
|
|
773
|
-
}) : a = r;
|
|
774
|
-
}
|
|
775
|
-
return o.destination = new kr(a), o;
|
|
718
|
+
return L(r) || !r ? a = {
|
|
719
|
+
next: r ?? void 0,
|
|
720
|
+
error: n ?? void 0,
|
|
721
|
+
complete: i ?? void 0
|
|
722
|
+
} : a = r, o.destination = new Cr(a), o;
|
|
776
723
|
}
|
|
777
724
|
return t;
|
|
778
|
-
}(
|
|
779
|
-
function
|
|
780
|
-
|
|
725
|
+
}(Ht);
|
|
726
|
+
function se(e) {
|
|
727
|
+
Ir(e);
|
|
781
728
|
}
|
|
782
|
-
function
|
|
729
|
+
function Br(e) {
|
|
783
730
|
throw e;
|
|
784
731
|
}
|
|
785
|
-
var
|
|
732
|
+
var Ar = {
|
|
786
733
|
closed: !0,
|
|
787
|
-
next:
|
|
788
|
-
error:
|
|
789
|
-
complete:
|
|
790
|
-
},
|
|
734
|
+
next: Je,
|
|
735
|
+
error: Br,
|
|
736
|
+
complete: Je
|
|
737
|
+
}, Or = function() {
|
|
791
738
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
792
739
|
}();
|
|
793
|
-
function
|
|
740
|
+
function Nr(e) {
|
|
794
741
|
return e;
|
|
795
742
|
}
|
|
796
|
-
function
|
|
797
|
-
return e.length === 0 ?
|
|
743
|
+
function Lr(e) {
|
|
744
|
+
return e.length === 0 ? Nr : e.length === 1 ? e[0] : function(r) {
|
|
798
745
|
return e.reduce(function(n, i) {
|
|
799
746
|
return i(n);
|
|
800
747
|
}, r);
|
|
801
748
|
};
|
|
802
749
|
}
|
|
803
|
-
var
|
|
750
|
+
var Ke = function() {
|
|
804
751
|
function e(t) {
|
|
805
752
|
t && (this._subscribe = t);
|
|
806
753
|
}
|
|
@@ -808,8 +755,8 @@ var st = function() {
|
|
|
808
755
|
var r = new e();
|
|
809
756
|
return r.source = this, r.operator = t, r;
|
|
810
757
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
811
|
-
var i = this, o =
|
|
812
|
-
return
|
|
758
|
+
var i = this, o = $r(t) ? t : new Me(t, r, n);
|
|
759
|
+
return he(function() {
|
|
813
760
|
var a = i, s = a.operator, l = a.source;
|
|
814
761
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
815
762
|
}), o;
|
|
@@ -821,8 +768,8 @@ var st = function() {
|
|
|
821
768
|
}
|
|
822
769
|
}, e.prototype.forEach = function(t, r) {
|
|
823
770
|
var n = this;
|
|
824
|
-
return r =
|
|
825
|
-
var a = new
|
|
771
|
+
return r = et(r), new r(function(i, o) {
|
|
772
|
+
var a = new Me({
|
|
826
773
|
next: function(s) {
|
|
827
774
|
try {
|
|
828
775
|
t(s);
|
|
@@ -838,15 +785,15 @@ var st = function() {
|
|
|
838
785
|
}, e.prototype._subscribe = function(t) {
|
|
839
786
|
var r;
|
|
840
787
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
841
|
-
}, e.prototype[
|
|
788
|
+
}, e.prototype[Or] = function() {
|
|
842
789
|
return this;
|
|
843
790
|
}, e.prototype.pipe = function() {
|
|
844
791
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
845
792
|
t[r] = arguments[r];
|
|
846
|
-
return
|
|
793
|
+
return Lr(t)(this);
|
|
847
794
|
}, e.prototype.toPromise = function(t) {
|
|
848
795
|
var r = this;
|
|
849
|
-
return t =
|
|
796
|
+
return t = et(t), new t(function(n, i) {
|
|
850
797
|
var o;
|
|
851
798
|
r.subscribe(function(a) {
|
|
852
799
|
return o = a;
|
|
@@ -860,40 +807,40 @@ var st = function() {
|
|
|
860
807
|
return new e(t);
|
|
861
808
|
}, e;
|
|
862
809
|
}();
|
|
863
|
-
function
|
|
810
|
+
function et(e) {
|
|
864
811
|
var t;
|
|
865
|
-
return (t = e
|
|
812
|
+
return (t = e ?? Pr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
866
813
|
}
|
|
867
|
-
function
|
|
868
|
-
return e &&
|
|
814
|
+
function Mr(e) {
|
|
815
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
869
816
|
}
|
|
870
|
-
function
|
|
871
|
-
return e && e instanceof
|
|
817
|
+
function $r(e) {
|
|
818
|
+
return e && e instanceof Ht || Mr(e) && Pt(e);
|
|
872
819
|
}
|
|
873
|
-
var
|
|
820
|
+
var Rr = St(function(e) {
|
|
874
821
|
return function() {
|
|
875
822
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
876
823
|
};
|
|
877
|
-
}),
|
|
878
|
-
|
|
824
|
+
}), It = function(e) {
|
|
825
|
+
M(t, e);
|
|
879
826
|
function t() {
|
|
880
827
|
var r = e.call(this) || this;
|
|
881
828
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
882
829
|
}
|
|
883
830
|
return t.prototype.lift = function(r) {
|
|
884
|
-
var n = new
|
|
831
|
+
var n = new tt(this, this);
|
|
885
832
|
return n.operator = r, n;
|
|
886
833
|
}, t.prototype._throwIfClosed = function() {
|
|
887
834
|
if (this.closed)
|
|
888
|
-
throw new
|
|
835
|
+
throw new Rr();
|
|
889
836
|
}, t.prototype.next = function(r) {
|
|
890
837
|
var n = this;
|
|
891
|
-
|
|
838
|
+
he(function() {
|
|
892
839
|
var i, o;
|
|
893
840
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
894
841
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
895
842
|
try {
|
|
896
|
-
for (var a =
|
|
843
|
+
for (var a = Oe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
897
844
|
var l = s.value;
|
|
898
845
|
l.next(r);
|
|
899
846
|
}
|
|
@@ -910,7 +857,7 @@ var Qr = Ot(function(e) {
|
|
|
910
857
|
});
|
|
911
858
|
}, t.prototype.error = function(r) {
|
|
912
859
|
var n = this;
|
|
913
|
-
|
|
860
|
+
he(function() {
|
|
914
861
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
915
862
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
916
863
|
for (var i = n.observers; i.length; )
|
|
@@ -919,7 +866,7 @@ var Qr = Ot(function(e) {
|
|
|
919
866
|
});
|
|
920
867
|
}, t.prototype.complete = function() {
|
|
921
868
|
var r = this;
|
|
922
|
-
|
|
869
|
+
he(function() {
|
|
923
870
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
924
871
|
r.isStopped = !0;
|
|
925
872
|
for (var n = r.observers; n.length; )
|
|
@@ -941,20 +888,20 @@ var Qr = Ot(function(e) {
|
|
|
941
888
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
942
889
|
}, t.prototype._innerSubscribe = function(r) {
|
|
943
890
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
944
|
-
return o || a ?
|
|
945
|
-
n.currentObservers = null,
|
|
891
|
+
return o || a ? wt : (this.currentObservers = null, s.push(r), new me(function() {
|
|
892
|
+
n.currentObservers = null, Le(s, r);
|
|
946
893
|
}));
|
|
947
894
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
948
895
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
949
896
|
i ? r.error(o) : a && r.complete();
|
|
950
897
|
}, t.prototype.asObservable = function() {
|
|
951
|
-
var r = new
|
|
898
|
+
var r = new Ke();
|
|
952
899
|
return r.source = this, r;
|
|
953
900
|
}, t.create = function(r, n) {
|
|
954
|
-
return new
|
|
901
|
+
return new tt(r, n);
|
|
955
902
|
}, t;
|
|
956
|
-
}(
|
|
957
|
-
|
|
903
|
+
}(Ke), tt = function(e) {
|
|
904
|
+
M(t, e);
|
|
958
905
|
function t(r, n) {
|
|
959
906
|
var i = e.call(this) || this;
|
|
960
907
|
return i.destination = r, i.source = n, i;
|
|
@@ -970,17 +917,17 @@ var Qr = Ot(function(e) {
|
|
|
970
917
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
971
918
|
}, t.prototype._subscribe = function(r) {
|
|
972
919
|
var n, i;
|
|
973
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
920
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : wt;
|
|
974
921
|
}, t;
|
|
975
|
-
}(
|
|
922
|
+
}(It), Ct = {
|
|
976
923
|
now: function() {
|
|
977
|
-
return (
|
|
924
|
+
return (Ct.delegate || Date).now();
|
|
978
925
|
},
|
|
979
926
|
delegate: void 0
|
|
980
|
-
},
|
|
981
|
-
|
|
927
|
+
}, Ur = function(e) {
|
|
928
|
+
M(t, e);
|
|
982
929
|
function t(r, n, i) {
|
|
983
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
930
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
984
931
|
var o = e.call(this) || this;
|
|
985
932
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
986
933
|
}
|
|
@@ -1000,249 +947,251 @@ var Qr = Ot(function(e) {
|
|
|
1000
947
|
u && o.splice(0, u + 1);
|
|
1001
948
|
}
|
|
1002
949
|
}, t;
|
|
1003
|
-
}(
|
|
1004
|
-
const
|
|
1005
|
-
if (
|
|
1006
|
-
const r = new
|
|
1007
|
-
|
|
950
|
+
}(It);
|
|
951
|
+
const rt = [], nt = {}, Gr = (e, t = 0) => {
|
|
952
|
+
if (rt.indexOf(e) == -1) {
|
|
953
|
+
const r = new Ur(t);
|
|
954
|
+
nt[e] = r, rt.push(e);
|
|
1008
955
|
}
|
|
1009
|
-
return
|
|
1010
|
-
},
|
|
1011
|
-
function
|
|
956
|
+
return nt[e];
|
|
957
|
+
}, D = [];
|
|
958
|
+
function Dr(e, t) {
|
|
1012
959
|
return {
|
|
1013
|
-
subscribe:
|
|
960
|
+
subscribe: be(e, t).subscribe
|
|
1014
961
|
};
|
|
1015
962
|
}
|
|
1016
|
-
function
|
|
963
|
+
function be(e, t = A) {
|
|
1017
964
|
let r;
|
|
1018
965
|
const n = /* @__PURE__ */ new Set();
|
|
1019
966
|
function i(s) {
|
|
1020
|
-
if (
|
|
1021
|
-
const l = !
|
|
967
|
+
if (_t(e, s) && (e = s, r)) {
|
|
968
|
+
const l = !D.length;
|
|
1022
969
|
for (const u of n)
|
|
1023
|
-
u[1](),
|
|
970
|
+
u[1](), D.push(u, e);
|
|
1024
971
|
if (l) {
|
|
1025
|
-
for (let u = 0; u <
|
|
1026
|
-
|
|
1027
|
-
|
|
972
|
+
for (let u = 0; u < D.length; u += 2)
|
|
973
|
+
D[u][0](D[u + 1]);
|
|
974
|
+
D.length = 0;
|
|
1028
975
|
}
|
|
1029
976
|
}
|
|
1030
977
|
}
|
|
1031
978
|
function o(s) {
|
|
1032
979
|
i(s(e));
|
|
1033
980
|
}
|
|
1034
|
-
function a(s, l =
|
|
981
|
+
function a(s, l = A) {
|
|
1035
982
|
const u = [s, l];
|
|
1036
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
983
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || A), s(e), () => {
|
|
1037
984
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1038
985
|
};
|
|
1039
986
|
}
|
|
1040
987
|
return { set: i, update: o, subscribe: a };
|
|
1041
988
|
}
|
|
1042
|
-
function
|
|
989
|
+
function Z(e, t, r) {
|
|
1043
990
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1044
991
|
if (!i.every(Boolean))
|
|
1045
992
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1046
993
|
const o = t.length < 2;
|
|
1047
|
-
return
|
|
994
|
+
return Dr(r, (a, s) => {
|
|
1048
995
|
let l = !1;
|
|
1049
996
|
const u = [];
|
|
1050
|
-
let h = 0,
|
|
1051
|
-
const
|
|
997
|
+
let h = 0, c = A;
|
|
998
|
+
const f = () => {
|
|
1052
999
|
if (h)
|
|
1053
1000
|
return;
|
|
1054
|
-
|
|
1055
|
-
const
|
|
1056
|
-
o ? a(
|
|
1057
|
-
},
|
|
1058
|
-
(
|
|
1059
|
-
|
|
1001
|
+
c();
|
|
1002
|
+
const v = t(n ? u[0] : u, a, s);
|
|
1003
|
+
o ? a(v) : c = Ve(v) ? v : A;
|
|
1004
|
+
}, d = i.map(
|
|
1005
|
+
(v, g) => Et(
|
|
1006
|
+
v,
|
|
1060
1007
|
(S) => {
|
|
1061
|
-
u[
|
|
1008
|
+
u[g] = S, h &= ~(1 << g), l && f();
|
|
1062
1009
|
},
|
|
1063
1010
|
() => {
|
|
1064
|
-
h |= 1 <<
|
|
1011
|
+
h |= 1 << g;
|
|
1065
1012
|
}
|
|
1066
1013
|
)
|
|
1067
1014
|
);
|
|
1068
|
-
return l = !0,
|
|
1069
|
-
|
|
1015
|
+
return l = !0, f(), function() {
|
|
1016
|
+
ne(d), c(), l = !1;
|
|
1070
1017
|
};
|
|
1071
1018
|
});
|
|
1072
1019
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return e
|
|
1020
|
+
function Fr(e) {
|
|
1021
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1075
1022
|
}
|
|
1076
|
-
var
|
|
1077
|
-
return
|
|
1023
|
+
var jr = function(t) {
|
|
1024
|
+
return kr(t) && !Vr(t);
|
|
1078
1025
|
};
|
|
1079
|
-
function
|
|
1026
|
+
function kr(e) {
|
|
1080
1027
|
return !!e && typeof e == "object";
|
|
1081
1028
|
}
|
|
1082
|
-
function
|
|
1029
|
+
function Vr(e) {
|
|
1083
1030
|
var t = Object.prototype.toString.call(e);
|
|
1084
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1031
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
|
|
1085
1032
|
}
|
|
1086
|
-
var
|
|
1087
|
-
function
|
|
1088
|
-
return e.$$typeof ===
|
|
1033
|
+
var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
|
|
1034
|
+
function Xr(e) {
|
|
1035
|
+
return e.$$typeof === Wr;
|
|
1089
1036
|
}
|
|
1090
|
-
function
|
|
1037
|
+
function qr(e) {
|
|
1091
1038
|
return Array.isArray(e) ? [] : {};
|
|
1092
1039
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1040
|
+
function te(e, t) {
|
|
1041
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(qr(e), e, t) : e;
|
|
1095
1042
|
}
|
|
1096
|
-
function
|
|
1043
|
+
function Zr(e, t, r) {
|
|
1097
1044
|
return e.concat(t).map(function(n) {
|
|
1098
|
-
return
|
|
1045
|
+
return te(n, r);
|
|
1099
1046
|
});
|
|
1100
1047
|
}
|
|
1101
|
-
function
|
|
1048
|
+
function Yr(e, t) {
|
|
1102
1049
|
if (!t.customMerge)
|
|
1103
|
-
return
|
|
1050
|
+
return V;
|
|
1104
1051
|
var r = t.customMerge(e);
|
|
1105
|
-
return typeof r == "function" ? r :
|
|
1052
|
+
return typeof r == "function" ? r : V;
|
|
1106
1053
|
}
|
|
1107
|
-
function
|
|
1054
|
+
function Qr(e) {
|
|
1108
1055
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1109
1056
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1110
1057
|
}) : [];
|
|
1111
1058
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return Object.keys(e).concat(
|
|
1059
|
+
function it(e) {
|
|
1060
|
+
return Object.keys(e).concat(Qr(e));
|
|
1114
1061
|
}
|
|
1115
|
-
function
|
|
1062
|
+
function Bt(e, t) {
|
|
1116
1063
|
try {
|
|
1117
1064
|
return t in e;
|
|
1118
|
-
} catch
|
|
1065
|
+
} catch {
|
|
1119
1066
|
return !1;
|
|
1120
1067
|
}
|
|
1121
1068
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1069
|
+
function Jr(e, t) {
|
|
1070
|
+
return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1124
1071
|
}
|
|
1125
|
-
function
|
|
1072
|
+
function Kr(e, t, r) {
|
|
1126
1073
|
var n = {};
|
|
1127
|
-
return r.isMergeableObject(e) &&
|
|
1128
|
-
n[i] =
|
|
1129
|
-
}),
|
|
1130
|
-
|
|
1074
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
1075
|
+
n[i] = te(e[i], r);
|
|
1076
|
+
}), it(t).forEach(function(i) {
|
|
1077
|
+
Jr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1131
1078
|
}), n;
|
|
1132
1079
|
}
|
|
1133
|
-
function
|
|
1134
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1080
|
+
function V(e, t, r) {
|
|
1081
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Zr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = te;
|
|
1135
1082
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1136
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1083
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : te(t, r);
|
|
1137
1084
|
}
|
|
1138
|
-
|
|
1085
|
+
V.all = function(t, r) {
|
|
1139
1086
|
if (!Array.isArray(t))
|
|
1140
1087
|
throw new Error("first argument should be an array");
|
|
1141
1088
|
return t.reduce(function(n, i) {
|
|
1142
|
-
return
|
|
1089
|
+
return V(n, i, r);
|
|
1143
1090
|
}, {});
|
|
1144
1091
|
};
|
|
1145
|
-
var
|
|
1146
|
-
const
|
|
1147
|
-
function
|
|
1148
|
-
var r = t && t.cache ? t.cache :
|
|
1092
|
+
var en = V, tn = en;
|
|
1093
|
+
const rn = /* @__PURE__ */ Fr(tn);
|
|
1094
|
+
function Te(e, t) {
|
|
1095
|
+
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : on;
|
|
1149
1096
|
return i(e, {
|
|
1150
1097
|
cache: r,
|
|
1151
1098
|
serializer: n
|
|
1152
1099
|
});
|
|
1153
1100
|
}
|
|
1154
|
-
function
|
|
1101
|
+
function nn(e) {
|
|
1155
1102
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1156
1103
|
}
|
|
1157
|
-
function
|
|
1158
|
-
var i =
|
|
1159
|
-
return typeof o
|
|
1104
|
+
function At(e, t, r, n) {
|
|
1105
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
1106
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1160
1107
|
}
|
|
1161
|
-
function
|
|
1108
|
+
function Ot(e, t, r) {
|
|
1162
1109
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1163
|
-
return typeof o
|
|
1110
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1164
1111
|
}
|
|
1165
|
-
function
|
|
1112
|
+
function We(e, t, r, n, i) {
|
|
1166
1113
|
return r.bind(t, e, n, i);
|
|
1167
1114
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var r = e.length === 1 ?
|
|
1170
|
-
return
|
|
1115
|
+
function on(e, t) {
|
|
1116
|
+
var r = e.length === 1 ? At : Ot;
|
|
1117
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1171
1118
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1119
|
+
function an(e, t) {
|
|
1120
|
+
return We(e, this, Ot, t.cache.create(), t.serializer);
|
|
1174
1121
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1122
|
+
function sn(e, t) {
|
|
1123
|
+
return We(e, this, At, t.cache.create(), t.serializer);
|
|
1177
1124
|
}
|
|
1178
|
-
var
|
|
1125
|
+
var un = function() {
|
|
1179
1126
|
return JSON.stringify(arguments);
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1127
|
+
}, ln = (
|
|
1128
|
+
/** @class */
|
|
1129
|
+
function() {
|
|
1130
|
+
function e() {
|
|
1131
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1132
|
+
}
|
|
1133
|
+
return e.prototype.get = function(t) {
|
|
1134
|
+
return this.cache[t];
|
|
1135
|
+
}, e.prototype.set = function(t, r) {
|
|
1136
|
+
this.cache[t] = r;
|
|
1137
|
+
}, e;
|
|
1138
|
+
}()
|
|
1139
|
+
), hn = {
|
|
1191
1140
|
create: function() {
|
|
1192
|
-
return new
|
|
1141
|
+
return new ln();
|
|
1193
1142
|
}
|
|
1194
|
-
},
|
|
1195
|
-
variadic:
|
|
1196
|
-
monadic:
|
|
1143
|
+
}, Se = {
|
|
1144
|
+
variadic: an,
|
|
1145
|
+
monadic: sn
|
|
1197
1146
|
}, m;
|
|
1198
1147
|
(function(e) {
|
|
1199
1148
|
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";
|
|
1200
1149
|
})(m || (m = {}));
|
|
1201
|
-
var
|
|
1150
|
+
var _;
|
|
1202
1151
|
(function(e) {
|
|
1203
1152
|
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";
|
|
1204
|
-
})(
|
|
1205
|
-
var
|
|
1153
|
+
})(_ || (_ = {}));
|
|
1154
|
+
var z;
|
|
1206
1155
|
(function(e) {
|
|
1207
1156
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1208
|
-
})(
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1157
|
+
})(z || (z = {}));
|
|
1158
|
+
function ot(e) {
|
|
1159
|
+
return e.type === _.literal;
|
|
1211
1160
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return e.type ===
|
|
1161
|
+
function fn(e) {
|
|
1162
|
+
return e.type === _.argument;
|
|
1214
1163
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return e.type ===
|
|
1164
|
+
function Nt(e) {
|
|
1165
|
+
return e.type === _.number;
|
|
1217
1166
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e.type ===
|
|
1167
|
+
function Lt(e) {
|
|
1168
|
+
return e.type === _.date;
|
|
1220
1169
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1170
|
+
function Mt(e) {
|
|
1171
|
+
return e.type === _.time;
|
|
1223
1172
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1173
|
+
function $t(e) {
|
|
1174
|
+
return e.type === _.select;
|
|
1226
1175
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.type ===
|
|
1176
|
+
function Rt(e) {
|
|
1177
|
+
return e.type === _.plural;
|
|
1229
1178
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1179
|
+
function cn(e) {
|
|
1180
|
+
return e.type === _.pound;
|
|
1232
1181
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1182
|
+
function Ut(e) {
|
|
1183
|
+
return e.type === _.tag;
|
|
1235
1184
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1185
|
+
function Gt(e) {
|
|
1186
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1238
1187
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1188
|
+
function $e(e) {
|
|
1189
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1241
1190
|
}
|
|
1242
|
-
var
|
|
1243
|
-
function
|
|
1191
|
+
var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1192
|
+
function pn(e) {
|
|
1244
1193
|
var t = {};
|
|
1245
|
-
return e.replace(
|
|
1194
|
+
return e.replace(dn, function(r) {
|
|
1246
1195
|
var n = r.length;
|
|
1247
1196
|
switch (r[0]) {
|
|
1248
1197
|
case "G":
|
|
@@ -1331,36 +1280,36 @@ function Hn(e) {
|
|
|
1331
1280
|
return "";
|
|
1332
1281
|
}), t;
|
|
1333
1282
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1283
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1284
|
+
function bn(e) {
|
|
1336
1285
|
if (e.length === 0)
|
|
1337
1286
|
throw new Error("Number skeleton cannot be empty");
|
|
1338
|
-
for (var t = e.split(
|
|
1339
|
-
return
|
|
1287
|
+
for (var t = e.split(mn).filter(function(f) {
|
|
1288
|
+
return f.length > 0;
|
|
1340
1289
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1341
1290
|
var o = i[n], a = o.split("/");
|
|
1342
1291
|
if (a.length === 0)
|
|
1343
1292
|
throw new Error("Invalid number skeleton");
|
|
1344
1293
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1345
|
-
var
|
|
1346
|
-
if (
|
|
1294
|
+
var c = h[u];
|
|
1295
|
+
if (c.length === 0)
|
|
1347
1296
|
throw new Error("Invalid number skeleton");
|
|
1348
1297
|
}
|
|
1349
1298
|
r.push({ stem: s, options: l });
|
|
1350
1299
|
}
|
|
1351
1300
|
return r;
|
|
1352
1301
|
}
|
|
1353
|
-
function
|
|
1302
|
+
function yn(e) {
|
|
1354
1303
|
return e.replace(/^(.*?)-/, "");
|
|
1355
1304
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1305
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, gn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
1306
|
+
function st(e) {
|
|
1358
1307
|
var t = {};
|
|
1359
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1308
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
1360
1309
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1361
1310
|
}), t;
|
|
1362
1311
|
}
|
|
1363
|
-
function
|
|
1312
|
+
function kt(e) {
|
|
1364
1313
|
switch (e) {
|
|
1365
1314
|
case "sign-auto":
|
|
1366
1315
|
return {
|
|
@@ -1400,7 +1349,7 @@ function Jt(e) {
|
|
|
1400
1349
|
};
|
|
1401
1350
|
}
|
|
1402
1351
|
}
|
|
1403
|
-
function
|
|
1352
|
+
function vn(e) {
|
|
1404
1353
|
var t;
|
|
1405
1354
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1406
1355
|
notation: "engineering"
|
|
@@ -1408,17 +1357,17 @@ function On(e) {
|
|
|
1408
1357
|
notation: "scientific"
|
|
1409
1358
|
}, e = e.slice(1)), t) {
|
|
1410
1359
|
var r = e.slice(0, 2);
|
|
1411
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1360
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
|
|
1412
1361
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1413
1362
|
t.minimumIntegerDigits = e.length;
|
|
1414
1363
|
}
|
|
1415
1364
|
return t;
|
|
1416
1365
|
}
|
|
1417
|
-
function
|
|
1418
|
-
var t = {}, r =
|
|
1366
|
+
function ut(e) {
|
|
1367
|
+
var t = {}, r = kt(e);
|
|
1419
1368
|
return r || t;
|
|
1420
1369
|
}
|
|
1421
|
-
function
|
|
1370
|
+
function xn(e) {
|
|
1422
1371
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1423
1372
|
var i = n[r];
|
|
1424
1373
|
switch (i.stem) {
|
|
@@ -1442,7 +1391,7 @@ function Ln(e) {
|
|
|
1442
1391
|
continue;
|
|
1443
1392
|
case "measure-unit":
|
|
1444
1393
|
case "unit":
|
|
1445
|
-
t.style = "unit", t.unit =
|
|
1394
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1446
1395
|
continue;
|
|
1447
1396
|
case "compact-short":
|
|
1448
1397
|
case "K":
|
|
@@ -1453,13 +1402,13 @@ function Ln(e) {
|
|
|
1453
1402
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1454
1403
|
continue;
|
|
1455
1404
|
case "scientific":
|
|
1456
|
-
t =
|
|
1457
|
-
return
|
|
1405
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1406
|
+
return y(y({}, l), ut(u));
|
|
1458
1407
|
}, {}));
|
|
1459
1408
|
continue;
|
|
1460
1409
|
case "engineering":
|
|
1461
|
-
t =
|
|
1462
|
-
return
|
|
1410
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1411
|
+
return y(y({}, l), ut(u));
|
|
1463
1412
|
}, {}));
|
|
1464
1413
|
continue;
|
|
1465
1414
|
case "notation-simple":
|
|
@@ -1504,45 +1453,45 @@ function Ln(e) {
|
|
|
1504
1453
|
case "integer-width":
|
|
1505
1454
|
if (i.options.length > 1)
|
|
1506
1455
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1507
|
-
i.options[0].replace(
|
|
1456
|
+
i.options[0].replace(gn, function(l, u, h, c, f, d) {
|
|
1508
1457
|
if (u)
|
|
1509
1458
|
t.minimumIntegerDigits = h.length;
|
|
1510
1459
|
else {
|
|
1511
|
-
if (
|
|
1460
|
+
if (c && f)
|
|
1512
1461
|
throw new Error("We currently do not support maximum integer digits");
|
|
1513
|
-
if (
|
|
1462
|
+
if (d)
|
|
1514
1463
|
throw new Error("We currently do not support exact integer digits");
|
|
1515
1464
|
}
|
|
1516
1465
|
return "";
|
|
1517
1466
|
});
|
|
1518
1467
|
continue;
|
|
1519
1468
|
}
|
|
1520
|
-
if (
|
|
1469
|
+
if (jt.test(i.stem)) {
|
|
1521
1470
|
t.minimumIntegerDigits = i.stem.length;
|
|
1522
1471
|
continue;
|
|
1523
1472
|
}
|
|
1524
|
-
if (
|
|
1473
|
+
if (at.test(i.stem)) {
|
|
1525
1474
|
if (i.options.length > 1)
|
|
1526
1475
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1527
|
-
i.stem.replace(
|
|
1528
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1476
|
+
i.stem.replace(at, function(l, u, h, c, f, d) {
|
|
1477
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1529
1478
|
});
|
|
1530
1479
|
var o = i.options[0];
|
|
1531
|
-
o === "w" ? t =
|
|
1480
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), st(o)));
|
|
1532
1481
|
continue;
|
|
1533
1482
|
}
|
|
1534
|
-
if (
|
|
1535
|
-
t =
|
|
1483
|
+
if (Ft.test(i.stem)) {
|
|
1484
|
+
t = y(y({}, t), st(i.stem));
|
|
1536
1485
|
continue;
|
|
1537
1486
|
}
|
|
1538
|
-
var a =
|
|
1539
|
-
a && (t =
|
|
1540
|
-
var s =
|
|
1541
|
-
s && (t =
|
|
1487
|
+
var a = kt(i.stem);
|
|
1488
|
+
a && (t = y(y({}, t), a));
|
|
1489
|
+
var s = vn(i.stem);
|
|
1490
|
+
s && (t = y(y({}, t), s));
|
|
1542
1491
|
}
|
|
1543
1492
|
return t;
|
|
1544
1493
|
}
|
|
1545
|
-
var
|
|
1494
|
+
var ue = {
|
|
1546
1495
|
"001": [
|
|
1547
1496
|
"H",
|
|
1548
1497
|
"h"
|
|
@@ -2957,13 +2906,13 @@ var le = {
|
|
|
2957
2906
|
"h"
|
|
2958
2907
|
]
|
|
2959
2908
|
};
|
|
2960
|
-
function
|
|
2909
|
+
function _n(e, t) {
|
|
2961
2910
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2962
2911
|
var i = e.charAt(n);
|
|
2963
2912
|
if (i === "j") {
|
|
2964
2913
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2965
2914
|
o++, n++;
|
|
2966
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2915
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = En(t);
|
|
2967
2916
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2968
2917
|
r += l;
|
|
2969
2918
|
for (; a-- > 0; )
|
|
@@ -2972,7 +2921,7 @@ function Mn(e, t) {
|
|
|
2972
2921
|
}
|
|
2973
2922
|
return r;
|
|
2974
2923
|
}
|
|
2975
|
-
function
|
|
2924
|
+
function En(e) {
|
|
2976
2925
|
var t = e.hourCycle;
|
|
2977
2926
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2978
2927
|
e.hourCycles && // @ts-ignore
|
|
@@ -2991,23 +2940,23 @@ function Nn(e) {
|
|
|
2991
2940
|
}
|
|
2992
2941
|
var r = e.language, n;
|
|
2993
2942
|
r !== "root" && (n = e.maximize().region);
|
|
2994
|
-
var i =
|
|
2943
|
+
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
2995
2944
|
return i[0];
|
|
2996
2945
|
}
|
|
2997
|
-
var
|
|
2946
|
+
var we, Tn = new RegExp("^".concat(Dt.source, "*")), Sn = new RegExp("".concat(Dt.source, "*$"));
|
|
2998
2947
|
function b(e, t) {
|
|
2999
2948
|
return { start: e, end: t };
|
|
3000
2949
|
}
|
|
3001
|
-
var
|
|
2950
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, Hn = !!Object.fromEntries, In = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, An = !!Number.isSafeInteger, On = An ? Number.isSafeInteger : function(e) {
|
|
3002
2951
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3003
|
-
},
|
|
2952
|
+
}, Re = !0;
|
|
3004
2953
|
try {
|
|
3005
|
-
var
|
|
3006
|
-
|
|
3007
|
-
} catch
|
|
3008
|
-
|
|
2954
|
+
var Nn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2955
|
+
Re = ((we = Nn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2956
|
+
} catch {
|
|
2957
|
+
Re = !1;
|
|
3009
2958
|
}
|
|
3010
|
-
var
|
|
2959
|
+
var lt = wn ? (
|
|
3011
2960
|
// Native
|
|
3012
2961
|
function(t, r, n) {
|
|
3013
2962
|
return t.startsWith(r, n);
|
|
@@ -3017,7 +2966,7 @@ var vt = Un ? (
|
|
|
3017
2966
|
function(t, r, n) {
|
|
3018
2967
|
return t.slice(n, n + r.length) === r;
|
|
3019
2968
|
}
|
|
3020
|
-
),
|
|
2969
|
+
), Ue = Pn ? String.fromCodePoint : (
|
|
3021
2970
|
// IE11
|
|
3022
2971
|
function() {
|
|
3023
2972
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3029,9 +2978,9 @@ var vt = Un ? (
|
|
|
3029
2978
|
}
|
|
3030
2979
|
return n;
|
|
3031
2980
|
}
|
|
3032
|
-
),
|
|
2981
|
+
), ht = (
|
|
3033
2982
|
// native
|
|
3034
|
-
|
|
2983
|
+
Hn ? Object.fromEntries : (
|
|
3035
2984
|
// Ponyfill
|
|
3036
2985
|
function(t) {
|
|
3037
2986
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3041,7 +2990,7 @@ var vt = Un ? (
|
|
|
3041
2990
|
return r;
|
|
3042
2991
|
}
|
|
3043
2992
|
)
|
|
3044
|
-
),
|
|
2993
|
+
), Vt = In ? (
|
|
3045
2994
|
// Native
|
|
3046
2995
|
function(t, r) {
|
|
3047
2996
|
return t.codePointAt(r);
|
|
@@ -3055,7 +3004,7 @@ var vt = Un ? (
|
|
|
3055
3004
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3056
3005
|
}
|
|
3057
3006
|
}
|
|
3058
|
-
),
|
|
3007
|
+
), Ln = Cn ? (
|
|
3059
3008
|
// Native
|
|
3060
3009
|
function(t) {
|
|
3061
3010
|
return t.trimStart();
|
|
@@ -3063,9 +3012,9 @@ var vt = Un ? (
|
|
|
3063
3012
|
) : (
|
|
3064
3013
|
// Ponyfill
|
|
3065
3014
|
function(t) {
|
|
3066
|
-
return t.replace(
|
|
3015
|
+
return t.replace(Tn, "");
|
|
3067
3016
|
}
|
|
3068
|
-
),
|
|
3017
|
+
), Mn = Bn ? (
|
|
3069
3018
|
// Native
|
|
3070
3019
|
function(t) {
|
|
3071
3020
|
return t.trimEnd();
|
|
@@ -3073,32 +3022,32 @@ var vt = Un ? (
|
|
|
3073
3022
|
) : (
|
|
3074
3023
|
// Ponyfill
|
|
3075
3024
|
function(t) {
|
|
3076
|
-
return t.replace(
|
|
3025
|
+
return t.replace(Sn, "");
|
|
3077
3026
|
}
|
|
3078
3027
|
);
|
|
3079
|
-
function
|
|
3028
|
+
function zt(e, t) {
|
|
3080
3029
|
return new RegExp(e, t);
|
|
3081
3030
|
}
|
|
3082
|
-
var
|
|
3083
|
-
if (
|
|
3084
|
-
var
|
|
3085
|
-
|
|
3031
|
+
var Ge;
|
|
3032
|
+
if (Re) {
|
|
3033
|
+
var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3034
|
+
Ge = function(t, r) {
|
|
3086
3035
|
var n;
|
|
3087
|
-
|
|
3088
|
-
var i =
|
|
3036
|
+
ft.lastIndex = r;
|
|
3037
|
+
var i = ft.exec(t);
|
|
3089
3038
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3090
3039
|
};
|
|
3091
3040
|
} else
|
|
3092
|
-
|
|
3041
|
+
Ge = function(t, r) {
|
|
3093
3042
|
for (var n = []; ; ) {
|
|
3094
|
-
var i =
|
|
3095
|
-
if (i === void 0 ||
|
|
3043
|
+
var i = Vt(t, r);
|
|
3044
|
+
if (i === void 0 || Wt(i) || Gn(i))
|
|
3096
3045
|
break;
|
|
3097
3046
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3098
3047
|
}
|
|
3099
|
-
return
|
|
3048
|
+
return Ue.apply(void 0, n);
|
|
3100
3049
|
};
|
|
3101
|
-
var
|
|
3050
|
+
var $n = (
|
|
3102
3051
|
/** @class */
|
|
3103
3052
|
function() {
|
|
3104
3053
|
function e(t, r) {
|
|
@@ -3122,14 +3071,14 @@ var Zn = (
|
|
|
3122
3071
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3123
3072
|
var s = this.clonePosition();
|
|
3124
3073
|
this.bump(), i.push({
|
|
3125
|
-
type:
|
|
3074
|
+
type: _.pound,
|
|
3126
3075
|
location: b(s, this.clonePosition())
|
|
3127
3076
|
});
|
|
3128
3077
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3129
3078
|
if (n)
|
|
3130
3079
|
break;
|
|
3131
3080
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3132
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3081
|
+
} else if (o === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
3133
3082
|
var a = this.parseTag(t, r);
|
|
3134
3083
|
if (a.err)
|
|
3135
3084
|
return a;
|
|
@@ -3150,7 +3099,7 @@ var Zn = (
|
|
|
3150
3099
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3151
3100
|
return {
|
|
3152
3101
|
val: {
|
|
3153
|
-
type:
|
|
3102
|
+
type: _.literal,
|
|
3154
3103
|
value: "<".concat(i, "/>"),
|
|
3155
3104
|
location: b(n, this.clonePosition())
|
|
3156
3105
|
},
|
|
@@ -3162,12 +3111,12 @@ var Zn = (
|
|
|
3162
3111
|
return o;
|
|
3163
3112
|
var a = o.val, s = this.clonePosition();
|
|
3164
3113
|
if (this.bumpIf("</")) {
|
|
3165
|
-
if (this.isEOF() || !
|
|
3114
|
+
if (this.isEOF() || !De(this.char()))
|
|
3166
3115
|
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
3167
3116
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3168
3117
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3169
3118
|
val: {
|
|
3170
|
-
type:
|
|
3119
|
+
type: _.tag,
|
|
3171
3120
|
value: i,
|
|
3172
3121
|
children: a,
|
|
3173
3122
|
location: b(n, this.clonePosition())
|
|
@@ -3180,7 +3129,7 @@ var Zn = (
|
|
|
3180
3129
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3181
3130
|
}, e.prototype.parseTagName = function() {
|
|
3182
3131
|
var t = this.offset();
|
|
3183
|
-
for (this.bump(); !this.isEOF() &&
|
|
3132
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
3184
3133
|
this.bump();
|
|
3185
3134
|
return this.message.slice(t, this.offset());
|
|
3186
3135
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3204,12 +3153,12 @@ var Zn = (
|
|
|
3204
3153
|
}
|
|
3205
3154
|
var l = b(n, this.clonePosition());
|
|
3206
3155
|
return {
|
|
3207
|
-
val: { type:
|
|
3156
|
+
val: { type: _.literal, value: i, location: l },
|
|
3208
3157
|
err: null
|
|
3209
3158
|
};
|
|
3210
3159
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3211
3160
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3212
|
-
!
|
|
3161
|
+
!Rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3213
3162
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3214
3163
|
if (this.isEOF() || this.char() !== 39)
|
|
3215
3164
|
return null;
|
|
@@ -3243,12 +3192,12 @@ var Zn = (
|
|
|
3243
3192
|
r.push(n);
|
|
3244
3193
|
this.bump();
|
|
3245
3194
|
}
|
|
3246
|
-
return
|
|
3195
|
+
return Ue.apply(void 0, r);
|
|
3247
3196
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3248
3197
|
if (this.isEOF())
|
|
3249
3198
|
return null;
|
|
3250
3199
|
var n = this.char();
|
|
3251
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3200
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
3252
3201
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3253
3202
|
var n = this.clonePosition();
|
|
3254
3203
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3264,7 +3213,7 @@ var Zn = (
|
|
|
3264
3213
|
case 125:
|
|
3265
3214
|
return this.bump(), {
|
|
3266
3215
|
val: {
|
|
3267
|
-
type:
|
|
3216
|
+
type: _.argument,
|
|
3268
3217
|
// value does not include the opening and closing braces.
|
|
3269
3218
|
value: i,
|
|
3270
3219
|
location: b(n, this.clonePosition())
|
|
@@ -3277,7 +3226,7 @@ var Zn = (
|
|
|
3277
3226
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3278
3227
|
}
|
|
3279
3228
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3280
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3229
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3281
3230
|
this.bumpTo(i);
|
|
3282
3231
|
var o = this.clonePosition(), a = b(t, o);
|
|
3283
3232
|
return { value: n, location: a };
|
|
@@ -3293,50 +3242,50 @@ var Zn = (
|
|
|
3293
3242
|
var u = null;
|
|
3294
3243
|
if (this.bumpIf(",")) {
|
|
3295
3244
|
this.bumpSpace();
|
|
3296
|
-
var h = this.clonePosition(),
|
|
3297
|
-
if (
|
|
3298
|
-
return
|
|
3299
|
-
var
|
|
3300
|
-
if (
|
|
3245
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3246
|
+
if (c.err)
|
|
3247
|
+
return c;
|
|
3248
|
+
var f = Mn(c.val);
|
|
3249
|
+
if (f.length === 0)
|
|
3301
3250
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3302
|
-
var
|
|
3303
|
-
u = { style:
|
|
3251
|
+
var d = b(h, this.clonePosition());
|
|
3252
|
+
u = { style: f, styleLocation: d };
|
|
3304
3253
|
}
|
|
3305
|
-
var
|
|
3306
|
-
if (
|
|
3307
|
-
return
|
|
3308
|
-
var
|
|
3309
|
-
if (u &&
|
|
3310
|
-
var S =
|
|
3254
|
+
var v = this.tryParseArgumentClose(i);
|
|
3255
|
+
if (v.err)
|
|
3256
|
+
return v;
|
|
3257
|
+
var g = b(i, this.clonePosition());
|
|
3258
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3259
|
+
var S = Ln(u.style.slice(2));
|
|
3311
3260
|
if (s === "number") {
|
|
3312
|
-
var
|
|
3313
|
-
return
|
|
3314
|
-
val: { type:
|
|
3261
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3262
|
+
return c.err ? c : {
|
|
3263
|
+
val: { type: _.number, value: n, location: g, style: c.val },
|
|
3315
3264
|
err: null
|
|
3316
3265
|
};
|
|
3317
3266
|
} else {
|
|
3318
3267
|
if (S.length === 0)
|
|
3319
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3268
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, g);
|
|
3320
3269
|
var P = S;
|
|
3321
|
-
this.locale && (P =
|
|
3322
|
-
var
|
|
3323
|
-
type:
|
|
3270
|
+
this.locale && (P = _n(S, this.locale));
|
|
3271
|
+
var f = {
|
|
3272
|
+
type: z.dateTime,
|
|
3324
3273
|
pattern: P,
|
|
3325
3274
|
location: u.styleLocation,
|
|
3326
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3327
|
-
},
|
|
3275
|
+
parsedOptions: this.shouldParseSkeletons ? pn(P) : {}
|
|
3276
|
+
}, E = s === "date" ? _.date : _.time;
|
|
3328
3277
|
return {
|
|
3329
|
-
val: { type:
|
|
3278
|
+
val: { type: E, value: n, location: g, style: f },
|
|
3330
3279
|
err: null
|
|
3331
3280
|
};
|
|
3332
3281
|
}
|
|
3333
3282
|
}
|
|
3334
3283
|
return {
|
|
3335
3284
|
val: {
|
|
3336
|
-
type: s === "number" ?
|
|
3285
|
+
type: s === "number" ? _.number : s === "date" ? _.date : _.time,
|
|
3337
3286
|
value: n,
|
|
3338
|
-
location:
|
|
3339
|
-
style: (o = u
|
|
3287
|
+
location: g,
|
|
3288
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3340
3289
|
},
|
|
3341
3290
|
err: null
|
|
3342
3291
|
};
|
|
@@ -3346,39 +3295,39 @@ var Zn = (
|
|
|
3346
3295
|
case "select": {
|
|
3347
3296
|
var x = this.clonePosition();
|
|
3348
3297
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3349
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x,
|
|
3298
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, y({}, x)));
|
|
3350
3299
|
this.bumpSpace();
|
|
3351
|
-
var w = this.parseIdentifierIfPossible(),
|
|
3300
|
+
var w = this.parseIdentifierIfPossible(), O = 0;
|
|
3352
3301
|
if (s !== "select" && w.value === "offset") {
|
|
3353
3302
|
if (!this.bumpIf(":"))
|
|
3354
3303
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3355
3304
|
this.bumpSpace();
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
3305
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3306
|
+
if (c.err)
|
|
3307
|
+
return c;
|
|
3308
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), O = c.val;
|
|
3360
3309
|
}
|
|
3361
|
-
var
|
|
3362
|
-
if (
|
|
3363
|
-
return
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3310
|
+
var p = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3311
|
+
if (p.err)
|
|
3312
|
+
return p;
|
|
3313
|
+
var v = this.tryParseArgumentClose(i);
|
|
3314
|
+
if (v.err)
|
|
3315
|
+
return v;
|
|
3367
3316
|
var I = b(i, this.clonePosition());
|
|
3368
3317
|
return s === "select" ? {
|
|
3369
3318
|
val: {
|
|
3370
|
-
type:
|
|
3319
|
+
type: _.select,
|
|
3371
3320
|
value: n,
|
|
3372
|
-
options:
|
|
3321
|
+
options: ht(p.val),
|
|
3373
3322
|
location: I
|
|
3374
3323
|
},
|
|
3375
3324
|
err: null
|
|
3376
3325
|
} : {
|
|
3377
3326
|
val: {
|
|
3378
|
-
type:
|
|
3327
|
+
type: _.plural,
|
|
3379
3328
|
value: n,
|
|
3380
|
-
options:
|
|
3381
|
-
offset:
|
|
3329
|
+
options: ht(p.val),
|
|
3330
|
+
offset: O,
|
|
3382
3331
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3383
3332
|
location: I
|
|
3384
3333
|
},
|
|
@@ -3428,48 +3377,48 @@ var Zn = (
|
|
|
3428
3377
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3429
3378
|
var n = [];
|
|
3430
3379
|
try {
|
|
3431
|
-
n =
|
|
3432
|
-
} catch
|
|
3380
|
+
n = bn(t);
|
|
3381
|
+
} catch {
|
|
3433
3382
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3434
3383
|
}
|
|
3435
3384
|
return {
|
|
3436
3385
|
val: {
|
|
3437
|
-
type:
|
|
3386
|
+
type: z.number,
|
|
3438
3387
|
tokens: n,
|
|
3439
3388
|
location: r,
|
|
3440
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3389
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3441
3390
|
},
|
|
3442
3391
|
err: null
|
|
3443
3392
|
};
|
|
3444
3393
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3445
3394
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3446
3395
|
if (u.length === 0) {
|
|
3447
|
-
var
|
|
3396
|
+
var c = this.clonePosition();
|
|
3448
3397
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3449
|
-
var
|
|
3450
|
-
if (
|
|
3451
|
-
return
|
|
3452
|
-
h = b(
|
|
3398
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3399
|
+
if (f.err)
|
|
3400
|
+
return f;
|
|
3401
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3453
3402
|
} else
|
|
3454
3403
|
break;
|
|
3455
3404
|
}
|
|
3456
3405
|
if (l.has(u))
|
|
3457
3406
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3458
3407
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3459
|
-
var
|
|
3408
|
+
var d = this.clonePosition();
|
|
3460
3409
|
if (!this.bumpIf("{"))
|
|
3461
3410
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3462
|
-
var
|
|
3411
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3412
|
+
if (v.err)
|
|
3413
|
+
return v;
|
|
3414
|
+
var g = this.tryParseArgumentClose(d);
|
|
3463
3415
|
if (g.err)
|
|
3464
3416
|
return g;
|
|
3465
|
-
var y = this.tryParseArgumentClose(p);
|
|
3466
|
-
if (y.err)
|
|
3467
|
-
return y;
|
|
3468
3417
|
s.push([
|
|
3469
3418
|
u,
|
|
3470
3419
|
{
|
|
3471
|
-
value:
|
|
3472
|
-
location: b(
|
|
3420
|
+
value: v.val,
|
|
3421
|
+
location: b(d, this.clonePosition())
|
|
3473
3422
|
}
|
|
3474
3423
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3475
3424
|
}
|
|
@@ -3485,7 +3434,7 @@ var Zn = (
|
|
|
3485
3434
|
break;
|
|
3486
3435
|
}
|
|
3487
3436
|
var l = b(i, this.clonePosition());
|
|
3488
|
-
return o ? (a *= n,
|
|
3437
|
+
return o ? (a *= n, On(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3489
3438
|
}, e.prototype.offset = function() {
|
|
3490
3439
|
return this.position.offset;
|
|
3491
3440
|
}, e.prototype.isEOF = function() {
|
|
@@ -3500,7 +3449,7 @@ var Zn = (
|
|
|
3500
3449
|
var t = this.position.offset;
|
|
3501
3450
|
if (t >= this.message.length)
|
|
3502
3451
|
throw Error("out of bound");
|
|
3503
|
-
var r =
|
|
3452
|
+
var r = Vt(this.message, t);
|
|
3504
3453
|
if (r === void 0)
|
|
3505
3454
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3506
3455
|
return r;
|
|
@@ -3519,7 +3468,7 @@ var Zn = (
|
|
|
3519
3468
|
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);
|
|
3520
3469
|
}
|
|
3521
3470
|
}, e.prototype.bumpIf = function(t) {
|
|
3522
|
-
if (
|
|
3471
|
+
if (lt(this.message, t, this.offset())) {
|
|
3523
3472
|
for (var r = 0; r < t.length; r++)
|
|
3524
3473
|
this.bump();
|
|
3525
3474
|
return !0;
|
|
@@ -3541,56 +3490,56 @@ var Zn = (
|
|
|
3541
3490
|
break;
|
|
3542
3491
|
}
|
|
3543
3492
|
}, e.prototype.bumpSpace = function() {
|
|
3544
|
-
for (; !this.isEOF() &&
|
|
3493
|
+
for (; !this.isEOF() && Wt(this.char()); )
|
|
3545
3494
|
this.bump();
|
|
3546
3495
|
}, e.prototype.peek = function() {
|
|
3547
3496
|
if (this.isEOF())
|
|
3548
3497
|
return null;
|
|
3549
3498
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3550
|
-
return n
|
|
3499
|
+
return n ?? null;
|
|
3551
3500
|
}, e;
|
|
3552
3501
|
}()
|
|
3553
3502
|
);
|
|
3554
|
-
function
|
|
3503
|
+
function De(e) {
|
|
3555
3504
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3556
3505
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3506
|
+
function Rn(e) {
|
|
3507
|
+
return De(e) || e === 47;
|
|
3559
3508
|
}
|
|
3560
|
-
function
|
|
3509
|
+
function Un(e) {
|
|
3561
3510
|
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;
|
|
3562
3511
|
}
|
|
3563
|
-
function
|
|
3512
|
+
function Wt(e) {
|
|
3564
3513
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3565
3514
|
}
|
|
3566
|
-
function
|
|
3515
|
+
function Gn(e) {
|
|
3567
3516
|
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;
|
|
3568
3517
|
}
|
|
3569
|
-
function
|
|
3518
|
+
function Fe(e) {
|
|
3570
3519
|
e.forEach(function(t) {
|
|
3571
|
-
if (delete t.location,
|
|
3520
|
+
if (delete t.location, $t(t) || Rt(t))
|
|
3572
3521
|
for (var r in t.options)
|
|
3573
|
-
delete t.options[r].location,
|
|
3574
|
-
else
|
|
3522
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3523
|
+
else Nt(t) && Gt(t.style) || (Lt(t) || Mt(t)) && $e(t.style) ? delete t.style.location : Ut(t) && Fe(t.children);
|
|
3575
3524
|
});
|
|
3576
3525
|
}
|
|
3577
|
-
function
|
|
3578
|
-
t === void 0 && (t = {}), t =
|
|
3579
|
-
var r = new
|
|
3526
|
+
function Dn(e, t) {
|
|
3527
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3528
|
+
var r = new $n(e, t).parse();
|
|
3580
3529
|
if (r.err) {
|
|
3581
3530
|
var n = SyntaxError(m[r.err.kind]);
|
|
3582
3531
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3583
3532
|
}
|
|
3584
|
-
return t
|
|
3533
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3585
3534
|
}
|
|
3586
|
-
var
|
|
3535
|
+
var W;
|
|
3587
3536
|
(function(e) {
|
|
3588
3537
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3589
|
-
})(
|
|
3538
|
+
})(W || (W = {}));
|
|
3590
3539
|
var ye = (
|
|
3591
3540
|
/** @class */
|
|
3592
3541
|
function(e) {
|
|
3593
|
-
|
|
3542
|
+
M(t, e);
|
|
3594
3543
|
function t(r, n, i) {
|
|
3595
3544
|
var o = e.call(this, r) || this;
|
|
3596
3545
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3599,30 +3548,30 @@ var ye = (
|
|
|
3599
3548
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3600
3549
|
}, t;
|
|
3601
3550
|
}(Error)
|
|
3602
|
-
),
|
|
3551
|
+
), ct = (
|
|
3603
3552
|
/** @class */
|
|
3604
3553
|
function(e) {
|
|
3605
|
-
|
|
3554
|
+
M(t, e);
|
|
3606
3555
|
function t(r, n, i, o) {
|
|
3607
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3556
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3608
3557
|
}
|
|
3609
3558
|
return t;
|
|
3610
3559
|
}(ye)
|
|
3611
|
-
),
|
|
3560
|
+
), Fn = (
|
|
3612
3561
|
/** @class */
|
|
3613
3562
|
function(e) {
|
|
3614
|
-
|
|
3563
|
+
M(t, e);
|
|
3615
3564
|
function t(r, n, i) {
|
|
3616
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3565
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3617
3566
|
}
|
|
3618
3567
|
return t;
|
|
3619
3568
|
}(ye)
|
|
3620
|
-
),
|
|
3569
|
+
), jn = (
|
|
3621
3570
|
/** @class */
|
|
3622
3571
|
function(e) {
|
|
3623
|
-
|
|
3572
|
+
M(t, e);
|
|
3624
3573
|
function t(r, n) {
|
|
3625
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3574
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3626
3575
|
}
|
|
3627
3576
|
return t;
|
|
3628
3577
|
}(ye)
|
|
@@ -3630,17 +3579,17 @@ var ye = (
|
|
|
3630
3579
|
(function(e) {
|
|
3631
3580
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3632
3581
|
})(T || (T = {}));
|
|
3633
|
-
function
|
|
3582
|
+
function kn(e) {
|
|
3634
3583
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3635
3584
|
var n = t[t.length - 1];
|
|
3636
3585
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3637
3586
|
}, []);
|
|
3638
3587
|
}
|
|
3639
|
-
function
|
|
3588
|
+
function Vn(e) {
|
|
3640
3589
|
return typeof e == "function";
|
|
3641
3590
|
}
|
|
3642
3591
|
function fe(e, t, r, n, i, o, a) {
|
|
3643
|
-
if (e.length === 1 &&
|
|
3592
|
+
if (e.length === 1 && ot(e[0]))
|
|
3644
3593
|
return [
|
|
3645
3594
|
{
|
|
3646
3595
|
type: T.literal,
|
|
@@ -3649,105 +3598,105 @@ function fe(e, t, r, n, i, o, a) {
|
|
|
3649
3598
|
];
|
|
3650
3599
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3651
3600
|
var h = u[l];
|
|
3652
|
-
if (
|
|
3601
|
+
if (ot(h)) {
|
|
3653
3602
|
s.push({
|
|
3654
3603
|
type: T.literal,
|
|
3655
3604
|
value: h.value
|
|
3656
3605
|
});
|
|
3657
3606
|
continue;
|
|
3658
3607
|
}
|
|
3659
|
-
if (
|
|
3608
|
+
if (cn(h)) {
|
|
3660
3609
|
typeof o == "number" && s.push({
|
|
3661
3610
|
type: T.literal,
|
|
3662
3611
|
value: r.getNumberFormat(t).format(o)
|
|
3663
3612
|
});
|
|
3664
3613
|
continue;
|
|
3665
3614
|
}
|
|
3666
|
-
var
|
|
3667
|
-
if (!(i &&
|
|
3668
|
-
throw new
|
|
3669
|
-
var
|
|
3670
|
-
if (
|
|
3671
|
-
(!
|
|
3672
|
-
type: typeof
|
|
3673
|
-
value:
|
|
3615
|
+
var c = h.value;
|
|
3616
|
+
if (!(i && c in i))
|
|
3617
|
+
throw new jn(c, a);
|
|
3618
|
+
var f = i[c];
|
|
3619
|
+
if (fn(h)) {
|
|
3620
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3621
|
+
type: typeof f == "string" ? T.literal : T.object,
|
|
3622
|
+
value: f
|
|
3674
3623
|
});
|
|
3675
3624
|
continue;
|
|
3676
3625
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var
|
|
3626
|
+
if (Lt(h)) {
|
|
3627
|
+
var d = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3679
3628
|
s.push({
|
|
3680
3629
|
type: T.literal,
|
|
3681
|
-
value: r.getDateTimeFormat(t,
|
|
3630
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3682
3631
|
});
|
|
3683
3632
|
continue;
|
|
3684
3633
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3634
|
+
if (Mt(h)) {
|
|
3635
|
+
var d = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3687
3636
|
s.push({
|
|
3688
3637
|
type: T.literal,
|
|
3689
|
-
value: r.getDateTimeFormat(t,
|
|
3638
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3690
3639
|
});
|
|
3691
3640
|
continue;
|
|
3692
3641
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var
|
|
3695
|
-
|
|
3642
|
+
if (Nt(h)) {
|
|
3643
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3644
|
+
d && d.scale && (f = f * (d.scale || 1)), s.push({
|
|
3696
3645
|
type: T.literal,
|
|
3697
|
-
value: r.getNumberFormat(t,
|
|
3646
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3698
3647
|
});
|
|
3699
3648
|
continue;
|
|
3700
3649
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var
|
|
3703
|
-
if (!
|
|
3704
|
-
throw new
|
|
3705
|
-
var P = fe(
|
|
3706
|
-
return
|
|
3650
|
+
if (Ut(h)) {
|
|
3651
|
+
var v = h.children, g = h.value, S = i[g];
|
|
3652
|
+
if (!Vn(S))
|
|
3653
|
+
throw new Fn(g, "function", a);
|
|
3654
|
+
var P = fe(v, t, r, n, i, o), E = S(P.map(function(O) {
|
|
3655
|
+
return O.value;
|
|
3707
3656
|
}));
|
|
3708
|
-
Array.isArray(
|
|
3657
|
+
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(O) {
|
|
3709
3658
|
return {
|
|
3710
|
-
type: typeof
|
|
3711
|
-
value:
|
|
3659
|
+
type: typeof O == "string" ? T.literal : T.object,
|
|
3660
|
+
value: O
|
|
3712
3661
|
};
|
|
3713
3662
|
}));
|
|
3714
3663
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var x = h.options[
|
|
3664
|
+
if ($t(h)) {
|
|
3665
|
+
var x = h.options[f] || h.options.other;
|
|
3717
3666
|
if (!x)
|
|
3718
|
-
throw new
|
|
3667
|
+
throw new ct(h.value, f, Object.keys(h.options), a);
|
|
3719
3668
|
s.push.apply(s, fe(x.value, t, r, n, i));
|
|
3720
3669
|
continue;
|
|
3721
3670
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var x = h.options["=".concat(
|
|
3671
|
+
if (Rt(h)) {
|
|
3672
|
+
var x = h.options["=".concat(f)];
|
|
3724
3673
|
if (!x) {
|
|
3725
3674
|
if (!Intl.PluralRules)
|
|
3726
3675
|
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3727
3676
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3728
|
-
`,
|
|
3729
|
-
var w = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3677
|
+
`, W.MISSING_INTL_API, a);
|
|
3678
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3730
3679
|
x = h.options[w] || h.options.other;
|
|
3731
3680
|
}
|
|
3732
3681
|
if (!x)
|
|
3733
|
-
throw new
|
|
3734
|
-
s.push.apply(s, fe(x.value, t, r, n, i,
|
|
3682
|
+
throw new ct(h.value, f, Object.keys(h.options), a);
|
|
3683
|
+
s.push.apply(s, fe(x.value, t, r, n, i, f - (h.offset || 0)));
|
|
3735
3684
|
continue;
|
|
3736
3685
|
}
|
|
3737
3686
|
}
|
|
3738
|
-
return
|
|
3687
|
+
return kn(s);
|
|
3739
3688
|
}
|
|
3740
|
-
function
|
|
3741
|
-
return t ?
|
|
3742
|
-
return r[n] =
|
|
3689
|
+
function zn(e, t) {
|
|
3690
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3691
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3743
3692
|
}, {})) : e;
|
|
3744
3693
|
}
|
|
3745
|
-
function
|
|
3694
|
+
function Wn(e, t) {
|
|
3746
3695
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3747
|
-
return r[n] =
|
|
3748
|
-
},
|
|
3696
|
+
return r[n] = zn(e[n], t[n]), r;
|
|
3697
|
+
}, y({}, e)) : e;
|
|
3749
3698
|
}
|
|
3750
|
-
function
|
|
3699
|
+
function Pe(e) {
|
|
3751
3700
|
return {
|
|
3752
3701
|
create: function() {
|
|
3753
3702
|
return {
|
|
@@ -3761,39 +3710,39 @@ function Ce(e) {
|
|
|
3761
3710
|
}
|
|
3762
3711
|
};
|
|
3763
3712
|
}
|
|
3764
|
-
function
|
|
3713
|
+
function Xn(e) {
|
|
3765
3714
|
return e === void 0 && (e = {
|
|
3766
3715
|
number: {},
|
|
3767
3716
|
dateTime: {},
|
|
3768
3717
|
pluralRules: {}
|
|
3769
3718
|
}), {
|
|
3770
|
-
getNumberFormat:
|
|
3719
|
+
getNumberFormat: Te(function() {
|
|
3771
3720
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3721
|
r[n] = arguments[n];
|
|
3773
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3722
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3774
3723
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3724
|
+
cache: Pe(e.number),
|
|
3725
|
+
strategy: Se.variadic
|
|
3777
3726
|
}),
|
|
3778
|
-
getDateTimeFormat:
|
|
3727
|
+
getDateTimeFormat: Te(function() {
|
|
3779
3728
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3729
|
r[n] = arguments[n];
|
|
3781
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3730
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3782
3731
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3732
|
+
cache: Pe(e.dateTime),
|
|
3733
|
+
strategy: Se.variadic
|
|
3785
3734
|
}),
|
|
3786
|
-
getPluralRules:
|
|
3735
|
+
getPluralRules: Te(function() {
|
|
3787
3736
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3788
3737
|
r[n] = arguments[n];
|
|
3789
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3738
|
+
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3790
3739
|
}, {
|
|
3791
|
-
cache:
|
|
3792
|
-
strategy:
|
|
3740
|
+
cache: Pe(e.pluralRules),
|
|
3741
|
+
strategy: Se.variadic
|
|
3793
3742
|
})
|
|
3794
3743
|
};
|
|
3795
3744
|
}
|
|
3796
|
-
var
|
|
3745
|
+
var qn = (
|
|
3797
3746
|
/** @class */
|
|
3798
3747
|
function() {
|
|
3799
3748
|
function e(t, r, n, i) {
|
|
@@ -3807,8 +3756,8 @@ var si = (
|
|
|
3807
3756
|
var u = o.formatToParts(l);
|
|
3808
3757
|
if (u.length === 1)
|
|
3809
3758
|
return u[0].value;
|
|
3810
|
-
var h = u.reduce(function(
|
|
3811
|
-
return !
|
|
3759
|
+
var h = u.reduce(function(c, f) {
|
|
3760
|
+
return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3812
3761
|
}, []);
|
|
3813
3762
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3814
3763
|
}, this.formatToParts = function(l) {
|
|
@@ -3825,13 +3774,13 @@ var si = (
|
|
|
3825
3774
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3826
3775
|
var a = i || {};
|
|
3827
3776
|
a.formatters;
|
|
3828
|
-
var s =
|
|
3829
|
-
this.ast = e.__parse(t,
|
|
3777
|
+
var s = wr(a, ["formatters"]);
|
|
3778
|
+
this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
|
|
3830
3779
|
} else
|
|
3831
3780
|
this.ast = t;
|
|
3832
3781
|
if (!Array.isArray(this.ast))
|
|
3833
3782
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3834
|
-
this.formats =
|
|
3783
|
+
this.formats = Wn(e.formats, n), this.formatters = i && i.formatters || Xn(this.formatterCache);
|
|
3835
3784
|
}
|
|
3836
3785
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3837
3786
|
get: function() {
|
|
@@ -3840,11 +3789,11 @@ var si = (
|
|
|
3840
3789
|
enumerable: !1,
|
|
3841
3790
|
configurable: !0
|
|
3842
3791
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3843
|
-
if (typeof Intl.Locale
|
|
3792
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3844
3793
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3845
3794
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3846
3795
|
}
|
|
3847
|
-
}, e.__parse =
|
|
3796
|
+
}, e.__parse = Dn, e.formats = {
|
|
3848
3797
|
number: {
|
|
3849
3798
|
integer: {
|
|
3850
3799
|
maximumFractionDigits: 0
|
|
@@ -3905,7 +3854,7 @@ var si = (
|
|
|
3905
3854
|
}, e;
|
|
3906
3855
|
}()
|
|
3907
3856
|
);
|
|
3908
|
-
function
|
|
3857
|
+
function Zn(e, t) {
|
|
3909
3858
|
if (t == null)
|
|
3910
3859
|
return;
|
|
3911
3860
|
if (t in e)
|
|
@@ -3926,92 +3875,92 @@ function ui(e, t) {
|
|
|
3926
3875
|
n = void 0;
|
|
3927
3876
|
return n;
|
|
3928
3877
|
}
|
|
3929
|
-
const
|
|
3878
|
+
const $ = {}, Yn = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), Xt = (e, t) => {
|
|
3930
3879
|
if (t == null)
|
|
3931
3880
|
return;
|
|
3932
|
-
if (t in
|
|
3933
|
-
return
|
|
3881
|
+
if (t in $ && e in $[t])
|
|
3882
|
+
return $[t][e];
|
|
3934
3883
|
const r = ge(t);
|
|
3935
3884
|
for (let n = 0; n < r.length; n++) {
|
|
3936
|
-
const i = r[n], o =
|
|
3885
|
+
const i = r[n], o = Jn(i, e);
|
|
3937
3886
|
if (o)
|
|
3938
|
-
return
|
|
3887
|
+
return Yn(e, t, o);
|
|
3939
3888
|
}
|
|
3940
3889
|
};
|
|
3941
|
-
let
|
|
3942
|
-
const
|
|
3943
|
-
function
|
|
3944
|
-
return
|
|
3890
|
+
let Xe;
|
|
3891
|
+
const ae = be({});
|
|
3892
|
+
function Qn(e) {
|
|
3893
|
+
return Xe[e] || null;
|
|
3945
3894
|
}
|
|
3946
|
-
function
|
|
3947
|
-
return e in
|
|
3895
|
+
function qt(e) {
|
|
3896
|
+
return e in Xe;
|
|
3948
3897
|
}
|
|
3949
|
-
function
|
|
3950
|
-
if (!
|
|
3898
|
+
function Jn(e, t) {
|
|
3899
|
+
if (!qt(e))
|
|
3951
3900
|
return null;
|
|
3952
|
-
const r =
|
|
3953
|
-
return
|
|
3901
|
+
const r = Qn(e);
|
|
3902
|
+
return Zn(r, t);
|
|
3954
3903
|
}
|
|
3955
|
-
function
|
|
3904
|
+
function Kn(e) {
|
|
3956
3905
|
if (e == null)
|
|
3957
3906
|
return;
|
|
3958
3907
|
const t = ge(e);
|
|
3959
3908
|
for (let r = 0; r < t.length; r++) {
|
|
3960
3909
|
const n = t[r];
|
|
3961
|
-
if (
|
|
3910
|
+
if (qt(n))
|
|
3962
3911
|
return n;
|
|
3963
3912
|
}
|
|
3964
3913
|
}
|
|
3965
|
-
function
|
|
3966
|
-
delete
|
|
3914
|
+
function Zt(e, ...t) {
|
|
3915
|
+
delete $[e], ae.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3967
3916
|
}
|
|
3968
|
-
|
|
3969
|
-
[
|
|
3917
|
+
Z(
|
|
3918
|
+
[ae],
|
|
3970
3919
|
([e]) => Object.keys(e)
|
|
3971
3920
|
);
|
|
3972
|
-
|
|
3973
|
-
const
|
|
3974
|
-
function
|
|
3975
|
-
|
|
3921
|
+
ae.subscribe((e) => Xe = e);
|
|
3922
|
+
const ce = {};
|
|
3923
|
+
function ei(e, t) {
|
|
3924
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3976
3925
|
}
|
|
3977
|
-
function
|
|
3978
|
-
return
|
|
3926
|
+
function Yt(e) {
|
|
3927
|
+
return ce[e];
|
|
3979
3928
|
}
|
|
3980
|
-
function
|
|
3929
|
+
function ti(e) {
|
|
3981
3930
|
return ge(e).map((t) => {
|
|
3982
|
-
const r =
|
|
3931
|
+
const r = Yt(t);
|
|
3983
3932
|
return [t, r ? [...r] : []];
|
|
3984
3933
|
}).filter(([, t]) => t.length > 0);
|
|
3985
3934
|
}
|
|
3986
|
-
function
|
|
3935
|
+
function je(e) {
|
|
3987
3936
|
return e == null ? !1 : ge(e).some(
|
|
3988
3937
|
(t) => {
|
|
3989
3938
|
var r;
|
|
3990
|
-
return (r =
|
|
3939
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3991
3940
|
}
|
|
3992
3941
|
);
|
|
3993
3942
|
}
|
|
3994
|
-
function
|
|
3943
|
+
function ri(e, t) {
|
|
3995
3944
|
return Promise.all(
|
|
3996
|
-
t.map((n) => (
|
|
3997
|
-
).then((n) =>
|
|
3998
|
-
}
|
|
3999
|
-
const
|
|
4000
|
-
function
|
|
4001
|
-
if (!
|
|
4002
|
-
return e in
|
|
4003
|
-
const t =
|
|
4004
|
-
return
|
|
3945
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3946
|
+
).then((n) => Zt(e, ...n));
|
|
3947
|
+
}
|
|
3948
|
+
const J = {};
|
|
3949
|
+
function Qt(e) {
|
|
3950
|
+
if (!je(e))
|
|
3951
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3952
|
+
const t = ti(e);
|
|
3953
|
+
return J[e] = Promise.all(
|
|
4005
3954
|
t.map(
|
|
4006
|
-
([r, n]) =>
|
|
3955
|
+
([r, n]) => ri(r, n)
|
|
4007
3956
|
)
|
|
4008
3957
|
).then(() => {
|
|
4009
|
-
if (
|
|
4010
|
-
return
|
|
4011
|
-
delete
|
|
4012
|
-
}),
|
|
3958
|
+
if (je(e))
|
|
3959
|
+
return Qt(e);
|
|
3960
|
+
delete J[e];
|
|
3961
|
+
}), J[e];
|
|
4013
3962
|
}
|
|
4014
|
-
const
|
|
3963
|
+
const ni = {
|
|
4015
3964
|
number: {
|
|
4016
3965
|
scientific: { notation: "scientific" },
|
|
4017
3966
|
engineering: { notation: "engineering" },
|
|
@@ -4040,180 +3989,180 @@ const bi = {
|
|
|
4040
3989
|
timeZoneName: "short"
|
|
4041
3990
|
}
|
|
4042
3991
|
}
|
|
4043
|
-
},
|
|
3992
|
+
}, ii = {
|
|
4044
3993
|
fallbackLocale: null,
|
|
4045
3994
|
loadingDelay: 200,
|
|
4046
|
-
formats:
|
|
3995
|
+
formats: ni,
|
|
4047
3996
|
warnOnMissingMessages: !0,
|
|
4048
3997
|
handleMissingMessage: void 0,
|
|
4049
3998
|
ignoreTag: !0
|
|
4050
|
-
},
|
|
4051
|
-
function
|
|
4052
|
-
return
|
|
4053
|
-
}
|
|
4054
|
-
const
|
|
4055
|
-
var
|
|
4056
|
-
for (var r in t
|
|
4057
|
-
|
|
4058
|
-
if (
|
|
4059
|
-
for (var r of
|
|
4060
|
-
|
|
3999
|
+
}, oi = ii;
|
|
4000
|
+
function X() {
|
|
4001
|
+
return oi;
|
|
4002
|
+
}
|
|
4003
|
+
const He = be(!1);
|
|
4004
|
+
var ai = Object.defineProperty, si = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
|
|
4005
|
+
for (var r in t)
|
|
4006
|
+
li.call(t, r) && pt(e, r, t[r]);
|
|
4007
|
+
if (dt)
|
|
4008
|
+
for (var r of dt(t))
|
|
4009
|
+
hi.call(t, r) && pt(e, r, t[r]);
|
|
4061
4010
|
return e;
|
|
4062
|
-
},
|
|
4063
|
-
let
|
|
4064
|
-
const de =
|
|
4065
|
-
function
|
|
4011
|
+
}, ci = (e, t) => si(e, ui(t));
|
|
4012
|
+
let ke;
|
|
4013
|
+
const de = be(null);
|
|
4014
|
+
function mt(e) {
|
|
4066
4015
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4067
4016
|
}
|
|
4068
|
-
function ge(e, t =
|
|
4069
|
-
const r =
|
|
4070
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4017
|
+
function ge(e, t = X().fallbackLocale) {
|
|
4018
|
+
const r = mt(e);
|
|
4019
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
4071
4020
|
}
|
|
4072
|
-
function
|
|
4073
|
-
return
|
|
4021
|
+
function R() {
|
|
4022
|
+
return ke ?? void 0;
|
|
4074
4023
|
}
|
|
4075
4024
|
de.subscribe((e) => {
|
|
4076
|
-
|
|
4025
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4077
4026
|
});
|
|
4078
|
-
const
|
|
4079
|
-
if (e &&
|
|
4080
|
-
const { loadingDelay: t } =
|
|
4027
|
+
const di = (e) => {
|
|
4028
|
+
if (e && Kn(e) && je(e)) {
|
|
4029
|
+
const { loadingDelay: t } = X();
|
|
4081
4030
|
let r;
|
|
4082
|
-
return typeof window
|
|
4083
|
-
() =>
|
|
4031
|
+
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4032
|
+
() => He.set(!0),
|
|
4084
4033
|
t
|
|
4085
|
-
) :
|
|
4034
|
+
) : He.set(!0), Qt(e).then(() => {
|
|
4086
4035
|
de.set(e);
|
|
4087
4036
|
}).finally(() => {
|
|
4088
|
-
clearTimeout(r),
|
|
4037
|
+
clearTimeout(r), He.set(!1);
|
|
4089
4038
|
});
|
|
4090
4039
|
}
|
|
4091
4040
|
return de.set(e);
|
|
4092
|
-
},
|
|
4093
|
-
set:
|
|
4094
|
-
}),
|
|
4041
|
+
}, Y = ci(fi({}, de), {
|
|
4042
|
+
set: di
|
|
4043
|
+
}), ve = (e) => {
|
|
4095
4044
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4096
4045
|
return (n) => {
|
|
4097
4046
|
const i = JSON.stringify(n);
|
|
4098
4047
|
return i in t ? t[i] : t[i] = e(n);
|
|
4099
4048
|
};
|
|
4100
4049
|
};
|
|
4101
|
-
var
|
|
4050
|
+
var pi = Object.defineProperty, pe = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4102
4051
|
for (var r in t || (t = {}))
|
|
4103
|
-
|
|
4104
|
-
if (
|
|
4105
|
-
for (var r of
|
|
4106
|
-
|
|
4052
|
+
Jt.call(t, r) && bt(e, r, t[r]);
|
|
4053
|
+
if (pe)
|
|
4054
|
+
for (var r of pe(t))
|
|
4055
|
+
Kt.call(t, r) && bt(e, r, t[r]);
|
|
4107
4056
|
return e;
|
|
4108
|
-
},
|
|
4057
|
+
}, Q = (e, t) => {
|
|
4109
4058
|
var r = {};
|
|
4110
4059
|
for (var n in e)
|
|
4111
|
-
|
|
4112
|
-
if (e != null &&
|
|
4113
|
-
for (var n of
|
|
4114
|
-
t.indexOf(n) < 0 &&
|
|
4060
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4061
|
+
if (e != null && pe)
|
|
4062
|
+
for (var n of pe(e))
|
|
4063
|
+
t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
|
|
4115
4064
|
return r;
|
|
4116
4065
|
};
|
|
4117
|
-
const
|
|
4118
|
-
const { formats: r } =
|
|
4066
|
+
const re = (e, t) => {
|
|
4067
|
+
const { formats: r } = X();
|
|
4119
4068
|
if (e in r && t in r[e])
|
|
4120
4069
|
return r[e][t];
|
|
4121
4070
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4122
|
-
},
|
|
4071
|
+
}, mi = ve(
|
|
4123
4072
|
(e) => {
|
|
4124
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4073
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4125
4074
|
if (r == null)
|
|
4126
4075
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4127
|
-
return n && (i =
|
|
4076
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4128
4077
|
}
|
|
4129
|
-
),
|
|
4078
|
+
), bi = ve(
|
|
4130
4079
|
(e) => {
|
|
4131
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4080
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4132
4081
|
if (r == null)
|
|
4133
4082
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4134
|
-
return n ? i =
|
|
4083
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4135
4084
|
}
|
|
4136
|
-
),
|
|
4085
|
+
), yi = ve(
|
|
4137
4086
|
(e) => {
|
|
4138
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4087
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4139
4088
|
if (r == null)
|
|
4140
4089
|
throw new Error(
|
|
4141
4090
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4142
4091
|
);
|
|
4143
|
-
return n ? i =
|
|
4092
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4144
4093
|
}
|
|
4145
|
-
),
|
|
4094
|
+
), gi = (e = {}) => {
|
|
4146
4095
|
var t = e, {
|
|
4147
|
-
locale: r =
|
|
4148
|
-
} = t, n =
|
|
4096
|
+
locale: r = R()
|
|
4097
|
+
} = t, n = Q(t, [
|
|
4149
4098
|
"locale"
|
|
4150
4099
|
]);
|
|
4151
|
-
return
|
|
4152
|
-
},
|
|
4100
|
+
return mi(qe({ locale: r }, n));
|
|
4101
|
+
}, vi = (e = {}) => {
|
|
4153
4102
|
var t = e, {
|
|
4154
|
-
locale: r =
|
|
4155
|
-
} = t, n =
|
|
4103
|
+
locale: r = R()
|
|
4104
|
+
} = t, n = Q(t, [
|
|
4156
4105
|
"locale"
|
|
4157
4106
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4107
|
+
return bi(qe({ locale: r }, n));
|
|
4108
|
+
}, xi = (e = {}) => {
|
|
4160
4109
|
var t = e, {
|
|
4161
|
-
locale: r =
|
|
4162
|
-
} = t, n =
|
|
4110
|
+
locale: r = R()
|
|
4111
|
+
} = t, n = Q(t, [
|
|
4163
4112
|
"locale"
|
|
4164
4113
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4114
|
+
return yi(qe({ locale: r }, n));
|
|
4115
|
+
}, _i = ve(
|
|
4167
4116
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4168
|
-
(e, t =
|
|
4169
|
-
ignoreTag:
|
|
4117
|
+
(e, t = R()) => new qn(e, t, X().formats, {
|
|
4118
|
+
ignoreTag: X().ignoreTag
|
|
4170
4119
|
})
|
|
4171
|
-
),
|
|
4120
|
+
), Ei = (e, t = {}) => {
|
|
4172
4121
|
var r, n, i, o;
|
|
4173
4122
|
let a = t;
|
|
4174
4123
|
typeof e == "object" && (a = e, e = a.id);
|
|
4175
4124
|
const {
|
|
4176
4125
|
values: s,
|
|
4177
|
-
locale: l =
|
|
4126
|
+
locale: l = R(),
|
|
4178
4127
|
default: u
|
|
4179
4128
|
} = a;
|
|
4180
4129
|
if (l == null)
|
|
4181
4130
|
throw new Error(
|
|
4182
4131
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4183
4132
|
);
|
|
4184
|
-
let h =
|
|
4133
|
+
let h = Xt(e, l);
|
|
4185
4134
|
if (!h)
|
|
4186
|
-
h = (o = (i = (n = (r =
|
|
4135
|
+
h = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4187
4136
|
else if (typeof h != "string")
|
|
4188
4137
|
return console.warn(
|
|
4189
4138
|
`[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.`
|
|
4190
4139
|
), h;
|
|
4191
4140
|
if (!s)
|
|
4192
4141
|
return h;
|
|
4193
|
-
let
|
|
4142
|
+
let c = h;
|
|
4194
4143
|
try {
|
|
4195
|
-
|
|
4196
|
-
} catch (
|
|
4197
|
-
|
|
4144
|
+
c = _i(h, l).format(s);
|
|
4145
|
+
} catch (f) {
|
|
4146
|
+
f instanceof Error && console.warn(
|
|
4198
4147
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4199
|
-
|
|
4148
|
+
f.message
|
|
4200
4149
|
);
|
|
4201
4150
|
}
|
|
4202
|
-
return
|
|
4203
|
-
},
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
window.emWidgets = { topic:
|
|
4209
|
-
const
|
|
4210
|
-
function
|
|
4211
|
-
|
|
4212
|
-
}
|
|
4213
|
-
function
|
|
4214
|
-
|
|
4215
|
-
}
|
|
4216
|
-
const
|
|
4151
|
+
return c;
|
|
4152
|
+
}, Ti = (e, t) => xi(t).format(e), Si = (e, t) => vi(t).format(e), wi = (e, t) => gi(t).format(e), Pi = (e, t = R()) => Xt(e, t), Hi = Z([Y, ae], () => Ei);
|
|
4153
|
+
Z([Y], () => Ti);
|
|
4154
|
+
Z([Y], () => Si);
|
|
4155
|
+
Z([Y], () => wi);
|
|
4156
|
+
Z([Y, ae], () => Pi);
|
|
4157
|
+
window.emWidgets = { topic: Gr };
|
|
4158
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4159
|
+
function yt(e, t) {
|
|
4160
|
+
Zt(e, t);
|
|
4161
|
+
}
|
|
4162
|
+
function Ci(e) {
|
|
4163
|
+
Y.set(e);
|
|
4164
|
+
}
|
|
4165
|
+
const gt = {
|
|
4217
4166
|
en: {
|
|
4218
4167
|
name: "Info",
|
|
4219
4168
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4275,26 +4224,26 @@ const Pt = {
|
|
|
4275
4224
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4276
4225
|
}
|
|
4277
4226
|
};
|
|
4278
|
-
function
|
|
4279
|
-
|
|
4227
|
+
function Bi(e) {
|
|
4228
|
+
rr(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4280
4229
|
}
|
|
4281
|
-
function
|
|
4230
|
+
function vt(e) {
|
|
4282
4231
|
let t, r, n, i, o, a, s = (
|
|
4283
4232
|
/*$_*/
|
|
4284
4233
|
e[4]("name") + ""
|
|
4285
|
-
), l, u, h, f,
|
|
4234
|
+
), l, u, h, c, f, d, v, g;
|
|
4286
4235
|
function S(x, w) {
|
|
4287
4236
|
return (
|
|
4288
4237
|
/*iteminfoamount*/
|
|
4289
|
-
x[0] ?
|
|
4238
|
+
x[0] ? Oi : Ai
|
|
4290
4239
|
);
|
|
4291
4240
|
}
|
|
4292
|
-
let P = S(e),
|
|
4241
|
+
let P = S(e), E = P(e);
|
|
4293
4242
|
return {
|
|
4294
4243
|
c() {
|
|
4295
|
-
t =
|
|
4244
|
+
t = B("section"), r = B("div"), n = B("div"), i = B("div"), i.textContent = "i", o = xe(), a = B("div"), l = oe(s), u = xe(), h = B("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', c = xe(), f = B("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(f, "class", "InfoCardPopupContentArea"), C(r, "class", d = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4296
4245
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4297
|
-
(e[0] ? "InfoCardPopupLimitChanged" : "")),
|
|
4246
|
+
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4298
4247
|
t,
|
|
4299
4248
|
"class",
|
|
4300
4249
|
/*isMobile*/
|
|
@@ -4302,47 +4251,47 @@ function Ht(e) {
|
|
|
4302
4251
|
);
|
|
4303
4252
|
},
|
|
4304
4253
|
m(x, w) {
|
|
4305
|
-
|
|
4254
|
+
ie(x, t, w), H(t, r), H(r, n), H(n, i), H(n, o), H(n, a), H(a, l), H(n, u), H(n, h), H(r, c), H(r, f), E.m(f, null), e[12](t), v || (g = ar(h, "click", sr(
|
|
4306
4255
|
/*closeInfoPopup*/
|
|
4307
4256
|
e[6]
|
|
4308
|
-
)),
|
|
4257
|
+
)), v = !0);
|
|
4309
4258
|
},
|
|
4310
4259
|
p(x, w) {
|
|
4311
4260
|
w & /*$_*/
|
|
4312
4261
|
16 && s !== (s = /*$_*/
|
|
4313
|
-
x[4]("name") + "") &&
|
|
4314
|
-
1 &&
|
|
4262
|
+
x[4]("name") + "") && ze(l, s), P === (P = S(x)) && E ? E.p(x, w) : (E.d(1), E = P(x), E && (E.c(), E.m(f, null))), w & /*iteminfoamount*/
|
|
4263
|
+
1 && d !== (d = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4315
4264
|
(x[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4316
|
-
(x[0] ? "InfoCardPopupLimitChanged" : "")) &&
|
|
4265
|
+
(x[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", d);
|
|
4317
4266
|
},
|
|
4318
4267
|
d(x) {
|
|
4319
|
-
x &&
|
|
4268
|
+
x && q(t), E.d(), e[12](null), v = !1, g();
|
|
4320
4269
|
}
|
|
4321
4270
|
};
|
|
4322
4271
|
}
|
|
4323
|
-
function
|
|
4272
|
+
function Ai(e) {
|
|
4324
4273
|
let t, r = (
|
|
4325
4274
|
/*$_*/
|
|
4326
4275
|
e[4]("defaultText") + ""
|
|
4327
4276
|
), n;
|
|
4328
4277
|
return {
|
|
4329
4278
|
c() {
|
|
4330
|
-
t =
|
|
4279
|
+
t = B("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4331
4280
|
},
|
|
4332
4281
|
m(i, o) {
|
|
4333
|
-
|
|
4282
|
+
ie(i, t, o), H(t, n);
|
|
4334
4283
|
},
|
|
4335
4284
|
p(i, o) {
|
|
4336
4285
|
o & /*$_*/
|
|
4337
4286
|
16 && r !== (r = /*$_*/
|
|
4338
|
-
i[4]("defaultText") + "") &&
|
|
4287
|
+
i[4]("defaultText") + "") && ze(n, r);
|
|
4339
4288
|
},
|
|
4340
4289
|
d(i) {
|
|
4341
|
-
i &&
|
|
4290
|
+
i && q(t);
|
|
4342
4291
|
}
|
|
4343
4292
|
};
|
|
4344
4293
|
}
|
|
4345
|
-
function
|
|
4294
|
+
function Oi(e) {
|
|
4346
4295
|
let t, r = (
|
|
4347
4296
|
/*$_*/
|
|
4348
4297
|
e[4]("amountChanged", {
|
|
@@ -4360,10 +4309,10 @@ function zi(e) {
|
|
|
4360
4309
|
), n;
|
|
4361
4310
|
return {
|
|
4362
4311
|
c() {
|
|
4363
|
-
t =
|
|
4312
|
+
t = B("p"), n = oe(r), C(t, "class", "InfoCardPopupContent");
|
|
4364
4313
|
},
|
|
4365
4314
|
m(i, o) {
|
|
4366
|
-
|
|
4315
|
+
ie(i, t, o), H(t, n);
|
|
4367
4316
|
},
|
|
4368
4317
|
p(i, o) {
|
|
4369
4318
|
o & /*$_, iteminfoamount, playercurrency*/
|
|
@@ -4379,118 +4328,118 @@ function zi(e) {
|
|
|
4379
4328
|
i[1]
|
|
4380
4329
|
)
|
|
4381
4330
|
}
|
|
4382
|
-
}) + "") &&
|
|
4331
|
+
}) + "") && ze(n, r);
|
|
4383
4332
|
},
|
|
4384
4333
|
d(i) {
|
|
4385
|
-
i &&
|
|
4334
|
+
i && q(t);
|
|
4386
4335
|
}
|
|
4387
4336
|
};
|
|
4388
4337
|
}
|
|
4389
|
-
function
|
|
4338
|
+
function Ni(e) {
|
|
4390
4339
|
let t, r = (
|
|
4391
4340
|
/*showPopup*/
|
|
4392
|
-
e[3] &&
|
|
4341
|
+
e[3] && vt(e)
|
|
4393
4342
|
);
|
|
4394
4343
|
return {
|
|
4395
4344
|
c() {
|
|
4396
|
-
r && r.c(), t =
|
|
4345
|
+
r && r.c(), t = or();
|
|
4397
4346
|
},
|
|
4398
4347
|
m(n, i) {
|
|
4399
|
-
r && r.m(n, i),
|
|
4348
|
+
r && r.m(n, i), ie(n, t, i);
|
|
4400
4349
|
},
|
|
4401
4350
|
p(n, [i]) {
|
|
4402
4351
|
/*showPopup*/
|
|
4403
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4352
|
+
n[3] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4404
4353
|
},
|
|
4405
|
-
i:
|
|
4406
|
-
o:
|
|
4354
|
+
i: A,
|
|
4355
|
+
o: A,
|
|
4407
4356
|
d(n) {
|
|
4408
|
-
n &&
|
|
4357
|
+
n && q(t), r && r.d(n);
|
|
4409
4358
|
}
|
|
4410
4359
|
};
|
|
4411
4360
|
}
|
|
4412
|
-
function
|
|
4361
|
+
function Li(e, t, r) {
|
|
4413
4362
|
let n;
|
|
4414
|
-
|
|
4363
|
+
tr(e, Hi, (p) => r(4, n = p));
|
|
4415
4364
|
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { playercurrency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t;
|
|
4416
|
-
const
|
|
4365
|
+
const c = () => {
|
|
4417
4366
|
fetch(h).then((I) => I.json()).then((I) => {
|
|
4418
|
-
Object.keys(I).forEach((
|
|
4419
|
-
|
|
4367
|
+
Object.keys(I).forEach((U) => {
|
|
4368
|
+
yt(U, I[U]);
|
|
4420
4369
|
});
|
|
4421
4370
|
}).catch((I) => {
|
|
4422
4371
|
console.log(I);
|
|
4423
4372
|
});
|
|
4424
4373
|
};
|
|
4425
|
-
Object.keys(
|
|
4426
|
-
|
|
4374
|
+
Object.keys(gt).forEach((p) => {
|
|
4375
|
+
yt(p, gt[p]);
|
|
4427
4376
|
});
|
|
4428
|
-
let
|
|
4377
|
+
let f = !1, d, v = window.navigator.userAgent, g = Ii(v) !== "PC";
|
|
4429
4378
|
const S = () => {
|
|
4430
|
-
r(3,
|
|
4379
|
+
r(3, f = !1), window.postMessage(
|
|
4431
4380
|
{
|
|
4432
4381
|
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4433
4382
|
},
|
|
4434
4383
|
window.location.href
|
|
4435
4384
|
);
|
|
4436
|
-
}, P = (
|
|
4437
|
-
|
|
4438
|
-
},
|
|
4439
|
-
|
|
4385
|
+
}, P = (p) => {
|
|
4386
|
+
p.data && p.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, f = !1);
|
|
4387
|
+
}, E = () => {
|
|
4388
|
+
Ci(a), o < 0 && r(0, o = "0"), r(3, f = i);
|
|
4440
4389
|
}, x = () => {
|
|
4441
|
-
let
|
|
4442
|
-
|
|
4390
|
+
let p = document.createElement("style");
|
|
4391
|
+
p.innerHTML = l, d.appendChild(p);
|
|
4443
4392
|
}, w = () => {
|
|
4444
|
-
let
|
|
4445
|
-
fetch(
|
|
4446
|
-
I.innerHTML =
|
|
4393
|
+
let p = new URL(u), I = document.createElement("style");
|
|
4394
|
+
fetch(p.href).then((U) => U.text()).then((U) => {
|
|
4395
|
+
I.innerHTML = U, setTimeout(
|
|
4447
4396
|
() => {
|
|
4448
|
-
|
|
4397
|
+
d.appendChild(I);
|
|
4449
4398
|
},
|
|
4450
4399
|
1
|
|
4451
4400
|
);
|
|
4452
4401
|
});
|
|
4453
4402
|
};
|
|
4454
|
-
|
|
4403
|
+
fr(() => (window.addEventListener("message", P, !1), () => {
|
|
4455
4404
|
window.removeEventListener("message", P);
|
|
4456
4405
|
}));
|
|
4457
|
-
function
|
|
4458
|
-
|
|
4459
|
-
|
|
4406
|
+
function O(p) {
|
|
4407
|
+
Ie[p ? "unshift" : "push"](() => {
|
|
4408
|
+
d = p, r(2, d);
|
|
4460
4409
|
});
|
|
4461
4410
|
}
|
|
4462
|
-
return e.$$set = (
|
|
4463
|
-
"showpopup" in
|
|
4411
|
+
return e.$$set = (p) => {
|
|
4412
|
+
"showpopup" in p && r(7, i = p.showpopup), "iteminfoamount" in p && r(0, o = p.iteminfoamount), "lang" in p && r(8, a = p.lang), "playercurrency" in p && r(1, s = p.playercurrency), "clientstyling" in p && r(9, l = p.clientstyling), "clientstylingurl" in p && r(10, u = p.clientstylingurl), "translationurl" in p && r(11, h = p.translationurl);
|
|
4464
4413
|
}, e.$$.update = () => {
|
|
4465
4414
|
e.$$.dirty & /*showpopup, lang*/
|
|
4466
|
-
384 && i && a &&
|
|
4467
|
-
1028 && u &&
|
|
4468
|
-
516 && l &&
|
|
4469
|
-
2048 && h &&
|
|
4415
|
+
384 && i && a && E(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4416
|
+
1028 && u && d && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4417
|
+
516 && l && d && x(), e.$$.dirty & /*translationurl*/
|
|
4418
|
+
2048 && h && c();
|
|
4470
4419
|
}, [
|
|
4471
4420
|
o,
|
|
4472
4421
|
s,
|
|
4473
|
-
|
|
4474
|
-
|
|
4422
|
+
d,
|
|
4423
|
+
f,
|
|
4475
4424
|
n,
|
|
4476
|
-
|
|
4425
|
+
g,
|
|
4477
4426
|
S,
|
|
4478
4427
|
i,
|
|
4479
4428
|
a,
|
|
4480
4429
|
l,
|
|
4481
4430
|
u,
|
|
4482
4431
|
h,
|
|
4483
|
-
|
|
4432
|
+
O
|
|
4484
4433
|
];
|
|
4485
4434
|
}
|
|
4486
|
-
class
|
|
4435
|
+
class Mi extends Tr {
|
|
4487
4436
|
constructor(t) {
|
|
4488
|
-
super(),
|
|
4437
|
+
super(), _r(
|
|
4489
4438
|
this,
|
|
4490
4439
|
t,
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4440
|
+
Li,
|
|
4441
|
+
Ni,
|
|
4442
|
+
_t,
|
|
4494
4443
|
{
|
|
4495
4444
|
showpopup: 7,
|
|
4496
4445
|
iteminfoamount: 0,
|
|
@@ -4500,53 +4449,53 @@ class qi extends Rr {
|
|
|
4500
4449
|
clientstylingurl: 10,
|
|
4501
4450
|
translationurl: 11
|
|
4502
4451
|
},
|
|
4503
|
-
|
|
4452
|
+
Bi
|
|
4504
4453
|
);
|
|
4505
4454
|
}
|
|
4506
4455
|
get showpopup() {
|
|
4507
4456
|
return this.$$.ctx[7];
|
|
4508
4457
|
}
|
|
4509
4458
|
set showpopup(t) {
|
|
4510
|
-
this.$$set({ showpopup: t }),
|
|
4459
|
+
this.$$set({ showpopup: t }), N();
|
|
4511
4460
|
}
|
|
4512
4461
|
get iteminfoamount() {
|
|
4513
4462
|
return this.$$.ctx[0];
|
|
4514
4463
|
}
|
|
4515
4464
|
set iteminfoamount(t) {
|
|
4516
|
-
this.$$set({ iteminfoamount: t }),
|
|
4465
|
+
this.$$set({ iteminfoamount: t }), N();
|
|
4517
4466
|
}
|
|
4518
4467
|
get lang() {
|
|
4519
4468
|
return this.$$.ctx[8];
|
|
4520
4469
|
}
|
|
4521
4470
|
set lang(t) {
|
|
4522
|
-
this.$$set({ lang: t }),
|
|
4471
|
+
this.$$set({ lang: t }), N();
|
|
4523
4472
|
}
|
|
4524
4473
|
get playercurrency() {
|
|
4525
4474
|
return this.$$.ctx[1];
|
|
4526
4475
|
}
|
|
4527
4476
|
set playercurrency(t) {
|
|
4528
|
-
this.$$set({ playercurrency: t }),
|
|
4477
|
+
this.$$set({ playercurrency: t }), N();
|
|
4529
4478
|
}
|
|
4530
4479
|
get clientstyling() {
|
|
4531
4480
|
return this.$$.ctx[9];
|
|
4532
4481
|
}
|
|
4533
4482
|
set clientstyling(t) {
|
|
4534
|
-
this.$$set({ clientstyling: t }),
|
|
4483
|
+
this.$$set({ clientstyling: t }), N();
|
|
4535
4484
|
}
|
|
4536
4485
|
get clientstylingurl() {
|
|
4537
4486
|
return this.$$.ctx[10];
|
|
4538
4487
|
}
|
|
4539
4488
|
set clientstylingurl(t) {
|
|
4540
|
-
this.$$set({ clientstylingurl: t }),
|
|
4489
|
+
this.$$set({ clientstylingurl: t }), N();
|
|
4541
4490
|
}
|
|
4542
4491
|
get translationurl() {
|
|
4543
4492
|
return this.$$.ctx[11];
|
|
4544
4493
|
}
|
|
4545
4494
|
set translationurl(t) {
|
|
4546
|
-
this.$$set({ translationurl: t }),
|
|
4495
|
+
this.$$set({ translationurl: t }), N();
|
|
4547
4496
|
}
|
|
4548
4497
|
}
|
|
4549
|
-
|
|
4498
|
+
Er(Mi, { showpopup: {}, iteminfoamount: {}, lang: {}, playercurrency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4550
4499
|
export {
|
|
4551
|
-
|
|
4500
|
+
Mi as P
|
|
4552
4501
|
};
|