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