@everymatrix/player-account-timeout 1.74.3 → 1.74.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-BwTniqXY.js → PlayerAccountGeneralConfirmationModal-5qFM4_q7.js} +707 -693
- package/components/{PlayerAccountGeneralConfirmationModal-z3wlNX1R.js → PlayerAccountGeneralConfirmationModal-CDWu9PDO.js} +754 -740
- package/components/PlayerAccountGeneralConfirmationModal-Cuo9r0rD.cjs +18 -0
- package/components/{PlayerAccountTimeout-DMq4bGyx.cjs → PlayerAccountTimeout-BKeRlSSh.cjs} +152 -152
- package/components/{PlayerAccountTimeout-ByJdD7eK.js → PlayerAccountTimeout-DJzkcdJo.js} +1031 -1030
- package/components/{PlayerAccountTimeout-BzCqBJ5d.js → PlayerAccountTimeout-EpPro8ec.js} +1007 -1006
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BbCeNxUG.js → index-b2193545-BtPvM93e.js} +176 -176
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/{index-b2193545-C9PH-6qK.js → index-b2193545-D_KBbaD-.js} +169 -169
- package/stencil/{ui-skeleton-bhljBTS7.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-CJbkvgG7.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-BKDs0-7H.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CXlvqczG.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-ZB0isFAq.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-gun6WX2F.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-yzlYlKBq.cjs +0 -18
- package/stencil/index-b2193545-D-u-gzj3.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var we = (e, t, r) => t in e ?
|
|
1
|
+
var _r = Object.defineProperty, Er = Object.defineProperties;
|
|
2
|
+
var Sr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var nt = Object.getOwnPropertySymbols;
|
|
4
|
+
var wr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
wr.call(t, r) && we(e, r, t[r]);
|
|
8
|
+
if (nt)
|
|
9
|
+
for (var r of nt(t))
|
|
10
|
+
Tr.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, ot = (e, t) => Er(e, Sr(t));
|
|
13
13
|
var O = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -29,7 +29,7 @@ var it = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function N() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Hr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,25 +37,25 @@ function Sr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Lt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function at() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function Q(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Lt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Je(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Rt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ar(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function $t(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const n of t)
|
|
61
61
|
n(void 0);
|
|
@@ -64,19 +64,19 @@ function Lt(e, ...t) {
|
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function Br(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push($t(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Cr(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = Gt(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
76
|
+
function Gt(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? Hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Pr(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
81
81
|
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
@@ -91,13 +91,13 @@ function Ar(e, t, r, n) {
|
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Or(e, t, r, n, i, o) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const s =
|
|
96
|
+
const s = Gt(t, r, n, o);
|
|
97
97
|
e.p(s, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Ir(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
@@ -106,17 +106,17 @@ function Cr(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function B(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const n =
|
|
112
|
+
function Mr(e, t, r) {
|
|
113
|
+
const n = Nr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
115
|
const i = M("style");
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
116
|
+
i.id = t, i.textContent = r, Lr(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Nr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,8 +126,8 @@ function Or(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function Lr(e, t) {
|
|
130
|
+
return B(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
@@ -139,14 +139,14 @@ function oe(e, t, r) {
|
|
|
139
139
|
function J(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function fo(e, t) {
|
|
143
143
|
for (let r = 0; r < e.length; r += 1)
|
|
144
144
|
e[r] && e[r].d(t);
|
|
145
145
|
}
|
|
146
146
|
function M(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ut(e) {
|
|
150
150
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
151
151
|
}
|
|
152
152
|
function se(e) {
|
|
@@ -155,33 +155,33 @@ function se(e) {
|
|
|
155
155
|
function le() {
|
|
156
156
|
return se(" ");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function mo() {
|
|
159
159
|
return se("");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Me(e, t, r, n) {
|
|
162
162
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
163
163
|
}
|
|
164
164
|
function T(e, t, r) {
|
|
165
165
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function po(e, t, r) {
|
|
168
168
|
const n = t.toLowerCase();
|
|
169
169
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Rr(e) {
|
|
172
172
|
return Array.from(e.childNodes);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function qe(e, t) {
|
|
175
175
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
176
176
|
t);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function bo(e, t) {
|
|
179
179
|
e.value = t == null ? "" : t;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function go(e, t, r, n) {
|
|
182
182
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function vo(e, t, r) {
|
|
185
185
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
186
186
|
const i = e.options[n];
|
|
187
187
|
if (i.__value === t) {
|
|
@@ -191,11 +191,11 @@ function bo(e, t, r) {
|
|
|
191
191
|
}
|
|
192
192
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function yo(e) {
|
|
195
195
|
const t = e.querySelector(":checked");
|
|
196
196
|
return t && t.__value;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function $r(e) {
|
|
199
199
|
const t = {};
|
|
200
200
|
return e.childNodes.forEach(
|
|
201
201
|
/** @param {Element} node */
|
|
@@ -208,22 +208,22 @@ let re;
|
|
|
208
208
|
function te(e) {
|
|
209
209
|
re = e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Gr() {
|
|
212
212
|
if (!re)
|
|
213
213
|
throw new Error("Function called outside component initialization");
|
|
214
214
|
return re;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function Ur(e) {
|
|
217
|
+
Gr().$$.on_mount.push(e);
|
|
218
218
|
}
|
|
219
|
-
const j = [],
|
|
219
|
+
const j = [], Ne = [];
|
|
220
220
|
let k = [];
|
|
221
|
-
const
|
|
222
|
-
let
|
|
223
|
-
function
|
|
224
|
-
|
|
221
|
+
const lt = [], Dr = /* @__PURE__ */ Promise.resolve();
|
|
222
|
+
let Le = !1;
|
|
223
|
+
function Fr() {
|
|
224
|
+
Le || (Le = !0, Dr.then(I));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Re(e) {
|
|
227
227
|
k.push(e);
|
|
228
228
|
}
|
|
229
229
|
const Te = /* @__PURE__ */ new Set();
|
|
@@ -236,66 +236,66 @@ function I() {
|
|
|
236
236
|
try {
|
|
237
237
|
for (; D < j.length; ) {
|
|
238
238
|
const t = j[D];
|
|
239
|
-
D++, te(t),
|
|
239
|
+
D++, te(t), jr(t.$$);
|
|
240
240
|
}
|
|
241
241
|
} catch (t) {
|
|
242
242
|
throw j.length = 0, D = 0, t;
|
|
243
243
|
}
|
|
244
|
-
for (te(null), j.length = 0, D = 0;
|
|
245
|
-
|
|
244
|
+
for (te(null), j.length = 0, D = 0; Ne.length; )
|
|
245
|
+
Ne.pop()();
|
|
246
246
|
for (let t = 0; t < k.length; t += 1) {
|
|
247
247
|
const r = k[t];
|
|
248
248
|
Te.has(r) || (Te.add(r), r());
|
|
249
249
|
}
|
|
250
250
|
k.length = 0;
|
|
251
251
|
} while (j.length);
|
|
252
|
-
for (;
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
for (; lt.length; )
|
|
253
|
+
lt.pop()();
|
|
254
|
+
Le = !1, Te.clear(), te(e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function jr(e) {
|
|
257
257
|
if (e.fragment !== null) {
|
|
258
258
|
e.update(), Q(e.before_update);
|
|
259
259
|
const t = e.dirty;
|
|
260
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
260
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function kr(e) {
|
|
264
264
|
const t = [], r = [];
|
|
265
265
|
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
let
|
|
269
|
-
function
|
|
270
|
-
e && e.i && (
|
|
267
|
+
const fe = /* @__PURE__ */ new Set();
|
|
268
|
+
let Vr;
|
|
269
|
+
function Ut(e, t) {
|
|
270
|
+
e && e.i && (fe.delete(e), e.i(t));
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
if (e.o) {
|
|
274
|
-
if (
|
|
272
|
+
function Xr(e, t, r, n) {
|
|
273
|
+
if (e && e.o) {
|
|
274
|
+
if (fe.has(e))
|
|
275
275
|
return;
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
fe.add(e), Vr.c.push(() => {
|
|
277
|
+
fe.delete(e);
|
|
278
278
|
}), e.o(t);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function xo(e) {
|
|
282
282
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function zr(e, t, r) {
|
|
285
285
|
const { fragment: n, after_update: i } = e.$$;
|
|
286
|
-
n && n.m(t, r),
|
|
287
|
-
const o = e.$$.on_mount.map(
|
|
286
|
+
n && n.m(t, r), Re(() => {
|
|
287
|
+
const o = e.$$.on_mount.map(Lt).filter(Je);
|
|
288
288
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Q(o), e.$$.on_mount = [];
|
|
289
|
-
}), i.forEach(
|
|
289
|
+
}), i.forEach(Re);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Wr(e, t) {
|
|
292
292
|
const r = e.$$;
|
|
293
|
-
r.fragment !== null && (
|
|
293
|
+
r.fragment !== null && (kr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
295
|
+
function Zr(e, t) {
|
|
296
|
+
e.$$.dirty[0] === -1 && (j.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
299
299
|
const l = re;
|
|
300
300
|
te(e);
|
|
301
301
|
const u = e.$$ = {
|
|
@@ -305,7 +305,7 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
305
305
|
props: o,
|
|
306
306
|
update: N,
|
|
307
307
|
not_equal: i,
|
|
308
|
-
bound:
|
|
308
|
+
bound: at(),
|
|
309
309
|
// lifecycle
|
|
310
310
|
on_mount: [],
|
|
311
311
|
on_destroy: [],
|
|
@@ -314,28 +314,28 @@ function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
314
314
|
after_update: [],
|
|
315
315
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
316
316
|
// everything else
|
|
317
|
-
callbacks:
|
|
317
|
+
callbacks: at(),
|
|
318
318
|
dirty: a,
|
|
319
319
|
skip_bound: !1,
|
|
320
320
|
root: t.target || l.$$.root
|
|
321
321
|
};
|
|
322
322
|
s && s(u.root);
|
|
323
323
|
let h = !1;
|
|
324
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
325
|
-
const
|
|
326
|
-
return u.ctx && i(u.ctx[
|
|
324
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
325
|
+
const v = m.length ? m[0] : f;
|
|
326
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Zr(e, c)), f;
|
|
327
327
|
}) : [], u.update(), h = !0, Q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
328
328
|
if (t.hydrate) {
|
|
329
|
-
const
|
|
330
|
-
u.fragment && u.fragment.l(
|
|
329
|
+
const c = Rr(t.target);
|
|
330
|
+
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
331
331
|
} else
|
|
332
332
|
u.fragment && u.fragment.c();
|
|
333
|
-
t.intro &&
|
|
333
|
+
t.intro && Ut(e.$$.fragment), zr(e, t.target, t.anchor), I();
|
|
334
334
|
}
|
|
335
335
|
te(l);
|
|
336
336
|
}
|
|
337
|
-
let
|
|
338
|
-
typeof HTMLElement == "function" && (
|
|
337
|
+
let Dt;
|
|
338
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
339
339
|
constructor(t, r, n) {
|
|
340
340
|
super();
|
|
341
341
|
/** The Svelte component constructor */
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
connectedCallback() {
|
|
375
|
-
return
|
|
375
|
+
return st(this, null, function* () {
|
|
376
376
|
if (this.$$cn = !0, !this.$$c) {
|
|
377
377
|
let t = function(o) {
|
|
378
378
|
return () => {
|
|
@@ -396,18 +396,18 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
396
396
|
};
|
|
397
397
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
398
398
|
return;
|
|
399
|
-
const r = {}, n =
|
|
399
|
+
const r = {}, n = $r(this);
|
|
400
400
|
for (const o of this.$$s)
|
|
401
401
|
o in n && (r[o] = [t(o)]);
|
|
402
402
|
for (const o of this.attributes) {
|
|
403
403
|
const s = this.$$g_p(o.name);
|
|
404
|
-
s in this.$$d || (this.$$d[s] =
|
|
404
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
|
405
405
|
}
|
|
406
406
|
for (const o in this.$$p_d)
|
|
407
407
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
408
408
|
this.$$c = new this.$$ctor({
|
|
409
409
|
target: this.shadowRoot || this,
|
|
410
|
-
props:
|
|
410
|
+
props: ot(it({}, this.$$d), {
|
|
411
411
|
$$slots: r,
|
|
412
412
|
$$scope: {
|
|
413
413
|
ctx: []
|
|
@@ -418,7 +418,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
418
418
|
this.$$r = !0;
|
|
419
419
|
for (const o in this.$$p_d)
|
|
420
420
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
421
|
-
const s =
|
|
421
|
+
const s = me(
|
|
422
422
|
o,
|
|
423
423
|
this.$$d[o],
|
|
424
424
|
this.$$p_d,
|
|
@@ -442,7 +442,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
442
442
|
// and setting attributes through setAttribute etc, this is helpful
|
|
443
443
|
attributeChangedCallback(t, r, n) {
|
|
444
444
|
var i;
|
|
445
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
445
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
446
446
|
}
|
|
447
447
|
disconnectedCallback() {
|
|
448
448
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -455,7 +455,7 @@ typeof HTMLElement == "function" && (Gt = class extends HTMLElement {
|
|
|
455
455
|
) || t;
|
|
456
456
|
}
|
|
457
457
|
});
|
|
458
|
-
function
|
|
458
|
+
function me(e, t, r, n) {
|
|
459
459
|
var o;
|
|
460
460
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
461
461
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -485,8 +485,8 @@ function de(e, t, r, n) {
|
|
|
485
485
|
return t;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
let s = class extends
|
|
488
|
+
function Jr(e, t, r, n, i, o) {
|
|
489
|
+
let s = class extends Dt {
|
|
490
490
|
constructor() {
|
|
491
491
|
super(e, r, i), this.$$p_d = t;
|
|
492
492
|
}
|
|
@@ -503,7 +503,7 @@ function Wr(e, t, r, n, i, o) {
|
|
|
503
503
|
},
|
|
504
504
|
set(l) {
|
|
505
505
|
var u;
|
|
506
|
-
l =
|
|
506
|
+
l = me(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
}), n.forEach((a) => {
|
|
@@ -516,7 +516,7 @@ function Wr(e, t, r, n, i, o) {
|
|
|
516
516
|
}), e.element = /** @type {any} */
|
|
517
517
|
s, s;
|
|
518
518
|
}
|
|
519
|
-
class
|
|
519
|
+
class qr {
|
|
520
520
|
constructor() {
|
|
521
521
|
/**
|
|
522
522
|
* ### PRIVATE API
|
|
@@ -537,7 +537,7 @@ class Zr {
|
|
|
537
537
|
}
|
|
538
538
|
/** @returns {void} */
|
|
539
539
|
$destroy() {
|
|
540
|
-
|
|
540
|
+
Wr(this, 1), this.$destroy = N;
|
|
541
541
|
}
|
|
542
542
|
/**
|
|
543
543
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -546,7 +546,7 @@ class Zr {
|
|
|
546
546
|
* @returns {() => void}
|
|
547
547
|
*/
|
|
548
548
|
$on(t, r) {
|
|
549
|
-
if (!
|
|
549
|
+
if (!Je(r))
|
|
550
550
|
return N;
|
|
551
551
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
552
552
|
return n.push(r), () => {
|
|
@@ -559,13 +559,13 @@ class Zr {
|
|
|
559
559
|
* @returns {void}
|
|
560
560
|
*/
|
|
561
561
|
$set(t) {
|
|
562
|
-
this.$$set && !
|
|
562
|
+
this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
const
|
|
566
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
567
|
-
var
|
|
568
|
-
function
|
|
565
|
+
const Yr = "4";
|
|
566
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
|
|
567
|
+
var _o = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
568
|
+
function Kr(e) {
|
|
569
569
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
570
570
|
}
|
|
571
571
|
/*! *****************************************************************************
|
|
@@ -582,34 +582,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
582
582
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
583
583
|
PERFORMANCE OF THIS SOFTWARE.
|
|
584
584
|
***************************************************************************** */
|
|
585
|
-
var
|
|
586
|
-
return
|
|
585
|
+
var $e = function(e, t) {
|
|
586
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
587
587
|
r.__proto__ = n;
|
|
588
588
|
} || function(r, n) {
|
|
589
589
|
for (var i in n)
|
|
590
590
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
591
|
-
},
|
|
591
|
+
}, $e(e, t);
|
|
592
592
|
};
|
|
593
593
|
function R(e, t) {
|
|
594
594
|
if (typeof t != "function" && t !== null)
|
|
595
595
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
596
|
-
|
|
596
|
+
$e(e, t);
|
|
597
597
|
function r() {
|
|
598
598
|
this.constructor = e;
|
|
599
599
|
}
|
|
600
600
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
601
601
|
}
|
|
602
|
-
var
|
|
603
|
-
return
|
|
602
|
+
var y = function() {
|
|
603
|
+
return y = Object.assign || function(t) {
|
|
604
604
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
605
605
|
r = arguments[n];
|
|
606
606
|
for (var o in r)
|
|
607
607
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
608
608
|
}
|
|
609
609
|
return t;
|
|
610
|
-
},
|
|
610
|
+
}, y.apply(this, arguments);
|
|
611
611
|
};
|
|
612
|
-
function
|
|
612
|
+
function en(e, t) {
|
|
613
613
|
var r = {};
|
|
614
614
|
for (var n in e)
|
|
615
615
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -618,7 +618,7 @@ function qr(e, t) {
|
|
|
618
618
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
619
619
|
return r;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Ge(e) {
|
|
622
622
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
623
623
|
if (r)
|
|
624
624
|
return r.call(e);
|
|
@@ -630,7 +630,7 @@ function $e(e) {
|
|
|
630
630
|
};
|
|
631
631
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Ue(e, t) {
|
|
634
634
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
635
635
|
if (!r)
|
|
636
636
|
return e;
|
|
@@ -659,13 +659,13 @@ function V(e, t, r) {
|
|
|
659
659
|
function L(e) {
|
|
660
660
|
return typeof e == "function";
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ft(e) {
|
|
663
663
|
var t = function(n) {
|
|
664
664
|
Error.call(n), n.stack = new Error().stack;
|
|
665
665
|
}, r = e(t);
|
|
666
666
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
667
667
|
}
|
|
668
|
-
var He =
|
|
668
|
+
var He = Ft(function(e) {
|
|
669
669
|
return function(r) {
|
|
670
670
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
671
671
|
` + r.map(function(n, i) {
|
|
@@ -674,13 +674,13 @@ var He = Ut(function(e) {
|
|
|
674
674
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
675
675
|
};
|
|
676
676
|
});
|
|
677
|
-
function
|
|
677
|
+
function De(e, t) {
|
|
678
678
|
if (e) {
|
|
679
679
|
var r = e.indexOf(t);
|
|
680
680
|
0 <= r && e.splice(r, 1);
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var ye = function() {
|
|
684
684
|
function e(t) {
|
|
685
685
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
686
686
|
}
|
|
@@ -692,7 +692,7 @@ var ve = function() {
|
|
|
692
692
|
if (s)
|
|
693
693
|
if (this._parentage = null, Array.isArray(s))
|
|
694
694
|
try {
|
|
695
|
-
for (var a =
|
|
695
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
696
696
|
var u = l.value;
|
|
697
697
|
u.remove(this);
|
|
698
698
|
}
|
|
@@ -715,23 +715,23 @@ var ve = function() {
|
|
|
715
715
|
} catch (p) {
|
|
716
716
|
o = p instanceof He ? p.errors : [p];
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
if (
|
|
718
|
+
var c = this._finalizers;
|
|
719
|
+
if (c) {
|
|
720
720
|
this._finalizers = null;
|
|
721
721
|
try {
|
|
722
|
-
for (var
|
|
723
|
-
var
|
|
722
|
+
for (var f = Ge(c), m = f.next(); !m.done; m = f.next()) {
|
|
723
|
+
var v = m.value;
|
|
724
724
|
try {
|
|
725
|
-
|
|
725
|
+
ht(v);
|
|
726
726
|
} catch (p) {
|
|
727
|
-
o = o != null ? o : [], p instanceof He ? o = V(V([],
|
|
727
|
+
o = o != null ? o : [], p instanceof He ? o = V(V([], Ue(o)), Ue(p.errors)) : o.push(p);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
} catch (p) {
|
|
731
731
|
n = { error: p };
|
|
732
732
|
} finally {
|
|
733
733
|
try {
|
|
734
|
-
|
|
734
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
735
735
|
} finally {
|
|
736
736
|
if (n)
|
|
737
737
|
throw n.error;
|
|
@@ -745,7 +745,7 @@ var ve = function() {
|
|
|
745
745
|
var r;
|
|
746
746
|
if (t && t !== this)
|
|
747
747
|
if (this.closed)
|
|
748
|
-
|
|
748
|
+
ht(t);
|
|
749
749
|
else {
|
|
750
750
|
if (t instanceof e) {
|
|
751
751
|
if (t.closed || t._hasParent(this))
|
|
@@ -762,56 +762,56 @@ var ve = function() {
|
|
|
762
762
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
763
763
|
}, e.prototype._removeParent = function(t) {
|
|
764
764
|
var r = this._parentage;
|
|
765
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
765
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
766
766
|
}, e.prototype.remove = function(t) {
|
|
767
767
|
var r = this._finalizers;
|
|
768
|
-
r &&
|
|
768
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
769
769
|
}, e.EMPTY = function() {
|
|
770
770
|
var t = new e();
|
|
771
771
|
return t.closed = !0, t;
|
|
772
772
|
}(), e;
|
|
773
|
-
}(),
|
|
774
|
-
function
|
|
775
|
-
return e instanceof
|
|
773
|
+
}(), jt = ye.EMPTY;
|
|
774
|
+
function kt(e) {
|
|
775
|
+
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function ht(e) {
|
|
778
778
|
L(e) ? e() : e.unsubscribe();
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var Vt = {
|
|
781
781
|
onUnhandledError: null,
|
|
782
782
|
onStoppedNotification: null,
|
|
783
783
|
Promise: void 0,
|
|
784
784
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
785
785
|
useDeprecatedNextContext: !1
|
|
786
|
-
},
|
|
786
|
+
}, tn = {
|
|
787
787
|
setTimeout: function(e, t) {
|
|
788
788
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
789
789
|
r[n - 2] = arguments[n];
|
|
790
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
790
|
+
return setTimeout.apply(void 0, V([e, t], Ue(r)));
|
|
791
791
|
},
|
|
792
792
|
clearTimeout: function(e) {
|
|
793
793
|
return clearTimeout(e);
|
|
794
794
|
},
|
|
795
795
|
delegate: void 0
|
|
796
796
|
};
|
|
797
|
-
function
|
|
798
|
-
|
|
797
|
+
function rn(e) {
|
|
798
|
+
tn.setTimeout(function() {
|
|
799
799
|
throw e;
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function ct() {
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function de(e) {
|
|
805
805
|
e();
|
|
806
806
|
}
|
|
807
|
-
var
|
|
807
|
+
var Xt = function(e) {
|
|
808
808
|
R(t, e);
|
|
809
809
|
function t(r) {
|
|
810
810
|
var n = e.call(this) || this;
|
|
811
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
811
|
+
return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = an, n;
|
|
812
812
|
}
|
|
813
813
|
return t.create = function(r, n, i) {
|
|
814
|
-
return new
|
|
814
|
+
return new Fe(r, n, i);
|
|
815
815
|
}, t.prototype.next = function(r) {
|
|
816
816
|
this.isStopped || this._next(r);
|
|
817
817
|
}, t.prototype.error = function(r) {
|
|
@@ -835,7 +835,11 @@ var jt = function(e) {
|
|
|
835
835
|
this.unsubscribe();
|
|
836
836
|
}
|
|
837
837
|
}, t;
|
|
838
|
-
}(
|
|
838
|
+
}(ye), nn = Function.prototype.bind;
|
|
839
|
+
function Ae(e, t) {
|
|
840
|
+
return nn.call(e, t);
|
|
841
|
+
}
|
|
842
|
+
var on = function() {
|
|
839
843
|
function e(t) {
|
|
840
844
|
this.partialObserver = t;
|
|
841
845
|
}
|
|
@@ -866,43 +870,55 @@ var jt = function(e) {
|
|
|
866
870
|
he(r);
|
|
867
871
|
}
|
|
868
872
|
}, e;
|
|
869
|
-
}(),
|
|
873
|
+
}(), Fe = function(e) {
|
|
870
874
|
R(t, e);
|
|
871
875
|
function t(r, n, i) {
|
|
872
876
|
var o = e.call(this) || this, s;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
877
|
+
if (L(r) || !r)
|
|
878
|
+
s = {
|
|
879
|
+
next: r != null ? r : void 0,
|
|
880
|
+
error: n != null ? n : void 0,
|
|
881
|
+
complete: i != null ? i : void 0
|
|
882
|
+
};
|
|
883
|
+
else {
|
|
884
|
+
var a;
|
|
885
|
+
o && Vt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
886
|
+
return o.unsubscribe();
|
|
887
|
+
}, s = {
|
|
888
|
+
next: r.next && Ae(r.next, a),
|
|
889
|
+
error: r.error && Ae(r.error, a),
|
|
890
|
+
complete: r.complete && Ae(r.complete, a)
|
|
891
|
+
}) : s = r;
|
|
892
|
+
}
|
|
893
|
+
return o.destination = new on(s), o;
|
|
878
894
|
}
|
|
879
895
|
return t;
|
|
880
|
-
}(
|
|
896
|
+
}(Xt);
|
|
881
897
|
function he(e) {
|
|
882
|
-
|
|
898
|
+
rn(e);
|
|
883
899
|
}
|
|
884
|
-
function
|
|
900
|
+
function sn(e) {
|
|
885
901
|
throw e;
|
|
886
902
|
}
|
|
887
|
-
var
|
|
903
|
+
var an = {
|
|
888
904
|
closed: !0,
|
|
889
|
-
next:
|
|
890
|
-
error:
|
|
891
|
-
complete:
|
|
892
|
-
},
|
|
905
|
+
next: ct,
|
|
906
|
+
error: sn,
|
|
907
|
+
complete: ct
|
|
908
|
+
}, un = function() {
|
|
893
909
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
894
910
|
}();
|
|
895
|
-
function
|
|
911
|
+
function ln(e) {
|
|
896
912
|
return e;
|
|
897
913
|
}
|
|
898
|
-
function
|
|
899
|
-
return e.length === 0 ?
|
|
914
|
+
function hn(e) {
|
|
915
|
+
return e.length === 0 ? ln : e.length === 1 ? e[0] : function(r) {
|
|
900
916
|
return e.reduce(function(n, i) {
|
|
901
917
|
return i(n);
|
|
902
918
|
}, r);
|
|
903
919
|
};
|
|
904
920
|
}
|
|
905
|
-
var
|
|
921
|
+
var ft = function() {
|
|
906
922
|
function e(t) {
|
|
907
923
|
t && (this._subscribe = t);
|
|
908
924
|
}
|
|
@@ -910,8 +926,8 @@ var ht = function() {
|
|
|
910
926
|
var r = new e();
|
|
911
927
|
return r.source = this, r.operator = t, r;
|
|
912
928
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
913
|
-
var i = this, o =
|
|
914
|
-
return
|
|
929
|
+
var i = this, o = fn(t) ? t : new Fe(t, r, n);
|
|
930
|
+
return de(function() {
|
|
915
931
|
var s = i, a = s.operator, l = s.source;
|
|
916
932
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
917
933
|
}), o;
|
|
@@ -923,8 +939,8 @@ var ht = function() {
|
|
|
923
939
|
}
|
|
924
940
|
}, e.prototype.forEach = function(t, r) {
|
|
925
941
|
var n = this;
|
|
926
|
-
return r =
|
|
927
|
-
var s = new
|
|
942
|
+
return r = mt(r), new r(function(i, o) {
|
|
943
|
+
var s = new Fe({
|
|
928
944
|
next: function(a) {
|
|
929
945
|
try {
|
|
930
946
|
t(a);
|
|
@@ -940,15 +956,15 @@ var ht = function() {
|
|
|
940
956
|
}, e.prototype._subscribe = function(t) {
|
|
941
957
|
var r;
|
|
942
958
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
943
|
-
}, e.prototype[
|
|
959
|
+
}, e.prototype[un] = function() {
|
|
944
960
|
return this;
|
|
945
961
|
}, e.prototype.pipe = function() {
|
|
946
962
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
947
963
|
t[r] = arguments[r];
|
|
948
|
-
return
|
|
964
|
+
return hn(t)(this);
|
|
949
965
|
}, e.prototype.toPromise = function(t) {
|
|
950
966
|
var r = this;
|
|
951
|
-
return t =
|
|
967
|
+
return t = mt(t), new t(function(n, i) {
|
|
952
968
|
var o;
|
|
953
969
|
r.subscribe(function(s) {
|
|
954
970
|
return o = s;
|
|
@@ -962,40 +978,40 @@ var ht = function() {
|
|
|
962
978
|
return new e(t);
|
|
963
979
|
}, e;
|
|
964
980
|
}();
|
|
965
|
-
function
|
|
981
|
+
function mt(e) {
|
|
966
982
|
var t;
|
|
967
|
-
return (t = e != null ? e :
|
|
983
|
+
return (t = e != null ? e : Vt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
968
984
|
}
|
|
969
|
-
function
|
|
985
|
+
function cn(e) {
|
|
970
986
|
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
971
987
|
}
|
|
972
|
-
function
|
|
973
|
-
return e && e instanceof
|
|
988
|
+
function fn(e) {
|
|
989
|
+
return e && e instanceof Xt || cn(e) && kt(e);
|
|
974
990
|
}
|
|
975
|
-
var
|
|
991
|
+
var mn = Ft(function(e) {
|
|
976
992
|
return function() {
|
|
977
993
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
978
994
|
};
|
|
979
|
-
}),
|
|
995
|
+
}), zt = function(e) {
|
|
980
996
|
R(t, e);
|
|
981
997
|
function t() {
|
|
982
998
|
var r = e.call(this) || this;
|
|
983
999
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
984
1000
|
}
|
|
985
1001
|
return t.prototype.lift = function(r) {
|
|
986
|
-
var n = new
|
|
1002
|
+
var n = new dt(this, this);
|
|
987
1003
|
return n.operator = r, n;
|
|
988
1004
|
}, t.prototype._throwIfClosed = function() {
|
|
989
1005
|
if (this.closed)
|
|
990
|
-
throw new
|
|
1006
|
+
throw new mn();
|
|
991
1007
|
}, t.prototype.next = function(r) {
|
|
992
1008
|
var n = this;
|
|
993
|
-
|
|
1009
|
+
de(function() {
|
|
994
1010
|
var i, o;
|
|
995
1011
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
996
1012
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
997
1013
|
try {
|
|
998
|
-
for (var s =
|
|
1014
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
999
1015
|
var l = a.value;
|
|
1000
1016
|
l.next(r);
|
|
1001
1017
|
}
|
|
@@ -1013,7 +1029,7 @@ var hn = Ut(function(e) {
|
|
|
1013
1029
|
});
|
|
1014
1030
|
}, t.prototype.error = function(r) {
|
|
1015
1031
|
var n = this;
|
|
1016
|
-
|
|
1032
|
+
de(function() {
|
|
1017
1033
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1018
1034
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1019
1035
|
for (var i = n.observers; i.length; )
|
|
@@ -1022,7 +1038,7 @@ var hn = Ut(function(e) {
|
|
|
1022
1038
|
});
|
|
1023
1039
|
}, t.prototype.complete = function() {
|
|
1024
1040
|
var r = this;
|
|
1025
|
-
|
|
1041
|
+
de(function() {
|
|
1026
1042
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1027
1043
|
r.isStopped = !0;
|
|
1028
1044
|
for (var n = r.observers; n.length; )
|
|
@@ -1044,19 +1060,19 @@ var hn = Ut(function(e) {
|
|
|
1044
1060
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1045
1061
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1046
1062
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1047
|
-
return o || s ?
|
|
1048
|
-
n.currentObservers = null,
|
|
1063
|
+
return o || s ? jt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
1064
|
+
n.currentObservers = null, De(a, r);
|
|
1049
1065
|
}));
|
|
1050
1066
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1051
1067
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1052
1068
|
i ? r.error(o) : s && r.complete();
|
|
1053
1069
|
}, t.prototype.asObservable = function() {
|
|
1054
|
-
var r = new
|
|
1070
|
+
var r = new ft();
|
|
1055
1071
|
return r.source = this, r;
|
|
1056
1072
|
}, t.create = function(r, n) {
|
|
1057
|
-
return new
|
|
1073
|
+
return new dt(r, n);
|
|
1058
1074
|
}, t;
|
|
1059
|
-
}(
|
|
1075
|
+
}(ft), dt = function(e) {
|
|
1060
1076
|
R(t, e);
|
|
1061
1077
|
function t(r, n) {
|
|
1062
1078
|
var i = e.call(this) || this;
|
|
@@ -1073,17 +1089,17 @@ var hn = Ut(function(e) {
|
|
|
1073
1089
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1074
1090
|
}, t.prototype._subscribe = function(r) {
|
|
1075
1091
|
var n, i;
|
|
1076
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1092
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : jt;
|
|
1077
1093
|
}, t;
|
|
1078
|
-
}(
|
|
1094
|
+
}(zt), Wt = {
|
|
1079
1095
|
now: function() {
|
|
1080
|
-
return (
|
|
1096
|
+
return (Wt.delegate || Date).now();
|
|
1081
1097
|
},
|
|
1082
1098
|
delegate: void 0
|
|
1083
|
-
},
|
|
1099
|
+
}, dn = function(e) {
|
|
1084
1100
|
R(t, e);
|
|
1085
1101
|
function t(r, n, i) {
|
|
1086
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1102
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wt);
|
|
1087
1103
|
var o = e.call(this) || this;
|
|
1088
1104
|
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;
|
|
1089
1105
|
}
|
|
@@ -1103,15 +1119,15 @@ var hn = Ut(function(e) {
|
|
|
1103
1119
|
u && o.splice(0, u + 1);
|
|
1104
1120
|
}
|
|
1105
1121
|
}, t;
|
|
1106
|
-
}(
|
|
1107
|
-
const
|
|
1108
|
-
if (
|
|
1109
|
-
const r = new
|
|
1110
|
-
|
|
1122
|
+
}(zt);
|
|
1123
|
+
const pt = [], bt = {}, pn = (e, t = 0) => {
|
|
1124
|
+
if (pt.indexOf(e) == -1) {
|
|
1125
|
+
const r = new dn(t);
|
|
1126
|
+
bt[e] = r, pt.push(e);
|
|
1111
1127
|
}
|
|
1112
|
-
return
|
|
1128
|
+
return bt[e];
|
|
1113
1129
|
}, F = [];
|
|
1114
|
-
function
|
|
1130
|
+
function bn(e, t) {
|
|
1115
1131
|
return {
|
|
1116
1132
|
subscribe: xe(e, t).subscribe
|
|
1117
1133
|
};
|
|
@@ -1120,7 +1136,7 @@ function xe(e, t = N) {
|
|
|
1120
1136
|
let r;
|
|
1121
1137
|
const n = /* @__PURE__ */ new Set();
|
|
1122
1138
|
function i(a) {
|
|
1123
|
-
if (
|
|
1139
|
+
if (Rt(e, a) && (e = a, r)) {
|
|
1124
1140
|
const l = !F.length;
|
|
1125
1141
|
for (const u of n)
|
|
1126
1142
|
u[1](), F.push(u, e);
|
|
@@ -1147,93 +1163,93 @@ function q(e, t, r) {
|
|
|
1147
1163
|
if (!i.every(Boolean))
|
|
1148
1164
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1149
1165
|
const o = t.length < 2;
|
|
1150
|
-
return
|
|
1166
|
+
return bn(r, (s, a) => {
|
|
1151
1167
|
let l = !1;
|
|
1152
1168
|
const u = [];
|
|
1153
|
-
let h = 0,
|
|
1154
|
-
const
|
|
1169
|
+
let h = 0, c = N;
|
|
1170
|
+
const f = () => {
|
|
1155
1171
|
if (h)
|
|
1156
1172
|
return;
|
|
1157
|
-
|
|
1158
|
-
const
|
|
1159
|
-
o ? s(
|
|
1160
|
-
},
|
|
1161
|
-
(
|
|
1162
|
-
|
|
1173
|
+
c();
|
|
1174
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1175
|
+
o ? s(v) : c = Je(v) ? v : N;
|
|
1176
|
+
}, m = i.map(
|
|
1177
|
+
(v, p) => $t(
|
|
1178
|
+
v,
|
|
1163
1179
|
(w) => {
|
|
1164
|
-
u[p] = w, h &= ~(1 << p), l &&
|
|
1180
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1165
1181
|
},
|
|
1166
1182
|
() => {
|
|
1167
1183
|
h |= 1 << p;
|
|
1168
1184
|
}
|
|
1169
1185
|
)
|
|
1170
1186
|
);
|
|
1171
|
-
return l = !0,
|
|
1172
|
-
Q(
|
|
1187
|
+
return l = !0, f(), function() {
|
|
1188
|
+
Q(m), c(), l = !1;
|
|
1173
1189
|
};
|
|
1174
1190
|
});
|
|
1175
1191
|
}
|
|
1176
|
-
var
|
|
1177
|
-
return
|
|
1192
|
+
var gn = function(t) {
|
|
1193
|
+
return vn(t) && !yn(t);
|
|
1178
1194
|
};
|
|
1179
|
-
function
|
|
1195
|
+
function vn(e) {
|
|
1180
1196
|
return !!e && typeof e == "object";
|
|
1181
1197
|
}
|
|
1182
|
-
function
|
|
1198
|
+
function yn(e) {
|
|
1183
1199
|
var t = Object.prototype.toString.call(e);
|
|
1184
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1200
|
+
return t === "[object RegExp]" || t === "[object Date]" || En(e);
|
|
1185
1201
|
}
|
|
1186
|
-
var
|
|
1187
|
-
function
|
|
1188
|
-
return e.$$typeof ===
|
|
1202
|
+
var xn = typeof Symbol == "function" && Symbol.for, _n = xn ? Symbol.for("react.element") : 60103;
|
|
1203
|
+
function En(e) {
|
|
1204
|
+
return e.$$typeof === _n;
|
|
1189
1205
|
}
|
|
1190
|
-
function
|
|
1206
|
+
function Sn(e) {
|
|
1191
1207
|
return Array.isArray(e) ? [] : {};
|
|
1192
1208
|
}
|
|
1193
1209
|
function ne(e, t) {
|
|
1194
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1210
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Sn(e), e, t) : e;
|
|
1195
1211
|
}
|
|
1196
|
-
function
|
|
1212
|
+
function wn(e, t, r) {
|
|
1197
1213
|
return e.concat(t).map(function(n) {
|
|
1198
1214
|
return ne(n, r);
|
|
1199
1215
|
});
|
|
1200
1216
|
}
|
|
1201
|
-
function
|
|
1217
|
+
function Tn(e, t) {
|
|
1202
1218
|
if (!t.customMerge)
|
|
1203
1219
|
return X;
|
|
1204
1220
|
var r = t.customMerge(e);
|
|
1205
1221
|
return typeof r == "function" ? r : X;
|
|
1206
1222
|
}
|
|
1207
|
-
function
|
|
1223
|
+
function Hn(e) {
|
|
1208
1224
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1209
1225
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1210
1226
|
}) : [];
|
|
1211
1227
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return Object.keys(e).concat(
|
|
1228
|
+
function gt(e) {
|
|
1229
|
+
return Object.keys(e).concat(Hn(e));
|
|
1214
1230
|
}
|
|
1215
|
-
function
|
|
1231
|
+
function Zt(e, t) {
|
|
1216
1232
|
try {
|
|
1217
1233
|
return t in e;
|
|
1218
1234
|
} catch (r) {
|
|
1219
1235
|
return !1;
|
|
1220
1236
|
}
|
|
1221
1237
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1238
|
+
function An(e, t) {
|
|
1239
|
+
return Zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1224
1240
|
}
|
|
1225
|
-
function
|
|
1241
|
+
function Bn(e, t, r) {
|
|
1226
1242
|
var n = {};
|
|
1227
|
-
return r.isMergeableObject(e) &&
|
|
1243
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1228
1244
|
n[i] = ne(e[i], r);
|
|
1229
|
-
}),
|
|
1230
|
-
|
|
1245
|
+
}), gt(t).forEach(function(i) {
|
|
1246
|
+
An(e, i) || (Zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1231
1247
|
}), n;
|
|
1232
1248
|
}
|
|
1233
1249
|
function X(e, t, r) {
|
|
1234
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1250
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1235
1251
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1236
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1252
|
+
return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : ne(t, r);
|
|
1237
1253
|
}
|
|
1238
1254
|
X.all = function(t, r) {
|
|
1239
1255
|
if (!Array.isArray(t))
|
|
@@ -1242,64 +1258,62 @@ X.all = function(t, r) {
|
|
|
1242
1258
|
return X(n, i, r);
|
|
1243
1259
|
}, {});
|
|
1244
1260
|
};
|
|
1245
|
-
var
|
|
1246
|
-
const
|
|
1247
|
-
function
|
|
1248
|
-
var r = t && t.cache ? t.cache :
|
|
1261
|
+
var Cn = X, Pn = Cn;
|
|
1262
|
+
const On = /* @__PURE__ */ Kr(Pn);
|
|
1263
|
+
function Be(e, t) {
|
|
1264
|
+
var r = t && t.cache ? t.cache : $n, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Mn;
|
|
1249
1265
|
return i(e, {
|
|
1250
1266
|
cache: r,
|
|
1251
1267
|
serializer: n
|
|
1252
1268
|
});
|
|
1253
1269
|
}
|
|
1254
|
-
function
|
|
1270
|
+
function In(e) {
|
|
1255
1271
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1256
1272
|
}
|
|
1257
|
-
function
|
|
1258
|
-
var i =
|
|
1273
|
+
function Qt(e, t, r, n) {
|
|
1274
|
+
var i = In(n) ? n : r(n), o = t.get(i);
|
|
1259
1275
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1260
1276
|
}
|
|
1261
|
-
function
|
|
1277
|
+
function Jt(e, t, r) {
|
|
1262
1278
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1263
1279
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1264
1280
|
}
|
|
1265
|
-
function
|
|
1281
|
+
function Ye(e, t, r, n, i) {
|
|
1266
1282
|
return r.bind(t, e, n, i);
|
|
1267
1283
|
}
|
|
1268
|
-
function
|
|
1269
|
-
var r = e.length === 1 ?
|
|
1270
|
-
return
|
|
1284
|
+
function Mn(e, t) {
|
|
1285
|
+
var r = e.length === 1 ? Qt : Jt;
|
|
1286
|
+
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1271
1287
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return
|
|
1288
|
+
function Nn(e, t) {
|
|
1289
|
+
return Ye(e, this, Jt, t.cache.create(), t.serializer);
|
|
1274
1290
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return
|
|
1291
|
+
function Ln(e, t) {
|
|
1292
|
+
return Ye(e, this, Qt, t.cache.create(), t.serializer);
|
|
1277
1293
|
}
|
|
1278
|
-
var
|
|
1294
|
+
var Rn = function() {
|
|
1279
1295
|
return JSON.stringify(arguments);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}()
|
|
1292
|
-
), Ln = {
|
|
1296
|
+
};
|
|
1297
|
+
function Ke() {
|
|
1298
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1299
|
+
}
|
|
1300
|
+
Ke.prototype.get = function(e) {
|
|
1301
|
+
return this.cache[e];
|
|
1302
|
+
};
|
|
1303
|
+
Ke.prototype.set = function(e, t) {
|
|
1304
|
+
this.cache[e] = t;
|
|
1305
|
+
};
|
|
1306
|
+
var $n = {
|
|
1293
1307
|
create: function() {
|
|
1294
|
-
return new
|
|
1308
|
+
return new Ke();
|
|
1295
1309
|
}
|
|
1296
|
-
},
|
|
1297
|
-
variadic:
|
|
1298
|
-
monadic:
|
|
1299
|
-
},
|
|
1310
|
+
}, Ce = {
|
|
1311
|
+
variadic: Nn,
|
|
1312
|
+
monadic: Ln
|
|
1313
|
+
}, d;
|
|
1300
1314
|
(function(e) {
|
|
1301
1315
|
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";
|
|
1302
|
-
})(
|
|
1316
|
+
})(d || (d = {}));
|
|
1303
1317
|
var S;
|
|
1304
1318
|
(function(e) {
|
|
1305
1319
|
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";
|
|
@@ -1308,43 +1322,43 @@ var z;
|
|
|
1308
1322
|
(function(e) {
|
|
1309
1323
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1310
1324
|
})(z || (z = {}));
|
|
1311
|
-
function
|
|
1325
|
+
function vt(e) {
|
|
1312
1326
|
return e.type === S.literal;
|
|
1313
1327
|
}
|
|
1314
|
-
function
|
|
1328
|
+
function Gn(e) {
|
|
1315
1329
|
return e.type === S.argument;
|
|
1316
1330
|
}
|
|
1317
|
-
function
|
|
1331
|
+
function qt(e) {
|
|
1318
1332
|
return e.type === S.number;
|
|
1319
1333
|
}
|
|
1320
|
-
function
|
|
1334
|
+
function Yt(e) {
|
|
1321
1335
|
return e.type === S.date;
|
|
1322
1336
|
}
|
|
1323
|
-
function
|
|
1337
|
+
function Kt(e) {
|
|
1324
1338
|
return e.type === S.time;
|
|
1325
1339
|
}
|
|
1326
|
-
function
|
|
1340
|
+
function er(e) {
|
|
1327
1341
|
return e.type === S.select;
|
|
1328
1342
|
}
|
|
1329
|
-
function
|
|
1343
|
+
function tr(e) {
|
|
1330
1344
|
return e.type === S.plural;
|
|
1331
1345
|
}
|
|
1332
|
-
function
|
|
1346
|
+
function Un(e) {
|
|
1333
1347
|
return e.type === S.pound;
|
|
1334
1348
|
}
|
|
1335
|
-
function
|
|
1349
|
+
function rr(e) {
|
|
1336
1350
|
return e.type === S.tag;
|
|
1337
1351
|
}
|
|
1338
|
-
function
|
|
1352
|
+
function nr(e) {
|
|
1339
1353
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1340
1354
|
}
|
|
1341
|
-
function
|
|
1355
|
+
function je(e) {
|
|
1342
1356
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1343
1357
|
}
|
|
1344
|
-
var
|
|
1345
|
-
function
|
|
1358
|
+
var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
|
|
1359
|
+
function Fn(e) {
|
|
1346
1360
|
var t = {};
|
|
1347
|
-
return e.replace(
|
|
1361
|
+
return e.replace(Dn, function(r) {
|
|
1348
1362
|
var n = r.length;
|
|
1349
1363
|
switch (r[0]) {
|
|
1350
1364
|
case "G":
|
|
@@ -1433,36 +1447,36 @@ function Un(e) {
|
|
|
1433
1447
|
return "";
|
|
1434
1448
|
}), t;
|
|
1435
1449
|
}
|
|
1436
|
-
var
|
|
1437
|
-
function
|
|
1450
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1451
|
+
function kn(e) {
|
|
1438
1452
|
if (e.length === 0)
|
|
1439
1453
|
throw new Error("Number skeleton cannot be empty");
|
|
1440
|
-
for (var t = e.split(
|
|
1441
|
-
return
|
|
1454
|
+
for (var t = e.split(jn).filter(function(f) {
|
|
1455
|
+
return f.length > 0;
|
|
1442
1456
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1443
1457
|
var o = i[n], s = o.split("/");
|
|
1444
1458
|
if (s.length === 0)
|
|
1445
1459
|
throw new Error("Invalid number skeleton");
|
|
1446
1460
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1447
|
-
var
|
|
1448
|
-
if (
|
|
1461
|
+
var c = h[u];
|
|
1462
|
+
if (c.length === 0)
|
|
1449
1463
|
throw new Error("Invalid number skeleton");
|
|
1450
1464
|
}
|
|
1451
1465
|
r.push({ stem: a, options: l });
|
|
1452
1466
|
}
|
|
1453
1467
|
return r;
|
|
1454
1468
|
}
|
|
1455
|
-
function
|
|
1469
|
+
function Vn(e) {
|
|
1456
1470
|
return e.replace(/^(.*?)-/, "");
|
|
1457
1471
|
}
|
|
1458
|
-
var
|
|
1459
|
-
function
|
|
1472
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, Xn = /(\*)(0+)|(#+)(0+)|(0+)/g, sr = /^(0+)$/;
|
|
1473
|
+
function xt(e) {
|
|
1460
1474
|
var t = {};
|
|
1461
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1475
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
|
|
1462
1476
|
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)), "";
|
|
1463
1477
|
}), t;
|
|
1464
1478
|
}
|
|
1465
|
-
function
|
|
1479
|
+
function ar(e) {
|
|
1466
1480
|
switch (e) {
|
|
1467
1481
|
case "sign-auto":
|
|
1468
1482
|
return {
|
|
@@ -1502,7 +1516,7 @@ function ir(e) {
|
|
|
1502
1516
|
};
|
|
1503
1517
|
}
|
|
1504
1518
|
}
|
|
1505
|
-
function
|
|
1519
|
+
function zn(e) {
|
|
1506
1520
|
var t;
|
|
1507
1521
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1508
1522
|
notation: "engineering"
|
|
@@ -1510,17 +1524,17 @@ function Vn(e) {
|
|
|
1510
1524
|
notation: "scientific"
|
|
1511
1525
|
}, e = e.slice(1)), t) {
|
|
1512
1526
|
var r = e.slice(0, 2);
|
|
1513
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1527
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sr.test(e))
|
|
1514
1528
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1515
1529
|
t.minimumIntegerDigits = e.length;
|
|
1516
1530
|
}
|
|
1517
1531
|
return t;
|
|
1518
1532
|
}
|
|
1519
|
-
function
|
|
1520
|
-
var t = {}, r =
|
|
1533
|
+
function _t(e) {
|
|
1534
|
+
var t = {}, r = ar(e);
|
|
1521
1535
|
return r || t;
|
|
1522
1536
|
}
|
|
1523
|
-
function
|
|
1537
|
+
function Wn(e) {
|
|
1524
1538
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1525
1539
|
var i = n[r];
|
|
1526
1540
|
switch (i.stem) {
|
|
@@ -1544,7 +1558,7 @@ function Xn(e) {
|
|
|
1544
1558
|
continue;
|
|
1545
1559
|
case "measure-unit":
|
|
1546
1560
|
case "unit":
|
|
1547
|
-
t.style = "unit", t.unit =
|
|
1561
|
+
t.style = "unit", t.unit = Vn(i.options[0]);
|
|
1548
1562
|
continue;
|
|
1549
1563
|
case "compact-short":
|
|
1550
1564
|
case "K":
|
|
@@ -1555,13 +1569,13 @@ function Xn(e) {
|
|
|
1555
1569
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1556
1570
|
continue;
|
|
1557
1571
|
case "scientific":
|
|
1558
|
-
t =
|
|
1559
|
-
return
|
|
1572
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1573
|
+
return y(y({}, l), _t(u));
|
|
1560
1574
|
}, {}));
|
|
1561
1575
|
continue;
|
|
1562
1576
|
case "engineering":
|
|
1563
|
-
t =
|
|
1564
|
-
return
|
|
1577
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1578
|
+
return y(y({}, l), _t(u));
|
|
1565
1579
|
}, {}));
|
|
1566
1580
|
continue;
|
|
1567
1581
|
case "notation-simple":
|
|
@@ -1606,45 +1620,45 @@ function Xn(e) {
|
|
|
1606
1620
|
case "integer-width":
|
|
1607
1621
|
if (i.options.length > 1)
|
|
1608
1622
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1609
|
-
i.options[0].replace(
|
|
1623
|
+
i.options[0].replace(Xn, function(l, u, h, c, f, m) {
|
|
1610
1624
|
if (u)
|
|
1611
1625
|
t.minimumIntegerDigits = h.length;
|
|
1612
1626
|
else {
|
|
1613
|
-
if (
|
|
1627
|
+
if (c && f)
|
|
1614
1628
|
throw new Error("We currently do not support maximum integer digits");
|
|
1615
|
-
if (
|
|
1629
|
+
if (m)
|
|
1616
1630
|
throw new Error("We currently do not support exact integer digits");
|
|
1617
1631
|
}
|
|
1618
1632
|
return "";
|
|
1619
1633
|
});
|
|
1620
1634
|
continue;
|
|
1621
1635
|
}
|
|
1622
|
-
if (
|
|
1636
|
+
if (sr.test(i.stem)) {
|
|
1623
1637
|
t.minimumIntegerDigits = i.stem.length;
|
|
1624
1638
|
continue;
|
|
1625
1639
|
}
|
|
1626
|
-
if (
|
|
1640
|
+
if (yt.test(i.stem)) {
|
|
1627
1641
|
if (i.options.length > 1)
|
|
1628
1642
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1629
|
-
i.stem.replace(
|
|
1630
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1643
|
+
i.stem.replace(yt, function(l, u, h, c, f, m) {
|
|
1644
|
+
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), "";
|
|
1631
1645
|
});
|
|
1632
1646
|
var o = i.options[0];
|
|
1633
|
-
o === "w" ? t =
|
|
1647
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), xt(o)));
|
|
1634
1648
|
continue;
|
|
1635
1649
|
}
|
|
1636
|
-
if (
|
|
1637
|
-
t =
|
|
1650
|
+
if (or.test(i.stem)) {
|
|
1651
|
+
t = y(y({}, t), xt(i.stem));
|
|
1638
1652
|
continue;
|
|
1639
1653
|
}
|
|
1640
|
-
var s =
|
|
1641
|
-
s && (t =
|
|
1642
|
-
var a =
|
|
1643
|
-
a && (t =
|
|
1654
|
+
var s = ar(i.stem);
|
|
1655
|
+
s && (t = y(y({}, t), s));
|
|
1656
|
+
var a = zn(i.stem);
|
|
1657
|
+
a && (t = y(y({}, t), a));
|
|
1644
1658
|
}
|
|
1645
1659
|
return t;
|
|
1646
1660
|
}
|
|
1647
|
-
var
|
|
1661
|
+
var ce = {
|
|
1648
1662
|
"001": [
|
|
1649
1663
|
"H",
|
|
1650
1664
|
"h"
|
|
@@ -3059,13 +3073,13 @@ var fe = {
|
|
|
3059
3073
|
"h"
|
|
3060
3074
|
]
|
|
3061
3075
|
};
|
|
3062
|
-
function
|
|
3076
|
+
function Zn(e, t) {
|
|
3063
3077
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3064
3078
|
var i = e.charAt(n);
|
|
3065
3079
|
if (i === "j") {
|
|
3066
3080
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3067
3081
|
o++, n++;
|
|
3068
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3082
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Qn(t);
|
|
3069
3083
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3070
3084
|
r += l;
|
|
3071
3085
|
for (; s-- > 0; )
|
|
@@ -3075,7 +3089,7 @@ function zn(e, t) {
|
|
|
3075
3089
|
}
|
|
3076
3090
|
return r;
|
|
3077
3091
|
}
|
|
3078
|
-
function
|
|
3092
|
+
function Qn(e) {
|
|
3079
3093
|
var t = e.hourCycle;
|
|
3080
3094
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3081
3095
|
e.hourCycles && // @ts-ignore
|
|
@@ -3094,23 +3108,23 @@ function Wn(e) {
|
|
|
3094
3108
|
}
|
|
3095
3109
|
var r = e.language, n;
|
|
3096
3110
|
r !== "root" && (n = e.maximize().region);
|
|
3097
|
-
var i =
|
|
3111
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3098
3112
|
return i[0];
|
|
3099
3113
|
}
|
|
3100
|
-
var
|
|
3114
|
+
var Pe, Jn = new RegExp("^".concat(ir.source, "*")), qn = new RegExp("".concat(ir.source, "*$"));
|
|
3101
3115
|
function g(e, t) {
|
|
3102
3116
|
return { start: e, end: t };
|
|
3103
3117
|
}
|
|
3104
|
-
var
|
|
3118
|
+
var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
|
|
3105
3119
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3106
|
-
},
|
|
3120
|
+
}, ke = !0;
|
|
3107
3121
|
try {
|
|
3108
|
-
var
|
|
3109
|
-
|
|
3122
|
+
var si = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3123
|
+
ke = ((Pe = si.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3110
3124
|
} catch (e) {
|
|
3111
|
-
|
|
3125
|
+
ke = !1;
|
|
3112
3126
|
}
|
|
3113
|
-
var
|
|
3127
|
+
var Et = Yn ? (
|
|
3114
3128
|
// Native
|
|
3115
3129
|
function(t, r, n) {
|
|
3116
3130
|
return t.startsWith(r, n);
|
|
@@ -3120,7 +3134,7 @@ var xt = Jn ? (
|
|
|
3120
3134
|
function(t, r, n) {
|
|
3121
3135
|
return t.slice(n, n + r.length) === r;
|
|
3122
3136
|
}
|
|
3123
|
-
),
|
|
3137
|
+
), Ve = Kn ? String.fromCodePoint : (
|
|
3124
3138
|
// IE11
|
|
3125
3139
|
function() {
|
|
3126
3140
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3132,9 +3146,9 @@ var xt = Jn ? (
|
|
|
3132
3146
|
}
|
|
3133
3147
|
return n;
|
|
3134
3148
|
}
|
|
3135
|
-
),
|
|
3149
|
+
), St = (
|
|
3136
3150
|
// native
|
|
3137
|
-
|
|
3151
|
+
ei ? Object.fromEntries : (
|
|
3138
3152
|
// Ponyfill
|
|
3139
3153
|
function(t) {
|
|
3140
3154
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3144,7 +3158,7 @@ var xt = Jn ? (
|
|
|
3144
3158
|
return r;
|
|
3145
3159
|
}
|
|
3146
3160
|
)
|
|
3147
|
-
),
|
|
3161
|
+
), ur = ti ? (
|
|
3148
3162
|
// Native
|
|
3149
3163
|
function(t, r) {
|
|
3150
3164
|
return t.codePointAt(r);
|
|
@@ -3158,7 +3172,7 @@ var xt = Jn ? (
|
|
|
3158
3172
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3159
3173
|
}
|
|
3160
3174
|
}
|
|
3161
|
-
),
|
|
3175
|
+
), ai = ri ? (
|
|
3162
3176
|
// Native
|
|
3163
3177
|
function(t) {
|
|
3164
3178
|
return t.trimStart();
|
|
@@ -3166,9 +3180,9 @@ var xt = Jn ? (
|
|
|
3166
3180
|
) : (
|
|
3167
3181
|
// Ponyfill
|
|
3168
3182
|
function(t) {
|
|
3169
|
-
return t.replace(
|
|
3183
|
+
return t.replace(Jn, "");
|
|
3170
3184
|
}
|
|
3171
|
-
),
|
|
3185
|
+
), ui = ni ? (
|
|
3172
3186
|
// Native
|
|
3173
3187
|
function(t) {
|
|
3174
3188
|
return t.trimEnd();
|
|
@@ -3176,32 +3190,32 @@ var xt = Jn ? (
|
|
|
3176
3190
|
) : (
|
|
3177
3191
|
// Ponyfill
|
|
3178
3192
|
function(t) {
|
|
3179
|
-
return t.replace(
|
|
3193
|
+
return t.replace(qn, "");
|
|
3180
3194
|
}
|
|
3181
3195
|
);
|
|
3182
|
-
function
|
|
3196
|
+
function lr(e, t) {
|
|
3183
3197
|
return new RegExp(e, t);
|
|
3184
3198
|
}
|
|
3185
|
-
var
|
|
3186
|
-
if (
|
|
3187
|
-
var
|
|
3188
|
-
|
|
3199
|
+
var Xe;
|
|
3200
|
+
if (ke) {
|
|
3201
|
+
var wt = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3202
|
+
Xe = function(t, r) {
|
|
3189
3203
|
var n;
|
|
3190
|
-
|
|
3191
|
-
var i =
|
|
3204
|
+
wt.lastIndex = r;
|
|
3205
|
+
var i = wt.exec(t);
|
|
3192
3206
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3193
3207
|
};
|
|
3194
3208
|
} else
|
|
3195
|
-
|
|
3209
|
+
Xe = function(t, r) {
|
|
3196
3210
|
for (var n = []; ; ) {
|
|
3197
|
-
var i =
|
|
3198
|
-
if (i === void 0 ||
|
|
3211
|
+
var i = ur(t, r);
|
|
3212
|
+
if (i === void 0 || hr(i) || fi(i))
|
|
3199
3213
|
break;
|
|
3200
3214
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3201
3215
|
}
|
|
3202
|
-
return
|
|
3216
|
+
return Ve.apply(void 0, n);
|
|
3203
3217
|
};
|
|
3204
|
-
var
|
|
3218
|
+
var li = (
|
|
3205
3219
|
/** @class */
|
|
3206
3220
|
function() {
|
|
3207
3221
|
function e(t, r) {
|
|
@@ -3231,8 +3245,8 @@ var ai = (
|
|
|
3231
3245
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3232
3246
|
if (n)
|
|
3233
3247
|
break;
|
|
3234
|
-
return this.error(
|
|
3235
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3248
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3249
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
3236
3250
|
var s = this.parseTag(t, r);
|
|
3237
3251
|
if (s.err)
|
|
3238
3252
|
return s;
|
|
@@ -3265,10 +3279,10 @@ var ai = (
|
|
|
3265
3279
|
return o;
|
|
3266
3280
|
var s = o.val, a = this.clonePosition();
|
|
3267
3281
|
if (this.bumpIf("</")) {
|
|
3268
|
-
if (this.isEOF() || !
|
|
3269
|
-
return this.error(
|
|
3282
|
+
if (this.isEOF() || !ze(this.char()))
|
|
3283
|
+
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3270
3284
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3271
|
-
return i !== u ? this.error(
|
|
3285
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3272
3286
|
val: {
|
|
3273
3287
|
type: S.tag,
|
|
3274
3288
|
value: i,
|
|
@@ -3276,14 +3290,14 @@ var ai = (
|
|
|
3276
3290
|
location: g(n, this.clonePosition())
|
|
3277
3291
|
},
|
|
3278
3292
|
err: null
|
|
3279
|
-
} : this.error(
|
|
3293
|
+
} : this.error(d.INVALID_TAG, g(a, this.clonePosition())));
|
|
3280
3294
|
} else
|
|
3281
|
-
return this.error(
|
|
3295
|
+
return this.error(d.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3282
3296
|
} else
|
|
3283
|
-
return this.error(
|
|
3297
|
+
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3284
3298
|
}, e.prototype.parseTagName = function() {
|
|
3285
3299
|
var t = this.offset();
|
|
3286
|
-
for (this.bump(); !this.isEOF() &&
|
|
3300
|
+
for (this.bump(); !this.isEOF() && ci(this.char()); )
|
|
3287
3301
|
this.bump();
|
|
3288
3302
|
return this.message.slice(t, this.offset());
|
|
3289
3303
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3312,7 +3326,7 @@ var ai = (
|
|
|
3312
3326
|
};
|
|
3313
3327
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3314
3328
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3315
|
-
!
|
|
3329
|
+
!hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3316
3330
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3317
3331
|
if (this.isEOF() || this.char() !== 39)
|
|
3318
3332
|
return null;
|
|
@@ -3346,23 +3360,23 @@ var ai = (
|
|
|
3346
3360
|
r.push(n);
|
|
3347
3361
|
this.bump();
|
|
3348
3362
|
}
|
|
3349
|
-
return
|
|
3363
|
+
return Ve.apply(void 0, r);
|
|
3350
3364
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3351
3365
|
if (this.isEOF())
|
|
3352
3366
|
return null;
|
|
3353
3367
|
var n = this.char();
|
|
3354
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3368
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3355
3369
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3356
3370
|
var n = this.clonePosition();
|
|
3357
3371
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3358
|
-
return this.error(
|
|
3372
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3359
3373
|
if (this.char() === 125)
|
|
3360
|
-
return this.bump(), this.error(
|
|
3374
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3361
3375
|
var i = this.parseIdentifierIfPossible().value;
|
|
3362
3376
|
if (!i)
|
|
3363
|
-
return this.error(
|
|
3377
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3364
3378
|
if (this.bumpSpace(), this.isEOF())
|
|
3365
|
-
return this.error(
|
|
3379
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3366
3380
|
switch (this.char()) {
|
|
3367
3381
|
case 125:
|
|
3368
3382
|
return this.bump(), {
|
|
@@ -3375,12 +3389,12 @@ var ai = (
|
|
|
3375
3389
|
err: null
|
|
3376
3390
|
};
|
|
3377
3391
|
case 44:
|
|
3378
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3392
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3379
3393
|
default:
|
|
3380
|
-
return this.error(
|
|
3394
|
+
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3381
3395
|
}
|
|
3382
3396
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3383
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3397
|
+
var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
|
|
3384
3398
|
this.bumpTo(i);
|
|
3385
3399
|
var o = this.clonePosition(), s = g(t, o);
|
|
3386
3400
|
return { value: n, location: s };
|
|
@@ -3388,7 +3402,7 @@ var ai = (
|
|
|
3388
3402
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3389
3403
|
switch (a) {
|
|
3390
3404
|
case "":
|
|
3391
|
-
return this.error(
|
|
3405
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3392
3406
|
case "number":
|
|
3393
3407
|
case "date":
|
|
3394
3408
|
case "time": {
|
|
@@ -3396,40 +3410,40 @@ var ai = (
|
|
|
3396
3410
|
var u = null;
|
|
3397
3411
|
if (this.bumpIf(",")) {
|
|
3398
3412
|
this.bumpSpace();
|
|
3399
|
-
var h = this.clonePosition(),
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
var
|
|
3403
|
-
if (
|
|
3404
|
-
return this.error(
|
|
3405
|
-
var
|
|
3406
|
-
u = { style:
|
|
3413
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3414
|
+
if (c.err)
|
|
3415
|
+
return c;
|
|
3416
|
+
var f = ui(c.val);
|
|
3417
|
+
if (f.length === 0)
|
|
3418
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3419
|
+
var m = g(h, this.clonePosition());
|
|
3420
|
+
u = { style: f, styleLocation: m };
|
|
3407
3421
|
}
|
|
3408
|
-
var
|
|
3409
|
-
if (
|
|
3410
|
-
return
|
|
3422
|
+
var v = this.tryParseArgumentClose(i);
|
|
3423
|
+
if (v.err)
|
|
3424
|
+
return v;
|
|
3411
3425
|
var p = g(i, this.clonePosition());
|
|
3412
|
-
if (u &&
|
|
3413
|
-
var w =
|
|
3426
|
+
if (u && Et(u == null ? void 0 : u.style, "::", 0)) {
|
|
3427
|
+
var w = ai(u.style.slice(2));
|
|
3414
3428
|
if (a === "number") {
|
|
3415
|
-
var
|
|
3416
|
-
return
|
|
3417
|
-
val: { type: S.number, value: n, location: p, style:
|
|
3429
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3430
|
+
return c.err ? c : {
|
|
3431
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3418
3432
|
err: null
|
|
3419
3433
|
};
|
|
3420
3434
|
} else {
|
|
3421
3435
|
if (w.length === 0)
|
|
3422
|
-
return this.error(
|
|
3436
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, p);
|
|
3423
3437
|
var P = w;
|
|
3424
|
-
this.locale && (P =
|
|
3425
|
-
var
|
|
3438
|
+
this.locale && (P = Zn(w, this.locale));
|
|
3439
|
+
var f = {
|
|
3426
3440
|
type: z.dateTime,
|
|
3427
3441
|
pattern: P,
|
|
3428
3442
|
location: u.styleLocation,
|
|
3429
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3430
|
-
},
|
|
3443
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(P) : {}
|
|
3444
|
+
}, H = a === "date" ? S.date : S.time;
|
|
3431
3445
|
return {
|
|
3432
|
-
val: { type:
|
|
3446
|
+
val: { type: H, value: n, location: p, style: f },
|
|
3433
3447
|
err: null
|
|
3434
3448
|
};
|
|
3435
3449
|
}
|
|
@@ -3449,30 +3463,30 @@ var ai = (
|
|
|
3449
3463
|
case "select": {
|
|
3450
3464
|
var _ = this.clonePosition();
|
|
3451
3465
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3452
|
-
return this.error(
|
|
3466
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, y({}, _)));
|
|
3453
3467
|
this.bumpSpace();
|
|
3454
3468
|
var E = this.parseIdentifierIfPossible(), x = 0;
|
|
3455
3469
|
if (a !== "select" && E.value === "offset") {
|
|
3456
3470
|
if (!this.bumpIf(":"))
|
|
3457
|
-
return this.error(
|
|
3471
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3458
3472
|
this.bumpSpace();
|
|
3459
|
-
var
|
|
3460
|
-
if (
|
|
3461
|
-
return
|
|
3462
|
-
this.bumpSpace(), E = this.parseIdentifierIfPossible(), x =
|
|
3473
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3474
|
+
if (c.err)
|
|
3475
|
+
return c;
|
|
3476
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), x = c.val;
|
|
3463
3477
|
}
|
|
3464
|
-
var
|
|
3465
|
-
if (
|
|
3466
|
-
return
|
|
3467
|
-
var
|
|
3468
|
-
if (
|
|
3469
|
-
return
|
|
3478
|
+
var A = this.tryParsePluralOrSelectOptions(t, a, r, E);
|
|
3479
|
+
if (A.err)
|
|
3480
|
+
return A;
|
|
3481
|
+
var v = this.tryParseArgumentClose(i);
|
|
3482
|
+
if (v.err)
|
|
3483
|
+
return v;
|
|
3470
3484
|
var ue = g(i, this.clonePosition());
|
|
3471
3485
|
return a === "select" ? {
|
|
3472
3486
|
val: {
|
|
3473
3487
|
type: S.select,
|
|
3474
3488
|
value: n,
|
|
3475
|
-
options:
|
|
3489
|
+
options: St(A.val),
|
|
3476
3490
|
location: ue
|
|
3477
3491
|
},
|
|
3478
3492
|
err: null
|
|
@@ -3480,7 +3494,7 @@ var ai = (
|
|
|
3480
3494
|
val: {
|
|
3481
3495
|
type: S.plural,
|
|
3482
3496
|
value: n,
|
|
3483
|
-
options:
|
|
3497
|
+
options: St(A.val),
|
|
3484
3498
|
offset: x,
|
|
3485
3499
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3486
3500
|
location: ue
|
|
@@ -3489,10 +3503,10 @@ var ai = (
|
|
|
3489
3503
|
};
|
|
3490
3504
|
}
|
|
3491
3505
|
default:
|
|
3492
|
-
return this.error(
|
|
3506
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3493
3507
|
}
|
|
3494
3508
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3495
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3509
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3496
3510
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3497
3511
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3498
3512
|
var n = this.char();
|
|
@@ -3501,7 +3515,7 @@ var ai = (
|
|
|
3501
3515
|
this.bump();
|
|
3502
3516
|
var i = this.clonePosition();
|
|
3503
3517
|
if (!this.bumpUntil("'"))
|
|
3504
|
-
return this.error(
|
|
3518
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3505
3519
|
this.bump();
|
|
3506
3520
|
break;
|
|
3507
3521
|
}
|
|
@@ -3531,52 +3545,52 @@ var ai = (
|
|
|
3531
3545
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3532
3546
|
var n = [];
|
|
3533
3547
|
try {
|
|
3534
|
-
n =
|
|
3548
|
+
n = kn(t);
|
|
3535
3549
|
} catch (i) {
|
|
3536
|
-
return this.error(
|
|
3550
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3537
3551
|
}
|
|
3538
3552
|
return {
|
|
3539
3553
|
val: {
|
|
3540
3554
|
type: z.number,
|
|
3541
3555
|
tokens: n,
|
|
3542
3556
|
location: r,
|
|
3543
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3557
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
|
|
3544
3558
|
},
|
|
3545
3559
|
err: null
|
|
3546
3560
|
};
|
|
3547
3561
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3548
3562
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3549
3563
|
if (u.length === 0) {
|
|
3550
|
-
var
|
|
3564
|
+
var c = this.clonePosition();
|
|
3551
3565
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3552
|
-
var
|
|
3553
|
-
if (
|
|
3554
|
-
return
|
|
3555
|
-
h = g(
|
|
3566
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3567
|
+
if (f.err)
|
|
3568
|
+
return f;
|
|
3569
|
+
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3556
3570
|
} else
|
|
3557
3571
|
break;
|
|
3558
3572
|
}
|
|
3559
3573
|
if (l.has(u))
|
|
3560
|
-
return this.error(r === "select" ?
|
|
3574
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3561
3575
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3562
|
-
var
|
|
3576
|
+
var m = this.clonePosition();
|
|
3563
3577
|
if (!this.bumpIf("{"))
|
|
3564
|
-
return this.error(r === "select" ?
|
|
3565
|
-
var
|
|
3566
|
-
if (
|
|
3567
|
-
return
|
|
3568
|
-
var p = this.tryParseArgumentClose(
|
|
3578
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3579
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3580
|
+
if (v.err)
|
|
3581
|
+
return v;
|
|
3582
|
+
var p = this.tryParseArgumentClose(m);
|
|
3569
3583
|
if (p.err)
|
|
3570
3584
|
return p;
|
|
3571
3585
|
a.push([
|
|
3572
3586
|
u,
|
|
3573
3587
|
{
|
|
3574
|
-
value:
|
|
3575
|
-
location: g(
|
|
3588
|
+
value: v.val,
|
|
3589
|
+
location: g(m, this.clonePosition())
|
|
3576
3590
|
}
|
|
3577
3591
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3578
3592
|
}
|
|
3579
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3593
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3580
3594
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3581
3595
|
var n = 1, i = this.clonePosition();
|
|
3582
3596
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3588,7 +3602,7 @@ var ai = (
|
|
|
3588
3602
|
break;
|
|
3589
3603
|
}
|
|
3590
3604
|
var l = g(i, this.clonePosition());
|
|
3591
|
-
return o ? (s *= n,
|
|
3605
|
+
return o ? (s *= n, oi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3592
3606
|
}, e.prototype.offset = function() {
|
|
3593
3607
|
return this.position.offset;
|
|
3594
3608
|
}, e.prototype.isEOF = function() {
|
|
@@ -3603,7 +3617,7 @@ var ai = (
|
|
|
3603
3617
|
var t = this.position.offset;
|
|
3604
3618
|
if (t >= this.message.length)
|
|
3605
3619
|
throw Error("out of bound");
|
|
3606
|
-
var r =
|
|
3620
|
+
var r = ur(this.message, t);
|
|
3607
3621
|
if (r === void 0)
|
|
3608
3622
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3609
3623
|
return r;
|
|
@@ -3622,7 +3636,7 @@ var ai = (
|
|
|
3622
3636
|
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);
|
|
3623
3637
|
}
|
|
3624
3638
|
}, e.prototype.bumpIf = function(t) {
|
|
3625
|
-
if (
|
|
3639
|
+
if (Et(this.message, t, this.offset())) {
|
|
3626
3640
|
for (var r = 0; r < t.length; r++)
|
|
3627
3641
|
this.bump();
|
|
3628
3642
|
return !0;
|
|
@@ -3644,7 +3658,7 @@ var ai = (
|
|
|
3644
3658
|
break;
|
|
3645
3659
|
}
|
|
3646
3660
|
}, e.prototype.bumpSpace = function() {
|
|
3647
|
-
for (; !this.isEOF() &&
|
|
3661
|
+
for (; !this.isEOF() && hr(this.char()); )
|
|
3648
3662
|
this.bump();
|
|
3649
3663
|
}, e.prototype.peek = function() {
|
|
3650
3664
|
if (this.isEOF())
|
|
@@ -3654,38 +3668,38 @@ var ai = (
|
|
|
3654
3668
|
}, e;
|
|
3655
3669
|
}()
|
|
3656
3670
|
);
|
|
3657
|
-
function
|
|
3671
|
+
function ze(e) {
|
|
3658
3672
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3659
3673
|
}
|
|
3660
|
-
function
|
|
3661
|
-
return
|
|
3674
|
+
function hi(e) {
|
|
3675
|
+
return ze(e) || e === 47;
|
|
3662
3676
|
}
|
|
3663
|
-
function
|
|
3677
|
+
function ci(e) {
|
|
3664
3678
|
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;
|
|
3665
3679
|
}
|
|
3666
|
-
function
|
|
3680
|
+
function hr(e) {
|
|
3667
3681
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3668
3682
|
}
|
|
3669
|
-
function
|
|
3683
|
+
function fi(e) {
|
|
3670
3684
|
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;
|
|
3671
3685
|
}
|
|
3672
|
-
function
|
|
3686
|
+
function We(e) {
|
|
3673
3687
|
e.forEach(function(t) {
|
|
3674
|
-
if (delete t.location,
|
|
3688
|
+
if (delete t.location, er(t) || tr(t))
|
|
3675
3689
|
for (var r in t.options)
|
|
3676
|
-
delete t.options[r].location,
|
|
3690
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3677
3691
|
else
|
|
3678
|
-
|
|
3692
|
+
qt(t) && nr(t.style) || (Yt(t) || Kt(t)) && je(t.style) ? delete t.style.location : rr(t) && We(t.children);
|
|
3679
3693
|
});
|
|
3680
3694
|
}
|
|
3681
|
-
function
|
|
3682
|
-
t === void 0 && (t = {}), t =
|
|
3683
|
-
var r = new
|
|
3695
|
+
function mi(e, t) {
|
|
3696
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3697
|
+
var r = new li(e, t).parse();
|
|
3684
3698
|
if (r.err) {
|
|
3685
|
-
var n = SyntaxError(
|
|
3699
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3686
3700
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3687
3701
|
}
|
|
3688
|
-
return t != null && t.captureLocation ||
|
|
3702
|
+
return t != null && t.captureLocation || We(r.val), r.val;
|
|
3689
3703
|
}
|
|
3690
3704
|
var W;
|
|
3691
3705
|
(function(e) {
|
|
@@ -3703,7 +3717,7 @@ var _e = (
|
|
|
3703
3717
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3704
3718
|
}, t;
|
|
3705
3719
|
}(Error)
|
|
3706
|
-
),
|
|
3720
|
+
), Tt = (
|
|
3707
3721
|
/** @class */
|
|
3708
3722
|
function(e) {
|
|
3709
3723
|
R(t, e);
|
|
@@ -3712,7 +3726,7 @@ var _e = (
|
|
|
3712
3726
|
}
|
|
3713
3727
|
return t;
|
|
3714
3728
|
}(_e)
|
|
3715
|
-
),
|
|
3729
|
+
), di = (
|
|
3716
3730
|
/** @class */
|
|
3717
3731
|
function(e) {
|
|
3718
3732
|
R(t, e);
|
|
@@ -3721,7 +3735,7 @@ var _e = (
|
|
|
3721
3735
|
}
|
|
3722
3736
|
return t;
|
|
3723
3737
|
}(_e)
|
|
3724
|
-
),
|
|
3738
|
+
), pi = (
|
|
3725
3739
|
/** @class */
|
|
3726
3740
|
function(e) {
|
|
3727
3741
|
R(t, e);
|
|
@@ -3730,128 +3744,128 @@ var _e = (
|
|
|
3730
3744
|
}
|
|
3731
3745
|
return t;
|
|
3732
3746
|
}(_e)
|
|
3733
|
-
),
|
|
3747
|
+
), C;
|
|
3734
3748
|
(function(e) {
|
|
3735
3749
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3736
|
-
})(
|
|
3737
|
-
function
|
|
3750
|
+
})(C || (C = {}));
|
|
3751
|
+
function bi(e) {
|
|
3738
3752
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3739
3753
|
var n = t[t.length - 1];
|
|
3740
|
-
return !n || n.type !==
|
|
3754
|
+
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3741
3755
|
}, []);
|
|
3742
3756
|
}
|
|
3743
|
-
function
|
|
3757
|
+
function gi(e) {
|
|
3744
3758
|
return typeof e == "function";
|
|
3745
3759
|
}
|
|
3746
3760
|
function pe(e, t, r, n, i, o, s) {
|
|
3747
|
-
if (e.length === 1 &&
|
|
3761
|
+
if (e.length === 1 && vt(e[0]))
|
|
3748
3762
|
return [
|
|
3749
3763
|
{
|
|
3750
|
-
type:
|
|
3764
|
+
type: C.literal,
|
|
3751
3765
|
value: e[0].value
|
|
3752
3766
|
}
|
|
3753
3767
|
];
|
|
3754
3768
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3755
3769
|
var h = u[l];
|
|
3756
|
-
if (
|
|
3770
|
+
if (vt(h)) {
|
|
3757
3771
|
a.push({
|
|
3758
|
-
type:
|
|
3772
|
+
type: C.literal,
|
|
3759
3773
|
value: h.value
|
|
3760
3774
|
});
|
|
3761
3775
|
continue;
|
|
3762
3776
|
}
|
|
3763
|
-
if (
|
|
3777
|
+
if (Un(h)) {
|
|
3764
3778
|
typeof o == "number" && a.push({
|
|
3765
|
-
type:
|
|
3779
|
+
type: C.literal,
|
|
3766
3780
|
value: r.getNumberFormat(t).format(o)
|
|
3767
3781
|
});
|
|
3768
3782
|
continue;
|
|
3769
3783
|
}
|
|
3770
|
-
var
|
|
3771
|
-
if (!(i &&
|
|
3772
|
-
throw new
|
|
3773
|
-
var
|
|
3774
|
-
if (
|
|
3775
|
-
(!
|
|
3776
|
-
type: typeof
|
|
3777
|
-
value:
|
|
3784
|
+
var c = h.value;
|
|
3785
|
+
if (!(i && c in i))
|
|
3786
|
+
throw new pi(c, s);
|
|
3787
|
+
var f = i[c];
|
|
3788
|
+
if (Gn(h)) {
|
|
3789
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3790
|
+
type: typeof f == "string" ? C.literal : C.object,
|
|
3791
|
+
value: f
|
|
3778
3792
|
});
|
|
3779
3793
|
continue;
|
|
3780
3794
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3795
|
+
if (Yt(h)) {
|
|
3796
|
+
var m = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
|
|
3783
3797
|
a.push({
|
|
3784
|
-
type:
|
|
3785
|
-
value: r.getDateTimeFormat(t,
|
|
3798
|
+
type: C.literal,
|
|
3799
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3786
3800
|
});
|
|
3787
3801
|
continue;
|
|
3788
3802
|
}
|
|
3789
|
-
if (
|
|
3790
|
-
var
|
|
3803
|
+
if (Kt(h)) {
|
|
3804
|
+
var m = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3791
3805
|
a.push({
|
|
3792
|
-
type:
|
|
3793
|
-
value: r.getDateTimeFormat(t,
|
|
3806
|
+
type: C.literal,
|
|
3807
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3794
3808
|
});
|
|
3795
3809
|
continue;
|
|
3796
3810
|
}
|
|
3797
|
-
if (
|
|
3798
|
-
var
|
|
3799
|
-
|
|
3800
|
-
type:
|
|
3801
|
-
value: r.getNumberFormat(t,
|
|
3811
|
+
if (qt(h)) {
|
|
3812
|
+
var m = typeof h.style == "string" ? n.number[h.style] : nr(h.style) ? h.style.parsedOptions : void 0;
|
|
3813
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3814
|
+
type: C.literal,
|
|
3815
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3802
3816
|
});
|
|
3803
3817
|
continue;
|
|
3804
3818
|
}
|
|
3805
|
-
if (
|
|
3806
|
-
var
|
|
3807
|
-
if (!
|
|
3808
|
-
throw new
|
|
3809
|
-
var P = pe(
|
|
3819
|
+
if (rr(h)) {
|
|
3820
|
+
var v = h.children, p = h.value, w = i[p];
|
|
3821
|
+
if (!gi(w))
|
|
3822
|
+
throw new di(p, "function", s);
|
|
3823
|
+
var P = pe(v, t, r, n, i, o), H = w(P.map(function(x) {
|
|
3810
3824
|
return x.value;
|
|
3811
3825
|
}));
|
|
3812
|
-
Array.isArray(
|
|
3826
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(x) {
|
|
3813
3827
|
return {
|
|
3814
|
-
type: typeof x == "string" ?
|
|
3828
|
+
type: typeof x == "string" ? C.literal : C.object,
|
|
3815
3829
|
value: x
|
|
3816
3830
|
};
|
|
3817
3831
|
}));
|
|
3818
3832
|
}
|
|
3819
|
-
if (
|
|
3820
|
-
var _ = h.options[
|
|
3833
|
+
if (er(h)) {
|
|
3834
|
+
var _ = h.options[f] || h.options.other;
|
|
3821
3835
|
if (!_)
|
|
3822
|
-
throw new
|
|
3836
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3823
3837
|
a.push.apply(a, pe(_.value, t, r, n, i));
|
|
3824
3838
|
continue;
|
|
3825
3839
|
}
|
|
3826
|
-
if (
|
|
3827
|
-
var _ = h.options["=".concat(
|
|
3840
|
+
if (tr(h)) {
|
|
3841
|
+
var _ = h.options["=".concat(f)];
|
|
3828
3842
|
if (!_) {
|
|
3829
3843
|
if (!Intl.PluralRules)
|
|
3830
3844
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3831
3845
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3832
3846
|
`, W.MISSING_INTL_API, s);
|
|
3833
|
-
var E = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3847
|
+
var E = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3834
3848
|
_ = h.options[E] || h.options.other;
|
|
3835
3849
|
}
|
|
3836
3850
|
if (!_)
|
|
3837
|
-
throw new
|
|
3838
|
-
a.push.apply(a, pe(_.value, t, r, n, i,
|
|
3851
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3852
|
+
a.push.apply(a, pe(_.value, t, r, n, i, f - (h.offset || 0)));
|
|
3839
3853
|
continue;
|
|
3840
3854
|
}
|
|
3841
3855
|
}
|
|
3842
|
-
return
|
|
3856
|
+
return bi(a);
|
|
3843
3857
|
}
|
|
3844
|
-
function
|
|
3845
|
-
return t ?
|
|
3846
|
-
return r[n] =
|
|
3858
|
+
function vi(e, t) {
|
|
3859
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3860
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3847
3861
|
}, {})) : e;
|
|
3848
3862
|
}
|
|
3849
|
-
function
|
|
3863
|
+
function yi(e, t) {
|
|
3850
3864
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3851
|
-
return r[n] =
|
|
3852
|
-
},
|
|
3865
|
+
return r[n] = vi(e[n], t[n]), r;
|
|
3866
|
+
}, y({}, e)) : e;
|
|
3853
3867
|
}
|
|
3854
|
-
function
|
|
3868
|
+
function Oe(e) {
|
|
3855
3869
|
return {
|
|
3856
3870
|
create: function() {
|
|
3857
3871
|
return {
|
|
@@ -3865,39 +3879,39 @@ function Pe(e) {
|
|
|
3865
3879
|
}
|
|
3866
3880
|
};
|
|
3867
3881
|
}
|
|
3868
|
-
function
|
|
3882
|
+
function xi(e) {
|
|
3869
3883
|
return e === void 0 && (e = {
|
|
3870
3884
|
number: {},
|
|
3871
3885
|
dateTime: {},
|
|
3872
3886
|
pluralRules: {}
|
|
3873
3887
|
}), {
|
|
3874
|
-
getNumberFormat:
|
|
3888
|
+
getNumberFormat: Be(function() {
|
|
3875
3889
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3876
3890
|
r[n] = arguments[n];
|
|
3877
3891
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3878
3892
|
}, {
|
|
3879
|
-
cache:
|
|
3880
|
-
strategy:
|
|
3893
|
+
cache: Oe(e.number),
|
|
3894
|
+
strategy: Ce.variadic
|
|
3881
3895
|
}),
|
|
3882
|
-
getDateTimeFormat:
|
|
3896
|
+
getDateTimeFormat: Be(function() {
|
|
3883
3897
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3884
3898
|
r[n] = arguments[n];
|
|
3885
3899
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3886
3900
|
}, {
|
|
3887
|
-
cache:
|
|
3888
|
-
strategy:
|
|
3901
|
+
cache: Oe(e.dateTime),
|
|
3902
|
+
strategy: Ce.variadic
|
|
3889
3903
|
}),
|
|
3890
|
-
getPluralRules:
|
|
3904
|
+
getPluralRules: Be(function() {
|
|
3891
3905
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3892
3906
|
r[n] = arguments[n];
|
|
3893
3907
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3894
3908
|
}, {
|
|
3895
|
-
cache:
|
|
3896
|
-
strategy:
|
|
3909
|
+
cache: Oe(e.pluralRules),
|
|
3910
|
+
strategy: Ce.variadic
|
|
3897
3911
|
})
|
|
3898
3912
|
};
|
|
3899
3913
|
}
|
|
3900
|
-
var
|
|
3914
|
+
var _i = (
|
|
3901
3915
|
/** @class */
|
|
3902
3916
|
function() {
|
|
3903
3917
|
function e(t, r, n, i) {
|
|
@@ -3911,8 +3925,8 @@ var vi = (
|
|
|
3911
3925
|
var u = o.formatToParts(l);
|
|
3912
3926
|
if (u.length === 1)
|
|
3913
3927
|
return u[0].value;
|
|
3914
|
-
var h = u.reduce(function(
|
|
3915
|
-
return !
|
|
3928
|
+
var h = u.reduce(function(c, f) {
|
|
3929
|
+
return !c.length || f.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3916
3930
|
}, []);
|
|
3917
3931
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3918
3932
|
}, this.formatToParts = function(l) {
|
|
@@ -3929,13 +3943,13 @@ var vi = (
|
|
|
3929
3943
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3930
3944
|
var s = i || {};
|
|
3931
3945
|
s.formatters;
|
|
3932
|
-
var a =
|
|
3933
|
-
this.ast = e.__parse(t,
|
|
3946
|
+
var a = en(s, ["formatters"]);
|
|
3947
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3934
3948
|
} else
|
|
3935
3949
|
this.ast = t;
|
|
3936
3950
|
if (!Array.isArray(this.ast))
|
|
3937
3951
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3938
|
-
this.formats =
|
|
3952
|
+
this.formats = yi(e.formats, n), this.formatters = i && i.formatters || xi(this.formatterCache);
|
|
3939
3953
|
}
|
|
3940
3954
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3941
3955
|
get: function() {
|
|
@@ -3948,7 +3962,7 @@ var vi = (
|
|
|
3948
3962
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3949
3963
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3950
3964
|
}
|
|
3951
|
-
}, e.__parse =
|
|
3965
|
+
}, e.__parse = mi, e.formats = {
|
|
3952
3966
|
number: {
|
|
3953
3967
|
integer: {
|
|
3954
3968
|
maximumFractionDigits: 0
|
|
@@ -4009,7 +4023,7 @@ var vi = (
|
|
|
4009
4023
|
}, e;
|
|
4010
4024
|
}()
|
|
4011
4025
|
);
|
|
4012
|
-
function
|
|
4026
|
+
function Ei(e, t) {
|
|
4013
4027
|
if (t == null)
|
|
4014
4028
|
return;
|
|
4015
4029
|
if (t in e)
|
|
@@ -4030,92 +4044,92 @@ function xi(e, t) {
|
|
|
4030
4044
|
n = void 0;
|
|
4031
4045
|
return n;
|
|
4032
4046
|
}
|
|
4033
|
-
const $ = {},
|
|
4047
|
+
const $ = {}, Si = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), cr = (e, t) => {
|
|
4034
4048
|
if (t == null)
|
|
4035
4049
|
return;
|
|
4036
4050
|
if (t in $ && e in $[t])
|
|
4037
4051
|
return $[t][e];
|
|
4038
4052
|
const r = Ee(t);
|
|
4039
4053
|
for (let n = 0; n < r.length; n++) {
|
|
4040
|
-
const i = r[n], o =
|
|
4054
|
+
const i = r[n], o = Ti(i, e);
|
|
4041
4055
|
if (o)
|
|
4042
|
-
return
|
|
4056
|
+
return Si(e, t, o);
|
|
4043
4057
|
}
|
|
4044
4058
|
};
|
|
4045
|
-
let
|
|
4059
|
+
let et;
|
|
4046
4060
|
const ae = xe({});
|
|
4047
|
-
function
|
|
4048
|
-
return
|
|
4061
|
+
function wi(e) {
|
|
4062
|
+
return et[e] || null;
|
|
4049
4063
|
}
|
|
4050
|
-
function
|
|
4051
|
-
return e in
|
|
4064
|
+
function fr(e) {
|
|
4065
|
+
return e in et;
|
|
4052
4066
|
}
|
|
4053
|
-
function
|
|
4054
|
-
if (!
|
|
4067
|
+
function Ti(e, t) {
|
|
4068
|
+
if (!fr(e))
|
|
4055
4069
|
return null;
|
|
4056
|
-
const r =
|
|
4057
|
-
return
|
|
4070
|
+
const r = wi(e);
|
|
4071
|
+
return Ei(r, t);
|
|
4058
4072
|
}
|
|
4059
|
-
function
|
|
4073
|
+
function Hi(e) {
|
|
4060
4074
|
if (e == null)
|
|
4061
4075
|
return;
|
|
4062
4076
|
const t = Ee(e);
|
|
4063
4077
|
for (let r = 0; r < t.length; r++) {
|
|
4064
4078
|
const n = t[r];
|
|
4065
|
-
if (
|
|
4079
|
+
if (fr(n))
|
|
4066
4080
|
return n;
|
|
4067
4081
|
}
|
|
4068
4082
|
}
|
|
4069
|
-
function
|
|
4070
|
-
delete $[e], ae.update((r) => (r[e] =
|
|
4083
|
+
function mr(e, ...t) {
|
|
4084
|
+
delete $[e], ae.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
|
4071
4085
|
}
|
|
4072
4086
|
q(
|
|
4073
4087
|
[ae],
|
|
4074
4088
|
([e]) => Object.keys(e)
|
|
4075
4089
|
);
|
|
4076
|
-
ae.subscribe((e) =>
|
|
4090
|
+
ae.subscribe((e) => et = e);
|
|
4077
4091
|
const be = {};
|
|
4078
|
-
function
|
|
4092
|
+
function Ai(e, t) {
|
|
4079
4093
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
4080
4094
|
}
|
|
4081
|
-
function
|
|
4095
|
+
function dr(e) {
|
|
4082
4096
|
return be[e];
|
|
4083
4097
|
}
|
|
4084
|
-
function
|
|
4098
|
+
function Bi(e) {
|
|
4085
4099
|
return Ee(e).map((t) => {
|
|
4086
|
-
const r =
|
|
4100
|
+
const r = dr(t);
|
|
4087
4101
|
return [t, r ? [...r] : []];
|
|
4088
4102
|
}).filter(([, t]) => t.length > 0);
|
|
4089
4103
|
}
|
|
4090
|
-
function
|
|
4104
|
+
function Ze(e) {
|
|
4091
4105
|
return e == null ? !1 : Ee(e).some(
|
|
4092
4106
|
(t) => {
|
|
4093
4107
|
var r;
|
|
4094
|
-
return (r =
|
|
4108
|
+
return (r = dr(t)) == null ? void 0 : r.size;
|
|
4095
4109
|
}
|
|
4096
4110
|
);
|
|
4097
4111
|
}
|
|
4098
|
-
function
|
|
4112
|
+
function Ci(e, t) {
|
|
4099
4113
|
return Promise.all(
|
|
4100
|
-
t.map((n) => (
|
|
4101
|
-
).then((n) =>
|
|
4114
|
+
t.map((n) => (Ai(e, n), n().then((i) => i.default || i)))
|
|
4115
|
+
).then((n) => mr(e, ...n));
|
|
4102
4116
|
}
|
|
4103
4117
|
const ee = {};
|
|
4104
|
-
function
|
|
4105
|
-
if (!
|
|
4118
|
+
function pr(e) {
|
|
4119
|
+
if (!Ze(e))
|
|
4106
4120
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4107
|
-
const t =
|
|
4121
|
+
const t = Bi(e);
|
|
4108
4122
|
return ee[e] = Promise.all(
|
|
4109
4123
|
t.map(
|
|
4110
|
-
([r, n]) =>
|
|
4124
|
+
([r, n]) => Ci(r, n)
|
|
4111
4125
|
)
|
|
4112
4126
|
).then(() => {
|
|
4113
|
-
if (
|
|
4114
|
-
return
|
|
4127
|
+
if (Ze(e))
|
|
4128
|
+
return pr(e);
|
|
4115
4129
|
delete ee[e];
|
|
4116
4130
|
}), ee[e];
|
|
4117
4131
|
}
|
|
4118
|
-
const
|
|
4132
|
+
const Pi = {
|
|
4119
4133
|
number: {
|
|
4120
4134
|
scientific: { notation: "scientific" },
|
|
4121
4135
|
engineering: { notation: "engineering" },
|
|
@@ -4144,57 +4158,57 @@ const Bi = {
|
|
|
4144
4158
|
timeZoneName: "short"
|
|
4145
4159
|
}
|
|
4146
4160
|
}
|
|
4147
|
-
},
|
|
4161
|
+
}, Oi = {
|
|
4148
4162
|
fallbackLocale: null,
|
|
4149
4163
|
loadingDelay: 200,
|
|
4150
|
-
formats:
|
|
4164
|
+
formats: Pi,
|
|
4151
4165
|
warnOnMissingMessages: !0,
|
|
4152
4166
|
handleMissingMessage: void 0,
|
|
4153
4167
|
ignoreTag: !0
|
|
4154
|
-
},
|
|
4168
|
+
}, Ii = Oi;
|
|
4155
4169
|
function Z() {
|
|
4156
|
-
return
|
|
4157
|
-
}
|
|
4158
|
-
const
|
|
4159
|
-
var
|
|
4160
|
-
for (var r in t)
|
|
4161
|
-
|
|
4162
|
-
if (
|
|
4163
|
-
for (var r of
|
|
4164
|
-
|
|
4170
|
+
return Ii;
|
|
4171
|
+
}
|
|
4172
|
+
const Ie = xe(!1);
|
|
4173
|
+
var Mi = Object.defineProperty, Ni = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
|
|
4174
|
+
for (var r in t || (t = {}))
|
|
4175
|
+
Ri.call(t, r) && At(e, r, t[r]);
|
|
4176
|
+
if (Ht)
|
|
4177
|
+
for (var r of Ht(t))
|
|
4178
|
+
$i.call(t, r) && At(e, r, t[r]);
|
|
4165
4179
|
return e;
|
|
4166
|
-
},
|
|
4167
|
-
let
|
|
4180
|
+
}, Ui = (e, t) => Ni(e, Li(t));
|
|
4181
|
+
let Qe;
|
|
4168
4182
|
const ge = xe(null);
|
|
4169
|
-
function
|
|
4183
|
+
function Bt(e) {
|
|
4170
4184
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4171
4185
|
}
|
|
4172
4186
|
function Ee(e, t = Z().fallbackLocale) {
|
|
4173
|
-
const r =
|
|
4174
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4187
|
+
const r = Bt(e);
|
|
4188
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4175
4189
|
}
|
|
4176
4190
|
function G() {
|
|
4177
|
-
return
|
|
4191
|
+
return Qe != null ? Qe : void 0;
|
|
4178
4192
|
}
|
|
4179
4193
|
ge.subscribe((e) => {
|
|
4180
|
-
|
|
4194
|
+
Qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4181
4195
|
});
|
|
4182
|
-
const
|
|
4183
|
-
if (e &&
|
|
4196
|
+
const Di = (e) => {
|
|
4197
|
+
if (e && Hi(e) && Ze(e)) {
|
|
4184
4198
|
const { loadingDelay: t } = Z();
|
|
4185
4199
|
let r;
|
|
4186
4200
|
return typeof window != "undefined" && G() != null && t ? r = window.setTimeout(
|
|
4187
|
-
() =>
|
|
4201
|
+
() => Ie.set(!0),
|
|
4188
4202
|
t
|
|
4189
|
-
) :
|
|
4203
|
+
) : Ie.set(!0), pr(e).then(() => {
|
|
4190
4204
|
ge.set(e);
|
|
4191
4205
|
}).finally(() => {
|
|
4192
|
-
clearTimeout(r),
|
|
4206
|
+
clearTimeout(r), Ie.set(!1);
|
|
4193
4207
|
});
|
|
4194
4208
|
}
|
|
4195
4209
|
return ge.set(e);
|
|
4196
|
-
}, Y =
|
|
4197
|
-
set:
|
|
4210
|
+
}, Y = Ui(Gi({}, ge), {
|
|
4211
|
+
set: Di
|
|
4198
4212
|
}), Se = (e) => {
|
|
4199
4213
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4200
4214
|
return (n) => {
|
|
@@ -4202,20 +4216,20 @@ const Gi = (e) => {
|
|
|
4202
4216
|
return i in t ? t[i] : t[i] = e(n);
|
|
4203
4217
|
};
|
|
4204
4218
|
};
|
|
4205
|
-
var
|
|
4219
|
+
var Fi = Object.defineProperty, ve = Object.getOwnPropertySymbols, br = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4206
4220
|
for (var r in t || (t = {}))
|
|
4207
|
-
|
|
4208
|
-
if (
|
|
4209
|
-
for (var r of
|
|
4210
|
-
|
|
4221
|
+
br.call(t, r) && Ct(e, r, t[r]);
|
|
4222
|
+
if (ve)
|
|
4223
|
+
for (var r of ve(t))
|
|
4224
|
+
gr.call(t, r) && Ct(e, r, t[r]);
|
|
4211
4225
|
return e;
|
|
4212
4226
|
}, K = (e, t) => {
|
|
4213
4227
|
var r = {};
|
|
4214
4228
|
for (var n in e)
|
|
4215
|
-
|
|
4216
|
-
if (e != null &&
|
|
4217
|
-
for (var n of
|
|
4218
|
-
t.indexOf(n) < 0 &&
|
|
4229
|
+
br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4230
|
+
if (e != null && ve)
|
|
4231
|
+
for (var n of ve(e))
|
|
4232
|
+
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
|
4219
4233
|
return r;
|
|
4220
4234
|
};
|
|
4221
4235
|
const ie = (e, t) => {
|
|
@@ -4223,21 +4237,21 @@ const ie = (e, t) => {
|
|
|
4223
4237
|
if (e in r && t in r[e])
|
|
4224
4238
|
return r[e][t];
|
|
4225
4239
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4226
|
-
},
|
|
4240
|
+
}, ji = Se(
|
|
4227
4241
|
(e) => {
|
|
4228
4242
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4229
4243
|
if (r == null)
|
|
4230
4244
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4231
4245
|
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4232
4246
|
}
|
|
4233
|
-
),
|
|
4247
|
+
), ki = Se(
|
|
4234
4248
|
(e) => {
|
|
4235
4249
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4236
4250
|
if (r == null)
|
|
4237
4251
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4238
4252
|
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4239
4253
|
}
|
|
4240
|
-
),
|
|
4254
|
+
), Vi = Se(
|
|
4241
4255
|
(e) => {
|
|
4242
4256
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4243
4257
|
if (r == null)
|
|
@@ -4246,33 +4260,33 @@ const ie = (e, t) => {
|
|
|
4246
4260
|
);
|
|
4247
4261
|
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4248
4262
|
}
|
|
4249
|
-
),
|
|
4263
|
+
), Xi = (e = {}) => {
|
|
4250
4264
|
var t = e, {
|
|
4251
4265
|
locale: r = G()
|
|
4252
4266
|
} = t, n = K(t, [
|
|
4253
4267
|
"locale"
|
|
4254
4268
|
]);
|
|
4255
|
-
return
|
|
4256
|
-
},
|
|
4269
|
+
return ji(tt({ locale: r }, n));
|
|
4270
|
+
}, zi = (e = {}) => {
|
|
4257
4271
|
var t = e, {
|
|
4258
4272
|
locale: r = G()
|
|
4259
4273
|
} = t, n = K(t, [
|
|
4260
4274
|
"locale"
|
|
4261
4275
|
]);
|
|
4262
|
-
return
|
|
4263
|
-
},
|
|
4276
|
+
return ki(tt({ locale: r }, n));
|
|
4277
|
+
}, Wi = (e = {}) => {
|
|
4264
4278
|
var t = e, {
|
|
4265
4279
|
locale: r = G()
|
|
4266
4280
|
} = t, n = K(t, [
|
|
4267
4281
|
"locale"
|
|
4268
4282
|
]);
|
|
4269
|
-
return
|
|
4270
|
-
},
|
|
4283
|
+
return Vi(tt({ locale: r }, n));
|
|
4284
|
+
}, Zi = Se(
|
|
4271
4285
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4272
|
-
(e, t = G()) => new
|
|
4286
|
+
(e, t = G()) => new _i(e, t, Z().formats, {
|
|
4273
4287
|
ignoreTag: Z().ignoreTag
|
|
4274
4288
|
})
|
|
4275
|
-
),
|
|
4289
|
+
), Qi = (e, t = {}) => {
|
|
4276
4290
|
var r, n, i, o;
|
|
4277
4291
|
let s = t;
|
|
4278
4292
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4285,7 +4299,7 @@ const ie = (e, t) => {
|
|
|
4285
4299
|
throw new Error(
|
|
4286
4300
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4287
4301
|
);
|
|
4288
|
-
let h =
|
|
4302
|
+
let h = cr(e, l);
|
|
4289
4303
|
if (!h)
|
|
4290
4304
|
h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4291
4305
|
else if (typeof h != "string")
|
|
@@ -4294,30 +4308,30 @@ const ie = (e, t) => {
|
|
|
4294
4308
|
), h;
|
|
4295
4309
|
if (!a)
|
|
4296
4310
|
return h;
|
|
4297
|
-
let
|
|
4311
|
+
let c = h;
|
|
4298
4312
|
try {
|
|
4299
|
-
|
|
4300
|
-
} catch (
|
|
4301
|
-
|
|
4313
|
+
c = Zi(h, l).format(a);
|
|
4314
|
+
} catch (f) {
|
|
4315
|
+
f instanceof Error && console.warn(
|
|
4302
4316
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4303
|
-
|
|
4317
|
+
f.message
|
|
4304
4318
|
);
|
|
4305
4319
|
}
|
|
4306
|
-
return
|
|
4307
|
-
},
|
|
4308
|
-
q([Y], () => Zi);
|
|
4309
|
-
q([Y], () => Qi);
|
|
4320
|
+
return c;
|
|
4321
|
+
}, Ji = (e, t) => Wi(t).format(e), qi = (e, t) => zi(t).format(e), Yi = (e, t) => Xi(t).format(e), Ki = (e, t = G()) => cr(e, t), eo = q([Y, ae], () => Qi);
|
|
4310
4322
|
q([Y], () => Ji);
|
|
4311
|
-
q([Y
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4323
|
+
q([Y], () => qi);
|
|
4324
|
+
q([Y], () => Yi);
|
|
4325
|
+
q([Y, ae], () => Ki);
|
|
4326
|
+
window.emWidgets = { topic: pn };
|
|
4327
|
+
const to = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4328
|
+
function ro(e, t) {
|
|
4315
4329
|
if (e) {
|
|
4316
4330
|
const r = document.createElement("style");
|
|
4317
4331
|
r.innerHTML = t, e.appendChild(r);
|
|
4318
4332
|
}
|
|
4319
4333
|
}
|
|
4320
|
-
function
|
|
4334
|
+
function no(e, t) {
|
|
4321
4335
|
const r = new URL(t);
|
|
4322
4336
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4323
4337
|
const i = document.createElement("style");
|
|
@@ -4326,7 +4340,7 @@ function to(e, t) {
|
|
|
4326
4340
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4327
4341
|
});
|
|
4328
4342
|
}
|
|
4329
|
-
function
|
|
4343
|
+
function io(e, t, r) {
|
|
4330
4344
|
if (window.emMessageBus) {
|
|
4331
4345
|
const n = document.createElement("style");
|
|
4332
4346
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4334,13 +4348,13 @@ function ro(e, t, r) {
|
|
|
4334
4348
|
});
|
|
4335
4349
|
}
|
|
4336
4350
|
}
|
|
4337
|
-
function
|
|
4338
|
-
|
|
4351
|
+
function Pt(e, t) {
|
|
4352
|
+
mr(e, t);
|
|
4339
4353
|
}
|
|
4340
|
-
function
|
|
4354
|
+
function oo(e) {
|
|
4341
4355
|
Y.set(e);
|
|
4342
4356
|
}
|
|
4343
|
-
const
|
|
4357
|
+
const Ot = {
|
|
4344
4358
|
en: {
|
|
4345
4359
|
cancel: "Cancel",
|
|
4346
4360
|
confirm: "Confirm"
|
|
@@ -4386,18 +4400,18 @@ const Ct = {
|
|
|
4386
4400
|
confirm: "Confirm"
|
|
4387
4401
|
}
|
|
4388
4402
|
};
|
|
4389
|
-
function io(e) {
|
|
4390
|
-
Pr(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}');
|
|
4391
|
-
}
|
|
4392
|
-
const oo = (e) => ({}), Pt = (e) => ({});
|
|
4393
4403
|
function so(e) {
|
|
4404
|
+
Mr(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}');
|
|
4405
|
+
}
|
|
4406
|
+
const ao = (e) => ({}), It = (e) => ({});
|
|
4407
|
+
function uo(e) {
|
|
4394
4408
|
let t, r;
|
|
4395
4409
|
return {
|
|
4396
4410
|
c() {
|
|
4397
|
-
t =
|
|
4411
|
+
t = ut("svg"), r = ut("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");
|
|
4398
4412
|
},
|
|
4399
4413
|
m(n, i) {
|
|
4400
|
-
oe(n, t, i),
|
|
4414
|
+
oe(n, t, i), B(t, r);
|
|
4401
4415
|
},
|
|
4402
4416
|
p: N,
|
|
4403
4417
|
d(n) {
|
|
@@ -4405,7 +4419,7 @@ function so(e) {
|
|
|
4405
4419
|
}
|
|
4406
4420
|
};
|
|
4407
4421
|
}
|
|
4408
|
-
function
|
|
4422
|
+
function Mt(e) {
|
|
4409
4423
|
let t, r, n;
|
|
4410
4424
|
return {
|
|
4411
4425
|
c() {
|
|
@@ -4415,11 +4429,11 @@ function Ot(e) {
|
|
|
4415
4429
|
), T(t, "class", "GeneralConfirmationTitle");
|
|
4416
4430
|
},
|
|
4417
4431
|
m(i, o) {
|
|
4418
|
-
oe(i, t, o),
|
|
4432
|
+
oe(i, t, o), B(t, r), B(r, n);
|
|
4419
4433
|
},
|
|
4420
4434
|
p(i, o) {
|
|
4421
4435
|
o & /*modaltitle*/
|
|
4422
|
-
2 &&
|
|
4436
|
+
2 && qe(
|
|
4423
4437
|
n,
|
|
4424
4438
|
/*modaltitle*/
|
|
4425
4439
|
i[1]
|
|
@@ -4430,7 +4444,7 @@ function Ot(e) {
|
|
|
4430
4444
|
}
|
|
4431
4445
|
};
|
|
4432
4446
|
}
|
|
4433
|
-
function
|
|
4447
|
+
function Nt(e) {
|
|
4434
4448
|
let t, r = (
|
|
4435
4449
|
/*$_*/
|
|
4436
4450
|
e[4]("cancel") + ""
|
|
@@ -4440,7 +4454,7 @@ function It(e) {
|
|
|
4440
4454
|
t = M("button"), n = se(r), T(t, "class", "GeneralCancelButton");
|
|
4441
4455
|
},
|
|
4442
4456
|
m(s, a) {
|
|
4443
|
-
oe(s, t, a),
|
|
4457
|
+
oe(s, t, a), B(t, n), i || (o = Me(
|
|
4444
4458
|
t,
|
|
4445
4459
|
"click",
|
|
4446
4460
|
/*click_handler*/
|
|
@@ -4450,168 +4464,168 @@ function It(e) {
|
|
|
4450
4464
|
p(s, a) {
|
|
4451
4465
|
a & /*$_*/
|
|
4452
4466
|
16 && r !== (r = /*$_*/
|
|
4453
|
-
s[4]("cancel") + "") &&
|
|
4467
|
+
s[4]("cancel") + "") && qe(n, r);
|
|
4454
4468
|
},
|
|
4455
4469
|
d(s) {
|
|
4456
4470
|
s && J(t), i = !1, o();
|
|
4457
4471
|
}
|
|
4458
4472
|
};
|
|
4459
4473
|
}
|
|
4460
|
-
function
|
|
4461
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4474
|
+
function lo(e) {
|
|
4475
|
+
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4462
4476
|
/*$_*/
|
|
4463
4477
|
e[4]("confirm") + ""
|
|
4464
|
-
),
|
|
4478
|
+
), f, m, v, p;
|
|
4465
4479
|
const w = (
|
|
4466
4480
|
/*#slots*/
|
|
4467
4481
|
e[16].close
|
|
4468
|
-
), P =
|
|
4482
|
+
), P = Cr(
|
|
4469
4483
|
w,
|
|
4470
4484
|
e,
|
|
4471
4485
|
/*$$scope*/
|
|
4472
4486
|
e[15],
|
|
4473
|
-
|
|
4474
|
-
),
|
|
4487
|
+
It
|
|
4488
|
+
), H = P || uo();
|
|
4475
4489
|
let _ = (
|
|
4476
4490
|
/*modaltitle*/
|
|
4477
|
-
e[1] &&
|
|
4491
|
+
e[1] && Mt(e)
|
|
4478
4492
|
), E = (
|
|
4479
4493
|
/*hascancelbutton*/
|
|
4480
|
-
e[2] &&
|
|
4494
|
+
e[2] && Nt(e)
|
|
4481
4495
|
);
|
|
4482
4496
|
return {
|
|
4483
4497
|
c() {
|
|
4484
|
-
t = M("div"), r = M("div"), n = M("span"),
|
|
4498
|
+
t = M("div"), r = M("div"), n = M("span"), H && H.c(), i = le(), _ && _.c(), o = le(), s = M("div"), a = le(), l = M("div"), E && E.c(), u = le(), h = M("button"), f = se(c), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4485
4499
|
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4486
4500
|
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4487
4501
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4488
4502
|
},
|
|
4489
|
-
m(x,
|
|
4490
|
-
oe(x, t,
|
|
4491
|
-
e[0],
|
|
4492
|
-
|
|
4503
|
+
m(x, A) {
|
|
4504
|
+
oe(x, 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*/
|
|
4505
|
+
e[0], B(r, a), B(r, l), E && E.m(l, null), B(l, u), B(l, h), B(h, f), e[19](t), m = !0, v || (p = [
|
|
4506
|
+
Me(
|
|
4493
4507
|
n,
|
|
4494
4508
|
"click",
|
|
4495
4509
|
/*close*/
|
|
4496
4510
|
e[6]
|
|
4497
4511
|
),
|
|
4498
|
-
|
|
4512
|
+
Me(
|
|
4499
4513
|
h,
|
|
4500
4514
|
"click",
|
|
4501
4515
|
/*click_handler_1*/
|
|
4502
4516
|
e[18]
|
|
4503
4517
|
)
|
|
4504
|
-
],
|
|
4518
|
+
], v = !0);
|
|
4505
4519
|
},
|
|
4506
|
-
p(x, [
|
|
4507
|
-
P && P.p && (!
|
|
4508
|
-
32768) &&
|
|
4520
|
+
p(x, [A]) {
|
|
4521
|
+
P && P.p && (!m || A & /*$$scope*/
|
|
4522
|
+
32768) && Or(
|
|
4509
4523
|
P,
|
|
4510
4524
|
w,
|
|
4511
4525
|
x,
|
|
4512
4526
|
/*$$scope*/
|
|
4513
4527
|
x[15],
|
|
4514
|
-
|
|
4528
|
+
m ? Pr(
|
|
4515
4529
|
w,
|
|
4516
4530
|
/*$$scope*/
|
|
4517
4531
|
x[15],
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
) :
|
|
4532
|
+
A,
|
|
4533
|
+
ao
|
|
4534
|
+
) : Ir(
|
|
4521
4535
|
/*$$scope*/
|
|
4522
4536
|
x[15]
|
|
4523
4537
|
),
|
|
4524
|
-
|
|
4538
|
+
It
|
|
4525
4539
|
), /*modaltitle*/
|
|
4526
|
-
x[1] ? _ ? _.p(x,
|
|
4540
|
+
x[1] ? _ ? _.p(x, A) : (_ = Mt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || A & /*modaltext*/
|
|
4527
4541
|
1) && (s.innerHTML = /*modaltext*/
|
|
4528
4542
|
x[0]), /*hascancelbutton*/
|
|
4529
|
-
x[2] ? E ? E.p(x,
|
|
4530
|
-
16) &&
|
|
4531
|
-
x[4]("confirm") + "") &&
|
|
4543
|
+
x[2] ? E ? E.p(x, A) : (E = Nt(x), E.c(), E.m(l, u)) : E && (E.d(1), E = null), (!m || A & /*$_*/
|
|
4544
|
+
16) && c !== (c = /*$_*/
|
|
4545
|
+
x[4]("confirm") + "") && qe(f, c);
|
|
4532
4546
|
},
|
|
4533
4547
|
i(x) {
|
|
4534
|
-
|
|
4548
|
+
m || (Ut(H, x), m = !0);
|
|
4535
4549
|
},
|
|
4536
4550
|
o(x) {
|
|
4537
|
-
|
|
4551
|
+
Xr(H, x), m = !1;
|
|
4538
4552
|
},
|
|
4539
4553
|
d(x) {
|
|
4540
|
-
x && J(t),
|
|
4554
|
+
x && J(t), H && H.d(x), _ && _.d(), E && E.d(), e[19](null), v = !1, Q(p);
|
|
4541
4555
|
}
|
|
4542
4556
|
};
|
|
4543
4557
|
}
|
|
4544
|
-
function
|
|
4558
|
+
function ho(e, t, r) {
|
|
4545
4559
|
let n;
|
|
4546
|
-
|
|
4547
|
-
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:
|
|
4560
|
+
Br(e, eo, (b) => r(4, n = b));
|
|
4561
|
+
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: p } = t, w, P = window.navigator.userAgent, H = to(P) !== "PC";
|
|
4548
4562
|
const _ = () => {
|
|
4549
4563
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4550
4564
|
}, E = (b) => {
|
|
4551
4565
|
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), _();
|
|
4552
4566
|
}, x = () => {
|
|
4553
|
-
fetch(
|
|
4554
|
-
Object.keys(U).forEach((
|
|
4555
|
-
|
|
4567
|
+
fetch(v).then((U) => U.json()).then((U) => {
|
|
4568
|
+
Object.keys(U).forEach((rt) => {
|
|
4569
|
+
Pt(rt, U[rt]);
|
|
4556
4570
|
});
|
|
4557
4571
|
}).catch((U) => {
|
|
4558
4572
|
console.log(U);
|
|
4559
4573
|
});
|
|
4560
4574
|
};
|
|
4561
|
-
Object.keys(
|
|
4562
|
-
|
|
4575
|
+
Object.keys(Ot).forEach((b) => {
|
|
4576
|
+
Pt(b, Ot[b]);
|
|
4563
4577
|
});
|
|
4564
|
-
const
|
|
4565
|
-
|
|
4578
|
+
const A = () => {
|
|
4579
|
+
oo(c);
|
|
4566
4580
|
};
|
|
4567
|
-
|
|
4581
|
+
Ur(() => () => {
|
|
4568
4582
|
});
|
|
4569
|
-
const ue = () => E("cancel"),
|
|
4570
|
-
function
|
|
4571
|
-
|
|
4583
|
+
const ue = () => E("cancel"), yr = () => E("confirm");
|
|
4584
|
+
function xr(b) {
|
|
4585
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4572
4586
|
w = b, r(3, w);
|
|
4573
4587
|
});
|
|
4574
4588
|
}
|
|
4575
4589
|
return e.$$set = (b) => {
|
|
4576
|
-
"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,
|
|
4590
|
+
"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, p = b.mbsource), "$$scope" in b && r(15, o = b.$$scope);
|
|
4577
4591
|
}, e.$$.update = () => {
|
|
4578
4592
|
e.$$.dirty & /*modaltext, lang*/
|
|
4579
|
-
1025 && s &&
|
|
4580
|
-
2056 &&
|
|
4581
|
-
4104 &&
|
|
4582
|
-
16392 && p && w &&
|
|
4583
|
-
8192 &&
|
|
4593
|
+
1025 && s && c && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4594
|
+
2056 && f && w && ro(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4595
|
+
4104 && m && w && no(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4596
|
+
16392 && p && w && io(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4597
|
+
8192 && v && x();
|
|
4584
4598
|
}, [
|
|
4585
4599
|
s,
|
|
4586
4600
|
a,
|
|
4587
4601
|
l,
|
|
4588
4602
|
w,
|
|
4589
4603
|
n,
|
|
4590
|
-
|
|
4604
|
+
H,
|
|
4591
4605
|
_,
|
|
4592
4606
|
E,
|
|
4593
4607
|
u,
|
|
4594
4608
|
h,
|
|
4595
|
-
f,
|
|
4596
4609
|
c,
|
|
4597
|
-
|
|
4598
|
-
|
|
4610
|
+
f,
|
|
4611
|
+
m,
|
|
4612
|
+
v,
|
|
4599
4613
|
p,
|
|
4600
4614
|
o,
|
|
4601
4615
|
i,
|
|
4602
4616
|
ue,
|
|
4603
|
-
|
|
4604
|
-
|
|
4617
|
+
yr,
|
|
4618
|
+
xr
|
|
4605
4619
|
];
|
|
4606
4620
|
}
|
|
4607
|
-
class
|
|
4621
|
+
class vr extends qr {
|
|
4608
4622
|
constructor(t) {
|
|
4609
|
-
super(),
|
|
4623
|
+
super(), Qr(
|
|
4610
4624
|
this,
|
|
4611
4625
|
t,
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4626
|
+
ho,
|
|
4627
|
+
lo,
|
|
4628
|
+
Rt,
|
|
4615
4629
|
{
|
|
4616
4630
|
modaltext: 0,
|
|
4617
4631
|
modaltitle: 1,
|
|
@@ -4624,7 +4638,7 @@ class pr extends Zr {
|
|
|
4624
4638
|
translationurl: 13,
|
|
4625
4639
|
mbsource: 14
|
|
4626
4640
|
},
|
|
4627
|
-
|
|
4641
|
+
so
|
|
4628
4642
|
);
|
|
4629
4643
|
}
|
|
4630
4644
|
get modaltext() {
|
|
@@ -4688,50 +4702,50 @@ class pr extends Zr {
|
|
|
4688
4702
|
this.$$set({ mbsource: t }), I();
|
|
4689
4703
|
}
|
|
4690
4704
|
}
|
|
4691
|
-
|
|
4692
|
-
const
|
|
4705
|
+
Jr(vr, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4706
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4693
4707
|
__proto__: null,
|
|
4694
|
-
default:
|
|
4708
|
+
default: vr
|
|
4695
4709
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4696
4710
|
export {
|
|
4697
4711
|
Y as $,
|
|
4698
|
-
A,
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4712
|
+
B as A,
|
|
4713
|
+
vo as B,
|
|
4714
|
+
Me as C,
|
|
4715
|
+
qe as D,
|
|
4716
|
+
fo as E,
|
|
4703
4717
|
Q as F,
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4718
|
+
po as G,
|
|
4719
|
+
go as H,
|
|
4720
|
+
ut as I,
|
|
4721
|
+
bo as J,
|
|
4722
|
+
eo as K,
|
|
4723
|
+
Eo as P,
|
|
4724
|
+
qr as S,
|
|
4725
|
+
mr as a,
|
|
4726
|
+
Jr as b,
|
|
4727
|
+
_o as c,
|
|
4728
|
+
Mr as d,
|
|
4715
4729
|
M as e,
|
|
4716
4730
|
I as f,
|
|
4717
|
-
|
|
4731
|
+
Kr as g,
|
|
4718
4732
|
oe as h,
|
|
4719
|
-
|
|
4733
|
+
Qr as i,
|
|
4720
4734
|
J as j,
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4735
|
+
Br as k,
|
|
4736
|
+
to as l,
|
|
4737
|
+
no as m,
|
|
4724
4738
|
N as n,
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4739
|
+
Ur as o,
|
|
4740
|
+
io as p,
|
|
4741
|
+
yo as q,
|
|
4742
|
+
Ne as r,
|
|
4743
|
+
Rt as s,
|
|
4730
4744
|
ro as t,
|
|
4731
|
-
|
|
4745
|
+
xo as u,
|
|
4732
4746
|
le as v,
|
|
4733
4747
|
se as w,
|
|
4734
|
-
|
|
4748
|
+
mo as x,
|
|
4735
4749
|
T as y,
|
|
4736
|
-
|
|
4750
|
+
Re as z
|
|
4737
4751
|
};
|