@everymatrix/cashier-error 1.92.3 → 1.92.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierError-BSaEmMwj.js → CashierError-2Z1_ph1-.js} +705 -701
- package/components/{CashierError-BXTCkMqv.js → CashierError-Dbubo4Rq.js} +792 -788
- package/components/CashierError-DpXUW93C.cjs +5 -0
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-BO6tukN9.cjs +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
|
-
function
|
|
2
|
+
function I() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function rr(e, t) {
|
|
5
5
|
for (const r in t)
|
|
6
6
|
e[r] = t[r];
|
|
7
7
|
return (
|
|
@@ -9,48 +9,48 @@ function tr(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function wt(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Qe() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function se(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach(wt);
|
|
20
20
|
}
|
|
21
21
|
function qe(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Ht(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
27
|
let he;
|
|
28
|
-
function
|
|
28
|
+
function Ke(e, t) {
|
|
29
29
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function nr(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function At(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return I;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function ir(e, t, r) {
|
|
44
|
+
e.$$.on_destroy.push(At(t, r));
|
|
45
45
|
}
|
|
46
46
|
function ce(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = St(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && n ?
|
|
52
|
+
function St(e, t, r, n) {
|
|
53
|
+
return e[1] && n ? rr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
55
|
function fe(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
@@ -58,9 +58,9 @@ function fe(e, t, r, n) {
|
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const a = [],
|
|
62
|
-
for (let
|
|
63
|
-
a[
|
|
61
|
+
const a = [], s = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let o = 0; o < s; o += 1)
|
|
63
|
+
a[o] = t.dirty[o] | i[o];
|
|
64
64
|
return a;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
@@ -69,8 +69,8 @@ function fe(e, t, r, n) {
|
|
|
69
69
|
}
|
|
70
70
|
function me(e, t, r, n, i, a) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const s = St(t, r, n, a);
|
|
73
|
+
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
function de(e) {
|
|
@@ -85,14 +85,14 @@ function de(e) {
|
|
|
85
85
|
function B(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
88
|
+
function ar(e, t, r) {
|
|
89
|
+
const n = sr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
91
|
+
const i = P("style");
|
|
92
92
|
i.id = t, i.textContent = r, or(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function sr(e) {
|
|
96
96
|
if (!e)
|
|
97
97
|
return document;
|
|
98
98
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -115,36 +115,36 @@ function S(e, t, r) {
|
|
|
115
115
|
function A(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function P(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function D(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function j() {
|
|
125
|
+
return D(" ");
|
|
126
126
|
}
|
|
127
127
|
function Je() {
|
|
128
|
-
return
|
|
128
|
+
return D("");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ur(e, t, r, n) {
|
|
131
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function M(e, t, r) {
|
|
134
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
135
135
|
}
|
|
136
136
|
function pe(e, t, r) {
|
|
137
137
|
const n = t.toLowerCase();
|
|
138
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
138
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : M(e, t, r);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function lr(e) {
|
|
141
141
|
return Array.from(e.childNodes);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function W(e, t) {
|
|
144
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
145
145
|
t);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function hr(e) {
|
|
148
148
|
const t = {};
|
|
149
149
|
return e.childNodes.forEach(
|
|
150
150
|
/** @param {Element} node */
|
|
@@ -153,105 +153,105 @@ function lr(e) {
|
|
|
153
153
|
}
|
|
154
154
|
), t;
|
|
155
155
|
}
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
|
|
156
|
+
let ne;
|
|
157
|
+
function re(e) {
|
|
158
|
+
ne = e;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (!
|
|
160
|
+
function cr() {
|
|
161
|
+
if (!ne)
|
|
162
162
|
throw new Error("Function called outside component initialization");
|
|
163
|
-
return
|
|
163
|
+
return ne;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
165
|
+
function fr(e) {
|
|
166
|
+
cr().$$.on_mount.push(e);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
const
|
|
168
|
+
const F = [], De = [];
|
|
169
|
+
let V = [];
|
|
170
|
+
const et = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
171
171
|
let ke = !1;
|
|
172
|
-
function
|
|
173
|
-
ke || (ke = !0,
|
|
172
|
+
function dr() {
|
|
173
|
+
ke || (ke = !0, mr.then(O));
|
|
174
174
|
}
|
|
175
175
|
function $e(e) {
|
|
176
|
-
|
|
176
|
+
V.push(e);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
178
|
+
const Le = /* @__PURE__ */ new Set();
|
|
179
|
+
let U = 0;
|
|
180
|
+
function O() {
|
|
181
|
+
if (U !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const e =
|
|
183
|
+
const e = ne;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const t =
|
|
188
|
-
|
|
186
|
+
for (; U < F.length; ) {
|
|
187
|
+
const t = F[U];
|
|
188
|
+
U++, re(t), pr(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
|
-
throw
|
|
191
|
+
throw F.length = 0, U = 0, t;
|
|
192
192
|
}
|
|
193
|
-
for (
|
|
193
|
+
for (re(null), F.length = 0, U = 0; De.length; )
|
|
194
194
|
De.pop()();
|
|
195
|
-
for (let t = 0; t <
|
|
196
|
-
const r =
|
|
197
|
-
|
|
195
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
196
|
+
const r = V[t];
|
|
197
|
+
Le.has(r) || (Le.add(r), r());
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
} while (
|
|
201
|
-
for (;
|
|
202
|
-
|
|
203
|
-
ke = !1,
|
|
199
|
+
V.length = 0;
|
|
200
|
+
} while (F.length);
|
|
201
|
+
for (; et.length; )
|
|
202
|
+
et.pop()();
|
|
203
|
+
ke = !1, Le.clear(), re(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function pr(e) {
|
|
206
206
|
if (e.fragment !== null) {
|
|
207
207
|
e.update(), se(e.before_update);
|
|
208
208
|
const t = e.dirty;
|
|
209
209
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function gr(e) {
|
|
213
213
|
const t = [], r = [];
|
|
214
|
-
|
|
214
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
215
215
|
}
|
|
216
216
|
const ye = /* @__PURE__ */ new Set();
|
|
217
|
-
let
|
|
218
|
-
function
|
|
217
|
+
let br;
|
|
218
|
+
function ee(e, t) {
|
|
219
219
|
e && e.i && (ye.delete(e), e.i(t));
|
|
220
220
|
}
|
|
221
221
|
function ge(e, t, r, n) {
|
|
222
222
|
if (e && e.o) {
|
|
223
223
|
if (ye.has(e))
|
|
224
224
|
return;
|
|
225
|
-
ye.add(e),
|
|
225
|
+
ye.add(e), br.c.push(() => {
|
|
226
226
|
ye.delete(e);
|
|
227
227
|
}), e.o(t);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function yr(e, t, r) {
|
|
231
231
|
const { fragment: n, after_update: i } = e.$$;
|
|
232
232
|
n && n.m(t, r), $e(() => {
|
|
233
|
-
const a = e.$$.on_mount.map(
|
|
233
|
+
const a = e.$$.on_mount.map(wt).filter(qe);
|
|
234
234
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : se(a), e.$$.on_mount = [];
|
|
235
235
|
}), i.forEach($e);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function vr(e, t) {
|
|
238
238
|
const r = e.$$;
|
|
239
|
-
r.fragment !== null && (
|
|
239
|
+
r.fragment !== null && (gr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
e.$$.dirty[0] === -1 && (
|
|
241
|
+
function _r(e, t) {
|
|
242
|
+
e.$$.dirty[0] === -1 && (F.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const l =
|
|
246
|
-
|
|
244
|
+
function Er(e, t, r, n, i, a, s = null, o = [-1]) {
|
|
245
|
+
const l = ne;
|
|
246
|
+
re(e);
|
|
247
247
|
const u = e.$$ = {
|
|
248
248
|
fragment: null,
|
|
249
249
|
ctx: [],
|
|
250
250
|
// state
|
|
251
251
|
props: a,
|
|
252
|
-
update:
|
|
252
|
+
update: I,
|
|
253
253
|
not_equal: i,
|
|
254
|
-
bound:
|
|
254
|
+
bound: Qe(),
|
|
255
255
|
// lifecycle
|
|
256
256
|
on_mount: [],
|
|
257
257
|
on_destroy: [],
|
|
@@ -260,28 +260,28 @@ function _r(e, t, r, n, i, a, o = null, s = [-1]) {
|
|
|
260
260
|
after_update: [],
|
|
261
261
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
262
262
|
// everything else
|
|
263
|
-
callbacks:
|
|
264
|
-
dirty:
|
|
263
|
+
callbacks: Qe(),
|
|
264
|
+
dirty: o,
|
|
265
265
|
skip_bound: !1,
|
|
266
266
|
root: t.target || l.$$.root
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
s && s(u.root);
|
|
269
269
|
let h = !1;
|
|
270
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
271
|
-
const g =
|
|
272
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h &&
|
|
270
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
271
|
+
const g = p.length ? p[0] : f;
|
|
272
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && _r(e, c)), f;
|
|
273
273
|
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
274
274
|
if (t.hydrate) {
|
|
275
|
-
const c =
|
|
275
|
+
const c = lr(t.target);
|
|
276
276
|
u.fragment && u.fragment.l(c), c.forEach(A);
|
|
277
277
|
} else
|
|
278
278
|
u.fragment && u.fragment.c();
|
|
279
|
-
t.intro &&
|
|
279
|
+
t.intro && ee(e.$$.fragment), yr(e, t.target, t.anchor), O();
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
re(l);
|
|
282
282
|
}
|
|
283
|
-
let
|
|
284
|
-
typeof HTMLElement == "function" && (
|
|
283
|
+
let Bt;
|
|
284
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
285
285
|
/** The Svelte component constructor */
|
|
286
286
|
$$ctor;
|
|
287
287
|
/** Slots */
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
323
323
|
let a;
|
|
324
324
|
return {
|
|
325
325
|
c: function() {
|
|
326
|
-
a =
|
|
326
|
+
a = P("slot"), i !== "default" && M(a, "name", i);
|
|
327
327
|
},
|
|
328
328
|
/**
|
|
329
329
|
* @param {HTMLElement} target
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
340
340
|
};
|
|
341
341
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
342
342
|
return;
|
|
343
|
-
const t = {}, r =
|
|
343
|
+
const t = {}, r = hr(this);
|
|
344
344
|
for (const i of this.$$s)
|
|
345
345
|
i in r && (t[i] = [e(i)]);
|
|
346
346
|
for (const i of this.attributes) {
|
|
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
376
376
|
this.$$c.$$.after_update.push(n), n();
|
|
377
377
|
for (const i in this.$$l)
|
|
378
378
|
for (const a of this.$$l[i]) {
|
|
379
|
-
const
|
|
380
|
-
this.$$l_u.set(a,
|
|
379
|
+
const s = this.$$c.$on(i, a);
|
|
380
|
+
this.$$l_u.set(a, s);
|
|
381
381
|
}
|
|
382
382
|
this.$$l = {};
|
|
383
383
|
}
|
|
@@ -427,36 +427,36 @@ function ve(e, t, r, n) {
|
|
|
427
427
|
return t;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
let
|
|
430
|
+
function xr(e, t, r, n, i, a) {
|
|
431
|
+
let s = class extends Bt {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(e, r, i), this.$$p_d = t;
|
|
434
434
|
}
|
|
435
435
|
static get observedAttributes() {
|
|
436
436
|
return Object.keys(t).map(
|
|
437
|
-
(
|
|
437
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
438
438
|
);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
return Object.keys(t).forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
return Object.keys(t).forEach((o) => {
|
|
442
|
+
Object.defineProperty(s.prototype, o, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c &&
|
|
444
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
445
445
|
},
|
|
446
446
|
set(l) {
|
|
447
|
-
l = ve(
|
|
447
|
+
l = ve(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
}), n.forEach((
|
|
451
|
-
Object.defineProperty(
|
|
450
|
+
}), n.forEach((o) => {
|
|
451
|
+
Object.defineProperty(s.prototype, o, {
|
|
452
452
|
get() {
|
|
453
|
-
return this.$$c?.[
|
|
453
|
+
return this.$$c?.[o];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
|
-
|
|
457
|
+
s, s;
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class Tr {
|
|
460
460
|
/**
|
|
461
461
|
* ### PRIVATE API
|
|
462
462
|
*
|
|
@@ -475,7 +475,7 @@ class xr {
|
|
|
475
475
|
$$set = void 0;
|
|
476
476
|
/** @returns {void} */
|
|
477
477
|
$destroy() {
|
|
478
|
-
|
|
478
|
+
vr(this, 1), this.$destroy = I;
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
481
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -485,7 +485,7 @@ class xr {
|
|
|
485
485
|
*/
|
|
486
486
|
$on(t, r) {
|
|
487
487
|
if (!qe(r))
|
|
488
|
-
return
|
|
488
|
+
return I;
|
|
489
489
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
490
490
|
return n.push(r), () => {
|
|
491
491
|
const i = n.indexOf(r);
|
|
@@ -497,19 +497,19 @@ class xr {
|
|
|
497
497
|
* @returns {void}
|
|
498
498
|
*/
|
|
499
499
|
$set(t) {
|
|
500
|
-
this.$$set && !
|
|
500
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
const
|
|
504
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
505
|
-
const
|
|
506
|
-
function
|
|
503
|
+
const wr = "4";
|
|
504
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
505
|
+
const z = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
506
|
+
function Hr(e, t) {
|
|
507
507
|
if (e) {
|
|
508
508
|
const r = document.createElement("style");
|
|
509
509
|
r.innerHTML = t, e.appendChild(r);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ar(e, t) {
|
|
513
513
|
if (!e || !t)
|
|
514
514
|
return;
|
|
515
515
|
const r = new URL(t);
|
|
@@ -520,90 +520,90 @@ function Hr(e, t) {
|
|
|
520
520
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Sr(e, t, r, n = !1) {
|
|
524
524
|
if (!window.emMessageBus)
|
|
525
525
|
return;
|
|
526
526
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
527
|
-
return r =
|
|
528
|
-
window[
|
|
529
|
-
const a = r.unsubscribe.bind(r),
|
|
530
|
-
if (window[
|
|
531
|
-
const
|
|
532
|
-
|
|
527
|
+
return r = Br(e, t), r;
|
|
528
|
+
window[z] || (window[z] = {}), r = Pr(e, t);
|
|
529
|
+
const a = r.unsubscribe.bind(r), s = () => {
|
|
530
|
+
if (window[z][t]) {
|
|
531
|
+
const o = window[z][t];
|
|
532
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[z][t];
|
|
533
533
|
}
|
|
534
534
|
a();
|
|
535
535
|
};
|
|
536
|
-
return r.unsubscribe =
|
|
536
|
+
return r.unsubscribe = s, r;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Br(e, t) {
|
|
539
539
|
const r = document.createElement("style");
|
|
540
540
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
541
541
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Pr(e, t) {
|
|
545
545
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
546
546
|
if (!e)
|
|
547
547
|
return;
|
|
548
|
-
const n = e.getRootNode(), i = window[
|
|
548
|
+
const n = e.getRootNode(), i = window[z];
|
|
549
549
|
let a = i[t] && i[t].sheet;
|
|
550
550
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
|
|
551
551
|
sheet: a,
|
|
552
552
|
refCount: 1
|
|
553
553
|
});
|
|
554
|
-
const
|
|
555
|
-
|
|
554
|
+
const s = n.adoptedStyleSheets || [];
|
|
555
|
+
s.includes(a) || (n.adoptedStyleSheets = [...s, a]);
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const G = [];
|
|
559
559
|
function Lr(e, t) {
|
|
560
560
|
return {
|
|
561
561
|
subscribe: Ae(e, t).subscribe
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
function Ae(e, t =
|
|
564
|
+
function Ae(e, t = I) {
|
|
565
565
|
let r;
|
|
566
566
|
const n = /* @__PURE__ */ new Set();
|
|
567
|
-
function i(
|
|
568
|
-
if (
|
|
569
|
-
const l = !
|
|
567
|
+
function i(o) {
|
|
568
|
+
if (Ht(e, o) && (e = o, r)) {
|
|
569
|
+
const l = !G.length;
|
|
570
570
|
for (const u of n)
|
|
571
|
-
u[1](),
|
|
571
|
+
u[1](), G.push(u, e);
|
|
572
572
|
if (l) {
|
|
573
|
-
for (let u = 0; u <
|
|
574
|
-
|
|
575
|
-
|
|
573
|
+
for (let u = 0; u < G.length; u += 2)
|
|
574
|
+
G[u][0](G[u + 1]);
|
|
575
|
+
G.length = 0;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function a(
|
|
580
|
-
i(
|
|
579
|
+
function a(o) {
|
|
580
|
+
i(o(e));
|
|
581
581
|
}
|
|
582
|
-
function o
|
|
583
|
-
const u = [
|
|
584
|
-
return n.add(u), n.size === 1 && (r = t(i, a) ||
|
|
582
|
+
function s(o, l = I) {
|
|
583
|
+
const u = [o, l];
|
|
584
|
+
return n.add(u), n.size === 1 && (r = t(i, a) || I), o(e), () => {
|
|
585
585
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
return { set: i, update: a, subscribe:
|
|
588
|
+
return { set: i, update: a, subscribe: s };
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Y(e, t, r) {
|
|
591
591
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
592
592
|
if (!i.every(Boolean))
|
|
593
593
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
594
594
|
const a = t.length < 2;
|
|
595
|
-
return Lr(r, (
|
|
595
|
+
return Lr(r, (s, o) => {
|
|
596
596
|
let l = !1;
|
|
597
597
|
const u = [];
|
|
598
|
-
let h = 0, c =
|
|
598
|
+
let h = 0, c = I;
|
|
599
599
|
const f = () => {
|
|
600
600
|
if (h)
|
|
601
601
|
return;
|
|
602
602
|
c();
|
|
603
|
-
const g = t(n ? u[0] : u,
|
|
604
|
-
a ?
|
|
605
|
-
},
|
|
606
|
-
(g, x) =>
|
|
603
|
+
const g = t(n ? u[0] : u, s, o);
|
|
604
|
+
a ? s(g) : c = qe(g) ? g : I;
|
|
605
|
+
}, p = i.map(
|
|
606
|
+
(g, x) => At(
|
|
607
607
|
g,
|
|
608
608
|
(w) => {
|
|
609
609
|
u[x] = w, h &= ~(1 << x), l && f();
|
|
@@ -614,51 +614,51 @@ function Q(e, t, r) {
|
|
|
614
614
|
)
|
|
615
615
|
);
|
|
616
616
|
return l = !0, f(), function() {
|
|
617
|
-
se(
|
|
617
|
+
se(p), c(), l = !1;
|
|
618
618
|
};
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Cr(e) {
|
|
622
622
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
return
|
|
624
|
+
var Or = function(t) {
|
|
625
|
+
return Ir(t) && !Mr(t);
|
|
626
626
|
};
|
|
627
|
-
function
|
|
627
|
+
function Ir(e) {
|
|
628
628
|
return !!e && typeof e == "object";
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Mr(e) {
|
|
631
631
|
var t = Object.prototype.toString.call(e);
|
|
632
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
633
|
-
}
|
|
634
|
-
var Mr = typeof Symbol == "function" && Symbol.for, Nr = Mr ? Symbol.for("react.element") : 60103;
|
|
635
|
-
function Rr(e) {
|
|
636
|
-
return e.$$typeof === Nr;
|
|
632
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
637
633
|
}
|
|
634
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Rr = Nr ? Symbol.for("react.element") : 60103;
|
|
638
635
|
function Dr(e) {
|
|
636
|
+
return e.$$typeof === Rr;
|
|
637
|
+
}
|
|
638
|
+
function kr(e) {
|
|
639
639
|
return Array.isArray(e) ? [] : {};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
641
|
+
function ie(e, t) {
|
|
642
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(kr(e), e, t) : e;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function $r(e, t, r) {
|
|
645
645
|
return e.concat(t).map(function(n) {
|
|
646
|
-
return
|
|
646
|
+
return ie(n, r);
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Ur(e, t) {
|
|
650
650
|
if (!t.customMerge)
|
|
651
|
-
return
|
|
651
|
+
return X;
|
|
652
652
|
var r = t.customMerge(e);
|
|
653
|
-
return typeof r == "function" ? r :
|
|
653
|
+
return typeof r == "function" ? r : X;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Gr(e) {
|
|
656
656
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
657
657
|
return Object.propertyIsEnumerable.call(e, t);
|
|
658
658
|
}) : [];
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
return Object.keys(e).concat(
|
|
660
|
+
function tt(e) {
|
|
661
|
+
return Object.keys(e).concat(Gr(e));
|
|
662
662
|
}
|
|
663
663
|
function Pt(e, t) {
|
|
664
664
|
try {
|
|
@@ -667,31 +667,31 @@ function Pt(e, t) {
|
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Fr(e, t) {
|
|
671
671
|
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function zr(e, t, r) {
|
|
674
674
|
var n = {};
|
|
675
|
-
return r.isMergeableObject(e) &&
|
|
676
|
-
n[i] =
|
|
677
|
-
}),
|
|
678
|
-
|
|
675
|
+
return r.isMergeableObject(e) && tt(e).forEach(function(i) {
|
|
676
|
+
n[i] = ie(e[i], r);
|
|
677
|
+
}), tt(t).forEach(function(i) {
|
|
678
|
+
Fr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
679
679
|
}), n;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
681
|
+
function X(e, t, r) {
|
|
682
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = ie;
|
|
683
683
|
var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
|
|
684
|
-
return a ? n ? r.arrayMerge(e, t, r) :
|
|
684
|
+
return a ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ie(t, r);
|
|
685
685
|
}
|
|
686
|
-
|
|
686
|
+
X.all = function(t, r) {
|
|
687
687
|
if (!Array.isArray(t))
|
|
688
688
|
throw new Error("first argument should be an array");
|
|
689
689
|
return t.reduce(function(n, i) {
|
|
690
|
-
return
|
|
690
|
+
return X(n, i, r);
|
|
691
691
|
}, {});
|
|
692
692
|
};
|
|
693
|
-
var
|
|
694
|
-
const
|
|
693
|
+
var jr = X, Vr = jr;
|
|
694
|
+
const Wr = /* @__PURE__ */ Cr(Vr);
|
|
695
695
|
var Ue = function(e, t) {
|
|
696
696
|
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
697
697
|
r.__proto__ = n;
|
|
@@ -709,17 +709,17 @@ function Se(e, t) {
|
|
|
709
709
|
}
|
|
710
710
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
711
711
|
}
|
|
712
|
-
var
|
|
713
|
-
return
|
|
712
|
+
var L = function() {
|
|
713
|
+
return L = Object.assign || function(t) {
|
|
714
714
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
715
715
|
r = arguments[n];
|
|
716
716
|
for (var a in r)
|
|
717
717
|
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
718
718
|
}
|
|
719
719
|
return t;
|
|
720
|
-
},
|
|
720
|
+
}, L.apply(this, arguments);
|
|
721
721
|
};
|
|
722
|
-
function
|
|
722
|
+
function Xr(e, t) {
|
|
723
723
|
var r = {};
|
|
724
724
|
for (var n in e)
|
|
725
725
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -735,36 +735,36 @@ function Ce(e, t, r) {
|
|
|
735
735
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
736
736
|
}
|
|
737
737
|
function Oe(e, t) {
|
|
738
|
-
var r = t && t.cache ? t.cache :
|
|
738
|
+
var r = t && t.cache ? t.cache : en, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
|
|
739
739
|
return i(e, {
|
|
740
740
|
cache: r,
|
|
741
741
|
serializer: n
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function qr(e) {
|
|
745
745
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
var i =
|
|
747
|
+
function Jr(e, t, r, n) {
|
|
748
|
+
var i = qr(n) ? n : r(n), a = t.get(i);
|
|
749
749
|
return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Lt(e, t, r) {
|
|
752
752
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
|
|
753
753
|
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function Ct(e, t, r, n, i) {
|
|
756
756
|
return r.bind(t, e, n, i);
|
|
757
757
|
}
|
|
758
|
-
function Jr(e, t) {
|
|
759
|
-
var r = e.length === 1 ? qr : Ct;
|
|
760
|
-
return Ot(e, this, r, t.cache.create(), t.serializer);
|
|
761
|
-
}
|
|
762
758
|
function Zr(e, t) {
|
|
763
|
-
|
|
759
|
+
var r = e.length === 1 ? Jr : Lt;
|
|
760
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
764
761
|
}
|
|
765
|
-
|
|
762
|
+
function Yr(e, t) {
|
|
763
|
+
return Ct(e, this, Lt, t.cache.create(), t.serializer);
|
|
764
|
+
}
|
|
765
|
+
var Qr = function() {
|
|
766
766
|
return JSON.stringify(arguments);
|
|
767
|
-
},
|
|
767
|
+
}, Kr = (
|
|
768
768
|
/** @class */
|
|
769
769
|
function() {
|
|
770
770
|
function e() {
|
|
@@ -776,12 +776,12 @@ var Yr = function() {
|
|
|
776
776
|
this.cache[t] = r;
|
|
777
777
|
}, e;
|
|
778
778
|
}()
|
|
779
|
-
),
|
|
779
|
+
), en = {
|
|
780
780
|
create: function() {
|
|
781
|
-
return new
|
|
781
|
+
return new Kr();
|
|
782
782
|
}
|
|
783
783
|
}, Ie = {
|
|
784
|
-
variadic:
|
|
784
|
+
variadic: Yr
|
|
785
785
|
}, xe = function() {
|
|
786
786
|
return xe = Object.assign || function(t) {
|
|
787
787
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -800,47 +800,47 @@ var _;
|
|
|
800
800
|
(function(e) {
|
|
801
801
|
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";
|
|
802
802
|
})(_ || (_ = {}));
|
|
803
|
-
var
|
|
803
|
+
var q;
|
|
804
804
|
(function(e) {
|
|
805
805
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
806
|
-
})(
|
|
807
|
-
function
|
|
806
|
+
})(q || (q = {}));
|
|
807
|
+
function rt(e) {
|
|
808
808
|
return e.type === _.literal;
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function tn(e) {
|
|
811
811
|
return e.type === _.argument;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Ot(e) {
|
|
814
814
|
return e.type === _.number;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function It(e) {
|
|
817
817
|
return e.type === _.date;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Mt(e) {
|
|
820
820
|
return e.type === _.time;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Nt(e) {
|
|
823
823
|
return e.type === _.select;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Rt(e) {
|
|
826
826
|
return e.type === _.plural;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function rn(e) {
|
|
829
829
|
return e.type === _.pound;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Dt(e) {
|
|
832
832
|
return e.type === _.tag;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
834
|
+
function kt(e) {
|
|
835
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
836
836
|
}
|
|
837
837
|
function Ge(e) {
|
|
838
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
838
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
839
839
|
}
|
|
840
|
-
var
|
|
841
|
-
function
|
|
840
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, nn = /(?:[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;
|
|
841
|
+
function an(e) {
|
|
842
842
|
var t = {};
|
|
843
|
-
return e.replace(
|
|
843
|
+
return e.replace(nn, function(r) {
|
|
844
844
|
var n = r.length;
|
|
845
845
|
switch (r[0]) {
|
|
846
846
|
case "G":
|
|
@@ -939,36 +939,36 @@ var E = function() {
|
|
|
939
939
|
return t;
|
|
940
940
|
}, E.apply(this, arguments);
|
|
941
941
|
};
|
|
942
|
-
var
|
|
942
|
+
var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
943
943
|
function on(e) {
|
|
944
944
|
if (e.length === 0)
|
|
945
945
|
throw new Error("Number skeleton cannot be empty");
|
|
946
|
-
for (var t = e.split(
|
|
946
|
+
for (var t = e.split(sn).filter(function(f) {
|
|
947
947
|
return f.length > 0;
|
|
948
948
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
949
|
-
var a = i[n],
|
|
950
|
-
if (
|
|
949
|
+
var a = i[n], s = a.split("/");
|
|
950
|
+
if (s.length === 0)
|
|
951
951
|
throw new Error("Invalid number skeleton");
|
|
952
|
-
for (var
|
|
952
|
+
for (var o = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
953
953
|
var c = h[u];
|
|
954
954
|
if (c.length === 0)
|
|
955
955
|
throw new Error("Invalid number skeleton");
|
|
956
956
|
}
|
|
957
|
-
r.push({ stem:
|
|
957
|
+
r.push({ stem: o, options: l });
|
|
958
958
|
}
|
|
959
959
|
return r;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function un(e) {
|
|
962
962
|
return e.replace(/^(.*?)-/, "");
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
function
|
|
964
|
+
var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
965
|
+
function it(e) {
|
|
966
966
|
var t = {};
|
|
967
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
967
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
|
|
968
968
|
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)), "";
|
|
969
969
|
}), t;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Ft(e) {
|
|
972
972
|
switch (e) {
|
|
973
973
|
case "sign-auto":
|
|
974
974
|
return {
|
|
@@ -1008,7 +1008,7 @@ function zt(e) {
|
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function hn(e) {
|
|
1012
1012
|
var t;
|
|
1013
1013
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1014
1014
|
notation: "engineering"
|
|
@@ -1016,17 +1016,17 @@ function ln(e) {
|
|
|
1016
1016
|
notation: "scientific"
|
|
1017
1017
|
}, e = e.slice(1)), t) {
|
|
1018
1018
|
var r = e.slice(0, 2);
|
|
1019
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1019
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
1020
1020
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1021
1021
|
t.minimumIntegerDigits = e.length;
|
|
1022
1022
|
}
|
|
1023
1023
|
return t;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
var t = {}, r =
|
|
1025
|
+
function at(e) {
|
|
1026
|
+
var t = {}, r = Ft(e);
|
|
1027
1027
|
return r || t;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function cn(e) {
|
|
1030
1030
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1031
1031
|
var i = n[r];
|
|
1032
1032
|
switch (i.stem) {
|
|
@@ -1050,7 +1050,7 @@ function hn(e) {
|
|
|
1050
1050
|
continue;
|
|
1051
1051
|
case "measure-unit":
|
|
1052
1052
|
case "unit":
|
|
1053
|
-
t.style = "unit", t.unit =
|
|
1053
|
+
t.style = "unit", t.unit = un(i.options[0]);
|
|
1054
1054
|
continue;
|
|
1055
1055
|
case "compact-short":
|
|
1056
1056
|
case "K":
|
|
@@ -1062,12 +1062,12 @@ function hn(e) {
|
|
|
1062
1062
|
continue;
|
|
1063
1063
|
case "scientific":
|
|
1064
1064
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1065
|
-
return E(E({}, l),
|
|
1065
|
+
return E(E({}, l), at(u));
|
|
1066
1066
|
}, {}));
|
|
1067
1067
|
continue;
|
|
1068
1068
|
case "engineering":
|
|
1069
1069
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1070
|
-
return E(E({}, l),
|
|
1070
|
+
return E(E({}, l), at(u));
|
|
1071
1071
|
}, {}));
|
|
1072
1072
|
continue;
|
|
1073
1073
|
case "notation-simple":
|
|
@@ -1112,41 +1112,41 @@ function hn(e) {
|
|
|
1112
1112
|
case "integer-width":
|
|
1113
1113
|
if (i.options.length > 1)
|
|
1114
1114
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1115
|
-
i.options[0].replace(
|
|
1115
|
+
i.options[0].replace(ln, function(l, u, h, c, f, p) {
|
|
1116
1116
|
if (u)
|
|
1117
1117
|
t.minimumIntegerDigits = h.length;
|
|
1118
1118
|
else {
|
|
1119
1119
|
if (c && f)
|
|
1120
1120
|
throw new Error("We currently do not support maximum integer digits");
|
|
1121
|
-
if (
|
|
1121
|
+
if (p)
|
|
1122
1122
|
throw new Error("We currently do not support exact integer digits");
|
|
1123
1123
|
}
|
|
1124
1124
|
return "";
|
|
1125
1125
|
});
|
|
1126
1126
|
continue;
|
|
1127
1127
|
}
|
|
1128
|
-
if (
|
|
1128
|
+
if (Gt.test(i.stem)) {
|
|
1129
1129
|
t.minimumIntegerDigits = i.stem.length;
|
|
1130
1130
|
continue;
|
|
1131
1131
|
}
|
|
1132
|
-
if (
|
|
1132
|
+
if (nt.test(i.stem)) {
|
|
1133
1133
|
if (i.options.length > 1)
|
|
1134
1134
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1135
|
-
i.stem.replace(
|
|
1136
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1135
|
+
i.stem.replace(nt, function(l, u, h, c, f, p) {
|
|
1136
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1137
1137
|
});
|
|
1138
1138
|
var a = i.options[0];
|
|
1139
|
-
a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t),
|
|
1139
|
+
a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t), it(a)));
|
|
1140
1140
|
continue;
|
|
1141
1141
|
}
|
|
1142
|
-
if (
|
|
1143
|
-
t = E(E({}, t),
|
|
1142
|
+
if (Ut.test(i.stem)) {
|
|
1143
|
+
t = E(E({}, t), it(i.stem));
|
|
1144
1144
|
continue;
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1147
|
-
o && (t = E(E({}, t), o));
|
|
1148
|
-
var s = ln(i.stem);
|
|
1146
|
+
var s = Ft(i.stem);
|
|
1149
1147
|
s && (t = E(E({}, t), s));
|
|
1148
|
+
var o = hn(i.stem);
|
|
1149
|
+
o && (t = E(E({}, t), o));
|
|
1150
1150
|
}
|
|
1151
1151
|
return t;
|
|
1152
1152
|
}
|
|
@@ -2565,23 +2565,23 @@ var be = {
|
|
|
2565
2565
|
"h"
|
|
2566
2566
|
]
|
|
2567
2567
|
};
|
|
2568
|
-
function
|
|
2568
|
+
function fn(e, t) {
|
|
2569
2569
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2570
2570
|
var i = e.charAt(n);
|
|
2571
2571
|
if (i === "j") {
|
|
2572
2572
|
for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2573
2573
|
a++, n++;
|
|
2574
|
-
var
|
|
2575
|
-
for ((u == "H" || u == "k") && (
|
|
2574
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = mn(t);
|
|
2575
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2576
2576
|
r += l;
|
|
2577
|
-
for (;
|
|
2577
|
+
for (; s-- > 0; )
|
|
2578
2578
|
r = u + r;
|
|
2579
2579
|
} else
|
|
2580
2580
|
i === "J" ? r += "H" : r += i;
|
|
2581
2581
|
}
|
|
2582
2582
|
return r;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function mn(e) {
|
|
2585
2585
|
var t = e.hourCycle;
|
|
2586
2586
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2587
2587
|
e.hourCycles && // @ts-ignore
|
|
@@ -2603,20 +2603,20 @@ function fn(e) {
|
|
|
2603
2603
|
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2604
2604
|
return i[0];
|
|
2605
2605
|
}
|
|
2606
|
-
var Me,
|
|
2606
|
+
var Me, dn = new RegExp("^".concat($t.source, "*")), pn = new RegExp("".concat($t.source, "*$"));
|
|
2607
2607
|
function y(e, t) {
|
|
2608
2608
|
return { start: e, end: t };
|
|
2609
2609
|
}
|
|
2610
|
-
var
|
|
2610
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, yn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, _n = !!String.prototype.trimStart, En = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, Tn = xn ? Number.isSafeInteger : function(e) {
|
|
2611
2611
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2612
2612
|
}, Fe = !0;
|
|
2613
2613
|
try {
|
|
2614
|
-
var
|
|
2615
|
-
Fe = ((Me =
|
|
2614
|
+
var wn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2615
|
+
Fe = ((Me = wn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2616
2616
|
} catch {
|
|
2617
2617
|
Fe = !1;
|
|
2618
2618
|
}
|
|
2619
|
-
var st =
|
|
2619
|
+
var st = gn ? (
|
|
2620
2620
|
// Native
|
|
2621
2621
|
function(t, r, n) {
|
|
2622
2622
|
return t.startsWith(r, n);
|
|
@@ -2626,31 +2626,31 @@ var st = pn ? (
|
|
|
2626
2626
|
function(t, r, n) {
|
|
2627
2627
|
return t.slice(n, n + r.length) === r;
|
|
2628
2628
|
}
|
|
2629
|
-
), ze =
|
|
2629
|
+
), ze = bn ? String.fromCodePoint : (
|
|
2630
2630
|
// IE11
|
|
2631
2631
|
function() {
|
|
2632
2632
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2633
2633
|
t[r] = arguments[r];
|
|
2634
|
-
for (var n = "", i = t.length, a = 0,
|
|
2635
|
-
if (
|
|
2636
|
-
throw RangeError(
|
|
2637
|
-
n +=
|
|
2634
|
+
for (var n = "", i = t.length, a = 0, s; i > a; ) {
|
|
2635
|
+
if (s = t[a++], s > 1114111)
|
|
2636
|
+
throw RangeError(s + " is not a valid code point");
|
|
2637
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2638
2638
|
}
|
|
2639
2639
|
return n;
|
|
2640
2640
|
}
|
|
2641
|
-
),
|
|
2641
|
+
), ot = (
|
|
2642
2642
|
// native
|
|
2643
|
-
|
|
2643
|
+
yn ? Object.fromEntries : (
|
|
2644
2644
|
// Ponyfill
|
|
2645
2645
|
function(t) {
|
|
2646
2646
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2647
|
-
var a = i[n],
|
|
2648
|
-
r[
|
|
2647
|
+
var a = i[n], s = a[0], o = a[1];
|
|
2648
|
+
r[s] = o;
|
|
2649
2649
|
}
|
|
2650
2650
|
return r;
|
|
2651
2651
|
}
|
|
2652
2652
|
)
|
|
2653
|
-
),
|
|
2653
|
+
), zt = vn ? (
|
|
2654
2654
|
// Native
|
|
2655
2655
|
function(t, r) {
|
|
2656
2656
|
return t.codePointAt(r);
|
|
@@ -2664,7 +2664,7 @@ var st = pn ? (
|
|
|
2664
2664
|
return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
),
|
|
2667
|
+
), Hn = _n ? (
|
|
2668
2668
|
// Native
|
|
2669
2669
|
function(t) {
|
|
2670
2670
|
return t.trimStart();
|
|
@@ -2672,9 +2672,9 @@ var st = pn ? (
|
|
|
2672
2672
|
) : (
|
|
2673
2673
|
// Ponyfill
|
|
2674
2674
|
function(t) {
|
|
2675
|
-
return t.replace(
|
|
2675
|
+
return t.replace(dn, "");
|
|
2676
2676
|
}
|
|
2677
|
-
),
|
|
2677
|
+
), An = En ? (
|
|
2678
2678
|
// Native
|
|
2679
2679
|
function(t) {
|
|
2680
2680
|
return t.trimEnd();
|
|
@@ -2682,32 +2682,32 @@ var st = pn ? (
|
|
|
2682
2682
|
) : (
|
|
2683
2683
|
// Ponyfill
|
|
2684
2684
|
function(t) {
|
|
2685
|
-
return t.replace(
|
|
2685
|
+
return t.replace(pn, "");
|
|
2686
2686
|
}
|
|
2687
2687
|
);
|
|
2688
|
-
function
|
|
2688
|
+
function jt(e, t) {
|
|
2689
2689
|
return new RegExp(e, t);
|
|
2690
2690
|
}
|
|
2691
2691
|
var je;
|
|
2692
2692
|
if (Fe) {
|
|
2693
|
-
var
|
|
2693
|
+
var ut = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2694
2694
|
je = function(t, r) {
|
|
2695
2695
|
var n;
|
|
2696
|
-
|
|
2697
|
-
var i =
|
|
2696
|
+
ut.lastIndex = r;
|
|
2697
|
+
var i = ut.exec(t);
|
|
2698
2698
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2699
2699
|
};
|
|
2700
2700
|
} else
|
|
2701
2701
|
je = function(t, r) {
|
|
2702
2702
|
for (var n = []; ; ) {
|
|
2703
|
-
var i =
|
|
2704
|
-
if (i === void 0 ||
|
|
2703
|
+
var i = zt(t, r);
|
|
2704
|
+
if (i === void 0 || Vt(i) || Ln(i))
|
|
2705
2705
|
break;
|
|
2706
2706
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2707
2707
|
}
|
|
2708
2708
|
return ze.apply(void 0, n);
|
|
2709
2709
|
};
|
|
2710
|
-
var
|
|
2710
|
+
var Sn = (
|
|
2711
2711
|
/** @class */
|
|
2712
2712
|
function() {
|
|
2713
2713
|
function e(t, r) {
|
|
@@ -2721,33 +2721,33 @@ var An = (
|
|
|
2721
2721
|
for (var i = []; !this.isEOF(); ) {
|
|
2722
2722
|
var a = this.char();
|
|
2723
2723
|
if (a === 123) {
|
|
2724
|
-
var
|
|
2725
|
-
if (
|
|
2726
|
-
return
|
|
2727
|
-
i.push(
|
|
2724
|
+
var s = this.parseArgument(t, n);
|
|
2725
|
+
if (s.err)
|
|
2726
|
+
return s;
|
|
2727
|
+
i.push(s.val);
|
|
2728
2728
|
} else {
|
|
2729
2729
|
if (a === 125 && t > 0)
|
|
2730
2730
|
break;
|
|
2731
2731
|
if (a === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2732
|
-
var
|
|
2732
|
+
var o = this.clonePosition();
|
|
2733
2733
|
this.bump(), i.push({
|
|
2734
2734
|
type: _.pound,
|
|
2735
|
-
location: y(
|
|
2735
|
+
location: y(o, this.clonePosition())
|
|
2736
2736
|
});
|
|
2737
2737
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2738
2738
|
if (n)
|
|
2739
2739
|
break;
|
|
2740
2740
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2741
2741
|
} else if (a === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
2742
|
-
var
|
|
2743
|
-
if (
|
|
2744
|
-
return
|
|
2745
|
-
i.push(
|
|
2742
|
+
var s = this.parseTag(t, r);
|
|
2743
|
+
if (s.err)
|
|
2744
|
+
return s;
|
|
2745
|
+
i.push(s.val);
|
|
2746
2746
|
} else {
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
return
|
|
2750
|
-
i.push(
|
|
2747
|
+
var s = this.parseLiteral(t, r);
|
|
2748
|
+
if (s.err)
|
|
2749
|
+
return s;
|
|
2750
|
+
i.push(s.val);
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
}
|
|
@@ -2769,27 +2769,27 @@ var An = (
|
|
|
2769
2769
|
var a = this.parseMessage(t + 1, r, !0);
|
|
2770
2770
|
if (a.err)
|
|
2771
2771
|
return a;
|
|
2772
|
-
var
|
|
2772
|
+
var s = a.val, o = this.clonePosition();
|
|
2773
2773
|
if (this.bumpIf("</")) {
|
|
2774
2774
|
if (this.isEOF() || !Ve(this.char()))
|
|
2775
|
-
return this.error(b.INVALID_TAG, y(
|
|
2775
|
+
return this.error(b.INVALID_TAG, y(o, this.clonePosition()));
|
|
2776
2776
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2777
2777
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2778
2778
|
val: {
|
|
2779
2779
|
type: _.tag,
|
|
2780
2780
|
value: i,
|
|
2781
|
-
children:
|
|
2781
|
+
children: s,
|
|
2782
2782
|
location: y(n, this.clonePosition())
|
|
2783
2783
|
},
|
|
2784
2784
|
err: null
|
|
2785
|
-
} : this.error(b.INVALID_TAG, y(
|
|
2785
|
+
} : this.error(b.INVALID_TAG, y(o, this.clonePosition())));
|
|
2786
2786
|
} else
|
|
2787
2787
|
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2788
2788
|
} else
|
|
2789
2789
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
2790
2790
|
}, e.prototype.parseTagName = function() {
|
|
2791
2791
|
var t = this.offset();
|
|
2792
|
-
for (this.bump(); !this.isEOF() &&
|
|
2792
|
+
for (this.bump(); !this.isEOF() && Pn(this.char()); )
|
|
2793
2793
|
this.bump();
|
|
2794
2794
|
return this.message.slice(t, this.offset());
|
|
2795
2795
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2799,16 +2799,16 @@ var An = (
|
|
|
2799
2799
|
i += a;
|
|
2800
2800
|
continue;
|
|
2801
2801
|
}
|
|
2802
|
-
var
|
|
2803
|
-
if (o) {
|
|
2804
|
-
i += o;
|
|
2805
|
-
continue;
|
|
2806
|
-
}
|
|
2807
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2802
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2808
2803
|
if (s) {
|
|
2809
2804
|
i += s;
|
|
2810
2805
|
continue;
|
|
2811
2806
|
}
|
|
2807
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2808
|
+
if (o) {
|
|
2809
|
+
i += o;
|
|
2810
|
+
continue;
|
|
2811
|
+
}
|
|
2812
2812
|
break;
|
|
2813
2813
|
}
|
|
2814
2814
|
var l = y(n, this.clonePosition());
|
|
@@ -2818,7 +2818,7 @@ var An = (
|
|
|
2818
2818
|
};
|
|
2819
2819
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2820
2820
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2821
|
-
!
|
|
2821
|
+
!Bn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2822
2822
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2823
2823
|
if (this.isEOF() || this.char() !== 39)
|
|
2824
2824
|
return null;
|
|
@@ -2888,13 +2888,13 @@ var An = (
|
|
|
2888
2888
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2889
2889
|
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2890
2890
|
this.bumpTo(i);
|
|
2891
|
-
var a = this.clonePosition(),
|
|
2892
|
-
return { value: n, location:
|
|
2891
|
+
var a = this.clonePosition(), s = y(t, a);
|
|
2892
|
+
return { value: n, location: s };
|
|
2893
2893
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2894
|
-
var a,
|
|
2895
|
-
switch (
|
|
2894
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2895
|
+
switch (o) {
|
|
2896
2896
|
case "":
|
|
2897
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, y(
|
|
2897
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
2898
2898
|
case "number":
|
|
2899
2899
|
case "date":
|
|
2900
2900
|
case "time": {
|
|
@@ -2905,19 +2905,19 @@ var An = (
|
|
|
2905
2905
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2906
2906
|
if (c.err)
|
|
2907
2907
|
return c;
|
|
2908
|
-
var f =
|
|
2908
|
+
var f = An(c.val);
|
|
2909
2909
|
if (f.length === 0)
|
|
2910
2910
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2911
|
-
var
|
|
2912
|
-
u = { style: f, styleLocation:
|
|
2911
|
+
var p = y(h, this.clonePosition());
|
|
2912
|
+
u = { style: f, styleLocation: p };
|
|
2913
2913
|
}
|
|
2914
2914
|
var g = this.tryParseArgumentClose(i);
|
|
2915
2915
|
if (g.err)
|
|
2916
2916
|
return g;
|
|
2917
2917
|
var x = y(i, this.clonePosition());
|
|
2918
2918
|
if (u && st(u?.style, "::", 0)) {
|
|
2919
|
-
var w =
|
|
2920
|
-
if (
|
|
2919
|
+
var w = Hn(u.style.slice(2));
|
|
2920
|
+
if (o === "number") {
|
|
2921
2921
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
2922
2922
|
return c.err ? c : {
|
|
2923
2923
|
val: { type: _.number, value: n, location: x, style: c.val },
|
|
@@ -2927,13 +2927,13 @@ var An = (
|
|
|
2927
2927
|
if (w.length === 0)
|
|
2928
2928
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, x);
|
|
2929
2929
|
var T = w;
|
|
2930
|
-
this.locale && (T =
|
|
2930
|
+
this.locale && (T = fn(w, this.locale));
|
|
2931
2931
|
var f = {
|
|
2932
|
-
type:
|
|
2932
|
+
type: q.dateTime,
|
|
2933
2933
|
pattern: T,
|
|
2934
2934
|
location: u.styleLocation,
|
|
2935
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2936
|
-
}, m =
|
|
2935
|
+
parsedOptions: this.shouldParseSkeletons ? an(T) : {}
|
|
2936
|
+
}, m = o === "date" ? _.date : _.time;
|
|
2937
2937
|
return {
|
|
2938
2938
|
val: { type: m, value: n, location: x, style: f },
|
|
2939
2939
|
err: null
|
|
@@ -2942,7 +2942,7 @@ var An = (
|
|
|
2942
2942
|
}
|
|
2943
2943
|
return {
|
|
2944
2944
|
val: {
|
|
2945
|
-
type:
|
|
2945
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2946
2946
|
value: n,
|
|
2947
2947
|
location: x,
|
|
2948
2948
|
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
@@ -2957,45 +2957,45 @@ var An = (
|
|
|
2957
2957
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2958
2958
|
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(v, xe({}, v)));
|
|
2959
2959
|
this.bumpSpace();
|
|
2960
|
-
var
|
|
2961
|
-
if (
|
|
2960
|
+
var N = this.parseIdentifierIfPossible(), C = 0;
|
|
2961
|
+
if (o !== "select" && N.value === "offset") {
|
|
2962
2962
|
if (!this.bumpIf(":"))
|
|
2963
2963
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2964
2964
|
this.bumpSpace();
|
|
2965
2965
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2966
2966
|
if (c.err)
|
|
2967
2967
|
return c;
|
|
2968
|
-
this.bumpSpace(),
|
|
2968
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), C = c.val;
|
|
2969
2969
|
}
|
|
2970
|
-
var
|
|
2971
|
-
if (
|
|
2972
|
-
return
|
|
2970
|
+
var d = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2971
|
+
if (d.err)
|
|
2972
|
+
return d;
|
|
2973
2973
|
var g = this.tryParseArgumentClose(i);
|
|
2974
2974
|
if (g.err)
|
|
2975
2975
|
return g;
|
|
2976
|
-
var
|
|
2977
|
-
return
|
|
2976
|
+
var le = y(i, this.clonePosition());
|
|
2977
|
+
return o === "select" ? {
|
|
2978
2978
|
val: {
|
|
2979
2979
|
type: _.select,
|
|
2980
2980
|
value: n,
|
|
2981
|
-
options:
|
|
2982
|
-
location:
|
|
2981
|
+
options: ot(d.val),
|
|
2982
|
+
location: le
|
|
2983
2983
|
},
|
|
2984
2984
|
err: null
|
|
2985
2985
|
} : {
|
|
2986
2986
|
val: {
|
|
2987
2987
|
type: _.plural,
|
|
2988
2988
|
value: n,
|
|
2989
|
-
options:
|
|
2989
|
+
options: ot(d.val),
|
|
2990
2990
|
offset: C,
|
|
2991
|
-
pluralType:
|
|
2992
|
-
location:
|
|
2991
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2992
|
+
location: le
|
|
2993
2993
|
},
|
|
2994
2994
|
err: null
|
|
2995
2995
|
};
|
|
2996
2996
|
}
|
|
2997
2997
|
default:
|
|
2998
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, y(
|
|
2998
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
2999
2999
|
}
|
|
3000
3000
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3001
3001
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3043,15 +3043,15 @@ var An = (
|
|
|
3043
3043
|
}
|
|
3044
3044
|
return {
|
|
3045
3045
|
val: {
|
|
3046
|
-
type:
|
|
3046
|
+
type: q.number,
|
|
3047
3047
|
tokens: n,
|
|
3048
3048
|
location: r,
|
|
3049
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3049
|
+
parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
|
|
3050
3050
|
},
|
|
3051
3051
|
err: null
|
|
3052
3052
|
};
|
|
3053
3053
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3054
|
-
for (var a,
|
|
3054
|
+
for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3055
3055
|
if (u.length === 0) {
|
|
3056
3056
|
var c = this.clonePosition();
|
|
3057
3057
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3064,37 +3064,37 @@ var An = (
|
|
|
3064
3064
|
}
|
|
3065
3065
|
if (l.has(u))
|
|
3066
3066
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3067
|
-
u === "other" && (
|
|
3068
|
-
var
|
|
3067
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3068
|
+
var p = this.clonePosition();
|
|
3069
3069
|
if (!this.bumpIf("{"))
|
|
3070
3070
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3071
3071
|
var g = this.parseMessage(t + 1, r, n);
|
|
3072
3072
|
if (g.err)
|
|
3073
3073
|
return g;
|
|
3074
|
-
var x = this.tryParseArgumentClose(
|
|
3074
|
+
var x = this.tryParseArgumentClose(p);
|
|
3075
3075
|
if (x.err)
|
|
3076
3076
|
return x;
|
|
3077
|
-
|
|
3077
|
+
o.push([
|
|
3078
3078
|
u,
|
|
3079
3079
|
{
|
|
3080
3080
|
value: g.val,
|
|
3081
|
-
location: y(
|
|
3081
|
+
location: y(p, this.clonePosition())
|
|
3082
3082
|
}
|
|
3083
3083
|
]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, h = a.location;
|
|
3084
3084
|
}
|
|
3085
|
-
return
|
|
3085
|
+
return o.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3086
3086
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3087
3087
|
var n = 1, i = this.clonePosition();
|
|
3088
3088
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3089
|
-
for (var a = !1,
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
a = !0,
|
|
3089
|
+
for (var a = !1, s = 0; !this.isEOF(); ) {
|
|
3090
|
+
var o = this.char();
|
|
3091
|
+
if (o >= 48 && o <= 57)
|
|
3092
|
+
a = !0, s = s * 10 + (o - 48), this.bump();
|
|
3093
3093
|
else
|
|
3094
3094
|
break;
|
|
3095
3095
|
}
|
|
3096
3096
|
var l = y(i, this.clonePosition());
|
|
3097
|
-
return a ? (
|
|
3097
|
+
return a ? (s *= n, Tn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3098
3098
|
}, e.prototype.offset = function() {
|
|
3099
3099
|
return this.position.offset;
|
|
3100
3100
|
}, e.prototype.isEOF = function() {
|
|
@@ -3109,7 +3109,7 @@ var An = (
|
|
|
3109
3109
|
var t = this.position.offset;
|
|
3110
3110
|
if (t >= this.message.length)
|
|
3111
3111
|
throw Error("out of bound");
|
|
3112
|
-
var r =
|
|
3112
|
+
var r = zt(this.message, t);
|
|
3113
3113
|
if (r === void 0)
|
|
3114
3114
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3115
3115
|
return r;
|
|
@@ -3150,7 +3150,7 @@ var An = (
|
|
|
3150
3150
|
break;
|
|
3151
3151
|
}
|
|
3152
3152
|
}, e.prototype.bumpSpace = function() {
|
|
3153
|
-
for (; !this.isEOF() &&
|
|
3153
|
+
for (; !this.isEOF() && Vt(this.char()); )
|
|
3154
3154
|
this.bump();
|
|
3155
3155
|
}, e.prototype.peek = function() {
|
|
3156
3156
|
if (this.isEOF())
|
|
@@ -3163,13 +3163,13 @@ var An = (
|
|
|
3163
3163
|
function Ve(e) {
|
|
3164
3164
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Bn(e) {
|
|
3167
3167
|
return Ve(e) || e === 47;
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Pn(e) {
|
|
3170
3170
|
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;
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Vt(e) {
|
|
3173
3173
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3174
3174
|
}
|
|
3175
3175
|
function Ln(e) {
|
|
@@ -3177,26 +3177,26 @@ function Ln(e) {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
function We(e) {
|
|
3179
3179
|
e.forEach(function(t) {
|
|
3180
|
-
if (delete t.location,
|
|
3180
|
+
if (delete t.location, Nt(t) || Rt(t))
|
|
3181
3181
|
for (var r in t.options)
|
|
3182
3182
|
delete t.options[r].location, We(t.options[r].value);
|
|
3183
3183
|
else
|
|
3184
|
-
|
|
3184
|
+
Ot(t) && kt(t.style) || (It(t) || Mt(t)) && Ge(t.style) ? delete t.style.location : Dt(t) && We(t.children);
|
|
3185
3185
|
});
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function Cn(e, t) {
|
|
3188
3188
|
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3189
|
-
var r = new
|
|
3189
|
+
var r = new Sn(e, t).parse();
|
|
3190
3190
|
if (r.err) {
|
|
3191
3191
|
var n = SyntaxError(b[r.err.kind]);
|
|
3192
3192
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3193
3193
|
}
|
|
3194
3194
|
return t?.captureLocation || We(r.val), r.val;
|
|
3195
3195
|
}
|
|
3196
|
-
var
|
|
3196
|
+
var J;
|
|
3197
3197
|
(function(e) {
|
|
3198
3198
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3199
|
-
})(
|
|
3199
|
+
})(J || (J = {}));
|
|
3200
3200
|
var Be = (
|
|
3201
3201
|
/** @class */
|
|
3202
3202
|
function(e) {
|
|
@@ -3209,30 +3209,30 @@ var Be = (
|
|
|
3209
3209
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3210
3210
|
}, t;
|
|
3211
3211
|
}(Error)
|
|
3212
|
-
),
|
|
3212
|
+
), lt = (
|
|
3213
3213
|
/** @class */
|
|
3214
3214
|
function(e) {
|
|
3215
3215
|
Se(t, e);
|
|
3216
3216
|
function t(r, n, i, a) {
|
|
3217
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3217
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, a) || this;
|
|
3218
3218
|
}
|
|
3219
3219
|
return t;
|
|
3220
3220
|
}(Be)
|
|
3221
|
-
),
|
|
3221
|
+
), On = (
|
|
3222
3222
|
/** @class */
|
|
3223
3223
|
function(e) {
|
|
3224
3224
|
Se(t, e);
|
|
3225
3225
|
function t(r, n, i) {
|
|
3226
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3226
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3227
3227
|
}
|
|
3228
3228
|
return t;
|
|
3229
3229
|
}(Be)
|
|
3230
|
-
),
|
|
3230
|
+
), In = (
|
|
3231
3231
|
/** @class */
|
|
3232
3232
|
function(e) {
|
|
3233
3233
|
Se(t, e);
|
|
3234
3234
|
function t(r, n) {
|
|
3235
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3235
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3236
3236
|
}
|
|
3237
3237
|
return t;
|
|
3238
3238
|
}(Be)
|
|
@@ -3240,34 +3240,34 @@ var Be = (
|
|
|
3240
3240
|
(function(e) {
|
|
3241
3241
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3242
3242
|
})(H || (H = {}));
|
|
3243
|
-
function
|
|
3243
|
+
function Mn(e) {
|
|
3244
3244
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3245
3245
|
var n = t[t.length - 1];
|
|
3246
3246
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3247
3247
|
}, []);
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Nn(e) {
|
|
3250
3250
|
return typeof e == "function";
|
|
3251
3251
|
}
|
|
3252
|
-
function _e(e, t, r, n, i, a,
|
|
3253
|
-
if (e.length === 1 &&
|
|
3252
|
+
function _e(e, t, r, n, i, a, s) {
|
|
3253
|
+
if (e.length === 1 && rt(e[0]))
|
|
3254
3254
|
return [
|
|
3255
3255
|
{
|
|
3256
3256
|
type: H.literal,
|
|
3257
3257
|
value: e[0].value
|
|
3258
3258
|
}
|
|
3259
3259
|
];
|
|
3260
|
-
for (var
|
|
3260
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3261
3261
|
var h = u[l];
|
|
3262
|
-
if (
|
|
3263
|
-
|
|
3262
|
+
if (rt(h)) {
|
|
3263
|
+
o.push({
|
|
3264
3264
|
type: H.literal,
|
|
3265
3265
|
value: h.value
|
|
3266
3266
|
});
|
|
3267
3267
|
continue;
|
|
3268
3268
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
typeof a == "number" &&
|
|
3269
|
+
if (rn(h)) {
|
|
3270
|
+
typeof a == "number" && o.push({
|
|
3271
3271
|
type: H.literal,
|
|
3272
3272
|
value: r.getNumberFormat(t).format(a)
|
|
3273
3273
|
});
|
|
@@ -3275,87 +3275,87 @@ function _e(e, t, r, n, i, a, o) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
var c = h.value;
|
|
3277
3277
|
if (!(i && c in i))
|
|
3278
|
-
throw new
|
|
3278
|
+
throw new In(c, s);
|
|
3279
3279
|
var f = i[c];
|
|
3280
|
-
if (
|
|
3281
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3280
|
+
if (tn(h)) {
|
|
3281
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3282
3282
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3283
3283
|
value: f
|
|
3284
3284
|
});
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
|
-
if (
|
|
3288
|
-
var
|
|
3289
|
-
|
|
3287
|
+
if (It(h)) {
|
|
3288
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3289
|
+
o.push({
|
|
3290
3290
|
type: H.literal,
|
|
3291
|
-
value: r.getDateTimeFormat(t,
|
|
3291
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3292
3292
|
});
|
|
3293
3293
|
continue;
|
|
3294
3294
|
}
|
|
3295
|
-
if (
|
|
3296
|
-
var
|
|
3297
|
-
|
|
3295
|
+
if (Mt(h)) {
|
|
3296
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3297
|
+
o.push({
|
|
3298
3298
|
type: H.literal,
|
|
3299
|
-
value: r.getDateTimeFormat(t,
|
|
3299
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3300
3300
|
});
|
|
3301
3301
|
continue;
|
|
3302
3302
|
}
|
|
3303
|
-
if (
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3303
|
+
if (Ot(h)) {
|
|
3304
|
+
var p = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3305
|
+
p && p.scale && (f = f * (p.scale || 1)), o.push({
|
|
3306
3306
|
type: H.literal,
|
|
3307
|
-
value: r.getNumberFormat(t,
|
|
3307
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3308
3308
|
});
|
|
3309
3309
|
continue;
|
|
3310
3310
|
}
|
|
3311
|
-
if (
|
|
3311
|
+
if (Dt(h)) {
|
|
3312
3312
|
var g = h.children, x = h.value, w = i[x];
|
|
3313
|
-
if (!
|
|
3314
|
-
throw new
|
|
3313
|
+
if (!Nn(w))
|
|
3314
|
+
throw new On(x, "function", s);
|
|
3315
3315
|
var T = _e(g, t, r, n, i, a), m = w(T.map(function(C) {
|
|
3316
3316
|
return C.value;
|
|
3317
3317
|
}));
|
|
3318
|
-
Array.isArray(m) || (m = [m]),
|
|
3318
|
+
Array.isArray(m) || (m = [m]), o.push.apply(o, m.map(function(C) {
|
|
3319
3319
|
return {
|
|
3320
3320
|
type: typeof C == "string" ? H.literal : H.object,
|
|
3321
3321
|
value: C
|
|
3322
3322
|
};
|
|
3323
3323
|
}));
|
|
3324
3324
|
}
|
|
3325
|
-
if (
|
|
3325
|
+
if (Nt(h)) {
|
|
3326
3326
|
var v = h.options[f] || h.options.other;
|
|
3327
3327
|
if (!v)
|
|
3328
|
-
throw new
|
|
3329
|
-
|
|
3328
|
+
throw new lt(h.value, f, Object.keys(h.options), s);
|
|
3329
|
+
o.push.apply(o, _e(v.value, t, r, n, i));
|
|
3330
3330
|
continue;
|
|
3331
3331
|
}
|
|
3332
|
-
if (
|
|
3332
|
+
if (Rt(h)) {
|
|
3333
3333
|
var v = h.options["=".concat(f)];
|
|
3334
3334
|
if (!v) {
|
|
3335
3335
|
if (!Intl.PluralRules)
|
|
3336
3336
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3337
3337
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3338
|
-
`,
|
|
3339
|
-
var
|
|
3340
|
-
v = h.options[
|
|
3338
|
+
`, J.MISSING_INTL_API, s);
|
|
3339
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3340
|
+
v = h.options[N] || h.options.other;
|
|
3341
3341
|
}
|
|
3342
3342
|
if (!v)
|
|
3343
|
-
throw new
|
|
3344
|
-
|
|
3343
|
+
throw new lt(h.value, f, Object.keys(h.options), s);
|
|
3344
|
+
o.push.apply(o, _e(v.value, t, r, n, i, f - (h.offset || 0)));
|
|
3345
3345
|
continue;
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
return
|
|
3348
|
+
return Mn(o);
|
|
3349
3349
|
}
|
|
3350
|
-
function
|
|
3351
|
-
return t ?
|
|
3352
|
-
return r[n] =
|
|
3350
|
+
function Rn(e, t) {
|
|
3351
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3352
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3353
3353
|
}, {})) : e;
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function Dn(e, t) {
|
|
3356
3356
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3357
|
-
return r[n] =
|
|
3358
|
-
},
|
|
3357
|
+
return r[n] = Rn(e[n], t[n]), r;
|
|
3358
|
+
}, L({}, e)) : e;
|
|
3359
3359
|
}
|
|
3360
3360
|
function Ne(e) {
|
|
3361
3361
|
return {
|
|
@@ -3371,7 +3371,7 @@ function Ne(e) {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3374
|
+
function kn(e) {
|
|
3375
3375
|
return e === void 0 && (e = {
|
|
3376
3376
|
number: {},
|
|
3377
3377
|
dateTime: {},
|
|
@@ -3403,7 +3403,7 @@ function Dn(e) {
|
|
|
3403
3403
|
})
|
|
3404
3404
|
};
|
|
3405
3405
|
}
|
|
3406
|
-
var
|
|
3406
|
+
var Wt = (
|
|
3407
3407
|
/** @class */
|
|
3408
3408
|
function() {
|
|
3409
3409
|
function e(t, r, n, i) {
|
|
@@ -3433,15 +3433,15 @@ var Xt = (
|
|
|
3433
3433
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3434
3434
|
if (this.message = t, !e.__parse)
|
|
3435
3435
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3436
|
-
var
|
|
3437
|
-
|
|
3438
|
-
var
|
|
3439
|
-
this.ast = e.__parse(t,
|
|
3436
|
+
var s = i || {};
|
|
3437
|
+
s.formatters;
|
|
3438
|
+
var o = Xr(s, ["formatters"]);
|
|
3439
|
+
this.ast = e.__parse(t, L(L({}, o), { locale: this.resolvedLocale }));
|
|
3440
3440
|
} else
|
|
3441
3441
|
this.ast = t;
|
|
3442
3442
|
if (!Array.isArray(this.ast))
|
|
3443
3443
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3444
|
-
this.formats =
|
|
3444
|
+
this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || kn(this.formatterCache);
|
|
3445
3445
|
}
|
|
3446
3446
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3447
3447
|
get: function() {
|
|
@@ -3454,7 +3454,7 @@ var Xt = (
|
|
|
3454
3454
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3455
3455
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3456
3456
|
}
|
|
3457
|
-
}, e.__parse =
|
|
3457
|
+
}, e.__parse = Cn, e.formats = {
|
|
3458
3458
|
number: {
|
|
3459
3459
|
integer: {
|
|
3460
3460
|
maximumFractionDigits: 0
|
|
@@ -3515,7 +3515,7 @@ var Xt = (
|
|
|
3515
3515
|
}, e;
|
|
3516
3516
|
}()
|
|
3517
3517
|
);
|
|
3518
|
-
function
|
|
3518
|
+
function $n(e, t) {
|
|
3519
3519
|
if (t == null)
|
|
3520
3520
|
return;
|
|
3521
3521
|
if (t in e)
|
|
@@ -3536,101 +3536,101 @@ function kn(e, t) {
|
|
|
3536
3536
|
n = void 0;
|
|
3537
3537
|
return n;
|
|
3538
3538
|
}
|
|
3539
|
-
const
|
|
3539
|
+
const R = {}, Un = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Xt = (e, t) => {
|
|
3540
3540
|
if (t == null)
|
|
3541
3541
|
return;
|
|
3542
|
-
if (t in
|
|
3543
|
-
return
|
|
3544
|
-
const r =
|
|
3542
|
+
if (t in R && e in R[t])
|
|
3543
|
+
return R[t][e];
|
|
3544
|
+
const r = ue(t);
|
|
3545
3545
|
for (let n = 0; n < r.length; n++) {
|
|
3546
|
-
const i = r[n], a =
|
|
3546
|
+
const i = r[n], a = Fn(i, e);
|
|
3547
3547
|
if (a)
|
|
3548
|
-
return
|
|
3548
|
+
return Un(e, t, a);
|
|
3549
3549
|
}
|
|
3550
3550
|
};
|
|
3551
3551
|
let Ze;
|
|
3552
|
-
const
|
|
3553
|
-
function
|
|
3552
|
+
const oe = Ae({});
|
|
3553
|
+
function Gn(e) {
|
|
3554
3554
|
return Ze[e] || null;
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function qt(e) {
|
|
3557
3557
|
return e in Ze;
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3560
|
-
if (!
|
|
3559
|
+
function Fn(e, t) {
|
|
3560
|
+
if (!qt(e))
|
|
3561
3561
|
return null;
|
|
3562
|
-
const r =
|
|
3563
|
-
return
|
|
3562
|
+
const r = Gn(e);
|
|
3563
|
+
return $n(r, t);
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3565
|
+
function zn(e) {
|
|
3566
3566
|
if (e == null)
|
|
3567
3567
|
return;
|
|
3568
|
-
const t =
|
|
3568
|
+
const t = ue(e);
|
|
3569
3569
|
for (let r = 0; r < t.length; r++) {
|
|
3570
3570
|
const n = t[r];
|
|
3571
|
-
if (
|
|
3571
|
+
if (qt(n))
|
|
3572
3572
|
return n;
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3576
|
-
delete
|
|
3575
|
+
function Jt(e, ...t) {
|
|
3576
|
+
delete R[e], oe.update((r) => (r[e] = Wr.all([r[e] || {}, ...t]), r));
|
|
3577
3577
|
}
|
|
3578
|
-
|
|
3579
|
-
[
|
|
3578
|
+
Y(
|
|
3579
|
+
[oe],
|
|
3580
3580
|
([e]) => Object.keys(e)
|
|
3581
3581
|
);
|
|
3582
|
-
|
|
3582
|
+
oe.subscribe((e) => Ze = e);
|
|
3583
3583
|
const Ee = {};
|
|
3584
|
-
function
|
|
3584
|
+
function jn(e, t) {
|
|
3585
3585
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3587
|
+
function Zt(e) {
|
|
3588
3588
|
return Ee[e];
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3592
|
-
const r =
|
|
3590
|
+
function Vn(e) {
|
|
3591
|
+
return ue(e).map((t) => {
|
|
3592
|
+
const r = Zt(t);
|
|
3593
3593
|
return [t, r ? [...r] : []];
|
|
3594
3594
|
}).filter(([, t]) => t.length > 0);
|
|
3595
3595
|
}
|
|
3596
3596
|
function Te(e) {
|
|
3597
|
-
return e == null ? !1 :
|
|
3597
|
+
return e == null ? !1 : ue(e).some(
|
|
3598
3598
|
(t) => {
|
|
3599
3599
|
var r;
|
|
3600
|
-
return (r =
|
|
3600
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3601
3601
|
}
|
|
3602
3602
|
);
|
|
3603
3603
|
}
|
|
3604
|
-
function
|
|
3604
|
+
function Wn(e, t) {
|
|
3605
3605
|
return Promise.all(
|
|
3606
|
-
t.map((n) => (
|
|
3607
|
-
).then((n) =>
|
|
3606
|
+
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3607
|
+
).then((n) => Jt(e, ...n));
|
|
3608
3608
|
}
|
|
3609
|
-
const
|
|
3610
|
-
function
|
|
3609
|
+
const K = {};
|
|
3610
|
+
function Yt(e) {
|
|
3611
3611
|
if (!Te(e))
|
|
3612
|
-
return e in
|
|
3613
|
-
const t =
|
|
3614
|
-
return
|
|
3612
|
+
return e in K ? K[e] : Promise.resolve();
|
|
3613
|
+
const t = Vn(e);
|
|
3614
|
+
return K[e] = Promise.all(
|
|
3615
3615
|
t.map(
|
|
3616
|
-
([r, n]) =>
|
|
3616
|
+
([r, n]) => Wn(r, n)
|
|
3617
3617
|
)
|
|
3618
3618
|
).then(() => {
|
|
3619
3619
|
if (Te(e))
|
|
3620
|
-
return
|
|
3621
|
-
delete
|
|
3622
|
-
}),
|
|
3620
|
+
return Yt(e);
|
|
3621
|
+
delete K[e];
|
|
3622
|
+
}), K[e];
|
|
3623
3623
|
}
|
|
3624
|
-
var
|
|
3624
|
+
var ht = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3625
3625
|
var r = {};
|
|
3626
3626
|
for (var n in e)
|
|
3627
|
-
|
|
3628
|
-
if (e != null &&
|
|
3629
|
-
for (var n of
|
|
3630
|
-
t.indexOf(n) < 0 &&
|
|
3627
|
+
Xn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3628
|
+
if (e != null && ht)
|
|
3629
|
+
for (var n of ht(e))
|
|
3630
|
+
t.indexOf(n) < 0 && qn.call(e, n) && (r[n] = e[n]);
|
|
3631
3631
|
return r;
|
|
3632
3632
|
};
|
|
3633
|
-
const
|
|
3633
|
+
const Zn = {
|
|
3634
3634
|
number: {
|
|
3635
3635
|
scientific: { notation: "scientific" },
|
|
3636
3636
|
engineering: { notation: "engineering" },
|
|
@@ -3660,183 +3660,183 @@ const Jn = {
|
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
};
|
|
3663
|
-
function
|
|
3663
|
+
function Yn({ locale: e, id: t }) {
|
|
3664
3664
|
console.warn(
|
|
3665
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3665
|
+
`[svelte-i18n] The message "${t}" was not found in "${ue(
|
|
3666
3666
|
e
|
|
3667
|
-
).join('", "')}".${Te(
|
|
3667
|
+
).join('", "')}".${Te(k()) ? `
|
|
3668
3668
|
|
|
3669
3669
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3670
3670
|
);
|
|
3671
3671
|
}
|
|
3672
|
-
const
|
|
3672
|
+
const Qn = {
|
|
3673
3673
|
fallbackLocale: null,
|
|
3674
3674
|
loadingDelay: 200,
|
|
3675
|
-
formats:
|
|
3675
|
+
formats: Zn,
|
|
3676
3676
|
warnOnMissingMessages: !0,
|
|
3677
3677
|
handleMissingMessage: void 0,
|
|
3678
3678
|
ignoreTag: !0
|
|
3679
|
-
},
|
|
3680
|
-
function
|
|
3681
|
-
return
|
|
3679
|
+
}, te = Qn;
|
|
3680
|
+
function Z() {
|
|
3681
|
+
return te;
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const t = e, { formats: r } = t, n =
|
|
3683
|
+
function Kn(e) {
|
|
3684
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3685
3685
|
let i = e.fallbackLocale;
|
|
3686
3686
|
if (e.initialLocale)
|
|
3687
3687
|
try {
|
|
3688
|
-
|
|
3688
|
+
Wt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3689
3689
|
} catch {
|
|
3690
3690
|
console.warn(
|
|
3691
3691
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3692
3692
|
);
|
|
3693
3693
|
}
|
|
3694
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3694
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
|
|
3695
3695
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3696
|
-
)), Object.assign(
|
|
3696
|
+
)), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)), $.set(i);
|
|
3697
3697
|
}
|
|
3698
3698
|
const Re = Ae(!1);
|
|
3699
|
-
var
|
|
3699
|
+
var ei = Object.defineProperty, ti = Object.defineProperties, ri = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, ni = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
|
|
3700
3700
|
for (var r in t || (t = {}))
|
|
3701
|
-
|
|
3702
|
-
if (
|
|
3703
|
-
for (var r of
|
|
3704
|
-
|
|
3701
|
+
ni.call(t, r) && ft(e, r, t[r]);
|
|
3702
|
+
if (ct)
|
|
3703
|
+
for (var r of ct(t))
|
|
3704
|
+
ii.call(t, r) && ft(e, r, t[r]);
|
|
3705
3705
|
return e;
|
|
3706
|
-
},
|
|
3706
|
+
}, si = (e, t) => ti(e, ri(t));
|
|
3707
3707
|
let Xe;
|
|
3708
3708
|
const we = Ae(null);
|
|
3709
|
-
function
|
|
3709
|
+
function mt(e) {
|
|
3710
3710
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3711
3711
|
}
|
|
3712
|
-
function
|
|
3713
|
-
const r =
|
|
3714
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3712
|
+
function ue(e, t = Z().fallbackLocale) {
|
|
3713
|
+
const r = mt(e);
|
|
3714
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
3715
3715
|
}
|
|
3716
|
-
function
|
|
3716
|
+
function k() {
|
|
3717
3717
|
return Xe ?? void 0;
|
|
3718
3718
|
}
|
|
3719
3719
|
we.subscribe((e) => {
|
|
3720
3720
|
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3721
3721
|
});
|
|
3722
3722
|
const oi = (e) => {
|
|
3723
|
-
if (e &&
|
|
3724
|
-
const { loadingDelay: t } =
|
|
3723
|
+
if (e && zn(e) && Te(e)) {
|
|
3724
|
+
const { loadingDelay: t } = Z();
|
|
3725
3725
|
let r;
|
|
3726
|
-
return typeof window < "u" &&
|
|
3726
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3727
3727
|
() => Re.set(!0),
|
|
3728
3728
|
t
|
|
3729
|
-
) : Re.set(!0),
|
|
3729
|
+
) : Re.set(!0), Yt(e).then(() => {
|
|
3730
3730
|
we.set(e);
|
|
3731
3731
|
}).finally(() => {
|
|
3732
3732
|
clearTimeout(r), Re.set(!1);
|
|
3733
3733
|
});
|
|
3734
3734
|
}
|
|
3735
3735
|
return we.set(e);
|
|
3736
|
-
},
|
|
3736
|
+
}, $ = si(ai({}, we), {
|
|
3737
3737
|
set: oi
|
|
3738
|
-
}),
|
|
3738
|
+
}), Pe = (e) => {
|
|
3739
3739
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3740
3740
|
return (n) => {
|
|
3741
3741
|
const i = JSON.stringify(n);
|
|
3742
3742
|
return i in t ? t[i] : t[i] = e(n);
|
|
3743
3743
|
};
|
|
3744
3744
|
};
|
|
3745
|
-
var
|
|
3745
|
+
var ui = Object.defineProperty, He = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
3746
3746
|
for (var r in t || (t = {}))
|
|
3747
|
-
|
|
3747
|
+
Qt.call(t, r) && dt(e, r, t[r]);
|
|
3748
3748
|
if (He)
|
|
3749
3749
|
for (var r of He(t))
|
|
3750
|
-
|
|
3750
|
+
Kt.call(t, r) && dt(e, r, t[r]);
|
|
3751
3751
|
return e;
|
|
3752
|
-
},
|
|
3752
|
+
}, Q = (e, t) => {
|
|
3753
3753
|
var r = {};
|
|
3754
3754
|
for (var n in e)
|
|
3755
|
-
|
|
3755
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3756
3756
|
if (e != null && He)
|
|
3757
3757
|
for (var n of He(e))
|
|
3758
|
-
t.indexOf(n) < 0 &&
|
|
3758
|
+
t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
|
|
3759
3759
|
return r;
|
|
3760
3760
|
};
|
|
3761
|
-
const
|
|
3762
|
-
const { formats: r } =
|
|
3761
|
+
const ae = (e, t) => {
|
|
3762
|
+
const { formats: r } = Z();
|
|
3763
3763
|
if (e in r && t in r[e])
|
|
3764
3764
|
return r[e][t];
|
|
3765
3765
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3766
|
-
},
|
|
3766
|
+
}, li = Pe(
|
|
3767
3767
|
(e) => {
|
|
3768
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3768
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3769
3769
|
if (r == null)
|
|
3770
3770
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3771
|
-
return n && (i =
|
|
3771
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3772
3772
|
}
|
|
3773
|
-
),
|
|
3773
|
+
), hi = Pe(
|
|
3774
3774
|
(e) => {
|
|
3775
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3775
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3776
3776
|
if (r == null)
|
|
3777
3777
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3778
|
-
return n ? i =
|
|
3778
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3779
3779
|
}
|
|
3780
|
-
),
|
|
3780
|
+
), ci = Pe(
|
|
3781
3781
|
(e) => {
|
|
3782
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3782
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3783
3783
|
if (r == null)
|
|
3784
3784
|
throw new Error(
|
|
3785
3785
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3786
3786
|
);
|
|
3787
|
-
return n ? i =
|
|
3787
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3788
3788
|
}
|
|
3789
|
-
),
|
|
3790
|
-
var t = e, {
|
|
3791
|
-
locale: r = $()
|
|
3792
|
-
} = t, n = K(t, [
|
|
3793
|
-
"locale"
|
|
3794
|
-
]);
|
|
3795
|
-
return ui(Ye({ locale: r }, n));
|
|
3796
|
-
}, fi = (e = {}) => {
|
|
3789
|
+
), fi = (e = {}) => {
|
|
3797
3790
|
var t = e, {
|
|
3798
|
-
locale: r =
|
|
3799
|
-
} = t, n =
|
|
3791
|
+
locale: r = k()
|
|
3792
|
+
} = t, n = Q(t, [
|
|
3800
3793
|
"locale"
|
|
3801
3794
|
]);
|
|
3802
3795
|
return li(Ye({ locale: r }, n));
|
|
3803
3796
|
}, mi = (e = {}) => {
|
|
3804
3797
|
var t = e, {
|
|
3805
|
-
locale: r =
|
|
3806
|
-
} = t, n =
|
|
3798
|
+
locale: r = k()
|
|
3799
|
+
} = t, n = Q(t, [
|
|
3807
3800
|
"locale"
|
|
3808
3801
|
]);
|
|
3809
3802
|
return hi(Ye({ locale: r }, n));
|
|
3810
|
-
}, di =
|
|
3803
|
+
}, di = (e = {}) => {
|
|
3804
|
+
var t = e, {
|
|
3805
|
+
locale: r = k()
|
|
3806
|
+
} = t, n = Q(t, [
|
|
3807
|
+
"locale"
|
|
3808
|
+
]);
|
|
3809
|
+
return ci(Ye({ locale: r }, n));
|
|
3810
|
+
}, pi = Pe(
|
|
3811
3811
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3812
|
-
(e, t =
|
|
3813
|
-
ignoreTag:
|
|
3812
|
+
(e, t = k()) => new Wt(e, t, Z().formats, {
|
|
3813
|
+
ignoreTag: Z().ignoreTag
|
|
3814
3814
|
})
|
|
3815
|
-
),
|
|
3815
|
+
), gi = (e, t = {}) => {
|
|
3816
3816
|
var r, n, i, a;
|
|
3817
|
-
let
|
|
3818
|
-
typeof e == "object" && (
|
|
3817
|
+
let s = t;
|
|
3818
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3819
3819
|
const {
|
|
3820
|
-
values:
|
|
3821
|
-
locale: l =
|
|
3820
|
+
values: o,
|
|
3821
|
+
locale: l = k(),
|
|
3822
3822
|
default: u
|
|
3823
|
-
} =
|
|
3823
|
+
} = s;
|
|
3824
3824
|
if (l == null)
|
|
3825
3825
|
throw new Error(
|
|
3826
3826
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3827
3827
|
);
|
|
3828
|
-
let h =
|
|
3828
|
+
let h = Xt(e, l);
|
|
3829
3829
|
if (!h)
|
|
3830
|
-
h = (a = (i = (n = (r =
|
|
3830
|
+
h = (a = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3831
3831
|
else if (typeof h != "string")
|
|
3832
3832
|
return console.warn(
|
|
3833
3833
|
`[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.`
|
|
3834
3834
|
), h;
|
|
3835
|
-
if (!
|
|
3835
|
+
if (!o)
|
|
3836
3836
|
return h;
|
|
3837
3837
|
let c = h;
|
|
3838
3838
|
try {
|
|
3839
|
-
c =
|
|
3839
|
+
c = pi(h, l).format(o);
|
|
3840
3840
|
} catch (f) {
|
|
3841
3841
|
f instanceof Error && console.warn(
|
|
3842
3842
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3844,20 +3844,20 @@ const oe = (e, t) => {
|
|
|
3844
3844
|
);
|
|
3845
3845
|
}
|
|
3846
3846
|
return c;
|
|
3847
|
-
},
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
-
}
|
|
3855
|
-
function
|
|
3856
|
-
|
|
3847
|
+
}, bi = (e, t) => di(t).format(e), yi = (e, t) => mi(t).format(e), vi = (e, t) => fi(t).format(e), _i = (e, t = k()) => Xt(e, t), Ei = Y([$, oe], () => gi);
|
|
3848
|
+
Y([$], () => bi);
|
|
3849
|
+
Y([$], () => yi);
|
|
3850
|
+
Y([$], () => vi);
|
|
3851
|
+
Y([$, oe], () => _i);
|
|
3852
|
+
function pt(e, t) {
|
|
3853
|
+
Jt(e, t);
|
|
3854
|
+
}
|
|
3855
|
+
function xi(e) {
|
|
3856
|
+
Kn({
|
|
3857
3857
|
fallbackLocale: "en"
|
|
3858
|
-
}),
|
|
3858
|
+
}), $.set(e);
|
|
3859
3859
|
}
|
|
3860
|
-
const
|
|
3860
|
+
const gt = {
|
|
3861
3861
|
en: {
|
|
3862
3862
|
VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
|
|
3863
3863
|
CustomerDocumentIdMissing: "The document ID is missing",
|
|
@@ -4004,15 +4004,15 @@ const bt = {
|
|
|
4004
4004
|
DuplicatePaymentAccount: "Le compte que vous avez utilisé pour demander un retrait a été jugé suspect, et votre transaction a été annulée pour des raisons de sécurité. Veuillez contacter notre support en direct pour plus de détails."
|
|
4005
4005
|
}
|
|
4006
4006
|
};
|
|
4007
|
-
function
|
|
4008
|
-
|
|
4007
|
+
function Ti(e) {
|
|
4008
|
+
ar(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}');
|
|
4009
4009
|
}
|
|
4010
|
-
const
|
|
4011
|
-
function
|
|
4010
|
+
const wi = (e) => ({}), bt = (e) => ({}), Hi = (e) => ({}), yt = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({}), Si = (e) => ({}), _t = (e) => ({ class: "CashierErrorIcon" });
|
|
4011
|
+
function Et(e) {
|
|
4012
4012
|
let t, r;
|
|
4013
4013
|
return {
|
|
4014
4014
|
c() {
|
|
4015
|
-
t =
|
|
4015
|
+
t = P("ui-image"), Ke(t.src, r = `${/*assetsurl*/
|
|
4016
4016
|
e[0]}/error-general-icon.png`) || pe(t, "src", r), pe(t, "width", "300px"), pe(t, "alt", "error");
|
|
4017
4017
|
},
|
|
4018
4018
|
m(n, i) {
|
|
@@ -4020,7 +4020,7 @@ function xt(e) {
|
|
|
4020
4020
|
},
|
|
4021
4021
|
p(n, i) {
|
|
4022
4022
|
i & /*assetsurl*/
|
|
4023
|
-
1 && !
|
|
4023
|
+
1 && !Ke(t.src, r = `${/*assetsurl*/
|
|
4024
4024
|
n[0]}/error-general-icon.png`) && pe(t, "src", r);
|
|
4025
4025
|
},
|
|
4026
4026
|
d(n) {
|
|
@@ -4028,10 +4028,10 @@ function xt(e) {
|
|
|
4028
4028
|
}
|
|
4029
4029
|
};
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4031
|
+
function Bi(e) {
|
|
4032
4032
|
let t, r = (
|
|
4033
4033
|
/*assetsurl*/
|
|
4034
|
-
e[0] &&
|
|
4034
|
+
e[0] && Et(e)
|
|
4035
4035
|
);
|
|
4036
4036
|
return {
|
|
4037
4037
|
c() {
|
|
@@ -4042,19 +4042,19 @@ function Si(e) {
|
|
|
4042
4042
|
},
|
|
4043
4043
|
p(n, i) {
|
|
4044
4044
|
/*assetsurl*/
|
|
4045
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
4045
|
+
n[0] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4046
4046
|
},
|
|
4047
4047
|
d(n) {
|
|
4048
4048
|
n && A(t), r && r.d(n);
|
|
4049
4049
|
}
|
|
4050
4050
|
};
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function xt(e) {
|
|
4053
4053
|
let t;
|
|
4054
|
-
function r(a,
|
|
4054
|
+
function r(a, s) {
|
|
4055
4055
|
return (
|
|
4056
4056
|
/*depositWageringAmount*/
|
|
4057
|
-
a[3] < 0 ? Li :
|
|
4057
|
+
a[3] < 0 ? Li : Pi
|
|
4058
4058
|
);
|
|
4059
4059
|
}
|
|
4060
4060
|
let n = r(e), i = n(e);
|
|
@@ -4062,40 +4062,40 @@ function Tt(e) {
|
|
|
4062
4062
|
c() {
|
|
4063
4063
|
i.c(), t = Je();
|
|
4064
4064
|
},
|
|
4065
|
-
m(a,
|
|
4066
|
-
i.m(a,
|
|
4065
|
+
m(a, s) {
|
|
4066
|
+
i.m(a, s), S(a, t, s);
|
|
4067
4067
|
},
|
|
4068
|
-
p(a,
|
|
4069
|
-
n === (n = r(a)) && i ? i.p(a,
|
|
4068
|
+
p(a, s) {
|
|
4069
|
+
n === (n = r(a)) && i ? i.p(a, s) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
4070
4070
|
},
|
|
4071
4071
|
d(a) {
|
|
4072
4072
|
a && A(t), i.d(a);
|
|
4073
4073
|
}
|
|
4074
4074
|
};
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function Pi(e) {
|
|
4077
4077
|
let t, r = (
|
|
4078
4078
|
/*$_*/
|
|
4079
4079
|
e[5]("DepositWageringLimitText") + ""
|
|
4080
4080
|
), n, i, a = (
|
|
4081
4081
|
/*depositWageringAmount*/
|
|
4082
|
-
e[3] > 0 &&
|
|
4082
|
+
e[3] > 0 && Tt(e)
|
|
4083
4083
|
);
|
|
4084
4084
|
return {
|
|
4085
4085
|
c() {
|
|
4086
|
-
t =
|
|
4086
|
+
t = P("span"), n = D(r), i = j(), a && a.c(), M(t, "class", "CashierErrorText");
|
|
4087
4087
|
},
|
|
4088
|
-
m(
|
|
4089
|
-
S(
|
|
4088
|
+
m(s, o) {
|
|
4089
|
+
S(s, t, o), B(t, n), B(t, i), a && a.m(t, null);
|
|
4090
4090
|
},
|
|
4091
|
-
p(
|
|
4092
|
-
|
|
4091
|
+
p(s, o) {
|
|
4092
|
+
o & /*$_*/
|
|
4093
4093
|
32 && r !== (r = /*$_*/
|
|
4094
|
-
|
|
4095
|
-
|
|
4094
|
+
s[5]("DepositWageringLimitText") + "") && W(n, r), /*depositWageringAmount*/
|
|
4095
|
+
s[3] > 0 ? a ? a.p(s, o) : (a = Tt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4096
4096
|
},
|
|
4097
|
-
d(
|
|
4098
|
-
|
|
4097
|
+
d(s) {
|
|
4098
|
+
s && A(t), a && a.d();
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
4101
|
}
|
|
@@ -4106,29 +4106,29 @@ function Li(e) {
|
|
|
4106
4106
|
), i;
|
|
4107
4107
|
return {
|
|
4108
4108
|
c() {
|
|
4109
|
-
t =
|
|
4109
|
+
t = P("div"), r = P("span"), i = D(n), M(r, "class", "CashierErrorText LoadingText"), M(t, "class", "WageringFetch");
|
|
4110
4110
|
},
|
|
4111
|
-
m(a,
|
|
4112
|
-
S(a, t,
|
|
4111
|
+
m(a, s) {
|
|
4112
|
+
S(a, t, s), B(t, r), B(r, i);
|
|
4113
4113
|
},
|
|
4114
|
-
p(a,
|
|
4115
|
-
|
|
4114
|
+
p(a, s) {
|
|
4115
|
+
s & /*$_*/
|
|
4116
4116
|
32 && n !== (n = /*$_*/
|
|
4117
|
-
a[5]("DepositWageringFetching") + "") &&
|
|
4117
|
+
a[5]("DepositWageringFetching") + "") && W(i, n);
|
|
4118
4118
|
},
|
|
4119
4119
|
d(a) {
|
|
4120
4120
|
a && A(t);
|
|
4121
4121
|
}
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Tt(e) {
|
|
4125
4125
|
let t, r, n;
|
|
4126
4126
|
return {
|
|
4127
4127
|
c() {
|
|
4128
|
-
t =
|
|
4128
|
+
t = D(
|
|
4129
4129
|
/*depositWageringAmount*/
|
|
4130
4130
|
e[3]
|
|
4131
|
-
), r =
|
|
4131
|
+
), r = j(), n = D(
|
|
4132
4132
|
/*depositWageringCurrency*/
|
|
4133
4133
|
e[4]
|
|
4134
4134
|
);
|
|
@@ -4138,12 +4138,12 @@ function wt(e) {
|
|
|
4138
4138
|
},
|
|
4139
4139
|
p(i, a) {
|
|
4140
4140
|
a & /*depositWageringAmount*/
|
|
4141
|
-
8 &&
|
|
4141
|
+
8 && W(
|
|
4142
4142
|
t,
|
|
4143
4143
|
/*depositWageringAmount*/
|
|
4144
4144
|
i[3]
|
|
4145
4145
|
), a & /*depositWageringCurrency*/
|
|
4146
|
-
16 &&
|
|
4146
|
+
16 && W(
|
|
4147
4147
|
n,
|
|
4148
4148
|
/*depositWageringCurrency*/
|
|
4149
4149
|
i[4]
|
|
@@ -4154,73 +4154,73 @@ function wt(e) {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
};
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function Ci(e) {
|
|
4158
4158
|
let t, r = (
|
|
4159
4159
|
/*$_*/
|
|
4160
4160
|
e[5](`${/*errorcode*/
|
|
4161
4161
|
e[1] || "errorGeneralText"}`) + ""
|
|
4162
|
-
), n, i, a,
|
|
4162
|
+
), n, i, a, s = (
|
|
4163
4163
|
/*errorcode*/
|
|
4164
|
-
e[1] == "DepositWageringLimit" &&
|
|
4164
|
+
e[1] == "DepositWageringLimit" && xt(e)
|
|
4165
4165
|
);
|
|
4166
4166
|
return {
|
|
4167
4167
|
c() {
|
|
4168
|
-
t =
|
|
4168
|
+
t = P("span"), n = D(r), i = j(), s && s.c(), a = Je(), M(t, "class", "CashierErrorText");
|
|
4169
4169
|
},
|
|
4170
|
-
m(
|
|
4171
|
-
S(
|
|
4170
|
+
m(o, l) {
|
|
4171
|
+
S(o, t, l), B(t, n), S(o, i, l), s && s.m(o, l), S(o, a, l);
|
|
4172
4172
|
},
|
|
4173
|
-
p(
|
|
4173
|
+
p(o, l) {
|
|
4174
4174
|
l & /*$_, errorcode*/
|
|
4175
4175
|
34 && r !== (r = /*$_*/
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4176
|
+
o[5](`${/*errorcode*/
|
|
4177
|
+
o[1] || "errorGeneralText"}`) + "") && W(n, r), /*errorcode*/
|
|
4178
|
+
o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = xt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4179
4179
|
},
|
|
4180
|
-
d(
|
|
4181
|
-
|
|
4180
|
+
d(o) {
|
|
4181
|
+
o && (A(t), A(i), A(a)), s && s.d(o);
|
|
4182
4182
|
}
|
|
4183
4183
|
};
|
|
4184
4184
|
}
|
|
4185
|
-
function
|
|
4185
|
+
function Oi(e) {
|
|
4186
4186
|
let t, r, n = (
|
|
4187
4187
|
/*$_*/
|
|
4188
4188
|
e[5]("errorGeneralButton") + ""
|
|
4189
|
-
), i, a,
|
|
4189
|
+
), i, a, s;
|
|
4190
4190
|
return {
|
|
4191
4191
|
c() {
|
|
4192
|
-
t =
|
|
4192
|
+
t = P("button"), r = P("span"), i = D(n), M(t, "class", "CashierErrorButton");
|
|
4193
4193
|
},
|
|
4194
|
-
m(
|
|
4195
|
-
S(
|
|
4194
|
+
m(o, l) {
|
|
4195
|
+
S(o, t, l), B(t, r), B(r, i), a || (s = ur(
|
|
4196
4196
|
t,
|
|
4197
4197
|
"click",
|
|
4198
4198
|
/*close*/
|
|
4199
4199
|
e[6]
|
|
4200
4200
|
), a = !0);
|
|
4201
4201
|
},
|
|
4202
|
-
p(
|
|
4202
|
+
p(o, l) {
|
|
4203
4203
|
l & /*$_*/
|
|
4204
4204
|
32 && n !== (n = /*$_*/
|
|
4205
|
-
|
|
4205
|
+
o[5]("errorGeneralButton") + "") && W(i, n);
|
|
4206
4206
|
},
|
|
4207
|
-
d(
|
|
4208
|
-
|
|
4207
|
+
d(o) {
|
|
4208
|
+
o && A(t), a = !1, s();
|
|
4209
4209
|
}
|
|
4210
4210
|
};
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4213
|
-
let t, r, n, i, a,
|
|
4214
|
-
const
|
|
4212
|
+
function Ii(e) {
|
|
4213
|
+
let t, r, n, i, a, s;
|
|
4214
|
+
const o = (
|
|
4215
4215
|
/*#slots*/
|
|
4216
4216
|
e[13].icon
|
|
4217
4217
|
), l = ce(
|
|
4218
|
-
|
|
4218
|
+
o,
|
|
4219
4219
|
e,
|
|
4220
4220
|
/*$$scope*/
|
|
4221
4221
|
e[12],
|
|
4222
|
-
|
|
4223
|
-
), u = l ||
|
|
4222
|
+
_t
|
|
4223
|
+
), u = l || Bi(e), h = (
|
|
4224
4224
|
/*#slots*/
|
|
4225
4225
|
e[13].title
|
|
4226
4226
|
), c = ce(
|
|
@@ -4228,17 +4228,17 @@ function Oi(e) {
|
|
|
4228
4228
|
e,
|
|
4229
4229
|
/*$$scope*/
|
|
4230
4230
|
e[12],
|
|
4231
|
-
|
|
4231
|
+
vt
|
|
4232
4232
|
), f = (
|
|
4233
4233
|
/*#slots*/
|
|
4234
4234
|
e[13].text
|
|
4235
|
-
),
|
|
4235
|
+
), p = ce(
|
|
4236
4236
|
f,
|
|
4237
4237
|
e,
|
|
4238
4238
|
/*$$scope*/
|
|
4239
4239
|
e[12],
|
|
4240
|
-
|
|
4241
|
-
), g =
|
|
4240
|
+
yt
|
|
4241
|
+
), g = p || Ci(e), x = (
|
|
4242
4242
|
/*#slots*/
|
|
4243
4243
|
e[13].button
|
|
4244
4244
|
), w = ce(
|
|
@@ -4246,159 +4246,163 @@ function Oi(e) {
|
|
|
4246
4246
|
e,
|
|
4247
4247
|
/*$$scope*/
|
|
4248
4248
|
e[12],
|
|
4249
|
-
|
|
4250
|
-
), T = w ||
|
|
4249
|
+
bt
|
|
4250
|
+
), T = w || Oi(e);
|
|
4251
4251
|
return {
|
|
4252
4252
|
c() {
|
|
4253
|
-
t =
|
|
4253
|
+
t = P("div"), r = P("div"), u && u.c(), n = j(), c && c.c(), i = j(), g && g.c(), a = j(), T && T.c(), M(r, "class", "CashierErrorContent"), M(t, "class", "CashierError");
|
|
4254
4254
|
},
|
|
4255
4255
|
m(m, v) {
|
|
4256
|
-
S(m, t, v), B(t, r), u && u.m(r, null), B(r, n), c && c.m(r, null), B(r, i), g && g.m(r, null), B(r, a), T && T.m(r, null), e[14](t),
|
|
4256
|
+
S(m, t, v), B(t, r), u && u.m(r, null), B(r, n), c && c.m(r, null), B(r, i), g && g.m(r, null), B(r, a), T && T.m(r, null), e[14](t), s = !0;
|
|
4257
4257
|
},
|
|
4258
4258
|
p(m, [v]) {
|
|
4259
|
-
l ? l.p && (!
|
|
4259
|
+
l ? l.p && (!s || v & /*$$scope*/
|
|
4260
4260
|
4096) && me(
|
|
4261
4261
|
l,
|
|
4262
|
-
|
|
4262
|
+
o,
|
|
4263
4263
|
m,
|
|
4264
4264
|
/*$$scope*/
|
|
4265
4265
|
m[12],
|
|
4266
|
-
|
|
4267
|
-
|
|
4266
|
+
s ? fe(
|
|
4267
|
+
o,
|
|
4268
4268
|
/*$$scope*/
|
|
4269
4269
|
m[12],
|
|
4270
4270
|
v,
|
|
4271
|
-
|
|
4271
|
+
Si
|
|
4272
4272
|
) : de(
|
|
4273
4273
|
/*$$scope*/
|
|
4274
4274
|
m[12]
|
|
4275
4275
|
),
|
|
4276
|
-
|
|
4277
|
-
) : u && u.p && (!
|
|
4278
|
-
1) && u.p(m,
|
|
4276
|
+
_t
|
|
4277
|
+
) : u && u.p && (!s || v & /*assetsurl*/
|
|
4278
|
+
1) && u.p(m, s ? v : -1), c && c.p && (!s || v & /*$$scope*/
|
|
4279
4279
|
4096) && me(
|
|
4280
4280
|
c,
|
|
4281
4281
|
h,
|
|
4282
4282
|
m,
|
|
4283
4283
|
/*$$scope*/
|
|
4284
4284
|
m[12],
|
|
4285
|
-
|
|
4285
|
+
s ? fe(
|
|
4286
4286
|
h,
|
|
4287
4287
|
/*$$scope*/
|
|
4288
4288
|
m[12],
|
|
4289
4289
|
v,
|
|
4290
|
-
|
|
4290
|
+
Ai
|
|
4291
4291
|
) : de(
|
|
4292
4292
|
/*$$scope*/
|
|
4293
4293
|
m[12]
|
|
4294
4294
|
),
|
|
4295
|
-
|
|
4296
|
-
),
|
|
4295
|
+
vt
|
|
4296
|
+
), p ? p.p && (!s || v & /*$$scope*/
|
|
4297
4297
|
4096) && me(
|
|
4298
|
-
|
|
4298
|
+
p,
|
|
4299
4299
|
f,
|
|
4300
4300
|
m,
|
|
4301
4301
|
/*$$scope*/
|
|
4302
4302
|
m[12],
|
|
4303
|
-
|
|
4303
|
+
s ? fe(
|
|
4304
4304
|
f,
|
|
4305
4305
|
/*$$scope*/
|
|
4306
4306
|
m[12],
|
|
4307
4307
|
v,
|
|
4308
|
-
|
|
4308
|
+
Hi
|
|
4309
4309
|
) : de(
|
|
4310
4310
|
/*$$scope*/
|
|
4311
4311
|
m[12]
|
|
4312
4312
|
),
|
|
4313
|
-
|
|
4314
|
-
) : g && g.p && (!
|
|
4315
|
-
58) && g.p(m,
|
|
4313
|
+
yt
|
|
4314
|
+
) : g && g.p && (!s || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode*/
|
|
4315
|
+
58) && g.p(m, s ? v : -1), w ? w.p && (!s || v & /*$$scope*/
|
|
4316
4316
|
4096) && me(
|
|
4317
4317
|
w,
|
|
4318
4318
|
x,
|
|
4319
4319
|
m,
|
|
4320
4320
|
/*$$scope*/
|
|
4321
4321
|
m[12],
|
|
4322
|
-
|
|
4322
|
+
s ? fe(
|
|
4323
4323
|
x,
|
|
4324
4324
|
/*$$scope*/
|
|
4325
4325
|
m[12],
|
|
4326
4326
|
v,
|
|
4327
|
-
|
|
4327
|
+
wi
|
|
4328
4328
|
) : de(
|
|
4329
4329
|
/*$$scope*/
|
|
4330
4330
|
m[12]
|
|
4331
4331
|
),
|
|
4332
|
-
|
|
4333
|
-
) : T && T.p && (!
|
|
4334
|
-
32) && T.p(m,
|
|
4332
|
+
bt
|
|
4333
|
+
) : T && T.p && (!s || v & /*$_*/
|
|
4334
|
+
32) && T.p(m, s ? v : -1);
|
|
4335
4335
|
},
|
|
4336
4336
|
i(m) {
|
|
4337
|
-
|
|
4337
|
+
s || (ee(u, m), ee(c, m), ee(g, m), ee(T, m), s = !0);
|
|
4338
4338
|
},
|
|
4339
4339
|
o(m) {
|
|
4340
|
-
ge(u, m), ge(c, m), ge(g, m), ge(T, m),
|
|
4340
|
+
ge(u, m), ge(c, m), ge(g, m), ge(T, m), s = !1;
|
|
4341
4341
|
},
|
|
4342
4342
|
d(m) {
|
|
4343
4343
|
m && A(t), u && u.d(m), c && c.d(m), g && g.d(m), T && T.d(m), e[14](null);
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4347
|
+
function Mi(e, t, r) {
|
|
4348
4348
|
let n;
|
|
4349
|
-
|
|
4350
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl:
|
|
4349
|
+
ir(e, Ei, (d) => r(5, n = d));
|
|
4350
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, g, x = -1, w;
|
|
4351
4351
|
const T = () => {
|
|
4352
|
-
|
|
4353
|
-
}, m = () => {
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4352
|
+
xi(o);
|
|
4353
|
+
}, m = async () => {
|
|
4354
|
+
if (c)
|
|
4355
|
+
try {
|
|
4356
|
+
const d = await fetch(c);
|
|
4357
|
+
if (!d.ok)
|
|
4358
|
+
throw new Error(`HTTP error! status: ${d.status}`);
|
|
4359
|
+
const le = await d.json();
|
|
4360
|
+
Object.entries(le).forEach(([er, tr]) => {
|
|
4361
|
+
pt(er, tr);
|
|
4362
|
+
});
|
|
4363
|
+
} catch (d) {
|
|
4364
|
+
console.error(d);
|
|
4365
|
+
}
|
|
4362
4366
|
};
|
|
4363
|
-
Object.keys(
|
|
4364
|
-
|
|
4367
|
+
Object.keys(gt).forEach((d) => {
|
|
4368
|
+
pt(d, gt[d]);
|
|
4365
4369
|
});
|
|
4366
4370
|
const v = () => {
|
|
4367
4371
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4368
|
-
},
|
|
4369
|
-
if (
|
|
4370
|
-
switch (
|
|
4372
|
+
}, N = (d) => {
|
|
4373
|
+
if (d.data)
|
|
4374
|
+
switch (d.data.type) {
|
|
4371
4375
|
case "DepositWageringAmount":
|
|
4372
|
-
r(3, x =
|
|
4376
|
+
r(3, x = d.data.amount), r(4, w = d.data.currency);
|
|
4373
4377
|
break;
|
|
4374
4378
|
}
|
|
4375
4379
|
};
|
|
4376
|
-
|
|
4377
|
-
window.removeEventListener("message",
|
|
4380
|
+
fr(() => (window.addEventListener("message", N, !1), () => {
|
|
4381
|
+
window.removeEventListener("message", N);
|
|
4378
4382
|
}));
|
|
4379
|
-
function C(
|
|
4380
|
-
De[
|
|
4381
|
-
|
|
4383
|
+
function C(d) {
|
|
4384
|
+
De[d ? "unshift" : "push"](() => {
|
|
4385
|
+
p = d, r(2, p);
|
|
4382
4386
|
});
|
|
4383
4387
|
}
|
|
4384
|
-
return e.$$set = (
|
|
4385
|
-
"assetsurl" in
|
|
4388
|
+
return e.$$set = (d) => {
|
|
4389
|
+
"assetsurl" in d && r(0, s = d.assetsurl), "lang" in d && r(7, o = d.lang), "errorcode" in d && r(1, l = d.errorcode), "clientstyling" in d && r(8, u = d.clientstyling), "clientstylingurl" in d && r(9, h = d.clientstylingurl), "translationurl" in d && r(10, c = d.translationurl), "mbsource" in d && r(11, f = d.mbsource), "$$scope" in d && r(12, a = d.$$scope);
|
|
4386
4390
|
}, e.$$.update = () => {
|
|
4387
4391
|
e.$$.dirty & /*lang*/
|
|
4388
|
-
128 &&
|
|
4389
|
-
260 && u &&
|
|
4390
|
-
516 && h &&
|
|
4391
|
-
2052 && f &&
|
|
4392
|
+
128 && o && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4393
|
+
260 && u && p && Hr(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4394
|
+
516 && h && p && Ar(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4395
|
+
2052 && f && p && Sr(p, `${f}.Style`, g), e.$$.dirty & /*translationurl*/
|
|
4392
4396
|
1024 && c && m();
|
|
4393
4397
|
}, [
|
|
4394
|
-
|
|
4398
|
+
s,
|
|
4395
4399
|
l,
|
|
4396
|
-
|
|
4400
|
+
p,
|
|
4397
4401
|
x,
|
|
4398
4402
|
w,
|
|
4399
4403
|
n,
|
|
4400
4404
|
v,
|
|
4401
|
-
|
|
4405
|
+
o,
|
|
4402
4406
|
u,
|
|
4403
4407
|
h,
|
|
4404
4408
|
c,
|
|
@@ -4408,14 +4412,14 @@ function Ii(e, t, r) {
|
|
|
4408
4412
|
C
|
|
4409
4413
|
];
|
|
4410
4414
|
}
|
|
4411
|
-
class
|
|
4415
|
+
class Ni extends Tr {
|
|
4412
4416
|
constructor(t) {
|
|
4413
|
-
super(),
|
|
4417
|
+
super(), Er(
|
|
4414
4418
|
this,
|
|
4415
4419
|
t,
|
|
4420
|
+
Mi,
|
|
4416
4421
|
Ii,
|
|
4417
|
-
|
|
4418
|
-
At,
|
|
4422
|
+
Ht,
|
|
4419
4423
|
{
|
|
4420
4424
|
assetsurl: 0,
|
|
4421
4425
|
lang: 7,
|
|
@@ -4425,53 +4429,53 @@ class Mi extends xr {
|
|
|
4425
4429
|
translationurl: 10,
|
|
4426
4430
|
mbsource: 11
|
|
4427
4431
|
},
|
|
4428
|
-
|
|
4432
|
+
Ti
|
|
4429
4433
|
);
|
|
4430
4434
|
}
|
|
4431
4435
|
get assetsurl() {
|
|
4432
4436
|
return this.$$.ctx[0];
|
|
4433
4437
|
}
|
|
4434
4438
|
set assetsurl(t) {
|
|
4435
|
-
this.$$set({ assetsurl: t }),
|
|
4439
|
+
this.$$set({ assetsurl: t }), O();
|
|
4436
4440
|
}
|
|
4437
4441
|
get lang() {
|
|
4438
4442
|
return this.$$.ctx[7];
|
|
4439
4443
|
}
|
|
4440
4444
|
set lang(t) {
|
|
4441
|
-
this.$$set({ lang: t }),
|
|
4445
|
+
this.$$set({ lang: t }), O();
|
|
4442
4446
|
}
|
|
4443
4447
|
get errorcode() {
|
|
4444
4448
|
return this.$$.ctx[1];
|
|
4445
4449
|
}
|
|
4446
4450
|
set errorcode(t) {
|
|
4447
|
-
this.$$set({ errorcode: t }),
|
|
4451
|
+
this.$$set({ errorcode: t }), O();
|
|
4448
4452
|
}
|
|
4449
4453
|
get clientstyling() {
|
|
4450
4454
|
return this.$$.ctx[8];
|
|
4451
4455
|
}
|
|
4452
4456
|
set clientstyling(t) {
|
|
4453
|
-
this.$$set({ clientstyling: t }),
|
|
4457
|
+
this.$$set({ clientstyling: t }), O();
|
|
4454
4458
|
}
|
|
4455
4459
|
get clientstylingurl() {
|
|
4456
4460
|
return this.$$.ctx[9];
|
|
4457
4461
|
}
|
|
4458
4462
|
set clientstylingurl(t) {
|
|
4459
|
-
this.$$set({ clientstylingurl: t }),
|
|
4463
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4460
4464
|
}
|
|
4461
4465
|
get translationurl() {
|
|
4462
4466
|
return this.$$.ctx[10];
|
|
4463
4467
|
}
|
|
4464
4468
|
set translationurl(t) {
|
|
4465
|
-
this.$$set({ translationurl: t }),
|
|
4469
|
+
this.$$set({ translationurl: t }), O();
|
|
4466
4470
|
}
|
|
4467
4471
|
get mbsource() {
|
|
4468
4472
|
return this.$$.ctx[11];
|
|
4469
4473
|
}
|
|
4470
4474
|
set mbsource(t) {
|
|
4471
|
-
this.$$set({ mbsource: t }),
|
|
4475
|
+
this.$$set({ mbsource: t }), O();
|
|
4472
4476
|
}
|
|
4473
4477
|
}
|
|
4474
|
-
|
|
4478
|
+
xr(Ni, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4475
4479
|
export {
|
|
4476
|
-
|
|
4480
|
+
Ni as C
|
|
4477
4481
|
};
|