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