@everymatrix/player-account-general-confirmation-modal 1.76.3 → 1.76.5
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/{PlayerAccountGeneralConfirmationModal-DSQoHhO5.js → PlayerAccountGeneralConfirmationModal-C6A0byEQ.js} +895 -860
- package/components/PlayerAccountGeneralConfirmationModal-CyX4hu1Y.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DXT5SSmP.js → PlayerAccountGeneralConfirmationModal-DjvlJWq1.js} +919 -884
- package/es2015/player-account-general-confirmation-modal.cjs +1 -1
- package/es2015/player-account-general-confirmation-modal.js +1 -1
- package/esnext/player-account-general-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-BaGn2y5C.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function dr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,25 +8,25 @@ function fr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ot(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function z(e) {
|
|
18
|
+
e.forEach(Ot);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function qe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function It(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function br(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Mt(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -35,19 +35,19 @@ function Ct(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function gr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(Mt(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Nt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Nt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function yr(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function pr(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function _r(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = Nt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function xr(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -80,14 +80,14 @@ function gr(e) {
|
|
|
80
80
|
function B(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function Er(e, t, r) {
|
|
84
|
+
const n = Sr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = I("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, wr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Sr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,45 +97,45 @@ function vr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function wr(e, t) {
|
|
101
101
|
return B(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ne(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Z(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
113
|
function I(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function it(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ve(e) {
|
|
120
120
|
return document.createTextNode(e);
|
|
121
121
|
}
|
|
122
122
|
function ae() {
|
|
123
|
-
return
|
|
123
|
+
return ve(" ");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Me(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
128
|
function T(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Tr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ke(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Hr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,97 +144,97 @@ function Er(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let ee;
|
|
148
|
+
function K(e) {
|
|
149
|
+
ee = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Ar() {
|
|
152
|
+
if (!ee)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return ee;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Br(e) {
|
|
157
|
+
Ar().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const F = [],
|
|
159
|
+
const F = [], Ne = [];
|
|
160
160
|
let j = [];
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
161
|
+
const ot = [], Cr = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Le = !1;
|
|
163
|
+
function Pr() {
|
|
164
|
+
Le || (Le = !0, Cr.then(O));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Re(e) {
|
|
167
167
|
j.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const Te = /* @__PURE__ */ new Set();
|
|
170
170
|
let U = 0;
|
|
171
171
|
function O() {
|
|
172
172
|
if (U !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = ee;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
177
|
for (; U < F.length; ) {
|
|
178
178
|
const t = F[U];
|
|
179
|
-
U++,
|
|
179
|
+
U++, K(t), Or(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw F.length = 0, U = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
184
|
+
for (K(null), F.length = 0, U = 0; Ne.length; )
|
|
185
|
+
Ne.pop()();
|
|
186
186
|
for (let t = 0; t < j.length; t += 1) {
|
|
187
187
|
const r = j[t];
|
|
188
|
-
|
|
188
|
+
Te.has(r) || (Te.add(r), r());
|
|
189
189
|
}
|
|
190
190
|
j.length = 0;
|
|
191
191
|
} while (F.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
for (; ot.length; )
|
|
193
|
+
ot.pop()();
|
|
194
|
+
Le = !1, Te.clear(), K(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Or(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), z(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ir(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
206
206
|
}
|
|
207
207
|
const he = /* @__PURE__ */ new Set();
|
|
208
|
-
let
|
|
209
|
-
function
|
|
208
|
+
let Mr;
|
|
209
|
+
function Lt(e, t) {
|
|
210
210
|
e && e.i && (he.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
if (e.o) {
|
|
212
|
+
function Nr(e, t, r, n) {
|
|
213
|
+
if (e && e.o) {
|
|
214
214
|
if (he.has(e))
|
|
215
215
|
return;
|
|
216
|
-
he.add(e),
|
|
216
|
+
he.add(e), Mr.c.push(() => {
|
|
217
217
|
he.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Lr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), Re(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(Ot).filter(qe);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach(Re);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Rr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Ir(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
232
|
+
function $r(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (F.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const l =
|
|
237
|
-
|
|
235
|
+
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const l = ee;
|
|
237
|
+
K(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
@@ -242,7 +242,7 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
props: o,
|
|
243
243
|
update: N,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: nt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: nt(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || l.$$.root
|
|
258
258
|
};
|
|
259
259
|
s && s(u.root);
|
|
260
260
|
let h = !1;
|
|
261
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
262
|
-
const
|
|
263
|
-
return u.ctx && i(u.ctx[
|
|
264
|
-
}), u.update(), h = !0,
|
|
261
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
262
|
+
const v = m.length ? m[0] : f;
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && $r(e, c)), f;
|
|
264
|
+
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const
|
|
267
|
-
u.fragment && u.fragment.l(
|
|
266
|
+
const c = Tr(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && Lt(e.$$.fragment), Lr(e, t.target, t.anchor), O();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
K(l);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Rt;
|
|
275
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -321,22 +321,22 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(l, u) {
|
|
324
|
-
|
|
324
|
+
ne(l, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(l) {
|
|
327
|
-
l &&
|
|
327
|
+
l && Z(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Hr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
338
338
|
const o = this.$$g_p(i.name);
|
|
339
|
-
o in this.$$d || (this.$$d[o] =
|
|
339
|
+
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
|
340
340
|
}
|
|
341
341
|
for (const i in this.$$p_d)
|
|
342
342
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
354
354
|
this.$$r = !0;
|
|
355
355
|
for (const i in this.$$p_d)
|
|
356
356
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
357
|
-
const o =
|
|
357
|
+
const o = ce(
|
|
358
358
|
i,
|
|
359
359
|
this.$$d[i],
|
|
360
360
|
this.$$p_d,
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
376
376
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
377
377
|
// and setting attributes through setAttribute etc, this is helpful
|
|
378
378
|
attributeChangedCallback(e, t, r) {
|
|
379
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
379
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
380
380
|
}
|
|
381
381
|
disconnectedCallback() {
|
|
382
382
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -389,7 +389,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
389
389
|
) || e;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
function
|
|
392
|
+
function ce(e, t, r, n) {
|
|
393
393
|
const i = r[e]?.type;
|
|
394
394
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
395
395
|
return t;
|
|
@@ -418,8 +418,8 @@ function fe(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let s = class extends
|
|
421
|
+
function Ur(e, t, r, n, i, o) {
|
|
422
|
+
let s = class extends Rt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
@@ -435,7 +435,7 @@ function Lr(e, t, r, n, i, o) {
|
|
|
435
435
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
436
436
|
},
|
|
437
437
|
set(l) {
|
|
438
|
-
l =
|
|
438
|
+
l = ce(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}), n.forEach((a) => {
|
|
@@ -447,7 +447,7 @@ function Lr(e, t, r, n, i, o) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Dr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Rr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
Rr(this, 1), this.$destroy = N;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,7 +475,7 @@ class Rr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!qe(r))
|
|
479
479
|
return N;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
@@ -488,11 +488,11 @@ class Rr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Fr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -507,43 +507,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
|
509
509
|
***************************************************************************** */
|
|
510
|
-
var
|
|
511
|
-
return
|
|
510
|
+
var $e = function(e, t) {
|
|
511
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
512
512
|
r.__proto__ = n;
|
|
513
513
|
} || function(r, n) {
|
|
514
514
|
for (var i in n)
|
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
-
},
|
|
516
|
+
}, $e(e, t);
|
|
517
517
|
};
|
|
518
|
-
function
|
|
518
|
+
function ie(e, t) {
|
|
519
519
|
if (typeof t != "function" && t !== null)
|
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
521
|
-
|
|
521
|
+
$e(e, t);
|
|
522
522
|
function r() {
|
|
523
523
|
this.constructor = e;
|
|
524
524
|
}
|
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
526
526
|
}
|
|
527
|
-
|
|
528
|
-
return v = Object.assign || function(t) {
|
|
529
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
530
|
-
r = arguments[n];
|
|
531
|
-
for (var o in r)
|
|
532
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
533
|
-
}
|
|
534
|
-
return t;
|
|
535
|
-
}, v.apply(this, arguments);
|
|
536
|
-
};
|
|
537
|
-
function Gr(e, t) {
|
|
538
|
-
var r = {};
|
|
539
|
-
for (var n in e)
|
|
540
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
541
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
542
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
543
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
544
|
-
return r;
|
|
545
|
-
}
|
|
546
|
-
function Le(e) {
|
|
527
|
+
function Ge(e) {
|
|
547
528
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
548
529
|
if (r)
|
|
549
530
|
return r.call(e);
|
|
@@ -555,7 +536,7 @@ function Le(e) {
|
|
|
555
536
|
};
|
|
556
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
557
538
|
}
|
|
558
|
-
function
|
|
539
|
+
function Ue(e, t) {
|
|
559
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
560
541
|
if (!r)
|
|
561
542
|
return e;
|
|
@@ -575,22 +556,22 @@ function Re(e, t) {
|
|
|
575
556
|
}
|
|
576
557
|
return o;
|
|
577
558
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
559
|
+
function De(e, t, r) {
|
|
560
|
+
if (arguments.length === 2)
|
|
580
561
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
581
562
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
582
563
|
return e.concat(o || t);
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function L(e) {
|
|
585
566
|
return typeof e == "function";
|
|
586
567
|
}
|
|
587
|
-
function
|
|
568
|
+
function $t(e) {
|
|
588
569
|
var t = function(n) {
|
|
589
570
|
Error.call(n), n.stack = new Error().stack;
|
|
590
571
|
}, r = e(t);
|
|
591
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
592
573
|
}
|
|
593
|
-
var
|
|
574
|
+
var He = $t(function(e) {
|
|
594
575
|
return function(r) {
|
|
595
576
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
596
577
|
` + r.map(function(n, i) {
|
|
@@ -599,7 +580,7 @@ var we = Nt(function(e) {
|
|
|
599
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
600
581
|
};
|
|
601
582
|
});
|
|
602
|
-
function
|
|
583
|
+
function Fe(e, t) {
|
|
603
584
|
if (e) {
|
|
604
585
|
var r = e.indexOf(t);
|
|
605
586
|
0 <= r && e.splice(r, 1);
|
|
@@ -617,12 +598,12 @@ var ye = function() {
|
|
|
617
598
|
if (s)
|
|
618
599
|
if (this._parentage = null, Array.isArray(s))
|
|
619
600
|
try {
|
|
620
|
-
for (var a =
|
|
601
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
621
602
|
var u = l.value;
|
|
622
603
|
u.remove(this);
|
|
623
604
|
}
|
|
624
|
-
} catch (
|
|
625
|
-
t = { error:
|
|
605
|
+
} catch (d) {
|
|
606
|
+
t = { error: d };
|
|
626
607
|
} finally {
|
|
627
608
|
try {
|
|
628
609
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -634,29 +615,29 @@ var ye = function() {
|
|
|
634
615
|
else
|
|
635
616
|
s.remove(this);
|
|
636
617
|
var h = this.initialTeardown;
|
|
637
|
-
if (
|
|
618
|
+
if (L(h))
|
|
638
619
|
try {
|
|
639
620
|
h();
|
|
640
|
-
} catch (
|
|
641
|
-
o =
|
|
621
|
+
} catch (d) {
|
|
622
|
+
o = d instanceof He ? d.errors : [d];
|
|
642
623
|
}
|
|
643
|
-
var
|
|
644
|
-
if (
|
|
624
|
+
var c = this._finalizers;
|
|
625
|
+
if (c) {
|
|
645
626
|
this._finalizers = null;
|
|
646
627
|
try {
|
|
647
|
-
for (var
|
|
648
|
-
var
|
|
628
|
+
for (var f = Ge(c), m = f.next(); !m.done; m = f.next()) {
|
|
629
|
+
var v = m.value;
|
|
649
630
|
try {
|
|
650
|
-
|
|
651
|
-
} catch (
|
|
652
|
-
o = o ?? [],
|
|
631
|
+
st(v);
|
|
632
|
+
} catch (d) {
|
|
633
|
+
o = o ?? [], d instanceof He ? o = De(De([], Ue(o)), Ue(d.errors)) : o.push(d);
|
|
653
634
|
}
|
|
654
635
|
}
|
|
655
|
-
} catch (
|
|
656
|
-
n = { error:
|
|
636
|
+
} catch (d) {
|
|
637
|
+
n = { error: d };
|
|
657
638
|
} finally {
|
|
658
639
|
try {
|
|
659
|
-
|
|
640
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
660
641
|
} finally {
|
|
661
642
|
if (n)
|
|
662
643
|
throw n.error;
|
|
@@ -664,13 +645,13 @@ var ye = function() {
|
|
|
664
645
|
}
|
|
665
646
|
}
|
|
666
647
|
if (o)
|
|
667
|
-
throw new
|
|
648
|
+
throw new He(o);
|
|
668
649
|
}
|
|
669
650
|
}, e.prototype.add = function(t) {
|
|
670
651
|
var r;
|
|
671
652
|
if (t && t !== this)
|
|
672
653
|
if (this.closed)
|
|
673
|
-
|
|
654
|
+
st(t);
|
|
674
655
|
else {
|
|
675
656
|
if (t instanceof e) {
|
|
676
657
|
if (t.closed || t._hasParent(this))
|
|
@@ -687,56 +668,52 @@ var ye = function() {
|
|
|
687
668
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
688
669
|
}, e.prototype._removeParent = function(t) {
|
|
689
670
|
var r = this._parentage;
|
|
690
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
671
|
+
r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
|
|
691
672
|
}, e.prototype.remove = function(t) {
|
|
692
673
|
var r = this._finalizers;
|
|
693
|
-
r &&
|
|
674
|
+
r && Fe(r, t), t instanceof e && t._removeParent(this);
|
|
694
675
|
}, e.EMPTY = function() {
|
|
695
676
|
var t = new e();
|
|
696
677
|
return t.closed = !0, t;
|
|
697
678
|
}(), e;
|
|
698
|
-
}(),
|
|
699
|
-
function
|
|
700
|
-
return e instanceof ye || e && "closed" in e &&
|
|
701
|
-
}
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
-
}
|
|
705
|
-
var
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
Promise: void 0,
|
|
709
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
710
|
-
useDeprecatedNextContext: !1
|
|
711
|
-
}, Dr = {
|
|
679
|
+
}(), Gt = ye.EMPTY;
|
|
680
|
+
function Ut(e) {
|
|
681
|
+
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
682
|
+
}
|
|
683
|
+
function st(e) {
|
|
684
|
+
L(e) ? e() : e.unsubscribe();
|
|
685
|
+
}
|
|
686
|
+
var jr = {
|
|
687
|
+
Promise: void 0
|
|
688
|
+
}, kr = {
|
|
712
689
|
setTimeout: function(e, t) {
|
|
713
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
714
691
|
r[n - 2] = arguments[n];
|
|
715
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, De([e, t], Ue(r)));
|
|
716
693
|
},
|
|
717
694
|
clearTimeout: function(e) {
|
|
718
695
|
return clearTimeout(e);
|
|
719
696
|
},
|
|
720
697
|
delegate: void 0
|
|
721
698
|
};
|
|
722
|
-
function
|
|
723
|
-
|
|
699
|
+
function Vr(e) {
|
|
700
|
+
kr.setTimeout(function() {
|
|
724
701
|
throw e;
|
|
725
702
|
});
|
|
726
703
|
}
|
|
727
|
-
function
|
|
704
|
+
function at() {
|
|
728
705
|
}
|
|
729
|
-
function
|
|
706
|
+
function fe(e) {
|
|
730
707
|
e();
|
|
731
708
|
}
|
|
732
|
-
var
|
|
733
|
-
|
|
709
|
+
var Dt = function(e) {
|
|
710
|
+
ie(t, e);
|
|
734
711
|
function t(r) {
|
|
735
712
|
var n = e.call(this) || this;
|
|
736
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = zr, n;
|
|
737
714
|
}
|
|
738
715
|
return t.create = function(r, n, i) {
|
|
739
|
-
return new
|
|
716
|
+
return new je(r, n, i);
|
|
740
717
|
}, t.prototype.next = function(r) {
|
|
741
718
|
this.isStopped || this._next(r);
|
|
742
719
|
}, t.prototype.error = function(r) {
|
|
@@ -760,7 +737,7 @@ var Rt = function(e) {
|
|
|
760
737
|
this.unsubscribe();
|
|
761
738
|
}
|
|
762
739
|
}, t;
|
|
763
|
-
}(ye),
|
|
740
|
+
}(ye), Xr = function() {
|
|
764
741
|
function e(t) {
|
|
765
742
|
this.partialObserver = t;
|
|
766
743
|
}
|
|
@@ -791,43 +768,43 @@ var Rt = function(e) {
|
|
|
791
768
|
ue(r);
|
|
792
769
|
}
|
|
793
770
|
}, e;
|
|
794
|
-
}(),
|
|
795
|
-
|
|
771
|
+
}(), je = function(e) {
|
|
772
|
+
ie(t, e);
|
|
796
773
|
function t(r, n, i) {
|
|
797
774
|
var o = e.call(this) || this, s;
|
|
798
|
-
return
|
|
775
|
+
return L(r) || !r ? s = {
|
|
799
776
|
next: r ?? void 0,
|
|
800
777
|
error: n ?? void 0,
|
|
801
778
|
complete: i ?? void 0
|
|
802
|
-
} : s = r, o.destination = new
|
|
779
|
+
} : s = r, o.destination = new Xr(s), o;
|
|
803
780
|
}
|
|
804
781
|
return t;
|
|
805
|
-
}(
|
|
782
|
+
}(Dt);
|
|
806
783
|
function ue(e) {
|
|
807
|
-
|
|
784
|
+
Vr(e);
|
|
808
785
|
}
|
|
809
|
-
function
|
|
786
|
+
function Wr(e) {
|
|
810
787
|
throw e;
|
|
811
788
|
}
|
|
812
|
-
var
|
|
789
|
+
var zr = {
|
|
813
790
|
closed: !0,
|
|
814
|
-
next:
|
|
815
|
-
error:
|
|
816
|
-
complete:
|
|
817
|
-
},
|
|
791
|
+
next: at,
|
|
792
|
+
error: Wr,
|
|
793
|
+
complete: at
|
|
794
|
+
}, Zr = function() {
|
|
818
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
819
796
|
}();
|
|
820
|
-
function
|
|
797
|
+
function Qr(e) {
|
|
821
798
|
return e;
|
|
822
799
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.length === 0 ?
|
|
800
|
+
function Jr(e) {
|
|
801
|
+
return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
|
|
825
802
|
return e.reduce(function(n, i) {
|
|
826
803
|
return i(n);
|
|
827
804
|
}, r);
|
|
828
805
|
};
|
|
829
806
|
}
|
|
830
|
-
var
|
|
807
|
+
var ut = function() {
|
|
831
808
|
function e(t) {
|
|
832
809
|
t && (this._subscribe = t);
|
|
833
810
|
}
|
|
@@ -835,8 +812,8 @@ var it = function() {
|
|
|
835
812
|
var r = new e();
|
|
836
813
|
return r.source = this, r.operator = t, r;
|
|
837
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
838
|
-
var i = this, o =
|
|
839
|
-
return
|
|
815
|
+
var i = this, o = qr(t) ? t : new je(t, r, n);
|
|
816
|
+
return fe(function() {
|
|
840
817
|
var s = i, a = s.operator, l = s.source;
|
|
841
818
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
842
819
|
}), o;
|
|
@@ -848,8 +825,8 @@ var it = function() {
|
|
|
848
825
|
}
|
|
849
826
|
}, e.prototype.forEach = function(t, r) {
|
|
850
827
|
var n = this;
|
|
851
|
-
return r =
|
|
852
|
-
var s = new
|
|
828
|
+
return r = lt(r), new r(function(i, o) {
|
|
829
|
+
var s = new je({
|
|
853
830
|
next: function(a) {
|
|
854
831
|
try {
|
|
855
832
|
t(a);
|
|
@@ -865,15 +842,15 @@ var it = function() {
|
|
|
865
842
|
}, e.prototype._subscribe = function(t) {
|
|
866
843
|
var r;
|
|
867
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
868
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Zr] = function() {
|
|
869
846
|
return this;
|
|
870
847
|
}, e.prototype.pipe = function() {
|
|
871
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
872
849
|
t[r] = arguments[r];
|
|
873
|
-
return
|
|
850
|
+
return Jr(t)(this);
|
|
874
851
|
}, e.prototype.toPromise = function(t) {
|
|
875
852
|
var r = this;
|
|
876
|
-
return t =
|
|
853
|
+
return t = lt(t), new t(function(n, i) {
|
|
877
854
|
var o;
|
|
878
855
|
r.subscribe(function(s) {
|
|
879
856
|
return o = s;
|
|
@@ -887,40 +864,40 @@ var it = function() {
|
|
|
887
864
|
return new e(t);
|
|
888
865
|
}, e;
|
|
889
866
|
}();
|
|
890
|
-
function
|
|
867
|
+
function lt(e) {
|
|
891
868
|
var t;
|
|
892
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? jr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
893
870
|
}
|
|
894
|
-
function
|
|
895
|
-
return e &&
|
|
871
|
+
function Yr(e) {
|
|
872
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
896
873
|
}
|
|
897
|
-
function
|
|
898
|
-
return e && e instanceof
|
|
874
|
+
function qr(e) {
|
|
875
|
+
return e && e instanceof Dt || Yr(e) && Ut(e);
|
|
899
876
|
}
|
|
900
|
-
var
|
|
877
|
+
var Kr = $t(function(e) {
|
|
901
878
|
return function() {
|
|
902
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
903
880
|
};
|
|
904
|
-
}),
|
|
905
|
-
|
|
881
|
+
}), Ft = function(e) {
|
|
882
|
+
ie(t, e);
|
|
906
883
|
function t() {
|
|
907
884
|
var r = e.call(this) || this;
|
|
908
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
909
886
|
}
|
|
910
887
|
return t.prototype.lift = function(r) {
|
|
911
|
-
var n = new
|
|
888
|
+
var n = new ht(this, this);
|
|
912
889
|
return n.operator = r, n;
|
|
913
890
|
}, t.prototype._throwIfClosed = function() {
|
|
914
891
|
if (this.closed)
|
|
915
|
-
throw new
|
|
892
|
+
throw new Kr();
|
|
916
893
|
}, t.prototype.next = function(r) {
|
|
917
894
|
var n = this;
|
|
918
|
-
|
|
895
|
+
fe(function() {
|
|
919
896
|
var i, o;
|
|
920
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
921
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
922
899
|
try {
|
|
923
|
-
for (var s =
|
|
900
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
924
901
|
var l = a.value;
|
|
925
902
|
l.next(r);
|
|
926
903
|
}
|
|
@@ -938,7 +915,7 @@ var Jr = Nt(function(e) {
|
|
|
938
915
|
});
|
|
939
916
|
}, t.prototype.error = function(r) {
|
|
940
917
|
var n = this;
|
|
941
|
-
|
|
918
|
+
fe(function() {
|
|
942
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
943
920
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
944
921
|
for (var i = n.observers; i.length; )
|
|
@@ -947,7 +924,7 @@ var Jr = Nt(function(e) {
|
|
|
947
924
|
});
|
|
948
925
|
}, t.prototype.complete = function() {
|
|
949
926
|
var r = this;
|
|
950
|
-
|
|
927
|
+
fe(function() {
|
|
951
928
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
952
929
|
r.isStopped = !0;
|
|
953
930
|
for (var n = r.observers; n.length; )
|
|
@@ -969,20 +946,20 @@ var Jr = Nt(function(e) {
|
|
|
969
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
970
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
971
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
972
|
-
return o || s ?
|
|
973
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
950
|
+
n.currentObservers = null, Fe(a, r);
|
|
974
951
|
}));
|
|
975
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
976
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
977
954
|
i ? r.error(o) : s && r.complete();
|
|
978
955
|
}, t.prototype.asObservable = function() {
|
|
979
|
-
var r = new
|
|
956
|
+
var r = new ut();
|
|
980
957
|
return r.source = this, r;
|
|
981
958
|
}, t.create = function(r, n) {
|
|
982
|
-
return new
|
|
959
|
+
return new ht(r, n);
|
|
983
960
|
}, t;
|
|
984
|
-
}(
|
|
985
|
-
|
|
961
|
+
}(ut), ht = function(e) {
|
|
962
|
+
ie(t, e);
|
|
986
963
|
function t(r, n) {
|
|
987
964
|
var i = e.call(this) || this;
|
|
988
965
|
return i.destination = r, i.source = n, i;
|
|
@@ -998,17 +975,17 @@ var Jr = Nt(function(e) {
|
|
|
998
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
999
976
|
}, t.prototype._subscribe = function(r) {
|
|
1000
977
|
var n, i;
|
|
1001
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
1002
979
|
}, t;
|
|
1003
|
-
}(
|
|
980
|
+
}(Ft), jt = {
|
|
1004
981
|
now: function() {
|
|
1005
|
-
return (
|
|
982
|
+
return (jt.delegate || Date).now();
|
|
1006
983
|
},
|
|
1007
984
|
delegate: void 0
|
|
1008
|
-
},
|
|
1009
|
-
|
|
985
|
+
}, en = function(e) {
|
|
986
|
+
ie(t, e);
|
|
1010
987
|
function t(r, n, i) {
|
|
1011
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
1012
989
|
var o = e.call(this) || this;
|
|
1013
990
|
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;
|
|
1014
991
|
}
|
|
@@ -1028,24 +1005,24 @@ var Jr = Nt(function(e) {
|
|
|
1028
1005
|
u && o.splice(0, u + 1);
|
|
1029
1006
|
}
|
|
1030
1007
|
}, t;
|
|
1031
|
-
}(
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const r = new
|
|
1035
|
-
|
|
1008
|
+
}(Ft);
|
|
1009
|
+
const ct = [], ft = {}, tn = (e, t = 0) => {
|
|
1010
|
+
if (ct.indexOf(e) == -1) {
|
|
1011
|
+
const r = new en(t);
|
|
1012
|
+
ft[e] = r, ct.push(e);
|
|
1036
1013
|
}
|
|
1037
|
-
return
|
|
1014
|
+
return ft[e];
|
|
1038
1015
|
}, D = [];
|
|
1039
|
-
function
|
|
1016
|
+
function rn(e, t) {
|
|
1040
1017
|
return {
|
|
1041
|
-
subscribe:
|
|
1018
|
+
subscribe: _e(e, t).subscribe
|
|
1042
1019
|
};
|
|
1043
1020
|
}
|
|
1044
|
-
function
|
|
1021
|
+
function _e(e, t = N) {
|
|
1045
1022
|
let r;
|
|
1046
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1047
1024
|
function i(a) {
|
|
1048
|
-
if (
|
|
1025
|
+
if (It(e, a) && (e = a, r)) {
|
|
1049
1026
|
const l = !D.length;
|
|
1050
1027
|
for (const u of n)
|
|
1051
1028
|
u[1](), D.push(u, e);
|
|
@@ -1067,145 +1044,184 @@ function ve(e, t = N) {
|
|
|
1067
1044
|
}
|
|
1068
1045
|
return { set: i, update: o, subscribe: s };
|
|
1069
1046
|
}
|
|
1070
|
-
function
|
|
1047
|
+
function Q(e, t, r) {
|
|
1071
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1072
1049
|
if (!i.every(Boolean))
|
|
1073
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1074
1051
|
const o = t.length < 2;
|
|
1075
|
-
return
|
|
1052
|
+
return rn(r, (s, a) => {
|
|
1076
1053
|
let l = !1;
|
|
1077
1054
|
const u = [];
|
|
1078
|
-
let h = 0,
|
|
1079
|
-
const
|
|
1055
|
+
let h = 0, c = N;
|
|
1056
|
+
const f = () => {
|
|
1080
1057
|
if (h)
|
|
1081
1058
|
return;
|
|
1082
|
-
|
|
1083
|
-
const
|
|
1084
|
-
o ? s(
|
|
1085
|
-
},
|
|
1086
|
-
(
|
|
1087
|
-
|
|
1088
|
-
(
|
|
1089
|
-
u[
|
|
1059
|
+
c();
|
|
1060
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(v) : c = qe(v) ? v : N;
|
|
1062
|
+
}, m = i.map(
|
|
1063
|
+
(v, d) => Mt(
|
|
1064
|
+
v,
|
|
1065
|
+
(S) => {
|
|
1066
|
+
u[d] = S, h &= ~(1 << d), l && f();
|
|
1090
1067
|
},
|
|
1091
1068
|
() => {
|
|
1092
|
-
h |= 1 <<
|
|
1069
|
+
h |= 1 << d;
|
|
1093
1070
|
}
|
|
1094
1071
|
)
|
|
1095
1072
|
);
|
|
1096
|
-
return l = !0,
|
|
1097
|
-
|
|
1073
|
+
return l = !0, f(), function() {
|
|
1074
|
+
z(m), c(), l = !1;
|
|
1098
1075
|
};
|
|
1099
1076
|
});
|
|
1100
1077
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1078
|
+
function nn(e) {
|
|
1079
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1103
1080
|
}
|
|
1104
|
-
var
|
|
1105
|
-
return
|
|
1081
|
+
var on = function(t) {
|
|
1082
|
+
return sn(t) && !an(t);
|
|
1106
1083
|
};
|
|
1107
|
-
function
|
|
1084
|
+
function sn(e) {
|
|
1108
1085
|
return !!e && typeof e == "object";
|
|
1109
1086
|
}
|
|
1110
|
-
function
|
|
1087
|
+
function an(e) {
|
|
1111
1088
|
var t = Object.prototype.toString.call(e);
|
|
1112
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1113
1090
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1116
|
-
return e.$$typeof ===
|
|
1091
|
+
var un = typeof Symbol == "function" && Symbol.for, ln = un ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function hn(e) {
|
|
1093
|
+
return e.$$typeof === ln;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1095
|
+
function cn(e) {
|
|
1119
1096
|
return Array.isArray(e) ? [] : {};
|
|
1120
1097
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function te(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(cn(e), e, t) : e;
|
|
1123
1100
|
}
|
|
1124
|
-
function
|
|
1101
|
+
function fn(e, t, r) {
|
|
1125
1102
|
return e.concat(t).map(function(n) {
|
|
1126
|
-
return
|
|
1103
|
+
return te(n, r);
|
|
1127
1104
|
});
|
|
1128
1105
|
}
|
|
1129
|
-
function
|
|
1106
|
+
function mn(e, t) {
|
|
1130
1107
|
if (!t.customMerge)
|
|
1131
|
-
return
|
|
1108
|
+
return k;
|
|
1132
1109
|
var r = t.customMerge(e);
|
|
1133
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : k;
|
|
1134
1111
|
}
|
|
1135
|
-
function
|
|
1112
|
+
function pn(e) {
|
|
1136
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1137
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1138
1115
|
}) : [];
|
|
1139
1116
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function mt(e) {
|
|
1118
|
+
return Object.keys(e).concat(pn(e));
|
|
1142
1119
|
}
|
|
1143
|
-
function
|
|
1120
|
+
function kt(e, t) {
|
|
1144
1121
|
try {
|
|
1145
1122
|
return t in e;
|
|
1146
1123
|
} catch {
|
|
1147
1124
|
return !1;
|
|
1148
1125
|
}
|
|
1149
1126
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1127
|
+
function dn(e, t) {
|
|
1128
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1152
1129
|
}
|
|
1153
|
-
function
|
|
1130
|
+
function bn(e, t, r) {
|
|
1154
1131
|
var n = {};
|
|
1155
|
-
return r.isMergeableObject(e) &&
|
|
1156
|
-
n[i] =
|
|
1157
|
-
}),
|
|
1158
|
-
|
|
1132
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = te(e[i], r);
|
|
1134
|
+
}), mt(t).forEach(function(i) {
|
|
1135
|
+
dn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1159
1136
|
}), n;
|
|
1160
1137
|
}
|
|
1161
|
-
function
|
|
1162
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
function k(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = te;
|
|
1163
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1164
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : te(t, r);
|
|
1165
1142
|
}
|
|
1166
|
-
|
|
1143
|
+
k.all = function(t, r) {
|
|
1167
1144
|
if (!Array.isArray(t))
|
|
1168
1145
|
throw new Error("first argument should be an array");
|
|
1169
1146
|
return t.reduce(function(n, i) {
|
|
1170
|
-
return
|
|
1147
|
+
return k(n, i, r);
|
|
1171
1148
|
}, {});
|
|
1172
1149
|
};
|
|
1173
|
-
var
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1176
|
-
|
|
1150
|
+
var gn = k, vn = gn;
|
|
1151
|
+
const yn = /* @__PURE__ */ nn(vn);
|
|
1152
|
+
var ke = function(e, t) {
|
|
1153
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1154
|
+
r.__proto__ = n;
|
|
1155
|
+
} || function(r, n) {
|
|
1156
|
+
for (var i in n)
|
|
1157
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1158
|
+
}, ke(e, t);
|
|
1159
|
+
};
|
|
1160
|
+
function xe(e, t) {
|
|
1161
|
+
if (typeof t != "function" && t !== null)
|
|
1162
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1163
|
+
ke(e, t);
|
|
1164
|
+
function r() {
|
|
1165
|
+
this.constructor = e;
|
|
1166
|
+
}
|
|
1167
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1168
|
+
}
|
|
1169
|
+
var M = function() {
|
|
1170
|
+
return M = Object.assign || function(t) {
|
|
1171
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1172
|
+
r = arguments[n];
|
|
1173
|
+
for (var o in r)
|
|
1174
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1175
|
+
}
|
|
1176
|
+
return t;
|
|
1177
|
+
}, M.apply(this, arguments);
|
|
1178
|
+
};
|
|
1179
|
+
function _n(e, t) {
|
|
1180
|
+
var r = {};
|
|
1181
|
+
for (var n in e)
|
|
1182
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1183
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1184
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1185
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1186
|
+
return r;
|
|
1187
|
+
}
|
|
1188
|
+
function Ae(e, t, r) {
|
|
1189
|
+
if (r || arguments.length === 2)
|
|
1190
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1191
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1192
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1193
|
+
}
|
|
1194
|
+
function Be(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1177
1196
|
return i(e, {
|
|
1178
1197
|
cache: r,
|
|
1179
1198
|
serializer: n
|
|
1180
1199
|
});
|
|
1181
1200
|
}
|
|
1182
|
-
function
|
|
1201
|
+
function xn(e) {
|
|
1183
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1184
1203
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1204
|
+
function En(e, t, r, n) {
|
|
1205
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1187
1206
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1188
1207
|
}
|
|
1189
|
-
function
|
|
1208
|
+
function Vt(e, t, r) {
|
|
1190
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1191
1210
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1192
1211
|
}
|
|
1193
|
-
function
|
|
1212
|
+
function Xt(e, t, r, n, i) {
|
|
1194
1213
|
return r.bind(t, e, n, i);
|
|
1195
1214
|
}
|
|
1196
|
-
function
|
|
1197
|
-
var r = e.length === 1 ?
|
|
1198
|
-
return
|
|
1199
|
-
}
|
|
1200
|
-
function vn(e, t) {
|
|
1201
|
-
return Qe(e, this, Ft, t.cache.create(), t.serializer);
|
|
1215
|
+
function Sn(e, t) {
|
|
1216
|
+
var r = e.length === 1 ? En : Vt;
|
|
1217
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1202
1218
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1219
|
+
function wn(e, t) {
|
|
1220
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1205
1221
|
}
|
|
1206
|
-
var
|
|
1222
|
+
var Tn = function() {
|
|
1207
1223
|
return JSON.stringify(arguments);
|
|
1208
|
-
},
|
|
1224
|
+
}, Hn = (
|
|
1209
1225
|
/** @class */
|
|
1210
1226
|
function() {
|
|
1211
1227
|
function e() {
|
|
@@ -1217,62 +1233,71 @@ var _n = function() {
|
|
|
1217
1233
|
this.cache[t] = r;
|
|
1218
1234
|
}, e;
|
|
1219
1235
|
}()
|
|
1220
|
-
),
|
|
1236
|
+
), An = {
|
|
1221
1237
|
create: function() {
|
|
1222
|
-
return new
|
|
1238
|
+
return new Hn();
|
|
1223
1239
|
}
|
|
1224
|
-
},
|
|
1225
|
-
variadic:
|
|
1226
|
-
|
|
1227
|
-
|
|
1240
|
+
}, Ce = {
|
|
1241
|
+
variadic: wn
|
|
1242
|
+
}, de = function() {
|
|
1243
|
+
return de = Object.assign || function(t) {
|
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1245
|
+
r = arguments[n];
|
|
1246
|
+
for (var o in r)
|
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1248
|
+
}
|
|
1249
|
+
return t;
|
|
1250
|
+
}, de.apply(this, arguments);
|
|
1251
|
+
};
|
|
1252
|
+
var p;
|
|
1228
1253
|
(function(e) {
|
|
1229
1254
|
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";
|
|
1230
|
-
})(
|
|
1231
|
-
var
|
|
1255
|
+
})(p || (p = {}));
|
|
1256
|
+
var E;
|
|
1232
1257
|
(function(e) {
|
|
1233
1258
|
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";
|
|
1234
|
-
})(
|
|
1235
|
-
var
|
|
1259
|
+
})(E || (E = {}));
|
|
1260
|
+
var V;
|
|
1236
1261
|
(function(e) {
|
|
1237
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1238
|
-
})(
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1263
|
+
})(V || (V = {}));
|
|
1264
|
+
function pt(e) {
|
|
1265
|
+
return e.type === E.literal;
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1267
|
+
function Bn(e) {
|
|
1268
|
+
return e.type === E.argument;
|
|
1244
1269
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1270
|
+
function Wt(e) {
|
|
1271
|
+
return e.type === E.number;
|
|
1247
1272
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1273
|
+
function zt(e) {
|
|
1274
|
+
return e.type === E.date;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1276
|
+
function Zt(e) {
|
|
1277
|
+
return e.type === E.time;
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1279
|
+
function Qt(e) {
|
|
1280
|
+
return e.type === E.select;
|
|
1256
1281
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1282
|
+
function Jt(e) {
|
|
1283
|
+
return e.type === E.plural;
|
|
1259
1284
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1285
|
+
function Cn(e) {
|
|
1286
|
+
return e.type === E.pound;
|
|
1262
1287
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1288
|
+
function Yt(e) {
|
|
1289
|
+
return e.type === E.tag;
|
|
1265
1290
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function qt(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1268
1293
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1294
|
+
function Ve(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1271
1296
|
}
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1297
|
+
var Kt = /[ \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;
|
|
1298
|
+
function On(e) {
|
|
1274
1299
|
var t = {};
|
|
1275
|
-
return e.replace(
|
|
1300
|
+
return e.replace(Pn, function(r) {
|
|
1276
1301
|
var n = r.length;
|
|
1277
1302
|
switch (r[0]) {
|
|
1278
1303
|
case "G":
|
|
@@ -1361,36 +1386,46 @@ function Bn(e) {
|
|
|
1361
1386
|
return "";
|
|
1362
1387
|
}), t;
|
|
1363
1388
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1389
|
+
var w = function() {
|
|
1390
|
+
return w = Object.assign || function(t) {
|
|
1391
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1392
|
+
r = arguments[n];
|
|
1393
|
+
for (var o in r)
|
|
1394
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1395
|
+
}
|
|
1396
|
+
return t;
|
|
1397
|
+
}, w.apply(this, arguments);
|
|
1398
|
+
};
|
|
1399
|
+
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
+
function Mn(e) {
|
|
1366
1401
|
if (e.length === 0)
|
|
1367
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1368
|
-
for (var t = e.split(
|
|
1369
|
-
return
|
|
1403
|
+
for (var t = e.split(In).filter(function(f) {
|
|
1404
|
+
return f.length > 0;
|
|
1370
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1371
1406
|
var o = i[n], s = o.split("/");
|
|
1372
1407
|
if (s.length === 0)
|
|
1373
1408
|
throw new Error("Invalid number skeleton");
|
|
1374
1409
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1410
|
+
var c = h[u];
|
|
1411
|
+
if (c.length === 0)
|
|
1377
1412
|
throw new Error("Invalid number skeleton");
|
|
1378
1413
|
}
|
|
1379
1414
|
r.push({ stem: a, options: l });
|
|
1380
1415
|
}
|
|
1381
1416
|
return r;
|
|
1382
1417
|
}
|
|
1383
|
-
function
|
|
1418
|
+
function Nn(e) {
|
|
1384
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1385
1420
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1421
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1422
|
+
function bt(e) {
|
|
1388
1423
|
var t = {};
|
|
1389
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1424
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1390
1425
|
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)), "";
|
|
1391
1426
|
}), t;
|
|
1392
1427
|
}
|
|
1393
|
-
function
|
|
1428
|
+
function rr(e) {
|
|
1394
1429
|
switch (e) {
|
|
1395
1430
|
case "sign-auto":
|
|
1396
1431
|
return {
|
|
@@ -1430,7 +1465,7 @@ function qt(e) {
|
|
|
1430
1465
|
};
|
|
1431
1466
|
}
|
|
1432
1467
|
}
|
|
1433
|
-
function
|
|
1468
|
+
function Rn(e) {
|
|
1434
1469
|
var t;
|
|
1435
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1436
1471
|
notation: "engineering"
|
|
@@ -1438,17 +1473,17 @@ function In(e) {
|
|
|
1438
1473
|
notation: "scientific"
|
|
1439
1474
|
}, e = e.slice(1)), t) {
|
|
1440
1475
|
var r = e.slice(0, 2);
|
|
1441
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1476
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1442
1477
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1443
1478
|
t.minimumIntegerDigits = e.length;
|
|
1444
1479
|
}
|
|
1445
1480
|
return t;
|
|
1446
1481
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var t = {}, r =
|
|
1482
|
+
function gt(e) {
|
|
1483
|
+
var t = {}, r = rr(e);
|
|
1449
1484
|
return r || t;
|
|
1450
1485
|
}
|
|
1451
|
-
function
|
|
1486
|
+
function $n(e) {
|
|
1452
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1453
1488
|
var i = n[r];
|
|
1454
1489
|
switch (i.stem) {
|
|
@@ -1472,7 +1507,7 @@ function Nn(e) {
|
|
|
1472
1507
|
continue;
|
|
1473
1508
|
case "measure-unit":
|
|
1474
1509
|
case "unit":
|
|
1475
|
-
t.style = "unit", t.unit =
|
|
1510
|
+
t.style = "unit", t.unit = Nn(i.options[0]);
|
|
1476
1511
|
continue;
|
|
1477
1512
|
case "compact-short":
|
|
1478
1513
|
case "K":
|
|
@@ -1483,13 +1518,13 @@ function Nn(e) {
|
|
|
1483
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1484
1519
|
continue;
|
|
1485
1520
|
case "scientific":
|
|
1486
|
-
t =
|
|
1487
|
-
return
|
|
1521
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1522
|
+
return w(w({}, l), gt(u));
|
|
1488
1523
|
}, {}));
|
|
1489
1524
|
continue;
|
|
1490
1525
|
case "engineering":
|
|
1491
|
-
t =
|
|
1492
|
-
return
|
|
1526
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1527
|
+
return w(w({}, l), gt(u));
|
|
1493
1528
|
}, {}));
|
|
1494
1529
|
continue;
|
|
1495
1530
|
case "notation-simple":
|
|
@@ -1534,41 +1569,41 @@ function Nn(e) {
|
|
|
1534
1569
|
case "integer-width":
|
|
1535
1570
|
if (i.options.length > 1)
|
|
1536
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1537
|
-
i.options[0].replace(
|
|
1572
|
+
i.options[0].replace(Ln, function(l, u, h, c, f, m) {
|
|
1538
1573
|
if (u)
|
|
1539
1574
|
t.minimumIntegerDigits = h.length;
|
|
1540
1575
|
else {
|
|
1541
|
-
if (
|
|
1576
|
+
if (c && f)
|
|
1542
1577
|
throw new Error("We currently do not support maximum integer digits");
|
|
1543
|
-
if (
|
|
1578
|
+
if (m)
|
|
1544
1579
|
throw new Error("We currently do not support exact integer digits");
|
|
1545
1580
|
}
|
|
1546
1581
|
return "";
|
|
1547
1582
|
});
|
|
1548
1583
|
continue;
|
|
1549
1584
|
}
|
|
1550
|
-
if (
|
|
1585
|
+
if (tr.test(i.stem)) {
|
|
1551
1586
|
t.minimumIntegerDigits = i.stem.length;
|
|
1552
1587
|
continue;
|
|
1553
1588
|
}
|
|
1554
|
-
if (
|
|
1589
|
+
if (dt.test(i.stem)) {
|
|
1555
1590
|
if (i.options.length > 1)
|
|
1556
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1557
|
-
i.stem.replace(
|
|
1558
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1592
|
+
i.stem.replace(dt, function(l, u, h, c, f, m) {
|
|
1593
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1559
1594
|
});
|
|
1560
1595
|
var o = i.options[0];
|
|
1561
|
-
o === "w" ? t =
|
|
1596
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), bt(o)));
|
|
1562
1597
|
continue;
|
|
1563
1598
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
t =
|
|
1599
|
+
if (er.test(i.stem)) {
|
|
1600
|
+
t = w(w({}, t), bt(i.stem));
|
|
1566
1601
|
continue;
|
|
1567
1602
|
}
|
|
1568
|
-
var s =
|
|
1569
|
-
s && (t =
|
|
1570
|
-
var a =
|
|
1571
|
-
a && (t =
|
|
1603
|
+
var s = rr(i.stem);
|
|
1604
|
+
s && (t = w(w({}, t), s));
|
|
1605
|
+
var a = Rn(i.stem);
|
|
1606
|
+
a && (t = w(w({}, t), a));
|
|
1572
1607
|
}
|
|
1573
1608
|
return t;
|
|
1574
1609
|
}
|
|
@@ -2987,13 +3022,13 @@ var le = {
|
|
|
2987
3022
|
"h"
|
|
2988
3023
|
]
|
|
2989
3024
|
};
|
|
2990
|
-
function
|
|
3025
|
+
function Gn(e, t) {
|
|
2991
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2992
3027
|
var i = e.charAt(n);
|
|
2993
3028
|
if (i === "j") {
|
|
2994
3029
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2995
3030
|
o++, n++;
|
|
2996
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3031
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Un(t);
|
|
2997
3032
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2998
3033
|
r += l;
|
|
2999
3034
|
for (; s-- > 0; )
|
|
@@ -3003,7 +3038,7 @@ function Mn(e, t) {
|
|
|
3003
3038
|
}
|
|
3004
3039
|
return r;
|
|
3005
3040
|
}
|
|
3006
|
-
function
|
|
3041
|
+
function Un(e) {
|
|
3007
3042
|
var t = e.hourCycle;
|
|
3008
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3009
3044
|
e.hourCycles && // @ts-ignore
|
|
@@ -3025,20 +3060,20 @@ function Ln(e) {
|
|
|
3025
3060
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3026
3061
|
return i[0];
|
|
3027
3062
|
}
|
|
3028
|
-
var
|
|
3063
|
+
var Pe, Dn = new RegExp("^".concat(Kt.source, "*")), Fn = new RegExp("".concat(Kt.source, "*$"));
|
|
3029
3064
|
function g(e, t) {
|
|
3030
3065
|
return { start: e, end: t };
|
|
3031
3066
|
}
|
|
3032
|
-
var
|
|
3067
|
+
var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Zn = !!Number.isSafeInteger, Qn = Zn ? Number.isSafeInteger : function(e) {
|
|
3033
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3034
|
-
},
|
|
3069
|
+
}, Xe = !0;
|
|
3035
3070
|
try {
|
|
3036
|
-
var
|
|
3037
|
-
|
|
3071
|
+
var Jn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
+
Xe = ((Pe = Jn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3038
3073
|
} catch {
|
|
3039
|
-
|
|
3074
|
+
Xe = !1;
|
|
3040
3075
|
}
|
|
3041
|
-
var
|
|
3076
|
+
var vt = jn ? (
|
|
3042
3077
|
// Native
|
|
3043
3078
|
function(t, r, n) {
|
|
3044
3079
|
return t.startsWith(r, n);
|
|
@@ -3048,7 +3083,7 @@ var mt = Gn ? (
|
|
|
3048
3083
|
function(t, r, n) {
|
|
3049
3084
|
return t.slice(n, n + r.length) === r;
|
|
3050
3085
|
}
|
|
3051
|
-
),
|
|
3086
|
+
), We = kn ? String.fromCodePoint : (
|
|
3052
3087
|
// IE11
|
|
3053
3088
|
function() {
|
|
3054
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3060,9 +3095,9 @@ var mt = Gn ? (
|
|
|
3060
3095
|
}
|
|
3061
3096
|
return n;
|
|
3062
3097
|
}
|
|
3063
|
-
),
|
|
3098
|
+
), yt = (
|
|
3064
3099
|
// native
|
|
3065
|
-
|
|
3100
|
+
Vn ? Object.fromEntries : (
|
|
3066
3101
|
// Ponyfill
|
|
3067
3102
|
function(t) {
|
|
3068
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3072,7 +3107,7 @@ var mt = Gn ? (
|
|
|
3072
3107
|
return r;
|
|
3073
3108
|
}
|
|
3074
3109
|
)
|
|
3075
|
-
),
|
|
3110
|
+
), nr = Xn ? (
|
|
3076
3111
|
// Native
|
|
3077
3112
|
function(t, r) {
|
|
3078
3113
|
return t.codePointAt(r);
|
|
@@ -3086,7 +3121,7 @@ var mt = Gn ? (
|
|
|
3086
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3087
3122
|
}
|
|
3088
3123
|
}
|
|
3089
|
-
),
|
|
3124
|
+
), Yn = Wn ? (
|
|
3090
3125
|
// Native
|
|
3091
3126
|
function(t) {
|
|
3092
3127
|
return t.trimStart();
|
|
@@ -3094,9 +3129,9 @@ var mt = Gn ? (
|
|
|
3094
3129
|
) : (
|
|
3095
3130
|
// Ponyfill
|
|
3096
3131
|
function(t) {
|
|
3097
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Dn, "");
|
|
3098
3133
|
}
|
|
3099
|
-
),
|
|
3134
|
+
), qn = zn ? (
|
|
3100
3135
|
// Native
|
|
3101
3136
|
function(t) {
|
|
3102
3137
|
return t.trimEnd();
|
|
@@ -3104,32 +3139,32 @@ var mt = Gn ? (
|
|
|
3104
3139
|
) : (
|
|
3105
3140
|
// Ponyfill
|
|
3106
3141
|
function(t) {
|
|
3107
|
-
return t.replace(
|
|
3142
|
+
return t.replace(Fn, "");
|
|
3108
3143
|
}
|
|
3109
3144
|
);
|
|
3110
|
-
function
|
|
3145
|
+
function ir(e, t) {
|
|
3111
3146
|
return new RegExp(e, t);
|
|
3112
3147
|
}
|
|
3113
|
-
var
|
|
3114
|
-
if (
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3148
|
+
var ze;
|
|
3149
|
+
if (Xe) {
|
|
3150
|
+
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3151
|
+
ze = function(t, r) {
|
|
3117
3152
|
var n;
|
|
3118
|
-
|
|
3119
|
-
var i =
|
|
3153
|
+
_t.lastIndex = r;
|
|
3154
|
+
var i = _t.exec(t);
|
|
3120
3155
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3121
3156
|
};
|
|
3122
3157
|
} else
|
|
3123
|
-
|
|
3158
|
+
ze = function(t, r) {
|
|
3124
3159
|
for (var n = []; ; ) {
|
|
3125
|
-
var i =
|
|
3126
|
-
if (i === void 0 ||
|
|
3160
|
+
var i = nr(t, r);
|
|
3161
|
+
if (i === void 0 || or(i) || ri(i))
|
|
3127
3162
|
break;
|
|
3128
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3129
3164
|
}
|
|
3130
|
-
return
|
|
3165
|
+
return We.apply(void 0, n);
|
|
3131
3166
|
};
|
|
3132
|
-
var
|
|
3167
|
+
var Kn = (
|
|
3133
3168
|
/** @class */
|
|
3134
3169
|
function() {
|
|
3135
3170
|
function e(t, r) {
|
|
@@ -3153,14 +3188,14 @@ var Qn = (
|
|
|
3153
3188
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3154
3189
|
var a = this.clonePosition();
|
|
3155
3190
|
this.bump(), i.push({
|
|
3156
|
-
type:
|
|
3191
|
+
type: E.pound,
|
|
3157
3192
|
location: g(a, this.clonePosition())
|
|
3158
3193
|
});
|
|
3159
3194
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3160
3195
|
if (n)
|
|
3161
3196
|
break;
|
|
3162
|
-
return this.error(
|
|
3163
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3197
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3198
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3164
3199
|
var s = this.parseTag(t, r);
|
|
3165
3200
|
if (s.err)
|
|
3166
3201
|
return s;
|
|
@@ -3181,7 +3216,7 @@ var Qn = (
|
|
|
3181
3216
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3182
3217
|
return {
|
|
3183
3218
|
val: {
|
|
3184
|
-
type:
|
|
3219
|
+
type: E.literal,
|
|
3185
3220
|
value: "<".concat(i, "/>"),
|
|
3186
3221
|
location: g(n, this.clonePosition())
|
|
3187
3222
|
},
|
|
@@ -3193,25 +3228,25 @@ var Qn = (
|
|
|
3193
3228
|
return o;
|
|
3194
3229
|
var s = o.val, a = this.clonePosition();
|
|
3195
3230
|
if (this.bumpIf("</")) {
|
|
3196
|
-
if (this.isEOF() || !
|
|
3197
|
-
return this.error(
|
|
3231
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3232
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
3198
3233
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3199
|
-
return i !== u ? this.error(
|
|
3234
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3200
3235
|
val: {
|
|
3201
|
-
type:
|
|
3236
|
+
type: E.tag,
|
|
3202
3237
|
value: i,
|
|
3203
3238
|
children: s,
|
|
3204
3239
|
location: g(n, this.clonePosition())
|
|
3205
3240
|
},
|
|
3206
3241
|
err: null
|
|
3207
|
-
} : this.error(
|
|
3242
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
3208
3243
|
} else
|
|
3209
|
-
return this.error(
|
|
3244
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3210
3245
|
} else
|
|
3211
|
-
return this.error(
|
|
3246
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
3212
3247
|
}, e.prototype.parseTagName = function() {
|
|
3213
3248
|
var t = this.offset();
|
|
3214
|
-
for (this.bump(); !this.isEOF() &&
|
|
3249
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
3215
3250
|
this.bump();
|
|
3216
3251
|
return this.message.slice(t, this.offset());
|
|
3217
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3235,12 +3270,12 @@ var Qn = (
|
|
|
3235
3270
|
}
|
|
3236
3271
|
var l = g(n, this.clonePosition());
|
|
3237
3272
|
return {
|
|
3238
|
-
val: { type:
|
|
3273
|
+
val: { type: E.literal, value: i, location: l },
|
|
3239
3274
|
err: null
|
|
3240
3275
|
};
|
|
3241
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3242
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3243
|
-
!
|
|
3278
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3244
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3245
3280
|
if (this.isEOF() || this.char() !== 39)
|
|
3246
3281
|
return null;
|
|
@@ -3274,28 +3309,28 @@ var Qn = (
|
|
|
3274
3309
|
r.push(n);
|
|
3275
3310
|
this.bump();
|
|
3276
3311
|
}
|
|
3277
|
-
return
|
|
3312
|
+
return We.apply(void 0, r);
|
|
3278
3313
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3279
3314
|
if (this.isEOF())
|
|
3280
3315
|
return null;
|
|
3281
3316
|
var n = this.char();
|
|
3282
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3317
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
|
|
3283
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3284
3319
|
var n = this.clonePosition();
|
|
3285
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3286
|
-
return this.error(
|
|
3321
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3287
3322
|
if (this.char() === 125)
|
|
3288
|
-
return this.bump(), this.error(
|
|
3323
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3289
3324
|
var i = this.parseIdentifierIfPossible().value;
|
|
3290
3325
|
if (!i)
|
|
3291
|
-
return this.error(
|
|
3326
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3292
3327
|
if (this.bumpSpace(), this.isEOF())
|
|
3293
|
-
return this.error(
|
|
3328
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3294
3329
|
switch (this.char()) {
|
|
3295
3330
|
case 125:
|
|
3296
3331
|
return this.bump(), {
|
|
3297
3332
|
val: {
|
|
3298
|
-
type:
|
|
3333
|
+
type: E.argument,
|
|
3299
3334
|
// value does not include the opening and closing braces.
|
|
3300
3335
|
value: i,
|
|
3301
3336
|
location: g(n, this.clonePosition())
|
|
@@ -3303,12 +3338,12 @@ var Qn = (
|
|
|
3303
3338
|
err: null
|
|
3304
3339
|
};
|
|
3305
3340
|
case 44:
|
|
3306
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3341
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3307
3342
|
default:
|
|
3308
|
-
return this.error(
|
|
3343
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3309
3344
|
}
|
|
3310
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3311
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3346
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3312
3347
|
this.bumpTo(i);
|
|
3313
3348
|
var o = this.clonePosition(), s = g(t, o);
|
|
3314
3349
|
return { value: n, location: s };
|
|
@@ -3316,7 +3351,7 @@ var Qn = (
|
|
|
3316
3351
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3317
3352
|
switch (a) {
|
|
3318
3353
|
case "":
|
|
3319
|
-
return this.error(
|
|
3354
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3320
3355
|
case "number":
|
|
3321
3356
|
case "date":
|
|
3322
3357
|
case "time": {
|
|
@@ -3324,49 +3359,49 @@ var Qn = (
|
|
|
3324
3359
|
var u = null;
|
|
3325
3360
|
if (this.bumpIf(",")) {
|
|
3326
3361
|
this.bumpSpace();
|
|
3327
|
-
var h = this.clonePosition(),
|
|
3328
|
-
if (
|
|
3329
|
-
return
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return this.error(
|
|
3333
|
-
var
|
|
3334
|
-
u = { style:
|
|
3362
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3363
|
+
if (c.err)
|
|
3364
|
+
return c;
|
|
3365
|
+
var f = qn(c.val);
|
|
3366
|
+
if (f.length === 0)
|
|
3367
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3368
|
+
var m = g(h, this.clonePosition());
|
|
3369
|
+
u = { style: f, styleLocation: m };
|
|
3335
3370
|
}
|
|
3336
|
-
var
|
|
3337
|
-
if (
|
|
3338
|
-
return
|
|
3339
|
-
var
|
|
3340
|
-
if (u &&
|
|
3341
|
-
var
|
|
3371
|
+
var v = this.tryParseArgumentClose(i);
|
|
3372
|
+
if (v.err)
|
|
3373
|
+
return v;
|
|
3374
|
+
var d = g(i, this.clonePosition());
|
|
3375
|
+
if (u && vt(u?.style, "::", 0)) {
|
|
3376
|
+
var S = Yn(u.style.slice(2));
|
|
3342
3377
|
if (a === "number") {
|
|
3343
|
-
var
|
|
3344
|
-
return
|
|
3345
|
-
val: { type:
|
|
3378
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3379
|
+
return c.err ? c : {
|
|
3380
|
+
val: { type: E.number, value: n, location: d, style: c.val },
|
|
3346
3381
|
err: null
|
|
3347
3382
|
};
|
|
3348
3383
|
} else {
|
|
3349
|
-
if (
|
|
3350
|
-
return this.error(
|
|
3351
|
-
var P =
|
|
3352
|
-
this.locale && (P =
|
|
3353
|
-
var
|
|
3354
|
-
type:
|
|
3384
|
+
if (S.length === 0)
|
|
3385
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, d);
|
|
3386
|
+
var P = S;
|
|
3387
|
+
this.locale && (P = Gn(S, this.locale));
|
|
3388
|
+
var f = {
|
|
3389
|
+
type: V.dateTime,
|
|
3355
3390
|
pattern: P,
|
|
3356
3391
|
location: u.styleLocation,
|
|
3357
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3358
|
-
},
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? On(P) : {}
|
|
3393
|
+
}, H = a === "date" ? E.date : E.time;
|
|
3359
3394
|
return {
|
|
3360
|
-
val: { type:
|
|
3395
|
+
val: { type: H, value: n, location: d, style: f },
|
|
3361
3396
|
err: null
|
|
3362
3397
|
};
|
|
3363
3398
|
}
|
|
3364
3399
|
}
|
|
3365
3400
|
return {
|
|
3366
3401
|
val: {
|
|
3367
|
-
type: a === "number" ?
|
|
3402
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3368
3403
|
value: n,
|
|
3369
|
-
location:
|
|
3404
|
+
location: d,
|
|
3370
3405
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3371
3406
|
},
|
|
3372
3407
|
err: null
|
|
@@ -3377,39 +3412,39 @@ var Qn = (
|
|
|
3377
3412
|
case "select": {
|
|
3378
3413
|
var _ = this.clonePosition();
|
|
3379
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3380
|
-
return this.error(
|
|
3415
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, de({}, _)));
|
|
3381
3416
|
this.bumpSpace();
|
|
3382
|
-
var
|
|
3383
|
-
if (a !== "select" &&
|
|
3417
|
+
var x = this.parseIdentifierIfPossible(), y = 0;
|
|
3418
|
+
if (a !== "select" && x.value === "offset") {
|
|
3384
3419
|
if (!this.bumpIf(":"))
|
|
3385
|
-
return this.error(
|
|
3420
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3386
3421
|
this.bumpSpace();
|
|
3387
|
-
var
|
|
3388
|
-
if (
|
|
3389
|
-
return
|
|
3390
|
-
this.bumpSpace(),
|
|
3422
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3423
|
+
if (c.err)
|
|
3424
|
+
return c;
|
|
3425
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), y = c.val;
|
|
3391
3426
|
}
|
|
3392
|
-
var
|
|
3393
|
-
if (
|
|
3394
|
-
return
|
|
3395
|
-
var
|
|
3396
|
-
if (
|
|
3397
|
-
return
|
|
3427
|
+
var A = this.tryParsePluralOrSelectOptions(t, a, r, x);
|
|
3428
|
+
if (A.err)
|
|
3429
|
+
return A;
|
|
3430
|
+
var v = this.tryParseArgumentClose(i);
|
|
3431
|
+
if (v.err)
|
|
3432
|
+
return v;
|
|
3398
3433
|
var se = g(i, this.clonePosition());
|
|
3399
3434
|
return a === "select" ? {
|
|
3400
3435
|
val: {
|
|
3401
|
-
type:
|
|
3436
|
+
type: E.select,
|
|
3402
3437
|
value: n,
|
|
3403
|
-
options:
|
|
3438
|
+
options: yt(A.val),
|
|
3404
3439
|
location: se
|
|
3405
3440
|
},
|
|
3406
3441
|
err: null
|
|
3407
3442
|
} : {
|
|
3408
3443
|
val: {
|
|
3409
|
-
type:
|
|
3444
|
+
type: E.plural,
|
|
3410
3445
|
value: n,
|
|
3411
|
-
options:
|
|
3412
|
-
offset:
|
|
3446
|
+
options: yt(A.val),
|
|
3447
|
+
offset: y,
|
|
3413
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3414
3449
|
location: se
|
|
3415
3450
|
},
|
|
@@ -3417,10 +3452,10 @@ var Qn = (
|
|
|
3417
3452
|
};
|
|
3418
3453
|
}
|
|
3419
3454
|
default:
|
|
3420
|
-
return this.error(
|
|
3455
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3421
3456
|
}
|
|
3422
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3423
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3458
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3424
3459
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3425
3460
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3426
3461
|
var n = this.char();
|
|
@@ -3429,7 +3464,7 @@ var Qn = (
|
|
|
3429
3464
|
this.bump();
|
|
3430
3465
|
var i = this.clonePosition();
|
|
3431
3466
|
if (!this.bumpUntil("'"))
|
|
3432
|
-
return this.error(
|
|
3467
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3433
3468
|
this.bump();
|
|
3434
3469
|
break;
|
|
3435
3470
|
}
|
|
@@ -3459,52 +3494,52 @@ var Qn = (
|
|
|
3459
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3460
3495
|
var n = [];
|
|
3461
3496
|
try {
|
|
3462
|
-
n =
|
|
3497
|
+
n = Mn(t);
|
|
3463
3498
|
} catch {
|
|
3464
|
-
return this.error(
|
|
3499
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3465
3500
|
}
|
|
3466
3501
|
return {
|
|
3467
3502
|
val: {
|
|
3468
|
-
type:
|
|
3503
|
+
type: V.number,
|
|
3469
3504
|
tokens: n,
|
|
3470
3505
|
location: r,
|
|
3471
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3472
3507
|
},
|
|
3473
3508
|
err: null
|
|
3474
3509
|
};
|
|
3475
3510
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3476
3511
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3477
3512
|
if (u.length === 0) {
|
|
3478
|
-
var
|
|
3513
|
+
var c = this.clonePosition();
|
|
3479
3514
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3480
|
-
var
|
|
3481
|
-
if (
|
|
3482
|
-
return
|
|
3483
|
-
h = g(
|
|
3515
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3516
|
+
if (f.err)
|
|
3517
|
+
return f;
|
|
3518
|
+
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3484
3519
|
} else
|
|
3485
3520
|
break;
|
|
3486
3521
|
}
|
|
3487
3522
|
if (l.has(u))
|
|
3488
|
-
return this.error(r === "select" ?
|
|
3523
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3489
3524
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3490
|
-
var
|
|
3525
|
+
var m = this.clonePosition();
|
|
3491
3526
|
if (!this.bumpIf("{"))
|
|
3492
|
-
return this.error(r === "select" ?
|
|
3493
|
-
var
|
|
3494
|
-
if (
|
|
3495
|
-
return
|
|
3496
|
-
var
|
|
3497
|
-
if (
|
|
3498
|
-
return
|
|
3527
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3528
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3529
|
+
if (v.err)
|
|
3530
|
+
return v;
|
|
3531
|
+
var d = this.tryParseArgumentClose(m);
|
|
3532
|
+
if (d.err)
|
|
3533
|
+
return d;
|
|
3499
3534
|
a.push([
|
|
3500
3535
|
u,
|
|
3501
3536
|
{
|
|
3502
|
-
value:
|
|
3503
|
-
location: g(
|
|
3537
|
+
value: v.val,
|
|
3538
|
+
location: g(m, this.clonePosition())
|
|
3504
3539
|
}
|
|
3505
3540
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3506
3541
|
}
|
|
3507
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3508
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3509
3544
|
var n = 1, i = this.clonePosition();
|
|
3510
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3516,7 +3551,7 @@ var Qn = (
|
|
|
3516
3551
|
break;
|
|
3517
3552
|
}
|
|
3518
3553
|
var l = g(i, this.clonePosition());
|
|
3519
|
-
return o ? (s *= n,
|
|
3554
|
+
return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3520
3555
|
}, e.prototype.offset = function() {
|
|
3521
3556
|
return this.position.offset;
|
|
3522
3557
|
}, e.prototype.isEOF = function() {
|
|
@@ -3531,7 +3566,7 @@ var Qn = (
|
|
|
3531
3566
|
var t = this.position.offset;
|
|
3532
3567
|
if (t >= this.message.length)
|
|
3533
3568
|
throw Error("out of bound");
|
|
3534
|
-
var r =
|
|
3569
|
+
var r = nr(this.message, t);
|
|
3535
3570
|
if (r === void 0)
|
|
3536
3571
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3537
3572
|
return r;
|
|
@@ -3550,7 +3585,7 @@ var Qn = (
|
|
|
3550
3585
|
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);
|
|
3551
3586
|
}
|
|
3552
3587
|
}, e.prototype.bumpIf = function(t) {
|
|
3553
|
-
if (
|
|
3588
|
+
if (vt(this.message, t, this.offset())) {
|
|
3554
3589
|
for (var r = 0; r < t.length; r++)
|
|
3555
3590
|
this.bump();
|
|
3556
3591
|
return !0;
|
|
@@ -3572,7 +3607,7 @@ var Qn = (
|
|
|
3572
3607
|
break;
|
|
3573
3608
|
}
|
|
3574
3609
|
}, e.prototype.bumpSpace = function() {
|
|
3575
|
-
for (; !this.isEOF() &&
|
|
3610
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3576
3611
|
this.bump();
|
|
3577
3612
|
}, e.prototype.peek = function() {
|
|
3578
3613
|
if (this.isEOF())
|
|
@@ -3582,47 +3617,47 @@ var Qn = (
|
|
|
3582
3617
|
}, e;
|
|
3583
3618
|
}()
|
|
3584
3619
|
);
|
|
3585
|
-
function
|
|
3620
|
+
function Ze(e) {
|
|
3586
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3587
3622
|
}
|
|
3588
|
-
function
|
|
3589
|
-
return
|
|
3623
|
+
function ei(e) {
|
|
3624
|
+
return Ze(e) || e === 47;
|
|
3590
3625
|
}
|
|
3591
|
-
function
|
|
3626
|
+
function ti(e) {
|
|
3592
3627
|
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;
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3629
|
+
function or(e) {
|
|
3595
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3596
3631
|
}
|
|
3597
|
-
function
|
|
3632
|
+
function ri(e) {
|
|
3598
3633
|
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;
|
|
3599
3634
|
}
|
|
3600
|
-
function
|
|
3635
|
+
function Qe(e) {
|
|
3601
3636
|
e.forEach(function(t) {
|
|
3602
|
-
if (delete t.location,
|
|
3637
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3603
3638
|
for (var r in t.options)
|
|
3604
|
-
delete t.options[r].location,
|
|
3639
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3605
3640
|
else
|
|
3606
|
-
|
|
3641
|
+
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) && Ve(t.style) ? delete t.style.location : Yt(t) && Qe(t.children);
|
|
3607
3642
|
});
|
|
3608
3643
|
}
|
|
3609
|
-
function
|
|
3610
|
-
t === void 0 && (t = {}), t =
|
|
3611
|
-
var r = new
|
|
3644
|
+
function ni(e, t) {
|
|
3645
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
|
+
var r = new Kn(e, t).parse();
|
|
3612
3647
|
if (r.err) {
|
|
3613
|
-
var n = SyntaxError(
|
|
3648
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3614
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3615
3650
|
}
|
|
3616
|
-
return t?.captureLocation ||
|
|
3651
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3617
3652
|
}
|
|
3618
|
-
var
|
|
3653
|
+
var X;
|
|
3619
3654
|
(function(e) {
|
|
3620
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3621
|
-
})(
|
|
3622
|
-
var
|
|
3656
|
+
})(X || (X = {}));
|
|
3657
|
+
var Ee = (
|
|
3623
3658
|
/** @class */
|
|
3624
3659
|
function(e) {
|
|
3625
|
-
|
|
3660
|
+
xe(t, e);
|
|
3626
3661
|
function t(r, n, i) {
|
|
3627
3662
|
var o = e.call(this, r) || this;
|
|
3628
3663
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3631,155 +3666,155 @@ var xe = (
|
|
|
3631
3666
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3632
3667
|
}, t;
|
|
3633
3668
|
}(Error)
|
|
3634
|
-
),
|
|
3669
|
+
), xt = (
|
|
3635
3670
|
/** @class */
|
|
3636
3671
|
function(e) {
|
|
3637
|
-
|
|
3672
|
+
xe(t, e);
|
|
3638
3673
|
function t(r, n, i, o) {
|
|
3639
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3674
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3640
3675
|
}
|
|
3641
3676
|
return t;
|
|
3642
|
-
}(
|
|
3643
|
-
),
|
|
3677
|
+
}(Ee)
|
|
3678
|
+
), ii = (
|
|
3644
3679
|
/** @class */
|
|
3645
3680
|
function(e) {
|
|
3646
|
-
|
|
3681
|
+
xe(t, e);
|
|
3647
3682
|
function t(r, n, i) {
|
|
3648
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3683
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3649
3684
|
}
|
|
3650
3685
|
return t;
|
|
3651
|
-
}(
|
|
3652
|
-
),
|
|
3686
|
+
}(Ee)
|
|
3687
|
+
), oi = (
|
|
3653
3688
|
/** @class */
|
|
3654
3689
|
function(e) {
|
|
3655
|
-
|
|
3690
|
+
xe(t, e);
|
|
3656
3691
|
function t(r, n) {
|
|
3657
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3692
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3658
3693
|
}
|
|
3659
3694
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3695
|
+
}(Ee)
|
|
3696
|
+
), C;
|
|
3662
3697
|
(function(e) {
|
|
3663
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3664
|
-
})(
|
|
3665
|
-
function
|
|
3699
|
+
})(C || (C = {}));
|
|
3700
|
+
function si(e) {
|
|
3666
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3667
3702
|
var n = t[t.length - 1];
|
|
3668
|
-
return !n || n.type !==
|
|
3703
|
+
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3669
3704
|
}, []);
|
|
3670
3705
|
}
|
|
3671
|
-
function
|
|
3706
|
+
function ai(e) {
|
|
3672
3707
|
return typeof e == "function";
|
|
3673
3708
|
}
|
|
3674
|
-
function
|
|
3675
|
-
if (e.length === 1 &&
|
|
3709
|
+
function me(e, t, r, n, i, o, s) {
|
|
3710
|
+
if (e.length === 1 && pt(e[0]))
|
|
3676
3711
|
return [
|
|
3677
3712
|
{
|
|
3678
|
-
type:
|
|
3713
|
+
type: C.literal,
|
|
3679
3714
|
value: e[0].value
|
|
3680
3715
|
}
|
|
3681
3716
|
];
|
|
3682
3717
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3683
3718
|
var h = u[l];
|
|
3684
|
-
if (
|
|
3719
|
+
if (pt(h)) {
|
|
3685
3720
|
a.push({
|
|
3686
|
-
type:
|
|
3721
|
+
type: C.literal,
|
|
3687
3722
|
value: h.value
|
|
3688
3723
|
});
|
|
3689
3724
|
continue;
|
|
3690
3725
|
}
|
|
3691
|
-
if (
|
|
3726
|
+
if (Cn(h)) {
|
|
3692
3727
|
typeof o == "number" && a.push({
|
|
3693
|
-
type:
|
|
3728
|
+
type: C.literal,
|
|
3694
3729
|
value: r.getNumberFormat(t).format(o)
|
|
3695
3730
|
});
|
|
3696
3731
|
continue;
|
|
3697
3732
|
}
|
|
3698
|
-
var
|
|
3699
|
-
if (!(i &&
|
|
3700
|
-
throw new
|
|
3701
|
-
var
|
|
3702
|
-
if (
|
|
3703
|
-
(!
|
|
3704
|
-
type: typeof
|
|
3705
|
-
value:
|
|
3733
|
+
var c = h.value;
|
|
3734
|
+
if (!(i && c in i))
|
|
3735
|
+
throw new oi(c, s);
|
|
3736
|
+
var f = i[c];
|
|
3737
|
+
if (Bn(h)) {
|
|
3738
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3739
|
+
type: typeof f == "string" ? C.literal : C.object,
|
|
3740
|
+
value: f
|
|
3706
3741
|
});
|
|
3707
3742
|
continue;
|
|
3708
3743
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3744
|
+
if (zt(h)) {
|
|
3745
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3711
3746
|
a.push({
|
|
3712
|
-
type:
|
|
3713
|
-
value: r.getDateTimeFormat(t,
|
|
3747
|
+
type: C.literal,
|
|
3748
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3714
3749
|
});
|
|
3715
3750
|
continue;
|
|
3716
3751
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var
|
|
3752
|
+
if (Zt(h)) {
|
|
3753
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3719
3754
|
a.push({
|
|
3720
|
-
type:
|
|
3721
|
-
value: r.getDateTimeFormat(t,
|
|
3755
|
+
type: C.literal,
|
|
3756
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3722
3757
|
});
|
|
3723
3758
|
continue;
|
|
3724
3759
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
|
|
3728
|
-
type:
|
|
3729
|
-
value: r.getNumberFormat(t,
|
|
3760
|
+
if (Wt(h)) {
|
|
3761
|
+
var m = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3762
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3763
|
+
type: C.literal,
|
|
3764
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3730
3765
|
});
|
|
3731
3766
|
continue;
|
|
3732
3767
|
}
|
|
3733
|
-
if (
|
|
3734
|
-
var
|
|
3735
|
-
if (!
|
|
3736
|
-
throw new
|
|
3737
|
-
var P =
|
|
3738
|
-
return
|
|
3768
|
+
if (Yt(h)) {
|
|
3769
|
+
var v = h.children, d = h.value, S = i[d];
|
|
3770
|
+
if (!ai(S))
|
|
3771
|
+
throw new ii(d, "function", s);
|
|
3772
|
+
var P = me(v, t, r, n, i, o), H = S(P.map(function(y) {
|
|
3773
|
+
return y.value;
|
|
3739
3774
|
}));
|
|
3740
|
-
Array.isArray(
|
|
3775
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(y) {
|
|
3741
3776
|
return {
|
|
3742
|
-
type: typeof
|
|
3743
|
-
value:
|
|
3777
|
+
type: typeof y == "string" ? C.literal : C.object,
|
|
3778
|
+
value: y
|
|
3744
3779
|
};
|
|
3745
3780
|
}));
|
|
3746
3781
|
}
|
|
3747
|
-
if (
|
|
3748
|
-
var _ = h.options[
|
|
3782
|
+
if (Qt(h)) {
|
|
3783
|
+
var _ = h.options[f] || h.options.other;
|
|
3749
3784
|
if (!_)
|
|
3750
|
-
throw new
|
|
3751
|
-
a.push.apply(a,
|
|
3785
|
+
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3786
|
+
a.push.apply(a, me(_.value, t, r, n, i));
|
|
3752
3787
|
continue;
|
|
3753
3788
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var _ = h.options["=".concat(
|
|
3789
|
+
if (Jt(h)) {
|
|
3790
|
+
var _ = h.options["=".concat(f)];
|
|
3756
3791
|
if (!_) {
|
|
3757
3792
|
if (!Intl.PluralRules)
|
|
3758
|
-
throw new
|
|
3793
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3759
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3760
|
-
`,
|
|
3761
|
-
var
|
|
3762
|
-
_ = h.options[
|
|
3795
|
+
`, X.MISSING_INTL_API, s);
|
|
3796
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3797
|
+
_ = h.options[x] || h.options.other;
|
|
3763
3798
|
}
|
|
3764
3799
|
if (!_)
|
|
3765
|
-
throw new
|
|
3766
|
-
a.push.apply(a,
|
|
3800
|
+
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3801
|
+
a.push.apply(a, me(_.value, t, r, n, i, f - (h.offset || 0)));
|
|
3767
3802
|
continue;
|
|
3768
3803
|
}
|
|
3769
3804
|
}
|
|
3770
|
-
return
|
|
3805
|
+
return si(a);
|
|
3771
3806
|
}
|
|
3772
|
-
function
|
|
3773
|
-
return t ?
|
|
3774
|
-
return r[n] =
|
|
3807
|
+
function ui(e, t) {
|
|
3808
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3809
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3775
3810
|
}, {})) : e;
|
|
3776
3811
|
}
|
|
3777
|
-
function
|
|
3812
|
+
function li(e, t) {
|
|
3778
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3779
|
-
return r[n] =
|
|
3780
|
-
},
|
|
3814
|
+
return r[n] = ui(e[n], t[n]), r;
|
|
3815
|
+
}, M({}, e)) : e;
|
|
3781
3816
|
}
|
|
3782
|
-
function
|
|
3817
|
+
function Oe(e) {
|
|
3783
3818
|
return {
|
|
3784
3819
|
create: function() {
|
|
3785
3820
|
return {
|
|
@@ -3793,39 +3828,39 @@ function Ae(e) {
|
|
|
3793
3828
|
}
|
|
3794
3829
|
};
|
|
3795
3830
|
}
|
|
3796
|
-
function
|
|
3831
|
+
function hi(e) {
|
|
3797
3832
|
return e === void 0 && (e = {
|
|
3798
3833
|
number: {},
|
|
3799
3834
|
dateTime: {},
|
|
3800
3835
|
pluralRules: {}
|
|
3801
3836
|
}), {
|
|
3802
|
-
getNumberFormat:
|
|
3837
|
+
getNumberFormat: Be(function() {
|
|
3803
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3839
|
r[n] = arguments[n];
|
|
3805
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3806
3841
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3842
|
+
cache: Oe(e.number),
|
|
3843
|
+
strategy: Ce.variadic
|
|
3809
3844
|
}),
|
|
3810
|
-
getDateTimeFormat:
|
|
3845
|
+
getDateTimeFormat: Be(function() {
|
|
3811
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3847
|
r[n] = arguments[n];
|
|
3813
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3848
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3814
3849
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3850
|
+
cache: Oe(e.dateTime),
|
|
3851
|
+
strategy: Ce.variadic
|
|
3817
3852
|
}),
|
|
3818
|
-
getPluralRules:
|
|
3853
|
+
getPluralRules: Be(function() {
|
|
3819
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3820
3855
|
r[n] = arguments[n];
|
|
3821
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3856
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3822
3857
|
}, {
|
|
3823
|
-
cache:
|
|
3824
|
-
strategy:
|
|
3858
|
+
cache: Oe(e.pluralRules),
|
|
3859
|
+
strategy: Ce.variadic
|
|
3825
3860
|
})
|
|
3826
3861
|
};
|
|
3827
3862
|
}
|
|
3828
|
-
var
|
|
3863
|
+
var ci = (
|
|
3829
3864
|
/** @class */
|
|
3830
3865
|
function() {
|
|
3831
3866
|
function e(t, r, n, i) {
|
|
@@ -3839,12 +3874,12 @@ var ai = (
|
|
|
3839
3874
|
var u = o.formatToParts(l);
|
|
3840
3875
|
if (u.length === 1)
|
|
3841
3876
|
return u[0].value;
|
|
3842
|
-
var h = u.reduce(function(
|
|
3843
|
-
return !
|
|
3877
|
+
var h = u.reduce(function(c, f) {
|
|
3878
|
+
return !c.length || f.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3844
3879
|
}, []);
|
|
3845
3880
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3846
3881
|
}, this.formatToParts = function(l) {
|
|
3847
|
-
return
|
|
3882
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3848
3883
|
}, this.resolvedOptions = function() {
|
|
3849
3884
|
var l;
|
|
3850
3885
|
return {
|
|
@@ -3857,13 +3892,13 @@ var ai = (
|
|
|
3857
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3858
3893
|
var s = i || {};
|
|
3859
3894
|
s.formatters;
|
|
3860
|
-
var a =
|
|
3861
|
-
this.ast = e.__parse(t,
|
|
3895
|
+
var a = _n(s, ["formatters"]);
|
|
3896
|
+
this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
|
|
3862
3897
|
} else
|
|
3863
3898
|
this.ast = t;
|
|
3864
3899
|
if (!Array.isArray(this.ast))
|
|
3865
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3866
|
-
this.formats =
|
|
3901
|
+
this.formats = li(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3867
3902
|
}
|
|
3868
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3869
3904
|
get: function() {
|
|
@@ -3876,7 +3911,7 @@ var ai = (
|
|
|
3876
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3877
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3878
3913
|
}
|
|
3879
|
-
}, e.__parse =
|
|
3914
|
+
}, e.__parse = ni, e.formats = {
|
|
3880
3915
|
number: {
|
|
3881
3916
|
integer: {
|
|
3882
3917
|
maximumFractionDigits: 0
|
|
@@ -3937,7 +3972,7 @@ var ai = (
|
|
|
3937
3972
|
}, e;
|
|
3938
3973
|
}()
|
|
3939
3974
|
);
|
|
3940
|
-
function
|
|
3975
|
+
function fi(e, t) {
|
|
3941
3976
|
if (t == null)
|
|
3942
3977
|
return;
|
|
3943
3978
|
if (t in e)
|
|
@@ -3958,92 +3993,92 @@ function ui(e, t) {
|
|
|
3958
3993
|
n = void 0;
|
|
3959
3994
|
return n;
|
|
3960
3995
|
}
|
|
3961
|
-
const R = {},
|
|
3996
|
+
const R = {}, mi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), sr = (e, t) => {
|
|
3962
3997
|
if (t == null)
|
|
3963
3998
|
return;
|
|
3964
3999
|
if (t in R && e in R[t])
|
|
3965
4000
|
return R[t][e];
|
|
3966
|
-
const r =
|
|
4001
|
+
const r = Se(t);
|
|
3967
4002
|
for (let n = 0; n < r.length; n++) {
|
|
3968
|
-
const i = r[n], o =
|
|
4003
|
+
const i = r[n], o = di(i, e);
|
|
3969
4004
|
if (o)
|
|
3970
|
-
return
|
|
4005
|
+
return mi(e, t, o);
|
|
3971
4006
|
}
|
|
3972
4007
|
};
|
|
3973
|
-
let
|
|
3974
|
-
const oe =
|
|
3975
|
-
function
|
|
3976
|
-
return
|
|
4008
|
+
let et;
|
|
4009
|
+
const oe = _e({});
|
|
4010
|
+
function pi(e) {
|
|
4011
|
+
return et[e] || null;
|
|
3977
4012
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e in
|
|
4013
|
+
function ar(e) {
|
|
4014
|
+
return e in et;
|
|
3980
4015
|
}
|
|
3981
|
-
function
|
|
3982
|
-
if (!
|
|
4016
|
+
function di(e, t) {
|
|
4017
|
+
if (!ar(e))
|
|
3983
4018
|
return null;
|
|
3984
|
-
const r =
|
|
3985
|
-
return
|
|
4019
|
+
const r = pi(e);
|
|
4020
|
+
return fi(r, t);
|
|
3986
4021
|
}
|
|
3987
|
-
function
|
|
4022
|
+
function bi(e) {
|
|
3988
4023
|
if (e == null)
|
|
3989
4024
|
return;
|
|
3990
|
-
const t =
|
|
4025
|
+
const t = Se(e);
|
|
3991
4026
|
for (let r = 0; r < t.length; r++) {
|
|
3992
4027
|
const n = t[r];
|
|
3993
|
-
if (
|
|
4028
|
+
if (ar(n))
|
|
3994
4029
|
return n;
|
|
3995
4030
|
}
|
|
3996
4031
|
}
|
|
3997
|
-
function
|
|
3998
|
-
delete R[e], oe.update((r) => (r[e] =
|
|
4032
|
+
function ur(e, ...t) {
|
|
4033
|
+
delete R[e], oe.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
3999
4034
|
}
|
|
4000
|
-
|
|
4035
|
+
Q(
|
|
4001
4036
|
[oe],
|
|
4002
4037
|
([e]) => Object.keys(e)
|
|
4003
4038
|
);
|
|
4004
|
-
oe.subscribe((e) =>
|
|
4005
|
-
const
|
|
4006
|
-
function
|
|
4007
|
-
|
|
4039
|
+
oe.subscribe((e) => et = e);
|
|
4040
|
+
const pe = {};
|
|
4041
|
+
function gi(e, t) {
|
|
4042
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4008
4043
|
}
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4044
|
+
function lr(e) {
|
|
4045
|
+
return pe[e];
|
|
4011
4046
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return
|
|
4014
|
-
const r =
|
|
4047
|
+
function vi(e) {
|
|
4048
|
+
return Se(e).map((t) => {
|
|
4049
|
+
const r = lr(t);
|
|
4015
4050
|
return [t, r ? [...r] : []];
|
|
4016
4051
|
}).filter(([, t]) => t.length > 0);
|
|
4017
4052
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return e == null ? !1 :
|
|
4053
|
+
function Je(e) {
|
|
4054
|
+
return e == null ? !1 : Se(e).some(
|
|
4020
4055
|
(t) => {
|
|
4021
4056
|
var r;
|
|
4022
|
-
return (r =
|
|
4057
|
+
return (r = lr(t)) == null ? void 0 : r.size;
|
|
4023
4058
|
}
|
|
4024
4059
|
);
|
|
4025
4060
|
}
|
|
4026
|
-
function
|
|
4061
|
+
function yi(e, t) {
|
|
4027
4062
|
return Promise.all(
|
|
4028
|
-
t.map((n) => (
|
|
4029
|
-
).then((n) =>
|
|
4030
|
-
}
|
|
4031
|
-
const
|
|
4032
|
-
function
|
|
4033
|
-
if (!
|
|
4034
|
-
return e in
|
|
4035
|
-
const t =
|
|
4036
|
-
return
|
|
4063
|
+
t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
|
|
4064
|
+
).then((n) => ur(e, ...n));
|
|
4065
|
+
}
|
|
4066
|
+
const q = {};
|
|
4067
|
+
function hr(e) {
|
|
4068
|
+
if (!Je(e))
|
|
4069
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4070
|
+
const t = vi(e);
|
|
4071
|
+
return q[e] = Promise.all(
|
|
4037
4072
|
t.map(
|
|
4038
|
-
([r, n]) =>
|
|
4073
|
+
([r, n]) => yi(r, n)
|
|
4039
4074
|
)
|
|
4040
4075
|
).then(() => {
|
|
4041
|
-
if (
|
|
4042
|
-
return
|
|
4043
|
-
delete
|
|
4044
|
-
}),
|
|
4076
|
+
if (Je(e))
|
|
4077
|
+
return hr(e);
|
|
4078
|
+
delete q[e];
|
|
4079
|
+
}), q[e];
|
|
4045
4080
|
}
|
|
4046
|
-
const
|
|
4081
|
+
const _i = {
|
|
4047
4082
|
number: {
|
|
4048
4083
|
scientific: { notation: "scientific" },
|
|
4049
4084
|
engineering: { notation: "engineering" },
|
|
@@ -4072,135 +4107,135 @@ const bi = {
|
|
|
4072
4107
|
timeZoneName: "short"
|
|
4073
4108
|
}
|
|
4074
4109
|
}
|
|
4075
|
-
},
|
|
4110
|
+
}, xi = {
|
|
4076
4111
|
fallbackLocale: null,
|
|
4077
4112
|
loadingDelay: 200,
|
|
4078
|
-
formats:
|
|
4113
|
+
formats: _i,
|
|
4079
4114
|
warnOnMissingMessages: !0,
|
|
4080
4115
|
handleMissingMessage: void 0,
|
|
4081
4116
|
ignoreTag: !0
|
|
4082
|
-
},
|
|
4117
|
+
}, Ei = xi;
|
|
4083
4118
|
function W() {
|
|
4084
|
-
return
|
|
4085
|
-
}
|
|
4086
|
-
const
|
|
4087
|
-
var
|
|
4088
|
-
for (var r in t)
|
|
4089
|
-
|
|
4090
|
-
if (
|
|
4091
|
-
for (var r of
|
|
4092
|
-
|
|
4119
|
+
return Ei;
|
|
4120
|
+
}
|
|
4121
|
+
const Ie = _e(!1);
|
|
4122
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4123
|
+
for (var r in t || (t = {}))
|
|
4124
|
+
Hi.call(t, r) && St(e, r, t[r]);
|
|
4125
|
+
if (Et)
|
|
4126
|
+
for (var r of Et(t))
|
|
4127
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4093
4128
|
return e;
|
|
4094
|
-
},
|
|
4095
|
-
let
|
|
4096
|
-
const
|
|
4097
|
-
function
|
|
4129
|
+
}, Ci = (e, t) => wi(e, Ti(t));
|
|
4130
|
+
let Ye;
|
|
4131
|
+
const be = _e(null);
|
|
4132
|
+
function wt(e) {
|
|
4098
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4099
4134
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const r =
|
|
4102
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4135
|
+
function Se(e, t = W().fallbackLocale) {
|
|
4136
|
+
const r = wt(e);
|
|
4137
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4103
4138
|
}
|
|
4104
4139
|
function $() {
|
|
4105
|
-
return
|
|
4140
|
+
return Ye ?? void 0;
|
|
4106
4141
|
}
|
|
4107
|
-
|
|
4108
|
-
|
|
4142
|
+
be.subscribe((e) => {
|
|
4143
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4109
4144
|
});
|
|
4110
|
-
const
|
|
4111
|
-
if (e &&
|
|
4145
|
+
const Pi = (e) => {
|
|
4146
|
+
if (e && bi(e) && Je(e)) {
|
|
4112
4147
|
const { loadingDelay: t } = W();
|
|
4113
4148
|
let r;
|
|
4114
4149
|
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4115
|
-
() =>
|
|
4150
|
+
() => Ie.set(!0),
|
|
4116
4151
|
t
|
|
4117
|
-
) :
|
|
4118
|
-
|
|
4152
|
+
) : Ie.set(!0), hr(e).then(() => {
|
|
4153
|
+
be.set(e);
|
|
4119
4154
|
}).finally(() => {
|
|
4120
|
-
clearTimeout(r),
|
|
4155
|
+
clearTimeout(r), Ie.set(!1);
|
|
4121
4156
|
});
|
|
4122
4157
|
}
|
|
4123
|
-
return
|
|
4124
|
-
},
|
|
4125
|
-
set:
|
|
4126
|
-
}),
|
|
4158
|
+
return be.set(e);
|
|
4159
|
+
}, J = Ci(Bi({}, be), {
|
|
4160
|
+
set: Pi
|
|
4161
|
+
}), we = (e) => {
|
|
4127
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4128
4163
|
return (n) => {
|
|
4129
4164
|
const i = JSON.stringify(n);
|
|
4130
4165
|
return i in t ? t[i] : t[i] = e(n);
|
|
4131
4166
|
};
|
|
4132
4167
|
};
|
|
4133
|
-
var
|
|
4168
|
+
var Oi = Object.defineProperty, ge = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4134
4169
|
for (var r in t || (t = {}))
|
|
4135
|
-
|
|
4136
|
-
if (
|
|
4137
|
-
for (var r of
|
|
4138
|
-
|
|
4170
|
+
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4171
|
+
if (ge)
|
|
4172
|
+
for (var r of ge(t))
|
|
4173
|
+
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4139
4174
|
return e;
|
|
4140
|
-
},
|
|
4175
|
+
}, Y = (e, t) => {
|
|
4141
4176
|
var r = {};
|
|
4142
4177
|
for (var n in e)
|
|
4143
|
-
|
|
4144
|
-
if (e != null &&
|
|
4145
|
-
for (var n of
|
|
4146
|
-
t.indexOf(n) < 0 &&
|
|
4178
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4179
|
+
if (e != null && ge)
|
|
4180
|
+
for (var n of ge(e))
|
|
4181
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4147
4182
|
return r;
|
|
4148
4183
|
};
|
|
4149
|
-
const
|
|
4184
|
+
const re = (e, t) => {
|
|
4150
4185
|
const { formats: r } = W();
|
|
4151
4186
|
if (e in r && t in r[e])
|
|
4152
4187
|
return r[e][t];
|
|
4153
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4154
|
-
},
|
|
4189
|
+
}, Ii = we(
|
|
4155
4190
|
(e) => {
|
|
4156
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4157
4192
|
if (r == null)
|
|
4158
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4159
|
-
return n && (i =
|
|
4194
|
+
return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4160
4195
|
}
|
|
4161
|
-
),
|
|
4196
|
+
), Mi = we(
|
|
4162
4197
|
(e) => {
|
|
4163
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4164
4199
|
if (r == null)
|
|
4165
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4166
|
-
return n ? i =
|
|
4201
|
+
return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4167
4202
|
}
|
|
4168
|
-
),
|
|
4203
|
+
), Ni = we(
|
|
4169
4204
|
(e) => {
|
|
4170
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4171
4206
|
if (r == null)
|
|
4172
4207
|
throw new Error(
|
|
4173
4208
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4174
4209
|
);
|
|
4175
|
-
return n ? i =
|
|
4210
|
+
return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4176
4211
|
}
|
|
4177
|
-
),
|
|
4212
|
+
), Li = (e = {}) => {
|
|
4178
4213
|
var t = e, {
|
|
4179
4214
|
locale: r = $()
|
|
4180
|
-
} = t, n =
|
|
4215
|
+
} = t, n = Y(t, [
|
|
4181
4216
|
"locale"
|
|
4182
4217
|
]);
|
|
4183
|
-
return
|
|
4184
|
-
},
|
|
4218
|
+
return Ii(tt({ locale: r }, n));
|
|
4219
|
+
}, Ri = (e = {}) => {
|
|
4185
4220
|
var t = e, {
|
|
4186
4221
|
locale: r = $()
|
|
4187
|
-
} = t, n =
|
|
4222
|
+
} = t, n = Y(t, [
|
|
4188
4223
|
"locale"
|
|
4189
4224
|
]);
|
|
4190
|
-
return
|
|
4191
|
-
},
|
|
4225
|
+
return Mi(tt({ locale: r }, n));
|
|
4226
|
+
}, $i = (e = {}) => {
|
|
4192
4227
|
var t = e, {
|
|
4193
4228
|
locale: r = $()
|
|
4194
|
-
} = t, n =
|
|
4229
|
+
} = t, n = Y(t, [
|
|
4195
4230
|
"locale"
|
|
4196
4231
|
]);
|
|
4197
|
-
return
|
|
4198
|
-
},
|
|
4232
|
+
return Ni(tt({ locale: r }, n));
|
|
4233
|
+
}, Gi = we(
|
|
4199
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4200
|
-
(e, t = $()) => new
|
|
4235
|
+
(e, t = $()) => new ci(e, t, W().formats, {
|
|
4201
4236
|
ignoreTag: W().ignoreTag
|
|
4202
4237
|
})
|
|
4203
|
-
),
|
|
4238
|
+
), Ui = (e, t = {}) => {
|
|
4204
4239
|
var r, n, i, o;
|
|
4205
4240
|
let s = t;
|
|
4206
4241
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4213,7 +4248,7 @@ const ne = (e, t) => {
|
|
|
4213
4248
|
throw new Error(
|
|
4214
4249
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4215
4250
|
);
|
|
4216
|
-
let h =
|
|
4251
|
+
let h = sr(e, l);
|
|
4217
4252
|
if (!h)
|
|
4218
4253
|
h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4219
4254
|
else if (typeof h != "string")
|
|
@@ -4222,30 +4257,30 @@ const ne = (e, t) => {
|
|
|
4222
4257
|
), h;
|
|
4223
4258
|
if (!a)
|
|
4224
4259
|
return h;
|
|
4225
|
-
let
|
|
4260
|
+
let c = h;
|
|
4226
4261
|
try {
|
|
4227
|
-
|
|
4228
|
-
} catch (
|
|
4229
|
-
|
|
4262
|
+
c = Gi(h, l).format(a);
|
|
4263
|
+
} catch (f) {
|
|
4264
|
+
f instanceof Error && console.warn(
|
|
4230
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4231
|
-
|
|
4266
|
+
f.message
|
|
4232
4267
|
);
|
|
4233
4268
|
}
|
|
4234
|
-
return
|
|
4235
|
-
},
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
window.emWidgets = { topic:
|
|
4241
|
-
const
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4244
|
-
}
|
|
4245
|
-
function
|
|
4246
|
-
|
|
4247
|
-
}
|
|
4248
|
-
const
|
|
4269
|
+
return c;
|
|
4270
|
+
}, Di = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Li(t).format(e), ki = (e, t = $()) => sr(e, t), Vi = Q([J, oe], () => Ui);
|
|
4271
|
+
Q([J], () => Di);
|
|
4272
|
+
Q([J], () => Fi);
|
|
4273
|
+
Q([J], () => ji);
|
|
4274
|
+
Q([J, oe], () => ki);
|
|
4275
|
+
window.emWidgets = { topic: tn };
|
|
4276
|
+
const Xi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4277
|
+
function Ht(e, t) {
|
|
4278
|
+
ur(e, t);
|
|
4279
|
+
}
|
|
4280
|
+
function Wi(e) {
|
|
4281
|
+
J.set(e);
|
|
4282
|
+
}
|
|
4283
|
+
const At = {
|
|
4249
4284
|
en: {
|
|
4250
4285
|
cancel: "Cancel",
|
|
4251
4286
|
confirm: "Confirm"
|
|
@@ -4291,13 +4326,13 @@ const St = {
|
|
|
4291
4326
|
confirm: "Confirm"
|
|
4292
4327
|
}
|
|
4293
4328
|
};
|
|
4294
|
-
function
|
|
4329
|
+
function zi(e, t) {
|
|
4295
4330
|
if (e) {
|
|
4296
4331
|
const r = document.createElement("style");
|
|
4297
4332
|
r.innerHTML = t, e.appendChild(r);
|
|
4298
4333
|
}
|
|
4299
4334
|
}
|
|
4300
|
-
function
|
|
4335
|
+
function Zi(e, t) {
|
|
4301
4336
|
const r = new URL(t);
|
|
4302
4337
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4303
4338
|
const i = document.createElement("style");
|
|
@@ -4306,7 +4341,7 @@ function Vi(e, t) {
|
|
|
4306
4341
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4307
4342
|
});
|
|
4308
4343
|
}
|
|
4309
|
-
function
|
|
4344
|
+
function Qi(e, t, r) {
|
|
4310
4345
|
if (window.emMessageBus) {
|
|
4311
4346
|
const n = document.createElement("style");
|
|
4312
4347
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4314,61 +4349,61 @@ function Xi(e, t, r) {
|
|
|
4314
4349
|
});
|
|
4315
4350
|
}
|
|
4316
4351
|
}
|
|
4317
|
-
function
|
|
4318
|
-
|
|
4352
|
+
function Ji(e) {
|
|
4353
|
+
Er(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4319
4354
|
}
|
|
4320
|
-
const
|
|
4321
|
-
function
|
|
4355
|
+
const Yi = (e) => ({}), Bt = (e) => ({});
|
|
4356
|
+
function qi(e) {
|
|
4322
4357
|
let t, r;
|
|
4323
4358
|
return {
|
|
4324
4359
|
c() {
|
|
4325
|
-
t =
|
|
4360
|
+
t = it("svg"), r = it("path"), T(r, "stroke-linecap", "round"), T(r, "stroke-linejoin", "round"), T(r, "stroke-width", "2"), T(r, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4326
4361
|
},
|
|
4327
4362
|
m(n, i) {
|
|
4328
|
-
|
|
4363
|
+
ne(n, t, i), B(t, r);
|
|
4329
4364
|
},
|
|
4330
4365
|
p: N,
|
|
4331
4366
|
d(n) {
|
|
4332
|
-
n &&
|
|
4367
|
+
n && Z(t);
|
|
4333
4368
|
}
|
|
4334
4369
|
};
|
|
4335
4370
|
}
|
|
4336
|
-
function
|
|
4371
|
+
function Ct(e) {
|
|
4337
4372
|
let t, r, n;
|
|
4338
4373
|
return {
|
|
4339
4374
|
c() {
|
|
4340
|
-
t = I("div"), r = I("h2"), n =
|
|
4375
|
+
t = I("div"), r = I("h2"), n = ve(
|
|
4341
4376
|
/*modaltitle*/
|
|
4342
4377
|
e[1]
|
|
4343
4378
|
), T(t, "class", "GeneralConfirmationTitle");
|
|
4344
4379
|
},
|
|
4345
4380
|
m(i, o) {
|
|
4346
|
-
|
|
4381
|
+
ne(i, t, o), B(t, r), B(r, n);
|
|
4347
4382
|
},
|
|
4348
4383
|
p(i, o) {
|
|
4349
4384
|
o & /*modaltitle*/
|
|
4350
|
-
2 &&
|
|
4385
|
+
2 && Ke(
|
|
4351
4386
|
n,
|
|
4352
4387
|
/*modaltitle*/
|
|
4353
4388
|
i[1]
|
|
4354
4389
|
);
|
|
4355
4390
|
},
|
|
4356
4391
|
d(i) {
|
|
4357
|
-
i &&
|
|
4392
|
+
i && Z(t);
|
|
4358
4393
|
}
|
|
4359
4394
|
};
|
|
4360
4395
|
}
|
|
4361
|
-
function
|
|
4396
|
+
function Pt(e) {
|
|
4362
4397
|
let t, r = (
|
|
4363
4398
|
/*$_*/
|
|
4364
4399
|
e[4]("cancel") + ""
|
|
4365
4400
|
), n, i, o;
|
|
4366
4401
|
return {
|
|
4367
4402
|
c() {
|
|
4368
|
-
t = I("button"), n =
|
|
4403
|
+
t = I("button"), n = ve(r), T(t, "class", "GeneralCancelButton");
|
|
4369
4404
|
},
|
|
4370
4405
|
m(s, a) {
|
|
4371
|
-
|
|
4406
|
+
ne(s, t, a), B(t, n), i || (o = Me(
|
|
4372
4407
|
t,
|
|
4373
4408
|
"click",
|
|
4374
4409
|
/*click_handler*/
|
|
@@ -4378,168 +4413,168 @@ function Ht(e) {
|
|
|
4378
4413
|
p(s, a) {
|
|
4379
4414
|
a & /*$_*/
|
|
4380
4415
|
16 && r !== (r = /*$_*/
|
|
4381
|
-
s[4]("cancel") + "") &&
|
|
4416
|
+
s[4]("cancel") + "") && Ke(n, r);
|
|
4382
4417
|
},
|
|
4383
4418
|
d(s) {
|
|
4384
|
-
s &&
|
|
4419
|
+
s && Z(t), i = !1, o();
|
|
4385
4420
|
}
|
|
4386
4421
|
};
|
|
4387
4422
|
}
|
|
4388
|
-
function
|
|
4389
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4423
|
+
function Ki(e) {
|
|
4424
|
+
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4390
4425
|
/*$_*/
|
|
4391
4426
|
e[4]("confirm") + ""
|
|
4392
|
-
),
|
|
4393
|
-
const
|
|
4427
|
+
), f, m, v, d;
|
|
4428
|
+
const S = (
|
|
4394
4429
|
/*#slots*/
|
|
4395
4430
|
e[16].close
|
|
4396
|
-
), P =
|
|
4397
|
-
|
|
4431
|
+
), P = vr(
|
|
4432
|
+
S,
|
|
4398
4433
|
e,
|
|
4399
4434
|
/*$$scope*/
|
|
4400
4435
|
e[15],
|
|
4401
|
-
|
|
4402
|
-
),
|
|
4436
|
+
Bt
|
|
4437
|
+
), H = P || qi();
|
|
4403
4438
|
let _ = (
|
|
4404
4439
|
/*modaltitle*/
|
|
4405
|
-
e[1] &&
|
|
4406
|
-
),
|
|
4440
|
+
e[1] && Ct(e)
|
|
4441
|
+
), x = (
|
|
4407
4442
|
/*hascancelbutton*/
|
|
4408
|
-
e[2] &&
|
|
4443
|
+
e[2] && Pt(e)
|
|
4409
4444
|
);
|
|
4410
4445
|
return {
|
|
4411
4446
|
c() {
|
|
4412
|
-
t = I("div"), r = I("div"), n = I("span"),
|
|
4447
|
+
t = I("div"), r = I("div"), n = I("span"), H && H.c(), i = ae(), _ && _.c(), o = ae(), s = I("div"), a = ae(), l = I("div"), x && x.c(), u = ae(), h = I("button"), f = ve(c), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4413
4448
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4414
4449
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4415
4450
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4416
4451
|
},
|
|
4417
|
-
m(
|
|
4418
|
-
|
|
4419
|
-
e[0], B(r, a), B(r, l),
|
|
4420
|
-
|
|
4452
|
+
m(y, A) {
|
|
4453
|
+
ne(y, t, A), B(t, r), B(r, n), H && H.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), s.innerHTML = /*modaltext*/
|
|
4454
|
+
e[0], B(r, a), B(r, l), x && x.m(l, null), B(l, u), B(l, h), B(h, f), e[19](t), m = !0, v || (d = [
|
|
4455
|
+
Me(
|
|
4421
4456
|
n,
|
|
4422
4457
|
"click",
|
|
4423
4458
|
/*close*/
|
|
4424
4459
|
e[6]
|
|
4425
4460
|
),
|
|
4426
|
-
|
|
4461
|
+
Me(
|
|
4427
4462
|
h,
|
|
4428
4463
|
"click",
|
|
4429
4464
|
/*click_handler_1*/
|
|
4430
4465
|
e[18]
|
|
4431
4466
|
)
|
|
4432
|
-
],
|
|
4467
|
+
], v = !0);
|
|
4433
4468
|
},
|
|
4434
|
-
p(
|
|
4435
|
-
P && P.p && (!
|
|
4436
|
-
32768) &&
|
|
4469
|
+
p(y, [A]) {
|
|
4470
|
+
P && P.p && (!m || A & /*$$scope*/
|
|
4471
|
+
32768) && _r(
|
|
4437
4472
|
P,
|
|
4438
|
-
|
|
4439
|
-
|
|
4473
|
+
S,
|
|
4474
|
+
y,
|
|
4440
4475
|
/*$$scope*/
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4476
|
+
y[15],
|
|
4477
|
+
m ? yr(
|
|
4478
|
+
S,
|
|
4444
4479
|
/*$$scope*/
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
) :
|
|
4480
|
+
y[15],
|
|
4481
|
+
A,
|
|
4482
|
+
Yi
|
|
4483
|
+
) : xr(
|
|
4449
4484
|
/*$$scope*/
|
|
4450
|
-
|
|
4485
|
+
y[15]
|
|
4451
4486
|
),
|
|
4452
|
-
|
|
4487
|
+
Bt
|
|
4453
4488
|
), /*modaltitle*/
|
|
4454
|
-
|
|
4489
|
+
y[1] ? _ ? _.p(y, A) : (_ = Ct(y), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || A & /*modaltext*/
|
|
4455
4490
|
1) && (s.innerHTML = /*modaltext*/
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
16) &&
|
|
4459
|
-
|
|
4491
|
+
y[0]), /*hascancelbutton*/
|
|
4492
|
+
y[2] ? x ? x.p(y, A) : (x = Pt(y), x.c(), x.m(l, u)) : x && (x.d(1), x = null), (!m || A & /*$_*/
|
|
4493
|
+
16) && c !== (c = /*$_*/
|
|
4494
|
+
y[4]("confirm") + "") && Ke(f, c);
|
|
4460
4495
|
},
|
|
4461
|
-
i(
|
|
4462
|
-
|
|
4496
|
+
i(y) {
|
|
4497
|
+
m || (Lt(H, y), m = !0);
|
|
4463
4498
|
},
|
|
4464
|
-
o(
|
|
4465
|
-
|
|
4499
|
+
o(y) {
|
|
4500
|
+
Nr(H, y), m = !1;
|
|
4466
4501
|
},
|
|
4467
|
-
d(
|
|
4468
|
-
|
|
4502
|
+
d(y) {
|
|
4503
|
+
y && Z(t), H && H.d(y), _ && _.d(), x && x.d(), e[19](null), v = !1, z(d);
|
|
4469
4504
|
}
|
|
4470
4505
|
};
|
|
4471
4506
|
}
|
|
4472
|
-
function
|
|
4507
|
+
function eo(e, t, r) {
|
|
4473
4508
|
let n;
|
|
4474
|
-
|
|
4475
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang:
|
|
4509
|
+
gr(e, Vi, (b) => r(4, n = b));
|
|
4510
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: v = "" } = t, { mbsource: d } = t, S, P = window.navigator.userAgent, H = Xi(P) !== "PC";
|
|
4476
4511
|
const _ = () => {
|
|
4477
4512
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4478
|
-
},
|
|
4513
|
+
}, x = (b) => {
|
|
4479
4514
|
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), _();
|
|
4480
|
-
},
|
|
4481
|
-
fetch(
|
|
4482
|
-
Object.keys(G).forEach((
|
|
4483
|
-
|
|
4515
|
+
}, y = () => {
|
|
4516
|
+
fetch(v).then((G) => G.json()).then((G) => {
|
|
4517
|
+
Object.keys(G).forEach((rt) => {
|
|
4518
|
+
Ht(rt, G[rt]);
|
|
4484
4519
|
});
|
|
4485
4520
|
}).catch((G) => {
|
|
4486
4521
|
console.log(G);
|
|
4487
4522
|
});
|
|
4488
4523
|
};
|
|
4489
|
-
Object.keys(
|
|
4490
|
-
|
|
4524
|
+
Object.keys(At).forEach((b) => {
|
|
4525
|
+
Ht(b, At[b]);
|
|
4491
4526
|
});
|
|
4492
|
-
const
|
|
4493
|
-
|
|
4527
|
+
const A = () => {
|
|
4528
|
+
Wi(c);
|
|
4494
4529
|
};
|
|
4495
|
-
|
|
4530
|
+
Br(() => () => {
|
|
4496
4531
|
});
|
|
4497
|
-
const se = () =>
|
|
4498
|
-
function
|
|
4499
|
-
|
|
4500
|
-
|
|
4532
|
+
const se = () => x("cancel"), mr = () => x("confirm");
|
|
4533
|
+
function pr(b) {
|
|
4534
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4535
|
+
S = b, r(3, S);
|
|
4501
4536
|
});
|
|
4502
4537
|
}
|
|
4503
4538
|
return e.$$set = (b) => {
|
|
4504
|
-
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10,
|
|
4539
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, v = b.translationurl), "mbsource" in b && r(14, d = b.mbsource), "$$scope" in b && r(15, o = b.$$scope);
|
|
4505
4540
|
}, e.$$.update = () => {
|
|
4506
4541
|
e.$$.dirty & /*modaltext, lang*/
|
|
4507
|
-
1025 && s &&
|
|
4508
|
-
2056 &&
|
|
4509
|
-
4104 &&
|
|
4510
|
-
16392 &&
|
|
4511
|
-
8192 &&
|
|
4542
|
+
1025 && s && c && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4543
|
+
2056 && f && S && zi(S, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4544
|
+
4104 && m && S && Zi(S, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4545
|
+
16392 && d && S && Qi(S, `${d}.Style`), e.$$.dirty & /*translationurl*/
|
|
4546
|
+
8192 && v && y();
|
|
4512
4547
|
}, [
|
|
4513
4548
|
s,
|
|
4514
4549
|
a,
|
|
4515
4550
|
l,
|
|
4516
|
-
|
|
4551
|
+
S,
|
|
4517
4552
|
n,
|
|
4518
|
-
|
|
4553
|
+
H,
|
|
4519
4554
|
_,
|
|
4520
|
-
|
|
4555
|
+
x,
|
|
4521
4556
|
u,
|
|
4522
4557
|
h,
|
|
4523
|
-
f,
|
|
4524
4558
|
c,
|
|
4559
|
+
f,
|
|
4560
|
+
m,
|
|
4561
|
+
v,
|
|
4525
4562
|
d,
|
|
4526
|
-
y,
|
|
4527
|
-
p,
|
|
4528
4563
|
o,
|
|
4529
4564
|
i,
|
|
4530
4565
|
se,
|
|
4531
|
-
|
|
4532
|
-
|
|
4566
|
+
mr,
|
|
4567
|
+
pr
|
|
4533
4568
|
];
|
|
4534
4569
|
}
|
|
4535
|
-
class
|
|
4570
|
+
class to extends Dr {
|
|
4536
4571
|
constructor(t) {
|
|
4537
|
-
super(),
|
|
4572
|
+
super(), Gr(
|
|
4538
4573
|
this,
|
|
4539
4574
|
t,
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4575
|
+
eo,
|
|
4576
|
+
Ki,
|
|
4577
|
+
It,
|
|
4543
4578
|
{
|
|
4544
4579
|
modaltext: 0,
|
|
4545
4580
|
modaltitle: 1,
|
|
@@ -4552,7 +4587,7 @@ class Yi extends Rr {
|
|
|
4552
4587
|
translationurl: 13,
|
|
4553
4588
|
mbsource: 14
|
|
4554
4589
|
},
|
|
4555
|
-
|
|
4590
|
+
Ji
|
|
4556
4591
|
);
|
|
4557
4592
|
}
|
|
4558
4593
|
get modaltext() {
|
|
@@ -4616,7 +4651,7 @@ class Yi extends Rr {
|
|
|
4616
4651
|
this.$$set({ mbsource: t }), O();
|
|
4617
4652
|
}
|
|
4618
4653
|
}
|
|
4619
|
-
|
|
4654
|
+
Ur(to, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4620
4655
|
export {
|
|
4621
|
-
|
|
4656
|
+
to as P
|
|
4622
4657
|
};
|