@everymatrix/cashier-carousel 1.77.22 → 1.77.24
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/{CashierCarousel-DaHR_HCi.js → CashierCarousel-BCvvNAok.js} +804 -783
- package/components/CashierCarousel-BrkCbtIS.cjs +20 -0
- package/components/{CashierCarousel-D4tvs_aR.js → CashierCarousel-CVCi6ikE.js} +810 -789
- package/es2015/cashier-carousel.cjs +1 -1
- package/es2015/cashier-carousel.js +1 -1
- package/esnext/cashier-carousel.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-Dpu8sGLI.cjs +0 -20
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function D() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function qt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ae(e) {
|
|
10
|
+
e.forEach(qt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function yt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Kt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let we;
|
|
19
|
-
function
|
|
19
|
+
function xt(e, t) {
|
|
20
20
|
return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ir(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function er(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function qt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Lr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(er(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function S(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Nr(e, t, r) {
|
|
41
|
+
const n = $r(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = P("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Rr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function $r(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,8 +54,8 @@ function Nr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Rr(e, t) {
|
|
58
|
+
return S(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
@@ -67,7 +67,7 @@ function G(e, t, r) {
|
|
|
67
67
|
function R(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function St(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -77,23 +77,23 @@ function P(e) {
|
|
|
77
77
|
function $(e) {
|
|
78
78
|
return document.createTextNode(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function j() {
|
|
81
81
|
return $(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Be(e, t, r, n) {
|
|
84
84
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function O(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Dr(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function k(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ur(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,90 +102,90 @@ function Dr(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let be;
|
|
106
|
+
function de(e) {
|
|
107
|
+
be = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function Gr() {
|
|
110
|
+
if (!be)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return be;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function Fr(e) {
|
|
115
|
+
Gr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
117
|
const te = [], Ne = [];
|
|
118
118
|
let re = [];
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
const Tt = [], jr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Ke = !1;
|
|
121
|
+
function kr() {
|
|
122
|
+
Ke || (Ke = !0, jr.then(N));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function et(e) {
|
|
125
125
|
re.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
128
128
|
let K = 0;
|
|
129
129
|
function N() {
|
|
130
130
|
if (K !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = be;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
135
|
for (; K < te.length; ) {
|
|
136
136
|
const t = te[K];
|
|
137
|
-
K++,
|
|
137
|
+
K++, de(t), Vr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
140
|
throw te.length = 0, K = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
142
|
+
for (de(null), te.length = 0, K = 0; Ne.length; )
|
|
143
143
|
Ne.pop()();
|
|
144
144
|
for (let t = 0; t < re.length; t += 1) {
|
|
145
145
|
const r = re[t];
|
|
146
|
-
|
|
146
|
+
Xe.has(r) || (Xe.add(r), r());
|
|
147
147
|
}
|
|
148
148
|
re.length = 0;
|
|
149
149
|
} while (te.length);
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
for (; Tt.length; )
|
|
151
|
+
Tt.pop()();
|
|
152
|
+
Ke = !1, Xe.clear(), de(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Vr(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), ae(e.before_update);
|
|
157
157
|
const t = e.dirty;
|
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Xr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
163
|
re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const Wr = /* @__PURE__ */ new Set();
|
|
166
|
+
function zr(e, t) {
|
|
167
|
+
e && e.i && (Wr.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
169
|
function He(e) {
|
|
170
170
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Zr(e, t, r) {
|
|
173
173
|
const { fragment: n, after_update: i } = e.$$;
|
|
174
|
-
n && n.m(t, r),
|
|
175
|
-
const o = e.$$.on_mount.map(
|
|
176
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
177
|
-
}), i.forEach(
|
|
174
|
+
n && n.m(t, r), et(() => {
|
|
175
|
+
const o = e.$$.on_mount.map(qt).filter(yt);
|
|
176
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
177
|
+
}), i.forEach(et);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Qr(e, t) {
|
|
180
180
|
const r = e.$$;
|
|
181
|
-
r.fragment !== null && (
|
|
181
|
+
r.fragment !== null && (Xr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.$$.dirty[0] === -1 && (te.push(e),
|
|
183
|
+
function Yr(e, t) {
|
|
184
|
+
e.$$.dirty[0] === -1 && (te.push(e), kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const l =
|
|
188
|
-
|
|
186
|
+
function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
187
|
+
const l = be;
|
|
188
|
+
de(e);
|
|
189
189
|
const u = e.$$ = {
|
|
190
190
|
fragment: null,
|
|
191
191
|
ctx: [],
|
|
@@ -193,7 +193,7 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
193
193
|
props: o,
|
|
194
194
|
update: D,
|
|
195
195
|
not_equal: i,
|
|
196
|
-
bound:
|
|
196
|
+
bound: Et(),
|
|
197
197
|
// lifecycle
|
|
198
198
|
on_mount: [],
|
|
199
199
|
on_destroy: [],
|
|
@@ -202,7 +202,7 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
202
|
after_update: [],
|
|
203
203
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
204
204
|
// everything else
|
|
205
|
-
callbacks:
|
|
205
|
+
callbacks: Et(),
|
|
206
206
|
dirty: a,
|
|
207
207
|
skip_bound: !1,
|
|
208
208
|
root: t.target || l.$$.root
|
|
@@ -211,19 +211,19 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
211
211
|
let h = !1;
|
|
212
212
|
if (u.ctx = r ? r(e, t.props || {}, (p, c, ...b) => {
|
|
213
213
|
const y = b.length ? b[0] : c;
|
|
214
|
-
return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h &&
|
|
215
|
-
}) : [], u.update(), h = !0,
|
|
214
|
+
return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h && Yr(e, p)), c;
|
|
215
|
+
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
216
216
|
if (t.hydrate) {
|
|
217
|
-
const p =
|
|
217
|
+
const p = Dr(t.target);
|
|
218
218
|
u.fragment && u.fragment.l(p), p.forEach(R);
|
|
219
219
|
} else
|
|
220
220
|
u.fragment && u.fragment.c();
|
|
221
|
-
t.intro &&
|
|
221
|
+
t.intro && zr(e.$$.fragment), Zr(e, t.target, t.anchor), N();
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
de(l);
|
|
224
224
|
}
|
|
225
|
-
let
|
|
226
|
-
typeof HTMLElement == "function" && (
|
|
225
|
+
let tr;
|
|
226
|
+
typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
227
227
|
/** The Svelte component constructor */
|
|
228
228
|
$$ctor;
|
|
229
229
|
/** Slots */
|
|
@@ -265,7 +265,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
265
265
|
let o;
|
|
266
266
|
return {
|
|
267
267
|
c: function() {
|
|
268
|
-
o = P("slot"), i !== "default" &&
|
|
268
|
+
o = P("slot"), i !== "default" && O(o, "name", i);
|
|
269
269
|
},
|
|
270
270
|
/**
|
|
271
271
|
* @param {HTMLElement} target
|
|
@@ -282,12 +282,12 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
282
282
|
};
|
|
283
283
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
284
284
|
return;
|
|
285
|
-
const t = {}, r =
|
|
285
|
+
const t = {}, r = Ur(this);
|
|
286
286
|
for (const i of this.$$s)
|
|
287
287
|
i in r && (t[i] = [e(i)]);
|
|
288
288
|
for (const i of this.attributes) {
|
|
289
289
|
const o = this.$$g_p(i.name);
|
|
290
|
-
o in this.$$d || (this.$$d[o] =
|
|
290
|
+
o in this.$$d || (this.$$d[o] = Me(o, i.value, this.$$p_d, "toProp"));
|
|
291
291
|
}
|
|
292
292
|
for (const i in this.$$p_d)
|
|
293
293
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
305
305
|
this.$$r = !0;
|
|
306
306
|
for (const i in this.$$p_d)
|
|
307
307
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
308
|
-
const o =
|
|
308
|
+
const o = Me(
|
|
309
309
|
i,
|
|
310
310
|
this.$$d[i],
|
|
311
311
|
this.$$p_d,
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
327
327
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
328
328
|
// and setting attributes through setAttribute etc, this is helpful
|
|
329
329
|
attributeChangedCallback(e, t, r) {
|
|
330
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
330
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
331
331
|
}
|
|
332
332
|
disconnectedCallback() {
|
|
333
333
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
340
340
|
) || e;
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function Me(e, t, r, n) {
|
|
344
344
|
const i = r[e]?.type;
|
|
345
345
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
346
346
|
return t;
|
|
@@ -369,8 +369,8 @@ function Oe(e, t, r, n) {
|
|
|
369
369
|
return t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
let s = class extends
|
|
372
|
+
function qr(e, t, r, n, i, o) {
|
|
373
|
+
let s = class extends tr {
|
|
374
374
|
constructor() {
|
|
375
375
|
super(e, r, i), this.$$p_d = t;
|
|
376
376
|
}
|
|
@@ -386,7 +386,7 @@ function Jr(e, t, r, n, i, o) {
|
|
|
386
386
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
387
387
|
},
|
|
388
388
|
set(l) {
|
|
389
|
-
l =
|
|
389
|
+
l = Me(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
}), n.forEach((a) => {
|
|
@@ -398,7 +398,7 @@ function Jr(e, t, r, n, i, o) {
|
|
|
398
398
|
}), e.element = /** @type {any} */
|
|
399
399
|
s, s;
|
|
400
400
|
}
|
|
401
|
-
class
|
|
401
|
+
class Kr {
|
|
402
402
|
/**
|
|
403
403
|
* ### PRIVATE API
|
|
404
404
|
*
|
|
@@ -417,7 +417,7 @@ class qr {
|
|
|
417
417
|
$$set = void 0;
|
|
418
418
|
/** @returns {void} */
|
|
419
419
|
$destroy() {
|
|
420
|
-
|
|
420
|
+
Qr(this, 1), this.$destroy = D;
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -426,7 +426,7 @@ class qr {
|
|
|
426
426
|
* @returns {() => void}
|
|
427
427
|
*/
|
|
428
428
|
$on(t, r) {
|
|
429
|
-
if (!
|
|
429
|
+
if (!yt(r))
|
|
430
430
|
return D;
|
|
431
431
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
432
432
|
return n.push(r), () => {
|
|
@@ -439,22 +439,22 @@ class qr {
|
|
|
439
439
|
* @returns {void}
|
|
440
440
|
*/
|
|
441
441
|
$set(t) {
|
|
442
|
-
this.$$set && !
|
|
442
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
445
|
+
const en = "4";
|
|
446
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
|
|
447
447
|
const ee = [];
|
|
448
|
-
function
|
|
448
|
+
function tn(e, t) {
|
|
449
449
|
return {
|
|
450
|
-
subscribe:
|
|
450
|
+
subscribe: Ge(e, t).subscribe
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ge(e, t = D) {
|
|
454
454
|
let r;
|
|
455
455
|
const n = /* @__PURE__ */ new Set();
|
|
456
456
|
function i(a) {
|
|
457
|
-
if (
|
|
457
|
+
if (Kt(e, a) && (e = a, r)) {
|
|
458
458
|
const l = !ee.length;
|
|
459
459
|
for (const u of n)
|
|
460
460
|
u[1](), ee.push(u, e);
|
|
@@ -476,12 +476,12 @@ function Ue(e, t = D) {
|
|
|
476
476
|
}
|
|
477
477
|
return { set: i, update: o, subscribe: s };
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function ue(e, t, r) {
|
|
480
480
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
481
481
|
if (!i.every(Boolean))
|
|
482
482
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
483
483
|
const o = t.length < 2;
|
|
484
|
-
return
|
|
484
|
+
return tn(r, (s, a) => {
|
|
485
485
|
let l = !1;
|
|
486
486
|
const u = [];
|
|
487
487
|
let h = 0, p = D;
|
|
@@ -490,12 +490,12 @@ function le(e, t, r) {
|
|
|
490
490
|
return;
|
|
491
491
|
p();
|
|
492
492
|
const y = t(n ? u[0] : u, s, a);
|
|
493
|
-
o ? s(y) : p =
|
|
493
|
+
o ? s(y) : p = yt(y) ? y : D;
|
|
494
494
|
}, b = i.map(
|
|
495
|
-
(y, g) =>
|
|
495
|
+
(y, g) => er(
|
|
496
496
|
y,
|
|
497
|
-
(
|
|
498
|
-
u[g] =
|
|
497
|
+
(E) => {
|
|
498
|
+
u[g] = E, h &= ~(1 << g), l && c();
|
|
499
499
|
},
|
|
500
500
|
() => {
|
|
501
501
|
h |= 1 << g;
|
|
@@ -503,126 +503,112 @@ function le(e, t, r) {
|
|
|
503
503
|
)
|
|
504
504
|
);
|
|
505
505
|
return l = !0, c(), function() {
|
|
506
|
-
|
|
506
|
+
ae(b), p(), l = !1;
|
|
507
507
|
};
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function rn(e) {
|
|
511
511
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var nn = function(t) {
|
|
514
|
+
return on(t) && !sn(t);
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function on(e) {
|
|
517
517
|
return !!e && typeof e == "object";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function sn(e) {
|
|
520
520
|
var t = Object.prototype.toString.call(e);
|
|
521
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
522
|
-
}
|
|
523
|
-
var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
|
|
524
|
-
function un(e) {
|
|
525
|
-
return e.$$typeof === an;
|
|
521
|
+
return t === "[object RegExp]" || t === "[object Date]" || ln(e);
|
|
526
522
|
}
|
|
523
|
+
var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
|
|
527
524
|
function ln(e) {
|
|
525
|
+
return e.$$typeof === un;
|
|
526
|
+
}
|
|
527
|
+
function hn(e) {
|
|
528
528
|
return Array.isArray(e) ? [] : {};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
530
|
+
function ge(e, t) {
|
|
531
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(hn(e), e, t) : e;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function cn(e, t, r) {
|
|
534
534
|
return e.concat(t).map(function(n) {
|
|
535
|
-
return
|
|
535
|
+
return ge(n, r);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function fn(e, t) {
|
|
539
539
|
if (!t.customMerge)
|
|
540
|
-
return
|
|
540
|
+
return ne;
|
|
541
541
|
var r = t.customMerge(e);
|
|
542
|
-
return typeof r == "function" ? r :
|
|
542
|
+
return typeof r == "function" ? r : ne;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function pn(e) {
|
|
545
545
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
546
546
|
return Object.propertyIsEnumerable.call(e, t);
|
|
547
547
|
}) : [];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return Object.keys(e).concat(
|
|
549
|
+
function wt(e) {
|
|
550
|
+
return Object.keys(e).concat(pn(e));
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function rr(e, t) {
|
|
553
553
|
try {
|
|
554
554
|
return t in e;
|
|
555
555
|
} catch {
|
|
556
556
|
return !1;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function mn(e, t) {
|
|
560
|
+
return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function dn(e, t, r) {
|
|
563
563
|
var n = {};
|
|
564
|
-
return r.isMergeableObject(e) &&
|
|
565
|
-
n[i] =
|
|
566
|
-
}),
|
|
567
|
-
|
|
564
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
565
|
+
n[i] = ge(e[i], r);
|
|
566
|
+
}), wt(t).forEach(function(i) {
|
|
567
|
+
mn(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
|
|
568
568
|
}), n;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
570
|
+
function ne(e, t, r) {
|
|
571
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ge;
|
|
572
572
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
573
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
573
|
+
return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ge(t, r);
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
ne.all = function(t, r) {
|
|
576
576
|
if (!Array.isArray(t))
|
|
577
577
|
throw new Error("first argument should be an array");
|
|
578
578
|
return t.reduce(function(n, i) {
|
|
579
|
-
return
|
|
579
|
+
return ne(n, i, r);
|
|
580
580
|
}, {});
|
|
581
581
|
};
|
|
582
|
-
var
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
588
|
-
purpose with or without fee is hereby granted.
|
|
589
|
-
|
|
590
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
591
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
592
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
593
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
594
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
595
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
596
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
597
|
-
***************************************************************************** */
|
|
598
|
-
var Ke = function(e, t) {
|
|
599
|
-
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
582
|
+
var bn = ne, gn = bn;
|
|
583
|
+
const yn = /* @__PURE__ */ rn(gn);
|
|
584
|
+
var tt = function(e, t) {
|
|
585
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
600
586
|
r.__proto__ = n;
|
|
601
587
|
} || function(r, n) {
|
|
602
588
|
for (var i in n)
|
|
603
589
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
604
|
-
},
|
|
590
|
+
}, tt(e, t);
|
|
605
591
|
};
|
|
606
|
-
function
|
|
592
|
+
function Fe(e, t) {
|
|
607
593
|
if (typeof t != "function" && t !== null)
|
|
608
594
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
609
|
-
|
|
595
|
+
tt(e, t);
|
|
610
596
|
function r() {
|
|
611
597
|
this.constructor = e;
|
|
612
598
|
}
|
|
613
599
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
614
600
|
}
|
|
615
|
-
var
|
|
616
|
-
return
|
|
601
|
+
var F = function() {
|
|
602
|
+
return F = Object.assign || function(t) {
|
|
617
603
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
618
604
|
r = arguments[n];
|
|
619
605
|
for (var o in r)
|
|
620
606
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
621
607
|
}
|
|
622
608
|
return t;
|
|
623
|
-
},
|
|
609
|
+
}, F.apply(this, arguments);
|
|
624
610
|
};
|
|
625
|
-
function
|
|
611
|
+
function vn(e, t) {
|
|
626
612
|
var r = {};
|
|
627
613
|
for (var n in e)
|
|
628
614
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -631,143 +617,119 @@ function yn(e, t) {
|
|
|
631
617
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
632
618
|
return r;
|
|
633
619
|
}
|
|
634
|
-
function
|
|
635
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
636
|
-
if (r)
|
|
637
|
-
return r.call(e);
|
|
638
|
-
if (e && typeof e.length == "number")
|
|
639
|
-
return {
|
|
640
|
-
next: function() {
|
|
641
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
645
|
-
}
|
|
646
|
-
function tt(e, t) {
|
|
647
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
648
|
-
if (!r)
|
|
649
|
-
return e;
|
|
650
|
-
var n = r.call(e), i, o = [], s;
|
|
651
|
-
try {
|
|
652
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
653
|
-
o.push(i.value);
|
|
654
|
-
} catch (a) {
|
|
655
|
-
s = { error: a };
|
|
656
|
-
} finally {
|
|
657
|
-
try {
|
|
658
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
659
|
-
} finally {
|
|
660
|
-
if (s)
|
|
661
|
-
throw s.error;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
return o;
|
|
665
|
-
}
|
|
666
|
-
function ne(e, t, r) {
|
|
620
|
+
function We(e, t, r) {
|
|
667
621
|
if (r || arguments.length === 2)
|
|
668
622
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
669
623
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
670
|
-
return e.concat(o || t);
|
|
624
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
671
625
|
}
|
|
672
|
-
function
|
|
673
|
-
var r = t && t.cache ? t.cache :
|
|
626
|
+
function ze(e, t) {
|
|
627
|
+
var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : xn;
|
|
674
628
|
return i(e, {
|
|
675
629
|
cache: r,
|
|
676
630
|
serializer: n
|
|
677
631
|
});
|
|
678
632
|
}
|
|
679
|
-
function
|
|
633
|
+
function _n(e) {
|
|
680
634
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
681
635
|
}
|
|
682
|
-
function
|
|
683
|
-
var i =
|
|
636
|
+
function En(e, t, r, n) {
|
|
637
|
+
var i = _n(n) ? n : r(n), o = t.get(i);
|
|
684
638
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
685
639
|
}
|
|
686
|
-
function
|
|
640
|
+
function nr(e, t, r) {
|
|
687
641
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
688
642
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
689
643
|
}
|
|
690
|
-
function
|
|
644
|
+
function ir(e, t, r, n, i) {
|
|
691
645
|
return r.bind(t, e, n, i);
|
|
692
646
|
}
|
|
693
|
-
function _n(e, t) {
|
|
694
|
-
var r = e.length === 1 ? tr : rr;
|
|
695
|
-
return dt(e, this, r, t.cache.create(), t.serializer);
|
|
696
|
-
}
|
|
697
647
|
function xn(e, t) {
|
|
698
|
-
|
|
648
|
+
var r = e.length === 1 ? En : nr;
|
|
649
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
699
650
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
651
|
+
function Sn(e, t) {
|
|
652
|
+
return ir(e, this, nr, t.cache.create(), t.serializer);
|
|
702
653
|
}
|
|
703
|
-
var
|
|
654
|
+
var Tn = function() {
|
|
704
655
|
return JSON.stringify(arguments);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
656
|
+
}, wn = (
|
|
657
|
+
/** @class */
|
|
658
|
+
function() {
|
|
659
|
+
function e() {
|
|
660
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
661
|
+
}
|
|
662
|
+
return e.prototype.get = function(t) {
|
|
663
|
+
return this.cache[t];
|
|
664
|
+
}, e.prototype.set = function(t, r) {
|
|
665
|
+
this.cache[t] = r;
|
|
666
|
+
}, e;
|
|
667
|
+
}()
|
|
668
|
+
), Hn = {
|
|
716
669
|
create: function() {
|
|
717
|
-
return new
|
|
670
|
+
return new wn();
|
|
718
671
|
}
|
|
719
|
-
},
|
|
720
|
-
variadic:
|
|
721
|
-
|
|
722
|
-
|
|
672
|
+
}, Ze = {
|
|
673
|
+
variadic: Sn
|
|
674
|
+
}, $e = function() {
|
|
675
|
+
return $e = Object.assign || function(t) {
|
|
676
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
677
|
+
r = arguments[n];
|
|
678
|
+
for (var o in r)
|
|
679
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
680
|
+
}
|
|
681
|
+
return t;
|
|
682
|
+
}, $e.apply(this, arguments);
|
|
683
|
+
};
|
|
684
|
+
var v;
|
|
723
685
|
(function(e) {
|
|
724
686
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
725
687
|
})(v || (v = {}));
|
|
726
|
-
var
|
|
688
|
+
var w;
|
|
727
689
|
(function(e) {
|
|
728
690
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
729
|
-
})(
|
|
730
|
-
var
|
|
691
|
+
})(w || (w = {}));
|
|
692
|
+
var ie;
|
|
731
693
|
(function(e) {
|
|
732
694
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
733
|
-
})(
|
|
734
|
-
function
|
|
735
|
-
return e.type ===
|
|
736
|
-
}
|
|
737
|
-
function wn(e) {
|
|
738
|
-
return e.type === H.argument;
|
|
739
|
-
}
|
|
740
|
-
function nr(e) {
|
|
741
|
-
return e.type === H.number;
|
|
695
|
+
})(ie || (ie = {}));
|
|
696
|
+
function Ht(e) {
|
|
697
|
+
return e.type === w.literal;
|
|
742
698
|
}
|
|
743
|
-
function
|
|
744
|
-
return e.type ===
|
|
699
|
+
function Pn(e) {
|
|
700
|
+
return e.type === w.argument;
|
|
745
701
|
}
|
|
746
702
|
function or(e) {
|
|
747
|
-
return e.type ===
|
|
703
|
+
return e.type === w.number;
|
|
748
704
|
}
|
|
749
705
|
function sr(e) {
|
|
750
|
-
return e.type ===
|
|
706
|
+
return e.type === w.date;
|
|
751
707
|
}
|
|
752
708
|
function ar(e) {
|
|
753
|
-
return e.type ===
|
|
754
|
-
}
|
|
755
|
-
function Hn(e) {
|
|
756
|
-
return e.type === H.pound;
|
|
709
|
+
return e.type === w.time;
|
|
757
710
|
}
|
|
758
711
|
function ur(e) {
|
|
759
|
-
return e.type ===
|
|
712
|
+
return e.type === w.select;
|
|
760
713
|
}
|
|
761
714
|
function lr(e) {
|
|
762
|
-
return
|
|
715
|
+
return e.type === w.plural;
|
|
716
|
+
}
|
|
717
|
+
function An(e) {
|
|
718
|
+
return e.type === w.pound;
|
|
719
|
+
}
|
|
720
|
+
function hr(e) {
|
|
721
|
+
return e.type === w.tag;
|
|
722
|
+
}
|
|
723
|
+
function cr(e) {
|
|
724
|
+
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
763
725
|
}
|
|
764
726
|
function rt(e) {
|
|
765
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
727
|
+
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
766
728
|
}
|
|
767
|
-
var
|
|
768
|
-
function
|
|
729
|
+
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
|
|
730
|
+
function Bn(e) {
|
|
769
731
|
var t = {};
|
|
770
|
-
return e.replace(
|
|
732
|
+
return e.replace(On, function(r) {
|
|
771
733
|
var n = r.length;
|
|
772
734
|
switch (r[0]) {
|
|
773
735
|
case "G":
|
|
@@ -856,11 +818,21 @@ function An(e) {
|
|
|
856
818
|
return "";
|
|
857
819
|
}), t;
|
|
858
820
|
}
|
|
859
|
-
var
|
|
860
|
-
function
|
|
821
|
+
var H = function() {
|
|
822
|
+
return H = Object.assign || function(t) {
|
|
823
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
824
|
+
r = arguments[n];
|
|
825
|
+
for (var o in r)
|
|
826
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
827
|
+
}
|
|
828
|
+
return t;
|
|
829
|
+
}, H.apply(this, arguments);
|
|
830
|
+
};
|
|
831
|
+
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
832
|
+
function Cn(e) {
|
|
861
833
|
if (e.length === 0)
|
|
862
834
|
throw new Error("Number skeleton cannot be empty");
|
|
863
|
-
for (var t = e.split(
|
|
835
|
+
for (var t = e.split(Mn).filter(function(c) {
|
|
864
836
|
return c.length > 0;
|
|
865
837
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
866
838
|
var o = i[n], s = o.split("/");
|
|
@@ -875,17 +847,17 @@ function Mn(e) {
|
|
|
875
847
|
}
|
|
876
848
|
return r;
|
|
877
849
|
}
|
|
878
|
-
function
|
|
850
|
+
function In(e) {
|
|
879
851
|
return e.replace(/^(.*?)-/, "");
|
|
880
852
|
}
|
|
881
|
-
var
|
|
882
|
-
function
|
|
853
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
854
|
+
function At(e) {
|
|
883
855
|
var t = {};
|
|
884
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
856
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
885
857
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
886
858
|
}), t;
|
|
887
859
|
}
|
|
888
|
-
function
|
|
860
|
+
function dr(e) {
|
|
889
861
|
switch (e) {
|
|
890
862
|
case "sign-auto":
|
|
891
863
|
return {
|
|
@@ -925,7 +897,7 @@ function pr(e) {
|
|
|
925
897
|
};
|
|
926
898
|
}
|
|
927
899
|
}
|
|
928
|
-
function
|
|
900
|
+
function Nn(e) {
|
|
929
901
|
var t;
|
|
930
902
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
931
903
|
notation: "engineering"
|
|
@@ -933,17 +905,17 @@ function In(e) {
|
|
|
933
905
|
notation: "scientific"
|
|
934
906
|
}, e = e.slice(1)), t) {
|
|
935
907
|
var r = e.slice(0, 2);
|
|
936
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
908
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
937
909
|
throw new Error("Malformed concise eng/scientific notation");
|
|
938
910
|
t.minimumIntegerDigits = e.length;
|
|
939
911
|
}
|
|
940
912
|
return t;
|
|
941
913
|
}
|
|
942
|
-
function
|
|
943
|
-
var t = {}, r =
|
|
914
|
+
function Ot(e) {
|
|
915
|
+
var t = {}, r = dr(e);
|
|
944
916
|
return r || t;
|
|
945
917
|
}
|
|
946
|
-
function
|
|
918
|
+
function $n(e) {
|
|
947
919
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
948
920
|
var i = n[r];
|
|
949
921
|
switch (i.stem) {
|
|
@@ -967,7 +939,7 @@ function Ln(e) {
|
|
|
967
939
|
continue;
|
|
968
940
|
case "measure-unit":
|
|
969
941
|
case "unit":
|
|
970
|
-
t.style = "unit", t.unit =
|
|
942
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
971
943
|
continue;
|
|
972
944
|
case "compact-short":
|
|
973
945
|
case "K":
|
|
@@ -978,13 +950,13 @@ function Ln(e) {
|
|
|
978
950
|
t.notation = "compact", t.compactDisplay = "long";
|
|
979
951
|
continue;
|
|
980
952
|
case "scientific":
|
|
981
|
-
t =
|
|
982
|
-
return
|
|
953
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
954
|
+
return H(H({}, l), Ot(u));
|
|
983
955
|
}, {}));
|
|
984
956
|
continue;
|
|
985
957
|
case "engineering":
|
|
986
|
-
t =
|
|
987
|
-
return
|
|
958
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
959
|
+
return H(H({}, l), Ot(u));
|
|
988
960
|
}, {}));
|
|
989
961
|
continue;
|
|
990
962
|
case "notation-simple":
|
|
@@ -1029,7 +1001,7 @@ function Ln(e) {
|
|
|
1029
1001
|
case "integer-width":
|
|
1030
1002
|
if (i.options.length > 1)
|
|
1031
1003
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1032
|
-
i.options[0].replace(
|
|
1004
|
+
i.options[0].replace(Ln, function(l, u, h, p, c, b) {
|
|
1033
1005
|
if (u)
|
|
1034
1006
|
t.minimumIntegerDigits = h.length;
|
|
1035
1007
|
else {
|
|
@@ -1042,28 +1014,28 @@ function Ln(e) {
|
|
|
1042
1014
|
});
|
|
1043
1015
|
continue;
|
|
1044
1016
|
}
|
|
1045
|
-
if (
|
|
1017
|
+
if (mr.test(i.stem)) {
|
|
1046
1018
|
t.minimumIntegerDigits = i.stem.length;
|
|
1047
1019
|
continue;
|
|
1048
1020
|
}
|
|
1049
|
-
if (
|
|
1021
|
+
if (Pt.test(i.stem)) {
|
|
1050
1022
|
if (i.options.length > 1)
|
|
1051
1023
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1052
|
-
i.stem.replace(
|
|
1024
|
+
i.stem.replace(Pt, function(l, u, h, p, c, b) {
|
|
1053
1025
|
return h === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1054
1026
|
});
|
|
1055
1027
|
var o = i.options[0];
|
|
1056
|
-
o === "w" ? t =
|
|
1028
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), At(o)));
|
|
1057
1029
|
continue;
|
|
1058
1030
|
}
|
|
1059
|
-
if (
|
|
1060
|
-
t =
|
|
1031
|
+
if (pr.test(i.stem)) {
|
|
1032
|
+
t = H(H({}, t), At(i.stem));
|
|
1061
1033
|
continue;
|
|
1062
1034
|
}
|
|
1063
|
-
var s =
|
|
1064
|
-
s && (t =
|
|
1065
|
-
var a =
|
|
1066
|
-
a && (t =
|
|
1035
|
+
var s = dr(i.stem);
|
|
1036
|
+
s && (t = H(H({}, t), s));
|
|
1037
|
+
var a = Nn(i.stem);
|
|
1038
|
+
a && (t = H(H({}, t), a));
|
|
1067
1039
|
}
|
|
1068
1040
|
return t;
|
|
1069
1041
|
}
|
|
@@ -2482,13 +2454,13 @@ var Pe = {
|
|
|
2482
2454
|
"h"
|
|
2483
2455
|
]
|
|
2484
2456
|
};
|
|
2485
|
-
function
|
|
2457
|
+
function Rn(e, t) {
|
|
2486
2458
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2487
2459
|
var i = e.charAt(n);
|
|
2488
2460
|
if (i === "j") {
|
|
2489
2461
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2490
2462
|
o++, n++;
|
|
2491
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2463
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
|
|
2492
2464
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2493
2465
|
r += l;
|
|
2494
2466
|
for (; s-- > 0; )
|
|
@@ -2498,7 +2470,7 @@ function Nn(e, t) {
|
|
|
2498
2470
|
}
|
|
2499
2471
|
return r;
|
|
2500
2472
|
}
|
|
2501
|
-
function
|
|
2473
|
+
function Dn(e) {
|
|
2502
2474
|
var t = e.hourCycle;
|
|
2503
2475
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2504
2476
|
e.hourCycles && // @ts-ignore
|
|
@@ -2520,20 +2492,20 @@ function $n(e) {
|
|
|
2520
2492
|
var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
|
|
2521
2493
|
return i[0];
|
|
2522
2494
|
}
|
|
2523
|
-
var
|
|
2495
|
+
var Qe, Un = new RegExp("^".concat(fr.source, "*")), Gn = new RegExp("".concat(fr.source, "*$"));
|
|
2524
2496
|
function _(e, t) {
|
|
2525
2497
|
return { start: e, end: t };
|
|
2526
2498
|
}
|
|
2527
|
-
var
|
|
2499
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
|
|
2528
2500
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2529
2501
|
}, nt = !0;
|
|
2530
2502
|
try {
|
|
2531
|
-
var
|
|
2532
|
-
nt = ((
|
|
2503
|
+
var Qn = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2504
|
+
nt = ((Qe = Qn.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
|
|
2533
2505
|
} catch {
|
|
2534
2506
|
nt = !1;
|
|
2535
2507
|
}
|
|
2536
|
-
var
|
|
2508
|
+
var Bt = Fn ? (
|
|
2537
2509
|
// Native
|
|
2538
2510
|
function(t, r, n) {
|
|
2539
2511
|
return t.startsWith(r, n);
|
|
@@ -2543,7 +2515,7 @@ var At = Un ? (
|
|
|
2543
2515
|
function(t, r, n) {
|
|
2544
2516
|
return t.slice(n, n + r.length) === r;
|
|
2545
2517
|
}
|
|
2546
|
-
), it =
|
|
2518
|
+
), it = jn ? String.fromCodePoint : (
|
|
2547
2519
|
// IE11
|
|
2548
2520
|
function() {
|
|
2549
2521
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2555,9 +2527,9 @@ var At = Un ? (
|
|
|
2555
2527
|
}
|
|
2556
2528
|
return n;
|
|
2557
2529
|
}
|
|
2558
|
-
),
|
|
2530
|
+
), Mt = (
|
|
2559
2531
|
// native
|
|
2560
|
-
|
|
2532
|
+
kn ? Object.fromEntries : (
|
|
2561
2533
|
// Ponyfill
|
|
2562
2534
|
function(t) {
|
|
2563
2535
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2567,7 +2539,7 @@ var At = Un ? (
|
|
|
2567
2539
|
return r;
|
|
2568
2540
|
}
|
|
2569
2541
|
)
|
|
2570
|
-
),
|
|
2542
|
+
), br = Vn ? (
|
|
2571
2543
|
// Native
|
|
2572
2544
|
function(t, r) {
|
|
2573
2545
|
return t.codePointAt(r);
|
|
@@ -2581,7 +2553,7 @@ var At = Un ? (
|
|
|
2581
2553
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2582
2554
|
}
|
|
2583
2555
|
}
|
|
2584
|
-
),
|
|
2556
|
+
), Yn = Xn ? (
|
|
2585
2557
|
// Native
|
|
2586
2558
|
function(t) {
|
|
2587
2559
|
return t.trimStart();
|
|
@@ -2589,9 +2561,9 @@ var At = Un ? (
|
|
|
2589
2561
|
) : (
|
|
2590
2562
|
// Ponyfill
|
|
2591
2563
|
function(t) {
|
|
2592
|
-
return t.replace(
|
|
2564
|
+
return t.replace(Un, "");
|
|
2593
2565
|
}
|
|
2594
|
-
),
|
|
2566
|
+
), Jn = Wn ? (
|
|
2595
2567
|
// Native
|
|
2596
2568
|
function(t) {
|
|
2597
2569
|
return t.trimEnd();
|
|
@@ -2599,32 +2571,32 @@ var At = Un ? (
|
|
|
2599
2571
|
) : (
|
|
2600
2572
|
// Ponyfill
|
|
2601
2573
|
function(t) {
|
|
2602
|
-
return t.replace(
|
|
2574
|
+
return t.replace(Gn, "");
|
|
2603
2575
|
}
|
|
2604
2576
|
);
|
|
2605
|
-
function
|
|
2577
|
+
function gr(e, t) {
|
|
2606
2578
|
return new RegExp(e, t);
|
|
2607
2579
|
}
|
|
2608
2580
|
var ot;
|
|
2609
2581
|
if (nt) {
|
|
2610
|
-
var
|
|
2582
|
+
var Ct = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2611
2583
|
ot = function(t, r) {
|
|
2612
2584
|
var n;
|
|
2613
|
-
|
|
2614
|
-
var i =
|
|
2585
|
+
Ct.lastIndex = r;
|
|
2586
|
+
var i = Ct.exec(t);
|
|
2615
2587
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2616
2588
|
};
|
|
2617
2589
|
} else
|
|
2618
2590
|
ot = function(t, r) {
|
|
2619
2591
|
for (var n = []; ; ) {
|
|
2620
|
-
var i =
|
|
2621
|
-
if (i === void 0 ||
|
|
2592
|
+
var i = br(t, r);
|
|
2593
|
+
if (i === void 0 || yr(i) || ti(i))
|
|
2622
2594
|
break;
|
|
2623
2595
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2624
2596
|
}
|
|
2625
2597
|
return it.apply(void 0, n);
|
|
2626
2598
|
};
|
|
2627
|
-
var
|
|
2599
|
+
var qn = (
|
|
2628
2600
|
/** @class */
|
|
2629
2601
|
function() {
|
|
2630
2602
|
function e(t, r) {
|
|
@@ -2648,7 +2620,7 @@ var Yn = (
|
|
|
2648
2620
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2649
2621
|
var a = this.clonePosition();
|
|
2650
2622
|
this.bump(), i.push({
|
|
2651
|
-
type:
|
|
2623
|
+
type: w.pound,
|
|
2652
2624
|
location: _(a, this.clonePosition())
|
|
2653
2625
|
});
|
|
2654
2626
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2676,7 +2648,7 @@ var Yn = (
|
|
|
2676
2648
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2677
2649
|
return {
|
|
2678
2650
|
val: {
|
|
2679
|
-
type:
|
|
2651
|
+
type: w.literal,
|
|
2680
2652
|
value: "<".concat(i, "/>"),
|
|
2681
2653
|
location: _(n, this.clonePosition())
|
|
2682
2654
|
},
|
|
@@ -2693,7 +2665,7 @@ var Yn = (
|
|
|
2693
2665
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2694
2666
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2695
2667
|
val: {
|
|
2696
|
-
type:
|
|
2668
|
+
type: w.tag,
|
|
2697
2669
|
value: i,
|
|
2698
2670
|
children: s,
|
|
2699
2671
|
location: _(n, this.clonePosition())
|
|
@@ -2706,7 +2678,7 @@ var Yn = (
|
|
|
2706
2678
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
2707
2679
|
}, e.prototype.parseTagName = function() {
|
|
2708
2680
|
var t = this.offset();
|
|
2709
|
-
for (this.bump(); !this.isEOF() &&
|
|
2681
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
2710
2682
|
this.bump();
|
|
2711
2683
|
return this.message.slice(t, this.offset());
|
|
2712
2684
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2730,12 +2702,12 @@ var Yn = (
|
|
|
2730
2702
|
}
|
|
2731
2703
|
var l = _(n, this.clonePosition());
|
|
2732
2704
|
return {
|
|
2733
|
-
val: { type:
|
|
2705
|
+
val: { type: w.literal, value: i, location: l },
|
|
2734
2706
|
err: null
|
|
2735
2707
|
};
|
|
2736
2708
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2737
2709
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2738
|
-
!
|
|
2710
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2739
2711
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2740
2712
|
if (this.isEOF() || this.char() !== 39)
|
|
2741
2713
|
return null;
|
|
@@ -2790,7 +2762,7 @@ var Yn = (
|
|
|
2790
2762
|
case 125:
|
|
2791
2763
|
return this.bump(), {
|
|
2792
2764
|
val: {
|
|
2793
|
-
type:
|
|
2765
|
+
type: w.argument,
|
|
2794
2766
|
// value does not include the opening and closing braces.
|
|
2795
2767
|
value: i,
|
|
2796
2768
|
location: _(n, this.clonePosition())
|
|
@@ -2822,7 +2794,7 @@ var Yn = (
|
|
|
2822
2794
|
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2823
2795
|
if (p.err)
|
|
2824
2796
|
return p;
|
|
2825
|
-
var c =
|
|
2797
|
+
var c = Jn(p.val);
|
|
2826
2798
|
if (c.length === 0)
|
|
2827
2799
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2828
2800
|
var b = _(h, this.clonePosition());
|
|
@@ -2832,34 +2804,34 @@ var Yn = (
|
|
|
2832
2804
|
if (y.err)
|
|
2833
2805
|
return y;
|
|
2834
2806
|
var g = _(i, this.clonePosition());
|
|
2835
|
-
if (u &&
|
|
2836
|
-
var
|
|
2807
|
+
if (u && Bt(u?.style, "::", 0)) {
|
|
2808
|
+
var E = Yn(u.style.slice(2));
|
|
2837
2809
|
if (a === "number") {
|
|
2838
|
-
var p = this.parseNumberSkeletonFromString(
|
|
2810
|
+
var p = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2839
2811
|
return p.err ? p : {
|
|
2840
|
-
val: { type:
|
|
2812
|
+
val: { type: w.number, value: n, location: g, style: p.val },
|
|
2841
2813
|
err: null
|
|
2842
2814
|
};
|
|
2843
2815
|
} else {
|
|
2844
|
-
if (
|
|
2816
|
+
if (E.length === 0)
|
|
2845
2817
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
|
2846
|
-
var A =
|
|
2847
|
-
this.locale && (A =
|
|
2818
|
+
var A = E;
|
|
2819
|
+
this.locale && (A = Rn(E, this.locale));
|
|
2848
2820
|
var c = {
|
|
2849
|
-
type:
|
|
2821
|
+
type: ie.dateTime,
|
|
2850
2822
|
pattern: A,
|
|
2851
2823
|
location: u.styleLocation,
|
|
2852
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2853
|
-
},
|
|
2824
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(A) : {}
|
|
2825
|
+
}, x = a === "date" ? w.date : w.time;
|
|
2854
2826
|
return {
|
|
2855
|
-
val: { type:
|
|
2827
|
+
val: { type: x, value: n, location: g, style: c },
|
|
2856
2828
|
err: null
|
|
2857
2829
|
};
|
|
2858
2830
|
}
|
|
2859
2831
|
}
|
|
2860
2832
|
return {
|
|
2861
2833
|
val: {
|
|
2862
|
-
type: a === "number" ?
|
|
2834
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
|
2863
2835
|
value: n,
|
|
2864
2836
|
location: g,
|
|
2865
2837
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2872,38 +2844,38 @@ var Yn = (
|
|
|
2872
2844
|
case "select": {
|
|
2873
2845
|
var f = this.clonePosition();
|
|
2874
2846
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2875
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f,
|
|
2847
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f, $e({}, f)));
|
|
2876
2848
|
this.bumpSpace();
|
|
2877
|
-
var
|
|
2878
|
-
if (a !== "select" &&
|
|
2849
|
+
var T = this.parseIdentifierIfPossible(), d = 0;
|
|
2850
|
+
if (a !== "select" && T.value === "offset") {
|
|
2879
2851
|
if (!this.bumpIf(":"))
|
|
2880
2852
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2881
2853
|
this.bumpSpace();
|
|
2882
2854
|
var p = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2883
2855
|
if (p.err)
|
|
2884
2856
|
return p;
|
|
2885
|
-
this.bumpSpace(),
|
|
2857
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), d = p.val;
|
|
2886
2858
|
}
|
|
2887
|
-
var
|
|
2888
|
-
if (
|
|
2889
|
-
return
|
|
2859
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
2860
|
+
if (B.err)
|
|
2861
|
+
return B;
|
|
2890
2862
|
var y = this.tryParseArgumentClose(i);
|
|
2891
2863
|
if (y.err)
|
|
2892
2864
|
return y;
|
|
2893
2865
|
var U = _(i, this.clonePosition());
|
|
2894
2866
|
return a === "select" ? {
|
|
2895
2867
|
val: {
|
|
2896
|
-
type:
|
|
2868
|
+
type: w.select,
|
|
2897
2869
|
value: n,
|
|
2898
|
-
options:
|
|
2870
|
+
options: Mt(B.val),
|
|
2899
2871
|
location: U
|
|
2900
2872
|
},
|
|
2901
2873
|
err: null
|
|
2902
2874
|
} : {
|
|
2903
2875
|
val: {
|
|
2904
|
-
type:
|
|
2876
|
+
type: w.plural,
|
|
2905
2877
|
value: n,
|
|
2906
|
-
options:
|
|
2878
|
+
options: Mt(B.val),
|
|
2907
2879
|
offset: d,
|
|
2908
2880
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2909
2881
|
location: U
|
|
@@ -2954,16 +2926,16 @@ var Yn = (
|
|
|
2954
2926
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2955
2927
|
var n = [];
|
|
2956
2928
|
try {
|
|
2957
|
-
n =
|
|
2929
|
+
n = Cn(t);
|
|
2958
2930
|
} catch {
|
|
2959
2931
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
2960
2932
|
}
|
|
2961
2933
|
return {
|
|
2962
2934
|
val: {
|
|
2963
|
-
type:
|
|
2935
|
+
type: ie.number,
|
|
2964
2936
|
tokens: n,
|
|
2965
2937
|
location: r,
|
|
2966
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2938
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
2967
2939
|
},
|
|
2968
2940
|
err: null
|
|
2969
2941
|
};
|
|
@@ -3011,7 +2983,7 @@ var Yn = (
|
|
|
3011
2983
|
break;
|
|
3012
2984
|
}
|
|
3013
2985
|
var l = _(i, this.clonePosition());
|
|
3014
|
-
return o ? (s *= n,
|
|
2986
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3015
2987
|
}, e.prototype.offset = function() {
|
|
3016
2988
|
return this.position.offset;
|
|
3017
2989
|
}, e.prototype.isEOF = function() {
|
|
@@ -3026,7 +2998,7 @@ var Yn = (
|
|
|
3026
2998
|
var t = this.position.offset;
|
|
3027
2999
|
if (t >= this.message.length)
|
|
3028
3000
|
throw Error("out of bound");
|
|
3029
|
-
var r =
|
|
3001
|
+
var r = br(this.message, t);
|
|
3030
3002
|
if (r === void 0)
|
|
3031
3003
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3032
3004
|
return r;
|
|
@@ -3045,7 +3017,7 @@ var Yn = (
|
|
|
3045
3017
|
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);
|
|
3046
3018
|
}
|
|
3047
3019
|
}, e.prototype.bumpIf = function(t) {
|
|
3048
|
-
if (
|
|
3020
|
+
if (Bt(this.message, t, this.offset())) {
|
|
3049
3021
|
for (var r = 0; r < t.length; r++)
|
|
3050
3022
|
this.bump();
|
|
3051
3023
|
return !0;
|
|
@@ -3067,7 +3039,7 @@ var Yn = (
|
|
|
3067
3039
|
break;
|
|
3068
3040
|
}
|
|
3069
3041
|
}, e.prototype.bumpSpace = function() {
|
|
3070
|
-
for (; !this.isEOF() &&
|
|
3042
|
+
for (; !this.isEOF() && yr(this.char()); )
|
|
3071
3043
|
this.bump();
|
|
3072
3044
|
}, e.prototype.peek = function() {
|
|
3073
3045
|
if (this.isEOF())
|
|
@@ -3080,44 +3052,44 @@ var Yn = (
|
|
|
3080
3052
|
function st(e) {
|
|
3081
3053
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3082
3054
|
}
|
|
3083
|
-
function
|
|
3055
|
+
function Kn(e) {
|
|
3084
3056
|
return st(e) || e === 47;
|
|
3085
3057
|
}
|
|
3086
|
-
function
|
|
3058
|
+
function ei(e) {
|
|
3087
3059
|
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;
|
|
3088
3060
|
}
|
|
3089
|
-
function
|
|
3061
|
+
function yr(e) {
|
|
3090
3062
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3091
3063
|
}
|
|
3092
|
-
function
|
|
3064
|
+
function ti(e) {
|
|
3093
3065
|
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;
|
|
3094
3066
|
}
|
|
3095
3067
|
function at(e) {
|
|
3096
3068
|
e.forEach(function(t) {
|
|
3097
|
-
if (delete t.location,
|
|
3069
|
+
if (delete t.location, ur(t) || lr(t))
|
|
3098
3070
|
for (var r in t.options)
|
|
3099
3071
|
delete t.options[r].location, at(t.options[r].value);
|
|
3100
3072
|
else
|
|
3101
|
-
|
|
3073
|
+
or(t) && cr(t.style) || (sr(t) || ar(t)) && rt(t.style) ? delete t.style.location : hr(t) && at(t.children);
|
|
3102
3074
|
});
|
|
3103
3075
|
}
|
|
3104
|
-
function
|
|
3105
|
-
t === void 0 && (t = {}), t =
|
|
3106
|
-
var r = new
|
|
3076
|
+
function ri(e, t) {
|
|
3077
|
+
t === void 0 && (t = {}), t = $e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3078
|
+
var r = new qn(e, t).parse();
|
|
3107
3079
|
if (r.err) {
|
|
3108
3080
|
var n = SyntaxError(v[r.err.kind]);
|
|
3109
3081
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3110
3082
|
}
|
|
3111
3083
|
return t?.captureLocation || at(r.val), r.val;
|
|
3112
3084
|
}
|
|
3113
|
-
var
|
|
3085
|
+
var oe;
|
|
3114
3086
|
(function(e) {
|
|
3115
3087
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3116
|
-
})(
|
|
3117
|
-
var
|
|
3088
|
+
})(oe || (oe = {}));
|
|
3089
|
+
var je = (
|
|
3118
3090
|
/** @class */
|
|
3119
3091
|
function(e) {
|
|
3120
|
-
|
|
3092
|
+
Fe(t, e);
|
|
3121
3093
|
function t(r, n, i) {
|
|
3122
3094
|
var o = e.call(this, r) || this;
|
|
3123
3095
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3126,48 +3098,48 @@ var Ge = (
|
|
|
3126
3098
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3127
3099
|
}, t;
|
|
3128
3100
|
}(Error)
|
|
3129
|
-
),
|
|
3101
|
+
), It = (
|
|
3130
3102
|
/** @class */
|
|
3131
3103
|
function(e) {
|
|
3132
|
-
|
|
3104
|
+
Fe(t, e);
|
|
3133
3105
|
function t(r, n, i, o) {
|
|
3134
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3106
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, o) || this;
|
|
3135
3107
|
}
|
|
3136
3108
|
return t;
|
|
3137
|
-
}(
|
|
3138
|
-
),
|
|
3109
|
+
}(je)
|
|
3110
|
+
), ni = (
|
|
3139
3111
|
/** @class */
|
|
3140
3112
|
function(e) {
|
|
3141
|
-
|
|
3113
|
+
Fe(t, e);
|
|
3142
3114
|
function t(r, n, i) {
|
|
3143
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3115
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
|
|
3144
3116
|
}
|
|
3145
3117
|
return t;
|
|
3146
|
-
}(
|
|
3147
|
-
),
|
|
3118
|
+
}(je)
|
|
3119
|
+
), ii = (
|
|
3148
3120
|
/** @class */
|
|
3149
3121
|
function(e) {
|
|
3150
|
-
|
|
3122
|
+
Fe(t, e);
|
|
3151
3123
|
function t(r, n) {
|
|
3152
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3124
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
|
|
3153
3125
|
}
|
|
3154
3126
|
return t;
|
|
3155
|
-
}(
|
|
3127
|
+
}(je)
|
|
3156
3128
|
), C;
|
|
3157
3129
|
(function(e) {
|
|
3158
3130
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3159
3131
|
})(C || (C = {}));
|
|
3160
|
-
function
|
|
3132
|
+
function oi(e) {
|
|
3161
3133
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3162
3134
|
var n = t[t.length - 1];
|
|
3163
3135
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3164
3136
|
}, []);
|
|
3165
3137
|
}
|
|
3166
|
-
function
|
|
3138
|
+
function si(e) {
|
|
3167
3139
|
return typeof e == "function";
|
|
3168
3140
|
}
|
|
3169
3141
|
function Ce(e, t, r, n, i, o, s) {
|
|
3170
|
-
if (e.length === 1 &&
|
|
3142
|
+
if (e.length === 1 && Ht(e[0]))
|
|
3171
3143
|
return [
|
|
3172
3144
|
{
|
|
3173
3145
|
type: C.literal,
|
|
@@ -3176,14 +3148,14 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3176
3148
|
];
|
|
3177
3149
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3178
3150
|
var h = u[l];
|
|
3179
|
-
if (
|
|
3151
|
+
if (Ht(h)) {
|
|
3180
3152
|
a.push({
|
|
3181
3153
|
type: C.literal,
|
|
3182
3154
|
value: h.value
|
|
3183
3155
|
});
|
|
3184
3156
|
continue;
|
|
3185
3157
|
}
|
|
3186
|
-
if (
|
|
3158
|
+
if (An(h)) {
|
|
3187
3159
|
typeof o == "number" && a.push({
|
|
3188
3160
|
type: C.literal,
|
|
3189
3161
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3192,16 +3164,16 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3192
3164
|
}
|
|
3193
3165
|
var p = h.value;
|
|
3194
3166
|
if (!(i && p in i))
|
|
3195
|
-
throw new
|
|
3167
|
+
throw new ii(p, s);
|
|
3196
3168
|
var c = i[p];
|
|
3197
|
-
if (
|
|
3169
|
+
if (Pn(h)) {
|
|
3198
3170
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3199
3171
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3200
3172
|
value: c
|
|
3201
3173
|
});
|
|
3202
3174
|
continue;
|
|
3203
3175
|
}
|
|
3204
|
-
if (
|
|
3176
|
+
if (sr(h)) {
|
|
3205
3177
|
var b = typeof h.style == "string" ? n.date[h.style] : rt(h.style) ? h.style.parsedOptions : void 0;
|
|
3206
3178
|
a.push({
|
|
3207
3179
|
type: C.literal,
|
|
@@ -3209,7 +3181,7 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3209
3181
|
});
|
|
3210
3182
|
continue;
|
|
3211
3183
|
}
|
|
3212
|
-
if (
|
|
3184
|
+
if (ar(h)) {
|
|
3213
3185
|
var b = typeof h.style == "string" ? n.time[h.style] : rt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3214
3186
|
a.push({
|
|
3215
3187
|
type: C.literal,
|
|
@@ -3217,64 +3189,64 @@ function Ce(e, t, r, n, i, o, s) {
|
|
|
3217
3189
|
});
|
|
3218
3190
|
continue;
|
|
3219
3191
|
}
|
|
3220
|
-
if (
|
|
3221
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3192
|
+
if (or(h)) {
|
|
3193
|
+
var b = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
|
|
3222
3194
|
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3223
3195
|
type: C.literal,
|
|
3224
3196
|
value: r.getNumberFormat(t, b).format(c)
|
|
3225
3197
|
});
|
|
3226
3198
|
continue;
|
|
3227
3199
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var y = h.children, g = h.value,
|
|
3230
|
-
if (!
|
|
3231
|
-
throw new
|
|
3232
|
-
var A = Ce(y, t, r, n, i, o),
|
|
3200
|
+
if (hr(h)) {
|
|
3201
|
+
var y = h.children, g = h.value, E = i[g];
|
|
3202
|
+
if (!si(E))
|
|
3203
|
+
throw new ni(g, "function", s);
|
|
3204
|
+
var A = Ce(y, t, r, n, i, o), x = E(A.map(function(d) {
|
|
3233
3205
|
return d.value;
|
|
3234
3206
|
}));
|
|
3235
|
-
Array.isArray(
|
|
3207
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(d) {
|
|
3236
3208
|
return {
|
|
3237
3209
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3238
3210
|
value: d
|
|
3239
3211
|
};
|
|
3240
3212
|
}));
|
|
3241
3213
|
}
|
|
3242
|
-
if (
|
|
3214
|
+
if (ur(h)) {
|
|
3243
3215
|
var f = h.options[c] || h.options.other;
|
|
3244
3216
|
if (!f)
|
|
3245
|
-
throw new
|
|
3217
|
+
throw new It(h.value, c, Object.keys(h.options), s);
|
|
3246
3218
|
a.push.apply(a, Ce(f.value, t, r, n, i));
|
|
3247
3219
|
continue;
|
|
3248
3220
|
}
|
|
3249
|
-
if (
|
|
3221
|
+
if (lr(h)) {
|
|
3250
3222
|
var f = h.options["=".concat(c)];
|
|
3251
3223
|
if (!f) {
|
|
3252
3224
|
if (!Intl.PluralRules)
|
|
3253
|
-
throw new
|
|
3225
|
+
throw new je(`Intl.PluralRules is not available in this environment.
|
|
3254
3226
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3255
|
-
`,
|
|
3256
|
-
var
|
|
3257
|
-
f = h.options[
|
|
3227
|
+
`, oe.MISSING_INTL_API, s);
|
|
3228
|
+
var T = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3229
|
+
f = h.options[T] || h.options.other;
|
|
3258
3230
|
}
|
|
3259
3231
|
if (!f)
|
|
3260
|
-
throw new
|
|
3232
|
+
throw new It(h.value, c, Object.keys(h.options), s);
|
|
3261
3233
|
a.push.apply(a, Ce(f.value, t, r, n, i, c - (h.offset || 0)));
|
|
3262
3234
|
continue;
|
|
3263
3235
|
}
|
|
3264
3236
|
}
|
|
3265
|
-
return
|
|
3237
|
+
return oi(a);
|
|
3266
3238
|
}
|
|
3267
|
-
function
|
|
3268
|
-
return t ?
|
|
3269
|
-
return r[n] =
|
|
3239
|
+
function ai(e, t) {
|
|
3240
|
+
return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3241
|
+
return r[n] = F(F({}, e[n]), t[n] || {}), r;
|
|
3270
3242
|
}, {})) : e;
|
|
3271
3243
|
}
|
|
3272
|
-
function
|
|
3244
|
+
function ui(e, t) {
|
|
3273
3245
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3274
|
-
return r[n] =
|
|
3275
|
-
},
|
|
3246
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3247
|
+
}, F({}, e)) : e;
|
|
3276
3248
|
}
|
|
3277
|
-
function
|
|
3249
|
+
function Ye(e) {
|
|
3278
3250
|
return {
|
|
3279
3251
|
create: function() {
|
|
3280
3252
|
return {
|
|
@@ -3288,39 +3260,39 @@ function ze(e) {
|
|
|
3288
3260
|
}
|
|
3289
3261
|
};
|
|
3290
3262
|
}
|
|
3291
|
-
function
|
|
3263
|
+
function li(e) {
|
|
3292
3264
|
return e === void 0 && (e = {
|
|
3293
3265
|
number: {},
|
|
3294
3266
|
dateTime: {},
|
|
3295
3267
|
pluralRules: {}
|
|
3296
3268
|
}), {
|
|
3297
|
-
getNumberFormat:
|
|
3269
|
+
getNumberFormat: ze(function() {
|
|
3298
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3299
3271
|
r[n] = arguments[n];
|
|
3300
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3272
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, We([void 0], r, !1)))();
|
|
3301
3273
|
}, {
|
|
3302
|
-
cache:
|
|
3303
|
-
strategy:
|
|
3274
|
+
cache: Ye(e.number),
|
|
3275
|
+
strategy: Ze.variadic
|
|
3304
3276
|
}),
|
|
3305
|
-
getDateTimeFormat:
|
|
3277
|
+
getDateTimeFormat: ze(function() {
|
|
3306
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3307
3279
|
r[n] = arguments[n];
|
|
3308
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, We([void 0], r, !1)))();
|
|
3309
3281
|
}, {
|
|
3310
|
-
cache:
|
|
3311
|
-
strategy:
|
|
3282
|
+
cache: Ye(e.dateTime),
|
|
3283
|
+
strategy: Ze.variadic
|
|
3312
3284
|
}),
|
|
3313
|
-
getPluralRules:
|
|
3285
|
+
getPluralRules: ze(function() {
|
|
3314
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3315
3287
|
r[n] = arguments[n];
|
|
3316
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3288
|
+
return new ((t = Intl.PluralRules).bind.apply(t, We([void 0], r, !1)))();
|
|
3317
3289
|
}, {
|
|
3318
|
-
cache:
|
|
3319
|
-
strategy:
|
|
3290
|
+
cache: Ye(e.pluralRules),
|
|
3291
|
+
strategy: Ze.variadic
|
|
3320
3292
|
})
|
|
3321
3293
|
};
|
|
3322
3294
|
}
|
|
3323
|
-
var
|
|
3295
|
+
var vr = (
|
|
3324
3296
|
/** @class */
|
|
3325
3297
|
function() {
|
|
3326
3298
|
function e(t, r, n, i) {
|
|
@@ -3352,13 +3324,13 @@ var gr = (
|
|
|
3352
3324
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3353
3325
|
var s = i || {};
|
|
3354
3326
|
s.formatters;
|
|
3355
|
-
var a =
|
|
3356
|
-
this.ast = e.__parse(t,
|
|
3327
|
+
var a = vn(s, ["formatters"]);
|
|
3328
|
+
this.ast = e.__parse(t, F(F({}, a), { locale: this.resolvedLocale }));
|
|
3357
3329
|
} else
|
|
3358
3330
|
this.ast = t;
|
|
3359
3331
|
if (!Array.isArray(this.ast))
|
|
3360
3332
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3361
|
-
this.formats =
|
|
3333
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3362
3334
|
}
|
|
3363
3335
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3364
3336
|
get: function() {
|
|
@@ -3371,7 +3343,7 @@ var gr = (
|
|
|
3371
3343
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3372
3344
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3373
3345
|
}
|
|
3374
|
-
}, e.__parse =
|
|
3346
|
+
}, e.__parse = ri, e.formats = {
|
|
3375
3347
|
number: {
|
|
3376
3348
|
integer: {
|
|
3377
3349
|
maximumFractionDigits: 0
|
|
@@ -3432,7 +3404,7 @@ var gr = (
|
|
|
3432
3404
|
}, e;
|
|
3433
3405
|
}()
|
|
3434
3406
|
);
|
|
3435
|
-
function
|
|
3407
|
+
function hi(e, t) {
|
|
3436
3408
|
if (t == null)
|
|
3437
3409
|
return;
|
|
3438
3410
|
if (t in e)
|
|
@@ -3453,101 +3425,101 @@ function ui(e, t) {
|
|
|
3453
3425
|
n = void 0;
|
|
3454
3426
|
return n;
|
|
3455
3427
|
}
|
|
3456
|
-
const X = {},
|
|
3428
|
+
const X = {}, ci = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), _r = (e, t) => {
|
|
3457
3429
|
if (t == null)
|
|
3458
3430
|
return;
|
|
3459
3431
|
if (t in X && e in X[t])
|
|
3460
3432
|
return X[t][e];
|
|
3461
|
-
const r =
|
|
3433
|
+
const r = _e(t);
|
|
3462
3434
|
for (let n = 0; n < r.length; n++) {
|
|
3463
|
-
const i = r[n], o =
|
|
3435
|
+
const i = r[n], o = pi(i, e);
|
|
3464
3436
|
if (o)
|
|
3465
|
-
return
|
|
3437
|
+
return ci(e, t, o);
|
|
3466
3438
|
}
|
|
3467
3439
|
};
|
|
3468
|
-
let
|
|
3469
|
-
const
|
|
3470
|
-
function
|
|
3471
|
-
return
|
|
3440
|
+
let vt;
|
|
3441
|
+
const ve = Ge({});
|
|
3442
|
+
function fi(e) {
|
|
3443
|
+
return vt[e] || null;
|
|
3472
3444
|
}
|
|
3473
|
-
function
|
|
3474
|
-
return e in
|
|
3445
|
+
function Er(e) {
|
|
3446
|
+
return e in vt;
|
|
3475
3447
|
}
|
|
3476
|
-
function
|
|
3477
|
-
if (!
|
|
3448
|
+
function pi(e, t) {
|
|
3449
|
+
if (!Er(e))
|
|
3478
3450
|
return null;
|
|
3479
|
-
const r =
|
|
3480
|
-
return
|
|
3451
|
+
const r = fi(e);
|
|
3452
|
+
return hi(r, t);
|
|
3481
3453
|
}
|
|
3482
|
-
function
|
|
3454
|
+
function mi(e) {
|
|
3483
3455
|
if (e == null)
|
|
3484
3456
|
return;
|
|
3485
|
-
const t =
|
|
3457
|
+
const t = _e(e);
|
|
3486
3458
|
for (let r = 0; r < t.length; r++) {
|
|
3487
3459
|
const n = t[r];
|
|
3488
|
-
if (
|
|
3460
|
+
if (Er(n))
|
|
3489
3461
|
return n;
|
|
3490
3462
|
}
|
|
3491
3463
|
}
|
|
3492
|
-
function
|
|
3493
|
-
delete X[e],
|
|
3464
|
+
function xr(e, ...t) {
|
|
3465
|
+
delete X[e], ve.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
3494
3466
|
}
|
|
3495
|
-
|
|
3496
|
-
[
|
|
3467
|
+
ue(
|
|
3468
|
+
[ve],
|
|
3497
3469
|
([e]) => Object.keys(e)
|
|
3498
3470
|
);
|
|
3499
|
-
|
|
3471
|
+
ve.subscribe((e) => vt = e);
|
|
3500
3472
|
const Ie = {};
|
|
3501
|
-
function
|
|
3473
|
+
function di(e, t) {
|
|
3502
3474
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
3503
3475
|
}
|
|
3504
|
-
function
|
|
3476
|
+
function Sr(e) {
|
|
3505
3477
|
return Ie[e];
|
|
3506
3478
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return
|
|
3509
|
-
const r =
|
|
3479
|
+
function bi(e) {
|
|
3480
|
+
return _e(e).map((t) => {
|
|
3481
|
+
const r = Sr(t);
|
|
3510
3482
|
return [t, r ? [...r] : []];
|
|
3511
3483
|
}).filter(([, t]) => t.length > 0);
|
|
3512
3484
|
}
|
|
3513
|
-
function
|
|
3514
|
-
return e == null ? !1 :
|
|
3485
|
+
function Re(e) {
|
|
3486
|
+
return e == null ? !1 : _e(e).some(
|
|
3515
3487
|
(t) => {
|
|
3516
3488
|
var r;
|
|
3517
|
-
return (r =
|
|
3489
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
3518
3490
|
}
|
|
3519
3491
|
);
|
|
3520
3492
|
}
|
|
3521
|
-
function
|
|
3493
|
+
function gi(e, t) {
|
|
3522
3494
|
return Promise.all(
|
|
3523
|
-
t.map((n) => (
|
|
3524
|
-
).then((n) =>
|
|
3525
|
-
}
|
|
3526
|
-
const
|
|
3527
|
-
function
|
|
3528
|
-
if (
|
|
3529
|
-
return e in
|
|
3530
|
-
const t =
|
|
3531
|
-
return
|
|
3495
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
3496
|
+
).then((n) => xr(e, ...n));
|
|
3497
|
+
}
|
|
3498
|
+
const fe = {};
|
|
3499
|
+
function Tr(e) {
|
|
3500
|
+
if (!Re(e))
|
|
3501
|
+
return e in fe ? fe[e] : Promise.resolve();
|
|
3502
|
+
const t = bi(e);
|
|
3503
|
+
return fe[e] = Promise.all(
|
|
3532
3504
|
t.map(
|
|
3533
|
-
([r, n]) =>
|
|
3505
|
+
([r, n]) => gi(r, n)
|
|
3534
3506
|
)
|
|
3535
3507
|
).then(() => {
|
|
3536
|
-
if (
|
|
3537
|
-
return
|
|
3538
|
-
delete
|
|
3539
|
-
}),
|
|
3508
|
+
if (Re(e))
|
|
3509
|
+
return Tr(e);
|
|
3510
|
+
delete fe[e];
|
|
3511
|
+
}), fe[e];
|
|
3540
3512
|
}
|
|
3541
|
-
var
|
|
3513
|
+
var Lt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, _i = (e, t) => {
|
|
3542
3514
|
var r = {};
|
|
3543
3515
|
for (var n in e)
|
|
3544
|
-
|
|
3545
|
-
if (e != null &&
|
|
3546
|
-
for (var n of
|
|
3547
|
-
t.indexOf(n) < 0 &&
|
|
3516
|
+
yi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3517
|
+
if (e != null && Lt)
|
|
3518
|
+
for (var n of Lt(e))
|
|
3519
|
+
t.indexOf(n) < 0 && vi.call(e, n) && (r[n] = e[n]);
|
|
3548
3520
|
return r;
|
|
3549
3521
|
};
|
|
3550
|
-
const
|
|
3522
|
+
const Ei = {
|
|
3551
3523
|
number: {
|
|
3552
3524
|
scientific: { notation: "scientific" },
|
|
3553
3525
|
engineering: { notation: "engineering" },
|
|
@@ -3577,159 +3549,159 @@ const vi = {
|
|
|
3577
3549
|
}
|
|
3578
3550
|
}
|
|
3579
3551
|
};
|
|
3580
|
-
function
|
|
3552
|
+
function xi({ locale: e, id: t }) {
|
|
3581
3553
|
console.warn(
|
|
3582
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3554
|
+
`[svelte-i18n] The message "${t}" was not found in "${_e(
|
|
3583
3555
|
e
|
|
3584
|
-
).join('", "')}".${
|
|
3556
|
+
).join('", "')}".${Re(W()) ? `
|
|
3585
3557
|
|
|
3586
3558
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3587
3559
|
);
|
|
3588
3560
|
}
|
|
3589
|
-
const
|
|
3561
|
+
const Si = {
|
|
3590
3562
|
fallbackLocale: null,
|
|
3591
3563
|
loadingDelay: 200,
|
|
3592
|
-
formats:
|
|
3564
|
+
formats: Ei,
|
|
3593
3565
|
warnOnMissingMessages: !0,
|
|
3594
3566
|
handleMissingMessage: void 0,
|
|
3595
3567
|
ignoreTag: !0
|
|
3596
|
-
},
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3568
|
+
}, pe = Si;
|
|
3569
|
+
function se() {
|
|
3570
|
+
return pe;
|
|
3599
3571
|
}
|
|
3600
|
-
function
|
|
3601
|
-
const t = e, { formats: r } = t, n =
|
|
3572
|
+
function Ti(e) {
|
|
3573
|
+
const t = e, { formats: r } = t, n = _i(t, ["formats"]);
|
|
3602
3574
|
let i = e.fallbackLocale;
|
|
3603
3575
|
if (e.initialLocale)
|
|
3604
3576
|
try {
|
|
3605
|
-
|
|
3577
|
+
vr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3606
3578
|
} catch {
|
|
3607
3579
|
console.warn(
|
|
3608
3580
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3609
3581
|
);
|
|
3610
3582
|
}
|
|
3611
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3583
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = xi : console.warn(
|
|
3612
3584
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3613
|
-
)), Object.assign(
|
|
3585
|
+
)), Object.assign(pe, n, { initialLocale: i }), r && ("number" in r && Object.assign(pe.formats.number, r.number), "date" in r && Object.assign(pe.formats.date, r.date), "time" in r && Object.assign(pe.formats.time, r.time)), Z.set(i);
|
|
3614
3586
|
}
|
|
3615
|
-
const
|
|
3616
|
-
var
|
|
3587
|
+
const Je = Ge(!1);
|
|
3588
|
+
var wi = Object.defineProperty, Hi = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
3617
3589
|
for (var r in t || (t = {}))
|
|
3618
|
-
|
|
3619
|
-
if (
|
|
3620
|
-
for (var r of
|
|
3621
|
-
|
|
3590
|
+
Ai.call(t, r) && $t(e, r, t[r]);
|
|
3591
|
+
if (Nt)
|
|
3592
|
+
for (var r of Nt(t))
|
|
3593
|
+
Oi.call(t, r) && $t(e, r, t[r]);
|
|
3622
3594
|
return e;
|
|
3623
|
-
},
|
|
3595
|
+
}, Mi = (e, t) => Hi(e, Pi(t));
|
|
3624
3596
|
let ut;
|
|
3625
|
-
const
|
|
3626
|
-
function
|
|
3597
|
+
const De = Ge(null);
|
|
3598
|
+
function Rt(e) {
|
|
3627
3599
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3628
3600
|
}
|
|
3629
|
-
function
|
|
3630
|
-
const r =
|
|
3631
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3601
|
+
function _e(e, t = se().fallbackLocale) {
|
|
3602
|
+
const r = Rt(e);
|
|
3603
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
3632
3604
|
}
|
|
3633
3605
|
function W() {
|
|
3634
3606
|
return ut ?? void 0;
|
|
3635
3607
|
}
|
|
3636
|
-
|
|
3608
|
+
De.subscribe((e) => {
|
|
3637
3609
|
ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3638
3610
|
});
|
|
3639
|
-
const
|
|
3640
|
-
if (e &&
|
|
3641
|
-
const { loadingDelay: t } =
|
|
3611
|
+
const Ci = (e) => {
|
|
3612
|
+
if (e && mi(e) && Re(e)) {
|
|
3613
|
+
const { loadingDelay: t } = se();
|
|
3642
3614
|
let r;
|
|
3643
3615
|
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
3644
|
-
() =>
|
|
3616
|
+
() => Je.set(!0),
|
|
3645
3617
|
t
|
|
3646
|
-
) :
|
|
3647
|
-
|
|
3618
|
+
) : Je.set(!0), Tr(e).then(() => {
|
|
3619
|
+
De.set(e);
|
|
3648
3620
|
}).finally(() => {
|
|
3649
|
-
clearTimeout(r),
|
|
3621
|
+
clearTimeout(r), Je.set(!1);
|
|
3650
3622
|
});
|
|
3651
3623
|
}
|
|
3652
|
-
return
|
|
3653
|
-
}, Z = Bi(
|
|
3654
|
-
set:
|
|
3655
|
-
}),
|
|
3624
|
+
return De.set(e);
|
|
3625
|
+
}, Z = Mi(Bi({}, De), {
|
|
3626
|
+
set: Ci
|
|
3627
|
+
}), ke = (e) => {
|
|
3656
3628
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3657
3629
|
return (n) => {
|
|
3658
3630
|
const i = JSON.stringify(n);
|
|
3659
3631
|
return i in t ? t[i] : t[i] = e(n);
|
|
3660
3632
|
};
|
|
3661
3633
|
};
|
|
3662
|
-
var
|
|
3634
|
+
var Ii = Object.defineProperty, Ue = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
|
|
3663
3635
|
for (var r in t || (t = {}))
|
|
3664
|
-
|
|
3665
|
-
if (
|
|
3666
|
-
for (var r of
|
|
3667
|
-
|
|
3636
|
+
wr.call(t, r) && Dt(e, r, t[r]);
|
|
3637
|
+
if (Ue)
|
|
3638
|
+
for (var r of Ue(t))
|
|
3639
|
+
Hr.call(t, r) && Dt(e, r, t[r]);
|
|
3668
3640
|
return e;
|
|
3669
|
-
},
|
|
3641
|
+
}, le = (e, t) => {
|
|
3670
3642
|
var r = {};
|
|
3671
3643
|
for (var n in e)
|
|
3672
|
-
|
|
3673
|
-
if (e != null &&
|
|
3674
|
-
for (var n of
|
|
3675
|
-
t.indexOf(n) < 0 &&
|
|
3644
|
+
wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3645
|
+
if (e != null && Ue)
|
|
3646
|
+
for (var n of Ue(e))
|
|
3647
|
+
t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
|
|
3676
3648
|
return r;
|
|
3677
3649
|
};
|
|
3678
|
-
const
|
|
3679
|
-
const { formats: r } =
|
|
3650
|
+
const ye = (e, t) => {
|
|
3651
|
+
const { formats: r } = se();
|
|
3680
3652
|
if (e in r && t in r[e])
|
|
3681
3653
|
return r[e][t];
|
|
3682
3654
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3683
|
-
},
|
|
3655
|
+
}, Li = ke(
|
|
3684
3656
|
(e) => {
|
|
3685
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3657
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3686
3658
|
if (r == null)
|
|
3687
3659
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3688
|
-
return n && (i =
|
|
3660
|
+
return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
|
|
3689
3661
|
}
|
|
3690
|
-
),
|
|
3662
|
+
), Ni = ke(
|
|
3691
3663
|
(e) => {
|
|
3692
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3664
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3693
3665
|
if (r == null)
|
|
3694
3666
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3695
|
-
return n ? i =
|
|
3667
|
+
return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3696
3668
|
}
|
|
3697
|
-
),
|
|
3669
|
+
), $i = ke(
|
|
3698
3670
|
(e) => {
|
|
3699
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3671
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
3700
3672
|
if (r == null)
|
|
3701
3673
|
throw new Error(
|
|
3702
3674
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3703
3675
|
);
|
|
3704
|
-
return n ? i =
|
|
3676
|
+
return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3705
3677
|
}
|
|
3706
|
-
),
|
|
3678
|
+
), Ri = (e = {}) => {
|
|
3707
3679
|
var t = e, {
|
|
3708
3680
|
locale: r = W()
|
|
3709
|
-
} = t, n =
|
|
3681
|
+
} = t, n = le(t, [
|
|
3710
3682
|
"locale"
|
|
3711
3683
|
]);
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3684
|
+
return Li(_t({ locale: r }, n));
|
|
3685
|
+
}, Di = (e = {}) => {
|
|
3714
3686
|
var t = e, {
|
|
3715
3687
|
locale: r = W()
|
|
3716
|
-
} = t, n =
|
|
3688
|
+
} = t, n = le(t, [
|
|
3717
3689
|
"locale"
|
|
3718
3690
|
]);
|
|
3719
|
-
return
|
|
3720
|
-
},
|
|
3691
|
+
return Ni(_t({ locale: r }, n));
|
|
3692
|
+
}, Ui = (e = {}) => {
|
|
3721
3693
|
var t = e, {
|
|
3722
3694
|
locale: r = W()
|
|
3723
|
-
} = t, n =
|
|
3695
|
+
} = t, n = le(t, [
|
|
3724
3696
|
"locale"
|
|
3725
3697
|
]);
|
|
3726
|
-
return
|
|
3727
|
-
},
|
|
3698
|
+
return $i(_t({ locale: r }, n));
|
|
3699
|
+
}, Gi = ke(
|
|
3728
3700
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3729
|
-
(e, t = W()) => new
|
|
3730
|
-
ignoreTag:
|
|
3701
|
+
(e, t = W()) => new vr(e, t, se().formats, {
|
|
3702
|
+
ignoreTag: se().ignoreTag
|
|
3731
3703
|
})
|
|
3732
|
-
),
|
|
3704
|
+
), Fi = (e, t = {}) => {
|
|
3733
3705
|
var r, n, i, o;
|
|
3734
3706
|
let s = t;
|
|
3735
3707
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3742,9 +3714,9 @@ const ve = (e, t) => {
|
|
|
3742
3714
|
throw new Error(
|
|
3743
3715
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3744
3716
|
);
|
|
3745
|
-
let h =
|
|
3717
|
+
let h = _r(e, l);
|
|
3746
3718
|
if (!h)
|
|
3747
|
-
h = (o = (i = (n = (r =
|
|
3719
|
+
h = (o = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3748
3720
|
else if (typeof h != "string")
|
|
3749
3721
|
return console.warn(
|
|
3750
3722
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3753,7 +3725,7 @@ const ve = (e, t) => {
|
|
|
3753
3725
|
return h;
|
|
3754
3726
|
let p = h;
|
|
3755
3727
|
try {
|
|
3756
|
-
p =
|
|
3728
|
+
p = Gi(h, l).format(a);
|
|
3757
3729
|
} catch (c) {
|
|
3758
3730
|
c instanceof Error && console.warn(
|
|
3759
3731
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3761,26 +3733,26 @@ const ve = (e, t) => {
|
|
|
3761
3733
|
);
|
|
3762
3734
|
}
|
|
3763
3735
|
return p;
|
|
3764
|
-
},
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
function
|
|
3770
|
-
|
|
3771
|
-
}
|
|
3772
|
-
function
|
|
3773
|
-
|
|
3736
|
+
}, ji = (e, t) => Ui(t).format(e), ki = (e, t) => Di(t).format(e), Vi = (e, t) => Ri(t).format(e), Xi = (e, t = W()) => _r(e, t), Wi = ue([Z, ve], () => Fi);
|
|
3737
|
+
ue([Z], () => ji);
|
|
3738
|
+
ue([Z], () => ki);
|
|
3739
|
+
ue([Z], () => Vi);
|
|
3740
|
+
ue([Z, ve], () => Xi);
|
|
3741
|
+
function Ut(e, t) {
|
|
3742
|
+
xr(e, t);
|
|
3743
|
+
}
|
|
3744
|
+
function zi(e) {
|
|
3745
|
+
Ti({
|
|
3774
3746
|
fallbackLocale: "en"
|
|
3775
3747
|
}), Z.set(e);
|
|
3776
3748
|
}
|
|
3777
|
-
function
|
|
3749
|
+
function Zi(e, t) {
|
|
3778
3750
|
if (e) {
|
|
3779
3751
|
const r = document.createElement("style");
|
|
3780
3752
|
r.innerHTML = t, e.appendChild(r);
|
|
3781
3753
|
}
|
|
3782
3754
|
}
|
|
3783
|
-
function
|
|
3755
|
+
function Qi(e, t) {
|
|
3784
3756
|
const r = new URL(t);
|
|
3785
3757
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3786
3758
|
const i = document.createElement("style");
|
|
@@ -3789,7 +3761,7 @@ function zi(e, t) {
|
|
|
3789
3761
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3790
3762
|
});
|
|
3791
3763
|
}
|
|
3792
|
-
function
|
|
3764
|
+
function Yi(e, t, r) {
|
|
3793
3765
|
if (window.emMessageBus) {
|
|
3794
3766
|
const n = document.createElement("style");
|
|
3795
3767
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3797,16 +3769,85 @@ function Zi(e, t, r) {
|
|
|
3797
3769
|
});
|
|
3798
3770
|
}
|
|
3799
3771
|
}
|
|
3800
|
-
|
|
3772
|
+
/*! *****************************************************************************
|
|
3773
|
+
Copyright (c) Microsoft Corporation.
|
|
3774
|
+
|
|
3775
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3776
|
+
purpose with or without fee is hereby granted.
|
|
3777
|
+
|
|
3778
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3779
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3780
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3781
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3782
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3783
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3784
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3785
|
+
***************************************************************************** */
|
|
3786
|
+
var lt = function(e, t) {
|
|
3787
|
+
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3788
|
+
r.__proto__ = n;
|
|
3789
|
+
} || function(r, n) {
|
|
3790
|
+
for (var i in n)
|
|
3791
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3792
|
+
}, lt(e, t);
|
|
3793
|
+
};
|
|
3794
|
+
function Ee(e, t) {
|
|
3795
|
+
if (typeof t != "function" && t !== null)
|
|
3796
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3797
|
+
lt(e, t);
|
|
3798
|
+
function r() {
|
|
3799
|
+
this.constructor = e;
|
|
3800
|
+
}
|
|
3801
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3802
|
+
}
|
|
3803
|
+
function ht(e) {
|
|
3804
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3805
|
+
if (r)
|
|
3806
|
+
return r.call(e);
|
|
3807
|
+
if (e && typeof e.length == "number")
|
|
3808
|
+
return {
|
|
3809
|
+
next: function() {
|
|
3810
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
3811
|
+
}
|
|
3812
|
+
};
|
|
3813
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3814
|
+
}
|
|
3815
|
+
function ct(e, t) {
|
|
3816
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3817
|
+
if (!r)
|
|
3818
|
+
return e;
|
|
3819
|
+
var n = r.call(e), i, o = [], s;
|
|
3820
|
+
try {
|
|
3821
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
3822
|
+
o.push(i.value);
|
|
3823
|
+
} catch (a) {
|
|
3824
|
+
s = { error: a };
|
|
3825
|
+
} finally {
|
|
3826
|
+
try {
|
|
3827
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
3828
|
+
} finally {
|
|
3829
|
+
if (s)
|
|
3830
|
+
throw s.error;
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
return o;
|
|
3834
|
+
}
|
|
3835
|
+
function ft(e, t, r) {
|
|
3836
|
+
if (arguments.length === 2)
|
|
3837
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
3838
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3839
|
+
return e.concat(o || t);
|
|
3840
|
+
}
|
|
3841
|
+
function V(e) {
|
|
3801
3842
|
return typeof e == "function";
|
|
3802
3843
|
}
|
|
3803
|
-
function
|
|
3844
|
+
function Pr(e) {
|
|
3804
3845
|
var t = function(n) {
|
|
3805
3846
|
Error.call(n), n.stack = new Error().stack;
|
|
3806
3847
|
}, r = e(t);
|
|
3807
3848
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3808
3849
|
}
|
|
3809
|
-
var
|
|
3850
|
+
var qe = Pr(function(e) {
|
|
3810
3851
|
return function(r) {
|
|
3811
3852
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3812
3853
|
` + r.map(function(n, i) {
|
|
@@ -3815,13 +3856,13 @@ var Qe = wr(function(e) {
|
|
|
3815
3856
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
3816
3857
|
};
|
|
3817
3858
|
});
|
|
3818
|
-
function
|
|
3859
|
+
function pt(e, t) {
|
|
3819
3860
|
if (e) {
|
|
3820
3861
|
var r = e.indexOf(t);
|
|
3821
3862
|
0 <= r && e.splice(r, 1);
|
|
3822
3863
|
}
|
|
3823
3864
|
}
|
|
3824
|
-
var
|
|
3865
|
+
var Ve = function() {
|
|
3825
3866
|
function e(t) {
|
|
3826
3867
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3827
3868
|
}
|
|
@@ -3833,7 +3874,7 @@ var je = function() {
|
|
|
3833
3874
|
if (s)
|
|
3834
3875
|
if (this._parentage = null, Array.isArray(s))
|
|
3835
3876
|
try {
|
|
3836
|
-
for (var a =
|
|
3877
|
+
for (var a = ht(s), l = a.next(); !l.done; l = a.next()) {
|
|
3837
3878
|
var u = l.value;
|
|
3838
3879
|
u.remove(this);
|
|
3839
3880
|
}
|
|
@@ -3850,22 +3891,22 @@ var je = function() {
|
|
|
3850
3891
|
else
|
|
3851
3892
|
s.remove(this);
|
|
3852
3893
|
var h = this.initialTeardown;
|
|
3853
|
-
if (
|
|
3894
|
+
if (V(h))
|
|
3854
3895
|
try {
|
|
3855
3896
|
h();
|
|
3856
3897
|
} catch (g) {
|
|
3857
|
-
o = g instanceof
|
|
3898
|
+
o = g instanceof qe ? g.errors : [g];
|
|
3858
3899
|
}
|
|
3859
3900
|
var p = this._finalizers;
|
|
3860
3901
|
if (p) {
|
|
3861
3902
|
this._finalizers = null;
|
|
3862
3903
|
try {
|
|
3863
|
-
for (var c =
|
|
3904
|
+
for (var c = ht(p), b = c.next(); !b.done; b = c.next()) {
|
|
3864
3905
|
var y = b.value;
|
|
3865
3906
|
try {
|
|
3866
|
-
|
|
3907
|
+
Gt(y);
|
|
3867
3908
|
} catch (g) {
|
|
3868
|
-
o = o ?? [], g instanceof
|
|
3909
|
+
o = o ?? [], g instanceof qe ? o = ft(ft([], ct(o)), ct(g.errors)) : o.push(g);
|
|
3869
3910
|
}
|
|
3870
3911
|
}
|
|
3871
3912
|
} catch (g) {
|
|
@@ -3880,13 +3921,13 @@ var je = function() {
|
|
|
3880
3921
|
}
|
|
3881
3922
|
}
|
|
3882
3923
|
if (o)
|
|
3883
|
-
throw new
|
|
3924
|
+
throw new qe(o);
|
|
3884
3925
|
}
|
|
3885
3926
|
}, e.prototype.add = function(t) {
|
|
3886
3927
|
var r;
|
|
3887
3928
|
if (t && t !== this)
|
|
3888
3929
|
if (this.closed)
|
|
3889
|
-
|
|
3930
|
+
Gt(t);
|
|
3890
3931
|
else {
|
|
3891
3932
|
if (t instanceof e) {
|
|
3892
3933
|
if (t.closed || t._hasParent(this))
|
|
@@ -3903,56 +3944,52 @@ var je = function() {
|
|
|
3903
3944
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
3904
3945
|
}, e.prototype._removeParent = function(t) {
|
|
3905
3946
|
var r = this._parentage;
|
|
3906
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
3947
|
+
r === t ? this._parentage = null : Array.isArray(r) && pt(r, t);
|
|
3907
3948
|
}, e.prototype.remove = function(t) {
|
|
3908
3949
|
var r = this._finalizers;
|
|
3909
|
-
r &&
|
|
3950
|
+
r && pt(r, t), t instanceof e && t._removeParent(this);
|
|
3910
3951
|
}, e.EMPTY = function() {
|
|
3911
3952
|
var t = new e();
|
|
3912
3953
|
return t.closed = !0, t;
|
|
3913
3954
|
}(), e;
|
|
3914
|
-
}(),
|
|
3915
|
-
function
|
|
3916
|
-
return e instanceof
|
|
3917
|
-
}
|
|
3918
|
-
function
|
|
3919
|
-
|
|
3920
|
-
}
|
|
3921
|
-
var
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
Promise: void 0,
|
|
3925
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
3926
|
-
useDeprecatedNextContext: !1
|
|
3927
|
-
}, Qi = {
|
|
3955
|
+
}(), Ar = Ve.EMPTY;
|
|
3956
|
+
function Or(e) {
|
|
3957
|
+
return e instanceof Ve || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
|
|
3958
|
+
}
|
|
3959
|
+
function Gt(e) {
|
|
3960
|
+
V(e) ? e() : e.unsubscribe();
|
|
3961
|
+
}
|
|
3962
|
+
var Ji = {
|
|
3963
|
+
Promise: void 0
|
|
3964
|
+
}, qi = {
|
|
3928
3965
|
setTimeout: function(e, t) {
|
|
3929
3966
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3930
3967
|
r[n - 2] = arguments[n];
|
|
3931
|
-
return setTimeout.apply(void 0,
|
|
3968
|
+
return setTimeout.apply(void 0, ft([e, t], ct(r)));
|
|
3932
3969
|
},
|
|
3933
3970
|
clearTimeout: function(e) {
|
|
3934
3971
|
return clearTimeout(e);
|
|
3935
3972
|
},
|
|
3936
3973
|
delegate: void 0
|
|
3937
3974
|
};
|
|
3938
|
-
function
|
|
3939
|
-
|
|
3975
|
+
function Ki(e) {
|
|
3976
|
+
qi.setTimeout(function() {
|
|
3940
3977
|
throw e;
|
|
3941
3978
|
});
|
|
3942
3979
|
}
|
|
3943
|
-
function
|
|
3980
|
+
function Ft() {
|
|
3944
3981
|
}
|
|
3945
3982
|
function Le(e) {
|
|
3946
3983
|
e();
|
|
3947
3984
|
}
|
|
3948
3985
|
var Br = function(e) {
|
|
3949
|
-
|
|
3986
|
+
Ee(t, e);
|
|
3950
3987
|
function t(r) {
|
|
3951
3988
|
var n = e.call(this) || this;
|
|
3952
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
3989
|
+
return n.isStopped = !1, r ? (n.destination = r, Or(r) && r.add(n)) : n.destination = ro, n;
|
|
3953
3990
|
}
|
|
3954
3991
|
return t.create = function(r, n, i) {
|
|
3955
|
-
return new
|
|
3992
|
+
return new mt(r, n, i);
|
|
3956
3993
|
}, t.prototype.next = function(r) {
|
|
3957
3994
|
this.isStopped || this._next(r);
|
|
3958
3995
|
}, t.prototype.error = function(r) {
|
|
@@ -3976,11 +4013,7 @@ var Br = function(e) {
|
|
|
3976
4013
|
this.unsubscribe();
|
|
3977
4014
|
}
|
|
3978
4015
|
}, t;
|
|
3979
|
-
}(
|
|
3980
|
-
function Ye(e, t) {
|
|
3981
|
-
return Ji.call(e, t);
|
|
3982
|
-
}
|
|
3983
|
-
var qi = function() {
|
|
4016
|
+
}(Ve), eo = function() {
|
|
3984
4017
|
function e(t) {
|
|
3985
4018
|
this.partialObserver = t;
|
|
3986
4019
|
}
|
|
@@ -4011,55 +4044,43 @@ var qi = function() {
|
|
|
4011
4044
|
Ae(r);
|
|
4012
4045
|
}
|
|
4013
4046
|
}, e;
|
|
4014
|
-
}(),
|
|
4015
|
-
|
|
4047
|
+
}(), mt = function(e) {
|
|
4048
|
+
Ee(t, e);
|
|
4016
4049
|
function t(r, n, i) {
|
|
4017
4050
|
var o = e.call(this) || this, s;
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
};
|
|
4024
|
-
else {
|
|
4025
|
-
var a;
|
|
4026
|
-
o && Ar.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
4027
|
-
return o.unsubscribe();
|
|
4028
|
-
}, s = {
|
|
4029
|
-
next: r.next && Ye(r.next, a),
|
|
4030
|
-
error: r.error && Ye(r.error, a),
|
|
4031
|
-
complete: r.complete && Ye(r.complete, a)
|
|
4032
|
-
}) : s = r;
|
|
4033
|
-
}
|
|
4034
|
-
return o.destination = new qi(s), o;
|
|
4051
|
+
return V(r) || !r ? s = {
|
|
4052
|
+
next: r ?? void 0,
|
|
4053
|
+
error: n ?? void 0,
|
|
4054
|
+
complete: i ?? void 0
|
|
4055
|
+
} : s = r, o.destination = new eo(s), o;
|
|
4035
4056
|
}
|
|
4036
4057
|
return t;
|
|
4037
4058
|
}(Br);
|
|
4038
4059
|
function Ae(e) {
|
|
4039
|
-
|
|
4060
|
+
Ki(e);
|
|
4040
4061
|
}
|
|
4041
|
-
function
|
|
4062
|
+
function to(e) {
|
|
4042
4063
|
throw e;
|
|
4043
4064
|
}
|
|
4044
|
-
var
|
|
4065
|
+
var ro = {
|
|
4045
4066
|
closed: !0,
|
|
4046
|
-
next:
|
|
4047
|
-
error:
|
|
4048
|
-
complete:
|
|
4049
|
-
},
|
|
4067
|
+
next: Ft,
|
|
4068
|
+
error: to,
|
|
4069
|
+
complete: Ft
|
|
4070
|
+
}, no = function() {
|
|
4050
4071
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4051
4072
|
}();
|
|
4052
|
-
function
|
|
4073
|
+
function io(e) {
|
|
4053
4074
|
return e;
|
|
4054
4075
|
}
|
|
4055
|
-
function
|
|
4056
|
-
return e.length === 0 ?
|
|
4076
|
+
function oo(e) {
|
|
4077
|
+
return e.length === 0 ? io : e.length === 1 ? e[0] : function(r) {
|
|
4057
4078
|
return e.reduce(function(n, i) {
|
|
4058
4079
|
return i(n);
|
|
4059
4080
|
}, r);
|
|
4060
4081
|
};
|
|
4061
4082
|
}
|
|
4062
|
-
var
|
|
4083
|
+
var jt = function() {
|
|
4063
4084
|
function e(t) {
|
|
4064
4085
|
t && (this._subscribe = t);
|
|
4065
4086
|
}
|
|
@@ -4067,7 +4088,7 @@ var Gt = function() {
|
|
|
4067
4088
|
var r = new e();
|
|
4068
4089
|
return r.source = this, r.operator = t, r;
|
|
4069
4090
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4070
|
-
var i = this, o =
|
|
4091
|
+
var i = this, o = ao(t) ? t : new mt(t, r, n);
|
|
4071
4092
|
return Le(function() {
|
|
4072
4093
|
var s = i, a = s.operator, l = s.source;
|
|
4073
4094
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4080,8 +4101,8 @@ var Gt = function() {
|
|
|
4080
4101
|
}
|
|
4081
4102
|
}, e.prototype.forEach = function(t, r) {
|
|
4082
4103
|
var n = this;
|
|
4083
|
-
return r =
|
|
4084
|
-
var s = new
|
|
4104
|
+
return r = kt(r), new r(function(i, o) {
|
|
4105
|
+
var s = new mt({
|
|
4085
4106
|
next: function(a) {
|
|
4086
4107
|
try {
|
|
4087
4108
|
t(a);
|
|
@@ -4097,15 +4118,15 @@ var Gt = function() {
|
|
|
4097
4118
|
}, e.prototype._subscribe = function(t) {
|
|
4098
4119
|
var r;
|
|
4099
4120
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4100
|
-
}, e.prototype[
|
|
4121
|
+
}, e.prototype[no] = function() {
|
|
4101
4122
|
return this;
|
|
4102
4123
|
}, e.prototype.pipe = function() {
|
|
4103
4124
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4104
4125
|
t[r] = arguments[r];
|
|
4105
|
-
return
|
|
4126
|
+
return oo(t)(this);
|
|
4106
4127
|
}, e.prototype.toPromise = function(t) {
|
|
4107
4128
|
var r = this;
|
|
4108
|
-
return t =
|
|
4129
|
+
return t = kt(t), new t(function(n, i) {
|
|
4109
4130
|
var o;
|
|
4110
4131
|
r.subscribe(function(s) {
|
|
4111
4132
|
return o = s;
|
|
@@ -4119,32 +4140,32 @@ var Gt = function() {
|
|
|
4119
4140
|
return new e(t);
|
|
4120
4141
|
}, e;
|
|
4121
4142
|
}();
|
|
4122
|
-
function
|
|
4143
|
+
function kt(e) {
|
|
4123
4144
|
var t;
|
|
4124
|
-
return (t = e ??
|
|
4145
|
+
return (t = e ?? Ji.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4125
4146
|
}
|
|
4126
|
-
function
|
|
4127
|
-
return e &&
|
|
4147
|
+
function so(e) {
|
|
4148
|
+
return e && V(e.next) && V(e.error) && V(e.complete);
|
|
4128
4149
|
}
|
|
4129
|
-
function
|
|
4130
|
-
return e && e instanceof Br ||
|
|
4150
|
+
function ao(e) {
|
|
4151
|
+
return e && e instanceof Br || so(e) && Or(e);
|
|
4131
4152
|
}
|
|
4132
|
-
var
|
|
4153
|
+
var uo = Pr(function(e) {
|
|
4133
4154
|
return function() {
|
|
4134
4155
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4135
4156
|
};
|
|
4136
4157
|
}), Mr = function(e) {
|
|
4137
|
-
|
|
4158
|
+
Ee(t, e);
|
|
4138
4159
|
function t() {
|
|
4139
4160
|
var r = e.call(this) || this;
|
|
4140
4161
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4141
4162
|
}
|
|
4142
4163
|
return t.prototype.lift = function(r) {
|
|
4143
|
-
var n = new
|
|
4164
|
+
var n = new Vt(this, this);
|
|
4144
4165
|
return n.operator = r, n;
|
|
4145
4166
|
}, t.prototype._throwIfClosed = function() {
|
|
4146
4167
|
if (this.closed)
|
|
4147
|
-
throw new
|
|
4168
|
+
throw new uo();
|
|
4148
4169
|
}, t.prototype.next = function(r) {
|
|
4149
4170
|
var n = this;
|
|
4150
4171
|
Le(function() {
|
|
@@ -4152,7 +4173,7 @@ var so = wr(function(e) {
|
|
|
4152
4173
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4153
4174
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4154
4175
|
try {
|
|
4155
|
-
for (var s =
|
|
4176
|
+
for (var s = ht(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4156
4177
|
var l = a.value;
|
|
4157
4178
|
l.next(r);
|
|
4158
4179
|
}
|
|
@@ -4201,20 +4222,20 @@ var so = wr(function(e) {
|
|
|
4201
4222
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4202
4223
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4203
4224
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4204
|
-
return o || s ?
|
|
4205
|
-
n.currentObservers = null,
|
|
4225
|
+
return o || s ? Ar : (this.currentObservers = null, a.push(r), new Ve(function() {
|
|
4226
|
+
n.currentObservers = null, pt(a, r);
|
|
4206
4227
|
}));
|
|
4207
4228
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4208
4229
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
4209
4230
|
i ? r.error(o) : s && r.complete();
|
|
4210
4231
|
}, t.prototype.asObservable = function() {
|
|
4211
|
-
var r = new
|
|
4232
|
+
var r = new jt();
|
|
4212
4233
|
return r.source = this, r;
|
|
4213
4234
|
}, t.create = function(r, n) {
|
|
4214
|
-
return new
|
|
4235
|
+
return new Vt(r, n);
|
|
4215
4236
|
}, t;
|
|
4216
|
-
}(
|
|
4217
|
-
|
|
4237
|
+
}(jt), Vt = function(e) {
|
|
4238
|
+
Ee(t, e);
|
|
4218
4239
|
function t(r, n) {
|
|
4219
4240
|
var i = e.call(this) || this;
|
|
4220
4241
|
return i.destination = r, i.source = n, i;
|
|
@@ -4230,17 +4251,17 @@ var so = wr(function(e) {
|
|
|
4230
4251
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
4231
4252
|
}, t.prototype._subscribe = function(r) {
|
|
4232
4253
|
var n, i;
|
|
4233
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
4254
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
|
|
4234
4255
|
}, t;
|
|
4235
|
-
}(Mr),
|
|
4256
|
+
}(Mr), Cr = {
|
|
4236
4257
|
now: function() {
|
|
4237
|
-
return (
|
|
4258
|
+
return (Cr.delegate || Date).now();
|
|
4238
4259
|
},
|
|
4239
4260
|
delegate: void 0
|
|
4240
|
-
},
|
|
4241
|
-
|
|
4261
|
+
}, lo = function(e) {
|
|
4262
|
+
Ee(t, e);
|
|
4242
4263
|
function t(r, n, i) {
|
|
4243
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
4264
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Cr);
|
|
4244
4265
|
var o = e.call(this) || this;
|
|
4245
4266
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
4246
4267
|
}
|
|
@@ -4261,24 +4282,24 @@ var so = wr(function(e) {
|
|
|
4261
4282
|
}
|
|
4262
4283
|
}, t;
|
|
4263
4284
|
}(Mr);
|
|
4264
|
-
const
|
|
4265
|
-
if (
|
|
4266
|
-
const r = new
|
|
4267
|
-
|
|
4285
|
+
const Xt = [], Wt = {}, ho = (e, t = 0) => {
|
|
4286
|
+
if (Xt.indexOf(e) == -1) {
|
|
4287
|
+
const r = new lo(t);
|
|
4288
|
+
Wt[e] = r, Xt.push(e);
|
|
4268
4289
|
}
|
|
4269
|
-
return
|
|
4290
|
+
return Wt[e];
|
|
4270
4291
|
};
|
|
4271
|
-
let
|
|
4272
|
-
const
|
|
4273
|
-
|
|
4274
|
-
},
|
|
4275
|
-
if (!
|
|
4276
|
-
return new Intl.NumberFormat(
|
|
4277
|
-
const n = new Intl.NumberFormat(
|
|
4278
|
-
return
|
|
4292
|
+
let dt = "en-UK", bt = "true", me = 2, gt = "";
|
|
4293
|
+
const co = (e, t, r, n) => {
|
|
4294
|
+
dt = e || "en-UK", bt = t || "true", me = +n || 2, gt = r || "";
|
|
4295
|
+
}, Oe = (e, t) => {
|
|
4296
|
+
if (!gt)
|
|
4297
|
+
return new Intl.NumberFormat(dt, { style: "currency", currency: t, currencyDisplay: bt === "true" ? "symbol" : "code", maximumFractionDigits: me, minimumFractionDigits: me }).format(e);
|
|
4298
|
+
const n = new Intl.NumberFormat(dt, { style: "currency", currency: t, currencyDisplay: bt === "true" ? "symbol" : "code", maximumFractionDigits: me, minimumFractionDigits: me }).formatToParts(e), i = n.find((l) => l.type === "currency"), s = n.filter((l) => l.type !== "currency").map((l) => l.value).join("");
|
|
4299
|
+
return gt === "before" ? `${i.value} ${s}` : `${s} ${i.value}`;
|
|
4279
4300
|
};
|
|
4280
|
-
window.emWidgets = { topic:
|
|
4281
|
-
const
|
|
4301
|
+
window.emWidgets = { topic: ho };
|
|
4302
|
+
const zt = {
|
|
4282
4303
|
en: {
|
|
4283
4304
|
generalMin: "Min",
|
|
4284
4305
|
generalMax: "Max",
|
|
@@ -4310,18 +4331,18 @@ const Xt = {
|
|
|
4310
4331
|
generalMax: "Max"
|
|
4311
4332
|
}
|
|
4312
4333
|
};
|
|
4313
|
-
function
|
|
4314
|
-
|
|
4334
|
+
function fo(e) {
|
|
4335
|
+
Nr(e, "svelte-19lknjo", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.Carousel{display:flex;gap:10px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #F9C405);height:10px;width:10px;opacity:0.5}.VisualDotIndicator .Dot.active{opacity:1;width:30px}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #F9C405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo img{height:36px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #F9C405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
|
|
4315
4336
|
}
|
|
4316
|
-
function
|
|
4337
|
+
function Zt(e, t, r) {
|
|
4317
4338
|
const n = e.slice();
|
|
4318
4339
|
return n[32] = t[r], n[34] = r, n;
|
|
4319
4340
|
}
|
|
4320
|
-
function
|
|
4341
|
+
function Qt(e, t, r) {
|
|
4321
4342
|
const n = e.slice();
|
|
4322
4343
|
return n[35] = t[r], n[34] = r, n;
|
|
4323
4344
|
}
|
|
4324
|
-
function
|
|
4345
|
+
function po(e) {
|
|
4325
4346
|
let t, r = (
|
|
4326
4347
|
/*$_*/
|
|
4327
4348
|
e[4]("noPaymentMethods") + ""
|
|
@@ -4331,19 +4352,19 @@ function co(e) {
|
|
|
4331
4352
|
t = P("p"), n = $(r);
|
|
4332
4353
|
},
|
|
4333
4354
|
m(i, o) {
|
|
4334
|
-
G(i, t, o),
|
|
4355
|
+
G(i, t, o), S(t, n);
|
|
4335
4356
|
},
|
|
4336
4357
|
p(i, o) {
|
|
4337
4358
|
o[0] & /*$_*/
|
|
4338
4359
|
16 && r !== (r = /*$_*/
|
|
4339
|
-
i[4]("noPaymentMethods") + "") &&
|
|
4360
|
+
i[4]("noPaymentMethods") + "") && k(n, r);
|
|
4340
4361
|
},
|
|
4341
4362
|
d(i) {
|
|
4342
4363
|
i && R(t);
|
|
4343
4364
|
}
|
|
4344
4365
|
};
|
|
4345
4366
|
}
|
|
4346
|
-
function
|
|
4367
|
+
function mo(e) {
|
|
4347
4368
|
let t, r, n = (
|
|
4348
4369
|
/*$_*/
|
|
4349
4370
|
e[4]("carouselTitle") + ""
|
|
@@ -4353,46 +4374,46 @@ function fo(e) {
|
|
|
4353
4374
|
), l, u, h, p, c, b, y, g = He(
|
|
4354
4375
|
/*promotedPaymentMethods*/
|
|
4355
4376
|
e[2]
|
|
4356
|
-
),
|
|
4377
|
+
), E = [];
|
|
4357
4378
|
for (let f = 0; f < g.length; f += 1)
|
|
4358
|
-
|
|
4379
|
+
E[f] = Yt(Qt(e, g, f));
|
|
4359
4380
|
let A = He(Array(
|
|
4360
4381
|
/*promotedPaymentMethods*/
|
|
4361
4382
|
e[2].length
|
|
4362
|
-
)),
|
|
4383
|
+
)), x = [];
|
|
4363
4384
|
for (let f = 0; f < A.length; f += 1)
|
|
4364
|
-
|
|
4385
|
+
x[f] = Jt(Zt(e, A, f));
|
|
4365
4386
|
return {
|
|
4366
4387
|
c() {
|
|
4367
|
-
t = P("div"), r = P("h4"), i = $(n), o =
|
|
4368
|
-
for (let f = 0; f < x.length; f += 1)
|
|
4369
|
-
x[f].c();
|
|
4370
|
-
p = F(), c = P("div");
|
|
4388
|
+
t = P("div"), r = P("h4"), i = $(n), o = j(), s = P("p"), l = $(a), u = j(), h = P("div");
|
|
4371
4389
|
for (let f = 0; f < E.length; f += 1)
|
|
4372
4390
|
E[f].c();
|
|
4373
|
-
|
|
4391
|
+
p = j(), c = P("div");
|
|
4392
|
+
for (let f = 0; f < x.length; f += 1)
|
|
4393
|
+
x[f].c();
|
|
4394
|
+
O(t, "class", "CarouselHeader"), O(h, "class", "Carousel"), O(c, "class", "VisualDotIndicator");
|
|
4374
4395
|
},
|
|
4375
|
-
m(f,
|
|
4376
|
-
G(f, t,
|
|
4377
|
-
for (let d = 0; d < x.length; d += 1)
|
|
4378
|
-
x[d] && x[d].m(h, null);
|
|
4379
|
-
e[19](h), G(f, p, w), G(f, c, w);
|
|
4396
|
+
m(f, T) {
|
|
4397
|
+
G(f, t, T), S(t, r), S(r, i), S(t, o), S(t, s), S(s, l), G(f, u, T), G(f, h, T);
|
|
4380
4398
|
for (let d = 0; d < E.length; d += 1)
|
|
4381
|
-
E[d] && E[d].m(
|
|
4399
|
+
E[d] && E[d].m(h, null);
|
|
4400
|
+
e[19](h), G(f, p, T), G(f, c, T);
|
|
4401
|
+
for (let d = 0; d < x.length; d += 1)
|
|
4402
|
+
x[d] && x[d].m(c, null);
|
|
4382
4403
|
b || (y = [
|
|
4383
|
-
|
|
4404
|
+
Be(
|
|
4384
4405
|
h,
|
|
4385
4406
|
"touchstart",
|
|
4386
4407
|
/*handleTouchStart*/
|
|
4387
4408
|
e[6]
|
|
4388
4409
|
),
|
|
4389
|
-
|
|
4410
|
+
Be(
|
|
4390
4411
|
h,
|
|
4391
4412
|
"touchmove",
|
|
4392
4413
|
/*handleTouchMove*/
|
|
4393
4414
|
e[7]
|
|
4394
4415
|
),
|
|
4395
|
-
|
|
4416
|
+
Be(
|
|
4396
4417
|
h,
|
|
4397
4418
|
"touchend",
|
|
4398
4419
|
/*handleTouchEnd*/
|
|
@@ -4400,12 +4421,12 @@ function fo(e) {
|
|
|
4400
4421
|
)
|
|
4401
4422
|
], b = !0);
|
|
4402
4423
|
},
|
|
4403
|
-
p(f,
|
|
4404
|
-
if (
|
|
4424
|
+
p(f, T) {
|
|
4425
|
+
if (T[0] & /*$_*/
|
|
4405
4426
|
16 && n !== (n = /*$_*/
|
|
4406
|
-
f[4]("carouselTitle") + "") &&
|
|
4427
|
+
f[4]("carouselTitle") + "") && k(i, n), T[0] & /*$_*/
|
|
4407
4428
|
16 && a !== (a = /*$_*/
|
|
4408
|
-
f[4]("carouselSubtitle") + "") &&
|
|
4429
|
+
f[4]("carouselSubtitle") + "") && k(l, a), T[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, $_*/
|
|
4409
4430
|
60) {
|
|
4410
4431
|
g = He(
|
|
4411
4432
|
/*promotedPaymentMethods*/
|
|
@@ -4413,14 +4434,14 @@ function fo(e) {
|
|
|
4413
4434
|
);
|
|
4414
4435
|
let d;
|
|
4415
4436
|
for (d = 0; d < g.length; d += 1) {
|
|
4416
|
-
const
|
|
4417
|
-
|
|
4437
|
+
const B = Qt(f, g, d);
|
|
4438
|
+
E[d] ? E[d].p(B, T) : (E[d] = Yt(B), E[d].c(), E[d].m(h, null));
|
|
4418
4439
|
}
|
|
4419
|
-
for (; d <
|
|
4420
|
-
|
|
4421
|
-
|
|
4440
|
+
for (; d < E.length; d += 1)
|
|
4441
|
+
E[d].d(1);
|
|
4442
|
+
E.length = g.length;
|
|
4422
4443
|
}
|
|
4423
|
-
if (
|
|
4444
|
+
if (T[0] & /*activeIndex, promotedPaymentMethods*/
|
|
4424
4445
|
12) {
|
|
4425
4446
|
A = He(Array(
|
|
4426
4447
|
/*promotedPaymentMethods*/
|
|
@@ -4428,20 +4449,20 @@ function fo(e) {
|
|
|
4428
4449
|
));
|
|
4429
4450
|
let d;
|
|
4430
4451
|
for (d = 0; d < A.length; d += 1) {
|
|
4431
|
-
const
|
|
4432
|
-
|
|
4452
|
+
const B = Zt(f, A, d);
|
|
4453
|
+
x[d] ? x[d].p(B, T) : (x[d] = Jt(B), x[d].c(), x[d].m(c, null));
|
|
4433
4454
|
}
|
|
4434
|
-
for (; d <
|
|
4435
|
-
|
|
4436
|
-
|
|
4455
|
+
for (; d < x.length; d += 1)
|
|
4456
|
+
x[d].d(1);
|
|
4457
|
+
x.length = A.length;
|
|
4437
4458
|
}
|
|
4438
4459
|
},
|
|
4439
4460
|
d(f) {
|
|
4440
|
-
f && (R(t), R(u), R(h), R(p), R(c)),
|
|
4461
|
+
f && (R(t), R(u), R(h), R(p), R(c)), St(E, f), e[19](null), St(x, f), b = !1, ae(y);
|
|
4441
4462
|
}
|
|
4442
4463
|
};
|
|
4443
4464
|
}
|
|
4444
|
-
function
|
|
4465
|
+
function Yt(e) {
|
|
4445
4466
|
let t, r, n, i, o, s, a, l, u, h = (
|
|
4446
4467
|
/*method*/
|
|
4447
4468
|
(e[35].Label || /*method*/
|
|
@@ -4450,23 +4471,23 @@ function Zt(e) {
|
|
|
4450
4471
|
/*$_*/
|
|
4451
4472
|
e[4](`${/*method*/
|
|
4452
4473
|
e[35].ProcessingTime}`) + ""
|
|
4453
|
-
),
|
|
4474
|
+
), E, A, x, f, T = (
|
|
4454
4475
|
/*$_*/
|
|
4455
4476
|
e[4]("generalMin") + ""
|
|
4456
|
-
), d,
|
|
4477
|
+
), d, B, U = Oe(
|
|
4457
4478
|
/*method*/
|
|
4458
4479
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4459
4480
|
/*method*/
|
|
4460
4481
|
e[35].DisplayCurrency.Name
|
|
4461
|
-
) + "", z,
|
|
4482
|
+
) + "", z, xe, Q = (
|
|
4462
4483
|
/*$_*/
|
|
4463
4484
|
e[4]("generalMax") + ""
|
|
4464
|
-
),
|
|
4485
|
+
), he, Se, Y = Oe(
|
|
4465
4486
|
/*method*/
|
|
4466
4487
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4467
4488
|
/*method*/
|
|
4468
4489
|
e[35].DisplayCurrency.Name
|
|
4469
|
-
) + "",
|
|
4490
|
+
) + "", ce, Te, m, M, L;
|
|
4470
4491
|
function J() {
|
|
4471
4492
|
return (
|
|
4472
4493
|
/*click_handler*/
|
|
@@ -4478,57 +4499,57 @@ function Zt(e) {
|
|
|
4478
4499
|
}
|
|
4479
4500
|
return {
|
|
4480
4501
|
c() {
|
|
4481
|
-
t = P("div"), r = P("div"), n = P("img"), s =
|
|
4482
|
-
e[35].LogoUrl) ||
|
|
4483
|
-
e[35].Label),
|
|
4502
|
+
t = P("div"), r = P("div"), n = P("img"), s = j(), a = P("div"), l = P("div"), u = P("span"), p = $(h), c = j(), b = P("div"), y = P("span"), E = $(g), A = j(), x = P("div"), f = P("span"), d = $(T), B = j(), z = $(U), xe = $(" / "), he = $(Q), Se = j(), ce = $(Y), Te = j(), xt(n.src, i = /*method*/
|
|
4503
|
+
e[35].LogoUrl) || O(n, "src", i), O(n, "alt", o = /*method*/
|
|
4504
|
+
e[35].Label), O(r, "class", "MethodLogo"), O(l, "class", "MethodTitle"), O(b, "class", "MethodProcessingTime"), O(f, "class", "Limits"), O(x, "class", "MethodLimits"), O(a, "class", "MethodInfo"), O(t, "class", m = `CarouselCardWrapper ${/*index*/
|
|
4484
4505
|
e[34] === /*activeIndex*/
|
|
4485
4506
|
e[3] ? "active" : ""}`);
|
|
4486
4507
|
},
|
|
4487
4508
|
m(q, I) {
|
|
4488
|
-
G(q, t, I),
|
|
4509
|
+
G(q, t, I), S(t, r), S(r, n), S(t, s), S(t, a), S(a, l), S(l, u), S(u, p), S(a, c), S(a, b), S(b, y), S(y, E), S(a, A), S(a, x), S(x, f), S(f, d), S(f, B), S(f, z), S(f, xe), S(f, he), S(f, Se), S(f, ce), S(t, Te), M || (L = Be(t, "click", J), M = !0);
|
|
4489
4510
|
},
|
|
4490
4511
|
p(q, I) {
|
|
4491
4512
|
e = q, I[0] & /*promotedPaymentMethods*/
|
|
4492
|
-
4 && !
|
|
4493
|
-
e[35].LogoUrl) &&
|
|
4513
|
+
4 && !xt(n.src, i = /*method*/
|
|
4514
|
+
e[35].LogoUrl) && O(n, "src", i), I[0] & /*promotedPaymentMethods*/
|
|
4494
4515
|
4 && o !== (o = /*method*/
|
|
4495
|
-
e[35].Label) &&
|
|
4516
|
+
e[35].Label) && O(n, "alt", o), I[0] & /*promotedPaymentMethods*/
|
|
4496
4517
|
4 && h !== (h = /*method*/
|
|
4497
4518
|
(e[35].Label || /*method*/
|
|
4498
|
-
e[35].Name) + "") &&
|
|
4519
|
+
e[35].Name) + "") && k(p, h), I[0] & /*$_, promotedPaymentMethods*/
|
|
4499
4520
|
20 && g !== (g = /*$_*/
|
|
4500
4521
|
e[4](`${/*method*/
|
|
4501
|
-
e[35].ProcessingTime}`) + "") &&
|
|
4502
|
-
16 &&
|
|
4503
|
-
e[4]("generalMin") + "") &&
|
|
4504
|
-
4 && U !== (U =
|
|
4522
|
+
e[35].ProcessingTime}`) + "") && k(E, g), I[0] & /*$_*/
|
|
4523
|
+
16 && T !== (T = /*$_*/
|
|
4524
|
+
e[4]("generalMin") + "") && k(d, T), I[0] & /*promotedPaymentMethods*/
|
|
4525
|
+
4 && U !== (U = Oe(
|
|
4505
4526
|
/*method*/
|
|
4506
4527
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4507
4528
|
/*method*/
|
|
4508
4529
|
e[35].DisplayCurrency.Name
|
|
4509
|
-
) + "") &&
|
|
4530
|
+
) + "") && k(z, U), I[0] & /*$_*/
|
|
4510
4531
|
16 && Q !== (Q = /*$_*/
|
|
4511
|
-
e[4]("generalMax") + "") &&
|
|
4512
|
-
4 && Y !== (Y =
|
|
4532
|
+
e[4]("generalMax") + "") && k(he, Q), I[0] & /*promotedPaymentMethods*/
|
|
4533
|
+
4 && Y !== (Y = Oe(
|
|
4513
4534
|
/*method*/
|
|
4514
4535
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4515
4536
|
/*method*/
|
|
4516
4537
|
e[35].DisplayCurrency.Name
|
|
4517
|
-
) + "") &&
|
|
4538
|
+
) + "") && k(ce, Y), I[0] & /*activeIndex*/
|
|
4518
4539
|
8 && m !== (m = `CarouselCardWrapper ${/*index*/
|
|
4519
4540
|
e[34] === /*activeIndex*/
|
|
4520
|
-
e[3] ? "active" : ""}`) &&
|
|
4541
|
+
e[3] ? "active" : ""}`) && O(t, "class", m);
|
|
4521
4542
|
},
|
|
4522
4543
|
d(q) {
|
|
4523
|
-
q && R(t),
|
|
4544
|
+
q && R(t), M = !1, L();
|
|
4524
4545
|
}
|
|
4525
4546
|
};
|
|
4526
4547
|
}
|
|
4527
|
-
function
|
|
4548
|
+
function Jt(e) {
|
|
4528
4549
|
let t, r;
|
|
4529
4550
|
return {
|
|
4530
4551
|
c() {
|
|
4531
|
-
t = P("div"),
|
|
4552
|
+
t = P("div"), O(t, "class", r = `Dot ${/*index*/
|
|
4532
4553
|
e[34] === /*activeIndex*/
|
|
4533
4554
|
e[3] ? "active" : ""}`);
|
|
4534
4555
|
},
|
|
@@ -4539,28 +4560,28 @@ function Qt(e) {
|
|
|
4539
4560
|
i[0] & /*activeIndex*/
|
|
4540
4561
|
8 && r !== (r = `Dot ${/*index*/
|
|
4541
4562
|
n[34] === /*activeIndex*/
|
|
4542
|
-
n[3] ? "active" : ""}`) &&
|
|
4563
|
+
n[3] ? "active" : ""}`) && O(t, "class", r);
|
|
4543
4564
|
},
|
|
4544
4565
|
d(n) {
|
|
4545
4566
|
n && R(t);
|
|
4546
4567
|
}
|
|
4547
4568
|
};
|
|
4548
4569
|
}
|
|
4549
|
-
function
|
|
4570
|
+
function bo(e) {
|
|
4550
4571
|
let t, r;
|
|
4551
4572
|
function n(s, a) {
|
|
4552
4573
|
return (
|
|
4553
4574
|
/*promotedPaymentMethods*/
|
|
4554
|
-
s[2].length > 0 ?
|
|
4575
|
+
s[2].length > 0 ? mo : po
|
|
4555
4576
|
);
|
|
4556
4577
|
}
|
|
4557
4578
|
let i = n(e), o = i(e);
|
|
4558
4579
|
return {
|
|
4559
4580
|
c() {
|
|
4560
|
-
t = P("div"), r = P("div"), o.c(),
|
|
4581
|
+
t = P("div"), r = P("div"), o.c(), O(r, "class", "CashierCarouselWarpper");
|
|
4561
4582
|
},
|
|
4562
4583
|
m(s, a) {
|
|
4563
|
-
G(s, t, a),
|
|
4584
|
+
G(s, t, a), S(t, r), o.m(r, null), e[20](t);
|
|
4564
4585
|
},
|
|
4565
4586
|
p(s, a) {
|
|
4566
4587
|
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(r, null)));
|
|
@@ -4572,28 +4593,28 @@ function po(e) {
|
|
|
4572
4593
|
}
|
|
4573
4594
|
};
|
|
4574
4595
|
}
|
|
4575
|
-
function
|
|
4596
|
+
function go(e, t, r) {
|
|
4576
4597
|
let n;
|
|
4577
|
-
|
|
4578
|
-
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: p = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0,
|
|
4579
|
-
const
|
|
4598
|
+
Lr(e, Wi, (m) => r(4, n = m));
|
|
4599
|
+
let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: p = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0, E = !0, A = 0, x = !1, f;
|
|
4600
|
+
const T = (m) => {
|
|
4580
4601
|
m.data && m.data.type === "PromotedPaymentMethods" && (r(2, y = m.data.promotedPaymentMethods), r(3, g = Math.floor(y.length / 2)));
|
|
4581
4602
|
};
|
|
4582
|
-
Object.keys(
|
|
4583
|
-
|
|
4603
|
+
Object.keys(zt).forEach((m) => {
|
|
4604
|
+
Ut(m, zt[m]);
|
|
4584
4605
|
});
|
|
4585
4606
|
const d = () => {
|
|
4586
4607
|
let m = c;
|
|
4587
4608
|
if (m)
|
|
4588
|
-
return fetch(m).then((
|
|
4589
|
-
Object.keys(
|
|
4590
|
-
|
|
4609
|
+
return fetch(m).then((M) => M.json()).then((M) => {
|
|
4610
|
+
Object.keys(M).forEach((L) => {
|
|
4611
|
+
Ut(L, M[L]);
|
|
4591
4612
|
});
|
|
4592
|
-
}).catch((
|
|
4593
|
-
console.log(
|
|
4613
|
+
}).catch((M) => {
|
|
4614
|
+
console.log(M);
|
|
4594
4615
|
});
|
|
4595
|
-
},
|
|
4596
|
-
|
|
4616
|
+
}, B = () => {
|
|
4617
|
+
zi(i);
|
|
4597
4618
|
}, U = (m) => {
|
|
4598
4619
|
m.Name, window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4599
4620
|
"selectPayMeth",
|
|
@@ -4607,27 +4628,27 @@ function mo(e, t, r) {
|
|
|
4607
4628
|
}, z = () => {
|
|
4608
4629
|
let J;
|
|
4609
4630
|
return y.length % 2 === 1 ? J = Math.floor(y.length / 2) : J = y.length / 2 - 0.5, `translateX(${(J - g) * 165}px)`;
|
|
4610
|
-
},
|
|
4611
|
-
A = m.touches[0].clientX,
|
|
4631
|
+
}, xe = (m) => {
|
|
4632
|
+
A = m.touches[0].clientX, x = !0, f.classList.add("dragging");
|
|
4612
4633
|
}, Q = (m) => {
|
|
4613
|
-
if (!
|
|
4634
|
+
if (!x)
|
|
4614
4635
|
return;
|
|
4615
|
-
const
|
|
4616
|
-
Math.abs(
|
|
4617
|
-
},
|
|
4618
|
-
if (!
|
|
4636
|
+
const M = m.touches[0].clientX;
|
|
4637
|
+
Math.abs(M - A) > 10 && m.preventDefault();
|
|
4638
|
+
}, he = (m) => {
|
|
4639
|
+
if (!x)
|
|
4619
4640
|
return;
|
|
4620
|
-
|
|
4621
|
-
const
|
|
4641
|
+
x = !1, f.classList.remove("dragging");
|
|
4642
|
+
const M = m.changedTouches[0].clientX, L = A - M;
|
|
4622
4643
|
Math.abs(L) > 50 && (L > 0 && g < y.length - 1 ? r(3, g++, g) : L < 0 && g > 0 && r(3, g--, g), r(1, f.style.transform = z(), f));
|
|
4623
4644
|
}, Se = () => {
|
|
4624
|
-
|
|
4645
|
+
E && (r(1, f.style.transform = z(), f), E = !1);
|
|
4625
4646
|
};
|
|
4626
|
-
|
|
4627
|
-
window.removeEventListener("message",
|
|
4647
|
+
Fr(() => (co(o, s, a, l), window.addEventListener("message", T), f && z(), () => {
|
|
4648
|
+
window.removeEventListener("message", T);
|
|
4628
4649
|
}));
|
|
4629
4650
|
const Y = (m) => U(m);
|
|
4630
|
-
function
|
|
4651
|
+
function ce(m) {
|
|
4631
4652
|
Ne[m ? "unshift" : "push"](() => {
|
|
4632
4653
|
f = m, r(1, f);
|
|
4633
4654
|
});
|
|
@@ -4641,12 +4662,12 @@ function mo(e, t, r) {
|
|
|
4641
4662
|
"lang" in m && r(9, i = m.lang), "local" in m && r(10, o = m.local), "currencysymbol" in m && r(11, s = m.currencysymbol), "currencyposition" in m && r(12, a = m.currencyposition), "currencydecimals" in m && r(13, l = m.currencydecimals), "clientstyling" in m && r(14, u = m.clientstyling), "clientstylingurl" in m && r(15, h = m.clientstylingurl), "mbsource" in m && r(16, p = m.mbsource), "translationurl" in m && r(17, c = m.translationurl);
|
|
4642
4663
|
}, e.$$.update = () => {
|
|
4643
4664
|
e.$$.dirty[0] & /*lang*/
|
|
4644
|
-
512 && i &&
|
|
4665
|
+
512 && i && B(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4645
4666
|
131584 && i && c && d(), e.$$.dirty[0] & /*carouselContainer*/
|
|
4646
4667
|
2 && f && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4647
|
-
16385 && u && b &&
|
|
4648
|
-
32769 && h && b &&
|
|
4649
|
-
65537 && p && b &&
|
|
4668
|
+
16385 && u && b && Zi(b, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4669
|
+
32769 && h && b && Qi(b, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4670
|
+
65537 && p && b && Yi(b, `${p}.Style`);
|
|
4650
4671
|
}, [
|
|
4651
4672
|
b,
|
|
4652
4673
|
f,
|
|
@@ -4654,9 +4675,9 @@ function mo(e, t, r) {
|
|
|
4654
4675
|
g,
|
|
4655
4676
|
n,
|
|
4656
4677
|
U,
|
|
4657
|
-
|
|
4678
|
+
xe,
|
|
4658
4679
|
Q,
|
|
4659
|
-
|
|
4680
|
+
he,
|
|
4660
4681
|
i,
|
|
4661
4682
|
o,
|
|
4662
4683
|
s,
|
|
@@ -4667,18 +4688,18 @@ function mo(e, t, r) {
|
|
|
4667
4688
|
p,
|
|
4668
4689
|
c,
|
|
4669
4690
|
Y,
|
|
4670
|
-
|
|
4691
|
+
ce,
|
|
4671
4692
|
Te
|
|
4672
4693
|
];
|
|
4673
4694
|
}
|
|
4674
|
-
class
|
|
4695
|
+
class yo extends Kr {
|
|
4675
4696
|
constructor(t) {
|
|
4676
|
-
super(),
|
|
4697
|
+
super(), Jr(
|
|
4677
4698
|
this,
|
|
4678
4699
|
t,
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4700
|
+
go,
|
|
4701
|
+
bo,
|
|
4702
|
+
Kt,
|
|
4682
4703
|
{
|
|
4683
4704
|
lang: 9,
|
|
4684
4705
|
local: 10,
|
|
@@ -4690,7 +4711,7 @@ class bo extends qr {
|
|
|
4690
4711
|
mbsource: 16,
|
|
4691
4712
|
translationurl: 17
|
|
4692
4713
|
},
|
|
4693
|
-
|
|
4714
|
+
fo,
|
|
4694
4715
|
[-1, -1]
|
|
4695
4716
|
);
|
|
4696
4717
|
}
|
|
@@ -4749,7 +4770,7 @@ class bo extends qr {
|
|
|
4749
4770
|
this.$$set({ translationurl: t }), N();
|
|
4750
4771
|
}
|
|
4751
4772
|
}
|
|
4752
|
-
|
|
4773
|
+
qr(yo, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4753
4774
|
export {
|
|
4754
|
-
|
|
4775
|
+
yo as C
|
|
4755
4776
|
};
|