@everymatrix/cashier-carousel 1.77.16 → 1.77.17
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-6N3uNoWG.js → CashierCarousel-BCvvNAok.js} +860 -817
- package/components/CashierCarousel-BrkCbtIS.cjs +20 -0
- package/components/{CashierCarousel-BXAVvSsO.js → CashierCarousel-CVCi6ikE.js} +863 -820
- 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-CeTG0yB-.cjs +0 -20
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Gr = Object.defineProperties;
|
|
2
|
+
var Fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var St = Object.getOwnPropertySymbols;
|
|
4
|
+
var jr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var We = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
jr.call(t, r) && We(e, r, t[r]);
|
|
8
|
+
if (St)
|
|
9
|
+
for (var r of St(t))
|
|
10
|
+
kr.call(t, r) && We(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var L = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, wt = (e, t) => Gr(e, Fr(t));
|
|
13
|
+
var L = (e, t, r) => (We(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ht = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -29,29 +29,29 @@ var xt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function U() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ir(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Pt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ue(e) {
|
|
39
|
+
e.forEach(ir);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function _t(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function or(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let He;
|
|
48
|
-
function
|
|
48
|
+
function At(e, t) {
|
|
49
49
|
return e === t ? !0 : (He || (He = document.createElement("a")), He.href = t, e === He.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Vr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function sr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function tr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Xr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(sr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function S(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function Wr(e, t, r) {
|
|
70
|
+
const n = zr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = P("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, Zr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function zr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,8 +83,8 @@ function jr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Zr(e, t) {
|
|
87
|
+
return S(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
@@ -96,7 +96,7 @@ function F(e, t, r) {
|
|
|
96
96
|
function D(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ot(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -106,23 +106,23 @@ function P(e) {
|
|
|
106
106
|
function R(e) {
|
|
107
107
|
return document.createTextNode(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function k() {
|
|
110
110
|
return R(" ");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Me(e, t, r, n) {
|
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function O(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Qr(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function V(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Yr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -131,90 +131,90 @@ function Xr(e) {
|
|
|
131
131
|
}
|
|
132
132
|
), t;
|
|
133
133
|
}
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
134
|
+
let ge;
|
|
135
|
+
function be(e) {
|
|
136
|
+
ge = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
138
|
+
function Jr() {
|
|
139
|
+
if (!ge)
|
|
140
140
|
throw new Error("Function called outside component initialization");
|
|
141
|
-
return
|
|
141
|
+
return ge;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function qr(e) {
|
|
144
|
+
Jr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
146
|
const re = [], $e = [];
|
|
147
147
|
let ne = [];
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
148
|
+
const Bt = [], Kr = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let tt = !1;
|
|
150
|
+
function en() {
|
|
151
|
+
tt || (tt = !0, Kr.then($));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function rt(e) {
|
|
154
154
|
ne.push(e);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const ze = /* @__PURE__ */ new Set();
|
|
157
157
|
let ee = 0;
|
|
158
158
|
function $() {
|
|
159
159
|
if (ee !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = ge;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
164
|
for (; ee < re.length; ) {
|
|
165
165
|
const t = re[ee];
|
|
166
|
-
ee++,
|
|
166
|
+
ee++, be(t), tn(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw re.length = 0, ee = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
171
|
+
for (be(null), re.length = 0, ee = 0; $e.length; )
|
|
172
172
|
$e.pop()();
|
|
173
173
|
for (let t = 0; t < ne.length; t += 1) {
|
|
174
174
|
const r = ne[t];
|
|
175
|
-
|
|
175
|
+
ze.has(r) || (ze.add(r), r());
|
|
176
176
|
}
|
|
177
177
|
ne.length = 0;
|
|
178
178
|
} while (re.length);
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
for (; Bt.length; )
|
|
180
|
+
Bt.pop()();
|
|
181
|
+
tt = !1, ze.clear(), be(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function tn(e) {
|
|
184
184
|
if (e.fragment !== null) {
|
|
185
|
-
e.update(),
|
|
185
|
+
e.update(), ue(e.before_update);
|
|
186
186
|
const t = e.dirty;
|
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
187
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(rt);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function rn(e) {
|
|
191
191
|
const t = [], r = [];
|
|
192
192
|
ne.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ne = t;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
196
|
-
e && e.i && (
|
|
194
|
+
const nn = /* @__PURE__ */ new Set();
|
|
195
|
+
function on(e, t) {
|
|
196
|
+
e && e.i && (nn.delete(e), e.i(t));
|
|
197
197
|
}
|
|
198
198
|
function Pe(e) {
|
|
199
199
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function sn(e, t, r) {
|
|
202
202
|
const { fragment: n, after_update: i } = e.$$;
|
|
203
|
-
n && n.m(t, r),
|
|
204
|
-
const o = e.$$.on_mount.map(
|
|
205
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
206
|
-
}), i.forEach(
|
|
203
|
+
n && n.m(t, r), rt(() => {
|
|
204
|
+
const o = e.$$.on_mount.map(ir).filter(_t);
|
|
205
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
206
|
+
}), i.forEach(rt);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function an(e, t) {
|
|
209
209
|
const r = e.$$;
|
|
210
|
-
r.fragment !== null && (
|
|
210
|
+
r.fragment !== null && (rn(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.$$.dirty[0] === -1 && (re.push(e),
|
|
212
|
+
function un(e, t) {
|
|
213
|
+
e.$$.dirty[0] === -1 && (re.push(e), en(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
const l =
|
|
217
|
-
|
|
215
|
+
function ln(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
216
|
+
const l = ge;
|
|
217
|
+
be(e);
|
|
218
218
|
const u = e.$$ = {
|
|
219
219
|
fragment: null,
|
|
220
220
|
ctx: [],
|
|
@@ -222,7 +222,7 @@ function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
222
222
|
props: o,
|
|
223
223
|
update: U,
|
|
224
224
|
not_equal: i,
|
|
225
|
-
bound:
|
|
225
|
+
bound: Pt(),
|
|
226
226
|
// lifecycle
|
|
227
227
|
on_mount: [],
|
|
228
228
|
on_destroy: [],
|
|
@@ -231,28 +231,28 @@ function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
231
231
|
after_update: [],
|
|
232
232
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
233
233
|
// everything else
|
|
234
|
-
callbacks:
|
|
234
|
+
callbacks: Pt(),
|
|
235
235
|
dirty: a,
|
|
236
236
|
skip_bound: !1,
|
|
237
237
|
root: t.target || l.$$.root
|
|
238
238
|
};
|
|
239
239
|
s && s(u.root);
|
|
240
240
|
let h = !1;
|
|
241
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
241
|
+
if (u.ctx = r ? r(e, t.props || {}, (p, c, ...b) => {
|
|
242
242
|
const y = b.length ? b[0] : c;
|
|
243
|
-
return u.ctx && i(u.ctx[
|
|
244
|
-
}) : [], u.update(), h = !0,
|
|
243
|
+
return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h && un(e, p)), c;
|
|
244
|
+
}) : [], u.update(), h = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
245
245
|
if (t.hydrate) {
|
|
246
|
-
const
|
|
247
|
-
u.fragment && u.fragment.l(
|
|
246
|
+
const p = Qr(t.target);
|
|
247
|
+
u.fragment && u.fragment.l(p), p.forEach(D);
|
|
248
248
|
} else
|
|
249
249
|
u.fragment && u.fragment.c();
|
|
250
|
-
t.intro &&
|
|
250
|
+
t.intro && on(e.$$.fragment), sn(e, t.target, t.anchor), $();
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
be(l);
|
|
253
253
|
}
|
|
254
|
-
let
|
|
255
|
-
typeof HTMLElement == "function" && (
|
|
254
|
+
let ar;
|
|
255
|
+
typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
256
256
|
constructor(t, r, n) {
|
|
257
257
|
super();
|
|
258
258
|
/** The Svelte component constructor */
|
|
@@ -289,14 +289,14 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
connectedCallback() {
|
|
292
|
-
return
|
|
292
|
+
return Ht(this, null, function* () {
|
|
293
293
|
if (this.$$cn = !0, !this.$$c) {
|
|
294
294
|
let t = function(o) {
|
|
295
295
|
return () => {
|
|
296
296
|
let s;
|
|
297
297
|
return {
|
|
298
298
|
c: function() {
|
|
299
|
-
s = P("slot"), o !== "default" &&
|
|
299
|
+
s = P("slot"), o !== "default" && O(s, "name", o);
|
|
300
300
|
},
|
|
301
301
|
/**
|
|
302
302
|
* @param {HTMLElement} target
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
313
313
|
};
|
|
314
314
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
315
315
|
return;
|
|
316
|
-
const r = {}, n =
|
|
316
|
+
const r = {}, n = Yr(this);
|
|
317
317
|
for (const o of this.$$s)
|
|
318
318
|
o in n && (r[o] = [t(o)]);
|
|
319
319
|
for (const o of this.attributes) {
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
324
324
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
325
325
|
this.$$c = new this.$$ctor({
|
|
326
326
|
target: this.shadowRoot || this,
|
|
327
|
-
props:
|
|
327
|
+
props: wt(Tt({}, this.$$d), {
|
|
328
328
|
$$slots: r,
|
|
329
329
|
$$scope: {
|
|
330
330
|
ctx: []
|
|
@@ -402,8 +402,8 @@ function Ce(e, t, r, n) {
|
|
|
402
402
|
return t;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
let s = class extends
|
|
405
|
+
function hn(e, t, r, n, i, o) {
|
|
406
|
+
let s = class extends ar {
|
|
407
407
|
constructor() {
|
|
408
408
|
super(e, r, i), this.$$p_d = t;
|
|
409
409
|
}
|
|
@@ -433,7 +433,7 @@ function on(e, t, r, n, i, o) {
|
|
|
433
433
|
}), e.element = /** @type {any} */
|
|
434
434
|
s, s;
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class cn {
|
|
437
437
|
constructor() {
|
|
438
438
|
/**
|
|
439
439
|
* ### PRIVATE API
|
|
@@ -454,7 +454,7 @@ class sn {
|
|
|
454
454
|
}
|
|
455
455
|
/** @returns {void} */
|
|
456
456
|
$destroy() {
|
|
457
|
-
|
|
457
|
+
an(this, 1), this.$destroy = U;
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -463,7 +463,7 @@ class sn {
|
|
|
463
463
|
* @returns {() => void}
|
|
464
464
|
*/
|
|
465
465
|
$on(t, r) {
|
|
466
|
-
if (!
|
|
466
|
+
if (!_t(r))
|
|
467
467
|
return U;
|
|
468
468
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
469
469
|
return n.push(r), () => {
|
|
@@ -476,22 +476,22 @@ class sn {
|
|
|
476
476
|
* @returns {void}
|
|
477
477
|
*/
|
|
478
478
|
$set(t) {
|
|
479
|
-
this.$$set && !
|
|
479
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
const
|
|
483
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
482
|
+
const fn = "4";
|
|
483
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
|
|
484
484
|
const te = [];
|
|
485
|
-
function
|
|
485
|
+
function pn(e, t) {
|
|
486
486
|
return {
|
|
487
|
-
subscribe:
|
|
487
|
+
subscribe: Fe(e, t).subscribe
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Fe(e, t = U) {
|
|
491
491
|
let r;
|
|
492
492
|
const n = /* @__PURE__ */ new Set();
|
|
493
493
|
function i(a) {
|
|
494
|
-
if (
|
|
494
|
+
if (or(e, a) && (e = a, r)) {
|
|
495
495
|
const l = !te.length;
|
|
496
496
|
for (const u of n)
|
|
497
497
|
u[1](), te.push(u, e);
|
|
@@ -513,26 +513,26 @@ function Ge(e, t = U) {
|
|
|
513
513
|
}
|
|
514
514
|
return { set: i, update: o, subscribe: s };
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function le(e, t, r) {
|
|
517
517
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
518
518
|
if (!i.every(Boolean))
|
|
519
519
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
520
520
|
const o = t.length < 2;
|
|
521
|
-
return
|
|
521
|
+
return pn(r, (s, a) => {
|
|
522
522
|
let l = !1;
|
|
523
523
|
const u = [];
|
|
524
|
-
let h = 0,
|
|
524
|
+
let h = 0, p = U;
|
|
525
525
|
const c = () => {
|
|
526
526
|
if (h)
|
|
527
527
|
return;
|
|
528
|
-
|
|
528
|
+
p();
|
|
529
529
|
const y = t(n ? u[0] : u, s, a);
|
|
530
|
-
o ? s(y) :
|
|
530
|
+
o ? s(y) : p = _t(y) ? y : U;
|
|
531
531
|
}, b = i.map(
|
|
532
|
-
(y, g) =>
|
|
532
|
+
(y, g) => sr(
|
|
533
533
|
y,
|
|
534
|
-
(
|
|
535
|
-
u[g] =
|
|
534
|
+
(E) => {
|
|
535
|
+
u[g] = E, h &= ~(1 << g), l && c();
|
|
536
536
|
},
|
|
537
537
|
() => {
|
|
538
538
|
h |= 1 << g;
|
|
@@ -540,126 +540,112 @@ function he(e, t, r) {
|
|
|
540
540
|
)
|
|
541
541
|
);
|
|
542
542
|
return l = !0, c(), function() {
|
|
543
|
-
|
|
543
|
+
ue(b), p(), l = !1;
|
|
544
544
|
};
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function mn(e) {
|
|
548
548
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
549
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
550
|
+
var dn = function(t) {
|
|
551
|
+
return bn(t) && !gn(t);
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function bn(e) {
|
|
554
554
|
return !!e && typeof e == "object";
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function gn(e) {
|
|
557
557
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
558
|
+
return t === "[object RegExp]" || t === "[object Date]" || _n(e);
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
return e.$$typeof ===
|
|
560
|
+
var yn = typeof Symbol == "function" && Symbol.for, vn = yn ? Symbol.for("react.element") : 60103;
|
|
561
|
+
function _n(e) {
|
|
562
|
+
return e.$$typeof === vn;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function En(e) {
|
|
565
565
|
return Array.isArray(e) ? [] : {};
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
567
|
+
function ye(e, t) {
|
|
568
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ie(En(e), e, t) : e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function xn(e, t, r) {
|
|
571
571
|
return e.concat(t).map(function(n) {
|
|
572
|
-
return
|
|
572
|
+
return ye(n, r);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Sn(e, t) {
|
|
576
576
|
if (!t.customMerge)
|
|
577
|
-
return
|
|
577
|
+
return ie;
|
|
578
578
|
var r = t.customMerge(e);
|
|
579
|
-
return typeof r == "function" ? r :
|
|
579
|
+
return typeof r == "function" ? r : ie;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Tn(e) {
|
|
582
582
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
583
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
584
|
}) : [];
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
return Object.keys(e).concat(
|
|
586
|
+
function Mt(e) {
|
|
587
|
+
return Object.keys(e).concat(Tn(e));
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function ur(e, t) {
|
|
590
590
|
try {
|
|
591
591
|
return t in e;
|
|
592
592
|
} catch (r) {
|
|
593
593
|
return !1;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function wn(e, t) {
|
|
597
|
+
return ur(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Hn(e, t, r) {
|
|
600
600
|
var n = {};
|
|
601
|
-
return r.isMergeableObject(e) &&
|
|
602
|
-
n[i] =
|
|
603
|
-
}),
|
|
604
|
-
|
|
601
|
+
return r.isMergeableObject(e) && Mt(e).forEach(function(i) {
|
|
602
|
+
n[i] = ye(e[i], r);
|
|
603
|
+
}), Mt(t).forEach(function(i) {
|
|
604
|
+
wn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = Sn(i, r)(e[i], t[i], r) : n[i] = ye(t[i], r));
|
|
605
605
|
}), n;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
607
|
+
function ie(e, t, r) {
|
|
608
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = ye;
|
|
609
609
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
610
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
610
|
+
return o ? n ? r.arrayMerge(e, t, r) : Hn(e, t, r) : ye(t, r);
|
|
611
611
|
}
|
|
612
|
-
|
|
612
|
+
ie.all = function(t, r) {
|
|
613
613
|
if (!Array.isArray(t))
|
|
614
614
|
throw new Error("first argument should be an array");
|
|
615
615
|
return t.reduce(function(n, i) {
|
|
616
|
-
return
|
|
616
|
+
return ie(n, i, r);
|
|
617
617
|
}, {});
|
|
618
618
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
625
|
-
purpose with or without fee is hereby granted.
|
|
626
|
-
|
|
627
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
628
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
629
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
630
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
631
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
632
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
633
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
634
|
-
***************************************************************************** */
|
|
635
|
-
var et = function(e, t) {
|
|
636
|
-
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
619
|
+
var Pn = ie, An = Pn;
|
|
620
|
+
const On = /* @__PURE__ */ mn(An);
|
|
621
|
+
var nt = function(e, t) {
|
|
622
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
637
623
|
r.__proto__ = n;
|
|
638
624
|
} || function(r, n) {
|
|
639
625
|
for (var i in n)
|
|
640
626
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
641
|
-
},
|
|
627
|
+
}, nt(e, t);
|
|
642
628
|
};
|
|
643
|
-
function
|
|
629
|
+
function je(e, t) {
|
|
644
630
|
if (typeof t != "function" && t !== null)
|
|
645
631
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
632
|
+
nt(e, t);
|
|
647
633
|
function r() {
|
|
648
634
|
this.constructor = e;
|
|
649
635
|
}
|
|
650
636
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
637
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
638
|
+
var j = function() {
|
|
639
|
+
return j = Object.assign || function(t) {
|
|
654
640
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
655
641
|
r = arguments[n];
|
|
656
642
|
for (var o in r)
|
|
657
643
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
658
644
|
}
|
|
659
645
|
return t;
|
|
660
|
-
},
|
|
646
|
+
}, j.apply(this, arguments);
|
|
661
647
|
};
|
|
662
|
-
function
|
|
648
|
+
function Bn(e, t) {
|
|
663
649
|
var r = {};
|
|
664
650
|
for (var n in e)
|
|
665
651
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -668,75 +654,43 @@ function wn(e, t) {
|
|
|
668
654
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
669
655
|
return r;
|
|
670
656
|
}
|
|
671
|
-
function
|
|
672
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
673
|
-
if (r)
|
|
674
|
-
return r.call(e);
|
|
675
|
-
if (e && typeof e.length == "number")
|
|
676
|
-
return {
|
|
677
|
-
next: function() {
|
|
678
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
682
|
-
}
|
|
683
|
-
function rt(e, t) {
|
|
684
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
685
|
-
if (!r)
|
|
686
|
-
return e;
|
|
687
|
-
var n = r.call(e), i, o = [], s;
|
|
688
|
-
try {
|
|
689
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
690
|
-
o.push(i.value);
|
|
691
|
-
} catch (a) {
|
|
692
|
-
s = { error: a };
|
|
693
|
-
} finally {
|
|
694
|
-
try {
|
|
695
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
696
|
-
} finally {
|
|
697
|
-
if (s)
|
|
698
|
-
throw s.error;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
return o;
|
|
702
|
-
}
|
|
703
|
-
function ie(e, t, r) {
|
|
657
|
+
function Ze(e, t, r) {
|
|
704
658
|
if (r || arguments.length === 2)
|
|
705
659
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
706
660
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
707
|
-
return e.concat(o || t);
|
|
661
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
708
662
|
}
|
|
709
|
-
function
|
|
710
|
-
var r = t && t.cache ? t.cache :
|
|
663
|
+
function Qe(e, t) {
|
|
664
|
+
var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : In;
|
|
711
665
|
return i(e, {
|
|
712
666
|
cache: r,
|
|
713
667
|
serializer: n
|
|
714
668
|
});
|
|
715
669
|
}
|
|
716
|
-
function
|
|
670
|
+
function Mn(e) {
|
|
717
671
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
718
672
|
}
|
|
719
|
-
function
|
|
720
|
-
var i =
|
|
673
|
+
function Cn(e, t, r, n) {
|
|
674
|
+
var i = Mn(n) ? n : r(n), o = t.get(i);
|
|
721
675
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
722
676
|
}
|
|
723
|
-
function
|
|
677
|
+
function lr(e, t, r) {
|
|
724
678
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
725
679
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
726
680
|
}
|
|
727
|
-
function
|
|
681
|
+
function hr(e, t, r, n, i) {
|
|
728
682
|
return r.bind(t, e, n, i);
|
|
729
683
|
}
|
|
730
|
-
function
|
|
731
|
-
var r = e.length === 1 ?
|
|
732
|
-
return
|
|
684
|
+
function In(e, t) {
|
|
685
|
+
var r = e.length === 1 ? Cn : lr;
|
|
686
|
+
return hr(e, this, r, t.cache.create(), t.serializer);
|
|
733
687
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
688
|
+
function Ln(e, t) {
|
|
689
|
+
return hr(e, this, lr, t.cache.create(), t.serializer);
|
|
736
690
|
}
|
|
737
|
-
var
|
|
691
|
+
var Nn = function() {
|
|
738
692
|
return JSON.stringify(arguments);
|
|
739
|
-
},
|
|
693
|
+
}, $n = (
|
|
740
694
|
/** @class */
|
|
741
695
|
function() {
|
|
742
696
|
function e() {
|
|
@@ -748,61 +702,71 @@ var Mn = function() {
|
|
|
748
702
|
this.cache[t] = r;
|
|
749
703
|
}, e;
|
|
750
704
|
}()
|
|
751
|
-
),
|
|
705
|
+
), Rn = {
|
|
752
706
|
create: function() {
|
|
753
|
-
return new
|
|
707
|
+
return new $n();
|
|
754
708
|
}
|
|
755
|
-
},
|
|
756
|
-
variadic:
|
|
757
|
-
},
|
|
709
|
+
}, Ye = {
|
|
710
|
+
variadic: Ln
|
|
711
|
+
}, Re = function() {
|
|
712
|
+
return Re = Object.assign || function(t) {
|
|
713
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
714
|
+
r = arguments[n];
|
|
715
|
+
for (var o in r)
|
|
716
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
717
|
+
}
|
|
718
|
+
return t;
|
|
719
|
+
}, Re.apply(this, arguments);
|
|
720
|
+
};
|
|
721
|
+
var v;
|
|
758
722
|
(function(e) {
|
|
759
723
|
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";
|
|
760
724
|
})(v || (v = {}));
|
|
761
|
-
var
|
|
725
|
+
var w;
|
|
762
726
|
(function(e) {
|
|
763
727
|
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";
|
|
764
|
-
})(
|
|
765
|
-
var
|
|
728
|
+
})(w || (w = {}));
|
|
729
|
+
var oe;
|
|
766
730
|
(function(e) {
|
|
767
731
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
768
|
-
})(
|
|
769
|
-
function
|
|
770
|
-
return e.type ===
|
|
732
|
+
})(oe || (oe = {}));
|
|
733
|
+
function Ct(e) {
|
|
734
|
+
return e.type === w.literal;
|
|
771
735
|
}
|
|
772
|
-
function
|
|
773
|
-
return e.type ===
|
|
736
|
+
function Dn(e) {
|
|
737
|
+
return e.type === w.argument;
|
|
774
738
|
}
|
|
775
|
-
function
|
|
776
|
-
return e.type ===
|
|
739
|
+
function cr(e) {
|
|
740
|
+
return e.type === w.number;
|
|
777
741
|
}
|
|
778
|
-
function
|
|
779
|
-
return e.type ===
|
|
742
|
+
function fr(e) {
|
|
743
|
+
return e.type === w.date;
|
|
780
744
|
}
|
|
781
|
-
function
|
|
782
|
-
return e.type ===
|
|
745
|
+
function pr(e) {
|
|
746
|
+
return e.type === w.time;
|
|
783
747
|
}
|
|
784
|
-
function
|
|
785
|
-
return e.type ===
|
|
748
|
+
function mr(e) {
|
|
749
|
+
return e.type === w.select;
|
|
786
750
|
}
|
|
787
|
-
function
|
|
788
|
-
return e.type ===
|
|
751
|
+
function dr(e) {
|
|
752
|
+
return e.type === w.plural;
|
|
789
753
|
}
|
|
790
|
-
function
|
|
791
|
-
return e.type ===
|
|
754
|
+
function Un(e) {
|
|
755
|
+
return e.type === w.pound;
|
|
792
756
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.type ===
|
|
757
|
+
function br(e) {
|
|
758
|
+
return e.type === w.tag;
|
|
795
759
|
}
|
|
796
|
-
function
|
|
797
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
760
|
+
function gr(e) {
|
|
761
|
+
return !!(e && typeof e == "object" && e.type === oe.number);
|
|
798
762
|
}
|
|
799
|
-
function
|
|
800
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
763
|
+
function it(e) {
|
|
764
|
+
return !!(e && typeof e == "object" && e.type === oe.dateTime);
|
|
801
765
|
}
|
|
802
|
-
var
|
|
803
|
-
function
|
|
766
|
+
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
|
|
767
|
+
function Fn(e) {
|
|
804
768
|
var t = {};
|
|
805
|
-
return e.replace(
|
|
769
|
+
return e.replace(Gn, function(r) {
|
|
806
770
|
var n = r.length;
|
|
807
771
|
switch (r[0]) {
|
|
808
772
|
case "G":
|
|
@@ -891,36 +855,46 @@ function $n(e) {
|
|
|
891
855
|
return "";
|
|
892
856
|
}), t;
|
|
893
857
|
}
|
|
894
|
-
var
|
|
895
|
-
function
|
|
858
|
+
var H = function() {
|
|
859
|
+
return H = Object.assign || function(t) {
|
|
860
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
861
|
+
r = arguments[n];
|
|
862
|
+
for (var o in r)
|
|
863
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
864
|
+
}
|
|
865
|
+
return t;
|
|
866
|
+
}, H.apply(this, arguments);
|
|
867
|
+
};
|
|
868
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
869
|
+
function kn(e) {
|
|
896
870
|
if (e.length === 0)
|
|
897
871
|
throw new Error("Number skeleton cannot be empty");
|
|
898
|
-
for (var t = e.split(
|
|
872
|
+
for (var t = e.split(jn).filter(function(c) {
|
|
899
873
|
return c.length > 0;
|
|
900
874
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
901
875
|
var o = i[n], s = o.split("/");
|
|
902
876
|
if (s.length === 0)
|
|
903
877
|
throw new Error("Invalid number skeleton");
|
|
904
878
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
905
|
-
var
|
|
906
|
-
if (
|
|
879
|
+
var p = h[u];
|
|
880
|
+
if (p.length === 0)
|
|
907
881
|
throw new Error("Invalid number skeleton");
|
|
908
882
|
}
|
|
909
883
|
r.push({ stem: a, options: l });
|
|
910
884
|
}
|
|
911
885
|
return r;
|
|
912
886
|
}
|
|
913
|
-
function
|
|
887
|
+
function Vn(e) {
|
|
914
888
|
return e.replace(/^(.*?)-/, "");
|
|
915
889
|
}
|
|
916
|
-
var
|
|
917
|
-
function
|
|
890
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, Xn = /(\*)(0+)|(#+)(0+)|(0+)/g, _r = /^(0+)$/;
|
|
891
|
+
function Lt(e) {
|
|
918
892
|
var t = {};
|
|
919
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
893
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
|
|
920
894
|
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)), "";
|
|
921
895
|
}), t;
|
|
922
896
|
}
|
|
923
|
-
function
|
|
897
|
+
function Er(e) {
|
|
924
898
|
switch (e) {
|
|
925
899
|
case "sign-auto":
|
|
926
900
|
return {
|
|
@@ -960,7 +934,7 @@ function br(e) {
|
|
|
960
934
|
};
|
|
961
935
|
}
|
|
962
936
|
}
|
|
963
|
-
function
|
|
937
|
+
function Wn(e) {
|
|
964
938
|
var t;
|
|
965
939
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
966
940
|
notation: "engineering"
|
|
@@ -968,17 +942,17 @@ function Fn(e) {
|
|
|
968
942
|
notation: "scientific"
|
|
969
943
|
}, e = e.slice(1)), t) {
|
|
970
944
|
var r = e.slice(0, 2);
|
|
971
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
945
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_r.test(e))
|
|
972
946
|
throw new Error("Malformed concise eng/scientific notation");
|
|
973
947
|
t.minimumIntegerDigits = e.length;
|
|
974
948
|
}
|
|
975
949
|
return t;
|
|
976
950
|
}
|
|
977
|
-
function
|
|
978
|
-
var t = {}, r =
|
|
951
|
+
function Nt(e) {
|
|
952
|
+
var t = {}, r = Er(e);
|
|
979
953
|
return r || t;
|
|
980
954
|
}
|
|
981
|
-
function
|
|
955
|
+
function zn(e) {
|
|
982
956
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
983
957
|
var i = n[r];
|
|
984
958
|
switch (i.stem) {
|
|
@@ -1002,7 +976,7 @@ function jn(e) {
|
|
|
1002
976
|
continue;
|
|
1003
977
|
case "measure-unit":
|
|
1004
978
|
case "unit":
|
|
1005
|
-
t.style = "unit", t.unit =
|
|
979
|
+
t.style = "unit", t.unit = Vn(i.options[0]);
|
|
1006
980
|
continue;
|
|
1007
981
|
case "compact-short":
|
|
1008
982
|
case "K":
|
|
@@ -1013,13 +987,13 @@ function jn(e) {
|
|
|
1013
987
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1014
988
|
continue;
|
|
1015
989
|
case "scientific":
|
|
1016
|
-
t =
|
|
1017
|
-
return
|
|
990
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
991
|
+
return H(H({}, l), Nt(u));
|
|
1018
992
|
}, {}));
|
|
1019
993
|
continue;
|
|
1020
994
|
case "engineering":
|
|
1021
|
-
t =
|
|
1022
|
-
return
|
|
995
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
996
|
+
return H(H({}, l), Nt(u));
|
|
1023
997
|
}, {}));
|
|
1024
998
|
continue;
|
|
1025
999
|
case "notation-simple":
|
|
@@ -1064,11 +1038,11 @@ function jn(e) {
|
|
|
1064
1038
|
case "integer-width":
|
|
1065
1039
|
if (i.options.length > 1)
|
|
1066
1040
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1067
|
-
i.options[0].replace(
|
|
1041
|
+
i.options[0].replace(Xn, function(l, u, h, p, c, b) {
|
|
1068
1042
|
if (u)
|
|
1069
1043
|
t.minimumIntegerDigits = h.length;
|
|
1070
1044
|
else {
|
|
1071
|
-
if (
|
|
1045
|
+
if (p && c)
|
|
1072
1046
|
throw new Error("We currently do not support maximum integer digits");
|
|
1073
1047
|
if (b)
|
|
1074
1048
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1077,28 +1051,28 @@ function jn(e) {
|
|
|
1077
1051
|
});
|
|
1078
1052
|
continue;
|
|
1079
1053
|
}
|
|
1080
|
-
if (
|
|
1054
|
+
if (_r.test(i.stem)) {
|
|
1081
1055
|
t.minimumIntegerDigits = i.stem.length;
|
|
1082
1056
|
continue;
|
|
1083
1057
|
}
|
|
1084
|
-
if (
|
|
1058
|
+
if (It.test(i.stem)) {
|
|
1085
1059
|
if (i.options.length > 1)
|
|
1086
1060
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1087
|
-
i.stem.replace(
|
|
1088
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1061
|
+
i.stem.replace(It, function(l, u, h, p, c, b) {
|
|
1062
|
+
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), "";
|
|
1089
1063
|
});
|
|
1090
1064
|
var o = i.options[0];
|
|
1091
|
-
o === "w" ? t =
|
|
1065
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), Lt(o)));
|
|
1092
1066
|
continue;
|
|
1093
1067
|
}
|
|
1094
|
-
if (
|
|
1095
|
-
t =
|
|
1068
|
+
if (vr.test(i.stem)) {
|
|
1069
|
+
t = H(H({}, t), Lt(i.stem));
|
|
1096
1070
|
continue;
|
|
1097
1071
|
}
|
|
1098
|
-
var s =
|
|
1099
|
-
s && (t =
|
|
1100
|
-
var a =
|
|
1101
|
-
a && (t =
|
|
1072
|
+
var s = Er(i.stem);
|
|
1073
|
+
s && (t = H(H({}, t), s));
|
|
1074
|
+
var a = Wn(i.stem);
|
|
1075
|
+
a && (t = H(H({}, t), a));
|
|
1102
1076
|
}
|
|
1103
1077
|
return t;
|
|
1104
1078
|
}
|
|
@@ -2517,13 +2491,13 @@ var Ae = {
|
|
|
2517
2491
|
"h"
|
|
2518
2492
|
]
|
|
2519
2493
|
};
|
|
2520
|
-
function
|
|
2494
|
+
function Zn(e, t) {
|
|
2521
2495
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2522
2496
|
var i = e.charAt(n);
|
|
2523
2497
|
if (i === "j") {
|
|
2524
2498
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2525
2499
|
o++, n++;
|
|
2526
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2500
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Qn(t);
|
|
2527
2501
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2528
2502
|
r += l;
|
|
2529
2503
|
for (; s-- > 0; )
|
|
@@ -2533,7 +2507,7 @@ function kn(e, t) {
|
|
|
2533
2507
|
}
|
|
2534
2508
|
return r;
|
|
2535
2509
|
}
|
|
2536
|
-
function
|
|
2510
|
+
function Qn(e) {
|
|
2537
2511
|
var t = e.hourCycle;
|
|
2538
2512
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2539
2513
|
e.hourCycles && // @ts-ignore
|
|
@@ -2555,20 +2529,20 @@ function Vn(e) {
|
|
|
2555
2529
|
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
|
2556
2530
|
return i[0];
|
|
2557
2531
|
}
|
|
2558
|
-
var
|
|
2532
|
+
var Je, Yn = new RegExp("^".concat(yr.source, "*")), Jn = new RegExp("".concat(yr.source, "*$"));
|
|
2559
2533
|
function _(e, t) {
|
|
2560
2534
|
return { start: e, end: t };
|
|
2561
2535
|
}
|
|
2562
|
-
var
|
|
2536
|
+
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
|
|
2563
2537
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2564
|
-
},
|
|
2538
|
+
}, ot = !0;
|
|
2565
2539
|
try {
|
|
2566
|
-
var
|
|
2567
|
-
|
|
2540
|
+
var si = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2541
|
+
ot = ((Je = si.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
2568
2542
|
} catch (e) {
|
|
2569
|
-
|
|
2543
|
+
ot = !1;
|
|
2570
2544
|
}
|
|
2571
|
-
var
|
|
2545
|
+
var $t = qn ? (
|
|
2572
2546
|
// Native
|
|
2573
2547
|
function(t, r, n) {
|
|
2574
2548
|
return t.startsWith(r, n);
|
|
@@ -2578,7 +2552,7 @@ var Ot = zn ? (
|
|
|
2578
2552
|
function(t, r, n) {
|
|
2579
2553
|
return t.slice(n, n + r.length) === r;
|
|
2580
2554
|
}
|
|
2581
|
-
),
|
|
2555
|
+
), st = Kn ? String.fromCodePoint : (
|
|
2582
2556
|
// IE11
|
|
2583
2557
|
function() {
|
|
2584
2558
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2590,9 +2564,9 @@ var Ot = zn ? (
|
|
|
2590
2564
|
}
|
|
2591
2565
|
return n;
|
|
2592
2566
|
}
|
|
2593
|
-
),
|
|
2567
|
+
), Rt = (
|
|
2594
2568
|
// native
|
|
2595
|
-
|
|
2569
|
+
ei ? Object.fromEntries : (
|
|
2596
2570
|
// Ponyfill
|
|
2597
2571
|
function(t) {
|
|
2598
2572
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2602,7 +2576,7 @@ var Ot = zn ? (
|
|
|
2602
2576
|
return r;
|
|
2603
2577
|
}
|
|
2604
2578
|
)
|
|
2605
|
-
),
|
|
2579
|
+
), xr = ti ? (
|
|
2606
2580
|
// Native
|
|
2607
2581
|
function(t, r) {
|
|
2608
2582
|
return t.codePointAt(r);
|
|
@@ -2616,7 +2590,7 @@ var Ot = zn ? (
|
|
|
2616
2590
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2617
2591
|
}
|
|
2618
2592
|
}
|
|
2619
|
-
),
|
|
2593
|
+
), ai = ri ? (
|
|
2620
2594
|
// Native
|
|
2621
2595
|
function(t) {
|
|
2622
2596
|
return t.trimStart();
|
|
@@ -2624,9 +2598,9 @@ var Ot = zn ? (
|
|
|
2624
2598
|
) : (
|
|
2625
2599
|
// Ponyfill
|
|
2626
2600
|
function(t) {
|
|
2627
|
-
return t.replace(
|
|
2601
|
+
return t.replace(Yn, "");
|
|
2628
2602
|
}
|
|
2629
|
-
),
|
|
2603
|
+
), ui = ni ? (
|
|
2630
2604
|
// Native
|
|
2631
2605
|
function(t) {
|
|
2632
2606
|
return t.trimEnd();
|
|
@@ -2634,32 +2608,32 @@ var Ot = zn ? (
|
|
|
2634
2608
|
) : (
|
|
2635
2609
|
// Ponyfill
|
|
2636
2610
|
function(t) {
|
|
2637
|
-
return t.replace(
|
|
2611
|
+
return t.replace(Jn, "");
|
|
2638
2612
|
}
|
|
2639
2613
|
);
|
|
2640
|
-
function
|
|
2614
|
+
function Sr(e, t) {
|
|
2641
2615
|
return new RegExp(e, t);
|
|
2642
2616
|
}
|
|
2643
|
-
var
|
|
2644
|
-
if (
|
|
2645
|
-
var
|
|
2646
|
-
|
|
2617
|
+
var at;
|
|
2618
|
+
if (ot) {
|
|
2619
|
+
var Dt = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2620
|
+
at = function(t, r) {
|
|
2647
2621
|
var n;
|
|
2648
|
-
|
|
2649
|
-
var i =
|
|
2622
|
+
Dt.lastIndex = r;
|
|
2623
|
+
var i = Dt.exec(t);
|
|
2650
2624
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2651
2625
|
};
|
|
2652
2626
|
} else
|
|
2653
|
-
|
|
2627
|
+
at = function(t, r) {
|
|
2654
2628
|
for (var n = []; ; ) {
|
|
2655
|
-
var i =
|
|
2656
|
-
if (i === void 0 ||
|
|
2629
|
+
var i = xr(t, r);
|
|
2630
|
+
if (i === void 0 || Tr(i) || fi(i))
|
|
2657
2631
|
break;
|
|
2658
2632
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2659
2633
|
}
|
|
2660
|
-
return
|
|
2634
|
+
return st.apply(void 0, n);
|
|
2661
2635
|
};
|
|
2662
|
-
var
|
|
2636
|
+
var li = (
|
|
2663
2637
|
/** @class */
|
|
2664
2638
|
function() {
|
|
2665
2639
|
function e(t, r) {
|
|
@@ -2683,14 +2657,14 @@ var ii = (
|
|
|
2683
2657
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2684
2658
|
var a = this.clonePosition();
|
|
2685
2659
|
this.bump(), i.push({
|
|
2686
|
-
type:
|
|
2660
|
+
type: w.pound,
|
|
2687
2661
|
location: _(a, this.clonePosition())
|
|
2688
2662
|
});
|
|
2689
2663
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2690
2664
|
if (n)
|
|
2691
2665
|
break;
|
|
2692
2666
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2693
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2667
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
2694
2668
|
var s = this.parseTag(t, r);
|
|
2695
2669
|
if (s.err)
|
|
2696
2670
|
return s;
|
|
@@ -2711,7 +2685,7 @@ var ii = (
|
|
|
2711
2685
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2712
2686
|
return {
|
|
2713
2687
|
val: {
|
|
2714
|
-
type:
|
|
2688
|
+
type: w.literal,
|
|
2715
2689
|
value: "<".concat(i, "/>"),
|
|
2716
2690
|
location: _(n, this.clonePosition())
|
|
2717
2691
|
},
|
|
@@ -2723,12 +2697,12 @@ var ii = (
|
|
|
2723
2697
|
return o;
|
|
2724
2698
|
var s = o.val, a = this.clonePosition();
|
|
2725
2699
|
if (this.bumpIf("</")) {
|
|
2726
|
-
if (this.isEOF() || !
|
|
2700
|
+
if (this.isEOF() || !ut(this.char()))
|
|
2727
2701
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
2728
2702
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2729
2703
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2730
2704
|
val: {
|
|
2731
|
-
type:
|
|
2705
|
+
type: w.tag,
|
|
2732
2706
|
value: i,
|
|
2733
2707
|
children: s,
|
|
2734
2708
|
location: _(n, this.clonePosition())
|
|
@@ -2741,7 +2715,7 @@ var ii = (
|
|
|
2741
2715
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
2742
2716
|
}, e.prototype.parseTagName = function() {
|
|
2743
2717
|
var t = this.offset();
|
|
2744
|
-
for (this.bump(); !this.isEOF() &&
|
|
2718
|
+
for (this.bump(); !this.isEOF() && ci(this.char()); )
|
|
2745
2719
|
this.bump();
|
|
2746
2720
|
return this.message.slice(t, this.offset());
|
|
2747
2721
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2765,12 +2739,12 @@ var ii = (
|
|
|
2765
2739
|
}
|
|
2766
2740
|
var l = _(n, this.clonePosition());
|
|
2767
2741
|
return {
|
|
2768
|
-
val: { type:
|
|
2742
|
+
val: { type: w.literal, value: i, location: l },
|
|
2769
2743
|
err: null
|
|
2770
2744
|
};
|
|
2771
2745
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2772
2746
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2773
|
-
!
|
|
2747
|
+
!hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2774
2748
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2775
2749
|
if (this.isEOF() || this.char() !== 39)
|
|
2776
2750
|
return null;
|
|
@@ -2804,12 +2778,12 @@ var ii = (
|
|
|
2804
2778
|
r.push(n);
|
|
2805
2779
|
this.bump();
|
|
2806
2780
|
}
|
|
2807
|
-
return
|
|
2781
|
+
return st.apply(void 0, r);
|
|
2808
2782
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2809
2783
|
if (this.isEOF())
|
|
2810
2784
|
return null;
|
|
2811
2785
|
var n = this.char();
|
|
2812
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2786
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
|
|
2813
2787
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2814
2788
|
var n = this.clonePosition();
|
|
2815
2789
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2825,7 +2799,7 @@ var ii = (
|
|
|
2825
2799
|
case 125:
|
|
2826
2800
|
return this.bump(), {
|
|
2827
2801
|
val: {
|
|
2828
|
-
type:
|
|
2802
|
+
type: w.argument,
|
|
2829
2803
|
// value does not include the opening and closing braces.
|
|
2830
2804
|
value: i,
|
|
2831
2805
|
location: _(n, this.clonePosition())
|
|
@@ -2838,7 +2812,7 @@ var ii = (
|
|
|
2838
2812
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2839
2813
|
}
|
|
2840
2814
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2841
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2815
|
+
var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
|
|
2842
2816
|
this.bumpTo(i);
|
|
2843
2817
|
var o = this.clonePosition(), s = _(t, o);
|
|
2844
2818
|
return { value: n, location: s };
|
|
@@ -2854,10 +2828,10 @@ var ii = (
|
|
|
2854
2828
|
var u = null;
|
|
2855
2829
|
if (this.bumpIf(",")) {
|
|
2856
2830
|
this.bumpSpace();
|
|
2857
|
-
var h = this.clonePosition(),
|
|
2858
|
-
if (
|
|
2859
|
-
return
|
|
2860
|
-
var c =
|
|
2831
|
+
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2832
|
+
if (p.err)
|
|
2833
|
+
return p;
|
|
2834
|
+
var c = ui(p.val);
|
|
2861
2835
|
if (c.length === 0)
|
|
2862
2836
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2863
2837
|
var b = _(h, this.clonePosition());
|
|
@@ -2867,34 +2841,34 @@ var ii = (
|
|
|
2867
2841
|
if (y.err)
|
|
2868
2842
|
return y;
|
|
2869
2843
|
var g = _(i, this.clonePosition());
|
|
2870
|
-
if (u &&
|
|
2871
|
-
var
|
|
2844
|
+
if (u && $t(u == null ? void 0 : u.style, "::", 0)) {
|
|
2845
|
+
var E = ai(u.style.slice(2));
|
|
2872
2846
|
if (a === "number") {
|
|
2873
|
-
var
|
|
2874
|
-
return
|
|
2875
|
-
val: { type:
|
|
2847
|
+
var p = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2848
|
+
return p.err ? p : {
|
|
2849
|
+
val: { type: w.number, value: n, location: g, style: p.val },
|
|
2876
2850
|
err: null
|
|
2877
2851
|
};
|
|
2878
2852
|
} else {
|
|
2879
|
-
if (
|
|
2853
|
+
if (E.length === 0)
|
|
2880
2854
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
|
2881
|
-
var A =
|
|
2882
|
-
this.locale && (A =
|
|
2855
|
+
var A = E;
|
|
2856
|
+
this.locale && (A = Zn(E, this.locale));
|
|
2883
2857
|
var c = {
|
|
2884
|
-
type:
|
|
2858
|
+
type: oe.dateTime,
|
|
2885
2859
|
pattern: A,
|
|
2886
2860
|
location: u.styleLocation,
|
|
2887
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2888
|
-
},
|
|
2861
|
+
parsedOptions: this.shouldParseSkeletons ? Fn(A) : {}
|
|
2862
|
+
}, x = a === "date" ? w.date : w.time;
|
|
2889
2863
|
return {
|
|
2890
|
-
val: { type:
|
|
2864
|
+
val: { type: x, value: n, location: g, style: c },
|
|
2891
2865
|
err: null
|
|
2892
2866
|
};
|
|
2893
2867
|
}
|
|
2894
2868
|
}
|
|
2895
2869
|
return {
|
|
2896
2870
|
val: {
|
|
2897
|
-
type: a === "number" ?
|
|
2871
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
|
2898
2872
|
value: n,
|
|
2899
2873
|
location: g,
|
|
2900
2874
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -2907,38 +2881,38 @@ var ii = (
|
|
|
2907
2881
|
case "select": {
|
|
2908
2882
|
var f = this.clonePosition();
|
|
2909
2883
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2910
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f,
|
|
2884
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f, Re({}, f)));
|
|
2911
2885
|
this.bumpSpace();
|
|
2912
|
-
var
|
|
2913
|
-
if (a !== "select" &&
|
|
2886
|
+
var T = this.parseIdentifierIfPossible(), d = 0;
|
|
2887
|
+
if (a !== "select" && T.value === "offset") {
|
|
2914
2888
|
if (!this.bumpIf(":"))
|
|
2915
2889
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2916
2890
|
this.bumpSpace();
|
|
2917
|
-
var
|
|
2918
|
-
if (
|
|
2919
|
-
return
|
|
2920
|
-
this.bumpSpace(),
|
|
2891
|
+
var p = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2892
|
+
if (p.err)
|
|
2893
|
+
return p;
|
|
2894
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), d = p.val;
|
|
2921
2895
|
}
|
|
2922
|
-
var
|
|
2923
|
-
if (
|
|
2924
|
-
return
|
|
2896
|
+
var B = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
2897
|
+
if (B.err)
|
|
2898
|
+
return B;
|
|
2925
2899
|
var y = this.tryParseArgumentClose(i);
|
|
2926
2900
|
if (y.err)
|
|
2927
2901
|
return y;
|
|
2928
2902
|
var G = _(i, this.clonePosition());
|
|
2929
2903
|
return a === "select" ? {
|
|
2930
2904
|
val: {
|
|
2931
|
-
type:
|
|
2905
|
+
type: w.select,
|
|
2932
2906
|
value: n,
|
|
2933
|
-
options:
|
|
2907
|
+
options: Rt(B.val),
|
|
2934
2908
|
location: G
|
|
2935
2909
|
},
|
|
2936
2910
|
err: null
|
|
2937
2911
|
} : {
|
|
2938
2912
|
val: {
|
|
2939
|
-
type:
|
|
2913
|
+
type: w.plural,
|
|
2940
2914
|
value: n,
|
|
2941
|
-
options:
|
|
2915
|
+
options: Rt(B.val),
|
|
2942
2916
|
offset: d,
|
|
2943
2917
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2944
2918
|
location: G
|
|
@@ -2989,28 +2963,28 @@ var ii = (
|
|
|
2989
2963
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2990
2964
|
var n = [];
|
|
2991
2965
|
try {
|
|
2992
|
-
n =
|
|
2966
|
+
n = kn(t);
|
|
2993
2967
|
} catch (i) {
|
|
2994
2968
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
2995
2969
|
}
|
|
2996
2970
|
return {
|
|
2997
2971
|
val: {
|
|
2998
|
-
type:
|
|
2972
|
+
type: oe.number,
|
|
2999
2973
|
tokens: n,
|
|
3000
2974
|
location: r,
|
|
3001
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2975
|
+
parsedOptions: this.shouldParseSkeletons ? zn(n) : {}
|
|
3002
2976
|
},
|
|
3003
2977
|
err: null
|
|
3004
2978
|
};
|
|
3005
2979
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3006
2980
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3007
2981
|
if (u.length === 0) {
|
|
3008
|
-
var
|
|
2982
|
+
var p = this.clonePosition();
|
|
3009
2983
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3010
2984
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3011
2985
|
if (c.err)
|
|
3012
2986
|
return c;
|
|
3013
|
-
h = _(
|
|
2987
|
+
h = _(p, this.clonePosition()), u = this.message.slice(p.offset, this.offset());
|
|
3014
2988
|
} else
|
|
3015
2989
|
break;
|
|
3016
2990
|
}
|
|
@@ -3046,7 +3020,7 @@ var ii = (
|
|
|
3046
3020
|
break;
|
|
3047
3021
|
}
|
|
3048
3022
|
var l = _(i, this.clonePosition());
|
|
3049
|
-
return o ? (s *= n,
|
|
3023
|
+
return o ? (s *= n, oi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3050
3024
|
}, e.prototype.offset = function() {
|
|
3051
3025
|
return this.position.offset;
|
|
3052
3026
|
}, e.prototype.isEOF = function() {
|
|
@@ -3061,7 +3035,7 @@ var ii = (
|
|
|
3061
3035
|
var t = this.position.offset;
|
|
3062
3036
|
if (t >= this.message.length)
|
|
3063
3037
|
throw Error("out of bound");
|
|
3064
|
-
var r =
|
|
3038
|
+
var r = xr(this.message, t);
|
|
3065
3039
|
if (r === void 0)
|
|
3066
3040
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3067
3041
|
return r;
|
|
@@ -3080,7 +3054,7 @@ var ii = (
|
|
|
3080
3054
|
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);
|
|
3081
3055
|
}
|
|
3082
3056
|
}, e.prototype.bumpIf = function(t) {
|
|
3083
|
-
if (
|
|
3057
|
+
if ($t(this.message, t, this.offset())) {
|
|
3084
3058
|
for (var r = 0; r < t.length; r++)
|
|
3085
3059
|
this.bump();
|
|
3086
3060
|
return !0;
|
|
@@ -3102,7 +3076,7 @@ var ii = (
|
|
|
3102
3076
|
break;
|
|
3103
3077
|
}
|
|
3104
3078
|
}, e.prototype.bumpSpace = function() {
|
|
3105
|
-
for (; !this.isEOF() &&
|
|
3079
|
+
for (; !this.isEOF() && Tr(this.char()); )
|
|
3106
3080
|
this.bump();
|
|
3107
3081
|
}, e.prototype.peek = function() {
|
|
3108
3082
|
if (this.isEOF())
|
|
@@ -3112,47 +3086,47 @@ var ii = (
|
|
|
3112
3086
|
}, e;
|
|
3113
3087
|
}()
|
|
3114
3088
|
);
|
|
3115
|
-
function
|
|
3089
|
+
function ut(e) {
|
|
3116
3090
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3117
3091
|
}
|
|
3118
|
-
function
|
|
3119
|
-
return
|
|
3092
|
+
function hi(e) {
|
|
3093
|
+
return ut(e) || e === 47;
|
|
3120
3094
|
}
|
|
3121
|
-
function
|
|
3095
|
+
function ci(e) {
|
|
3122
3096
|
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;
|
|
3123
3097
|
}
|
|
3124
|
-
function
|
|
3098
|
+
function Tr(e) {
|
|
3125
3099
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3126
3100
|
}
|
|
3127
|
-
function
|
|
3101
|
+
function fi(e) {
|
|
3128
3102
|
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;
|
|
3129
3103
|
}
|
|
3130
|
-
function
|
|
3104
|
+
function lt(e) {
|
|
3131
3105
|
e.forEach(function(t) {
|
|
3132
|
-
if (delete t.location,
|
|
3106
|
+
if (delete t.location, mr(t) || dr(t))
|
|
3133
3107
|
for (var r in t.options)
|
|
3134
|
-
delete t.options[r].location,
|
|
3108
|
+
delete t.options[r].location, lt(t.options[r].value);
|
|
3135
3109
|
else
|
|
3136
|
-
|
|
3110
|
+
cr(t) && gr(t.style) || (fr(t) || pr(t)) && it(t.style) ? delete t.style.location : br(t) && lt(t.children);
|
|
3137
3111
|
});
|
|
3138
3112
|
}
|
|
3139
|
-
function
|
|
3140
|
-
t === void 0 && (t = {}), t =
|
|
3141
|
-
var r = new
|
|
3113
|
+
function pi(e, t) {
|
|
3114
|
+
t === void 0 && (t = {}), t = Re({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3115
|
+
var r = new li(e, t).parse();
|
|
3142
3116
|
if (r.err) {
|
|
3143
3117
|
var n = SyntaxError(v[r.err.kind]);
|
|
3144
3118
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3145
3119
|
}
|
|
3146
|
-
return t != null && t.captureLocation ||
|
|
3120
|
+
return t != null && t.captureLocation || lt(r.val), r.val;
|
|
3147
3121
|
}
|
|
3148
|
-
var
|
|
3122
|
+
var se;
|
|
3149
3123
|
(function(e) {
|
|
3150
3124
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3151
|
-
})(
|
|
3152
|
-
var
|
|
3125
|
+
})(se || (se = {}));
|
|
3126
|
+
var ke = (
|
|
3153
3127
|
/** @class */
|
|
3154
3128
|
function(e) {
|
|
3155
|
-
|
|
3129
|
+
je(t, e);
|
|
3156
3130
|
function t(r, n, i) {
|
|
3157
3131
|
var o = e.call(this, r) || this;
|
|
3158
3132
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3161,48 +3135,48 @@ var Fe = (
|
|
|
3161
3135
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3162
3136
|
}, t;
|
|
3163
3137
|
}(Error)
|
|
3164
|
-
),
|
|
3138
|
+
), Ut = (
|
|
3165
3139
|
/** @class */
|
|
3166
3140
|
function(e) {
|
|
3167
|
-
|
|
3141
|
+
je(t, e);
|
|
3168
3142
|
function t(r, n, i, o) {
|
|
3169
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3143
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
|
|
3170
3144
|
}
|
|
3171
3145
|
return t;
|
|
3172
|
-
}(
|
|
3173
|
-
),
|
|
3146
|
+
}(ke)
|
|
3147
|
+
), mi = (
|
|
3174
3148
|
/** @class */
|
|
3175
3149
|
function(e) {
|
|
3176
|
-
|
|
3150
|
+
je(t, e);
|
|
3177
3151
|
function t(r, n, i) {
|
|
3178
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3152
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3179
3153
|
}
|
|
3180
3154
|
return t;
|
|
3181
|
-
}(
|
|
3182
|
-
),
|
|
3155
|
+
}(ke)
|
|
3156
|
+
), di = (
|
|
3183
3157
|
/** @class */
|
|
3184
3158
|
function(e) {
|
|
3185
|
-
|
|
3159
|
+
je(t, e);
|
|
3186
3160
|
function t(r, n) {
|
|
3187
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3161
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3188
3162
|
}
|
|
3189
3163
|
return t;
|
|
3190
|
-
}(
|
|
3164
|
+
}(ke)
|
|
3191
3165
|
), C;
|
|
3192
3166
|
(function(e) {
|
|
3193
3167
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3194
3168
|
})(C || (C = {}));
|
|
3195
|
-
function
|
|
3169
|
+
function bi(e) {
|
|
3196
3170
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3197
3171
|
var n = t[t.length - 1];
|
|
3198
3172
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3199
3173
|
}, []);
|
|
3200
3174
|
}
|
|
3201
|
-
function
|
|
3175
|
+
function gi(e) {
|
|
3202
3176
|
return typeof e == "function";
|
|
3203
3177
|
}
|
|
3204
3178
|
function Ie(e, t, r, n, i, o, s) {
|
|
3205
|
-
if (e.length === 1 &&
|
|
3179
|
+
if (e.length === 1 && Ct(e[0]))
|
|
3206
3180
|
return [
|
|
3207
3181
|
{
|
|
3208
3182
|
type: C.literal,
|
|
@@ -3211,105 +3185,105 @@ function Ie(e, t, r, n, i, o, s) {
|
|
|
3211
3185
|
];
|
|
3212
3186
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3213
3187
|
var h = u[l];
|
|
3214
|
-
if (
|
|
3188
|
+
if (Ct(h)) {
|
|
3215
3189
|
a.push({
|
|
3216
3190
|
type: C.literal,
|
|
3217
3191
|
value: h.value
|
|
3218
3192
|
});
|
|
3219
3193
|
continue;
|
|
3220
3194
|
}
|
|
3221
|
-
if (
|
|
3195
|
+
if (Un(h)) {
|
|
3222
3196
|
typeof o == "number" && a.push({
|
|
3223
3197
|
type: C.literal,
|
|
3224
3198
|
value: r.getNumberFormat(t).format(o)
|
|
3225
3199
|
});
|
|
3226
3200
|
continue;
|
|
3227
3201
|
}
|
|
3228
|
-
var
|
|
3229
|
-
if (!(i &&
|
|
3230
|
-
throw new
|
|
3231
|
-
var c = i[
|
|
3232
|
-
if (
|
|
3202
|
+
var p = h.value;
|
|
3203
|
+
if (!(i && p in i))
|
|
3204
|
+
throw new di(p, s);
|
|
3205
|
+
var c = i[p];
|
|
3206
|
+
if (Dn(h)) {
|
|
3233
3207
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3234
3208
|
type: typeof c == "string" ? C.literal : C.object,
|
|
3235
3209
|
value: c
|
|
3236
3210
|
});
|
|
3237
3211
|
continue;
|
|
3238
3212
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
var b = typeof h.style == "string" ? n.date[h.style] :
|
|
3213
|
+
if (fr(h)) {
|
|
3214
|
+
var b = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
|
|
3241
3215
|
a.push({
|
|
3242
3216
|
type: C.literal,
|
|
3243
3217
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3244
3218
|
});
|
|
3245
3219
|
continue;
|
|
3246
3220
|
}
|
|
3247
|
-
if (
|
|
3248
|
-
var b = typeof h.style == "string" ? n.time[h.style] :
|
|
3221
|
+
if (pr(h)) {
|
|
3222
|
+
var b = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3249
3223
|
a.push({
|
|
3250
3224
|
type: C.literal,
|
|
3251
3225
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3252
3226
|
});
|
|
3253
3227
|
continue;
|
|
3254
3228
|
}
|
|
3255
|
-
if (
|
|
3256
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
|
3229
|
+
if (cr(h)) {
|
|
3230
|
+
var b = typeof h.style == "string" ? n.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3257
3231
|
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3258
3232
|
type: C.literal,
|
|
3259
3233
|
value: r.getNumberFormat(t, b).format(c)
|
|
3260
3234
|
});
|
|
3261
3235
|
continue;
|
|
3262
3236
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
var y = h.children, g = h.value,
|
|
3265
|
-
if (!
|
|
3266
|
-
throw new
|
|
3267
|
-
var A = Ie(y, t, r, n, i, o),
|
|
3237
|
+
if (br(h)) {
|
|
3238
|
+
var y = h.children, g = h.value, E = i[g];
|
|
3239
|
+
if (!gi(E))
|
|
3240
|
+
throw new mi(g, "function", s);
|
|
3241
|
+
var A = Ie(y, t, r, n, i, o), x = E(A.map(function(d) {
|
|
3268
3242
|
return d.value;
|
|
3269
3243
|
}));
|
|
3270
|
-
Array.isArray(
|
|
3244
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(d) {
|
|
3271
3245
|
return {
|
|
3272
3246
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3273
3247
|
value: d
|
|
3274
3248
|
};
|
|
3275
3249
|
}));
|
|
3276
3250
|
}
|
|
3277
|
-
if (
|
|
3251
|
+
if (mr(h)) {
|
|
3278
3252
|
var f = h.options[c] || h.options.other;
|
|
3279
3253
|
if (!f)
|
|
3280
|
-
throw new
|
|
3254
|
+
throw new Ut(h.value, c, Object.keys(h.options), s);
|
|
3281
3255
|
a.push.apply(a, Ie(f.value, t, r, n, i));
|
|
3282
3256
|
continue;
|
|
3283
3257
|
}
|
|
3284
|
-
if (
|
|
3258
|
+
if (dr(h)) {
|
|
3285
3259
|
var f = h.options["=".concat(c)];
|
|
3286
3260
|
if (!f) {
|
|
3287
3261
|
if (!Intl.PluralRules)
|
|
3288
|
-
throw new
|
|
3262
|
+
throw new ke(`Intl.PluralRules is not available in this environment.
|
|
3289
3263
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3290
|
-
`,
|
|
3291
|
-
var
|
|
3292
|
-
f = h.options[
|
|
3264
|
+
`, se.MISSING_INTL_API, s);
|
|
3265
|
+
var T = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3266
|
+
f = h.options[T] || h.options.other;
|
|
3293
3267
|
}
|
|
3294
3268
|
if (!f)
|
|
3295
|
-
throw new
|
|
3269
|
+
throw new Ut(h.value, c, Object.keys(h.options), s);
|
|
3296
3270
|
a.push.apply(a, Ie(f.value, t, r, n, i, c - (h.offset || 0)));
|
|
3297
3271
|
continue;
|
|
3298
3272
|
}
|
|
3299
3273
|
}
|
|
3300
|
-
return
|
|
3274
|
+
return bi(a);
|
|
3301
3275
|
}
|
|
3302
|
-
function
|
|
3303
|
-
return t ?
|
|
3304
|
-
return r[n] =
|
|
3276
|
+
function yi(e, t) {
|
|
3277
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3278
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3305
3279
|
}, {})) : e;
|
|
3306
3280
|
}
|
|
3307
|
-
function
|
|
3281
|
+
function vi(e, t) {
|
|
3308
3282
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3309
|
-
return r[n] =
|
|
3310
|
-
},
|
|
3283
|
+
return r[n] = yi(e[n], t[n]), r;
|
|
3284
|
+
}, j({}, e)) : e;
|
|
3311
3285
|
}
|
|
3312
|
-
function
|
|
3286
|
+
function qe(e) {
|
|
3313
3287
|
return {
|
|
3314
3288
|
create: function() {
|
|
3315
3289
|
return {
|
|
@@ -3323,39 +3297,39 @@ function Qe(e) {
|
|
|
3323
3297
|
}
|
|
3324
3298
|
};
|
|
3325
3299
|
}
|
|
3326
|
-
function
|
|
3300
|
+
function _i(e) {
|
|
3327
3301
|
return e === void 0 && (e = {
|
|
3328
3302
|
number: {},
|
|
3329
3303
|
dateTime: {},
|
|
3330
3304
|
pluralRules: {}
|
|
3331
3305
|
}), {
|
|
3332
|
-
getNumberFormat:
|
|
3306
|
+
getNumberFormat: Qe(function() {
|
|
3333
3307
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3334
3308
|
r[n] = arguments[n];
|
|
3335
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3309
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ze([void 0], r, !1)))();
|
|
3336
3310
|
}, {
|
|
3337
|
-
cache:
|
|
3338
|
-
strategy:
|
|
3311
|
+
cache: qe(e.number),
|
|
3312
|
+
strategy: Ye.variadic
|
|
3339
3313
|
}),
|
|
3340
|
-
getDateTimeFormat:
|
|
3314
|
+
getDateTimeFormat: Qe(function() {
|
|
3341
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3342
3316
|
r[n] = arguments[n];
|
|
3343
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ze([void 0], r, !1)))();
|
|
3344
3318
|
}, {
|
|
3345
|
-
cache:
|
|
3346
|
-
strategy:
|
|
3319
|
+
cache: qe(e.dateTime),
|
|
3320
|
+
strategy: Ye.variadic
|
|
3347
3321
|
}),
|
|
3348
|
-
getPluralRules:
|
|
3322
|
+
getPluralRules: Qe(function() {
|
|
3349
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3350
3324
|
r[n] = arguments[n];
|
|
3351
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ze([void 0], r, !1)))();
|
|
3352
3326
|
}, {
|
|
3353
|
-
cache:
|
|
3354
|
-
strategy:
|
|
3327
|
+
cache: qe(e.pluralRules),
|
|
3328
|
+
strategy: Ye.variadic
|
|
3355
3329
|
})
|
|
3356
3330
|
};
|
|
3357
3331
|
}
|
|
3358
|
-
var
|
|
3332
|
+
var wr = (
|
|
3359
3333
|
/** @class */
|
|
3360
3334
|
function() {
|
|
3361
3335
|
function e(t, r, n, i) {
|
|
@@ -3369,8 +3343,8 @@ var _r = (
|
|
|
3369
3343
|
var u = o.formatToParts(l);
|
|
3370
3344
|
if (u.length === 1)
|
|
3371
3345
|
return u[0].value;
|
|
3372
|
-
var h = u.reduce(function(
|
|
3373
|
-
return !
|
|
3346
|
+
var h = u.reduce(function(p, c) {
|
|
3347
|
+
return !p.length || c.type !== C.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
|
|
3374
3348
|
}, []);
|
|
3375
3349
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3376
3350
|
}, this.formatToParts = function(l) {
|
|
@@ -3387,13 +3361,13 @@ var _r = (
|
|
|
3387
3361
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3388
3362
|
var s = i || {};
|
|
3389
3363
|
s.formatters;
|
|
3390
|
-
var a =
|
|
3391
|
-
this.ast = e.__parse(t,
|
|
3364
|
+
var a = Bn(s, ["formatters"]);
|
|
3365
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
|
3392
3366
|
} else
|
|
3393
3367
|
this.ast = t;
|
|
3394
3368
|
if (!Array.isArray(this.ast))
|
|
3395
3369
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3396
|
-
this.formats =
|
|
3370
|
+
this.formats = vi(e.formats, n), this.formatters = i && i.formatters || _i(this.formatterCache);
|
|
3397
3371
|
}
|
|
3398
3372
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3399
3373
|
get: function() {
|
|
@@ -3406,7 +3380,7 @@ var _r = (
|
|
|
3406
3380
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3407
3381
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3408
3382
|
}
|
|
3409
|
-
}, e.__parse =
|
|
3383
|
+
}, e.__parse = pi, e.formats = {
|
|
3410
3384
|
number: {
|
|
3411
3385
|
integer: {
|
|
3412
3386
|
maximumFractionDigits: 0
|
|
@@ -3467,7 +3441,7 @@ var _r = (
|
|
|
3467
3441
|
}, e;
|
|
3468
3442
|
}()
|
|
3469
3443
|
);
|
|
3470
|
-
function
|
|
3444
|
+
function Ei(e, t) {
|
|
3471
3445
|
if (t == null)
|
|
3472
3446
|
return;
|
|
3473
3447
|
if (t in e)
|
|
@@ -3488,101 +3462,101 @@ function bi(e, t) {
|
|
|
3488
3462
|
n = void 0;
|
|
3489
3463
|
return n;
|
|
3490
3464
|
}
|
|
3491
|
-
const W = {},
|
|
3465
|
+
const W = {}, xi = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), Hr = (e, t) => {
|
|
3492
3466
|
if (t == null)
|
|
3493
3467
|
return;
|
|
3494
3468
|
if (t in W && e in W[t])
|
|
3495
3469
|
return W[t][e];
|
|
3496
3470
|
const r = Ee(t);
|
|
3497
3471
|
for (let n = 0; n < r.length; n++) {
|
|
3498
|
-
const i = r[n], o =
|
|
3472
|
+
const i = r[n], o = Ti(i, e);
|
|
3499
3473
|
if (o)
|
|
3500
|
-
return
|
|
3474
|
+
return xi(e, t, o);
|
|
3501
3475
|
}
|
|
3502
3476
|
};
|
|
3503
|
-
let
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3506
|
-
return
|
|
3477
|
+
let Et;
|
|
3478
|
+
const _e = Fe({});
|
|
3479
|
+
function Si(e) {
|
|
3480
|
+
return Et[e] || null;
|
|
3507
3481
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return e in
|
|
3482
|
+
function Pr(e) {
|
|
3483
|
+
return e in Et;
|
|
3510
3484
|
}
|
|
3511
|
-
function
|
|
3512
|
-
if (!
|
|
3485
|
+
function Ti(e, t) {
|
|
3486
|
+
if (!Pr(e))
|
|
3513
3487
|
return null;
|
|
3514
|
-
const r =
|
|
3515
|
-
return
|
|
3488
|
+
const r = Si(e);
|
|
3489
|
+
return Ei(r, t);
|
|
3516
3490
|
}
|
|
3517
|
-
function
|
|
3491
|
+
function wi(e) {
|
|
3518
3492
|
if (e == null)
|
|
3519
3493
|
return;
|
|
3520
3494
|
const t = Ee(e);
|
|
3521
3495
|
for (let r = 0; r < t.length; r++) {
|
|
3522
3496
|
const n = t[r];
|
|
3523
|
-
if (
|
|
3497
|
+
if (Pr(n))
|
|
3524
3498
|
return n;
|
|
3525
3499
|
}
|
|
3526
3500
|
}
|
|
3527
|
-
function
|
|
3528
|
-
delete W[e],
|
|
3501
|
+
function Ar(e, ...t) {
|
|
3502
|
+
delete W[e], _e.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
|
3529
3503
|
}
|
|
3530
|
-
|
|
3531
|
-
[
|
|
3504
|
+
le(
|
|
3505
|
+
[_e],
|
|
3532
3506
|
([e]) => Object.keys(e)
|
|
3533
3507
|
);
|
|
3534
|
-
|
|
3508
|
+
_e.subscribe((e) => Et = e);
|
|
3535
3509
|
const Le = {};
|
|
3536
|
-
function
|
|
3510
|
+
function Hi(e, t) {
|
|
3537
3511
|
Le[e].delete(t), Le[e].size === 0 && delete Le[e];
|
|
3538
3512
|
}
|
|
3539
|
-
function
|
|
3513
|
+
function Or(e) {
|
|
3540
3514
|
return Le[e];
|
|
3541
3515
|
}
|
|
3542
|
-
function
|
|
3516
|
+
function Pi(e) {
|
|
3543
3517
|
return Ee(e).map((t) => {
|
|
3544
|
-
const r =
|
|
3518
|
+
const r = Or(t);
|
|
3545
3519
|
return [t, r ? [...r] : []];
|
|
3546
3520
|
}).filter(([, t]) => t.length > 0);
|
|
3547
3521
|
}
|
|
3548
|
-
function
|
|
3522
|
+
function De(e) {
|
|
3549
3523
|
return e == null ? !1 : Ee(e).some(
|
|
3550
3524
|
(t) => {
|
|
3551
3525
|
var r;
|
|
3552
|
-
return (r =
|
|
3526
|
+
return (r = Or(t)) == null ? void 0 : r.size;
|
|
3553
3527
|
}
|
|
3554
3528
|
);
|
|
3555
3529
|
}
|
|
3556
|
-
function
|
|
3530
|
+
function Ai(e, t) {
|
|
3557
3531
|
return Promise.all(
|
|
3558
|
-
t.map((n) => (
|
|
3559
|
-
).then((n) =>
|
|
3532
|
+
t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
|
|
3533
|
+
).then((n) => Ar(e, ...n));
|
|
3560
3534
|
}
|
|
3561
3535
|
const pe = {};
|
|
3562
|
-
function
|
|
3563
|
-
if (!
|
|
3536
|
+
function Br(e) {
|
|
3537
|
+
if (!De(e))
|
|
3564
3538
|
return e in pe ? pe[e] : Promise.resolve();
|
|
3565
|
-
const t =
|
|
3539
|
+
const t = Pi(e);
|
|
3566
3540
|
return pe[e] = Promise.all(
|
|
3567
3541
|
t.map(
|
|
3568
|
-
([r, n]) =>
|
|
3542
|
+
([r, n]) => Ai(r, n)
|
|
3569
3543
|
)
|
|
3570
3544
|
).then(() => {
|
|
3571
|
-
if (
|
|
3572
|
-
return
|
|
3545
|
+
if (De(e))
|
|
3546
|
+
return Br(e);
|
|
3573
3547
|
delete pe[e];
|
|
3574
3548
|
}), pe[e];
|
|
3575
3549
|
}
|
|
3576
|
-
var
|
|
3550
|
+
var Gt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, Mi = (e, t) => {
|
|
3577
3551
|
var r = {};
|
|
3578
3552
|
for (var n in e)
|
|
3579
|
-
|
|
3580
|
-
if (e != null &&
|
|
3581
|
-
for (var n of
|
|
3582
|
-
t.indexOf(n) < 0 &&
|
|
3553
|
+
Oi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3554
|
+
if (e != null && Gt)
|
|
3555
|
+
for (var n of Gt(e))
|
|
3556
|
+
t.indexOf(n) < 0 && Bi.call(e, n) && (r[n] = e[n]);
|
|
3583
3557
|
return r;
|
|
3584
3558
|
};
|
|
3585
|
-
const
|
|
3559
|
+
const Ci = {
|
|
3586
3560
|
number: {
|
|
3587
3561
|
scientific: { notation: "scientific" },
|
|
3588
3562
|
engineering: { notation: "engineering" },
|
|
@@ -3612,159 +3586,159 @@ const Pi = {
|
|
|
3612
3586
|
}
|
|
3613
3587
|
}
|
|
3614
3588
|
};
|
|
3615
|
-
function
|
|
3589
|
+
function Ii({ locale: e, id: t }) {
|
|
3616
3590
|
console.warn(
|
|
3617
3591
|
`[svelte-i18n] The message "${t}" was not found in "${Ee(
|
|
3618
3592
|
e
|
|
3619
|
-
).join('", "')}".${
|
|
3593
|
+
).join('", "')}".${De(z()) ? `
|
|
3620
3594
|
|
|
3621
3595
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3622
3596
|
);
|
|
3623
3597
|
}
|
|
3624
|
-
const
|
|
3598
|
+
const Li = {
|
|
3625
3599
|
fallbackLocale: null,
|
|
3626
3600
|
loadingDelay: 200,
|
|
3627
|
-
formats:
|
|
3601
|
+
formats: Ci,
|
|
3628
3602
|
warnOnMissingMessages: !0,
|
|
3629
3603
|
handleMissingMessage: void 0,
|
|
3630
3604
|
ignoreTag: !0
|
|
3631
|
-
},
|
|
3632
|
-
function
|
|
3633
|
-
return
|
|
3605
|
+
}, me = Li;
|
|
3606
|
+
function ae() {
|
|
3607
|
+
return me;
|
|
3634
3608
|
}
|
|
3635
|
-
function
|
|
3636
|
-
const t = e, { formats: r } = t, n =
|
|
3609
|
+
function Ni(e) {
|
|
3610
|
+
const t = e, { formats: r } = t, n = Mi(t, ["formats"]);
|
|
3637
3611
|
let i = e.fallbackLocale;
|
|
3638
3612
|
if (e.initialLocale)
|
|
3639
3613
|
try {
|
|
3640
|
-
|
|
3614
|
+
wr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3641
3615
|
} catch (o) {
|
|
3642
3616
|
console.warn(
|
|
3643
3617
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3644
3618
|
);
|
|
3645
3619
|
}
|
|
3646
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3620
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ii : console.warn(
|
|
3647
3621
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3648
|
-
)), Object.assign(
|
|
3622
|
+
)), Object.assign(me, n, { initialLocale: i }), r && ("number" in r && Object.assign(me.formats.number, r.number), "date" in r && Object.assign(me.formats.date, r.date), "time" in r && Object.assign(me.formats.time, r.time)), Q.set(i);
|
|
3649
3623
|
}
|
|
3650
|
-
const
|
|
3651
|
-
var
|
|
3624
|
+
const Ke = Fe(!1);
|
|
3625
|
+
var $i = Object.defineProperty, Ri = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, Ft = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fi = (e, t) => {
|
|
3652
3626
|
for (var r in t || (t = {}))
|
|
3653
|
-
|
|
3654
|
-
if (
|
|
3655
|
-
for (var r of
|
|
3656
|
-
|
|
3627
|
+
Ui.call(t, r) && jt(e, r, t[r]);
|
|
3628
|
+
if (Ft)
|
|
3629
|
+
for (var r of Ft(t))
|
|
3630
|
+
Gi.call(t, r) && jt(e, r, t[r]);
|
|
3657
3631
|
return e;
|
|
3658
|
-
},
|
|
3659
|
-
let
|
|
3660
|
-
const
|
|
3661
|
-
function
|
|
3632
|
+
}, ji = (e, t) => Ri(e, Di(t));
|
|
3633
|
+
let ht;
|
|
3634
|
+
const Ue = Fe(null);
|
|
3635
|
+
function kt(e) {
|
|
3662
3636
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3663
3637
|
}
|
|
3664
|
-
function Ee(e, t =
|
|
3665
|
-
const r =
|
|
3666
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3638
|
+
function Ee(e, t = ae().fallbackLocale) {
|
|
3639
|
+
const r = kt(e);
|
|
3640
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
|
|
3667
3641
|
}
|
|
3668
3642
|
function z() {
|
|
3669
|
-
return
|
|
3643
|
+
return ht != null ? ht : void 0;
|
|
3670
3644
|
}
|
|
3671
|
-
|
|
3672
|
-
|
|
3645
|
+
Ue.subscribe((e) => {
|
|
3646
|
+
ht = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3673
3647
|
});
|
|
3674
|
-
const
|
|
3675
|
-
if (e &&
|
|
3676
|
-
const { loadingDelay: t } =
|
|
3648
|
+
const ki = (e) => {
|
|
3649
|
+
if (e && wi(e) && De(e)) {
|
|
3650
|
+
const { loadingDelay: t } = ae();
|
|
3677
3651
|
let r;
|
|
3678
3652
|
return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
|
|
3679
|
-
() =>
|
|
3653
|
+
() => Ke.set(!0),
|
|
3680
3654
|
t
|
|
3681
|
-
) :
|
|
3682
|
-
|
|
3655
|
+
) : Ke.set(!0), Br(e).then(() => {
|
|
3656
|
+
Ue.set(e);
|
|
3683
3657
|
}).finally(() => {
|
|
3684
|
-
clearTimeout(r),
|
|
3658
|
+
clearTimeout(r), Ke.set(!1);
|
|
3685
3659
|
});
|
|
3686
3660
|
}
|
|
3687
|
-
return
|
|
3688
|
-
}, Q =
|
|
3689
|
-
set:
|
|
3690
|
-
}),
|
|
3661
|
+
return Ue.set(e);
|
|
3662
|
+
}, Q = ji(Fi({}, Ue), {
|
|
3663
|
+
set: ki
|
|
3664
|
+
}), Ve = (e) => {
|
|
3691
3665
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3692
3666
|
return (n) => {
|
|
3693
3667
|
const i = JSON.stringify(n);
|
|
3694
3668
|
return i in t ? t[i] : t[i] = e(n);
|
|
3695
3669
|
};
|
|
3696
3670
|
};
|
|
3697
|
-
var
|
|
3671
|
+
var Vi = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Mr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
|
3698
3672
|
for (var r in t || (t = {}))
|
|
3699
|
-
|
|
3700
|
-
if (
|
|
3701
|
-
for (var r of
|
|
3702
|
-
|
|
3673
|
+
Mr.call(t, r) && Vt(e, r, t[r]);
|
|
3674
|
+
if (Ge)
|
|
3675
|
+
for (var r of Ge(t))
|
|
3676
|
+
Cr.call(t, r) && Vt(e, r, t[r]);
|
|
3703
3677
|
return e;
|
|
3704
|
-
},
|
|
3678
|
+
}, he = (e, t) => {
|
|
3705
3679
|
var r = {};
|
|
3706
3680
|
for (var n in e)
|
|
3707
|
-
|
|
3708
|
-
if (e != null &&
|
|
3709
|
-
for (var n of
|
|
3710
|
-
t.indexOf(n) < 0 &&
|
|
3681
|
+
Mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3682
|
+
if (e != null && Ge)
|
|
3683
|
+
for (var n of Ge(e))
|
|
3684
|
+
t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
|
|
3711
3685
|
return r;
|
|
3712
3686
|
};
|
|
3713
|
-
const
|
|
3714
|
-
const { formats: r } =
|
|
3687
|
+
const ve = (e, t) => {
|
|
3688
|
+
const { formats: r } = ae();
|
|
3715
3689
|
if (e in r && t in r[e])
|
|
3716
3690
|
return r[e][t];
|
|
3717
3691
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3718
|
-
},
|
|
3692
|
+
}, Xi = Ve(
|
|
3719
3693
|
(e) => {
|
|
3720
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3694
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3721
3695
|
if (r == null)
|
|
3722
3696
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3723
|
-
return n && (i =
|
|
3697
|
+
return n && (i = ve("number", n)), new Intl.NumberFormat(r, i);
|
|
3724
3698
|
}
|
|
3725
|
-
),
|
|
3699
|
+
), Wi = Ve(
|
|
3726
3700
|
(e) => {
|
|
3727
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3701
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3728
3702
|
if (r == null)
|
|
3729
3703
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3730
|
-
return n ? i =
|
|
3704
|
+
return n ? i = ve("date", n) : Object.keys(i).length === 0 && (i = ve("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3731
3705
|
}
|
|
3732
|
-
),
|
|
3706
|
+
), zi = Ve(
|
|
3733
3707
|
(e) => {
|
|
3734
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3708
|
+
var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
|
|
3735
3709
|
if (r == null)
|
|
3736
3710
|
throw new Error(
|
|
3737
3711
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3738
3712
|
);
|
|
3739
|
-
return n ? i =
|
|
3713
|
+
return n ? i = ve("time", n) : Object.keys(i).length === 0 && (i = ve("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3740
3714
|
}
|
|
3741
|
-
),
|
|
3715
|
+
), Zi = (e = {}) => {
|
|
3742
3716
|
var t = e, {
|
|
3743
3717
|
locale: r = z()
|
|
3744
|
-
} = t, n =
|
|
3718
|
+
} = t, n = he(t, [
|
|
3745
3719
|
"locale"
|
|
3746
3720
|
]);
|
|
3747
|
-
return
|
|
3748
|
-
},
|
|
3721
|
+
return Xi(xt({ locale: r }, n));
|
|
3722
|
+
}, Qi = (e = {}) => {
|
|
3749
3723
|
var t = e, {
|
|
3750
3724
|
locale: r = z()
|
|
3751
|
-
} = t, n =
|
|
3725
|
+
} = t, n = he(t, [
|
|
3752
3726
|
"locale"
|
|
3753
3727
|
]);
|
|
3754
|
-
return
|
|
3755
|
-
},
|
|
3728
|
+
return Wi(xt({ locale: r }, n));
|
|
3729
|
+
}, Yi = (e = {}) => {
|
|
3756
3730
|
var t = e, {
|
|
3757
3731
|
locale: r = z()
|
|
3758
|
-
} = t, n =
|
|
3732
|
+
} = t, n = he(t, [
|
|
3759
3733
|
"locale"
|
|
3760
3734
|
]);
|
|
3761
|
-
return
|
|
3762
|
-
},
|
|
3735
|
+
return zi(xt({ locale: r }, n));
|
|
3736
|
+
}, Ji = Ve(
|
|
3763
3737
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3764
|
-
(e, t = z()) => new
|
|
3765
|
-
ignoreTag:
|
|
3738
|
+
(e, t = z()) => new wr(e, t, ae().formats, {
|
|
3739
|
+
ignoreTag: ae().ignoreTag
|
|
3766
3740
|
})
|
|
3767
|
-
),
|
|
3741
|
+
), qi = (e, t = {}) => {
|
|
3768
3742
|
var r, n, i, o;
|
|
3769
3743
|
let s = t;
|
|
3770
3744
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3777,45 +3751,45 @@ const _e = (e, t) => {
|
|
|
3777
3751
|
throw new Error(
|
|
3778
3752
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3779
3753
|
);
|
|
3780
|
-
let h =
|
|
3754
|
+
let h = Hr(e, l);
|
|
3781
3755
|
if (!h)
|
|
3782
|
-
h = (o = (i = (n = (r =
|
|
3756
|
+
h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3783
3757
|
else if (typeof h != "string")
|
|
3784
3758
|
return console.warn(
|
|
3785
3759
|
`[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.`
|
|
3786
3760
|
), h;
|
|
3787
3761
|
if (!a)
|
|
3788
3762
|
return h;
|
|
3789
|
-
let
|
|
3763
|
+
let p = h;
|
|
3790
3764
|
try {
|
|
3791
|
-
|
|
3765
|
+
p = Ji(h, l).format(a);
|
|
3792
3766
|
} catch (c) {
|
|
3793
3767
|
c instanceof Error && console.warn(
|
|
3794
3768
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3795
3769
|
c.message
|
|
3796
3770
|
);
|
|
3797
3771
|
}
|
|
3798
|
-
return
|
|
3799
|
-
},
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
function
|
|
3805
|
-
|
|
3806
|
-
}
|
|
3807
|
-
function
|
|
3808
|
-
|
|
3772
|
+
return p;
|
|
3773
|
+
}, Ki = (e, t) => Yi(t).format(e), eo = (e, t) => Qi(t).format(e), to = (e, t) => Zi(t).format(e), ro = (e, t = z()) => Hr(e, t), no = le([Q, _e], () => qi);
|
|
3774
|
+
le([Q], () => Ki);
|
|
3775
|
+
le([Q], () => eo);
|
|
3776
|
+
le([Q], () => to);
|
|
3777
|
+
le([Q, _e], () => ro);
|
|
3778
|
+
function Xt(e, t) {
|
|
3779
|
+
Ar(e, t);
|
|
3780
|
+
}
|
|
3781
|
+
function io(e) {
|
|
3782
|
+
Ni({
|
|
3809
3783
|
fallbackLocale: "en"
|
|
3810
3784
|
}), Q.set(e);
|
|
3811
3785
|
}
|
|
3812
|
-
function
|
|
3786
|
+
function oo(e, t) {
|
|
3813
3787
|
if (e) {
|
|
3814
3788
|
const r = document.createElement("style");
|
|
3815
3789
|
r.innerHTML = t, e.appendChild(r);
|
|
3816
3790
|
}
|
|
3817
3791
|
}
|
|
3818
|
-
function
|
|
3792
|
+
function so(e, t) {
|
|
3819
3793
|
const r = new URL(t);
|
|
3820
3794
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3821
3795
|
const i = document.createElement("style");
|
|
@@ -3824,7 +3798,7 @@ function to(e, t) {
|
|
|
3824
3798
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3825
3799
|
});
|
|
3826
3800
|
}
|
|
3827
|
-
function
|
|
3801
|
+
function ao(e, t, r) {
|
|
3828
3802
|
if (window.emMessageBus) {
|
|
3829
3803
|
const n = document.createElement("style");
|
|
3830
3804
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3832,16 +3806,85 @@ function ro(e, t, r) {
|
|
|
3832
3806
|
});
|
|
3833
3807
|
}
|
|
3834
3808
|
}
|
|
3835
|
-
|
|
3809
|
+
/*! *****************************************************************************
|
|
3810
|
+
Copyright (c) Microsoft Corporation.
|
|
3811
|
+
|
|
3812
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3813
|
+
purpose with or without fee is hereby granted.
|
|
3814
|
+
|
|
3815
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3816
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3817
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3818
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3819
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3820
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3821
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3822
|
+
***************************************************************************** */
|
|
3823
|
+
var ct = function(e, t) {
|
|
3824
|
+
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3825
|
+
r.__proto__ = n;
|
|
3826
|
+
} || function(r, n) {
|
|
3827
|
+
for (var i in n)
|
|
3828
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3829
|
+
}, ct(e, t);
|
|
3830
|
+
};
|
|
3831
|
+
function xe(e, t) {
|
|
3832
|
+
if (typeof t != "function" && t !== null)
|
|
3833
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3834
|
+
ct(e, t);
|
|
3835
|
+
function r() {
|
|
3836
|
+
this.constructor = e;
|
|
3837
|
+
}
|
|
3838
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3839
|
+
}
|
|
3840
|
+
function ft(e) {
|
|
3841
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
3842
|
+
if (r)
|
|
3843
|
+
return r.call(e);
|
|
3844
|
+
if (e && typeof e.length == "number")
|
|
3845
|
+
return {
|
|
3846
|
+
next: function() {
|
|
3847
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
3848
|
+
}
|
|
3849
|
+
};
|
|
3850
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3851
|
+
}
|
|
3852
|
+
function pt(e, t) {
|
|
3853
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3854
|
+
if (!r)
|
|
3855
|
+
return e;
|
|
3856
|
+
var n = r.call(e), i, o = [], s;
|
|
3857
|
+
try {
|
|
3858
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
3859
|
+
o.push(i.value);
|
|
3860
|
+
} catch (a) {
|
|
3861
|
+
s = { error: a };
|
|
3862
|
+
} finally {
|
|
3863
|
+
try {
|
|
3864
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
3865
|
+
} finally {
|
|
3866
|
+
if (s)
|
|
3867
|
+
throw s.error;
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
return o;
|
|
3871
|
+
}
|
|
3872
|
+
function mt(e, t, r) {
|
|
3873
|
+
if (arguments.length === 2)
|
|
3874
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
3875
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
3876
|
+
return e.concat(o || t);
|
|
3877
|
+
}
|
|
3878
|
+
function X(e) {
|
|
3836
3879
|
return typeof e == "function";
|
|
3837
3880
|
}
|
|
3838
|
-
function
|
|
3881
|
+
function Ir(e) {
|
|
3839
3882
|
var t = function(n) {
|
|
3840
3883
|
Error.call(n), n.stack = new Error().stack;
|
|
3841
3884
|
}, r = e(t);
|
|
3842
3885
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
3843
3886
|
}
|
|
3844
|
-
var
|
|
3887
|
+
var et = Ir(function(e) {
|
|
3845
3888
|
return function(r) {
|
|
3846
3889
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
3847
3890
|
` + r.map(function(n, i) {
|
|
@@ -3850,13 +3893,13 @@ var Je = Ar(function(e) {
|
|
|
3850
3893
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
3851
3894
|
};
|
|
3852
3895
|
});
|
|
3853
|
-
function
|
|
3896
|
+
function dt(e, t) {
|
|
3854
3897
|
if (e) {
|
|
3855
3898
|
var r = e.indexOf(t);
|
|
3856
3899
|
0 <= r && e.splice(r, 1);
|
|
3857
3900
|
}
|
|
3858
3901
|
}
|
|
3859
|
-
var
|
|
3902
|
+
var Xe = function() {
|
|
3860
3903
|
function e(t) {
|
|
3861
3904
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
3862
3905
|
}
|
|
@@ -3868,7 +3911,7 @@ var ke = function() {
|
|
|
3868
3911
|
if (s)
|
|
3869
3912
|
if (this._parentage = null, Array.isArray(s))
|
|
3870
3913
|
try {
|
|
3871
|
-
for (var a =
|
|
3914
|
+
for (var a = ft(s), l = a.next(); !l.done; l = a.next()) {
|
|
3872
3915
|
var u = l.value;
|
|
3873
3916
|
u.remove(this);
|
|
3874
3917
|
}
|
|
@@ -3885,22 +3928,22 @@ var ke = function() {
|
|
|
3885
3928
|
else
|
|
3886
3929
|
s.remove(this);
|
|
3887
3930
|
var h = this.initialTeardown;
|
|
3888
|
-
if (
|
|
3931
|
+
if (X(h))
|
|
3889
3932
|
try {
|
|
3890
3933
|
h();
|
|
3891
3934
|
} catch (g) {
|
|
3892
|
-
o = g instanceof
|
|
3935
|
+
o = g instanceof et ? g.errors : [g];
|
|
3893
3936
|
}
|
|
3894
|
-
var
|
|
3895
|
-
if (
|
|
3937
|
+
var p = this._finalizers;
|
|
3938
|
+
if (p) {
|
|
3896
3939
|
this._finalizers = null;
|
|
3897
3940
|
try {
|
|
3898
|
-
for (var c =
|
|
3941
|
+
for (var c = ft(p), b = c.next(); !b.done; b = c.next()) {
|
|
3899
3942
|
var y = b.value;
|
|
3900
3943
|
try {
|
|
3901
|
-
|
|
3944
|
+
Wt(y);
|
|
3902
3945
|
} catch (g) {
|
|
3903
|
-
o = o != null ? o : [], g instanceof
|
|
3946
|
+
o = o != null ? o : [], g instanceof et ? o = mt(mt([], pt(o)), pt(g.errors)) : o.push(g);
|
|
3904
3947
|
}
|
|
3905
3948
|
}
|
|
3906
3949
|
} catch (g) {
|
|
@@ -3915,13 +3958,13 @@ var ke = function() {
|
|
|
3915
3958
|
}
|
|
3916
3959
|
}
|
|
3917
3960
|
if (o)
|
|
3918
|
-
throw new
|
|
3961
|
+
throw new et(o);
|
|
3919
3962
|
}
|
|
3920
3963
|
}, e.prototype.add = function(t) {
|
|
3921
3964
|
var r;
|
|
3922
3965
|
if (t && t !== this)
|
|
3923
3966
|
if (this.closed)
|
|
3924
|
-
|
|
3967
|
+
Wt(t);
|
|
3925
3968
|
else {
|
|
3926
3969
|
if (t instanceof e) {
|
|
3927
3970
|
if (t.closed || t._hasParent(this))
|
|
@@ -3938,52 +3981,52 @@ var ke = function() {
|
|
|
3938
3981
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
3939
3982
|
}, e.prototype._removeParent = function(t) {
|
|
3940
3983
|
var r = this._parentage;
|
|
3941
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
3984
|
+
r === t ? this._parentage = null : Array.isArray(r) && dt(r, t);
|
|
3942
3985
|
}, e.prototype.remove = function(t) {
|
|
3943
3986
|
var r = this._finalizers;
|
|
3944
|
-
r &&
|
|
3987
|
+
r && dt(r, t), t instanceof e && t._removeParent(this);
|
|
3945
3988
|
}, e.EMPTY = function() {
|
|
3946
3989
|
var t = new e();
|
|
3947
3990
|
return t.closed = !0, t;
|
|
3948
3991
|
}(), e;
|
|
3949
|
-
}(),
|
|
3950
|
-
function
|
|
3951
|
-
return e instanceof
|
|
3992
|
+
}(), Lr = Xe.EMPTY;
|
|
3993
|
+
function Nr(e) {
|
|
3994
|
+
return e instanceof Xe || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
|
|
3952
3995
|
}
|
|
3953
|
-
function
|
|
3954
|
-
|
|
3996
|
+
function Wt(e) {
|
|
3997
|
+
X(e) ? e() : e.unsubscribe();
|
|
3955
3998
|
}
|
|
3956
|
-
var
|
|
3999
|
+
var uo = {
|
|
3957
4000
|
Promise: void 0
|
|
3958
|
-
},
|
|
4001
|
+
}, lo = {
|
|
3959
4002
|
setTimeout: function(e, t) {
|
|
3960
4003
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
3961
4004
|
r[n - 2] = arguments[n];
|
|
3962
|
-
return setTimeout.apply(void 0,
|
|
4005
|
+
return setTimeout.apply(void 0, mt([e, t], pt(r)));
|
|
3963
4006
|
},
|
|
3964
4007
|
clearTimeout: function(e) {
|
|
3965
4008
|
return clearTimeout(e);
|
|
3966
4009
|
},
|
|
3967
4010
|
delegate: void 0
|
|
3968
4011
|
};
|
|
3969
|
-
function
|
|
3970
|
-
|
|
4012
|
+
function ho(e) {
|
|
4013
|
+
lo.setTimeout(function() {
|
|
3971
4014
|
throw e;
|
|
3972
4015
|
});
|
|
3973
4016
|
}
|
|
3974
|
-
function
|
|
4017
|
+
function zt() {
|
|
3975
4018
|
}
|
|
3976
4019
|
function Ne(e) {
|
|
3977
4020
|
e();
|
|
3978
4021
|
}
|
|
3979
|
-
var
|
|
3980
|
-
|
|
4022
|
+
var $r = function(e) {
|
|
4023
|
+
xe(t, e);
|
|
3981
4024
|
function t(r) {
|
|
3982
4025
|
var n = e.call(this) || this;
|
|
3983
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
4026
|
+
return n.isStopped = !1, r ? (n.destination = r, Nr(r) && r.add(n)) : n.destination = po, n;
|
|
3984
4027
|
}
|
|
3985
4028
|
return t.create = function(r, n, i) {
|
|
3986
|
-
return new
|
|
4029
|
+
return new bt(r, n, i);
|
|
3987
4030
|
}, t.prototype.next = function(r) {
|
|
3988
4031
|
this.isStopped || this._next(r);
|
|
3989
4032
|
}, t.prototype.error = function(r) {
|
|
@@ -4007,7 +4050,7 @@ var Or = function(e) {
|
|
|
4007
4050
|
this.unsubscribe();
|
|
4008
4051
|
}
|
|
4009
4052
|
}, t;
|
|
4010
|
-
}(
|
|
4053
|
+
}(Xe), co = function() {
|
|
4011
4054
|
function e(t) {
|
|
4012
4055
|
this.partialObserver = t;
|
|
4013
4056
|
}
|
|
@@ -4017,7 +4060,7 @@ var Or = function(e) {
|
|
|
4017
4060
|
try {
|
|
4018
4061
|
r.next(t);
|
|
4019
4062
|
} catch (n) {
|
|
4020
|
-
|
|
4063
|
+
Oe(n);
|
|
4021
4064
|
}
|
|
4022
4065
|
}, e.prototype.error = function(t) {
|
|
4023
4066
|
var r = this.partialObserver;
|
|
@@ -4025,56 +4068,56 @@ var Or = function(e) {
|
|
|
4025
4068
|
try {
|
|
4026
4069
|
r.error(t);
|
|
4027
4070
|
} catch (n) {
|
|
4028
|
-
|
|
4071
|
+
Oe(n);
|
|
4029
4072
|
}
|
|
4030
4073
|
else
|
|
4031
|
-
|
|
4074
|
+
Oe(t);
|
|
4032
4075
|
}, e.prototype.complete = function() {
|
|
4033
4076
|
var t = this.partialObserver;
|
|
4034
4077
|
if (t.complete)
|
|
4035
4078
|
try {
|
|
4036
4079
|
t.complete();
|
|
4037
4080
|
} catch (r) {
|
|
4038
|
-
|
|
4081
|
+
Oe(r);
|
|
4039
4082
|
}
|
|
4040
4083
|
}, e;
|
|
4041
|
-
}(),
|
|
4042
|
-
|
|
4084
|
+
}(), bt = function(e) {
|
|
4085
|
+
xe(t, e);
|
|
4043
4086
|
function t(r, n, i) {
|
|
4044
4087
|
var o = e.call(this) || this, s;
|
|
4045
|
-
return
|
|
4088
|
+
return X(r) || !r ? s = {
|
|
4046
4089
|
next: r != null ? r : void 0,
|
|
4047
4090
|
error: n != null ? n : void 0,
|
|
4048
4091
|
complete: i != null ? i : void 0
|
|
4049
|
-
} : s = r, o.destination = new
|
|
4092
|
+
} : s = r, o.destination = new co(s), o;
|
|
4050
4093
|
}
|
|
4051
4094
|
return t;
|
|
4052
|
-
}(
|
|
4053
|
-
function
|
|
4054
|
-
|
|
4095
|
+
}($r);
|
|
4096
|
+
function Oe(e) {
|
|
4097
|
+
ho(e);
|
|
4055
4098
|
}
|
|
4056
|
-
function
|
|
4099
|
+
function fo(e) {
|
|
4057
4100
|
throw e;
|
|
4058
4101
|
}
|
|
4059
|
-
var
|
|
4102
|
+
var po = {
|
|
4060
4103
|
closed: !0,
|
|
4061
|
-
next:
|
|
4062
|
-
error:
|
|
4063
|
-
complete:
|
|
4064
|
-
},
|
|
4104
|
+
next: zt,
|
|
4105
|
+
error: fo,
|
|
4106
|
+
complete: zt
|
|
4107
|
+
}, mo = function() {
|
|
4065
4108
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4066
4109
|
}();
|
|
4067
|
-
function
|
|
4110
|
+
function bo(e) {
|
|
4068
4111
|
return e;
|
|
4069
4112
|
}
|
|
4070
|
-
function
|
|
4071
|
-
return e.length === 0 ?
|
|
4113
|
+
function go(e) {
|
|
4114
|
+
return e.length === 0 ? bo : e.length === 1 ? e[0] : function(r) {
|
|
4072
4115
|
return e.reduce(function(n, i) {
|
|
4073
4116
|
return i(n);
|
|
4074
4117
|
}, r);
|
|
4075
4118
|
};
|
|
4076
4119
|
}
|
|
4077
|
-
var
|
|
4120
|
+
var Zt = function() {
|
|
4078
4121
|
function e(t) {
|
|
4079
4122
|
t && (this._subscribe = t);
|
|
4080
4123
|
}
|
|
@@ -4082,7 +4125,7 @@ var kt = function() {
|
|
|
4082
4125
|
var r = new e();
|
|
4083
4126
|
return r.source = this, r.operator = t, r;
|
|
4084
4127
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4085
|
-
var i = this, o =
|
|
4128
|
+
var i = this, o = vo(t) ? t : new bt(t, r, n);
|
|
4086
4129
|
return Ne(function() {
|
|
4087
4130
|
var s = i, a = s.operator, l = s.source;
|
|
4088
4131
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4095,8 +4138,8 @@ var kt = function() {
|
|
|
4095
4138
|
}
|
|
4096
4139
|
}, e.prototype.forEach = function(t, r) {
|
|
4097
4140
|
var n = this;
|
|
4098
|
-
return r =
|
|
4099
|
-
var s = new
|
|
4141
|
+
return r = Qt(r), new r(function(i, o) {
|
|
4142
|
+
var s = new bt({
|
|
4100
4143
|
next: function(a) {
|
|
4101
4144
|
try {
|
|
4102
4145
|
t(a);
|
|
@@ -4112,15 +4155,15 @@ var kt = function() {
|
|
|
4112
4155
|
}, e.prototype._subscribe = function(t) {
|
|
4113
4156
|
var r;
|
|
4114
4157
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4115
|
-
}, e.prototype[
|
|
4158
|
+
}, e.prototype[mo] = function() {
|
|
4116
4159
|
return this;
|
|
4117
4160
|
}, e.prototype.pipe = function() {
|
|
4118
4161
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4119
4162
|
t[r] = arguments[r];
|
|
4120
|
-
return
|
|
4163
|
+
return go(t)(this);
|
|
4121
4164
|
}, e.prototype.toPromise = function(t) {
|
|
4122
4165
|
var r = this;
|
|
4123
|
-
return t =
|
|
4166
|
+
return t = Qt(t), new t(function(n, i) {
|
|
4124
4167
|
var o;
|
|
4125
4168
|
r.subscribe(function(s) {
|
|
4126
4169
|
return o = s;
|
|
@@ -4134,32 +4177,32 @@ var kt = function() {
|
|
|
4134
4177
|
return new e(t);
|
|
4135
4178
|
}, e;
|
|
4136
4179
|
}();
|
|
4137
|
-
function
|
|
4180
|
+
function Qt(e) {
|
|
4138
4181
|
var t;
|
|
4139
|
-
return (t = e != null ? e :
|
|
4182
|
+
return (t = e != null ? e : uo.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4140
4183
|
}
|
|
4141
|
-
function
|
|
4142
|
-
return e &&
|
|
4184
|
+
function yo(e) {
|
|
4185
|
+
return e && X(e.next) && X(e.error) && X(e.complete);
|
|
4143
4186
|
}
|
|
4144
|
-
function
|
|
4145
|
-
return e && e instanceof
|
|
4187
|
+
function vo(e) {
|
|
4188
|
+
return e && e instanceof $r || yo(e) && Nr(e);
|
|
4146
4189
|
}
|
|
4147
|
-
var
|
|
4190
|
+
var _o = Ir(function(e) {
|
|
4148
4191
|
return function() {
|
|
4149
4192
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4150
4193
|
};
|
|
4151
|
-
}),
|
|
4152
|
-
|
|
4194
|
+
}), Rr = function(e) {
|
|
4195
|
+
xe(t, e);
|
|
4153
4196
|
function t() {
|
|
4154
4197
|
var r = e.call(this) || this;
|
|
4155
4198
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4156
4199
|
}
|
|
4157
4200
|
return t.prototype.lift = function(r) {
|
|
4158
|
-
var n = new
|
|
4201
|
+
var n = new Yt(this, this);
|
|
4159
4202
|
return n.operator = r, n;
|
|
4160
4203
|
}, t.prototype._throwIfClosed = function() {
|
|
4161
4204
|
if (this.closed)
|
|
4162
|
-
throw new
|
|
4205
|
+
throw new _o();
|
|
4163
4206
|
}, t.prototype.next = function(r) {
|
|
4164
4207
|
var n = this;
|
|
4165
4208
|
Ne(function() {
|
|
@@ -4167,7 +4210,7 @@ var po = Ar(function(e) {
|
|
|
4167
4210
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4168
4211
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4169
4212
|
try {
|
|
4170
|
-
for (var s =
|
|
4213
|
+
for (var s = ft(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4171
4214
|
var l = a.value;
|
|
4172
4215
|
l.next(r);
|
|
4173
4216
|
}
|
|
@@ -4216,20 +4259,20 @@ var po = Ar(function(e) {
|
|
|
4216
4259
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4217
4260
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4218
4261
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4219
|
-
return o || s ?
|
|
4220
|
-
n.currentObservers = null,
|
|
4262
|
+
return o || s ? Lr : (this.currentObservers = null, a.push(r), new Xe(function() {
|
|
4263
|
+
n.currentObservers = null, dt(a, r);
|
|
4221
4264
|
}));
|
|
4222
4265
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4223
4266
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
4224
4267
|
i ? r.error(o) : s && r.complete();
|
|
4225
4268
|
}, t.prototype.asObservable = function() {
|
|
4226
|
-
var r = new
|
|
4269
|
+
var r = new Zt();
|
|
4227
4270
|
return r.source = this, r;
|
|
4228
4271
|
}, t.create = function(r, n) {
|
|
4229
|
-
return new
|
|
4272
|
+
return new Yt(r, n);
|
|
4230
4273
|
}, t;
|
|
4231
|
-
}(
|
|
4232
|
-
|
|
4274
|
+
}(Zt), Yt = function(e) {
|
|
4275
|
+
xe(t, e);
|
|
4233
4276
|
function t(r, n) {
|
|
4234
4277
|
var i = e.call(this) || this;
|
|
4235
4278
|
return i.destination = r, i.source = n, i;
|
|
@@ -4245,17 +4288,17 @@ var po = Ar(function(e) {
|
|
|
4245
4288
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
4246
4289
|
}, t.prototype._subscribe = function(r) {
|
|
4247
4290
|
var n, i;
|
|
4248
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
4291
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Lr;
|
|
4249
4292
|
}, t;
|
|
4250
|
-
}(
|
|
4293
|
+
}(Rr), Dr = {
|
|
4251
4294
|
now: function() {
|
|
4252
|
-
return (
|
|
4295
|
+
return (Dr.delegate || Date).now();
|
|
4253
4296
|
},
|
|
4254
4297
|
delegate: void 0
|
|
4255
|
-
},
|
|
4256
|
-
|
|
4298
|
+
}, Eo = function(e) {
|
|
4299
|
+
xe(t, e);
|
|
4257
4300
|
function t(r, n, i) {
|
|
4258
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
4301
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dr);
|
|
4259
4302
|
var o = e.call(this) || this;
|
|
4260
4303
|
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;
|
|
4261
4304
|
}
|
|
@@ -4275,25 +4318,25 @@ var po = Ar(function(e) {
|
|
|
4275
4318
|
u && o.splice(0, u + 1);
|
|
4276
4319
|
}
|
|
4277
4320
|
}, t;
|
|
4278
|
-
}(
|
|
4279
|
-
const
|
|
4280
|
-
if (
|
|
4281
|
-
const r = new
|
|
4282
|
-
|
|
4321
|
+
}(Rr);
|
|
4322
|
+
const Jt = [], qt = {}, xo = (e, t = 0) => {
|
|
4323
|
+
if (Jt.indexOf(e) == -1) {
|
|
4324
|
+
const r = new Eo(t);
|
|
4325
|
+
qt[e] = r, Jt.push(e);
|
|
4283
4326
|
}
|
|
4284
|
-
return
|
|
4327
|
+
return qt[e];
|
|
4285
4328
|
};
|
|
4286
|
-
let
|
|
4287
|
-
const
|
|
4288
|
-
|
|
4289
|
-
},
|
|
4290
|
-
if (!
|
|
4291
|
-
return new Intl.NumberFormat(
|
|
4292
|
-
const n = new Intl.NumberFormat(
|
|
4293
|
-
return
|
|
4329
|
+
let gt = "en-UK", yt = "true", de = 2, vt = "";
|
|
4330
|
+
const So = (e, t, r, n) => {
|
|
4331
|
+
gt = e || "en-UK", yt = t || "true", de = +n || 2, vt = r || "";
|
|
4332
|
+
}, Be = (e, t) => {
|
|
4333
|
+
if (!vt)
|
|
4334
|
+
return new Intl.NumberFormat(gt, { style: "currency", currency: t, currencyDisplay: yt === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).format(e);
|
|
4335
|
+
const n = new Intl.NumberFormat(gt, { style: "currency", currency: t, currencyDisplay: yt === "true" ? "symbol" : "code", maximumFractionDigits: de, minimumFractionDigits: de }).formatToParts(e), i = n.find((l) => l.type === "currency"), s = n.filter((l) => l.type !== "currency").map((l) => l.value).join("");
|
|
4336
|
+
return vt === "before" ? `${i.value} ${s}` : `${s} ${i.value}`;
|
|
4294
4337
|
};
|
|
4295
|
-
window.emWidgets = { topic:
|
|
4296
|
-
const
|
|
4338
|
+
window.emWidgets = { topic: xo };
|
|
4339
|
+
const Kt = {
|
|
4297
4340
|
en: {
|
|
4298
4341
|
generalMin: "Min",
|
|
4299
4342
|
generalMax: "Max",
|
|
@@ -4325,18 +4368,18 @@ const Zt = {
|
|
|
4325
4368
|
generalMax: "Max"
|
|
4326
4369
|
}
|
|
4327
4370
|
};
|
|
4328
|
-
function
|
|
4329
|
-
|
|
4371
|
+
function To(e) {
|
|
4372
|
+
Wr(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)}');
|
|
4330
4373
|
}
|
|
4331
|
-
function
|
|
4374
|
+
function er(e, t, r) {
|
|
4332
4375
|
const n = e.slice();
|
|
4333
4376
|
return n[32] = t[r], n[34] = r, n;
|
|
4334
4377
|
}
|
|
4335
|
-
function
|
|
4378
|
+
function tr(e, t, r) {
|
|
4336
4379
|
const n = e.slice();
|
|
4337
4380
|
return n[35] = t[r], n[34] = r, n;
|
|
4338
4381
|
}
|
|
4339
|
-
function
|
|
4382
|
+
function wo(e) {
|
|
4340
4383
|
let t, r = (
|
|
4341
4384
|
/*$_*/
|
|
4342
4385
|
e[4]("noPaymentMethods") + ""
|
|
@@ -4346,68 +4389,68 @@ function _o(e) {
|
|
|
4346
4389
|
t = P("p"), n = R(r);
|
|
4347
4390
|
},
|
|
4348
4391
|
m(i, o) {
|
|
4349
|
-
F(i, t, o),
|
|
4392
|
+
F(i, t, o), S(t, n);
|
|
4350
4393
|
},
|
|
4351
4394
|
p(i, o) {
|
|
4352
4395
|
o[0] & /*$_*/
|
|
4353
4396
|
16 && r !== (r = /*$_*/
|
|
4354
|
-
i[4]("noPaymentMethods") + "") &&
|
|
4397
|
+
i[4]("noPaymentMethods") + "") && V(n, r);
|
|
4355
4398
|
},
|
|
4356
4399
|
d(i) {
|
|
4357
4400
|
i && D(t);
|
|
4358
4401
|
}
|
|
4359
4402
|
};
|
|
4360
4403
|
}
|
|
4361
|
-
function
|
|
4404
|
+
function Ho(e) {
|
|
4362
4405
|
let t, r, n = (
|
|
4363
4406
|
/*$_*/
|
|
4364
4407
|
e[4]("carouselTitle") + ""
|
|
4365
4408
|
), i, o, s, a = (
|
|
4366
4409
|
/*$_*/
|
|
4367
4410
|
e[4]("carouselSubtitle") + ""
|
|
4368
|
-
), l, u, h,
|
|
4411
|
+
), l, u, h, p, c, b, y, g = Pe(
|
|
4369
4412
|
/*promotedPaymentMethods*/
|
|
4370
4413
|
e[2]
|
|
4371
|
-
),
|
|
4414
|
+
), E = [];
|
|
4372
4415
|
for (let f = 0; f < g.length; f += 1)
|
|
4373
|
-
|
|
4416
|
+
E[f] = rr(tr(e, g, f));
|
|
4374
4417
|
let A = Pe(Array(
|
|
4375
4418
|
/*promotedPaymentMethods*/
|
|
4376
4419
|
e[2].length
|
|
4377
|
-
)),
|
|
4420
|
+
)), x = [];
|
|
4378
4421
|
for (let f = 0; f < A.length; f += 1)
|
|
4379
|
-
|
|
4422
|
+
x[f] = nr(er(e, A, f));
|
|
4380
4423
|
return {
|
|
4381
4424
|
c() {
|
|
4382
|
-
t = P("div"), r = P("h4"), i = R(n), o =
|
|
4383
|
-
for (let f = 0; f < x.length; f += 1)
|
|
4384
|
-
x[f].c();
|
|
4385
|
-
m = j(), c = P("div");
|
|
4425
|
+
t = P("div"), r = P("h4"), i = R(n), o = k(), s = P("p"), l = R(a), u = k(), h = P("div");
|
|
4386
4426
|
for (let f = 0; f < E.length; f += 1)
|
|
4387
4427
|
E[f].c();
|
|
4388
|
-
|
|
4428
|
+
p = k(), c = P("div");
|
|
4429
|
+
for (let f = 0; f < x.length; f += 1)
|
|
4430
|
+
x[f].c();
|
|
4431
|
+
O(t, "class", "CarouselHeader"), O(h, "class", "Carousel"), O(c, "class", "VisualDotIndicator");
|
|
4389
4432
|
},
|
|
4390
|
-
m(f,
|
|
4391
|
-
F(f, t,
|
|
4392
|
-
for (let d = 0; d < x.length; d += 1)
|
|
4393
|
-
x[d] && x[d].m(h, null);
|
|
4394
|
-
e[19](h), F(f, m, w), F(f, c, w);
|
|
4433
|
+
m(f, T) {
|
|
4434
|
+
F(f, t, T), S(t, r), S(r, i), S(t, o), S(t, s), S(s, l), F(f, u, T), F(f, h, T);
|
|
4395
4435
|
for (let d = 0; d < E.length; d += 1)
|
|
4396
|
-
E[d] && E[d].m(
|
|
4436
|
+
E[d] && E[d].m(h, null);
|
|
4437
|
+
e[19](h), F(f, p, T), F(f, c, T);
|
|
4438
|
+
for (let d = 0; d < x.length; d += 1)
|
|
4439
|
+
x[d] && x[d].m(c, null);
|
|
4397
4440
|
b || (y = [
|
|
4398
|
-
|
|
4441
|
+
Me(
|
|
4399
4442
|
h,
|
|
4400
4443
|
"touchstart",
|
|
4401
4444
|
/*handleTouchStart*/
|
|
4402
4445
|
e[6]
|
|
4403
4446
|
),
|
|
4404
|
-
|
|
4447
|
+
Me(
|
|
4405
4448
|
h,
|
|
4406
4449
|
"touchmove",
|
|
4407
4450
|
/*handleTouchMove*/
|
|
4408
4451
|
e[7]
|
|
4409
4452
|
),
|
|
4410
|
-
|
|
4453
|
+
Me(
|
|
4411
4454
|
h,
|
|
4412
4455
|
"touchend",
|
|
4413
4456
|
/*handleTouchEnd*/
|
|
@@ -4415,12 +4458,12 @@ function xo(e) {
|
|
|
4415
4458
|
)
|
|
4416
4459
|
], b = !0);
|
|
4417
4460
|
},
|
|
4418
|
-
p(f,
|
|
4419
|
-
if (
|
|
4461
|
+
p(f, T) {
|
|
4462
|
+
if (T[0] & /*$_*/
|
|
4420
4463
|
16 && n !== (n = /*$_*/
|
|
4421
|
-
f[4]("carouselTitle") + "") &&
|
|
4464
|
+
f[4]("carouselTitle") + "") && V(i, n), T[0] & /*$_*/
|
|
4422
4465
|
16 && a !== (a = /*$_*/
|
|
4423
|
-
f[4]("carouselSubtitle") + "") &&
|
|
4466
|
+
f[4]("carouselSubtitle") + "") && V(l, a), T[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, $_*/
|
|
4424
4467
|
60) {
|
|
4425
4468
|
g = Pe(
|
|
4426
4469
|
/*promotedPaymentMethods*/
|
|
@@ -4428,14 +4471,14 @@ function xo(e) {
|
|
|
4428
4471
|
);
|
|
4429
4472
|
let d;
|
|
4430
4473
|
for (d = 0; d < g.length; d += 1) {
|
|
4431
|
-
const
|
|
4432
|
-
|
|
4474
|
+
const B = tr(f, g, d);
|
|
4475
|
+
E[d] ? E[d].p(B, T) : (E[d] = rr(B), E[d].c(), E[d].m(h, null));
|
|
4433
4476
|
}
|
|
4434
|
-
for (; d <
|
|
4435
|
-
|
|
4436
|
-
|
|
4477
|
+
for (; d < E.length; d += 1)
|
|
4478
|
+
E[d].d(1);
|
|
4479
|
+
E.length = g.length;
|
|
4437
4480
|
}
|
|
4438
|
-
if (
|
|
4481
|
+
if (T[0] & /*activeIndex, promotedPaymentMethods*/
|
|
4439
4482
|
12) {
|
|
4440
4483
|
A = Pe(Array(
|
|
4441
4484
|
/*promotedPaymentMethods*/
|
|
@@ -4443,32 +4486,32 @@ function xo(e) {
|
|
|
4443
4486
|
));
|
|
4444
4487
|
let d;
|
|
4445
4488
|
for (d = 0; d < A.length; d += 1) {
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4489
|
+
const B = er(f, A, d);
|
|
4490
|
+
x[d] ? x[d].p(B, T) : (x[d] = nr(B), x[d].c(), x[d].m(c, null));
|
|
4448
4491
|
}
|
|
4449
|
-
for (; d <
|
|
4450
|
-
|
|
4451
|
-
|
|
4492
|
+
for (; d < x.length; d += 1)
|
|
4493
|
+
x[d].d(1);
|
|
4494
|
+
x.length = A.length;
|
|
4452
4495
|
}
|
|
4453
4496
|
},
|
|
4454
4497
|
d(f) {
|
|
4455
|
-
f && (D(t), D(u), D(h), D(
|
|
4498
|
+
f && (D(t), D(u), D(h), D(p), D(c)), Ot(E, f), e[19](null), Ot(x, f), b = !1, ue(y);
|
|
4456
4499
|
}
|
|
4457
4500
|
};
|
|
4458
4501
|
}
|
|
4459
|
-
function
|
|
4502
|
+
function rr(e) {
|
|
4460
4503
|
let t, r, n, i, o, s, a, l, u, h = (
|
|
4461
4504
|
/*method*/
|
|
4462
4505
|
(e[35].Label || /*method*/
|
|
4463
4506
|
e[35].Name) + ""
|
|
4464
|
-
),
|
|
4507
|
+
), p, c, b, y, g = (
|
|
4465
4508
|
/*$_*/
|
|
4466
4509
|
e[4](`${/*method*/
|
|
4467
4510
|
e[35].ProcessingTime}`) + ""
|
|
4468
|
-
),
|
|
4511
|
+
), E, A, x, f, T = (
|
|
4469
4512
|
/*$_*/
|
|
4470
4513
|
e[4]("generalMin") + ""
|
|
4471
|
-
), d,
|
|
4514
|
+
), d, B, G = Be(
|
|
4472
4515
|
/*method*/
|
|
4473
4516
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4474
4517
|
/*method*/
|
|
@@ -4476,12 +4519,12 @@ function Jt(e) {
|
|
|
4476
4519
|
) + "", Z, Se, Y = (
|
|
4477
4520
|
/*$_*/
|
|
4478
4521
|
e[4]("generalMax") + ""
|
|
4479
|
-
),
|
|
4522
|
+
), ce, Te, J = Be(
|
|
4480
4523
|
/*method*/
|
|
4481
4524
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4482
4525
|
/*method*/
|
|
4483
4526
|
e[35].DisplayCurrency.Name
|
|
4484
|
-
) + "",
|
|
4527
|
+
) + "", fe, we, m, M, N;
|
|
4485
4528
|
function q() {
|
|
4486
4529
|
return (
|
|
4487
4530
|
/*click_handler*/
|
|
@@ -4493,57 +4536,57 @@ function Jt(e) {
|
|
|
4493
4536
|
}
|
|
4494
4537
|
return {
|
|
4495
4538
|
c() {
|
|
4496
|
-
t = P("div"), r = P("div"), n = P("img"), s =
|
|
4497
|
-
e[35].LogoUrl) ||
|
|
4498
|
-
e[35].Label),
|
|
4539
|
+
t = P("div"), r = P("div"), n = P("img"), s = k(), a = P("div"), l = P("div"), u = P("span"), p = R(h), c = k(), b = P("div"), y = P("span"), E = R(g), A = k(), x = P("div"), f = P("span"), d = R(T), B = k(), Z = R(G), Se = R(" / "), ce = R(Y), Te = k(), fe = R(J), we = k(), At(n.src, i = /*method*/
|
|
4540
|
+
e[35].LogoUrl) || O(n, "src", i), O(n, "alt", o = /*method*/
|
|
4541
|
+
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*/
|
|
4499
4542
|
e[34] === /*activeIndex*/
|
|
4500
4543
|
e[3] ? "active" : ""}`);
|
|
4501
4544
|
},
|
|
4502
4545
|
m(K, I) {
|
|
4503
|
-
F(K, t, I),
|
|
4546
|
+
F(K, 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, Se), S(f, ce), S(f, Te), S(f, fe), S(t, we), M || (N = Me(t, "click", q), M = !0);
|
|
4504
4547
|
},
|
|
4505
4548
|
p(K, I) {
|
|
4506
4549
|
e = K, I[0] & /*promotedPaymentMethods*/
|
|
4507
|
-
4 && !
|
|
4508
|
-
e[35].LogoUrl) &&
|
|
4550
|
+
4 && !At(n.src, i = /*method*/
|
|
4551
|
+
e[35].LogoUrl) && O(n, "src", i), I[0] & /*promotedPaymentMethods*/
|
|
4509
4552
|
4 && o !== (o = /*method*/
|
|
4510
|
-
e[35].Label) &&
|
|
4553
|
+
e[35].Label) && O(n, "alt", o), I[0] & /*promotedPaymentMethods*/
|
|
4511
4554
|
4 && h !== (h = /*method*/
|
|
4512
4555
|
(e[35].Label || /*method*/
|
|
4513
|
-
e[35].Name) + "") &&
|
|
4556
|
+
e[35].Name) + "") && V(p, h), I[0] & /*$_, promotedPaymentMethods*/
|
|
4514
4557
|
20 && g !== (g = /*$_*/
|
|
4515
4558
|
e[4](`${/*method*/
|
|
4516
|
-
e[35].ProcessingTime}`) + "") &&
|
|
4517
|
-
16 &&
|
|
4518
|
-
e[4]("generalMin") + "") &&
|
|
4519
|
-
4 && G !== (G =
|
|
4559
|
+
e[35].ProcessingTime}`) + "") && V(E, g), I[0] & /*$_*/
|
|
4560
|
+
16 && T !== (T = /*$_*/
|
|
4561
|
+
e[4]("generalMin") + "") && V(d, T), I[0] & /*promotedPaymentMethods*/
|
|
4562
|
+
4 && G !== (G = Be(
|
|
4520
4563
|
/*method*/
|
|
4521
4564
|
e[35].DisplayCurrency.MinAmountLimit,
|
|
4522
4565
|
/*method*/
|
|
4523
4566
|
e[35].DisplayCurrency.Name
|
|
4524
|
-
) + "") &&
|
|
4567
|
+
) + "") && V(Z, G), I[0] & /*$_*/
|
|
4525
4568
|
16 && Y !== (Y = /*$_*/
|
|
4526
|
-
e[4]("generalMax") + "") &&
|
|
4527
|
-
4 && J !== (J =
|
|
4569
|
+
e[4]("generalMax") + "") && V(ce, Y), I[0] & /*promotedPaymentMethods*/
|
|
4570
|
+
4 && J !== (J = Be(
|
|
4528
4571
|
/*method*/
|
|
4529
4572
|
e[35].DisplayCurrency.MaxAmountLimit,
|
|
4530
4573
|
/*method*/
|
|
4531
4574
|
e[35].DisplayCurrency.Name
|
|
4532
|
-
) + "") &&
|
|
4533
|
-
8 &&
|
|
4575
|
+
) + "") && V(fe, J), I[0] & /*activeIndex*/
|
|
4576
|
+
8 && m !== (m = `CarouselCardWrapper ${/*index*/
|
|
4534
4577
|
e[34] === /*activeIndex*/
|
|
4535
|
-
e[3] ? "active" : ""}`) &&
|
|
4578
|
+
e[3] ? "active" : ""}`) && O(t, "class", m);
|
|
4536
4579
|
},
|
|
4537
4580
|
d(K) {
|
|
4538
|
-
K && D(t),
|
|
4581
|
+
K && D(t), M = !1, N();
|
|
4539
4582
|
}
|
|
4540
4583
|
};
|
|
4541
4584
|
}
|
|
4542
|
-
function
|
|
4585
|
+
function nr(e) {
|
|
4543
4586
|
let t, r;
|
|
4544
4587
|
return {
|
|
4545
4588
|
c() {
|
|
4546
|
-
t = P("div"),
|
|
4589
|
+
t = P("div"), O(t, "class", r = `Dot ${/*index*/
|
|
4547
4590
|
e[34] === /*activeIndex*/
|
|
4548
4591
|
e[3] ? "active" : ""}`);
|
|
4549
4592
|
},
|
|
@@ -4554,28 +4597,28 @@ function qt(e) {
|
|
|
4554
4597
|
i[0] & /*activeIndex*/
|
|
4555
4598
|
8 && r !== (r = `Dot ${/*index*/
|
|
4556
4599
|
n[34] === /*activeIndex*/
|
|
4557
|
-
n[3] ? "active" : ""}`) &&
|
|
4600
|
+
n[3] ? "active" : ""}`) && O(t, "class", r);
|
|
4558
4601
|
},
|
|
4559
4602
|
d(n) {
|
|
4560
4603
|
n && D(t);
|
|
4561
4604
|
}
|
|
4562
4605
|
};
|
|
4563
4606
|
}
|
|
4564
|
-
function
|
|
4607
|
+
function Po(e) {
|
|
4565
4608
|
let t, r;
|
|
4566
4609
|
function n(s, a) {
|
|
4567
4610
|
return (
|
|
4568
4611
|
/*promotedPaymentMethods*/
|
|
4569
|
-
s[2].length > 0 ?
|
|
4612
|
+
s[2].length > 0 ? Ho : wo
|
|
4570
4613
|
);
|
|
4571
4614
|
}
|
|
4572
4615
|
let i = n(e), o = i(e);
|
|
4573
4616
|
return {
|
|
4574
4617
|
c() {
|
|
4575
|
-
t = P("div"), r = P("div"), o.c(),
|
|
4618
|
+
t = P("div"), r = P("div"), o.c(), O(r, "class", "CashierCarouselWarpper");
|
|
4576
4619
|
},
|
|
4577
4620
|
m(s, a) {
|
|
4578
|
-
F(s, t, a),
|
|
4621
|
+
F(s, t, a), S(t, r), o.m(r, null), e[20](t);
|
|
4579
4622
|
},
|
|
4580
4623
|
p(s, a) {
|
|
4581
4624
|
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(r, null)));
|
|
@@ -4587,33 +4630,33 @@ function Eo(e) {
|
|
|
4587
4630
|
}
|
|
4588
4631
|
};
|
|
4589
4632
|
}
|
|
4590
|
-
function
|
|
4633
|
+
function Ao(e, t, r) {
|
|
4591
4634
|
let n;
|
|
4592
|
-
|
|
4593
|
-
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:
|
|
4594
|
-
const
|
|
4595
|
-
|
|
4635
|
+
Xr(e, no, (m) => r(4, n = m));
|
|
4636
|
+
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;
|
|
4637
|
+
const T = (m) => {
|
|
4638
|
+
m.data && m.data.type === "PromotedPaymentMethods" && (r(2, y = m.data.promotedPaymentMethods), r(3, g = Math.floor(y.length / 2)));
|
|
4596
4639
|
};
|
|
4597
|
-
Object.keys(
|
|
4598
|
-
|
|
4640
|
+
Object.keys(Kt).forEach((m) => {
|
|
4641
|
+
Xt(m, Kt[m]);
|
|
4599
4642
|
});
|
|
4600
4643
|
const d = () => {
|
|
4601
|
-
let
|
|
4602
|
-
if (
|
|
4603
|
-
return fetch(
|
|
4604
|
-
Object.keys(
|
|
4605
|
-
|
|
4644
|
+
let m = c;
|
|
4645
|
+
if (m)
|
|
4646
|
+
return fetch(m).then((M) => M.json()).then((M) => {
|
|
4647
|
+
Object.keys(M).forEach((N) => {
|
|
4648
|
+
Xt(N, M[N]);
|
|
4606
4649
|
});
|
|
4607
|
-
}).catch((
|
|
4608
|
-
console.log(
|
|
4650
|
+
}).catch((M) => {
|
|
4651
|
+
console.log(M);
|
|
4609
4652
|
});
|
|
4610
|
-
},
|
|
4611
|
-
|
|
4612
|
-
}, G = (
|
|
4613
|
-
|
|
4653
|
+
}, B = () => {
|
|
4654
|
+
io(i);
|
|
4655
|
+
}, G = (m) => {
|
|
4656
|
+
m.Name, window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4614
4657
|
"selectPayMeth",
|
|
4615
4658
|
{
|
|
4616
|
-
detail:
|
|
4659
|
+
detail: m,
|
|
4617
4660
|
bubbles: !0,
|
|
4618
4661
|
cancelable: !0,
|
|
4619
4662
|
composed: !0
|
|
@@ -4622,46 +4665,46 @@ function So(e, t, r) {
|
|
|
4622
4665
|
}, Z = () => {
|
|
4623
4666
|
let q;
|
|
4624
4667
|
return y.length % 2 === 1 ? q = Math.floor(y.length / 2) : q = y.length / 2 - 0.5, `translateX(${(q - g) * 165}px)`;
|
|
4625
|
-
}, Se = (
|
|
4626
|
-
A =
|
|
4627
|
-
}, Y = (
|
|
4628
|
-
if (!
|
|
4668
|
+
}, Se = (m) => {
|
|
4669
|
+
A = m.touches[0].clientX, x = !0, f.classList.add("dragging");
|
|
4670
|
+
}, Y = (m) => {
|
|
4671
|
+
if (!x)
|
|
4629
4672
|
return;
|
|
4630
|
-
const
|
|
4631
|
-
Math.abs(
|
|
4632
|
-
},
|
|
4633
|
-
if (!
|
|
4673
|
+
const M = m.touches[0].clientX;
|
|
4674
|
+
Math.abs(M - A) > 10 && m.preventDefault();
|
|
4675
|
+
}, ce = (m) => {
|
|
4676
|
+
if (!x)
|
|
4634
4677
|
return;
|
|
4635
|
-
|
|
4636
|
-
const
|
|
4678
|
+
x = !1, f.classList.remove("dragging");
|
|
4679
|
+
const M = m.changedTouches[0].clientX, N = A - M;
|
|
4637
4680
|
Math.abs(N) > 50 && (N > 0 && g < y.length - 1 ? r(3, g++, g) : N < 0 && g > 0 && r(3, g--, g), r(1, f.style.transform = Z(), f));
|
|
4638
4681
|
}, Te = () => {
|
|
4639
|
-
|
|
4682
|
+
E && (r(1, f.style.transform = Z(), f), E = !1);
|
|
4640
4683
|
};
|
|
4641
|
-
|
|
4642
|
-
window.removeEventListener("message",
|
|
4684
|
+
qr(() => (So(o, s, a, l), window.addEventListener("message", T), f && Z(), () => {
|
|
4685
|
+
window.removeEventListener("message", T);
|
|
4643
4686
|
}));
|
|
4644
|
-
const J = (
|
|
4645
|
-
function
|
|
4646
|
-
$e[
|
|
4647
|
-
f =
|
|
4687
|
+
const J = (m) => G(m);
|
|
4688
|
+
function fe(m) {
|
|
4689
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4690
|
+
f = m, r(1, f);
|
|
4648
4691
|
});
|
|
4649
4692
|
}
|
|
4650
|
-
function we(
|
|
4651
|
-
$e[
|
|
4652
|
-
b =
|
|
4693
|
+
function we(m) {
|
|
4694
|
+
$e[m ? "unshift" : "push"](() => {
|
|
4695
|
+
b = m, r(0, b);
|
|
4653
4696
|
});
|
|
4654
4697
|
}
|
|
4655
|
-
return e.$$set = (
|
|
4656
|
-
"lang" in
|
|
4698
|
+
return e.$$set = (m) => {
|
|
4699
|
+
"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);
|
|
4657
4700
|
}, e.$$.update = () => {
|
|
4658
4701
|
e.$$.dirty[0] & /*lang*/
|
|
4659
|
-
512 && i &&
|
|
4702
|
+
512 && i && B(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4660
4703
|
131584 && i && c && d(), e.$$.dirty[0] & /*carouselContainer*/
|
|
4661
4704
|
2 && f && Te(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4662
|
-
16385 && u && b &&
|
|
4663
|
-
32769 && h && b &&
|
|
4664
|
-
65537 &&
|
|
4705
|
+
16385 && u && b && oo(b, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4706
|
+
32769 && h && b && so(b, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4707
|
+
65537 && p && b && ao(b, `${p}.Style`);
|
|
4665
4708
|
}, [
|
|
4666
4709
|
b,
|
|
4667
4710
|
f,
|
|
@@ -4671,7 +4714,7 @@ function So(e, t, r) {
|
|
|
4671
4714
|
G,
|
|
4672
4715
|
Se,
|
|
4673
4716
|
Y,
|
|
4674
|
-
|
|
4717
|
+
ce,
|
|
4675
4718
|
i,
|
|
4676
4719
|
o,
|
|
4677
4720
|
s,
|
|
@@ -4679,21 +4722,21 @@ function So(e, t, r) {
|
|
|
4679
4722
|
l,
|
|
4680
4723
|
u,
|
|
4681
4724
|
h,
|
|
4682
|
-
|
|
4725
|
+
p,
|
|
4683
4726
|
c,
|
|
4684
4727
|
J,
|
|
4685
|
-
|
|
4728
|
+
fe,
|
|
4686
4729
|
we
|
|
4687
4730
|
];
|
|
4688
4731
|
}
|
|
4689
|
-
class
|
|
4732
|
+
class Oo extends cn {
|
|
4690
4733
|
constructor(t) {
|
|
4691
|
-
super(),
|
|
4734
|
+
super(), ln(
|
|
4692
4735
|
this,
|
|
4693
4736
|
t,
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4737
|
+
Ao,
|
|
4738
|
+
Po,
|
|
4739
|
+
or,
|
|
4697
4740
|
{
|
|
4698
4741
|
lang: 9,
|
|
4699
4742
|
local: 10,
|
|
@@ -4705,7 +4748,7 @@ class To extends sn {
|
|
|
4705
4748
|
mbsource: 16,
|
|
4706
4749
|
translationurl: 17
|
|
4707
4750
|
},
|
|
4708
|
-
|
|
4751
|
+
To,
|
|
4709
4752
|
[-1, -1]
|
|
4710
4753
|
);
|
|
4711
4754
|
}
|
|
@@ -4764,7 +4807,7 @@ class To extends sn {
|
|
|
4764
4807
|
this.$$set({ translationurl: t }), $();
|
|
4765
4808
|
}
|
|
4766
4809
|
}
|
|
4767
|
-
|
|
4810
|
+
hn(Oo, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4768
4811
|
export {
|
|
4769
|
-
|
|
4812
|
+
Oo as default
|
|
4770
4813
|
};
|