@everymatrix/cashier-error 1.99.22 → 1.99.23
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-BkxZqBIU.cjs +5 -0
- package/components/{CashierError-DsUPcYn4.js → CashierError-BmVBqEjI.js} +835 -696
- package/components/{CashierError-ZW4GpCjT.js → CashierError-C_PMTC9D.js} +863 -724
- 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-CSj8y7sC.cjs +0 -5
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
- package/stencil/ui-image-BX-FBhad.cjs +0 -1
- package/stencil/ui-image-CP8Lp7fB.js +0 -25
- package/stencil/ui-image-Ch-GHki1.js +0 -7
- package/stencil/ui-image-b7b48fe5-BKRtoUuG.js +0 -39
- package/stencil/ui-image-b7b48fe5-HA45CrsG.js +0 -39
- package/stencil/ui-image-b7b48fe5-MC0x5ZQd.cjs +0 -1
- package/stencil/ui-image_2-CmVho0dS.js +0 -157
- package/stencil/ui-image_2-CyqE6j_W.cjs +0 -55
- package/stencil/ui-image_2-Daq38JGa.js +0 -157
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Tn = Object.defineProperty, wn = Object.defineProperties;
|
|
2
|
+
var In = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var it = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
An.call(t, n) && Me(e, n, t[n]);
|
|
8
8
|
if (it)
|
|
9
9
|
for (var n of it(t))
|
|
10
|
-
|
|
10
|
+
Sn.call(t, n) && Me(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, st = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, st = (e, t) => wn(e, In(t));
|
|
13
|
+
var L = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var ot = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var a = (
|
|
15
|
+
var a = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
o(n.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
o(n.next(u));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, s = (
|
|
21
|
+
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
o(n.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
o(n.throw(u));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, o = (
|
|
27
|
+
}, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(a, s);
|
|
28
28
|
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
31
30
|
function P() {
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function Cn(e, t) {
|
|
34
33
|
for (const n in t)
|
|
35
34
|
e[n] = t[n];
|
|
36
35
|
return (
|
|
@@ -38,26 +37,26 @@ function vn(e, t) {
|
|
|
38
37
|
e
|
|
39
38
|
);
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function Dt(e) {
|
|
42
41
|
return e();
|
|
43
42
|
}
|
|
44
43
|
function lt() {
|
|
45
44
|
return /* @__PURE__ */ Object.create(null);
|
|
46
45
|
}
|
|
47
46
|
function re(e) {
|
|
48
|
-
e.forEach(
|
|
47
|
+
e.forEach(Dt);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function Ye(e) {
|
|
51
50
|
return typeof e == "function";
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function Qe(e, t) {
|
|
54
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
54
|
}
|
|
56
55
|
let ge;
|
|
57
56
|
function ut(e, t) {
|
|
58
57
|
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
59
58
|
}
|
|
60
|
-
function
|
|
59
|
+
function Bn(e) {
|
|
61
60
|
return Object.keys(e).length === 0;
|
|
62
61
|
}
|
|
63
62
|
function Nt(e, ...t) {
|
|
@@ -69,7 +68,7 @@ function Nt(e, ...t) {
|
|
|
69
68
|
const n = e.subscribe(...t);
|
|
70
69
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function Hn(e, t, n) {
|
|
73
72
|
e.$$.on_destroy.push(Nt(t, n));
|
|
74
73
|
}
|
|
75
74
|
function pe(e, t, n, r) {
|
|
@@ -79,7 +78,7 @@ function pe(e, t, n, r) {
|
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
function Rt(e, t, n, r) {
|
|
82
|
-
return e[1] && r ?
|
|
81
|
+
return e[1] && r ? Cn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
82
|
}
|
|
84
83
|
function be(e, t, n, r) {
|
|
85
84
|
if (e[2] && r) {
|
|
@@ -114,14 +113,14 @@ function ve(e) {
|
|
|
114
113
|
function B(e, t) {
|
|
115
114
|
e.appendChild(t);
|
|
116
115
|
}
|
|
117
|
-
function
|
|
118
|
-
const r =
|
|
116
|
+
function zt(e, t, n) {
|
|
117
|
+
const r = Ln(e);
|
|
119
118
|
if (!r.getElementById(t)) {
|
|
120
|
-
const i =
|
|
121
|
-
i.id = t, i.textContent = n,
|
|
119
|
+
const i = H("style");
|
|
120
|
+
i.id = t, i.textContent = n, Mn(r, i);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
function
|
|
123
|
+
function Ln(e) {
|
|
125
124
|
if (!e)
|
|
126
125
|
return document;
|
|
127
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,49 +130,45 @@ function kn(e) {
|
|
|
131
130
|
t
|
|
132
131
|
) : e.ownerDocument;
|
|
133
132
|
}
|
|
134
|
-
function
|
|
133
|
+
function Mn(e, t) {
|
|
135
134
|
return B(
|
|
136
135
|
/** @type {Document} */
|
|
137
136
|
e.head || e,
|
|
138
137
|
t
|
|
139
138
|
), t.sheet;
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function I(e, t, n) {
|
|
142
141
|
e.insertBefore(t, n || null);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function w(e) {
|
|
145
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
145
|
}
|
|
147
|
-
function
|
|
146
|
+
function H(e) {
|
|
148
147
|
return document.createElement(e);
|
|
149
148
|
}
|
|
150
|
-
function
|
|
149
|
+
function z(e) {
|
|
151
150
|
return document.createTextNode(e);
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
152
|
+
function $() {
|
|
153
|
+
return z(" ");
|
|
155
154
|
}
|
|
156
155
|
function et() {
|
|
157
|
-
return
|
|
156
|
+
return z("");
|
|
158
157
|
}
|
|
159
|
-
function
|
|
158
|
+
function Ut(e, t, n, r) {
|
|
160
159
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
161
160
|
}
|
|
162
|
-
function
|
|
161
|
+
function T(e, t, n) {
|
|
163
162
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
164
163
|
}
|
|
165
|
-
function
|
|
166
|
-
const r = t.toLowerCase();
|
|
167
|
-
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : O(e, t, n);
|
|
168
|
-
}
|
|
169
|
-
function In(e) {
|
|
164
|
+
function Pn(e) {
|
|
170
165
|
return Array.from(e.childNodes);
|
|
171
166
|
}
|
|
172
167
|
function Y(e, t) {
|
|
173
168
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
169
|
t);
|
|
175
170
|
}
|
|
176
|
-
function
|
|
171
|
+
function On(e) {
|
|
177
172
|
const t = {};
|
|
178
173
|
return e.childNodes.forEach(
|
|
179
174
|
/** @param {Element} node */
|
|
@@ -186,106 +181,109 @@ let ce;
|
|
|
186
181
|
function ue(e) {
|
|
187
182
|
ce = e;
|
|
188
183
|
}
|
|
189
|
-
function
|
|
184
|
+
function Dn() {
|
|
190
185
|
if (!ce)
|
|
191
186
|
throw new Error("Function called outside component initialization");
|
|
192
187
|
return ce;
|
|
193
188
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
189
|
+
function Nn(e) {
|
|
190
|
+
Dn().$$.on_mount.push(e);
|
|
196
191
|
}
|
|
197
|
-
const
|
|
192
|
+
const Z = [], Fe = [];
|
|
198
193
|
let K = [];
|
|
199
|
-
const ct = [],
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
194
|
+
const ct = [], Rn = /* @__PURE__ */ Promise.resolve();
|
|
195
|
+
let Ge = !1;
|
|
196
|
+
function zn() {
|
|
197
|
+
Ge || (Ge = !0, Rn.then(C));
|
|
203
198
|
}
|
|
204
|
-
function
|
|
199
|
+
function $e(e) {
|
|
205
200
|
K.push(e);
|
|
206
201
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
202
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
203
|
+
let q = 0;
|
|
204
|
+
function C() {
|
|
205
|
+
if (q !== 0)
|
|
211
206
|
return;
|
|
212
207
|
const e = ce;
|
|
213
208
|
do {
|
|
214
209
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t = q
|
|
217
|
-
|
|
210
|
+
for (; q < Z.length; ) {
|
|
211
|
+
const t = Z[q];
|
|
212
|
+
q++, ue(t), Un(t.$$);
|
|
218
213
|
}
|
|
219
214
|
} catch (t) {
|
|
220
|
-
throw
|
|
215
|
+
throw Z.length = 0, q = 0, t;
|
|
221
216
|
}
|
|
222
|
-
for (ue(null),
|
|
223
|
-
|
|
217
|
+
for (ue(null), Z.length = 0, q = 0; Fe.length; )
|
|
218
|
+
Fe.pop()();
|
|
224
219
|
for (let t = 0; t < K.length; t += 1) {
|
|
225
220
|
const n = K[t];
|
|
226
|
-
|
|
221
|
+
Pe.has(n) || (Pe.add(n), n());
|
|
227
222
|
}
|
|
228
223
|
K.length = 0;
|
|
229
|
-
} while (
|
|
224
|
+
} while (Z.length);
|
|
230
225
|
for (; ct.length; )
|
|
231
226
|
ct.pop()();
|
|
232
|
-
|
|
227
|
+
Ge = !1, Pe.clear(), ue(e);
|
|
233
228
|
}
|
|
234
|
-
function
|
|
229
|
+
function Un(e) {
|
|
235
230
|
if (e.fragment !== null) {
|
|
236
231
|
e.update(), re(e.before_update);
|
|
237
232
|
const t = e.dirty;
|
|
238
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
233
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
239
234
|
}
|
|
240
235
|
}
|
|
241
|
-
function
|
|
236
|
+
function Fn(e) {
|
|
242
237
|
const t = [], n = [];
|
|
243
238
|
K.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), K = t;
|
|
244
239
|
}
|
|
245
|
-
const
|
|
246
|
-
let
|
|
247
|
-
function
|
|
248
|
-
|
|
240
|
+
const _e = /* @__PURE__ */ new Set();
|
|
241
|
+
let G;
|
|
242
|
+
function Ft() {
|
|
243
|
+
G = {
|
|
249
244
|
r: 0,
|
|
250
245
|
c: [],
|
|
251
|
-
p:
|
|
246
|
+
p: G
|
|
252
247
|
// parent group
|
|
253
248
|
};
|
|
254
249
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
250
|
+
function Gt() {
|
|
251
|
+
G.r || re(G.c), G = G.p;
|
|
257
252
|
}
|
|
258
|
-
function
|
|
259
|
-
e && e.i && (
|
|
253
|
+
function M(e, t) {
|
|
254
|
+
e && e.i && (_e.delete(e), e.i(t));
|
|
260
255
|
}
|
|
261
|
-
function
|
|
256
|
+
function N(e, t, n, r) {
|
|
262
257
|
if (e && e.o) {
|
|
263
|
-
if (
|
|
258
|
+
if (_e.has(e))
|
|
264
259
|
return;
|
|
265
|
-
|
|
266
|
-
|
|
260
|
+
_e.add(e), G.c.push(() => {
|
|
261
|
+
_e.delete(e), r && (n && e.d(1), r());
|
|
267
262
|
}), e.o(t);
|
|
268
263
|
} else
|
|
269
264
|
r && r();
|
|
270
265
|
}
|
|
271
|
-
function
|
|
266
|
+
function Gn(e) {
|
|
267
|
+
e && e.c();
|
|
268
|
+
}
|
|
269
|
+
function $t(e, t, n) {
|
|
272
270
|
const { fragment: r, after_update: i } = e.$$;
|
|
273
|
-
r && r.m(t, n),
|
|
274
|
-
const a = e.$$.on_mount.map(
|
|
271
|
+
r && r.m(t, n), $e(() => {
|
|
272
|
+
const a = e.$$.on_mount.map(Dt).filter(Ye);
|
|
275
273
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
|
|
276
|
-
}), i.forEach(
|
|
274
|
+
}), i.forEach($e);
|
|
277
275
|
}
|
|
278
|
-
function
|
|
276
|
+
function jt(e, t) {
|
|
279
277
|
const n = e.$$;
|
|
280
|
-
n.fragment !== null && (
|
|
278
|
+
n.fragment !== null && (Fn(n.after_update), re(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
281
279
|
}
|
|
282
|
-
function
|
|
283
|
-
e.$$.dirty[0] === -1 && (
|
|
280
|
+
function $n(e, t) {
|
|
281
|
+
e.$$.dirty[0] === -1 && (Z.push(e), zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
282
|
}
|
|
285
|
-
function
|
|
286
|
-
const
|
|
283
|
+
function Vt(e, t, n, r, i, a, s = null, o = [-1]) {
|
|
284
|
+
const u = ce;
|
|
287
285
|
ue(e);
|
|
288
|
-
const
|
|
286
|
+
const l = e.$$ = {
|
|
289
287
|
fragment: null,
|
|
290
288
|
ctx: [],
|
|
291
289
|
// state
|
|
@@ -299,50 +297,50 @@ function zn(e, t, n, r, i, a, s = null, o = [-1]) {
|
|
|
299
297
|
on_disconnect: [],
|
|
300
298
|
before_update: [],
|
|
301
299
|
after_update: [],
|
|
302
|
-
context: new Map(t.context || (
|
|
300
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
303
301
|
// everything else
|
|
304
302
|
callbacks: lt(),
|
|
305
303
|
dirty: o,
|
|
306
304
|
skip_bound: !1,
|
|
307
|
-
root: t.target ||
|
|
305
|
+
root: t.target || u.$$.root
|
|
308
306
|
};
|
|
309
|
-
s && s(
|
|
307
|
+
s && s(l.root);
|
|
310
308
|
let c = !1;
|
|
311
|
-
if (
|
|
309
|
+
if (l.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
|
|
312
310
|
const g = f.length ? f[0] : d;
|
|
313
|
-
return
|
|
314
|
-
}) : [],
|
|
311
|
+
return l.ctx && i(l.ctx[h], l.ctx[h] = g) && (!l.skip_bound && l.bound[h] && l.bound[h](g), c && $n(e, h)), d;
|
|
312
|
+
}) : [], l.update(), c = !0, re(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
315
313
|
if (t.hydrate) {
|
|
316
|
-
const h =
|
|
317
|
-
|
|
314
|
+
const h = Pn(t.target);
|
|
315
|
+
l.fragment && l.fragment.l(h), h.forEach(w);
|
|
318
316
|
} else
|
|
319
|
-
|
|
320
|
-
t.intro &&
|
|
317
|
+
l.fragment && l.fragment.c();
|
|
318
|
+
t.intro && M(e.$$.fragment), $t(e, t.target, t.anchor), C();
|
|
321
319
|
}
|
|
322
|
-
ue(
|
|
320
|
+
ue(u);
|
|
323
321
|
}
|
|
324
|
-
let
|
|
325
|
-
typeof HTMLElement == "function" && (
|
|
322
|
+
let Wt;
|
|
323
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
326
324
|
constructor(t, n, r) {
|
|
327
325
|
super();
|
|
328
326
|
/** The Svelte component constructor */
|
|
329
|
-
|
|
327
|
+
L(this, "$$ctor");
|
|
330
328
|
/** Slots */
|
|
331
|
-
|
|
329
|
+
L(this, "$$s");
|
|
332
330
|
/** The Svelte component instance */
|
|
333
|
-
|
|
331
|
+
L(this, "$$c");
|
|
334
332
|
/** Whether or not the custom element is connected */
|
|
335
|
-
|
|
333
|
+
L(this, "$$cn", !1);
|
|
336
334
|
/** Component props data */
|
|
337
|
-
|
|
335
|
+
L(this, "$$d", {});
|
|
338
336
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
339
|
-
|
|
337
|
+
L(this, "$$r", !1);
|
|
340
338
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
341
|
-
|
|
339
|
+
L(this, "$$p_d", {});
|
|
342
340
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
343
|
-
|
|
341
|
+
L(this, "$$l", {});
|
|
344
342
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
345
|
-
|
|
343
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
346
344
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
347
345
|
}
|
|
348
346
|
addEventListener(t, n, r) {
|
|
@@ -366,29 +364,29 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
366
364
|
let s;
|
|
367
365
|
return {
|
|
368
366
|
c: function() {
|
|
369
|
-
s =
|
|
367
|
+
s = H("slot"), a !== "default" && T(s, "name", a);
|
|
370
368
|
},
|
|
371
369
|
/**
|
|
372
370
|
* @param {HTMLElement} target
|
|
373
371
|
* @param {HTMLElement} [anchor]
|
|
374
372
|
*/
|
|
375
|
-
m: function(
|
|
376
|
-
|
|
373
|
+
m: function(l, c) {
|
|
374
|
+
I(l, s, c);
|
|
377
375
|
},
|
|
378
|
-
d: function(
|
|
379
|
-
|
|
376
|
+
d: function(l) {
|
|
377
|
+
l && w(s);
|
|
380
378
|
}
|
|
381
379
|
};
|
|
382
380
|
};
|
|
383
381
|
};
|
|
384
382
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
385
383
|
return;
|
|
386
|
-
const n = {}, r =
|
|
384
|
+
const n = {}, r = On(this);
|
|
387
385
|
for (const a of this.$$s)
|
|
388
386
|
a in r && (n[a] = [t(a)]);
|
|
389
387
|
for (const a of this.attributes) {
|
|
390
388
|
const s = this.$$g_p(a.name);
|
|
391
|
-
s in this.$$d || (this.$$d[s] =
|
|
389
|
+
s in this.$$d || (this.$$d[s] = xe(s, a.value, this.$$p_d, "toProp"));
|
|
392
390
|
}
|
|
393
391
|
for (const a in this.$$p_d)
|
|
394
392
|
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
@@ -405,7 +403,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
405
403
|
this.$$r = !0;
|
|
406
404
|
for (const a in this.$$p_d)
|
|
407
405
|
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
408
|
-
const s =
|
|
406
|
+
const s = xe(
|
|
409
407
|
a,
|
|
410
408
|
this.$$d[a],
|
|
411
409
|
this.$$p_d,
|
|
@@ -429,7 +427,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
429
427
|
// and setting attributes through setAttribute etc, this is helpful
|
|
430
428
|
attributeChangedCallback(t, n, r) {
|
|
431
429
|
var i;
|
|
432
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
430
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
433
431
|
}
|
|
434
432
|
disconnectedCallback() {
|
|
435
433
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -442,7 +440,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
442
440
|
) || t;
|
|
443
441
|
}
|
|
444
442
|
});
|
|
445
|
-
function
|
|
443
|
+
function xe(e, t, n, r) {
|
|
446
444
|
var a;
|
|
447
445
|
const i = (a = n[e]) == null ? void 0 : a.type;
|
|
448
446
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -472,8 +470,8 @@ function ke(e, t, n, r) {
|
|
|
472
470
|
return t;
|
|
473
471
|
}
|
|
474
472
|
}
|
|
475
|
-
function
|
|
476
|
-
let s = class extends
|
|
473
|
+
function qt(e, t, n, r, i, a) {
|
|
474
|
+
let s = class extends Wt {
|
|
477
475
|
constructor() {
|
|
478
476
|
super(e, n, i), this.$$p_d = t;
|
|
479
477
|
}
|
|
@@ -488,22 +486,22 @@ function Un(e, t, n, r, i, a) {
|
|
|
488
486
|
get() {
|
|
489
487
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
490
488
|
},
|
|
491
|
-
set(
|
|
492
|
-
var
|
|
493
|
-
|
|
489
|
+
set(u) {
|
|
490
|
+
var l;
|
|
491
|
+
u = xe(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
|
|
494
492
|
}
|
|
495
493
|
});
|
|
496
494
|
}), r.forEach((o) => {
|
|
497
495
|
Object.defineProperty(s.prototype, o, {
|
|
498
496
|
get() {
|
|
499
|
-
var
|
|
500
|
-
return (
|
|
497
|
+
var u;
|
|
498
|
+
return (u = this.$$c) == null ? void 0 : u[o];
|
|
501
499
|
}
|
|
502
500
|
});
|
|
503
501
|
}), e.element = /** @type {any} */
|
|
504
502
|
s, s;
|
|
505
503
|
}
|
|
506
|
-
class
|
|
504
|
+
class Xt {
|
|
507
505
|
constructor() {
|
|
508
506
|
/**
|
|
509
507
|
* ### PRIVATE API
|
|
@@ -512,7 +510,7 @@ class Fn {
|
|
|
512
510
|
*
|
|
513
511
|
* @type {any}
|
|
514
512
|
*/
|
|
515
|
-
|
|
513
|
+
L(this, "$$");
|
|
516
514
|
/**
|
|
517
515
|
* ### PRIVATE API
|
|
518
516
|
*
|
|
@@ -520,11 +518,11 @@ class Fn {
|
|
|
520
518
|
*
|
|
521
519
|
* @type {any}
|
|
522
520
|
*/
|
|
523
|
-
|
|
521
|
+
L(this, "$$set");
|
|
524
522
|
}
|
|
525
523
|
/** @returns {void} */
|
|
526
524
|
$destroy() {
|
|
527
|
-
|
|
525
|
+
jt(this, 1), this.$destroy = P;
|
|
528
526
|
}
|
|
529
527
|
/**
|
|
530
528
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -533,7 +531,7 @@ class Fn {
|
|
|
533
531
|
* @returns {() => void}
|
|
534
532
|
*/
|
|
535
533
|
$on(t, n) {
|
|
536
|
-
if (!
|
|
534
|
+
if (!Ye(n))
|
|
537
535
|
return P;
|
|
538
536
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
539
537
|
return r.push(n), () => {
|
|
@@ -546,19 +544,19 @@ class Fn {
|
|
|
546
544
|
* @returns {void}
|
|
547
545
|
*/
|
|
548
546
|
$set(t) {
|
|
549
|
-
this.$$set && !
|
|
547
|
+
this.$$set && !Bn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
|
-
const
|
|
553
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
554
|
-
const
|
|
555
|
-
function
|
|
550
|
+
const jn = "4";
|
|
551
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jn);
|
|
552
|
+
const J = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
553
|
+
function Vn(e, t) {
|
|
556
554
|
if (e) {
|
|
557
555
|
const n = document.createElement("style");
|
|
558
556
|
n.innerHTML = t, e.appendChild(n);
|
|
559
557
|
}
|
|
560
558
|
}
|
|
561
|
-
function
|
|
559
|
+
function Wn(e, t) {
|
|
562
560
|
if (!e || !t)
|
|
563
561
|
return;
|
|
564
562
|
const n = new URL(t);
|
|
@@ -569,32 +567,32 @@ function jn(e, t) {
|
|
|
569
567
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
570
568
|
});
|
|
571
569
|
}
|
|
572
|
-
function
|
|
570
|
+
function qn(e, t, n, r = !1) {
|
|
573
571
|
if (!window.emMessageBus)
|
|
574
572
|
return;
|
|
575
573
|
if (!("adoptedStyleSheets" in Document.prototype) || !r)
|
|
576
|
-
return n =
|
|
577
|
-
window[
|
|
574
|
+
return n = Xn(e, t), n;
|
|
575
|
+
window[J] || (window[J] = {}), n = Zn(e, t);
|
|
578
576
|
const a = n.unsubscribe.bind(n), s = () => {
|
|
579
|
-
if (window[
|
|
580
|
-
const o = window[
|
|
581
|
-
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[
|
|
577
|
+
if (window[J][t]) {
|
|
578
|
+
const o = window[J][t];
|
|
579
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[J][t];
|
|
582
580
|
}
|
|
583
581
|
a();
|
|
584
582
|
};
|
|
585
583
|
return n.unsubscribe = s, n;
|
|
586
584
|
}
|
|
587
|
-
function
|
|
585
|
+
function Xn(e, t) {
|
|
588
586
|
const n = document.createElement("style");
|
|
589
587
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
590
588
|
e && (n.innerHTML = r, e.appendChild(n));
|
|
591
589
|
});
|
|
592
590
|
}
|
|
593
|
-
function
|
|
591
|
+
function Zn(e, t) {
|
|
594
592
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
595
593
|
if (!e)
|
|
596
594
|
return;
|
|
597
|
-
const r = e.getRootNode(), i = window[
|
|
595
|
+
const r = e.getRootNode(), i = window[J];
|
|
598
596
|
let a = i[t] && i[t].sheet;
|
|
599
597
|
a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
|
|
600
598
|
sheet: a,
|
|
@@ -604,8 +602,127 @@ function qn(e, t) {
|
|
|
604
602
|
s.includes(a) || (r.adoptedStyleSheets = [...s, a]);
|
|
605
603
|
});
|
|
606
604
|
}
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
function Jn(e) {
|
|
606
|
+
zt(e, "svelte-1nr7vqj", ".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}");
|
|
607
|
+
}
|
|
608
|
+
function ht(e) {
|
|
609
|
+
let t;
|
|
610
|
+
return {
|
|
611
|
+
c() {
|
|
612
|
+
t = H("div"), t.innerHTML = '<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>', T(t, "class", "UiContainer svelte-1nr7vqj");
|
|
613
|
+
},
|
|
614
|
+
m(n, r) {
|
|
615
|
+
I(n, t, r);
|
|
616
|
+
},
|
|
617
|
+
d(n) {
|
|
618
|
+
n && w(t);
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
function Kn(e) {
|
|
623
|
+
let t, n, r, i, a, s, o, u = !/*imgLoaded*/
|
|
624
|
+
e[4] && ht();
|
|
625
|
+
return {
|
|
626
|
+
c() {
|
|
627
|
+
t = H("div"), u && u.c(), n = $(), r = H("img"), ut(r.src, i = /*src*/
|
|
628
|
+
e[0]) || T(r, "src", i), T(
|
|
629
|
+
r,
|
|
630
|
+
"alt",
|
|
631
|
+
/*alt*/
|
|
632
|
+
e[1]
|
|
633
|
+
), T(
|
|
634
|
+
r,
|
|
635
|
+
"width",
|
|
636
|
+
/*width*/
|
|
637
|
+
e[2]
|
|
638
|
+
), T(
|
|
639
|
+
r,
|
|
640
|
+
"height",
|
|
641
|
+
/*height*/
|
|
642
|
+
e[3]
|
|
643
|
+
), T(r, "class", a = "UiContainer " + /*imgLoaded*/
|
|
644
|
+
(e[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj"), T(r, "loading", "lazy"), T(t, "class", "HostContainer hydrated svelte-1nr7vqj");
|
|
645
|
+
},
|
|
646
|
+
m(l, c) {
|
|
647
|
+
I(l, t, c), u && u.m(t, null), B(t, n), B(t, r), s || (o = Ut(
|
|
648
|
+
r,
|
|
649
|
+
"load",
|
|
650
|
+
/*load_handler*/
|
|
651
|
+
e[5]
|
|
652
|
+
), s = !0);
|
|
653
|
+
},
|
|
654
|
+
p(l, [c]) {
|
|
655
|
+
/*imgLoaded*/
|
|
656
|
+
l[4] ? u && (u.d(1), u = null) : u || (u = ht(), u.c(), u.m(t, n)), c & /*src*/
|
|
657
|
+
1 && !ut(r.src, i = /*src*/
|
|
658
|
+
l[0]) && T(r, "src", i), c & /*alt*/
|
|
659
|
+
2 && T(
|
|
660
|
+
r,
|
|
661
|
+
"alt",
|
|
662
|
+
/*alt*/
|
|
663
|
+
l[1]
|
|
664
|
+
), c & /*width*/
|
|
665
|
+
4 && T(
|
|
666
|
+
r,
|
|
667
|
+
"width",
|
|
668
|
+
/*width*/
|
|
669
|
+
l[2]
|
|
670
|
+
), c & /*height*/
|
|
671
|
+
8 && T(
|
|
672
|
+
r,
|
|
673
|
+
"height",
|
|
674
|
+
/*height*/
|
|
675
|
+
l[3]
|
|
676
|
+
), c & /*imgLoaded*/
|
|
677
|
+
16 && a !== (a = "UiContainer " + /*imgLoaded*/
|
|
678
|
+
(l[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj") && T(r, "class", a);
|
|
679
|
+
},
|
|
680
|
+
i: P,
|
|
681
|
+
o: P,
|
|
682
|
+
d(l) {
|
|
683
|
+
l && w(t), u && u.d(), s = !1, o();
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function Yn(e, t, n) {
|
|
688
|
+
let { src: r } = t, { alt: i = void 0 } = t, { width: a = void 0 } = t, { height: s = void 0 } = t, o = !1;
|
|
689
|
+
const u = () => n(4, o = !0);
|
|
690
|
+
return e.$$set = (l) => {
|
|
691
|
+
"src" in l && n(0, r = l.src), "alt" in l && n(1, i = l.alt), "width" in l && n(2, a = l.width), "height" in l && n(3, s = l.height);
|
|
692
|
+
}, [r, i, a, s, o, u];
|
|
693
|
+
}
|
|
694
|
+
class Zt extends Xt {
|
|
695
|
+
constructor(t) {
|
|
696
|
+
super(), Vt(this, t, Yn, Kn, Qe, { src: 0, alt: 1, width: 2, height: 3 }, Jn);
|
|
697
|
+
}
|
|
698
|
+
get src() {
|
|
699
|
+
return this.$$.ctx[0];
|
|
700
|
+
}
|
|
701
|
+
set src(t) {
|
|
702
|
+
this.$$set({ src: t }), C();
|
|
703
|
+
}
|
|
704
|
+
get alt() {
|
|
705
|
+
return this.$$.ctx[1];
|
|
706
|
+
}
|
|
707
|
+
set alt(t) {
|
|
708
|
+
this.$$set({ alt: t }), C();
|
|
709
|
+
}
|
|
710
|
+
get width() {
|
|
711
|
+
return this.$$.ctx[2];
|
|
712
|
+
}
|
|
713
|
+
set width(t) {
|
|
714
|
+
this.$$set({ width: t }), C();
|
|
715
|
+
}
|
|
716
|
+
get height() {
|
|
717
|
+
return this.$$.ctx[3];
|
|
718
|
+
}
|
|
719
|
+
set height(t) {
|
|
720
|
+
this.$$set({ height: t }), C();
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
qt(Zt, { src: {}, alt: {}, width: {}, height: {} }, [], [], !0);
|
|
724
|
+
const X = [];
|
|
725
|
+
function Qn(e, t) {
|
|
609
726
|
return {
|
|
610
727
|
subscribe: Ce(e, t).subscribe
|
|
611
728
|
};
|
|
@@ -614,24 +731,24 @@ function Ce(e, t = P) {
|
|
|
614
731
|
let n;
|
|
615
732
|
const r = /* @__PURE__ */ new Set();
|
|
616
733
|
function i(o) {
|
|
617
|
-
if (
|
|
618
|
-
const
|
|
619
|
-
for (const
|
|
620
|
-
|
|
621
|
-
if (
|
|
622
|
-
for (let
|
|
623
|
-
|
|
624
|
-
|
|
734
|
+
if (Qe(e, o) && (e = o, n)) {
|
|
735
|
+
const u = !X.length;
|
|
736
|
+
for (const l of r)
|
|
737
|
+
l[1](), X.push(l, e);
|
|
738
|
+
if (u) {
|
|
739
|
+
for (let l = 0; l < X.length; l += 2)
|
|
740
|
+
X[l][0](X[l + 1]);
|
|
741
|
+
X.length = 0;
|
|
625
742
|
}
|
|
626
743
|
}
|
|
627
744
|
}
|
|
628
745
|
function a(o) {
|
|
629
746
|
i(o(e));
|
|
630
747
|
}
|
|
631
|
-
function s(o,
|
|
632
|
-
const
|
|
633
|
-
return r.add(
|
|
634
|
-
r.delete(
|
|
748
|
+
function s(o, u = P) {
|
|
749
|
+
const l = [o, u];
|
|
750
|
+
return r.add(l), r.size === 1 && (n = t(i, a) || P), o(e), () => {
|
|
751
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
635
752
|
};
|
|
636
753
|
}
|
|
637
754
|
return { set: i, update: a, subscribe: s };
|
|
@@ -641,96 +758,96 @@ function ie(e, t, n) {
|
|
|
641
758
|
if (!i.every(Boolean))
|
|
642
759
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
643
760
|
const a = t.length < 2;
|
|
644
|
-
return
|
|
645
|
-
let
|
|
646
|
-
const
|
|
761
|
+
return Qn(n, (s, o) => {
|
|
762
|
+
let u = !1;
|
|
763
|
+
const l = [];
|
|
647
764
|
let c = 0, h = P;
|
|
648
765
|
const d = () => {
|
|
649
766
|
if (c)
|
|
650
767
|
return;
|
|
651
768
|
h();
|
|
652
|
-
const g = t(r ?
|
|
653
|
-
a ? s(g) : h =
|
|
769
|
+
const g = t(r ? l[0] : l, s, o);
|
|
770
|
+
a ? s(g) : h = Ye(g) ? g : P;
|
|
654
771
|
}, f = i.map(
|
|
655
772
|
(g, k) => Nt(
|
|
656
773
|
g,
|
|
657
774
|
(E) => {
|
|
658
|
-
|
|
775
|
+
l[k] = E, c &= ~(1 << k), u && d();
|
|
659
776
|
},
|
|
660
777
|
() => {
|
|
661
778
|
c |= 1 << k;
|
|
662
779
|
}
|
|
663
780
|
)
|
|
664
781
|
);
|
|
665
|
-
return
|
|
666
|
-
re(f), h(),
|
|
782
|
+
return u = !0, d(), function() {
|
|
783
|
+
re(f), h(), u = !1;
|
|
667
784
|
};
|
|
668
785
|
});
|
|
669
786
|
}
|
|
670
|
-
function
|
|
787
|
+
function er(e) {
|
|
671
788
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
672
789
|
}
|
|
673
|
-
var
|
|
674
|
-
return
|
|
790
|
+
var tr = function(t) {
|
|
791
|
+
return nr(t) && !rr(t);
|
|
675
792
|
};
|
|
676
|
-
function
|
|
793
|
+
function nr(e) {
|
|
677
794
|
return !!e && typeof e == "object";
|
|
678
795
|
}
|
|
679
|
-
function
|
|
796
|
+
function rr(e) {
|
|
680
797
|
var t = Object.prototype.toString.call(e);
|
|
681
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
798
|
+
return t === "[object RegExp]" || t === "[object Date]" || sr(e);
|
|
682
799
|
}
|
|
683
|
-
var
|
|
684
|
-
function
|
|
685
|
-
return e.$$typeof ===
|
|
800
|
+
var ir = typeof Symbol == "function" && Symbol.for, ar = ir ? Symbol.for("react.element") : 60103;
|
|
801
|
+
function sr(e) {
|
|
802
|
+
return e.$$typeof === ar;
|
|
686
803
|
}
|
|
687
|
-
function
|
|
804
|
+
function or(e) {
|
|
688
805
|
return Array.isArray(e) ? [] : {};
|
|
689
806
|
}
|
|
690
807
|
function he(e, t) {
|
|
691
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
808
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(or(e), e, t) : e;
|
|
692
809
|
}
|
|
693
|
-
function
|
|
810
|
+
function lr(e, t, n) {
|
|
694
811
|
return e.concat(t).map(function(r) {
|
|
695
812
|
return he(r, n);
|
|
696
813
|
});
|
|
697
814
|
}
|
|
698
|
-
function
|
|
815
|
+
function ur(e, t) {
|
|
699
816
|
if (!t.customMerge)
|
|
700
817
|
return Q;
|
|
701
818
|
var n = t.customMerge(e);
|
|
702
819
|
return typeof n == "function" ? n : Q;
|
|
703
820
|
}
|
|
704
|
-
function
|
|
821
|
+
function cr(e) {
|
|
705
822
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
706
823
|
return Object.propertyIsEnumerable.call(e, t);
|
|
707
824
|
}) : [];
|
|
708
825
|
}
|
|
709
|
-
function
|
|
710
|
-
return Object.keys(e).concat(
|
|
826
|
+
function dt(e) {
|
|
827
|
+
return Object.keys(e).concat(cr(e));
|
|
711
828
|
}
|
|
712
|
-
function
|
|
829
|
+
function Jt(e, t) {
|
|
713
830
|
try {
|
|
714
831
|
return t in e;
|
|
715
832
|
} catch (n) {
|
|
716
833
|
return !1;
|
|
717
834
|
}
|
|
718
835
|
}
|
|
719
|
-
function
|
|
720
|
-
return
|
|
836
|
+
function hr(e, t) {
|
|
837
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
721
838
|
}
|
|
722
|
-
function
|
|
839
|
+
function dr(e, t, n) {
|
|
723
840
|
var r = {};
|
|
724
|
-
return n.isMergeableObject(e) &&
|
|
841
|
+
return n.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
725
842
|
r[i] = he(e[i], n);
|
|
726
|
-
}),
|
|
727
|
-
|
|
843
|
+
}), dt(t).forEach(function(i) {
|
|
844
|
+
hr(e, i) || (Jt(e, i) && n.isMergeableObject(t[i]) ? r[i] = ur(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
|
|
728
845
|
}), r;
|
|
729
846
|
}
|
|
730
847
|
function Q(e, t, n) {
|
|
731
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
848
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || lr, n.isMergeableObject = n.isMergeableObject || tr, n.cloneUnlessOtherwiseSpecified = he;
|
|
732
849
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
733
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
850
|
+
return a ? r ? n.arrayMerge(e, t, n) : dr(e, t, n) : he(t, n);
|
|
734
851
|
}
|
|
735
852
|
Q.all = function(t, n) {
|
|
736
853
|
if (!Array.isArray(t))
|
|
@@ -739,36 +856,36 @@ Q.all = function(t, n) {
|
|
|
739
856
|
return Q(r, i, n);
|
|
740
857
|
}, {});
|
|
741
858
|
};
|
|
742
|
-
var
|
|
743
|
-
const
|
|
744
|
-
var
|
|
745
|
-
return
|
|
859
|
+
var mr = Q, fr = mr;
|
|
860
|
+
const gr = /* @__PURE__ */ er(fr);
|
|
861
|
+
var je = function(e, t) {
|
|
862
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
746
863
|
n.__proto__ = r;
|
|
747
864
|
} || function(n, r) {
|
|
748
865
|
for (var i in r)
|
|
749
866
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
750
|
-
},
|
|
867
|
+
}, je(e, t);
|
|
751
868
|
};
|
|
752
|
-
function
|
|
869
|
+
function Be(e, t) {
|
|
753
870
|
if (typeof t != "function" && t !== null)
|
|
754
871
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
755
|
-
|
|
872
|
+
je(e, t);
|
|
756
873
|
function n() {
|
|
757
874
|
this.constructor = e;
|
|
758
875
|
}
|
|
759
876
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
760
877
|
}
|
|
761
|
-
var
|
|
762
|
-
return
|
|
878
|
+
var O = function() {
|
|
879
|
+
return O = Object.assign || function(t) {
|
|
763
880
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
764
881
|
n = arguments[r];
|
|
765
882
|
for (var a in n)
|
|
766
883
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
767
884
|
}
|
|
768
885
|
return t;
|
|
769
|
-
},
|
|
886
|
+
}, O.apply(this, arguments);
|
|
770
887
|
};
|
|
771
|
-
function
|
|
888
|
+
function pr(e, t) {
|
|
772
889
|
var n = {};
|
|
773
890
|
for (var r in e)
|
|
774
891
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -777,43 +894,43 @@ function hr(e, t) {
|
|
|
777
894
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
778
895
|
return n;
|
|
779
896
|
}
|
|
780
|
-
function
|
|
897
|
+
function Oe(e, t, n) {
|
|
781
898
|
if (n || arguments.length === 2)
|
|
782
899
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
783
900
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
784
901
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
785
902
|
}
|
|
786
|
-
function
|
|
787
|
-
var n = t && t.cache ? t.cache :
|
|
903
|
+
function De(e, t) {
|
|
904
|
+
var n = t && t.cache ? t.cache : kr, r = t && t.serializer ? t.serializer : _r, i = t && t.strategy ? t.strategy : vr;
|
|
788
905
|
return i(e, {
|
|
789
906
|
cache: n,
|
|
790
907
|
serializer: r
|
|
791
908
|
});
|
|
792
909
|
}
|
|
793
|
-
function
|
|
910
|
+
function br(e) {
|
|
794
911
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
795
912
|
}
|
|
796
|
-
function
|
|
797
|
-
var i =
|
|
913
|
+
function yr(e, t, n, r) {
|
|
914
|
+
var i = br(r) ? r : n(r), a = t.get(i);
|
|
798
915
|
return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
|
|
799
916
|
}
|
|
800
|
-
function
|
|
917
|
+
function Kt(e, t, n) {
|
|
801
918
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
802
919
|
return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
803
920
|
}
|
|
804
|
-
function
|
|
921
|
+
function Yt(e, t, n, r, i) {
|
|
805
922
|
return n.bind(t, e, r, i);
|
|
806
923
|
}
|
|
807
|
-
function
|
|
808
|
-
var n = e.length === 1 ?
|
|
809
|
-
return
|
|
924
|
+
function vr(e, t) {
|
|
925
|
+
var n = e.length === 1 ? yr : Kt;
|
|
926
|
+
return Yt(e, this, n, t.cache.create(), t.serializer);
|
|
810
927
|
}
|
|
811
|
-
function
|
|
812
|
-
return
|
|
928
|
+
function Er(e, t) {
|
|
929
|
+
return Yt(e, this, Kt, t.cache.create(), t.serializer);
|
|
813
930
|
}
|
|
814
|
-
var
|
|
931
|
+
var _r = function() {
|
|
815
932
|
return JSON.stringify(arguments);
|
|
816
|
-
},
|
|
933
|
+
}, xr = (
|
|
817
934
|
/** @class */
|
|
818
935
|
function() {
|
|
819
936
|
function e() {
|
|
@@ -825,21 +942,21 @@ var pr = function() {
|
|
|
825
942
|
this.cache[t] = n;
|
|
826
943
|
}, e;
|
|
827
944
|
}()
|
|
828
|
-
),
|
|
945
|
+
), kr = {
|
|
829
946
|
create: function() {
|
|
830
|
-
return new
|
|
947
|
+
return new xr();
|
|
831
948
|
}
|
|
832
|
-
},
|
|
833
|
-
variadic:
|
|
834
|
-
},
|
|
835
|
-
return
|
|
949
|
+
}, Ne = {
|
|
950
|
+
variadic: Er
|
|
951
|
+
}, we = function() {
|
|
952
|
+
return we = Object.assign || function(t) {
|
|
836
953
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
837
954
|
n = arguments[r];
|
|
838
955
|
for (var a in n)
|
|
839
956
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
840
957
|
}
|
|
841
958
|
return t;
|
|
842
|
-
},
|
|
959
|
+
}, we.apply(this, arguments);
|
|
843
960
|
};
|
|
844
961
|
var p;
|
|
845
962
|
(function(e) {
|
|
@@ -853,43 +970,43 @@ var ee;
|
|
|
853
970
|
(function(e) {
|
|
854
971
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
855
972
|
})(ee || (ee = {}));
|
|
856
|
-
function
|
|
973
|
+
function mt(e) {
|
|
857
974
|
return e.type === _.literal;
|
|
858
975
|
}
|
|
859
|
-
function
|
|
976
|
+
function Tr(e) {
|
|
860
977
|
return e.type === _.argument;
|
|
861
978
|
}
|
|
862
|
-
function
|
|
979
|
+
function Qt(e) {
|
|
863
980
|
return e.type === _.number;
|
|
864
981
|
}
|
|
865
|
-
function
|
|
982
|
+
function en(e) {
|
|
866
983
|
return e.type === _.date;
|
|
867
984
|
}
|
|
868
|
-
function
|
|
985
|
+
function tn(e) {
|
|
869
986
|
return e.type === _.time;
|
|
870
987
|
}
|
|
871
|
-
function
|
|
988
|
+
function nn(e) {
|
|
872
989
|
return e.type === _.select;
|
|
873
990
|
}
|
|
874
|
-
function
|
|
991
|
+
function rn(e) {
|
|
875
992
|
return e.type === _.plural;
|
|
876
993
|
}
|
|
877
|
-
function
|
|
994
|
+
function wr(e) {
|
|
878
995
|
return e.type === _.pound;
|
|
879
996
|
}
|
|
880
|
-
function
|
|
997
|
+
function an(e) {
|
|
881
998
|
return e.type === _.tag;
|
|
882
999
|
}
|
|
883
|
-
function
|
|
1000
|
+
function sn(e) {
|
|
884
1001
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
885
1002
|
}
|
|
886
|
-
function
|
|
1003
|
+
function Ve(e) {
|
|
887
1004
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
888
1005
|
}
|
|
889
|
-
var
|
|
890
|
-
function
|
|
1006
|
+
var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ir = /(?:[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;
|
|
1007
|
+
function Ar(e) {
|
|
891
1008
|
var t = {};
|
|
892
|
-
return e.replace(
|
|
1009
|
+
return e.replace(Ir, function(n) {
|
|
893
1010
|
var r = n.length;
|
|
894
1011
|
switch (n[0]) {
|
|
895
1012
|
case "G":
|
|
@@ -988,36 +1105,36 @@ var x = function() {
|
|
|
988
1105
|
return t;
|
|
989
1106
|
}, x.apply(this, arguments);
|
|
990
1107
|
};
|
|
991
|
-
var
|
|
992
|
-
function
|
|
1108
|
+
var Sr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1109
|
+
function Cr(e) {
|
|
993
1110
|
if (e.length === 0)
|
|
994
1111
|
throw new Error("Number skeleton cannot be empty");
|
|
995
|
-
for (var t = e.split(
|
|
1112
|
+
for (var t = e.split(Sr).filter(function(d) {
|
|
996
1113
|
return d.length > 0;
|
|
997
1114
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
998
1115
|
var a = i[r], s = a.split("/");
|
|
999
1116
|
if (s.length === 0)
|
|
1000
1117
|
throw new Error("Invalid number skeleton");
|
|
1001
|
-
for (var o = s[0],
|
|
1002
|
-
var h = c[
|
|
1118
|
+
for (var o = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
1119
|
+
var h = c[l];
|
|
1003
1120
|
if (h.length === 0)
|
|
1004
1121
|
throw new Error("Invalid number skeleton");
|
|
1005
1122
|
}
|
|
1006
|
-
n.push({ stem: o, options:
|
|
1123
|
+
n.push({ stem: o, options: u });
|
|
1007
1124
|
}
|
|
1008
1125
|
return n;
|
|
1009
1126
|
}
|
|
1010
|
-
function
|
|
1127
|
+
function Br(e) {
|
|
1011
1128
|
return e.replace(/^(.*?)-/, "");
|
|
1012
1129
|
}
|
|
1013
|
-
var
|
|
1014
|
-
function
|
|
1130
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ln = /^(@+)?(\+|#+)?[rs]?$/g, Hr = /(\*)(0+)|(#+)(0+)|(0+)/g, un = /^(0+)$/;
|
|
1131
|
+
function gt(e) {
|
|
1015
1132
|
var t = {};
|
|
1016
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1133
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ln, function(n, r, i) {
|
|
1017
1134
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1018
1135
|
}), t;
|
|
1019
1136
|
}
|
|
1020
|
-
function
|
|
1137
|
+
function cn(e) {
|
|
1021
1138
|
switch (e) {
|
|
1022
1139
|
case "sign-auto":
|
|
1023
1140
|
return {
|
|
@@ -1057,7 +1174,7 @@ function Qt(e) {
|
|
|
1057
1174
|
};
|
|
1058
1175
|
}
|
|
1059
1176
|
}
|
|
1060
|
-
function
|
|
1177
|
+
function Lr(e) {
|
|
1061
1178
|
var t;
|
|
1062
1179
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1063
1180
|
notation: "engineering"
|
|
@@ -1065,17 +1182,17 @@ function Ar(e) {
|
|
|
1065
1182
|
notation: "scientific"
|
|
1066
1183
|
}, e = e.slice(1)), t) {
|
|
1067
1184
|
var n = e.slice(0, 2);
|
|
1068
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1185
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !un.test(e))
|
|
1069
1186
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1070
1187
|
t.minimumIntegerDigits = e.length;
|
|
1071
1188
|
}
|
|
1072
1189
|
return t;
|
|
1073
1190
|
}
|
|
1074
|
-
function
|
|
1075
|
-
var t = {}, n =
|
|
1191
|
+
function pt(e) {
|
|
1192
|
+
var t = {}, n = cn(e);
|
|
1076
1193
|
return n || t;
|
|
1077
1194
|
}
|
|
1078
|
-
function
|
|
1195
|
+
function Mr(e) {
|
|
1079
1196
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1080
1197
|
var i = r[n];
|
|
1081
1198
|
switch (i.stem) {
|
|
@@ -1099,7 +1216,7 @@ function Sr(e) {
|
|
|
1099
1216
|
continue;
|
|
1100
1217
|
case "measure-unit":
|
|
1101
1218
|
case "unit":
|
|
1102
|
-
t.style = "unit", t.unit =
|
|
1219
|
+
t.style = "unit", t.unit = Br(i.options[0]);
|
|
1103
1220
|
continue;
|
|
1104
1221
|
case "compact-short":
|
|
1105
1222
|
case "K":
|
|
@@ -1110,13 +1227,13 @@ function Sr(e) {
|
|
|
1110
1227
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1111
1228
|
continue;
|
|
1112
1229
|
case "scientific":
|
|
1113
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1114
|
-
return x(x({},
|
|
1230
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1231
|
+
return x(x({}, u), pt(l));
|
|
1115
1232
|
}, {}));
|
|
1116
1233
|
continue;
|
|
1117
1234
|
case "engineering":
|
|
1118
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1119
|
-
return x(x({},
|
|
1235
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1236
|
+
return x(x({}, u), pt(l));
|
|
1120
1237
|
}, {}));
|
|
1121
1238
|
continue;
|
|
1122
1239
|
case "notation-simple":
|
|
@@ -1161,8 +1278,8 @@ function Sr(e) {
|
|
|
1161
1278
|
case "integer-width":
|
|
1162
1279
|
if (i.options.length > 1)
|
|
1163
1280
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1164
|
-
i.options[0].replace(
|
|
1165
|
-
if (
|
|
1281
|
+
i.options[0].replace(Hr, function(u, l, c, h, d, f) {
|
|
1282
|
+
if (l)
|
|
1166
1283
|
t.minimumIntegerDigits = c.length;
|
|
1167
1284
|
else {
|
|
1168
1285
|
if (h && d)
|
|
@@ -1174,32 +1291,32 @@ function Sr(e) {
|
|
|
1174
1291
|
});
|
|
1175
1292
|
continue;
|
|
1176
1293
|
}
|
|
1177
|
-
if (
|
|
1294
|
+
if (un.test(i.stem)) {
|
|
1178
1295
|
t.minimumIntegerDigits = i.stem.length;
|
|
1179
1296
|
continue;
|
|
1180
1297
|
}
|
|
1181
|
-
if (
|
|
1298
|
+
if (ft.test(i.stem)) {
|
|
1182
1299
|
if (i.options.length > 1)
|
|
1183
1300
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1184
|
-
i.stem.replace(
|
|
1185
|
-
return c === "*" ? t.minimumFractionDigits =
|
|
1301
|
+
i.stem.replace(ft, function(u, l, c, h, d, f) {
|
|
1302
|
+
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1186
1303
|
});
|
|
1187
1304
|
var a = i.options[0];
|
|
1188
|
-
a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t),
|
|
1305
|
+
a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), gt(a)));
|
|
1189
1306
|
continue;
|
|
1190
1307
|
}
|
|
1191
|
-
if (
|
|
1192
|
-
t = x(x({}, t),
|
|
1308
|
+
if (ln.test(i.stem)) {
|
|
1309
|
+
t = x(x({}, t), gt(i.stem));
|
|
1193
1310
|
continue;
|
|
1194
1311
|
}
|
|
1195
|
-
var s =
|
|
1312
|
+
var s = cn(i.stem);
|
|
1196
1313
|
s && (t = x(x({}, t), s));
|
|
1197
|
-
var o =
|
|
1314
|
+
var o = Lr(i.stem);
|
|
1198
1315
|
o && (t = x(x({}, t), o));
|
|
1199
1316
|
}
|
|
1200
1317
|
return t;
|
|
1201
1318
|
}
|
|
1202
|
-
var
|
|
1319
|
+
var Ee = {
|
|
1203
1320
|
"001": [
|
|
1204
1321
|
"H",
|
|
1205
1322
|
"h"
|
|
@@ -2614,23 +2731,23 @@ var _e = {
|
|
|
2614
2731
|
"h"
|
|
2615
2732
|
]
|
|
2616
2733
|
};
|
|
2617
|
-
function
|
|
2734
|
+
function Pr(e, t) {
|
|
2618
2735
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2619
2736
|
var i = e.charAt(r);
|
|
2620
2737
|
if (i === "j") {
|
|
2621
2738
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2622
2739
|
a++, r++;
|
|
2623
|
-
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1),
|
|
2624
|
-
for ((
|
|
2625
|
-
n +=
|
|
2740
|
+
var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = Or(t);
|
|
2741
|
+
for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
|
|
2742
|
+
n += u;
|
|
2626
2743
|
for (; s-- > 0; )
|
|
2627
|
-
n =
|
|
2744
|
+
n = l + n;
|
|
2628
2745
|
} else
|
|
2629
2746
|
i === "J" ? n += "H" : n += i;
|
|
2630
2747
|
}
|
|
2631
2748
|
return n;
|
|
2632
2749
|
}
|
|
2633
|
-
function
|
|
2750
|
+
function Or(e) {
|
|
2634
2751
|
var t = e.hourCycle;
|
|
2635
2752
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2636
2753
|
e.hourCycles && // @ts-ignore
|
|
@@ -2649,23 +2766,23 @@ function Cr(e) {
|
|
|
2649
2766
|
}
|
|
2650
2767
|
var n = e.language, r;
|
|
2651
2768
|
n !== "root" && (r = e.maximize().region);
|
|
2652
|
-
var i =
|
|
2769
|
+
var i = Ee[r || ""] || Ee[n || ""] || Ee["".concat(n, "-001")] || Ee["001"];
|
|
2653
2770
|
return i[0];
|
|
2654
2771
|
}
|
|
2655
|
-
var
|
|
2772
|
+
var Re, Dr = new RegExp("^".concat(on.source, "*")), Nr = new RegExp("".concat(on.source, "*$"));
|
|
2656
2773
|
function y(e, t) {
|
|
2657
2774
|
return { start: e, end: t };
|
|
2658
2775
|
}
|
|
2659
|
-
var
|
|
2776
|
+
var Rr = !!String.prototype.startsWith && "_a".startsWith("a", 1), zr = !!String.fromCodePoint, Ur = !!Object.fromEntries, Fr = !!String.prototype.codePointAt, Gr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, jr = !!Number.isSafeInteger, Vr = jr ? Number.isSafeInteger : function(e) {
|
|
2660
2777
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2661
|
-
},
|
|
2778
|
+
}, We = !0;
|
|
2662
2779
|
try {
|
|
2663
|
-
var
|
|
2664
|
-
|
|
2780
|
+
var Wr = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2781
|
+
We = ((Re = Wr.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
2665
2782
|
} catch (e) {
|
|
2666
|
-
|
|
2783
|
+
We = !1;
|
|
2667
2784
|
}
|
|
2668
|
-
var
|
|
2785
|
+
var bt = Rr ? (
|
|
2669
2786
|
// Native
|
|
2670
2787
|
function(t, n, r) {
|
|
2671
2788
|
return t.startsWith(n, r);
|
|
@@ -2675,7 +2792,7 @@ var pt = Mr ? (
|
|
|
2675
2792
|
function(t, n, r) {
|
|
2676
2793
|
return t.slice(r, r + n.length) === n;
|
|
2677
2794
|
}
|
|
2678
|
-
),
|
|
2795
|
+
), qe = zr ? String.fromCodePoint : (
|
|
2679
2796
|
// IE11
|
|
2680
2797
|
function() {
|
|
2681
2798
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2687,9 +2804,9 @@ var pt = Mr ? (
|
|
|
2687
2804
|
}
|
|
2688
2805
|
return r;
|
|
2689
2806
|
}
|
|
2690
|
-
),
|
|
2807
|
+
), yt = (
|
|
2691
2808
|
// native
|
|
2692
|
-
|
|
2809
|
+
Ur ? Object.fromEntries : (
|
|
2693
2810
|
// Ponyfill
|
|
2694
2811
|
function(t) {
|
|
2695
2812
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2699,7 +2816,7 @@ var pt = Mr ? (
|
|
|
2699
2816
|
return n;
|
|
2700
2817
|
}
|
|
2701
2818
|
)
|
|
2702
|
-
),
|
|
2819
|
+
), hn = Fr ? (
|
|
2703
2820
|
// Native
|
|
2704
2821
|
function(t, n) {
|
|
2705
2822
|
return t.codePointAt(n);
|
|
@@ -2713,7 +2830,7 @@ var pt = Mr ? (
|
|
|
2713
2830
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2714
2831
|
}
|
|
2715
2832
|
}
|
|
2716
|
-
),
|
|
2833
|
+
), qr = Gr ? (
|
|
2717
2834
|
// Native
|
|
2718
2835
|
function(t) {
|
|
2719
2836
|
return t.trimStart();
|
|
@@ -2721,9 +2838,9 @@ var pt = Mr ? (
|
|
|
2721
2838
|
) : (
|
|
2722
2839
|
// Ponyfill
|
|
2723
2840
|
function(t) {
|
|
2724
|
-
return t.replace(
|
|
2841
|
+
return t.replace(Dr, "");
|
|
2725
2842
|
}
|
|
2726
|
-
),
|
|
2843
|
+
), Xr = $r ? (
|
|
2727
2844
|
// Native
|
|
2728
2845
|
function(t) {
|
|
2729
2846
|
return t.trimEnd();
|
|
@@ -2731,32 +2848,32 @@ var pt = Mr ? (
|
|
|
2731
2848
|
) : (
|
|
2732
2849
|
// Ponyfill
|
|
2733
2850
|
function(t) {
|
|
2734
|
-
return t.replace(
|
|
2851
|
+
return t.replace(Nr, "");
|
|
2735
2852
|
}
|
|
2736
2853
|
);
|
|
2737
|
-
function
|
|
2854
|
+
function dn(e, t) {
|
|
2738
2855
|
return new RegExp(e, t);
|
|
2739
2856
|
}
|
|
2740
|
-
var
|
|
2741
|
-
if (
|
|
2742
|
-
var
|
|
2743
|
-
|
|
2857
|
+
var Xe;
|
|
2858
|
+
if (We) {
|
|
2859
|
+
var vt = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2860
|
+
Xe = function(t, n) {
|
|
2744
2861
|
var r;
|
|
2745
|
-
|
|
2746
|
-
var i =
|
|
2862
|
+
vt.lastIndex = n;
|
|
2863
|
+
var i = vt.exec(t);
|
|
2747
2864
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2748
2865
|
};
|
|
2749
2866
|
} else
|
|
2750
|
-
|
|
2867
|
+
Xe = function(t, n) {
|
|
2751
2868
|
for (var r = []; ; ) {
|
|
2752
|
-
var i =
|
|
2753
|
-
if (i === void 0 ||
|
|
2869
|
+
var i = hn(t, n);
|
|
2870
|
+
if (i === void 0 || mn(i) || Yr(i))
|
|
2754
2871
|
break;
|
|
2755
2872
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2756
2873
|
}
|
|
2757
|
-
return
|
|
2874
|
+
return qe.apply(void 0, r);
|
|
2758
2875
|
};
|
|
2759
|
-
var
|
|
2876
|
+
var Zr = (
|
|
2760
2877
|
/** @class */
|
|
2761
2878
|
function() {
|
|
2762
2879
|
function e(t, n) {
|
|
@@ -2787,7 +2904,7 @@ var jr = (
|
|
|
2787
2904
|
if (r)
|
|
2788
2905
|
break;
|
|
2789
2906
|
return this.error(p.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2790
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2907
|
+
} else if (a === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
2791
2908
|
var s = this.parseTag(t, n);
|
|
2792
2909
|
if (s.err)
|
|
2793
2910
|
return s;
|
|
@@ -2820,10 +2937,10 @@ var jr = (
|
|
|
2820
2937
|
return a;
|
|
2821
2938
|
var s = a.val, o = this.clonePosition();
|
|
2822
2939
|
if (this.bumpIf("</")) {
|
|
2823
|
-
if (this.isEOF() || !
|
|
2940
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
2824
2941
|
return this.error(p.INVALID_TAG, y(o, this.clonePosition()));
|
|
2825
|
-
var
|
|
2826
|
-
return i !==
|
|
2942
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
2943
|
+
return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2827
2944
|
val: {
|
|
2828
2945
|
type: _.tag,
|
|
2829
2946
|
value: i,
|
|
@@ -2838,7 +2955,7 @@ var jr = (
|
|
|
2838
2955
|
return this.error(p.INVALID_TAG, y(r, this.clonePosition()));
|
|
2839
2956
|
}, e.prototype.parseTagName = function() {
|
|
2840
2957
|
var t = this.offset();
|
|
2841
|
-
for (this.bump(); !this.isEOF() &&
|
|
2958
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
|
2842
2959
|
this.bump();
|
|
2843
2960
|
return this.message.slice(t, this.offset());
|
|
2844
2961
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2860,14 +2977,14 @@ var jr = (
|
|
|
2860
2977
|
}
|
|
2861
2978
|
break;
|
|
2862
2979
|
}
|
|
2863
|
-
var
|
|
2980
|
+
var u = y(r, this.clonePosition());
|
|
2864
2981
|
return {
|
|
2865
|
-
val: { type: _.literal, value: i, location:
|
|
2982
|
+
val: { type: _.literal, value: i, location: u },
|
|
2866
2983
|
err: null
|
|
2867
2984
|
};
|
|
2868
2985
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2869
2986
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2870
|
-
!
|
|
2987
|
+
!Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2871
2988
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2872
2989
|
if (this.isEOF() || this.char() !== 39)
|
|
2873
2990
|
return null;
|
|
@@ -2901,12 +3018,12 @@ var jr = (
|
|
|
2901
3018
|
n.push(r);
|
|
2902
3019
|
this.bump();
|
|
2903
3020
|
}
|
|
2904
|
-
return
|
|
3021
|
+
return qe.apply(void 0, n);
|
|
2905
3022
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2906
3023
|
if (this.isEOF())
|
|
2907
3024
|
return null;
|
|
2908
3025
|
var r = this.char();
|
|
2909
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3026
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qe(r));
|
|
2910
3027
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2911
3028
|
var r = this.clonePosition();
|
|
2912
3029
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2935,39 +3052,39 @@ var jr = (
|
|
|
2935
3052
|
return this.error(p.MALFORMED_ARGUMENT, y(r, this.clonePosition()));
|
|
2936
3053
|
}
|
|
2937
3054
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2938
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3055
|
+
var t = this.clonePosition(), n = this.offset(), r = Xe(this.message, n), i = n + r.length;
|
|
2939
3056
|
this.bumpTo(i);
|
|
2940
3057
|
var a = this.clonePosition(), s = y(t, a);
|
|
2941
3058
|
return { value: r, location: s };
|
|
2942
3059
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2943
|
-
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value,
|
|
3060
|
+
var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2944
3061
|
switch (o) {
|
|
2945
3062
|
case "":
|
|
2946
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, y(s,
|
|
3063
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, u));
|
|
2947
3064
|
case "number":
|
|
2948
3065
|
case "date":
|
|
2949
3066
|
case "time": {
|
|
2950
3067
|
this.bumpSpace();
|
|
2951
|
-
var
|
|
3068
|
+
var l = null;
|
|
2952
3069
|
if (this.bumpIf(",")) {
|
|
2953
3070
|
this.bumpSpace();
|
|
2954
3071
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2955
3072
|
if (h.err)
|
|
2956
3073
|
return h;
|
|
2957
|
-
var d =
|
|
3074
|
+
var d = Xr(h.val);
|
|
2958
3075
|
if (d.length === 0)
|
|
2959
3076
|
return this.error(p.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2960
3077
|
var f = y(c, this.clonePosition());
|
|
2961
|
-
|
|
3078
|
+
l = { style: d, styleLocation: f };
|
|
2962
3079
|
}
|
|
2963
3080
|
var g = this.tryParseArgumentClose(i);
|
|
2964
3081
|
if (g.err)
|
|
2965
3082
|
return g;
|
|
2966
3083
|
var k = y(i, this.clonePosition());
|
|
2967
|
-
if (
|
|
2968
|
-
var E =
|
|
3084
|
+
if (l && bt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3085
|
+
var E = qr(l.style.slice(2));
|
|
2969
3086
|
if (o === "number") {
|
|
2970
|
-
var h = this.parseNumberSkeletonFromString(E,
|
|
3087
|
+
var h = this.parseNumberSkeletonFromString(E, l.styleLocation);
|
|
2971
3088
|
return h.err ? h : {
|
|
2972
3089
|
val: { type: _.number, value: r, location: k, style: h.val },
|
|
2973
3090
|
err: null
|
|
@@ -2976,12 +3093,12 @@ var jr = (
|
|
|
2976
3093
|
if (E.length === 0)
|
|
2977
3094
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, k);
|
|
2978
3095
|
var m = E;
|
|
2979
|
-
this.locale && (m =
|
|
3096
|
+
this.locale && (m = Pr(E, this.locale));
|
|
2980
3097
|
var d = {
|
|
2981
3098
|
type: ee.dateTime,
|
|
2982
3099
|
pattern: m,
|
|
2983
|
-
location:
|
|
2984
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3100
|
+
location: l.styleLocation,
|
|
3101
|
+
parsedOptions: this.shouldParseSkeletons ? Ar(m) : {}
|
|
2985
3102
|
}, v = o === "date" ? _.date : _.time;
|
|
2986
3103
|
return {
|
|
2987
3104
|
val: { type: v, value: r, location: k, style: d },
|
|
@@ -2994,7 +3111,7 @@ var jr = (
|
|
|
2994
3111
|
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2995
3112
|
value: r,
|
|
2996
3113
|
location: k,
|
|
2997
|
-
style: (a =
|
|
3114
|
+
style: (a = l == null ? void 0 : l.style) !== null && a !== void 0 ? a : null
|
|
2998
3115
|
},
|
|
2999
3116
|
err: null
|
|
3000
3117
|
};
|
|
@@ -3002,23 +3119,23 @@ var jr = (
|
|
|
3002
3119
|
case "plural":
|
|
3003
3120
|
case "selectordinal":
|
|
3004
3121
|
case "select": {
|
|
3005
|
-
var
|
|
3122
|
+
var A = this.clonePosition();
|
|
3006
3123
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3007
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(
|
|
3124
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, we({}, A)));
|
|
3008
3125
|
this.bumpSpace();
|
|
3009
|
-
var
|
|
3010
|
-
if (o !== "select" &&
|
|
3126
|
+
var F = this.parseIdentifierIfPossible(), D = 0;
|
|
3127
|
+
if (o !== "select" && F.value === "offset") {
|
|
3011
3128
|
if (!this.bumpIf(":"))
|
|
3012
3129
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3013
3130
|
this.bumpSpace();
|
|
3014
3131
|
var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3015
3132
|
if (h.err)
|
|
3016
3133
|
return h;
|
|
3017
|
-
this.bumpSpace(),
|
|
3134
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), D = h.val;
|
|
3018
3135
|
}
|
|
3019
|
-
var
|
|
3020
|
-
if (
|
|
3021
|
-
return
|
|
3136
|
+
var V = this.tryParsePluralOrSelectOptions(t, o, n, F);
|
|
3137
|
+
if (V.err)
|
|
3138
|
+
return V;
|
|
3022
3139
|
var g = this.tryParseArgumentClose(i);
|
|
3023
3140
|
if (g.err)
|
|
3024
3141
|
return g;
|
|
@@ -3027,7 +3144,7 @@ var jr = (
|
|
|
3027
3144
|
val: {
|
|
3028
3145
|
type: _.select,
|
|
3029
3146
|
value: r,
|
|
3030
|
-
options:
|
|
3147
|
+
options: yt(V.val),
|
|
3031
3148
|
location: se
|
|
3032
3149
|
},
|
|
3033
3150
|
err: null
|
|
@@ -3035,8 +3152,8 @@ var jr = (
|
|
|
3035
3152
|
val: {
|
|
3036
3153
|
type: _.plural,
|
|
3037
3154
|
value: r,
|
|
3038
|
-
options:
|
|
3039
|
-
offset:
|
|
3155
|
+
options: yt(V.val),
|
|
3156
|
+
offset: D,
|
|
3040
3157
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3041
3158
|
location: se
|
|
3042
3159
|
},
|
|
@@ -3044,7 +3161,7 @@ var jr = (
|
|
|
3044
3161
|
};
|
|
3045
3162
|
}
|
|
3046
3163
|
default:
|
|
3047
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, y(s,
|
|
3164
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, y(s, u));
|
|
3048
3165
|
}
|
|
3049
3166
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3050
3167
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3086,7 +3203,7 @@ var jr = (
|
|
|
3086
3203
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3087
3204
|
var r = [];
|
|
3088
3205
|
try {
|
|
3089
|
-
r =
|
|
3206
|
+
r = Cr(t);
|
|
3090
3207
|
} catch (i) {
|
|
3091
3208
|
return this.error(p.INVALID_NUMBER_SKELETON, n);
|
|
3092
3209
|
}
|
|
@@ -3095,25 +3212,25 @@ var jr = (
|
|
|
3095
3212
|
type: ee.number,
|
|
3096
3213
|
tokens: r,
|
|
3097
3214
|
location: n,
|
|
3098
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3215
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(r) : {}
|
|
3099
3216
|
},
|
|
3100
3217
|
err: null
|
|
3101
3218
|
};
|
|
3102
3219
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3103
|
-
for (var a, s = !1, o = [],
|
|
3104
|
-
if (
|
|
3220
|
+
for (var a, s = !1, o = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3221
|
+
if (l.length === 0) {
|
|
3105
3222
|
var h = this.clonePosition();
|
|
3106
3223
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3107
3224
|
var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3108
3225
|
if (d.err)
|
|
3109
3226
|
return d;
|
|
3110
|
-
c = y(h, this.clonePosition()),
|
|
3227
|
+
c = y(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
3111
3228
|
} else
|
|
3112
3229
|
break;
|
|
3113
3230
|
}
|
|
3114
|
-
if (
|
|
3231
|
+
if (u.has(l))
|
|
3115
3232
|
return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3116
|
-
|
|
3233
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3117
3234
|
var f = this.clonePosition();
|
|
3118
3235
|
if (!this.bumpIf("{"))
|
|
3119
3236
|
return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3124,12 +3241,12 @@ var jr = (
|
|
|
3124
3241
|
if (k.err)
|
|
3125
3242
|
return k;
|
|
3126
3243
|
o.push([
|
|
3127
|
-
|
|
3244
|
+
l,
|
|
3128
3245
|
{
|
|
3129
3246
|
value: g.val,
|
|
3130
3247
|
location: y(f, this.clonePosition())
|
|
3131
3248
|
}
|
|
3132
|
-
]),
|
|
3249
|
+
]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
|
|
3133
3250
|
}
|
|
3134
3251
|
return o.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3135
3252
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
@@ -3142,8 +3259,8 @@ var jr = (
|
|
|
3142
3259
|
else
|
|
3143
3260
|
break;
|
|
3144
3261
|
}
|
|
3145
|
-
var
|
|
3146
|
-
return a ? (s *= r,
|
|
3262
|
+
var u = y(i, this.clonePosition());
|
|
3263
|
+
return a ? (s *= r, Vr(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3147
3264
|
}, e.prototype.offset = function() {
|
|
3148
3265
|
return this.position.offset;
|
|
3149
3266
|
}, e.prototype.isEOF = function() {
|
|
@@ -3158,7 +3275,7 @@ var jr = (
|
|
|
3158
3275
|
var t = this.position.offset;
|
|
3159
3276
|
if (t >= this.message.length)
|
|
3160
3277
|
throw Error("out of bound");
|
|
3161
|
-
var n =
|
|
3278
|
+
var n = hn(this.message, t);
|
|
3162
3279
|
if (n === void 0)
|
|
3163
3280
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3164
3281
|
return n;
|
|
@@ -3177,7 +3294,7 @@ var jr = (
|
|
|
3177
3294
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3178
3295
|
}
|
|
3179
3296
|
}, e.prototype.bumpIf = function(t) {
|
|
3180
|
-
if (
|
|
3297
|
+
if (bt(this.message, t, this.offset())) {
|
|
3181
3298
|
for (var n = 0; n < t.length; n++)
|
|
3182
3299
|
this.bump();
|
|
3183
3300
|
return !0;
|
|
@@ -3199,7 +3316,7 @@ var jr = (
|
|
|
3199
3316
|
break;
|
|
3200
3317
|
}
|
|
3201
3318
|
}, e.prototype.bumpSpace = function() {
|
|
3202
|
-
for (; !this.isEOF() &&
|
|
3319
|
+
for (; !this.isEOF() && mn(this.char()); )
|
|
3203
3320
|
this.bump();
|
|
3204
3321
|
}, e.prototype.peek = function() {
|
|
3205
3322
|
if (this.isEOF())
|
|
@@ -3209,38 +3326,38 @@ var jr = (
|
|
|
3209
3326
|
}, e;
|
|
3210
3327
|
}()
|
|
3211
3328
|
);
|
|
3212
|
-
function
|
|
3329
|
+
function Ze(e) {
|
|
3213
3330
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3214
3331
|
}
|
|
3215
|
-
function
|
|
3216
|
-
return
|
|
3332
|
+
function Jr(e) {
|
|
3333
|
+
return Ze(e) || e === 47;
|
|
3217
3334
|
}
|
|
3218
|
-
function
|
|
3335
|
+
function Kr(e) {
|
|
3219
3336
|
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;
|
|
3220
3337
|
}
|
|
3221
|
-
function
|
|
3338
|
+
function mn(e) {
|
|
3222
3339
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3223
3340
|
}
|
|
3224
|
-
function
|
|
3341
|
+
function Yr(e) {
|
|
3225
3342
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3226
3343
|
}
|
|
3227
|
-
function
|
|
3344
|
+
function Je(e) {
|
|
3228
3345
|
e.forEach(function(t) {
|
|
3229
|
-
if (delete t.location,
|
|
3346
|
+
if (delete t.location, nn(t) || rn(t))
|
|
3230
3347
|
for (var n in t.options)
|
|
3231
|
-
delete t.options[n].location,
|
|
3348
|
+
delete t.options[n].location, Je(t.options[n].value);
|
|
3232
3349
|
else
|
|
3233
|
-
|
|
3350
|
+
Qt(t) && sn(t.style) || (en(t) || tn(t)) && Ve(t.style) ? delete t.style.location : an(t) && Je(t.children);
|
|
3234
3351
|
});
|
|
3235
3352
|
}
|
|
3236
|
-
function
|
|
3237
|
-
t === void 0 && (t = {}), t =
|
|
3238
|
-
var n = new
|
|
3353
|
+
function Qr(e, t) {
|
|
3354
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3355
|
+
var n = new Zr(e, t).parse();
|
|
3239
3356
|
if (n.err) {
|
|
3240
3357
|
var r = SyntaxError(p[n.err.kind]);
|
|
3241
3358
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3242
3359
|
}
|
|
3243
|
-
return t != null && t.captureLocation ||
|
|
3360
|
+
return t != null && t.captureLocation || Je(n.val), n.val;
|
|
3244
3361
|
}
|
|
3245
3362
|
var te;
|
|
3246
3363
|
(function(e) {
|
|
@@ -3249,7 +3366,7 @@ var te;
|
|
|
3249
3366
|
var He = (
|
|
3250
3367
|
/** @class */
|
|
3251
3368
|
function(e) {
|
|
3252
|
-
|
|
3369
|
+
Be(t, e);
|
|
3253
3370
|
function t(n, r, i) {
|
|
3254
3371
|
var a = e.call(this, n) || this;
|
|
3255
3372
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3258,155 +3375,155 @@ var He = (
|
|
|
3258
3375
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3259
3376
|
}, t;
|
|
3260
3377
|
}(Error)
|
|
3261
|
-
),
|
|
3378
|
+
), Et = (
|
|
3262
3379
|
/** @class */
|
|
3263
3380
|
function(e) {
|
|
3264
|
-
|
|
3381
|
+
Be(t, e);
|
|
3265
3382
|
function t(n, r, i, a) {
|
|
3266
3383
|
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, a) || this;
|
|
3267
3384
|
}
|
|
3268
3385
|
return t;
|
|
3269
3386
|
}(He)
|
|
3270
|
-
),
|
|
3387
|
+
), ei = (
|
|
3271
3388
|
/** @class */
|
|
3272
3389
|
function(e) {
|
|
3273
|
-
|
|
3390
|
+
Be(t, e);
|
|
3274
3391
|
function t(n, r, i) {
|
|
3275
3392
|
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), te.INVALID_VALUE, i) || this;
|
|
3276
3393
|
}
|
|
3277
3394
|
return t;
|
|
3278
3395
|
}(He)
|
|
3279
|
-
),
|
|
3396
|
+
), ti = (
|
|
3280
3397
|
/** @class */
|
|
3281
3398
|
function(e) {
|
|
3282
|
-
|
|
3399
|
+
Be(t, e);
|
|
3283
3400
|
function t(n, r) {
|
|
3284
3401
|
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), te.MISSING_VALUE, r) || this;
|
|
3285
3402
|
}
|
|
3286
3403
|
return t;
|
|
3287
3404
|
}(He)
|
|
3288
|
-
),
|
|
3405
|
+
), S;
|
|
3289
3406
|
(function(e) {
|
|
3290
3407
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3291
|
-
})(
|
|
3292
|
-
function
|
|
3408
|
+
})(S || (S = {}));
|
|
3409
|
+
function ni(e) {
|
|
3293
3410
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3294
3411
|
var r = t[t.length - 1];
|
|
3295
|
-
return !r || r.type !==
|
|
3412
|
+
return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
|
|
3296
3413
|
}, []);
|
|
3297
3414
|
}
|
|
3298
|
-
function
|
|
3415
|
+
function ri(e) {
|
|
3299
3416
|
return typeof e == "function";
|
|
3300
3417
|
}
|
|
3301
|
-
function
|
|
3302
|
-
if (e.length === 1 &&
|
|
3418
|
+
function ke(e, t, n, r, i, a, s) {
|
|
3419
|
+
if (e.length === 1 && mt(e[0]))
|
|
3303
3420
|
return [
|
|
3304
3421
|
{
|
|
3305
|
-
type:
|
|
3422
|
+
type: S.literal,
|
|
3306
3423
|
value: e[0].value
|
|
3307
3424
|
}
|
|
3308
3425
|
];
|
|
3309
|
-
for (var o = [],
|
|
3310
|
-
var c = u
|
|
3311
|
-
if (
|
|
3426
|
+
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
3427
|
+
var c = l[u];
|
|
3428
|
+
if (mt(c)) {
|
|
3312
3429
|
o.push({
|
|
3313
|
-
type:
|
|
3430
|
+
type: S.literal,
|
|
3314
3431
|
value: c.value
|
|
3315
3432
|
});
|
|
3316
3433
|
continue;
|
|
3317
3434
|
}
|
|
3318
|
-
if (
|
|
3435
|
+
if (wr(c)) {
|
|
3319
3436
|
typeof a == "number" && o.push({
|
|
3320
|
-
type:
|
|
3437
|
+
type: S.literal,
|
|
3321
3438
|
value: n.getNumberFormat(t).format(a)
|
|
3322
3439
|
});
|
|
3323
3440
|
continue;
|
|
3324
3441
|
}
|
|
3325
3442
|
var h = c.value;
|
|
3326
3443
|
if (!(i && h in i))
|
|
3327
|
-
throw new
|
|
3444
|
+
throw new ti(h, s);
|
|
3328
3445
|
var d = i[h];
|
|
3329
|
-
if (
|
|
3446
|
+
if (Tr(c)) {
|
|
3330
3447
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
|
|
3331
|
-
type: typeof d == "string" ?
|
|
3448
|
+
type: typeof d == "string" ? S.literal : S.object,
|
|
3332
3449
|
value: d
|
|
3333
3450
|
});
|
|
3334
3451
|
continue;
|
|
3335
3452
|
}
|
|
3336
|
-
if (
|
|
3337
|
-
var f = typeof c.style == "string" ? r.date[c.style] :
|
|
3453
|
+
if (en(c)) {
|
|
3454
|
+
var f = typeof c.style == "string" ? r.date[c.style] : Ve(c.style) ? c.style.parsedOptions : void 0;
|
|
3338
3455
|
o.push({
|
|
3339
|
-
type:
|
|
3456
|
+
type: S.literal,
|
|
3340
3457
|
value: n.getDateTimeFormat(t, f).format(d)
|
|
3341
3458
|
});
|
|
3342
3459
|
continue;
|
|
3343
3460
|
}
|
|
3344
|
-
if (
|
|
3345
|
-
var f = typeof c.style == "string" ? r.time[c.style] :
|
|
3461
|
+
if (tn(c)) {
|
|
3462
|
+
var f = typeof c.style == "string" ? r.time[c.style] : Ve(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3346
3463
|
o.push({
|
|
3347
|
-
type:
|
|
3464
|
+
type: S.literal,
|
|
3348
3465
|
value: n.getDateTimeFormat(t, f).format(d)
|
|
3349
3466
|
});
|
|
3350
3467
|
continue;
|
|
3351
3468
|
}
|
|
3352
|
-
if (
|
|
3353
|
-
var f = typeof c.style == "string" ? r.number[c.style] :
|
|
3469
|
+
if (Qt(c)) {
|
|
3470
|
+
var f = typeof c.style == "string" ? r.number[c.style] : sn(c.style) ? c.style.parsedOptions : void 0;
|
|
3354
3471
|
f && f.scale && (d = d * (f.scale || 1)), o.push({
|
|
3355
|
-
type:
|
|
3472
|
+
type: S.literal,
|
|
3356
3473
|
value: n.getNumberFormat(t, f).format(d)
|
|
3357
3474
|
});
|
|
3358
3475
|
continue;
|
|
3359
3476
|
}
|
|
3360
|
-
if (
|
|
3477
|
+
if (an(c)) {
|
|
3361
3478
|
var g = c.children, k = c.value, E = i[k];
|
|
3362
|
-
if (!
|
|
3363
|
-
throw new
|
|
3364
|
-
var m =
|
|
3365
|
-
return
|
|
3479
|
+
if (!ri(E))
|
|
3480
|
+
throw new ei(k, "function", s);
|
|
3481
|
+
var m = ke(g, t, n, r, i, a), v = E(m.map(function(D) {
|
|
3482
|
+
return D.value;
|
|
3366
3483
|
}));
|
|
3367
|
-
Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(
|
|
3484
|
+
Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(D) {
|
|
3368
3485
|
return {
|
|
3369
|
-
type: typeof
|
|
3370
|
-
value:
|
|
3486
|
+
type: typeof D == "string" ? S.literal : S.object,
|
|
3487
|
+
value: D
|
|
3371
3488
|
};
|
|
3372
3489
|
}));
|
|
3373
3490
|
}
|
|
3374
|
-
if (
|
|
3375
|
-
var
|
|
3376
|
-
if (!
|
|
3377
|
-
throw new
|
|
3378
|
-
o.push.apply(o,
|
|
3491
|
+
if (nn(c)) {
|
|
3492
|
+
var A = c.options[d] || c.options.other;
|
|
3493
|
+
if (!A)
|
|
3494
|
+
throw new Et(c.value, d, Object.keys(c.options), s);
|
|
3495
|
+
o.push.apply(o, ke(A.value, t, n, r, i));
|
|
3379
3496
|
continue;
|
|
3380
3497
|
}
|
|
3381
|
-
if (
|
|
3382
|
-
var
|
|
3383
|
-
if (!
|
|
3498
|
+
if (rn(c)) {
|
|
3499
|
+
var A = c.options["=".concat(d)];
|
|
3500
|
+
if (!A) {
|
|
3384
3501
|
if (!Intl.PluralRules)
|
|
3385
3502
|
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3386
3503
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3387
3504
|
`, te.MISSING_INTL_API, s);
|
|
3388
|
-
var
|
|
3389
|
-
|
|
3505
|
+
var F = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3506
|
+
A = c.options[F] || c.options.other;
|
|
3390
3507
|
}
|
|
3391
|
-
if (!
|
|
3392
|
-
throw new
|
|
3393
|
-
o.push.apply(o,
|
|
3508
|
+
if (!A)
|
|
3509
|
+
throw new Et(c.value, d, Object.keys(c.options), s);
|
|
3510
|
+
o.push.apply(o, ke(A.value, t, n, r, i, d - (c.offset || 0)));
|
|
3394
3511
|
continue;
|
|
3395
3512
|
}
|
|
3396
3513
|
}
|
|
3397
|
-
return
|
|
3514
|
+
return ni(o);
|
|
3398
3515
|
}
|
|
3399
|
-
function
|
|
3400
|
-
return t ?
|
|
3401
|
-
return n[r] =
|
|
3516
|
+
function ii(e, t) {
|
|
3517
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3518
|
+
return n[r] = O(O({}, e[r]), t[r] || {}), n;
|
|
3402
3519
|
}, {})) : e;
|
|
3403
3520
|
}
|
|
3404
|
-
function
|
|
3521
|
+
function ai(e, t) {
|
|
3405
3522
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3406
|
-
return n[r] =
|
|
3407
|
-
},
|
|
3523
|
+
return n[r] = ii(e[r], t[r]), n;
|
|
3524
|
+
}, O({}, e)) : e;
|
|
3408
3525
|
}
|
|
3409
|
-
function
|
|
3526
|
+
function ze(e) {
|
|
3410
3527
|
return {
|
|
3411
3528
|
create: function() {
|
|
3412
3529
|
return {
|
|
@@ -3420,39 +3537,39 @@ function Ue(e) {
|
|
|
3420
3537
|
}
|
|
3421
3538
|
};
|
|
3422
3539
|
}
|
|
3423
|
-
function
|
|
3540
|
+
function si(e) {
|
|
3424
3541
|
return e === void 0 && (e = {
|
|
3425
3542
|
number: {},
|
|
3426
3543
|
dateTime: {},
|
|
3427
3544
|
pluralRules: {}
|
|
3428
3545
|
}), {
|
|
3429
|
-
getNumberFormat:
|
|
3546
|
+
getNumberFormat: De(function() {
|
|
3430
3547
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3431
3548
|
n[r] = arguments[r];
|
|
3432
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3549
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], n, !1)))();
|
|
3433
3550
|
}, {
|
|
3434
|
-
cache:
|
|
3435
|
-
strategy:
|
|
3551
|
+
cache: ze(e.number),
|
|
3552
|
+
strategy: Ne.variadic
|
|
3436
3553
|
}),
|
|
3437
|
-
getDateTimeFormat:
|
|
3554
|
+
getDateTimeFormat: De(function() {
|
|
3438
3555
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3439
3556
|
n[r] = arguments[r];
|
|
3440
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3557
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], n, !1)))();
|
|
3441
3558
|
}, {
|
|
3442
|
-
cache:
|
|
3443
|
-
strategy:
|
|
3559
|
+
cache: ze(e.dateTime),
|
|
3560
|
+
strategy: Ne.variadic
|
|
3444
3561
|
}),
|
|
3445
|
-
getPluralRules:
|
|
3562
|
+
getPluralRules: De(function() {
|
|
3446
3563
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3447
3564
|
n[r] = arguments[r];
|
|
3448
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3565
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], n, !1)))();
|
|
3449
3566
|
}, {
|
|
3450
|
-
cache:
|
|
3451
|
-
strategy:
|
|
3567
|
+
cache: ze(e.pluralRules),
|
|
3568
|
+
strategy: Ne.variadic
|
|
3452
3569
|
})
|
|
3453
3570
|
};
|
|
3454
3571
|
}
|
|
3455
|
-
var
|
|
3572
|
+
var fn = (
|
|
3456
3573
|
/** @class */
|
|
3457
3574
|
function() {
|
|
3458
3575
|
function e(t, n, r, i) {
|
|
@@ -3462,20 +3579,20 @@ var rn = (
|
|
|
3462
3579
|
number: {},
|
|
3463
3580
|
dateTime: {},
|
|
3464
3581
|
pluralRules: {}
|
|
3465
|
-
}, this.format = function(
|
|
3466
|
-
var
|
|
3467
|
-
if (
|
|
3468
|
-
return
|
|
3469
|
-
var c =
|
|
3470
|
-
return !h.length || d.type !==
|
|
3582
|
+
}, this.format = function(u) {
|
|
3583
|
+
var l = a.formatToParts(u);
|
|
3584
|
+
if (l.length === 1)
|
|
3585
|
+
return l[0].value;
|
|
3586
|
+
var c = l.reduce(function(h, d) {
|
|
3587
|
+
return !h.length || d.type !== S.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
|
|
3471
3588
|
}, []);
|
|
3472
3589
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3473
|
-
}, this.formatToParts = function(
|
|
3474
|
-
return
|
|
3590
|
+
}, this.formatToParts = function(u) {
|
|
3591
|
+
return ke(a.ast, a.locales, a.formatters, a.formats, u, void 0, a.message);
|
|
3475
3592
|
}, this.resolvedOptions = function() {
|
|
3476
|
-
var
|
|
3593
|
+
var u;
|
|
3477
3594
|
return {
|
|
3478
|
-
locale: ((
|
|
3595
|
+
locale: ((u = a.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3479
3596
|
};
|
|
3480
3597
|
}, this.getAst = function() {
|
|
3481
3598
|
return a.ast;
|
|
@@ -3484,13 +3601,13 @@ var rn = (
|
|
|
3484
3601
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3485
3602
|
var s = i || {};
|
|
3486
3603
|
s.formatters;
|
|
3487
|
-
var o =
|
|
3488
|
-
this.ast = e.__parse(t,
|
|
3604
|
+
var o = pr(s, ["formatters"]);
|
|
3605
|
+
this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
|
|
3489
3606
|
} else
|
|
3490
3607
|
this.ast = t;
|
|
3491
3608
|
if (!Array.isArray(this.ast))
|
|
3492
3609
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3493
|
-
this.formats =
|
|
3610
|
+
this.formats = ai(e.formats, r), this.formatters = i && i.formatters || si(this.formatterCache);
|
|
3494
3611
|
}
|
|
3495
3612
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3496
3613
|
get: function() {
|
|
@@ -3503,7 +3620,7 @@ var rn = (
|
|
|
3503
3620
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3504
3621
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3505
3622
|
}
|
|
3506
|
-
}, e.__parse =
|
|
3623
|
+
}, e.__parse = Qr, e.formats = {
|
|
3507
3624
|
number: {
|
|
3508
3625
|
integer: {
|
|
3509
3626
|
maximumFractionDigits: 0
|
|
@@ -3564,7 +3681,7 @@ var rn = (
|
|
|
3564
3681
|
}, e;
|
|
3565
3682
|
}()
|
|
3566
3683
|
);
|
|
3567
|
-
function
|
|
3684
|
+
function oi(e, t) {
|
|
3568
3685
|
if (t == null)
|
|
3569
3686
|
return;
|
|
3570
3687
|
if (t in e)
|
|
@@ -3585,101 +3702,101 @@ function ni(e, t) {
|
|
|
3585
3702
|
r = void 0;
|
|
3586
3703
|
return r;
|
|
3587
3704
|
}
|
|
3588
|
-
const
|
|
3705
|
+
const R = {}, li = (e, t, n) => n && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = n), n), gn = (e, t) => {
|
|
3589
3706
|
if (t == null)
|
|
3590
3707
|
return;
|
|
3591
|
-
if (t in
|
|
3592
|
-
return
|
|
3708
|
+
if (t in R && e in R[t])
|
|
3709
|
+
return R[t][e];
|
|
3593
3710
|
const n = fe(t);
|
|
3594
3711
|
for (let r = 0; r < n.length; r++) {
|
|
3595
|
-
const i = n[r], a =
|
|
3712
|
+
const i = n[r], a = ci(i, e);
|
|
3596
3713
|
if (a)
|
|
3597
|
-
return
|
|
3714
|
+
return li(e, t, a);
|
|
3598
3715
|
}
|
|
3599
3716
|
};
|
|
3600
3717
|
let tt;
|
|
3601
3718
|
const me = Ce({});
|
|
3602
|
-
function
|
|
3719
|
+
function ui(e) {
|
|
3603
3720
|
return tt[e] || null;
|
|
3604
3721
|
}
|
|
3605
|
-
function
|
|
3722
|
+
function pn(e) {
|
|
3606
3723
|
return e in tt;
|
|
3607
3724
|
}
|
|
3608
|
-
function
|
|
3609
|
-
if (!
|
|
3725
|
+
function ci(e, t) {
|
|
3726
|
+
if (!pn(e))
|
|
3610
3727
|
return null;
|
|
3611
|
-
const n =
|
|
3612
|
-
return
|
|
3728
|
+
const n = ui(e);
|
|
3729
|
+
return oi(n, t);
|
|
3613
3730
|
}
|
|
3614
|
-
function
|
|
3731
|
+
function hi(e) {
|
|
3615
3732
|
if (e == null)
|
|
3616
3733
|
return;
|
|
3617
3734
|
const t = fe(e);
|
|
3618
3735
|
for (let n = 0; n < t.length; n++) {
|
|
3619
3736
|
const r = t[n];
|
|
3620
|
-
if (
|
|
3737
|
+
if (pn(r))
|
|
3621
3738
|
return r;
|
|
3622
3739
|
}
|
|
3623
3740
|
}
|
|
3624
|
-
function
|
|
3625
|
-
delete
|
|
3741
|
+
function bn(e, ...t) {
|
|
3742
|
+
delete R[e], me.update((n) => (n[e] = gr.all([n[e] || {}, ...t]), n));
|
|
3626
3743
|
}
|
|
3627
3744
|
ie(
|
|
3628
3745
|
[me],
|
|
3629
3746
|
([e]) => Object.keys(e)
|
|
3630
3747
|
);
|
|
3631
3748
|
me.subscribe((e) => tt = e);
|
|
3632
|
-
const
|
|
3633
|
-
function
|
|
3634
|
-
|
|
3749
|
+
const Te = {};
|
|
3750
|
+
function di(e, t) {
|
|
3751
|
+
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
3635
3752
|
}
|
|
3636
|
-
function
|
|
3637
|
-
return
|
|
3753
|
+
function yn(e) {
|
|
3754
|
+
return Te[e];
|
|
3638
3755
|
}
|
|
3639
|
-
function
|
|
3756
|
+
function mi(e) {
|
|
3640
3757
|
return fe(e).map((t) => {
|
|
3641
|
-
const n =
|
|
3758
|
+
const n = yn(t);
|
|
3642
3759
|
return [t, n ? [...n] : []];
|
|
3643
3760
|
}).filter(([, t]) => t.length > 0);
|
|
3644
3761
|
}
|
|
3645
|
-
function
|
|
3762
|
+
function Ie(e) {
|
|
3646
3763
|
return e == null ? !1 : fe(e).some(
|
|
3647
3764
|
(t) => {
|
|
3648
3765
|
var n;
|
|
3649
|
-
return (n =
|
|
3766
|
+
return (n = yn(t)) == null ? void 0 : n.size;
|
|
3650
3767
|
}
|
|
3651
3768
|
);
|
|
3652
3769
|
}
|
|
3653
|
-
function
|
|
3770
|
+
function fi(e, t) {
|
|
3654
3771
|
return Promise.all(
|
|
3655
|
-
t.map((r) => (
|
|
3656
|
-
).then((r) =>
|
|
3772
|
+
t.map((r) => (di(e, r), r().then((i) => i.default || i)))
|
|
3773
|
+
).then((r) => bn(e, ...r));
|
|
3657
3774
|
}
|
|
3658
3775
|
const oe = {};
|
|
3659
|
-
function
|
|
3660
|
-
if (!
|
|
3776
|
+
function vn(e) {
|
|
3777
|
+
if (!Ie(e))
|
|
3661
3778
|
return e in oe ? oe[e] : Promise.resolve();
|
|
3662
|
-
const t =
|
|
3779
|
+
const t = mi(e);
|
|
3663
3780
|
return oe[e] = Promise.all(
|
|
3664
3781
|
t.map(
|
|
3665
|
-
([n, r]) =>
|
|
3782
|
+
([n, r]) => fi(n, r)
|
|
3666
3783
|
)
|
|
3667
3784
|
).then(() => {
|
|
3668
|
-
if (
|
|
3669
|
-
return
|
|
3785
|
+
if (Ie(e))
|
|
3786
|
+
return vn(e);
|
|
3670
3787
|
delete oe[e];
|
|
3671
3788
|
}), oe[e];
|
|
3672
3789
|
}
|
|
3673
|
-
var
|
|
3790
|
+
var _t = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
|
|
3674
3791
|
var n = {};
|
|
3675
3792
|
for (var r in e)
|
|
3676
|
-
|
|
3677
|
-
if (e != null &&
|
|
3678
|
-
for (var r of
|
|
3679
|
-
t.indexOf(r) < 0 &&
|
|
3793
|
+
gi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3794
|
+
if (e != null && _t)
|
|
3795
|
+
for (var r of _t(e))
|
|
3796
|
+
t.indexOf(r) < 0 && pi.call(e, r) && (n[r] = e[r]);
|
|
3680
3797
|
return n;
|
|
3681
3798
|
};
|
|
3682
|
-
const
|
|
3799
|
+
const yi = {
|
|
3683
3800
|
number: {
|
|
3684
3801
|
scientific: { notation: "scientific" },
|
|
3685
3802
|
engineering: { notation: "engineering" },
|
|
@@ -3709,102 +3826,102 @@ const mi = {
|
|
|
3709
3826
|
}
|
|
3710
3827
|
}
|
|
3711
3828
|
};
|
|
3712
|
-
function
|
|
3829
|
+
function vi({ locale: e, id: t }) {
|
|
3713
3830
|
console.warn(
|
|
3714
3831
|
`[svelte-i18n] The message "${t}" was not found in "${fe(
|
|
3715
3832
|
e
|
|
3716
|
-
).join('", "')}".${
|
|
3833
|
+
).join('", "')}".${Ie(U()) ? `
|
|
3717
3834
|
|
|
3718
3835
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3719
3836
|
);
|
|
3720
3837
|
}
|
|
3721
|
-
const
|
|
3838
|
+
const Ei = {
|
|
3722
3839
|
fallbackLocale: null,
|
|
3723
3840
|
loadingDelay: 200,
|
|
3724
|
-
formats:
|
|
3841
|
+
formats: yi,
|
|
3725
3842
|
warnOnMissingMessages: !0,
|
|
3726
3843
|
handleMissingMessage: void 0,
|
|
3727
3844
|
ignoreTag: !0
|
|
3728
|
-
}, le =
|
|
3845
|
+
}, le = Ei;
|
|
3729
3846
|
function ne() {
|
|
3730
3847
|
return le;
|
|
3731
3848
|
}
|
|
3732
|
-
function
|
|
3733
|
-
const t = e, { formats: n } = t, r =
|
|
3849
|
+
function _i(e) {
|
|
3850
|
+
const t = e, { formats: n } = t, r = bi(t, ["formats"]);
|
|
3734
3851
|
let i = e.fallbackLocale;
|
|
3735
3852
|
if (e.initialLocale)
|
|
3736
3853
|
try {
|
|
3737
|
-
|
|
3854
|
+
fn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3738
3855
|
} catch (a) {
|
|
3739
3856
|
console.warn(
|
|
3740
3857
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3741
3858
|
);
|
|
3742
3859
|
}
|
|
3743
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3860
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = vi : console.warn(
|
|
3744
3861
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3745
|
-
)), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)),
|
|
3862
|
+
)), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), j.set(i);
|
|
3746
3863
|
}
|
|
3747
|
-
const
|
|
3748
|
-
var
|
|
3864
|
+
const Ue = Ce(!1);
|
|
3865
|
+
var xi = Object.defineProperty, ki = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ai = (e, t) => {
|
|
3749
3866
|
for (var n in t || (t = {}))
|
|
3750
|
-
|
|
3751
|
-
if (
|
|
3752
|
-
for (var n of
|
|
3753
|
-
|
|
3867
|
+
wi.call(t, n) && kt(e, n, t[n]);
|
|
3868
|
+
if (xt)
|
|
3869
|
+
for (var n of xt(t))
|
|
3870
|
+
Ii.call(t, n) && kt(e, n, t[n]);
|
|
3754
3871
|
return e;
|
|
3755
|
-
},
|
|
3756
|
-
let
|
|
3757
|
-
const
|
|
3758
|
-
function
|
|
3872
|
+
}, Si = (e, t) => ki(e, Ti(t));
|
|
3873
|
+
let Ke;
|
|
3874
|
+
const Ae = Ce(null);
|
|
3875
|
+
function Tt(e) {
|
|
3759
3876
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3760
3877
|
}
|
|
3761
3878
|
function fe(e, t = ne().fallbackLocale) {
|
|
3762
|
-
const n =
|
|
3763
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3879
|
+
const n = Tt(e);
|
|
3880
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tt(t)])] : n;
|
|
3764
3881
|
}
|
|
3765
|
-
function
|
|
3766
|
-
return
|
|
3882
|
+
function U() {
|
|
3883
|
+
return Ke != null ? Ke : void 0;
|
|
3767
3884
|
}
|
|
3768
|
-
|
|
3769
|
-
|
|
3885
|
+
Ae.subscribe((e) => {
|
|
3886
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3770
3887
|
});
|
|
3771
|
-
const
|
|
3772
|
-
if (e &&
|
|
3888
|
+
const Ci = (e) => {
|
|
3889
|
+
if (e && hi(e) && Ie(e)) {
|
|
3773
3890
|
const { loadingDelay: t } = ne();
|
|
3774
3891
|
let n;
|
|
3775
|
-
return typeof window != "undefined" &&
|
|
3776
|
-
() =>
|
|
3892
|
+
return typeof window != "undefined" && U() != null && t ? n = window.setTimeout(
|
|
3893
|
+
() => Ue.set(!0),
|
|
3777
3894
|
t
|
|
3778
|
-
) :
|
|
3779
|
-
|
|
3895
|
+
) : Ue.set(!0), vn(e).then(() => {
|
|
3896
|
+
Ae.set(e);
|
|
3780
3897
|
}).finally(() => {
|
|
3781
|
-
clearTimeout(n),
|
|
3898
|
+
clearTimeout(n), Ue.set(!1);
|
|
3782
3899
|
});
|
|
3783
3900
|
}
|
|
3784
|
-
return
|
|
3785
|
-
},
|
|
3786
|
-
set:
|
|
3787
|
-
}),
|
|
3901
|
+
return Ae.set(e);
|
|
3902
|
+
}, j = Si(Ai({}, Ae), {
|
|
3903
|
+
set: Ci
|
|
3904
|
+
}), Le = (e) => {
|
|
3788
3905
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3789
3906
|
return (r) => {
|
|
3790
3907
|
const i = JSON.stringify(r);
|
|
3791
3908
|
return i in t ? t[i] : t[i] = e(r);
|
|
3792
3909
|
};
|
|
3793
3910
|
};
|
|
3794
|
-
var
|
|
3911
|
+
var Bi = Object.defineProperty, Se = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
|
|
3795
3912
|
for (var n in t || (t = {}))
|
|
3796
|
-
|
|
3797
|
-
if (
|
|
3798
|
-
for (var n of
|
|
3799
|
-
|
|
3913
|
+
En.call(t, n) && wt(e, n, t[n]);
|
|
3914
|
+
if (Se)
|
|
3915
|
+
for (var n of Se(t))
|
|
3916
|
+
_n.call(t, n) && wt(e, n, t[n]);
|
|
3800
3917
|
return e;
|
|
3801
3918
|
}, ae = (e, t) => {
|
|
3802
3919
|
var n = {};
|
|
3803
3920
|
for (var r in e)
|
|
3804
|
-
|
|
3805
|
-
if (e != null &&
|
|
3806
|
-
for (var r of
|
|
3807
|
-
t.indexOf(r) < 0 &&
|
|
3921
|
+
En.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3922
|
+
if (e != null && Se)
|
|
3923
|
+
for (var r of Se(e))
|
|
3924
|
+
t.indexOf(r) < 0 && _n.call(e, r) && (n[r] = e[r]);
|
|
3808
3925
|
return n;
|
|
3809
3926
|
};
|
|
3810
3927
|
const de = (e, t) => {
|
|
@@ -3812,21 +3929,21 @@ const de = (e, t) => {
|
|
|
3812
3929
|
if (e in n && t in n[e])
|
|
3813
3930
|
return n[e][t];
|
|
3814
3931
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3815
|
-
},
|
|
3932
|
+
}, Hi = Le(
|
|
3816
3933
|
(e) => {
|
|
3817
3934
|
var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
|
|
3818
3935
|
if (n == null)
|
|
3819
3936
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3820
3937
|
return r && (i = de("number", r)), new Intl.NumberFormat(n, i);
|
|
3821
3938
|
}
|
|
3822
|
-
),
|
|
3939
|
+
), Li = Le(
|
|
3823
3940
|
(e) => {
|
|
3824
3941
|
var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
|
|
3825
3942
|
if (n == null)
|
|
3826
3943
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3827
3944
|
return r ? i = de("date", r) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3828
3945
|
}
|
|
3829
|
-
),
|
|
3946
|
+
), Mi = Le(
|
|
3830
3947
|
(e) => {
|
|
3831
3948
|
var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
|
|
3832
3949
|
if (n == null)
|
|
@@ -3835,48 +3952,48 @@ const de = (e, t) => {
|
|
|
3835
3952
|
);
|
|
3836
3953
|
return r ? i = de("time", r) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3837
3954
|
}
|
|
3838
|
-
),
|
|
3955
|
+
), Pi = (e = {}) => {
|
|
3839
3956
|
var t = e, {
|
|
3840
|
-
locale: n =
|
|
3957
|
+
locale: n = U()
|
|
3841
3958
|
} = t, r = ae(t, [
|
|
3842
3959
|
"locale"
|
|
3843
3960
|
]);
|
|
3844
|
-
return
|
|
3845
|
-
},
|
|
3961
|
+
return Hi(nt({ locale: n }, r));
|
|
3962
|
+
}, Oi = (e = {}) => {
|
|
3846
3963
|
var t = e, {
|
|
3847
|
-
locale: n =
|
|
3964
|
+
locale: n = U()
|
|
3848
3965
|
} = t, r = ae(t, [
|
|
3849
3966
|
"locale"
|
|
3850
3967
|
]);
|
|
3851
|
-
return
|
|
3852
|
-
},
|
|
3968
|
+
return Li(nt({ locale: n }, r));
|
|
3969
|
+
}, Di = (e = {}) => {
|
|
3853
3970
|
var t = e, {
|
|
3854
|
-
locale: n =
|
|
3971
|
+
locale: n = U()
|
|
3855
3972
|
} = t, r = ae(t, [
|
|
3856
3973
|
"locale"
|
|
3857
3974
|
]);
|
|
3858
|
-
return
|
|
3859
|
-
},
|
|
3975
|
+
return Mi(nt({ locale: n }, r));
|
|
3976
|
+
}, Ni = Le(
|
|
3860
3977
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3861
|
-
(e, t =
|
|
3978
|
+
(e, t = U()) => new fn(e, t, ne().formats, {
|
|
3862
3979
|
ignoreTag: ne().ignoreTag
|
|
3863
3980
|
})
|
|
3864
|
-
),
|
|
3981
|
+
), Ri = (e, t = {}) => {
|
|
3865
3982
|
var n, r, i, a;
|
|
3866
3983
|
let s = t;
|
|
3867
3984
|
typeof e == "object" && (s = e, e = s.id);
|
|
3868
3985
|
const {
|
|
3869
3986
|
values: o,
|
|
3870
|
-
locale:
|
|
3871
|
-
default:
|
|
3987
|
+
locale: u = U(),
|
|
3988
|
+
default: l
|
|
3872
3989
|
} = s;
|
|
3873
|
-
if (
|
|
3990
|
+
if (u == null)
|
|
3874
3991
|
throw new Error(
|
|
3875
3992
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3876
3993
|
);
|
|
3877
|
-
let c =
|
|
3994
|
+
let c = gn(e, u);
|
|
3878
3995
|
if (!c)
|
|
3879
|
-
c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale:
|
|
3996
|
+
c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3880
3997
|
else if (typeof c != "string")
|
|
3881
3998
|
return console.warn(
|
|
3882
3999
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3885,7 +4002,7 @@ const de = (e, t) => {
|
|
|
3885
4002
|
return c;
|
|
3886
4003
|
let h = c;
|
|
3887
4004
|
try {
|
|
3888
|
-
h =
|
|
4005
|
+
h = Ni(c, u).format(o);
|
|
3889
4006
|
} catch (d) {
|
|
3890
4007
|
d instanceof Error && console.warn(
|
|
3891
4008
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3893,20 +4010,20 @@ const de = (e, t) => {
|
|
|
3893
4010
|
);
|
|
3894
4011
|
}
|
|
3895
4012
|
return h;
|
|
3896
|
-
},
|
|
3897
|
-
ie([
|
|
3898
|
-
ie([
|
|
3899
|
-
ie([
|
|
3900
|
-
ie([
|
|
3901
|
-
function
|
|
3902
|
-
|
|
3903
|
-
}
|
|
3904
|
-
function
|
|
3905
|
-
|
|
4013
|
+
}, zi = (e, t) => Di(t).format(e), Ui = (e, t) => Oi(t).format(e), Fi = (e, t) => Pi(t).format(e), Gi = (e, t = U()) => gn(e, t), $i = ie([j, me], () => Ri);
|
|
4014
|
+
ie([j], () => zi);
|
|
4015
|
+
ie([j], () => Ui);
|
|
4016
|
+
ie([j], () => Fi);
|
|
4017
|
+
ie([j, me], () => Gi);
|
|
4018
|
+
function It(e, t) {
|
|
4019
|
+
bn(e, t);
|
|
4020
|
+
}
|
|
4021
|
+
function ji(e) {
|
|
4022
|
+
_i({
|
|
3906
4023
|
fallbackLocale: "en"
|
|
3907
|
-
}),
|
|
4024
|
+
}), j.set(e);
|
|
3908
4025
|
}
|
|
3909
|
-
const
|
|
4026
|
+
const At = {
|
|
3910
4027
|
en: {
|
|
3911
4028
|
VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
|
|
3912
4029
|
CustomerDocumentIdMissing: "The document ID is missing",
|
|
@@ -4322,10 +4439,10 @@ const It = {
|
|
|
4322
4439
|
CardTokenIsBlocked: "Kart tokeni bloklanıb"
|
|
4323
4440
|
}
|
|
4324
4441
|
};
|
|
4325
|
-
function
|
|
4326
|
-
|
|
4442
|
+
function Vi(e) {
|
|
4443
|
+
zt(e, "svelte-9kch43", '.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 .HostContainer img{width:300px}');
|
|
4327
4444
|
}
|
|
4328
|
-
const
|
|
4445
|
+
const Wi = (e) => ({}), St = (e) => ({}), qi = (e) => ({}), Ct = (e) => ({}), Xi = (e) => ({}), Bt = (e) => ({}), Zi = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
|
|
4329
4446
|
function Lt(e) {
|
|
4330
4447
|
let t, n, r, i, a;
|
|
4331
4448
|
const s = (
|
|
@@ -4336,12 +4453,12 @@ function Lt(e) {
|
|
|
4336
4453
|
e,
|
|
4337
4454
|
/*$$scope*/
|
|
4338
4455
|
e[15],
|
|
4339
|
-
|
|
4340
|
-
),
|
|
4456
|
+
Ht
|
|
4457
|
+
), u = o || Ji(e), l = (
|
|
4341
4458
|
/*#slots*/
|
|
4342
4459
|
e[16].title
|
|
4343
4460
|
), c = pe(
|
|
4344
|
-
|
|
4461
|
+
l,
|
|
4345
4462
|
e,
|
|
4346
4463
|
/*$$scope*/
|
|
4347
4464
|
e[15],
|
|
@@ -4354,8 +4471,8 @@ function Lt(e) {
|
|
|
4354
4471
|
e,
|
|
4355
4472
|
/*$$scope*/
|
|
4356
4473
|
e[15],
|
|
4357
|
-
|
|
4358
|
-
), f = d ||
|
|
4474
|
+
Ct
|
|
4475
|
+
), f = d || Qi(e), g = (
|
|
4359
4476
|
/*#slots*/
|
|
4360
4477
|
e[16].button
|
|
4361
4478
|
), k = pe(
|
|
@@ -4363,14 +4480,14 @@ function Lt(e) {
|
|
|
4363
4480
|
e,
|
|
4364
4481
|
/*$$scope*/
|
|
4365
4482
|
e[15],
|
|
4366
|
-
|
|
4367
|
-
), E = k ||
|
|
4483
|
+
St
|
|
4484
|
+
), E = k || ea(e);
|
|
4368
4485
|
return {
|
|
4369
4486
|
c() {
|
|
4370
|
-
t =
|
|
4487
|
+
t = H("div"), u && u.c(), n = $(), c && c.c(), r = $(), f && f.c(), i = $(), E && E.c(), T(t, "class", "CashierErrorContent");
|
|
4371
4488
|
},
|
|
4372
4489
|
m(m, v) {
|
|
4373
|
-
|
|
4490
|
+
I(m, t, v), u && u.m(t, null), B(t, n), c && c.m(t, null), B(t, r), f && f.m(t, null), B(t, i), E && E.m(t, null), a = !0;
|
|
4374
4491
|
},
|
|
4375
4492
|
p(m, v) {
|
|
4376
4493
|
o ? o.p && (!a || v & /*$$scope*/
|
|
@@ -4385,26 +4502,26 @@ function Lt(e) {
|
|
|
4385
4502
|
/*$$scope*/
|
|
4386
4503
|
m[15],
|
|
4387
4504
|
v,
|
|
4388
|
-
|
|
4505
|
+
Zi
|
|
4389
4506
|
) : ve(
|
|
4390
4507
|
/*$$scope*/
|
|
4391
4508
|
m[15]
|
|
4392
4509
|
),
|
|
4393
|
-
|
|
4394
|
-
) :
|
|
4395
|
-
1) &&
|
|
4510
|
+
Ht
|
|
4511
|
+
) : u && u.p && (!a || v & /*assetsurl*/
|
|
4512
|
+
1) && u.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
|
|
4396
4513
|
32768) && ye(
|
|
4397
4514
|
c,
|
|
4398
|
-
|
|
4515
|
+
l,
|
|
4399
4516
|
m,
|
|
4400
4517
|
/*$$scope*/
|
|
4401
4518
|
m[15],
|
|
4402
4519
|
a ? be(
|
|
4403
|
-
|
|
4520
|
+
l,
|
|
4404
4521
|
/*$$scope*/
|
|
4405
4522
|
m[15],
|
|
4406
4523
|
v,
|
|
4407
|
-
|
|
4524
|
+
Xi
|
|
4408
4525
|
) : ve(
|
|
4409
4526
|
/*$$scope*/
|
|
4410
4527
|
m[15]
|
|
@@ -4422,12 +4539,12 @@ function Lt(e) {
|
|
|
4422
4539
|
/*$$scope*/
|
|
4423
4540
|
m[15],
|
|
4424
4541
|
v,
|
|
4425
|
-
|
|
4542
|
+
qi
|
|
4426
4543
|
) : ve(
|
|
4427
4544
|
/*$$scope*/
|
|
4428
4545
|
m[15]
|
|
4429
4546
|
),
|
|
4430
|
-
|
|
4547
|
+
Ct
|
|
4431
4548
|
) : f && f.p && (!a || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, shownError, errormessage*/
|
|
4432
4549
|
486) && f.p(m, a ? v : -1), k ? k.p && (!a || v & /*$$scope*/
|
|
4433
4550
|
32768) && ye(
|
|
@@ -4441,73 +4558,95 @@ function Lt(e) {
|
|
|
4441
4558
|
/*$$scope*/
|
|
4442
4559
|
m[15],
|
|
4443
4560
|
v,
|
|
4444
|
-
|
|
4561
|
+
Wi
|
|
4445
4562
|
) : ve(
|
|
4446
4563
|
/*$$scope*/
|
|
4447
4564
|
m[15]
|
|
4448
4565
|
),
|
|
4449
|
-
|
|
4566
|
+
St
|
|
4450
4567
|
) : E && E.p && (!a || v & /*$_*/
|
|
4451
4568
|
256) && E.p(m, a ? v : -1);
|
|
4452
4569
|
},
|
|
4453
4570
|
i(m) {
|
|
4454
|
-
a || (
|
|
4571
|
+
a || (M(u, m), M(c, m), M(f, m), M(E, m), a = !0);
|
|
4455
4572
|
},
|
|
4456
4573
|
o(m) {
|
|
4457
|
-
|
|
4574
|
+
N(u, m), N(c, m), N(f, m), N(E, m), a = !1;
|
|
4458
4575
|
},
|
|
4459
4576
|
d(m) {
|
|
4460
|
-
m &&
|
|
4577
|
+
m && w(t), u && u.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
|
|
4461
4578
|
}
|
|
4462
4579
|
};
|
|
4463
4580
|
}
|
|
4464
|
-
function
|
|
4581
|
+
function Mt(e) {
|
|
4465
4582
|
let t, n;
|
|
4466
|
-
return {
|
|
4583
|
+
return t = new Zt({
|
|
4584
|
+
props: {
|
|
4585
|
+
src: `${/*assetsurl*/
|
|
4586
|
+
e[0]}/error-general-icon.png`,
|
|
4587
|
+
width: "300px",
|
|
4588
|
+
alt: "error"
|
|
4589
|
+
}
|
|
4590
|
+
}), {
|
|
4467
4591
|
c() {
|
|
4468
|
-
t
|
|
4469
|
-
e[0]}/error-general-icon.png`) || Ee(t, "src", n), Ee(t, "width", "300px"), Ee(t, "alt", "error");
|
|
4592
|
+
Gn(t.$$.fragment);
|
|
4470
4593
|
},
|
|
4471
4594
|
m(r, i) {
|
|
4472
|
-
|
|
4595
|
+
$t(t, r, i), n = !0;
|
|
4473
4596
|
},
|
|
4474
4597
|
p(r, i) {
|
|
4598
|
+
const a = {};
|
|
4475
4599
|
i & /*assetsurl*/
|
|
4476
|
-
1 &&
|
|
4477
|
-
r[0]}/error-general-icon.png`)
|
|
4600
|
+
1 && (a.src = `${/*assetsurl*/
|
|
4601
|
+
r[0]}/error-general-icon.png`), t.$set(a);
|
|
4602
|
+
},
|
|
4603
|
+
i(r) {
|
|
4604
|
+
n || (M(t.$$.fragment, r), n = !0);
|
|
4605
|
+
},
|
|
4606
|
+
o(r) {
|
|
4607
|
+
N(t.$$.fragment, r), n = !1;
|
|
4478
4608
|
},
|
|
4479
4609
|
d(r) {
|
|
4480
|
-
|
|
4610
|
+
jt(t, r);
|
|
4481
4611
|
}
|
|
4482
4612
|
};
|
|
4483
4613
|
}
|
|
4484
|
-
function
|
|
4485
|
-
let t, n = (
|
|
4614
|
+
function Ji(e) {
|
|
4615
|
+
let t, n, r = (
|
|
4486
4616
|
/*assetsurl*/
|
|
4487
|
-
e[0] &&
|
|
4617
|
+
e[0] && Mt(e)
|
|
4488
4618
|
);
|
|
4489
4619
|
return {
|
|
4490
4620
|
c() {
|
|
4491
|
-
|
|
4621
|
+
r && r.c(), t = et();
|
|
4492
4622
|
},
|
|
4493
|
-
m(
|
|
4494
|
-
|
|
4623
|
+
m(i, a) {
|
|
4624
|
+
r && r.m(i, a), I(i, t, a), n = !0;
|
|
4495
4625
|
},
|
|
4496
|
-
p(
|
|
4626
|
+
p(i, a) {
|
|
4497
4627
|
/*assetsurl*/
|
|
4498
|
-
|
|
4628
|
+
i[0] ? r ? (r.p(i, a), a & /*assetsurl*/
|
|
4629
|
+
1 && M(r, 1)) : (r = Mt(i), r.c(), M(r, 1), r.m(t.parentNode, t)) : r && (Ft(), N(r, 1, 1, () => {
|
|
4630
|
+
r = null;
|
|
4631
|
+
}), Gt());
|
|
4499
4632
|
},
|
|
4500
|
-
|
|
4501
|
-
|
|
4633
|
+
i(i) {
|
|
4634
|
+
n || (M(r), n = !0);
|
|
4635
|
+
},
|
|
4636
|
+
o(i) {
|
|
4637
|
+
N(r), n = !1;
|
|
4638
|
+
},
|
|
4639
|
+
d(i) {
|
|
4640
|
+
i && w(t), r && r.d(i);
|
|
4502
4641
|
}
|
|
4503
4642
|
};
|
|
4504
4643
|
}
|
|
4505
|
-
function
|
|
4644
|
+
function Pt(e) {
|
|
4506
4645
|
let t;
|
|
4507
4646
|
function n(a, s) {
|
|
4508
4647
|
return (
|
|
4509
4648
|
/*depositWageringAmount*/
|
|
4510
|
-
a[5] < 0 ?
|
|
4649
|
+
a[5] < 0 ? Yi : Ki
|
|
4511
4650
|
);
|
|
4512
4651
|
}
|
|
4513
4652
|
let r = n(e), i = r(e);
|
|
@@ -4516,53 +4655,53 @@ function Mt(e) {
|
|
|
4516
4655
|
i.c(), t = et();
|
|
4517
4656
|
},
|
|
4518
4657
|
m(a, s) {
|
|
4519
|
-
i.m(a, s),
|
|
4658
|
+
i.m(a, s), I(a, t, s);
|
|
4520
4659
|
},
|
|
4521
4660
|
p(a, s) {
|
|
4522
4661
|
r === (r = n(a)) && i ? i.p(a, s) : (i.d(1), i = r(a), i && (i.c(), i.m(t.parentNode, t)));
|
|
4523
4662
|
},
|
|
4524
4663
|
d(a) {
|
|
4525
|
-
a &&
|
|
4664
|
+
a && w(t), i.d(a);
|
|
4526
4665
|
}
|
|
4527
4666
|
};
|
|
4528
4667
|
}
|
|
4529
|
-
function
|
|
4668
|
+
function Ki(e) {
|
|
4530
4669
|
let t, n = (
|
|
4531
4670
|
/*$_*/
|
|
4532
4671
|
e[8]("DepositWageringLimitText") + ""
|
|
4533
4672
|
), r, i, a = (
|
|
4534
4673
|
/*depositWageringAmount*/
|
|
4535
|
-
e[5] > 0 &&
|
|
4674
|
+
e[5] > 0 && Ot(e)
|
|
4536
4675
|
);
|
|
4537
4676
|
return {
|
|
4538
4677
|
c() {
|
|
4539
|
-
t =
|
|
4678
|
+
t = H("span"), r = z(n), i = $(), a && a.c(), T(t, "class", "CashierErrorText");
|
|
4540
4679
|
},
|
|
4541
4680
|
m(s, o) {
|
|
4542
|
-
|
|
4681
|
+
I(s, t, o), B(t, r), B(t, i), a && a.m(t, null);
|
|
4543
4682
|
},
|
|
4544
4683
|
p(s, o) {
|
|
4545
4684
|
o & /*$_*/
|
|
4546
4685
|
256 && n !== (n = /*$_*/
|
|
4547
4686
|
s[8]("DepositWageringLimitText") + "") && Y(r, n), /*depositWageringAmount*/
|
|
4548
|
-
s[5] > 0 ? a ? a.p(s, o) : (a =
|
|
4687
|
+
s[5] > 0 ? a ? a.p(s, o) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4549
4688
|
},
|
|
4550
4689
|
d(s) {
|
|
4551
|
-
s &&
|
|
4690
|
+
s && w(t), a && a.d();
|
|
4552
4691
|
}
|
|
4553
4692
|
};
|
|
4554
4693
|
}
|
|
4555
|
-
function
|
|
4694
|
+
function Yi(e) {
|
|
4556
4695
|
let t, n, r = (
|
|
4557
4696
|
/*$_*/
|
|
4558
4697
|
e[8]("DepositWageringFetching") + ""
|
|
4559
4698
|
), i;
|
|
4560
4699
|
return {
|
|
4561
4700
|
c() {
|
|
4562
|
-
t =
|
|
4701
|
+
t = H("div"), n = H("span"), i = z(r), T(n, "class", "CashierErrorText LoadingText"), T(t, "class", "WageringFetch");
|
|
4563
4702
|
},
|
|
4564
4703
|
m(a, s) {
|
|
4565
|
-
|
|
4704
|
+
I(a, t, s), B(t, n), B(n, i);
|
|
4566
4705
|
},
|
|
4567
4706
|
p(a, s) {
|
|
4568
4707
|
s & /*$_*/
|
|
@@ -4570,24 +4709,24 @@ function qi(e) {
|
|
|
4570
4709
|
a[8]("DepositWageringFetching") + "") && Y(i, r);
|
|
4571
4710
|
},
|
|
4572
4711
|
d(a) {
|
|
4573
|
-
a &&
|
|
4712
|
+
a && w(t);
|
|
4574
4713
|
}
|
|
4575
4714
|
};
|
|
4576
4715
|
}
|
|
4577
|
-
function
|
|
4716
|
+
function Ot(e) {
|
|
4578
4717
|
let t, n, r;
|
|
4579
4718
|
return {
|
|
4580
4719
|
c() {
|
|
4581
|
-
t =
|
|
4720
|
+
t = z(
|
|
4582
4721
|
/*depositWageringAmount*/
|
|
4583
4722
|
e[5]
|
|
4584
|
-
), n =
|
|
4723
|
+
), n = $(), r = z(
|
|
4585
4724
|
/*depositWageringCurrency*/
|
|
4586
4725
|
e[6]
|
|
4587
4726
|
);
|
|
4588
4727
|
},
|
|
4589
4728
|
m(i, a) {
|
|
4590
|
-
|
|
4729
|
+
I(i, t, a), I(i, n, a), I(i, r, a);
|
|
4591
4730
|
},
|
|
4592
4731
|
p(i, a) {
|
|
4593
4732
|
a & /*depositWageringAmount*/
|
|
@@ -4603,11 +4742,11 @@ function Pt(e) {
|
|
|
4603
4742
|
);
|
|
4604
4743
|
},
|
|
4605
4744
|
d(i) {
|
|
4606
|
-
i && (
|
|
4745
|
+
i && (w(t), w(n), w(r));
|
|
4607
4746
|
}
|
|
4608
4747
|
};
|
|
4609
4748
|
}
|
|
4610
|
-
function
|
|
4749
|
+
function Qi(e) {
|
|
4611
4750
|
let t, n = (
|
|
4612
4751
|
/*errorcode*/
|
|
4613
4752
|
(e[1] ? (
|
|
@@ -4619,17 +4758,17 @@ function Xi(e) {
|
|
|
4619
4758
|
)) + ""
|
|
4620
4759
|
), r, i, a, s = (
|
|
4621
4760
|
/*errorcode*/
|
|
4622
|
-
e[1] == "DepositWageringLimit" &&
|
|
4761
|
+
e[1] == "DepositWageringLimit" && Pt(e)
|
|
4623
4762
|
);
|
|
4624
4763
|
return {
|
|
4625
4764
|
c() {
|
|
4626
|
-
t =
|
|
4765
|
+
t = H("span"), r = z(n), i = $(), s && s.c(), a = et(), T(t, "class", "CashierErrorText");
|
|
4627
4766
|
},
|
|
4628
|
-
m(o,
|
|
4629
|
-
|
|
4767
|
+
m(o, u) {
|
|
4768
|
+
I(o, t, u), B(t, r), I(o, i, u), s && s.m(o, u), I(o, a, u);
|
|
4630
4769
|
},
|
|
4631
|
-
p(o,
|
|
4632
|
-
|
|
4770
|
+
p(o, u) {
|
|
4771
|
+
u & /*errorcode, shownError, errormessage*/
|
|
4633
4772
|
134 && n !== (n = /*errorcode*/
|
|
4634
4773
|
(o[1] ? (
|
|
4635
4774
|
/*shownError*/
|
|
@@ -4638,92 +4777,92 @@ function Xi(e) {
|
|
|
4638
4777
|
/*errormessage*/
|
|
4639
4778
|
o[2]
|
|
4640
4779
|
)) + "") && Y(r, n), /*errorcode*/
|
|
4641
|
-
o[1] == "DepositWageringLimit" ? s ? s.p(o,
|
|
4780
|
+
o[1] == "DepositWageringLimit" ? s ? s.p(o, u) : (s = Pt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
|
|
4642
4781
|
},
|
|
4643
4782
|
d(o) {
|
|
4644
|
-
o && (
|
|
4783
|
+
o && (w(t), w(i), w(a)), s && s.d(o);
|
|
4645
4784
|
}
|
|
4646
4785
|
};
|
|
4647
4786
|
}
|
|
4648
|
-
function
|
|
4787
|
+
function ea(e) {
|
|
4649
4788
|
let t, n, r = (
|
|
4650
4789
|
/*$_*/
|
|
4651
4790
|
e[8]("errorGeneralButton") + ""
|
|
4652
4791
|
), i, a, s;
|
|
4653
4792
|
return {
|
|
4654
4793
|
c() {
|
|
4655
|
-
t =
|
|
4794
|
+
t = H("button"), n = H("span"), i = z(r), T(t, "class", "CashierErrorButton");
|
|
4656
4795
|
},
|
|
4657
|
-
m(o,
|
|
4658
|
-
|
|
4796
|
+
m(o, u) {
|
|
4797
|
+
I(o, t, u), B(t, n), B(n, i), a || (s = Ut(
|
|
4659
4798
|
t,
|
|
4660
4799
|
"click",
|
|
4661
4800
|
/*close*/
|
|
4662
4801
|
e[9]
|
|
4663
4802
|
), a = !0);
|
|
4664
4803
|
},
|
|
4665
|
-
p(o,
|
|
4666
|
-
|
|
4804
|
+
p(o, u) {
|
|
4805
|
+
u & /*$_*/
|
|
4667
4806
|
256 && r !== (r = /*$_*/
|
|
4668
4807
|
o[8]("errorGeneralButton") + "") && Y(i, r);
|
|
4669
4808
|
},
|
|
4670
4809
|
d(o) {
|
|
4671
|
-
o &&
|
|
4810
|
+
o && w(t), a = !1, s();
|
|
4672
4811
|
}
|
|
4673
4812
|
};
|
|
4674
4813
|
}
|
|
4675
|
-
function
|
|
4814
|
+
function ta(e) {
|
|
4676
4815
|
let t, n, r = !/*isLoading*/
|
|
4677
4816
|
e[4] && Lt(e);
|
|
4678
4817
|
return {
|
|
4679
4818
|
c() {
|
|
4680
|
-
t =
|
|
4819
|
+
t = H("div"), r && r.c(), T(t, "class", "CashierError");
|
|
4681
4820
|
},
|
|
4682
4821
|
m(i, a) {
|
|
4683
|
-
|
|
4822
|
+
I(i, t, a), r && r.m(t, null), e[17](t), n = !0;
|
|
4684
4823
|
},
|
|
4685
4824
|
p(i, [a]) {
|
|
4686
4825
|
/*isLoading*/
|
|
4687
|
-
i[4] ? r && (
|
|
4826
|
+
i[4] ? r && (Ft(), N(r, 1, 1, () => {
|
|
4688
4827
|
r = null;
|
|
4689
|
-
}),
|
|
4690
|
-
16 &&
|
|
4828
|
+
}), Gt()) : r ? (r.p(i, a), a & /*isLoading*/
|
|
4829
|
+
16 && M(r, 1)) : (r = Lt(i), r.c(), M(r, 1), r.m(t, null));
|
|
4691
4830
|
},
|
|
4692
4831
|
i(i) {
|
|
4693
|
-
n || (
|
|
4832
|
+
n || (M(r), n = !0);
|
|
4694
4833
|
},
|
|
4695
4834
|
o(i) {
|
|
4696
|
-
|
|
4835
|
+
N(r), n = !1;
|
|
4697
4836
|
},
|
|
4698
4837
|
d(i) {
|
|
4699
|
-
i &&
|
|
4838
|
+
i && w(t), r && r.d(), e[17](null);
|
|
4700
4839
|
}
|
|
4701
4840
|
};
|
|
4702
4841
|
}
|
|
4703
|
-
function
|
|
4842
|
+
function na(e, t, n) {
|
|
4704
4843
|
let r;
|
|
4705
|
-
|
|
4706
|
-
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode:
|
|
4707
|
-
const
|
|
4708
|
-
|
|
4709
|
-
},
|
|
4710
|
-
n(4,
|
|
4844
|
+
Hn(e, $i, (b) => n(8, r = b));
|
|
4845
|
+
let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: u = "" } = t, { errormessage: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, A = !1;
|
|
4846
|
+
const F = () => {
|
|
4847
|
+
ji(o);
|
|
4848
|
+
}, D = () => {
|
|
4849
|
+
n(4, A = !0);
|
|
4711
4850
|
let b = d;
|
|
4712
4851
|
if (b)
|
|
4713
|
-
return fetch(b).then((
|
|
4714
|
-
Object.keys(
|
|
4715
|
-
|
|
4852
|
+
return fetch(b).then((W) => W.json()).then((W) => {
|
|
4853
|
+
Object.keys(W).forEach((rt) => {
|
|
4854
|
+
It(rt, W[rt]);
|
|
4716
4855
|
});
|
|
4717
|
-
}).catch((
|
|
4718
|
-
console.log(
|
|
4856
|
+
}).catch((W) => {
|
|
4857
|
+
console.log(W);
|
|
4719
4858
|
}).finally(() => {
|
|
4720
|
-
n(4,
|
|
4859
|
+
n(4, A = !1);
|
|
4721
4860
|
});
|
|
4722
4861
|
};
|
|
4723
|
-
Object.keys(
|
|
4724
|
-
|
|
4862
|
+
Object.keys(At).forEach((b) => {
|
|
4863
|
+
It(b, At[b]);
|
|
4725
4864
|
});
|
|
4726
|
-
const
|
|
4865
|
+
const V = () => {
|
|
4727
4866
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4728
4867
|
}, se = (b) => {
|
|
4729
4868
|
if (b.data)
|
|
@@ -4732,38 +4871,38 @@ function Ki(e, t, n) {
|
|
|
4732
4871
|
n(5, E = b.data.amount), n(6, m = b.data.currency);
|
|
4733
4872
|
break;
|
|
4734
4873
|
}
|
|
4735
|
-
},
|
|
4736
|
-
n(7, v = r(`${
|
|
4874
|
+
}, xn = () => {
|
|
4875
|
+
n(7, v = r(`${u || "errorGeneralText"}`));
|
|
4737
4876
|
};
|
|
4738
|
-
|
|
4877
|
+
Nn(() => (window.addEventListener("message", se, !1), () => {
|
|
4739
4878
|
window.removeEventListener("message", se);
|
|
4740
4879
|
}));
|
|
4741
|
-
function
|
|
4742
|
-
|
|
4880
|
+
function kn(b) {
|
|
4881
|
+
Fe[b ? "unshift" : "push"](() => {
|
|
4743
4882
|
g = b, n(3, g);
|
|
4744
4883
|
});
|
|
4745
4884
|
}
|
|
4746
4885
|
return e.$$set = (b) => {
|
|
4747
|
-
"assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1,
|
|
4886
|
+
"assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, u = b.errorcode), "errormessage" in b && n(2, l = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
|
|
4748
4887
|
}, e.$$.update = () => {
|
|
4749
4888
|
e.$$.dirty & /*lang*/
|
|
4750
|
-
1024 && o &&
|
|
4751
|
-
2056 && c && g &&
|
|
4752
|
-
4104 && h && g &&
|
|
4753
|
-
16392 && f && g &&
|
|
4754
|
-
8192 && d &&
|
|
4755
|
-
16 && !
|
|
4889
|
+
1024 && o && F(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4890
|
+
2056 && c && g && Vn(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4891
|
+
4104 && h && g && Wn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4892
|
+
16392 && f && g && qn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
|
|
4893
|
+
8192 && d && D(), e.$$.dirty & /*isLoading*/
|
|
4894
|
+
16 && !A && xn();
|
|
4756
4895
|
}, [
|
|
4757
4896
|
s,
|
|
4758
|
-
l,
|
|
4759
4897
|
u,
|
|
4898
|
+
l,
|
|
4760
4899
|
g,
|
|
4761
|
-
|
|
4900
|
+
A,
|
|
4762
4901
|
E,
|
|
4763
4902
|
m,
|
|
4764
4903
|
v,
|
|
4765
4904
|
r,
|
|
4766
|
-
|
|
4905
|
+
V,
|
|
4767
4906
|
o,
|
|
4768
4907
|
c,
|
|
4769
4908
|
h,
|
|
@@ -4771,17 +4910,17 @@ function Ki(e, t, n) {
|
|
|
4771
4910
|
f,
|
|
4772
4911
|
a,
|
|
4773
4912
|
i,
|
|
4774
|
-
|
|
4913
|
+
kn
|
|
4775
4914
|
];
|
|
4776
4915
|
}
|
|
4777
|
-
class
|
|
4916
|
+
class ra extends Xt {
|
|
4778
4917
|
constructor(t) {
|
|
4779
|
-
super(),
|
|
4918
|
+
super(), Vt(
|
|
4780
4919
|
this,
|
|
4781
4920
|
t,
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4921
|
+
na,
|
|
4922
|
+
ta,
|
|
4923
|
+
Qe,
|
|
4785
4924
|
{
|
|
4786
4925
|
assetsurl: 0,
|
|
4787
4926
|
lang: 10,
|
|
@@ -4792,59 +4931,59 @@ class Yi extends Fn {
|
|
|
4792
4931
|
translationurl: 13,
|
|
4793
4932
|
mbsource: 14
|
|
4794
4933
|
},
|
|
4795
|
-
|
|
4934
|
+
Vi
|
|
4796
4935
|
);
|
|
4797
4936
|
}
|
|
4798
4937
|
get assetsurl() {
|
|
4799
4938
|
return this.$$.ctx[0];
|
|
4800
4939
|
}
|
|
4801
4940
|
set assetsurl(t) {
|
|
4802
|
-
this.$$set({ assetsurl: t }),
|
|
4941
|
+
this.$$set({ assetsurl: t }), C();
|
|
4803
4942
|
}
|
|
4804
4943
|
get lang() {
|
|
4805
4944
|
return this.$$.ctx[10];
|
|
4806
4945
|
}
|
|
4807
4946
|
set lang(t) {
|
|
4808
|
-
this.$$set({ lang: t }),
|
|
4947
|
+
this.$$set({ lang: t }), C();
|
|
4809
4948
|
}
|
|
4810
4949
|
get errorcode() {
|
|
4811
4950
|
return this.$$.ctx[1];
|
|
4812
4951
|
}
|
|
4813
4952
|
set errorcode(t) {
|
|
4814
|
-
this.$$set({ errorcode: t }),
|
|
4953
|
+
this.$$set({ errorcode: t }), C();
|
|
4815
4954
|
}
|
|
4816
4955
|
get errormessage() {
|
|
4817
4956
|
return this.$$.ctx[2];
|
|
4818
4957
|
}
|
|
4819
4958
|
set errormessage(t) {
|
|
4820
|
-
this.$$set({ errormessage: t }),
|
|
4959
|
+
this.$$set({ errormessage: t }), C();
|
|
4821
4960
|
}
|
|
4822
4961
|
get clientstyling() {
|
|
4823
4962
|
return this.$$.ctx[11];
|
|
4824
4963
|
}
|
|
4825
4964
|
set clientstyling(t) {
|
|
4826
|
-
this.$$set({ clientstyling: t }),
|
|
4965
|
+
this.$$set({ clientstyling: t }), C();
|
|
4827
4966
|
}
|
|
4828
4967
|
get clientstylingurl() {
|
|
4829
4968
|
return this.$$.ctx[12];
|
|
4830
4969
|
}
|
|
4831
4970
|
set clientstylingurl(t) {
|
|
4832
|
-
this.$$set({ clientstylingurl: t }),
|
|
4971
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4833
4972
|
}
|
|
4834
4973
|
get translationurl() {
|
|
4835
4974
|
return this.$$.ctx[13];
|
|
4836
4975
|
}
|
|
4837
4976
|
set translationurl(t) {
|
|
4838
|
-
this.$$set({ translationurl: t }),
|
|
4977
|
+
this.$$set({ translationurl: t }), C();
|
|
4839
4978
|
}
|
|
4840
4979
|
get mbsource() {
|
|
4841
4980
|
return this.$$.ctx[14];
|
|
4842
4981
|
}
|
|
4843
4982
|
set mbsource(t) {
|
|
4844
|
-
this.$$set({ mbsource: t }),
|
|
4983
|
+
this.$$set({ mbsource: t }), C();
|
|
4845
4984
|
}
|
|
4846
4985
|
}
|
|
4847
|
-
|
|
4986
|
+
qt(ra, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4848
4987
|
export {
|
|
4849
|
-
|
|
4988
|
+
ra as default
|
|
4850
4989
|
};
|