@everymatrix/player-account-self-exclusion-nd 1.74.7 → 1.74.10
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-DeKth9rU.js → PlayerAccountGeneralConfirmationModal-CS1zuABb.js} +1245 -1259
- package/components/PlayerAccountGeneralConfirmationModal-D8QZ1uxf.cjs +21 -0
- package/components/{PlayerAccountGeneralConfirmationModal-COn8IPHo.js → PlayerAccountGeneralConfirmationModal-owYYN2xC.js} +762 -776
- package/components/{PlayerAccountModal-bhlvepWR.js → PlayerAccountModal-BrWvsXQ0.js} +10 -10
- package/components/{PlayerAccountModal-1yio55uP.js → PlayerAccountModal-BtSzAR0U.js} +10 -10
- package/components/{PlayerAccountModal-hE4QiaWT.cjs → PlayerAccountModal-DLpxMnuu.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-CvJTo9Xq.js → PlayerAccountSelfExclusionNd-BVOnppRR.js} +1039 -1040
- package/components/{PlayerAccountSelfExclusionNd-BDWzo3ic.cjs → PlayerAccountSelfExclusionNd-DUeUbt0_.cjs} +152 -152
- package/components/{PlayerAccountSelfExclusionNd-yog-b1L9.js → PlayerAccountSelfExclusionNd-kWfWkMdh.js} +1030 -1031
- package/es2015/player-account-self-exclusion-nd.cjs +1 -1
- package/es2015/player-account-self-exclusion-nd.js +1 -1
- package/esnext/player-account-self-exclusion-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BtPvM93e.js → index-b2193545-BbCeNxUG.js} +176 -176
- package/stencil/{index-b2193545-D_KBbaD-.js → index-b2193545-C9PH-6qK.js} +169 -169
- package/stencil/index-b2193545-D-u-gzj3.cjs +1 -0
- package/stencil/{ui-skeleton-NZtdK490.js → ui-skeleton-BKDs0-7H.js} +2 -2
- package/stencil/{ui-skeleton-CWuMYFGQ.js → ui-skeleton-CJbkvgG7.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CKJgMm_5.cjs → ui-skeleton-ae35c6f2-CXlvqczG.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DlexSQlT.js → ui-skeleton-ae35c6f2-ZB0isFAq.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CW3z59Qf.js → ui-skeleton-ae35c6f2-gun6WX2F.js} +1 -1
- package/stencil/{ui-skeleton-BPqjm-YB.cjs → ui-skeleton-bhljBTS7.cjs} +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-CTkrsADp.cjs +0 -21
- package/stencil/index-b2193545-CgelUAhE.cjs +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Oe = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var On = Object.defineProperty, In = Object.defineProperties;
|
|
2
|
+
var Mn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var lt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nn = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Oe = (e, t, n) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Nn.call(t, n) && Oe(e, n, t[n]);
|
|
8
|
+
if (lt)
|
|
9
|
+
for (var n of lt(t))
|
|
10
|
+
Ln.call(t, n) && Oe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, ft = (e, t) => In(e, Mn(t));
|
|
13
|
+
var O = (e, t, n) => (Oe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ct = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
a(
|
|
17
|
+
a(n.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, s = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
a(
|
|
23
|
+
a(n.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (l) => l.done ?
|
|
28
|
-
a((
|
|
27
|
+
}, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function N() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
32
|
+
const Rn = (e) => e;
|
|
33
|
+
function $n(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function jt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function dt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
47
|
function U(e) {
|
|
48
|
-
e.forEach(
|
|
48
|
+
e.forEach(jt);
|
|
49
49
|
}
|
|
50
50
|
function Te(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function kt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Gn(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Vt(e, ...t) {
|
|
60
60
|
if (e == null) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const r of t)
|
|
62
|
+
r(void 0);
|
|
63
63
|
return N;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
const n = e.subscribe(...t);
|
|
66
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
e.$$.on_destroy.push(
|
|
68
|
+
function Un(e, t, n) {
|
|
69
|
+
e.$$.on_destroy.push(Vt(t, n));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Dn(e, t, n, r) {
|
|
72
72
|
if (e) {
|
|
73
|
-
const i =
|
|
73
|
+
const i = Xt(e, t, n, r);
|
|
74
74
|
return e[0](i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return e[1] &&
|
|
77
|
+
function Xt(e, t, n, r) {
|
|
78
|
+
return e[1] && r ? $n(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (e[2] &&
|
|
82
|
-
const i = e[2](n
|
|
80
|
+
function Fn(e, t, n, r) {
|
|
81
|
+
if (e[2] && r) {
|
|
82
|
+
const i = e[2](r(n));
|
|
83
83
|
if (t.dirty === void 0)
|
|
84
84
|
return i;
|
|
85
85
|
if (typeof i == "object") {
|
|
@@ -92,34 +92,34 @@ function kr(e, t, r, n) {
|
|
|
92
92
|
}
|
|
93
93
|
return t.dirty;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function jn(e, t, n, r, i, o) {
|
|
96
96
|
if (i) {
|
|
97
|
-
const s =
|
|
97
|
+
const s = Xt(t, n, r, o);
|
|
98
98
|
e.p(s, i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function kn(e) {
|
|
102
102
|
if (e.ctx.length > 32) {
|
|
103
|
-
const t = [],
|
|
104
|
-
for (let
|
|
105
|
-
t[
|
|
103
|
+
const t = [], n = e.ctx.length / 32;
|
|
104
|
+
for (let r = 0; r < n; r++)
|
|
105
|
+
t[r] = -1;
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
return -1;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
110
|
+
const zt = typeof window != "undefined";
|
|
111
|
+
let Vn = zt ? () => window.performance.now() : () => Date.now(), nt = zt ? (e) => requestAnimationFrame(e) : N;
|
|
112
112
|
const z = /* @__PURE__ */ new Set();
|
|
113
|
-
function
|
|
113
|
+
function Wt(e) {
|
|
114
114
|
z.forEach((t) => {
|
|
115
115
|
t.c(e) || (z.delete(t), t.f());
|
|
116
|
-
}), z.size !== 0 && nt(
|
|
116
|
+
}), z.size !== 0 && nt(Wt);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Xn(e) {
|
|
119
119
|
let t;
|
|
120
|
-
return z.size === 0 && nt(
|
|
121
|
-
promise: new Promise((
|
|
122
|
-
z.add(t = { c: e, f:
|
|
120
|
+
return z.size === 0 && nt(Wt), {
|
|
121
|
+
promise: new Promise((n) => {
|
|
122
|
+
z.add(t = { c: e, f: n });
|
|
123
123
|
}),
|
|
124
124
|
abort() {
|
|
125
125
|
z.delete(t);
|
|
@@ -129,14 +129,14 @@ function Wr(e) {
|
|
|
129
129
|
function C(e, t) {
|
|
130
130
|
e.appendChild(t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
132
|
+
function zn(e, t, n) {
|
|
133
|
+
const r = rt(e);
|
|
134
|
+
if (!r.getElementById(t)) {
|
|
135
135
|
const i = M("style");
|
|
136
|
-
i.id = t, i.textContent =
|
|
136
|
+
i.id = t, i.textContent = n, Zt(r, i);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function rt(e) {
|
|
140
140
|
if (!e)
|
|
141
141
|
return document;
|
|
142
142
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -146,112 +146,112 @@ function it(e) {
|
|
|
146
146
|
t
|
|
147
147
|
) : e.ownerDocument;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Wn(e) {
|
|
150
150
|
const t = M("style");
|
|
151
|
-
return t.textContent = "/* empty */",
|
|
151
|
+
return t.textContent = "/* empty */", Zt(rt(e), t), t.sheet;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Zt(e, t) {
|
|
154
154
|
return C(
|
|
155
155
|
/** @type {Document} */
|
|
156
156
|
e.head || e,
|
|
157
157
|
t
|
|
158
158
|
), t.sheet;
|
|
159
159
|
}
|
|
160
|
-
function ue(e, t,
|
|
161
|
-
e.insertBefore(t,
|
|
160
|
+
function ue(e, t, n) {
|
|
161
|
+
e.insertBefore(t, n || null);
|
|
162
162
|
}
|
|
163
163
|
function D(e) {
|
|
164
164
|
e.parentNode && e.parentNode.removeChild(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (let
|
|
168
|
-
e[
|
|
166
|
+
function Oo(e, t) {
|
|
167
|
+
for (let n = 0; n < e.length; n += 1)
|
|
168
|
+
e[n] && e[n].d(t);
|
|
169
169
|
}
|
|
170
170
|
function M(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function mt(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
176
|
function le(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function ce() {
|
|
180
180
|
return le(" ");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Io() {
|
|
183
183
|
return le("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return e.addEventListener(t,
|
|
185
|
+
function De(e, t, n, r) {
|
|
186
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
function T(e, t, n) {
|
|
189
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
|
|
191
|
+
function Mo(e, t, n) {
|
|
192
|
+
const r = t.toLowerCase();
|
|
193
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : T(e, t, n);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Zn(e) {
|
|
196
196
|
return Array.from(e.childNodes);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function it(e, t) {
|
|
199
199
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
200
200
|
t);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
202
|
+
function No(e, t, n, r) {
|
|
203
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
e.classList.toggle(t, !!
|
|
205
|
+
function Lo(e, t, n) {
|
|
206
|
+
e.classList.toggle(t, !!n);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
208
|
+
function Qn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
209
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Jn(e) {
|
|
212
212
|
const t = {};
|
|
213
213
|
return e.childNodes.forEach(
|
|
214
214
|
/** @param {Element} node */
|
|
215
|
-
(
|
|
216
|
-
t[
|
|
215
|
+
(n) => {
|
|
216
|
+
t[n.slot || "default"] = !0;
|
|
217
217
|
}
|
|
218
218
|
), t;
|
|
219
219
|
}
|
|
220
220
|
const _e = /* @__PURE__ */ new Map();
|
|
221
221
|
let xe = 0;
|
|
222
|
-
function
|
|
223
|
-
let t = 5381,
|
|
224
|
-
for (;
|
|
225
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
222
|
+
function qn(e) {
|
|
223
|
+
let t = 5381, n = e.length;
|
|
224
|
+
for (; n--; )
|
|
225
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
226
226
|
return t >>> 0;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
return _e.set(e,
|
|
228
|
+
function Yn(e, t) {
|
|
229
|
+
const n = { stylesheet: Wn(t), rules: {} };
|
|
230
|
+
return _e.set(e, n), n;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const l = 16.666 /
|
|
232
|
+
function pt(e, t, n, r, i, o, s, a = 0) {
|
|
233
|
+
const l = 16.666 / r;
|
|
234
234
|
let u = `{
|
|
235
235
|
`;
|
|
236
236
|
for (let g = 0; g <= 1; g += l) {
|
|
237
|
-
const
|
|
238
|
-
u += g * 100 + `%{${s(
|
|
237
|
+
const H = t + (n - t) * o(g);
|
|
238
|
+
u += g * 100 + `%{${s(H, 1 - H)}}
|
|
239
239
|
`;
|
|
240
240
|
}
|
|
241
|
-
const h = u + `100% {${s(
|
|
242
|
-
}`,
|
|
243
|
-
|
|
241
|
+
const h = u + `100% {${s(n, 1 - n)}}
|
|
242
|
+
}`, f = `__svelte_${qn(h)}_${a}`, c = rt(e), { stylesheet: m, rules: d } = _e.get(c) || Yn(c, e);
|
|
243
|
+
d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${h}`, m.cssRules.length));
|
|
244
244
|
const p = e.style.animation || "";
|
|
245
|
-
return e.style.animation = `${p ? `${p}, ` : ""}${
|
|
245
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, xe += 1, f;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
247
|
+
function Kn(e, t) {
|
|
248
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
249
249
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
250
250
|
// remove all Svelte animations
|
|
251
|
-
), i =
|
|
252
|
-
i && (e.style.animation =
|
|
251
|
+
), i = n.length - r.length;
|
|
252
|
+
i && (e.style.animation = r.join(", "), xe -= i, xe || er());
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function er() {
|
|
255
255
|
nt(() => {
|
|
256
256
|
xe || (_e.forEach((e) => {
|
|
257
257
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -263,20 +263,20 @@ let oe;
|
|
|
263
263
|
function ie(e) {
|
|
264
264
|
oe = e;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function tr() {
|
|
267
267
|
if (!oe)
|
|
268
268
|
throw new Error("Function called outside component initialization");
|
|
269
269
|
return oe;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
271
|
+
function nr(e) {
|
|
272
|
+
tr().$$.on_mount.push(e);
|
|
273
273
|
}
|
|
274
|
-
const X = [],
|
|
274
|
+
const X = [], Fe = [];
|
|
275
275
|
let W = [];
|
|
276
|
-
const
|
|
277
|
-
let
|
|
278
|
-
function
|
|
279
|
-
|
|
276
|
+
const bt = [], rr = /* @__PURE__ */ Promise.resolve();
|
|
277
|
+
let je = !1;
|
|
278
|
+
function ir() {
|
|
279
|
+
je || (je = !0, rr.then(I));
|
|
280
280
|
}
|
|
281
281
|
function Ee(e) {
|
|
282
282
|
W.push(e);
|
|
@@ -291,46 +291,46 @@ function I() {
|
|
|
291
291
|
try {
|
|
292
292
|
for (; k < X.length; ) {
|
|
293
293
|
const t = X[k];
|
|
294
|
-
k++, ie(t),
|
|
294
|
+
k++, ie(t), or(t.$$);
|
|
295
295
|
}
|
|
296
296
|
} catch (t) {
|
|
297
297
|
throw X.length = 0, k = 0, t;
|
|
298
298
|
}
|
|
299
|
-
for (ie(null), X.length = 0, k = 0;
|
|
300
|
-
|
|
299
|
+
for (ie(null), X.length = 0, k = 0; Fe.length; )
|
|
300
|
+
Fe.pop()();
|
|
301
301
|
for (let t = 0; t < W.length; t += 1) {
|
|
302
|
-
const
|
|
303
|
-
Ie.has(
|
|
302
|
+
const n = W[t];
|
|
303
|
+
Ie.has(n) || (Ie.add(n), n());
|
|
304
304
|
}
|
|
305
305
|
W.length = 0;
|
|
306
306
|
} while (X.length);
|
|
307
|
-
for (;
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
for (; bt.length; )
|
|
308
|
+
bt.pop()();
|
|
309
|
+
je = !1, Ie.clear(), ie(e);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function or(e) {
|
|
312
312
|
if (e.fragment !== null) {
|
|
313
313
|
e.update(), U(e.before_update);
|
|
314
314
|
const t = e.dirty;
|
|
315
315
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const t = [],
|
|
320
|
-
W.forEach((
|
|
318
|
+
function sr(e) {
|
|
319
|
+
const t = [], n = [];
|
|
320
|
+
W.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), W = t;
|
|
321
321
|
}
|
|
322
|
-
let
|
|
323
|
-
function
|
|
324
|
-
return
|
|
325
|
-
|
|
326
|
-
})),
|
|
322
|
+
let ne;
|
|
323
|
+
function ar() {
|
|
324
|
+
return ne || (ne = Promise.resolve(), ne.then(() => {
|
|
325
|
+
ne = null;
|
|
326
|
+
})), ne;
|
|
327
327
|
}
|
|
328
|
-
function Me(e, t,
|
|
329
|
-
e.dispatchEvent(
|
|
328
|
+
function Me(e, t, n) {
|
|
329
|
+
e.dispatchEvent(Qn(`${t ? "intro" : "outro"}${n}`));
|
|
330
330
|
}
|
|
331
331
|
const pe = /* @__PURE__ */ new Set();
|
|
332
332
|
let L;
|
|
333
|
-
function
|
|
333
|
+
function Ro() {
|
|
334
334
|
L = {
|
|
335
335
|
r: 0,
|
|
336
336
|
c: [],
|
|
@@ -338,104 +338,104 @@ function Go() {
|
|
|
338
338
|
// parent group
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function $o() {
|
|
342
342
|
L.r || U(L.c), L = L.p;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Qt(e, t) {
|
|
345
345
|
e && e.i && (pe.delete(e), e.i(t));
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ur(e, t, n, r) {
|
|
348
348
|
if (e && e.o) {
|
|
349
349
|
if (pe.has(e))
|
|
350
350
|
return;
|
|
351
351
|
pe.add(e), L.c.push(() => {
|
|
352
|
-
pe.delete(e),
|
|
352
|
+
pe.delete(e), r && (n && e.d(1), r());
|
|
353
353
|
}), e.o(t);
|
|
354
354
|
} else
|
|
355
|
-
|
|
355
|
+
r && r();
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
let o = t(e,
|
|
360
|
-
function
|
|
361
|
-
u &&
|
|
357
|
+
const lr = { duration: 0 };
|
|
358
|
+
function Go(e, t, n, r) {
|
|
359
|
+
let o = t(e, n, { direction: "both" }), s = r ? 0 : 1, a = null, l = null, u = null, h;
|
|
360
|
+
function f() {
|
|
361
|
+
u && Kn(e, u);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function c(d, p) {
|
|
364
364
|
const g = (
|
|
365
365
|
/** @type {Program['d']} */
|
|
366
|
-
|
|
366
|
+
d.b - s
|
|
367
367
|
);
|
|
368
368
|
return p *= Math.abs(g), {
|
|
369
369
|
a: s,
|
|
370
|
-
b:
|
|
370
|
+
b: d.b,
|
|
371
371
|
d: g,
|
|
372
372
|
duration: p,
|
|
373
|
-
start:
|
|
374
|
-
end:
|
|
375
|
-
group:
|
|
373
|
+
start: d.start,
|
|
374
|
+
end: d.start + p,
|
|
375
|
+
group: d.group
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function d
|
|
378
|
+
function m(d) {
|
|
379
379
|
const {
|
|
380
380
|
delay: p = 0,
|
|
381
381
|
duration: g = 300,
|
|
382
|
-
easing:
|
|
383
|
-
tick:
|
|
382
|
+
easing: H = Rn,
|
|
383
|
+
tick: A = N,
|
|
384
384
|
css: x
|
|
385
|
-
} = o ||
|
|
386
|
-
start:
|
|
387
|
-
b:
|
|
385
|
+
} = o || lr, w = {
|
|
386
|
+
start: Vn() + p,
|
|
387
|
+
b: d
|
|
388
388
|
};
|
|
389
|
-
|
|
390
|
-
e.inert, e.inert = !0)), a || l ? l = w : (x && (
|
|
391
|
-
if (l && b > l.start && (a =
|
|
389
|
+
d || (w.group = L, L.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
390
|
+
e.inert, e.inert = !0)), a || l ? l = w : (x && (f(), u = pt(e, s, d, g, p, H, x)), d && A(0, 1), a = c(w, g), Ee(() => Me(e, d, "start")), Xn((b) => {
|
|
391
|
+
if (l && b > l.start && (a = c(l, g), l = null, Me(e, a.b, "start"), x && (f(), u = pt(
|
|
392
392
|
e,
|
|
393
393
|
s,
|
|
394
394
|
a.b,
|
|
395
395
|
a.duration,
|
|
396
396
|
0,
|
|
397
|
-
|
|
397
|
+
H,
|
|
398
398
|
o.css
|
|
399
399
|
))), a) {
|
|
400
400
|
if (b >= a.end)
|
|
401
|
-
|
|
401
|
+
A(s = a.b, 1 - s), Me(e, a.b, "end"), l || (a.b ? f() : --a.group.r || U(a.group.c)), a = null;
|
|
402
402
|
else if (b >= a.start) {
|
|
403
403
|
const B = b - a.start;
|
|
404
|
-
s = a.a + a.d *
|
|
404
|
+
s = a.a + a.d * H(B / a.duration), A(s, 1 - s);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
return !!(a || l);
|
|
408
408
|
}));
|
|
409
409
|
}
|
|
410
410
|
return {
|
|
411
|
-
run(
|
|
412
|
-
Te(o) ?
|
|
413
|
-
o = o({ direction:
|
|
414
|
-
}) : d
|
|
411
|
+
run(d) {
|
|
412
|
+
Te(o) ? ar().then(() => {
|
|
413
|
+
o = o({ direction: d ? "in" : "out" }), m(d);
|
|
414
|
+
}) : m(d);
|
|
415
415
|
},
|
|
416
416
|
end() {
|
|
417
|
-
|
|
417
|
+
f(), a = l = null;
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Uo(e) {
|
|
422
422
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
const { fragment:
|
|
426
|
-
|
|
427
|
-
const o = e.$$.on_mount.map(
|
|
424
|
+
function hr(e, t, n) {
|
|
425
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
426
|
+
r && r.m(t, n), Ee(() => {
|
|
427
|
+
const o = e.$$.on_mount.map(jt).filter(Te);
|
|
428
428
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
|
|
429
429
|
}), i.forEach(Ee);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
const
|
|
433
|
-
|
|
431
|
+
function fr(e, t) {
|
|
432
|
+
const n = e.$$;
|
|
433
|
+
n.fragment !== null && (sr(n.after_update), U(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
435
|
+
function cr(e, t) {
|
|
436
|
+
e.$$.dirty[0] === -1 && (X.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function dr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
439
439
|
const l = oe;
|
|
440
440
|
ie(e);
|
|
441
441
|
const u = e.$$ = {
|
|
@@ -445,7 +445,7 @@ function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
445
445
|
props: o,
|
|
446
446
|
update: N,
|
|
447
447
|
not_equal: i,
|
|
448
|
-
bound:
|
|
448
|
+
bound: dt(),
|
|
449
449
|
// lifecycle
|
|
450
450
|
on_mount: [],
|
|
451
451
|
on_destroy: [],
|
|
@@ -454,29 +454,29 @@ function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
454
454
|
after_update: [],
|
|
455
455
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
456
456
|
// everything else
|
|
457
|
-
callbacks:
|
|
457
|
+
callbacks: dt(),
|
|
458
458
|
dirty: a,
|
|
459
459
|
skip_bound: !1,
|
|
460
460
|
root: t.target || l.$$.root
|
|
461
461
|
};
|
|
462
462
|
s && s(u.root);
|
|
463
463
|
let h = !1;
|
|
464
|
-
if (u.ctx =
|
|
465
|
-
const
|
|
466
|
-
return u.ctx && i(u.ctx[
|
|
467
|
-
}) : [], u.update(), h = !0, U(u.before_update), u.fragment =
|
|
464
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, c, ...m) => {
|
|
465
|
+
const d = m.length ? m[0] : c;
|
|
466
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && cr(e, f)), c;
|
|
467
|
+
}) : [], u.update(), h = !0, U(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
468
468
|
if (t.hydrate) {
|
|
469
|
-
const
|
|
470
|
-
u.fragment && u.fragment.l(
|
|
469
|
+
const f = Zn(t.target);
|
|
470
|
+
u.fragment && u.fragment.l(f), f.forEach(D);
|
|
471
471
|
} else
|
|
472
472
|
u.fragment && u.fragment.c();
|
|
473
|
-
t.intro &&
|
|
473
|
+
t.intro && Qt(e.$$.fragment), hr(e, t.target, t.anchor), I();
|
|
474
474
|
}
|
|
475
475
|
ie(l);
|
|
476
476
|
}
|
|
477
|
-
let
|
|
478
|
-
typeof HTMLElement == "function" && (
|
|
479
|
-
constructor(t,
|
|
477
|
+
let Jt;
|
|
478
|
+
typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
479
|
+
constructor(t, n, r) {
|
|
480
480
|
super();
|
|
481
481
|
/** The Svelte component constructor */
|
|
482
482
|
O(this, "$$ctor");
|
|
@@ -496,30 +496,30 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
496
496
|
O(this, "$$l", {});
|
|
497
497
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
498
498
|
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
499
|
-
this.$$ctor = t, this.$$s =
|
|
499
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
500
500
|
}
|
|
501
|
-
addEventListener(t,
|
|
502
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
503
|
-
const i = this.$$c.$on(t,
|
|
504
|
-
this.$$l_u.set(
|
|
501
|
+
addEventListener(t, n, r) {
|
|
502
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
503
|
+
const i = this.$$c.$on(t, n);
|
|
504
|
+
this.$$l_u.set(n, i);
|
|
505
505
|
}
|
|
506
|
-
super.addEventListener(t,
|
|
506
|
+
super.addEventListener(t, n, r);
|
|
507
507
|
}
|
|
508
|
-
removeEventListener(t,
|
|
509
|
-
if (super.removeEventListener(t,
|
|
510
|
-
const i = this.$$l_u.get(
|
|
511
|
-
i && (i(), this.$$l_u.delete(
|
|
508
|
+
removeEventListener(t, n, r) {
|
|
509
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
510
|
+
const i = this.$$l_u.get(n);
|
|
511
|
+
i && (i(), this.$$l_u.delete(n));
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
connectedCallback() {
|
|
515
|
-
return
|
|
515
|
+
return ct(this, null, function* () {
|
|
516
516
|
if (this.$$cn = !0, !this.$$c) {
|
|
517
517
|
let t = function(o) {
|
|
518
518
|
return () => {
|
|
519
519
|
let s;
|
|
520
520
|
return {
|
|
521
521
|
c: function() {
|
|
522
|
-
s = M("slot"), o !== "default" &&
|
|
522
|
+
s = M("slot"), o !== "default" && T(s, "name", o);
|
|
523
523
|
},
|
|
524
524
|
/**
|
|
525
525
|
* @param {HTMLElement} target
|
|
@@ -536,9 +536,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
536
536
|
};
|
|
537
537
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
538
538
|
return;
|
|
539
|
-
const
|
|
539
|
+
const n = {}, r = Jn(this);
|
|
540
540
|
for (const o of this.$$s)
|
|
541
|
-
o in
|
|
541
|
+
o in r && (n[o] = [t(o)]);
|
|
542
542
|
for (const o of this.attributes) {
|
|
543
543
|
const s = this.$$g_p(o.name);
|
|
544
544
|
s in this.$$d || (this.$$d[s] = be(s, o.value, this.$$p_d, "toProp"));
|
|
@@ -547,8 +547,8 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
547
547
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
548
548
|
this.$$c = new this.$$ctor({
|
|
549
549
|
target: this.shadowRoot || this,
|
|
550
|
-
props:
|
|
551
|
-
$$slots:
|
|
550
|
+
props: ft(ht({}, this.$$d), {
|
|
551
|
+
$$slots: n,
|
|
552
552
|
$$scope: {
|
|
553
553
|
ctx: []
|
|
554
554
|
}
|
|
@@ -580,9 +580,9 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
580
580
|
}
|
|
581
581
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
582
582
|
// and setting attributes through setAttribute etc, this is helpful
|
|
583
|
-
attributeChangedCallback(t,
|
|
583
|
+
attributeChangedCallback(t, n, r) {
|
|
584
584
|
var i;
|
|
585
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t,
|
|
585
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
586
586
|
}
|
|
587
587
|
disconnectedCallback() {
|
|
588
588
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -591,16 +591,16 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
|
591
591
|
}
|
|
592
592
|
$$g_p(t) {
|
|
593
593
|
return Object.keys(this.$$p_d).find(
|
|
594
|
-
(
|
|
594
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
595
595
|
) || t;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
|
-
function be(e, t,
|
|
598
|
+
function be(e, t, n, r) {
|
|
599
599
|
var o;
|
|
600
|
-
const i = (o =
|
|
601
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
600
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
601
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
602
602
|
return t;
|
|
603
|
-
if (
|
|
603
|
+
if (r === "toAttribute")
|
|
604
604
|
switch (i) {
|
|
605
605
|
case "Object":
|
|
606
606
|
case "Array":
|
|
@@ -625,10 +625,10 @@ function be(e, t, r, n) {
|
|
|
625
625
|
return t;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
let s = class extends
|
|
628
|
+
function mr(e, t, n, r, i, o) {
|
|
629
|
+
let s = class extends Jt {
|
|
630
630
|
constructor() {
|
|
631
|
-
super(e,
|
|
631
|
+
super(e, n, i), this.$$p_d = t;
|
|
632
632
|
}
|
|
633
633
|
static get observedAttributes() {
|
|
634
634
|
return Object.keys(t).map(
|
|
@@ -646,7 +646,7 @@ function gn(e, t, r, n, i, o) {
|
|
|
646
646
|
l = be(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
|
-
}),
|
|
649
|
+
}), r.forEach((a) => {
|
|
650
650
|
Object.defineProperty(s.prototype, a, {
|
|
651
651
|
get() {
|
|
652
652
|
var l;
|
|
@@ -656,7 +656,7 @@ function gn(e, t, r, n, i, o) {
|
|
|
656
656
|
}), e.element = /** @type {any} */
|
|
657
657
|
s, s;
|
|
658
658
|
}
|
|
659
|
-
class
|
|
659
|
+
class pr {
|
|
660
660
|
constructor() {
|
|
661
661
|
/**
|
|
662
662
|
* ### PRIVATE API
|
|
@@ -677,7 +677,7 @@ class yn {
|
|
|
677
677
|
}
|
|
678
678
|
/** @returns {void} */
|
|
679
679
|
$destroy() {
|
|
680
|
-
|
|
680
|
+
fr(this, 1), this.$destroy = N;
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
683
683
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -685,13 +685,13 @@ class yn {
|
|
|
685
685
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
686
686
|
* @returns {() => void}
|
|
687
687
|
*/
|
|
688
|
-
$on(t,
|
|
689
|
-
if (!Te(
|
|
688
|
+
$on(t, n) {
|
|
689
|
+
if (!Te(n))
|
|
690
690
|
return N;
|
|
691
|
-
const
|
|
692
|
-
return
|
|
693
|
-
const i =
|
|
694
|
-
i !== -1 &&
|
|
691
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
692
|
+
return r.push(n), () => {
|
|
693
|
+
const i = r.indexOf(n);
|
|
694
|
+
i !== -1 && r.splice(i, 1);
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
@@ -699,11 +699,11 @@ class yn {
|
|
|
699
699
|
* @returns {void}
|
|
700
700
|
*/
|
|
701
701
|
$set(t) {
|
|
702
|
-
this.$$set && !
|
|
702
|
+
this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
705
|
+
const br = "4";
|
|
706
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
|
|
707
707
|
/*! *****************************************************************************
|
|
708
708
|
Copyright (c) Microsoft Corporation.
|
|
709
709
|
|
|
@@ -718,67 +718,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
718
718
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
719
719
|
PERFORMANCE OF THIS SOFTWARE.
|
|
720
720
|
***************************************************************************** */
|
|
721
|
-
var
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
} || function(
|
|
725
|
-
for (var i in
|
|
726
|
-
Object.prototype.hasOwnProperty.call(
|
|
727
|
-
},
|
|
721
|
+
var ke = function(e, t) {
|
|
722
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
723
|
+
n.__proto__ = r;
|
|
724
|
+
} || function(n, r) {
|
|
725
|
+
for (var i in r)
|
|
726
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
727
|
+
}, ke(e, t);
|
|
728
728
|
};
|
|
729
729
|
function $(e, t) {
|
|
730
730
|
if (typeof t != "function" && t !== null)
|
|
731
731
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
732
|
-
|
|
733
|
-
function
|
|
732
|
+
ke(e, t);
|
|
733
|
+
function n() {
|
|
734
734
|
this.constructor = e;
|
|
735
735
|
}
|
|
736
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
736
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
737
737
|
}
|
|
738
738
|
var E = function() {
|
|
739
739
|
return E = Object.assign || function(t) {
|
|
740
|
-
for (var
|
|
741
|
-
|
|
742
|
-
for (var o in
|
|
743
|
-
Object.prototype.hasOwnProperty.call(
|
|
740
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
741
|
+
n = arguments[r];
|
|
742
|
+
for (var o in n)
|
|
743
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
744
744
|
}
|
|
745
745
|
return t;
|
|
746
746
|
}, E.apply(this, arguments);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
749
|
-
var
|
|
750
|
-
for (var
|
|
751
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
748
|
+
function gr(e, t) {
|
|
749
|
+
var n = {};
|
|
750
|
+
for (var r in e)
|
|
751
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
752
752
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
753
|
-
for (var i = 0,
|
|
754
|
-
t.indexOf(
|
|
755
|
-
return
|
|
753
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
754
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
755
|
+
return n;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
759
|
-
if (
|
|
760
|
-
return
|
|
757
|
+
function Ve(e) {
|
|
758
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
759
|
+
if (n)
|
|
760
|
+
return n.call(e);
|
|
761
761
|
if (e && typeof e.length == "number")
|
|
762
762
|
return {
|
|
763
763
|
next: function() {
|
|
764
|
-
return e &&
|
|
764
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
var
|
|
771
|
-
if (!
|
|
769
|
+
function Xe(e, t) {
|
|
770
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
771
|
+
if (!n)
|
|
772
772
|
return e;
|
|
773
|
-
var
|
|
773
|
+
var r = n.call(e), i, o = [], s;
|
|
774
774
|
try {
|
|
775
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
775
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
776
776
|
o.push(i.value);
|
|
777
777
|
} catch (a) {
|
|
778
778
|
s = { error: a };
|
|
779
779
|
} finally {
|
|
780
780
|
try {
|
|
781
|
-
i && !i.done && (
|
|
781
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
782
782
|
} finally {
|
|
783
783
|
if (s)
|
|
784
784
|
throw s.error;
|
|
@@ -786,34 +786,34 @@ function ze(e, t) {
|
|
|
786
786
|
}
|
|
787
787
|
return o;
|
|
788
788
|
}
|
|
789
|
-
function Z(e, t,
|
|
790
|
-
if (
|
|
791
|
-
for (var
|
|
792
|
-
(o || !(
|
|
789
|
+
function Z(e, t, n) {
|
|
790
|
+
if (n || arguments.length === 2)
|
|
791
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
792
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
793
793
|
return e.concat(o || t);
|
|
794
794
|
}
|
|
795
795
|
function R(e) {
|
|
796
796
|
return typeof e == "function";
|
|
797
797
|
}
|
|
798
|
-
function
|
|
799
|
-
var t = function(
|
|
800
|
-
Error.call(
|
|
801
|
-
},
|
|
802
|
-
return
|
|
803
|
-
}
|
|
804
|
-
var Ne =
|
|
805
|
-
return function(
|
|
806
|
-
e(this), this.message =
|
|
807
|
-
` +
|
|
808
|
-
return i + 1 + ") " +
|
|
798
|
+
function qt(e) {
|
|
799
|
+
var t = function(r) {
|
|
800
|
+
Error.call(r), r.stack = new Error().stack;
|
|
801
|
+
}, n = e(t);
|
|
802
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
803
|
+
}
|
|
804
|
+
var Ne = qt(function(e) {
|
|
805
|
+
return function(n) {
|
|
806
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
807
|
+
` + n.map(function(r, i) {
|
|
808
|
+
return i + 1 + ") " + r.toString();
|
|
809
809
|
}).join(`
|
|
810
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
810
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
811
811
|
};
|
|
812
812
|
});
|
|
813
|
-
function
|
|
813
|
+
function ze(e, t) {
|
|
814
814
|
if (e) {
|
|
815
|
-
var
|
|
816
|
-
0 <=
|
|
815
|
+
var n = e.indexOf(t);
|
|
816
|
+
0 <= n && e.splice(n, 1);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
var He = function() {
|
|
@@ -821,14 +821,14 @@ var He = function() {
|
|
|
821
821
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
822
822
|
}
|
|
823
823
|
return e.prototype.unsubscribe = function() {
|
|
824
|
-
var t,
|
|
824
|
+
var t, n, r, i, o;
|
|
825
825
|
if (!this.closed) {
|
|
826
826
|
this.closed = !0;
|
|
827
827
|
var s = this._parentage;
|
|
828
828
|
if (s)
|
|
829
829
|
if (this._parentage = null, Array.isArray(s))
|
|
830
830
|
try {
|
|
831
|
-
for (var a =
|
|
831
|
+
for (var a = Ve(s), l = a.next(); !l.done; l = a.next()) {
|
|
832
832
|
var u = l.value;
|
|
833
833
|
u.remove(this);
|
|
834
834
|
}
|
|
@@ -836,7 +836,7 @@ var He = function() {
|
|
|
836
836
|
t = { error: p };
|
|
837
837
|
} finally {
|
|
838
838
|
try {
|
|
839
|
-
l && !l.done && (
|
|
839
|
+
l && !l.done && (n = a.return) && n.call(a);
|
|
840
840
|
} finally {
|
|
841
841
|
if (t)
|
|
842
842
|
throw t.error;
|
|
@@ -851,26 +851,26 @@ var He = function() {
|
|
|
851
851
|
} catch (p) {
|
|
852
852
|
o = p instanceof Ne ? p.errors : [p];
|
|
853
853
|
}
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
854
|
+
var f = this._finalizers;
|
|
855
|
+
if (f) {
|
|
856
856
|
this._finalizers = null;
|
|
857
857
|
try {
|
|
858
|
-
for (var
|
|
859
|
-
var
|
|
858
|
+
for (var c = Ve(f), m = c.next(); !m.done; m = c.next()) {
|
|
859
|
+
var d = m.value;
|
|
860
860
|
try {
|
|
861
|
-
|
|
861
|
+
gt(d);
|
|
862
862
|
} catch (p) {
|
|
863
|
-
o = o != null ? o : [], p instanceof Ne ? o = Z(Z([],
|
|
863
|
+
o = o != null ? o : [], p instanceof Ne ? o = Z(Z([], Xe(o)), Xe(p.errors)) : o.push(p);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
} catch (p) {
|
|
867
|
-
|
|
867
|
+
r = { error: p };
|
|
868
868
|
} finally {
|
|
869
869
|
try {
|
|
870
|
-
|
|
870
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
871
871
|
} finally {
|
|
872
|
-
if (
|
|
873
|
-
throw
|
|
872
|
+
if (r)
|
|
873
|
+
throw r.error;
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
}
|
|
@@ -878,89 +878,89 @@ var He = function() {
|
|
|
878
878
|
throw new Ne(o);
|
|
879
879
|
}
|
|
880
880
|
}, e.prototype.add = function(t) {
|
|
881
|
-
var
|
|
881
|
+
var n;
|
|
882
882
|
if (t && t !== this)
|
|
883
883
|
if (this.closed)
|
|
884
|
-
|
|
884
|
+
gt(t);
|
|
885
885
|
else {
|
|
886
886
|
if (t instanceof e) {
|
|
887
887
|
if (t.closed || t._hasParent(this))
|
|
888
888
|
return;
|
|
889
889
|
t._addParent(this);
|
|
890
890
|
}
|
|
891
|
-
(this._finalizers = (
|
|
891
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
892
892
|
}
|
|
893
893
|
}, e.prototype._hasParent = function(t) {
|
|
894
|
-
var
|
|
895
|
-
return
|
|
894
|
+
var n = this._parentage;
|
|
895
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
896
896
|
}, e.prototype._addParent = function(t) {
|
|
897
|
-
var
|
|
898
|
-
this._parentage = Array.isArray(
|
|
897
|
+
var n = this._parentage;
|
|
898
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
899
899
|
}, e.prototype._removeParent = function(t) {
|
|
900
|
-
var
|
|
901
|
-
|
|
900
|
+
var n = this._parentage;
|
|
901
|
+
n === t ? this._parentage = null : Array.isArray(n) && ze(n, t);
|
|
902
902
|
}, e.prototype.remove = function(t) {
|
|
903
|
-
var
|
|
904
|
-
|
|
903
|
+
var n = this._finalizers;
|
|
904
|
+
n && ze(n, t), t instanceof e && t._removeParent(this);
|
|
905
905
|
}, e.EMPTY = function() {
|
|
906
906
|
var t = new e();
|
|
907
907
|
return t.closed = !0, t;
|
|
908
908
|
}(), e;
|
|
909
|
-
}(),
|
|
910
|
-
function
|
|
909
|
+
}(), Yt = He.EMPTY;
|
|
910
|
+
function Kt(e) {
|
|
911
911
|
return e instanceof He || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function gt(e) {
|
|
914
914
|
R(e) ? e() : e.unsubscribe();
|
|
915
915
|
}
|
|
916
|
-
var
|
|
916
|
+
var yr = {
|
|
917
917
|
onUnhandledError: null,
|
|
918
918
|
onStoppedNotification: null,
|
|
919
919
|
Promise: void 0,
|
|
920
920
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
921
921
|
useDeprecatedNextContext: !1
|
|
922
|
-
},
|
|
922
|
+
}, vr = {
|
|
923
923
|
setTimeout: function(e, t) {
|
|
924
|
-
for (var
|
|
925
|
-
r
|
|
926
|
-
return setTimeout.apply(void 0, Z([e, t],
|
|
924
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
925
|
+
n[r - 2] = arguments[r];
|
|
926
|
+
return setTimeout.apply(void 0, Z([e, t], Xe(n)));
|
|
927
927
|
},
|
|
928
928
|
clearTimeout: function(e) {
|
|
929
929
|
return clearTimeout(e);
|
|
930
930
|
},
|
|
931
931
|
delegate: void 0
|
|
932
932
|
};
|
|
933
|
-
function
|
|
934
|
-
|
|
933
|
+
function _r(e) {
|
|
934
|
+
vr.setTimeout(function() {
|
|
935
935
|
throw e;
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function yt() {
|
|
939
939
|
}
|
|
940
940
|
function ge(e) {
|
|
941
941
|
e();
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var en = function(e) {
|
|
944
944
|
$(t, e);
|
|
945
|
-
function t(
|
|
946
|
-
var
|
|
947
|
-
return
|
|
945
|
+
function t(n) {
|
|
946
|
+
var r = e.call(this) || this;
|
|
947
|
+
return r.isStopped = !1, n ? (r.destination = n, Kt(n) && n.add(r)) : r.destination = wr, r;
|
|
948
948
|
}
|
|
949
|
-
return t.create = function(
|
|
950
|
-
return new
|
|
951
|
-
}, t.prototype.next = function(
|
|
952
|
-
this.isStopped || this._next(
|
|
953
|
-
}, t.prototype.error = function(
|
|
954
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
949
|
+
return t.create = function(n, r, i) {
|
|
950
|
+
return new We(n, r, i);
|
|
951
|
+
}, t.prototype.next = function(n) {
|
|
952
|
+
this.isStopped || this._next(n);
|
|
953
|
+
}, t.prototype.error = function(n) {
|
|
954
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
955
955
|
}, t.prototype.complete = function() {
|
|
956
956
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
957
957
|
}, t.prototype.unsubscribe = function() {
|
|
958
958
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
959
|
-
}, t.prototype._next = function(
|
|
960
|
-
this.destination.next(
|
|
961
|
-
}, t.prototype._error = function(
|
|
959
|
+
}, t.prototype._next = function(n) {
|
|
960
|
+
this.destination.next(n);
|
|
961
|
+
}, t.prototype._error = function(n) {
|
|
962
962
|
try {
|
|
963
|
-
this.destination.error(
|
|
963
|
+
this.destination.error(n);
|
|
964
964
|
} finally {
|
|
965
965
|
this.unsubscribe();
|
|
966
966
|
}
|
|
@@ -971,98 +971,82 @@ var nr = function(e) {
|
|
|
971
971
|
this.unsubscribe();
|
|
972
972
|
}
|
|
973
973
|
}, t;
|
|
974
|
-
}(He),
|
|
975
|
-
function Le(e, t) {
|
|
976
|
-
return wn.call(e, t);
|
|
977
|
-
}
|
|
978
|
-
var Sn = function() {
|
|
974
|
+
}(He), xr = function() {
|
|
979
975
|
function e(t) {
|
|
980
976
|
this.partialObserver = t;
|
|
981
977
|
}
|
|
982
978
|
return e.prototype.next = function(t) {
|
|
983
|
-
var
|
|
984
|
-
if (
|
|
979
|
+
var n = this.partialObserver;
|
|
980
|
+
if (n.next)
|
|
985
981
|
try {
|
|
986
|
-
|
|
987
|
-
} catch (
|
|
988
|
-
|
|
982
|
+
n.next(t);
|
|
983
|
+
} catch (r) {
|
|
984
|
+
de(r);
|
|
989
985
|
}
|
|
990
986
|
}, e.prototype.error = function(t) {
|
|
991
|
-
var
|
|
992
|
-
if (
|
|
987
|
+
var n = this.partialObserver;
|
|
988
|
+
if (n.error)
|
|
993
989
|
try {
|
|
994
|
-
|
|
995
|
-
} catch (
|
|
996
|
-
|
|
990
|
+
n.error(t);
|
|
991
|
+
} catch (r) {
|
|
992
|
+
de(r);
|
|
997
993
|
}
|
|
998
994
|
else
|
|
999
|
-
|
|
995
|
+
de(t);
|
|
1000
996
|
}, e.prototype.complete = function() {
|
|
1001
997
|
var t = this.partialObserver;
|
|
1002
998
|
if (t.complete)
|
|
1003
999
|
try {
|
|
1004
1000
|
t.complete();
|
|
1005
|
-
} catch (
|
|
1006
|
-
|
|
1001
|
+
} catch (n) {
|
|
1002
|
+
de(n);
|
|
1007
1003
|
}
|
|
1008
1004
|
}, e;
|
|
1009
|
-
}(),
|
|
1005
|
+
}(), We = function(e) {
|
|
1010
1006
|
$(t, e);
|
|
1011
|
-
function t(
|
|
1007
|
+
function t(n, r, i) {
|
|
1012
1008
|
var o = e.call(this) || this, s;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
};
|
|
1019
|
-
else {
|
|
1020
|
-
var a;
|
|
1021
|
-
o && rr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
1022
|
-
return o.unsubscribe();
|
|
1023
|
-
}, s = {
|
|
1024
|
-
next: r.next && Le(r.next, a),
|
|
1025
|
-
error: r.error && Le(r.error, a),
|
|
1026
|
-
complete: r.complete && Le(r.complete, a)
|
|
1027
|
-
}) : s = r;
|
|
1028
|
-
}
|
|
1029
|
-
return o.destination = new Sn(s), o;
|
|
1009
|
+
return R(n) || !n ? s = {
|
|
1010
|
+
next: n != null ? n : void 0,
|
|
1011
|
+
error: r != null ? r : void 0,
|
|
1012
|
+
complete: i != null ? i : void 0
|
|
1013
|
+
} : s = n, o.destination = new xr(s), o;
|
|
1030
1014
|
}
|
|
1031
1015
|
return t;
|
|
1032
|
-
}(
|
|
1033
|
-
function
|
|
1034
|
-
|
|
1016
|
+
}(en);
|
|
1017
|
+
function de(e) {
|
|
1018
|
+
_r(e);
|
|
1035
1019
|
}
|
|
1036
|
-
function
|
|
1020
|
+
function Er(e) {
|
|
1037
1021
|
throw e;
|
|
1038
1022
|
}
|
|
1039
|
-
var
|
|
1023
|
+
var wr = {
|
|
1040
1024
|
closed: !0,
|
|
1041
|
-
next:
|
|
1042
|
-
error:
|
|
1043
|
-
complete:
|
|
1044
|
-
},
|
|
1025
|
+
next: yt,
|
|
1026
|
+
error: Er,
|
|
1027
|
+
complete: yt
|
|
1028
|
+
}, Sr = function() {
|
|
1045
1029
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1046
1030
|
}();
|
|
1047
|
-
function
|
|
1031
|
+
function Tr(e) {
|
|
1048
1032
|
return e;
|
|
1049
1033
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return e.length === 0 ?
|
|
1052
|
-
return e.reduce(function(
|
|
1053
|
-
return i(
|
|
1054
|
-
},
|
|
1034
|
+
function Hr(e) {
|
|
1035
|
+
return e.length === 0 ? Tr : e.length === 1 ? e[0] : function(n) {
|
|
1036
|
+
return e.reduce(function(r, i) {
|
|
1037
|
+
return i(r);
|
|
1038
|
+
}, n);
|
|
1055
1039
|
};
|
|
1056
1040
|
}
|
|
1057
|
-
var
|
|
1041
|
+
var vt = function() {
|
|
1058
1042
|
function e(t) {
|
|
1059
1043
|
t && (this._subscribe = t);
|
|
1060
1044
|
}
|
|
1061
1045
|
return e.prototype.lift = function(t) {
|
|
1062
|
-
var
|
|
1063
|
-
return
|
|
1064
|
-
}, e.prototype.subscribe = function(t,
|
|
1065
|
-
var i = this, o =
|
|
1046
|
+
var n = new e();
|
|
1047
|
+
return n.source = this, n.operator = t, n;
|
|
1048
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
1049
|
+
var i = this, o = Br(t) ? t : new We(t, n, r);
|
|
1066
1050
|
return ge(function() {
|
|
1067
1051
|
var s = i, a = s.operator, l = s.source;
|
|
1068
1052
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -1070,13 +1054,13 @@ var xt = function() {
|
|
|
1070
1054
|
}, e.prototype._trySubscribe = function(t) {
|
|
1071
1055
|
try {
|
|
1072
1056
|
return this._subscribe(t);
|
|
1073
|
-
} catch (
|
|
1074
|
-
t.error(
|
|
1057
|
+
} catch (n) {
|
|
1058
|
+
t.error(n);
|
|
1075
1059
|
}
|
|
1076
|
-
}, e.prototype.forEach = function(t,
|
|
1077
|
-
var
|
|
1078
|
-
return
|
|
1079
|
-
var s = new
|
|
1060
|
+
}, e.prototype.forEach = function(t, n) {
|
|
1061
|
+
var r = this;
|
|
1062
|
+
return n = _t(n), new n(function(i, o) {
|
|
1063
|
+
var s = new We({
|
|
1080
1064
|
next: function(a) {
|
|
1081
1065
|
try {
|
|
1082
1066
|
t(a);
|
|
@@ -1087,69 +1071,69 @@ var xt = function() {
|
|
|
1087
1071
|
error: o,
|
|
1088
1072
|
complete: i
|
|
1089
1073
|
});
|
|
1090
|
-
|
|
1074
|
+
r.subscribe(s);
|
|
1091
1075
|
});
|
|
1092
1076
|
}, e.prototype._subscribe = function(t) {
|
|
1093
|
-
var
|
|
1094
|
-
return (
|
|
1095
|
-
}, e.prototype[
|
|
1077
|
+
var n;
|
|
1078
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
1079
|
+
}, e.prototype[Sr] = function() {
|
|
1096
1080
|
return this;
|
|
1097
1081
|
}, e.prototype.pipe = function() {
|
|
1098
|
-
for (var t = [],
|
|
1099
|
-
t[
|
|
1100
|
-
return
|
|
1082
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1083
|
+
t[n] = arguments[n];
|
|
1084
|
+
return Hr(t)(this);
|
|
1101
1085
|
}, e.prototype.toPromise = function(t) {
|
|
1102
|
-
var
|
|
1103
|
-
return t =
|
|
1086
|
+
var n = this;
|
|
1087
|
+
return t = _t(t), new t(function(r, i) {
|
|
1104
1088
|
var o;
|
|
1105
|
-
|
|
1089
|
+
n.subscribe(function(s) {
|
|
1106
1090
|
return o = s;
|
|
1107
1091
|
}, function(s) {
|
|
1108
1092
|
return i(s);
|
|
1109
1093
|
}, function() {
|
|
1110
|
-
return
|
|
1094
|
+
return r(o);
|
|
1111
1095
|
});
|
|
1112
1096
|
});
|
|
1113
1097
|
}, e.create = function(t) {
|
|
1114
1098
|
return new e(t);
|
|
1115
1099
|
}, e;
|
|
1116
1100
|
}();
|
|
1117
|
-
function
|
|
1101
|
+
function _t(e) {
|
|
1118
1102
|
var t;
|
|
1119
|
-
return (t = e != null ? e :
|
|
1103
|
+
return (t = e != null ? e : yr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1120
1104
|
}
|
|
1121
|
-
function
|
|
1105
|
+
function Ar(e) {
|
|
1122
1106
|
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
1123
1107
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return e && e instanceof
|
|
1108
|
+
function Br(e) {
|
|
1109
|
+
return e && e instanceof en || Ar(e) && Kt(e);
|
|
1126
1110
|
}
|
|
1127
|
-
var
|
|
1111
|
+
var Cr = qt(function(e) {
|
|
1128
1112
|
return function() {
|
|
1129
1113
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1130
1114
|
};
|
|
1131
|
-
}),
|
|
1115
|
+
}), tn = function(e) {
|
|
1132
1116
|
$(t, e);
|
|
1133
1117
|
function t() {
|
|
1134
|
-
var
|
|
1135
|
-
return
|
|
1118
|
+
var n = e.call(this) || this;
|
|
1119
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
1136
1120
|
}
|
|
1137
|
-
return t.prototype.lift = function(
|
|
1138
|
-
var
|
|
1139
|
-
return
|
|
1121
|
+
return t.prototype.lift = function(n) {
|
|
1122
|
+
var r = new xt(this, this);
|
|
1123
|
+
return r.operator = n, r;
|
|
1140
1124
|
}, t.prototype._throwIfClosed = function() {
|
|
1141
1125
|
if (this.closed)
|
|
1142
|
-
throw new
|
|
1143
|
-
}, t.prototype.next = function(
|
|
1144
|
-
var
|
|
1126
|
+
throw new Cr();
|
|
1127
|
+
}, t.prototype.next = function(n) {
|
|
1128
|
+
var r = this;
|
|
1145
1129
|
ge(function() {
|
|
1146
1130
|
var i, o;
|
|
1147
|
-
if (
|
|
1148
|
-
|
|
1131
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1132
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
1149
1133
|
try {
|
|
1150
|
-
for (var s =
|
|
1134
|
+
for (var s = Ve(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1151
1135
|
var l = a.value;
|
|
1152
|
-
l.next(
|
|
1136
|
+
l.next(n);
|
|
1153
1137
|
}
|
|
1154
1138
|
} catch (u) {
|
|
1155
1139
|
i = { error: u };
|
|
@@ -1163,118 +1147,118 @@ var In = Kt(function(e) {
|
|
|
1163
1147
|
}
|
|
1164
1148
|
}
|
|
1165
1149
|
});
|
|
1166
|
-
}, t.prototype.error = function(
|
|
1167
|
-
var
|
|
1150
|
+
}, t.prototype.error = function(n) {
|
|
1151
|
+
var r = this;
|
|
1168
1152
|
ge(function() {
|
|
1169
|
-
if (
|
|
1170
|
-
|
|
1171
|
-
for (var i =
|
|
1172
|
-
i.shift().error(
|
|
1153
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1154
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1155
|
+
for (var i = r.observers; i.length; )
|
|
1156
|
+
i.shift().error(n);
|
|
1173
1157
|
}
|
|
1174
1158
|
});
|
|
1175
1159
|
}, t.prototype.complete = function() {
|
|
1176
|
-
var
|
|
1160
|
+
var n = this;
|
|
1177
1161
|
ge(function() {
|
|
1178
|
-
if (
|
|
1179
|
-
|
|
1180
|
-
for (var
|
|
1181
|
-
|
|
1162
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1163
|
+
n.isStopped = !0;
|
|
1164
|
+
for (var r = n.observers; r.length; )
|
|
1165
|
+
r.shift().complete();
|
|
1182
1166
|
}
|
|
1183
1167
|
});
|
|
1184
1168
|
}, t.prototype.unsubscribe = function() {
|
|
1185
1169
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1186
1170
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1187
1171
|
get: function() {
|
|
1188
|
-
var
|
|
1189
|
-
return ((
|
|
1172
|
+
var n;
|
|
1173
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1190
1174
|
},
|
|
1191
1175
|
enumerable: !1,
|
|
1192
1176
|
configurable: !0
|
|
1193
|
-
}), t.prototype._trySubscribe = function(
|
|
1194
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1195
|
-
}, t.prototype._subscribe = function(
|
|
1196
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1197
|
-
}, t.prototype._innerSubscribe = function(
|
|
1198
|
-
var
|
|
1199
|
-
return o || s ?
|
|
1200
|
-
|
|
1177
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1178
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1179
|
+
}, t.prototype._subscribe = function(n) {
|
|
1180
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1181
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1182
|
+
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1183
|
+
return o || s ? Yt : (this.currentObservers = null, a.push(n), new He(function() {
|
|
1184
|
+
r.currentObservers = null, ze(a, n);
|
|
1201
1185
|
}));
|
|
1202
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1203
|
-
var
|
|
1204
|
-
i ?
|
|
1186
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1187
|
+
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
1188
|
+
i ? n.error(o) : s && n.complete();
|
|
1205
1189
|
}, t.prototype.asObservable = function() {
|
|
1206
|
-
var
|
|
1207
|
-
return
|
|
1208
|
-
}, t.create = function(
|
|
1209
|
-
return new
|
|
1190
|
+
var n = new vt();
|
|
1191
|
+
return n.source = this, n;
|
|
1192
|
+
}, t.create = function(n, r) {
|
|
1193
|
+
return new xt(n, r);
|
|
1210
1194
|
}, t;
|
|
1211
|
-
}(
|
|
1195
|
+
}(vt), xt = function(e) {
|
|
1212
1196
|
$(t, e);
|
|
1213
|
-
function t(
|
|
1197
|
+
function t(n, r) {
|
|
1214
1198
|
var i = e.call(this) || this;
|
|
1215
|
-
return i.destination =
|
|
1199
|
+
return i.destination = n, i.source = r, i;
|
|
1216
1200
|
}
|
|
1217
|
-
return t.prototype.next = function(
|
|
1218
|
-
var
|
|
1219
|
-
(i = (
|
|
1220
|
-
}, t.prototype.error = function(
|
|
1221
|
-
var
|
|
1222
|
-
(i = (
|
|
1201
|
+
return t.prototype.next = function(n) {
|
|
1202
|
+
var r, i;
|
|
1203
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1204
|
+
}, t.prototype.error = function(n) {
|
|
1205
|
+
var r, i;
|
|
1206
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1223
1207
|
}, t.prototype.complete = function() {
|
|
1224
|
-
var
|
|
1225
|
-
(
|
|
1226
|
-
}, t.prototype._subscribe = function(
|
|
1227
|
-
var
|
|
1228
|
-
return (i = (
|
|
1208
|
+
var n, r;
|
|
1209
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1210
|
+
}, t.prototype._subscribe = function(n) {
|
|
1211
|
+
var r, i;
|
|
1212
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Yt;
|
|
1229
1213
|
}, t;
|
|
1230
|
-
}(
|
|
1214
|
+
}(tn), nn = {
|
|
1231
1215
|
now: function() {
|
|
1232
|
-
return (
|
|
1216
|
+
return (nn.delegate || Date).now();
|
|
1233
1217
|
},
|
|
1234
1218
|
delegate: void 0
|
|
1235
|
-
},
|
|
1219
|
+
}, Pr = function(e) {
|
|
1236
1220
|
$(t, e);
|
|
1237
|
-
function t(
|
|
1238
|
-
|
|
1221
|
+
function t(n, r, i) {
|
|
1222
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = nn);
|
|
1239
1223
|
var o = e.call(this) || this;
|
|
1240
|
-
return o._bufferSize =
|
|
1224
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
1241
1225
|
}
|
|
1242
|
-
return t.prototype.next = function(
|
|
1243
|
-
var
|
|
1244
|
-
i || (o.push(
|
|
1245
|
-
}, t.prototype._subscribe = function(
|
|
1226
|
+
return t.prototype.next = function(n) {
|
|
1227
|
+
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
|
|
1228
|
+
i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1229
|
+
}, t.prototype._subscribe = function(n) {
|
|
1246
1230
|
this._throwIfClosed(), this._trimBuffer();
|
|
1247
|
-
for (var
|
|
1248
|
-
|
|
1249
|
-
return this._checkFinalizedStatuses(
|
|
1231
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
|
|
1232
|
+
n.next(a[l]);
|
|
1233
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1250
1234
|
}, t.prototype._trimBuffer = function() {
|
|
1251
|
-
var
|
|
1252
|
-
if (
|
|
1235
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
1236
|
+
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1253
1237
|
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1254
1238
|
u = h;
|
|
1255
1239
|
u && o.splice(0, u + 1);
|
|
1256
1240
|
}
|
|
1257
1241
|
}, t;
|
|
1258
|
-
}(
|
|
1259
|
-
const
|
|
1260
|
-
if (
|
|
1261
|
-
const
|
|
1262
|
-
|
|
1242
|
+
}(tn);
|
|
1243
|
+
const Et = [], wt = {}, Or = (e, t = 0) => {
|
|
1244
|
+
if (Et.indexOf(e) == -1) {
|
|
1245
|
+
const n = new Pr(t);
|
|
1246
|
+
wt[e] = n, Et.push(e);
|
|
1263
1247
|
}
|
|
1264
|
-
return
|
|
1248
|
+
return wt[e];
|
|
1265
1249
|
}, V = [];
|
|
1266
|
-
function
|
|
1250
|
+
function Ir(e, t) {
|
|
1267
1251
|
return {
|
|
1268
1252
|
subscribe: Ae(e, t).subscribe
|
|
1269
1253
|
};
|
|
1270
1254
|
}
|
|
1271
1255
|
function Ae(e, t = N) {
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1256
|
+
let n;
|
|
1257
|
+
const r = /* @__PURE__ */ new Set();
|
|
1274
1258
|
function i(a) {
|
|
1275
|
-
if (
|
|
1259
|
+
if (kt(e, a) && (e = a, n)) {
|
|
1276
1260
|
const l = !V.length;
|
|
1277
|
-
for (const u of
|
|
1261
|
+
for (const u of r)
|
|
1278
1262
|
u[1](), V.push(u, e);
|
|
1279
1263
|
if (l) {
|
|
1280
1264
|
for (let u = 0; u < V.length; u += 2)
|
|
@@ -1288,168 +1272,170 @@ function Ae(e, t = N) {
|
|
|
1288
1272
|
}
|
|
1289
1273
|
function s(a, l = N) {
|
|
1290
1274
|
const u = [a, l];
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1275
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || N), a(e), () => {
|
|
1276
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
1293
1277
|
};
|
|
1294
1278
|
}
|
|
1295
1279
|
return { set: i, update: o, subscribe: s };
|
|
1296
1280
|
}
|
|
1297
|
-
function K(e, t,
|
|
1298
|
-
const
|
|
1281
|
+
function K(e, t, n) {
|
|
1282
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1299
1283
|
if (!i.every(Boolean))
|
|
1300
1284
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1301
1285
|
const o = t.length < 2;
|
|
1302
|
-
return
|
|
1286
|
+
return Ir(n, (s, a) => {
|
|
1303
1287
|
let l = !1;
|
|
1304
1288
|
const u = [];
|
|
1305
|
-
let h = 0,
|
|
1306
|
-
const
|
|
1289
|
+
let h = 0, f = N;
|
|
1290
|
+
const c = () => {
|
|
1307
1291
|
if (h)
|
|
1308
1292
|
return;
|
|
1309
|
-
|
|
1310
|
-
const
|
|
1311
|
-
o ? s(
|
|
1312
|
-
},
|
|
1313
|
-
(
|
|
1314
|
-
|
|
1293
|
+
f();
|
|
1294
|
+
const d = t(r ? u[0] : u, s, a);
|
|
1295
|
+
o ? s(d) : f = Te(d) ? d : N;
|
|
1296
|
+
}, m = i.map(
|
|
1297
|
+
(d, p) => Vt(
|
|
1298
|
+
d,
|
|
1315
1299
|
(g) => {
|
|
1316
|
-
u[p] = g, h &= ~(1 << p), l &&
|
|
1300
|
+
u[p] = g, h &= ~(1 << p), l && c();
|
|
1317
1301
|
},
|
|
1318
1302
|
() => {
|
|
1319
1303
|
h |= 1 << p;
|
|
1320
1304
|
}
|
|
1321
1305
|
)
|
|
1322
1306
|
);
|
|
1323
|
-
return l = !0,
|
|
1324
|
-
U(
|
|
1307
|
+
return l = !0, c(), function() {
|
|
1308
|
+
U(m), f(), l = !1;
|
|
1325
1309
|
};
|
|
1326
1310
|
});
|
|
1327
1311
|
}
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1312
|
+
var Do = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1313
|
+
function Mr(e) {
|
|
1330
1314
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1331
1315
|
}
|
|
1332
|
-
var
|
|
1333
|
-
return
|
|
1316
|
+
var Nr = function(t) {
|
|
1317
|
+
return Lr(t) && !Rr(t);
|
|
1334
1318
|
};
|
|
1335
|
-
function
|
|
1319
|
+
function Lr(e) {
|
|
1336
1320
|
return !!e && typeof e == "object";
|
|
1337
1321
|
}
|
|
1338
|
-
function
|
|
1322
|
+
function Rr(e) {
|
|
1339
1323
|
var t = Object.prototype.toString.call(e);
|
|
1340
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1324
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
|
|
1341
1325
|
}
|
|
1342
|
-
var
|
|
1343
|
-
function
|
|
1344
|
-
return e.$$typeof ===
|
|
1326
|
+
var $r = typeof Symbol == "function" && Symbol.for, Gr = $r ? Symbol.for("react.element") : 60103;
|
|
1327
|
+
function Ur(e) {
|
|
1328
|
+
return e.$$typeof === Gr;
|
|
1345
1329
|
}
|
|
1346
|
-
function
|
|
1330
|
+
function Dr(e) {
|
|
1347
1331
|
return Array.isArray(e) ? [] : {};
|
|
1348
1332
|
}
|
|
1349
1333
|
function se(e, t) {
|
|
1350
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
1334
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Dr(e), e, t) : e;
|
|
1351
1335
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return e.concat(t).map(function(
|
|
1354
|
-
return se(
|
|
1336
|
+
function Fr(e, t, n) {
|
|
1337
|
+
return e.concat(t).map(function(r) {
|
|
1338
|
+
return se(r, n);
|
|
1355
1339
|
});
|
|
1356
1340
|
}
|
|
1357
|
-
function
|
|
1341
|
+
function jr(e, t) {
|
|
1358
1342
|
if (!t.customMerge)
|
|
1359
1343
|
return Q;
|
|
1360
|
-
var
|
|
1361
|
-
return typeof
|
|
1344
|
+
var n = t.customMerge(e);
|
|
1345
|
+
return typeof n == "function" ? n : Q;
|
|
1362
1346
|
}
|
|
1363
|
-
function
|
|
1347
|
+
function kr(e) {
|
|
1364
1348
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1365
1349
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1366
1350
|
}) : [];
|
|
1367
1351
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return Object.keys(e).concat(
|
|
1352
|
+
function St(e) {
|
|
1353
|
+
return Object.keys(e).concat(kr(e));
|
|
1370
1354
|
}
|
|
1371
|
-
function
|
|
1355
|
+
function rn(e, t) {
|
|
1372
1356
|
try {
|
|
1373
1357
|
return t in e;
|
|
1374
|
-
} catch (
|
|
1358
|
+
} catch (n) {
|
|
1375
1359
|
return !1;
|
|
1376
1360
|
}
|
|
1377
1361
|
}
|
|
1378
|
-
function
|
|
1379
|
-
return
|
|
1362
|
+
function Vr(e, t) {
|
|
1363
|
+
return rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1380
1364
|
}
|
|
1381
|
-
function
|
|
1382
|
-
var
|
|
1383
|
-
return
|
|
1384
|
-
|
|
1385
|
-
}),
|
|
1386
|
-
|
|
1387
|
-
}),
|
|
1388
|
-
}
|
|
1389
|
-
function Q(e, t,
|
|
1390
|
-
|
|
1391
|
-
var
|
|
1392
|
-
return o ?
|
|
1393
|
-
}
|
|
1394
|
-
Q.all = function(t,
|
|
1365
|
+
function Xr(e, t, n) {
|
|
1366
|
+
var r = {};
|
|
1367
|
+
return n.isMergeableObject(e) && St(e).forEach(function(i) {
|
|
1368
|
+
r[i] = se(e[i], n);
|
|
1369
|
+
}), St(t).forEach(function(i) {
|
|
1370
|
+
Vr(e, i) || (rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = se(t[i], n));
|
|
1371
|
+
}), r;
|
|
1372
|
+
}
|
|
1373
|
+
function Q(e, t, n) {
|
|
1374
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Fr, n.isMergeableObject = n.isMergeableObject || Nr, n.cloneUnlessOtherwiseSpecified = se;
|
|
1375
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1376
|
+
return o ? r ? n.arrayMerge(e, t, n) : Xr(e, t, n) : se(t, n);
|
|
1377
|
+
}
|
|
1378
|
+
Q.all = function(t, n) {
|
|
1395
1379
|
if (!Array.isArray(t))
|
|
1396
1380
|
throw new Error("first argument should be an array");
|
|
1397
|
-
return t.reduce(function(
|
|
1398
|
-
return Q(
|
|
1381
|
+
return t.reduce(function(r, i) {
|
|
1382
|
+
return Q(r, i, n);
|
|
1399
1383
|
}, {});
|
|
1400
1384
|
};
|
|
1401
|
-
var
|
|
1402
|
-
const
|
|
1403
|
-
function
|
|
1404
|
-
var
|
|
1385
|
+
var zr = Q, Wr = zr;
|
|
1386
|
+
const Zr = /* @__PURE__ */ Mr(Wr);
|
|
1387
|
+
function Le(e, t) {
|
|
1388
|
+
var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
|
|
1405
1389
|
return i(e, {
|
|
1406
|
-
cache:
|
|
1407
|
-
serializer:
|
|
1390
|
+
cache: n,
|
|
1391
|
+
serializer: r
|
|
1408
1392
|
});
|
|
1409
1393
|
}
|
|
1410
|
-
function
|
|
1394
|
+
function Qr(e) {
|
|
1411
1395
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1412
1396
|
}
|
|
1413
|
-
function
|
|
1414
|
-
var i =
|
|
1415
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1397
|
+
function on(e, t, n, r) {
|
|
1398
|
+
var i = Qr(r) ? r : n(r), o = t.get(i);
|
|
1399
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1416
1400
|
}
|
|
1417
|
-
function
|
|
1418
|
-
var
|
|
1419
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
1401
|
+
function sn(e, t, n) {
|
|
1402
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1403
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1420
1404
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return
|
|
1405
|
+
function ot(e, t, n, r, i) {
|
|
1406
|
+
return n.bind(t, e, r, i);
|
|
1423
1407
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var
|
|
1426
|
-
return
|
|
1408
|
+
function Jr(e, t) {
|
|
1409
|
+
var n = e.length === 1 ? on : sn;
|
|
1410
|
+
return ot(e, this, n, t.cache.create(), t.serializer);
|
|
1427
1411
|
}
|
|
1428
|
-
function
|
|
1429
|
-
return
|
|
1412
|
+
function qr(e, t) {
|
|
1413
|
+
return ot(e, this, sn, t.cache.create(), t.serializer);
|
|
1430
1414
|
}
|
|
1431
|
-
function
|
|
1432
|
-
return
|
|
1415
|
+
function Yr(e, t) {
|
|
1416
|
+
return ot(e, this, on, t.cache.create(), t.serializer);
|
|
1433
1417
|
}
|
|
1434
|
-
var
|
|
1418
|
+
var Kr = function() {
|
|
1435
1419
|
return JSON.stringify(arguments);
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1420
|
+
}, ei = (
|
|
1421
|
+
/** @class */
|
|
1422
|
+
function() {
|
|
1423
|
+
function e() {
|
|
1424
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1425
|
+
}
|
|
1426
|
+
return e.prototype.get = function(t) {
|
|
1427
|
+
return this.cache[t];
|
|
1428
|
+
}, e.prototype.set = function(t, n) {
|
|
1429
|
+
this.cache[t] = n;
|
|
1430
|
+
}, e;
|
|
1431
|
+
}()
|
|
1432
|
+
), ti = {
|
|
1447
1433
|
create: function() {
|
|
1448
|
-
return new
|
|
1434
|
+
return new ei();
|
|
1449
1435
|
}
|
|
1450
|
-
},
|
|
1451
|
-
variadic:
|
|
1452
|
-
monadic:
|
|
1436
|
+
}, Re = {
|
|
1437
|
+
variadic: qr,
|
|
1438
|
+
monadic: Yr
|
|
1453
1439
|
}, y;
|
|
1454
1440
|
(function(e) {
|
|
1455
1441
|
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";
|
|
@@ -1462,50 +1448,50 @@ var J;
|
|
|
1462
1448
|
(function(e) {
|
|
1463
1449
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1464
1450
|
})(J || (J = {}));
|
|
1465
|
-
function
|
|
1451
|
+
function Tt(e) {
|
|
1466
1452
|
return e.type === S.literal;
|
|
1467
1453
|
}
|
|
1468
|
-
function
|
|
1454
|
+
function ni(e) {
|
|
1469
1455
|
return e.type === S.argument;
|
|
1470
1456
|
}
|
|
1471
|
-
function
|
|
1457
|
+
function an(e) {
|
|
1472
1458
|
return e.type === S.number;
|
|
1473
1459
|
}
|
|
1474
|
-
function
|
|
1460
|
+
function un(e) {
|
|
1475
1461
|
return e.type === S.date;
|
|
1476
1462
|
}
|
|
1477
|
-
function
|
|
1463
|
+
function ln(e) {
|
|
1478
1464
|
return e.type === S.time;
|
|
1479
1465
|
}
|
|
1480
|
-
function
|
|
1466
|
+
function hn(e) {
|
|
1481
1467
|
return e.type === S.select;
|
|
1482
1468
|
}
|
|
1483
|
-
function
|
|
1469
|
+
function fn(e) {
|
|
1484
1470
|
return e.type === S.plural;
|
|
1485
1471
|
}
|
|
1486
|
-
function
|
|
1472
|
+
function ri(e) {
|
|
1487
1473
|
return e.type === S.pound;
|
|
1488
1474
|
}
|
|
1489
|
-
function
|
|
1475
|
+
function cn(e) {
|
|
1490
1476
|
return e.type === S.tag;
|
|
1491
1477
|
}
|
|
1492
|
-
function
|
|
1478
|
+
function dn(e) {
|
|
1493
1479
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1494
1480
|
}
|
|
1495
|
-
function
|
|
1481
|
+
function Ze(e) {
|
|
1496
1482
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1497
1483
|
}
|
|
1498
|
-
var
|
|
1499
|
-
function
|
|
1484
|
+
var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
1485
|
+
function oi(e) {
|
|
1500
1486
|
var t = {};
|
|
1501
|
-
return e.replace(
|
|
1502
|
-
var
|
|
1503
|
-
switch (
|
|
1487
|
+
return e.replace(ii, function(n) {
|
|
1488
|
+
var r = n.length;
|
|
1489
|
+
switch (n[0]) {
|
|
1504
1490
|
case "G":
|
|
1505
|
-
t.era =
|
|
1491
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1506
1492
|
break;
|
|
1507
1493
|
case "y":
|
|
1508
|
-
t.year =
|
|
1494
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1509
1495
|
break;
|
|
1510
1496
|
case "Y":
|
|
1511
1497
|
case "u":
|
|
@@ -1517,30 +1503,30 @@ function ai(e) {
|
|
|
1517
1503
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1518
1504
|
case "M":
|
|
1519
1505
|
case "L":
|
|
1520
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1506
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1521
1507
|
break;
|
|
1522
1508
|
case "w":
|
|
1523
1509
|
case "W":
|
|
1524
1510
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1525
1511
|
case "d":
|
|
1526
|
-
t.day = ["numeric", "2-digit"][
|
|
1512
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1527
1513
|
break;
|
|
1528
1514
|
case "D":
|
|
1529
1515
|
case "F":
|
|
1530
1516
|
case "g":
|
|
1531
1517
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1532
1518
|
case "E":
|
|
1533
|
-
t.weekday =
|
|
1519
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1534
1520
|
break;
|
|
1535
1521
|
case "e":
|
|
1536
|
-
if (
|
|
1522
|
+
if (r < 4)
|
|
1537
1523
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1538
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1524
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1539
1525
|
break;
|
|
1540
1526
|
case "c":
|
|
1541
|
-
if (
|
|
1527
|
+
if (r < 4)
|
|
1542
1528
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1543
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1529
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1544
1530
|
break;
|
|
1545
1531
|
case "a":
|
|
1546
1532
|
t.hour12 = !0;
|
|
@@ -1549,32 +1535,32 @@ function ai(e) {
|
|
|
1549
1535
|
case "B":
|
|
1550
1536
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1551
1537
|
case "h":
|
|
1552
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1538
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1553
1539
|
break;
|
|
1554
1540
|
case "H":
|
|
1555
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1541
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1556
1542
|
break;
|
|
1557
1543
|
case "K":
|
|
1558
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1544
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1559
1545
|
break;
|
|
1560
1546
|
case "k":
|
|
1561
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1547
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1562
1548
|
break;
|
|
1563
1549
|
case "j":
|
|
1564
1550
|
case "J":
|
|
1565
1551
|
case "C":
|
|
1566
1552
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1567
1553
|
case "m":
|
|
1568
|
-
t.minute = ["numeric", "2-digit"][
|
|
1554
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1569
1555
|
break;
|
|
1570
1556
|
case "s":
|
|
1571
|
-
t.second = ["numeric", "2-digit"][
|
|
1557
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1572
1558
|
break;
|
|
1573
1559
|
case "S":
|
|
1574
1560
|
case "A":
|
|
1575
1561
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1576
1562
|
case "z":
|
|
1577
|
-
t.timeZoneName =
|
|
1563
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1578
1564
|
break;
|
|
1579
1565
|
case "Z":
|
|
1580
1566
|
case "O":
|
|
@@ -1587,36 +1573,36 @@ function ai(e) {
|
|
|
1587
1573
|
return "";
|
|
1588
1574
|
}), t;
|
|
1589
1575
|
}
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1576
|
+
var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1577
|
+
function ai(e) {
|
|
1592
1578
|
if (e.length === 0)
|
|
1593
1579
|
throw new Error("Number skeleton cannot be empty");
|
|
1594
|
-
for (var t = e.split(
|
|
1595
|
-
return
|
|
1596
|
-
}),
|
|
1597
|
-
var o = i[
|
|
1580
|
+
for (var t = e.split(si).filter(function(c) {
|
|
1581
|
+
return c.length > 0;
|
|
1582
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1583
|
+
var o = i[r], s = o.split("/");
|
|
1598
1584
|
if (s.length === 0)
|
|
1599
1585
|
throw new Error("Invalid number skeleton");
|
|
1600
1586
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1601
|
-
var
|
|
1602
|
-
if (
|
|
1587
|
+
var f = h[u];
|
|
1588
|
+
if (f.length === 0)
|
|
1603
1589
|
throw new Error("Invalid number skeleton");
|
|
1604
1590
|
}
|
|
1605
|
-
|
|
1591
|
+
n.push({ stem: a, options: l });
|
|
1606
1592
|
}
|
|
1607
|
-
return
|
|
1593
|
+
return n;
|
|
1608
1594
|
}
|
|
1609
|
-
function
|
|
1595
|
+
function ui(e) {
|
|
1610
1596
|
return e.replace(/^(.*?)-/, "");
|
|
1611
1597
|
}
|
|
1612
|
-
var
|
|
1613
|
-
function
|
|
1598
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pn = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
|
|
1599
|
+
function At(e) {
|
|
1614
1600
|
var t = {};
|
|
1615
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1616
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1601
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pn, function(n, r, i) {
|
|
1602
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1617
1603
|
}), t;
|
|
1618
1604
|
}
|
|
1619
|
-
function
|
|
1605
|
+
function gn(e) {
|
|
1620
1606
|
switch (e) {
|
|
1621
1607
|
case "sign-auto":
|
|
1622
1608
|
return {
|
|
@@ -1656,27 +1642,27 @@ function vr(e) {
|
|
|
1656
1642
|
};
|
|
1657
1643
|
}
|
|
1658
1644
|
}
|
|
1659
|
-
function
|
|
1645
|
+
function hi(e) {
|
|
1660
1646
|
var t;
|
|
1661
1647
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1662
1648
|
notation: "engineering"
|
|
1663
1649
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1664
1650
|
notation: "scientific"
|
|
1665
1651
|
}, e = e.slice(1)), t) {
|
|
1666
|
-
var
|
|
1667
|
-
if (
|
|
1652
|
+
var n = e.slice(0, 2);
|
|
1653
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
|
|
1668
1654
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1669
1655
|
t.minimumIntegerDigits = e.length;
|
|
1670
1656
|
}
|
|
1671
1657
|
return t;
|
|
1672
1658
|
}
|
|
1673
|
-
function
|
|
1674
|
-
var t = {},
|
|
1675
|
-
return
|
|
1659
|
+
function Bt(e) {
|
|
1660
|
+
var t = {}, n = gn(e);
|
|
1661
|
+
return n || t;
|
|
1676
1662
|
}
|
|
1677
|
-
function
|
|
1678
|
-
for (var t = {},
|
|
1679
|
-
var i = n
|
|
1663
|
+
function fi(e) {
|
|
1664
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1665
|
+
var i = r[n];
|
|
1680
1666
|
switch (i.stem) {
|
|
1681
1667
|
case "percent":
|
|
1682
1668
|
case "%":
|
|
@@ -1698,7 +1684,7 @@ function mi(e) {
|
|
|
1698
1684
|
continue;
|
|
1699
1685
|
case "measure-unit":
|
|
1700
1686
|
case "unit":
|
|
1701
|
-
t.style = "unit", t.unit =
|
|
1687
|
+
t.style = "unit", t.unit = ui(i.options[0]);
|
|
1702
1688
|
continue;
|
|
1703
1689
|
case "compact-short":
|
|
1704
1690
|
case "K":
|
|
@@ -1710,12 +1696,12 @@ function mi(e) {
|
|
|
1710
1696
|
continue;
|
|
1711
1697
|
case "scientific":
|
|
1712
1698
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1713
|
-
return E(E({}, l),
|
|
1699
|
+
return E(E({}, l), Bt(u));
|
|
1714
1700
|
}, {}));
|
|
1715
1701
|
continue;
|
|
1716
1702
|
case "engineering":
|
|
1717
1703
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1718
|
-
return E(E({}, l),
|
|
1704
|
+
return E(E({}, l), Bt(u));
|
|
1719
1705
|
}, {}));
|
|
1720
1706
|
continue;
|
|
1721
1707
|
case "notation-simple":
|
|
@@ -1760,45 +1746,45 @@ function mi(e) {
|
|
|
1760
1746
|
case "integer-width":
|
|
1761
1747
|
if (i.options.length > 1)
|
|
1762
1748
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1763
|
-
i.options[0].replace(
|
|
1749
|
+
i.options[0].replace(li, function(l, u, h, f, c, m) {
|
|
1764
1750
|
if (u)
|
|
1765
1751
|
t.minimumIntegerDigits = h.length;
|
|
1766
1752
|
else {
|
|
1767
|
-
if (
|
|
1753
|
+
if (f && c)
|
|
1768
1754
|
throw new Error("We currently do not support maximum integer digits");
|
|
1769
|
-
if (
|
|
1755
|
+
if (m)
|
|
1770
1756
|
throw new Error("We currently do not support exact integer digits");
|
|
1771
1757
|
}
|
|
1772
1758
|
return "";
|
|
1773
1759
|
});
|
|
1774
1760
|
continue;
|
|
1775
1761
|
}
|
|
1776
|
-
if (
|
|
1762
|
+
if (bn.test(i.stem)) {
|
|
1777
1763
|
t.minimumIntegerDigits = i.stem.length;
|
|
1778
1764
|
continue;
|
|
1779
1765
|
}
|
|
1780
|
-
if (
|
|
1766
|
+
if (Ht.test(i.stem)) {
|
|
1781
1767
|
if (i.options.length > 1)
|
|
1782
1768
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1783
|
-
i.stem.replace(
|
|
1784
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1769
|
+
i.stem.replace(Ht, function(l, u, h, f, c, m) {
|
|
1770
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1785
1771
|
});
|
|
1786
1772
|
var o = i.options[0];
|
|
1787
|
-
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t),
|
|
1773
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), At(o)));
|
|
1788
1774
|
continue;
|
|
1789
1775
|
}
|
|
1790
|
-
if (
|
|
1791
|
-
t = E(E({}, t),
|
|
1776
|
+
if (pn.test(i.stem)) {
|
|
1777
|
+
t = E(E({}, t), At(i.stem));
|
|
1792
1778
|
continue;
|
|
1793
1779
|
}
|
|
1794
|
-
var s =
|
|
1780
|
+
var s = gn(i.stem);
|
|
1795
1781
|
s && (t = E(E({}, t), s));
|
|
1796
|
-
var a =
|
|
1782
|
+
var a = hi(i.stem);
|
|
1797
1783
|
a && (t = E(E({}, t), a));
|
|
1798
1784
|
}
|
|
1799
1785
|
return t;
|
|
1800
1786
|
}
|
|
1801
|
-
var
|
|
1787
|
+
var me = {
|
|
1802
1788
|
"001": [
|
|
1803
1789
|
"H",
|
|
1804
1790
|
"h"
|
|
@@ -3213,23 +3199,23 @@ var de = {
|
|
|
3213
3199
|
"h"
|
|
3214
3200
|
]
|
|
3215
3201
|
};
|
|
3216
|
-
function
|
|
3217
|
-
for (var
|
|
3218
|
-
var i = e.charAt(
|
|
3202
|
+
function ci(e, t) {
|
|
3203
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3204
|
+
var i = e.charAt(r);
|
|
3219
3205
|
if (i === "j") {
|
|
3220
|
-
for (var o = 0;
|
|
3221
|
-
o++,
|
|
3222
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3206
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3207
|
+
o++, r++;
|
|
3208
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = di(t);
|
|
3223
3209
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3224
|
-
|
|
3210
|
+
n += l;
|
|
3225
3211
|
for (; s-- > 0; )
|
|
3226
|
-
|
|
3212
|
+
n = u + n;
|
|
3227
3213
|
} else
|
|
3228
|
-
i === "J" ?
|
|
3214
|
+
i === "J" ? n += "H" : n += i;
|
|
3229
3215
|
}
|
|
3230
|
-
return
|
|
3216
|
+
return n;
|
|
3231
3217
|
}
|
|
3232
|
-
function
|
|
3218
|
+
function di(e) {
|
|
3233
3219
|
var t = e.hourCycle;
|
|
3234
3220
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3235
3221
|
e.hourCycles && // @ts-ignore
|
|
@@ -3246,73 +3232,73 @@ function pi(e) {
|
|
|
3246
3232
|
default:
|
|
3247
3233
|
throw new Error("Invalid hourCycle");
|
|
3248
3234
|
}
|
|
3249
|
-
var
|
|
3250
|
-
|
|
3251
|
-
var i =
|
|
3235
|
+
var n = e.language, r;
|
|
3236
|
+
n !== "root" && (r = e.maximize().region);
|
|
3237
|
+
var i = me[r || ""] || me[n || ""] || me["".concat(n, "-001")] || me["001"];
|
|
3252
3238
|
return i[0];
|
|
3253
3239
|
}
|
|
3254
|
-
var
|
|
3240
|
+
var $e, mi = new RegExp("^".concat(mn.source, "*")), pi = new RegExp("".concat(mn.source, "*$"));
|
|
3255
3241
|
function _(e, t) {
|
|
3256
3242
|
return { start: e, end: t };
|
|
3257
3243
|
}
|
|
3258
|
-
var
|
|
3244
|
+
var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, wi = Ei ? Number.isSafeInteger : function(e) {
|
|
3259
3245
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3260
|
-
},
|
|
3246
|
+
}, Qe = !0;
|
|
3261
3247
|
try {
|
|
3262
|
-
var
|
|
3263
|
-
|
|
3248
|
+
var Si = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3249
|
+
Qe = (($e = Si.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3264
3250
|
} catch (e) {
|
|
3265
|
-
|
|
3251
|
+
Qe = !1;
|
|
3266
3252
|
}
|
|
3267
|
-
var
|
|
3253
|
+
var Ct = bi ? (
|
|
3268
3254
|
// Native
|
|
3269
|
-
function(t,
|
|
3270
|
-
return t.startsWith(
|
|
3255
|
+
function(t, n, r) {
|
|
3256
|
+
return t.startsWith(n, r);
|
|
3271
3257
|
}
|
|
3272
3258
|
) : (
|
|
3273
3259
|
// For IE11
|
|
3274
|
-
function(t,
|
|
3275
|
-
return t.slice(
|
|
3260
|
+
function(t, n, r) {
|
|
3261
|
+
return t.slice(r, r + n.length) === n;
|
|
3276
3262
|
}
|
|
3277
|
-
),
|
|
3263
|
+
), Je = gi ? String.fromCodePoint : (
|
|
3278
3264
|
// IE11
|
|
3279
3265
|
function() {
|
|
3280
|
-
for (var t = [],
|
|
3281
|
-
t[
|
|
3282
|
-
for (var
|
|
3266
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3267
|
+
t[n] = arguments[n];
|
|
3268
|
+
for (var r = "", i = t.length, o = 0, s; i > o; ) {
|
|
3283
3269
|
if (s = t[o++], s > 1114111)
|
|
3284
3270
|
throw RangeError(s + " is not a valid code point");
|
|
3285
|
-
|
|
3271
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
3286
3272
|
}
|
|
3287
|
-
return
|
|
3273
|
+
return r;
|
|
3288
3274
|
}
|
|
3289
|
-
),
|
|
3275
|
+
), Pt = (
|
|
3290
3276
|
// native
|
|
3291
|
-
|
|
3277
|
+
yi ? Object.fromEntries : (
|
|
3292
3278
|
// Ponyfill
|
|
3293
3279
|
function(t) {
|
|
3294
|
-
for (var
|
|
3295
|
-
var o = i[
|
|
3296
|
-
|
|
3280
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3281
|
+
var o = i[r], s = o[0], a = o[1];
|
|
3282
|
+
n[s] = a;
|
|
3297
3283
|
}
|
|
3298
|
-
return
|
|
3284
|
+
return n;
|
|
3299
3285
|
}
|
|
3300
3286
|
)
|
|
3301
|
-
),
|
|
3287
|
+
), yn = vi ? (
|
|
3302
3288
|
// Native
|
|
3303
|
-
function(t,
|
|
3304
|
-
return t.codePointAt(
|
|
3289
|
+
function(t, n) {
|
|
3290
|
+
return t.codePointAt(n);
|
|
3305
3291
|
}
|
|
3306
3292
|
) : (
|
|
3307
3293
|
// IE 11
|
|
3308
|
-
function(t,
|
|
3309
|
-
var
|
|
3310
|
-
if (!(
|
|
3311
|
-
var i = t.charCodeAt(
|
|
3312
|
-
return i < 55296 || i > 56319 ||
|
|
3294
|
+
function(t, n) {
|
|
3295
|
+
var r = t.length;
|
|
3296
|
+
if (!(n < 0 || n >= r)) {
|
|
3297
|
+
var i = t.charCodeAt(n), o;
|
|
3298
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3313
3299
|
}
|
|
3314
3300
|
}
|
|
3315
|
-
),
|
|
3301
|
+
), Ti = _i ? (
|
|
3316
3302
|
// Native
|
|
3317
3303
|
function(t) {
|
|
3318
3304
|
return t.trimStart();
|
|
@@ -3320,9 +3306,9 @@ var Ot = yi ? (
|
|
|
3320
3306
|
) : (
|
|
3321
3307
|
// Ponyfill
|
|
3322
3308
|
function(t) {
|
|
3323
|
-
return t.replace(
|
|
3309
|
+
return t.replace(mi, "");
|
|
3324
3310
|
}
|
|
3325
|
-
),
|
|
3311
|
+
), Hi = xi ? (
|
|
3326
3312
|
// Native
|
|
3327
3313
|
function(t) {
|
|
3328
3314
|
return t.trimEnd();
|
|
@@ -3330,69 +3316,69 @@ var Ot = yi ? (
|
|
|
3330
3316
|
) : (
|
|
3331
3317
|
// Ponyfill
|
|
3332
3318
|
function(t) {
|
|
3333
|
-
return t.replace(
|
|
3319
|
+
return t.replace(pi, "");
|
|
3334
3320
|
}
|
|
3335
3321
|
);
|
|
3336
|
-
function
|
|
3322
|
+
function vn(e, t) {
|
|
3337
3323
|
return new RegExp(e, t);
|
|
3338
3324
|
}
|
|
3339
|
-
var
|
|
3340
|
-
if (
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
var
|
|
3344
|
-
|
|
3345
|
-
var i =
|
|
3346
|
-
return (
|
|
3325
|
+
var qe;
|
|
3326
|
+
if (Qe) {
|
|
3327
|
+
var Ot = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3328
|
+
qe = function(t, n) {
|
|
3329
|
+
var r;
|
|
3330
|
+
Ot.lastIndex = n;
|
|
3331
|
+
var i = Ot.exec(t);
|
|
3332
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3347
3333
|
};
|
|
3348
3334
|
} else
|
|
3349
|
-
|
|
3350
|
-
for (var
|
|
3351
|
-
var i =
|
|
3352
|
-
if (i === void 0 ||
|
|
3335
|
+
qe = function(t, n) {
|
|
3336
|
+
for (var r = []; ; ) {
|
|
3337
|
+
var i = yn(t, n);
|
|
3338
|
+
if (i === void 0 || _n(i) || Pi(i))
|
|
3353
3339
|
break;
|
|
3354
|
-
|
|
3340
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3355
3341
|
}
|
|
3356
|
-
return
|
|
3342
|
+
return Je.apply(void 0, r);
|
|
3357
3343
|
};
|
|
3358
|
-
var
|
|
3344
|
+
var Ai = (
|
|
3359
3345
|
/** @class */
|
|
3360
3346
|
function() {
|
|
3361
|
-
function e(t,
|
|
3362
|
-
|
|
3347
|
+
function e(t, n) {
|
|
3348
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3363
3349
|
}
|
|
3364
3350
|
return e.prototype.parse = function() {
|
|
3365
3351
|
if (this.offset() !== 0)
|
|
3366
3352
|
throw Error("parser can only be used once");
|
|
3367
3353
|
return this.parseMessage(0, "", !1);
|
|
3368
|
-
}, e.prototype.parseMessage = function(t,
|
|
3354
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3369
3355
|
for (var i = []; !this.isEOF(); ) {
|
|
3370
3356
|
var o = this.char();
|
|
3371
3357
|
if (o === 123) {
|
|
3372
|
-
var s = this.parseArgument(t,
|
|
3358
|
+
var s = this.parseArgument(t, r);
|
|
3373
3359
|
if (s.err)
|
|
3374
3360
|
return s;
|
|
3375
3361
|
i.push(s.val);
|
|
3376
3362
|
} else {
|
|
3377
3363
|
if (o === 125 && t > 0)
|
|
3378
3364
|
break;
|
|
3379
|
-
if (o === 35 && (
|
|
3365
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3380
3366
|
var a = this.clonePosition();
|
|
3381
3367
|
this.bump(), i.push({
|
|
3382
3368
|
type: S.pound,
|
|
3383
3369
|
location: _(a, this.clonePosition())
|
|
3384
3370
|
});
|
|
3385
3371
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3386
|
-
if (
|
|
3372
|
+
if (r)
|
|
3387
3373
|
break;
|
|
3388
3374
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3389
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3390
|
-
var s = this.parseTag(t,
|
|
3375
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3376
|
+
var s = this.parseTag(t, n);
|
|
3391
3377
|
if (s.err)
|
|
3392
3378
|
return s;
|
|
3393
3379
|
i.push(s.val);
|
|
3394
3380
|
} else {
|
|
3395
|
-
var s = this.parseLiteral(t,
|
|
3381
|
+
var s = this.parseLiteral(t, n);
|
|
3396
3382
|
if (s.err)
|
|
3397
3383
|
return s;
|
|
3398
3384
|
i.push(s.val);
|
|
@@ -3400,8 +3386,8 @@ var Ci = (
|
|
|
3400
3386
|
}
|
|
3401
3387
|
}
|
|
3402
3388
|
return { val: i, err: null };
|
|
3403
|
-
}, e.prototype.parseTag = function(t,
|
|
3404
|
-
var
|
|
3389
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3390
|
+
var r = this.clonePosition();
|
|
3405
3391
|
this.bump();
|
|
3406
3392
|
var i = this.parseTagName();
|
|
3407
3393
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3409,17 +3395,17 @@ var Ci = (
|
|
|
3409
3395
|
val: {
|
|
3410
3396
|
type: S.literal,
|
|
3411
3397
|
value: "<".concat(i, "/>"),
|
|
3412
|
-
location: _(
|
|
3398
|
+
location: _(r, this.clonePosition())
|
|
3413
3399
|
},
|
|
3414
3400
|
err: null
|
|
3415
3401
|
};
|
|
3416
3402
|
if (this.bumpIf(">")) {
|
|
3417
|
-
var o = this.parseMessage(t + 1,
|
|
3403
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3418
3404
|
if (o.err)
|
|
3419
3405
|
return o;
|
|
3420
3406
|
var s = o.val, a = this.clonePosition();
|
|
3421
3407
|
if (this.bumpIf("</")) {
|
|
3422
|
-
if (this.isEOF() || !
|
|
3408
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3423
3409
|
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
3424
3410
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3425
3411
|
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3427,27 +3413,27 @@ var Ci = (
|
|
|
3427
3413
|
type: S.tag,
|
|
3428
3414
|
value: i,
|
|
3429
3415
|
children: s,
|
|
3430
|
-
location: _(
|
|
3416
|
+
location: _(r, this.clonePosition())
|
|
3431
3417
|
},
|
|
3432
3418
|
err: null
|
|
3433
3419
|
} : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
|
|
3434
3420
|
} else
|
|
3435
|
-
return this.error(y.UNCLOSED_TAG, _(
|
|
3421
|
+
return this.error(y.UNCLOSED_TAG, _(r, this.clonePosition()));
|
|
3436
3422
|
} else
|
|
3437
|
-
return this.error(y.INVALID_TAG, _(
|
|
3423
|
+
return this.error(y.INVALID_TAG, _(r, this.clonePosition()));
|
|
3438
3424
|
}, e.prototype.parseTagName = function() {
|
|
3439
3425
|
var t = this.offset();
|
|
3440
|
-
for (this.bump(); !this.isEOF() &&
|
|
3426
|
+
for (this.bump(); !this.isEOF() && Ci(this.char()); )
|
|
3441
3427
|
this.bump();
|
|
3442
3428
|
return this.message.slice(t, this.offset());
|
|
3443
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3444
|
-
for (var
|
|
3445
|
-
var o = this.tryParseQuote(
|
|
3429
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3430
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3431
|
+
var o = this.tryParseQuote(n);
|
|
3446
3432
|
if (o) {
|
|
3447
3433
|
i += o;
|
|
3448
3434
|
continue;
|
|
3449
3435
|
}
|
|
3450
|
-
var s = this.tryParseUnquoted(t,
|
|
3436
|
+
var s = this.tryParseUnquoted(t, n);
|
|
3451
3437
|
if (s) {
|
|
3452
3438
|
i += s;
|
|
3453
3439
|
continue;
|
|
@@ -3459,14 +3445,14 @@ var Ci = (
|
|
|
3459
3445
|
}
|
|
3460
3446
|
break;
|
|
3461
3447
|
}
|
|
3462
|
-
var l = _(
|
|
3448
|
+
var l = _(r, this.clonePosition());
|
|
3463
3449
|
return {
|
|
3464
3450
|
val: { type: S.literal, value: i, location: l },
|
|
3465
3451
|
err: null
|
|
3466
3452
|
};
|
|
3467
3453
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3468
3454
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3469
|
-
!
|
|
3455
|
+
!Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3470
3456
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3471
3457
|
if (this.isEOF() || this.char() !== 39)
|
|
3472
3458
|
return null;
|
|
@@ -3486,37 +3472,37 @@ var Ci = (
|
|
|
3486
3472
|
return null;
|
|
3487
3473
|
}
|
|
3488
3474
|
this.bump();
|
|
3489
|
-
var
|
|
3475
|
+
var n = [this.char()];
|
|
3490
3476
|
for (this.bump(); !this.isEOF(); ) {
|
|
3491
|
-
var
|
|
3492
|
-
if (
|
|
3477
|
+
var r = this.char();
|
|
3478
|
+
if (r === 39)
|
|
3493
3479
|
if (this.peek() === 39)
|
|
3494
|
-
|
|
3480
|
+
n.push(39), this.bump();
|
|
3495
3481
|
else {
|
|
3496
3482
|
this.bump();
|
|
3497
3483
|
break;
|
|
3498
3484
|
}
|
|
3499
3485
|
else
|
|
3500
|
-
|
|
3486
|
+
n.push(r);
|
|
3501
3487
|
this.bump();
|
|
3502
3488
|
}
|
|
3503
|
-
return
|
|
3504
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3489
|
+
return Je.apply(void 0, n);
|
|
3490
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3505
3491
|
if (this.isEOF())
|
|
3506
3492
|
return null;
|
|
3507
|
-
var
|
|
3508
|
-
return
|
|
3509
|
-
}, e.prototype.parseArgument = function(t,
|
|
3510
|
-
var
|
|
3493
|
+
var r = this.char();
|
|
3494
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Je(r));
|
|
3495
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3496
|
+
var r = this.clonePosition();
|
|
3511
3497
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3512
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3498
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
|
|
3513
3499
|
if (this.char() === 125)
|
|
3514
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(
|
|
3500
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(r, this.clonePosition()));
|
|
3515
3501
|
var i = this.parseIdentifierIfPossible().value;
|
|
3516
3502
|
if (!i)
|
|
3517
|
-
return this.error(y.MALFORMED_ARGUMENT, _(
|
|
3503
|
+
return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
|
|
3518
3504
|
if (this.bumpSpace(), this.isEOF())
|
|
3519
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3505
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
|
|
3520
3506
|
switch (this.char()) {
|
|
3521
3507
|
case 125:
|
|
3522
3508
|
return this.bump(), {
|
|
@@ -3524,21 +3510,21 @@ var Ci = (
|
|
|
3524
3510
|
type: S.argument,
|
|
3525
3511
|
// value does not include the opening and closing braces.
|
|
3526
3512
|
value: i,
|
|
3527
|
-
location: _(
|
|
3513
|
+
location: _(r, this.clonePosition())
|
|
3528
3514
|
},
|
|
3529
3515
|
err: null
|
|
3530
3516
|
};
|
|
3531
3517
|
case 44:
|
|
3532
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(
|
|
3518
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3533
3519
|
default:
|
|
3534
|
-
return this.error(y.MALFORMED_ARGUMENT, _(
|
|
3520
|
+
return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
|
|
3535
3521
|
}
|
|
3536
3522
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3537
|
-
var t = this.clonePosition(),
|
|
3523
|
+
var t = this.clonePosition(), n = this.offset(), r = qe(this.message, n), i = n + r.length;
|
|
3538
3524
|
this.bumpTo(i);
|
|
3539
3525
|
var o = this.clonePosition(), s = _(t, o);
|
|
3540
|
-
return { value:
|
|
3541
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3526
|
+
return { value: r, location: s };
|
|
3527
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3542
3528
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3543
3529
|
switch (a) {
|
|
3544
3530
|
case "":
|
|
@@ -3550,40 +3536,40 @@ var Ci = (
|
|
|
3550
3536
|
var u = null;
|
|
3551
3537
|
if (this.bumpIf(",")) {
|
|
3552
3538
|
this.bumpSpace();
|
|
3553
|
-
var h = this.clonePosition(),
|
|
3554
|
-
if (
|
|
3555
|
-
return
|
|
3556
|
-
var
|
|
3557
|
-
if (
|
|
3539
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3540
|
+
if (f.err)
|
|
3541
|
+
return f;
|
|
3542
|
+
var c = Hi(f.val);
|
|
3543
|
+
if (c.length === 0)
|
|
3558
3544
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3559
|
-
var
|
|
3560
|
-
u = { style:
|
|
3545
|
+
var m = _(h, this.clonePosition());
|
|
3546
|
+
u = { style: c, styleLocation: m };
|
|
3561
3547
|
}
|
|
3562
|
-
var
|
|
3563
|
-
if (
|
|
3564
|
-
return
|
|
3548
|
+
var d = this.tryParseArgumentClose(i);
|
|
3549
|
+
if (d.err)
|
|
3550
|
+
return d;
|
|
3565
3551
|
var p = _(i, this.clonePosition());
|
|
3566
|
-
if (u &&
|
|
3567
|
-
var g =
|
|
3552
|
+
if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
3553
|
+
var g = Ti(u.style.slice(2));
|
|
3568
3554
|
if (a === "number") {
|
|
3569
|
-
var
|
|
3570
|
-
return
|
|
3571
|
-
val: { type: S.number, value:
|
|
3555
|
+
var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3556
|
+
return f.err ? f : {
|
|
3557
|
+
val: { type: S.number, value: r, location: p, style: f.val },
|
|
3572
3558
|
err: null
|
|
3573
3559
|
};
|
|
3574
3560
|
} else {
|
|
3575
3561
|
if (g.length === 0)
|
|
3576
3562
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3577
|
-
var
|
|
3578
|
-
this.locale && (
|
|
3579
|
-
var
|
|
3563
|
+
var H = g;
|
|
3564
|
+
this.locale && (H = ci(g, this.locale));
|
|
3565
|
+
var c = {
|
|
3580
3566
|
type: J.dateTime,
|
|
3581
|
-
pattern:
|
|
3567
|
+
pattern: H,
|
|
3582
3568
|
location: u.styleLocation,
|
|
3583
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3584
|
-
},
|
|
3569
|
+
parsedOptions: this.shouldParseSkeletons ? oi(H) : {}
|
|
3570
|
+
}, A = a === "date" ? S.date : S.time;
|
|
3585
3571
|
return {
|
|
3586
|
-
val: { type:
|
|
3572
|
+
val: { type: A, value: r, location: p, style: c },
|
|
3587
3573
|
err: null
|
|
3588
3574
|
};
|
|
3589
3575
|
}
|
|
@@ -3591,7 +3577,7 @@ var Ci = (
|
|
|
3591
3577
|
return {
|
|
3592
3578
|
val: {
|
|
3593
3579
|
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3594
|
-
value:
|
|
3580
|
+
value: r,
|
|
3595
3581
|
location: p,
|
|
3596
3582
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3597
3583
|
},
|
|
@@ -3610,34 +3596,34 @@ var Ci = (
|
|
|
3610
3596
|
if (!this.bumpIf(":"))
|
|
3611
3597
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3612
3598
|
this.bumpSpace();
|
|
3613
|
-
var
|
|
3614
|
-
if (
|
|
3615
|
-
return
|
|
3616
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(), b =
|
|
3599
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3600
|
+
if (f.err)
|
|
3601
|
+
return f;
|
|
3602
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), b = f.val;
|
|
3617
3603
|
}
|
|
3618
|
-
var B = this.tryParsePluralOrSelectOptions(t, a,
|
|
3604
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, n, w);
|
|
3619
3605
|
if (B.err)
|
|
3620
3606
|
return B;
|
|
3621
|
-
var
|
|
3622
|
-
if (
|
|
3623
|
-
return
|
|
3624
|
-
var
|
|
3607
|
+
var d = this.tryParseArgumentClose(i);
|
|
3608
|
+
if (d.err)
|
|
3609
|
+
return d;
|
|
3610
|
+
var fe = _(i, this.clonePosition());
|
|
3625
3611
|
return a === "select" ? {
|
|
3626
3612
|
val: {
|
|
3627
3613
|
type: S.select,
|
|
3628
|
-
value:
|
|
3629
|
-
options:
|
|
3630
|
-
location:
|
|
3614
|
+
value: r,
|
|
3615
|
+
options: Pt(B.val),
|
|
3616
|
+
location: fe
|
|
3631
3617
|
},
|
|
3632
3618
|
err: null
|
|
3633
3619
|
} : {
|
|
3634
3620
|
val: {
|
|
3635
3621
|
type: S.plural,
|
|
3636
|
-
value:
|
|
3637
|
-
options:
|
|
3622
|
+
value: r,
|
|
3623
|
+
options: Pt(B.val),
|
|
3638
3624
|
offset: b,
|
|
3639
3625
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3640
|
-
location:
|
|
3626
|
+
location: fe
|
|
3641
3627
|
},
|
|
3642
3628
|
err: null
|
|
3643
3629
|
};
|
|
@@ -3648,9 +3634,9 @@ var Ci = (
|
|
|
3648
3634
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3649
3635
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3650
3636
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3651
|
-
for (var t = 0,
|
|
3652
|
-
var
|
|
3653
|
-
switch (
|
|
3637
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3638
|
+
var r = this.char();
|
|
3639
|
+
switch (r) {
|
|
3654
3640
|
case 39: {
|
|
3655
3641
|
this.bump();
|
|
3656
3642
|
var i = this.clonePosition();
|
|
@@ -3668,7 +3654,7 @@ var Ci = (
|
|
|
3668
3654
|
t -= 1;
|
|
3669
3655
|
else
|
|
3670
3656
|
return {
|
|
3671
|
-
val: this.message.slice(
|
|
3657
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3672
3658
|
err: null
|
|
3673
3659
|
};
|
|
3674
3660
|
break;
|
|
@@ -3679,61 +3665,61 @@ var Ci = (
|
|
|
3679
3665
|
}
|
|
3680
3666
|
}
|
|
3681
3667
|
return {
|
|
3682
|
-
val: this.message.slice(
|
|
3668
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3683
3669
|
err: null
|
|
3684
3670
|
};
|
|
3685
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3686
|
-
var
|
|
3671
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3672
|
+
var r = [];
|
|
3687
3673
|
try {
|
|
3688
|
-
|
|
3674
|
+
r = ai(t);
|
|
3689
3675
|
} catch (i) {
|
|
3690
|
-
return this.error(y.INVALID_NUMBER_SKELETON,
|
|
3676
|
+
return this.error(y.INVALID_NUMBER_SKELETON, n);
|
|
3691
3677
|
}
|
|
3692
3678
|
return {
|
|
3693
3679
|
val: {
|
|
3694
3680
|
type: J.number,
|
|
3695
|
-
tokens:
|
|
3696
|
-
location:
|
|
3697
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3681
|
+
tokens: r,
|
|
3682
|
+
location: n,
|
|
3683
|
+
parsedOptions: this.shouldParseSkeletons ? fi(r) : {}
|
|
3698
3684
|
},
|
|
3699
3685
|
err: null
|
|
3700
3686
|
};
|
|
3701
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3687
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3702
3688
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3703
3689
|
if (u.length === 0) {
|
|
3704
|
-
var
|
|
3705
|
-
if (
|
|
3706
|
-
var
|
|
3707
|
-
if (
|
|
3708
|
-
return
|
|
3709
|
-
h = _(
|
|
3690
|
+
var f = this.clonePosition();
|
|
3691
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3692
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3693
|
+
if (c.err)
|
|
3694
|
+
return c;
|
|
3695
|
+
h = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3710
3696
|
} else
|
|
3711
3697
|
break;
|
|
3712
3698
|
}
|
|
3713
3699
|
if (l.has(u))
|
|
3714
|
-
return this.error(
|
|
3700
|
+
return this.error(n === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3715
3701
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3716
|
-
var
|
|
3702
|
+
var m = this.clonePosition();
|
|
3717
3703
|
if (!this.bumpIf("{"))
|
|
3718
|
-
return this.error(
|
|
3719
|
-
var
|
|
3720
|
-
if (
|
|
3721
|
-
return
|
|
3722
|
-
var p = this.tryParseArgumentClose(
|
|
3704
|
+
return this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3705
|
+
var d = this.parseMessage(t + 1, n, r);
|
|
3706
|
+
if (d.err)
|
|
3707
|
+
return d;
|
|
3708
|
+
var p = this.tryParseArgumentClose(m);
|
|
3723
3709
|
if (p.err)
|
|
3724
3710
|
return p;
|
|
3725
3711
|
a.push([
|
|
3726
3712
|
u,
|
|
3727
3713
|
{
|
|
3728
|
-
value:
|
|
3729
|
-
location: _(
|
|
3714
|
+
value: d.val,
|
|
3715
|
+
location: _(m, this.clonePosition())
|
|
3730
3716
|
}
|
|
3731
3717
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3732
3718
|
}
|
|
3733
|
-
return a.length === 0 ? this.error(
|
|
3734
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3735
|
-
var
|
|
3736
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3719
|
+
return a.length === 0 ? this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3720
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3721
|
+
var r = 1, i = this.clonePosition();
|
|
3722
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3737
3723
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3738
3724
|
var a = this.char();
|
|
3739
3725
|
if (a >= 48 && a <= 57)
|
|
@@ -3742,7 +3728,7 @@ var Ci = (
|
|
|
3742
3728
|
break;
|
|
3743
3729
|
}
|
|
3744
3730
|
var l = _(i, this.clonePosition());
|
|
3745
|
-
return o ? (s *=
|
|
3731
|
+
return o ? (s *= r, wi(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3746
3732
|
}, e.prototype.offset = function() {
|
|
3747
3733
|
return this.position.offset;
|
|
3748
3734
|
}, e.prototype.isEOF = function() {
|
|
@@ -3757,17 +3743,17 @@ var Ci = (
|
|
|
3757
3743
|
var t = this.position.offset;
|
|
3758
3744
|
if (t >= this.message.length)
|
|
3759
3745
|
throw Error("out of bound");
|
|
3760
|
-
var
|
|
3761
|
-
if (
|
|
3746
|
+
var n = yn(this.message, t);
|
|
3747
|
+
if (n === void 0)
|
|
3762
3748
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3763
|
-
return
|
|
3764
|
-
}, e.prototype.error = function(t,
|
|
3749
|
+
return n;
|
|
3750
|
+
}, e.prototype.error = function(t, n) {
|
|
3765
3751
|
return {
|
|
3766
3752
|
val: null,
|
|
3767
3753
|
err: {
|
|
3768
3754
|
kind: t,
|
|
3769
3755
|
message: this.message,
|
|
3770
|
-
location:
|
|
3756
|
+
location: n
|
|
3771
3757
|
}
|
|
3772
3758
|
};
|
|
3773
3759
|
}, e.prototype.bump = function() {
|
|
@@ -3776,70 +3762,70 @@ var Ci = (
|
|
|
3776
3762
|
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);
|
|
3777
3763
|
}
|
|
3778
3764
|
}, e.prototype.bumpIf = function(t) {
|
|
3779
|
-
if (
|
|
3780
|
-
for (var
|
|
3765
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3766
|
+
for (var n = 0; n < t.length; n++)
|
|
3781
3767
|
this.bump();
|
|
3782
3768
|
return !0;
|
|
3783
3769
|
}
|
|
3784
3770
|
return !1;
|
|
3785
3771
|
}, e.prototype.bumpUntil = function(t) {
|
|
3786
|
-
var
|
|
3787
|
-
return
|
|
3772
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3773
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3788
3774
|
}, e.prototype.bumpTo = function(t) {
|
|
3789
3775
|
if (this.offset() > t)
|
|
3790
3776
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3791
3777
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3792
|
-
var
|
|
3793
|
-
if (
|
|
3778
|
+
var n = this.offset();
|
|
3779
|
+
if (n === t)
|
|
3794
3780
|
break;
|
|
3795
|
-
if (
|
|
3781
|
+
if (n > t)
|
|
3796
3782
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3797
3783
|
if (this.bump(), this.isEOF())
|
|
3798
3784
|
break;
|
|
3799
3785
|
}
|
|
3800
3786
|
}, e.prototype.bumpSpace = function() {
|
|
3801
|
-
for (; !this.isEOF() &&
|
|
3787
|
+
for (; !this.isEOF() && _n(this.char()); )
|
|
3802
3788
|
this.bump();
|
|
3803
3789
|
}, e.prototype.peek = function() {
|
|
3804
3790
|
if (this.isEOF())
|
|
3805
3791
|
return null;
|
|
3806
|
-
var t = this.char(),
|
|
3807
|
-
return
|
|
3792
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3793
|
+
return r != null ? r : null;
|
|
3808
3794
|
}, e;
|
|
3809
3795
|
}()
|
|
3810
3796
|
);
|
|
3811
|
-
function
|
|
3797
|
+
function Ye(e) {
|
|
3812
3798
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3813
3799
|
}
|
|
3814
|
-
function
|
|
3815
|
-
return
|
|
3800
|
+
function Bi(e) {
|
|
3801
|
+
return Ye(e) || e === 47;
|
|
3816
3802
|
}
|
|
3817
|
-
function
|
|
3803
|
+
function Ci(e) {
|
|
3818
3804
|
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;
|
|
3819
3805
|
}
|
|
3820
|
-
function
|
|
3806
|
+
function _n(e) {
|
|
3821
3807
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3822
3808
|
}
|
|
3823
|
-
function
|
|
3809
|
+
function Pi(e) {
|
|
3824
3810
|
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;
|
|
3825
3811
|
}
|
|
3826
|
-
function
|
|
3812
|
+
function Ke(e) {
|
|
3827
3813
|
e.forEach(function(t) {
|
|
3828
|
-
if (delete t.location,
|
|
3829
|
-
for (var
|
|
3830
|
-
delete t.options[
|
|
3814
|
+
if (delete t.location, hn(t) || fn(t))
|
|
3815
|
+
for (var n in t.options)
|
|
3816
|
+
delete t.options[n].location, Ke(t.options[n].value);
|
|
3831
3817
|
else
|
|
3832
|
-
|
|
3818
|
+
an(t) && dn(t.style) || (un(t) || ln(t)) && Ze(t.style) ? delete t.style.location : cn(t) && Ke(t.children);
|
|
3833
3819
|
});
|
|
3834
3820
|
}
|
|
3835
|
-
function
|
|
3821
|
+
function Oi(e, t) {
|
|
3836
3822
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3837
|
-
var
|
|
3838
|
-
if (
|
|
3839
|
-
var
|
|
3840
|
-
throw
|
|
3823
|
+
var n = new Ai(e, t).parse();
|
|
3824
|
+
if (n.err) {
|
|
3825
|
+
var r = SyntaxError(y[n.err.kind]);
|
|
3826
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3841
3827
|
}
|
|
3842
|
-
return t != null && t.captureLocation ||
|
|
3828
|
+
return t != null && t.captureLocation || Ke(n.val), n.val;
|
|
3843
3829
|
}
|
|
3844
3830
|
var q;
|
|
3845
3831
|
(function(e) {
|
|
@@ -3849,38 +3835,38 @@ var Be = (
|
|
|
3849
3835
|
/** @class */
|
|
3850
3836
|
function(e) {
|
|
3851
3837
|
$(t, e);
|
|
3852
|
-
function t(
|
|
3853
|
-
var o = e.call(this,
|
|
3854
|
-
return o.code =
|
|
3838
|
+
function t(n, r, i) {
|
|
3839
|
+
var o = e.call(this, n) || this;
|
|
3840
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3855
3841
|
}
|
|
3856
3842
|
return t.prototype.toString = function() {
|
|
3857
3843
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3858
3844
|
}, t;
|
|
3859
3845
|
}(Error)
|
|
3860
|
-
),
|
|
3846
|
+
), It = (
|
|
3861
3847
|
/** @class */
|
|
3862
3848
|
function(e) {
|
|
3863
3849
|
$(t, e);
|
|
3864
|
-
function t(
|
|
3865
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3850
|
+
function t(n, r, i, o) {
|
|
3851
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3866
3852
|
}
|
|
3867
3853
|
return t;
|
|
3868
3854
|
}(Be)
|
|
3869
|
-
),
|
|
3855
|
+
), Ii = (
|
|
3870
3856
|
/** @class */
|
|
3871
3857
|
function(e) {
|
|
3872
3858
|
$(t, e);
|
|
3873
|
-
function t(
|
|
3874
|
-
return e.call(this, 'Value for "'.concat(
|
|
3859
|
+
function t(n, r, i) {
|
|
3860
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), q.INVALID_VALUE, i) || this;
|
|
3875
3861
|
}
|
|
3876
3862
|
return t;
|
|
3877
3863
|
}(Be)
|
|
3878
|
-
),
|
|
3864
|
+
), Mi = (
|
|
3879
3865
|
/** @class */
|
|
3880
3866
|
function(e) {
|
|
3881
3867
|
$(t, e);
|
|
3882
|
-
function t(
|
|
3883
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3868
|
+
function t(n, r) {
|
|
3869
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), q.MISSING_VALUE, r) || this;
|
|
3884
3870
|
}
|
|
3885
3871
|
return t;
|
|
3886
3872
|
}(Be)
|
|
@@ -3888,17 +3874,17 @@ var Be = (
|
|
|
3888
3874
|
(function(e) {
|
|
3889
3875
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3890
3876
|
})(P || (P = {}));
|
|
3891
|
-
function
|
|
3892
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3893
|
-
var
|
|
3894
|
-
return !
|
|
3877
|
+
function Ni(e) {
|
|
3878
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3879
|
+
var r = t[t.length - 1];
|
|
3880
|
+
return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
|
|
3895
3881
|
}, []);
|
|
3896
3882
|
}
|
|
3897
|
-
function
|
|
3883
|
+
function Li(e) {
|
|
3898
3884
|
return typeof e == "function";
|
|
3899
3885
|
}
|
|
3900
|
-
function ye(e, t,
|
|
3901
|
-
if (e.length === 1 &&
|
|
3886
|
+
function ye(e, t, n, r, i, o, s) {
|
|
3887
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3902
3888
|
return [
|
|
3903
3889
|
{
|
|
3904
3890
|
type: P.literal,
|
|
@@ -3907,155 +3893,155 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3907
3893
|
];
|
|
3908
3894
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3909
3895
|
var h = u[l];
|
|
3910
|
-
if (
|
|
3896
|
+
if (Tt(h)) {
|
|
3911
3897
|
a.push({
|
|
3912
3898
|
type: P.literal,
|
|
3913
3899
|
value: h.value
|
|
3914
3900
|
});
|
|
3915
3901
|
continue;
|
|
3916
3902
|
}
|
|
3917
|
-
if (
|
|
3903
|
+
if (ri(h)) {
|
|
3918
3904
|
typeof o == "number" && a.push({
|
|
3919
3905
|
type: P.literal,
|
|
3920
|
-
value:
|
|
3906
|
+
value: n.getNumberFormat(t).format(o)
|
|
3921
3907
|
});
|
|
3922
3908
|
continue;
|
|
3923
3909
|
}
|
|
3924
|
-
var
|
|
3925
|
-
if (!(i &&
|
|
3926
|
-
throw new
|
|
3927
|
-
var
|
|
3928
|
-
if (
|
|
3929
|
-
(!
|
|
3930
|
-
type: typeof
|
|
3931
|
-
value:
|
|
3910
|
+
var f = h.value;
|
|
3911
|
+
if (!(i && f in i))
|
|
3912
|
+
throw new Mi(f, s);
|
|
3913
|
+
var c = i[f];
|
|
3914
|
+
if (ni(h)) {
|
|
3915
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3916
|
+
type: typeof c == "string" ? P.literal : P.object,
|
|
3917
|
+
value: c
|
|
3932
3918
|
});
|
|
3933
3919
|
continue;
|
|
3934
3920
|
}
|
|
3935
|
-
if (
|
|
3936
|
-
var
|
|
3921
|
+
if (un(h)) {
|
|
3922
|
+
var m = typeof h.style == "string" ? r.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3937
3923
|
a.push({
|
|
3938
3924
|
type: P.literal,
|
|
3939
|
-
value:
|
|
3925
|
+
value: n.getDateTimeFormat(t, m).format(c)
|
|
3940
3926
|
});
|
|
3941
3927
|
continue;
|
|
3942
3928
|
}
|
|
3943
|
-
if (
|
|
3944
|
-
var
|
|
3929
|
+
if (ln(h)) {
|
|
3930
|
+
var m = typeof h.style == "string" ? r.time[h.style] : Ze(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3945
3931
|
a.push({
|
|
3946
3932
|
type: P.literal,
|
|
3947
|
-
value:
|
|
3933
|
+
value: n.getDateTimeFormat(t, m).format(c)
|
|
3948
3934
|
});
|
|
3949
3935
|
continue;
|
|
3950
3936
|
}
|
|
3951
|
-
if (
|
|
3952
|
-
var
|
|
3953
|
-
|
|
3937
|
+
if (an(h)) {
|
|
3938
|
+
var m = typeof h.style == "string" ? r.number[h.style] : dn(h.style) ? h.style.parsedOptions : void 0;
|
|
3939
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3954
3940
|
type: P.literal,
|
|
3955
|
-
value:
|
|
3941
|
+
value: n.getNumberFormat(t, m).format(c)
|
|
3956
3942
|
});
|
|
3957
3943
|
continue;
|
|
3958
3944
|
}
|
|
3959
|
-
if (
|
|
3960
|
-
var
|
|
3961
|
-
if (
|
|
3962
|
-
throw new
|
|
3963
|
-
var
|
|
3945
|
+
if (cn(h)) {
|
|
3946
|
+
var d = h.children, p = h.value, g = i[p];
|
|
3947
|
+
if (!Li(g))
|
|
3948
|
+
throw new Ii(p, "function", s);
|
|
3949
|
+
var H = ye(d, t, n, r, i, o), A = g(H.map(function(b) {
|
|
3964
3950
|
return b.value;
|
|
3965
3951
|
}));
|
|
3966
|
-
Array.isArray(
|
|
3952
|
+
Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(b) {
|
|
3967
3953
|
return {
|
|
3968
3954
|
type: typeof b == "string" ? P.literal : P.object,
|
|
3969
3955
|
value: b
|
|
3970
3956
|
};
|
|
3971
3957
|
}));
|
|
3972
3958
|
}
|
|
3973
|
-
if (
|
|
3974
|
-
var x = h.options[
|
|
3959
|
+
if (hn(h)) {
|
|
3960
|
+
var x = h.options[c] || h.options.other;
|
|
3975
3961
|
if (!x)
|
|
3976
|
-
throw new
|
|
3977
|
-
a.push.apply(a, ye(x.value, t,
|
|
3962
|
+
throw new It(h.value, c, Object.keys(h.options), s);
|
|
3963
|
+
a.push.apply(a, ye(x.value, t, n, r, i));
|
|
3978
3964
|
continue;
|
|
3979
3965
|
}
|
|
3980
|
-
if (
|
|
3981
|
-
var x = h.options["=".concat(
|
|
3966
|
+
if (fn(h)) {
|
|
3967
|
+
var x = h.options["=".concat(c)];
|
|
3982
3968
|
if (!x) {
|
|
3983
3969
|
if (!Intl.PluralRules)
|
|
3984
3970
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3985
3971
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3986
3972
|
`, q.MISSING_INTL_API, s);
|
|
3987
|
-
var w =
|
|
3973
|
+
var w = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3988
3974
|
x = h.options[w] || h.options.other;
|
|
3989
3975
|
}
|
|
3990
3976
|
if (!x)
|
|
3991
|
-
throw new
|
|
3992
|
-
a.push.apply(a, ye(x.value, t,
|
|
3977
|
+
throw new It(h.value, c, Object.keys(h.options), s);
|
|
3978
|
+
a.push.apply(a, ye(x.value, t, n, r, i, c - (h.offset || 0)));
|
|
3993
3979
|
continue;
|
|
3994
3980
|
}
|
|
3995
3981
|
}
|
|
3996
|
-
return
|
|
3982
|
+
return Ni(a);
|
|
3997
3983
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
4000
|
-
return r
|
|
3984
|
+
function Ri(e, t) {
|
|
3985
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3986
|
+
return n[r] = E(E({}, e[r]), t[r] || {}), n;
|
|
4001
3987
|
}, {})) : e;
|
|
4002
3988
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return t ? Object.keys(e).reduce(function(
|
|
4005
|
-
return r
|
|
3989
|
+
function $i(e, t) {
|
|
3990
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3991
|
+
return n[r] = Ri(e[r], t[r]), n;
|
|
4006
3992
|
}, E({}, e)) : e;
|
|
4007
3993
|
}
|
|
4008
|
-
function
|
|
3994
|
+
function Ge(e) {
|
|
4009
3995
|
return {
|
|
4010
3996
|
create: function() {
|
|
4011
3997
|
return {
|
|
4012
3998
|
get: function(t) {
|
|
4013
3999
|
return e[t];
|
|
4014
4000
|
},
|
|
4015
|
-
set: function(t,
|
|
4016
|
-
e[t] =
|
|
4001
|
+
set: function(t, n) {
|
|
4002
|
+
e[t] = n;
|
|
4017
4003
|
}
|
|
4018
4004
|
};
|
|
4019
4005
|
}
|
|
4020
4006
|
};
|
|
4021
4007
|
}
|
|
4022
|
-
function
|
|
4008
|
+
function Gi(e) {
|
|
4023
4009
|
return e === void 0 && (e = {
|
|
4024
4010
|
number: {},
|
|
4025
4011
|
dateTime: {},
|
|
4026
4012
|
pluralRules: {}
|
|
4027
4013
|
}), {
|
|
4028
|
-
getNumberFormat:
|
|
4029
|
-
for (var t,
|
|
4030
|
-
r
|
|
4031
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0],
|
|
4014
|
+
getNumberFormat: Le(function() {
|
|
4015
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4016
|
+
n[r] = arguments[r];
|
|
4017
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4032
4018
|
}, {
|
|
4033
|
-
cache:
|
|
4034
|
-
strategy:
|
|
4019
|
+
cache: Ge(e.number),
|
|
4020
|
+
strategy: Re.variadic
|
|
4035
4021
|
}),
|
|
4036
|
-
getDateTimeFormat:
|
|
4037
|
-
for (var t,
|
|
4038
|
-
r
|
|
4039
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0],
|
|
4022
|
+
getDateTimeFormat: Le(function() {
|
|
4023
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4024
|
+
n[r] = arguments[r];
|
|
4025
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
|
|
4040
4026
|
}, {
|
|
4041
|
-
cache:
|
|
4042
|
-
strategy:
|
|
4027
|
+
cache: Ge(e.dateTime),
|
|
4028
|
+
strategy: Re.variadic
|
|
4043
4029
|
}),
|
|
4044
|
-
getPluralRules:
|
|
4045
|
-
for (var t,
|
|
4046
|
-
r
|
|
4047
|
-
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0],
|
|
4030
|
+
getPluralRules: Le(function() {
|
|
4031
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4032
|
+
n[r] = arguments[r];
|
|
4033
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
|
|
4048
4034
|
}, {
|
|
4049
|
-
cache:
|
|
4050
|
-
strategy:
|
|
4035
|
+
cache: Ge(e.pluralRules),
|
|
4036
|
+
strategy: Re.variadic
|
|
4051
4037
|
})
|
|
4052
4038
|
};
|
|
4053
4039
|
}
|
|
4054
|
-
var
|
|
4040
|
+
var Ui = (
|
|
4055
4041
|
/** @class */
|
|
4056
4042
|
function() {
|
|
4057
|
-
function e(t,
|
|
4058
|
-
|
|
4043
|
+
function e(t, n, r, i) {
|
|
4044
|
+
n === void 0 && (n = e.defaultLocale);
|
|
4059
4045
|
var o = this;
|
|
4060
4046
|
if (this.formatterCache = {
|
|
4061
4047
|
number: {},
|
|
@@ -4065,8 +4051,8 @@ var Fi = (
|
|
|
4065
4051
|
var u = o.formatToParts(l);
|
|
4066
4052
|
if (u.length === 1)
|
|
4067
4053
|
return u[0].value;
|
|
4068
|
-
var h = u.reduce(function(
|
|
4069
|
-
return !
|
|
4054
|
+
var h = u.reduce(function(f, c) {
|
|
4055
|
+
return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4070
4056
|
}, []);
|
|
4071
4057
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4072
4058
|
}, this.formatToParts = function(l) {
|
|
@@ -4078,18 +4064,18 @@ var Fi = (
|
|
|
4078
4064
|
};
|
|
4079
4065
|
}, this.getAst = function() {
|
|
4080
4066
|
return o.ast;
|
|
4081
|
-
}, this.locales =
|
|
4067
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
4082
4068
|
if (this.message = t, !e.__parse)
|
|
4083
4069
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4084
4070
|
var s = i || {};
|
|
4085
4071
|
s.formatters;
|
|
4086
|
-
var a =
|
|
4072
|
+
var a = gr(s, ["formatters"]);
|
|
4087
4073
|
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
4088
4074
|
} else
|
|
4089
4075
|
this.ast = t;
|
|
4090
4076
|
if (!Array.isArray(this.ast))
|
|
4091
4077
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4092
|
-
this.formats =
|
|
4078
|
+
this.formats = $i(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
|
|
4093
4079
|
}
|
|
4094
4080
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4095
4081
|
get: function() {
|
|
@@ -4099,10 +4085,10 @@ var Fi = (
|
|
|
4099
4085
|
configurable: !0
|
|
4100
4086
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4101
4087
|
if (typeof Intl.Locale != "undefined") {
|
|
4102
|
-
var
|
|
4103
|
-
return
|
|
4088
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4089
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4104
4090
|
}
|
|
4105
|
-
}, e.__parse =
|
|
4091
|
+
}, e.__parse = Oi, e.formats = {
|
|
4106
4092
|
number: {
|
|
4107
4093
|
integer: {
|
|
4108
4094
|
maximumFractionDigits: 0
|
|
@@ -4163,113 +4149,113 @@ var Fi = (
|
|
|
4163
4149
|
}, e;
|
|
4164
4150
|
}()
|
|
4165
4151
|
);
|
|
4166
|
-
function
|
|
4152
|
+
function Di(e, t) {
|
|
4167
4153
|
if (t == null)
|
|
4168
4154
|
return;
|
|
4169
4155
|
if (t in e)
|
|
4170
4156
|
return e[t];
|
|
4171
|
-
const
|
|
4172
|
-
let
|
|
4173
|
-
for (let i = 0; i <
|
|
4174
|
-
if (typeof
|
|
4157
|
+
const n = t.split(".");
|
|
4158
|
+
let r = e;
|
|
4159
|
+
for (let i = 0; i < n.length; i++)
|
|
4160
|
+
if (typeof r == "object") {
|
|
4175
4161
|
if (i > 0) {
|
|
4176
|
-
const o =
|
|
4177
|
-
if (o in
|
|
4178
|
-
|
|
4162
|
+
const o = n.slice(i, n.length).join(".");
|
|
4163
|
+
if (o in r) {
|
|
4164
|
+
r = r[o];
|
|
4179
4165
|
break;
|
|
4180
4166
|
}
|
|
4181
4167
|
}
|
|
4182
|
-
|
|
4168
|
+
r = r[n[i]];
|
|
4183
4169
|
} else
|
|
4184
|
-
|
|
4185
|
-
return
|
|
4170
|
+
r = void 0;
|
|
4171
|
+
return r;
|
|
4186
4172
|
}
|
|
4187
|
-
const G = {},
|
|
4173
|
+
const G = {}, Fi = (e, t, n) => n && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = n), n), xn = (e, t) => {
|
|
4188
4174
|
if (t == null)
|
|
4189
4175
|
return;
|
|
4190
4176
|
if (t in G && e in G[t])
|
|
4191
4177
|
return G[t][e];
|
|
4192
|
-
const
|
|
4193
|
-
for (let
|
|
4194
|
-
const i = r
|
|
4178
|
+
const n = Ce(t);
|
|
4179
|
+
for (let r = 0; r < n.length; r++) {
|
|
4180
|
+
const i = n[r], o = ki(i, e);
|
|
4195
4181
|
if (o)
|
|
4196
|
-
return
|
|
4182
|
+
return Fi(e, t, o);
|
|
4197
4183
|
}
|
|
4198
4184
|
};
|
|
4199
|
-
let
|
|
4185
|
+
let st;
|
|
4200
4186
|
const he = Ae({});
|
|
4201
|
-
function
|
|
4202
|
-
return
|
|
4187
|
+
function ji(e) {
|
|
4188
|
+
return st[e] || null;
|
|
4203
4189
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return e in
|
|
4190
|
+
function En(e) {
|
|
4191
|
+
return e in st;
|
|
4206
4192
|
}
|
|
4207
|
-
function
|
|
4208
|
-
if (!
|
|
4193
|
+
function ki(e, t) {
|
|
4194
|
+
if (!En(e))
|
|
4209
4195
|
return null;
|
|
4210
|
-
const
|
|
4211
|
-
return
|
|
4196
|
+
const n = ji(e);
|
|
4197
|
+
return Di(n, t);
|
|
4212
4198
|
}
|
|
4213
|
-
function
|
|
4199
|
+
function Vi(e) {
|
|
4214
4200
|
if (e == null)
|
|
4215
4201
|
return;
|
|
4216
4202
|
const t = Ce(e);
|
|
4217
|
-
for (let
|
|
4218
|
-
const
|
|
4219
|
-
if (
|
|
4220
|
-
return
|
|
4203
|
+
for (let n = 0; n < t.length; n++) {
|
|
4204
|
+
const r = t[n];
|
|
4205
|
+
if (En(r))
|
|
4206
|
+
return r;
|
|
4221
4207
|
}
|
|
4222
4208
|
}
|
|
4223
|
-
function
|
|
4224
|
-
delete G[e], he.update((
|
|
4209
|
+
function wn(e, ...t) {
|
|
4210
|
+
delete G[e], he.update((n) => (n[e] = Zr.all([n[e] || {}, ...t]), n));
|
|
4225
4211
|
}
|
|
4226
4212
|
K(
|
|
4227
4213
|
[he],
|
|
4228
4214
|
([e]) => Object.keys(e)
|
|
4229
4215
|
);
|
|
4230
|
-
he.subscribe((e) =>
|
|
4216
|
+
he.subscribe((e) => st = e);
|
|
4231
4217
|
const ve = {};
|
|
4232
|
-
function
|
|
4218
|
+
function Xi(e, t) {
|
|
4233
4219
|
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
4234
4220
|
}
|
|
4235
|
-
function
|
|
4221
|
+
function Sn(e) {
|
|
4236
4222
|
return ve[e];
|
|
4237
4223
|
}
|
|
4238
|
-
function
|
|
4224
|
+
function zi(e) {
|
|
4239
4225
|
return Ce(e).map((t) => {
|
|
4240
|
-
const
|
|
4241
|
-
return [t,
|
|
4226
|
+
const n = Sn(t);
|
|
4227
|
+
return [t, n ? [...n] : []];
|
|
4242
4228
|
}).filter(([, t]) => t.length > 0);
|
|
4243
4229
|
}
|
|
4244
|
-
function
|
|
4230
|
+
function et(e) {
|
|
4245
4231
|
return e == null ? !1 : Ce(e).some(
|
|
4246
4232
|
(t) => {
|
|
4247
|
-
var
|
|
4248
|
-
return (
|
|
4233
|
+
var n;
|
|
4234
|
+
return (n = Sn(t)) == null ? void 0 : n.size;
|
|
4249
4235
|
}
|
|
4250
4236
|
);
|
|
4251
4237
|
}
|
|
4252
|
-
function
|
|
4238
|
+
function Wi(e, t) {
|
|
4253
4239
|
return Promise.all(
|
|
4254
|
-
t.map((
|
|
4255
|
-
).then((
|
|
4240
|
+
t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
|
|
4241
|
+
).then((r) => wn(e, ...r));
|
|
4256
4242
|
}
|
|
4257
|
-
const
|
|
4258
|
-
function
|
|
4259
|
-
if (!
|
|
4260
|
-
return e in
|
|
4261
|
-
const t =
|
|
4262
|
-
return
|
|
4243
|
+
const re = {};
|
|
4244
|
+
function Tn(e) {
|
|
4245
|
+
if (!et(e))
|
|
4246
|
+
return e in re ? re[e] : Promise.resolve();
|
|
4247
|
+
const t = zi(e);
|
|
4248
|
+
return re[e] = Promise.all(
|
|
4263
4249
|
t.map(
|
|
4264
|
-
([
|
|
4250
|
+
([n, r]) => Wi(n, r)
|
|
4265
4251
|
)
|
|
4266
4252
|
).then(() => {
|
|
4267
|
-
if (
|
|
4268
|
-
return
|
|
4269
|
-
delete
|
|
4270
|
-
}),
|
|
4253
|
+
if (et(e))
|
|
4254
|
+
return Tn(e);
|
|
4255
|
+
delete re[e];
|
|
4256
|
+
}), re[e];
|
|
4271
4257
|
}
|
|
4272
|
-
const
|
|
4258
|
+
const Zi = {
|
|
4273
4259
|
number: {
|
|
4274
4260
|
scientific: { notation: "scientific" },
|
|
4275
4261
|
engineering: { notation: "engineering" },
|
|
@@ -4298,136 +4284,136 @@ const Ji = {
|
|
|
4298
4284
|
timeZoneName: "short"
|
|
4299
4285
|
}
|
|
4300
4286
|
}
|
|
4301
|
-
},
|
|
4287
|
+
}, Qi = {
|
|
4302
4288
|
fallbackLocale: null,
|
|
4303
4289
|
loadingDelay: 200,
|
|
4304
|
-
formats:
|
|
4290
|
+
formats: Zi,
|
|
4305
4291
|
warnOnMissingMessages: !0,
|
|
4306
4292
|
handleMissingMessage: void 0,
|
|
4307
4293
|
ignoreTag: !0
|
|
4308
|
-
},
|
|
4294
|
+
}, Ji = Qi;
|
|
4309
4295
|
function Y() {
|
|
4310
|
-
return
|
|
4311
|
-
}
|
|
4312
|
-
const
|
|
4313
|
-
var
|
|
4314
|
-
for (var
|
|
4315
|
-
|
|
4316
|
-
if (
|
|
4317
|
-
for (var
|
|
4318
|
-
|
|
4296
|
+
return Ji;
|
|
4297
|
+
}
|
|
4298
|
+
const Ue = Ae(!1);
|
|
4299
|
+
var qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
|
|
4300
|
+
for (var n in t)
|
|
4301
|
+
eo.call(t, n) && Nt(e, n, t[n]);
|
|
4302
|
+
if (Mt)
|
|
4303
|
+
for (var n of Mt(t))
|
|
4304
|
+
to.call(t, n) && Nt(e, n, t[n]);
|
|
4319
4305
|
return e;
|
|
4320
|
-
},
|
|
4321
|
-
let
|
|
4306
|
+
}, ro = (e, t) => Yi(e, Ki(t));
|
|
4307
|
+
let tt;
|
|
4322
4308
|
const we = Ae(null);
|
|
4323
|
-
function
|
|
4324
|
-
return e.split("-").map((t,
|
|
4309
|
+
function Lt(e) {
|
|
4310
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4325
4311
|
}
|
|
4326
4312
|
function Ce(e, t = Y().fallbackLocale) {
|
|
4327
|
-
const
|
|
4328
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4313
|
+
const n = Lt(e);
|
|
4314
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Lt(t)])] : n;
|
|
4329
4315
|
}
|
|
4330
4316
|
function F() {
|
|
4331
|
-
return
|
|
4317
|
+
return tt != null ? tt : void 0;
|
|
4332
4318
|
}
|
|
4333
4319
|
we.subscribe((e) => {
|
|
4334
|
-
|
|
4320
|
+
tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4335
4321
|
});
|
|
4336
|
-
const
|
|
4337
|
-
if (e &&
|
|
4322
|
+
const io = (e) => {
|
|
4323
|
+
if (e && Vi(e) && et(e)) {
|
|
4338
4324
|
const { loadingDelay: t } = Y();
|
|
4339
|
-
let
|
|
4340
|
-
return typeof window != "undefined" && F() != null && t ?
|
|
4341
|
-
() =>
|
|
4325
|
+
let n;
|
|
4326
|
+
return typeof window != "undefined" && F() != null && t ? n = window.setTimeout(
|
|
4327
|
+
() => Ue.set(!0),
|
|
4342
4328
|
t
|
|
4343
|
-
) :
|
|
4329
|
+
) : Ue.set(!0), Tn(e).then(() => {
|
|
4344
4330
|
we.set(e);
|
|
4345
4331
|
}).finally(() => {
|
|
4346
|
-
clearTimeout(
|
|
4332
|
+
clearTimeout(n), Ue.set(!1);
|
|
4347
4333
|
});
|
|
4348
4334
|
}
|
|
4349
4335
|
return we.set(e);
|
|
4350
|
-
}, ee =
|
|
4351
|
-
set:
|
|
4336
|
+
}, ee = ro(no({}, we), {
|
|
4337
|
+
set: io
|
|
4352
4338
|
}), Pe = (e) => {
|
|
4353
4339
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4354
|
-
return (
|
|
4355
|
-
const i = JSON.stringify(
|
|
4356
|
-
return i in t ? t[i] : t[i] = e(
|
|
4340
|
+
return (r) => {
|
|
4341
|
+
const i = JSON.stringify(r);
|
|
4342
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4357
4343
|
};
|
|
4358
4344
|
};
|
|
4359
|
-
var
|
|
4360
|
-
for (var
|
|
4361
|
-
|
|
4345
|
+
var oo = Object.defineProperty, Se = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Rt = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
|
|
4346
|
+
for (var n in t || (t = {}))
|
|
4347
|
+
Hn.call(t, n) && Rt(e, n, t[n]);
|
|
4362
4348
|
if (Se)
|
|
4363
|
-
for (var
|
|
4364
|
-
|
|
4349
|
+
for (var n of Se(t))
|
|
4350
|
+
An.call(t, n) && Rt(e, n, t[n]);
|
|
4365
4351
|
return e;
|
|
4366
4352
|
}, te = (e, t) => {
|
|
4367
|
-
var
|
|
4368
|
-
for (var
|
|
4369
|
-
|
|
4353
|
+
var n = {};
|
|
4354
|
+
for (var r in e)
|
|
4355
|
+
Hn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4370
4356
|
if (e != null && Se)
|
|
4371
|
-
for (var
|
|
4372
|
-
t.indexOf(
|
|
4373
|
-
return
|
|
4357
|
+
for (var r of Se(e))
|
|
4358
|
+
t.indexOf(r) < 0 && An.call(e, r) && (n[r] = e[r]);
|
|
4359
|
+
return n;
|
|
4374
4360
|
};
|
|
4375
4361
|
const ae = (e, t) => {
|
|
4376
|
-
const { formats:
|
|
4377
|
-
if (e in
|
|
4378
|
-
return
|
|
4362
|
+
const { formats: n } = Y();
|
|
4363
|
+
if (e in n && t in n[e])
|
|
4364
|
+
return n[e][t];
|
|
4379
4365
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4380
|
-
},
|
|
4366
|
+
}, so = Pe(
|
|
4381
4367
|
(e) => {
|
|
4382
|
-
var t = e, { locale:
|
|
4383
|
-
if (
|
|
4368
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4369
|
+
if (n == null)
|
|
4384
4370
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4385
|
-
return
|
|
4371
|
+
return r && (i = ae("number", r)), new Intl.NumberFormat(n, i);
|
|
4386
4372
|
}
|
|
4387
|
-
),
|
|
4373
|
+
), ao = Pe(
|
|
4388
4374
|
(e) => {
|
|
4389
|
-
var t = e, { locale:
|
|
4390
|
-
if (
|
|
4375
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4376
|
+
if (n == null)
|
|
4391
4377
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4392
|
-
return
|
|
4378
|
+
return r ? i = ae("date", r) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4393
4379
|
}
|
|
4394
|
-
),
|
|
4380
|
+
), uo = Pe(
|
|
4395
4381
|
(e) => {
|
|
4396
|
-
var t = e, { locale:
|
|
4397
|
-
if (
|
|
4382
|
+
var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
|
|
4383
|
+
if (n == null)
|
|
4398
4384
|
throw new Error(
|
|
4399
4385
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4400
4386
|
);
|
|
4401
|
-
return
|
|
4387
|
+
return r ? i = ae("time", r) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4402
4388
|
}
|
|
4403
|
-
),
|
|
4389
|
+
), lo = (e = {}) => {
|
|
4404
4390
|
var t = e, {
|
|
4405
|
-
locale:
|
|
4406
|
-
} = t,
|
|
4391
|
+
locale: n = F()
|
|
4392
|
+
} = t, r = te(t, [
|
|
4407
4393
|
"locale"
|
|
4408
4394
|
]);
|
|
4409
|
-
return
|
|
4410
|
-
},
|
|
4395
|
+
return so(at({ locale: n }, r));
|
|
4396
|
+
}, ho = (e = {}) => {
|
|
4411
4397
|
var t = e, {
|
|
4412
|
-
locale:
|
|
4413
|
-
} = t,
|
|
4398
|
+
locale: n = F()
|
|
4399
|
+
} = t, r = te(t, [
|
|
4414
4400
|
"locale"
|
|
4415
4401
|
]);
|
|
4416
|
-
return
|
|
4417
|
-
},
|
|
4402
|
+
return ao(at({ locale: n }, r));
|
|
4403
|
+
}, fo = (e = {}) => {
|
|
4418
4404
|
var t = e, {
|
|
4419
|
-
locale:
|
|
4420
|
-
} = t,
|
|
4405
|
+
locale: n = F()
|
|
4406
|
+
} = t, r = te(t, [
|
|
4421
4407
|
"locale"
|
|
4422
4408
|
]);
|
|
4423
|
-
return
|
|
4424
|
-
},
|
|
4409
|
+
return uo(at({ locale: n }, r));
|
|
4410
|
+
}, co = Pe(
|
|
4425
4411
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4426
|
-
(e, t = F()) => new
|
|
4412
|
+
(e, t = F()) => new Ui(e, t, Y().formats, {
|
|
4427
4413
|
ignoreTag: Y().ignoreTag
|
|
4428
4414
|
})
|
|
4429
|
-
),
|
|
4430
|
-
var
|
|
4415
|
+
), mo = (e, t = {}) => {
|
|
4416
|
+
var n, r, i, o;
|
|
4431
4417
|
let s = t;
|
|
4432
4418
|
typeof e == "object" && (s = e, e = s.id);
|
|
4433
4419
|
const {
|
|
@@ -4439,62 +4425,62 @@ const ae = (e, t) => {
|
|
|
4439
4425
|
throw new Error(
|
|
4440
4426
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4441
4427
|
);
|
|
4442
|
-
let h =
|
|
4428
|
+
let h = xn(e, l);
|
|
4443
4429
|
if (!h)
|
|
4444
|
-
h = (o = (i = (
|
|
4430
|
+
h = (o = (i = (r = (n = Y()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4445
4431
|
else if (typeof h != "string")
|
|
4446
4432
|
return console.warn(
|
|
4447
4433
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4448
4434
|
), h;
|
|
4449
4435
|
if (!a)
|
|
4450
4436
|
return h;
|
|
4451
|
-
let
|
|
4437
|
+
let f = h;
|
|
4452
4438
|
try {
|
|
4453
|
-
|
|
4454
|
-
} catch (
|
|
4455
|
-
|
|
4439
|
+
f = co(h, l).format(a);
|
|
4440
|
+
} catch (c) {
|
|
4441
|
+
c instanceof Error && console.warn(
|
|
4456
4442
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4457
|
-
|
|
4443
|
+
c.message
|
|
4458
4444
|
);
|
|
4459
4445
|
}
|
|
4460
|
-
return
|
|
4461
|
-
},
|
|
4446
|
+
return f;
|
|
4447
|
+
}, po = (e, t) => fo(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), yo = (e, t = F()) => xn(e, t), vo = K([ee, he], () => mo);
|
|
4448
|
+
K([ee], () => po);
|
|
4449
|
+
K([ee], () => bo);
|
|
4462
4450
|
K([ee], () => go);
|
|
4463
|
-
K([ee], () => yo);
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
const Eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4468
|
-
function wo(e, t) {
|
|
4451
|
+
K([ee, he], () => yo);
|
|
4452
|
+
window.emWidgets = { topic: Or };
|
|
4453
|
+
const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4454
|
+
function xo(e, t) {
|
|
4469
4455
|
if (e) {
|
|
4470
|
-
const
|
|
4471
|
-
|
|
4456
|
+
const n = document.createElement("style");
|
|
4457
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4472
4458
|
}
|
|
4473
4459
|
}
|
|
4474
|
-
function
|
|
4475
|
-
const
|
|
4476
|
-
fetch(
|
|
4460
|
+
function Eo(e, t) {
|
|
4461
|
+
const n = new URL(t);
|
|
4462
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4477
4463
|
const i = document.createElement("style");
|
|
4478
|
-
i.innerHTML =
|
|
4479
|
-
}).catch((
|
|
4480
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4464
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4465
|
+
}).catch((r) => {
|
|
4466
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4481
4467
|
});
|
|
4482
4468
|
}
|
|
4483
|
-
function
|
|
4469
|
+
function wo(e, t, n) {
|
|
4484
4470
|
if (window.emMessageBus) {
|
|
4485
|
-
const
|
|
4471
|
+
const r = document.createElement("style");
|
|
4486
4472
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4487
|
-
|
|
4473
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4488
4474
|
});
|
|
4489
4475
|
}
|
|
4490
4476
|
}
|
|
4491
|
-
function
|
|
4492
|
-
|
|
4477
|
+
function $t(e, t) {
|
|
4478
|
+
wn(e, t);
|
|
4493
4479
|
}
|
|
4494
|
-
function
|
|
4480
|
+
function So(e) {
|
|
4495
4481
|
ee.set(e);
|
|
4496
4482
|
}
|
|
4497
|
-
const
|
|
4483
|
+
const Gt = {
|
|
4498
4484
|
en: {
|
|
4499
4485
|
cancel: "Cancel",
|
|
4500
4486
|
confirm: "Confirm"
|
|
@@ -4540,41 +4526,41 @@ const Dt = {
|
|
|
4540
4526
|
confirm: "Confirm"
|
|
4541
4527
|
}
|
|
4542
4528
|
};
|
|
4543
|
-
function
|
|
4544
|
-
|
|
4529
|
+
function To(e) {
|
|
4530
|
+
zn(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}');
|
|
4545
4531
|
}
|
|
4546
|
-
const
|
|
4547
|
-
function
|
|
4548
|
-
let t,
|
|
4532
|
+
const Ho = (e) => ({}), Ut = (e) => ({});
|
|
4533
|
+
function Ao(e) {
|
|
4534
|
+
let t, n;
|
|
4549
4535
|
return {
|
|
4550
4536
|
c() {
|
|
4551
|
-
t =
|
|
4537
|
+
t = mt("svg"), n = mt("path"), T(n, "stroke-linecap", "round"), T(n, "stroke-linejoin", "round"), T(n, "stroke-width", "2"), T(n, "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");
|
|
4552
4538
|
},
|
|
4553
|
-
m(
|
|
4554
|
-
ue(
|
|
4539
|
+
m(r, i) {
|
|
4540
|
+
ue(r, t, i), C(t, n);
|
|
4555
4541
|
},
|
|
4556
4542
|
p: N,
|
|
4557
|
-
d(
|
|
4558
|
-
|
|
4543
|
+
d(r) {
|
|
4544
|
+
r && D(t);
|
|
4559
4545
|
}
|
|
4560
4546
|
};
|
|
4561
4547
|
}
|
|
4562
|
-
function
|
|
4563
|
-
let t,
|
|
4548
|
+
function Dt(e) {
|
|
4549
|
+
let t, n, r;
|
|
4564
4550
|
return {
|
|
4565
4551
|
c() {
|
|
4566
|
-
t = M("div"),
|
|
4552
|
+
t = M("div"), n = M("h2"), r = le(
|
|
4567
4553
|
/*modaltitle*/
|
|
4568
4554
|
e[1]
|
|
4569
|
-
),
|
|
4555
|
+
), T(t, "class", "GeneralConfirmationTitle");
|
|
4570
4556
|
},
|
|
4571
4557
|
m(i, o) {
|
|
4572
|
-
ue(i, t, o), C(t,
|
|
4558
|
+
ue(i, t, o), C(t, n), C(n, r);
|
|
4573
4559
|
},
|
|
4574
4560
|
p(i, o) {
|
|
4575
4561
|
o & /*modaltitle*/
|
|
4576
|
-
2 &&
|
|
4577
|
-
|
|
4562
|
+
2 && it(
|
|
4563
|
+
r,
|
|
4578
4564
|
/*modaltitle*/
|
|
4579
4565
|
i[1]
|
|
4580
4566
|
);
|
|
@@ -4584,17 +4570,17 @@ function jt(e) {
|
|
|
4584
4570
|
}
|
|
4585
4571
|
};
|
|
4586
4572
|
}
|
|
4587
|
-
function
|
|
4588
|
-
let t,
|
|
4573
|
+
function Ft(e) {
|
|
4574
|
+
let t, n = (
|
|
4589
4575
|
/*$_*/
|
|
4590
4576
|
e[4]("cancel") + ""
|
|
4591
|
-
),
|
|
4577
|
+
), r, i, o;
|
|
4592
4578
|
return {
|
|
4593
4579
|
c() {
|
|
4594
|
-
t = M("button"),
|
|
4580
|
+
t = M("button"), r = le(n), T(t, "class", "GeneralCancelButton");
|
|
4595
4581
|
},
|
|
4596
4582
|
m(s, a) {
|
|
4597
|
-
ue(s, t, a), C(t,
|
|
4583
|
+
ue(s, t, a), C(t, r), i || (o = De(
|
|
4598
4584
|
t,
|
|
4599
4585
|
"click",
|
|
4600
4586
|
/*click_handler*/
|
|
@@ -4603,169 +4589,169 @@ function kt(e) {
|
|
|
4603
4589
|
},
|
|
4604
4590
|
p(s, a) {
|
|
4605
4591
|
a & /*$_*/
|
|
4606
|
-
16 &&
|
|
4607
|
-
s[4]("cancel") + "") &&
|
|
4592
|
+
16 && n !== (n = /*$_*/
|
|
4593
|
+
s[4]("cancel") + "") && it(r, n);
|
|
4608
4594
|
},
|
|
4609
4595
|
d(s) {
|
|
4610
4596
|
s && D(t), i = !1, o();
|
|
4611
4597
|
}
|
|
4612
4598
|
};
|
|
4613
4599
|
}
|
|
4614
|
-
function
|
|
4615
|
-
let t,
|
|
4600
|
+
function Bo(e) {
|
|
4601
|
+
let t, n, r, i, o, s, a, l, u, h, f = (
|
|
4616
4602
|
/*$_*/
|
|
4617
4603
|
e[4]("confirm") + ""
|
|
4618
|
-
),
|
|
4604
|
+
), c, m, d, p;
|
|
4619
4605
|
const g = (
|
|
4620
4606
|
/*#slots*/
|
|
4621
4607
|
e[16].close
|
|
4622
|
-
),
|
|
4608
|
+
), H = Dn(
|
|
4623
4609
|
g,
|
|
4624
4610
|
e,
|
|
4625
4611
|
/*$$scope*/
|
|
4626
4612
|
e[15],
|
|
4627
|
-
|
|
4628
|
-
),
|
|
4613
|
+
Ut
|
|
4614
|
+
), A = H || Ao();
|
|
4629
4615
|
let x = (
|
|
4630
4616
|
/*modaltitle*/
|
|
4631
|
-
e[1] &&
|
|
4617
|
+
e[1] && Dt(e)
|
|
4632
4618
|
), w = (
|
|
4633
4619
|
/*hascancelbutton*/
|
|
4634
|
-
e[2] &&
|
|
4620
|
+
e[2] && Ft(e)
|
|
4635
4621
|
);
|
|
4636
4622
|
return {
|
|
4637
4623
|
c() {
|
|
4638
|
-
t = M("div"),
|
|
4639
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4640
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4624
|
+
t = M("div"), n = M("div"), r = M("span"), A.c(), i = ce(), x && x.c(), o = ce(), s = M("div"), a = ce(), l = M("div"), w && w.c(), u = ce(), h = M("button"), c = le(f), T(r, "class", "ModalCloseBtn"), T(r, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4625
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(n, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4626
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4641
4627
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4642
4628
|
},
|
|
4643
4629
|
m(b, B) {
|
|
4644
|
-
ue(b, t, B), C(t,
|
|
4645
|
-
e[0], C(
|
|
4646
|
-
|
|
4647
|
-
|
|
4630
|
+
ue(b, t, B), C(t, n), C(n, r), A.m(r, null), C(n, i), x && x.m(n, null), C(n, o), C(n, s), s.innerHTML = /*modaltext*/
|
|
4631
|
+
e[0], C(n, a), C(n, l), w && w.m(l, null), C(l, u), C(l, h), C(h, c), e[19](t), m = !0, d || (p = [
|
|
4632
|
+
De(
|
|
4633
|
+
r,
|
|
4648
4634
|
"click",
|
|
4649
4635
|
/*close*/
|
|
4650
4636
|
e[6]
|
|
4651
4637
|
),
|
|
4652
|
-
|
|
4638
|
+
De(
|
|
4653
4639
|
h,
|
|
4654
4640
|
"click",
|
|
4655
4641
|
/*click_handler_1*/
|
|
4656
4642
|
e[18]
|
|
4657
4643
|
)
|
|
4658
|
-
],
|
|
4644
|
+
], d = !0);
|
|
4659
4645
|
},
|
|
4660
4646
|
p(b, [B]) {
|
|
4661
|
-
|
|
4662
|
-
32768) &&
|
|
4663
|
-
|
|
4647
|
+
H && H.p && (!m || B & /*$$scope*/
|
|
4648
|
+
32768) && jn(
|
|
4649
|
+
H,
|
|
4664
4650
|
g,
|
|
4665
4651
|
b,
|
|
4666
4652
|
/*$$scope*/
|
|
4667
4653
|
b[15],
|
|
4668
|
-
|
|
4654
|
+
m ? Fn(
|
|
4669
4655
|
g,
|
|
4670
4656
|
/*$$scope*/
|
|
4671
4657
|
b[15],
|
|
4672
4658
|
B,
|
|
4673
|
-
|
|
4674
|
-
) :
|
|
4659
|
+
Ho
|
|
4660
|
+
) : kn(
|
|
4675
4661
|
/*$$scope*/
|
|
4676
4662
|
b[15]
|
|
4677
4663
|
),
|
|
4678
|
-
|
|
4664
|
+
Ut
|
|
4679
4665
|
), /*modaltitle*/
|
|
4680
|
-
b[1] ? x ? x.p(b, B) : (x =
|
|
4666
|
+
b[1] ? x ? x.p(b, B) : (x = Dt(b), x.c(), x.m(n, o)) : x && (x.d(1), x = null), (!m || B & /*modaltext*/
|
|
4681
4667
|
1) && (s.innerHTML = /*modaltext*/
|
|
4682
4668
|
b[0]), /*hascancelbutton*/
|
|
4683
|
-
b[2] ? w ? w.p(b, B) : (w =
|
|
4684
|
-
16) &&
|
|
4685
|
-
b[4]("confirm") + "") &&
|
|
4669
|
+
b[2] ? w ? w.p(b, B) : (w = Ft(b), w.c(), w.m(l, u)) : w && (w.d(1), w = null), (!m || B & /*$_*/
|
|
4670
|
+
16) && f !== (f = /*$_*/
|
|
4671
|
+
b[4]("confirm") + "") && it(c, f);
|
|
4686
4672
|
},
|
|
4687
4673
|
i(b) {
|
|
4688
|
-
|
|
4674
|
+
m || (Qt(A, b), m = !0);
|
|
4689
4675
|
},
|
|
4690
4676
|
o(b) {
|
|
4691
|
-
|
|
4677
|
+
ur(A, b), m = !1;
|
|
4692
4678
|
},
|
|
4693
4679
|
d(b) {
|
|
4694
|
-
b && D(t),
|
|
4680
|
+
b && D(t), A.d(b), x && x.d(), w && w.d(), e[19](null), d = !1, U(p);
|
|
4695
4681
|
}
|
|
4696
4682
|
};
|
|
4697
4683
|
}
|
|
4698
|
-
function
|
|
4699
|
-
let
|
|
4700
|
-
|
|
4701
|
-
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:
|
|
4684
|
+
function Co(e, t, n) {
|
|
4685
|
+
let r;
|
|
4686
|
+
Un(e, vo, (v) => n(4, r = v));
|
|
4687
|
+
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: f = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, g, H = window.navigator.userAgent, A = _o(H) !== "PC";
|
|
4702
4688
|
const x = () => {
|
|
4703
4689
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4704
4690
|
}, w = (v) => {
|
|
4705
4691
|
v === "confirm" && u && window.postMessage(u, window.location.href), v === "cancel" && h && window.postMessage(h, window.location.href), x();
|
|
4706
4692
|
}, b = () => {
|
|
4707
|
-
fetch(
|
|
4708
|
-
Object.keys(j).forEach((
|
|
4709
|
-
|
|
4693
|
+
fetch(d).then((j) => j.json()).then((j) => {
|
|
4694
|
+
Object.keys(j).forEach((ut) => {
|
|
4695
|
+
$t(ut, j[ut]);
|
|
4710
4696
|
});
|
|
4711
4697
|
}).catch((j) => {
|
|
4712
4698
|
console.log(j);
|
|
4713
4699
|
});
|
|
4714
4700
|
};
|
|
4715
|
-
Object.keys(
|
|
4716
|
-
|
|
4701
|
+
Object.keys(Gt).forEach((v) => {
|
|
4702
|
+
$t(v, Gt[v]);
|
|
4717
4703
|
});
|
|
4718
4704
|
const B = () => {
|
|
4719
|
-
|
|
4705
|
+
So(f);
|
|
4720
4706
|
};
|
|
4721
|
-
|
|
4707
|
+
nr(() => () => {
|
|
4722
4708
|
});
|
|
4723
|
-
const
|
|
4724
|
-
function
|
|
4725
|
-
|
|
4726
|
-
g = v,
|
|
4709
|
+
const fe = () => w("cancel"), Cn = () => w("confirm");
|
|
4710
|
+
function Pn(v) {
|
|
4711
|
+
Fe[v ? "unshift" : "push"](() => {
|
|
4712
|
+
g = v, n(3, g);
|
|
4727
4713
|
});
|
|
4728
4714
|
}
|
|
4729
4715
|
return e.$$set = (v) => {
|
|
4730
|
-
"modaltext" in v &&
|
|
4716
|
+
"modaltext" in v && n(0, s = v.modaltext), "modaltitle" in v && n(1, a = v.modaltitle), "hascancelbutton" in v && n(2, l = v.hascancelbutton), "modalconfirmevent" in v && n(8, u = v.modalconfirmevent), "modalcancelevent" in v && n(9, h = v.modalcancelevent), "lang" in v && n(10, f = v.lang), "clientstyling" in v && n(11, c = v.clientstyling), "clientstylingurl" in v && n(12, m = v.clientstylingurl), "translationurl" in v && n(13, d = v.translationurl), "mbsource" in v && n(14, p = v.mbsource), "$$scope" in v && n(15, o = v.$$scope);
|
|
4731
4717
|
}, e.$$.update = () => {
|
|
4732
4718
|
e.$$.dirty & /*modaltext, lang*/
|
|
4733
|
-
1025 && s &&
|
|
4734
|
-
2056 &&
|
|
4735
|
-
4104 &&
|
|
4736
|
-
16392 && p && g &&
|
|
4737
|
-
8192 &&
|
|
4719
|
+
1025 && s && f && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4720
|
+
2056 && c && g && xo(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4721
|
+
4104 && m && g && Eo(g, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4722
|
+
16392 && p && g && wo(g, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4723
|
+
8192 && d && b();
|
|
4738
4724
|
}, [
|
|
4739
4725
|
s,
|
|
4740
4726
|
a,
|
|
4741
4727
|
l,
|
|
4742
4728
|
g,
|
|
4743
|
-
|
|
4744
|
-
|
|
4729
|
+
r,
|
|
4730
|
+
A,
|
|
4745
4731
|
x,
|
|
4746
4732
|
w,
|
|
4747
4733
|
u,
|
|
4748
4734
|
h,
|
|
4749
|
-
c,
|
|
4750
4735
|
f,
|
|
4751
|
-
|
|
4736
|
+
c,
|
|
4752
4737
|
m,
|
|
4738
|
+
d,
|
|
4753
4739
|
p,
|
|
4754
4740
|
o,
|
|
4755
4741
|
i,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4742
|
+
fe,
|
|
4743
|
+
Cn,
|
|
4744
|
+
Pn
|
|
4759
4745
|
];
|
|
4760
4746
|
}
|
|
4761
|
-
class
|
|
4747
|
+
class Bn extends pr {
|
|
4762
4748
|
constructor(t) {
|
|
4763
|
-
super(),
|
|
4749
|
+
super(), dr(
|
|
4764
4750
|
this,
|
|
4765
4751
|
t,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4752
|
+
Co,
|
|
4753
|
+
Bo,
|
|
4754
|
+
kt,
|
|
4769
4755
|
{
|
|
4770
4756
|
modaltext: 0,
|
|
4771
4757
|
modaltitle: 1,
|
|
@@ -4778,7 +4764,7 @@ class Pr extends yn {
|
|
|
4778
4764
|
translationurl: 13,
|
|
4779
4765
|
mbsource: 14
|
|
4780
4766
|
},
|
|
4781
|
-
|
|
4767
|
+
To
|
|
4782
4768
|
);
|
|
4783
4769
|
}
|
|
4784
4770
|
get modaltext() {
|
|
@@ -4842,58 +4828,58 @@ class Pr extends yn {
|
|
|
4842
4828
|
this.$$set({ mbsource: t }), I();
|
|
4843
4829
|
}
|
|
4844
4830
|
}
|
|
4845
|
-
|
|
4846
|
-
const
|
|
4831
|
+
mr(Bn, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4832
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4847
4833
|
__proto__: null,
|
|
4848
|
-
default:
|
|
4834
|
+
default: Bn
|
|
4849
4835
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4850
4836
|
export {
|
|
4851
4837
|
ee as $,
|
|
4852
4838
|
wo as A,
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4839
|
+
Do as B,
|
|
4840
|
+
Mr as C,
|
|
4841
|
+
wn as D,
|
|
4856
4842
|
N as E,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4843
|
+
Un as F,
|
|
4844
|
+
_o as G,
|
|
4845
|
+
Uo as H,
|
|
4846
|
+
ce as I,
|
|
4861
4847
|
le as J,
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4848
|
+
mt as K,
|
|
4849
|
+
Lo as L,
|
|
4850
|
+
De as M,
|
|
4851
|
+
it as N,
|
|
4852
|
+
Oo as O,
|
|
4867
4853
|
U as P,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4854
|
+
Mo as Q,
|
|
4855
|
+
No as R,
|
|
4856
|
+
pr as S,
|
|
4857
|
+
vo as T,
|
|
4858
|
+
Fo as U,
|
|
4859
|
+
dr as a,
|
|
4860
|
+
zn as b,
|
|
4861
|
+
mr as c,
|
|
4876
4862
|
ue as d,
|
|
4877
|
-
|
|
4863
|
+
Io as e,
|
|
4878
4864
|
I as f,
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4865
|
+
ur as g,
|
|
4866
|
+
$o as h,
|
|
4867
|
+
Rn as i,
|
|
4882
4868
|
D as j,
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4869
|
+
Dn as k,
|
|
4870
|
+
M as l,
|
|
4871
|
+
T as m,
|
|
4872
|
+
C as n,
|
|
4873
|
+
nr as o,
|
|
4874
|
+
kn as p,
|
|
4875
|
+
Fn as q,
|
|
4876
|
+
Ee as r,
|
|
4877
|
+
kt as s,
|
|
4878
|
+
Qt as t,
|
|
4879
|
+
jn as u,
|
|
4880
|
+
Go as v,
|
|
4881
|
+
Ro as w,
|
|
4882
|
+
Fe as x,
|
|
4883
|
+
xo as y,
|
|
4884
|
+
Eo as z
|
|
4899
4885
|
};
|