@everymatrix/player-panic-button 1.86.2 → 1.86.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerPanicButton-DNDWY2ao.js → PlayerPanicButton-CQWVDkZh.js} +856 -877
- package/components/{PlayerPanicButton-Dp119ZFH.js → PlayerPanicButton-CWtLQ7IQ.js} +730 -751
- package/components/PlayerPanicButton-DlRd7Qa-.cjs +18 -0
- package/es2015/player-panic-button.cjs +1 -1
- package/es2015/player-panic-button.js +1 -1
- package/esnext/player-panic-button.js +1 -1
- package/package.json +1 -1
- package/components/PlayerPanicButton-BxpbhLJE.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var hr = Object.defineProperty, lr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
pr.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, et = (e, t) => lr(e, cr(t));
|
|
13
|
+
var T = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -29,25 +29,25 @@ var nt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ht(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function rt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Ht);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Xe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Pt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function mr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function At(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function It(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function dr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(At(t, r));
|
|
61
61
|
}
|
|
62
62
|
function ue(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function br(e, t, r) {
|
|
66
|
+
const n = gr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = Y("style");
|
|
69
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function gr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,39 +79,39 @@ function yr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function yr(e, t) {
|
|
83
83
|
return ue(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ot(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ze(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Y(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function vr(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
101
|
function C(e, t, r) {
|
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Er(e) {
|
|
105
105
|
return Array.from(e.childNodes);
|
|
106
106
|
}
|
|
107
107
|
function xr(e, t) {
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function nt(e, t, r) {
|
|
112
112
|
e.classList.toggle(t, !!r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function _r(e) {
|
|
115
115
|
const t = {};
|
|
116
116
|
return e.childNodes.forEach(
|
|
117
117
|
/** @param {Element} node */
|
|
@@ -120,87 +120,87 @@ function Sr(e) {
|
|
|
120
120
|
}
|
|
121
121
|
), t;
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
|
|
123
|
+
let K;
|
|
124
|
+
function q(e) {
|
|
125
|
+
K = e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (!
|
|
127
|
+
function Sr() {
|
|
128
|
+
if (!K)
|
|
129
129
|
throw new Error("Function called outside component initialization");
|
|
130
|
-
return
|
|
130
|
+
return K;
|
|
131
131
|
}
|
|
132
132
|
function Tr(e) {
|
|
133
|
-
|
|
133
|
+
Sr().$$.on_mount.push(e);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
135
|
+
const F = [], pe = [];
|
|
136
|
+
let G = [];
|
|
137
|
+
const it = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
138
|
+
let Oe = !1;
|
|
139
|
+
function Br() {
|
|
140
|
+
Oe || (Oe = !0, wr.then(P));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Ie(e) {
|
|
143
|
+
G.push(e);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const _e = /* @__PURE__ */ new Set();
|
|
146
146
|
let U = 0;
|
|
147
|
-
function
|
|
147
|
+
function P() {
|
|
148
148
|
if (U !== 0)
|
|
149
149
|
return;
|
|
150
|
-
const e =
|
|
150
|
+
const e = K;
|
|
151
151
|
do {
|
|
152
152
|
try {
|
|
153
|
-
for (; U <
|
|
154
|
-
const t =
|
|
155
|
-
U++,
|
|
153
|
+
for (; U < F.length; ) {
|
|
154
|
+
const t = F[U];
|
|
155
|
+
U++, q(t), Hr(t.$$);
|
|
156
156
|
}
|
|
157
157
|
} catch (t) {
|
|
158
|
-
throw
|
|
158
|
+
throw F.length = 0, U = 0, t;
|
|
159
159
|
}
|
|
160
|
-
for (
|
|
160
|
+
for (q(null), F.length = 0, U = 0; pe.length; )
|
|
161
161
|
pe.pop()();
|
|
162
|
-
for (let t = 0; t <
|
|
163
|
-
const r =
|
|
164
|
-
|
|
162
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
163
|
+
const r = G[t];
|
|
164
|
+
_e.has(r) || (_e.add(r), r());
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
} while (
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
G.length = 0;
|
|
167
|
+
} while (F.length);
|
|
168
|
+
for (; it.length; )
|
|
169
|
+
it.pop()();
|
|
170
|
+
Oe = !1, _e.clear(), q(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Hr(e) {
|
|
173
173
|
if (e.fragment !== null) {
|
|
174
|
-
e.update(),
|
|
174
|
+
e.update(), re(e.before_update);
|
|
175
175
|
const t = e.dirty;
|
|
176
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
176
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Pr(e) {
|
|
180
180
|
const t = [], r = [];
|
|
181
|
-
|
|
181
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
183
|
+
const Ar = /* @__PURE__ */ new Set();
|
|
184
|
+
function Or(e, t) {
|
|
185
|
+
e && e.i && (Ar.delete(e), e.i(t));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Ir(e, t, r) {
|
|
188
188
|
const { fragment: n, after_update: i } = e.$$;
|
|
189
|
-
n && n.m(t, r),
|
|
190
|
-
const o = e.$$.on_mount.map(
|
|
191
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
192
|
-
}), i.forEach(
|
|
189
|
+
n && n.m(t, r), Ie(() => {
|
|
190
|
+
const o = e.$$.on_mount.map(Ht).filter(Xe);
|
|
191
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
192
|
+
}), i.forEach(Ie);
|
|
193
193
|
}
|
|
194
194
|
function Lr(e, t) {
|
|
195
195
|
const r = e.$$;
|
|
196
|
-
r.fragment !== null && (
|
|
196
|
+
r.fragment !== null && (Pr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
e.$$.dirty[0] === -1 && (
|
|
198
|
+
function Nr(e, t) {
|
|
199
|
+
e.$$.dirty[0] === -1 && (F.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const u =
|
|
203
|
-
|
|
201
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
202
|
+
const u = K;
|
|
203
|
+
q(e);
|
|
204
204
|
const h = e.$$ = {
|
|
205
205
|
fragment: null,
|
|
206
206
|
ctx: [],
|
|
@@ -208,7 +208,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
props: o,
|
|
209
209
|
update: B,
|
|
210
210
|
not_equal: i,
|
|
211
|
-
bound:
|
|
211
|
+
bound: rt(),
|
|
212
212
|
// lifecycle
|
|
213
213
|
on_mount: [],
|
|
214
214
|
on_destroy: [],
|
|
@@ -217,7 +217,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
after_update: [],
|
|
218
218
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
219
219
|
// everything else
|
|
220
|
-
callbacks:
|
|
220
|
+
callbacks: rt(),
|
|
221
221
|
dirty: a,
|
|
222
222
|
skip_bound: !1,
|
|
223
223
|
root: t.target || u.$$.root
|
|
@@ -225,40 +225,40 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
225
225
|
s && s(h.root);
|
|
226
226
|
let l = !1;
|
|
227
227
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
228
|
-
const
|
|
229
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] =
|
|
230
|
-
}) : [], h.update(), l = !0,
|
|
228
|
+
const y = m.length ? m[0] : f;
|
|
229
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = y) && (!h.skip_bound && h.bound[c] && h.bound[c](y), l && Nr(e, c)), f;
|
|
230
|
+
}) : [], h.update(), l = !0, re(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
|
-
const c =
|
|
233
|
-
h.fragment && h.fragment.l(c), c.forEach(
|
|
232
|
+
const c = Er(t.target);
|
|
233
|
+
h.fragment && h.fragment.l(c), c.forEach(ze);
|
|
234
234
|
} else
|
|
235
235
|
h.fragment && h.fragment.c();
|
|
236
|
-
t.intro &&
|
|
236
|
+
t.intro && Or(e.$$.fragment), Ir(e, t.target, t.anchor), P();
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
q(u);
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
typeof HTMLElement == "function" && (
|
|
240
|
+
let It;
|
|
241
|
+
typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
242
242
|
constructor(t, r, n) {
|
|
243
243
|
super();
|
|
244
244
|
/** The Svelte component constructor */
|
|
245
|
-
|
|
245
|
+
T(this, "$$ctor");
|
|
246
246
|
/** Slots */
|
|
247
|
-
|
|
247
|
+
T(this, "$$s");
|
|
248
248
|
/** The Svelte component instance */
|
|
249
|
-
|
|
249
|
+
T(this, "$$c");
|
|
250
250
|
/** Whether or not the custom element is connected */
|
|
251
|
-
|
|
251
|
+
T(this, "$$cn", !1);
|
|
252
252
|
/** Component props data */
|
|
253
|
-
|
|
253
|
+
T(this, "$$d", {});
|
|
254
254
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
255
|
-
|
|
255
|
+
T(this, "$$r", !1);
|
|
256
256
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
257
|
-
|
|
257
|
+
T(this, "$$p_d", {});
|
|
258
258
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
259
|
-
|
|
259
|
+
T(this, "$$l", {});
|
|
260
260
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
261
|
-
|
|
261
|
+
T(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
262
262
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
263
263
|
}
|
|
264
264
|
addEventListener(t, r, n) {
|
|
@@ -275,31 +275,31 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
connectedCallback() {
|
|
278
|
-
return
|
|
278
|
+
return tt(this, null, function* () {
|
|
279
279
|
if (this.$$cn = !0, !this.$$c) {
|
|
280
280
|
let t = function(o) {
|
|
281
281
|
return () => {
|
|
282
282
|
let s;
|
|
283
283
|
return {
|
|
284
284
|
c: function() {
|
|
285
|
-
s =
|
|
285
|
+
s = Y("slot"), o !== "default" && C(s, "name", o);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
288
|
* @param {HTMLElement} target
|
|
289
289
|
* @param {HTMLElement} [anchor]
|
|
290
290
|
*/
|
|
291
291
|
m: function(h, l) {
|
|
292
|
-
|
|
292
|
+
Ot(h, s, l);
|
|
293
293
|
},
|
|
294
294
|
d: function(h) {
|
|
295
|
-
h &&
|
|
295
|
+
h && ze(s);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
};
|
|
300
300
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
301
301
|
return;
|
|
302
|
-
const r = {}, n =
|
|
302
|
+
const r = {}, n = _r(this);
|
|
303
303
|
for (const o of this.$$s)
|
|
304
304
|
o in n && (r[o] = [t(o)]);
|
|
305
305
|
for (const o of this.attributes) {
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
310
310
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
311
311
|
this.$$c = new this.$$ctor({
|
|
312
312
|
target: this.shadowRoot || this,
|
|
313
|
-
props:
|
|
313
|
+
props: et(Ke({}, this.$$d), {
|
|
314
314
|
$$slots: r,
|
|
315
315
|
$$scope: {
|
|
316
316
|
ctx: []
|
|
@@ -388,8 +388,8 @@ function he(e, t, r, n) {
|
|
|
388
388
|
return t;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
let s = class extends
|
|
391
|
+
function Mr(e, t, r, n, i, o) {
|
|
392
|
+
let s = class extends It {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, r, i), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -428,7 +428,7 @@ class Rr {
|
|
|
428
428
|
*
|
|
429
429
|
* @type {any}
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
T(this, "$$");
|
|
432
432
|
/**
|
|
433
433
|
* ### PRIVATE API
|
|
434
434
|
*
|
|
@@ -436,7 +436,7 @@ class Rr {
|
|
|
436
436
|
*
|
|
437
437
|
* @type {any}
|
|
438
438
|
*/
|
|
439
|
-
|
|
439
|
+
T(this, "$$set");
|
|
440
440
|
}
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
@@ -449,7 +449,7 @@ class Rr {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!Xe(r))
|
|
453
453
|
return B;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,18 +462,18 @@ class Rr {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
470
|
-
function
|
|
468
|
+
const $r = "4";
|
|
469
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
|
|
470
|
+
function Ur(e, t) {
|
|
471
471
|
if (e) {
|
|
472
472
|
const r = document.createElement("style");
|
|
473
473
|
r.innerHTML = t, e.appendChild(r);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Dr(e, t) {
|
|
477
477
|
if (!e || !t)
|
|
478
478
|
return;
|
|
479
479
|
const r = new URL(t);
|
|
@@ -506,24 +506,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
506
506
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
507
507
|
PERFORMANCE OF THIS SOFTWARE.
|
|
508
508
|
***************************************************************************** */
|
|
509
|
-
var
|
|
510
|
-
return
|
|
509
|
+
var Le = function(e, t) {
|
|
510
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
511
511
|
r.__proto__ = n;
|
|
512
512
|
} || function(r, n) {
|
|
513
513
|
for (var i in n)
|
|
514
514
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
515
|
-
},
|
|
515
|
+
}, Le(e, t);
|
|
516
516
|
};
|
|
517
|
-
function
|
|
517
|
+
function O(e, t) {
|
|
518
518
|
if (typeof t != "function" && t !== null)
|
|
519
519
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
520
|
-
|
|
520
|
+
Le(e, t);
|
|
521
521
|
function r() {
|
|
522
522
|
this.constructor = e;
|
|
523
523
|
}
|
|
524
524
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
var b = function() {
|
|
527
|
+
return b = Object.assign || function(t) {
|
|
528
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
529
|
+
r = arguments[n];
|
|
530
|
+
for (var o in r)
|
|
531
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
532
|
+
}
|
|
533
|
+
return t;
|
|
534
|
+
}, b.apply(this, arguments);
|
|
535
|
+
};
|
|
536
|
+
function Gr(e, t) {
|
|
537
|
+
var r = {};
|
|
538
|
+
for (var n in e)
|
|
539
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
540
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
541
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
542
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
543
|
+
return r;
|
|
544
|
+
}
|
|
545
|
+
function Ne(e) {
|
|
527
546
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
528
547
|
if (r)
|
|
529
548
|
return r.call(e);
|
|
@@ -535,7 +554,7 @@ function Me(e) {
|
|
|
535
554
|
};
|
|
536
555
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
537
556
|
}
|
|
538
|
-
function
|
|
557
|
+
function Ce(e, t) {
|
|
539
558
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
540
559
|
if (!r)
|
|
541
560
|
return e;
|
|
@@ -555,22 +574,22 @@ function $e(e, t) {
|
|
|
555
574
|
}
|
|
556
575
|
return o;
|
|
557
576
|
}
|
|
558
|
-
function
|
|
559
|
-
if (arguments.length === 2)
|
|
577
|
+
function j(e, t, r) {
|
|
578
|
+
if (r || arguments.length === 2)
|
|
560
579
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
561
580
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
562
581
|
return e.concat(o || t);
|
|
563
582
|
}
|
|
564
|
-
function
|
|
583
|
+
function A(e) {
|
|
565
584
|
return typeof e == "function";
|
|
566
585
|
}
|
|
567
|
-
function
|
|
586
|
+
function Lt(e) {
|
|
568
587
|
var t = function(n) {
|
|
569
588
|
Error.call(n), n.stack = new Error().stack;
|
|
570
589
|
}, r = e(t);
|
|
571
590
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
572
591
|
}
|
|
573
|
-
var
|
|
592
|
+
var Se = Lt(function(e) {
|
|
574
593
|
return function(r) {
|
|
575
594
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
576
595
|
` + r.map(function(n, i) {
|
|
@@ -579,13 +598,13 @@ var Te = Ct(function(e) {
|
|
|
579
598
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
580
599
|
};
|
|
581
600
|
});
|
|
582
|
-
function
|
|
601
|
+
function Me(e, t) {
|
|
583
602
|
if (e) {
|
|
584
603
|
var r = e.indexOf(t);
|
|
585
604
|
0 <= r && e.splice(r, 1);
|
|
586
605
|
}
|
|
587
606
|
}
|
|
588
|
-
var
|
|
607
|
+
var be = function() {
|
|
589
608
|
function e(t) {
|
|
590
609
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
591
610
|
}
|
|
@@ -597,12 +616,12 @@ var ge = function() {
|
|
|
597
616
|
if (s)
|
|
598
617
|
if (this._parentage = null, Array.isArray(s))
|
|
599
618
|
try {
|
|
600
|
-
for (var a =
|
|
619
|
+
for (var a = Ne(s), u = a.next(); !u.done; u = a.next()) {
|
|
601
620
|
var h = u.value;
|
|
602
621
|
h.remove(this);
|
|
603
622
|
}
|
|
604
|
-
} catch (
|
|
605
|
-
t = { error:
|
|
623
|
+
} catch (g) {
|
|
624
|
+
t = { error: g };
|
|
606
625
|
} finally {
|
|
607
626
|
try {
|
|
608
627
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -614,26 +633,26 @@ var ge = function() {
|
|
|
614
633
|
else
|
|
615
634
|
s.remove(this);
|
|
616
635
|
var l = this.initialTeardown;
|
|
617
|
-
if (
|
|
636
|
+
if (A(l))
|
|
618
637
|
try {
|
|
619
638
|
l();
|
|
620
|
-
} catch (
|
|
621
|
-
o =
|
|
639
|
+
} catch (g) {
|
|
640
|
+
o = g instanceof Se ? g.errors : [g];
|
|
622
641
|
}
|
|
623
642
|
var c = this._finalizers;
|
|
624
643
|
if (c) {
|
|
625
644
|
this._finalizers = null;
|
|
626
645
|
try {
|
|
627
|
-
for (var f =
|
|
628
|
-
var
|
|
646
|
+
for (var f = Ne(c), m = f.next(); !m.done; m = f.next()) {
|
|
647
|
+
var y = m.value;
|
|
629
648
|
try {
|
|
630
|
-
|
|
631
|
-
} catch (
|
|
632
|
-
o = o != null ? o : [],
|
|
649
|
+
ot(y);
|
|
650
|
+
} catch (g) {
|
|
651
|
+
o = o != null ? o : [], g instanceof Se ? o = j(j([], Ce(o)), Ce(g.errors)) : o.push(g);
|
|
633
652
|
}
|
|
634
653
|
}
|
|
635
|
-
} catch (
|
|
636
|
-
n = { error:
|
|
654
|
+
} catch (g) {
|
|
655
|
+
n = { error: g };
|
|
637
656
|
} finally {
|
|
638
657
|
try {
|
|
639
658
|
m && !m.done && (i = f.return) && i.call(f);
|
|
@@ -644,13 +663,13 @@ var ge = function() {
|
|
|
644
663
|
}
|
|
645
664
|
}
|
|
646
665
|
if (o)
|
|
647
|
-
throw new
|
|
666
|
+
throw new Se(o);
|
|
648
667
|
}
|
|
649
668
|
}, e.prototype.add = function(t) {
|
|
650
669
|
var r;
|
|
651
670
|
if (t && t !== this)
|
|
652
671
|
if (this.closed)
|
|
653
|
-
|
|
672
|
+
ot(t);
|
|
654
673
|
else {
|
|
655
674
|
if (t instanceof e) {
|
|
656
675
|
if (t.closed || t._hasParent(this))
|
|
@@ -667,52 +686,56 @@ var ge = function() {
|
|
|
667
686
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
668
687
|
}, e.prototype._removeParent = function(t) {
|
|
669
688
|
var r = this._parentage;
|
|
670
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
689
|
+
r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
|
|
671
690
|
}, e.prototype.remove = function(t) {
|
|
672
691
|
var r = this._finalizers;
|
|
673
|
-
r &&
|
|
692
|
+
r && Me(r, t), t instanceof e && t._removeParent(this);
|
|
674
693
|
}, e.EMPTY = function() {
|
|
675
694
|
var t = new e();
|
|
676
695
|
return t.closed = !0, t;
|
|
677
696
|
}(), e;
|
|
678
|
-
}(),
|
|
679
|
-
function
|
|
680
|
-
return e instanceof
|
|
681
|
-
}
|
|
682
|
-
function
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
var
|
|
686
|
-
|
|
687
|
-
|
|
697
|
+
}(), Nt = be.EMPTY;
|
|
698
|
+
function Ct(e) {
|
|
699
|
+
return e instanceof be || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
700
|
+
}
|
|
701
|
+
function ot(e) {
|
|
702
|
+
A(e) ? e() : e.unsubscribe();
|
|
703
|
+
}
|
|
704
|
+
var Mt = {
|
|
705
|
+
onUnhandledError: null,
|
|
706
|
+
onStoppedNotification: null,
|
|
707
|
+
Promise: void 0,
|
|
708
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
709
|
+
useDeprecatedNextContext: !1
|
|
710
|
+
}, jr = {
|
|
688
711
|
setTimeout: function(e, t) {
|
|
689
712
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
690
713
|
r[n - 2] = arguments[n];
|
|
691
|
-
return setTimeout.apply(void 0,
|
|
714
|
+
return setTimeout.apply(void 0, j([e, t], Ce(r)));
|
|
692
715
|
},
|
|
693
716
|
clearTimeout: function(e) {
|
|
694
717
|
return clearTimeout(e);
|
|
695
718
|
},
|
|
696
719
|
delegate: void 0
|
|
697
720
|
};
|
|
698
|
-
function
|
|
699
|
-
|
|
721
|
+
function kr(e) {
|
|
722
|
+
jr.setTimeout(function() {
|
|
700
723
|
throw e;
|
|
701
724
|
});
|
|
702
725
|
}
|
|
703
|
-
function
|
|
726
|
+
function st() {
|
|
704
727
|
}
|
|
705
728
|
function le(e) {
|
|
706
729
|
e();
|
|
707
730
|
}
|
|
708
731
|
var Rt = function(e) {
|
|
709
|
-
|
|
732
|
+
O(t, e);
|
|
710
733
|
function t(r) {
|
|
711
734
|
var n = e.call(this) || this;
|
|
712
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
735
|
+
return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Wr, n;
|
|
713
736
|
}
|
|
714
737
|
return t.create = function(r, n, i) {
|
|
715
|
-
return new
|
|
738
|
+
return new Re(r, n, i);
|
|
716
739
|
}, t.prototype.next = function(r) {
|
|
717
740
|
this.isStopped || this._next(r);
|
|
718
741
|
}, t.prototype.error = function(r) {
|
|
@@ -736,7 +759,11 @@ var Rt = function(e) {
|
|
|
736
759
|
this.unsubscribe();
|
|
737
760
|
}
|
|
738
761
|
}, t;
|
|
739
|
-
}(
|
|
762
|
+
}(be), Vr = Function.prototype.bind;
|
|
763
|
+
function Te(e, t) {
|
|
764
|
+
return Vr.call(e, t);
|
|
765
|
+
}
|
|
766
|
+
var Xr = function() {
|
|
740
767
|
function e(t) {
|
|
741
768
|
this.partialObserver = t;
|
|
742
769
|
}
|
|
@@ -767,29 +794,41 @@ var Rt = function(e) {
|
|
|
767
794
|
oe(r);
|
|
768
795
|
}
|
|
769
796
|
}, e;
|
|
770
|
-
}(),
|
|
771
|
-
|
|
797
|
+
}(), Re = function(e) {
|
|
798
|
+
O(t, e);
|
|
772
799
|
function t(r, n, i) {
|
|
773
800
|
var o = e.call(this) || this, s;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
801
|
+
if (A(r) || !r)
|
|
802
|
+
s = {
|
|
803
|
+
next: r != null ? r : void 0,
|
|
804
|
+
error: n != null ? n : void 0,
|
|
805
|
+
complete: i != null ? i : void 0
|
|
806
|
+
};
|
|
807
|
+
else {
|
|
808
|
+
var a;
|
|
809
|
+
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
810
|
+
return o.unsubscribe();
|
|
811
|
+
}, s = {
|
|
812
|
+
next: r.next && Te(r.next, a),
|
|
813
|
+
error: r.error && Te(r.error, a),
|
|
814
|
+
complete: r.complete && Te(r.complete, a)
|
|
815
|
+
}) : s = r;
|
|
816
|
+
}
|
|
817
|
+
return o.destination = new Xr(s), o;
|
|
779
818
|
}
|
|
780
819
|
return t;
|
|
781
820
|
}(Rt);
|
|
782
821
|
function oe(e) {
|
|
783
|
-
|
|
822
|
+
kr(e);
|
|
784
823
|
}
|
|
785
824
|
function zr(e) {
|
|
786
825
|
throw e;
|
|
787
826
|
}
|
|
788
827
|
var Wr = {
|
|
789
828
|
closed: !0,
|
|
790
|
-
next:
|
|
829
|
+
next: st,
|
|
791
830
|
error: zr,
|
|
792
|
-
complete:
|
|
831
|
+
complete: st
|
|
793
832
|
}, Zr = function() {
|
|
794
833
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
795
834
|
}();
|
|
@@ -803,7 +842,7 @@ function Jr(e) {
|
|
|
803
842
|
}, r);
|
|
804
843
|
};
|
|
805
844
|
}
|
|
806
|
-
var
|
|
845
|
+
var at = function() {
|
|
807
846
|
function e(t) {
|
|
808
847
|
t && (this._subscribe = t);
|
|
809
848
|
}
|
|
@@ -811,7 +850,7 @@ var ht = function() {
|
|
|
811
850
|
var r = new e();
|
|
812
851
|
return r.source = this, r.operator = t, r;
|
|
813
852
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
814
|
-
var i = this, o = qr(t) ? t : new
|
|
853
|
+
var i = this, o = qr(t) ? t : new Re(t, r, n);
|
|
815
854
|
return le(function() {
|
|
816
855
|
var s = i, a = s.operator, u = s.source;
|
|
817
856
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -824,8 +863,8 @@ var ht = function() {
|
|
|
824
863
|
}
|
|
825
864
|
}, e.prototype.forEach = function(t, r) {
|
|
826
865
|
var n = this;
|
|
827
|
-
return r =
|
|
828
|
-
var s = new
|
|
866
|
+
return r = ut(r), new r(function(i, o) {
|
|
867
|
+
var s = new Re({
|
|
829
868
|
next: function(a) {
|
|
830
869
|
try {
|
|
831
870
|
t(a);
|
|
@@ -849,7 +888,7 @@ var ht = function() {
|
|
|
849
888
|
return Jr(t)(this);
|
|
850
889
|
}, e.prototype.toPromise = function(t) {
|
|
851
890
|
var r = this;
|
|
852
|
-
return t =
|
|
891
|
+
return t = ut(t), new t(function(n, i) {
|
|
853
892
|
var o;
|
|
854
893
|
r.subscribe(function(s) {
|
|
855
894
|
return o = s;
|
|
@@ -863,28 +902,28 @@ var ht = function() {
|
|
|
863
902
|
return new e(t);
|
|
864
903
|
}, e;
|
|
865
904
|
}();
|
|
866
|
-
function
|
|
905
|
+
function ut(e) {
|
|
867
906
|
var t;
|
|
868
|
-
return (t = e != null ? e :
|
|
907
|
+
return (t = e != null ? e : Mt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
869
908
|
}
|
|
870
909
|
function Yr(e) {
|
|
871
|
-
return e &&
|
|
910
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
872
911
|
}
|
|
873
912
|
function qr(e) {
|
|
874
|
-
return e && e instanceof Rt || Yr(e) &&
|
|
913
|
+
return e && e instanceof Rt || Yr(e) && Ct(e);
|
|
875
914
|
}
|
|
876
|
-
var Kr =
|
|
915
|
+
var Kr = Lt(function(e) {
|
|
877
916
|
return function() {
|
|
878
917
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
879
918
|
};
|
|
880
|
-
}),
|
|
881
|
-
|
|
919
|
+
}), $t = function(e) {
|
|
920
|
+
O(t, e);
|
|
882
921
|
function t() {
|
|
883
922
|
var r = e.call(this) || this;
|
|
884
923
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
885
924
|
}
|
|
886
925
|
return t.prototype.lift = function(r) {
|
|
887
|
-
var n = new
|
|
926
|
+
var n = new ht(this, this);
|
|
888
927
|
return n.operator = r, n;
|
|
889
928
|
}, t.prototype._throwIfClosed = function() {
|
|
890
929
|
if (this.closed)
|
|
@@ -896,7 +935,7 @@ var Kr = Ct(function(e) {
|
|
|
896
935
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
897
936
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
898
937
|
try {
|
|
899
|
-
for (var s =
|
|
938
|
+
for (var s = Ne(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
900
939
|
var u = a.value;
|
|
901
940
|
u.next(r);
|
|
902
941
|
}
|
|
@@ -945,20 +984,20 @@ var Kr = Ct(function(e) {
|
|
|
945
984
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
946
985
|
}, t.prototype._innerSubscribe = function(r) {
|
|
947
986
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
948
|
-
return o || s ?
|
|
949
|
-
n.currentObservers = null,
|
|
987
|
+
return o || s ? Nt : (this.currentObservers = null, a.push(r), new be(function() {
|
|
988
|
+
n.currentObservers = null, Me(a, r);
|
|
950
989
|
}));
|
|
951
990
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
952
991
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
953
992
|
i ? r.error(o) : s && r.complete();
|
|
954
993
|
}, t.prototype.asObservable = function() {
|
|
955
|
-
var r = new
|
|
994
|
+
var r = new at();
|
|
956
995
|
return r.source = this, r;
|
|
957
996
|
}, t.create = function(r, n) {
|
|
958
|
-
return new
|
|
997
|
+
return new ht(r, n);
|
|
959
998
|
}, t;
|
|
960
|
-
}(
|
|
961
|
-
|
|
999
|
+
}(at), ht = function(e) {
|
|
1000
|
+
O(t, e);
|
|
962
1001
|
function t(r, n) {
|
|
963
1002
|
var i = e.call(this) || this;
|
|
964
1003
|
return i.destination = r, i.source = n, i;
|
|
@@ -974,17 +1013,17 @@ var Kr = Ct(function(e) {
|
|
|
974
1013
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
975
1014
|
}, t.prototype._subscribe = function(r) {
|
|
976
1015
|
var n, i;
|
|
977
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1016
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
978
1017
|
}, t;
|
|
979
|
-
}(
|
|
1018
|
+
}($t), Ut = {
|
|
980
1019
|
now: function() {
|
|
981
|
-
return (
|
|
1020
|
+
return (Ut.delegate || Date).now();
|
|
982
1021
|
},
|
|
983
1022
|
delegate: void 0
|
|
984
1023
|
}, en = function(e) {
|
|
985
|
-
|
|
1024
|
+
O(t, e);
|
|
986
1025
|
function t(r, n, i) {
|
|
987
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1026
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
988
1027
|
var o = e.call(this) || this;
|
|
989
1028
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
990
1029
|
}
|
|
@@ -1004,24 +1043,24 @@ var Kr = Ct(function(e) {
|
|
|
1004
1043
|
h && o.splice(0, h + 1);
|
|
1005
1044
|
}
|
|
1006
1045
|
}, t;
|
|
1007
|
-
}(
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1046
|
+
}($t);
|
|
1047
|
+
const lt = [], ct = {}, tn = (e, t = 0) => {
|
|
1048
|
+
if (lt.indexOf(e) == -1) {
|
|
1010
1049
|
const r = new en(t);
|
|
1011
|
-
|
|
1050
|
+
ct[e] = r, lt.push(e);
|
|
1012
1051
|
}
|
|
1013
|
-
return
|
|
1052
|
+
return ct[e];
|
|
1014
1053
|
}, D = [];
|
|
1015
1054
|
function rn(e, t) {
|
|
1016
1055
|
return {
|
|
1017
|
-
subscribe:
|
|
1056
|
+
subscribe: ge(e, t).subscribe
|
|
1018
1057
|
};
|
|
1019
1058
|
}
|
|
1020
|
-
function
|
|
1059
|
+
function ge(e, t = B) {
|
|
1021
1060
|
let r;
|
|
1022
1061
|
const n = /* @__PURE__ */ new Set();
|
|
1023
1062
|
function i(a) {
|
|
1024
|
-
if (
|
|
1063
|
+
if (Pt(e, a) && (e = a, r)) {
|
|
1025
1064
|
const u = !D.length;
|
|
1026
1065
|
for (const h of n)
|
|
1027
1066
|
h[1](), D.push(h, e);
|
|
@@ -1043,7 +1082,7 @@ function ye(e, t = B) {
|
|
|
1043
1082
|
}
|
|
1044
1083
|
return { set: i, update: o, subscribe: s };
|
|
1045
1084
|
}
|
|
1046
|
-
function
|
|
1085
|
+
function W(e, t, r) {
|
|
1047
1086
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1048
1087
|
if (!i.every(Boolean))
|
|
1049
1088
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1056,21 +1095,21 @@ function z(e, t, r) {
|
|
|
1056
1095
|
if (l)
|
|
1057
1096
|
return;
|
|
1058
1097
|
c();
|
|
1059
|
-
const
|
|
1060
|
-
o ? s(
|
|
1098
|
+
const y = t(n ? h[0] : h, s, a);
|
|
1099
|
+
o ? s(y) : c = Xe(y) ? y : B;
|
|
1061
1100
|
}, m = i.map(
|
|
1062
|
-
(
|
|
1063
|
-
|
|
1064
|
-
(
|
|
1065
|
-
h[
|
|
1101
|
+
(y, g) => At(
|
|
1102
|
+
y,
|
|
1103
|
+
(w) => {
|
|
1104
|
+
h[g] = w, l &= ~(1 << g), u && f();
|
|
1066
1105
|
},
|
|
1067
1106
|
() => {
|
|
1068
|
-
l |= 1 <<
|
|
1107
|
+
l |= 1 << g;
|
|
1069
1108
|
}
|
|
1070
1109
|
)
|
|
1071
1110
|
);
|
|
1072
1111
|
return u = !0, f(), function() {
|
|
1073
|
-
|
|
1112
|
+
re(m), c(), u = !1;
|
|
1074
1113
|
};
|
|
1075
1114
|
});
|
|
1076
1115
|
}
|
|
@@ -1094,29 +1133,29 @@ function ln(e) {
|
|
|
1094
1133
|
function cn(e) {
|
|
1095
1134
|
return Array.isArray(e) ? [] : {};
|
|
1096
1135
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1136
|
+
function ee(e, t) {
|
|
1137
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(cn(e), e, t) : e;
|
|
1099
1138
|
}
|
|
1100
1139
|
function fn(e, t, r) {
|
|
1101
1140
|
return e.concat(t).map(function(n) {
|
|
1102
|
-
return
|
|
1141
|
+
return ee(n, r);
|
|
1103
1142
|
});
|
|
1104
1143
|
}
|
|
1105
1144
|
function pn(e, t) {
|
|
1106
1145
|
if (!t.customMerge)
|
|
1107
|
-
return
|
|
1146
|
+
return k;
|
|
1108
1147
|
var r = t.customMerge(e);
|
|
1109
|
-
return typeof r == "function" ? r :
|
|
1148
|
+
return typeof r == "function" ? r : k;
|
|
1110
1149
|
}
|
|
1111
1150
|
function mn(e) {
|
|
1112
1151
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1113
1152
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1114
1153
|
}) : [];
|
|
1115
1154
|
}
|
|
1116
|
-
function
|
|
1155
|
+
function ft(e) {
|
|
1117
1156
|
return Object.keys(e).concat(mn(e));
|
|
1118
1157
|
}
|
|
1119
|
-
function
|
|
1158
|
+
function Dt(e, t) {
|
|
1120
1159
|
try {
|
|
1121
1160
|
return t in e;
|
|
1122
1161
|
} catch (r) {
|
|
@@ -1124,179 +1163,129 @@ function Gt(e, t) {
|
|
|
1124
1163
|
}
|
|
1125
1164
|
}
|
|
1126
1165
|
function dn(e, t) {
|
|
1127
|
-
return
|
|
1166
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1128
1167
|
}
|
|
1129
1168
|
function bn(e, t, r) {
|
|
1130
1169
|
var n = {};
|
|
1131
|
-
return r.isMergeableObject(e) &&
|
|
1132
|
-
n[i] =
|
|
1133
|
-
}),
|
|
1134
|
-
dn(e, i) || (
|
|
1170
|
+
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
1171
|
+
n[i] = ee(e[i], r);
|
|
1172
|
+
}), ft(t).forEach(function(i) {
|
|
1173
|
+
dn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1135
1174
|
}), n;
|
|
1136
1175
|
}
|
|
1137
|
-
function
|
|
1138
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified =
|
|
1176
|
+
function k(e, t, r) {
|
|
1177
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1139
1178
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1140
|
-
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) :
|
|
1179
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : ee(t, r);
|
|
1141
1180
|
}
|
|
1142
|
-
|
|
1181
|
+
k.all = function(t, r) {
|
|
1143
1182
|
if (!Array.isArray(t))
|
|
1144
1183
|
throw new Error("first argument should be an array");
|
|
1145
1184
|
return t.reduce(function(n, i) {
|
|
1146
|
-
return
|
|
1185
|
+
return k(n, i, r);
|
|
1147
1186
|
}, {});
|
|
1148
1187
|
};
|
|
1149
|
-
var gn =
|
|
1188
|
+
var gn = k, yn = gn;
|
|
1150
1189
|
const vn = /* @__PURE__ */ nn(yn);
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
r.__proto__ = n;
|
|
1154
|
-
} || function(r, n) {
|
|
1155
|
-
for (var i in n)
|
|
1156
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1157
|
-
}, Ge(e, t);
|
|
1158
|
-
};
|
|
1159
|
-
function ve(e, t) {
|
|
1160
|
-
if (typeof t != "function" && t !== null)
|
|
1161
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1162
|
-
Ge(e, t);
|
|
1163
|
-
function r() {
|
|
1164
|
-
this.constructor = e;
|
|
1165
|
-
}
|
|
1166
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1167
|
-
}
|
|
1168
|
-
var P = function() {
|
|
1169
|
-
return P = Object.assign || function(t) {
|
|
1170
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1171
|
-
r = arguments[n];
|
|
1172
|
-
for (var o in r)
|
|
1173
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1174
|
-
}
|
|
1175
|
-
return t;
|
|
1176
|
-
}, P.apply(this, arguments);
|
|
1177
|
-
};
|
|
1178
|
-
function En(e, t) {
|
|
1179
|
-
var r = {};
|
|
1180
|
-
for (var n in e)
|
|
1181
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1182
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1183
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1184
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1185
|
-
return r;
|
|
1186
|
-
}
|
|
1187
|
-
function Be(e, t, r) {
|
|
1188
|
-
if (r || arguments.length === 2)
|
|
1189
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1190
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1191
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1192
|
-
}
|
|
1193
|
-
function He(e, t) {
|
|
1194
|
-
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1190
|
+
function we(e, t) {
|
|
1191
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : xn;
|
|
1195
1192
|
return i(e, {
|
|
1196
1193
|
cache: r,
|
|
1197
1194
|
serializer: n
|
|
1198
1195
|
});
|
|
1199
1196
|
}
|
|
1200
|
-
function
|
|
1197
|
+
function En(e) {
|
|
1201
1198
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1202
1199
|
}
|
|
1203
|
-
function
|
|
1204
|
-
var i =
|
|
1200
|
+
function Ft(e, t, r, n) {
|
|
1201
|
+
var i = En(n) ? n : r(n), o = t.get(i);
|
|
1205
1202
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1206
1203
|
}
|
|
1207
|
-
function
|
|
1204
|
+
function Gt(e, t, r) {
|
|
1208
1205
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1209
1206
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1210
1207
|
}
|
|
1211
|
-
function
|
|
1208
|
+
function We(e, t, r, n, i) {
|
|
1212
1209
|
return r.bind(t, e, n, i);
|
|
1213
1210
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var r = e.length === 1 ?
|
|
1216
|
-
return
|
|
1211
|
+
function xn(e, t) {
|
|
1212
|
+
var r = e.length === 1 ? Ft : Gt;
|
|
1213
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1217
1214
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1215
|
+
function _n(e, t) {
|
|
1216
|
+
return We(e, this, Gt, t.cache.create(), t.serializer);
|
|
1217
|
+
}
|
|
1218
|
+
function Sn(e, t) {
|
|
1219
|
+
return We(e, this, Ft, t.cache.create(), t.serializer);
|
|
1220
1220
|
}
|
|
1221
1221
|
var Tn = function() {
|
|
1222
1222
|
return JSON.stringify(arguments);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}()
|
|
1235
|
-
), Hn = {
|
|
1223
|
+
};
|
|
1224
|
+
function Ze() {
|
|
1225
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1226
|
+
}
|
|
1227
|
+
Ze.prototype.get = function(e) {
|
|
1228
|
+
return this.cache[e];
|
|
1229
|
+
};
|
|
1230
|
+
Ze.prototype.set = function(e, t) {
|
|
1231
|
+
this.cache[e] = t;
|
|
1232
|
+
};
|
|
1233
|
+
var wn = {
|
|
1236
1234
|
create: function() {
|
|
1237
|
-
return new
|
|
1235
|
+
return new Ze();
|
|
1238
1236
|
}
|
|
1239
|
-
},
|
|
1240
|
-
variadic:
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1244
|
-
r = arguments[n];
|
|
1245
|
-
for (var o in r)
|
|
1246
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1247
|
-
}
|
|
1248
|
-
return t;
|
|
1249
|
-
}, me.apply(this, arguments);
|
|
1250
|
-
};
|
|
1251
|
-
var p;
|
|
1237
|
+
}, Be = {
|
|
1238
|
+
variadic: _n,
|
|
1239
|
+
monadic: Sn
|
|
1240
|
+
}, p;
|
|
1252
1241
|
(function(e) {
|
|
1253
1242
|
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";
|
|
1254
1243
|
})(p || (p = {}));
|
|
1255
|
-
var
|
|
1244
|
+
var E;
|
|
1256
1245
|
(function(e) {
|
|
1257
1246
|
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";
|
|
1258
|
-
})(
|
|
1259
|
-
var
|
|
1247
|
+
})(E || (E = {}));
|
|
1248
|
+
var V;
|
|
1260
1249
|
(function(e) {
|
|
1261
1250
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1262
|
-
})(
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1251
|
+
})(V || (V = {}));
|
|
1252
|
+
function pt(e) {
|
|
1253
|
+
return e.type === E.literal;
|
|
1265
1254
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.type ===
|
|
1255
|
+
function Bn(e) {
|
|
1256
|
+
return e.type === E.argument;
|
|
1257
|
+
}
|
|
1258
|
+
function jt(e) {
|
|
1259
|
+
return e.type === E.number;
|
|
1268
1260
|
}
|
|
1269
1261
|
function kt(e) {
|
|
1270
|
-
return e.type ===
|
|
1262
|
+
return e.type === E.date;
|
|
1271
1263
|
}
|
|
1272
1264
|
function Vt(e) {
|
|
1273
|
-
return e.type ===
|
|
1265
|
+
return e.type === E.time;
|
|
1274
1266
|
}
|
|
1275
1267
|
function Xt(e) {
|
|
1276
|
-
return e.type ===
|
|
1268
|
+
return e.type === E.select;
|
|
1277
1269
|
}
|
|
1278
1270
|
function zt(e) {
|
|
1279
|
-
return e.type ===
|
|
1271
|
+
return e.type === E.plural;
|
|
1280
1272
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return e.type ===
|
|
1273
|
+
function Hn(e) {
|
|
1274
|
+
return e.type === E.pound;
|
|
1283
1275
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return e.type ===
|
|
1276
|
+
function Wt(e) {
|
|
1277
|
+
return e.type === E.tag;
|
|
1286
1278
|
}
|
|
1287
1279
|
function Zt(e) {
|
|
1288
|
-
return e.type ===
|
|
1289
|
-
}
|
|
1290
|
-
function Qt(e) {
|
|
1291
|
-
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1280
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1292
1281
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1282
|
+
function $e(e) {
|
|
1283
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1295
1284
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1285
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
1286
|
+
function An(e) {
|
|
1298
1287
|
var t = {};
|
|
1299
|
-
return e.replace(
|
|
1288
|
+
return e.replace(Pn, function(r) {
|
|
1300
1289
|
var n = r.length;
|
|
1301
1290
|
switch (r[0]) {
|
|
1302
1291
|
case "G":
|
|
@@ -1385,21 +1374,11 @@ function In(e) {
|
|
|
1385
1374
|
return "";
|
|
1386
1375
|
}), t;
|
|
1387
1376
|
}
|
|
1388
|
-
var
|
|
1389
|
-
|
|
1390
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1391
|
-
r = arguments[n];
|
|
1392
|
-
for (var o in r)
|
|
1393
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1394
|
-
}
|
|
1395
|
-
return t;
|
|
1396
|
-
}, E.apply(this, arguments);
|
|
1397
|
-
};
|
|
1398
|
-
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1399
|
-
function Ln(e) {
|
|
1377
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1378
|
+
function In(e) {
|
|
1400
1379
|
if (e.length === 0)
|
|
1401
1380
|
throw new Error("Number skeleton cannot be empty");
|
|
1402
|
-
for (var t = e.split(
|
|
1381
|
+
for (var t = e.split(On).filter(function(f) {
|
|
1403
1382
|
return f.length > 0;
|
|
1404
1383
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1405
1384
|
var o = i[n], s = o.split("/");
|
|
@@ -1414,17 +1393,17 @@ function Ln(e) {
|
|
|
1414
1393
|
}
|
|
1415
1394
|
return r;
|
|
1416
1395
|
}
|
|
1417
|
-
function
|
|
1396
|
+
function Ln(e) {
|
|
1418
1397
|
return e.replace(/^(.*?)-/, "");
|
|
1419
1398
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1399
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1400
|
+
function dt(e) {
|
|
1422
1401
|
var t = {};
|
|
1423
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1402
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1424
1403
|
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)), "";
|
|
1425
1404
|
}), t;
|
|
1426
1405
|
}
|
|
1427
|
-
function
|
|
1406
|
+
function qt(e) {
|
|
1428
1407
|
switch (e) {
|
|
1429
1408
|
case "sign-auto":
|
|
1430
1409
|
return {
|
|
@@ -1464,7 +1443,7 @@ function Kt(e) {
|
|
|
1464
1443
|
};
|
|
1465
1444
|
}
|
|
1466
1445
|
}
|
|
1467
|
-
function
|
|
1446
|
+
function Cn(e) {
|
|
1468
1447
|
var t;
|
|
1469
1448
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1470
1449
|
notation: "engineering"
|
|
@@ -1472,17 +1451,17 @@ function $n(e) {
|
|
|
1472
1451
|
notation: "scientific"
|
|
1473
1452
|
}, e = e.slice(1)), t) {
|
|
1474
1453
|
var r = e.slice(0, 2);
|
|
1475
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1454
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1476
1455
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1477
1456
|
t.minimumIntegerDigits = e.length;
|
|
1478
1457
|
}
|
|
1479
1458
|
return t;
|
|
1480
1459
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = {}, r =
|
|
1460
|
+
function bt(e) {
|
|
1461
|
+
var t = {}, r = qt(e);
|
|
1483
1462
|
return r || t;
|
|
1484
1463
|
}
|
|
1485
|
-
function
|
|
1464
|
+
function Mn(e) {
|
|
1486
1465
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1487
1466
|
var i = n[r];
|
|
1488
1467
|
switch (i.stem) {
|
|
@@ -1506,7 +1485,7 @@ function Rn(e) {
|
|
|
1506
1485
|
continue;
|
|
1507
1486
|
case "measure-unit":
|
|
1508
1487
|
case "unit":
|
|
1509
|
-
t.style = "unit", t.unit =
|
|
1488
|
+
t.style = "unit", t.unit = Ln(i.options[0]);
|
|
1510
1489
|
continue;
|
|
1511
1490
|
case "compact-short":
|
|
1512
1491
|
case "K":
|
|
@@ -1517,13 +1496,13 @@ function Rn(e) {
|
|
|
1517
1496
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1518
1497
|
continue;
|
|
1519
1498
|
case "scientific":
|
|
1520
|
-
t =
|
|
1521
|
-
return
|
|
1499
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
|
1500
|
+
return b(b({}, u), bt(h));
|
|
1522
1501
|
}, {}));
|
|
1523
1502
|
continue;
|
|
1524
1503
|
case "engineering":
|
|
1525
|
-
t =
|
|
1526
|
-
return
|
|
1504
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
|
1505
|
+
return b(b({}, u), bt(h));
|
|
1527
1506
|
}, {}));
|
|
1528
1507
|
continue;
|
|
1529
1508
|
case "notation-simple":
|
|
@@ -1568,7 +1547,7 @@ function Rn(e) {
|
|
|
1568
1547
|
case "integer-width":
|
|
1569
1548
|
if (i.options.length > 1)
|
|
1570
1549
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1571
|
-
i.options[0].replace(
|
|
1550
|
+
i.options[0].replace(Nn, function(u, h, l, c, f, m) {
|
|
1572
1551
|
if (h)
|
|
1573
1552
|
t.minimumIntegerDigits = l.length;
|
|
1574
1553
|
else {
|
|
@@ -1581,28 +1560,28 @@ function Rn(e) {
|
|
|
1581
1560
|
});
|
|
1582
1561
|
continue;
|
|
1583
1562
|
}
|
|
1584
|
-
if (
|
|
1563
|
+
if (Yt.test(i.stem)) {
|
|
1585
1564
|
t.minimumIntegerDigits = i.stem.length;
|
|
1586
1565
|
continue;
|
|
1587
1566
|
}
|
|
1588
|
-
if (
|
|
1567
|
+
if (mt.test(i.stem)) {
|
|
1589
1568
|
if (i.options.length > 1)
|
|
1590
1569
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1591
|
-
i.stem.replace(
|
|
1570
|
+
i.stem.replace(mt, function(u, h, l, c, f, m) {
|
|
1592
1571
|
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), "";
|
|
1593
1572
|
});
|
|
1594
1573
|
var o = i.options[0];
|
|
1595
|
-
o === "w" ? t =
|
|
1574
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), dt(o)));
|
|
1596
1575
|
continue;
|
|
1597
1576
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
t =
|
|
1577
|
+
if (Jt.test(i.stem)) {
|
|
1578
|
+
t = b(b({}, t), dt(i.stem));
|
|
1600
1579
|
continue;
|
|
1601
1580
|
}
|
|
1602
|
-
var s =
|
|
1603
|
-
s && (t =
|
|
1604
|
-
var a =
|
|
1605
|
-
a && (t =
|
|
1581
|
+
var s = qt(i.stem);
|
|
1582
|
+
s && (t = b(b({}, t), s));
|
|
1583
|
+
var a = Cn(i.stem);
|
|
1584
|
+
a && (t = b(b({}, t), a));
|
|
1606
1585
|
}
|
|
1607
1586
|
return t;
|
|
1608
1587
|
}
|
|
@@ -3021,13 +3000,13 @@ var se = {
|
|
|
3021
3000
|
"h"
|
|
3022
3001
|
]
|
|
3023
3002
|
};
|
|
3024
|
-
function
|
|
3003
|
+
function Rn(e, t) {
|
|
3025
3004
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3026
3005
|
var i = e.charAt(n);
|
|
3027
3006
|
if (i === "j") {
|
|
3028
3007
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3029
3008
|
o++, n++;
|
|
3030
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h =
|
|
3009
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = $n(t);
|
|
3031
3010
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
|
3032
3011
|
r += u;
|
|
3033
3012
|
for (; s-- > 0; )
|
|
@@ -3037,7 +3016,7 @@ function Un(e, t) {
|
|
|
3037
3016
|
}
|
|
3038
3017
|
return r;
|
|
3039
3018
|
}
|
|
3040
|
-
function
|
|
3019
|
+
function $n(e) {
|
|
3041
3020
|
var t = e.hourCycle;
|
|
3042
3021
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3043
3022
|
e.hourCycles && // @ts-ignore
|
|
@@ -3059,20 +3038,20 @@ function Dn(e) {
|
|
|
3059
3038
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3060
3039
|
return i[0];
|
|
3061
3040
|
}
|
|
3062
|
-
var
|
|
3041
|
+
var He, Un = new RegExp("^".concat(Qt.source, "*")), Dn = new RegExp("".concat(Qt.source, "*$"));
|
|
3063
3042
|
function d(e, t) {
|
|
3064
3043
|
return { start: e, end: t };
|
|
3065
3044
|
}
|
|
3066
|
-
var
|
|
3045
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
3067
3046
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3068
|
-
},
|
|
3047
|
+
}, Ue = !0;
|
|
3069
3048
|
try {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3049
|
+
var Zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3050
|
+
Ue = ((He = Zn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3072
3051
|
} catch (e) {
|
|
3073
|
-
|
|
3052
|
+
Ue = !1;
|
|
3074
3053
|
}
|
|
3075
|
-
var
|
|
3054
|
+
var gt = Fn ? (
|
|
3076
3055
|
// Native
|
|
3077
3056
|
function(t, r, n) {
|
|
3078
3057
|
return t.startsWith(r, n);
|
|
@@ -3082,7 +3061,7 @@ var vt = jn ? (
|
|
|
3082
3061
|
function(t, r, n) {
|
|
3083
3062
|
return t.slice(n, n + r.length) === r;
|
|
3084
3063
|
}
|
|
3085
|
-
),
|
|
3064
|
+
), De = Gn ? String.fromCodePoint : (
|
|
3086
3065
|
// IE11
|
|
3087
3066
|
function() {
|
|
3088
3067
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3094,9 +3073,9 @@ var vt = jn ? (
|
|
|
3094
3073
|
}
|
|
3095
3074
|
return n;
|
|
3096
3075
|
}
|
|
3097
|
-
),
|
|
3076
|
+
), yt = (
|
|
3098
3077
|
// native
|
|
3099
|
-
|
|
3078
|
+
jn ? Object.fromEntries : (
|
|
3100
3079
|
// Ponyfill
|
|
3101
3080
|
function(t) {
|
|
3102
3081
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3106,7 +3085,7 @@ var vt = jn ? (
|
|
|
3106
3085
|
return r;
|
|
3107
3086
|
}
|
|
3108
3087
|
)
|
|
3109
|
-
),
|
|
3088
|
+
), Kt = kn ? (
|
|
3110
3089
|
// Native
|
|
3111
3090
|
function(t, r) {
|
|
3112
3091
|
return t.codePointAt(r);
|
|
@@ -3120,7 +3099,7 @@ var vt = jn ? (
|
|
|
3120
3099
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3121
3100
|
}
|
|
3122
3101
|
}
|
|
3123
|
-
),
|
|
3102
|
+
), Qn = Vn ? (
|
|
3124
3103
|
// Native
|
|
3125
3104
|
function(t) {
|
|
3126
3105
|
return t.trimStart();
|
|
@@ -3128,9 +3107,9 @@ var vt = jn ? (
|
|
|
3128
3107
|
) : (
|
|
3129
3108
|
// Ponyfill
|
|
3130
3109
|
function(t) {
|
|
3131
|
-
return t.replace(
|
|
3110
|
+
return t.replace(Un, "");
|
|
3132
3111
|
}
|
|
3133
|
-
),
|
|
3112
|
+
), Jn = Xn ? (
|
|
3134
3113
|
// Native
|
|
3135
3114
|
function(t) {
|
|
3136
3115
|
return t.trimEnd();
|
|
@@ -3138,32 +3117,32 @@ var vt = jn ? (
|
|
|
3138
3117
|
) : (
|
|
3139
3118
|
// Ponyfill
|
|
3140
3119
|
function(t) {
|
|
3141
|
-
return t.replace(
|
|
3120
|
+
return t.replace(Dn, "");
|
|
3142
3121
|
}
|
|
3143
3122
|
);
|
|
3144
|
-
function
|
|
3123
|
+
function er(e, t) {
|
|
3145
3124
|
return new RegExp(e, t);
|
|
3146
3125
|
}
|
|
3147
|
-
var
|
|
3148
|
-
if (
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3126
|
+
var Fe;
|
|
3127
|
+
if (Ue) {
|
|
3128
|
+
var vt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3129
|
+
Fe = function(t, r) {
|
|
3151
3130
|
var n;
|
|
3152
|
-
|
|
3153
|
-
var i =
|
|
3131
|
+
vt.lastIndex = r;
|
|
3132
|
+
var i = vt.exec(t);
|
|
3154
3133
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3155
3134
|
};
|
|
3156
3135
|
} else
|
|
3157
|
-
|
|
3136
|
+
Fe = function(t, r) {
|
|
3158
3137
|
for (var n = []; ; ) {
|
|
3159
|
-
var i =
|
|
3160
|
-
if (i === void 0 ||
|
|
3138
|
+
var i = Kt(t, r);
|
|
3139
|
+
if (i === void 0 || tr(i) || ei(i))
|
|
3161
3140
|
break;
|
|
3162
3141
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3163
3142
|
}
|
|
3164
|
-
return
|
|
3143
|
+
return De.apply(void 0, n);
|
|
3165
3144
|
};
|
|
3166
|
-
var
|
|
3145
|
+
var Yn = (
|
|
3167
3146
|
/** @class */
|
|
3168
3147
|
function() {
|
|
3169
3148
|
function e(t, r) {
|
|
@@ -3187,14 +3166,14 @@ var Kn = (
|
|
|
3187
3166
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3188
3167
|
var a = this.clonePosition();
|
|
3189
3168
|
this.bump(), i.push({
|
|
3190
|
-
type:
|
|
3169
|
+
type: E.pound,
|
|
3191
3170
|
location: d(a, this.clonePosition())
|
|
3192
3171
|
});
|
|
3193
3172
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3194
3173
|
if (n)
|
|
3195
3174
|
break;
|
|
3196
3175
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3197
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3176
|
+
} else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
3198
3177
|
var s = this.parseTag(t, r);
|
|
3199
3178
|
if (s.err)
|
|
3200
3179
|
return s;
|
|
@@ -3215,7 +3194,7 @@ var Kn = (
|
|
|
3215
3194
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3216
3195
|
return {
|
|
3217
3196
|
val: {
|
|
3218
|
-
type:
|
|
3197
|
+
type: E.literal,
|
|
3219
3198
|
value: "<".concat(i, "/>"),
|
|
3220
3199
|
location: d(n, this.clonePosition())
|
|
3221
3200
|
},
|
|
@@ -3227,12 +3206,12 @@ var Kn = (
|
|
|
3227
3206
|
return o;
|
|
3228
3207
|
var s = o.val, a = this.clonePosition();
|
|
3229
3208
|
if (this.bumpIf("</")) {
|
|
3230
|
-
if (this.isEOF() || !
|
|
3209
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
3231
3210
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3232
3211
|
var u = this.clonePosition(), h = this.parseTagName();
|
|
3233
3212
|
return i !== h ? this.error(p.UNMATCHED_CLOSING_TAG, d(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3234
3213
|
val: {
|
|
3235
|
-
type:
|
|
3214
|
+
type: E.tag,
|
|
3236
3215
|
value: i,
|
|
3237
3216
|
children: s,
|
|
3238
3217
|
location: d(n, this.clonePosition())
|
|
@@ -3245,7 +3224,7 @@ var Kn = (
|
|
|
3245
3224
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3246
3225
|
}, e.prototype.parseTagName = function() {
|
|
3247
3226
|
var t = this.offset();
|
|
3248
|
-
for (this.bump(); !this.isEOF() &&
|
|
3227
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3249
3228
|
this.bump();
|
|
3250
3229
|
return this.message.slice(t, this.offset());
|
|
3251
3230
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3269,12 +3248,12 @@ var Kn = (
|
|
|
3269
3248
|
}
|
|
3270
3249
|
var u = d(n, this.clonePosition());
|
|
3271
3250
|
return {
|
|
3272
|
-
val: { type:
|
|
3251
|
+
val: { type: E.literal, value: i, location: u },
|
|
3273
3252
|
err: null
|
|
3274
3253
|
};
|
|
3275
3254
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3276
3255
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3277
|
-
!
|
|
3256
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3278
3257
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3279
3258
|
if (this.isEOF() || this.char() !== 39)
|
|
3280
3259
|
return null;
|
|
@@ -3308,12 +3287,12 @@ var Kn = (
|
|
|
3308
3287
|
r.push(n);
|
|
3309
3288
|
this.bump();
|
|
3310
3289
|
}
|
|
3311
|
-
return
|
|
3290
|
+
return De.apply(void 0, r);
|
|
3312
3291
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3313
3292
|
if (this.isEOF())
|
|
3314
3293
|
return null;
|
|
3315
3294
|
var n = this.char();
|
|
3316
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3295
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3317
3296
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3318
3297
|
var n = this.clonePosition();
|
|
3319
3298
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3329,7 +3308,7 @@ var Kn = (
|
|
|
3329
3308
|
case 125:
|
|
3330
3309
|
return this.bump(), {
|
|
3331
3310
|
val: {
|
|
3332
|
-
type:
|
|
3311
|
+
type: E.argument,
|
|
3333
3312
|
// value does not include the opening and closing braces.
|
|
3334
3313
|
value: i,
|
|
3335
3314
|
location: d(n, this.clonePosition())
|
|
@@ -3342,7 +3321,7 @@ var Kn = (
|
|
|
3342
3321
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3343
3322
|
}
|
|
3344
3323
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3345
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3324
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3346
3325
|
this.bumpTo(i);
|
|
3347
3326
|
var o = this.clonePosition(), s = d(t, o);
|
|
3348
3327
|
return { value: n, location: s };
|
|
@@ -3361,46 +3340,46 @@ var Kn = (
|
|
|
3361
3340
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3362
3341
|
if (c.err)
|
|
3363
3342
|
return c;
|
|
3364
|
-
var f =
|
|
3343
|
+
var f = Jn(c.val);
|
|
3365
3344
|
if (f.length === 0)
|
|
3366
3345
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3367
3346
|
var m = d(l, this.clonePosition());
|
|
3368
3347
|
h = { style: f, styleLocation: m };
|
|
3369
3348
|
}
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3373
|
-
var
|
|
3374
|
-
if (h &&
|
|
3375
|
-
var
|
|
3349
|
+
var y = this.tryParseArgumentClose(i);
|
|
3350
|
+
if (y.err)
|
|
3351
|
+
return y;
|
|
3352
|
+
var g = d(i, this.clonePosition());
|
|
3353
|
+
if (h && gt(h == null ? void 0 : h.style, "::", 0)) {
|
|
3354
|
+
var w = Qn(h.style.slice(2));
|
|
3376
3355
|
if (a === "number") {
|
|
3377
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3356
|
+
var c = this.parseNumberSkeletonFromString(w, h.styleLocation);
|
|
3378
3357
|
return c.err ? c : {
|
|
3379
|
-
val: { type:
|
|
3358
|
+
val: { type: E.number, value: n, location: g, style: c.val },
|
|
3380
3359
|
err: null
|
|
3381
3360
|
};
|
|
3382
3361
|
} else {
|
|
3383
|
-
if (
|
|
3384
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3385
|
-
var
|
|
3386
|
-
this.locale && (
|
|
3362
|
+
if (w.length === 0)
|
|
3363
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3364
|
+
var N = w;
|
|
3365
|
+
this.locale && (N = Rn(w, this.locale));
|
|
3387
3366
|
var f = {
|
|
3388
|
-
type:
|
|
3389
|
-
pattern:
|
|
3367
|
+
type: V.dateTime,
|
|
3368
|
+
pattern: N,
|
|
3390
3369
|
location: h.styleLocation,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
-
}, I = a === "date" ?
|
|
3370
|
+
parsedOptions: this.shouldParseSkeletons ? An(N) : {}
|
|
3371
|
+
}, I = a === "date" ? E.date : E.time;
|
|
3393
3372
|
return {
|
|
3394
|
-
val: { type: I, value: n, location:
|
|
3373
|
+
val: { type: I, value: n, location: g, style: f },
|
|
3395
3374
|
err: null
|
|
3396
3375
|
};
|
|
3397
3376
|
}
|
|
3398
3377
|
}
|
|
3399
3378
|
return {
|
|
3400
3379
|
val: {
|
|
3401
|
-
type: a === "number" ?
|
|
3380
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3402
3381
|
value: n,
|
|
3403
|
-
location:
|
|
3382
|
+
location: g,
|
|
3404
3383
|
style: (o = h == null ? void 0 : h.style) !== null && o !== void 0 ? o : null
|
|
3405
3384
|
},
|
|
3406
3385
|
err: null
|
|
@@ -3409,9 +3388,9 @@ var Kn = (
|
|
|
3409
3388
|
case "plural":
|
|
3410
3389
|
case "selectordinal":
|
|
3411
3390
|
case "select": {
|
|
3412
|
-
var
|
|
3391
|
+
var _ = this.clonePosition();
|
|
3413
3392
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3414
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3393
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(_, b({}, _)));
|
|
3415
3394
|
this.bumpSpace();
|
|
3416
3395
|
var H = this.parseIdentifierIfPossible(), S = 0;
|
|
3417
3396
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3423,26 +3402,26 @@ var Kn = (
|
|
|
3423
3402
|
return c;
|
|
3424
3403
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), S = c.val;
|
|
3425
3404
|
}
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3429
|
-
var
|
|
3430
|
-
if (
|
|
3431
|
-
return
|
|
3405
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3406
|
+
if (R.err)
|
|
3407
|
+
return R;
|
|
3408
|
+
var y = this.tryParseArgumentClose(i);
|
|
3409
|
+
if (y.err)
|
|
3410
|
+
return y;
|
|
3432
3411
|
var ie = d(i, this.clonePosition());
|
|
3433
3412
|
return a === "select" ? {
|
|
3434
3413
|
val: {
|
|
3435
|
-
type:
|
|
3414
|
+
type: E.select,
|
|
3436
3415
|
value: n,
|
|
3437
|
-
options:
|
|
3416
|
+
options: yt(R.val),
|
|
3438
3417
|
location: ie
|
|
3439
3418
|
},
|
|
3440
3419
|
err: null
|
|
3441
3420
|
} : {
|
|
3442
3421
|
val: {
|
|
3443
|
-
type:
|
|
3422
|
+
type: E.plural,
|
|
3444
3423
|
value: n,
|
|
3445
|
-
options:
|
|
3424
|
+
options: yt(R.val),
|
|
3446
3425
|
offset: S,
|
|
3447
3426
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3448
3427
|
location: ie
|
|
@@ -3493,16 +3472,16 @@ var Kn = (
|
|
|
3493
3472
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3494
3473
|
var n = [];
|
|
3495
3474
|
try {
|
|
3496
|
-
n =
|
|
3475
|
+
n = In(t);
|
|
3497
3476
|
} catch (i) {
|
|
3498
3477
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3499
3478
|
}
|
|
3500
3479
|
return {
|
|
3501
3480
|
val: {
|
|
3502
|
-
type:
|
|
3481
|
+
type: V.number,
|
|
3503
3482
|
tokens: n,
|
|
3504
3483
|
location: r,
|
|
3505
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3484
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3506
3485
|
},
|
|
3507
3486
|
err: null
|
|
3508
3487
|
};
|
|
@@ -3524,16 +3503,16 @@ var Kn = (
|
|
|
3524
3503
|
var m = this.clonePosition();
|
|
3525
3504
|
if (!this.bumpIf("{"))
|
|
3526
3505
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3527
|
-
var
|
|
3506
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3507
|
+
if (y.err)
|
|
3508
|
+
return y;
|
|
3509
|
+
var g = this.tryParseArgumentClose(m);
|
|
3528
3510
|
if (g.err)
|
|
3529
3511
|
return g;
|
|
3530
|
-
var b = this.tryParseArgumentClose(m);
|
|
3531
|
-
if (b.err)
|
|
3532
|
-
return b;
|
|
3533
3512
|
a.push([
|
|
3534
3513
|
h,
|
|
3535
3514
|
{
|
|
3536
|
-
value:
|
|
3515
|
+
value: y.val,
|
|
3537
3516
|
location: d(m, this.clonePosition())
|
|
3538
3517
|
}
|
|
3539
3518
|
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
|
@@ -3550,7 +3529,7 @@ var Kn = (
|
|
|
3550
3529
|
break;
|
|
3551
3530
|
}
|
|
3552
3531
|
var u = d(i, this.clonePosition());
|
|
3553
|
-
return o ? (s *= n,
|
|
3532
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3554
3533
|
}, e.prototype.offset = function() {
|
|
3555
3534
|
return this.position.offset;
|
|
3556
3535
|
}, e.prototype.isEOF = function() {
|
|
@@ -3565,7 +3544,7 @@ var Kn = (
|
|
|
3565
3544
|
var t = this.position.offset;
|
|
3566
3545
|
if (t >= this.message.length)
|
|
3567
3546
|
throw Error("out of bound");
|
|
3568
|
-
var r =
|
|
3547
|
+
var r = Kt(this.message, t);
|
|
3569
3548
|
if (r === void 0)
|
|
3570
3549
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3571
3550
|
return r;
|
|
@@ -3584,7 +3563,7 @@ var Kn = (
|
|
|
3584
3563
|
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);
|
|
3585
3564
|
}
|
|
3586
3565
|
}, e.prototype.bumpIf = function(t) {
|
|
3587
|
-
if (
|
|
3566
|
+
if (gt(this.message, t, this.offset())) {
|
|
3588
3567
|
for (var r = 0; r < t.length; r++)
|
|
3589
3568
|
this.bump();
|
|
3590
3569
|
return !0;
|
|
@@ -3606,7 +3585,7 @@ var Kn = (
|
|
|
3606
3585
|
break;
|
|
3607
3586
|
}
|
|
3608
3587
|
}, e.prototype.bumpSpace = function() {
|
|
3609
|
-
for (; !this.isEOF() &&
|
|
3588
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3610
3589
|
this.bump();
|
|
3611
3590
|
}, e.prototype.peek = function() {
|
|
3612
3591
|
if (this.isEOF())
|
|
@@ -3616,47 +3595,47 @@ var Kn = (
|
|
|
3616
3595
|
}, e;
|
|
3617
3596
|
}()
|
|
3618
3597
|
);
|
|
3619
|
-
function
|
|
3598
|
+
function Ge(e) {
|
|
3620
3599
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3621
3600
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3601
|
+
function qn(e) {
|
|
3602
|
+
return Ge(e) || e === 47;
|
|
3624
3603
|
}
|
|
3625
|
-
function
|
|
3604
|
+
function Kn(e) {
|
|
3626
3605
|
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;
|
|
3627
3606
|
}
|
|
3628
|
-
function
|
|
3607
|
+
function tr(e) {
|
|
3629
3608
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3630
3609
|
}
|
|
3631
|
-
function
|
|
3610
|
+
function ei(e) {
|
|
3632
3611
|
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;
|
|
3633
3612
|
}
|
|
3634
|
-
function
|
|
3613
|
+
function je(e) {
|
|
3635
3614
|
e.forEach(function(t) {
|
|
3636
|
-
if (delete t.location,
|
|
3615
|
+
if (delete t.location, Xt(t) || zt(t))
|
|
3637
3616
|
for (var r in t.options)
|
|
3638
|
-
delete t.options[r].location,
|
|
3617
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3639
3618
|
else
|
|
3640
|
-
|
|
3619
|
+
jt(t) && Zt(t.style) || (kt(t) || Vt(t)) && $e(t.style) ? delete t.style.location : Wt(t) && je(t.children);
|
|
3641
3620
|
});
|
|
3642
3621
|
}
|
|
3643
|
-
function
|
|
3644
|
-
t === void 0 && (t = {}), t =
|
|
3645
|
-
var r = new
|
|
3622
|
+
function ti(e, t) {
|
|
3623
|
+
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3624
|
+
var r = new Yn(e, t).parse();
|
|
3646
3625
|
if (r.err) {
|
|
3647
3626
|
var n = SyntaxError(p[r.err.kind]);
|
|
3648
3627
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3649
3628
|
}
|
|
3650
|
-
return t != null && t.captureLocation ||
|
|
3629
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3651
3630
|
}
|
|
3652
|
-
var
|
|
3631
|
+
var X;
|
|
3653
3632
|
(function(e) {
|
|
3654
3633
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3655
|
-
})(
|
|
3656
|
-
var
|
|
3634
|
+
})(X || (X = {}));
|
|
3635
|
+
var ye = (
|
|
3657
3636
|
/** @class */
|
|
3658
3637
|
function(e) {
|
|
3659
|
-
|
|
3638
|
+
O(t, e);
|
|
3660
3639
|
function t(r, n, i) {
|
|
3661
3640
|
var o = e.call(this, r) || this;
|
|
3662
3641
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3665,155 +3644,155 @@ var Ee = (
|
|
|
3665
3644
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3645
|
}, t;
|
|
3667
3646
|
}(Error)
|
|
3668
|
-
),
|
|
3647
|
+
), Et = (
|
|
3669
3648
|
/** @class */
|
|
3670
3649
|
function(e) {
|
|
3671
|
-
|
|
3650
|
+
O(t, e);
|
|
3672
3651
|
function t(r, n, i, o) {
|
|
3673
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3652
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3674
3653
|
}
|
|
3675
3654
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3655
|
+
}(ye)
|
|
3656
|
+
), ri = (
|
|
3678
3657
|
/** @class */
|
|
3679
3658
|
function(e) {
|
|
3680
|
-
|
|
3659
|
+
O(t, e);
|
|
3681
3660
|
function t(r, n, i) {
|
|
3682
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3661
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3683
3662
|
}
|
|
3684
3663
|
return t;
|
|
3685
|
-
}(
|
|
3686
|
-
),
|
|
3664
|
+
}(ye)
|
|
3665
|
+
), ni = (
|
|
3687
3666
|
/** @class */
|
|
3688
3667
|
function(e) {
|
|
3689
|
-
|
|
3668
|
+
O(t, e);
|
|
3690
3669
|
function t(r, n) {
|
|
3691
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3670
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3692
3671
|
}
|
|
3693
3672
|
return t;
|
|
3694
|
-
}(
|
|
3695
|
-
),
|
|
3673
|
+
}(ye)
|
|
3674
|
+
), x;
|
|
3696
3675
|
(function(e) {
|
|
3697
3676
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
|
-
})(
|
|
3699
|
-
function
|
|
3677
|
+
})(x || (x = {}));
|
|
3678
|
+
function ii(e) {
|
|
3700
3679
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3680
|
var n = t[t.length - 1];
|
|
3702
|
-
return !n || n.type !==
|
|
3681
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3682
|
}, []);
|
|
3704
3683
|
}
|
|
3705
|
-
function
|
|
3684
|
+
function oi(e) {
|
|
3706
3685
|
return typeof e == "function";
|
|
3707
3686
|
}
|
|
3708
3687
|
function ce(e, t, r, n, i, o, s) {
|
|
3709
|
-
if (e.length === 1 &&
|
|
3688
|
+
if (e.length === 1 && pt(e[0]))
|
|
3710
3689
|
return [
|
|
3711
3690
|
{
|
|
3712
|
-
type:
|
|
3691
|
+
type: x.literal,
|
|
3713
3692
|
value: e[0].value
|
|
3714
3693
|
}
|
|
3715
3694
|
];
|
|
3716
3695
|
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
|
3717
3696
|
var l = h[u];
|
|
3718
|
-
if (
|
|
3697
|
+
if (pt(l)) {
|
|
3719
3698
|
a.push({
|
|
3720
|
-
type:
|
|
3699
|
+
type: x.literal,
|
|
3721
3700
|
value: l.value
|
|
3722
3701
|
});
|
|
3723
3702
|
continue;
|
|
3724
3703
|
}
|
|
3725
|
-
if (
|
|
3704
|
+
if (Hn(l)) {
|
|
3726
3705
|
typeof o == "number" && a.push({
|
|
3727
|
-
type:
|
|
3706
|
+
type: x.literal,
|
|
3728
3707
|
value: r.getNumberFormat(t).format(o)
|
|
3729
3708
|
});
|
|
3730
3709
|
continue;
|
|
3731
3710
|
}
|
|
3732
3711
|
var c = l.value;
|
|
3733
3712
|
if (!(i && c in i))
|
|
3734
|
-
throw new
|
|
3713
|
+
throw new ni(c, s);
|
|
3735
3714
|
var f = i[c];
|
|
3736
|
-
if (
|
|
3715
|
+
if (Bn(l)) {
|
|
3737
3716
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3738
|
-
type: typeof f == "string" ?
|
|
3717
|
+
type: typeof f == "string" ? x.literal : x.object,
|
|
3739
3718
|
value: f
|
|
3740
3719
|
});
|
|
3741
3720
|
continue;
|
|
3742
3721
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var m = typeof l.style == "string" ? n.date[l.style] :
|
|
3722
|
+
if (kt(l)) {
|
|
3723
|
+
var m = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3745
3724
|
a.push({
|
|
3746
|
-
type:
|
|
3725
|
+
type: x.literal,
|
|
3747
3726
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3748
3727
|
});
|
|
3749
3728
|
continue;
|
|
3750
3729
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var m = typeof l.style == "string" ? n.time[l.style] :
|
|
3730
|
+
if (Vt(l)) {
|
|
3731
|
+
var m = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3753
3732
|
a.push({
|
|
3754
|
-
type:
|
|
3733
|
+
type: x.literal,
|
|
3755
3734
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3756
3735
|
});
|
|
3757
3736
|
continue;
|
|
3758
3737
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var m = typeof l.style == "string" ? n.number[l.style] :
|
|
3738
|
+
if (jt(l)) {
|
|
3739
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3761
3740
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3762
|
-
type:
|
|
3741
|
+
type: x.literal,
|
|
3763
3742
|
value: r.getNumberFormat(t, m).format(f)
|
|
3764
3743
|
});
|
|
3765
3744
|
continue;
|
|
3766
3745
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var
|
|
3746
|
+
if (Wt(l)) {
|
|
3747
|
+
var y = l.children, g = l.value, w = i[g];
|
|
3748
|
+
if (!oi(w))
|
|
3749
|
+
throw new ri(g, "function", s);
|
|
3750
|
+
var N = ce(y, t, r, n, i, o), I = w(N.map(function(S) {
|
|
3772
3751
|
return S.value;
|
|
3773
3752
|
}));
|
|
3774
3753
|
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(S) {
|
|
3775
3754
|
return {
|
|
3776
|
-
type: typeof S == "string" ?
|
|
3755
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3777
3756
|
value: S
|
|
3778
3757
|
};
|
|
3779
3758
|
}));
|
|
3780
3759
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3783
|
-
if (!
|
|
3784
|
-
throw new
|
|
3785
|
-
a.push.apply(a, ce(
|
|
3760
|
+
if (Xt(l)) {
|
|
3761
|
+
var _ = l.options[f] || l.options.other;
|
|
3762
|
+
if (!_)
|
|
3763
|
+
throw new Et(l.value, f, Object.keys(l.options), s);
|
|
3764
|
+
a.push.apply(a, ce(_.value, t, r, n, i));
|
|
3786
3765
|
continue;
|
|
3787
3766
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3767
|
+
if (zt(l)) {
|
|
3768
|
+
var _ = l.options["=".concat(f)];
|
|
3769
|
+
if (!_) {
|
|
3791
3770
|
if (!Intl.PluralRules)
|
|
3792
|
-
throw new
|
|
3771
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3793
3772
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
|
-
`,
|
|
3773
|
+
`, X.MISSING_INTL_API, s);
|
|
3795
3774
|
var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3796
|
-
|
|
3775
|
+
_ = l.options[H] || l.options.other;
|
|
3797
3776
|
}
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a, ce(
|
|
3777
|
+
if (!_)
|
|
3778
|
+
throw new Et(l.value, f, Object.keys(l.options), s);
|
|
3779
|
+
a.push.apply(a, ce(_.value, t, r, n, i, f - (l.offset || 0)));
|
|
3801
3780
|
continue;
|
|
3802
3781
|
}
|
|
3803
3782
|
}
|
|
3804
|
-
return
|
|
3783
|
+
return ii(a);
|
|
3805
3784
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3785
|
+
function si(e, t) {
|
|
3786
|
+
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3787
|
+
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3809
3788
|
}, {})) : e;
|
|
3810
3789
|
}
|
|
3811
|
-
function
|
|
3790
|
+
function ai(e, t) {
|
|
3812
3791
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3792
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3793
|
+
}, b({}, e)) : e;
|
|
3815
3794
|
}
|
|
3816
|
-
function
|
|
3795
|
+
function Pe(e) {
|
|
3817
3796
|
return {
|
|
3818
3797
|
create: function() {
|
|
3819
3798
|
return {
|
|
@@ -3827,39 +3806,39 @@ function Oe(e) {
|
|
|
3827
3806
|
}
|
|
3828
3807
|
};
|
|
3829
3808
|
}
|
|
3830
|
-
function
|
|
3809
|
+
function ui(e) {
|
|
3831
3810
|
return e === void 0 && (e = {
|
|
3832
3811
|
number: {},
|
|
3833
3812
|
dateTime: {},
|
|
3834
3813
|
pluralRules: {}
|
|
3835
3814
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3815
|
+
getNumberFormat: we(function() {
|
|
3837
3816
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3817
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3818
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3840
3819
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3820
|
+
cache: Pe(e.number),
|
|
3821
|
+
strategy: Be.variadic
|
|
3843
3822
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3823
|
+
getDateTimeFormat: we(function() {
|
|
3845
3824
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3825
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3826
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3848
3827
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3828
|
+
cache: Pe(e.dateTime),
|
|
3829
|
+
strategy: Be.variadic
|
|
3851
3830
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3831
|
+
getPluralRules: we(function() {
|
|
3853
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3833
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3834
|
+
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3856
3835
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3836
|
+
cache: Pe(e.pluralRules),
|
|
3837
|
+
strategy: Be.variadic
|
|
3859
3838
|
})
|
|
3860
3839
|
};
|
|
3861
3840
|
}
|
|
3862
|
-
var
|
|
3841
|
+
var hi = (
|
|
3863
3842
|
/** @class */
|
|
3864
3843
|
function() {
|
|
3865
3844
|
function e(t, r, n, i) {
|
|
@@ -3874,7 +3853,7 @@ var ci = (
|
|
|
3874
3853
|
if (h.length === 1)
|
|
3875
3854
|
return h[0].value;
|
|
3876
3855
|
var l = h.reduce(function(c, f) {
|
|
3877
|
-
return !c.length || f.type !==
|
|
3856
|
+
return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3878
3857
|
}, []);
|
|
3879
3858
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3880
3859
|
}, this.formatToParts = function(u) {
|
|
@@ -3891,13 +3870,13 @@ var ci = (
|
|
|
3891
3870
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3892
3871
|
var s = i || {};
|
|
3893
3872
|
s.formatters;
|
|
3894
|
-
var a =
|
|
3895
|
-
this.ast = e.__parse(t,
|
|
3873
|
+
var a = Gr(s, ["formatters"]);
|
|
3874
|
+
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
|
3896
3875
|
} else
|
|
3897
3876
|
this.ast = t;
|
|
3898
3877
|
if (!Array.isArray(this.ast))
|
|
3899
3878
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3900
|
-
this.formats =
|
|
3879
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3901
3880
|
}
|
|
3902
3881
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3903
3882
|
get: function() {
|
|
@@ -3910,7 +3889,7 @@ var ci = (
|
|
|
3910
3889
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3911
3890
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3912
3891
|
}
|
|
3913
|
-
}, e.__parse =
|
|
3892
|
+
}, e.__parse = ti, e.formats = {
|
|
3914
3893
|
number: {
|
|
3915
3894
|
integer: {
|
|
3916
3895
|
maximumFractionDigits: 0
|
|
@@ -3971,7 +3950,7 @@ var ci = (
|
|
|
3971
3950
|
}, e;
|
|
3972
3951
|
}()
|
|
3973
3952
|
);
|
|
3974
|
-
function
|
|
3953
|
+
function li(e, t) {
|
|
3975
3954
|
if (t == null)
|
|
3976
3955
|
return;
|
|
3977
3956
|
if (t in e)
|
|
@@ -3992,92 +3971,92 @@ function fi(e, t) {
|
|
|
3992
3971
|
n = void 0;
|
|
3993
3972
|
return n;
|
|
3994
3973
|
}
|
|
3995
|
-
const
|
|
3974
|
+
const L = {}, ci = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), rr = (e, t) => {
|
|
3996
3975
|
if (t == null)
|
|
3997
3976
|
return;
|
|
3998
|
-
if (t in
|
|
3999
|
-
return
|
|
4000
|
-
const r =
|
|
3977
|
+
if (t in L && e in L[t])
|
|
3978
|
+
return L[t][e];
|
|
3979
|
+
const r = ve(t);
|
|
4001
3980
|
for (let n = 0; n < r.length; n++) {
|
|
4002
|
-
const i = r[n], o =
|
|
3981
|
+
const i = r[n], o = pi(i, e);
|
|
4003
3982
|
if (o)
|
|
4004
|
-
return
|
|
3983
|
+
return ci(e, t, o);
|
|
4005
3984
|
}
|
|
4006
3985
|
};
|
|
4007
|
-
let
|
|
4008
|
-
const ne =
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
3986
|
+
let Qe;
|
|
3987
|
+
const ne = ge({});
|
|
3988
|
+
function fi(e) {
|
|
3989
|
+
return Qe[e] || null;
|
|
4011
3990
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e in
|
|
3991
|
+
function nr(e) {
|
|
3992
|
+
return e in Qe;
|
|
4014
3993
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
3994
|
+
function pi(e, t) {
|
|
3995
|
+
if (!nr(e))
|
|
4017
3996
|
return null;
|
|
4018
|
-
const r =
|
|
4019
|
-
return
|
|
3997
|
+
const r = fi(e);
|
|
3998
|
+
return li(r, t);
|
|
4020
3999
|
}
|
|
4021
|
-
function
|
|
4000
|
+
function mi(e) {
|
|
4022
4001
|
if (e == null)
|
|
4023
4002
|
return;
|
|
4024
|
-
const t =
|
|
4003
|
+
const t = ve(e);
|
|
4025
4004
|
for (let r = 0; r < t.length; r++) {
|
|
4026
4005
|
const n = t[r];
|
|
4027
|
-
if (
|
|
4006
|
+
if (nr(n))
|
|
4028
4007
|
return n;
|
|
4029
4008
|
}
|
|
4030
4009
|
}
|
|
4031
|
-
function
|
|
4032
|
-
delete
|
|
4010
|
+
function ir(e, ...t) {
|
|
4011
|
+
delete L[e], ne.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
4033
4012
|
}
|
|
4034
|
-
|
|
4013
|
+
W(
|
|
4035
4014
|
[ne],
|
|
4036
4015
|
([e]) => Object.keys(e)
|
|
4037
4016
|
);
|
|
4038
|
-
ne.subscribe((e) =>
|
|
4017
|
+
ne.subscribe((e) => Qe = e);
|
|
4039
4018
|
const fe = {};
|
|
4040
|
-
function
|
|
4019
|
+
function di(e, t) {
|
|
4041
4020
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4042
4021
|
}
|
|
4043
|
-
function
|
|
4022
|
+
function or(e) {
|
|
4044
4023
|
return fe[e];
|
|
4045
4024
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4048
|
-
const r =
|
|
4025
|
+
function bi(e) {
|
|
4026
|
+
return ve(e).map((t) => {
|
|
4027
|
+
const r = or(t);
|
|
4049
4028
|
return [t, r ? [...r] : []];
|
|
4050
4029
|
}).filter(([, t]) => t.length > 0);
|
|
4051
4030
|
}
|
|
4052
|
-
function
|
|
4053
|
-
return e == null ? !1 :
|
|
4031
|
+
function ke(e) {
|
|
4032
|
+
return e == null ? !1 : ve(e).some(
|
|
4054
4033
|
(t) => {
|
|
4055
4034
|
var r;
|
|
4056
|
-
return (r =
|
|
4035
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4057
4036
|
}
|
|
4058
4037
|
);
|
|
4059
4038
|
}
|
|
4060
|
-
function
|
|
4039
|
+
function gi(e, t) {
|
|
4061
4040
|
return Promise.all(
|
|
4062
|
-
t.map((n) => (
|
|
4063
|
-
).then((n) =>
|
|
4064
|
-
}
|
|
4065
|
-
const
|
|
4066
|
-
function
|
|
4067
|
-
if (!
|
|
4068
|
-
return e in
|
|
4069
|
-
const t =
|
|
4070
|
-
return
|
|
4041
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4042
|
+
).then((n) => ir(e, ...n));
|
|
4043
|
+
}
|
|
4044
|
+
const J = {};
|
|
4045
|
+
function sr(e) {
|
|
4046
|
+
if (!ke(e))
|
|
4047
|
+
return e in J ? J[e] : Promise.resolve();
|
|
4048
|
+
const t = bi(e);
|
|
4049
|
+
return J[e] = Promise.all(
|
|
4071
4050
|
t.map(
|
|
4072
|
-
([r, n]) =>
|
|
4051
|
+
([r, n]) => gi(r, n)
|
|
4073
4052
|
)
|
|
4074
4053
|
).then(() => {
|
|
4075
|
-
if (
|
|
4076
|
-
return
|
|
4077
|
-
delete
|
|
4078
|
-
}),
|
|
4054
|
+
if (ke(e))
|
|
4055
|
+
return sr(e);
|
|
4056
|
+
delete J[e];
|
|
4057
|
+
}), J[e];
|
|
4079
4058
|
}
|
|
4080
|
-
const
|
|
4059
|
+
const yi = {
|
|
4081
4060
|
number: {
|
|
4082
4061
|
scientific: { notation: "scientific" },
|
|
4083
4062
|
engineering: { notation: "engineering" },
|
|
@@ -4106,135 +4085,135 @@ const Ei = {
|
|
|
4106
4085
|
timeZoneName: "short"
|
|
4107
4086
|
}
|
|
4108
4087
|
}
|
|
4109
|
-
},
|
|
4088
|
+
}, vi = {
|
|
4110
4089
|
fallbackLocale: null,
|
|
4111
4090
|
loadingDelay: 200,
|
|
4112
|
-
formats:
|
|
4091
|
+
formats: yi,
|
|
4113
4092
|
warnOnMissingMessages: !0,
|
|
4114
4093
|
handleMissingMessage: void 0,
|
|
4115
4094
|
ignoreTag: !0
|
|
4116
|
-
},
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4095
|
+
}, Ei = vi;
|
|
4096
|
+
function z() {
|
|
4097
|
+
return Ei;
|
|
4119
4098
|
}
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4099
|
+
const Ae = ge(!1);
|
|
4100
|
+
var xi = Object.defineProperty, _i = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4122
4101
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4102
|
+
Ti.call(t, r) && _t(e, r, t[r]);
|
|
4103
|
+
if (xt)
|
|
4104
|
+
for (var r of xt(t))
|
|
4105
|
+
wi.call(t, r) && _t(e, r, t[r]);
|
|
4127
4106
|
return e;
|
|
4128
|
-
},
|
|
4129
|
-
let
|
|
4130
|
-
const
|
|
4131
|
-
function
|
|
4107
|
+
}, Hi = (e, t) => _i(e, Si(t));
|
|
4108
|
+
let Ve;
|
|
4109
|
+
const me = ge(null);
|
|
4110
|
+
function St(e) {
|
|
4132
4111
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4133
4112
|
}
|
|
4134
|
-
function
|
|
4135
|
-
const r =
|
|
4136
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4113
|
+
function ve(e, t = z().fallbackLocale) {
|
|
4114
|
+
const r = St(e);
|
|
4115
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4137
4116
|
}
|
|
4138
4117
|
function M() {
|
|
4139
|
-
return
|
|
4118
|
+
return Ve != null ? Ve : void 0;
|
|
4140
4119
|
}
|
|
4141
|
-
|
|
4142
|
-
|
|
4120
|
+
me.subscribe((e) => {
|
|
4121
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4143
4122
|
});
|
|
4144
|
-
const
|
|
4145
|
-
if (e &&
|
|
4146
|
-
const { loadingDelay: t } =
|
|
4123
|
+
const Pi = (e) => {
|
|
4124
|
+
if (e && mi(e) && ke(e)) {
|
|
4125
|
+
const { loadingDelay: t } = z();
|
|
4147
4126
|
let r;
|
|
4148
4127
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4149
|
-
() =>
|
|
4128
|
+
() => Ae.set(!0),
|
|
4150
4129
|
t
|
|
4151
|
-
) :
|
|
4152
|
-
|
|
4130
|
+
) : Ae.set(!0), sr(e).then(() => {
|
|
4131
|
+
me.set(e);
|
|
4153
4132
|
}).finally(() => {
|
|
4154
|
-
clearTimeout(r),
|
|
4133
|
+
clearTimeout(r), Ae.set(!1);
|
|
4155
4134
|
});
|
|
4156
4135
|
}
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4159
|
-
set:
|
|
4160
|
-
}),
|
|
4136
|
+
return me.set(e);
|
|
4137
|
+
}, Z = Hi(Bi({}, me), {
|
|
4138
|
+
set: Pi
|
|
4139
|
+
}), Ee = (e) => {
|
|
4161
4140
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4162
4141
|
return (n) => {
|
|
4163
4142
|
const i = JSON.stringify(n);
|
|
4164
4143
|
return i in t ? t[i] : t[i] = e(n);
|
|
4165
4144
|
};
|
|
4166
4145
|
};
|
|
4167
|
-
var
|
|
4146
|
+
var Ai = Object.defineProperty, de = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4168
4147
|
for (var r in t || (t = {}))
|
|
4169
|
-
|
|
4170
|
-
if (
|
|
4171
|
-
for (var r of
|
|
4172
|
-
|
|
4148
|
+
ar.call(t, r) && Tt(e, r, t[r]);
|
|
4149
|
+
if (de)
|
|
4150
|
+
for (var r of de(t))
|
|
4151
|
+
ur.call(t, r) && Tt(e, r, t[r]);
|
|
4173
4152
|
return e;
|
|
4174
|
-
},
|
|
4153
|
+
}, Q = (e, t) => {
|
|
4175
4154
|
var r = {};
|
|
4176
4155
|
for (var n in e)
|
|
4177
|
-
|
|
4178
|
-
if (e != null &&
|
|
4179
|
-
for (var n of
|
|
4180
|
-
t.indexOf(n) < 0 &&
|
|
4156
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4157
|
+
if (e != null && de)
|
|
4158
|
+
for (var n of de(e))
|
|
4159
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4181
4160
|
return r;
|
|
4182
4161
|
};
|
|
4183
|
-
const
|
|
4184
|
-
const { formats: r } =
|
|
4162
|
+
const te = (e, t) => {
|
|
4163
|
+
const { formats: r } = z();
|
|
4185
4164
|
if (e in r && t in r[e])
|
|
4186
4165
|
return r[e][t];
|
|
4187
4166
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4188
|
-
},
|
|
4167
|
+
}, Oi = Ee(
|
|
4189
4168
|
(e) => {
|
|
4190
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4169
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4191
4170
|
if (r == null)
|
|
4192
4171
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4193
|
-
return n && (i =
|
|
4172
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4194
4173
|
}
|
|
4195
|
-
),
|
|
4174
|
+
), Ii = Ee(
|
|
4196
4175
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4198
4177
|
if (r == null)
|
|
4199
4178
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4200
|
-
return n ? i =
|
|
4179
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4180
|
}
|
|
4202
|
-
),
|
|
4181
|
+
), Li = Ee(
|
|
4203
4182
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4183
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4205
4184
|
if (r == null)
|
|
4206
4185
|
throw new Error(
|
|
4207
4186
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4208
4187
|
);
|
|
4209
|
-
return n ? i =
|
|
4188
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4189
|
}
|
|
4211
|
-
),
|
|
4190
|
+
), Ni = (e = {}) => {
|
|
4212
4191
|
var t = e, {
|
|
4213
4192
|
locale: r = M()
|
|
4214
|
-
} = t, n =
|
|
4193
|
+
} = t, n = Q(t, [
|
|
4215
4194
|
"locale"
|
|
4216
4195
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4196
|
+
return Oi(Je({ locale: r }, n));
|
|
4197
|
+
}, Ci = (e = {}) => {
|
|
4219
4198
|
var t = e, {
|
|
4220
4199
|
locale: r = M()
|
|
4221
|
-
} = t, n =
|
|
4200
|
+
} = t, n = Q(t, [
|
|
4222
4201
|
"locale"
|
|
4223
4202
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4203
|
+
return Ii(Je({ locale: r }, n));
|
|
4204
|
+
}, Mi = (e = {}) => {
|
|
4226
4205
|
var t = e, {
|
|
4227
4206
|
locale: r = M()
|
|
4228
|
-
} = t, n =
|
|
4207
|
+
} = t, n = Q(t, [
|
|
4229
4208
|
"locale"
|
|
4230
4209
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4210
|
+
return Li(Je({ locale: r }, n));
|
|
4211
|
+
}, Ri = Ee(
|
|
4233
4212
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4234
|
-
(e, t = M()) => new
|
|
4235
|
-
ignoreTag:
|
|
4213
|
+
(e, t = M()) => new hi(e, t, z().formats, {
|
|
4214
|
+
ignoreTag: z().ignoreTag
|
|
4236
4215
|
})
|
|
4237
|
-
),
|
|
4216
|
+
), $i = (e, t = {}) => {
|
|
4238
4217
|
var r, n, i, o;
|
|
4239
4218
|
let s = t;
|
|
4240
4219
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4247,9 +4226,9 @@ const ee = (e, t) => {
|
|
|
4247
4226
|
throw new Error(
|
|
4248
4227
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4249
4228
|
);
|
|
4250
|
-
let l =
|
|
4229
|
+
let l = rr(e, u);
|
|
4251
4230
|
if (!l)
|
|
4252
|
-
l = (o = (i = (n = (r =
|
|
4231
|
+
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
4253
4232
|
else if (typeof l != "string")
|
|
4254
4233
|
return console.warn(
|
|
4255
4234
|
`[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.`
|
|
@@ -4258,7 +4237,7 @@ const ee = (e, t) => {
|
|
|
4258
4237
|
return l;
|
|
4259
4238
|
let c = l;
|
|
4260
4239
|
try {
|
|
4261
|
-
c =
|
|
4240
|
+
c = Ri(l, u).format(a);
|
|
4262
4241
|
} catch (f) {
|
|
4263
4242
|
f instanceof Error && console.warn(
|
|
4264
4243
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4266,21 +4245,21 @@ const ee = (e, t) => {
|
|
|
4266
4245
|
);
|
|
4267
4246
|
}
|
|
4268
4247
|
return c;
|
|
4269
|
-
},
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4248
|
+
}, Ui = (e, t) => Mi(t).format(e), Di = (e, t) => Ci(t).format(e), Fi = (e, t) => Ni(t).format(e), Gi = (e, t = M()) => rr(e, t), ji = W([Z, ne], () => $i);
|
|
4249
|
+
W([Z], () => Ui);
|
|
4250
|
+
W([Z], () => Di);
|
|
4251
|
+
W([Z], () => Fi);
|
|
4252
|
+
W([Z, ne], () => Gi);
|
|
4274
4253
|
window.emWidgets = { topic: tn };
|
|
4275
4254
|
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4276
4255
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4256
|
+
function wt(e, t) {
|
|
4257
|
+
ir(e, t);
|
|
4279
4258
|
}
|
|
4280
|
-
function
|
|
4281
|
-
|
|
4259
|
+
function ki(e) {
|
|
4260
|
+
Z.set(e);
|
|
4282
4261
|
}
|
|
4283
|
-
const
|
|
4262
|
+
const Bt = {
|
|
4284
4263
|
en: {
|
|
4285
4264
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4286
4265
|
},
|
|
@@ -4321,10 +4300,10 @@ const Pt = {
|
|
|
4321
4300
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4322
4301
|
}
|
|
4323
4302
|
};
|
|
4324
|
-
function
|
|
4325
|
-
|
|
4303
|
+
function Vi(e) {
|
|
4304
|
+
br(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}}");
|
|
4326
4305
|
}
|
|
4327
|
-
function
|
|
4306
|
+
function Xi(e) {
|
|
4328
4307
|
let t, r, n, i = (
|
|
4329
4308
|
/*customtext*/
|
|
4330
4309
|
(e[0] || /*$_*/
|
|
@@ -4332,13 +4311,13 @@ function Wi(e) {
|
|
|
4332
4311
|
), o, s;
|
|
4333
4312
|
return {
|
|
4334
4313
|
c() {
|
|
4335
|
-
t =
|
|
4314
|
+
t = Y("div"), r = Y("div"), n = Y("button"), o = vr(i), C(n, "class", "PanicButton " + (ae(
|
|
4336
4315
|
/*userAgent*/
|
|
4337
4316
|
e[6]
|
|
4338
4317
|
) !== "PC" ? "PanicButtonMobile" : "")), C(n, "part", "PanicButton " + (ae(
|
|
4339
4318
|
/*userAgent*/
|
|
4340
4319
|
e[6]
|
|
4341
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4320
|
+
) !== "PC" ? "PanicButtonMobile" : "")), nt(
|
|
4342
4321
|
n,
|
|
4343
4322
|
"PanicButtonAnimation",
|
|
4344
4323
|
/*panicLoading*/
|
|
@@ -4353,14 +4332,14 @@ function Wi(e) {
|
|
|
4353
4332
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4354
4333
|
},
|
|
4355
4334
|
m(a, u) {
|
|
4356
|
-
|
|
4335
|
+
Ot(a, t, u), ue(t, r), ue(r, n), ue(n, o), e[12](n), e[13](t);
|
|
4357
4336
|
},
|
|
4358
4337
|
p(a, [u]) {
|
|
4359
4338
|
u & /*customtext, $_*/
|
|
4360
4339
|
33 && i !== (i = /*customtext*/
|
|
4361
4340
|
(a[0] || /*$_*/
|
|
4362
4341
|
a[5]("panicButtonString")) + "") && xr(o, i), u & /*panicLoading*/
|
|
4363
|
-
16 &&
|
|
4342
|
+
16 && nt(
|
|
4364
4343
|
n,
|
|
4365
4344
|
"PanicButtonAnimation",
|
|
4366
4345
|
/*panicLoading*/
|
|
@@ -4372,63 +4351,63 @@ function Wi(e) {
|
|
|
4372
4351
|
i: B,
|
|
4373
4352
|
o: B,
|
|
4374
4353
|
d(a) {
|
|
4375
|
-
a &&
|
|
4354
|
+
a && ze(t), e[12](null), e[13](null);
|
|
4376
4355
|
}
|
|
4377
4356
|
};
|
|
4378
4357
|
}
|
|
4379
|
-
function
|
|
4358
|
+
function zi(e, t, r) {
|
|
4380
4359
|
let n;
|
|
4381
|
-
|
|
4382
|
-
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,
|
|
4383
|
-
const
|
|
4384
|
-
fetch(l).then((
|
|
4385
|
-
Object.keys(
|
|
4386
|
-
|
|
4360
|
+
dr(e, ji, (v) => r(5, n = v));
|
|
4361
|
+
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, w = window.navigator.userAgent;
|
|
4362
|
+
const N = () => {
|
|
4363
|
+
fetch(l).then(($) => $.json()).then(($) => {
|
|
4364
|
+
Object.keys($).forEach((Ye) => {
|
|
4365
|
+
wt(Ye, $[Ye]);
|
|
4387
4366
|
});
|
|
4388
|
-
}).catch((
|
|
4389
|
-
console.log(
|
|
4367
|
+
}).catch(($) => {
|
|
4368
|
+
console.log($);
|
|
4390
4369
|
});
|
|
4391
4370
|
};
|
|
4392
|
-
Object.keys(
|
|
4393
|
-
|
|
4371
|
+
Object.keys(Bt).forEach((v) => {
|
|
4372
|
+
wt(v, Bt[v]);
|
|
4394
4373
|
});
|
|
4395
4374
|
const I = () => {
|
|
4396
4375
|
c == null || c.addEventListener("mousedown", H, !1), c == null || c.addEventListener("touchstart", H, !1), c == null || c.addEventListener("mouseup", S, !1), c == null || c.addEventListener("touchend", S, !1);
|
|
4397
|
-
},
|
|
4376
|
+
}, _ = () => {
|
|
4398
4377
|
r(4, m = !1), c == null || c.removeEventListener("mousedown", H), c == null || c.removeEventListener("touchstart", H), c == null || c.removeEventListener("mouseup", S), c == null || c.removeEventListener("touchend", S);
|
|
4399
4378
|
}, H = () => {
|
|
4400
|
-
|
|
4379
|
+
y = 0, r(4, m = !0), g = setInterval(
|
|
4401
4380
|
() => {
|
|
4402
|
-
|
|
4381
|
+
y++, y >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(g), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
|
|
4403
4382
|
},
|
|
4404
4383
|
1e3
|
|
4405
4384
|
);
|
|
4406
4385
|
}, S = () => {
|
|
4407
|
-
r(4, m = !1), clearInterval(
|
|
4386
|
+
r(4, m = !1), clearInterval(g);
|
|
4408
4387
|
};
|
|
4409
4388
|
Tr(() => () => {
|
|
4410
|
-
|
|
4389
|
+
_();
|
|
4411
4390
|
});
|
|
4412
|
-
function
|
|
4413
|
-
pe[
|
|
4414
|
-
c =
|
|
4391
|
+
function R(v) {
|
|
4392
|
+
pe[v ? "unshift" : "push"](() => {
|
|
4393
|
+
c = v, r(2, c);
|
|
4415
4394
|
});
|
|
4416
4395
|
}
|
|
4417
|
-
function ie(
|
|
4418
|
-
pe[
|
|
4419
|
-
f =
|
|
4396
|
+
function ie(v) {
|
|
4397
|
+
pe[v ? "unshift" : "push"](() => {
|
|
4398
|
+
f = v, r(3, f);
|
|
4420
4399
|
});
|
|
4421
4400
|
}
|
|
4422
|
-
return e.$$set = (
|
|
4423
|
-
"lang" in
|
|
4401
|
+
return e.$$set = (v) => {
|
|
4402
|
+
"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);
|
|
4424
4403
|
}, e.$$.update = () => {
|
|
4425
4404
|
e.$$.dirty & /*panicButton*/
|
|
4426
4405
|
4 && c && I(), e.$$.dirty & /*lang*/
|
|
4427
|
-
128 && i &&
|
|
4428
|
-
264 && s && f &&
|
|
4429
|
-
520 && a && f &&
|
|
4406
|
+
128 && i && ki(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4407
|
+
264 && s && f && Ur(f, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4408
|
+
520 && a && f && Dr(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4430
4409
|
1032 && u && f && Fr(f, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4431
|
-
2048 && l &&
|
|
4410
|
+
2048 && l && N();
|
|
4432
4411
|
}, [
|
|
4433
4412
|
o,
|
|
4434
4413
|
h,
|
|
@@ -4436,24 +4415,24 @@ function Zi(e, t, r) {
|
|
|
4436
4415
|
f,
|
|
4437
4416
|
m,
|
|
4438
4417
|
n,
|
|
4439
|
-
|
|
4418
|
+
w,
|
|
4440
4419
|
i,
|
|
4441
4420
|
s,
|
|
4442
4421
|
a,
|
|
4443
4422
|
u,
|
|
4444
4423
|
l,
|
|
4445
|
-
|
|
4424
|
+
R,
|
|
4446
4425
|
ie
|
|
4447
4426
|
];
|
|
4448
4427
|
}
|
|
4449
|
-
class
|
|
4428
|
+
class Wi extends Rr {
|
|
4450
4429
|
constructor(t) {
|
|
4451
|
-
super(),
|
|
4430
|
+
super(), Cr(
|
|
4452
4431
|
this,
|
|
4453
4432
|
t,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4433
|
+
zi,
|
|
4434
|
+
Xi,
|
|
4435
|
+
Pt,
|
|
4457
4436
|
{
|
|
4458
4437
|
lang: 7,
|
|
4459
4438
|
customtext: 0,
|
|
@@ -4463,53 +4442,53 @@ class Qi extends Rr {
|
|
|
4463
4442
|
alternativestyling: 1,
|
|
4464
4443
|
translationurl: 11
|
|
4465
4444
|
},
|
|
4466
|
-
|
|
4445
|
+
Vi
|
|
4467
4446
|
);
|
|
4468
4447
|
}
|
|
4469
4448
|
get lang() {
|
|
4470
4449
|
return this.$$.ctx[7];
|
|
4471
4450
|
}
|
|
4472
4451
|
set lang(t) {
|
|
4473
|
-
this.$$set({ lang: t }),
|
|
4452
|
+
this.$$set({ lang: t }), P();
|
|
4474
4453
|
}
|
|
4475
4454
|
get customtext() {
|
|
4476
4455
|
return this.$$.ctx[0];
|
|
4477
4456
|
}
|
|
4478
4457
|
set customtext(t) {
|
|
4479
|
-
this.$$set({ customtext: t }),
|
|
4458
|
+
this.$$set({ customtext: t }), P();
|
|
4480
4459
|
}
|
|
4481
4460
|
get clientstyling() {
|
|
4482
4461
|
return this.$$.ctx[8];
|
|
4483
4462
|
}
|
|
4484
4463
|
set clientstyling(t) {
|
|
4485
|
-
this.$$set({ clientstyling: t }),
|
|
4464
|
+
this.$$set({ clientstyling: t }), P();
|
|
4486
4465
|
}
|
|
4487
4466
|
get clientstylingurl() {
|
|
4488
4467
|
return this.$$.ctx[9];
|
|
4489
4468
|
}
|
|
4490
4469
|
set clientstylingurl(t) {
|
|
4491
|
-
this.$$set({ clientstylingurl: t }),
|
|
4470
|
+
this.$$set({ clientstylingurl: t }), P();
|
|
4492
4471
|
}
|
|
4493
4472
|
get mbsource() {
|
|
4494
4473
|
return this.$$.ctx[10];
|
|
4495
4474
|
}
|
|
4496
4475
|
set mbsource(t) {
|
|
4497
|
-
this.$$set({ mbsource: t }),
|
|
4476
|
+
this.$$set({ mbsource: t }), P();
|
|
4498
4477
|
}
|
|
4499
4478
|
get alternativestyling() {
|
|
4500
4479
|
return this.$$.ctx[1];
|
|
4501
4480
|
}
|
|
4502
4481
|
set alternativestyling(t) {
|
|
4503
|
-
this.$$set({ alternativestyling: t }),
|
|
4482
|
+
this.$$set({ alternativestyling: t }), P();
|
|
4504
4483
|
}
|
|
4505
4484
|
get translationurl() {
|
|
4506
4485
|
return this.$$.ctx[11];
|
|
4507
4486
|
}
|
|
4508
4487
|
set translationurl(t) {
|
|
4509
|
-
this.$$set({ translationurl: t }),
|
|
4488
|
+
this.$$set({ translationurl: t }), P();
|
|
4510
4489
|
}
|
|
4511
4490
|
}
|
|
4512
|
-
|
|
4491
|
+
Mr(Wi, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4513
4492
|
export {
|
|
4514
|
-
|
|
4493
|
+
Wi as default
|
|
4515
4494
|
};
|