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