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