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