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