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