@everymatrix/cashier-methods-list 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierMethodsList-BN4zszLG.cjs +5 -0
- package/components/{CashierMethodsList-CnTOuKY6.js → CashierMethodsList-CI0SC2TH.js} +516 -518
- package/components/{CashierMethodsList-DMB868CW.js → CashierMethodsList-CNSgCuC4.js} +419 -421
- package/es2015/cashier-methods-list.cjs +1 -1
- package/es2015/cashier-methods-list.js +1 -1
- package/esnext/cashier-methods-list.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-BnIjrpWg.cjs +0 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var et = (e, t, r) => t in e ?
|
|
1
|
+
var Nr = Object.defineProperty, Ir = Object.defineProperties;
|
|
2
|
+
var Dr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Mt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Rr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var et = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Re = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Rr.call(t, r) && et(e, r, t[r]);
|
|
8
|
+
if (Mt)
|
|
9
|
+
for (var r of Mt(t))
|
|
10
|
+
Ur.call(t, r) && et(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Ue = (e, t) =>
|
|
12
|
+
}, Ue = (e, t) => Ir(e, Dr(t));
|
|
13
13
|
var ne = (e, t, r) => et(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var
|
|
14
|
+
var Tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -29,29 +29,29 @@ var Lt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function se() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ht() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function He(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(tr);
|
|
40
40
|
}
|
|
41
41
|
function xt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function rr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let Ge;
|
|
48
|
-
function
|
|
48
|
+
function Lt(e, t) {
|
|
49
49
|
return e === t ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = t, e === Ge.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Gr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function sr(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 kr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(nr(t, r));
|
|
65
65
|
}
|
|
66
66
|
function T(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function Fr(e, t, r) {
|
|
70
|
+
const n = jr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = F("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, Vr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function jr(e) {
|
|
77
77
|
if (!e) return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,7 +82,7 @@ function zr(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Vr(e, t) {
|
|
86
86
|
return T(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
@@ -108,7 +108,7 @@ function ee(e) {
|
|
|
108
108
|
function te() {
|
|
109
109
|
return ee(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Xr() {
|
|
112
112
|
return ee("");
|
|
113
113
|
}
|
|
114
114
|
function ut(e, t, r, n) {
|
|
@@ -121,20 +121,20 @@ function Z(e, t, r) {
|
|
|
121
121
|
const n = t.toLowerCase();
|
|
122
122
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function zr(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
127
|
function ie(e, t) {
|
|
128
128
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
129
|
t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function We(e, t, r) {
|
|
132
132
|
e.classList.toggle(t, !!r);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Yr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
135
135
|
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Zr(e) {
|
|
138
138
|
const t = {};
|
|
139
139
|
return e.childNodes.forEach(
|
|
140
140
|
/** @param {Element} node */
|
|
@@ -147,19 +147,19 @@ let Pe;
|
|
|
147
147
|
function Be(e) {
|
|
148
148
|
Pe = e;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ir() {
|
|
151
151
|
if (!Pe) throw new Error("Function called outside component initialization");
|
|
152
152
|
return Pe;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function Jr(e) {
|
|
155
|
+
ir().$$.on_mount.push(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const e =
|
|
157
|
+
function Qr() {
|
|
158
|
+
const e = ir();
|
|
159
159
|
return (t, r, { cancelable: n = !1 } = {}) => {
|
|
160
160
|
const i = e.$$.callbacks[t];
|
|
161
161
|
if (i) {
|
|
162
|
-
const s =
|
|
162
|
+
const s = Yr(
|
|
163
163
|
/** @type {string} */
|
|
164
164
|
t,
|
|
165
165
|
r,
|
|
@@ -174,10 +174,10 @@ function Kr() {
|
|
|
174
174
|
}
|
|
175
175
|
const Ee = [], lt = [];
|
|
176
176
|
let _e = [];
|
|
177
|
-
const
|
|
177
|
+
const At = [], qr = /* @__PURE__ */ Promise.resolve();
|
|
178
178
|
let ht = !1;
|
|
179
|
-
function
|
|
180
|
-
ht || (ht = !0,
|
|
179
|
+
function Kr() {
|
|
180
|
+
ht || (ht = !0, qr.then(q));
|
|
181
181
|
}
|
|
182
182
|
function ft(e) {
|
|
183
183
|
_e.push(e);
|
|
@@ -192,7 +192,7 @@ function q() {
|
|
|
192
192
|
try {
|
|
193
193
|
for (; ve < Ee.length; ) {
|
|
194
194
|
const t = Ee[ve];
|
|
195
|
-
ve++, Be(t),
|
|
195
|
+
ve++, Be(t), en(t.$$);
|
|
196
196
|
}
|
|
197
197
|
} catch (t) {
|
|
198
198
|
throw Ee.length = 0, ve = 0, t;
|
|
@@ -204,43 +204,43 @@ function q() {
|
|
|
204
204
|
}
|
|
205
205
|
_e.length = 0;
|
|
206
206
|
} while (Ee.length);
|
|
207
|
-
for (;
|
|
208
|
-
|
|
207
|
+
for (; At.length; )
|
|
208
|
+
At.pop()();
|
|
209
209
|
ht = !1, tt.clear(), Be(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function en(e) {
|
|
212
212
|
if (e.fragment !== null) {
|
|
213
213
|
e.update(), He(e.before_update);
|
|
214
214
|
const t = e.dirty;
|
|
215
215
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ft);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function tn(e) {
|
|
219
219
|
const t = [], r = [];
|
|
220
220
|
_e.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), _e = t;
|
|
221
221
|
}
|
|
222
|
-
const
|
|
223
|
-
function
|
|
224
|
-
e && e.i && (
|
|
222
|
+
const rn = /* @__PURE__ */ new Set();
|
|
223
|
+
function nn(e, t) {
|
|
224
|
+
e && e.i && (rn.delete(e), e.i(t));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ot(e) {
|
|
227
227
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function sn(e, t, r) {
|
|
230
230
|
const { fragment: n, after_update: i } = e.$$;
|
|
231
231
|
n && n.m(t, r), ft(() => {
|
|
232
|
-
const s = e.$$.on_mount.map(
|
|
232
|
+
const s = e.$$.on_mount.map(tr).filter(xt);
|
|
233
233
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : He(s), e.$$.on_mount = [];
|
|
234
234
|
}), i.forEach(ft);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function on(e, t) {
|
|
237
237
|
const r = e.$$;
|
|
238
|
-
r.fragment !== null && (
|
|
238
|
+
r.fragment !== null && (tn(r.after_update), He(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
e.$$.dirty[0] === -1 && (Ee.push(e),
|
|
240
|
+
function an(e, t) {
|
|
241
|
+
e.$$.dirty[0] === -1 && (Ee.push(e), Kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
244
244
|
const l = Pe;
|
|
245
245
|
Be(e);
|
|
246
246
|
const u = e.$$ = {
|
|
@@ -250,7 +250,7 @@ function hn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
250
250
|
props: s,
|
|
251
251
|
update: se,
|
|
252
252
|
not_equal: i,
|
|
253
|
-
bound:
|
|
253
|
+
bound: Ht(),
|
|
254
254
|
// lifecycle
|
|
255
255
|
on_mount: [],
|
|
256
256
|
on_destroy: [],
|
|
@@ -259,7 +259,7 @@ function hn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
259
259
|
after_update: [],
|
|
260
260
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
261
261
|
// everything else
|
|
262
|
-
callbacks:
|
|
262
|
+
callbacks: Ht(),
|
|
263
263
|
dirty: a,
|
|
264
264
|
skip_bound: !1,
|
|
265
265
|
root: t.target || l.$$.root
|
|
@@ -268,19 +268,19 @@ function hn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
268
268
|
let h = !1;
|
|
269
269
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...x) => {
|
|
270
270
|
const w = x.length ? x[0] : c;
|
|
271
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = w) && (!u.skip_bound && u.bound[f] && u.bound[f](w), h &&
|
|
271
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = w) && (!u.skip_bound && u.bound[f] && u.bound[f](w), h && an(e, f)), c;
|
|
272
272
|
}) : [], u.update(), h = !0, He(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
273
273
|
if (t.hydrate) {
|
|
274
|
-
const f =
|
|
274
|
+
const f = zr(t.target);
|
|
275
275
|
u.fragment && u.fragment.l(f), f.forEach(oe);
|
|
276
276
|
} else
|
|
277
277
|
u.fragment && u.fragment.c();
|
|
278
|
-
t.intro &&
|
|
278
|
+
t.intro && nn(e.$$.fragment), sn(e, t.target, t.anchor), q();
|
|
279
279
|
}
|
|
280
280
|
Be(l);
|
|
281
281
|
}
|
|
282
|
-
let
|
|
283
|
-
typeof HTMLElement == "function" && (
|
|
282
|
+
let sr;
|
|
283
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
284
284
|
constructor(t, r, n) {
|
|
285
285
|
super();
|
|
286
286
|
/** The Svelte component constructor */
|
|
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
connectedCallback() {
|
|
320
|
-
return
|
|
320
|
+
return Tt(this, null, function* () {
|
|
321
321
|
if (this.$$cn = !0, !this.$$c) {
|
|
322
322
|
let t = function(s) {
|
|
323
323
|
return () => {
|
|
@@ -341,7 +341,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
|
341
341
|
};
|
|
342
342
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
343
343
|
return;
|
|
344
|
-
const r = {}, n =
|
|
344
|
+
const r = {}, n = Zr(this);
|
|
345
345
|
for (const s of this.$$s)
|
|
346
346
|
s in n && (r[s] = [t(s)]);
|
|
347
347
|
for (const s of this.attributes) {
|
|
@@ -430,8 +430,8 @@ function Fe(e, t, r, n) {
|
|
|
430
430
|
return t;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
let o = class extends
|
|
433
|
+
function ln(e, t, r, n, i, s) {
|
|
434
|
+
let o = class extends sr {
|
|
435
435
|
constructor() {
|
|
436
436
|
super(e, r, i), this.$$p_d = t;
|
|
437
437
|
}
|
|
@@ -461,7 +461,7 @@ function fn(e, t, r, n, i, s) {
|
|
|
461
461
|
}), e.element = /** @type {any} */
|
|
462
462
|
o, o;
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class hn {
|
|
465
465
|
constructor() {
|
|
466
466
|
/**
|
|
467
467
|
* ### PRIVATE API
|
|
@@ -482,7 +482,7 @@ class cn {
|
|
|
482
482
|
}
|
|
483
483
|
/** @returns {void} */
|
|
484
484
|
$destroy() {
|
|
485
|
-
|
|
485
|
+
on(this, 1), this.$destroy = se;
|
|
486
486
|
}
|
|
487
487
|
/**
|
|
488
488
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -504,13 +504,13 @@ class cn {
|
|
|
504
504
|
* @returns {void}
|
|
505
505
|
*/
|
|
506
506
|
$set(t) {
|
|
507
|
-
this.$$set && !
|
|
507
|
+
this.$$set && !Gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
const
|
|
511
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
510
|
+
const fn = "4";
|
|
511
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
|
|
512
512
|
const xe = [];
|
|
513
|
-
function
|
|
513
|
+
function cn(e, t) {
|
|
514
514
|
return {
|
|
515
515
|
subscribe: Ze(e, t).subscribe
|
|
516
516
|
};
|
|
@@ -519,7 +519,7 @@ function Ze(e, t = se) {
|
|
|
519
519
|
let r;
|
|
520
520
|
const n = /* @__PURE__ */ new Set();
|
|
521
521
|
function i(a) {
|
|
522
|
-
if (
|
|
522
|
+
if (rr(e, a) && (e = a, r)) {
|
|
523
523
|
const l = !xe.length;
|
|
524
524
|
for (const u of n)
|
|
525
525
|
u[1](), xe.push(u, e);
|
|
@@ -546,7 +546,7 @@ function Le(e, t, r) {
|
|
|
546
546
|
if (!i.every(Boolean))
|
|
547
547
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
548
548
|
const s = t.length < 2;
|
|
549
|
-
return
|
|
549
|
+
return cn(r, (o, a) => {
|
|
550
550
|
let l = !1;
|
|
551
551
|
const u = [];
|
|
552
552
|
let h = 0, f = se;
|
|
@@ -557,7 +557,7 @@ function Le(e, t, r) {
|
|
|
557
557
|
const w = t(n ? u[0] : u, o, a);
|
|
558
558
|
s ? o(w) : f = xt(w) ? w : se;
|
|
559
559
|
}, x = i.map(
|
|
560
|
-
(w, b) =>
|
|
560
|
+
(w, b) => nr(
|
|
561
561
|
w,
|
|
562
562
|
(S) => {
|
|
563
563
|
u[b] = S, h &= ~(1 << b), l && c();
|
|
@@ -572,71 +572,71 @@ function Le(e, t, r) {
|
|
|
572
572
|
};
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
-
var
|
|
575
|
+
var or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
576
576
|
function Et(e) {
|
|
577
577
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
return
|
|
579
|
+
var mn = function(t) {
|
|
580
|
+
return dn(t) && !gn(t);
|
|
581
581
|
};
|
|
582
|
-
function
|
|
582
|
+
function dn(e) {
|
|
583
583
|
return !!e && typeof e == "object";
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function gn(e) {
|
|
586
586
|
var t = Object.prototype.toString.call(e);
|
|
587
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
587
|
+
return t === "[object RegExp]" || t === "[object Date]" || yn(e);
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
591
|
-
return e.$$typeof ===
|
|
589
|
+
var pn = typeof Symbol == "function" && Symbol.for, bn = pn ? Symbol.for("react.element") : 60103;
|
|
590
|
+
function yn(e) {
|
|
591
|
+
return e.$$typeof === bn;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function vn(e) {
|
|
594
594
|
return Array.isArray(e) ? [] : {};
|
|
595
595
|
}
|
|
596
596
|
function Ce(e, t) {
|
|
597
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? we(
|
|
597
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(vn(e), e, t) : e;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function xn(e, t, r) {
|
|
600
600
|
return e.concat(t).map(function(n) {
|
|
601
601
|
return Ce(n, r);
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function En(e, t) {
|
|
605
605
|
if (!t.customMerge)
|
|
606
606
|
return we;
|
|
607
607
|
var r = t.customMerge(e);
|
|
608
608
|
return typeof r == "function" ? r : we;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function _n(e) {
|
|
611
611
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
612
612
|
return Object.propertyIsEnumerable.call(e, t);
|
|
613
613
|
}) : [];
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
return Object.keys(e).concat(
|
|
615
|
+
function $t(e) {
|
|
616
|
+
return Object.keys(e).concat(_n(e));
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function ar(e, t) {
|
|
619
619
|
try {
|
|
620
620
|
return t in e;
|
|
621
621
|
} catch (r) {
|
|
622
622
|
return !1;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function wn(e, t) {
|
|
626
|
+
return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Sn(e, t, r) {
|
|
629
629
|
var n = {};
|
|
630
|
-
return r.isMergeableObject(e) &&
|
|
630
|
+
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
|
631
631
|
n[i] = Ce(e[i], r);
|
|
632
|
-
}),
|
|
633
|
-
|
|
632
|
+
}), $t(t).forEach(function(i) {
|
|
633
|
+
wn(e, i) || (ar(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = Ce(t[i], r));
|
|
634
634
|
}), n;
|
|
635
635
|
}
|
|
636
636
|
function we(e, t, r) {
|
|
637
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
637
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
638
638
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
639
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
639
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : Ce(t, r);
|
|
640
640
|
}
|
|
641
641
|
we.all = function(t, r) {
|
|
642
642
|
if (!Array.isArray(t))
|
|
@@ -645,8 +645,8 @@ we.all = function(t, r) {
|
|
|
645
645
|
return we(n, i, r);
|
|
646
646
|
}, {});
|
|
647
647
|
};
|
|
648
|
-
var
|
|
649
|
-
const
|
|
648
|
+
var Mn = we, Tn = Mn;
|
|
649
|
+
const Hn = /* @__PURE__ */ Et(Tn);
|
|
650
650
|
var ct = function(e, t) {
|
|
651
651
|
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
652
652
|
r.__proto__ = n;
|
|
@@ -672,7 +672,7 @@ var O = function() {
|
|
|
672
672
|
return t;
|
|
673
673
|
}, O.apply(this, arguments);
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function Ln(e, t) {
|
|
676
676
|
var r = {};
|
|
677
677
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
678
678
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -686,55 +686,53 @@ function rt(e, t, r) {
|
|
|
686
686
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
687
687
|
}
|
|
688
688
|
function nt(e, t) {
|
|
689
|
-
var r = t && t.cache ? t.cache :
|
|
689
|
+
var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : Pn, i = t && t.strategy ? t.strategy : $n;
|
|
690
690
|
return i(e, {
|
|
691
691
|
cache: r,
|
|
692
692
|
serializer: n
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function An(e) {
|
|
696
696
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
var i =
|
|
698
|
+
function On(e, t, r, n) {
|
|
699
|
+
var i = An(n) ? n : r(n), s = t.get(i);
|
|
700
700
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function ur(e, t, r) {
|
|
703
703
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
704
704
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function lr(e, t, r, n, i) {
|
|
707
707
|
return r.bind(t, e, n, i);
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
var r = e.length === 1 ?
|
|
711
|
-
return
|
|
712
|
-
}
|
|
713
|
-
function Pn(e, t) {
|
|
714
|
-
return _t(e, this, fr, t.cache.create(), t.serializer);
|
|
709
|
+
function $n(e, t) {
|
|
710
|
+
var r = e.length === 1 ? On : ur;
|
|
711
|
+
return lr(e, this, r, t.cache.create(), t.serializer);
|
|
715
712
|
}
|
|
716
|
-
function
|
|
717
|
-
return
|
|
713
|
+
function Bn(e, t) {
|
|
714
|
+
return lr(e, this, ur, t.cache.create(), t.serializer);
|
|
718
715
|
}
|
|
719
|
-
var
|
|
716
|
+
var Pn = function() {
|
|
720
717
|
return JSON.stringify(arguments);
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
718
|
+
}, Cn = (
|
|
719
|
+
/** @class */
|
|
720
|
+
function() {
|
|
721
|
+
function e() {
|
|
722
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
723
|
+
}
|
|
724
|
+
return e.prototype.get = function(t) {
|
|
725
|
+
return this.cache[t];
|
|
726
|
+
}, e.prototype.set = function(t, r) {
|
|
727
|
+
this.cache[t] = r;
|
|
728
|
+
}, e;
|
|
729
|
+
}()
|
|
730
|
+
), Nn = {
|
|
732
731
|
create: function() {
|
|
733
|
-
return new
|
|
732
|
+
return new Cn();
|
|
734
733
|
}
|
|
735
734
|
}, it = {
|
|
736
|
-
variadic:
|
|
737
|
-
monadic: Cn
|
|
735
|
+
variadic: Bn
|
|
738
736
|
}, H;
|
|
739
737
|
(function(e) {
|
|
740
738
|
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";
|
|
@@ -747,43 +745,43 @@ var Se;
|
|
|
747
745
|
(function(e) {
|
|
748
746
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
749
747
|
})(Se || (Se = {}));
|
|
750
|
-
function
|
|
748
|
+
function Bt(e) {
|
|
751
749
|
return e.type === R.literal;
|
|
752
750
|
}
|
|
753
|
-
function
|
|
751
|
+
function In(e) {
|
|
754
752
|
return e.type === R.argument;
|
|
755
753
|
}
|
|
756
|
-
function
|
|
754
|
+
function hr(e) {
|
|
757
755
|
return e.type === R.number;
|
|
758
756
|
}
|
|
759
|
-
function
|
|
757
|
+
function fr(e) {
|
|
760
758
|
return e.type === R.date;
|
|
761
759
|
}
|
|
762
|
-
function
|
|
760
|
+
function cr(e) {
|
|
763
761
|
return e.type === R.time;
|
|
764
762
|
}
|
|
765
|
-
function
|
|
763
|
+
function mr(e) {
|
|
766
764
|
return e.type === R.select;
|
|
767
765
|
}
|
|
768
|
-
function
|
|
766
|
+
function dr(e) {
|
|
769
767
|
return e.type === R.plural;
|
|
770
768
|
}
|
|
771
|
-
function
|
|
769
|
+
function Dn(e) {
|
|
772
770
|
return e.type === R.pound;
|
|
773
771
|
}
|
|
774
|
-
function
|
|
772
|
+
function gr(e) {
|
|
775
773
|
return e.type === R.tag;
|
|
776
774
|
}
|
|
777
|
-
function
|
|
775
|
+
function pr(e) {
|
|
778
776
|
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
779
777
|
}
|
|
780
778
|
function mt(e) {
|
|
781
779
|
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
782
780
|
}
|
|
783
|
-
var
|
|
784
|
-
function
|
|
781
|
+
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rn = /(?:[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;
|
|
782
|
+
function Un(e) {
|
|
785
783
|
var t = {};
|
|
786
|
-
return e.replace(
|
|
784
|
+
return e.replace(Rn, function(r) {
|
|
787
785
|
var n = r.length;
|
|
788
786
|
switch (r[0]) {
|
|
789
787
|
case "G":
|
|
@@ -872,11 +870,11 @@ function Gn(e) {
|
|
|
872
870
|
return "";
|
|
873
871
|
}), t;
|
|
874
872
|
}
|
|
875
|
-
var
|
|
876
|
-
function
|
|
873
|
+
var Gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function kn(e) {
|
|
877
875
|
if (e.length === 0)
|
|
878
876
|
throw new Error("Number skeleton cannot be empty");
|
|
879
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(Gn).filter(function(c) {
|
|
880
878
|
return c.length > 0;
|
|
881
879
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
882
880
|
var s = i[n], o = s.split("/");
|
|
@@ -891,17 +889,17 @@ function Fn(e) {
|
|
|
891
889
|
}
|
|
892
890
|
return r;
|
|
893
891
|
}
|
|
894
|
-
function
|
|
892
|
+
function Fn(e) {
|
|
895
893
|
return e.replace(/^(.*?)-/, "");
|
|
896
894
|
}
|
|
897
|
-
var
|
|
898
|
-
function
|
|
895
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, jn = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
|
|
896
|
+
function Ct(e) {
|
|
899
897
|
var t = {};
|
|
900
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
898
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
|
|
901
899
|
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)), "";
|
|
902
900
|
}), t;
|
|
903
901
|
}
|
|
904
|
-
function
|
|
902
|
+
function xr(e) {
|
|
905
903
|
switch (e) {
|
|
906
904
|
case "sign-auto":
|
|
907
905
|
return {
|
|
@@ -941,7 +939,7 @@ function _r(e) {
|
|
|
941
939
|
};
|
|
942
940
|
}
|
|
943
941
|
}
|
|
944
|
-
function
|
|
942
|
+
function Vn(e) {
|
|
945
943
|
var t;
|
|
946
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
947
945
|
notation: "engineering"
|
|
@@ -949,17 +947,17 @@ function zn(e) {
|
|
|
949
947
|
notation: "scientific"
|
|
950
948
|
}, e = e.slice(1)), t) {
|
|
951
949
|
var r = e.slice(0, 2);
|
|
952
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
950
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
|
|
953
951
|
throw new Error("Malformed concise eng/scientific notation");
|
|
954
952
|
t.minimumIntegerDigits = e.length;
|
|
955
953
|
}
|
|
956
954
|
return t;
|
|
957
955
|
}
|
|
958
|
-
function
|
|
959
|
-
var t = {}, r =
|
|
956
|
+
function Nt(e) {
|
|
957
|
+
var t = {}, r = xr(e);
|
|
960
958
|
return r || t;
|
|
961
959
|
}
|
|
962
|
-
function
|
|
960
|
+
function Wn(e) {
|
|
963
961
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
964
962
|
var i = n[r];
|
|
965
963
|
switch (i.stem) {
|
|
@@ -983,7 +981,7 @@ function Xn(e) {
|
|
|
983
981
|
continue;
|
|
984
982
|
case "measure-unit":
|
|
985
983
|
case "unit":
|
|
986
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = Fn(i.options[0]);
|
|
987
985
|
continue;
|
|
988
986
|
case "compact-short":
|
|
989
987
|
case "K":
|
|
@@ -995,12 +993,12 @@ function Xn(e) {
|
|
|
995
993
|
continue;
|
|
996
994
|
case "scientific":
|
|
997
995
|
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
998
|
-
return O(O({}, l),
|
|
996
|
+
return O(O({}, l), Nt(u));
|
|
999
997
|
}, {}));
|
|
1000
998
|
continue;
|
|
1001
999
|
case "engineering":
|
|
1002
1000
|
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1003
|
-
return O(O({}, l),
|
|
1001
|
+
return O(O({}, l), Nt(u));
|
|
1004
1002
|
}, {}));
|
|
1005
1003
|
continue;
|
|
1006
1004
|
case "notation-simple":
|
|
@@ -1045,7 +1043,7 @@ function Xn(e) {
|
|
|
1045
1043
|
case "integer-width":
|
|
1046
1044
|
if (i.options.length > 1)
|
|
1047
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1048
|
-
i.options[0].replace(
|
|
1046
|
+
i.options[0].replace(jn, function(l, u, h, f, c, x) {
|
|
1049
1047
|
if (u)
|
|
1050
1048
|
t.minimumIntegerDigits = h.length;
|
|
1051
1049
|
else {
|
|
@@ -1058,27 +1056,27 @@ function Xn(e) {
|
|
|
1058
1056
|
});
|
|
1059
1057
|
continue;
|
|
1060
1058
|
}
|
|
1061
|
-
if (
|
|
1059
|
+
if (vr.test(i.stem)) {
|
|
1062
1060
|
t.minimumIntegerDigits = i.stem.length;
|
|
1063
1061
|
continue;
|
|
1064
1062
|
}
|
|
1065
|
-
if (
|
|
1063
|
+
if (Pt.test(i.stem)) {
|
|
1066
1064
|
if (i.options.length > 1)
|
|
1067
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1068
|
-
i.stem.replace(
|
|
1066
|
+
i.stem.replace(Pt, function(l, u, h, f, c, x) {
|
|
1069
1067
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && x ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1070
1068
|
});
|
|
1071
1069
|
var s = i.options[0];
|
|
1072
|
-
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t),
|
|
1070
|
+
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Ct(s)));
|
|
1073
1071
|
continue;
|
|
1074
1072
|
}
|
|
1075
|
-
if (
|
|
1076
|
-
t = O(O({}, t),
|
|
1073
|
+
if (yr.test(i.stem)) {
|
|
1074
|
+
t = O(O({}, t), Ct(i.stem));
|
|
1077
1075
|
continue;
|
|
1078
1076
|
}
|
|
1079
|
-
var o =
|
|
1077
|
+
var o = xr(i.stem);
|
|
1080
1078
|
o && (t = O(O({}, t), o));
|
|
1081
|
-
var a =
|
|
1079
|
+
var a = Vn(i.stem);
|
|
1082
1080
|
a && (t = O(O({}, t), a));
|
|
1083
1081
|
}
|
|
1084
1082
|
return t;
|
|
@@ -2498,13 +2496,13 @@ var ke = {
|
|
|
2498
2496
|
"h"
|
|
2499
2497
|
]
|
|
2500
2498
|
};
|
|
2501
|
-
function
|
|
2499
|
+
function Xn(e, t) {
|
|
2502
2500
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2503
2501
|
var i = e.charAt(n);
|
|
2504
2502
|
if (i === "j") {
|
|
2505
2503
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2506
2504
|
s++, n++;
|
|
2507
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2505
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = zn(t);
|
|
2508
2506
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2509
2507
|
r += l;
|
|
2510
2508
|
for (; o-- > 0; )
|
|
@@ -2513,7 +2511,7 @@ function Wn(e, t) {
|
|
|
2513
2511
|
}
|
|
2514
2512
|
return r;
|
|
2515
2513
|
}
|
|
2516
|
-
function
|
|
2514
|
+
function zn(e) {
|
|
2517
2515
|
var t = e.hourCycle;
|
|
2518
2516
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2519
2517
|
e.hourCycles && // @ts-ignore
|
|
@@ -2535,20 +2533,20 @@ function Yn(e) {
|
|
|
2535
2533
|
var i = ke[n || ""] || ke[r || ""] || ke["".concat(r, "-001")] || ke["001"];
|
|
2536
2534
|
return i[0];
|
|
2537
2535
|
}
|
|
2538
|
-
var st,
|
|
2536
|
+
var st, Yn = new RegExp("^".concat(br.source, "*")), Zn = new RegExp("".concat(br.source, "*$"));
|
|
2539
2537
|
function L(e, t) {
|
|
2540
2538
|
return { start: e, end: t };
|
|
2541
2539
|
}
|
|
2542
|
-
var
|
|
2540
|
+
var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, qn = !!Object.fromEntries, Kn = !!String.prototype.codePointAt, ei = !!String.prototype.trimStart, ti = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ni = ri ? Number.isSafeInteger : function(e) {
|
|
2543
2541
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2544
2542
|
}, dt = !0;
|
|
2545
2543
|
try {
|
|
2546
|
-
var
|
|
2547
|
-
dt = ((st =
|
|
2544
|
+
var ii = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2545
|
+
dt = ((st = ii.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
|
|
2548
2546
|
} catch (e) {
|
|
2549
2547
|
dt = !1;
|
|
2550
2548
|
}
|
|
2551
|
-
var
|
|
2549
|
+
var It = Jn ? (
|
|
2552
2550
|
// Native
|
|
2553
2551
|
function(t, r, n) {
|
|
2554
2552
|
return t.startsWith(r, n);
|
|
@@ -2558,7 +2556,7 @@ var Rt = Qn ? (
|
|
|
2558
2556
|
function(t, r, n) {
|
|
2559
2557
|
return t.slice(n, n + r.length) === r;
|
|
2560
2558
|
}
|
|
2561
|
-
), gt =
|
|
2559
|
+
), gt = Qn ? String.fromCodePoint : (
|
|
2562
2560
|
// IE11
|
|
2563
2561
|
function() {
|
|
2564
2562
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2570,9 +2568,9 @@ var Rt = Qn ? (
|
|
|
2570
2568
|
}
|
|
2571
2569
|
return n;
|
|
2572
2570
|
}
|
|
2573
|
-
),
|
|
2571
|
+
), Dt = (
|
|
2574
2572
|
// native
|
|
2575
|
-
|
|
2573
|
+
qn ? Object.fromEntries : (
|
|
2576
2574
|
// Ponyfill
|
|
2577
2575
|
function(t) {
|
|
2578
2576
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2582,7 +2580,7 @@ var Rt = Qn ? (
|
|
|
2582
2580
|
return r;
|
|
2583
2581
|
}
|
|
2584
2582
|
)
|
|
2585
|
-
),
|
|
2583
|
+
), Er = Kn ? (
|
|
2586
2584
|
// Native
|
|
2587
2585
|
function(t, r) {
|
|
2588
2586
|
return t.codePointAt(r);
|
|
@@ -2596,7 +2594,7 @@ var Rt = Qn ? (
|
|
|
2596
2594
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2597
2595
|
}
|
|
2598
2596
|
}
|
|
2599
|
-
),
|
|
2597
|
+
), si = ei ? (
|
|
2600
2598
|
// Native
|
|
2601
2599
|
function(t) {
|
|
2602
2600
|
return t.trimStart();
|
|
@@ -2604,9 +2602,9 @@ var Rt = Qn ? (
|
|
|
2604
2602
|
) : (
|
|
2605
2603
|
// Ponyfill
|
|
2606
2604
|
function(t) {
|
|
2607
|
-
return t.replace(
|
|
2605
|
+
return t.replace(Yn, "");
|
|
2608
2606
|
}
|
|
2609
|
-
),
|
|
2607
|
+
), oi = ti ? (
|
|
2610
2608
|
// Native
|
|
2611
2609
|
function(t) {
|
|
2612
2610
|
return t.trimEnd();
|
|
@@ -2614,32 +2612,32 @@ var Rt = Qn ? (
|
|
|
2614
2612
|
) : (
|
|
2615
2613
|
// Ponyfill
|
|
2616
2614
|
function(t) {
|
|
2617
|
-
return t.replace(
|
|
2615
|
+
return t.replace(Zn, "");
|
|
2618
2616
|
}
|
|
2619
2617
|
);
|
|
2620
|
-
function
|
|
2618
|
+
function _r(e, t) {
|
|
2621
2619
|
return new RegExp(e, t);
|
|
2622
2620
|
}
|
|
2623
2621
|
var pt;
|
|
2624
2622
|
if (dt) {
|
|
2625
|
-
var
|
|
2623
|
+
var Rt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2626
2624
|
pt = function(t, r) {
|
|
2627
2625
|
var n;
|
|
2628
|
-
|
|
2629
|
-
var i =
|
|
2626
|
+
Rt.lastIndex = r;
|
|
2627
|
+
var i = Rt.exec(t);
|
|
2630
2628
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2631
2629
|
};
|
|
2632
2630
|
} else
|
|
2633
2631
|
pt = function(t, r) {
|
|
2634
2632
|
for (var n = []; ; ) {
|
|
2635
|
-
var i =
|
|
2636
|
-
if (i === void 0 ||
|
|
2633
|
+
var i = Er(t, r);
|
|
2634
|
+
if (i === void 0 || wr(i) || hi(i))
|
|
2637
2635
|
break;
|
|
2638
2636
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2639
2637
|
}
|
|
2640
2638
|
return gt.apply(void 0, n);
|
|
2641
2639
|
};
|
|
2642
|
-
var
|
|
2640
|
+
var ai = (
|
|
2643
2641
|
/** @class */
|
|
2644
2642
|
function() {
|
|
2645
2643
|
function e(t, r) {
|
|
@@ -2721,7 +2719,7 @@ var ui = (
|
|
|
2721
2719
|
return this.error(H.INVALID_TAG, L(n, this.clonePosition()));
|
|
2722
2720
|
}, e.prototype.parseTagName = function() {
|
|
2723
2721
|
var t = this.offset();
|
|
2724
|
-
for (this.bump(); !this.isEOF() &&
|
|
2722
|
+
for (this.bump(); !this.isEOF() && li(this.char()); )
|
|
2725
2723
|
this.bump();
|
|
2726
2724
|
return this.message.slice(t, this.offset());
|
|
2727
2725
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2750,7 +2748,7 @@ var ui = (
|
|
|
2750
2748
|
};
|
|
2751
2749
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2752
2750
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2753
|
-
!
|
|
2751
|
+
!ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2754
2752
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2755
2753
|
if (this.isEOF() || this.char() !== 39)
|
|
2756
2754
|
return null;
|
|
@@ -2837,7 +2835,7 @@ var ui = (
|
|
|
2837
2835
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2838
2836
|
if (f.err)
|
|
2839
2837
|
return f;
|
|
2840
|
-
var c =
|
|
2838
|
+
var c = oi(f.val);
|
|
2841
2839
|
if (c.length === 0)
|
|
2842
2840
|
return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2843
2841
|
var x = L(h, this.clonePosition());
|
|
@@ -2847,8 +2845,8 @@ var ui = (
|
|
|
2847
2845
|
if (w.err)
|
|
2848
2846
|
return w;
|
|
2849
2847
|
var b = L(i, this.clonePosition());
|
|
2850
|
-
if (u &&
|
|
2851
|
-
var S =
|
|
2848
|
+
if (u && It(u == null ? void 0 : u.style, "::", 0)) {
|
|
2849
|
+
var S = si(u.style.slice(2));
|
|
2852
2850
|
if (a === "number") {
|
|
2853
2851
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2854
2852
|
return f.err ? f : {
|
|
@@ -2859,12 +2857,12 @@ var ui = (
|
|
|
2859
2857
|
if (S.length === 0)
|
|
2860
2858
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, b);
|
|
2861
2859
|
var P = S;
|
|
2862
|
-
this.locale && (P =
|
|
2860
|
+
this.locale && (P = Xn(S, this.locale));
|
|
2863
2861
|
var c = {
|
|
2864
2862
|
type: Se.dateTime,
|
|
2865
2863
|
pattern: P,
|
|
2866
2864
|
location: u.styleLocation,
|
|
2867
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2865
|
+
parsedOptions: this.shouldParseSkeletons ? Un(P) : {}
|
|
2868
2866
|
}, I = a === "date" ? R.date : R.time;
|
|
2869
2867
|
return {
|
|
2870
2868
|
val: { type: I, value: n, location: b, style: c },
|
|
@@ -2910,7 +2908,7 @@ var ui = (
|
|
|
2910
2908
|
val: {
|
|
2911
2909
|
type: R.select,
|
|
2912
2910
|
value: n,
|
|
2913
|
-
options:
|
|
2911
|
+
options: Dt(j.val),
|
|
2914
2912
|
location: G
|
|
2915
2913
|
},
|
|
2916
2914
|
err: null
|
|
@@ -2918,7 +2916,7 @@ var ui = (
|
|
|
2918
2916
|
val: {
|
|
2919
2917
|
type: R.plural,
|
|
2920
2918
|
value: n,
|
|
2921
|
-
options:
|
|
2919
|
+
options: Dt(j.val),
|
|
2922
2920
|
offset: C,
|
|
2923
2921
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2924
2922
|
location: G
|
|
@@ -2969,7 +2967,7 @@ var ui = (
|
|
|
2969
2967
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2970
2968
|
var n = [];
|
|
2971
2969
|
try {
|
|
2972
|
-
n =
|
|
2970
|
+
n = kn(t);
|
|
2973
2971
|
} catch (i) {
|
|
2974
2972
|
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2975
2973
|
}
|
|
@@ -2978,7 +2976,7 @@ var ui = (
|
|
|
2978
2976
|
type: Se.number,
|
|
2979
2977
|
tokens: n,
|
|
2980
2978
|
location: r,
|
|
2981
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2979
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
|
|
2982
2980
|
},
|
|
2983
2981
|
err: null
|
|
2984
2982
|
};
|
|
@@ -3026,7 +3024,7 @@ var ui = (
|
|
|
3026
3024
|
break;
|
|
3027
3025
|
}
|
|
3028
3026
|
var l = L(i, this.clonePosition());
|
|
3029
|
-
return s ? (o *= n,
|
|
3027
|
+
return s ? (o *= n, ni(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3030
3028
|
}, e.prototype.offset = function() {
|
|
3031
3029
|
return this.position.offset;
|
|
3032
3030
|
}, e.prototype.isEOF = function() {
|
|
@@ -3041,7 +3039,7 @@ var ui = (
|
|
|
3041
3039
|
var t = this.position.offset;
|
|
3042
3040
|
if (t >= this.message.length)
|
|
3043
3041
|
throw Error("out of bound");
|
|
3044
|
-
var r =
|
|
3042
|
+
var r = Er(this.message, t);
|
|
3045
3043
|
if (r === void 0)
|
|
3046
3044
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3047
3045
|
return r;
|
|
@@ -3060,7 +3058,7 @@ var ui = (
|
|
|
3060
3058
|
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);
|
|
3061
3059
|
}
|
|
3062
3060
|
}, e.prototype.bumpIf = function(t) {
|
|
3063
|
-
if (
|
|
3061
|
+
if (It(this.message, t, this.offset())) {
|
|
3064
3062
|
for (var r = 0; r < t.length; r++)
|
|
3065
3063
|
this.bump();
|
|
3066
3064
|
return !0;
|
|
@@ -3082,7 +3080,7 @@ var ui = (
|
|
|
3082
3080
|
break;
|
|
3083
3081
|
}
|
|
3084
3082
|
}, e.prototype.bumpSpace = function() {
|
|
3085
|
-
for (; !this.isEOF() &&
|
|
3083
|
+
for (; !this.isEOF() && wr(this.char()); )
|
|
3086
3084
|
this.bump();
|
|
3087
3085
|
}, e.prototype.peek = function() {
|
|
3088
3086
|
if (this.isEOF())
|
|
@@ -3095,29 +3093,29 @@ var ui = (
|
|
|
3095
3093
|
function bt(e) {
|
|
3096
3094
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3097
3095
|
}
|
|
3098
|
-
function
|
|
3096
|
+
function ui(e) {
|
|
3099
3097
|
return bt(e) || e === 47;
|
|
3100
3098
|
}
|
|
3101
|
-
function
|
|
3099
|
+
function li(e) {
|
|
3102
3100
|
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;
|
|
3103
3101
|
}
|
|
3104
|
-
function
|
|
3102
|
+
function wr(e) {
|
|
3105
3103
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3106
3104
|
}
|
|
3107
|
-
function
|
|
3105
|
+
function hi(e) {
|
|
3108
3106
|
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;
|
|
3109
3107
|
}
|
|
3110
3108
|
function yt(e) {
|
|
3111
3109
|
e.forEach(function(t) {
|
|
3112
|
-
if (delete t.location,
|
|
3110
|
+
if (delete t.location, mr(t) || dr(t))
|
|
3113
3111
|
for (var r in t.options)
|
|
3114
3112
|
delete t.options[r].location, yt(t.options[r].value);
|
|
3115
|
-
else
|
|
3113
|
+
else hr(t) && pr(t.style) || (fr(t) || cr(t)) && mt(t.style) ? delete t.style.location : gr(t) && yt(t.children);
|
|
3116
3114
|
});
|
|
3117
3115
|
}
|
|
3118
|
-
function
|
|
3116
|
+
function fi(e, t) {
|
|
3119
3117
|
t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
-
var r = new
|
|
3118
|
+
var r = new ai(e, t).parse();
|
|
3121
3119
|
if (r.err) {
|
|
3122
3120
|
var n = SyntaxError(H[r.err.kind]);
|
|
3123
3121
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3140,7 +3138,7 @@ var Qe = (
|
|
|
3140
3138
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3141
3139
|
}, t;
|
|
3142
3140
|
}(Error)
|
|
3143
|
-
),
|
|
3141
|
+
), Ut = (
|
|
3144
3142
|
/** @class */
|
|
3145
3143
|
function(e) {
|
|
3146
3144
|
Je(t, e);
|
|
@@ -3149,7 +3147,7 @@ var Qe = (
|
|
|
3149
3147
|
}
|
|
3150
3148
|
return t;
|
|
3151
3149
|
}(Qe)
|
|
3152
|
-
),
|
|
3150
|
+
), ci = (
|
|
3153
3151
|
/** @class */
|
|
3154
3152
|
function(e) {
|
|
3155
3153
|
Je(t, e);
|
|
@@ -3158,7 +3156,7 @@ var Qe = (
|
|
|
3158
3156
|
}
|
|
3159
3157
|
return t;
|
|
3160
3158
|
}(Qe)
|
|
3161
|
-
),
|
|
3159
|
+
), mi = (
|
|
3162
3160
|
/** @class */
|
|
3163
3161
|
function(e) {
|
|
3164
3162
|
Je(t, e);
|
|
@@ -3171,17 +3169,17 @@ var Qe = (
|
|
|
3171
3169
|
(function(e) {
|
|
3172
3170
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3173
3171
|
})(J || (J = {}));
|
|
3174
|
-
function
|
|
3172
|
+
function di(e) {
|
|
3175
3173
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3176
3174
|
var n = t[t.length - 1];
|
|
3177
3175
|
return !n || n.type !== J.literal || r.type !== J.literal ? t.push(r) : n.value += r.value, t;
|
|
3178
3176
|
}, []);
|
|
3179
3177
|
}
|
|
3180
|
-
function
|
|
3178
|
+
function gi(e) {
|
|
3181
3179
|
return typeof e == "function";
|
|
3182
3180
|
}
|
|
3183
3181
|
function je(e, t, r, n, i, s, o) {
|
|
3184
|
-
if (e.length === 1 &&
|
|
3182
|
+
if (e.length === 1 && Bt(e[0]))
|
|
3185
3183
|
return [
|
|
3186
3184
|
{
|
|
3187
3185
|
type: J.literal,
|
|
@@ -3190,14 +3188,14 @@ function je(e, t, r, n, i, s, o) {
|
|
|
3190
3188
|
];
|
|
3191
3189
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3192
3190
|
var h = u[l];
|
|
3193
|
-
if (
|
|
3191
|
+
if (Bt(h)) {
|
|
3194
3192
|
a.push({
|
|
3195
3193
|
type: J.literal,
|
|
3196
3194
|
value: h.value
|
|
3197
3195
|
});
|
|
3198
3196
|
continue;
|
|
3199
3197
|
}
|
|
3200
|
-
if (
|
|
3198
|
+
if (Dn(h)) {
|
|
3201
3199
|
typeof s == "number" && a.push({
|
|
3202
3200
|
type: J.literal,
|
|
3203
3201
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3206,16 +3204,16 @@ function je(e, t, r, n, i, s, o) {
|
|
|
3206
3204
|
}
|
|
3207
3205
|
var f = h.value;
|
|
3208
3206
|
if (!(i && f in i))
|
|
3209
|
-
throw new
|
|
3207
|
+
throw new mi(f, o);
|
|
3210
3208
|
var c = i[f];
|
|
3211
|
-
if (
|
|
3209
|
+
if (In(h)) {
|
|
3212
3210
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3213
3211
|
type: typeof c == "string" ? J.literal : J.object,
|
|
3214
3212
|
value: c
|
|
3215
3213
|
});
|
|
3216
3214
|
continue;
|
|
3217
3215
|
}
|
|
3218
|
-
if (
|
|
3216
|
+
if (fr(h)) {
|
|
3219
3217
|
var x = typeof h.style == "string" ? n.date[h.style] : mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3220
3218
|
a.push({
|
|
3221
3219
|
type: J.literal,
|
|
@@ -3223,7 +3221,7 @@ function je(e, t, r, n, i, s, o) {
|
|
|
3223
3221
|
});
|
|
3224
3222
|
continue;
|
|
3225
3223
|
}
|
|
3226
|
-
if (
|
|
3224
|
+
if (cr(h)) {
|
|
3227
3225
|
var x = typeof h.style == "string" ? n.time[h.style] : mt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3228
3226
|
a.push({
|
|
3229
3227
|
type: J.literal,
|
|
@@ -3231,18 +3229,18 @@ function je(e, t, r, n, i, s, o) {
|
|
|
3231
3229
|
});
|
|
3232
3230
|
continue;
|
|
3233
3231
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var x = typeof h.style == "string" ? n.number[h.style] :
|
|
3232
|
+
if (hr(h)) {
|
|
3233
|
+
var x = typeof h.style == "string" ? n.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3236
3234
|
x && x.scale && (c = c * (x.scale || 1)), a.push({
|
|
3237
3235
|
type: J.literal,
|
|
3238
3236
|
value: r.getNumberFormat(t, x).format(c)
|
|
3239
3237
|
});
|
|
3240
3238
|
continue;
|
|
3241
3239
|
}
|
|
3242
|
-
if (
|
|
3240
|
+
if (gr(h)) {
|
|
3243
3241
|
var w = h.children, b = h.value, S = i[b];
|
|
3244
|
-
if (!
|
|
3245
|
-
throw new
|
|
3242
|
+
if (!gi(S))
|
|
3243
|
+
throw new ci(b, "function", o);
|
|
3246
3244
|
var P = je(w, t, r, n, i, s), I = S(P.map(function(C) {
|
|
3247
3245
|
return C.value;
|
|
3248
3246
|
}));
|
|
@@ -3253,14 +3251,14 @@ function je(e, t, r, n, i, s, o) {
|
|
|
3253
3251
|
};
|
|
3254
3252
|
}));
|
|
3255
3253
|
}
|
|
3256
|
-
if (
|
|
3254
|
+
if (mr(h)) {
|
|
3257
3255
|
var A = h.options[c] || h.options.other;
|
|
3258
3256
|
if (!A)
|
|
3259
|
-
throw new
|
|
3257
|
+
throw new Ut(h.value, c, Object.keys(h.options), o);
|
|
3260
3258
|
a.push.apply(a, je(A.value, t, r, n, i));
|
|
3261
3259
|
continue;
|
|
3262
3260
|
}
|
|
3263
|
-
if (
|
|
3261
|
+
if (dr(h)) {
|
|
3264
3262
|
var A = h.options["=".concat(c)];
|
|
3265
3263
|
if (!A) {
|
|
3266
3264
|
if (!Intl.PluralRules)
|
|
@@ -3271,21 +3269,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3271
3269
|
A = h.options[D] || h.options.other;
|
|
3272
3270
|
}
|
|
3273
3271
|
if (!A)
|
|
3274
|
-
throw new
|
|
3272
|
+
throw new Ut(h.value, c, Object.keys(h.options), o);
|
|
3275
3273
|
a.push.apply(a, je(A.value, t, r, n, i, c - (h.offset || 0)));
|
|
3276
3274
|
continue;
|
|
3277
3275
|
}
|
|
3278
3276
|
}
|
|
3279
|
-
return
|
|
3277
|
+
return di(a);
|
|
3280
3278
|
}
|
|
3281
|
-
function
|
|
3279
|
+
function pi(e, t) {
|
|
3282
3280
|
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3283
3281
|
return r[n] = O(O({}, e[n]), t[n] || {}), r;
|
|
3284
3282
|
}, {})) : e;
|
|
3285
3283
|
}
|
|
3286
|
-
function
|
|
3284
|
+
function bi(e, t) {
|
|
3287
3285
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3288
|
-
return r[n] =
|
|
3286
|
+
return r[n] = pi(e[n], t[n]), r;
|
|
3289
3287
|
}, O({}, e)) : e;
|
|
3290
3288
|
}
|
|
3291
3289
|
function ot(e) {
|
|
@@ -3302,7 +3300,7 @@ function ot(e) {
|
|
|
3302
3300
|
}
|
|
3303
3301
|
};
|
|
3304
3302
|
}
|
|
3305
|
-
function
|
|
3303
|
+
function yi(e) {
|
|
3306
3304
|
return e === void 0 && (e = {
|
|
3307
3305
|
number: {},
|
|
3308
3306
|
dateTime: {},
|
|
@@ -3334,7 +3332,7 @@ function vi(e) {
|
|
|
3334
3332
|
})
|
|
3335
3333
|
};
|
|
3336
3334
|
}
|
|
3337
|
-
var
|
|
3335
|
+
var Sr = (
|
|
3338
3336
|
/** @class */
|
|
3339
3337
|
function() {
|
|
3340
3338
|
function e(t, r, n, i) {
|
|
@@ -3366,13 +3364,13 @@ var Tr = (
|
|
|
3366
3364
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3367
3365
|
var o = i || {};
|
|
3368
3366
|
o.formatters;
|
|
3369
|
-
var a =
|
|
3367
|
+
var a = Ln(o, ["formatters"]);
|
|
3370
3368
|
this.ast = e.__parse(t, O(O({}, a), { locale: this.resolvedLocale }));
|
|
3371
3369
|
} else
|
|
3372
3370
|
this.ast = t;
|
|
3373
3371
|
if (!Array.isArray(this.ast))
|
|
3374
3372
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3375
|
-
this.formats =
|
|
3373
|
+
this.formats = bi(e.formats, n), this.formatters = i && i.formatters || yi(this.formatterCache);
|
|
3376
3374
|
}
|
|
3377
3375
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3378
3376
|
get: function() {
|
|
@@ -3385,7 +3383,7 @@ var Tr = (
|
|
|
3385
3383
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3386
3384
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3387
3385
|
}
|
|
3388
|
-
}, e.__parse =
|
|
3386
|
+
}, e.__parse = fi, e.formats = {
|
|
3389
3387
|
number: {
|
|
3390
3388
|
integer: {
|
|
3391
3389
|
maximumFractionDigits: 0
|
|
@@ -3446,7 +3444,7 @@ var Tr = (
|
|
|
3446
3444
|
}, e;
|
|
3447
3445
|
}()
|
|
3448
3446
|
);
|
|
3449
|
-
function
|
|
3447
|
+
function vi(e, t) {
|
|
3450
3448
|
if (t == null)
|
|
3451
3449
|
return;
|
|
3452
3450
|
if (t in e)
|
|
@@ -3467,60 +3465,60 @@ function xi(e, t) {
|
|
|
3467
3465
|
n = void 0;
|
|
3468
3466
|
return n;
|
|
3469
3467
|
}
|
|
3470
|
-
const de = {},
|
|
3468
|
+
const de = {}, xi = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), Mr = (e, t) => {
|
|
3471
3469
|
if (t == null)
|
|
3472
3470
|
return;
|
|
3473
3471
|
if (t in de && e in de[t])
|
|
3474
3472
|
return de[t][e];
|
|
3475
3473
|
const r = De(t);
|
|
3476
3474
|
for (let n = 0; n < r.length; n++) {
|
|
3477
|
-
const i = r[n], s =
|
|
3475
|
+
const i = r[n], s = _i(i, e);
|
|
3478
3476
|
if (s)
|
|
3479
|
-
return
|
|
3477
|
+
return xi(e, t, s);
|
|
3480
3478
|
}
|
|
3481
3479
|
};
|
|
3482
|
-
let
|
|
3480
|
+
let _t;
|
|
3483
3481
|
const Ie = Ze({});
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3482
|
+
function Ei(e) {
|
|
3483
|
+
return _t[e] || null;
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return e in
|
|
3485
|
+
function Tr(e) {
|
|
3486
|
+
return e in _t;
|
|
3489
3487
|
}
|
|
3490
|
-
function
|
|
3491
|
-
if (!
|
|
3488
|
+
function _i(e, t) {
|
|
3489
|
+
if (!Tr(e))
|
|
3492
3490
|
return null;
|
|
3493
|
-
const r =
|
|
3494
|
-
return
|
|
3491
|
+
const r = Ei(e);
|
|
3492
|
+
return vi(r, t);
|
|
3495
3493
|
}
|
|
3496
|
-
function
|
|
3494
|
+
function wi(e) {
|
|
3497
3495
|
if (e == null)
|
|
3498
3496
|
return;
|
|
3499
3497
|
const t = De(e);
|
|
3500
3498
|
for (let r = 0; r < t.length; r++) {
|
|
3501
3499
|
const n = t[r];
|
|
3502
|
-
if (
|
|
3500
|
+
if (Tr(n))
|
|
3503
3501
|
return n;
|
|
3504
3502
|
}
|
|
3505
3503
|
}
|
|
3506
|
-
function
|
|
3507
|
-
delete de[e], Ie.update((r) => (r[e] =
|
|
3504
|
+
function Hr(e, ...t) {
|
|
3505
|
+
delete de[e], Ie.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
|
|
3508
3506
|
}
|
|
3509
3507
|
Le(
|
|
3510
3508
|
[Ie],
|
|
3511
3509
|
([e]) => Object.keys(e)
|
|
3512
3510
|
);
|
|
3513
|
-
Ie.subscribe((e) =>
|
|
3511
|
+
Ie.subscribe((e) => _t = e);
|
|
3514
3512
|
const Ve = {};
|
|
3515
|
-
function
|
|
3513
|
+
function Si(e, t) {
|
|
3516
3514
|
Ve[e].delete(t), Ve[e].size === 0 && delete Ve[e];
|
|
3517
3515
|
}
|
|
3518
|
-
function
|
|
3516
|
+
function Lr(e) {
|
|
3519
3517
|
return Ve[e];
|
|
3520
3518
|
}
|
|
3521
|
-
function
|
|
3519
|
+
function Mi(e) {
|
|
3522
3520
|
return De(e).map((t) => {
|
|
3523
|
-
const r =
|
|
3521
|
+
const r = Lr(t);
|
|
3524
3522
|
return [t, r ? [...r] : []];
|
|
3525
3523
|
}).filter(([, t]) => t.length > 0);
|
|
3526
3524
|
}
|
|
@@ -3528,40 +3526,40 @@ function Xe(e) {
|
|
|
3528
3526
|
return e == null ? !1 : De(e).some(
|
|
3529
3527
|
(t) => {
|
|
3530
3528
|
var r;
|
|
3531
|
-
return (r =
|
|
3529
|
+
return (r = Lr(t)) == null ? void 0 : r.size;
|
|
3532
3530
|
}
|
|
3533
3531
|
);
|
|
3534
3532
|
}
|
|
3535
|
-
function
|
|
3533
|
+
function Ti(e, t) {
|
|
3536
3534
|
return Promise.all(
|
|
3537
|
-
t.map((n) => (
|
|
3538
|
-
).then((n) =>
|
|
3535
|
+
t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
|
|
3536
|
+
).then((n) => Hr(e, ...n));
|
|
3539
3537
|
}
|
|
3540
3538
|
const Oe = {};
|
|
3541
|
-
function
|
|
3539
|
+
function Ar(e) {
|
|
3542
3540
|
if (!Xe(e))
|
|
3543
3541
|
return e in Oe ? Oe[e] : Promise.resolve();
|
|
3544
|
-
const t =
|
|
3542
|
+
const t = Mi(e);
|
|
3545
3543
|
return Oe[e] = Promise.all(
|
|
3546
3544
|
t.map(
|
|
3547
|
-
([r, n]) =>
|
|
3545
|
+
([r, n]) => Ti(r, n)
|
|
3548
3546
|
)
|
|
3549
3547
|
).then(() => {
|
|
3550
3548
|
if (Xe(e))
|
|
3551
|
-
return
|
|
3549
|
+
return Ar(e);
|
|
3552
3550
|
delete Oe[e];
|
|
3553
3551
|
}), Oe[e];
|
|
3554
3552
|
}
|
|
3555
|
-
var
|
|
3553
|
+
var Gt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Ai = (e, t) => {
|
|
3556
3554
|
var r = {};
|
|
3557
3555
|
for (var n in e)
|
|
3558
|
-
|
|
3559
|
-
if (e != null &&
|
|
3560
|
-
for (var n of
|
|
3561
|
-
t.indexOf(n) < 0 &&
|
|
3556
|
+
Hi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3557
|
+
if (e != null && Gt)
|
|
3558
|
+
for (var n of Gt(e))
|
|
3559
|
+
t.indexOf(n) < 0 && Li.call(e, n) && (r[n] = e[n]);
|
|
3562
3560
|
return r;
|
|
3563
3561
|
};
|
|
3564
|
-
const
|
|
3562
|
+
const Oi = {
|
|
3565
3563
|
number: {
|
|
3566
3564
|
scientific: { notation: "scientific" },
|
|
3567
3565
|
engineering: { notation: "engineering" },
|
|
@@ -3591,7 +3589,7 @@ const $i = {
|
|
|
3591
3589
|
}
|
|
3592
3590
|
}
|
|
3593
3591
|
};
|
|
3594
|
-
function
|
|
3592
|
+
function $i({ locale: e, id: t }) {
|
|
3595
3593
|
console.warn(
|
|
3596
3594
|
`[svelte-i18n] The message "${t}" was not found in "${De(
|
|
3597
3595
|
e
|
|
@@ -3600,72 +3598,72 @@ function Bi({ locale: e, id: t }) {
|
|
|
3600
3598
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3601
3599
|
);
|
|
3602
3600
|
}
|
|
3603
|
-
const
|
|
3601
|
+
const Bi = {
|
|
3604
3602
|
fallbackLocale: null,
|
|
3605
3603
|
loadingDelay: 200,
|
|
3606
|
-
formats:
|
|
3604
|
+
formats: Oi,
|
|
3607
3605
|
warnOnMissingMessages: !0,
|
|
3608
3606
|
handleMissingMessage: void 0,
|
|
3609
3607
|
ignoreTag: !0
|
|
3610
|
-
}, $e =
|
|
3608
|
+
}, $e = Bi;
|
|
3611
3609
|
function Te() {
|
|
3612
3610
|
return $e;
|
|
3613
3611
|
}
|
|
3614
|
-
function
|
|
3615
|
-
const t = e, { formats: r } = t, n =
|
|
3612
|
+
function Pi(e) {
|
|
3613
|
+
const t = e, { formats: r } = t, n = Ai(t, ["formats"]);
|
|
3616
3614
|
let i = e.fallbackLocale;
|
|
3617
3615
|
if (e.initialLocale)
|
|
3618
3616
|
try {
|
|
3619
|
-
|
|
3617
|
+
Sr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3620
3618
|
} catch (s) {
|
|
3621
3619
|
console.warn(
|
|
3622
3620
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3623
3621
|
);
|
|
3624
3622
|
}
|
|
3625
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3623
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = $i : console.warn(
|
|
3626
3624
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3627
3625
|
)), Object.assign($e, n, { initialLocale: i }), r && ("number" in r && Object.assign($e.formats.number, r.number), "date" in r && Object.assign($e.formats.date, r.date), "time" in r && Object.assign($e.formats.time, r.time)), be.set(i);
|
|
3628
3626
|
}
|
|
3629
3627
|
const at = Ze(!1);
|
|
3630
|
-
var
|
|
3628
|
+
var Ci = Object.defineProperty, Ni = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
|
3631
3629
|
for (var r in t || (t = {}))
|
|
3632
|
-
|
|
3633
|
-
if (
|
|
3634
|
-
for (var r of
|
|
3635
|
-
|
|
3630
|
+
Di.call(t, r) && Ft(e, r, t[r]);
|
|
3631
|
+
if (kt)
|
|
3632
|
+
for (var r of kt(t))
|
|
3633
|
+
Ri.call(t, r) && Ft(e, r, t[r]);
|
|
3636
3634
|
return e;
|
|
3637
|
-
},
|
|
3635
|
+
}, Gi = (e, t) => Ni(e, Ii(t));
|
|
3638
3636
|
let vt;
|
|
3639
|
-
const
|
|
3640
|
-
function
|
|
3637
|
+
const ze = Ze(null);
|
|
3638
|
+
function jt(e) {
|
|
3641
3639
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3642
3640
|
}
|
|
3643
3641
|
function De(e, t = Te().fallbackLocale) {
|
|
3644
|
-
const r =
|
|
3645
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3642
|
+
const r = jt(e);
|
|
3643
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...jt(t)])] : r;
|
|
3646
3644
|
}
|
|
3647
3645
|
function ge() {
|
|
3648
3646
|
return vt != null ? vt : void 0;
|
|
3649
3647
|
}
|
|
3650
|
-
|
|
3648
|
+
ze.subscribe((e) => {
|
|
3651
3649
|
vt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3652
3650
|
});
|
|
3653
|
-
const
|
|
3654
|
-
if (e &&
|
|
3651
|
+
const ki = (e) => {
|
|
3652
|
+
if (e && wi(e) && Xe(e)) {
|
|
3655
3653
|
const { loadingDelay: t } = Te();
|
|
3656
3654
|
let r;
|
|
3657
3655
|
return typeof window != "undefined" && ge() != null && t ? r = window.setTimeout(
|
|
3658
3656
|
() => at.set(!0),
|
|
3659
3657
|
t
|
|
3660
|
-
) : at.set(!0),
|
|
3661
|
-
|
|
3658
|
+
) : at.set(!0), Ar(e).then(() => {
|
|
3659
|
+
ze.set(e);
|
|
3662
3660
|
}).finally(() => {
|
|
3663
3661
|
clearTimeout(r), at.set(!1);
|
|
3664
3662
|
});
|
|
3665
3663
|
}
|
|
3666
|
-
return
|
|
3667
|
-
}, be =
|
|
3668
|
-
set:
|
|
3664
|
+
return ze.set(e);
|
|
3665
|
+
}, be = Gi(Ui({}, ze), {
|
|
3666
|
+
set: ki
|
|
3669
3667
|
}), qe = (e) => {
|
|
3670
3668
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3671
3669
|
return (n) => {
|
|
@@ -3673,20 +3671,20 @@ const Fi = (e) => {
|
|
|
3673
3671
|
return i in t ? t[i] : t[i] = e(n);
|
|
3674
3672
|
};
|
|
3675
3673
|
};
|
|
3676
|
-
var
|
|
3674
|
+
var Fi = Object.defineProperty, Ye = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
|
3677
3675
|
for (var r in t || (t = {}))
|
|
3678
|
-
|
|
3676
|
+
Or.call(t, r) && Vt(e, r, t[r]);
|
|
3679
3677
|
if (Ye)
|
|
3680
3678
|
for (var r of Ye(t))
|
|
3681
|
-
|
|
3679
|
+
$r.call(t, r) && Vt(e, r, t[r]);
|
|
3682
3680
|
return e;
|
|
3683
3681
|
}, Ae = (e, t) => {
|
|
3684
3682
|
var r = {};
|
|
3685
3683
|
for (var n in e)
|
|
3686
|
-
|
|
3684
|
+
Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3687
3685
|
if (e != null && Ye)
|
|
3688
3686
|
for (var n of Ye(e))
|
|
3689
|
-
t.indexOf(n) < 0 &&
|
|
3687
|
+
t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
|
|
3690
3688
|
return r;
|
|
3691
3689
|
};
|
|
3692
3690
|
const Ne = (e, t) => {
|
|
@@ -3694,21 +3692,21 @@ const Ne = (e, t) => {
|
|
|
3694
3692
|
if (e in r && t in r[e])
|
|
3695
3693
|
return r[e][t];
|
|
3696
3694
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3697
|
-
},
|
|
3695
|
+
}, ji = qe(
|
|
3698
3696
|
(e) => {
|
|
3699
3697
|
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
3700
3698
|
if (r == null)
|
|
3701
3699
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3702
3700
|
return n && (i = Ne("number", n)), new Intl.NumberFormat(r, i);
|
|
3703
3701
|
}
|
|
3704
|
-
),
|
|
3702
|
+
), Vi = qe(
|
|
3705
3703
|
(e) => {
|
|
3706
3704
|
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
3707
3705
|
if (r == null)
|
|
3708
3706
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3709
3707
|
return n ? i = Ne("date", n) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3710
3708
|
}
|
|
3711
|
-
),
|
|
3709
|
+
), Wi = qe(
|
|
3712
3710
|
(e) => {
|
|
3713
3711
|
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
3714
3712
|
if (r == null)
|
|
@@ -3717,33 +3715,33 @@ const Ne = (e, t) => {
|
|
|
3717
3715
|
);
|
|
3718
3716
|
return n ? i = Ne("time", n) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3719
3717
|
}
|
|
3720
|
-
),
|
|
3718
|
+
), Xi = (e = {}) => {
|
|
3721
3719
|
var t = e, {
|
|
3722
3720
|
locale: r = ge()
|
|
3723
3721
|
} = t, n = Ae(t, [
|
|
3724
3722
|
"locale"
|
|
3725
3723
|
]);
|
|
3726
|
-
return
|
|
3727
|
-
},
|
|
3724
|
+
return ji(wt({ locale: r }, n));
|
|
3725
|
+
}, zi = (e = {}) => {
|
|
3728
3726
|
var t = e, {
|
|
3729
3727
|
locale: r = ge()
|
|
3730
3728
|
} = t, n = Ae(t, [
|
|
3731
3729
|
"locale"
|
|
3732
3730
|
]);
|
|
3733
|
-
return
|
|
3734
|
-
},
|
|
3731
|
+
return Vi(wt({ locale: r }, n));
|
|
3732
|
+
}, Yi = (e = {}) => {
|
|
3735
3733
|
var t = e, {
|
|
3736
3734
|
locale: r = ge()
|
|
3737
3735
|
} = t, n = Ae(t, [
|
|
3738
3736
|
"locale"
|
|
3739
3737
|
]);
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3738
|
+
return Wi(wt({ locale: r }, n));
|
|
3739
|
+
}, Zi = qe(
|
|
3742
3740
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3743
|
-
(e, t = ge()) => new
|
|
3741
|
+
(e, t = ge()) => new Sr(e, t, Te().formats, {
|
|
3744
3742
|
ignoreTag: Te().ignoreTag
|
|
3745
3743
|
})
|
|
3746
|
-
),
|
|
3744
|
+
), Ji = (e, t = {}) => {
|
|
3747
3745
|
var r, n, i, s;
|
|
3748
3746
|
let o = t;
|
|
3749
3747
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3756,7 +3754,7 @@ const Ne = (e, t) => {
|
|
|
3756
3754
|
throw new Error(
|
|
3757
3755
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3758
3756
|
);
|
|
3759
|
-
let h =
|
|
3757
|
+
let h = Mr(e, l);
|
|
3760
3758
|
if (!h)
|
|
3761
3759
|
h = (s = (i = (n = (r = Te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3762
3760
|
else if (typeof h != "string")
|
|
@@ -3767,7 +3765,7 @@ const Ne = (e, t) => {
|
|
|
3767
3765
|
return h;
|
|
3768
3766
|
let f = h;
|
|
3769
3767
|
try {
|
|
3770
|
-
f =
|
|
3768
|
+
f = Zi(h, l).format(a);
|
|
3771
3769
|
} catch (c) {
|
|
3772
3770
|
c instanceof Error && console.warn(
|
|
3773
3771
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3775,20 +3773,20 @@ const Ne = (e, t) => {
|
|
|
3775
3773
|
);
|
|
3776
3774
|
}
|
|
3777
3775
|
return f;
|
|
3778
|
-
},
|
|
3776
|
+
}, Qi = (e, t) => Yi(t).format(e), qi = (e, t) => zi(t).format(e), Ki = (e, t) => Xi(t).format(e), es = (e, t = ge()) => Mr(e, t), ts = Le([be, Ie], () => Ji);
|
|
3777
|
+
Le([be], () => Qi);
|
|
3779
3778
|
Le([be], () => qi);
|
|
3780
3779
|
Le([be], () => Ki);
|
|
3781
|
-
Le([be], () => es);
|
|
3782
|
-
Le([be, Ie], () => ts);
|
|
3780
|
+
Le([be, Ie], () => es);
|
|
3783
3781
|
function Wt(e, t) {
|
|
3784
|
-
|
|
3782
|
+
Hr(e, t);
|
|
3785
3783
|
}
|
|
3786
|
-
function
|
|
3787
|
-
|
|
3784
|
+
function rs(e) {
|
|
3785
|
+
Pi({
|
|
3788
3786
|
fallbackLocale: "en"
|
|
3789
3787
|
}), be.set(e);
|
|
3790
3788
|
}
|
|
3791
|
-
const
|
|
3789
|
+
const Xt = {
|
|
3792
3790
|
en: {
|
|
3793
3791
|
generalMin: "Min",
|
|
3794
3792
|
generalMax: "Max",
|
|
@@ -3822,11 +3820,11 @@ const Yt = {
|
|
|
3822
3820
|
showLess: "SHOW LESS"
|
|
3823
3821
|
}
|
|
3824
3822
|
};
|
|
3825
|
-
var
|
|
3823
|
+
var Br = { exports: {} };
|
|
3826
3824
|
(function(e, t) {
|
|
3827
3825
|
(function(r, n) {
|
|
3828
3826
|
e.exports = n();
|
|
3829
|
-
})(
|
|
3827
|
+
})(or, function() {
|
|
3830
3828
|
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", u = "day", h = "week", f = "month", c = "quarter", x = "year", w = "date", b = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
|
|
3831
3829
|
var p = ["th", "st", "nd", "rd"], m = E % 100;
|
|
3832
3830
|
return "[" + E + (p[(m - 20) % 10] || p[m] || p[0]) + "]";
|
|
@@ -3850,7 +3848,7 @@ var Cr = { exports: {} };
|
|
|
3850
3848
|
j[C] = I;
|
|
3851
3849
|
var G = "$isDayjsObject", K = function(E) {
|
|
3852
3850
|
return E instanceof re || !(!E || !E[G]);
|
|
3853
|
-
},
|
|
3851
|
+
}, z = function E(p, m, y) {
|
|
3854
3852
|
var g;
|
|
3855
3853
|
if (!p) return C;
|
|
3856
3854
|
if (typeof p == "string") {
|
|
@@ -3868,12 +3866,12 @@ var Cr = { exports: {} };
|
|
|
3868
3866
|
var m = typeof p == "object" ? p : {};
|
|
3869
3867
|
return m.date = E, m.args = arguments, new re(m);
|
|
3870
3868
|
}, M = D;
|
|
3871
|
-
M.l =
|
|
3869
|
+
M.l = z, M.i = K, M.w = function(E, p) {
|
|
3872
3870
|
return N(E, { locale: p.$L, utc: p.$u, x: p.$x, $offset: p.$offset });
|
|
3873
3871
|
};
|
|
3874
3872
|
var re = function() {
|
|
3875
3873
|
function E(m) {
|
|
3876
|
-
this.$L =
|
|
3874
|
+
this.$L = z(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[G] = !0;
|
|
3877
3875
|
}
|
|
3878
3876
|
var p = E.prototype;
|
|
3879
3877
|
return p.parse = function(m) {
|
|
@@ -4073,7 +4071,7 @@ var Cr = { exports: {} };
|
|
|
4073
4071
|
return j[this.$L];
|
|
4074
4072
|
}, p.locale = function(m, y) {
|
|
4075
4073
|
if (!m) return this.$L;
|
|
4076
|
-
var g = this.clone(), _ =
|
|
4074
|
+
var g = this.clone(), _ = z(m, y, !0);
|
|
4077
4075
|
return _ && (g.$L = _), g;
|
|
4078
4076
|
}, p.clone = function() {
|
|
4079
4077
|
return M.w(this.$d, this);
|
|
@@ -4093,18 +4091,18 @@ var Cr = { exports: {} };
|
|
|
4093
4091
|
};
|
|
4094
4092
|
}), N.extend = function(E, p) {
|
|
4095
4093
|
return E.$i || (E(p, re, N), E.$i = !0), N;
|
|
4096
|
-
}, N.locale =
|
|
4094
|
+
}, N.locale = z, N.isDayjs = K, N.unix = function(E) {
|
|
4097
4095
|
return N(1e3 * E);
|
|
4098
4096
|
}, N.en = j[C], N.Ls = j, N.p = {}, N;
|
|
4099
4097
|
});
|
|
4100
|
-
})(
|
|
4101
|
-
var
|
|
4102
|
-
const
|
|
4103
|
-
var
|
|
4098
|
+
})(Br);
|
|
4099
|
+
var ns = Br.exports;
|
|
4100
|
+
const zt = /* @__PURE__ */ Et(ns);
|
|
4101
|
+
var Pr = { exports: {} };
|
|
4104
4102
|
(function(e, t) {
|
|
4105
4103
|
(function(r, n) {
|
|
4106
4104
|
e.exports = n();
|
|
4107
|
-
})(
|
|
4105
|
+
})(or, function() {
|
|
4108
4106
|
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4109
4107
|
return function(s, o, a) {
|
|
4110
4108
|
var l = o.prototype;
|
|
@@ -4136,8 +4134,8 @@ var Nr = { exports: {} };
|
|
|
4136
4134
|
C === void 0 && (C = "");
|
|
4137
4135
|
var j = C.match(n);
|
|
4138
4136
|
if (!j) return null;
|
|
4139
|
-
var G = ("" + j[0]).match(i) || ["-", 0, 0], K = G[0],
|
|
4140
|
-
return
|
|
4137
|
+
var G = ("" + j[0]).match(i) || ["-", 0, 0], K = G[0], z = 60 * +G[1] + +G[2];
|
|
4138
|
+
return z === 0 ? 0 : K === "+" ? z : -z;
|
|
4141
4139
|
}(b), b === null)) return this;
|
|
4142
4140
|
var I = Math.abs(b) <= 16 ? 60 * b : b, A = this;
|
|
4143
4141
|
if (S) return A.$offset = I, A.$u = b === 0, A;
|
|
@@ -4173,17 +4171,17 @@ var Nr = { exports: {} };
|
|
|
4173
4171
|
};
|
|
4174
4172
|
};
|
|
4175
4173
|
});
|
|
4176
|
-
})(
|
|
4177
|
-
var
|
|
4178
|
-
const
|
|
4179
|
-
function
|
|
4180
|
-
|
|
4174
|
+
})(Pr);
|
|
4175
|
+
var is = Pr.exports;
|
|
4176
|
+
const ss = /* @__PURE__ */ Et(is);
|
|
4177
|
+
function os(e) {
|
|
4178
|
+
Fr(e, "svelte-1wlv0rl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
4181
4179
|
}
|
|
4182
|
-
function
|
|
4180
|
+
function Yt(e, t, r) {
|
|
4183
4181
|
const n = e.slice();
|
|
4184
4182
|
return n[48] = t[r], n[50] = r, n;
|
|
4185
4183
|
}
|
|
4186
|
-
function
|
|
4184
|
+
function Zt(e) {
|
|
4187
4185
|
let t;
|
|
4188
4186
|
return {
|
|
4189
4187
|
c() {
|
|
@@ -4222,20 +4220,20 @@ function Qt(e) {
|
|
|
4222
4220
|
}
|
|
4223
4221
|
};
|
|
4224
4222
|
}
|
|
4225
|
-
function
|
|
4226
|
-
let t, r, n, i, s =
|
|
4223
|
+
function Jt(e) {
|
|
4224
|
+
let t, r, n, i, s = Ot(
|
|
4227
4225
|
/*paymentMethodsToShow*/
|
|
4228
4226
|
e[8]
|
|
4229
4227
|
), o = [];
|
|
4230
4228
|
for (let u = 0; u < s.length; u += 1)
|
|
4231
|
-
o[u] =
|
|
4229
|
+
o[u] = Qt(Yt(e, s, u));
|
|
4232
4230
|
let a = (
|
|
4233
4231
|
/*noPaymentMethodsAvailable*/
|
|
4234
4232
|
e[13] && !/*showSpinner*/
|
|
4235
|
-
e[12] &&
|
|
4233
|
+
e[12] && qt(e)
|
|
4236
4234
|
), l = (
|
|
4237
4235
|
/*methodsButtonToggleText*/
|
|
4238
|
-
e[7] &&
|
|
4236
|
+
e[7] && Kt(e)
|
|
4239
4237
|
);
|
|
4240
4238
|
return {
|
|
4241
4239
|
c() {
|
|
@@ -4253,14 +4251,14 @@ function qt(e) {
|
|
|
4253
4251
|
p(u, h) {
|
|
4254
4252
|
if (h[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
4255
4253
|
115008) {
|
|
4256
|
-
s =
|
|
4254
|
+
s = Ot(
|
|
4257
4255
|
/*paymentMethodsToShow*/
|
|
4258
4256
|
u[8]
|
|
4259
4257
|
);
|
|
4260
4258
|
let f;
|
|
4261
4259
|
for (f = 0; f < s.length; f += 1) {
|
|
4262
|
-
const c =
|
|
4263
|
-
o[f] ? o[f].p(c, h) : (o[f] =
|
|
4260
|
+
const c = Yt(u, s, f);
|
|
4261
|
+
o[f] ? o[f].p(c, h) : (o[f] = Qt(c), o[f].c(), o[f].m(r, n));
|
|
4264
4262
|
}
|
|
4265
4263
|
for (; f < o.length; f += 1)
|
|
4266
4264
|
o[f].d(1);
|
|
@@ -4268,15 +4266,15 @@ function qt(e) {
|
|
|
4268
4266
|
}
|
|
4269
4267
|
/*noPaymentMethodsAvailable*/
|
|
4270
4268
|
u[13] && !/*showSpinner*/
|
|
4271
|
-
u[12] ? a ? a.p(u, h) : (a =
|
|
4272
|
-
u[7] ? l ? l.p(u, h) : (l =
|
|
4269
|
+
u[12] ? a ? a.p(u, h) : (a = qt(u), a.c(), a.m(r, null)) : a && (a.d(1), a = null), /*methodsButtonToggleText*/
|
|
4270
|
+
u[7] ? l ? l.p(u, h) : (l = Kt(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
4273
4271
|
},
|
|
4274
4272
|
d(u) {
|
|
4275
4273
|
u && oe(t), Wr(o, u), a && a.d(), l && l.d(), e[27](null);
|
|
4276
4274
|
}
|
|
4277
4275
|
};
|
|
4278
4276
|
}
|
|
4279
|
-
function
|
|
4277
|
+
function Qt(e) {
|
|
4280
4278
|
let t, r, n, i, s, o, a, l, u = (
|
|
4281
4279
|
/*payMeth*/
|
|
4282
4280
|
(e[48].Label || /*payMeth*/
|
|
@@ -4296,7 +4294,7 @@ function Kt(e) {
|
|
|
4296
4294
|
), C, j, G, K = (
|
|
4297
4295
|
/*$_*/
|
|
4298
4296
|
e[14]("generalMax") + ""
|
|
4299
|
-
),
|
|
4297
|
+
), z, N, M = (
|
|
4300
4298
|
/*formatter*/
|
|
4301
4299
|
e[15].format(
|
|
4302
4300
|
/*payMeth*/
|
|
@@ -4317,9 +4315,9 @@ function Kt(e) {
|
|
|
4317
4315
|
}
|
|
4318
4316
|
return {
|
|
4319
4317
|
c() {
|
|
4320
|
-
t = F("div"), r = F("div"), n = F("img"), o = te(), a = F("div"), l = F("span"), h = ee(u), f = te(), c = F("div"), x = F("span"), b = ee(w), S = te(), I = ee(P), A = te(), C = ee(D), j = te(), G = F("span"),
|
|
4318
|
+
t = F("div"), r = F("div"), n = F("img"), o = te(), a = F("div"), l = F("span"), h = ee(u), f = te(), c = F("div"), x = F("span"), b = ee(w), S = te(), I = ee(P), A = te(), C = ee(D), j = te(), G = F("span"), z = ee(K), N = te(), re = ee(M), pe = te(), p = ee(E), Lt(n.src, i = /*payMeth*/
|
|
4321
4319
|
e[48].LogoUrl) || k(n, "src", i), k(n, "alt", s = /*payMeth*/
|
|
4322
|
-
e[48].Label), k(r, "class", "MethodLogo"), k(a, "class", "MethodTitle"), k(x, "class", "Limits"), k(G, "class", "Limits"), k(c, "class", "MethodLimits"), k(t, "class", "SelectorWrapper"),
|
|
4320
|
+
e[48].Label), k(r, "class", "MethodLogo"), k(a, "class", "MethodTitle"), k(x, "class", "Limits"), k(G, "class", "Limits"), k(c, "class", "MethodLimits"), k(t, "class", "SelectorWrapper"), We(
|
|
4323
4321
|
t,
|
|
4324
4322
|
"checked",
|
|
4325
4323
|
/*selectedPaymentMethod*/
|
|
@@ -4328,14 +4326,14 @@ function Kt(e) {
|
|
|
4328
4326
|
);
|
|
4329
4327
|
},
|
|
4330
4328
|
m(_, v) {
|
|
4331
|
-
le(_, t, v), T(t, r), T(r, n), T(t, o), T(t, a), T(a, l), T(l, h), T(t, f), T(t, c), T(c, x), T(x, b), T(x, S), T(x, I), T(x, A), T(x, C), T(c, j), T(c, G), T(G,
|
|
4329
|
+
le(_, t, v), T(t, r), T(r, n), T(t, o), T(t, a), T(a, l), T(l, h), T(t, f), T(t, c), T(c, x), T(x, b), T(x, S), T(x, I), T(x, A), T(x, C), T(c, j), T(c, G), T(G, z), T(G, N), T(G, re), T(G, pe), T(G, p), m || (y = [
|
|
4332
4330
|
ut(t, "click", g),
|
|
4333
|
-
ut(t, "keyup",
|
|
4331
|
+
ut(t, "keyup", us)
|
|
4334
4332
|
], m = !0);
|
|
4335
4333
|
},
|
|
4336
4334
|
p(_, v) {
|
|
4337
4335
|
e = _, v[0] & /*paymentMethodsToShow*/
|
|
4338
|
-
256 && !
|
|
4336
|
+
256 && !Lt(n.src, i = /*payMeth*/
|
|
4339
4337
|
e[48].LogoUrl) && k(n, "src", i), v[0] & /*paymentMethodsToShow*/
|
|
4340
4338
|
256 && s !== (s = /*payMeth*/
|
|
4341
4339
|
e[48].Label) && k(n, "alt", s), v[0] & /*paymentMethodsToShow*/
|
|
@@ -4352,7 +4350,7 @@ function Kt(e) {
|
|
|
4352
4350
|
256 && D !== (D = /*payMeth*/
|
|
4353
4351
|
e[48].DisplayCurrency.Name + "") && ie(C, D), v[0] & /*$_*/
|
|
4354
4352
|
16384 && K !== (K = /*$_*/
|
|
4355
|
-
e[14]("generalMax") + "") && ie(
|
|
4353
|
+
e[14]("generalMax") + "") && ie(z, K), v[0] & /*paymentMethodsToShow*/
|
|
4356
4354
|
256 && M !== (M = /*formatter*/
|
|
4357
4355
|
e[15].format(
|
|
4358
4356
|
/*payMeth*/
|
|
@@ -4360,7 +4358,7 @@ function Kt(e) {
|
|
|
4360
4358
|
) + "") && ie(re, M), v[0] & /*paymentMethodsToShow*/
|
|
4361
4359
|
256 && E !== (E = /*payMeth*/
|
|
4362
4360
|
e[48].DisplayCurrency.Name + "") && ie(p, E), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
4363
|
-
320 &&
|
|
4361
|
+
320 && We(
|
|
4364
4362
|
t,
|
|
4365
4363
|
"checked",
|
|
4366
4364
|
/*selectedPaymentMethod*/
|
|
@@ -4373,7 +4371,7 @@ function Kt(e) {
|
|
|
4373
4371
|
}
|
|
4374
4372
|
};
|
|
4375
4373
|
}
|
|
4376
|
-
function
|
|
4374
|
+
function qt(e) {
|
|
4377
4375
|
let t, r, n, i, s, o = (
|
|
4378
4376
|
/*$_*/
|
|
4379
4377
|
e[14]("error") + ""
|
|
@@ -4383,7 +4381,7 @@ function er(e) {
|
|
|
4383
4381
|
), f;
|
|
4384
4382
|
return {
|
|
4385
4383
|
c() {
|
|
4386
|
-
t = F("div"), r = F("div"), n = F("div"), n.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', i = te(), s = F("p"), a = ee(o), l = te(), u = F("p"), f = ee(h), k(n, "class", "IconWarning"), k(s, "class", "EmptyContentMessageTitle"), k(r, "class", "EmptyContentMessageHeader"), k(u, "class", "EmptyContentMessageText"), k(t, "class", "EmptyContentMessageWrapper"),
|
|
4384
|
+
t = F("div"), r = F("div"), n = F("div"), n.innerHTML = '<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>', i = te(), s = F("p"), a = ee(o), l = te(), u = F("p"), f = ee(h), k(n, "class", "IconWarning"), k(s, "class", "EmptyContentMessageTitle"), k(r, "class", "EmptyContentMessageHeader"), k(u, "class", "EmptyContentMessageText"), k(t, "class", "EmptyContentMessageWrapper"), We(
|
|
4387
4385
|
t,
|
|
4388
4386
|
"EmptyContentMessageDesktop",
|
|
4389
4387
|
/*desktopView*/
|
|
@@ -4399,7 +4397,7 @@ function er(e) {
|
|
|
4399
4397
|
c[14]("error") + "") && ie(a, o), x[0] & /*$_*/
|
|
4400
4398
|
16384 && h !== (h = /*$_*/
|
|
4401
4399
|
c[14]("noPaymentMethods") + "") && ie(f, h), x[0] & /*desktopView*/
|
|
4402
|
-
2048 &&
|
|
4400
|
+
2048 && We(
|
|
4403
4401
|
t,
|
|
4404
4402
|
"EmptyContentMessageDesktop",
|
|
4405
4403
|
/*desktopView*/
|
|
@@ -4411,7 +4409,7 @@ function er(e) {
|
|
|
4411
4409
|
}
|
|
4412
4410
|
};
|
|
4413
4411
|
}
|
|
4414
|
-
function
|
|
4412
|
+
function Kt(e) {
|
|
4415
4413
|
let t, r, n, i;
|
|
4416
4414
|
return {
|
|
4417
4415
|
c() {
|
|
@@ -4441,7 +4439,7 @@ function tr(e) {
|
|
|
4441
4439
|
}
|
|
4442
4440
|
};
|
|
4443
4441
|
}
|
|
4444
|
-
function
|
|
4442
|
+
function er(e) {
|
|
4445
4443
|
let t, r, n;
|
|
4446
4444
|
return {
|
|
4447
4445
|
c() {
|
|
@@ -4521,31 +4519,31 @@ function rr(e) {
|
|
|
4521
4519
|
}
|
|
4522
4520
|
};
|
|
4523
4521
|
}
|
|
4524
|
-
function
|
|
4522
|
+
function as(e) {
|
|
4525
4523
|
let t, r, n, i = (
|
|
4526
4524
|
/*showSpinner*/
|
|
4527
|
-
e[12] &&
|
|
4525
|
+
e[12] && Zt(e)
|
|
4528
4526
|
), s = (
|
|
4529
4527
|
/*showMethodsList*/
|
|
4530
4528
|
(e[9] || /*desktopView*/
|
|
4531
|
-
e[11]) &&
|
|
4529
|
+
e[11]) && Jt(e)
|
|
4532
4530
|
), o = (
|
|
4533
4531
|
/*errorMessage*/
|
|
4534
|
-
e[10] &&
|
|
4532
|
+
e[10] && er(e)
|
|
4535
4533
|
);
|
|
4536
4534
|
return {
|
|
4537
4535
|
c() {
|
|
4538
|
-
i && i.c(), t = te(), s && s.c(), r = te(), o && o.c(), n =
|
|
4536
|
+
i && i.c(), t = te(), s && s.c(), r = te(), o && o.c(), n = Xr();
|
|
4539
4537
|
},
|
|
4540
4538
|
m(a, l) {
|
|
4541
4539
|
i && i.m(a, l), le(a, t, l), s && s.m(a, l), le(a, r, l), o && o.m(a, l), le(a, n, l);
|
|
4542
4540
|
},
|
|
4543
4541
|
p(a, l) {
|
|
4544
4542
|
/*showSpinner*/
|
|
4545
|
-
a[12] ? i ? i.p(a, l) : (i =
|
|
4543
|
+
a[12] ? i ? i.p(a, l) : (i = Zt(a), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
|
|
4546
4544
|
a[9] || /*desktopView*/
|
|
4547
|
-
a[11] ? s ? s.p(a, l) : (s =
|
|
4548
|
-
a[10] ? o ? o.p(a, l) : (o =
|
|
4545
|
+
a[11] ? s ? s.p(a, l) : (s = Jt(a), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*errorMessage*/
|
|
4546
|
+
a[10] ? o ? o.p(a, l) : (o = er(a), o.c(), o.m(n.parentNode, n)) : o && (o.d(1), o = null);
|
|
4549
4547
|
},
|
|
4550
4548
|
i: se,
|
|
4551
4549
|
o: se,
|
|
@@ -4554,16 +4552,16 @@ function us(e) {
|
|
|
4554
4552
|
}
|
|
4555
4553
|
};
|
|
4556
4554
|
}
|
|
4557
|
-
const
|
|
4555
|
+
const us = () => {
|
|
4558
4556
|
};
|
|
4559
|
-
function
|
|
4557
|
+
function ls(e, t, r) {
|
|
4560
4558
|
let n;
|
|
4561
|
-
|
|
4562
|
-
let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: o } = t, { session: a } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: f } = t, { translationurl: c = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, S = [], P, I, A = "", D = [], C = !0, j = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", K,
|
|
4559
|
+
kr(e, ts, (d) => r(14, n = d)), zt.extend(ss);
|
|
4560
|
+
let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: o } = t, { session: a } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: f } = t, { translationurl: c = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, S = [], P, I, A = "", D = [], C = !0, j = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", K, z = !0, N = !1, M = !1;
|
|
4563
4561
|
var re;
|
|
4564
4562
|
(function(d) {
|
|
4565
4563
|
d.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", d.Success = "Success", d.JwtTokenError = "JwtTokenError";
|
|
4566
|
-
})(re || (re = {})),
|
|
4564
|
+
})(re || (re = {})), Qr();
|
|
4567
4565
|
const pe = () => {
|
|
4568
4566
|
let d = c;
|
|
4569
4567
|
if (d)
|
|
@@ -4575,15 +4573,15 @@ function hs(e, t, r) {
|
|
|
4575
4573
|
console.log(B);
|
|
4576
4574
|
});
|
|
4577
4575
|
};
|
|
4578
|
-
Object.keys(
|
|
4579
|
-
Wt(d,
|
|
4576
|
+
Object.keys(Xt).forEach((d) => {
|
|
4577
|
+
Wt(d, Xt[d]);
|
|
4580
4578
|
});
|
|
4581
4579
|
const E = () => {
|
|
4582
|
-
|
|
4580
|
+
rs(i);
|
|
4583
4581
|
}, p = () => {
|
|
4584
4582
|
r(12, N = !0);
|
|
4585
4583
|
const d = new URL(`${o}/v1/player/${l}/payment/GetPaymentMetadata`), B = new Headers();
|
|
4586
|
-
B.append("accept", "application/json"), B.append("Content-Type", "application/json"), B.append("X-Client-Request-Timestamp",
|
|
4584
|
+
B.append("accept", "application/json"), B.append("Content-Type", "application/json"), B.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4587
4585
|
const ue = {
|
|
4588
4586
|
method: "POST",
|
|
4589
4587
|
headers: B,
|
|
@@ -4593,35 +4591,35 @@ function hs(e, t, r) {
|
|
|
4593
4591
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
4594
4592
|
})
|
|
4595
4593
|
};
|
|
4596
|
-
fetch(d, ue).then((
|
|
4594
|
+
fetch(d, ue).then((W) => W.json()).then((W) => {
|
|
4597
4595
|
var ye;
|
|
4598
|
-
if (
|
|
4599
|
-
r(10, G =
|
|
4596
|
+
if (W.error) {
|
|
4597
|
+
r(10, G = W.error);
|
|
4600
4598
|
return;
|
|
4601
4599
|
}
|
|
4602
|
-
if (
|
|
4603
|
-
K =
|
|
4600
|
+
if (W.ResponseCode !== re.Success) {
|
|
4601
|
+
K = W.ResponseCode, _();
|
|
4604
4602
|
return;
|
|
4605
4603
|
}
|
|
4606
|
-
S = (ye =
|
|
4604
|
+
S = (ye = W.PaymentMethods) != null && ye.Ordering ? m(W) : y(W), r(7, A = f && +f > 0 && S.length > +f ? n("showAll") : ""), r(8, D = A ? S.slice(0, +f) : S), window.postMessage(
|
|
4607
4605
|
{
|
|
4608
4606
|
type: "StartSessionCountdown",
|
|
4609
4607
|
paymentMethodName: S[0].Name,
|
|
4610
|
-
xPaymentSessionToken:
|
|
4608
|
+
xPaymentSessionToken: W.XPaymentSessionToken
|
|
4611
4609
|
},
|
|
4612
4610
|
window.location.href
|
|
4613
|
-
);
|
|
4611
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
|
|
4614
4612
|
}).finally(() => {
|
|
4615
|
-
r(12, N = !1), r(13, M = !D.length);
|
|
4613
|
+
r(12, N = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), r(13, M = !D.length);
|
|
4616
4614
|
});
|
|
4617
4615
|
}, m = (d) => {
|
|
4618
4616
|
const B = [];
|
|
4619
4617
|
return d.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((ue) => {
|
|
4620
|
-
const
|
|
4621
|
-
if (
|
|
4622
|
-
const ye = (
|
|
4623
|
-
B.push(Ue(Re({},
|
|
4624
|
-
LogoUrl:
|
|
4618
|
+
const W = d.PaymentMethods.PaymentMethods.find((ye) => ye.Name === ue);
|
|
4619
|
+
if (W) {
|
|
4620
|
+
const ye = (W == null ? void 0 : W.Logos.find((Ke) => Ke.LogoType === "Desktop")) || {}, Cr = (W == null ? void 0 : W.Logos.find((Ke) => Ke.LogoType === "Mobile")) || {}, St = z ? ye : Cr;
|
|
4621
|
+
B.push(Ue(Re({}, W), {
|
|
4622
|
+
LogoUrl: St.LogoUrl ? `https:${St.LogoUrl}` : ""
|
|
4625
4623
|
}));
|
|
4626
4624
|
}
|
|
4627
4625
|
}), B;
|
|
@@ -4646,7 +4644,7 @@ function hs(e, t, r) {
|
|
|
4646
4644
|
window.location.href
|
|
4647
4645
|
);
|
|
4648
4646
|
}, v = () => {
|
|
4649
|
-
r(11,
|
|
4647
|
+
r(11, z = b === "false");
|
|
4650
4648
|
}, $ = () => {
|
|
4651
4649
|
D == S ? V() : U();
|
|
4652
4650
|
}, U = () => {
|
|
@@ -4675,7 +4673,7 @@ function hs(e, t, r) {
|
|
|
4675
4673
|
);
|
|
4676
4674
|
});
|
|
4677
4675
|
};
|
|
4678
|
-
|
|
4676
|
+
Jr(() => (window.addEventListener("message", me, !1), () => {
|
|
4679
4677
|
window.removeEventListener("message", me, !1);
|
|
4680
4678
|
}));
|
|
4681
4679
|
const me = (d) => {
|
|
@@ -4715,7 +4713,7 @@ function hs(e, t, r) {
|
|
|
4715
4713
|
D,
|
|
4716
4714
|
C,
|
|
4717
4715
|
G,
|
|
4718
|
-
|
|
4716
|
+
z,
|
|
4719
4717
|
N,
|
|
4720
4718
|
M,
|
|
4721
4719
|
n,
|
|
@@ -4734,14 +4732,14 @@ function hs(e, t, r) {
|
|
|
4734
4732
|
ae
|
|
4735
4733
|
];
|
|
4736
4734
|
}
|
|
4737
|
-
class
|
|
4735
|
+
class hs extends hn {
|
|
4738
4736
|
constructor(t) {
|
|
4739
|
-
super(),
|
|
4737
|
+
super(), un(
|
|
4740
4738
|
this,
|
|
4741
4739
|
t,
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4740
|
+
ls,
|
|
4741
|
+
as,
|
|
4742
|
+
rr,
|
|
4745
4743
|
{
|
|
4746
4744
|
lang: 0,
|
|
4747
4745
|
local: 18,
|
|
@@ -4756,7 +4754,7 @@ class fs extends cn {
|
|
|
4756
4754
|
clientstylingurl: 4,
|
|
4757
4755
|
ismobileview: 24
|
|
4758
4756
|
},
|
|
4759
|
-
|
|
4757
|
+
os,
|
|
4760
4758
|
[-1, -1]
|
|
4761
4759
|
);
|
|
4762
4760
|
}
|
|
@@ -4833,7 +4831,7 @@ class fs extends cn {
|
|
|
4833
4831
|
this.$$set({ ismobileview: t }), q();
|
|
4834
4832
|
}
|
|
4835
4833
|
}
|
|
4836
|
-
|
|
4834
|
+
ln(hs, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
4837
4835
|
export {
|
|
4838
|
-
|
|
4836
|
+
hs as default
|
|
4839
4837
|
};
|