@everymatrix/player-account-general-confirmation-modal 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountGeneralConfirmationModal-B7rHA2DP.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DyDievAv.js → PlayerAccountGeneralConfirmationModal-C4g1TLWM.js} +664 -602
- package/components/{PlayerAccountGeneralConfirmationModal-XENffl2y.js → PlayerAccountGeneralConfirmationModal-IY2sNbEx.js} +670 -608
- 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-BHNsJDJM.cjs +0 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
for (const r in t)
|
|
3
|
+
function dr(e, t) {
|
|
4
|
+
for (const r in t)
|
|
5
|
+
e[r] = t[r];
|
|
5
6
|
return (
|
|
6
7
|
/** @type {T & S} */
|
|
7
8
|
e
|
|
@@ -13,7 +14,7 @@ function Ct(e) {
|
|
|
13
14
|
function tt() {
|
|
14
15
|
return /* @__PURE__ */ Object.create(null);
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function Q(e) {
|
|
17
18
|
e.forEach(Ct);
|
|
18
19
|
}
|
|
19
20
|
function Qe(e) {
|
|
@@ -22,31 +23,31 @@ function Qe(e) {
|
|
|
22
23
|
function Pt(e, t) {
|
|
23
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function pr(e) {
|
|
26
27
|
return Object.keys(e).length === 0;
|
|
27
28
|
}
|
|
28
29
|
function Ot(e, ...t) {
|
|
29
30
|
if (e == null) {
|
|
30
31
|
for (const n of t)
|
|
31
32
|
n(void 0);
|
|
32
|
-
return
|
|
33
|
+
return N;
|
|
33
34
|
}
|
|
34
35
|
const r = e.subscribe(...t);
|
|
35
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function br(e, t, r) {
|
|
38
39
|
e.$$.on_destroy.push(Ot(t, r));
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function gr(e, t, r, n) {
|
|
41
42
|
if (e) {
|
|
42
43
|
const i = It(e, t, r, n);
|
|
43
44
|
return e[0](i);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
function It(e, t, r, n) {
|
|
47
|
-
return e[1] && n ?
|
|
48
|
+
return e[1] && n ? dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function vr(e, t, r, n) {
|
|
50
51
|
if (e[2] && n) {
|
|
51
52
|
const i = e[2](n(r));
|
|
52
53
|
if (t.dirty === void 0)
|
|
@@ -61,13 +62,13 @@ function yr(e, t, r, n) {
|
|
|
61
62
|
}
|
|
62
63
|
return t.dirty;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function yr(e, t, r, n, i, o) {
|
|
65
66
|
if (i) {
|
|
66
67
|
const s = It(t, r, n, o);
|
|
67
68
|
e.p(s, i);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function xr(e) {
|
|
71
72
|
if (e.ctx.length > 32) {
|
|
72
73
|
const t = [], r = e.ctx.length / 32;
|
|
73
74
|
for (let n = 0; n < r; n++)
|
|
@@ -76,18 +77,19 @@ function _r(e) {
|
|
|
76
77
|
}
|
|
77
78
|
return -1;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function B(e, t) {
|
|
80
81
|
e.appendChild(t);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
const n =
|
|
83
|
+
function _r(e, t, r) {
|
|
84
|
+
const n = Er(e);
|
|
84
85
|
if (!n.getElementById(t)) {
|
|
85
|
-
const i =
|
|
86
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
const i = M("style");
|
|
87
|
+
i.id = t, i.textContent = r, Sr(n, i);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!e)
|
|
90
|
+
function Er(e) {
|
|
91
|
+
if (!e)
|
|
92
|
+
return document;
|
|
91
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
92
94
|
return t && /** @type {ShadowRoot} */
|
|
93
95
|
t.host ? (
|
|
@@ -95,8 +97,8 @@ function Sr(e) {
|
|
|
95
97
|
t
|
|
96
98
|
) : e.ownerDocument;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
100
|
+
function Sr(e, t) {
|
|
101
|
+
return B(
|
|
100
102
|
/** @type {Document} */
|
|
101
103
|
e.head || e,
|
|
102
104
|
t
|
|
@@ -105,25 +107,25 @@ function Tr(e, t) {
|
|
|
105
107
|
function se(e, t, r) {
|
|
106
108
|
e.insertBefore(t, r || null);
|
|
107
109
|
}
|
|
108
|
-
function
|
|
110
|
+
function J(e) {
|
|
109
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function M(e) {
|
|
112
114
|
return document.createElement(e);
|
|
113
115
|
}
|
|
114
116
|
function rt(e) {
|
|
115
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
116
118
|
}
|
|
117
|
-
function
|
|
119
|
+
function re(e) {
|
|
118
120
|
return document.createTextNode(e);
|
|
119
121
|
}
|
|
120
122
|
function ue() {
|
|
121
|
-
return
|
|
123
|
+
return re(" ");
|
|
122
124
|
}
|
|
123
125
|
function Ie(e, t, r, n) {
|
|
124
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
125
127
|
}
|
|
126
|
-
function
|
|
128
|
+
function H(e, t, r) {
|
|
127
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
128
130
|
}
|
|
129
131
|
function wr(e) {
|
|
@@ -133,7 +135,7 @@ function be(e, t) {
|
|
|
133
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
134
136
|
t);
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function Tr(e) {
|
|
137
139
|
const t = {};
|
|
138
140
|
return e.childNodes.forEach(
|
|
139
141
|
/** @param {Element} node */
|
|
@@ -142,66 +144,76 @@ function Hr(e) {
|
|
|
142
144
|
}
|
|
143
145
|
), t;
|
|
144
146
|
}
|
|
145
|
-
let
|
|
146
|
-
function
|
|
147
|
-
|
|
147
|
+
let ne;
|
|
148
|
+
function te(e) {
|
|
149
|
+
ne = e;
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
function Hr() {
|
|
152
|
+
if (!ne)
|
|
153
|
+
throw new Error("Function called outside component initialization");
|
|
154
|
+
return ne;
|
|
155
|
+
}
|
|
156
|
+
function Br(e) {
|
|
157
|
+
Hr().$$.on_mount.push(e);
|
|
158
|
+
}
|
|
159
|
+
const j = [], Me = [];
|
|
160
|
+
let k = [];
|
|
161
|
+
const nt = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Ne = !1;
|
|
163
|
+
function Cr() {
|
|
164
|
+
Ne || (Ne = !0, Ar.then(O));
|
|
155
165
|
}
|
|
156
166
|
function Le(e) {
|
|
157
|
-
|
|
167
|
+
k.push(e);
|
|
158
168
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
169
|
+
const we = /* @__PURE__ */ new Set();
|
|
170
|
+
let D = 0;
|
|
171
|
+
function O() {
|
|
172
|
+
if (D !== 0)
|
|
163
173
|
return;
|
|
164
|
-
const e =
|
|
174
|
+
const e = ne;
|
|
165
175
|
do {
|
|
166
176
|
try {
|
|
167
|
-
for (;
|
|
168
|
-
const t =
|
|
169
|
-
|
|
177
|
+
for (; D < j.length; ) {
|
|
178
|
+
const t = j[D];
|
|
179
|
+
D++, te(t), Pr(t.$$);
|
|
170
180
|
}
|
|
171
181
|
} catch (t) {
|
|
172
|
-
throw
|
|
182
|
+
throw j.length = 0, D = 0, t;
|
|
173
183
|
}
|
|
174
|
-
for (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
184
|
+
for (te(null), j.length = 0, D = 0; Me.length; )
|
|
185
|
+
Me.pop()();
|
|
186
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
187
|
+
const r = k[t];
|
|
188
|
+
we.has(r) || (we.add(r), r());
|
|
178
189
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
190
|
+
k.length = 0;
|
|
191
|
+
} while (j.length);
|
|
181
192
|
for (; nt.length; )
|
|
182
193
|
nt.pop()();
|
|
183
|
-
|
|
194
|
+
Ne = !1, we.clear(), te(e);
|
|
184
195
|
}
|
|
185
|
-
function
|
|
196
|
+
function Pr(e) {
|
|
186
197
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
198
|
+
e.update(), Q(e.before_update);
|
|
188
199
|
const t = e.dirty;
|
|
189
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
190
201
|
}
|
|
191
202
|
}
|
|
192
|
-
function
|
|
203
|
+
function Or(e) {
|
|
193
204
|
const t = [], r = [];
|
|
194
|
-
|
|
205
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
195
206
|
}
|
|
196
207
|
const ce = /* @__PURE__ */ new Set();
|
|
197
|
-
let
|
|
198
|
-
function
|
|
208
|
+
let Ir;
|
|
209
|
+
function Mt(e, t) {
|
|
199
210
|
e && e.i && (ce.delete(e), e.i(t));
|
|
200
211
|
}
|
|
201
|
-
function
|
|
212
|
+
function Mr(e, t, r, n) {
|
|
202
213
|
if (e && e.o) {
|
|
203
|
-
if (ce.has(e))
|
|
204
|
-
|
|
214
|
+
if (ce.has(e))
|
|
215
|
+
return;
|
|
216
|
+
ce.add(e), Ir.c.push(() => {
|
|
205
217
|
ce.delete(e);
|
|
206
218
|
}), e.o(t);
|
|
207
219
|
}
|
|
@@ -210,25 +222,25 @@ function Nr(e, t, r) {
|
|
|
210
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
211
223
|
n && n.m(t, r), Le(() => {
|
|
212
224
|
const o = e.$$.on_mount.map(Ct).filter(Qe);
|
|
213
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Q(o), e.$$.on_mount = [];
|
|
214
226
|
}), i.forEach(Le);
|
|
215
227
|
}
|
|
216
|
-
function
|
|
228
|
+
function Lr(e, t) {
|
|
217
229
|
const r = e.$$;
|
|
218
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Or(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
219
231
|
}
|
|
220
|
-
function
|
|
221
|
-
e.$$.dirty[0] === -1 && (
|
|
232
|
+
function Rr(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
222
234
|
}
|
|
223
|
-
function
|
|
224
|
-
const l =
|
|
225
|
-
|
|
235
|
+
function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const l = ne;
|
|
237
|
+
te(e);
|
|
226
238
|
const u = e.$$ = {
|
|
227
239
|
fragment: null,
|
|
228
240
|
ctx: [],
|
|
229
241
|
// state
|
|
230
242
|
props: o,
|
|
231
|
-
update:
|
|
243
|
+
update: N,
|
|
232
244
|
not_equal: i,
|
|
233
245
|
bound: tt(),
|
|
234
246
|
// lifecycle
|
|
@@ -247,20 +259,20 @@ function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
247
259
|
s && s(u.root);
|
|
248
260
|
let h = !1;
|
|
249
261
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
250
|
-
const
|
|
251
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
252
|
-
}) : [], u.update(), h = !0,
|
|
262
|
+
const d = m.length ? m[0] : f;
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Rr(e, c)), f;
|
|
264
|
+
}) : [], u.update(), h = !0, Q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
253
265
|
if (t.hydrate) {
|
|
254
266
|
const c = wr(t.target);
|
|
255
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
256
268
|
} else
|
|
257
269
|
u.fragment && u.fragment.c();
|
|
258
|
-
t.intro &&
|
|
270
|
+
t.intro && Mt(e.$$.fragment), Nr(e, t.target, t.anchor), O();
|
|
259
271
|
}
|
|
260
|
-
|
|
272
|
+
te(l);
|
|
261
273
|
}
|
|
262
|
-
let
|
|
263
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Nt;
|
|
275
|
+
typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
264
276
|
/** The Svelte component constructor */
|
|
265
277
|
$$ctor;
|
|
266
278
|
/** Slots */
|
|
@@ -302,7 +314,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
302
314
|
let o;
|
|
303
315
|
return {
|
|
304
316
|
c: function() {
|
|
305
|
-
o =
|
|
317
|
+
o = M("slot"), i !== "default" && H(o, "name", i);
|
|
306
318
|
},
|
|
307
319
|
/**
|
|
308
320
|
* @param {HTMLElement} target
|
|
@@ -312,14 +324,14 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
312
324
|
se(l, o, u);
|
|
313
325
|
},
|
|
314
326
|
d: function(l) {
|
|
315
|
-
l &&
|
|
327
|
+
l && J(o);
|
|
316
328
|
}
|
|
317
329
|
};
|
|
318
330
|
};
|
|
319
331
|
};
|
|
320
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
333
|
return;
|
|
322
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Tr(this);
|
|
323
335
|
for (const i of this.$$s)
|
|
324
336
|
i in r && (t[i] = [e(i)]);
|
|
325
337
|
for (const i of this.attributes) {
|
|
@@ -406,8 +418,8 @@ function fe(e, t, r, n) {
|
|
|
406
418
|
return t;
|
|
407
419
|
}
|
|
408
420
|
}
|
|
409
|
-
function
|
|
410
|
-
let s = class extends
|
|
421
|
+
function Gr(e, t, r, n, i, o) {
|
|
422
|
+
let s = class extends Nt {
|
|
411
423
|
constructor() {
|
|
412
424
|
super(e, r, i), this.$$p_d = t;
|
|
413
425
|
}
|
|
@@ -435,7 +447,7 @@ function $r(e, t, r, n, i, o) {
|
|
|
435
447
|
}), e.element = /** @type {any} */
|
|
436
448
|
s, s;
|
|
437
449
|
}
|
|
438
|
-
class
|
|
450
|
+
class Ur {
|
|
439
451
|
/**
|
|
440
452
|
* ### PRIVATE API
|
|
441
453
|
*
|
|
@@ -454,7 +466,7 @@ class Gr {
|
|
|
454
466
|
$$set = void 0;
|
|
455
467
|
/** @returns {void} */
|
|
456
468
|
$destroy() {
|
|
457
|
-
|
|
469
|
+
Lr(this, 1), this.$destroy = N;
|
|
458
470
|
}
|
|
459
471
|
/**
|
|
460
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -464,7 +476,7 @@ class Gr {
|
|
|
464
476
|
*/
|
|
465
477
|
$on(t, r) {
|
|
466
478
|
if (!Qe(r))
|
|
467
|
-
return
|
|
479
|
+
return N;
|
|
468
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
469
481
|
return n.push(r), () => {
|
|
470
482
|
const i = n.indexOf(r);
|
|
@@ -476,19 +488,34 @@ class Gr {
|
|
|
476
488
|
* @returns {void}
|
|
477
489
|
*/
|
|
478
490
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
492
|
}
|
|
481
493
|
}
|
|
482
|
-
const
|
|
483
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Dr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
496
|
+
/*! *****************************************************************************
|
|
497
|
+
Copyright (c) Microsoft Corporation.
|
|
498
|
+
|
|
499
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
500
|
+
purpose with or without fee is hereby granted.
|
|
501
|
+
|
|
502
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
503
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
504
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
505
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
506
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
507
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
509
|
+
***************************************************************************** */
|
|
484
510
|
var Re = function(e, t) {
|
|
485
511
|
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
486
512
|
r.__proto__ = n;
|
|
487
513
|
} || function(r, n) {
|
|
488
|
-
for (var i in n)
|
|
514
|
+
for (var i in n)
|
|
515
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
489
516
|
}, Re(e, t);
|
|
490
517
|
};
|
|
491
|
-
function
|
|
518
|
+
function R(e, t) {
|
|
492
519
|
if (typeof t != "function" && t !== null)
|
|
493
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
494
521
|
Re(e, t);
|
|
@@ -501,14 +528,16 @@ var y = function() {
|
|
|
501
528
|
return y = Object.assign || function(t) {
|
|
502
529
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
503
530
|
r = arguments[n];
|
|
504
|
-
for (var o in r)
|
|
531
|
+
for (var o in r)
|
|
532
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
505
533
|
}
|
|
506
534
|
return t;
|
|
507
535
|
}, y.apply(this, arguments);
|
|
508
536
|
};
|
|
509
|
-
function
|
|
537
|
+
function Fr(e, t) {
|
|
510
538
|
var r = {};
|
|
511
|
-
for (var n in e)
|
|
539
|
+
for (var n in e)
|
|
540
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
512
541
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
513
542
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
514
543
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
@@ -516,37 +545,43 @@ function Dr(e, t) {
|
|
|
516
545
|
}
|
|
517
546
|
function $e(e) {
|
|
518
547
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
519
|
-
if (r)
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
548
|
+
if (r)
|
|
549
|
+
return r.call(e);
|
|
550
|
+
if (e && typeof e.length == "number")
|
|
551
|
+
return {
|
|
552
|
+
next: function() {
|
|
553
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
554
|
+
}
|
|
555
|
+
};
|
|
525
556
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
526
557
|
}
|
|
527
558
|
function Ge(e, t) {
|
|
528
559
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
529
|
-
if (!r)
|
|
560
|
+
if (!r)
|
|
561
|
+
return e;
|
|
530
562
|
var n = r.call(e), i, o = [], s;
|
|
531
563
|
try {
|
|
532
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
564
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
565
|
+
o.push(i.value);
|
|
533
566
|
} catch (a) {
|
|
534
567
|
s = { error: a };
|
|
535
568
|
} finally {
|
|
536
569
|
try {
|
|
537
570
|
i && !i.done && (r = n.return) && r.call(n);
|
|
538
571
|
} finally {
|
|
539
|
-
if (s)
|
|
572
|
+
if (s)
|
|
573
|
+
throw s.error;
|
|
540
574
|
}
|
|
541
575
|
}
|
|
542
576
|
return o;
|
|
543
577
|
}
|
|
544
|
-
function
|
|
545
|
-
if (r || arguments.length === 2)
|
|
546
|
-
(
|
|
547
|
-
|
|
578
|
+
function V(e, t, r) {
|
|
579
|
+
if (r || arguments.length === 2)
|
|
580
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
581
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
582
|
+
return e.concat(o || t);
|
|
548
583
|
}
|
|
549
|
-
function
|
|
584
|
+
function L(e) {
|
|
550
585
|
return typeof e == "function";
|
|
551
586
|
}
|
|
552
587
|
function Lt(e) {
|
|
@@ -555,7 +590,7 @@ function Lt(e) {
|
|
|
555
590
|
}, r = e(t);
|
|
556
591
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
557
592
|
}
|
|
558
|
-
var
|
|
593
|
+
var Te = Lt(function(e) {
|
|
559
594
|
return function(r) {
|
|
560
595
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
561
596
|
` + r.map(function(n, i) {
|
|
@@ -586,48 +621,50 @@ var ye = function() {
|
|
|
586
621
|
var u = l.value;
|
|
587
622
|
u.remove(this);
|
|
588
623
|
}
|
|
589
|
-
} catch (
|
|
590
|
-
t = { error:
|
|
624
|
+
} catch (p) {
|
|
625
|
+
t = { error: p };
|
|
591
626
|
} finally {
|
|
592
627
|
try {
|
|
593
628
|
l && !l.done && (r = a.return) && r.call(a);
|
|
594
629
|
} finally {
|
|
595
|
-
if (t)
|
|
630
|
+
if (t)
|
|
631
|
+
throw t.error;
|
|
596
632
|
}
|
|
597
633
|
}
|
|
598
634
|
else
|
|
599
635
|
s.remove(this);
|
|
600
636
|
var h = this.initialTeardown;
|
|
601
|
-
if (
|
|
637
|
+
if (L(h))
|
|
602
638
|
try {
|
|
603
639
|
h();
|
|
604
|
-
} catch (
|
|
605
|
-
o =
|
|
640
|
+
} catch (p) {
|
|
641
|
+
o = p instanceof Te ? p.errors : [p];
|
|
606
642
|
}
|
|
607
643
|
var c = this._finalizers;
|
|
608
644
|
if (c) {
|
|
609
645
|
this._finalizers = null;
|
|
610
646
|
try {
|
|
611
647
|
for (var f = $e(c), m = f.next(); !m.done; m = f.next()) {
|
|
612
|
-
var
|
|
648
|
+
var d = m.value;
|
|
613
649
|
try {
|
|
614
|
-
it(
|
|
615
|
-
} catch (
|
|
616
|
-
o = o ?? [],
|
|
650
|
+
it(d);
|
|
651
|
+
} catch (p) {
|
|
652
|
+
o = o ?? [], p instanceof Te ? o = V(V([], Ge(o)), Ge(p.errors)) : o.push(p);
|
|
617
653
|
}
|
|
618
654
|
}
|
|
619
|
-
} catch (
|
|
620
|
-
n = { error:
|
|
655
|
+
} catch (p) {
|
|
656
|
+
n = { error: p };
|
|
621
657
|
} finally {
|
|
622
658
|
try {
|
|
623
659
|
m && !m.done && (i = f.return) && i.call(f);
|
|
624
660
|
} finally {
|
|
625
|
-
if (n)
|
|
661
|
+
if (n)
|
|
662
|
+
throw n.error;
|
|
626
663
|
}
|
|
627
664
|
}
|
|
628
665
|
}
|
|
629
666
|
if (o)
|
|
630
|
-
throw new
|
|
667
|
+
throw new Te(o);
|
|
631
668
|
}
|
|
632
669
|
}, e.prototype.add = function(t) {
|
|
633
670
|
var r;
|
|
@@ -660,10 +697,10 @@ var ye = function() {
|
|
|
660
697
|
}(), e;
|
|
661
698
|
}(), Rt = ye.EMPTY;
|
|
662
699
|
function $t(e) {
|
|
663
|
-
return e instanceof ye || e && "closed" in e &&
|
|
700
|
+
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
664
701
|
}
|
|
665
702
|
function it(e) {
|
|
666
|
-
|
|
703
|
+
L(e) ? e() : e.unsubscribe();
|
|
667
704
|
}
|
|
668
705
|
var Gt = {
|
|
669
706
|
onUnhandledError: null,
|
|
@@ -671,19 +708,19 @@ var Gt = {
|
|
|
671
708
|
Promise: void 0,
|
|
672
709
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
673
710
|
useDeprecatedNextContext: !1
|
|
674
|
-
},
|
|
711
|
+
}, jr = {
|
|
675
712
|
setTimeout: function(e, t) {
|
|
676
713
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
677
714
|
r[n - 2] = arguments[n];
|
|
678
|
-
return setTimeout.apply(void 0,
|
|
715
|
+
return setTimeout.apply(void 0, V([e, t], Ge(r)));
|
|
679
716
|
},
|
|
680
717
|
clearTimeout: function(e) {
|
|
681
718
|
return clearTimeout(e);
|
|
682
719
|
},
|
|
683
720
|
delegate: void 0
|
|
684
721
|
};
|
|
685
|
-
function
|
|
686
|
-
|
|
722
|
+
function kr(e) {
|
|
723
|
+
jr.setTimeout(function() {
|
|
687
724
|
throw e;
|
|
688
725
|
});
|
|
689
726
|
}
|
|
@@ -693,10 +730,10 @@ function me(e) {
|
|
|
693
730
|
e();
|
|
694
731
|
}
|
|
695
732
|
var Ut = function(e) {
|
|
696
|
-
|
|
733
|
+
R(t, e);
|
|
697
734
|
function t(r) {
|
|
698
735
|
var n = e.call(this) || this;
|
|
699
|
-
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination =
|
|
736
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Wr, n;
|
|
700
737
|
}
|
|
701
738
|
return t.create = function(r, n, i) {
|
|
702
739
|
return new De(r, n, i);
|
|
@@ -723,11 +760,11 @@ var Ut = function(e) {
|
|
|
723
760
|
this.unsubscribe();
|
|
724
761
|
}
|
|
725
762
|
}, t;
|
|
726
|
-
}(ye),
|
|
763
|
+
}(ye), Vr = Function.prototype.bind;
|
|
727
764
|
function He(e, t) {
|
|
728
|
-
return
|
|
765
|
+
return Vr.call(e, t);
|
|
729
766
|
}
|
|
730
|
-
var
|
|
767
|
+
var Xr = function() {
|
|
731
768
|
function e(t) {
|
|
732
769
|
this.partialObserver = t;
|
|
733
770
|
}
|
|
@@ -759,10 +796,10 @@ var Vr = function() {
|
|
|
759
796
|
}
|
|
760
797
|
}, e;
|
|
761
798
|
}(), De = function(e) {
|
|
762
|
-
|
|
799
|
+
R(t, e);
|
|
763
800
|
function t(r, n, i) {
|
|
764
801
|
var o = e.call(this) || this, s;
|
|
765
|
-
if (
|
|
802
|
+
if (L(r) || !r)
|
|
766
803
|
s = {
|
|
767
804
|
next: r ?? void 0,
|
|
768
805
|
error: n ?? void 0,
|
|
@@ -778,29 +815,29 @@ var Vr = function() {
|
|
|
778
815
|
complete: r.complete && He(r.complete, a)
|
|
779
816
|
}) : s = r;
|
|
780
817
|
}
|
|
781
|
-
return o.destination = new
|
|
818
|
+
return o.destination = new Xr(s), o;
|
|
782
819
|
}
|
|
783
820
|
return t;
|
|
784
821
|
}(Ut);
|
|
785
822
|
function le(e) {
|
|
786
|
-
|
|
823
|
+
kr(e);
|
|
787
824
|
}
|
|
788
|
-
function
|
|
825
|
+
function zr(e) {
|
|
789
826
|
throw e;
|
|
790
827
|
}
|
|
791
|
-
var
|
|
828
|
+
var Wr = {
|
|
792
829
|
closed: !0,
|
|
793
830
|
next: ot,
|
|
794
|
-
error:
|
|
831
|
+
error: zr,
|
|
795
832
|
complete: ot
|
|
796
|
-
},
|
|
833
|
+
}, Zr = function() {
|
|
797
834
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
798
835
|
}();
|
|
799
|
-
function
|
|
836
|
+
function Qr(e) {
|
|
800
837
|
return e;
|
|
801
838
|
}
|
|
802
|
-
function
|
|
803
|
-
return e.length === 0 ?
|
|
839
|
+
function Jr(e) {
|
|
840
|
+
return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
|
|
804
841
|
return e.reduce(function(n, i) {
|
|
805
842
|
return i(n);
|
|
806
843
|
}, r);
|
|
@@ -814,7 +851,7 @@ var st = function() {
|
|
|
814
851
|
var r = new e();
|
|
815
852
|
return r.source = this, r.operator = t, r;
|
|
816
853
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
817
|
-
var i = this, o =
|
|
854
|
+
var i = this, o = qr(t) ? t : new De(t, r, n);
|
|
818
855
|
return me(function() {
|
|
819
856
|
var s = i, a = s.operator, l = s.source;
|
|
820
857
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -844,12 +881,12 @@ var st = function() {
|
|
|
844
881
|
}, e.prototype._subscribe = function(t) {
|
|
845
882
|
var r;
|
|
846
883
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
847
|
-
}, e.prototype[
|
|
884
|
+
}, e.prototype[Zr] = function() {
|
|
848
885
|
return this;
|
|
849
886
|
}, e.prototype.pipe = function() {
|
|
850
887
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
851
888
|
t[r] = arguments[r];
|
|
852
|
-
return
|
|
889
|
+
return Jr(t)(this);
|
|
853
890
|
}, e.prototype.toPromise = function(t) {
|
|
854
891
|
var r = this;
|
|
855
892
|
return t = at(t), new t(function(n, i) {
|
|
@@ -870,18 +907,18 @@ function at(e) {
|
|
|
870
907
|
var t;
|
|
871
908
|
return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
872
909
|
}
|
|
873
|
-
function Jr(e) {
|
|
874
|
-
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
875
|
-
}
|
|
876
910
|
function Yr(e) {
|
|
877
|
-
return e && e
|
|
911
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
878
912
|
}
|
|
879
|
-
|
|
913
|
+
function qr(e) {
|
|
914
|
+
return e && e instanceof Ut || Yr(e) && $t(e);
|
|
915
|
+
}
|
|
916
|
+
var Kr = Lt(function(e) {
|
|
880
917
|
return function() {
|
|
881
918
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
882
919
|
};
|
|
883
920
|
}), Dt = function(e) {
|
|
884
|
-
|
|
921
|
+
R(t, e);
|
|
885
922
|
function t() {
|
|
886
923
|
var r = e.call(this) || this;
|
|
887
924
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -891,7 +928,7 @@ var qr = Lt(function(e) {
|
|
|
891
928
|
return n.operator = r, n;
|
|
892
929
|
}, t.prototype._throwIfClosed = function() {
|
|
893
930
|
if (this.closed)
|
|
894
|
-
throw new
|
|
931
|
+
throw new Kr();
|
|
895
932
|
}, t.prototype.next = function(r) {
|
|
896
933
|
var n = this;
|
|
897
934
|
me(function() {
|
|
@@ -909,7 +946,8 @@ var qr = Lt(function(e) {
|
|
|
909
946
|
try {
|
|
910
947
|
a && !a.done && (o = s.return) && o.call(s);
|
|
911
948
|
} finally {
|
|
912
|
-
if (i)
|
|
949
|
+
if (i)
|
|
950
|
+
throw i.error;
|
|
913
951
|
}
|
|
914
952
|
}
|
|
915
953
|
}
|
|
@@ -960,7 +998,7 @@ var qr = Lt(function(e) {
|
|
|
960
998
|
return new ut(r, n);
|
|
961
999
|
}, t;
|
|
962
1000
|
}(st), ut = function(e) {
|
|
963
|
-
|
|
1001
|
+
R(t, e);
|
|
964
1002
|
function t(r, n) {
|
|
965
1003
|
var i = e.call(this) || this;
|
|
966
1004
|
return i.destination = r, i.source = n, i;
|
|
@@ -983,8 +1021,8 @@ var qr = Lt(function(e) {
|
|
|
983
1021
|
return (Ft.delegate || Date).now();
|
|
984
1022
|
},
|
|
985
1023
|
delegate: void 0
|
|
986
|
-
},
|
|
987
|
-
|
|
1024
|
+
}, en = function(e) {
|
|
1025
|
+
R(t, e);
|
|
988
1026
|
function t(r, n, i) {
|
|
989
1027
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
990
1028
|
var o = e.call(this) || this;
|
|
@@ -1007,116 +1045,116 @@ var qr = Lt(function(e) {
|
|
|
1007
1045
|
}
|
|
1008
1046
|
}, t;
|
|
1009
1047
|
}(Dt);
|
|
1010
|
-
const lt = [], ht = {},
|
|
1048
|
+
const lt = [], ht = {}, tn = (e, t = 0) => {
|
|
1011
1049
|
if (lt.indexOf(e) == -1) {
|
|
1012
|
-
const r = new
|
|
1050
|
+
const r = new en(t);
|
|
1013
1051
|
ht[e] = r, lt.push(e);
|
|
1014
1052
|
}
|
|
1015
1053
|
return ht[e];
|
|
1016
|
-
},
|
|
1017
|
-
function
|
|
1054
|
+
}, F = [];
|
|
1055
|
+
function rn(e, t) {
|
|
1018
1056
|
return {
|
|
1019
1057
|
subscribe: xe(e, t).subscribe
|
|
1020
1058
|
};
|
|
1021
1059
|
}
|
|
1022
|
-
function xe(e, t =
|
|
1060
|
+
function xe(e, t = N) {
|
|
1023
1061
|
let r;
|
|
1024
1062
|
const n = /* @__PURE__ */ new Set();
|
|
1025
1063
|
function i(a) {
|
|
1026
1064
|
if (Pt(e, a) && (e = a, r)) {
|
|
1027
|
-
const l = !
|
|
1065
|
+
const l = !F.length;
|
|
1028
1066
|
for (const u of n)
|
|
1029
|
-
u[1](),
|
|
1067
|
+
u[1](), F.push(u, e);
|
|
1030
1068
|
if (l) {
|
|
1031
|
-
for (let u = 0; u <
|
|
1032
|
-
|
|
1033
|
-
|
|
1069
|
+
for (let u = 0; u < F.length; u += 2)
|
|
1070
|
+
F[u][0](F[u + 1]);
|
|
1071
|
+
F.length = 0;
|
|
1034
1072
|
}
|
|
1035
1073
|
}
|
|
1036
1074
|
}
|
|
1037
1075
|
function o(a) {
|
|
1038
1076
|
i(a(e));
|
|
1039
1077
|
}
|
|
1040
|
-
function s(a, l =
|
|
1078
|
+
function s(a, l = N) {
|
|
1041
1079
|
const u = [a, l];
|
|
1042
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1080
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1043
1081
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1044
1082
|
};
|
|
1045
1083
|
}
|
|
1046
1084
|
return { set: i, update: o, subscribe: s };
|
|
1047
1085
|
}
|
|
1048
|
-
function
|
|
1086
|
+
function Y(e, t, r) {
|
|
1049
1087
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1050
1088
|
if (!i.every(Boolean))
|
|
1051
1089
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1052
1090
|
const o = t.length < 2;
|
|
1053
|
-
return
|
|
1091
|
+
return rn(r, (s, a) => {
|
|
1054
1092
|
let l = !1;
|
|
1055
1093
|
const u = [];
|
|
1056
|
-
let h = 0, c =
|
|
1094
|
+
let h = 0, c = N;
|
|
1057
1095
|
const f = () => {
|
|
1058
1096
|
if (h)
|
|
1059
1097
|
return;
|
|
1060
1098
|
c();
|
|
1061
|
-
const
|
|
1062
|
-
o ? s(
|
|
1099
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1100
|
+
o ? s(d) : c = Qe(d) ? d : N;
|
|
1063
1101
|
}, m = i.map(
|
|
1064
|
-
(
|
|
1065
|
-
|
|
1066
|
-
(
|
|
1067
|
-
u[
|
|
1102
|
+
(d, p) => Ot(
|
|
1103
|
+
d,
|
|
1104
|
+
(w) => {
|
|
1105
|
+
u[p] = w, h &= ~(1 << p), l && f();
|
|
1068
1106
|
},
|
|
1069
1107
|
() => {
|
|
1070
|
-
h |= 1 <<
|
|
1108
|
+
h |= 1 << p;
|
|
1071
1109
|
}
|
|
1072
1110
|
)
|
|
1073
1111
|
);
|
|
1074
1112
|
return l = !0, f(), function() {
|
|
1075
|
-
|
|
1113
|
+
Q(m), c(), l = !1;
|
|
1076
1114
|
};
|
|
1077
1115
|
});
|
|
1078
1116
|
}
|
|
1079
|
-
function
|
|
1117
|
+
function nn(e) {
|
|
1080
1118
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1081
1119
|
}
|
|
1082
|
-
var
|
|
1083
|
-
return
|
|
1120
|
+
var on = function(t) {
|
|
1121
|
+
return sn(t) && !an(t);
|
|
1084
1122
|
};
|
|
1085
|
-
function
|
|
1123
|
+
function sn(e) {
|
|
1086
1124
|
return !!e && typeof e == "object";
|
|
1087
1125
|
}
|
|
1088
|
-
function
|
|
1126
|
+
function an(e) {
|
|
1089
1127
|
var t = Object.prototype.toString.call(e);
|
|
1090
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1091
|
-
}
|
|
1092
|
-
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
1093
|
-
function ln(e) {
|
|
1094
|
-
return e.$$typeof === un;
|
|
1128
|
+
return t === "[object RegExp]" || t === "[object Date]" || hn(e);
|
|
1095
1129
|
}
|
|
1130
|
+
var un = typeof Symbol == "function" && Symbol.for, ln = un ? Symbol.for("react.element") : 60103;
|
|
1096
1131
|
function hn(e) {
|
|
1132
|
+
return e.$$typeof === ln;
|
|
1133
|
+
}
|
|
1134
|
+
function cn(e) {
|
|
1097
1135
|
return Array.isArray(e) ? [] : {};
|
|
1098
1136
|
}
|
|
1099
1137
|
function ie(e, t) {
|
|
1100
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1138
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(cn(e), e, t) : e;
|
|
1101
1139
|
}
|
|
1102
|
-
function
|
|
1140
|
+
function fn(e, t, r) {
|
|
1103
1141
|
return e.concat(t).map(function(n) {
|
|
1104
1142
|
return ie(n, r);
|
|
1105
1143
|
});
|
|
1106
1144
|
}
|
|
1107
|
-
function
|
|
1145
|
+
function mn(e, t) {
|
|
1108
1146
|
if (!t.customMerge)
|
|
1109
|
-
return
|
|
1147
|
+
return X;
|
|
1110
1148
|
var r = t.customMerge(e);
|
|
1111
|
-
return typeof r == "function" ? r :
|
|
1149
|
+
return typeof r == "function" ? r : X;
|
|
1112
1150
|
}
|
|
1113
|
-
function
|
|
1151
|
+
function dn(e) {
|
|
1114
1152
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1115
1153
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1116
1154
|
}) : [];
|
|
1117
1155
|
}
|
|
1118
1156
|
function ct(e) {
|
|
1119
|
-
return Object.keys(e).concat(
|
|
1157
|
+
return Object.keys(e).concat(dn(e));
|
|
1120
1158
|
}
|
|
1121
1159
|
function jt(e, t) {
|
|
1122
1160
|
try {
|
|
@@ -1125,130 +1163,130 @@ function jt(e, t) {
|
|
|
1125
1163
|
return !1;
|
|
1126
1164
|
}
|
|
1127
1165
|
}
|
|
1128
|
-
function
|
|
1166
|
+
function pn(e, t) {
|
|
1129
1167
|
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1130
1168
|
}
|
|
1131
|
-
function
|
|
1169
|
+
function bn(e, t, r) {
|
|
1132
1170
|
var n = {};
|
|
1133
1171
|
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1134
1172
|
n[i] = ie(e[i], r);
|
|
1135
1173
|
}), ct(t).forEach(function(i) {
|
|
1136
|
-
|
|
1174
|
+
pn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1137
1175
|
}), n;
|
|
1138
1176
|
}
|
|
1139
|
-
function
|
|
1140
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1177
|
+
function X(e, t, r) {
|
|
1178
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1141
1179
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1142
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1180
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : ie(t, r);
|
|
1143
1181
|
}
|
|
1144
|
-
|
|
1182
|
+
X.all = function(t, r) {
|
|
1145
1183
|
if (!Array.isArray(t))
|
|
1146
1184
|
throw new Error("first argument should be an array");
|
|
1147
1185
|
return t.reduce(function(n, i) {
|
|
1148
|
-
return
|
|
1186
|
+
return X(n, i, r);
|
|
1149
1187
|
}, {});
|
|
1150
1188
|
};
|
|
1151
|
-
var
|
|
1152
|
-
const
|
|
1189
|
+
var gn = X, vn = gn;
|
|
1190
|
+
const yn = /* @__PURE__ */ nn(vn);
|
|
1153
1191
|
function Be(e, t) {
|
|
1154
|
-
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer :
|
|
1192
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1155
1193
|
return i(e, {
|
|
1156
1194
|
cache: r,
|
|
1157
1195
|
serializer: n
|
|
1158
1196
|
});
|
|
1159
1197
|
}
|
|
1160
|
-
function
|
|
1198
|
+
function xn(e) {
|
|
1161
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1162
1200
|
}
|
|
1163
1201
|
function kt(e, t, r, n) {
|
|
1164
|
-
var i =
|
|
1202
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1165
1203
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1166
1204
|
}
|
|
1167
1205
|
function Vt(e, t, r) {
|
|
1168
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1169
1207
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1170
1208
|
}
|
|
1171
|
-
function
|
|
1209
|
+
function Je(e, t, r, n, i) {
|
|
1172
1210
|
return r.bind(t, e, n, i);
|
|
1173
1211
|
}
|
|
1174
|
-
function xn(e, t) {
|
|
1175
|
-
var r = e.length === 1 ? kt : Vt;
|
|
1176
|
-
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1177
|
-
}
|
|
1178
1212
|
function _n(e, t) {
|
|
1179
|
-
|
|
1213
|
+
var r = e.length === 1 ? kt : Vt;
|
|
1214
|
+
return Je(e, this, r, t.cache.create(), t.serializer);
|
|
1180
1215
|
}
|
|
1181
1216
|
function En(e, t) {
|
|
1182
|
-
return
|
|
1217
|
+
return Je(e, this, Vt, t.cache.create(), t.serializer);
|
|
1218
|
+
}
|
|
1219
|
+
function Sn(e, t) {
|
|
1220
|
+
return Je(e, this, kt, t.cache.create(), t.serializer);
|
|
1183
1221
|
}
|
|
1184
|
-
var
|
|
1222
|
+
var wn = function() {
|
|
1185
1223
|
return JSON.stringify(arguments);
|
|
1186
1224
|
};
|
|
1187
|
-
function
|
|
1225
|
+
function Ye() {
|
|
1188
1226
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1189
1227
|
}
|
|
1190
|
-
|
|
1228
|
+
Ye.prototype.get = function(e) {
|
|
1191
1229
|
return this.cache[e];
|
|
1192
1230
|
};
|
|
1193
|
-
|
|
1231
|
+
Ye.prototype.set = function(e, t) {
|
|
1194
1232
|
this.cache[e] = t;
|
|
1195
1233
|
};
|
|
1196
1234
|
var Tn = {
|
|
1197
1235
|
create: function() {
|
|
1198
|
-
return new
|
|
1236
|
+
return new Ye();
|
|
1199
1237
|
}
|
|
1200
1238
|
}, Ae = {
|
|
1201
|
-
variadic:
|
|
1202
|
-
monadic:
|
|
1203
|
-
},
|
|
1239
|
+
variadic: En,
|
|
1240
|
+
monadic: Sn
|
|
1241
|
+
}, b;
|
|
1204
1242
|
(function(e) {
|
|
1205
1243
|
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";
|
|
1206
|
-
})(
|
|
1207
|
-
var
|
|
1244
|
+
})(b || (b = {}));
|
|
1245
|
+
var S;
|
|
1208
1246
|
(function(e) {
|
|
1209
1247
|
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";
|
|
1210
|
-
})(
|
|
1211
|
-
var
|
|
1248
|
+
})(S || (S = {}));
|
|
1249
|
+
var z;
|
|
1212
1250
|
(function(e) {
|
|
1213
1251
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1214
|
-
})(
|
|
1252
|
+
})(z || (z = {}));
|
|
1215
1253
|
function ft(e) {
|
|
1216
|
-
return e.type ===
|
|
1254
|
+
return e.type === S.literal;
|
|
1217
1255
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e.type ===
|
|
1256
|
+
function Hn(e) {
|
|
1257
|
+
return e.type === S.argument;
|
|
1220
1258
|
}
|
|
1221
1259
|
function Xt(e) {
|
|
1222
|
-
return e.type ===
|
|
1260
|
+
return e.type === S.number;
|
|
1223
1261
|
}
|
|
1224
1262
|
function zt(e) {
|
|
1225
|
-
return e.type ===
|
|
1263
|
+
return e.type === S.date;
|
|
1226
1264
|
}
|
|
1227
1265
|
function Wt(e) {
|
|
1228
|
-
return e.type ===
|
|
1266
|
+
return e.type === S.time;
|
|
1229
1267
|
}
|
|
1230
1268
|
function Zt(e) {
|
|
1231
|
-
return e.type ===
|
|
1269
|
+
return e.type === S.select;
|
|
1232
1270
|
}
|
|
1233
1271
|
function Qt(e) {
|
|
1234
|
-
return e.type ===
|
|
1272
|
+
return e.type === S.plural;
|
|
1235
1273
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1274
|
+
function Bn(e) {
|
|
1275
|
+
return e.type === S.pound;
|
|
1238
1276
|
}
|
|
1239
1277
|
function Jt(e) {
|
|
1240
|
-
return e.type ===
|
|
1278
|
+
return e.type === S.tag;
|
|
1241
1279
|
}
|
|
1242
1280
|
function Yt(e) {
|
|
1243
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1281
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1244
1282
|
}
|
|
1245
1283
|
function Fe(e) {
|
|
1246
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1284
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1247
1285
|
}
|
|
1248
|
-
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1249
|
-
function
|
|
1286
|
+
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
|
|
1287
|
+
function Cn(e) {
|
|
1250
1288
|
var t = {};
|
|
1251
|
-
return e.replace(
|
|
1289
|
+
return e.replace(An, function(r) {
|
|
1252
1290
|
var n = r.length;
|
|
1253
1291
|
switch (r[0]) {
|
|
1254
1292
|
case "G":
|
|
@@ -1337,11 +1375,11 @@ function An(e) {
|
|
|
1337
1375
|
return "";
|
|
1338
1376
|
}), t;
|
|
1339
1377
|
}
|
|
1340
|
-
var
|
|
1341
|
-
function
|
|
1378
|
+
var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1379
|
+
function On(e) {
|
|
1342
1380
|
if (e.length === 0)
|
|
1343
1381
|
throw new Error("Number skeleton cannot be empty");
|
|
1344
|
-
for (var t = e.split(
|
|
1382
|
+
for (var t = e.split(Pn).filter(function(f) {
|
|
1345
1383
|
return f.length > 0;
|
|
1346
1384
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1347
1385
|
var o = i[n], s = o.split("/");
|
|
@@ -1356,10 +1394,10 @@ function Pn(e) {
|
|
|
1356
1394
|
}
|
|
1357
1395
|
return r;
|
|
1358
1396
|
}
|
|
1359
|
-
function
|
|
1397
|
+
function In(e) {
|
|
1360
1398
|
return e.replace(/^(.*?)-/, "");
|
|
1361
1399
|
}
|
|
1362
|
-
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1400
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1363
1401
|
function dt(e) {
|
|
1364
1402
|
var t = {};
|
|
1365
1403
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
@@ -1424,7 +1462,7 @@ function pt(e) {
|
|
|
1424
1462
|
var t = {}, r = tr(e);
|
|
1425
1463
|
return r || t;
|
|
1426
1464
|
}
|
|
1427
|
-
function
|
|
1465
|
+
function Ln(e) {
|
|
1428
1466
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1429
1467
|
var i = n[r];
|
|
1430
1468
|
switch (i.stem) {
|
|
@@ -1448,7 +1486,7 @@ function Mn(e) {
|
|
|
1448
1486
|
continue;
|
|
1449
1487
|
case "measure-unit":
|
|
1450
1488
|
case "unit":
|
|
1451
|
-
t.style = "unit", t.unit =
|
|
1489
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1452
1490
|
continue;
|
|
1453
1491
|
case "compact-short":
|
|
1454
1492
|
case "K":
|
|
@@ -1510,7 +1548,7 @@ function Mn(e) {
|
|
|
1510
1548
|
case "integer-width":
|
|
1511
1549
|
if (i.options.length > 1)
|
|
1512
1550
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1513
|
-
i.options[0].replace(
|
|
1551
|
+
i.options[0].replace(Mn, function(l, u, h, c, f, m) {
|
|
1514
1552
|
if (u)
|
|
1515
1553
|
t.minimumIntegerDigits = h.length;
|
|
1516
1554
|
else {
|
|
@@ -2963,22 +3001,23 @@ var he = {
|
|
|
2963
3001
|
"h"
|
|
2964
3002
|
]
|
|
2965
3003
|
};
|
|
2966
|
-
function
|
|
3004
|
+
function Rn(e, t) {
|
|
2967
3005
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2968
3006
|
var i = e.charAt(n);
|
|
2969
3007
|
if (i === "j") {
|
|
2970
3008
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2971
3009
|
o++, n++;
|
|
2972
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3010
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
2973
3011
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2974
3012
|
r += l;
|
|
2975
3013
|
for (; s-- > 0; )
|
|
2976
3014
|
r = u + r;
|
|
2977
|
-
} else
|
|
3015
|
+
} else
|
|
3016
|
+
i === "J" ? r += "H" : r += i;
|
|
2978
3017
|
}
|
|
2979
3018
|
return r;
|
|
2980
3019
|
}
|
|
2981
|
-
function
|
|
3020
|
+
function $n(e) {
|
|
2982
3021
|
var t = e.hourCycle;
|
|
2983
3022
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2984
3023
|
e.hourCycles && // @ts-ignore
|
|
@@ -3000,20 +3039,20 @@ function Rn(e) {
|
|
|
3000
3039
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3001
3040
|
return i[0];
|
|
3002
3041
|
}
|
|
3003
|
-
var Ce,
|
|
3042
|
+
var Ce, Gn = new RegExp("^".concat(qt.source, "*")), Un = new RegExp("".concat(qt.source, "*$"));
|
|
3004
3043
|
function v(e, t) {
|
|
3005
3044
|
return { start: e, end: t };
|
|
3006
3045
|
}
|
|
3007
|
-
var
|
|
3046
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
3008
3047
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3009
3048
|
}, je = !0;
|
|
3010
3049
|
try {
|
|
3011
|
-
var
|
|
3012
|
-
je = ((Ce =
|
|
3050
|
+
var Zn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3051
|
+
je = ((Ce = Zn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
3013
3052
|
} catch {
|
|
3014
3053
|
je = !1;
|
|
3015
3054
|
}
|
|
3016
|
-
var bt =
|
|
3055
|
+
var bt = Dn ? (
|
|
3017
3056
|
// Native
|
|
3018
3057
|
function(t, r, n) {
|
|
3019
3058
|
return t.startsWith(r, n);
|
|
@@ -3023,7 +3062,7 @@ var bt = Un ? (
|
|
|
3023
3062
|
function(t, r, n) {
|
|
3024
3063
|
return t.slice(n, n + r.length) === r;
|
|
3025
3064
|
}
|
|
3026
|
-
), ke =
|
|
3065
|
+
), ke = Fn ? String.fromCodePoint : (
|
|
3027
3066
|
// IE11
|
|
3028
3067
|
function() {
|
|
3029
3068
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3037,7 +3076,7 @@ var bt = Un ? (
|
|
|
3037
3076
|
}
|
|
3038
3077
|
), gt = (
|
|
3039
3078
|
// native
|
|
3040
|
-
|
|
3079
|
+
jn ? Object.fromEntries : (
|
|
3041
3080
|
// Ponyfill
|
|
3042
3081
|
function(t) {
|
|
3043
3082
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3047,7 +3086,7 @@ var bt = Un ? (
|
|
|
3047
3086
|
return r;
|
|
3048
3087
|
}
|
|
3049
3088
|
)
|
|
3050
|
-
), rr =
|
|
3089
|
+
), rr = kn ? (
|
|
3051
3090
|
// Native
|
|
3052
3091
|
function(t, r) {
|
|
3053
3092
|
return t.codePointAt(r);
|
|
@@ -3061,7 +3100,7 @@ var bt = Un ? (
|
|
|
3061
3100
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3062
3101
|
}
|
|
3063
3102
|
}
|
|
3064
|
-
),
|
|
3103
|
+
), Qn = Vn ? (
|
|
3065
3104
|
// Native
|
|
3066
3105
|
function(t) {
|
|
3067
3106
|
return t.trimStart();
|
|
@@ -3069,9 +3108,9 @@ var bt = Un ? (
|
|
|
3069
3108
|
) : (
|
|
3070
3109
|
// Ponyfill
|
|
3071
3110
|
function(t) {
|
|
3072
|
-
return t.replace(
|
|
3111
|
+
return t.replace(Gn, "");
|
|
3073
3112
|
}
|
|
3074
|
-
),
|
|
3113
|
+
), Jn = Xn ? (
|
|
3075
3114
|
// Native
|
|
3076
3115
|
function(t) {
|
|
3077
3116
|
return t.trimEnd();
|
|
@@ -3079,7 +3118,7 @@ var bt = Un ? (
|
|
|
3079
3118
|
) : (
|
|
3080
3119
|
// Ponyfill
|
|
3081
3120
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3121
|
+
return t.replace(Un, "");
|
|
3083
3122
|
}
|
|
3084
3123
|
);
|
|
3085
3124
|
function nr(e, t) {
|
|
@@ -3098,13 +3137,13 @@ if (je) {
|
|
|
3098
3137
|
Ve = function(t, r) {
|
|
3099
3138
|
for (var n = []; ; ) {
|
|
3100
3139
|
var i = rr(t, r);
|
|
3101
|
-
if (i === void 0 || ir(i) ||
|
|
3140
|
+
if (i === void 0 || ir(i) || ei(i))
|
|
3102
3141
|
break;
|
|
3103
3142
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3104
3143
|
}
|
|
3105
3144
|
return ke.apply(void 0, n);
|
|
3106
3145
|
};
|
|
3107
|
-
var
|
|
3146
|
+
var Yn = (
|
|
3108
3147
|
/** @class */
|
|
3109
3148
|
function() {
|
|
3110
3149
|
function e(t, r) {
|
|
@@ -3128,13 +3167,13 @@ var Jn = (
|
|
|
3128
3167
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3129
3168
|
var a = this.clonePosition();
|
|
3130
3169
|
this.bump(), i.push({
|
|
3131
|
-
type:
|
|
3170
|
+
type: S.pound,
|
|
3132
3171
|
location: v(a, this.clonePosition())
|
|
3133
3172
|
});
|
|
3134
3173
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3135
3174
|
if (n)
|
|
3136
3175
|
break;
|
|
3137
|
-
return this.error(
|
|
3176
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3138
3177
|
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3139
3178
|
var s = this.parseTag(t, r);
|
|
3140
3179
|
if (s.err)
|
|
@@ -3156,7 +3195,7 @@ var Jn = (
|
|
|
3156
3195
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3157
3196
|
return {
|
|
3158
3197
|
val: {
|
|
3159
|
-
type:
|
|
3198
|
+
type: S.literal,
|
|
3160
3199
|
value: "<".concat(i, "/>"),
|
|
3161
3200
|
location: v(n, this.clonePosition())
|
|
3162
3201
|
},
|
|
@@ -3169,24 +3208,24 @@ var Jn = (
|
|
|
3169
3208
|
var s = o.val, a = this.clonePosition();
|
|
3170
3209
|
if (this.bumpIf("</")) {
|
|
3171
3210
|
if (this.isEOF() || !Xe(this.char()))
|
|
3172
|
-
return this.error(
|
|
3211
|
+
return this.error(b.INVALID_TAG, v(a, this.clonePosition()));
|
|
3173
3212
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3174
|
-
return i !== u ? this.error(
|
|
3213
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3175
3214
|
val: {
|
|
3176
|
-
type:
|
|
3215
|
+
type: S.tag,
|
|
3177
3216
|
value: i,
|
|
3178
3217
|
children: s,
|
|
3179
3218
|
location: v(n, this.clonePosition())
|
|
3180
3219
|
},
|
|
3181
3220
|
err: null
|
|
3182
|
-
} : this.error(
|
|
3221
|
+
} : this.error(b.INVALID_TAG, v(a, this.clonePosition())));
|
|
3183
3222
|
} else
|
|
3184
|
-
return this.error(
|
|
3223
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3185
3224
|
} else
|
|
3186
|
-
return this.error(
|
|
3225
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3187
3226
|
}, e.prototype.parseTagName = function() {
|
|
3188
3227
|
var t = this.offset();
|
|
3189
|
-
for (this.bump(); !this.isEOF() &&
|
|
3228
|
+
for (this.bump(); !this.isEOF() && Kn(this.char()); )
|
|
3190
3229
|
this.bump();
|
|
3191
3230
|
return this.message.slice(t, this.offset());
|
|
3192
3231
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3210,12 +3249,12 @@ var Jn = (
|
|
|
3210
3249
|
}
|
|
3211
3250
|
var l = v(n, this.clonePosition());
|
|
3212
3251
|
return {
|
|
3213
|
-
val: { type:
|
|
3252
|
+
val: { type: S.literal, value: i, location: l },
|
|
3214
3253
|
err: null
|
|
3215
3254
|
};
|
|
3216
3255
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3217
3256
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3218
|
-
!
|
|
3257
|
+
!qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3219
3258
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3220
3259
|
if (this.isEOF() || this.char() !== 39)
|
|
3221
3260
|
return null;
|
|
@@ -3258,19 +3297,19 @@ var Jn = (
|
|
|
3258
3297
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3259
3298
|
var n = this.clonePosition();
|
|
3260
3299
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3261
|
-
return this.error(
|
|
3300
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3262
3301
|
if (this.char() === 125)
|
|
3263
|
-
return this.bump(), this.error(
|
|
3302
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3264
3303
|
var i = this.parseIdentifierIfPossible().value;
|
|
3265
3304
|
if (!i)
|
|
3266
|
-
return this.error(
|
|
3305
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3267
3306
|
if (this.bumpSpace(), this.isEOF())
|
|
3268
|
-
return this.error(
|
|
3307
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3269
3308
|
switch (this.char()) {
|
|
3270
3309
|
case 125:
|
|
3271
3310
|
return this.bump(), {
|
|
3272
3311
|
val: {
|
|
3273
|
-
type:
|
|
3312
|
+
type: S.argument,
|
|
3274
3313
|
// value does not include the opening and closing braces.
|
|
3275
3314
|
value: i,
|
|
3276
3315
|
location: v(n, this.clonePosition())
|
|
@@ -3278,9 +3317,9 @@ var Jn = (
|
|
|
3278
3317
|
err: null
|
|
3279
3318
|
};
|
|
3280
3319
|
case 44:
|
|
3281
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3320
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3282
3321
|
default:
|
|
3283
|
-
return this.error(
|
|
3322
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3284
3323
|
}
|
|
3285
3324
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3286
3325
|
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
@@ -3291,7 +3330,7 @@ var Jn = (
|
|
|
3291
3330
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3292
3331
|
switch (a) {
|
|
3293
3332
|
case "":
|
|
3294
|
-
return this.error(
|
|
3333
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3295
3334
|
case "number":
|
|
3296
3335
|
case "date":
|
|
3297
3336
|
case "time": {
|
|
@@ -3302,46 +3341,46 @@ var Jn = (
|
|
|
3302
3341
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3303
3342
|
if (c.err)
|
|
3304
3343
|
return c;
|
|
3305
|
-
var f =
|
|
3344
|
+
var f = Jn(c.val);
|
|
3306
3345
|
if (f.length === 0)
|
|
3307
|
-
return this.error(
|
|
3346
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3308
3347
|
var m = v(h, this.clonePosition());
|
|
3309
3348
|
u = { style: f, styleLocation: m };
|
|
3310
3349
|
}
|
|
3311
|
-
var
|
|
3312
|
-
if (
|
|
3313
|
-
return
|
|
3314
|
-
var
|
|
3350
|
+
var d = this.tryParseArgumentClose(i);
|
|
3351
|
+
if (d.err)
|
|
3352
|
+
return d;
|
|
3353
|
+
var p = v(i, this.clonePosition());
|
|
3315
3354
|
if (u && bt(u?.style, "::", 0)) {
|
|
3316
|
-
var
|
|
3355
|
+
var w = Qn(u.style.slice(2));
|
|
3317
3356
|
if (a === "number") {
|
|
3318
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3357
|
+
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3319
3358
|
return c.err ? c : {
|
|
3320
|
-
val: { type:
|
|
3359
|
+
val: { type: S.number, value: n, location: p, style: c.val },
|
|
3321
3360
|
err: null
|
|
3322
3361
|
};
|
|
3323
3362
|
} else {
|
|
3324
|
-
if (
|
|
3325
|
-
return this.error(
|
|
3326
|
-
var
|
|
3327
|
-
this.locale && (
|
|
3363
|
+
if (w.length === 0)
|
|
3364
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3365
|
+
var I = w;
|
|
3366
|
+
this.locale && (I = Rn(w, this.locale));
|
|
3328
3367
|
var f = {
|
|
3329
|
-
type:
|
|
3330
|
-
pattern:
|
|
3368
|
+
type: z.dateTime,
|
|
3369
|
+
pattern: I,
|
|
3331
3370
|
location: u.styleLocation,
|
|
3332
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3333
|
-
}, C = a === "date" ?
|
|
3371
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(I) : {}
|
|
3372
|
+
}, C = a === "date" ? S.date : S.time;
|
|
3334
3373
|
return {
|
|
3335
|
-
val: { type: C, value: n, location:
|
|
3374
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3336
3375
|
err: null
|
|
3337
3376
|
};
|
|
3338
3377
|
}
|
|
3339
3378
|
}
|
|
3340
3379
|
return {
|
|
3341
3380
|
val: {
|
|
3342
|
-
type: a === "number" ?
|
|
3381
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3343
3382
|
value: n,
|
|
3344
|
-
location:
|
|
3383
|
+
location: p,
|
|
3345
3384
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3346
3385
|
},
|
|
3347
3386
|
err: null
|
|
@@ -3350,30 +3389,30 @@ var Jn = (
|
|
|
3350
3389
|
case "plural":
|
|
3351
3390
|
case "selectordinal":
|
|
3352
3391
|
case "select": {
|
|
3353
|
-
var
|
|
3392
|
+
var T = this.clonePosition();
|
|
3354
3393
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3355
|
-
return this.error(
|
|
3394
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, y({}, T)));
|
|
3356
3395
|
this.bumpSpace();
|
|
3357
|
-
var
|
|
3358
|
-
if (a !== "select" &&
|
|
3396
|
+
var _ = this.parseIdentifierIfPossible(), E = 0;
|
|
3397
|
+
if (a !== "select" && _.value === "offset") {
|
|
3359
3398
|
if (!this.bumpIf(":"))
|
|
3360
|
-
return this.error(
|
|
3399
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3361
3400
|
this.bumpSpace();
|
|
3362
|
-
var c = this.tryParseDecimalInteger(
|
|
3401
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3363
3402
|
if (c.err)
|
|
3364
3403
|
return c;
|
|
3365
|
-
this.bumpSpace(),
|
|
3404
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), E = c.val;
|
|
3366
3405
|
}
|
|
3367
|
-
var x = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3406
|
+
var x = this.tryParsePluralOrSelectOptions(t, a, r, _);
|
|
3368
3407
|
if (x.err)
|
|
3369
3408
|
return x;
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3409
|
+
var d = this.tryParseArgumentClose(i);
|
|
3410
|
+
if (d.err)
|
|
3411
|
+
return d;
|
|
3373
3412
|
var P = v(i, this.clonePosition());
|
|
3374
3413
|
return a === "select" ? {
|
|
3375
3414
|
val: {
|
|
3376
|
-
type:
|
|
3415
|
+
type: S.select,
|
|
3377
3416
|
value: n,
|
|
3378
3417
|
options: gt(x.val),
|
|
3379
3418
|
location: P
|
|
@@ -3381,10 +3420,10 @@ var Jn = (
|
|
|
3381
3420
|
err: null
|
|
3382
3421
|
} : {
|
|
3383
3422
|
val: {
|
|
3384
|
-
type:
|
|
3423
|
+
type: S.plural,
|
|
3385
3424
|
value: n,
|
|
3386
3425
|
options: gt(x.val),
|
|
3387
|
-
offset:
|
|
3426
|
+
offset: E,
|
|
3388
3427
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3389
3428
|
location: P
|
|
3390
3429
|
},
|
|
@@ -3392,10 +3431,10 @@ var Jn = (
|
|
|
3392
3431
|
};
|
|
3393
3432
|
}
|
|
3394
3433
|
default:
|
|
3395
|
-
return this.error(
|
|
3434
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3396
3435
|
}
|
|
3397
3436
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3398
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3437
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3399
3438
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3400
3439
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3401
3440
|
var n = this.char();
|
|
@@ -3404,7 +3443,7 @@ var Jn = (
|
|
|
3404
3443
|
this.bump();
|
|
3405
3444
|
var i = this.clonePosition();
|
|
3406
3445
|
if (!this.bumpUntil("'"))
|
|
3407
|
-
return this.error(
|
|
3446
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3408
3447
|
this.bump();
|
|
3409
3448
|
break;
|
|
3410
3449
|
}
|
|
@@ -3434,16 +3473,16 @@ var Jn = (
|
|
|
3434
3473
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3435
3474
|
var n = [];
|
|
3436
3475
|
try {
|
|
3437
|
-
n =
|
|
3476
|
+
n = On(t);
|
|
3438
3477
|
} catch {
|
|
3439
|
-
return this.error(
|
|
3478
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3440
3479
|
}
|
|
3441
3480
|
return {
|
|
3442
3481
|
val: {
|
|
3443
|
-
type:
|
|
3482
|
+
type: z.number,
|
|
3444
3483
|
tokens: n,
|
|
3445
3484
|
location: r,
|
|
3446
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3485
|
+
parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
|
|
3447
3486
|
},
|
|
3448
3487
|
err: null
|
|
3449
3488
|
};
|
|
@@ -3452,7 +3491,7 @@ var Jn = (
|
|
|
3452
3491
|
if (u.length === 0) {
|
|
3453
3492
|
var c = this.clonePosition();
|
|
3454
3493
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3455
|
-
var f = this.tryParseDecimalInteger(
|
|
3494
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3456
3495
|
if (f.err)
|
|
3457
3496
|
return f;
|
|
3458
3497
|
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3460,26 +3499,26 @@ var Jn = (
|
|
|
3460
3499
|
break;
|
|
3461
3500
|
}
|
|
3462
3501
|
if (l.has(u))
|
|
3463
|
-
return this.error(r === "select" ?
|
|
3502
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3464
3503
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3465
3504
|
var m = this.clonePosition();
|
|
3466
3505
|
if (!this.bumpIf("{"))
|
|
3467
|
-
return this.error(r === "select" ?
|
|
3468
|
-
var
|
|
3469
|
-
if (p.err)
|
|
3470
|
-
return p;
|
|
3471
|
-
var d = this.tryParseArgumentClose(m);
|
|
3506
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3507
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3472
3508
|
if (d.err)
|
|
3473
3509
|
return d;
|
|
3510
|
+
var p = this.tryParseArgumentClose(m);
|
|
3511
|
+
if (p.err)
|
|
3512
|
+
return p;
|
|
3474
3513
|
a.push([
|
|
3475
3514
|
u,
|
|
3476
3515
|
{
|
|
3477
|
-
value:
|
|
3516
|
+
value: d.val,
|
|
3478
3517
|
location: v(m, this.clonePosition())
|
|
3479
3518
|
}
|
|
3480
3519
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3481
3520
|
}
|
|
3482
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3521
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3483
3522
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3484
3523
|
var n = 1, i = this.clonePosition();
|
|
3485
3524
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3491,7 +3530,7 @@ var Jn = (
|
|
|
3491
3530
|
break;
|
|
3492
3531
|
}
|
|
3493
3532
|
var l = v(i, this.clonePosition());
|
|
3494
|
-
return o ? (s *= n,
|
|
3533
|
+
return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3495
3534
|
}, e.prototype.offset = function() {
|
|
3496
3535
|
return this.position.offset;
|
|
3497
3536
|
}, e.prototype.isEOF = function() {
|
|
@@ -3560,16 +3599,16 @@ var Jn = (
|
|
|
3560
3599
|
function Xe(e) {
|
|
3561
3600
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3562
3601
|
}
|
|
3563
|
-
function
|
|
3602
|
+
function qn(e) {
|
|
3564
3603
|
return Xe(e) || e === 47;
|
|
3565
3604
|
}
|
|
3566
|
-
function
|
|
3605
|
+
function Kn(e) {
|
|
3567
3606
|
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;
|
|
3568
3607
|
}
|
|
3569
3608
|
function ir(e) {
|
|
3570
3609
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3571
3610
|
}
|
|
3572
|
-
function
|
|
3611
|
+
function ei(e) {
|
|
3573
3612
|
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;
|
|
3574
3613
|
}
|
|
3575
3614
|
function ze(e) {
|
|
@@ -3577,26 +3616,27 @@ function ze(e) {
|
|
|
3577
3616
|
if (delete t.location, Zt(t) || Qt(t))
|
|
3578
3617
|
for (var r in t.options)
|
|
3579
3618
|
delete t.options[r].location, ze(t.options[r].value);
|
|
3580
|
-
else
|
|
3619
|
+
else
|
|
3620
|
+
Xt(t) && Yt(t.style) || (zt(t) || Wt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && ze(t.children);
|
|
3581
3621
|
});
|
|
3582
3622
|
}
|
|
3583
|
-
function
|
|
3623
|
+
function ti(e, t) {
|
|
3584
3624
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3585
|
-
var r = new
|
|
3625
|
+
var r = new Yn(e, t).parse();
|
|
3586
3626
|
if (r.err) {
|
|
3587
|
-
var n = SyntaxError(
|
|
3627
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3588
3628
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3589
3629
|
}
|
|
3590
3630
|
return t?.captureLocation || ze(r.val), r.val;
|
|
3591
3631
|
}
|
|
3592
|
-
var
|
|
3632
|
+
var W;
|
|
3593
3633
|
(function(e) {
|
|
3594
3634
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3595
|
-
})(
|
|
3635
|
+
})(W || (W = {}));
|
|
3596
3636
|
var _e = (
|
|
3597
3637
|
/** @class */
|
|
3598
3638
|
function(e) {
|
|
3599
|
-
|
|
3639
|
+
R(t, e);
|
|
3600
3640
|
function t(r, n, i) {
|
|
3601
3641
|
var o = e.call(this, r) || this;
|
|
3602
3642
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3608,48 +3648,48 @@ var _e = (
|
|
|
3608
3648
|
), yt = (
|
|
3609
3649
|
/** @class */
|
|
3610
3650
|
function(e) {
|
|
3611
|
-
|
|
3651
|
+
R(t, e);
|
|
3612
3652
|
function t(r, n, i, o) {
|
|
3613
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3653
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3614
3654
|
}
|
|
3615
3655
|
return t;
|
|
3616
3656
|
}(_e)
|
|
3617
|
-
),
|
|
3657
|
+
), ri = (
|
|
3618
3658
|
/** @class */
|
|
3619
3659
|
function(e) {
|
|
3620
|
-
|
|
3660
|
+
R(t, e);
|
|
3621
3661
|
function t(r, n, i) {
|
|
3622
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3662
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3623
3663
|
}
|
|
3624
3664
|
return t;
|
|
3625
3665
|
}(_e)
|
|
3626
|
-
),
|
|
3666
|
+
), ni = (
|
|
3627
3667
|
/** @class */
|
|
3628
3668
|
function(e) {
|
|
3629
|
-
|
|
3669
|
+
R(t, e);
|
|
3630
3670
|
function t(r, n) {
|
|
3631
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3671
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3632
3672
|
}
|
|
3633
3673
|
return t;
|
|
3634
3674
|
}(_e)
|
|
3635
|
-
),
|
|
3675
|
+
), A;
|
|
3636
3676
|
(function(e) {
|
|
3637
3677
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3638
|
-
})(
|
|
3639
|
-
function
|
|
3678
|
+
})(A || (A = {}));
|
|
3679
|
+
function ii(e) {
|
|
3640
3680
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3641
3681
|
var n = t[t.length - 1];
|
|
3642
|
-
return !n || n.type !==
|
|
3682
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3643
3683
|
}, []);
|
|
3644
3684
|
}
|
|
3645
|
-
function
|
|
3685
|
+
function oi(e) {
|
|
3646
3686
|
return typeof e == "function";
|
|
3647
3687
|
}
|
|
3648
3688
|
function de(e, t, r, n, i, o, s) {
|
|
3649
3689
|
if (e.length === 1 && ft(e[0]))
|
|
3650
3690
|
return [
|
|
3651
3691
|
{
|
|
3652
|
-
type:
|
|
3692
|
+
type: A.literal,
|
|
3653
3693
|
value: e[0].value
|
|
3654
3694
|
}
|
|
3655
3695
|
];
|
|
@@ -3657,25 +3697,25 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3657
3697
|
var h = u[l];
|
|
3658
3698
|
if (ft(h)) {
|
|
3659
3699
|
a.push({
|
|
3660
|
-
type:
|
|
3700
|
+
type: A.literal,
|
|
3661
3701
|
value: h.value
|
|
3662
3702
|
});
|
|
3663
3703
|
continue;
|
|
3664
3704
|
}
|
|
3665
|
-
if (
|
|
3705
|
+
if (Bn(h)) {
|
|
3666
3706
|
typeof o == "number" && a.push({
|
|
3667
|
-
type:
|
|
3707
|
+
type: A.literal,
|
|
3668
3708
|
value: r.getNumberFormat(t).format(o)
|
|
3669
3709
|
});
|
|
3670
3710
|
continue;
|
|
3671
3711
|
}
|
|
3672
3712
|
var c = h.value;
|
|
3673
3713
|
if (!(i && c in i))
|
|
3674
|
-
throw new
|
|
3714
|
+
throw new ni(c, s);
|
|
3675
3715
|
var f = i[c];
|
|
3676
|
-
if (
|
|
3716
|
+
if (Hn(h)) {
|
|
3677
3717
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3678
|
-
type: typeof f == "string" ?
|
|
3718
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3679
3719
|
value: f
|
|
3680
3720
|
});
|
|
3681
3721
|
continue;
|
|
@@ -3683,7 +3723,7 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3683
3723
|
if (zt(h)) {
|
|
3684
3724
|
var m = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
|
|
3685
3725
|
a.push({
|
|
3686
|
-
type:
|
|
3726
|
+
type: A.literal,
|
|
3687
3727
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3688
3728
|
});
|
|
3689
3729
|
continue;
|
|
@@ -3691,7 +3731,7 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3691
3731
|
if (Wt(h)) {
|
|
3692
3732
|
var m = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3693
3733
|
a.push({
|
|
3694
|
-
type:
|
|
3734
|
+
type: A.literal,
|
|
3695
3735
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3696
3736
|
});
|
|
3697
3737
|
continue;
|
|
@@ -3699,58 +3739,58 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3699
3739
|
if (Xt(h)) {
|
|
3700
3740
|
var m = typeof h.style == "string" ? n.number[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3701
3741
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3702
|
-
type:
|
|
3742
|
+
type: A.literal,
|
|
3703
3743
|
value: r.getNumberFormat(t, m).format(f)
|
|
3704
3744
|
});
|
|
3705
3745
|
continue;
|
|
3706
3746
|
}
|
|
3707
3747
|
if (Jt(h)) {
|
|
3708
|
-
var
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new
|
|
3711
|
-
var
|
|
3712
|
-
return
|
|
3748
|
+
var d = h.children, p = h.value, w = i[p];
|
|
3749
|
+
if (!oi(w))
|
|
3750
|
+
throw new ri(p, "function", s);
|
|
3751
|
+
var I = de(d, t, r, n, i, o), C = w(I.map(function(E) {
|
|
3752
|
+
return E.value;
|
|
3713
3753
|
}));
|
|
3714
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3754
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(E) {
|
|
3715
3755
|
return {
|
|
3716
|
-
type: typeof
|
|
3717
|
-
value:
|
|
3756
|
+
type: typeof E == "string" ? A.literal : A.object,
|
|
3757
|
+
value: E
|
|
3718
3758
|
};
|
|
3719
3759
|
}));
|
|
3720
3760
|
}
|
|
3721
3761
|
if (Zt(h)) {
|
|
3722
|
-
var
|
|
3723
|
-
if (!
|
|
3762
|
+
var T = h.options[f] || h.options.other;
|
|
3763
|
+
if (!T)
|
|
3724
3764
|
throw new yt(h.value, f, Object.keys(h.options), s);
|
|
3725
|
-
a.push.apply(a, de(
|
|
3765
|
+
a.push.apply(a, de(T.value, t, r, n, i));
|
|
3726
3766
|
continue;
|
|
3727
3767
|
}
|
|
3728
3768
|
if (Qt(h)) {
|
|
3729
|
-
var
|
|
3730
|
-
if (!
|
|
3769
|
+
var T = h.options["=".concat(f)];
|
|
3770
|
+
if (!T) {
|
|
3731
3771
|
if (!Intl.PluralRules)
|
|
3732
3772
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3733
3773
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3734
|
-
`,
|
|
3735
|
-
var
|
|
3736
|
-
|
|
3774
|
+
`, W.MISSING_INTL_API, s);
|
|
3775
|
+
var _ = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3776
|
+
T = h.options[_] || h.options.other;
|
|
3737
3777
|
}
|
|
3738
|
-
if (!
|
|
3778
|
+
if (!T)
|
|
3739
3779
|
throw new yt(h.value, f, Object.keys(h.options), s);
|
|
3740
|
-
a.push.apply(a, de(
|
|
3780
|
+
a.push.apply(a, de(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3741
3781
|
continue;
|
|
3742
3782
|
}
|
|
3743
3783
|
}
|
|
3744
|
-
return
|
|
3784
|
+
return ii(a);
|
|
3745
3785
|
}
|
|
3746
|
-
function
|
|
3786
|
+
function si(e, t) {
|
|
3747
3787
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3748
3788
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3749
3789
|
}, {})) : e;
|
|
3750
3790
|
}
|
|
3751
|
-
function
|
|
3791
|
+
function ai(e, t) {
|
|
3752
3792
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3753
|
-
return r[n] =
|
|
3793
|
+
return r[n] = si(e[n], t[n]), r;
|
|
3754
3794
|
}, y({}, e)) : e;
|
|
3755
3795
|
}
|
|
3756
3796
|
function Pe(e) {
|
|
@@ -3767,7 +3807,7 @@ function Pe(e) {
|
|
|
3767
3807
|
}
|
|
3768
3808
|
};
|
|
3769
3809
|
}
|
|
3770
|
-
function
|
|
3810
|
+
function ui(e) {
|
|
3771
3811
|
return e === void 0 && (e = {
|
|
3772
3812
|
number: {},
|
|
3773
3813
|
dateTime: {},
|
|
@@ -3776,7 +3816,7 @@ function ai(e) {
|
|
|
3776
3816
|
getNumberFormat: Be(function() {
|
|
3777
3817
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3778
3818
|
r[n] = arguments[n];
|
|
3779
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3819
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3780
3820
|
}, {
|
|
3781
3821
|
cache: Pe(e.number),
|
|
3782
3822
|
strategy: Ae.variadic
|
|
@@ -3784,7 +3824,7 @@ function ai(e) {
|
|
|
3784
3824
|
getDateTimeFormat: Be(function() {
|
|
3785
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3786
3826
|
r[n] = arguments[n];
|
|
3787
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3827
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3788
3828
|
}, {
|
|
3789
3829
|
cache: Pe(e.dateTime),
|
|
3790
3830
|
strategy: Ae.variadic
|
|
@@ -3792,14 +3832,14 @@ function ai(e) {
|
|
|
3792
3832
|
getPluralRules: Be(function() {
|
|
3793
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3794
3834
|
r[n] = arguments[n];
|
|
3795
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3835
|
+
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3796
3836
|
}, {
|
|
3797
3837
|
cache: Pe(e.pluralRules),
|
|
3798
3838
|
strategy: Ae.variadic
|
|
3799
3839
|
})
|
|
3800
3840
|
};
|
|
3801
3841
|
}
|
|
3802
|
-
var
|
|
3842
|
+
var li = (
|
|
3803
3843
|
/** @class */
|
|
3804
3844
|
function() {
|
|
3805
3845
|
function e(t, r, n, i) {
|
|
@@ -3814,7 +3854,7 @@ var ui = (
|
|
|
3814
3854
|
if (u.length === 1)
|
|
3815
3855
|
return u[0].value;
|
|
3816
3856
|
var h = u.reduce(function(c, f) {
|
|
3817
|
-
return !c.length || f.type !==
|
|
3857
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3818
3858
|
}, []);
|
|
3819
3859
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3820
3860
|
}, this.formatToParts = function(l) {
|
|
@@ -3831,13 +3871,13 @@ var ui = (
|
|
|
3831
3871
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3832
3872
|
var s = i || {};
|
|
3833
3873
|
s.formatters;
|
|
3834
|
-
var a =
|
|
3874
|
+
var a = Fr(s, ["formatters"]);
|
|
3835
3875
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3836
3876
|
} else
|
|
3837
3877
|
this.ast = t;
|
|
3838
3878
|
if (!Array.isArray(this.ast))
|
|
3839
3879
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3840
|
-
this.formats =
|
|
3880
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
|
|
3841
3881
|
}
|
|
3842
3882
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3843
3883
|
get: function() {
|
|
@@ -3850,7 +3890,7 @@ var ui = (
|
|
|
3850
3890
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3851
3891
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3852
3892
|
}
|
|
3853
|
-
}, e.__parse =
|
|
3893
|
+
}, e.__parse = ti, e.formats = {
|
|
3854
3894
|
number: {
|
|
3855
3895
|
integer: {
|
|
3856
3896
|
maximumFractionDigits: 0
|
|
@@ -3911,7 +3951,7 @@ var ui = (
|
|
|
3911
3951
|
}, e;
|
|
3912
3952
|
}()
|
|
3913
3953
|
);
|
|
3914
|
-
function
|
|
3954
|
+
function hi(e, t) {
|
|
3915
3955
|
if (t == null)
|
|
3916
3956
|
return;
|
|
3917
3957
|
if (t in e)
|
|
@@ -3932,33 +3972,33 @@ function li(e, t) {
|
|
|
3932
3972
|
n = void 0;
|
|
3933
3973
|
return n;
|
|
3934
3974
|
}
|
|
3935
|
-
const
|
|
3975
|
+
const $ = {}, ci = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), or = (e, t) => {
|
|
3936
3976
|
if (t == null)
|
|
3937
3977
|
return;
|
|
3938
|
-
if (t in
|
|
3939
|
-
return
|
|
3978
|
+
if (t in $ && e in $[t])
|
|
3979
|
+
return $[t][e];
|
|
3940
3980
|
const r = Ee(t);
|
|
3941
3981
|
for (let n = 0; n < r.length; n++) {
|
|
3942
|
-
const i = r[n], o =
|
|
3982
|
+
const i = r[n], o = mi(i, e);
|
|
3943
3983
|
if (o)
|
|
3944
|
-
return
|
|
3984
|
+
return ci(e, t, o);
|
|
3945
3985
|
}
|
|
3946
3986
|
};
|
|
3947
|
-
let
|
|
3987
|
+
let qe;
|
|
3948
3988
|
const ae = xe({});
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3989
|
+
function fi(e) {
|
|
3990
|
+
return qe[e] || null;
|
|
3951
3991
|
}
|
|
3952
3992
|
function sr(e) {
|
|
3953
|
-
return e in
|
|
3993
|
+
return e in qe;
|
|
3954
3994
|
}
|
|
3955
|
-
function
|
|
3995
|
+
function mi(e, t) {
|
|
3956
3996
|
if (!sr(e))
|
|
3957
3997
|
return null;
|
|
3958
|
-
const r =
|
|
3959
|
-
return
|
|
3998
|
+
const r = fi(e);
|
|
3999
|
+
return hi(r, t);
|
|
3960
4000
|
}
|
|
3961
|
-
function
|
|
4001
|
+
function di(e) {
|
|
3962
4002
|
if (e == null)
|
|
3963
4003
|
return;
|
|
3964
4004
|
const t = Ee(e);
|
|
@@ -3969,21 +4009,21 @@ function mi(e) {
|
|
|
3969
4009
|
}
|
|
3970
4010
|
}
|
|
3971
4011
|
function ar(e, ...t) {
|
|
3972
|
-
delete
|
|
4012
|
+
delete $[e], ae.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
3973
4013
|
}
|
|
3974
|
-
|
|
4014
|
+
Y(
|
|
3975
4015
|
[ae],
|
|
3976
4016
|
([e]) => Object.keys(e)
|
|
3977
4017
|
);
|
|
3978
|
-
ae.subscribe((e) =>
|
|
4018
|
+
ae.subscribe((e) => qe = e);
|
|
3979
4019
|
const pe = {};
|
|
3980
|
-
function
|
|
4020
|
+
function pi(e, t) {
|
|
3981
4021
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3982
4022
|
}
|
|
3983
4023
|
function ur(e) {
|
|
3984
4024
|
return pe[e];
|
|
3985
4025
|
}
|
|
3986
|
-
function
|
|
4026
|
+
function bi(e) {
|
|
3987
4027
|
return Ee(e).map((t) => {
|
|
3988
4028
|
const r = ur(t);
|
|
3989
4029
|
return [t, r ? [...r] : []];
|
|
@@ -3997,27 +4037,27 @@ function We(e) {
|
|
|
3997
4037
|
}
|
|
3998
4038
|
);
|
|
3999
4039
|
}
|
|
4000
|
-
function
|
|
4040
|
+
function gi(e, t) {
|
|
4001
4041
|
return Promise.all(
|
|
4002
|
-
t.map((n) => (
|
|
4042
|
+
t.map((n) => (pi(e, n), n().then((i) => i.default || i)))
|
|
4003
4043
|
).then((n) => ar(e, ...n));
|
|
4004
4044
|
}
|
|
4005
|
-
const
|
|
4045
|
+
const ee = {};
|
|
4006
4046
|
function lr(e) {
|
|
4007
4047
|
if (!We(e))
|
|
4008
|
-
return e in
|
|
4009
|
-
const t =
|
|
4010
|
-
return
|
|
4048
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4049
|
+
const t = bi(e);
|
|
4050
|
+
return ee[e] = Promise.all(
|
|
4011
4051
|
t.map(
|
|
4012
|
-
([r, n]) =>
|
|
4052
|
+
([r, n]) => gi(r, n)
|
|
4013
4053
|
)
|
|
4014
4054
|
).then(() => {
|
|
4015
4055
|
if (We(e))
|
|
4016
4056
|
return lr(e);
|
|
4017
|
-
delete
|
|
4018
|
-
}),
|
|
4057
|
+
delete ee[e];
|
|
4058
|
+
}), ee[e];
|
|
4019
4059
|
}
|
|
4020
|
-
const
|
|
4060
|
+
const vi = {
|
|
4021
4061
|
number: {
|
|
4022
4062
|
scientific: { notation: "scientific" },
|
|
4023
4063
|
engineering: { notation: "engineering" },
|
|
@@ -4046,46 +4086,46 @@ const gi = {
|
|
|
4046
4086
|
timeZoneName: "short"
|
|
4047
4087
|
}
|
|
4048
4088
|
}
|
|
4049
|
-
},
|
|
4089
|
+
}, yi = {
|
|
4050
4090
|
fallbackLocale: null,
|
|
4051
4091
|
loadingDelay: 200,
|
|
4052
|
-
formats:
|
|
4092
|
+
formats: vi,
|
|
4053
4093
|
warnOnMissingMessages: !0,
|
|
4054
4094
|
handleMissingMessage: void 0,
|
|
4055
4095
|
ignoreTag: !0
|
|
4056
|
-
},
|
|
4057
|
-
function
|
|
4058
|
-
return
|
|
4096
|
+
}, xi = yi;
|
|
4097
|
+
function Z() {
|
|
4098
|
+
return xi;
|
|
4059
4099
|
}
|
|
4060
4100
|
const Oe = xe(!1);
|
|
4061
|
-
var
|
|
4101
|
+
var _i = Object.defineProperty, Ei = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
4062
4102
|
for (var r in t || (t = {}))
|
|
4063
|
-
|
|
4103
|
+
wi.call(t, r) && _t(e, r, t[r]);
|
|
4064
4104
|
if (xt)
|
|
4065
4105
|
for (var r of xt(t))
|
|
4066
4106
|
Ti.call(t, r) && _t(e, r, t[r]);
|
|
4067
4107
|
return e;
|
|
4068
|
-
},
|
|
4108
|
+
}, Bi = (e, t) => Ei(e, Si(t));
|
|
4069
4109
|
let Ze;
|
|
4070
4110
|
const ge = xe(null);
|
|
4071
4111
|
function Et(e) {
|
|
4072
4112
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4073
4113
|
}
|
|
4074
|
-
function Ee(e, t =
|
|
4114
|
+
function Ee(e, t = Z().fallbackLocale) {
|
|
4075
4115
|
const r = Et(e);
|
|
4076
4116
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4077
4117
|
}
|
|
4078
|
-
function
|
|
4118
|
+
function G() {
|
|
4079
4119
|
return Ze ?? void 0;
|
|
4080
4120
|
}
|
|
4081
4121
|
ge.subscribe((e) => {
|
|
4082
4122
|
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4083
4123
|
});
|
|
4084
|
-
const
|
|
4085
|
-
if (e &&
|
|
4086
|
-
const { loadingDelay: t } =
|
|
4124
|
+
const Ai = (e) => {
|
|
4125
|
+
if (e && di(e) && We(e)) {
|
|
4126
|
+
const { loadingDelay: t } = Z();
|
|
4087
4127
|
let r;
|
|
4088
|
-
return typeof window < "u" &&
|
|
4128
|
+
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4089
4129
|
() => Oe.set(!0),
|
|
4090
4130
|
t
|
|
4091
4131
|
) : Oe.set(!0), lr(e).then(() => {
|
|
@@ -4095,8 +4135,8 @@ const Bi = (e) => {
|
|
|
4095
4135
|
});
|
|
4096
4136
|
}
|
|
4097
4137
|
return ge.set(e);
|
|
4098
|
-
},
|
|
4099
|
-
set:
|
|
4138
|
+
}, q = Bi(Hi({}, ge), {
|
|
4139
|
+
set: Ai
|
|
4100
4140
|
}), Se = (e) => {
|
|
4101
4141
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4102
4142
|
return (n) => {
|
|
@@ -4104,14 +4144,14 @@ const Bi = (e) => {
|
|
|
4104
4144
|
return i in t ? t[i] : t[i] = e(n);
|
|
4105
4145
|
};
|
|
4106
4146
|
};
|
|
4107
|
-
var
|
|
4147
|
+
var Ci = Object.defineProperty, ve = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4108
4148
|
for (var r in t || (t = {}))
|
|
4109
4149
|
hr.call(t, r) && St(e, r, t[r]);
|
|
4110
4150
|
if (ve)
|
|
4111
4151
|
for (var r of ve(t))
|
|
4112
4152
|
cr.call(t, r) && St(e, r, t[r]);
|
|
4113
4153
|
return e;
|
|
4114
|
-
},
|
|
4154
|
+
}, K = (e, t) => {
|
|
4115
4155
|
var r = {};
|
|
4116
4156
|
for (var n in e)
|
|
4117
4157
|
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4121,66 +4161,66 @@ var Ai = Object.defineProperty, ve = Object.getOwnPropertySymbols, hr = Object.p
|
|
|
4121
4161
|
return r;
|
|
4122
4162
|
};
|
|
4123
4163
|
const oe = (e, t) => {
|
|
4124
|
-
const { formats: r } =
|
|
4164
|
+
const { formats: r } = Z();
|
|
4125
4165
|
if (e in r && t in r[e])
|
|
4126
4166
|
return r[e][t];
|
|
4127
4167
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4128
|
-
},
|
|
4168
|
+
}, Pi = Se(
|
|
4129
4169
|
(e) => {
|
|
4130
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4170
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4131
4171
|
if (r == null)
|
|
4132
4172
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4133
4173
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4134
4174
|
}
|
|
4135
|
-
),
|
|
4175
|
+
), Oi = Se(
|
|
4136
4176
|
(e) => {
|
|
4137
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4177
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4138
4178
|
if (r == null)
|
|
4139
4179
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4140
4180
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4141
4181
|
}
|
|
4142
|
-
),
|
|
4182
|
+
), Ii = Se(
|
|
4143
4183
|
(e) => {
|
|
4144
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4184
|
+
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4145
4185
|
if (r == null)
|
|
4146
4186
|
throw new Error(
|
|
4147
4187
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4148
4188
|
);
|
|
4149
4189
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4150
4190
|
}
|
|
4151
|
-
),
|
|
4191
|
+
), Mi = (e = {}) => {
|
|
4152
4192
|
var t = e, {
|
|
4153
|
-
locale: r =
|
|
4154
|
-
} = t, n =
|
|
4193
|
+
locale: r = G()
|
|
4194
|
+
} = t, n = K(t, [
|
|
4155
4195
|
"locale"
|
|
4156
4196
|
]);
|
|
4157
|
-
return
|
|
4197
|
+
return Pi(Ke({ locale: r }, n));
|
|
4158
4198
|
}, Ni = (e = {}) => {
|
|
4159
4199
|
var t = e, {
|
|
4160
|
-
locale: r =
|
|
4161
|
-
} = t, n =
|
|
4200
|
+
locale: r = G()
|
|
4201
|
+
} = t, n = K(t, [
|
|
4162
4202
|
"locale"
|
|
4163
4203
|
]);
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4204
|
+
return Oi(Ke({ locale: r }, n));
|
|
4205
|
+
}, Li = (e = {}) => {
|
|
4166
4206
|
var t = e, {
|
|
4167
|
-
locale: r =
|
|
4168
|
-
} = t, n =
|
|
4207
|
+
locale: r = G()
|
|
4208
|
+
} = t, n = K(t, [
|
|
4169
4209
|
"locale"
|
|
4170
4210
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4211
|
+
return Ii(Ke({ locale: r }, n));
|
|
4212
|
+
}, Ri = Se(
|
|
4173
4213
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4174
|
-
(e, t =
|
|
4175
|
-
ignoreTag:
|
|
4214
|
+
(e, t = G()) => new li(e, t, Z().formats, {
|
|
4215
|
+
ignoreTag: Z().ignoreTag
|
|
4176
4216
|
})
|
|
4177
|
-
),
|
|
4217
|
+
), $i = (e, t = {}) => {
|
|
4178
4218
|
var r, n, i, o;
|
|
4179
4219
|
let s = t;
|
|
4180
4220
|
typeof e == "object" && (s = e, e = s.id);
|
|
4181
4221
|
const {
|
|
4182
4222
|
values: a,
|
|
4183
|
-
locale: l =
|
|
4223
|
+
locale: l = G(),
|
|
4184
4224
|
default: u
|
|
4185
4225
|
} = s;
|
|
4186
4226
|
if (l == null)
|
|
@@ -4189,7 +4229,7 @@ const oe = (e, t) => {
|
|
|
4189
4229
|
);
|
|
4190
4230
|
let h = or(e, l);
|
|
4191
4231
|
if (!h)
|
|
4192
|
-
h = (o = (i = (n = (r =
|
|
4232
|
+
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;
|
|
4193
4233
|
else if (typeof h != "string")
|
|
4194
4234
|
return console.warn(
|
|
4195
4235
|
`[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.`
|
|
@@ -4198,7 +4238,7 @@ const oe = (e, t) => {
|
|
|
4198
4238
|
return h;
|
|
4199
4239
|
let c = h;
|
|
4200
4240
|
try {
|
|
4201
|
-
c =
|
|
4241
|
+
c = Ri(h, l).format(a);
|
|
4202
4242
|
} catch (f) {
|
|
4203
4243
|
f instanceof Error && console.warn(
|
|
4204
4244
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4206,20 +4246,20 @@ const oe = (e, t) => {
|
|
|
4206
4246
|
);
|
|
4207
4247
|
}
|
|
4208
4248
|
return c;
|
|
4209
|
-
},
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
window.emWidgets = { topic:
|
|
4215
|
-
const
|
|
4216
|
-
function
|
|
4249
|
+
}, Gi = (e, t) => Li(t).format(e), Ui = (e, t) => Ni(t).format(e), Di = (e, t) => Mi(t).format(e), Fi = (e, t = G()) => or(e, t), ji = Y([q, ae], () => $i);
|
|
4250
|
+
Y([q], () => Gi);
|
|
4251
|
+
Y([q], () => Ui);
|
|
4252
|
+
Y([q], () => Di);
|
|
4253
|
+
Y([q, ae], () => Fi);
|
|
4254
|
+
window.emWidgets = { topic: tn };
|
|
4255
|
+
const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4256
|
+
function wt(e, t) {
|
|
4217
4257
|
ar(e, t);
|
|
4218
4258
|
}
|
|
4219
|
-
function
|
|
4220
|
-
|
|
4259
|
+
function Vi(e) {
|
|
4260
|
+
q.set(e);
|
|
4221
4261
|
}
|
|
4222
|
-
const
|
|
4262
|
+
const Tt = {
|
|
4223
4263
|
en: {
|
|
4224
4264
|
cancel: "Cancel",
|
|
4225
4265
|
confirm: "Confirm"
|
|
@@ -4265,22 +4305,45 @@ const wt = {
|
|
|
4265
4305
|
confirm: "Confirm"
|
|
4266
4306
|
}
|
|
4267
4307
|
};
|
|
4268
|
-
function
|
|
4269
|
-
|
|
4308
|
+
function Xi(e, t) {
|
|
4309
|
+
if (e) {
|
|
4310
|
+
const r = document.createElement("style");
|
|
4311
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
function zi(e, t) {
|
|
4315
|
+
const r = new URL(t);
|
|
4316
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4317
|
+
const i = document.createElement("style");
|
|
4318
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4319
|
+
}).catch((n) => {
|
|
4320
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4321
|
+
});
|
|
4322
|
+
}
|
|
4323
|
+
function Wi(e, t, r) {
|
|
4324
|
+
if (window.emMessageBus) {
|
|
4325
|
+
const n = document.createElement("style");
|
|
4326
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4327
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4328
|
+
});
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
function Zi(e) {
|
|
4332
|
+
_r(e, "svelte-1o81iqe", '*,*::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, 20px);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, 20px)}.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}');
|
|
4270
4333
|
}
|
|
4271
|
-
const
|
|
4272
|
-
function
|
|
4334
|
+
const Qi = (e) => ({}), Ht = (e) => ({});
|
|
4335
|
+
function Ji(e) {
|
|
4273
4336
|
let t, r;
|
|
4274
4337
|
return {
|
|
4275
4338
|
c() {
|
|
4276
|
-
t = rt("svg"), r = rt("path"),
|
|
4339
|
+
t = rt("svg"), r = rt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4277
4340
|
},
|
|
4278
4341
|
m(n, i) {
|
|
4279
|
-
se(n, t, i),
|
|
4342
|
+
se(n, t, i), B(t, r);
|
|
4280
4343
|
},
|
|
4281
|
-
p:
|
|
4344
|
+
p: N,
|
|
4282
4345
|
d(n) {
|
|
4283
|
-
n &&
|
|
4346
|
+
n && J(t);
|
|
4284
4347
|
}
|
|
4285
4348
|
};
|
|
4286
4349
|
}
|
|
@@ -4288,13 +4351,13 @@ function Bt(e) {
|
|
|
4288
4351
|
let t, r, n;
|
|
4289
4352
|
return {
|
|
4290
4353
|
c() {
|
|
4291
|
-
t =
|
|
4354
|
+
t = M("div"), r = M("h2"), n = re(
|
|
4292
4355
|
/*modaltitle*/
|
|
4293
4356
|
e[1]
|
|
4294
|
-
),
|
|
4357
|
+
), H(t, "class", "GeneralConfirmationTitle");
|
|
4295
4358
|
},
|
|
4296
4359
|
m(i, o) {
|
|
4297
|
-
se(i, t, o),
|
|
4360
|
+
se(i, t, o), B(t, r), B(r, n);
|
|
4298
4361
|
},
|
|
4299
4362
|
p(i, o) {
|
|
4300
4363
|
o & /*modaltitle*/
|
|
@@ -4305,7 +4368,7 @@ function Bt(e) {
|
|
|
4305
4368
|
);
|
|
4306
4369
|
},
|
|
4307
4370
|
d(i) {
|
|
4308
|
-
i &&
|
|
4371
|
+
i && J(t);
|
|
4309
4372
|
}
|
|
4310
4373
|
};
|
|
4311
4374
|
}
|
|
@@ -4316,14 +4379,14 @@ function At(e) {
|
|
|
4316
4379
|
), n, i, o;
|
|
4317
4380
|
return {
|
|
4318
4381
|
c() {
|
|
4319
|
-
t =
|
|
4382
|
+
t = M("button"), n = re(r), H(t, "class", "GeneralCancelButton");
|
|
4320
4383
|
},
|
|
4321
4384
|
m(s, a) {
|
|
4322
|
-
se(s, t, a),
|
|
4385
|
+
se(s, t, a), B(t, n), i || (o = Ie(
|
|
4323
4386
|
t,
|
|
4324
4387
|
"click",
|
|
4325
4388
|
/*click_handler*/
|
|
4326
|
-
e[
|
|
4389
|
+
e[17]
|
|
4327
4390
|
), i = !0);
|
|
4328
4391
|
},
|
|
4329
4392
|
p(s, a) {
|
|
@@ -4332,44 +4395,44 @@ function At(e) {
|
|
|
4332
4395
|
s[4]("cancel") + "") && be(n, r);
|
|
4333
4396
|
},
|
|
4334
4397
|
d(s) {
|
|
4335
|
-
s &&
|
|
4398
|
+
s && J(t), i = !1, o();
|
|
4336
4399
|
}
|
|
4337
4400
|
};
|
|
4338
4401
|
}
|
|
4339
|
-
function
|
|
4402
|
+
function Yi(e) {
|
|
4340
4403
|
let t, r, n, i, o, s, a, l, u, h, c, f = (
|
|
4341
4404
|
/*$_*/
|
|
4342
4405
|
e[4]("confirm") + ""
|
|
4343
|
-
), m,
|
|
4344
|
-
const
|
|
4406
|
+
), m, d, p, w;
|
|
4407
|
+
const I = (
|
|
4345
4408
|
/*#slots*/
|
|
4346
|
-
e[
|
|
4347
|
-
), C =
|
|
4348
|
-
|
|
4409
|
+
e[16].close
|
|
4410
|
+
), C = gr(
|
|
4411
|
+
I,
|
|
4349
4412
|
e,
|
|
4350
4413
|
/*$$scope*/
|
|
4351
|
-
e[
|
|
4414
|
+
e[15],
|
|
4352
4415
|
Ht
|
|
4353
|
-
),
|
|
4354
|
-
let
|
|
4416
|
+
), T = C || Ji();
|
|
4417
|
+
let _ = (
|
|
4355
4418
|
/*modaltitle*/
|
|
4356
4419
|
e[1] && Bt(e)
|
|
4357
|
-
),
|
|
4420
|
+
), E = (
|
|
4358
4421
|
/*hascancelbutton*/
|
|
4359
4422
|
e[2] && At(e)
|
|
4360
4423
|
);
|
|
4361
4424
|
return {
|
|
4362
4425
|
c() {
|
|
4363
|
-
t =
|
|
4426
|
+
t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = ue(), _ && _.c(), o = ue(), s = M("div"), a = re(
|
|
4364
4427
|
/*modaltext*/
|
|
4365
4428
|
e[0]
|
|
4366
|
-
), l = ue(), u =
|
|
4367
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")),
|
|
4368
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")),
|
|
4429
|
+
), l = ue(), u = M("div"), E && E.c(), h = ue(), c = M("button"), m = re(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4430
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4431
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4369
4432
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4370
4433
|
},
|
|
4371
4434
|
m(x, P) {
|
|
4372
|
-
se(x, t, P),
|
|
4435
|
+
se(x, t, P), B(t, r), B(r, n), T && T.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), B(s, a), B(r, l), B(r, u), E && E.m(u, null), B(u, h), B(u, c), B(c, m), e[19](t), d = !0, p || (w = [
|
|
4373
4436
|
Ie(
|
|
4374
4437
|
n,
|
|
4375
4438
|
"click",
|
|
@@ -4380,129 +4443,121 @@ function Wi(e) {
|
|
|
4380
4443
|
c,
|
|
4381
4444
|
"click",
|
|
4382
4445
|
/*click_handler_1*/
|
|
4383
|
-
e[
|
|
4446
|
+
e[18]
|
|
4384
4447
|
)
|
|
4385
|
-
],
|
|
4448
|
+
], p = !0);
|
|
4386
4449
|
},
|
|
4387
4450
|
p(x, [P]) {
|
|
4388
|
-
C && C.p && (!
|
|
4389
|
-
|
|
4451
|
+
C && C.p && (!d || P & /*$$scope*/
|
|
4452
|
+
32768) && yr(
|
|
4390
4453
|
C,
|
|
4391
|
-
|
|
4454
|
+
I,
|
|
4392
4455
|
x,
|
|
4393
4456
|
/*$$scope*/
|
|
4394
|
-
x[
|
|
4395
|
-
|
|
4396
|
-
|
|
4457
|
+
x[15],
|
|
4458
|
+
d ? vr(
|
|
4459
|
+
I,
|
|
4397
4460
|
/*$$scope*/
|
|
4398
|
-
x[
|
|
4461
|
+
x[15],
|
|
4399
4462
|
P,
|
|
4400
|
-
|
|
4401
|
-
) :
|
|
4463
|
+
Qi
|
|
4464
|
+
) : xr(
|
|
4402
4465
|
/*$$scope*/
|
|
4403
|
-
x[
|
|
4466
|
+
x[15]
|
|
4404
4467
|
),
|
|
4405
4468
|
Ht
|
|
4406
4469
|
), /*modaltitle*/
|
|
4407
|
-
x[1] ?
|
|
4470
|
+
x[1] ? _ ? _.p(x, P) : (_ = Bt(x), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!d || P & /*modaltext*/
|
|
4408
4471
|
1) && be(
|
|
4409
4472
|
a,
|
|
4410
4473
|
/*modaltext*/
|
|
4411
4474
|
x[0]
|
|
4412
4475
|
), /*hascancelbutton*/
|
|
4413
|
-
x[2] ?
|
|
4476
|
+
x[2] ? E ? E.p(x, P) : (E = At(x), E.c(), E.m(u, h)) : E && (E.d(1), E = null), (!d || P & /*$_*/
|
|
4414
4477
|
16) && f !== (f = /*$_*/
|
|
4415
4478
|
x[4]("confirm") + "") && be(m, f);
|
|
4416
4479
|
},
|
|
4417
4480
|
i(x) {
|
|
4418
|
-
|
|
4481
|
+
d || (Mt(T, x), d = !0);
|
|
4419
4482
|
},
|
|
4420
4483
|
o(x) {
|
|
4421
|
-
|
|
4484
|
+
Mr(T, x), d = !1;
|
|
4422
4485
|
},
|
|
4423
4486
|
d(x) {
|
|
4424
|
-
x &&
|
|
4487
|
+
x && J(t), T && T.d(x), _ && _.d(), E && E.d(), e[19](null), p = !1, Q(w);
|
|
4425
4488
|
}
|
|
4426
4489
|
};
|
|
4427
4490
|
}
|
|
4428
|
-
function
|
|
4491
|
+
function qi(e, t, r) {
|
|
4429
4492
|
let n;
|
|
4430
|
-
|
|
4431
|
-
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:
|
|
4432
|
-
const
|
|
4493
|
+
br(e, ji, (g) => r(4, n = g));
|
|
4494
|
+
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: d = "" } = t, { mbsource: p } = t, w, I = window.navigator.userAgent, C = ki(I) !== "PC";
|
|
4495
|
+
const T = () => {
|
|
4433
4496
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4434
|
-
},
|
|
4435
|
-
|
|
4436
|
-
},
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
let b = new URL(m), L = document.createElement("style");
|
|
4441
|
-
fetch(b.href).then((D) => D.text()).then((D) => {
|
|
4442
|
-
L.innerHTML = D, setTimeout(
|
|
4443
|
-
() => {
|
|
4444
|
-
d.appendChild(L);
|
|
4445
|
-
},
|
|
4446
|
-
1
|
|
4447
|
-
);
|
|
4448
|
-
});
|
|
4449
|
-
}, x = () => {
|
|
4450
|
-
fetch(p).then((L) => L.json()).then((L) => {
|
|
4451
|
-
Object.keys(L).forEach((D) => {
|
|
4452
|
-
Tt(D, L[D]);
|
|
4497
|
+
}, _ = (g) => {
|
|
4498
|
+
g === "confirm" && u && window.postMessage(u, window.location.href), g === "cancel" && h && window.postMessage(h, window.location.href), T();
|
|
4499
|
+
}, E = () => {
|
|
4500
|
+
fetch(d).then((U) => U.json()).then((U) => {
|
|
4501
|
+
Object.keys(U).forEach((et) => {
|
|
4502
|
+
wt(et, U[et]);
|
|
4453
4503
|
});
|
|
4454
|
-
}).catch((
|
|
4455
|
-
console.log(
|
|
4504
|
+
}).catch((U) => {
|
|
4505
|
+
console.log(U);
|
|
4456
4506
|
});
|
|
4457
4507
|
};
|
|
4458
|
-
Object.keys(
|
|
4459
|
-
|
|
4508
|
+
Object.keys(Tt).forEach((g) => {
|
|
4509
|
+
wt(g, Tt[g]);
|
|
4510
|
+
});
|
|
4511
|
+
const x = () => {
|
|
4512
|
+
Vi(c);
|
|
4513
|
+
};
|
|
4514
|
+
Br(() => () => {
|
|
4460
4515
|
});
|
|
4461
|
-
const P = () =>
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
Ne[b ? "unshift" : "push"](() => {
|
|
4466
|
-
d = b, r(3, d);
|
|
4516
|
+
const P = () => _("cancel"), fr = () => _("confirm");
|
|
4517
|
+
function mr(g) {
|
|
4518
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4519
|
+
w = g, r(3, w);
|
|
4467
4520
|
});
|
|
4468
4521
|
}
|
|
4469
|
-
return e.$$set = (
|
|
4470
|
-
"modaltext" in
|
|
4522
|
+
return e.$$set = (g) => {
|
|
4523
|
+
"modaltext" in g && r(0, s = g.modaltext), "modaltitle" in g && r(1, a = g.modaltitle), "hascancelbutton" in g && r(2, l = g.hascancelbutton), "modalconfirmevent" in g && r(8, u = g.modalconfirmevent), "modalcancelevent" in g && r(9, h = g.modalcancelevent), "lang" in g && r(10, c = g.lang), "clientstyling" in g && r(11, f = g.clientstyling), "clientstylingurl" in g && r(12, m = g.clientstylingurl), "translationurl" in g && r(13, d = g.translationurl), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, o = g.$$scope);
|
|
4471
4524
|
}, e.$$.update = () => {
|
|
4472
4525
|
e.$$.dirty & /*modaltext, lang*/
|
|
4473
|
-
1025 && s && c &&
|
|
4474
|
-
2056 && f &&
|
|
4475
|
-
4104 && m &&
|
|
4476
|
-
|
|
4526
|
+
1025 && s && c && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4527
|
+
2056 && f && w && Xi(w, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4528
|
+
4104 && m && w && zi(w, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4529
|
+
16392 && p && w && Wi(w, `${p}.Style`), e.$$.dirty & /*translationurl*/
|
|
4530
|
+
8192 && d && E();
|
|
4477
4531
|
}, [
|
|
4478
4532
|
s,
|
|
4479
4533
|
a,
|
|
4480
4534
|
l,
|
|
4481
|
-
|
|
4535
|
+
w,
|
|
4482
4536
|
n,
|
|
4483
|
-
O,
|
|
4484
4537
|
C,
|
|
4485
|
-
|
|
4538
|
+
T,
|
|
4539
|
+
_,
|
|
4486
4540
|
u,
|
|
4487
4541
|
h,
|
|
4488
4542
|
c,
|
|
4489
4543
|
f,
|
|
4490
4544
|
m,
|
|
4545
|
+
d,
|
|
4491
4546
|
p,
|
|
4492
4547
|
o,
|
|
4493
4548
|
i,
|
|
4549
|
+
P,
|
|
4494
4550
|
fr,
|
|
4495
|
-
mr
|
|
4496
|
-
dr
|
|
4551
|
+
mr
|
|
4497
4552
|
];
|
|
4498
4553
|
}
|
|
4499
|
-
class
|
|
4554
|
+
class Ki extends Ur {
|
|
4500
4555
|
constructor(t) {
|
|
4501
|
-
super(),
|
|
4556
|
+
super(), $r(
|
|
4502
4557
|
this,
|
|
4503
4558
|
t,
|
|
4504
|
-
|
|
4505
|
-
|
|
4559
|
+
qi,
|
|
4560
|
+
Yi,
|
|
4506
4561
|
Pt,
|
|
4507
4562
|
{
|
|
4508
4563
|
modaltext: 0,
|
|
@@ -4513,67 +4568,74 @@ class Qi extends Gr {
|
|
|
4513
4568
|
lang: 10,
|
|
4514
4569
|
clientstyling: 11,
|
|
4515
4570
|
clientstylingurl: 12,
|
|
4516
|
-
translationurl: 13
|
|
4571
|
+
translationurl: 13,
|
|
4572
|
+
mbsource: 14
|
|
4517
4573
|
},
|
|
4518
|
-
|
|
4574
|
+
Zi
|
|
4519
4575
|
);
|
|
4520
4576
|
}
|
|
4521
4577
|
get modaltext() {
|
|
4522
4578
|
return this.$$.ctx[0];
|
|
4523
4579
|
}
|
|
4524
4580
|
set modaltext(t) {
|
|
4525
|
-
this.$$set({ modaltext: t }),
|
|
4581
|
+
this.$$set({ modaltext: t }), O();
|
|
4526
4582
|
}
|
|
4527
4583
|
get modaltitle() {
|
|
4528
4584
|
return this.$$.ctx[1];
|
|
4529
4585
|
}
|
|
4530
4586
|
set modaltitle(t) {
|
|
4531
|
-
this.$$set({ modaltitle: t }),
|
|
4587
|
+
this.$$set({ modaltitle: t }), O();
|
|
4532
4588
|
}
|
|
4533
4589
|
get hascancelbutton() {
|
|
4534
4590
|
return this.$$.ctx[2];
|
|
4535
4591
|
}
|
|
4536
4592
|
set hascancelbutton(t) {
|
|
4537
|
-
this.$$set({ hascancelbutton: t }),
|
|
4593
|
+
this.$$set({ hascancelbutton: t }), O();
|
|
4538
4594
|
}
|
|
4539
4595
|
get modalconfirmevent() {
|
|
4540
4596
|
return this.$$.ctx[8];
|
|
4541
4597
|
}
|
|
4542
4598
|
set modalconfirmevent(t) {
|
|
4543
|
-
this.$$set({ modalconfirmevent: t }),
|
|
4599
|
+
this.$$set({ modalconfirmevent: t }), O();
|
|
4544
4600
|
}
|
|
4545
4601
|
get modalcancelevent() {
|
|
4546
4602
|
return this.$$.ctx[9];
|
|
4547
4603
|
}
|
|
4548
4604
|
set modalcancelevent(t) {
|
|
4549
|
-
this.$$set({ modalcancelevent: t }),
|
|
4605
|
+
this.$$set({ modalcancelevent: t }), O();
|
|
4550
4606
|
}
|
|
4551
4607
|
get lang() {
|
|
4552
4608
|
return this.$$.ctx[10];
|
|
4553
4609
|
}
|
|
4554
4610
|
set lang(t) {
|
|
4555
|
-
this.$$set({ lang: t }),
|
|
4611
|
+
this.$$set({ lang: t }), O();
|
|
4556
4612
|
}
|
|
4557
4613
|
get clientstyling() {
|
|
4558
4614
|
return this.$$.ctx[11];
|
|
4559
4615
|
}
|
|
4560
4616
|
set clientstyling(t) {
|
|
4561
|
-
this.$$set({ clientstyling: t }),
|
|
4617
|
+
this.$$set({ clientstyling: t }), O();
|
|
4562
4618
|
}
|
|
4563
4619
|
get clientstylingurl() {
|
|
4564
4620
|
return this.$$.ctx[12];
|
|
4565
4621
|
}
|
|
4566
4622
|
set clientstylingurl(t) {
|
|
4567
|
-
this.$$set({ clientstylingurl: t }),
|
|
4623
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4568
4624
|
}
|
|
4569
4625
|
get translationurl() {
|
|
4570
4626
|
return this.$$.ctx[13];
|
|
4571
4627
|
}
|
|
4572
4628
|
set translationurl(t) {
|
|
4573
|
-
this.$$set({ translationurl: t }),
|
|
4629
|
+
this.$$set({ translationurl: t }), O();
|
|
4630
|
+
}
|
|
4631
|
+
get mbsource() {
|
|
4632
|
+
return this.$$.ctx[14];
|
|
4633
|
+
}
|
|
4634
|
+
set mbsource(t) {
|
|
4635
|
+
this.$$set({ mbsource: t }), O();
|
|
4574
4636
|
}
|
|
4575
4637
|
}
|
|
4576
|
-
|
|
4638
|
+
Gr(Ki, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
|
|
4577
4639
|
export {
|
|
4578
|
-
|
|
4640
|
+
Ki as P
|
|
4579
4641
|
};
|