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