@everymatrix/cashier-verifications 1.70.1 → 1.71.1
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/CashierVerifications-8V6Jd8GB.cjs +18 -0
- package/components/{CashierVerifications-Cpezty7b.js → CashierVerifications-D2VbhsZy.js} +717 -721
- package/components/{CashierVerifications-5TlkZOu9.js → CashierVerifications-DkIAH7xq.js} +659 -663
- package/components/{CashierVideoModal-CfvC_JtE.js → CashierVideoModal-BdiwRhUs.js} +15 -15
- package/components/{CashierVideoModal-W0bdqR6Y.js → CashierVideoModal-C-Ev6exS.js} +19 -19
- package/components/{CashierVideoModal-DKese1BS.cjs → CashierVideoModal-C64Lk299.cjs} +1 -1
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-B8lYKrBg.cjs +0 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Fr = Object.defineProperty, Vr = Object.defineProperties;
|
|
2
2
|
var Gr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Pt = Object.getOwnPropertySymbols;
|
|
4
4
|
var jr = Object.prototype.hasOwnProperty, zr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ke = (e, t, r) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
jr.call(t, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
zr.call(t, r) &&
|
|
7
|
+
jr.call(t, r) && Ke(e, r, t[r]);
|
|
8
|
+
if (Pt)
|
|
9
|
+
for (var r of Pt(t))
|
|
10
|
+
zr.call(t, r) && Ke(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, At = (e, t) => Vr(e, Gr(t));
|
|
13
|
-
var Y = (e, t, r) => (
|
|
13
|
+
var Y = (e, t, r) => (Ke(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var $t = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var s = (o) => {
|
|
16
16
|
try {
|
|
@@ -35,18 +35,18 @@ function ir(e) {
|
|
|
35
35
|
function Bt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ie(e) {
|
|
39
39
|
e.forEach(ir);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function bt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function nr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let Ve;
|
|
48
|
+
function ms(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ve || (Ve = document.createElement("a")), Ve.href = t, e === Ve.href);
|
|
50
50
|
}
|
|
51
51
|
function Xr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
@@ -90,10 +90,10 @@ function Yr(e, t) {
|
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ae(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ne(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
99
|
function Zr(e, t) {
|
|
@@ -103,25 +103,25 @@ function Zr(e, t) {
|
|
|
103
103
|
function Z(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ps(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function yt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function _e() {
|
|
113
|
+
return yt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function gs() {
|
|
116
|
+
return yt("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function xt(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
121
|
function ee(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function he(e, t, r) {
|
|
125
125
|
const i = t.toLowerCase();
|
|
126
126
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ee(e, t, r);
|
|
127
127
|
}
|
|
@@ -132,7 +132,7 @@ function Qr(e, t) {
|
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function we(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
138
|
function Kr(e) {
|
|
@@ -144,65 +144,65 @@ function Kr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let Ce;
|
|
148
|
+
function Me(e) {
|
|
149
|
+
Ce = e;
|
|
150
150
|
}
|
|
151
151
|
function ei() {
|
|
152
|
-
if (!
|
|
152
|
+
if (!Ce)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return Ce;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function vs(e) {
|
|
157
157
|
ei().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
159
|
+
const xe = [], at = [];
|
|
160
|
+
let Ee = [];
|
|
161
161
|
const Ct = [], ti = /* @__PURE__ */ Promise.resolve();
|
|
162
|
-
let
|
|
162
|
+
let ut = !1;
|
|
163
163
|
function ri() {
|
|
164
|
-
|
|
164
|
+
ut || (ut = !0, ti.then(Q));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function lt(e) {
|
|
167
|
+
Ee.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
169
|
+
const et = /* @__PURE__ */ new Set();
|
|
170
|
+
let be = 0;
|
|
171
171
|
function Q() {
|
|
172
|
-
if (
|
|
172
|
+
if (be !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = Ce;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
177
|
+
for (; be < xe.length; ) {
|
|
178
|
+
const t = xe[be];
|
|
179
|
+
be++, Me(t), ii(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw xe.length = 0, be = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (Me(null), xe.length = 0, be = 0; at.length; )
|
|
185
|
+
at.pop()();
|
|
186
|
+
for (let t = 0; t < Ee.length; t += 1) {
|
|
187
|
+
const r = Ee[t];
|
|
188
|
+
et.has(r) || (et.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
190
|
+
Ee.length = 0;
|
|
191
|
+
} while (xe.length);
|
|
192
192
|
for (; Ct.length; )
|
|
193
193
|
Ct.pop()();
|
|
194
|
-
|
|
194
|
+
ut = !1, et.clear(), Me(e);
|
|
195
195
|
}
|
|
196
196
|
function ii(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Ie(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
function ni(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
Ee.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), Ee = t;
|
|
206
206
|
}
|
|
207
207
|
const si = /* @__PURE__ */ new Set();
|
|
208
208
|
function oi(e, t) {
|
|
@@ -213,21 +213,21 @@ function Dt(e) {
|
|
|
213
213
|
}
|
|
214
214
|
function ai(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
|
-
i && i.m(t, r),
|
|
217
|
-
const s = e.$$.on_mount.map(ir).filter(
|
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
219
|
-
}), n.forEach(
|
|
216
|
+
i && i.m(t, r), lt(() => {
|
|
217
|
+
const s = e.$$.on_mount.map(ir).filter(bt);
|
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ie(s), e.$$.on_mount = [];
|
|
219
|
+
}), n.forEach(lt);
|
|
220
220
|
}
|
|
221
221
|
function ui(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (ni(r.after_update),
|
|
223
|
+
r.fragment !== null && (ni(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
224
224
|
}
|
|
225
225
|
function li(e, t) {
|
|
226
|
-
e.$$.dirty[0] === -1 && (
|
|
226
|
+
e.$$.dirty[0] === -1 && (xe.push(e), ri(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
228
|
function hi(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
229
|
-
const o =
|
|
230
|
-
|
|
229
|
+
const o = Ce;
|
|
230
|
+
Me(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
@@ -254,15 +254,15 @@ function hi(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
254
254
|
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
255
255
|
const S = x.length ? x[0] : p;
|
|
256
256
|
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h && li(e, c)), p;
|
|
257
|
-
}) : [], u.update(), h = !0,
|
|
257
|
+
}) : [], u.update(), h = !0, Ie(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
258
258
|
if (t.hydrate) {
|
|
259
259
|
const c = Jr(t.target);
|
|
260
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
260
|
+
u.fragment && u.fragment.l(c), c.forEach(ne);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
263
|
t.intro && oi(e.$$.fragment), ai(e, t.target, t.anchor), Q();
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
Me(o);
|
|
266
266
|
}
|
|
267
267
|
let or;
|
|
268
268
|
typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
@@ -316,10 +316,10 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
316
316
|
* @param {HTMLElement} [anchor]
|
|
317
317
|
*/
|
|
318
318
|
m: function(u, h) {
|
|
319
|
-
|
|
319
|
+
ae(u, a, h);
|
|
320
320
|
},
|
|
321
321
|
d: function(u) {
|
|
322
|
-
u &&
|
|
322
|
+
u && ne(a);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
};
|
|
@@ -331,13 +331,13 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
331
331
|
s in i && (r[s] = [t(s)]);
|
|
332
332
|
for (const s of this.attributes) {
|
|
333
333
|
const a = this.$$g_p(s.name);
|
|
334
|
-
a in this.$$d || (this.$$d[a] =
|
|
334
|
+
a in this.$$d || (this.$$d[a] = je(a, s.value, this.$$p_d, "toProp"));
|
|
335
335
|
}
|
|
336
336
|
for (const s in this.$$p_d)
|
|
337
337
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
338
338
|
this.$$c = new this.$$ctor({
|
|
339
339
|
target: this.shadowRoot || this,
|
|
340
|
-
props: At(
|
|
340
|
+
props: At(Ot({}, this.$$d), {
|
|
341
341
|
$$slots: r,
|
|
342
342
|
$$scope: {
|
|
343
343
|
ctx: []
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
348
348
|
this.$$r = !0;
|
|
349
349
|
for (const s in this.$$p_d)
|
|
350
350
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
351
|
-
const a =
|
|
351
|
+
const a = je(
|
|
352
352
|
s,
|
|
353
353
|
this.$$d[s],
|
|
354
354
|
this.$$p_d,
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
372
372
|
// and setting attributes through setAttribute etc, this is helpful
|
|
373
373
|
attributeChangedCallback(t, r, i) {
|
|
374
374
|
var n;
|
|
375
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
375
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = je(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
376
376
|
}
|
|
377
377
|
disconnectedCallback() {
|
|
378
378
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
385
385
|
) || t;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
function
|
|
388
|
+
function je(e, t, r, i) {
|
|
389
389
|
var s;
|
|
390
390
|
const n = (s = r[e]) == null ? void 0 : s.type;
|
|
391
391
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -433,7 +433,7 @@ function fi(e, t, r, i, n, s) {
|
|
|
433
433
|
},
|
|
434
434
|
set(o) {
|
|
435
435
|
var u;
|
|
436
|
-
o =
|
|
436
|
+
o = je(l, o, t), this.$$d[l] = o, (u = this.$$c) == null || u.$set({ [l]: o });
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), i.forEach((l) => {
|
|
@@ -476,7 +476,7 @@ class ci {
|
|
|
476
476
|
* @returns {() => void}
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
|
-
if (!
|
|
479
|
+
if (!bt(r))
|
|
480
480
|
return K;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
@@ -494,24 +494,24 @@ class ci {
|
|
|
494
494
|
}
|
|
495
495
|
const di = "4";
|
|
496
496
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(di);
|
|
497
|
-
const
|
|
497
|
+
const ye = [];
|
|
498
498
|
function mi(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: Ne(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Ne(e, t = K) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
507
|
if (nr(e, l) && (e = l, r)) {
|
|
508
|
-
const o = !
|
|
508
|
+
const o = !ye.length;
|
|
509
509
|
for (const u of i)
|
|
510
|
-
u[1](),
|
|
510
|
+
u[1](), ye.push(u, e);
|
|
511
511
|
if (o) {
|
|
512
|
-
for (let u = 0; u <
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
for (let u = 0; u < ye.length; u += 2)
|
|
513
|
+
ye[u][0](ye[u + 1]);
|
|
514
|
+
ye.length = 0;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -526,7 +526,7 @@ function Re(e, t = K) {
|
|
|
526
526
|
}
|
|
527
527
|
return { set: n, update: s, subscribe: a };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Oe(e, t, r) {
|
|
530
530
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -540,12 +540,12 @@ function Ae(e, t, r) {
|
|
|
540
540
|
return;
|
|
541
541
|
c();
|
|
542
542
|
const S = t(i ? u[0] : u, a, l);
|
|
543
|
-
s ? a(S) : c =
|
|
543
|
+
s ? a(S) : c = bt(S) ? S : K;
|
|
544
544
|
}, x = n.map(
|
|
545
545
|
(S, v) => sr(
|
|
546
546
|
S,
|
|
547
|
-
(
|
|
548
|
-
u[v] =
|
|
547
|
+
(C) => {
|
|
548
|
+
u[v] = C, h &= ~(1 << v), o && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
551
|
h |= 1 << v;
|
|
@@ -553,12 +553,12 @@ function Ae(e, t, r) {
|
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
555
|
return o = !0, p(), function() {
|
|
556
|
-
|
|
556
|
+
Ie(x), c(), o = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
var ar = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
|
-
function
|
|
561
|
+
function _t(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
564
564
|
var pi = function(t) {
|
|
@@ -578,19 +578,19 @@ function xi(e) {
|
|
|
578
578
|
function _i(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
581
|
+
function De(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Se(_i(e), e, t) : e;
|
|
583
583
|
}
|
|
584
584
|
function Ei(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return De(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
function wi(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
591
|
+
return Se;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
593
|
+
return typeof r == "function" ? r : Se;
|
|
594
594
|
}
|
|
595
595
|
function Si(e) {
|
|
596
596
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -613,51 +613,65 @@ function Ti(e, t) {
|
|
|
613
613
|
function Hi(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
615
|
return r.isMergeableObject(e) && Lt(e).forEach(function(n) {
|
|
616
|
-
i[n] =
|
|
616
|
+
i[n] = De(e[n], r);
|
|
617
617
|
}), Lt(t).forEach(function(n) {
|
|
618
|
-
Ti(e, n) || (ur(e, n) && r.isMergeableObject(t[n]) ? i[n] = wi(n, r)(e[n], t[n], r) : i[n] =
|
|
618
|
+
Ti(e, n) || (ur(e, n) && r.isMergeableObject(t[n]) ? i[n] = wi(n, r)(e[n], t[n], r) : i[n] = De(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject || pi, r.cloneUnlessOtherwiseSpecified =
|
|
621
|
+
function Se(e, t, r) {
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject || pi, r.cloneUnlessOtherwiseSpecified = De;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) : Hi(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Hi(e, t, r) : De(t, r);
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
Se.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
628
628
|
throw new Error("first argument should be an array");
|
|
629
629
|
return t.reduce(function(i, n) {
|
|
630
|
-
return
|
|
630
|
+
return Se(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var
|
|
634
|
-
const Ai = /* @__PURE__ */
|
|
635
|
-
|
|
636
|
-
|
|
633
|
+
var Pi = Se, Oi = Pi;
|
|
634
|
+
const Ai = /* @__PURE__ */ _t(Oi);
|
|
635
|
+
/*! *****************************************************************************
|
|
636
|
+
Copyright (c) Microsoft Corporation.
|
|
637
|
+
|
|
638
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
639
|
+
purpose with or without fee is hereby granted.
|
|
640
|
+
|
|
641
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
642
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
643
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
644
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
645
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
646
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
647
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
648
|
+
***************************************************************************** */
|
|
649
|
+
var ht = function(e, t) {
|
|
650
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
637
651
|
r.__proto__ = i;
|
|
638
652
|
} || function(r, i) {
|
|
639
653
|
for (var n in i)
|
|
640
654
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
641
|
-
},
|
|
655
|
+
}, ht(e, t);
|
|
642
656
|
};
|
|
643
|
-
function
|
|
657
|
+
function Ze(e, t) {
|
|
644
658
|
if (typeof t != "function" && t !== null)
|
|
645
659
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
660
|
+
ht(e, t);
|
|
647
661
|
function r() {
|
|
648
662
|
this.constructor = e;
|
|
649
663
|
}
|
|
650
664
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
665
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
666
|
+
var $ = function() {
|
|
667
|
+
return $ = Object.assign || function(t) {
|
|
654
668
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
655
669
|
r = arguments[i];
|
|
656
670
|
for (var s in r)
|
|
657
671
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
672
|
}
|
|
659
673
|
return t;
|
|
660
|
-
},
|
|
674
|
+
}, $.apply(this, arguments);
|
|
661
675
|
};
|
|
662
676
|
function $i(e, t) {
|
|
663
677
|
var r = {};
|
|
@@ -668,14 +682,14 @@ function $i(e, t) {
|
|
|
668
682
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
669
683
|
return r;
|
|
670
684
|
}
|
|
671
|
-
function
|
|
672
|
-
if (
|
|
685
|
+
function tt(e, t, r) {
|
|
686
|
+
if (arguments.length === 2)
|
|
673
687
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
674
688
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
675
|
-
return e.concat(s ||
|
|
689
|
+
return e.concat(s || t);
|
|
676
690
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
691
|
+
function rt(e, t) {
|
|
692
|
+
var r = t && t.cache ? t.cache : Ii, i = t && t.serializer ? t.serializer : Li, n = t && t.strategy ? t.strategy : Mi;
|
|
679
693
|
return n(e, {
|
|
680
694
|
cache: r,
|
|
681
695
|
serializer: i
|
|
@@ -684,103 +698,95 @@ function nt(e, t) {
|
|
|
684
698
|
function Bi(e) {
|
|
685
699
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
700
|
}
|
|
687
|
-
function
|
|
701
|
+
function lr(e, t, r, i) {
|
|
688
702
|
var n = Bi(i) ? i : r(i), s = t.get(n);
|
|
689
703
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
690
704
|
}
|
|
691
|
-
function
|
|
705
|
+
function hr(e, t, r) {
|
|
692
706
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
693
707
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
694
708
|
}
|
|
695
|
-
function
|
|
709
|
+
function Et(e, t, r, i, n) {
|
|
696
710
|
return r.bind(t, e, i, n);
|
|
697
711
|
}
|
|
712
|
+
function Mi(e, t) {
|
|
713
|
+
var r = e.length === 1 ? lr : hr;
|
|
714
|
+
return Et(e, this, r, t.cache.create(), t.serializer);
|
|
715
|
+
}
|
|
698
716
|
function Ci(e, t) {
|
|
699
|
-
|
|
700
|
-
return hr(e, this, r, t.cache.create(), t.serializer);
|
|
717
|
+
return Et(e, this, hr, t.cache.create(), t.serializer);
|
|
701
718
|
}
|
|
702
719
|
function Di(e, t) {
|
|
703
|
-
return
|
|
720
|
+
return Et(e, this, lr, t.cache.create(), t.serializer);
|
|
704
721
|
}
|
|
705
722
|
var Li = function() {
|
|
706
723
|
return JSON.stringify(arguments);
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}()
|
|
719
|
-
), Ni = {
|
|
724
|
+
};
|
|
725
|
+
function wt() {
|
|
726
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
727
|
+
}
|
|
728
|
+
wt.prototype.get = function(e) {
|
|
729
|
+
return this.cache[e];
|
|
730
|
+
};
|
|
731
|
+
wt.prototype.set = function(e, t) {
|
|
732
|
+
this.cache[e] = t;
|
|
733
|
+
};
|
|
734
|
+
var Ii = {
|
|
720
735
|
create: function() {
|
|
721
|
-
return new
|
|
736
|
+
return new wt();
|
|
722
737
|
}
|
|
723
|
-
},
|
|
724
|
-
variadic:
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
728
|
-
r = arguments[i];
|
|
729
|
-
for (var s in r)
|
|
730
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
731
|
-
}
|
|
732
|
-
return t;
|
|
733
|
-
}, qe.apply(this, arguments);
|
|
734
|
-
};
|
|
735
|
-
var H;
|
|
738
|
+
}, it = {
|
|
739
|
+
variadic: Ci,
|
|
740
|
+
monadic: Di
|
|
741
|
+
}, H;
|
|
736
742
|
(function(e) {
|
|
737
743
|
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";
|
|
738
744
|
})(H || (H = {}));
|
|
739
|
-
var
|
|
745
|
+
var D;
|
|
740
746
|
(function(e) {
|
|
741
747
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
742
|
-
})(
|
|
743
|
-
var
|
|
748
|
+
})(D || (D = {}));
|
|
749
|
+
var Te;
|
|
744
750
|
(function(e) {
|
|
745
751
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
|
-
})(
|
|
752
|
+
})(Te || (Te = {}));
|
|
747
753
|
function It(e) {
|
|
748
|
-
return e.type ===
|
|
754
|
+
return e.type === D.literal;
|
|
749
755
|
}
|
|
750
|
-
function
|
|
751
|
-
return e.type ===
|
|
756
|
+
function Ni(e) {
|
|
757
|
+
return e.type === D.argument;
|
|
752
758
|
}
|
|
753
759
|
function fr(e) {
|
|
754
|
-
return e.type ===
|
|
760
|
+
return e.type === D.number;
|
|
755
761
|
}
|
|
756
762
|
function cr(e) {
|
|
757
|
-
return e.type ===
|
|
763
|
+
return e.type === D.date;
|
|
758
764
|
}
|
|
759
765
|
function dr(e) {
|
|
760
|
-
return e.type ===
|
|
766
|
+
return e.type === D.time;
|
|
761
767
|
}
|
|
762
768
|
function mr(e) {
|
|
763
|
-
return e.type ===
|
|
769
|
+
return e.type === D.select;
|
|
764
770
|
}
|
|
765
771
|
function pr(e) {
|
|
766
|
-
return e.type ===
|
|
772
|
+
return e.type === D.plural;
|
|
767
773
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.type ===
|
|
774
|
+
function Ri(e) {
|
|
775
|
+
return e.type === D.pound;
|
|
770
776
|
}
|
|
771
777
|
function gr(e) {
|
|
772
|
-
return e.type ===
|
|
778
|
+
return e.type === D.tag;
|
|
773
779
|
}
|
|
774
780
|
function vr(e) {
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
781
|
+
return !!(e && typeof e == "object" && e.type === Te.number);
|
|
776
782
|
}
|
|
777
|
-
function
|
|
778
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
783
|
+
function ft(e) {
|
|
784
|
+
return !!(e && typeof e == "object" && e.type === Te.dateTime);
|
|
779
785
|
}
|
|
780
|
-
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
781
|
-
function
|
|
786
|
+
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ki = /(?:[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;
|
|
787
|
+
function Ui(e) {
|
|
782
788
|
var t = {};
|
|
783
|
-
return e.replace(
|
|
789
|
+
return e.replace(ki, function(r) {
|
|
784
790
|
var i = r.length;
|
|
785
791
|
switch (r[0]) {
|
|
786
792
|
case "G":
|
|
@@ -869,21 +875,11 @@ function Fi(e) {
|
|
|
869
875
|
return "";
|
|
870
876
|
}), t;
|
|
871
877
|
}
|
|
872
|
-
var
|
|
873
|
-
|
|
874
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
875
|
-
r = arguments[i];
|
|
876
|
-
for (var s in r)
|
|
877
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
878
|
-
}
|
|
879
|
-
return t;
|
|
880
|
-
}, L.apply(this, arguments);
|
|
881
|
-
};
|
|
882
|
-
var Vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
883
|
-
function Gi(e) {
|
|
878
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
879
|
+
function Vi(e) {
|
|
884
880
|
if (e.length === 0)
|
|
885
881
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
882
|
+
for (var t = e.split(Fi).filter(function(p) {
|
|
887
883
|
return p.length > 0;
|
|
888
884
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
889
885
|
var s = n[i], a = s.split("/");
|
|
@@ -898,10 +894,10 @@ function Gi(e) {
|
|
|
898
894
|
}
|
|
899
895
|
return r;
|
|
900
896
|
}
|
|
901
|
-
function
|
|
897
|
+
function Gi(e) {
|
|
902
898
|
return e.replace(/^(.*?)-/, "");
|
|
903
899
|
}
|
|
904
|
-
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
900
|
+
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, ji = /(\*)(0+)|(#+)(0+)|(0+)/g, xr = /^(0+)$/;
|
|
905
901
|
function Rt(e) {
|
|
906
902
|
var t = {};
|
|
907
903
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, i, n) {
|
|
@@ -948,7 +944,7 @@ function _r(e) {
|
|
|
948
944
|
};
|
|
949
945
|
}
|
|
950
946
|
}
|
|
951
|
-
function
|
|
947
|
+
function zi(e) {
|
|
952
948
|
var t;
|
|
953
949
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
950
|
notation: "engineering"
|
|
@@ -966,7 +962,7 @@ function kt(e) {
|
|
|
966
962
|
var t = {}, r = _r(e);
|
|
967
963
|
return r || t;
|
|
968
964
|
}
|
|
969
|
-
function
|
|
965
|
+
function Xi(e) {
|
|
970
966
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
971
967
|
var n = i[r];
|
|
972
968
|
switch (n.stem) {
|
|
@@ -990,7 +986,7 @@ function Wi(e) {
|
|
|
990
986
|
continue;
|
|
991
987
|
case "measure-unit":
|
|
992
988
|
case "unit":
|
|
993
|
-
t.style = "unit", t.unit =
|
|
989
|
+
t.style = "unit", t.unit = Gi(n.options[0]);
|
|
994
990
|
continue;
|
|
995
991
|
case "compact-short":
|
|
996
992
|
case "K":
|
|
@@ -1001,13 +997,13 @@ function Wi(e) {
|
|
|
1001
997
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
998
|
continue;
|
|
1003
999
|
case "scientific":
|
|
1004
|
-
t =
|
|
1005
|
-
return
|
|
1000
|
+
t = $($($({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
1001
|
+
return $($({}, o), kt(u));
|
|
1006
1002
|
}, {}));
|
|
1007
1003
|
continue;
|
|
1008
1004
|
case "engineering":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1005
|
+
t = $($($({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
1006
|
+
return $($({}, o), kt(u));
|
|
1011
1007
|
}, {}));
|
|
1012
1008
|
continue;
|
|
1013
1009
|
case "notation-simple":
|
|
@@ -1052,7 +1048,7 @@ function Wi(e) {
|
|
|
1052
1048
|
case "integer-width":
|
|
1053
1049
|
if (n.options.length > 1)
|
|
1054
1050
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
n.options[0].replace(
|
|
1051
|
+
n.options[0].replace(ji, function(o, u, h, c, p, x) {
|
|
1056
1052
|
if (u)
|
|
1057
1053
|
t.minimumIntegerDigits = h.length;
|
|
1058
1054
|
else {
|
|
@@ -1076,21 +1072,21 @@ function Wi(e) {
|
|
|
1076
1072
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1077
1073
|
});
|
|
1078
1074
|
var s = n.options[0];
|
|
1079
|
-
s === "w" ? t =
|
|
1075
|
+
s === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = $($({}, t), Rt(s)));
|
|
1080
1076
|
continue;
|
|
1081
1077
|
}
|
|
1082
1078
|
if (yr.test(n.stem)) {
|
|
1083
|
-
t =
|
|
1079
|
+
t = $($({}, t), Rt(n.stem));
|
|
1084
1080
|
continue;
|
|
1085
1081
|
}
|
|
1086
1082
|
var a = _r(n.stem);
|
|
1087
|
-
a && (t =
|
|
1088
|
-
var l =
|
|
1089
|
-
l && (t =
|
|
1083
|
+
a && (t = $($({}, t), a));
|
|
1084
|
+
var l = zi(n.stem);
|
|
1085
|
+
l && (t = $($({}, t), l));
|
|
1090
1086
|
}
|
|
1091
1087
|
return t;
|
|
1092
1088
|
}
|
|
1093
|
-
var
|
|
1089
|
+
var Ge = {
|
|
1094
1090
|
"001": [
|
|
1095
1091
|
"H",
|
|
1096
1092
|
"h"
|
|
@@ -2505,13 +2501,13 @@ var je = {
|
|
|
2505
2501
|
"h"
|
|
2506
2502
|
]
|
|
2507
2503
|
};
|
|
2508
|
-
function
|
|
2504
|
+
function Wi(e, t) {
|
|
2509
2505
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2510
2506
|
var n = e.charAt(i);
|
|
2511
2507
|
if (n === "j") {
|
|
2512
2508
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2513
2509
|
s++, i++;
|
|
2514
|
-
var a = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), o = "a", u =
|
|
2510
|
+
var a = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = qi(t);
|
|
2515
2511
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2516
2512
|
r += o;
|
|
2517
2513
|
for (; a-- > 0; )
|
|
@@ -2521,7 +2517,7 @@ function qi(e, t) {
|
|
|
2521
2517
|
}
|
|
2522
2518
|
return r;
|
|
2523
2519
|
}
|
|
2524
|
-
function
|
|
2520
|
+
function qi(e) {
|
|
2525
2521
|
var t = e.hourCycle;
|
|
2526
2522
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2523
|
e.hourCycles && // @ts-ignore
|
|
@@ -2540,23 +2536,23 @@ function Yi(e) {
|
|
|
2540
2536
|
}
|
|
2541
2537
|
var r = e.language, i;
|
|
2542
2538
|
r !== "root" && (i = e.maximize().region);
|
|
2543
|
-
var n =
|
|
2539
|
+
var n = Ge[i || ""] || Ge[r || ""] || Ge["".concat(r, "-001")] || Ge["001"];
|
|
2544
2540
|
return n[0];
|
|
2545
2541
|
}
|
|
2546
|
-
var
|
|
2547
|
-
function
|
|
2542
|
+
var nt, Yi = new RegExp("^".concat(br.source, "*")), Zi = new RegExp("".concat(br.source, "*$"));
|
|
2543
|
+
function O(e, t) {
|
|
2548
2544
|
return { start: e, end: t };
|
|
2549
2545
|
}
|
|
2550
|
-
var
|
|
2546
|
+
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qi = !!String.fromCodePoint, Ki = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
|
2551
2547
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2548
|
+
}, ct = !0;
|
|
2553
2549
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2550
|
+
var on = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2551
|
+
ct = ((nt = on.exec("a")) === null || nt === void 0 ? void 0 : nt[0]) === "a";
|
|
2556
2552
|
} catch (e) {
|
|
2557
|
-
|
|
2553
|
+
ct = !1;
|
|
2558
2554
|
}
|
|
2559
|
-
var Ut =
|
|
2555
|
+
var Ut = Ji ? (
|
|
2560
2556
|
// Native
|
|
2561
2557
|
function(t, r, i) {
|
|
2562
2558
|
return t.startsWith(r, i);
|
|
@@ -2566,7 +2562,7 @@ var Ut = Qi ? (
|
|
|
2566
2562
|
function(t, r, i) {
|
|
2567
2563
|
return t.slice(i, i + r.length) === r;
|
|
2568
2564
|
}
|
|
2569
|
-
),
|
|
2565
|
+
), dt = Qi ? String.fromCodePoint : (
|
|
2570
2566
|
// IE11
|
|
2571
2567
|
function() {
|
|
2572
2568
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2580,7 +2576,7 @@ var Ut = Qi ? (
|
|
|
2580
2576
|
}
|
|
2581
2577
|
), Ft = (
|
|
2582
2578
|
// native
|
|
2583
|
-
|
|
2579
|
+
Ki ? Object.fromEntries : (
|
|
2584
2580
|
// Ponyfill
|
|
2585
2581
|
function(t) {
|
|
2586
2582
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2590,7 +2586,7 @@ var Ut = Qi ? (
|
|
|
2590
2586
|
return r;
|
|
2591
2587
|
}
|
|
2592
2588
|
)
|
|
2593
|
-
), Er =
|
|
2589
|
+
), Er = en ? (
|
|
2594
2590
|
// Native
|
|
2595
2591
|
function(t, r) {
|
|
2596
2592
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2600,7 @@ var Ut = Qi ? (
|
|
|
2604
2600
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2605
2601
|
}
|
|
2606
2602
|
}
|
|
2607
|
-
),
|
|
2603
|
+
), an = tn ? (
|
|
2608
2604
|
// Native
|
|
2609
2605
|
function(t) {
|
|
2610
2606
|
return t.trimStart();
|
|
@@ -2612,9 +2608,9 @@ var Ut = Qi ? (
|
|
|
2612
2608
|
) : (
|
|
2613
2609
|
// Ponyfill
|
|
2614
2610
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2611
|
+
return t.replace(Yi, "");
|
|
2616
2612
|
}
|
|
2617
|
-
),
|
|
2613
|
+
), un = rn ? (
|
|
2618
2614
|
// Native
|
|
2619
2615
|
function(t) {
|
|
2620
2616
|
return t.trimEnd();
|
|
@@ -2622,32 +2618,32 @@ var Ut = Qi ? (
|
|
|
2622
2618
|
) : (
|
|
2623
2619
|
// Ponyfill
|
|
2624
2620
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2621
|
+
return t.replace(Zi, "");
|
|
2626
2622
|
}
|
|
2627
2623
|
);
|
|
2628
2624
|
function wr(e, t) {
|
|
2629
2625
|
return new RegExp(e, t);
|
|
2630
2626
|
}
|
|
2631
|
-
var
|
|
2632
|
-
if (
|
|
2627
|
+
var mt;
|
|
2628
|
+
if (ct) {
|
|
2633
2629
|
var Vt = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
|
-
|
|
2630
|
+
mt = function(t, r) {
|
|
2635
2631
|
var i;
|
|
2636
2632
|
Vt.lastIndex = r;
|
|
2637
2633
|
var n = Vt.exec(t);
|
|
2638
2634
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2639
2635
|
};
|
|
2640
2636
|
} else
|
|
2641
|
-
|
|
2637
|
+
mt = function(t, r) {
|
|
2642
2638
|
for (var i = []; ; ) {
|
|
2643
2639
|
var n = Er(t, r);
|
|
2644
|
-
if (n === void 0 || Sr(n) ||
|
|
2640
|
+
if (n === void 0 || Sr(n) || cn(n))
|
|
2645
2641
|
break;
|
|
2646
2642
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2647
2643
|
}
|
|
2648
|
-
return
|
|
2644
|
+
return dt.apply(void 0, i);
|
|
2649
2645
|
};
|
|
2650
|
-
var
|
|
2646
|
+
var ln = (
|
|
2651
2647
|
/** @class */
|
|
2652
2648
|
function() {
|
|
2653
2649
|
function e(t, r) {
|
|
@@ -2671,14 +2667,14 @@ var hn = (
|
|
|
2671
2667
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2672
2668
|
var l = this.clonePosition();
|
|
2673
2669
|
this.bump(), n.push({
|
|
2674
|
-
type:
|
|
2675
|
-
location:
|
|
2670
|
+
type: D.pound,
|
|
2671
|
+
location: O(l, this.clonePosition())
|
|
2676
2672
|
});
|
|
2677
2673
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2674
|
if (i)
|
|
2679
2675
|
break;
|
|
2680
|
-
return this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2676
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2677
|
+
} else if (s === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
|
|
2682
2678
|
var a = this.parseTag(t, r);
|
|
2683
2679
|
if (a.err)
|
|
2684
2680
|
return a;
|
|
@@ -2699,9 +2695,9 @@ var hn = (
|
|
|
2699
2695
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2700
2696
|
return {
|
|
2701
2697
|
val: {
|
|
2702
|
-
type:
|
|
2698
|
+
type: D.literal,
|
|
2703
2699
|
value: "<".concat(n, "/>"),
|
|
2704
|
-
location:
|
|
2700
|
+
location: O(i, this.clonePosition())
|
|
2705
2701
|
},
|
|
2706
2702
|
err: null
|
|
2707
2703
|
};
|
|
@@ -2711,25 +2707,25 @@ var hn = (
|
|
|
2711
2707
|
return s;
|
|
2712
2708
|
var a = s.val, l = this.clonePosition();
|
|
2713
2709
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2715
|
-
return this.error(H.INVALID_TAG,
|
|
2710
|
+
if (this.isEOF() || !pt(this.char()))
|
|
2711
|
+
return this.error(H.INVALID_TAG, O(l, this.clonePosition()));
|
|
2716
2712
|
var o = this.clonePosition(), u = this.parseTagName();
|
|
2717
|
-
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2713
|
+
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2714
|
val: {
|
|
2719
|
-
type:
|
|
2715
|
+
type: D.tag,
|
|
2720
2716
|
value: n,
|
|
2721
2717
|
children: a,
|
|
2722
|
-
location:
|
|
2718
|
+
location: O(i, this.clonePosition())
|
|
2723
2719
|
},
|
|
2724
2720
|
err: null
|
|
2725
|
-
} : this.error(H.INVALID_TAG,
|
|
2721
|
+
} : this.error(H.INVALID_TAG, O(l, this.clonePosition())));
|
|
2726
2722
|
} else
|
|
2727
|
-
return this.error(H.UNCLOSED_TAG,
|
|
2723
|
+
return this.error(H.UNCLOSED_TAG, O(i, this.clonePosition()));
|
|
2728
2724
|
} else
|
|
2729
|
-
return this.error(H.INVALID_TAG,
|
|
2725
|
+
return this.error(H.INVALID_TAG, O(i, this.clonePosition()));
|
|
2730
2726
|
}, e.prototype.parseTagName = function() {
|
|
2731
2727
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2728
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
|
2733
2729
|
this.bump();
|
|
2734
2730
|
return this.message.slice(t, this.offset());
|
|
2735
2731
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2751,14 +2747,14 @@ var hn = (
|
|
|
2751
2747
|
}
|
|
2752
2748
|
break;
|
|
2753
2749
|
}
|
|
2754
|
-
var o =
|
|
2750
|
+
var o = O(i, this.clonePosition());
|
|
2755
2751
|
return {
|
|
2756
|
-
val: { type:
|
|
2752
|
+
val: { type: D.literal, value: n, location: o },
|
|
2757
2753
|
err: null
|
|
2758
2754
|
};
|
|
2759
2755
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2756
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2757
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2758
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2759
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2760
|
return null;
|
|
@@ -2792,49 +2788,49 @@ var hn = (
|
|
|
2792
2788
|
r.push(i);
|
|
2793
2789
|
this.bump();
|
|
2794
2790
|
}
|
|
2795
|
-
return
|
|
2791
|
+
return dt.apply(void 0, r);
|
|
2796
2792
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2797
2793
|
if (this.isEOF())
|
|
2798
2794
|
return null;
|
|
2799
2795
|
var i = this.char();
|
|
2800
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2796
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), dt(i));
|
|
2801
2797
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2798
|
var i = this.clonePosition();
|
|
2803
2799
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2800
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2805
2801
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT,
|
|
2802
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, O(i, this.clonePosition()));
|
|
2807
2803
|
var n = this.parseIdentifierIfPossible().value;
|
|
2808
2804
|
if (!n)
|
|
2809
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2805
|
+
return this.error(H.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2810
2806
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2807
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2812
2808
|
switch (this.char()) {
|
|
2813
2809
|
case 125:
|
|
2814
2810
|
return this.bump(), {
|
|
2815
2811
|
val: {
|
|
2816
|
-
type:
|
|
2812
|
+
type: D.argument,
|
|
2817
2813
|
// value does not include the opening and closing braces.
|
|
2818
2814
|
value: n,
|
|
2819
|
-
location:
|
|
2815
|
+
location: O(i, this.clonePosition())
|
|
2820
2816
|
},
|
|
2821
2817
|
err: null
|
|
2822
2818
|
};
|
|
2823
2819
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2820
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2825
2821
|
default:
|
|
2826
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2822
|
+
return this.error(H.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2827
2823
|
}
|
|
2828
2824
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2825
|
+
var t = this.clonePosition(), r = this.offset(), i = mt(this.message, r), n = r + i.length;
|
|
2830
2826
|
this.bumpTo(n);
|
|
2831
|
-
var s = this.clonePosition(), a =
|
|
2827
|
+
var s = this.clonePosition(), a = O(t, s);
|
|
2832
2828
|
return { value: i, location: a };
|
|
2833
2829
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2834
2830
|
var s, a = this.clonePosition(), l = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2835
2831
|
switch (l) {
|
|
2836
2832
|
case "":
|
|
2837
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE,
|
|
2833
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, O(a, o));
|
|
2838
2834
|
case "number":
|
|
2839
2835
|
case "date":
|
|
2840
2836
|
case "time": {
|
|
@@ -2845,35 +2841,35 @@ var hn = (
|
|
|
2845
2841
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2846
2842
|
if (c.err)
|
|
2847
2843
|
return c;
|
|
2848
|
-
var p =
|
|
2844
|
+
var p = un(c.val);
|
|
2849
2845
|
if (p.length === 0)
|
|
2850
|
-
return this.error(H.EXPECT_ARGUMENT_STYLE,
|
|
2851
|
-
var x =
|
|
2846
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2847
|
+
var x = O(h, this.clonePosition());
|
|
2852
2848
|
u = { style: p, styleLocation: x };
|
|
2853
2849
|
}
|
|
2854
2850
|
var S = this.tryParseArgumentClose(n);
|
|
2855
2851
|
if (S.err)
|
|
2856
2852
|
return S;
|
|
2857
|
-
var v =
|
|
2853
|
+
var v = O(n, this.clonePosition());
|
|
2858
2854
|
if (u && Ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2859
|
-
var
|
|
2855
|
+
var C = an(u.style.slice(2));
|
|
2860
2856
|
if (l === "number") {
|
|
2861
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2857
|
+
var c = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
2862
2858
|
return c.err ? c : {
|
|
2863
|
-
val: { type:
|
|
2859
|
+
val: { type: D.number, value: i, location: v, style: c.val },
|
|
2864
2860
|
err: null
|
|
2865
2861
|
};
|
|
2866
2862
|
} else {
|
|
2867
|
-
if (
|
|
2863
|
+
if (C.length === 0)
|
|
2868
2864
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, v);
|
|
2869
|
-
var F =
|
|
2870
|
-
this.locale && (F =
|
|
2865
|
+
var F = C;
|
|
2866
|
+
this.locale && (F = Wi(C, this.locale));
|
|
2871
2867
|
var p = {
|
|
2872
|
-
type:
|
|
2868
|
+
type: Te.dateTime,
|
|
2873
2869
|
pattern: F,
|
|
2874
2870
|
location: u.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
}, R = l === "date" ?
|
|
2871
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(F) : {}
|
|
2872
|
+
}, R = l === "date" ? D.date : D.time;
|
|
2877
2873
|
return {
|
|
2878
2874
|
val: { type: R, value: i, location: v, style: p },
|
|
2879
2875
|
err: null
|
|
@@ -2882,7 +2878,7 @@ var hn = (
|
|
|
2882
2878
|
}
|
|
2883
2879
|
return {
|
|
2884
2880
|
val: {
|
|
2885
|
-
type: l === "number" ?
|
|
2881
|
+
type: l === "number" ? D.number : l === "date" ? D.date : D.time,
|
|
2886
2882
|
value: i,
|
|
2887
2883
|
location: v,
|
|
2888
2884
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2893,14 +2889,14 @@ var hn = (
|
|
|
2893
2889
|
case "plural":
|
|
2894
2890
|
case "selectordinal":
|
|
2895
2891
|
case "select": {
|
|
2896
|
-
var
|
|
2892
|
+
var B = this.clonePosition();
|
|
2897
2893
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2894
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B, $({}, B)));
|
|
2899
2895
|
this.bumpSpace();
|
|
2900
2896
|
var z = this.parseIdentifierIfPossible(), N = 0;
|
|
2901
2897
|
if (l !== "select" && z.value === "offset") {
|
|
2902
2898
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2899
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2904
2900
|
this.bumpSpace();
|
|
2905
2901
|
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
2902
|
if (c.err)
|
|
@@ -2913,10 +2909,10 @@ var hn = (
|
|
|
2913
2909
|
var S = this.tryParseArgumentClose(n);
|
|
2914
2910
|
if (S.err)
|
|
2915
2911
|
return S;
|
|
2916
|
-
var W =
|
|
2912
|
+
var W = O(n, this.clonePosition());
|
|
2917
2913
|
return l === "select" ? {
|
|
2918
2914
|
val: {
|
|
2919
|
-
type:
|
|
2915
|
+
type: D.select,
|
|
2920
2916
|
value: i,
|
|
2921
2917
|
options: Ft(k.val),
|
|
2922
2918
|
location: W
|
|
@@ -2924,7 +2920,7 @@ var hn = (
|
|
|
2924
2920
|
err: null
|
|
2925
2921
|
} : {
|
|
2926
2922
|
val: {
|
|
2927
|
-
type:
|
|
2923
|
+
type: D.plural,
|
|
2928
2924
|
value: i,
|
|
2929
2925
|
options: Ft(k.val),
|
|
2930
2926
|
offset: N,
|
|
@@ -2935,10 +2931,10 @@ var hn = (
|
|
|
2935
2931
|
};
|
|
2936
2932
|
}
|
|
2937
2933
|
default:
|
|
2938
|
-
return this.error(H.INVALID_ARGUMENT_TYPE,
|
|
2934
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, O(a, o));
|
|
2939
2935
|
}
|
|
2940
2936
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2937
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2938
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2939
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2940
|
var i = this.char();
|
|
@@ -2947,7 +2943,7 @@ var hn = (
|
|
|
2947
2943
|
this.bump();
|
|
2948
2944
|
var n = this.clonePosition();
|
|
2949
2945
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2946
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(n, this.clonePosition()));
|
|
2951
2947
|
this.bump();
|
|
2952
2948
|
break;
|
|
2953
2949
|
}
|
|
@@ -2977,16 +2973,16 @@ var hn = (
|
|
|
2977
2973
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
2974
|
var i = [];
|
|
2979
2975
|
try {
|
|
2980
|
-
i =
|
|
2976
|
+
i = Vi(t);
|
|
2981
2977
|
} catch (n) {
|
|
2982
2978
|
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2983
2979
|
}
|
|
2984
2980
|
return {
|
|
2985
2981
|
val: {
|
|
2986
|
-
type:
|
|
2982
|
+
type: Te.number,
|
|
2987
2983
|
tokens: i,
|
|
2988
2984
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2985
|
+
parsedOptions: this.shouldParseSkeletons ? Xi(i) : {}
|
|
2990
2986
|
},
|
|
2991
2987
|
err: null
|
|
2992
2988
|
};
|
|
@@ -2998,7 +2994,7 @@ var hn = (
|
|
|
2998
2994
|
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
2995
|
if (p.err)
|
|
3000
2996
|
return p;
|
|
3001
|
-
h =
|
|
2997
|
+
h = O(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3002
2998
|
} else
|
|
3003
2999
|
break;
|
|
3004
3000
|
}
|
|
@@ -3007,7 +3003,7 @@ var hn = (
|
|
|
3007
3003
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3008
3004
|
var x = this.clonePosition();
|
|
3009
3005
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3006
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3011
3007
|
var S = this.parseMessage(t + 1, r, i);
|
|
3012
3008
|
if (S.err)
|
|
3013
3009
|
return S;
|
|
@@ -3018,11 +3014,11 @@ var hn = (
|
|
|
3018
3014
|
u,
|
|
3019
3015
|
{
|
|
3020
3016
|
value: S.val,
|
|
3021
|
-
location:
|
|
3017
|
+
location: O(x, this.clonePosition())
|
|
3022
3018
|
}
|
|
3023
3019
|
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3024
3020
|
}
|
|
3025
|
-
return l.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3021
|
+
return l.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
3026
3022
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3027
3023
|
var i = 1, n = this.clonePosition();
|
|
3028
3024
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -3033,8 +3029,8 @@ var hn = (
|
|
|
3033
3029
|
else
|
|
3034
3030
|
break;
|
|
3035
3031
|
}
|
|
3036
|
-
var o =
|
|
3037
|
-
return s ? (a *= i,
|
|
3032
|
+
var o = O(n, this.clonePosition());
|
|
3033
|
+
return s ? (a *= i, sn(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
|
|
3038
3034
|
}, e.prototype.offset = function() {
|
|
3039
3035
|
return this.position.offset;
|
|
3040
3036
|
}, e.prototype.isEOF = function() {
|
|
@@ -3100,47 +3096,47 @@ var hn = (
|
|
|
3100
3096
|
}, e;
|
|
3101
3097
|
}()
|
|
3102
3098
|
);
|
|
3103
|
-
function
|
|
3099
|
+
function pt(e) {
|
|
3104
3100
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3101
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3102
|
+
function hn(e) {
|
|
3103
|
+
return pt(e) || e === 47;
|
|
3108
3104
|
}
|
|
3109
|
-
function
|
|
3105
|
+
function fn(e) {
|
|
3110
3106
|
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;
|
|
3111
3107
|
}
|
|
3112
3108
|
function Sr(e) {
|
|
3113
3109
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3110
|
}
|
|
3115
|
-
function
|
|
3111
|
+
function cn(e) {
|
|
3116
3112
|
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;
|
|
3117
3113
|
}
|
|
3118
|
-
function
|
|
3114
|
+
function gt(e) {
|
|
3119
3115
|
e.forEach(function(t) {
|
|
3120
3116
|
if (delete t.location, mr(t) || pr(t))
|
|
3121
3117
|
for (var r in t.options)
|
|
3122
|
-
delete t.options[r].location,
|
|
3118
|
+
delete t.options[r].location, gt(t.options[r].value);
|
|
3123
3119
|
else
|
|
3124
|
-
fr(t) && vr(t.style) || (cr(t) || dr(t)) &&
|
|
3120
|
+
fr(t) && vr(t.style) || (cr(t) || dr(t)) && ft(t.style) ? delete t.style.location : gr(t) && gt(t.children);
|
|
3125
3121
|
});
|
|
3126
3122
|
}
|
|
3127
|
-
function
|
|
3128
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
-
var r = new
|
|
3123
|
+
function dn(e, t) {
|
|
3124
|
+
t === void 0 && (t = {}), t = $({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3125
|
+
var r = new ln(e, t).parse();
|
|
3130
3126
|
if (r.err) {
|
|
3131
3127
|
var i = SyntaxError(H[r.err.kind]);
|
|
3132
3128
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3133
3129
|
}
|
|
3134
|
-
return t != null && t.captureLocation ||
|
|
3130
|
+
return t != null && t.captureLocation || gt(r.val), r.val;
|
|
3135
3131
|
}
|
|
3136
|
-
var
|
|
3132
|
+
var He;
|
|
3137
3133
|
(function(e) {
|
|
3138
3134
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
|
-
})(
|
|
3140
|
-
var
|
|
3135
|
+
})(He || (He = {}));
|
|
3136
|
+
var Je = (
|
|
3141
3137
|
/** @class */
|
|
3142
3138
|
function(e) {
|
|
3143
|
-
|
|
3139
|
+
Ze(t, e);
|
|
3144
3140
|
function t(r, i, n) {
|
|
3145
3141
|
var s = e.call(this, r) || this;
|
|
3146
3142
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3152,44 +3148,44 @@ var Ke = (
|
|
|
3152
3148
|
), Gt = (
|
|
3153
3149
|
/** @class */
|
|
3154
3150
|
function(e) {
|
|
3155
|
-
|
|
3151
|
+
Ze(t, e);
|
|
3156
3152
|
function t(r, i, n, s) {
|
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3153
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), He.INVALID_VALUE, s) || this;
|
|
3158
3154
|
}
|
|
3159
3155
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3156
|
+
}(Je)
|
|
3157
|
+
), mn = (
|
|
3162
3158
|
/** @class */
|
|
3163
3159
|
function(e) {
|
|
3164
|
-
|
|
3160
|
+
Ze(t, e);
|
|
3165
3161
|
function t(r, i, n) {
|
|
3166
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3162
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), He.INVALID_VALUE, n) || this;
|
|
3167
3163
|
}
|
|
3168
3164
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3165
|
+
}(Je)
|
|
3166
|
+
), pn = (
|
|
3171
3167
|
/** @class */
|
|
3172
3168
|
function(e) {
|
|
3173
|
-
|
|
3169
|
+
Ze(t, e);
|
|
3174
3170
|
function t(r, i) {
|
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3171
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), He.MISSING_VALUE, i) || this;
|
|
3176
3172
|
}
|
|
3177
3173
|
return t;
|
|
3178
|
-
}(
|
|
3174
|
+
}(Je)
|
|
3179
3175
|
), j;
|
|
3180
3176
|
(function(e) {
|
|
3181
3177
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
3178
|
})(j || (j = {}));
|
|
3183
|
-
function
|
|
3179
|
+
function gn(e) {
|
|
3184
3180
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3185
3181
|
var i = t[t.length - 1];
|
|
3186
3182
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3187
3183
|
}, []);
|
|
3188
3184
|
}
|
|
3189
|
-
function
|
|
3185
|
+
function vn(e) {
|
|
3190
3186
|
return typeof e == "function";
|
|
3191
3187
|
}
|
|
3192
|
-
function
|
|
3188
|
+
function ze(e, t, r, i, n, s, a) {
|
|
3193
3189
|
if (e.length === 1 && It(e[0]))
|
|
3194
3190
|
return [
|
|
3195
3191
|
{
|
|
@@ -3206,7 +3202,7 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3206
3202
|
});
|
|
3207
3203
|
continue;
|
|
3208
3204
|
}
|
|
3209
|
-
if (
|
|
3205
|
+
if (Ri(h)) {
|
|
3210
3206
|
typeof s == "number" && l.push({
|
|
3211
3207
|
type: j.literal,
|
|
3212
3208
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3215,9 +3211,9 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3215
3211
|
}
|
|
3216
3212
|
var c = h.value;
|
|
3217
3213
|
if (!(n && c in n))
|
|
3218
|
-
throw new
|
|
3214
|
+
throw new pn(c, a);
|
|
3219
3215
|
var p = n[c];
|
|
3220
|
-
if (
|
|
3216
|
+
if (Ni(h)) {
|
|
3221
3217
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3222
3218
|
type: typeof p == "string" ? j.literal : j.object,
|
|
3223
3219
|
value: p
|
|
@@ -3225,7 +3221,7 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3225
3221
|
continue;
|
|
3226
3222
|
}
|
|
3227
3223
|
if (cr(h)) {
|
|
3228
|
-
var x = typeof h.style == "string" ? i.date[h.style] :
|
|
3224
|
+
var x = typeof h.style == "string" ? i.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3229
3225
|
l.push({
|
|
3230
3226
|
type: j.literal,
|
|
3231
3227
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
@@ -3233,7 +3229,7 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3233
3229
|
continue;
|
|
3234
3230
|
}
|
|
3235
3231
|
if (dr(h)) {
|
|
3236
|
-
var x = typeof h.style == "string" ? i.time[h.style] :
|
|
3232
|
+
var x = typeof h.style == "string" ? i.time[h.style] : ft(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3237
3233
|
l.push({
|
|
3238
3234
|
type: j.literal,
|
|
3239
3235
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
@@ -3249,10 +3245,10 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3249
3245
|
continue;
|
|
3250
3246
|
}
|
|
3251
3247
|
if (gr(h)) {
|
|
3252
|
-
var S = h.children, v = h.value,
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new
|
|
3255
|
-
var F =
|
|
3248
|
+
var S = h.children, v = h.value, C = n[v];
|
|
3249
|
+
if (!vn(C))
|
|
3250
|
+
throw new mn(v, "function", a);
|
|
3251
|
+
var F = ze(S, t, r, i, n, s), R = C(F.map(function(N) {
|
|
3256
3252
|
return N.value;
|
|
3257
3253
|
}));
|
|
3258
3254
|
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(N) {
|
|
@@ -3263,41 +3259,41 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3263
3259
|
}));
|
|
3264
3260
|
}
|
|
3265
3261
|
if (mr(h)) {
|
|
3266
|
-
var
|
|
3267
|
-
if (
|
|
3262
|
+
var B = h.options[p] || h.options.other;
|
|
3263
|
+
if (!B)
|
|
3268
3264
|
throw new Gt(h.value, p, Object.keys(h.options), a);
|
|
3269
|
-
l.push.apply(l,
|
|
3265
|
+
l.push.apply(l, ze(B.value, t, r, i, n));
|
|
3270
3266
|
continue;
|
|
3271
3267
|
}
|
|
3272
3268
|
if (pr(h)) {
|
|
3273
|
-
var
|
|
3274
|
-
if (
|
|
3269
|
+
var B = h.options["=".concat(p)];
|
|
3270
|
+
if (!B) {
|
|
3275
3271
|
if (!Intl.PluralRules)
|
|
3276
|
-
throw new
|
|
3272
|
+
throw new Je(`Intl.PluralRules is not available in this environment.
|
|
3277
3273
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
|
-
`,
|
|
3274
|
+
`, He.MISSING_INTL_API, a);
|
|
3279
3275
|
var z = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3280
|
-
|
|
3276
|
+
B = h.options[z] || h.options.other;
|
|
3281
3277
|
}
|
|
3282
|
-
if (
|
|
3278
|
+
if (!B)
|
|
3283
3279
|
throw new Gt(h.value, p, Object.keys(h.options), a);
|
|
3284
|
-
l.push.apply(l,
|
|
3280
|
+
l.push.apply(l, ze(B.value, t, r, i, n, p - (h.offset || 0)));
|
|
3285
3281
|
continue;
|
|
3286
3282
|
}
|
|
3287
3283
|
}
|
|
3288
|
-
return
|
|
3284
|
+
return gn(l);
|
|
3289
3285
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return t ?
|
|
3292
|
-
return r[i] =
|
|
3286
|
+
function bn(e, t) {
|
|
3287
|
+
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3288
|
+
return r[i] = $($({}, e[i]), t[i] || {}), r;
|
|
3293
3289
|
}, {})) : e;
|
|
3294
3290
|
}
|
|
3295
|
-
function
|
|
3291
|
+
function yn(e, t) {
|
|
3296
3292
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3297
|
-
return r[i] =
|
|
3298
|
-
},
|
|
3293
|
+
return r[i] = bn(e[i], t[i]), r;
|
|
3294
|
+
}, $({}, e)) : e;
|
|
3299
3295
|
}
|
|
3300
|
-
function
|
|
3296
|
+
function st(e) {
|
|
3301
3297
|
return {
|
|
3302
3298
|
create: function() {
|
|
3303
3299
|
return {
|
|
@@ -3311,35 +3307,35 @@ function at(e) {
|
|
|
3311
3307
|
}
|
|
3312
3308
|
};
|
|
3313
3309
|
}
|
|
3314
|
-
function
|
|
3310
|
+
function xn(e) {
|
|
3315
3311
|
return e === void 0 && (e = {
|
|
3316
3312
|
number: {},
|
|
3317
3313
|
dateTime: {},
|
|
3318
3314
|
pluralRules: {}
|
|
3319
3315
|
}), {
|
|
3320
|
-
getNumberFormat:
|
|
3316
|
+
getNumberFormat: rt(function() {
|
|
3321
3317
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3322
3318
|
r[i] = arguments[i];
|
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3319
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3324
3320
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3321
|
+
cache: st(e.number),
|
|
3322
|
+
strategy: it.variadic
|
|
3327
3323
|
}),
|
|
3328
|
-
getDateTimeFormat:
|
|
3324
|
+
getDateTimeFormat: rt(function() {
|
|
3329
3325
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3330
3326
|
r[i] = arguments[i];
|
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3327
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3332
3328
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3329
|
+
cache: st(e.dateTime),
|
|
3330
|
+
strategy: it.variadic
|
|
3335
3331
|
}),
|
|
3336
|
-
getPluralRules:
|
|
3332
|
+
getPluralRules: rt(function() {
|
|
3337
3333
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3338
3334
|
r[i] = arguments[i];
|
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.PluralRules).bind.apply(t, tt([void 0], r, !1)))();
|
|
3340
3336
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3337
|
+
cache: st(e.pluralRules),
|
|
3338
|
+
strategy: it.variadic
|
|
3343
3339
|
})
|
|
3344
3340
|
};
|
|
3345
3341
|
}
|
|
@@ -3362,7 +3358,7 @@ var Tr = (
|
|
|
3362
3358
|
}, []);
|
|
3363
3359
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3364
3360
|
}, this.formatToParts = function(o) {
|
|
3365
|
-
return
|
|
3361
|
+
return ze(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
|
|
3366
3362
|
}, this.resolvedOptions = function() {
|
|
3367
3363
|
var o;
|
|
3368
3364
|
return {
|
|
@@ -3376,12 +3372,12 @@ var Tr = (
|
|
|
3376
3372
|
var a = n || {};
|
|
3377
3373
|
a.formatters;
|
|
3378
3374
|
var l = $i(a, ["formatters"]);
|
|
3379
|
-
this.ast = e.__parse(t,
|
|
3375
|
+
this.ast = e.__parse(t, $($({}, l), { locale: this.resolvedLocale }));
|
|
3380
3376
|
} else
|
|
3381
3377
|
this.ast = t;
|
|
3382
3378
|
if (!Array.isArray(this.ast))
|
|
3383
3379
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3380
|
+
this.formats = yn(e.formats, i), this.formatters = n && n.formatters || xn(this.formatterCache);
|
|
3385
3381
|
}
|
|
3386
3382
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3383
|
get: function() {
|
|
@@ -3394,7 +3390,7 @@ var Tr = (
|
|
|
3394
3390
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3395
3391
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3396
3392
|
}
|
|
3397
|
-
}, e.__parse =
|
|
3393
|
+
}, e.__parse = dn, e.formats = {
|
|
3398
3394
|
number: {
|
|
3399
3395
|
integer: {
|
|
3400
3396
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3451,7 @@ var Tr = (
|
|
|
3455
3451
|
}, e;
|
|
3456
3452
|
}()
|
|
3457
3453
|
);
|
|
3458
|
-
function
|
|
3454
|
+
function _n(e, t) {
|
|
3459
3455
|
if (t == null)
|
|
3460
3456
|
return;
|
|
3461
3457
|
if (t in e)
|
|
@@ -3476,101 +3472,101 @@ function En(e, t) {
|
|
|
3476
3472
|
i = void 0;
|
|
3477
3473
|
return i;
|
|
3478
3474
|
}
|
|
3479
|
-
const
|
|
3475
|
+
const fe = {}, En = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), Hr = (e, t) => {
|
|
3480
3476
|
if (t == null)
|
|
3481
3477
|
return;
|
|
3482
|
-
if (t in
|
|
3483
|
-
return
|
|
3484
|
-
const r =
|
|
3478
|
+
if (t in fe && e in fe[t])
|
|
3479
|
+
return fe[t][e];
|
|
3480
|
+
const r = ke(t);
|
|
3485
3481
|
for (let i = 0; i < r.length; i++) {
|
|
3486
|
-
const n = r[i], s =
|
|
3482
|
+
const n = r[i], s = Sn(n, e);
|
|
3487
3483
|
if (s)
|
|
3488
|
-
return
|
|
3484
|
+
return En(e, t, s);
|
|
3489
3485
|
}
|
|
3490
3486
|
};
|
|
3491
3487
|
let St;
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3488
|
+
const Re = Ne({});
|
|
3489
|
+
function wn(e) {
|
|
3494
3490
|
return St[e] || null;
|
|
3495
3491
|
}
|
|
3496
|
-
function
|
|
3492
|
+
function Pr(e) {
|
|
3497
3493
|
return e in St;
|
|
3498
3494
|
}
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3495
|
+
function Sn(e, t) {
|
|
3496
|
+
if (!Pr(e))
|
|
3501
3497
|
return null;
|
|
3502
|
-
const r =
|
|
3503
|
-
return
|
|
3498
|
+
const r = wn(e);
|
|
3499
|
+
return _n(r, t);
|
|
3504
3500
|
}
|
|
3505
|
-
function
|
|
3501
|
+
function Tn(e) {
|
|
3506
3502
|
if (e == null)
|
|
3507
3503
|
return;
|
|
3508
|
-
const t =
|
|
3504
|
+
const t = ke(e);
|
|
3509
3505
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3506
|
const i = t[r];
|
|
3511
|
-
if (
|
|
3507
|
+
if (Pr(i))
|
|
3512
3508
|
return i;
|
|
3513
3509
|
}
|
|
3514
3510
|
}
|
|
3515
|
-
function
|
|
3516
|
-
delete
|
|
3511
|
+
function Or(e, ...t) {
|
|
3512
|
+
delete fe[e], Re.update((r) => (r[e] = Ai.all([r[e] || {}, ...t]), r));
|
|
3517
3513
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3514
|
+
Oe(
|
|
3515
|
+
[Re],
|
|
3520
3516
|
([e]) => Object.keys(e)
|
|
3521
3517
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3518
|
+
Re.subscribe((e) => St = e);
|
|
3519
|
+
const Xe = {};
|
|
3520
|
+
function Hn(e, t) {
|
|
3521
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3526
3522
|
}
|
|
3527
3523
|
function Ar(e) {
|
|
3528
|
-
return
|
|
3524
|
+
return Xe[e];
|
|
3529
3525
|
}
|
|
3530
3526
|
function Pn(e) {
|
|
3531
|
-
return
|
|
3527
|
+
return ke(e).map((t) => {
|
|
3532
3528
|
const r = Ar(t);
|
|
3533
3529
|
return [t, r ? [...r] : []];
|
|
3534
3530
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3531
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e == null ? !1 :
|
|
3532
|
+
function We(e) {
|
|
3533
|
+
return e == null ? !1 : ke(e).some(
|
|
3538
3534
|
(t) => {
|
|
3539
3535
|
var r;
|
|
3540
3536
|
return (r = Ar(t)) == null ? void 0 : r.size;
|
|
3541
3537
|
}
|
|
3542
3538
|
);
|
|
3543
3539
|
}
|
|
3544
|
-
function
|
|
3540
|
+
function On(e, t) {
|
|
3545
3541
|
return Promise.all(
|
|
3546
|
-
t.map((i) => (
|
|
3547
|
-
).then((i) =>
|
|
3542
|
+
t.map((i) => (Hn(e, i), i().then((n) => n.default || n)))
|
|
3543
|
+
).then((i) => Or(e, ...i));
|
|
3548
3544
|
}
|
|
3549
|
-
const
|
|
3545
|
+
const $e = {};
|
|
3550
3546
|
function $r(e) {
|
|
3551
|
-
if (!
|
|
3552
|
-
return e in
|
|
3547
|
+
if (!We(e))
|
|
3548
|
+
return e in $e ? $e[e] : Promise.resolve();
|
|
3553
3549
|
const t = Pn(e);
|
|
3554
|
-
return
|
|
3550
|
+
return $e[e] = Promise.all(
|
|
3555
3551
|
t.map(
|
|
3556
|
-
([r, i]) =>
|
|
3552
|
+
([r, i]) => On(r, i)
|
|
3557
3553
|
)
|
|
3558
3554
|
).then(() => {
|
|
3559
|
-
if (
|
|
3555
|
+
if (We(e))
|
|
3560
3556
|
return $r(e);
|
|
3561
|
-
delete
|
|
3562
|
-
}),
|
|
3557
|
+
delete $e[e];
|
|
3558
|
+
}), $e[e];
|
|
3563
3559
|
}
|
|
3564
|
-
var jt = Object.getOwnPropertySymbols,
|
|
3560
|
+
var jt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Bn = (e, t) => {
|
|
3565
3561
|
var r = {};
|
|
3566
3562
|
for (var i in e)
|
|
3567
|
-
|
|
3563
|
+
An.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3568
3564
|
if (e != null && jt)
|
|
3569
3565
|
for (var i of jt(e))
|
|
3570
|
-
t.indexOf(i) < 0 &&
|
|
3566
|
+
t.indexOf(i) < 0 && $n.call(e, i) && (r[i] = e[i]);
|
|
3571
3567
|
return r;
|
|
3572
3568
|
};
|
|
3573
|
-
const
|
|
3569
|
+
const Mn = {
|
|
3574
3570
|
number: {
|
|
3575
3571
|
scientific: { notation: "scientific" },
|
|
3576
3572
|
engineering: { notation: "engineering" },
|
|
@@ -3600,28 +3596,28 @@ const Cn = {
|
|
|
3600
3596
|
}
|
|
3601
3597
|
}
|
|
3602
3598
|
};
|
|
3603
|
-
function
|
|
3599
|
+
function Cn({ locale: e, id: t }) {
|
|
3604
3600
|
console.warn(
|
|
3605
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3601
|
+
`[svelte-i18n] The message "${t}" was not found in "${ke(
|
|
3606
3602
|
e
|
|
3607
|
-
).join('", "')}".${
|
|
3603
|
+
).join('", "')}".${We(ce()) ? `
|
|
3608
3604
|
|
|
3609
3605
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3610
3606
|
);
|
|
3611
3607
|
}
|
|
3612
|
-
const
|
|
3608
|
+
const Dn = {
|
|
3613
3609
|
fallbackLocale: null,
|
|
3614
3610
|
loadingDelay: 200,
|
|
3615
|
-
formats:
|
|
3611
|
+
formats: Mn,
|
|
3616
3612
|
warnOnMissingMessages: !0,
|
|
3617
3613
|
handleMissingMessage: void 0,
|
|
3618
3614
|
ignoreTag: !0
|
|
3619
|
-
},
|
|
3615
|
+
}, Be = Dn;
|
|
3620
3616
|
function Pe() {
|
|
3621
|
-
return
|
|
3617
|
+
return Be;
|
|
3622
3618
|
}
|
|
3623
|
-
function
|
|
3624
|
-
const t = e, { formats: r } = t, i =
|
|
3619
|
+
function Ln(e) {
|
|
3620
|
+
const t = e, { formats: r } = t, i = Bn(t, ["formats"]);
|
|
3625
3621
|
let n = e.fallbackLocale;
|
|
3626
3622
|
if (e.initialLocale)
|
|
3627
3623
|
try {
|
|
@@ -3631,134 +3627,134 @@ function In(e) {
|
|
|
3631
3627
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3632
3628
|
);
|
|
3633
3629
|
}
|
|
3634
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3630
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Cn : console.warn(
|
|
3635
3631
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3636
|
-
)), Object.assign(
|
|
3632
|
+
)), Object.assign(Be, i, { initialLocale: n }), r && ("number" in r && Object.assign(Be.formats.number, r.number), "date" in r && Object.assign(Be.formats.date, r.date), "time" in r && Object.assign(Be.formats.time, r.time)), pe.set(n);
|
|
3637
3633
|
}
|
|
3638
|
-
const
|
|
3639
|
-
var
|
|
3634
|
+
const ot = Ne(!1);
|
|
3635
|
+
var In = Object.defineProperty, Nn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3640
3636
|
for (var r in t || (t = {}))
|
|
3641
|
-
|
|
3637
|
+
kn.call(t, r) && Xt(e, r, t[r]);
|
|
3642
3638
|
if (zt)
|
|
3643
3639
|
for (var r of zt(t))
|
|
3644
|
-
|
|
3640
|
+
Un.call(t, r) && Xt(e, r, t[r]);
|
|
3645
3641
|
return e;
|
|
3646
|
-
},
|
|
3647
|
-
let
|
|
3648
|
-
const
|
|
3642
|
+
}, Vn = (e, t) => Nn(e, Rn(t));
|
|
3643
|
+
let vt;
|
|
3644
|
+
const qe = Ne(null);
|
|
3649
3645
|
function Wt(e) {
|
|
3650
3646
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3651
3647
|
}
|
|
3652
|
-
function
|
|
3648
|
+
function ke(e, t = Pe().fallbackLocale) {
|
|
3653
3649
|
const r = Wt(e);
|
|
3654
3650
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Wt(t)])] : r;
|
|
3655
3651
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return
|
|
3652
|
+
function ce() {
|
|
3653
|
+
return vt != null ? vt : void 0;
|
|
3658
3654
|
}
|
|
3659
|
-
|
|
3660
|
-
|
|
3655
|
+
qe.subscribe((e) => {
|
|
3656
|
+
vt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3661
3657
|
});
|
|
3662
|
-
const
|
|
3663
|
-
if (e &&
|
|
3658
|
+
const Gn = (e) => {
|
|
3659
|
+
if (e && Tn(e) && We(e)) {
|
|
3664
3660
|
const { loadingDelay: t } = Pe();
|
|
3665
3661
|
let r;
|
|
3666
|
-
return typeof window != "undefined" &&
|
|
3667
|
-
() =>
|
|
3662
|
+
return typeof window != "undefined" && ce() != null && t ? r = window.setTimeout(
|
|
3663
|
+
() => ot.set(!0),
|
|
3668
3664
|
t
|
|
3669
|
-
) :
|
|
3670
|
-
|
|
3665
|
+
) : ot.set(!0), $r(e).then(() => {
|
|
3666
|
+
qe.set(e);
|
|
3671
3667
|
}).finally(() => {
|
|
3672
|
-
clearTimeout(r),
|
|
3668
|
+
clearTimeout(r), ot.set(!1);
|
|
3673
3669
|
});
|
|
3674
3670
|
}
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
-
set:
|
|
3678
|
-
}),
|
|
3671
|
+
return qe.set(e);
|
|
3672
|
+
}, pe = Vn(Fn({}, qe), {
|
|
3673
|
+
set: Gn
|
|
3674
|
+
}), Qe = (e) => {
|
|
3679
3675
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3676
|
return (i) => {
|
|
3681
3677
|
const n = JSON.stringify(i);
|
|
3682
3678
|
return n in t ? t[n] : t[n] = e(i);
|
|
3683
3679
|
};
|
|
3684
3680
|
};
|
|
3685
|
-
var
|
|
3681
|
+
var jn = Object.defineProperty, Ye = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
3686
3682
|
for (var r in t || (t = {}))
|
|
3687
3683
|
Br.call(t, r) && qt(e, r, t[r]);
|
|
3688
|
-
if (
|
|
3689
|
-
for (var r of
|
|
3684
|
+
if (Ye)
|
|
3685
|
+
for (var r of Ye(t))
|
|
3690
3686
|
Mr.call(t, r) && qt(e, r, t[r]);
|
|
3691
3687
|
return e;
|
|
3692
|
-
},
|
|
3688
|
+
}, Ae = (e, t) => {
|
|
3693
3689
|
var r = {};
|
|
3694
3690
|
for (var i in e)
|
|
3695
3691
|
Br.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3696
|
-
if (e != null &&
|
|
3697
|
-
for (var i of
|
|
3692
|
+
if (e != null && Ye)
|
|
3693
|
+
for (var i of Ye(e))
|
|
3698
3694
|
t.indexOf(i) < 0 && Mr.call(e, i) && (r[i] = e[i]);
|
|
3699
3695
|
return r;
|
|
3700
3696
|
};
|
|
3701
|
-
const
|
|
3697
|
+
const Le = (e, t) => {
|
|
3702
3698
|
const { formats: r } = Pe();
|
|
3703
3699
|
if (e in r && t in r[e])
|
|
3704
3700
|
return r[e][t];
|
|
3705
3701
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
|
-
},
|
|
3702
|
+
}, zn = Qe(
|
|
3707
3703
|
(e) => {
|
|
3708
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3704
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3709
3705
|
if (r == null)
|
|
3710
3706
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
|
-
return i && (n =
|
|
3707
|
+
return i && (n = Le("number", i)), new Intl.NumberFormat(r, n);
|
|
3712
3708
|
}
|
|
3713
|
-
),
|
|
3709
|
+
), Xn = Qe(
|
|
3714
3710
|
(e) => {
|
|
3715
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3711
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3716
3712
|
if (r == null)
|
|
3717
3713
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
|
-
return i ? n =
|
|
3714
|
+
return i ? n = Le("date", i) : Object.keys(n).length === 0 && (n = Le("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3719
3715
|
}
|
|
3720
|
-
),
|
|
3716
|
+
), Wn = Qe(
|
|
3721
3717
|
(e) => {
|
|
3722
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3718
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3723
3719
|
if (r == null)
|
|
3724
3720
|
throw new Error(
|
|
3725
3721
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3726
3722
|
);
|
|
3727
|
-
return i ? n =
|
|
3723
|
+
return i ? n = Le("time", i) : Object.keys(n).length === 0 && (n = Le("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3728
3724
|
}
|
|
3729
|
-
),
|
|
3725
|
+
), qn = (e = {}) => {
|
|
3730
3726
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3732
|
-
} = t, i =
|
|
3727
|
+
locale: r = ce()
|
|
3728
|
+
} = t, i = Ae(t, [
|
|
3733
3729
|
"locale"
|
|
3734
3730
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3731
|
+
return zn(Tt({ locale: r }, i));
|
|
3732
|
+
}, Yn = (e = {}) => {
|
|
3737
3733
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3739
|
-
} = t, i =
|
|
3734
|
+
locale: r = ce()
|
|
3735
|
+
} = t, i = Ae(t, [
|
|
3740
3736
|
"locale"
|
|
3741
3737
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3738
|
+
return Xn(Tt({ locale: r }, i));
|
|
3739
|
+
}, Zn = (e = {}) => {
|
|
3744
3740
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3746
|
-
} = t, i =
|
|
3741
|
+
locale: r = ce()
|
|
3742
|
+
} = t, i = Ae(t, [
|
|
3747
3743
|
"locale"
|
|
3748
3744
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3745
|
+
return Wn(Tt({ locale: r }, i));
|
|
3746
|
+
}, Jn = Qe(
|
|
3751
3747
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3748
|
+
(e, t = ce()) => new Tr(e, t, Pe().formats, {
|
|
3753
3749
|
ignoreTag: Pe().ignoreTag
|
|
3754
3750
|
})
|
|
3755
|
-
),
|
|
3751
|
+
), Qn = (e, t = {}) => {
|
|
3756
3752
|
var r, i, n, s;
|
|
3757
3753
|
let a = t;
|
|
3758
3754
|
typeof e == "object" && (a = e, e = a.id);
|
|
3759
3755
|
const {
|
|
3760
3756
|
values: l,
|
|
3761
|
-
locale: o =
|
|
3757
|
+
locale: o = ce(),
|
|
3762
3758
|
default: u
|
|
3763
3759
|
} = a;
|
|
3764
3760
|
if (o == null)
|
|
@@ -3776,7 +3772,7 @@ const Ie = (e, t) => {
|
|
|
3776
3772
|
return h;
|
|
3777
3773
|
let c = h;
|
|
3778
3774
|
try {
|
|
3779
|
-
c =
|
|
3775
|
+
c = Jn(h, o).format(l);
|
|
3780
3776
|
} catch (p) {
|
|
3781
3777
|
p instanceof Error && console.warn(
|
|
3782
3778
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3784,18 +3780,18 @@ const Ie = (e, t) => {
|
|
|
3784
3780
|
);
|
|
3785
3781
|
}
|
|
3786
3782
|
return c;
|
|
3787
|
-
},
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3783
|
+
}, Kn = (e, t) => Zn(t).format(e), es = (e, t) => Yn(t).format(e), ts = (e, t) => qn(t).format(e), rs = (e, t = ce()) => Hr(e, t), is = Oe([pe, Re], () => Qn);
|
|
3784
|
+
Oe([pe], () => Kn);
|
|
3785
|
+
Oe([pe], () => es);
|
|
3786
|
+
Oe([pe], () => ts);
|
|
3787
|
+
Oe([pe, Re], () => rs);
|
|
3792
3788
|
function Yt(e, t) {
|
|
3793
|
-
|
|
3789
|
+
Or(e, t);
|
|
3794
3790
|
}
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3791
|
+
function ns(e) {
|
|
3792
|
+
Ln({
|
|
3797
3793
|
fallbackLocale: "en"
|
|
3798
|
-
}),
|
|
3794
|
+
}), pe.set(e);
|
|
3799
3795
|
}
|
|
3800
3796
|
const Zt = {
|
|
3801
3797
|
en: {
|
|
@@ -3865,25 +3861,25 @@ if (typeof window != "undefined") {
|
|
|
3865
3861
|
}
|
|
3866
3862
|
};
|
|
3867
3863
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3864
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-C-Ev6exS.js").then(({ default: t }) => {
|
|
3869
3865
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3870
3866
|
});
|
|
3871
3867
|
}
|
|
3872
|
-
let
|
|
3868
|
+
let ss = Ne(null);
|
|
3873
3869
|
var Cr = { exports: {} };
|
|
3874
3870
|
(function(e, t) {
|
|
3875
3871
|
(function(r, i) {
|
|
3876
3872
|
e.exports = i();
|
|
3877
3873
|
})(ar, function() {
|
|
3878
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date", v = "Invalid Date",
|
|
3874
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date", v = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|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, R = { 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(_) {
|
|
3879
3875
|
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3880
3876
|
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3881
|
-
} },
|
|
3877
|
+
} }, B = function(_, g, d) {
|
|
3882
3878
|
var y = String(_);
|
|
3883
3879
|
return !y || y.length >= g ? _ : "" + Array(g + 1 - y.length).join(d) + _;
|
|
3884
|
-
}, z = { s:
|
|
3880
|
+
}, z = { s: B, z: function(_) {
|
|
3885
3881
|
var g = -_.utcOffset(), d = Math.abs(g), y = Math.floor(d / 60), m = d % 60;
|
|
3886
|
-
return (g <= 0 ? "+" : "-") +
|
|
3882
|
+
return (g <= 0 ? "+" : "-") + B(y, 2, "0") + ":" + B(m, 2, "0");
|
|
3887
3883
|
}, m: function _(g, d) {
|
|
3888
3884
|
if (g.date() < d.date())
|
|
3889
3885
|
return -_(d, g);
|
|
@@ -3898,7 +3894,7 @@ var Cr = { exports: {} };
|
|
|
3898
3894
|
} }, N = "en", k = {};
|
|
3899
3895
|
k[N] = R;
|
|
3900
3896
|
var W = "$isDayjsObject", J = function(_) {
|
|
3901
|
-
return _ instanceof
|
|
3897
|
+
return _ instanceof ge || !(!_ || !_[W]);
|
|
3902
3898
|
}, q = function _(g, d, y) {
|
|
3903
3899
|
var m;
|
|
3904
3900
|
if (!g)
|
|
@@ -3910,20 +3906,20 @@ var Cr = { exports: {} };
|
|
|
3910
3906
|
if (!m && w.length > 1)
|
|
3911
3907
|
return _(w[0]);
|
|
3912
3908
|
} else {
|
|
3913
|
-
var
|
|
3914
|
-
k[
|
|
3909
|
+
var M = g.name;
|
|
3910
|
+
k[M] = g, m = M;
|
|
3915
3911
|
}
|
|
3916
3912
|
return !y && m && (N = m), m || !y && N;
|
|
3917
3913
|
}, A = function(_, g) {
|
|
3918
3914
|
if (J(_))
|
|
3919
3915
|
return _.clone();
|
|
3920
3916
|
var d = typeof g == "object" ? g : {};
|
|
3921
|
-
return d.date = _, d.args = arguments, new
|
|
3922
|
-
},
|
|
3923
|
-
|
|
3917
|
+
return d.date = _, d.args = arguments, new ge(d);
|
|
3918
|
+
}, P = z;
|
|
3919
|
+
P.l = q, P.i = J, P.w = function(_, g) {
|
|
3924
3920
|
return A(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3925
3921
|
};
|
|
3926
|
-
var
|
|
3922
|
+
var ge = function() {
|
|
3927
3923
|
function _(d) {
|
|
3928
3924
|
this.$L = q(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[W] = !0;
|
|
3929
3925
|
}
|
|
@@ -3933,15 +3929,15 @@ var Cr = { exports: {} };
|
|
|
3933
3929
|
var m = y.date, E = y.utc;
|
|
3934
3930
|
if (m === null)
|
|
3935
3931
|
return /* @__PURE__ */ new Date(NaN);
|
|
3936
|
-
if (
|
|
3932
|
+
if (P.u(m))
|
|
3937
3933
|
return /* @__PURE__ */ new Date();
|
|
3938
3934
|
if (m instanceof Date)
|
|
3939
3935
|
return new Date(m);
|
|
3940
3936
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3941
|
-
var w = m.match(
|
|
3937
|
+
var w = m.match(C);
|
|
3942
3938
|
if (w) {
|
|
3943
|
-
var
|
|
3944
|
-
return E ? new Date(Date.UTC(w[1],
|
|
3939
|
+
var M = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
3940
|
+
return E ? new Date(Date.UTC(w[1], M, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], M, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
3945
3941
|
}
|
|
3946
3942
|
}
|
|
3947
3943
|
return new Date(m);
|
|
@@ -3950,7 +3946,7 @@ var Cr = { exports: {} };
|
|
|
3950
3946
|
var d = this.$d;
|
|
3951
3947
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3952
3948
|
}, g.$utils = function() {
|
|
3953
|
-
return
|
|
3949
|
+
return P;
|
|
3954
3950
|
}, g.isValid = function() {
|
|
3955
3951
|
return this.$d.toString() !== v;
|
|
3956
3952
|
}, g.isSame = function(d, y) {
|
|
@@ -3961,94 +3957,94 @@ var Cr = { exports: {} };
|
|
|
3961
3957
|
}, g.isBefore = function(d, y) {
|
|
3962
3958
|
return this.endOf(y) < A(d);
|
|
3963
3959
|
}, g.$g = function(d, y, m) {
|
|
3964
|
-
return
|
|
3960
|
+
return P.u(d) ? this[y] : this.set(m, d);
|
|
3965
3961
|
}, g.unix = function() {
|
|
3966
3962
|
return Math.floor(this.valueOf() / 1e3);
|
|
3967
3963
|
}, g.valueOf = function() {
|
|
3968
3964
|
return this.$d.getTime();
|
|
3969
3965
|
}, g.startOf = function(d, y) {
|
|
3970
|
-
var m = this, E = !!
|
|
3971
|
-
var re =
|
|
3966
|
+
var m = this, E = !!P.u(y) || y, w = P.p(d), M = function(se, G) {
|
|
3967
|
+
var re = P.w(m.$u ? Date.UTC(m.$y, G, se) : new Date(m.$y, G, se), m);
|
|
3972
3968
|
return E ? re : re.endOf(u);
|
|
3973
|
-
},
|
|
3974
|
-
return
|
|
3975
|
-
}, I = this.$W, V = this.$M, X = this.$D,
|
|
3969
|
+
}, L = function(se, G) {
|
|
3970
|
+
return P.w(m.toDate()[se].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), m);
|
|
3971
|
+
}, I = this.$W, V = this.$M, X = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
|
3976
3972
|
switch (w) {
|
|
3977
3973
|
case x:
|
|
3978
|
-
return E ?
|
|
3974
|
+
return E ? M(1, 0) : M(31, 11);
|
|
3979
3975
|
case c:
|
|
3980
|
-
return E ?
|
|
3976
|
+
return E ? M(1, V) : M(0, V + 1);
|
|
3981
3977
|
case h:
|
|
3982
|
-
var te = this.$locale().weekStart || 0,
|
|
3983
|
-
return
|
|
3978
|
+
var te = this.$locale().weekStart || 0, de = (I < te ? I + 7 : I) - te;
|
|
3979
|
+
return M(E ? X - de : X + (6 - de), V);
|
|
3984
3980
|
case u:
|
|
3985
3981
|
case S:
|
|
3986
|
-
return
|
|
3982
|
+
return L(ue + "Hours", 0);
|
|
3987
3983
|
case o:
|
|
3988
|
-
return
|
|
3984
|
+
return L(ue + "Minutes", 1);
|
|
3989
3985
|
case l:
|
|
3990
|
-
return
|
|
3986
|
+
return L(ue + "Seconds", 2);
|
|
3991
3987
|
case a:
|
|
3992
|
-
return
|
|
3988
|
+
return L(ue + "Milliseconds", 3);
|
|
3993
3989
|
default:
|
|
3994
3990
|
return this.clone();
|
|
3995
3991
|
}
|
|
3996
3992
|
}, g.endOf = function(d) {
|
|
3997
3993
|
return this.startOf(d, !1);
|
|
3998
3994
|
}, g.$set = function(d, y) {
|
|
3999
|
-
var m, E =
|
|
3995
|
+
var m, E = P.p(d), w = "set" + (this.$u ? "UTC" : ""), M = (m = {}, m[u] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[l] = w + "Minutes", m[a] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], L = E === u ? this.$D + (y - this.$W) : y;
|
|
4000
3996
|
if (E === c || E === x) {
|
|
4001
3997
|
var I = this.clone().set(S, 1);
|
|
4002
|
-
I.$d[
|
|
3998
|
+
I.$d[M](L), I.init(), this.$d = I.set(S, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4003
3999
|
} else
|
|
4004
|
-
|
|
4000
|
+
M && this.$d[M](L);
|
|
4005
4001
|
return this.init(), this;
|
|
4006
4002
|
}, g.set = function(d, y) {
|
|
4007
4003
|
return this.clone().$set(d, y);
|
|
4008
4004
|
}, g.get = function(d) {
|
|
4009
|
-
return this[
|
|
4005
|
+
return this[P.p(d)]();
|
|
4010
4006
|
}, g.add = function(d, y) {
|
|
4011
4007
|
var m, E = this;
|
|
4012
4008
|
d = Number(d);
|
|
4013
|
-
var w =
|
|
4009
|
+
var w = P.p(y), M = function(V) {
|
|
4014
4010
|
var X = A(E);
|
|
4015
|
-
return
|
|
4011
|
+
return P.w(X.date(X.date() + Math.round(V * d)), E);
|
|
4016
4012
|
};
|
|
4017
4013
|
if (w === c)
|
|
4018
4014
|
return this.set(c, this.$M + d);
|
|
4019
4015
|
if (w === x)
|
|
4020
4016
|
return this.set(x, this.$y + d);
|
|
4021
4017
|
if (w === u)
|
|
4022
|
-
return
|
|
4018
|
+
return M(1);
|
|
4023
4019
|
if (w === h)
|
|
4024
|
-
return
|
|
4025
|
-
var
|
|
4026
|
-
return
|
|
4020
|
+
return M(7);
|
|
4021
|
+
var L = (m = {}, m[l] = i, m[o] = n, m[a] = r, m)[w] || 1, I = this.$d.getTime() + d * L;
|
|
4022
|
+
return P.w(I, this);
|
|
4027
4023
|
}, g.subtract = function(d, y) {
|
|
4028
4024
|
return this.add(-1 * d, y);
|
|
4029
4025
|
}, g.format = function(d) {
|
|
4030
4026
|
var y = this, m = this.$locale();
|
|
4031
4027
|
if (!this.isValid())
|
|
4032
4028
|
return m.invalidDate || v;
|
|
4033
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
4034
|
-
return G && (G[re] || G(y, E)) ||
|
|
4035
|
-
},
|
|
4036
|
-
return
|
|
4037
|
-
},
|
|
4038
|
-
var
|
|
4039
|
-
return
|
|
4029
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), M = this.$H, L = this.$m, I = this.$M, V = m.weekdays, X = m.months, ue = m.meridiem, te = function(G, re, oe, ve) {
|
|
4030
|
+
return G && (G[re] || G(y, E)) || oe[re].slice(0, ve);
|
|
4031
|
+
}, de = function(G) {
|
|
4032
|
+
return P.s(M % 12 || 12, G, "0");
|
|
4033
|
+
}, se = ue || function(G, re, oe) {
|
|
4034
|
+
var ve = G < 12 ? "AM" : "PM";
|
|
4035
|
+
return oe ? ve.toLowerCase() : ve;
|
|
4040
4036
|
};
|
|
4041
4037
|
return E.replace(F, function(G, re) {
|
|
4042
|
-
return re || function(
|
|
4043
|
-
switch (
|
|
4038
|
+
return re || function(oe) {
|
|
4039
|
+
switch (oe) {
|
|
4044
4040
|
case "YY":
|
|
4045
4041
|
return String(y.$y).slice(-2);
|
|
4046
4042
|
case "YYYY":
|
|
4047
|
-
return
|
|
4043
|
+
return P.s(y.$y, 4, "0");
|
|
4048
4044
|
case "M":
|
|
4049
4045
|
return I + 1;
|
|
4050
4046
|
case "MM":
|
|
4051
|
-
return
|
|
4047
|
+
return P.s(I + 1, 2, "0");
|
|
4052
4048
|
case "MMM":
|
|
4053
4049
|
return te(m.monthsShort, I, X, 3);
|
|
4054
4050
|
case "MMMM":
|
|
@@ -4056,7 +4052,7 @@ var Cr = { exports: {} };
|
|
|
4056
4052
|
case "D":
|
|
4057
4053
|
return y.$D;
|
|
4058
4054
|
case "DD":
|
|
4059
|
-
return
|
|
4055
|
+
return P.s(y.$D, 2, "0");
|
|
4060
4056
|
case "d":
|
|
4061
4057
|
return String(y.$W);
|
|
4062
4058
|
case "dd":
|
|
@@ -4066,27 +4062,27 @@ var Cr = { exports: {} };
|
|
|
4066
4062
|
case "dddd":
|
|
4067
4063
|
return V[y.$W];
|
|
4068
4064
|
case "H":
|
|
4069
|
-
return String(
|
|
4065
|
+
return String(M);
|
|
4070
4066
|
case "HH":
|
|
4071
|
-
return
|
|
4067
|
+
return P.s(M, 2, "0");
|
|
4072
4068
|
case "h":
|
|
4073
|
-
return
|
|
4069
|
+
return de(1);
|
|
4074
4070
|
case "hh":
|
|
4075
|
-
return
|
|
4071
|
+
return de(2);
|
|
4076
4072
|
case "a":
|
|
4077
|
-
return
|
|
4073
|
+
return se(M, L, !0);
|
|
4078
4074
|
case "A":
|
|
4079
|
-
return
|
|
4075
|
+
return se(M, L, !1);
|
|
4080
4076
|
case "m":
|
|
4081
|
-
return String(
|
|
4077
|
+
return String(L);
|
|
4082
4078
|
case "mm":
|
|
4083
|
-
return
|
|
4079
|
+
return P.s(L, 2, "0");
|
|
4084
4080
|
case "s":
|
|
4085
4081
|
return String(y.$s);
|
|
4086
4082
|
case "ss":
|
|
4087
|
-
return
|
|
4083
|
+
return P.s(y.$s, 2, "0");
|
|
4088
4084
|
case "SSS":
|
|
4089
|
-
return
|
|
4085
|
+
return P.s(y.$ms, 3, "0");
|
|
4090
4086
|
case "Z":
|
|
4091
4087
|
return w;
|
|
4092
4088
|
}
|
|
@@ -4096,10 +4092,10 @@ var Cr = { exports: {} };
|
|
|
4096
4092
|
}, g.utcOffset = function() {
|
|
4097
4093
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4098
4094
|
}, g.diff = function(d, y, m) {
|
|
4099
|
-
var E, w = this,
|
|
4100
|
-
return
|
|
4095
|
+
var E, w = this, M = P.p(y), L = A(d), I = (L.utcOffset() - this.utcOffset()) * i, V = this - L, X = function() {
|
|
4096
|
+
return P.m(w, L);
|
|
4101
4097
|
};
|
|
4102
|
-
switch (
|
|
4098
|
+
switch (M) {
|
|
4103
4099
|
case x:
|
|
4104
4100
|
E = X() / 12;
|
|
4105
4101
|
break;
|
|
@@ -4127,7 +4123,7 @@ var Cr = { exports: {} };
|
|
|
4127
4123
|
default:
|
|
4128
4124
|
E = V;
|
|
4129
4125
|
}
|
|
4130
|
-
return m ? E :
|
|
4126
|
+
return m ? E : P.a(E);
|
|
4131
4127
|
}, g.daysInMonth = function() {
|
|
4132
4128
|
return this.endOf(c).$D;
|
|
4133
4129
|
}, g.$locale = function() {
|
|
@@ -4138,7 +4134,7 @@ var Cr = { exports: {} };
|
|
|
4138
4134
|
var m = this.clone(), E = q(d, y, !0);
|
|
4139
4135
|
return E && (m.$L = E), m;
|
|
4140
4136
|
}, g.clone = function() {
|
|
4141
|
-
return
|
|
4137
|
+
return P.w(this.$d, this);
|
|
4142
4138
|
}, g.toDate = function() {
|
|
4143
4139
|
return new Date(this.valueOf());
|
|
4144
4140
|
}, g.toJSON = function() {
|
|
@@ -4148,20 +4144,20 @@ var Cr = { exports: {} };
|
|
|
4148
4144
|
}, g.toString = function() {
|
|
4149
4145
|
return this.$d.toUTCString();
|
|
4150
4146
|
}, _;
|
|
4151
|
-
}(),
|
|
4152
|
-
return A.prototype =
|
|
4153
|
-
|
|
4147
|
+
}(), Ue = ge.prototype;
|
|
4148
|
+
return A.prototype = Ue, [["$ms", s], ["$s", a], ["$m", l], ["$H", o], ["$W", u], ["$M", c], ["$y", x], ["$D", S]].forEach(function(_) {
|
|
4149
|
+
Ue[_[1]] = function(g) {
|
|
4154
4150
|
return this.$g(g, _[0], _[1]);
|
|
4155
4151
|
};
|
|
4156
4152
|
}), A.extend = function(_, g) {
|
|
4157
|
-
return _.$i || (_(g,
|
|
4153
|
+
return _.$i || (_(g, ge, A), _.$i = !0), A;
|
|
4158
4154
|
}, A.locale = q, A.isDayjs = J, A.unix = function(_) {
|
|
4159
4155
|
return A(1e3 * _);
|
|
4160
4156
|
}, A.en = k[N], A.Ls = k, A.p = {}, A;
|
|
4161
4157
|
});
|
|
4162
4158
|
})(Cr);
|
|
4163
|
-
var
|
|
4164
|
-
const Jt = /* @__PURE__ */
|
|
4159
|
+
var os = Cr.exports;
|
|
4160
|
+
const Jt = /* @__PURE__ */ _t(os);
|
|
4165
4161
|
var Dr = { exports: {} };
|
|
4166
4162
|
(function(e, t) {
|
|
4167
4163
|
(function(r, i) {
|
|
@@ -4171,11 +4167,11 @@ var Dr = { exports: {} };
|
|
|
4171
4167
|
return function(s, a, l) {
|
|
4172
4168
|
var o = a.prototype;
|
|
4173
4169
|
l.utc = function(v) {
|
|
4174
|
-
var
|
|
4175
|
-
return new a(
|
|
4170
|
+
var C = { date: v, utc: !0, args: arguments };
|
|
4171
|
+
return new a(C);
|
|
4176
4172
|
}, o.utc = function(v) {
|
|
4177
|
-
var
|
|
4178
|
-
return v ?
|
|
4173
|
+
var C = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4174
|
+
return v ? C.add(this.utcOffset(), r) : C;
|
|
4179
4175
|
}, o.local = function() {
|
|
4180
4176
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4181
4177
|
};
|
|
@@ -4192,7 +4188,7 @@ var Dr = { exports: {} };
|
|
|
4192
4188
|
h.call(this);
|
|
4193
4189
|
};
|
|
4194
4190
|
var c = o.utcOffset;
|
|
4195
|
-
o.utcOffset = function(v,
|
|
4191
|
+
o.utcOffset = function(v, C) {
|
|
4196
4192
|
var F = this.$utils().u;
|
|
4197
4193
|
if (F(v))
|
|
4198
4194
|
return this.$u ? 0 : F(this.$offset) ? c.call(this) : this.$offset;
|
|
@@ -4205,20 +4201,20 @@ var Dr = { exports: {} };
|
|
|
4205
4201
|
return q === 0 ? 0 : J === "+" ? q : -q;
|
|
4206
4202
|
}(v), v === null))
|
|
4207
4203
|
return this;
|
|
4208
|
-
var R = Math.abs(v) <= 16 ? 60 * v : v,
|
|
4209
|
-
if (
|
|
4210
|
-
return
|
|
4204
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, B = this;
|
|
4205
|
+
if (C)
|
|
4206
|
+
return B.$offset = R, B.$u = v === 0, B;
|
|
4211
4207
|
if (v !== 0) {
|
|
4212
4208
|
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4213
|
-
(
|
|
4209
|
+
(B = this.local().add(R + z, r)).$offset = R, B.$x.$localOffset = z;
|
|
4214
4210
|
} else
|
|
4215
|
-
|
|
4216
|
-
return
|
|
4211
|
+
B = this.utc();
|
|
4212
|
+
return B;
|
|
4217
4213
|
};
|
|
4218
4214
|
var p = o.format;
|
|
4219
4215
|
o.format = function(v) {
|
|
4220
|
-
var
|
|
4221
|
-
return p.call(this,
|
|
4216
|
+
var C = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4217
|
+
return p.call(this, C);
|
|
4222
4218
|
}, o.valueOf = function() {
|
|
4223
4219
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4224
4220
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -4234,18 +4230,18 @@ var Dr = { exports: {} };
|
|
|
4234
4230
|
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4235
4231
|
};
|
|
4236
4232
|
var S = o.diff;
|
|
4237
|
-
o.diff = function(v,
|
|
4233
|
+
o.diff = function(v, C, F) {
|
|
4238
4234
|
if (v && this.$u === v.$u)
|
|
4239
|
-
return S.call(this, v,
|
|
4240
|
-
var R = this.local(),
|
|
4241
|
-
return S.call(R,
|
|
4235
|
+
return S.call(this, v, C, F);
|
|
4236
|
+
var R = this.local(), B = l(v).local();
|
|
4237
|
+
return S.call(R, B, C, F);
|
|
4242
4238
|
};
|
|
4243
4239
|
};
|
|
4244
4240
|
});
|
|
4245
4241
|
})(Dr);
|
|
4246
|
-
var
|
|
4247
|
-
const
|
|
4248
|
-
function
|
|
4242
|
+
var as = Dr.exports;
|
|
4243
|
+
const us = /* @__PURE__ */ _t(as);
|
|
4244
|
+
function ls(e) {
|
|
4249
4245
|
Wr(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4250
4246
|
}
|
|
4251
4247
|
function Qt(e, t, r) {
|
|
@@ -4268,22 +4264,22 @@ function Kt(e) {
|
|
|
4268
4264
|
t = Z("div");
|
|
4269
4265
|
for (let o = 0; o < a.length; o += 1)
|
|
4270
4266
|
a[o].c();
|
|
4271
|
-
r =
|
|
4267
|
+
r = _e(), l && l.c(), i = _e(), n = Z("cashier-video-modal"), ee(t, "class", "CashierVerificationsWrapper"), he(
|
|
4272
4268
|
n,
|
|
4273
4269
|
"clientstylingurl",
|
|
4274
4270
|
/*clientstylingurl*/
|
|
4275
4271
|
e[1]
|
|
4276
|
-
),
|
|
4272
|
+
), he(
|
|
4277
4273
|
n,
|
|
4278
4274
|
"clientstyling",
|
|
4279
4275
|
/*clientstyling*/
|
|
4280
4276
|
e[0]
|
|
4281
|
-
),
|
|
4277
|
+
), he(
|
|
4282
4278
|
n,
|
|
4283
4279
|
"ismobileview",
|
|
4284
4280
|
/*ismobileview*/
|
|
4285
4281
|
e[2]
|
|
4286
|
-
),
|
|
4282
|
+
), he(
|
|
4287
4283
|
n,
|
|
4288
4284
|
"videosrc",
|
|
4289
4285
|
/*videoSrc*/
|
|
@@ -4291,10 +4287,10 @@ function Kt(e) {
|
|
|
4291
4287
|
);
|
|
4292
4288
|
},
|
|
4293
4289
|
m(o, u) {
|
|
4294
|
-
|
|
4290
|
+
ae(o, t, u);
|
|
4295
4291
|
for (let h = 0; h < a.length; h += 1)
|
|
4296
4292
|
a[h] && a[h].m(t, null);
|
|
4297
|
-
|
|
4293
|
+
ae(o, r, u), l && l.m(o, u), ae(o, i, u), ae(o, n, u);
|
|
4298
4294
|
},
|
|
4299
4295
|
p(o, u) {
|
|
4300
4296
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -4314,25 +4310,25 @@ function Kt(e) {
|
|
|
4314
4310
|
}
|
|
4315
4311
|
/*videoExists*/
|
|
4316
4312
|
o[7] ? l ? l.p(o, u) : (l = rr(o), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4317
|
-
2 &&
|
|
4313
|
+
2 && he(
|
|
4318
4314
|
n,
|
|
4319
4315
|
"clientstylingurl",
|
|
4320
4316
|
/*clientstylingurl*/
|
|
4321
4317
|
o[1]
|
|
4322
4318
|
), u[0] & /*clientstyling*/
|
|
4323
|
-
1 &&
|
|
4319
|
+
1 && he(
|
|
4324
4320
|
n,
|
|
4325
4321
|
"clientstyling",
|
|
4326
4322
|
/*clientstyling*/
|
|
4327
4323
|
o[0]
|
|
4328
4324
|
), u[0] & /*ismobileview*/
|
|
4329
|
-
4 &&
|
|
4325
|
+
4 && he(
|
|
4330
4326
|
n,
|
|
4331
4327
|
"ismobileview",
|
|
4332
4328
|
/*ismobileview*/
|
|
4333
4329
|
o[2]
|
|
4334
4330
|
), u[0] & /*videoSrc*/
|
|
4335
|
-
256 &&
|
|
4331
|
+
256 && he(
|
|
4336
4332
|
n,
|
|
4337
4333
|
"videosrc",
|
|
4338
4334
|
/*videoSrc*/
|
|
@@ -4340,7 +4336,7 @@ function Kt(e) {
|
|
|
4340
4336
|
);
|
|
4341
4337
|
},
|
|
4342
4338
|
d(o) {
|
|
4343
|
-
o && (
|
|
4339
|
+
o && (ne(t), ne(r), ne(i), ne(n)), Zr(a, o), l && l.d(o);
|
|
4344
4340
|
}
|
|
4345
4341
|
};
|
|
4346
4342
|
}
|
|
@@ -4361,13 +4357,13 @@ function er(e) {
|
|
|
4361
4357
|
t = Z("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', ee(t, "class", "CashierVerificationChevron");
|
|
4362
4358
|
},
|
|
4363
4359
|
m(s, a) {
|
|
4364
|
-
|
|
4360
|
+
ae(s, t, a), r || (i = xt(t, "click", n), r = !0);
|
|
4365
4361
|
},
|
|
4366
4362
|
p(s, a) {
|
|
4367
4363
|
e = s;
|
|
4368
4364
|
},
|
|
4369
4365
|
d(s) {
|
|
4370
|
-
s &&
|
|
4366
|
+
s && ne(t), r = !1, i();
|
|
4371
4367
|
}
|
|
4372
4368
|
};
|
|
4373
4369
|
}
|
|
@@ -4392,7 +4388,7 @@ function tr(e) {
|
|
|
4392
4388
|
}
|
|
4393
4389
|
return {
|
|
4394
4390
|
c() {
|
|
4395
|
-
t = Z("div"), r = Z("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i =
|
|
4391
|
+
t = Z("div"), r = Z("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = _e(), n = Z("p"), a = _e(), h && h.c(), l = _e(), ee(r, "class", "IconVerification"), ee(n, "class", "text"), ee(t, "class", "CashierVerificationMessage"), we(
|
|
4396
4392
|
t,
|
|
4397
4393
|
"ShowAll",
|
|
4398
4394
|
/*allVerificationsVisible*/
|
|
@@ -4400,7 +4396,7 @@ function tr(e) {
|
|
|
4400
4396
|
);
|
|
4401
4397
|
},
|
|
4402
4398
|
m(p, x) {
|
|
4403
|
-
|
|
4399
|
+
ae(p, t, x), ie(t, r), ie(t, i), ie(t, n), n.innerHTML = s, ie(t, a), h && h.m(t, null), ie(t, l), o || (u = xt(t, "click", c), o = !0);
|
|
4404
4400
|
},
|
|
4405
4401
|
p(p, x) {
|
|
4406
4402
|
e = p, x[0] & /*displayMessages*/
|
|
@@ -4408,7 +4404,7 @@ function tr(e) {
|
|
|
4408
4404
|
e[53] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4409
4405
|
e[4].length > 1 && /*index*/
|
|
4410
4406
|
e[55] === 0 ? h ? h.p(e, x) : (h = er(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4411
|
-
32 &&
|
|
4407
|
+
32 && we(
|
|
4412
4408
|
t,
|
|
4413
4409
|
"ShowAll",
|
|
4414
4410
|
/*allVerificationsVisible*/
|
|
@@ -4416,7 +4412,7 @@ function tr(e) {
|
|
|
4416
4412
|
);
|
|
4417
4413
|
},
|
|
4418
4414
|
d(p) {
|
|
4419
|
-
p &&
|
|
4415
|
+
p && ne(t), h && h.d(), o = !1, u();
|
|
4420
4416
|
}
|
|
4421
4417
|
};
|
|
4422
4418
|
}
|
|
@@ -4427,7 +4423,7 @@ function rr(e) {
|
|
|
4427
4423
|
), a, l, o;
|
|
4428
4424
|
return {
|
|
4429
4425
|
c() {
|
|
4430
|
-
t = Z("div"), r = Z("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i =
|
|
4426
|
+
t = Z("div"), r = Z("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = _e(), n = Z("div"), a = yt(s), ee(r, "class", "IconVideo"), ee(n, "class", "CashierVerificationVideoLink"), we(
|
|
4431
4427
|
n,
|
|
4432
4428
|
"CashierVerificationVideoLinkDesktop",
|
|
4433
4429
|
/*desktopView*/
|
|
@@ -4435,7 +4431,7 @@ function rr(e) {
|
|
|
4435
4431
|
), ee(t, "class", "CashierVerificationVideo");
|
|
4436
4432
|
},
|
|
4437
4433
|
m(u, h) {
|
|
4438
|
-
|
|
4434
|
+
ae(u, t, h), ie(t, r), ie(t, i), ie(t, n), ie(n, a), l || (o = xt(
|
|
4439
4435
|
n,
|
|
4440
4436
|
"click",
|
|
4441
4437
|
/*click_handler_2*/
|
|
@@ -4446,7 +4442,7 @@ function rr(e) {
|
|
|
4446
4442
|
h[0] & /*$_*/
|
|
4447
4443
|
512 && s !== (s = /*$_*/
|
|
4448
4444
|
u[9]("verification.video.how-to") + "") && Qr(a, s), h[0] & /*desktopView*/
|
|
4449
|
-
64 &&
|
|
4445
|
+
64 && we(
|
|
4450
4446
|
n,
|
|
4451
4447
|
"CashierVerificationVideoLinkDesktop",
|
|
4452
4448
|
/*desktopView*/
|
|
@@ -4454,18 +4450,18 @@ function rr(e) {
|
|
|
4454
4450
|
);
|
|
4455
4451
|
},
|
|
4456
4452
|
d(u) {
|
|
4457
|
-
u &&
|
|
4453
|
+
u && ne(t), l = !1, o();
|
|
4458
4454
|
}
|
|
4459
4455
|
};
|
|
4460
4456
|
}
|
|
4461
|
-
function
|
|
4457
|
+
function hs(e) {
|
|
4462
4458
|
let t, r = (
|
|
4463
4459
|
/*displayMessages*/
|
|
4464
4460
|
e[4] && Kt(e)
|
|
4465
4461
|
);
|
|
4466
4462
|
return {
|
|
4467
4463
|
c() {
|
|
4468
|
-
t = Z("div"), r && r.c(), ee(t, "class", "CashierVerifications"),
|
|
4464
|
+
t = Z("div"), r && r.c(), ee(t, "class", "CashierVerifications"), we(
|
|
4469
4465
|
t,
|
|
4470
4466
|
"CashierVerificationsDesktop",
|
|
4471
4467
|
/*desktopView*/
|
|
@@ -4473,12 +4469,12 @@ function fs(e) {
|
|
|
4473
4469
|
);
|
|
4474
4470
|
},
|
|
4475
4471
|
m(i, n) {
|
|
4476
|
-
|
|
4472
|
+
ae(i, t, n), r && r.m(t, null), e[22](t);
|
|
4477
4473
|
},
|
|
4478
4474
|
p(i, n) {
|
|
4479
4475
|
/*displayMessages*/
|
|
4480
4476
|
i[4] ? r ? r.p(i, n) : (r = Kt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4481
|
-
64 &&
|
|
4477
|
+
64 && we(
|
|
4482
4478
|
t,
|
|
4483
4479
|
"CashierVerificationsDesktop",
|
|
4484
4480
|
/*desktopView*/
|
|
@@ -4488,15 +4484,15 @@ function fs(e) {
|
|
|
4488
4484
|
i: K,
|
|
4489
4485
|
o: K,
|
|
4490
4486
|
d(i) {
|
|
4491
|
-
i &&
|
|
4487
|
+
i && ne(t), r && r.d(), e[22](null);
|
|
4492
4488
|
}
|
|
4493
4489
|
};
|
|
4494
4490
|
}
|
|
4495
|
-
const
|
|
4496
|
-
function
|
|
4491
|
+
const fs = "verification_explanation_video_widgets.MP4";
|
|
4492
|
+
function cs(e, t, r) {
|
|
4497
4493
|
let i, n;
|
|
4498
|
-
Mt(e,
|
|
4499
|
-
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, S, v = /* @__PURE__ */ new Set(),
|
|
4494
|
+
Mt(e, is, (f) => r(9, i = f)), Mt(e, ss, (f) => r(28, n = f)), Jt.extend(us);
|
|
4495
|
+
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, S, v = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set(), F, R, B, z = !0, N = !0, k = !1, W = "";
|
|
4500
4496
|
var J;
|
|
4501
4497
|
(function(f) {
|
|
4502
4498
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
@@ -4509,15 +4505,15 @@ function ds(e, t, r) {
|
|
|
4509
4505
|
(function(f) {
|
|
4510
4506
|
f.Unknown = "Unknown", f.Unverified = "Unverified", f.InProgress = "InProgress", f.Failed = "Failed", f.Verified = "Verified", f.Referred = "Referred", f.True = "True", f.False = "False", f.AwaitingForResponse = "AwaitingForResponse";
|
|
4511
4507
|
})(A || (A = {}));
|
|
4512
|
-
var
|
|
4508
|
+
var P;
|
|
4513
4509
|
(function(f) {
|
|
4514
4510
|
f.Unknown = "Unknown", f.Documents = "Documents", f.Age = "Age", f.Pep = "Pep", f.Sanction = "Sanction", f.Aml = "Aml", f.ProofOfAddress = "ProofOfAddress", f.SourceOfWealth = "SourceOfWealth", f.SocialMedia = "SocialMedia", f.Biometric = "Biometric";
|
|
4515
|
-
})(
|
|
4516
|
-
const
|
|
4511
|
+
})(P || (P = {}));
|
|
4512
|
+
const ge = [
|
|
4517
4513
|
A.InProgress,
|
|
4518
4514
|
A.Referred,
|
|
4519
4515
|
A.AwaitingForResponse
|
|
4520
|
-
],
|
|
4516
|
+
], Ue = () => {
|
|
4521
4517
|
let f = l;
|
|
4522
4518
|
if (f)
|
|
4523
4519
|
return fetch(f).then((b) => b.json()).then((b) => {
|
|
@@ -4532,7 +4528,7 @@ function ds(e, t, r) {
|
|
|
4532
4528
|
Yt(f, Zt[f]);
|
|
4533
4529
|
});
|
|
4534
4530
|
const _ = () => {
|
|
4535
|
-
|
|
4531
|
+
ns(a);
|
|
4536
4532
|
}, g = () => {
|
|
4537
4533
|
let f = document.createElement("style");
|
|
4538
4534
|
f.innerHTML = o, S.appendChild(f);
|
|
@@ -4556,10 +4552,10 @@ function ds(e, t, r) {
|
|
|
4556
4552
|
body: JSON.stringify({})
|
|
4557
4553
|
};
|
|
4558
4554
|
fetch(f, T).then((U) => U.json()).then((U) => {
|
|
4559
|
-
const
|
|
4560
|
-
F =
|
|
4561
|
-
|
|
4562
|
-
}), r(4,
|
|
4555
|
+
const le = m(U == null ? void 0 : U.Verifications);
|
|
4556
|
+
F = M(le), F.VerificationStatuses.forEach((Fe) => {
|
|
4557
|
+
Fe.VerificationUrlType !== "Widget" && v.add(Fe.Vendor);
|
|
4558
|
+
}), r(4, B = te());
|
|
4563
4559
|
});
|
|
4564
4560
|
}, m = (f) => f ? f.sort((b, T) => new Date(T.Created).getTime() - new Date(b.Created).getTime()) : [], E = () => {
|
|
4565
4561
|
n && y();
|
|
@@ -4570,7 +4566,7 @@ function ds(e, t, r) {
|
|
|
4570
4566
|
return b.cdn + "/cashier/operator-assets/" + (b == null ? void 0 : b.mid);
|
|
4571
4567
|
}
|
|
4572
4568
|
return "";
|
|
4573
|
-
},
|
|
4569
|
+
}, M = (f) => {
|
|
4574
4570
|
var T;
|
|
4575
4571
|
if (!f || !f.length)
|
|
4576
4572
|
return {
|
|
@@ -4579,7 +4575,7 @@ function ds(e, t, r) {
|
|
|
4579
4575
|
};
|
|
4580
4576
|
const b = V(f);
|
|
4581
4577
|
if (b && b.length) {
|
|
4582
|
-
const U =
|
|
4578
|
+
const U = L(b);
|
|
4583
4579
|
return {
|
|
4584
4580
|
VerificationSummaryStatus: U.Status,
|
|
4585
4581
|
VerificationUrl: (T = U.Flags) == null ? void 0 : T.DeferredUrlKey,
|
|
@@ -4587,70 +4583,70 @@ function ds(e, t, r) {
|
|
|
4587
4583
|
};
|
|
4588
4584
|
} else
|
|
4589
4585
|
return {
|
|
4590
|
-
VerificationSummaryStatus: f.some((
|
|
4586
|
+
VerificationSummaryStatus: f.some((le) => le.Status === A.Failed) ? A.Failed : A.Verified,
|
|
4591
4587
|
VerificationStatuses: I(f, [A.Failed])
|
|
4592
4588
|
};
|
|
4593
|
-
},
|
|
4589
|
+
}, L = (f) => f.reduce(
|
|
4594
4590
|
(b, T) => b ? new Date(b) < new Date(T) ? T : b : T,
|
|
4595
4591
|
0
|
|
4596
4592
|
), I = (f, b) => f.filter((T) => b.includes(T.Status)).map((T) => {
|
|
4597
|
-
var U,
|
|
4593
|
+
var U, le;
|
|
4598
4594
|
return {
|
|
4599
4595
|
Type: T.Type,
|
|
4600
4596
|
Vendor: T.VendorName,
|
|
4601
4597
|
VerificationDocuments: T.Documents ? [...T.Documents] : [],
|
|
4602
4598
|
VerificationUrlType: (U = T.FlowInfo) == null ? void 0 : U.Type,
|
|
4603
|
-
VerificationUrl: (
|
|
4599
|
+
VerificationUrl: (le = T.FlowInfo) == null ? void 0 : le.Url
|
|
4604
4600
|
};
|
|
4605
|
-
}), V = (f) => f.filter((b) =>
|
|
4601
|
+
}), V = (f) => f.filter((b) => ge.includes(b.Status) ? b.FlowInfo && b.FlowInfo.Url || X(b) || ue(b) : !1), X = (f) => {
|
|
4606
4602
|
const b = f.Documents && f.VendorName === J.Manual, T = f.Documents && f.Documents.some((U) => U.Status === q.Requested);
|
|
4607
4603
|
return b && T;
|
|
4608
|
-
},
|
|
4604
|
+
}, ue = (f) => f.VendorName === J.ShuftiPro && f.Status === A.Referred, te = () => {
|
|
4609
4605
|
switch (F.VerificationSummaryStatus) {
|
|
4610
4606
|
case A.InProgress:
|
|
4611
4607
|
const f = [];
|
|
4612
4608
|
return v.forEach((b) => {
|
|
4613
|
-
f.push(
|
|
4609
|
+
f.push(de(b));
|
|
4614
4610
|
}), f;
|
|
4615
4611
|
case A.Referred:
|
|
4616
4612
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4617
4613
|
case A.Failed:
|
|
4618
4614
|
return [i("verification.message.failed")];
|
|
4619
4615
|
}
|
|
4620
|
-
},
|
|
4616
|
+
}, de = (f) => {
|
|
4621
4617
|
const b = F.VerificationStatuses.filter((T) => T.Vendor === f);
|
|
4622
4618
|
if (f === J.ShuftiPro)
|
|
4623
|
-
return
|
|
4619
|
+
return se(b);
|
|
4624
4620
|
{
|
|
4625
4621
|
const T = i("verification.idenfy.link-name"), U = {
|
|
4626
4622
|
link: `<a href="${b[0].VerificationUrl}" target="_blank">${T}</a>`
|
|
4627
4623
|
};
|
|
4628
4624
|
return i("verification.idenfy.in-progress", { values: U });
|
|
4629
4625
|
}
|
|
4630
|
-
},
|
|
4626
|
+
}, se = (f) => {
|
|
4631
4627
|
const b = [], T = {}, U = [
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4628
|
+
P.Biometric,
|
|
4629
|
+
P.Documents,
|
|
4630
|
+
P.ProofOfAddress
|
|
4635
4631
|
];
|
|
4636
|
-
f.forEach((
|
|
4637
|
-
U.includes(
|
|
4632
|
+
f.forEach((me) => {
|
|
4633
|
+
U.includes(me.Type) && (b.push(me.Type), T[me.Type] = G(me, re(me.Type)));
|
|
4638
4634
|
});
|
|
4639
|
-
let
|
|
4640
|
-
return
|
|
4641
|
-
}, G = (f, b) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${b}</a>`, re = (f) => i(`verification.shuftipro.link-name.${f}`),
|
|
4635
|
+
let le = b.every((me) => C.has(me)), Fe = `verification.shuftipro.in-progress.${b.sort().join(".")}`;
|
|
4636
|
+
return le ? i("verification.shuftipro.validations-started") : i(Fe, { values: T });
|
|
4637
|
+
}, G = (f, b) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${b}</a>`, re = (f) => i(`verification.shuftipro.link-name.${f}`), oe = (f, b) => {
|
|
4642
4638
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4643
4639
|
if (f.target.closest(".verificationLink")) {
|
|
4644
4640
|
const T = f.target.className.split(" ")[1];
|
|
4645
|
-
|
|
4641
|
+
C.add(T), r(4, B = te());
|
|
4646
4642
|
}
|
|
4647
4643
|
return;
|
|
4648
4644
|
}
|
|
4649
4645
|
b === 0 && r(5, z = !z);
|
|
4650
|
-
},
|
|
4646
|
+
}, ve = () => {
|
|
4651
4647
|
r(6, N = p === "false");
|
|
4652
4648
|
}, Ir = () => {
|
|
4653
|
-
r(8, W = R + "/" + a + "/" +
|
|
4649
|
+
r(8, W = R + "/" + a + "/" + fs);
|
|
4654
4650
|
try {
|
|
4655
4651
|
fetch(W, { method: "HEAD" }).then((f) => {
|
|
4656
4652
|
r(7, k = f.ok);
|
|
@@ -4660,9 +4656,9 @@ function ds(e, t, r) {
|
|
|
4660
4656
|
}
|
|
4661
4657
|
}, Ht = () => {
|
|
4662
4658
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4663
|
-
}, Nr = (f, b) =>
|
|
4659
|
+
}, Nr = (f, b) => oe(b, f), Rr = (f, b) => oe(b, f), kr = () => Ht();
|
|
4664
4660
|
function Ur(f) {
|
|
4665
|
-
|
|
4661
|
+
at[f ? "unshift" : "push"](() => {
|
|
4666
4662
|
S = f, r(3, S);
|
|
4667
4663
|
});
|
|
4668
4664
|
}
|
|
@@ -4673,23 +4669,23 @@ function ds(e, t, r) {
|
|
|
4673
4669
|
8192 && a && _(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4674
4670
|
167936 && s && h && x && y(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4675
4671
|
167936 && s && !h && x && E(), e.$$.dirty[0] & /*translationurl*/
|
|
4676
|
-
16384 && l &&
|
|
4672
|
+
16384 && l && Ue(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4677
4673
|
9 && o && S && g(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4678
4674
|
10 && u && S && d(), e.$$.dirty[0] & /*ismobileview*/
|
|
4679
|
-
4 && p &&
|
|
4675
|
+
4 && p && ve(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4680
4676
|
262144 && R && Ir();
|
|
4681
4677
|
}, [
|
|
4682
4678
|
o,
|
|
4683
4679
|
u,
|
|
4684
4680
|
p,
|
|
4685
4681
|
S,
|
|
4686
|
-
|
|
4682
|
+
B,
|
|
4687
4683
|
z,
|
|
4688
4684
|
N,
|
|
4689
4685
|
k,
|
|
4690
4686
|
W,
|
|
4691
4687
|
i,
|
|
4692
|
-
|
|
4688
|
+
oe,
|
|
4693
4689
|
Ht,
|
|
4694
4690
|
s,
|
|
4695
4691
|
a,
|
|
@@ -4709,8 +4705,8 @@ class Lr extends ci {
|
|
|
4709
4705
|
super(), hi(
|
|
4710
4706
|
this,
|
|
4711
4707
|
t,
|
|
4712
|
-
|
|
4713
|
-
|
|
4708
|
+
cs,
|
|
4709
|
+
hs,
|
|
4714
4710
|
nr,
|
|
4715
4711
|
{
|
|
4716
4712
|
endpoint: 12,
|
|
@@ -4723,7 +4719,7 @@ class Lr extends ci {
|
|
|
4723
4719
|
ismobileview: 2,
|
|
4724
4720
|
playersession: 17
|
|
4725
4721
|
},
|
|
4726
|
-
|
|
4722
|
+
ls,
|
|
4727
4723
|
[-1, -1]
|
|
4728
4724
|
);
|
|
4729
4725
|
}
|
|
@@ -4783,30 +4779,30 @@ class Lr extends ci {
|
|
|
4783
4779
|
}
|
|
4784
4780
|
}
|
|
4785
4781
|
fi(Lr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
4786
|
-
const
|
|
4782
|
+
const bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4787
4783
|
__proto__: null,
|
|
4788
4784
|
default: Lr
|
|
4789
4785
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4790
4786
|
export {
|
|
4791
|
-
|
|
4787
|
+
bs as C,
|
|
4792
4788
|
ci as S,
|
|
4793
4789
|
Wr as a,
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4790
|
+
ae as b,
|
|
4791
|
+
fi as c,
|
|
4792
|
+
ne as d,
|
|
4793
|
+
gs as e,
|
|
4798
4794
|
Q as f,
|
|
4799
|
-
|
|
4800
|
-
|
|
4795
|
+
Z as g,
|
|
4796
|
+
_e as h,
|
|
4801
4797
|
hi as i,
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4798
|
+
ms as j,
|
|
4799
|
+
ee as k,
|
|
4800
|
+
ie as l,
|
|
4801
|
+
ps as m,
|
|
4806
4802
|
K as n,
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4803
|
+
vs as o,
|
|
4804
|
+
xt as p,
|
|
4805
|
+
at as q,
|
|
4810
4806
|
nr as s,
|
|
4811
|
-
|
|
4807
|
+
we as t
|
|
4812
4808
|
};
|