@everymatrix/cashier-verifications 1.63.3 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierVerifications-DFB1n9yM.cjs +5 -0
- package/components/{CashierVerifications-CAFrw-iv.js → CashierVerifications-Dq8KwBcd.js} +960 -962
- package/components/{CashierVerifications-D6L8wdJQ.js → CashierVerifications-DvEHzCEW.js} +1021 -1023
- package/components/{CashierVideoModal-BisN-_gH.js → CashierVideoModal-BCigQaKQ.js} +18 -18
- package/components/{CashierVideoModal-C5FVx3Tq.js → CashierVideoModal-ID_LmSyp.js} +18 -18
- package/components/CashierVideoModal-N67x74OZ.cjs +1 -0
- 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-BlttxGpc.cjs +0 -5
- package/components/CashierVideoModal-C3TDOx5a.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var kr = Object.defineProperty, Ur = Object.defineProperties;
|
|
2
|
+
var Fr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ht = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var tt = (e, t, r) => t in e ?
|
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var tt = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Vr.call(t, r) && tt(e, r, t[r]);
|
|
8
8
|
if (Ht)
|
|
9
9
|
for (var r of Ht(t))
|
|
10
|
-
|
|
10
|
+
Gr.call(t, r) && tt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Pt = (e, t) =>
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Pt = (e, t) => Ur(e, Fr(t));
|
|
13
|
+
var Y = (e, t, r) => (tt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var At = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var s = (o) => {
|
|
16
16
|
try {
|
|
17
17
|
l(r.next(o));
|
|
@@ -27,53 +27,53 @@ var $t = (e, t, r) => new Promise((i, n) => {
|
|
|
27
27
|
}, l = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(s, a);
|
|
28
28
|
l((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function J() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function $t() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function Re(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(rr);
|
|
40
40
|
}
|
|
41
41
|
function xt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(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 ds(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = t, e === Ge.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function jr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const i of t)
|
|
57
57
|
i(void 0);
|
|
58
|
-
return
|
|
58
|
+
return J;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Bt(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(nr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function re(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
69
|
+
function zr(e, t, r) {
|
|
70
|
+
const i = Xr(e);
|
|
71
71
|
if (!i.getElementById(t)) {
|
|
72
|
-
const n =
|
|
73
|
-
n.id = t, n.textContent = r,
|
|
72
|
+
const n = Z("style");
|
|
73
|
+
n.id = t, n.textContent = r, Wr(i, n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Xr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,27 +83,27 @@ function jr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Wr(e, t) {
|
|
87
|
+
return re(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
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 ne(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function qr(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Z(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ms(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
109
|
function _t(e) {
|
|
@@ -112,30 +112,30 @@ function _t(e) {
|
|
|
112
112
|
function we() {
|
|
113
113
|
return _t(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ps() {
|
|
116
116
|
return _t("");
|
|
117
117
|
}
|
|
118
118
|
function Et(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Q(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
|
-
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
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 : Q(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Yr(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Zr(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
135
|
function Te(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Jr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,39 +144,39 @@ function Yr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
147
|
+
let Le;
|
|
148
148
|
function De(e) {
|
|
149
|
-
|
|
149
|
+
Le = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Qr() {
|
|
152
|
+
if (!Le)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return Le;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function gs(e) {
|
|
157
|
+
Qr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
159
|
const Ee = [], lt = [];
|
|
160
160
|
let Se = [];
|
|
161
|
-
const
|
|
161
|
+
const Mt = [], Kr = /* @__PURE__ */ Promise.resolve();
|
|
162
162
|
let ht = !1;
|
|
163
|
-
function
|
|
164
|
-
ht || (ht = !0,
|
|
163
|
+
function ei() {
|
|
164
|
+
ht || (ht = !0, Kr.then(te));
|
|
165
165
|
}
|
|
166
166
|
function ft(e) {
|
|
167
167
|
Se.push(e);
|
|
168
168
|
}
|
|
169
169
|
const rt = /* @__PURE__ */ new Set();
|
|
170
170
|
let xe = 0;
|
|
171
|
-
function
|
|
171
|
+
function te() {
|
|
172
172
|
if (xe !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = Le;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
177
|
for (; xe < Ee.length; ) {
|
|
178
178
|
const t = Ee[xe];
|
|
179
|
-
xe++, De(t),
|
|
179
|
+
xe++, De(t), ti(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw Ee.length = 0, xe = 0, t;
|
|
@@ -189,53 +189,53 @@ function re() {
|
|
|
189
189
|
}
|
|
190
190
|
Se.length = 0;
|
|
191
191
|
} while (Ee.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
192
|
+
for (; Mt.length; )
|
|
193
|
+
Mt.pop()();
|
|
194
194
|
ht = !1, rt.clear(), De(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ti(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
198
|
e.update(), Re(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ft);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ri(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
205
|
Se.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), Se = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
e && e.i && (
|
|
207
|
+
const ii = /* @__PURE__ */ new Set();
|
|
208
|
+
function ni(e, t) {
|
|
209
|
+
e && e.i && (ii.delete(e), e.i(t));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ct(e) {
|
|
212
212
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function si(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
216
|
i && i.m(t, r), ft(() => {
|
|
217
|
-
const s = e.$$.on_mount.map(
|
|
217
|
+
const s = e.$$.on_mount.map(rr).filter(xt);
|
|
218
218
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Re(s), e.$$.on_mount = [];
|
|
219
219
|
}), n.forEach(ft);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function oi(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (
|
|
223
|
+
r.fragment !== null && (ri(r.after_update), Re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
e.$$.dirty[0] === -1 && (Ee.push(e),
|
|
225
|
+
function ai(e, t) {
|
|
226
|
+
e.$$.dirty[0] === -1 && (Ee.push(e), ei(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const o =
|
|
228
|
+
function ui(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
229
|
+
const o = Le;
|
|
230
230
|
De(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
234
234
|
// state
|
|
235
235
|
props: s,
|
|
236
|
-
update:
|
|
236
|
+
update: J,
|
|
237
237
|
not_equal: n,
|
|
238
|
-
bound:
|
|
238
|
+
bound: $t(),
|
|
239
239
|
// lifecycle
|
|
240
240
|
on_mount: [],
|
|
241
241
|
on_destroy: [],
|
|
@@ -244,48 +244,48 @@ function oi(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
244
244
|
after_update: [],
|
|
245
245
|
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
246
246
|
// everything else
|
|
247
|
-
callbacks:
|
|
247
|
+
callbacks: $t(),
|
|
248
248
|
dirty: l,
|
|
249
249
|
skip_bound: !1,
|
|
250
250
|
root: t.target || o.$$.root
|
|
251
251
|
};
|
|
252
252
|
a && a(u.root);
|
|
253
253
|
let h = !1;
|
|
254
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
255
|
-
const H =
|
|
256
|
-
return u.ctx && n(u.ctx[
|
|
254
|
+
if (u.ctx = r ? r(e, t.props || {}, (d, p, ...x) => {
|
|
255
|
+
const H = x.length ? x[0] : p;
|
|
256
|
+
return u.ctx && n(u.ctx[d], u.ctx[d] = H) && (!u.skip_bound && u.bound[d] && u.bound[d](H), h && ai(e, d)), p;
|
|
257
257
|
}) : [], u.update(), h = !0, Re(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
258
258
|
if (t.hydrate) {
|
|
259
|
-
const
|
|
260
|
-
u.fragment && u.fragment.l(
|
|
259
|
+
const d = Yr(t.target);
|
|
260
|
+
u.fragment && u.fragment.l(d), d.forEach(ne);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
|
-
t.intro &&
|
|
263
|
+
t.intro && ni(e.$$.fragment), si(e, t.target, t.anchor), te();
|
|
264
264
|
}
|
|
265
265
|
De(o);
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
typeof HTMLElement == "function" && (
|
|
267
|
+
let sr;
|
|
268
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
269
269
|
constructor(t, r, i) {
|
|
270
270
|
super();
|
|
271
271
|
/** The Svelte component constructor */
|
|
272
|
-
|
|
272
|
+
Y(this, "$$ctor");
|
|
273
273
|
/** Slots */
|
|
274
|
-
|
|
274
|
+
Y(this, "$$s");
|
|
275
275
|
/** The Svelte component instance */
|
|
276
|
-
|
|
276
|
+
Y(this, "$$c");
|
|
277
277
|
/** Whether or not the custom element is connected */
|
|
278
|
-
|
|
278
|
+
Y(this, "$$cn", !1);
|
|
279
279
|
/** Component props data */
|
|
280
|
-
|
|
280
|
+
Y(this, "$$d", {});
|
|
281
281
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
282
|
-
|
|
282
|
+
Y(this, "$$r", !1);
|
|
283
283
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
284
|
-
|
|
284
|
+
Y(this, "$$p_d", {});
|
|
285
285
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
286
|
-
|
|
286
|
+
Y(this, "$$l", {});
|
|
287
287
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
288
|
-
|
|
288
|
+
Y(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
289
289
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
290
290
|
}
|
|
291
291
|
addEventListener(t, r, i) {
|
|
@@ -302,36 +302,36 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
connectedCallback() {
|
|
305
|
-
return
|
|
305
|
+
return At(this, null, function* () {
|
|
306
306
|
if (this.$$cn = !0, !this.$$c) {
|
|
307
307
|
let t = function(s) {
|
|
308
308
|
return () => {
|
|
309
309
|
let a;
|
|
310
310
|
return {
|
|
311
311
|
c: function() {
|
|
312
|
-
a =
|
|
312
|
+
a = Z("slot"), s !== "default" && Q(a, "name", s);
|
|
313
313
|
},
|
|
314
314
|
/**
|
|
315
315
|
* @param {HTMLElement} target
|
|
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 && ne(a);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
};
|
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
328
|
return;
|
|
329
|
-
const r = {}, i =
|
|
329
|
+
const r = {}, i = Jr(this);
|
|
330
330
|
for (const s of this.$$s)
|
|
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]);
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (nr = 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" && (nr = 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" && (nr = 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])
|
|
@@ -415,8 +415,8 @@ function je(e, t, r, i) {
|
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let a = class extends
|
|
418
|
+
function li(e, t, r, i, n, s) {
|
|
419
|
+
let a = class extends sr {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(e, r, n), this.$$p_d = t;
|
|
422
422
|
}
|
|
@@ -433,7 +433,7 @@ function ai(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) => {
|
|
@@ -446,7 +446,7 @@ function ai(e, t, r, i, n, s) {
|
|
|
446
446
|
}), e.element = /** @type {any} */
|
|
447
447
|
a, a;
|
|
448
448
|
}
|
|
449
|
-
class
|
|
449
|
+
class hi {
|
|
450
450
|
constructor() {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
@@ -455,7 +455,7 @@ class ui {
|
|
|
455
455
|
*
|
|
456
456
|
* @type {any}
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
Y(this, "$$");
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -463,11 +463,11 @@ class ui {
|
|
|
463
463
|
*
|
|
464
464
|
* @type {any}
|
|
465
465
|
*/
|
|
466
|
-
|
|
466
|
+
Y(this, "$$set");
|
|
467
467
|
}
|
|
468
468
|
/** @returns {void} */
|
|
469
469
|
$destroy() {
|
|
470
|
-
|
|
470
|
+
oi(this, 1), this.$destroy = J;
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -477,7 +477,7 @@ class ui {
|
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
479
|
if (!xt(r))
|
|
480
|
-
return
|
|
480
|
+
return J;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
483
483
|
const n = i.indexOf(r);
|
|
@@ -489,22 +489,22 @@ class ui {
|
|
|
489
489
|
* @returns {void}
|
|
490
490
|
*/
|
|
491
491
|
$set(t) {
|
|
492
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !jr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
const
|
|
496
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
495
|
+
const fi = "4";
|
|
496
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fi);
|
|
497
497
|
const _e = [];
|
|
498
|
-
function
|
|
498
|
+
function ci(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: ke(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ke(e, t = J) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
|
-
if (
|
|
507
|
+
if (ir(e, l) && (e = l, r)) {
|
|
508
508
|
const o = !_e.length;
|
|
509
509
|
for (const u of i)
|
|
510
510
|
u[1](), _e.push(u, e);
|
|
@@ -518,110 +518,110 @@ function Je(e, t = K) {
|
|
|
518
518
|
function s(l) {
|
|
519
519
|
n(l(e));
|
|
520
520
|
}
|
|
521
|
-
function a(l, o =
|
|
521
|
+
function a(l, o = J) {
|
|
522
522
|
const u = [l, o];
|
|
523
|
-
return i.add(u), i.size === 1 && (r = t(n, s) ||
|
|
523
|
+
return i.add(u), i.size === 1 && (r = t(n, s) || J), l(e), () => {
|
|
524
524
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
return { set: n, update: s, subscribe: a };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function $e(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");
|
|
533
533
|
const s = t.length < 2;
|
|
534
|
-
return
|
|
534
|
+
return ci(r, (a, l) => {
|
|
535
535
|
let o = !1;
|
|
536
536
|
const u = [];
|
|
537
|
-
let h = 0,
|
|
538
|
-
const
|
|
537
|
+
let h = 0, d = J;
|
|
538
|
+
const p = () => {
|
|
539
539
|
if (h)
|
|
540
540
|
return;
|
|
541
|
-
|
|
541
|
+
d();
|
|
542
542
|
const H = t(i ? u[0] : u, a, l);
|
|
543
|
-
s ? a(H) :
|
|
544
|
-
},
|
|
545
|
-
(H, v) =>
|
|
543
|
+
s ? a(H) : d = xt(H) ? H : J;
|
|
544
|
+
}, x = n.map(
|
|
545
|
+
(H, v) => nr(
|
|
546
546
|
H,
|
|
547
547
|
($) => {
|
|
548
|
-
u[v] = $, h &= ~(1 << v), o &&
|
|
548
|
+
u[v] = $, h &= ~(1 << v), o && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
551
|
h |= 1 << v;
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
|
-
return o = !0,
|
|
556
|
-
Re(
|
|
555
|
+
return o = !0, p(), function() {
|
|
556
|
+
Re(x), d(), o = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
561
|
function wt(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
565
|
-
return
|
|
564
|
+
var di = function(t) {
|
|
565
|
+
return mi(t) && !pi(t);
|
|
566
566
|
};
|
|
567
|
-
function
|
|
567
|
+
function mi(e) {
|
|
568
568
|
return !!e && typeof e == "object";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function pi(e) {
|
|
571
571
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
572
|
+
return t === "[object RegExp]" || t === "[object Date]" || bi(e);
|
|
573
573
|
}
|
|
574
|
-
var
|
|
575
|
-
function
|
|
576
|
-
return e.$$typeof ===
|
|
574
|
+
var gi = typeof Symbol == "function" && Symbol.for, vi = gi ? Symbol.for("react.element") : 60103;
|
|
575
|
+
function bi(e) {
|
|
576
|
+
return e.$$typeof === vi;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function yi(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? He(
|
|
581
|
+
function Ie(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? He(yi(e), e, t) : e;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function xi(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return Ie(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function _i(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
591
|
return He;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
593
|
return typeof r == "function" ? r : He;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Ei(e) {
|
|
596
596
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
597
597
|
return Object.propertyIsEnumerable.call(e, t);
|
|
598
598
|
}) : [];
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return Object.keys(e).concat(
|
|
600
|
+
function Dt(e) {
|
|
601
|
+
return Object.keys(e).concat(Ei(e));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function ar(e, t) {
|
|
604
604
|
try {
|
|
605
605
|
return t in e;
|
|
606
606
|
} catch (r) {
|
|
607
607
|
return !1;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function wi(e, t) {
|
|
611
|
+
return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Si(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
|
-
return r.isMergeableObject(e) &&
|
|
616
|
-
i[n] =
|
|
617
|
-
}),
|
|
618
|
-
|
|
615
|
+
return r.isMergeableObject(e) && Dt(e).forEach(function(n) {
|
|
616
|
+
i[n] = Ie(e[n], r);
|
|
617
|
+
}), Dt(t).forEach(function(n) {
|
|
618
|
+
wi(e, n) || (ar(e, n) && r.isMergeableObject(t[n]) ? i[n] = _i(n, r)(e[n], t[n], r) : i[n] = Ie(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
621
|
function He(e, t, r) {
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xi, r.isMergeableObject = r.isMergeableObject || di, r.cloneUnlessOtherwiseSpecified = Ie;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Si(e, t, r) : Ie(t, r);
|
|
625
625
|
}
|
|
626
626
|
He.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
@@ -630,8 +630,8 @@ He.all = function(t, r) {
|
|
|
630
630
|
return He(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var
|
|
634
|
-
const
|
|
633
|
+
var Ti = He, Hi = Ti;
|
|
634
|
+
const Oi = /* @__PURE__ */ wt(Hi);
|
|
635
635
|
var ct = function(e, t) {
|
|
636
636
|
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
637
637
|
r.__proto__ = i;
|
|
@@ -649,17 +649,17 @@ function Qe(e, t) {
|
|
|
649
649
|
}
|
|
650
650
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
652
|
+
var ie = function() {
|
|
653
|
+
return ie = Object.assign || function(t) {
|
|
654
654
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
655
655
|
r = arguments[i];
|
|
656
656
|
for (var s in r)
|
|
657
657
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
658
|
}
|
|
659
659
|
return t;
|
|
660
|
-
},
|
|
660
|
+
}, ie.apply(this, arguments);
|
|
661
661
|
};
|
|
662
|
-
function
|
|
662
|
+
function Pi(e, t) {
|
|
663
663
|
var r = {};
|
|
664
664
|
for (var i in e)
|
|
665
665
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -675,36 +675,36 @@ function it(e, t, r) {
|
|
|
675
675
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
676
676
|
}
|
|
677
677
|
function nt(e, t) {
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
678
|
+
var r = t && t.cache ? t.cache : Li, i = t && t.serializer ? t.serializer : Ci, n = t && t.strategy ? t.strategy : Bi;
|
|
679
679
|
return n(e, {
|
|
680
680
|
cache: r,
|
|
681
681
|
serializer: i
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Ai(e) {
|
|
685
685
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
var n =
|
|
687
|
+
function $i(e, t, r, i) {
|
|
688
|
+
var n = Ai(i) ? i : r(i), s = t.get(n);
|
|
689
689
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function ur(e, t, r) {
|
|
692
692
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
693
693
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function lr(e, t, r, i, n) {
|
|
696
696
|
return r.bind(t, e, i, n);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
var r = e.length === 1 ?
|
|
700
|
-
return
|
|
698
|
+
function Bi(e, t) {
|
|
699
|
+
var r = e.length === 1 ? $i : ur;
|
|
700
|
+
return lr(e, this, r, t.cache.create(), t.serializer);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
702
|
+
function Mi(e, t) {
|
|
703
|
+
return lr(e, this, ur, t.cache.create(), t.serializer);
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var Ci = function() {
|
|
706
706
|
return JSON.stringify(arguments);
|
|
707
|
-
},
|
|
707
|
+
}, Di = (
|
|
708
708
|
/** @class */
|
|
709
709
|
function() {
|
|
710
710
|
function e() {
|
|
@@ -716,71 +716,71 @@ var Bi = function() {
|
|
|
716
716
|
this.cache[t] = r;
|
|
717
717
|
}, e;
|
|
718
718
|
}()
|
|
719
|
-
),
|
|
719
|
+
), Li = {
|
|
720
720
|
create: function() {
|
|
721
|
-
return new
|
|
721
|
+
return new Di();
|
|
722
722
|
}
|
|
723
723
|
}, st = {
|
|
724
|
-
variadic:
|
|
725
|
-
},
|
|
726
|
-
return
|
|
724
|
+
variadic: Mi
|
|
725
|
+
}, qe = function() {
|
|
726
|
+
return qe = Object.assign || function(t) {
|
|
727
727
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
728
728
|
r = arguments[i];
|
|
729
729
|
for (var s in r)
|
|
730
730
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
731
731
|
}
|
|
732
732
|
return t;
|
|
733
|
-
},
|
|
733
|
+
}, qe.apply(this, arguments);
|
|
734
734
|
};
|
|
735
735
|
var T;
|
|
736
736
|
(function(e) {
|
|
737
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";
|
|
738
738
|
})(T || (T = {}));
|
|
739
|
-
var
|
|
739
|
+
var C;
|
|
740
740
|
(function(e) {
|
|
741
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";
|
|
742
|
-
})(
|
|
742
|
+
})(C || (C = {}));
|
|
743
743
|
var Oe;
|
|
744
744
|
(function(e) {
|
|
745
745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
746
|
})(Oe || (Oe = {}));
|
|
747
|
-
function
|
|
748
|
-
return e.type ===
|
|
749
|
-
}
|
|
750
|
-
function Di(e) {
|
|
751
|
-
return e.type === M.argument;
|
|
747
|
+
function Lt(e) {
|
|
748
|
+
return e.type === C.literal;
|
|
752
749
|
}
|
|
753
|
-
function
|
|
754
|
-
return e.type ===
|
|
750
|
+
function Ii(e) {
|
|
751
|
+
return e.type === C.argument;
|
|
755
752
|
}
|
|
756
753
|
function hr(e) {
|
|
757
|
-
return e.type ===
|
|
754
|
+
return e.type === C.number;
|
|
758
755
|
}
|
|
759
756
|
function fr(e) {
|
|
760
|
-
return e.type ===
|
|
757
|
+
return e.type === C.date;
|
|
761
758
|
}
|
|
762
759
|
function cr(e) {
|
|
763
|
-
return e.type ===
|
|
760
|
+
return e.type === C.time;
|
|
764
761
|
}
|
|
765
762
|
function dr(e) {
|
|
766
|
-
return e.type ===
|
|
767
|
-
}
|
|
768
|
-
function Ii(e) {
|
|
769
|
-
return e.type === M.pound;
|
|
763
|
+
return e.type === C.select;
|
|
770
764
|
}
|
|
771
765
|
function mr(e) {
|
|
772
|
-
return e.type ===
|
|
766
|
+
return e.type === C.plural;
|
|
767
|
+
}
|
|
768
|
+
function Ni(e) {
|
|
769
|
+
return e.type === C.pound;
|
|
773
770
|
}
|
|
774
771
|
function pr(e) {
|
|
772
|
+
return e.type === C.tag;
|
|
773
|
+
}
|
|
774
|
+
function gr(e) {
|
|
775
775
|
return !!(e && typeof e == "object" && e.type === Oe.number);
|
|
776
776
|
}
|
|
777
777
|
function dt(e) {
|
|
778
778
|
return !!(e && typeof e == "object" && e.type === Oe.dateTime);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
780
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ri = /(?:[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 ki(e) {
|
|
782
782
|
var t = {};
|
|
783
|
-
return e.replace(
|
|
783
|
+
return e.replace(Ri, function(r) {
|
|
784
784
|
var i = r.length;
|
|
785
785
|
switch (r[0]) {
|
|
786
786
|
case "G":
|
|
@@ -869,46 +869,46 @@ function Ni(e) {
|
|
|
869
869
|
return "";
|
|
870
870
|
}), t;
|
|
871
871
|
}
|
|
872
|
-
var
|
|
873
|
-
return
|
|
872
|
+
var I = function() {
|
|
873
|
+
return I = Object.assign || function(t) {
|
|
874
874
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
875
875
|
r = arguments[i];
|
|
876
876
|
for (var s in r)
|
|
877
877
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
878
878
|
}
|
|
879
879
|
return t;
|
|
880
|
-
},
|
|
880
|
+
}, I.apply(this, arguments);
|
|
881
881
|
};
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
883
|
+
function Fi(e) {
|
|
884
884
|
if (e.length === 0)
|
|
885
885
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
887
|
-
return
|
|
886
|
+
for (var t = e.split(Ui).filter(function(p) {
|
|
887
|
+
return p.length > 0;
|
|
888
888
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
889
889
|
var s = n[i], a = s.split("/");
|
|
890
890
|
if (a.length === 0)
|
|
891
891
|
throw new Error("Invalid number skeleton");
|
|
892
892
|
for (var l = a[0], o = a.slice(1), u = 0, h = o; u < h.length; u++) {
|
|
893
|
-
var
|
|
894
|
-
if (
|
|
893
|
+
var d = h[u];
|
|
894
|
+
if (d.length === 0)
|
|
895
895
|
throw new Error("Invalid number skeleton");
|
|
896
896
|
}
|
|
897
897
|
r.push({ stem: l, options: o });
|
|
898
898
|
}
|
|
899
899
|
return r;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Vi(e) {
|
|
902
902
|
return e.replace(/^(.*?)-/, "");
|
|
903
903
|
}
|
|
904
|
-
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
905
|
-
function
|
|
904
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, Gi = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
905
|
+
function Nt(e) {
|
|
906
906
|
var t = {};
|
|
907
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
907
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
908
908
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
909
909
|
}), t;
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function xr(e) {
|
|
912
912
|
switch (e) {
|
|
913
913
|
case "sign-auto":
|
|
914
914
|
return {
|
|
@@ -948,7 +948,7 @@ function yr(e) {
|
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function ji(e) {
|
|
952
952
|
var t;
|
|
953
953
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
954
|
notation: "engineering"
|
|
@@ -956,17 +956,17 @@ function Vi(e) {
|
|
|
956
956
|
notation: "scientific"
|
|
957
957
|
}, e = e.slice(1)), t) {
|
|
958
958
|
var r = e.slice(0, 2);
|
|
959
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
959
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
960
960
|
throw new Error("Malformed concise eng/scientific notation");
|
|
961
961
|
t.minimumIntegerDigits = e.length;
|
|
962
962
|
}
|
|
963
963
|
return t;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
var t = {}, r =
|
|
965
|
+
function Rt(e) {
|
|
966
|
+
var t = {}, r = xr(e);
|
|
967
967
|
return r || t;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function zi(e) {
|
|
970
970
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
971
971
|
var n = i[r];
|
|
972
972
|
switch (n.stem) {
|
|
@@ -990,7 +990,7 @@ function Gi(e) {
|
|
|
990
990
|
continue;
|
|
991
991
|
case "measure-unit":
|
|
992
992
|
case "unit":
|
|
993
|
-
t.style = "unit", t.unit =
|
|
993
|
+
t.style = "unit", t.unit = Vi(n.options[0]);
|
|
994
994
|
continue;
|
|
995
995
|
case "compact-short":
|
|
996
996
|
case "K":
|
|
@@ -1001,13 +1001,13 @@ function Gi(e) {
|
|
|
1001
1001
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
1002
|
continue;
|
|
1003
1003
|
case "scientific":
|
|
1004
|
-
t =
|
|
1005
|
-
return
|
|
1004
|
+
t = I(I(I({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
1005
|
+
return I(I({}, o), Rt(u));
|
|
1006
1006
|
}, {}));
|
|
1007
1007
|
continue;
|
|
1008
1008
|
case "engineering":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1009
|
+
t = I(I(I({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
1010
|
+
return I(I({}, o), Rt(u));
|
|
1011
1011
|
}, {}));
|
|
1012
1012
|
continue;
|
|
1013
1013
|
case "notation-simple":
|
|
@@ -1052,45 +1052,45 @@ function Gi(e) {
|
|
|
1052
1052
|
case "integer-width":
|
|
1053
1053
|
if (n.options.length > 1)
|
|
1054
1054
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
n.options[0].replace(
|
|
1055
|
+
n.options[0].replace(Gi, function(o, u, h, d, p, x) {
|
|
1056
1056
|
if (u)
|
|
1057
1057
|
t.minimumIntegerDigits = h.length;
|
|
1058
1058
|
else {
|
|
1059
|
-
if (
|
|
1059
|
+
if (d && p)
|
|
1060
1060
|
throw new Error("We currently do not support maximum integer digits");
|
|
1061
|
-
if (
|
|
1061
|
+
if (x)
|
|
1062
1062
|
throw new Error("We currently do not support exact integer digits");
|
|
1063
1063
|
}
|
|
1064
1064
|
return "";
|
|
1065
1065
|
});
|
|
1066
1066
|
continue;
|
|
1067
1067
|
}
|
|
1068
|
-
if (
|
|
1068
|
+
if (yr.test(n.stem)) {
|
|
1069
1069
|
t.minimumIntegerDigits = n.stem.length;
|
|
1070
1070
|
continue;
|
|
1071
1071
|
}
|
|
1072
1072
|
if (It.test(n.stem)) {
|
|
1073
1073
|
if (n.options.length > 1)
|
|
1074
1074
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1075
|
-
n.stem.replace(It, function(o, u, h,
|
|
1076
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1075
|
+
n.stem.replace(It, function(o, u, h, d, p, x) {
|
|
1076
|
+
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1077
1077
|
});
|
|
1078
1078
|
var s = n.options[0];
|
|
1079
|
-
s === "w" ? t =
|
|
1079
|
+
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t), Nt(s)));
|
|
1080
1080
|
continue;
|
|
1081
1081
|
}
|
|
1082
|
-
if (
|
|
1083
|
-
t =
|
|
1082
|
+
if (br.test(n.stem)) {
|
|
1083
|
+
t = I(I({}, t), Nt(n.stem));
|
|
1084
1084
|
continue;
|
|
1085
1085
|
}
|
|
1086
|
-
var a =
|
|
1087
|
-
a && (t =
|
|
1088
|
-
var l =
|
|
1089
|
-
l && (t =
|
|
1086
|
+
var a = xr(n.stem);
|
|
1087
|
+
a && (t = I(I({}, t), a));
|
|
1088
|
+
var l = ji(n.stem);
|
|
1089
|
+
l && (t = I(I({}, t), l));
|
|
1090
1090
|
}
|
|
1091
1091
|
return t;
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1093
|
+
var je = {
|
|
1094
1094
|
"001": [
|
|
1095
1095
|
"H",
|
|
1096
1096
|
"h"
|
|
@@ -2505,13 +2505,13 @@ var Ge = {
|
|
|
2505
2505
|
"h"
|
|
2506
2506
|
]
|
|
2507
2507
|
};
|
|
2508
|
-
function
|
|
2508
|
+
function Xi(e, t) {
|
|
2509
2509
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2510
2510
|
var n = e.charAt(i);
|
|
2511
2511
|
if (n === "j") {
|
|
2512
2512
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2513
2513
|
s++, i++;
|
|
2514
|
-
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 = Wi(t);
|
|
2515
2515
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2516
2516
|
r += o;
|
|
2517
2517
|
for (; a-- > 0; )
|
|
@@ -2521,7 +2521,7 @@ function ji(e, t) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
return r;
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function Wi(e) {
|
|
2525
2525
|
var t = e.hourCycle;
|
|
2526
2526
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2527
|
e.hourCycles && // @ts-ignore
|
|
@@ -2540,23 +2540,23 @@ function zi(e) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
var r = e.language, i;
|
|
2542
2542
|
r !== "root" && (i = e.maximize().region);
|
|
2543
|
-
var n =
|
|
2543
|
+
var n = je[i || ""] || je[r || ""] || je["".concat(r, "-001")] || je["001"];
|
|
2544
2544
|
return n[0];
|
|
2545
2545
|
}
|
|
2546
|
-
var ot,
|
|
2546
|
+
var ot, qi = new RegExp("^".concat(vr.source, "*")), Yi = new RegExp("".concat(vr.source, "*$"));
|
|
2547
2547
|
function O(e, t) {
|
|
2548
2548
|
return { start: e, end: t };
|
|
2549
2549
|
}
|
|
2550
|
-
var
|
|
2550
|
+
var Zi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ji = !!String.fromCodePoint, Qi = !!Object.fromEntries, Ki = !!String.prototype.codePointAt, en = !!String.prototype.trimStart, tn = !!String.prototype.trimEnd, rn = !!Number.isSafeInteger, nn = rn ? Number.isSafeInteger : function(e) {
|
|
2551
2551
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
2552
|
}, mt = !0;
|
|
2553
2553
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
mt = ((ot =
|
|
2554
|
+
var sn = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
|
+
mt = ((ot = sn.exec("a")) === null || ot === void 0 ? void 0 : ot[0]) === "a";
|
|
2556
2556
|
} catch (e) {
|
|
2557
2557
|
mt = !1;
|
|
2558
2558
|
}
|
|
2559
|
-
var
|
|
2559
|
+
var kt = Zi ? (
|
|
2560
2560
|
// Native
|
|
2561
2561
|
function(t, r, i) {
|
|
2562
2562
|
return t.startsWith(r, i);
|
|
@@ -2566,7 +2566,7 @@ var Rt = qi ? (
|
|
|
2566
2566
|
function(t, r, i) {
|
|
2567
2567
|
return t.slice(i, i + r.length) === r;
|
|
2568
2568
|
}
|
|
2569
|
-
), pt =
|
|
2569
|
+
), pt = Ji ? String.fromCodePoint : (
|
|
2570
2570
|
// IE11
|
|
2571
2571
|
function() {
|
|
2572
2572
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2578,9 +2578,9 @@ var Rt = qi ? (
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return i;
|
|
2580
2580
|
}
|
|
2581
|
-
),
|
|
2581
|
+
), Ut = (
|
|
2582
2582
|
// native
|
|
2583
|
-
|
|
2583
|
+
Qi ? Object.fromEntries : (
|
|
2584
2584
|
// Ponyfill
|
|
2585
2585
|
function(t) {
|
|
2586
2586
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2590,7 +2590,7 @@ var Rt = qi ? (
|
|
|
2590
2590
|
return r;
|
|
2591
2591
|
}
|
|
2592
2592
|
)
|
|
2593
|
-
),
|
|
2593
|
+
), _r = Ki ? (
|
|
2594
2594
|
// Native
|
|
2595
2595
|
function(t, r) {
|
|
2596
2596
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2604,7 @@ var Rt = qi ? (
|
|
|
2604
2604
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
),
|
|
2607
|
+
), on = en ? (
|
|
2608
2608
|
// Native
|
|
2609
2609
|
function(t) {
|
|
2610
2610
|
return t.trimStart();
|
|
@@ -2612,9 +2612,9 @@ var Rt = qi ? (
|
|
|
2612
2612
|
) : (
|
|
2613
2613
|
// Ponyfill
|
|
2614
2614
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2615
|
+
return t.replace(qi, "");
|
|
2616
2616
|
}
|
|
2617
|
-
),
|
|
2617
|
+
), an = tn ? (
|
|
2618
2618
|
// Native
|
|
2619
2619
|
function(t) {
|
|
2620
2620
|
return t.trimEnd();
|
|
@@ -2622,32 +2622,32 @@ var Rt = qi ? (
|
|
|
2622
2622
|
) : (
|
|
2623
2623
|
// Ponyfill
|
|
2624
2624
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2625
|
+
return t.replace(Yi, "");
|
|
2626
2626
|
}
|
|
2627
2627
|
);
|
|
2628
|
-
function
|
|
2628
|
+
function Er(e, t) {
|
|
2629
2629
|
return new RegExp(e, t);
|
|
2630
2630
|
}
|
|
2631
2631
|
var gt;
|
|
2632
2632
|
if (mt) {
|
|
2633
|
-
var
|
|
2633
|
+
var Ft = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
2634
|
gt = function(t, r) {
|
|
2635
2635
|
var i;
|
|
2636
|
-
|
|
2637
|
-
var n =
|
|
2636
|
+
Ft.lastIndex = r;
|
|
2637
|
+
var n = Ft.exec(t);
|
|
2638
2638
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2639
2639
|
};
|
|
2640
2640
|
} else
|
|
2641
2641
|
gt = function(t, r) {
|
|
2642
2642
|
for (var i = []; ; ) {
|
|
2643
|
-
var n =
|
|
2644
|
-
if (n === void 0 ||
|
|
2643
|
+
var n = _r(t, r);
|
|
2644
|
+
if (n === void 0 || wr(n) || fn(n))
|
|
2645
2645
|
break;
|
|
2646
2646
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2647
2647
|
}
|
|
2648
2648
|
return pt.apply(void 0, i);
|
|
2649
2649
|
};
|
|
2650
|
-
var
|
|
2650
|
+
var un = (
|
|
2651
2651
|
/** @class */
|
|
2652
2652
|
function() {
|
|
2653
2653
|
function e(t, r) {
|
|
@@ -2671,7 +2671,7 @@ var on = (
|
|
|
2671
2671
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2672
2672
|
var l = this.clonePosition();
|
|
2673
2673
|
this.bump(), n.push({
|
|
2674
|
-
type:
|
|
2674
|
+
type: C.pound,
|
|
2675
2675
|
location: O(l, this.clonePosition())
|
|
2676
2676
|
});
|
|
2677
2677
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2699,7 +2699,7 @@ var on = (
|
|
|
2699
2699
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2700
2700
|
return {
|
|
2701
2701
|
val: {
|
|
2702
|
-
type:
|
|
2702
|
+
type: C.literal,
|
|
2703
2703
|
value: "<".concat(n, "/>"),
|
|
2704
2704
|
location: O(i, this.clonePosition())
|
|
2705
2705
|
},
|
|
@@ -2716,7 +2716,7 @@ var on = (
|
|
|
2716
2716
|
var o = this.clonePosition(), u = this.parseTagName();
|
|
2717
2717
|
return n !== u ? this.error(T.UNMATCHED_CLOSING_TAG, O(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2718
|
val: {
|
|
2719
|
-
type:
|
|
2719
|
+
type: C.tag,
|
|
2720
2720
|
value: n,
|
|
2721
2721
|
children: a,
|
|
2722
2722
|
location: O(i, this.clonePosition())
|
|
@@ -2729,7 +2729,7 @@ var on = (
|
|
|
2729
2729
|
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2730
2730
|
}, e.prototype.parseTagName = function() {
|
|
2731
2731
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2732
|
+
for (this.bump(); !this.isEOF() && hn(this.char()); )
|
|
2733
2733
|
this.bump();
|
|
2734
2734
|
return this.message.slice(t, this.offset());
|
|
2735
2735
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2753,12 +2753,12 @@ var on = (
|
|
|
2753
2753
|
}
|
|
2754
2754
|
var o = O(i, this.clonePosition());
|
|
2755
2755
|
return {
|
|
2756
|
-
val: { type:
|
|
2756
|
+
val: { type: C.literal, value: n, location: o },
|
|
2757
2757
|
err: null
|
|
2758
2758
|
};
|
|
2759
2759
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2760
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2761
|
+
!ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2762
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2763
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2764
|
return null;
|
|
@@ -2813,7 +2813,7 @@ var on = (
|
|
|
2813
2813
|
case 125:
|
|
2814
2814
|
return this.bump(), {
|
|
2815
2815
|
val: {
|
|
2816
|
-
type:
|
|
2816
|
+
type: C.argument,
|
|
2817
2817
|
// value does not include the opening and closing braces.
|
|
2818
2818
|
value: n,
|
|
2819
2819
|
location: O(i, this.clonePosition())
|
|
@@ -2842,47 +2842,47 @@ var on = (
|
|
|
2842
2842
|
var u = null;
|
|
2843
2843
|
if (this.bumpIf(",")) {
|
|
2844
2844
|
this.bumpSpace();
|
|
2845
|
-
var h = this.clonePosition(),
|
|
2846
|
-
if (
|
|
2847
|
-
return
|
|
2848
|
-
var
|
|
2849
|
-
if (
|
|
2845
|
+
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2846
|
+
if (d.err)
|
|
2847
|
+
return d;
|
|
2848
|
+
var p = an(d.val);
|
|
2849
|
+
if (p.length === 0)
|
|
2850
2850
|
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2851
|
-
var
|
|
2852
|
-
u = { style:
|
|
2851
|
+
var x = O(h, this.clonePosition());
|
|
2852
|
+
u = { style: p, styleLocation: x };
|
|
2853
2853
|
}
|
|
2854
2854
|
var H = this.tryParseArgumentClose(n);
|
|
2855
2855
|
if (H.err)
|
|
2856
2856
|
return H;
|
|
2857
2857
|
var v = O(n, this.clonePosition());
|
|
2858
|
-
if (u &&
|
|
2859
|
-
var $ =
|
|
2858
|
+
if (u && kt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2859
|
+
var $ = on(u.style.slice(2));
|
|
2860
2860
|
if (l === "number") {
|
|
2861
|
-
var
|
|
2862
|
-
return
|
|
2863
|
-
val: { type:
|
|
2861
|
+
var d = this.parseNumberSkeletonFromString($, u.styleLocation);
|
|
2862
|
+
return d.err ? d : {
|
|
2863
|
+
val: { type: C.number, value: i, location: v, style: d.val },
|
|
2864
2864
|
err: null
|
|
2865
2865
|
};
|
|
2866
2866
|
} else {
|
|
2867
2867
|
if ($.length === 0)
|
|
2868
2868
|
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2869
|
-
var
|
|
2870
|
-
this.locale && (
|
|
2871
|
-
var
|
|
2869
|
+
var U = $;
|
|
2870
|
+
this.locale && (U = Xi($, this.locale));
|
|
2871
|
+
var p = {
|
|
2872
2872
|
type: Oe.dateTime,
|
|
2873
|
-
pattern:
|
|
2873
|
+
pattern: U,
|
|
2874
2874
|
location: u.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
},
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? ki(U) : {}
|
|
2876
|
+
}, F = l === "date" ? C.date : C.time;
|
|
2877
2877
|
return {
|
|
2878
|
-
val: { type:
|
|
2878
|
+
val: { type: F, value: i, location: v, style: p },
|
|
2879
2879
|
err: null
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
return {
|
|
2884
2884
|
val: {
|
|
2885
|
-
type: l === "number" ?
|
|
2885
|
+
type: l === "number" ? C.number : l === "date" ? C.date : C.time,
|
|
2886
2886
|
value: i,
|
|
2887
2887
|
location: v,
|
|
2888
2888
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2893,43 +2893,43 @@ var on = (
|
|
|
2893
2893
|
case "plural":
|
|
2894
2894
|
case "selectordinal":
|
|
2895
2895
|
case "select": {
|
|
2896
|
-
var
|
|
2896
|
+
var B = this.clonePosition();
|
|
2897
2897
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(
|
|
2898
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B, qe({}, B)));
|
|
2899
2899
|
this.bumpSpace();
|
|
2900
|
-
var
|
|
2901
|
-
if (l !== "select" &&
|
|
2900
|
+
var q = this.parseIdentifierIfPossible(), N = 0;
|
|
2901
|
+
if (l !== "select" && q.value === "offset") {
|
|
2902
2902
|
if (!this.bumpIf(":"))
|
|
2903
2903
|
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2904
2904
|
this.bumpSpace();
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
return
|
|
2908
|
-
this.bumpSpace(),
|
|
2905
|
+
var d = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
|
+
if (d.err)
|
|
2907
|
+
return d;
|
|
2908
|
+
this.bumpSpace(), q = this.parseIdentifierIfPossible(), N = d.val;
|
|
2909
2909
|
}
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2912
|
-
return
|
|
2910
|
+
var k = this.tryParsePluralOrSelectOptions(t, l, r, q);
|
|
2911
|
+
if (k.err)
|
|
2912
|
+
return k;
|
|
2913
2913
|
var H = this.tryParseArgumentClose(n);
|
|
2914
2914
|
if (H.err)
|
|
2915
2915
|
return H;
|
|
2916
|
-
var
|
|
2916
|
+
var z = O(n, this.clonePosition());
|
|
2917
2917
|
return l === "select" ? {
|
|
2918
2918
|
val: {
|
|
2919
|
-
type:
|
|
2919
|
+
type: C.select,
|
|
2920
2920
|
value: i,
|
|
2921
|
-
options:
|
|
2922
|
-
location:
|
|
2921
|
+
options: Ut(k.val),
|
|
2922
|
+
location: z
|
|
2923
2923
|
},
|
|
2924
2924
|
err: null
|
|
2925
2925
|
} : {
|
|
2926
2926
|
val: {
|
|
2927
|
-
type:
|
|
2927
|
+
type: C.plural,
|
|
2928
2928
|
value: i,
|
|
2929
|
-
options:
|
|
2930
|
-
offset:
|
|
2929
|
+
options: Ut(k.val),
|
|
2930
|
+
offset: N,
|
|
2931
2931
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2932
|
+
location: z
|
|
2933
2933
|
},
|
|
2934
2934
|
err: null
|
|
2935
2935
|
};
|
|
@@ -2977,7 +2977,7 @@ var on = (
|
|
|
2977
2977
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
2978
|
var i = [];
|
|
2979
2979
|
try {
|
|
2980
|
-
i =
|
|
2980
|
+
i = Fi(t);
|
|
2981
2981
|
} catch (n) {
|
|
2982
2982
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2983
2983
|
}
|
|
@@ -2986,39 +2986,39 @@ var on = (
|
|
|
2986
2986
|
type: Oe.number,
|
|
2987
2987
|
tokens: i,
|
|
2988
2988
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2989
|
+
parsedOptions: this.shouldParseSkeletons ? zi(i) : {}
|
|
2990
2990
|
},
|
|
2991
2991
|
err: null
|
|
2992
2992
|
};
|
|
2993
2993
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2994
2994
|
for (var s, a = !1, l = [], o = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
2995
2995
|
if (u.length === 0) {
|
|
2996
|
-
var
|
|
2996
|
+
var d = this.clonePosition();
|
|
2997
2997
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2998
|
-
var
|
|
2999
|
-
if (
|
|
3000
|
-
return
|
|
3001
|
-
h = O(
|
|
2998
|
+
var p = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
|
+
if (p.err)
|
|
3000
|
+
return p;
|
|
3001
|
+
h = O(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3002
3002
|
} else
|
|
3003
3003
|
break;
|
|
3004
3004
|
}
|
|
3005
3005
|
if (o.has(u))
|
|
3006
3006
|
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3007
3007
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3008
|
-
var
|
|
3008
|
+
var x = this.clonePosition();
|
|
3009
3009
|
if (!this.bumpIf("{"))
|
|
3010
3010
|
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3011
3011
|
var H = this.parseMessage(t + 1, r, i);
|
|
3012
3012
|
if (H.err)
|
|
3013
3013
|
return H;
|
|
3014
|
-
var v = this.tryParseArgumentClose(
|
|
3014
|
+
var v = this.tryParseArgumentClose(x);
|
|
3015
3015
|
if (v.err)
|
|
3016
3016
|
return v;
|
|
3017
3017
|
l.push([
|
|
3018
3018
|
u,
|
|
3019
3019
|
{
|
|
3020
3020
|
value: H.val,
|
|
3021
|
-
location: O(
|
|
3021
|
+
location: O(x, this.clonePosition())
|
|
3022
3022
|
}
|
|
3023
3023
|
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3024
3024
|
}
|
|
@@ -3034,7 +3034,7 @@ var on = (
|
|
|
3034
3034
|
break;
|
|
3035
3035
|
}
|
|
3036
3036
|
var o = O(n, this.clonePosition());
|
|
3037
|
-
return s ? (a *= i,
|
|
3037
|
+
return s ? (a *= i, nn(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
|
|
3038
3038
|
}, e.prototype.offset = function() {
|
|
3039
3039
|
return this.position.offset;
|
|
3040
3040
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,7 +3049,7 @@ var on = (
|
|
|
3049
3049
|
var t = this.position.offset;
|
|
3050
3050
|
if (t >= this.message.length)
|
|
3051
3051
|
throw Error("out of bound");
|
|
3052
|
-
var r =
|
|
3052
|
+
var r = _r(this.message, t);
|
|
3053
3053
|
if (r === void 0)
|
|
3054
3054
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3055
3055
|
return r;
|
|
@@ -3068,7 +3068,7 @@ var on = (
|
|
|
3068
3068
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3069
3069
|
}
|
|
3070
3070
|
}, e.prototype.bumpIf = function(t) {
|
|
3071
|
-
if (
|
|
3071
|
+
if (kt(this.message, t, this.offset())) {
|
|
3072
3072
|
for (var r = 0; r < t.length; r++)
|
|
3073
3073
|
this.bump();
|
|
3074
3074
|
return !0;
|
|
@@ -3090,7 +3090,7 @@ var on = (
|
|
|
3090
3090
|
break;
|
|
3091
3091
|
}
|
|
3092
3092
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3093
|
+
for (; !this.isEOF() && wr(this.char()); )
|
|
3094
3094
|
this.bump();
|
|
3095
3095
|
}, e.prototype.peek = function() {
|
|
3096
3096
|
if (this.isEOF())
|
|
@@ -3103,30 +3103,30 @@ var on = (
|
|
|
3103
3103
|
function vt(e) {
|
|
3104
3104
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3106
|
+
function ln(e) {
|
|
3107
3107
|
return vt(e) || e === 47;
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function hn(e) {
|
|
3110
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;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function wr(e) {
|
|
3113
3113
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3115
|
+
function fn(e) {
|
|
3116
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;
|
|
3117
3117
|
}
|
|
3118
3118
|
function bt(e) {
|
|
3119
3119
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3120
|
+
if (delete t.location, dr(t) || mr(t))
|
|
3121
3121
|
for (var r in t.options)
|
|
3122
3122
|
delete t.options[r].location, bt(t.options[r].value);
|
|
3123
3123
|
else
|
|
3124
|
-
|
|
3124
|
+
hr(t) && gr(t.style) || (fr(t) || cr(t)) && dt(t.style) ? delete t.style.location : pr(t) && bt(t.children);
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3128
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
-
var r = new
|
|
3127
|
+
function cn(e, t) {
|
|
3128
|
+
t === void 0 && (t = {}), t = qe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3129
|
+
var r = new un(e, t).parse();
|
|
3130
3130
|
if (r.err) {
|
|
3131
3131
|
var i = SyntaxError(T[r.err.kind]);
|
|
3132
3132
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
@@ -3149,7 +3149,7 @@ var Ke = (
|
|
|
3149
3149
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3150
3150
|
}, t;
|
|
3151
3151
|
}(Error)
|
|
3152
|
-
),
|
|
3152
|
+
), Vt = (
|
|
3153
3153
|
/** @class */
|
|
3154
3154
|
function(e) {
|
|
3155
3155
|
Qe(t, e);
|
|
@@ -3158,7 +3158,7 @@ var Ke = (
|
|
|
3158
3158
|
}
|
|
3159
3159
|
return t;
|
|
3160
3160
|
}(Ke)
|
|
3161
|
-
),
|
|
3161
|
+
), dn = (
|
|
3162
3162
|
/** @class */
|
|
3163
3163
|
function(e) {
|
|
3164
3164
|
Qe(t, e);
|
|
@@ -3167,7 +3167,7 @@ var Ke = (
|
|
|
3167
3167
|
}
|
|
3168
3168
|
return t;
|
|
3169
3169
|
}(Ke)
|
|
3170
|
-
),
|
|
3170
|
+
), mn = (
|
|
3171
3171
|
/** @class */
|
|
3172
3172
|
function(e) {
|
|
3173
3173
|
Qe(t, e);
|
|
@@ -3176,126 +3176,126 @@ var Ke = (
|
|
|
3176
3176
|
}
|
|
3177
3177
|
return t;
|
|
3178
3178
|
}(Ke)
|
|
3179
|
-
),
|
|
3179
|
+
), W;
|
|
3180
3180
|
(function(e) {
|
|
3181
3181
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
|
-
})(
|
|
3183
|
-
function
|
|
3182
|
+
})(W || (W = {}));
|
|
3183
|
+
function pn(e) {
|
|
3184
3184
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3185
3185
|
var i = t[t.length - 1];
|
|
3186
|
-
return !i || i.type !==
|
|
3186
|
+
return !i || i.type !== W.literal || r.type !== W.literal ? t.push(r) : i.value += r.value, t;
|
|
3187
3187
|
}, []);
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3189
|
+
function gn(e) {
|
|
3190
3190
|
return typeof e == "function";
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (e.length === 1 &&
|
|
3192
|
+
function Xe(e, t, r, i, n, s, a) {
|
|
3193
|
+
if (e.length === 1 && Lt(e[0]))
|
|
3194
3194
|
return [
|
|
3195
3195
|
{
|
|
3196
|
-
type:
|
|
3196
|
+
type: W.literal,
|
|
3197
3197
|
value: e[0].value
|
|
3198
3198
|
}
|
|
3199
3199
|
];
|
|
3200
3200
|
for (var l = [], o = 0, u = e; o < u.length; o++) {
|
|
3201
3201
|
var h = u[o];
|
|
3202
|
-
if (
|
|
3202
|
+
if (Lt(h)) {
|
|
3203
3203
|
l.push({
|
|
3204
|
-
type:
|
|
3204
|
+
type: W.literal,
|
|
3205
3205
|
value: h.value
|
|
3206
3206
|
});
|
|
3207
3207
|
continue;
|
|
3208
3208
|
}
|
|
3209
|
-
if (
|
|
3209
|
+
if (Ni(h)) {
|
|
3210
3210
|
typeof s == "number" && l.push({
|
|
3211
|
-
type:
|
|
3211
|
+
type: W.literal,
|
|
3212
3212
|
value: r.getNumberFormat(t).format(s)
|
|
3213
3213
|
});
|
|
3214
3214
|
continue;
|
|
3215
3215
|
}
|
|
3216
|
-
var
|
|
3217
|
-
if (!(n &&
|
|
3218
|
-
throw new
|
|
3219
|
-
var
|
|
3220
|
-
if (
|
|
3221
|
-
(!
|
|
3222
|
-
type: typeof
|
|
3223
|
-
value:
|
|
3216
|
+
var d = h.value;
|
|
3217
|
+
if (!(n && d in n))
|
|
3218
|
+
throw new mn(d, a);
|
|
3219
|
+
var p = n[d];
|
|
3220
|
+
if (Ii(h)) {
|
|
3221
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3222
|
+
type: typeof p == "string" ? W.literal : W.object,
|
|
3223
|
+
value: p
|
|
3224
3224
|
});
|
|
3225
3225
|
continue;
|
|
3226
3226
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3227
|
+
if (fr(h)) {
|
|
3228
|
+
var x = typeof h.style == "string" ? i.date[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
|
3229
3229
|
l.push({
|
|
3230
|
-
type:
|
|
3231
|
-
value: r.getDateTimeFormat(t,
|
|
3230
|
+
type: W.literal,
|
|
3231
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3232
3232
|
});
|
|
3233
3233
|
continue;
|
|
3234
3234
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3235
|
+
if (cr(h)) {
|
|
3236
|
+
var x = typeof h.style == "string" ? i.time[h.style] : dt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3237
3237
|
l.push({
|
|
3238
|
-
type:
|
|
3239
|
-
value: r.getDateTimeFormat(t,
|
|
3238
|
+
type: W.literal,
|
|
3239
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3240
3240
|
});
|
|
3241
3241
|
continue;
|
|
3242
3242
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3245
|
-
|
|
3246
|
-
type:
|
|
3247
|
-
value: r.getNumberFormat(t,
|
|
3243
|
+
if (hr(h)) {
|
|
3244
|
+
var x = typeof h.style == "string" ? i.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3245
|
+
x && x.scale && (p = p * (x.scale || 1)), l.push({
|
|
3246
|
+
type: W.literal,
|
|
3247
|
+
value: r.getNumberFormat(t, x).format(p)
|
|
3248
3248
|
});
|
|
3249
3249
|
continue;
|
|
3250
3250
|
}
|
|
3251
|
-
if (
|
|
3251
|
+
if (pr(h)) {
|
|
3252
3252
|
var H = h.children, v = h.value, $ = n[v];
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new
|
|
3255
|
-
var
|
|
3256
|
-
return
|
|
3253
|
+
if (!gn($))
|
|
3254
|
+
throw new dn(v, "function", a);
|
|
3255
|
+
var U = Xe(H, t, r, i, n, s), F = $(U.map(function(N) {
|
|
3256
|
+
return N.value;
|
|
3257
3257
|
}));
|
|
3258
|
-
Array.isArray(
|
|
3258
|
+
Array.isArray(F) || (F = [F]), l.push.apply(l, F.map(function(N) {
|
|
3259
3259
|
return {
|
|
3260
|
-
type: typeof
|
|
3261
|
-
value:
|
|
3260
|
+
type: typeof N == "string" ? W.literal : W.object,
|
|
3261
|
+
value: N
|
|
3262
3262
|
};
|
|
3263
3263
|
}));
|
|
3264
3264
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3267
|
-
if (!
|
|
3268
|
-
throw new
|
|
3269
|
-
l.push.apply(l,
|
|
3265
|
+
if (dr(h)) {
|
|
3266
|
+
var B = h.options[p] || h.options.other;
|
|
3267
|
+
if (!B)
|
|
3268
|
+
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3269
|
+
l.push.apply(l, Xe(B.value, t, r, i, n));
|
|
3270
3270
|
continue;
|
|
3271
3271
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
if (!
|
|
3272
|
+
if (mr(h)) {
|
|
3273
|
+
var B = h.options["=".concat(p)];
|
|
3274
|
+
if (!B) {
|
|
3275
3275
|
if (!Intl.PluralRules)
|
|
3276
3276
|
throw new Ke(`Intl.PluralRules is not available in this environment.
|
|
3277
3277
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
3278
|
`, Pe.MISSING_INTL_API, a);
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3279
|
+
var q = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3280
|
+
B = h.options[q] || h.options.other;
|
|
3281
3281
|
}
|
|
3282
|
-
if (!
|
|
3283
|
-
throw new
|
|
3284
|
-
l.push.apply(l,
|
|
3282
|
+
if (!B)
|
|
3283
|
+
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3284
|
+
l.push.apply(l, Xe(B.value, t, r, i, n, p - (h.offset || 0)));
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
return
|
|
3288
|
+
return pn(l);
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return t ?
|
|
3292
|
-
return r[i] =
|
|
3290
|
+
function vn(e, t) {
|
|
3291
|
+
return t ? ie(ie(ie({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3292
|
+
return r[i] = ie(ie({}, e[i]), t[i] || {}), r;
|
|
3293
3293
|
}, {})) : e;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function bn(e, t) {
|
|
3296
3296
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3297
|
-
return r[i] =
|
|
3298
|
-
},
|
|
3297
|
+
return r[i] = vn(e[i], t[i]), r;
|
|
3298
|
+
}, ie({}, e)) : e;
|
|
3299
3299
|
}
|
|
3300
3300
|
function at(e) {
|
|
3301
3301
|
return {
|
|
@@ -3311,7 +3311,7 @@ function at(e) {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function yn(e) {
|
|
3315
3315
|
return e === void 0 && (e = {
|
|
3316
3316
|
number: {},
|
|
3317
3317
|
dateTime: {},
|
|
@@ -3343,7 +3343,7 @@ function vn(e) {
|
|
|
3343
3343
|
})
|
|
3344
3344
|
};
|
|
3345
3345
|
}
|
|
3346
|
-
var
|
|
3346
|
+
var Sr = (
|
|
3347
3347
|
/** @class */
|
|
3348
3348
|
function() {
|
|
3349
3349
|
function e(t, r, i, n) {
|
|
@@ -3357,12 +3357,12 @@ var wr = (
|
|
|
3357
3357
|
var u = s.formatToParts(o);
|
|
3358
3358
|
if (u.length === 1)
|
|
3359
3359
|
return u[0].value;
|
|
3360
|
-
var h = u.reduce(function(
|
|
3361
|
-
return !
|
|
3360
|
+
var h = u.reduce(function(d, p) {
|
|
3361
|
+
return !d.length || p.type !== W.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
|
|
3362
3362
|
}, []);
|
|
3363
3363
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3364
3364
|
}, this.formatToParts = function(o) {
|
|
3365
|
-
return
|
|
3365
|
+
return Xe(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
|
|
3366
3366
|
}, this.resolvedOptions = function() {
|
|
3367
3367
|
var o;
|
|
3368
3368
|
return {
|
|
@@ -3375,13 +3375,13 @@ var wr = (
|
|
|
3375
3375
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3376
3376
|
var a = n || {};
|
|
3377
3377
|
a.formatters;
|
|
3378
|
-
var l =
|
|
3379
|
-
this.ast = e.__parse(t,
|
|
3378
|
+
var l = Pi(a, ["formatters"]);
|
|
3379
|
+
this.ast = e.__parse(t, ie(ie({}, l), { locale: this.resolvedLocale }));
|
|
3380
3380
|
} else
|
|
3381
3381
|
this.ast = t;
|
|
3382
3382
|
if (!Array.isArray(this.ast))
|
|
3383
3383
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3384
|
+
this.formats = bn(e.formats, i), this.formatters = n && n.formatters || yn(this.formatterCache);
|
|
3385
3385
|
}
|
|
3386
3386
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3387
|
get: function() {
|
|
@@ -3394,7 +3394,7 @@ var wr = (
|
|
|
3394
3394
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3395
3395
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3396
3396
|
}
|
|
3397
|
-
}, e.__parse =
|
|
3397
|
+
}, e.__parse = cn, e.formats = {
|
|
3398
3398
|
number: {
|
|
3399
3399
|
integer: {
|
|
3400
3400
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3455,7 @@ var wr = (
|
|
|
3455
3455
|
}, e;
|
|
3456
3456
|
}()
|
|
3457
3457
|
);
|
|
3458
|
-
function
|
|
3458
|
+
function xn(e, t) {
|
|
3459
3459
|
if (t == null)
|
|
3460
3460
|
return;
|
|
3461
3461
|
if (t in e)
|
|
@@ -3476,101 +3476,101 @@ function bn(e, t) {
|
|
|
3476
3476
|
i = void 0;
|
|
3477
3477
|
return i;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const ce = {}, _n = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), Tr = (e, t) => {
|
|
3480
3480
|
if (t == null)
|
|
3481
3481
|
return;
|
|
3482
|
-
if (t in
|
|
3483
|
-
return
|
|
3484
|
-
const r =
|
|
3482
|
+
if (t in ce && e in ce[t])
|
|
3483
|
+
return ce[t][e];
|
|
3484
|
+
const r = Fe(t);
|
|
3485
3485
|
for (let i = 0; i < r.length; i++) {
|
|
3486
|
-
const n = r[i], s =
|
|
3486
|
+
const n = r[i], s = wn(n, e);
|
|
3487
3487
|
if (s)
|
|
3488
|
-
return
|
|
3488
|
+
return _n(e, t, s);
|
|
3489
3489
|
}
|
|
3490
3490
|
};
|
|
3491
3491
|
let St;
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3492
|
+
const Ue = ke({});
|
|
3493
|
+
function En(e) {
|
|
3494
3494
|
return St[e] || null;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function Hr(e) {
|
|
3497
3497
|
return e in St;
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3499
|
+
function wn(e, t) {
|
|
3500
|
+
if (!Hr(e))
|
|
3501
3501
|
return null;
|
|
3502
|
-
const r =
|
|
3503
|
-
return
|
|
3502
|
+
const r = En(e);
|
|
3503
|
+
return xn(r, t);
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function Sn(e) {
|
|
3506
3506
|
if (e == null)
|
|
3507
3507
|
return;
|
|
3508
|
-
const t =
|
|
3508
|
+
const t = Fe(e);
|
|
3509
3509
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3510
|
const i = t[r];
|
|
3511
|
-
if (
|
|
3511
|
+
if (Hr(i))
|
|
3512
3512
|
return i;
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3516
|
-
delete
|
|
3515
|
+
function Or(e, ...t) {
|
|
3516
|
+
delete ce[e], Ue.update((r) => (r[e] = Oi.all([r[e] || {}, ...t]), r));
|
|
3517
3517
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3518
|
+
$e(
|
|
3519
|
+
[Ue],
|
|
3520
3520
|
([e]) => Object.keys(e)
|
|
3521
3521
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3522
|
+
Ue.subscribe((e) => St = e);
|
|
3523
|
+
const We = {};
|
|
3524
|
+
function Tn(e, t) {
|
|
3525
|
+
We[e].delete(t), We[e].size === 0 && delete We[e];
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3527
|
+
function Pr(e) {
|
|
3528
|
+
return We[e];
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3532
|
-
const r =
|
|
3530
|
+
function Hn(e) {
|
|
3531
|
+
return Fe(e).map((t) => {
|
|
3532
|
+
const r = Pr(t);
|
|
3533
3533
|
return [t, r ? [...r] : []];
|
|
3534
3534
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e == null ? !1 :
|
|
3536
|
+
function Ye(e) {
|
|
3537
|
+
return e == null ? !1 : Fe(e).some(
|
|
3538
3538
|
(t) => {
|
|
3539
3539
|
var r;
|
|
3540
|
-
return (r =
|
|
3540
|
+
return (r = Pr(t)) == null ? void 0 : r.size;
|
|
3541
3541
|
}
|
|
3542
3542
|
);
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function On(e, t) {
|
|
3545
3545
|
return Promise.all(
|
|
3546
|
-
t.map((i) => (
|
|
3547
|
-
).then((i) =>
|
|
3546
|
+
t.map((i) => (Tn(e, i), i().then((n) => n.default || n)))
|
|
3547
|
+
).then((i) => Or(e, ...i));
|
|
3548
3548
|
}
|
|
3549
3549
|
const Me = {};
|
|
3550
|
-
function
|
|
3551
|
-
if (!
|
|
3550
|
+
function Ar(e) {
|
|
3551
|
+
if (!Ye(e))
|
|
3552
3552
|
return e in Me ? Me[e] : Promise.resolve();
|
|
3553
|
-
const t =
|
|
3553
|
+
const t = Hn(e);
|
|
3554
3554
|
return Me[e] = Promise.all(
|
|
3555
3555
|
t.map(
|
|
3556
|
-
([r, i]) =>
|
|
3556
|
+
([r, i]) => On(r, i)
|
|
3557
3557
|
)
|
|
3558
3558
|
).then(() => {
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3559
|
+
if (Ye(e))
|
|
3560
|
+
return Ar(e);
|
|
3561
3561
|
delete Me[e];
|
|
3562
3562
|
}), Me[e];
|
|
3563
3563
|
}
|
|
3564
|
-
var
|
|
3564
|
+
var Gt = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, $n = (e, t) => {
|
|
3565
3565
|
var r = {};
|
|
3566
3566
|
for (var i in e)
|
|
3567
|
-
|
|
3568
|
-
if (e != null &&
|
|
3569
|
-
for (var i of
|
|
3570
|
-
t.indexOf(i) < 0 &&
|
|
3567
|
+
Pn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3568
|
+
if (e != null && Gt)
|
|
3569
|
+
for (var i of Gt(e))
|
|
3570
|
+
t.indexOf(i) < 0 && An.call(e, i) && (r[i] = e[i]);
|
|
3571
3571
|
return r;
|
|
3572
3572
|
};
|
|
3573
|
-
const
|
|
3573
|
+
const Bn = {
|
|
3574
3574
|
number: {
|
|
3575
3575
|
scientific: { notation: "scientific" },
|
|
3576
3576
|
engineering: { notation: "engineering" },
|
|
@@ -3600,81 +3600,81 @@ const $n = {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
3602
|
};
|
|
3603
|
-
function
|
|
3603
|
+
function Mn({ locale: e, id: t }) {
|
|
3604
3604
|
console.warn(
|
|
3605
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3605
|
+
`[svelte-i18n] The message "${t}" was not found in "${Fe(
|
|
3606
3606
|
e
|
|
3607
|
-
).join('", "')}".${
|
|
3607
|
+
).join('", "')}".${Ye(de()) ? `
|
|
3608
3608
|
|
|
3609
3609
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3610
3610
|
);
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const Cn = {
|
|
3613
3613
|
fallbackLocale: null,
|
|
3614
3614
|
loadingDelay: 200,
|
|
3615
|
-
formats:
|
|
3615
|
+
formats: Bn,
|
|
3616
3616
|
warnOnMissingMessages: !0,
|
|
3617
3617
|
handleMissingMessage: void 0,
|
|
3618
3618
|
ignoreTag: !0
|
|
3619
|
-
}, Ce =
|
|
3620
|
-
function
|
|
3619
|
+
}, Ce = Cn;
|
|
3620
|
+
function Ae() {
|
|
3621
3621
|
return Ce;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
const t = e, { formats: r } = t, i =
|
|
3623
|
+
function Dn(e) {
|
|
3624
|
+
const t = e, { formats: r } = t, i = $n(t, ["formats"]);
|
|
3625
3625
|
let n = e.fallbackLocale;
|
|
3626
3626
|
if (e.initialLocale)
|
|
3627
3627
|
try {
|
|
3628
|
-
|
|
3628
|
+
Sr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3629
3629
|
} catch (s) {
|
|
3630
3630
|
console.warn(
|
|
3631
3631
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3632
3632
|
);
|
|
3633
3633
|
}
|
|
3634
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3634
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Mn : console.warn(
|
|
3635
3635
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3636
|
-
)), Object.assign(Ce, i, { initialLocale: n }), r && ("number" in r && Object.assign(Ce.formats.number, r.number), "date" in r && Object.assign(Ce.formats.date, r.date), "time" in r && Object.assign(Ce.formats.time, r.time)),
|
|
3636
|
+
)), Object.assign(Ce, i, { initialLocale: n }), r && ("number" in r && Object.assign(Ce.formats.number, r.number), "date" in r && Object.assign(Ce.formats.date, r.date), "time" in r && Object.assign(Ce.formats.time, r.time)), ve.set(n);
|
|
3637
3637
|
}
|
|
3638
|
-
const ut =
|
|
3639
|
-
var
|
|
3638
|
+
const ut = ke(!1);
|
|
3639
|
+
var Ln = Object.defineProperty, In = Object.defineProperties, Nn = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
|
3640
3640
|
for (var r in t || (t = {}))
|
|
3641
|
-
|
|
3642
|
-
if (
|
|
3643
|
-
for (var r of
|
|
3644
|
-
|
|
3641
|
+
Rn.call(t, r) && zt(e, r, t[r]);
|
|
3642
|
+
if (jt)
|
|
3643
|
+
for (var r of jt(t))
|
|
3644
|
+
kn.call(t, r) && zt(e, r, t[r]);
|
|
3645
3645
|
return e;
|
|
3646
|
-
},
|
|
3646
|
+
}, Fn = (e, t) => In(e, Nn(t));
|
|
3647
3647
|
let yt;
|
|
3648
|
-
const
|
|
3649
|
-
function
|
|
3648
|
+
const Ze = ke(null);
|
|
3649
|
+
function Xt(e) {
|
|
3650
3650
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3653
|
-
const r =
|
|
3654
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3652
|
+
function Fe(e, t = Ae().fallbackLocale) {
|
|
3653
|
+
const r = Xt(e);
|
|
3654
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function de() {
|
|
3657
3657
|
return yt != null ? yt : void 0;
|
|
3658
3658
|
}
|
|
3659
|
-
|
|
3659
|
+
Ze.subscribe((e) => {
|
|
3660
3660
|
yt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3661
3661
|
});
|
|
3662
|
-
const
|
|
3663
|
-
if (e &&
|
|
3664
|
-
const { loadingDelay: t } =
|
|
3662
|
+
const Vn = (e) => {
|
|
3663
|
+
if (e && Sn(e) && Ye(e)) {
|
|
3664
|
+
const { loadingDelay: t } = Ae();
|
|
3665
3665
|
let r;
|
|
3666
|
-
return typeof window != "undefined" &&
|
|
3666
|
+
return typeof window != "undefined" && de() != null && t ? r = window.setTimeout(
|
|
3667
3667
|
() => ut.set(!0),
|
|
3668
3668
|
t
|
|
3669
|
-
) : ut.set(!0),
|
|
3670
|
-
|
|
3669
|
+
) : ut.set(!0), Ar(e).then(() => {
|
|
3670
|
+
Ze.set(e);
|
|
3671
3671
|
}).finally(() => {
|
|
3672
3672
|
clearTimeout(r), ut.set(!1);
|
|
3673
3673
|
});
|
|
3674
3674
|
}
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
-
set:
|
|
3675
|
+
return Ze.set(e);
|
|
3676
|
+
}, ve = Fn(Un({}, Ze), {
|
|
3677
|
+
set: Vn
|
|
3678
3678
|
}), et = (e) => {
|
|
3679
3679
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3680
|
return (i) => {
|
|
@@ -3682,42 +3682,42 @@ const Un = (e) => {
|
|
|
3682
3682
|
return n in t ? t[n] : t[n] = e(i);
|
|
3683
3683
|
};
|
|
3684
3684
|
};
|
|
3685
|
-
var
|
|
3685
|
+
var Gn = Object.defineProperty, Je = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
3686
3686
|
for (var r in t || (t = {}))
|
|
3687
|
-
$r.call(t, r) &&
|
|
3688
|
-
if (
|
|
3689
|
-
for (var r of
|
|
3690
|
-
|
|
3687
|
+
$r.call(t, r) && Wt(e, r, t[r]);
|
|
3688
|
+
if (Je)
|
|
3689
|
+
for (var r of Je(t))
|
|
3690
|
+
Br.call(t, r) && Wt(e, r, t[r]);
|
|
3691
3691
|
return e;
|
|
3692
3692
|
}, Be = (e, t) => {
|
|
3693
3693
|
var r = {};
|
|
3694
3694
|
for (var i in e)
|
|
3695
3695
|
$r.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3696
|
-
if (e != null &&
|
|
3697
|
-
for (var i of
|
|
3698
|
-
t.indexOf(i) < 0 &&
|
|
3696
|
+
if (e != null && Je)
|
|
3697
|
+
for (var i of Je(e))
|
|
3698
|
+
t.indexOf(i) < 0 && Br.call(e, i) && (r[i] = e[i]);
|
|
3699
3699
|
return r;
|
|
3700
3700
|
};
|
|
3701
3701
|
const Ne = (e, t) => {
|
|
3702
|
-
const { formats: r } =
|
|
3702
|
+
const { formats: r } = Ae();
|
|
3703
3703
|
if (e in r && t in r[e])
|
|
3704
3704
|
return r[e][t];
|
|
3705
3705
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
|
-
},
|
|
3706
|
+
}, jn = et(
|
|
3707
3707
|
(e) => {
|
|
3708
3708
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3709
3709
|
if (r == null)
|
|
3710
3710
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
3711
|
return i && (n = Ne("number", i)), new Intl.NumberFormat(r, n);
|
|
3712
3712
|
}
|
|
3713
|
-
),
|
|
3713
|
+
), zn = et(
|
|
3714
3714
|
(e) => {
|
|
3715
3715
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3716
3716
|
if (r == null)
|
|
3717
3717
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
3718
|
return i ? n = Ne("date", i) : Object.keys(n).length === 0 && (n = Ne("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3719
3719
|
}
|
|
3720
|
-
),
|
|
3720
|
+
), Xn = et(
|
|
3721
3721
|
(e) => {
|
|
3722
3722
|
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3723
3723
|
if (r == null)
|
|
@@ -3726,78 +3726,78 @@ const Ne = (e, t) => {
|
|
|
3726
3726
|
);
|
|
3727
3727
|
return i ? n = Ne("time", i) : Object.keys(n).length === 0 && (n = Ne("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3728
3728
|
}
|
|
3729
|
-
),
|
|
3729
|
+
), Wn = (e = {}) => {
|
|
3730
3730
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3731
|
+
locale: r = de()
|
|
3732
3732
|
} = t, i = Be(t, [
|
|
3733
3733
|
"locale"
|
|
3734
3734
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3735
|
+
return jn(Tt({ locale: r }, i));
|
|
3736
|
+
}, qn = (e = {}) => {
|
|
3737
3737
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3738
|
+
locale: r = de()
|
|
3739
3739
|
} = t, i = Be(t, [
|
|
3740
3740
|
"locale"
|
|
3741
3741
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3742
|
+
return zn(Tt({ locale: r }, i));
|
|
3743
|
+
}, Yn = (e = {}) => {
|
|
3744
3744
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3745
|
+
locale: r = de()
|
|
3746
3746
|
} = t, i = Be(t, [
|
|
3747
3747
|
"locale"
|
|
3748
3748
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3749
|
+
return Xn(Tt({ locale: r }, i));
|
|
3750
|
+
}, Zn = et(
|
|
3751
3751
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3753
|
-
ignoreTag:
|
|
3752
|
+
(e, t = de()) => new Sr(e, t, Ae().formats, {
|
|
3753
|
+
ignoreTag: Ae().ignoreTag
|
|
3754
3754
|
})
|
|
3755
|
-
),
|
|
3755
|
+
), Jn = (e, t = {}) => {
|
|
3756
3756
|
var r, i, n, s;
|
|
3757
3757
|
let a = t;
|
|
3758
3758
|
typeof e == "object" && (a = e, e = a.id);
|
|
3759
3759
|
const {
|
|
3760
3760
|
values: l,
|
|
3761
|
-
locale: o =
|
|
3761
|
+
locale: o = de(),
|
|
3762
3762
|
default: u
|
|
3763
3763
|
} = a;
|
|
3764
3764
|
if (o == null)
|
|
3765
3765
|
throw new Error(
|
|
3766
3766
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3767
3767
|
);
|
|
3768
|
-
let h =
|
|
3768
|
+
let h = Tr(e, o);
|
|
3769
3769
|
if (!h)
|
|
3770
|
-
h = (s = (n = (i = (r =
|
|
3770
|
+
h = (s = (n = (i = (r = Ae()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3771
3771
|
else if (typeof h != "string")
|
|
3772
3772
|
return console.warn(
|
|
3773
3773
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3774
3774
|
), h;
|
|
3775
3775
|
if (!l)
|
|
3776
3776
|
return h;
|
|
3777
|
-
let
|
|
3777
|
+
let d = h;
|
|
3778
3778
|
try {
|
|
3779
|
-
|
|
3780
|
-
} catch (
|
|
3781
|
-
|
|
3779
|
+
d = Zn(h, o).format(l);
|
|
3780
|
+
} catch (p) {
|
|
3781
|
+
p instanceof Error && console.warn(
|
|
3782
3782
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3783
|
-
|
|
3783
|
+
p.message
|
|
3784
3784
|
);
|
|
3785
3785
|
}
|
|
3786
|
-
return
|
|
3787
|
-
},
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
function
|
|
3793
|
-
|
|
3794
|
-
}
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3786
|
+
return d;
|
|
3787
|
+
}, Qn = (e, t) => Yn(t).format(e), Kn = (e, t) => qn(t).format(e), es = (e, t) => Wn(t).format(e), ts = (e, t = de()) => Tr(e, t), rs = $e([ve, Ue], () => Jn);
|
|
3788
|
+
$e([ve], () => Qn);
|
|
3789
|
+
$e([ve], () => Kn);
|
|
3790
|
+
$e([ve], () => es);
|
|
3791
|
+
$e([ve, Ue], () => ts);
|
|
3792
|
+
function qt(e, t) {
|
|
3793
|
+
Or(e, t);
|
|
3794
|
+
}
|
|
3795
|
+
function is(e) {
|
|
3796
|
+
Dn({
|
|
3797
3797
|
fallbackLocale: "en"
|
|
3798
|
-
}),
|
|
3798
|
+
}), ve.set(e);
|
|
3799
3799
|
}
|
|
3800
|
-
const
|
|
3800
|
+
const Yt = {
|
|
3801
3801
|
en: {
|
|
3802
3802
|
"verification.video.how-to": "How to verify yourself",
|
|
3803
3803
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3865,193 +3865,194 @@ if (typeof window != "undefined") {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
};
|
|
3867
3867
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3868
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-BCigQaKQ.js").then(({ default: t }) => {
|
|
3869
3869
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3870
3870
|
});
|
|
3871
3871
|
}
|
|
3872
|
-
|
|
3872
|
+
let ns = ke(null);
|
|
3873
|
+
var Mr = { exports: {} };
|
|
3873
3874
|
(function(e, t) {
|
|
3874
3875
|
(function(r, i) {
|
|
3875
3876
|
e.exports = i();
|
|
3876
|
-
})(
|
|
3877
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week",
|
|
3878
|
-
var g = ["th", "st", "nd", "rd"],
|
|
3879
|
-
return "[" +
|
|
3880
|
-
} },
|
|
3881
|
-
var b = String(
|
|
3882
|
-
return !b || b.length >= g ?
|
|
3883
|
-
},
|
|
3884
|
-
var g = -
|
|
3885
|
-
return (g <= 0 ? "+" : "-") +
|
|
3886
|
-
}, m: function
|
|
3887
|
-
if (g.date() <
|
|
3888
|
-
return -
|
|
3889
|
-
var b = 12 * (
|
|
3890
|
-
return +(-(b + (
|
|
3891
|
-
}, a: function(
|
|
3892
|
-
return
|
|
3893
|
-
}, p: function(
|
|
3894
|
-
return { M:
|
|
3895
|
-
}, u: function(
|
|
3896
|
-
return
|
|
3897
|
-
} },
|
|
3898
|
-
|
|
3899
|
-
var
|
|
3900
|
-
return
|
|
3901
|
-
},
|
|
3902
|
-
var
|
|
3877
|
+
})(or, function() {
|
|
3878
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", d = "month", p = "quarter", x = "year", H = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
3879
|
+
var g = ["th", "st", "nd", "rd"], c = _ % 100;
|
|
3880
|
+
return "[" + _ + (g[(c - 20) % 10] || g[c] || g[0]) + "]";
|
|
3881
|
+
} }, B = function(_, g, c) {
|
|
3882
|
+
var b = String(_);
|
|
3883
|
+
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(c) + _;
|
|
3884
|
+
}, q = { s: B, z: function(_) {
|
|
3885
|
+
var g = -_.utcOffset(), c = Math.abs(g), b = Math.floor(c / 60), m = c % 60;
|
|
3886
|
+
return (g <= 0 ? "+" : "-") + B(b, 2, "0") + ":" + B(m, 2, "0");
|
|
3887
|
+
}, m: function _(g, c) {
|
|
3888
|
+
if (g.date() < c.date())
|
|
3889
|
+
return -_(c, g);
|
|
3890
|
+
var b = 12 * (c.year() - g.year()) + (c.month() - g.month()), m = g.clone().add(b, d), E = c - m < 0, w = g.clone().add(b + (E ? -1 : 1), d);
|
|
3891
|
+
return +(-(b + (c - m) / (E ? m - w : w - m)) || 0);
|
|
3892
|
+
}, a: function(_) {
|
|
3893
|
+
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3894
|
+
}, p: function(_) {
|
|
3895
|
+
return { M: d, y: x, w: h, d: u, D: H, h: o, m: l, s: a, ms: s, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
3896
|
+
}, u: function(_) {
|
|
3897
|
+
return _ === void 0;
|
|
3898
|
+
} }, N = "en", k = {};
|
|
3899
|
+
k[N] = F;
|
|
3900
|
+
var z = "$isDayjsObject", se = function(_) {
|
|
3901
|
+
return _ instanceof be || !(!_ || !_[z]);
|
|
3902
|
+
}, D = function _(g, c, b) {
|
|
3903
|
+
var m;
|
|
3903
3904
|
if (!g)
|
|
3904
|
-
return
|
|
3905
|
+
return N;
|
|
3905
3906
|
if (typeof g == "string") {
|
|
3906
|
-
var
|
|
3907
|
-
|
|
3907
|
+
var E = g.toLowerCase();
|
|
3908
|
+
k[E] && (m = E), c && (k[E] = c, m = E);
|
|
3908
3909
|
var w = g.split("-");
|
|
3909
|
-
if (!
|
|
3910
|
-
return
|
|
3910
|
+
if (!m && w.length > 1)
|
|
3911
|
+
return _(w[0]);
|
|
3911
3912
|
} else {
|
|
3912
|
-
var
|
|
3913
|
-
|
|
3913
|
+
var A = g.name;
|
|
3914
|
+
k[A] = g, m = A;
|
|
3914
3915
|
}
|
|
3915
|
-
return !b &&
|
|
3916
|
-
},
|
|
3917
|
-
if (
|
|
3918
|
-
return
|
|
3919
|
-
var
|
|
3920
|
-
return
|
|
3921
|
-
}, P =
|
|
3922
|
-
P.l =
|
|
3923
|
-
return
|
|
3916
|
+
return !b && m && (N = m), m || !b && N;
|
|
3917
|
+
}, M = function(_, g) {
|
|
3918
|
+
if (se(_))
|
|
3919
|
+
return _.clone();
|
|
3920
|
+
var c = typeof g == "object" ? g : {};
|
|
3921
|
+
return c.date = _, c.args = arguments, new be(c);
|
|
3922
|
+
}, P = q;
|
|
3923
|
+
P.l = D, P.i = se, P.w = function(_, g) {
|
|
3924
|
+
return M(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3924
3925
|
};
|
|
3925
|
-
var
|
|
3926
|
-
function
|
|
3927
|
-
this.$L =
|
|
3926
|
+
var be = function() {
|
|
3927
|
+
function _(c) {
|
|
3928
|
+
this.$L = D(c.locale, null, !0), this.parse(c), this.$x = this.$x || c.x || {}, this[z] = !0;
|
|
3928
3929
|
}
|
|
3929
|
-
var g =
|
|
3930
|
-
return g.parse = function(
|
|
3930
|
+
var g = _.prototype;
|
|
3931
|
+
return g.parse = function(c) {
|
|
3931
3932
|
this.$d = function(b) {
|
|
3932
|
-
var
|
|
3933
|
-
if (
|
|
3933
|
+
var m = b.date, E = b.utc;
|
|
3934
|
+
if (m === null)
|
|
3934
3935
|
return /* @__PURE__ */ new Date(NaN);
|
|
3935
|
-
if (P.u(
|
|
3936
|
+
if (P.u(m))
|
|
3936
3937
|
return /* @__PURE__ */ new Date();
|
|
3937
|
-
if (
|
|
3938
|
-
return new Date(
|
|
3939
|
-
if (typeof
|
|
3940
|
-
var w =
|
|
3938
|
+
if (m instanceof Date)
|
|
3939
|
+
return new Date(m);
|
|
3940
|
+
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3941
|
+
var w = m.match($);
|
|
3941
3942
|
if (w) {
|
|
3942
|
-
var
|
|
3943
|
-
return
|
|
3943
|
+
var A = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
3944
|
+
return E ? new Date(Date.UTC(w[1], A, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], A, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
3944
3945
|
}
|
|
3945
3946
|
}
|
|
3946
|
-
return new Date(
|
|
3947
|
-
}(
|
|
3947
|
+
return new Date(m);
|
|
3948
|
+
}(c), this.init();
|
|
3948
3949
|
}, g.init = function() {
|
|
3949
|
-
var
|
|
3950
|
-
this.$y =
|
|
3950
|
+
var c = this.$d;
|
|
3951
|
+
this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
|
|
3951
3952
|
}, g.$utils = function() {
|
|
3952
3953
|
return P;
|
|
3953
3954
|
}, g.isValid = function() {
|
|
3954
3955
|
return this.$d.toString() !== v;
|
|
3955
|
-
}, g.isSame = function(
|
|
3956
|
-
var
|
|
3957
|
-
return this.startOf(b) <=
|
|
3958
|
-
}, g.isAfter = function(
|
|
3959
|
-
return
|
|
3960
|
-
}, g.isBefore = function(
|
|
3961
|
-
return this.endOf(b) <
|
|
3962
|
-
}, g.$g = function(
|
|
3963
|
-
return P.u(
|
|
3956
|
+
}, g.isSame = function(c, b) {
|
|
3957
|
+
var m = M(c);
|
|
3958
|
+
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3959
|
+
}, g.isAfter = function(c, b) {
|
|
3960
|
+
return M(c) < this.startOf(b);
|
|
3961
|
+
}, g.isBefore = function(c, b) {
|
|
3962
|
+
return this.endOf(b) < M(c);
|
|
3963
|
+
}, g.$g = function(c, b, m) {
|
|
3964
|
+
return P.u(c) ? this[b] : this.set(m, c);
|
|
3964
3965
|
}, g.unix = function() {
|
|
3965
3966
|
return Math.floor(this.valueOf() / 1e3);
|
|
3966
3967
|
}, g.valueOf = function() {
|
|
3967
3968
|
return this.$d.getTime();
|
|
3968
|
-
}, g.startOf = function(
|
|
3969
|
-
var
|
|
3970
|
-
var
|
|
3971
|
-
return
|
|
3972
|
-
},
|
|
3973
|
-
return P.w(
|
|
3974
|
-
},
|
|
3969
|
+
}, g.startOf = function(c, b) {
|
|
3970
|
+
var m = this, E = !!P.u(b) || b, w = P.p(c), A = function(ae, G) {
|
|
3971
|
+
var K = P.w(m.$u ? Date.UTC(m.$y, G, ae) : new Date(m.$y, G, ae), m);
|
|
3972
|
+
return E ? K : K.endOf(u);
|
|
3973
|
+
}, L = function(ae, G) {
|
|
3974
|
+
return P.w(m.toDate()[ae].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), m);
|
|
3975
|
+
}, R = this.$W, V = this.$M, X = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
|
3975
3976
|
switch (w) {
|
|
3976
|
-
case
|
|
3977
|
-
return
|
|
3978
|
-
case
|
|
3979
|
-
return
|
|
3977
|
+
case x:
|
|
3978
|
+
return E ? A(1, 0) : A(31, 11);
|
|
3979
|
+
case d:
|
|
3980
|
+
return E ? A(1, V) : A(0, V + 1);
|
|
3980
3981
|
case h:
|
|
3981
|
-
var oe = this.$locale().weekStart || 0,
|
|
3982
|
-
return
|
|
3982
|
+
var oe = this.$locale().weekStart || 0, me = (R < oe ? R + 7 : R) - oe;
|
|
3983
|
+
return A(E ? X - me : X + (6 - me), V);
|
|
3983
3984
|
case u:
|
|
3984
3985
|
case H:
|
|
3985
|
-
return
|
|
3986
|
+
return L(le + "Hours", 0);
|
|
3986
3987
|
case o:
|
|
3987
|
-
return
|
|
3988
|
+
return L(le + "Minutes", 1);
|
|
3988
3989
|
case l:
|
|
3989
|
-
return
|
|
3990
|
+
return L(le + "Seconds", 2);
|
|
3990
3991
|
case a:
|
|
3991
|
-
return
|
|
3992
|
+
return L(le + "Milliseconds", 3);
|
|
3992
3993
|
default:
|
|
3993
3994
|
return this.clone();
|
|
3994
3995
|
}
|
|
3995
|
-
}, g.endOf = function(
|
|
3996
|
-
return this.startOf(
|
|
3997
|
-
}, g.$set = function(
|
|
3998
|
-
var
|
|
3999
|
-
if (
|
|
4000
|
-
var
|
|
4001
|
-
|
|
3996
|
+
}, g.endOf = function(c) {
|
|
3997
|
+
return this.startOf(c, !1);
|
|
3998
|
+
}, g.$set = function(c, b) {
|
|
3999
|
+
var m, E = P.p(c), w = "set" + (this.$u ? "UTC" : ""), A = (m = {}, m[u] = w + "Date", m[H] = w + "Date", m[d] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[l] = w + "Minutes", m[a] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], L = E === u ? this.$D + (b - this.$W) : b;
|
|
4000
|
+
if (E === d || E === x) {
|
|
4001
|
+
var R = this.clone().set(H, 1);
|
|
4002
|
+
R.$d[A](L), R.init(), this.$d = R.set(H, Math.min(this.$D, R.daysInMonth())).$d;
|
|
4002
4003
|
} else
|
|
4003
|
-
|
|
4004
|
+
A && this.$d[A](L);
|
|
4004
4005
|
return this.init(), this;
|
|
4005
|
-
}, g.set = function(
|
|
4006
|
-
return this.clone().$set(
|
|
4007
|
-
}, g.get = function(
|
|
4008
|
-
return this[P.p(
|
|
4009
|
-
}, g.add = function(
|
|
4010
|
-
var
|
|
4011
|
-
|
|
4012
|
-
var w = P.p(b),
|
|
4013
|
-
var
|
|
4014
|
-
return P.w(
|
|
4006
|
+
}, g.set = function(c, b) {
|
|
4007
|
+
return this.clone().$set(c, b);
|
|
4008
|
+
}, g.get = function(c) {
|
|
4009
|
+
return this[P.p(c)]();
|
|
4010
|
+
}, g.add = function(c, b) {
|
|
4011
|
+
var m, E = this;
|
|
4012
|
+
c = Number(c);
|
|
4013
|
+
var w = P.p(b), A = function(V) {
|
|
4014
|
+
var X = M(E);
|
|
4015
|
+
return P.w(X.date(X.date() + Math.round(V * c)), E);
|
|
4015
4016
|
};
|
|
4016
|
-
if (w ===
|
|
4017
|
-
return this.set(
|
|
4018
|
-
if (w ===
|
|
4019
|
-
return this.set(
|
|
4017
|
+
if (w === d)
|
|
4018
|
+
return this.set(d, this.$M + c);
|
|
4019
|
+
if (w === x)
|
|
4020
|
+
return this.set(x, this.$y + c);
|
|
4020
4021
|
if (w === u)
|
|
4021
|
-
return
|
|
4022
|
+
return A(1);
|
|
4022
4023
|
if (w === h)
|
|
4023
|
-
return
|
|
4024
|
-
var
|
|
4025
|
-
return P.w(
|
|
4026
|
-
}, g.subtract = function(
|
|
4027
|
-
return this.add(-1 *
|
|
4028
|
-
}, g.format = function(
|
|
4029
|
-
var b = this,
|
|
4024
|
+
return A(7);
|
|
4025
|
+
var L = (m = {}, m[l] = i, m[o] = n, m[a] = r, m)[w] || 1, R = this.$d.getTime() + c * L;
|
|
4026
|
+
return P.w(R, this);
|
|
4027
|
+
}, g.subtract = function(c, b) {
|
|
4028
|
+
return this.add(-1 * c, b);
|
|
4029
|
+
}, g.format = function(c) {
|
|
4030
|
+
var b = this, m = this.$locale();
|
|
4030
4031
|
if (!this.isValid())
|
|
4031
|
-
return
|
|
4032
|
-
var
|
|
4033
|
-
return
|
|
4034
|
-
},
|
|
4035
|
-
return P.s(
|
|
4036
|
-
},
|
|
4037
|
-
var
|
|
4038
|
-
return pe ?
|
|
4032
|
+
return m.invalidDate || v;
|
|
4033
|
+
var E = c || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), A = this.$H, L = this.$m, R = this.$M, V = m.weekdays, X = m.months, le = m.meridiem, oe = function(G, K, pe, ge) {
|
|
4034
|
+
return G && (G[K] || G(b, E)) || pe[K].slice(0, ge);
|
|
4035
|
+
}, me = function(G) {
|
|
4036
|
+
return P.s(A % 12 || 12, G, "0");
|
|
4037
|
+
}, ae = le || function(G, K, pe) {
|
|
4038
|
+
var ge = G < 12 ? "AM" : "PM";
|
|
4039
|
+
return pe ? ge.toLowerCase() : ge;
|
|
4039
4040
|
};
|
|
4040
|
-
return
|
|
4041
|
-
return
|
|
4041
|
+
return E.replace(U, function(G, K) {
|
|
4042
|
+
return K || function(pe) {
|
|
4042
4043
|
switch (pe) {
|
|
4043
4044
|
case "YY":
|
|
4044
4045
|
return String(b.$y).slice(-2);
|
|
4045
4046
|
case "YYYY":
|
|
4046
4047
|
return P.s(b.$y, 4, "0");
|
|
4047
4048
|
case "M":
|
|
4048
|
-
return
|
|
4049
|
+
return R + 1;
|
|
4049
4050
|
case "MM":
|
|
4050
|
-
return P.s(
|
|
4051
|
+
return P.s(R + 1, 2, "0");
|
|
4051
4052
|
case "MMM":
|
|
4052
|
-
return oe(
|
|
4053
|
+
return oe(m.monthsShort, R, X, 3);
|
|
4053
4054
|
case "MMMM":
|
|
4054
|
-
return oe(
|
|
4055
|
+
return oe(X, R);
|
|
4055
4056
|
case "D":
|
|
4056
4057
|
return b.$D;
|
|
4057
4058
|
case "DD":
|
|
@@ -4059,27 +4060,27 @@ var Br = { exports: {} };
|
|
|
4059
4060
|
case "d":
|
|
4060
4061
|
return String(b.$W);
|
|
4061
4062
|
case "dd":
|
|
4062
|
-
return oe(
|
|
4063
|
+
return oe(m.weekdaysMin, b.$W, V, 2);
|
|
4063
4064
|
case "ddd":
|
|
4064
|
-
return oe(
|
|
4065
|
+
return oe(m.weekdaysShort, b.$W, V, 3);
|
|
4065
4066
|
case "dddd":
|
|
4066
|
-
return
|
|
4067
|
+
return V[b.$W];
|
|
4067
4068
|
case "H":
|
|
4068
|
-
return String(
|
|
4069
|
+
return String(A);
|
|
4069
4070
|
case "HH":
|
|
4070
|
-
return P.s(
|
|
4071
|
+
return P.s(A, 2, "0");
|
|
4071
4072
|
case "h":
|
|
4072
|
-
return
|
|
4073
|
+
return me(1);
|
|
4073
4074
|
case "hh":
|
|
4074
|
-
return
|
|
4075
|
+
return me(2);
|
|
4075
4076
|
case "a":
|
|
4076
|
-
return
|
|
4077
|
+
return ae(A, L, !0);
|
|
4077
4078
|
case "A":
|
|
4078
|
-
return
|
|
4079
|
+
return ae(A, L, !1);
|
|
4079
4080
|
case "m":
|
|
4080
|
-
return String(
|
|
4081
|
+
return String(L);
|
|
4081
4082
|
case "mm":
|
|
4082
|
-
return P.s(
|
|
4083
|
+
return P.s(L, 2, "0");
|
|
4083
4084
|
case "s":
|
|
4084
4085
|
return String(b.$s);
|
|
4085
4086
|
case "ss":
|
|
@@ -4090,52 +4091,52 @@ var Br = { exports: {} };
|
|
|
4090
4091
|
return w;
|
|
4091
4092
|
}
|
|
4092
4093
|
return null;
|
|
4093
|
-
}(
|
|
4094
|
+
}(G) || w.replace(":", "");
|
|
4094
4095
|
});
|
|
4095
4096
|
}, g.utcOffset = function() {
|
|
4096
4097
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4097
|
-
}, g.diff = function(
|
|
4098
|
-
var
|
|
4099
|
-
return P.m(w,
|
|
4098
|
+
}, g.diff = function(c, b, m) {
|
|
4099
|
+
var E, w = this, A = P.p(b), L = M(c), R = (L.utcOffset() - this.utcOffset()) * i, V = this - L, X = function() {
|
|
4100
|
+
return P.m(w, L);
|
|
4100
4101
|
};
|
|
4101
|
-
switch (
|
|
4102
|
-
case
|
|
4103
|
-
|
|
4102
|
+
switch (A) {
|
|
4103
|
+
case x:
|
|
4104
|
+
E = X() / 12;
|
|
4104
4105
|
break;
|
|
4105
|
-
case
|
|
4106
|
-
|
|
4106
|
+
case d:
|
|
4107
|
+
E = X();
|
|
4107
4108
|
break;
|
|
4108
|
-
case
|
|
4109
|
-
|
|
4109
|
+
case p:
|
|
4110
|
+
E = X() / 3;
|
|
4110
4111
|
break;
|
|
4111
4112
|
case h:
|
|
4112
|
-
|
|
4113
|
+
E = (V - R) / 6048e5;
|
|
4113
4114
|
break;
|
|
4114
4115
|
case u:
|
|
4115
|
-
|
|
4116
|
+
E = (V - R) / 864e5;
|
|
4116
4117
|
break;
|
|
4117
4118
|
case o:
|
|
4118
|
-
|
|
4119
|
+
E = V / n;
|
|
4119
4120
|
break;
|
|
4120
4121
|
case l:
|
|
4121
|
-
|
|
4122
|
+
E = V / i;
|
|
4122
4123
|
break;
|
|
4123
4124
|
case a:
|
|
4124
|
-
|
|
4125
|
+
E = V / r;
|
|
4125
4126
|
break;
|
|
4126
4127
|
default:
|
|
4127
|
-
|
|
4128
|
+
E = V;
|
|
4128
4129
|
}
|
|
4129
|
-
return
|
|
4130
|
+
return m ? E : P.a(E);
|
|
4130
4131
|
}, g.daysInMonth = function() {
|
|
4131
|
-
return this.endOf(
|
|
4132
|
+
return this.endOf(d).$D;
|
|
4132
4133
|
}, g.$locale = function() {
|
|
4133
|
-
return
|
|
4134
|
-
}, g.locale = function(
|
|
4135
|
-
if (!
|
|
4134
|
+
return k[this.$L];
|
|
4135
|
+
}, g.locale = function(c, b) {
|
|
4136
|
+
if (!c)
|
|
4136
4137
|
return this.$L;
|
|
4137
|
-
var
|
|
4138
|
-
return
|
|
4138
|
+
var m = this.clone(), E = D(c, b, !0);
|
|
4139
|
+
return E && (m.$L = E), m;
|
|
4139
4140
|
}, g.clone = function() {
|
|
4140
4141
|
return P.w(this.$d, this);
|
|
4141
4142
|
}, g.toDate = function() {
|
|
@@ -4146,26 +4147,26 @@ var Br = { exports: {} };
|
|
|
4146
4147
|
return this.$d.toISOString();
|
|
4147
4148
|
}, g.toString = function() {
|
|
4148
4149
|
return this.$d.toUTCString();
|
|
4149
|
-
},
|
|
4150
|
-
}(),
|
|
4151
|
-
return
|
|
4152
|
-
|
|
4153
|
-
return this.$g(g,
|
|
4150
|
+
}, _;
|
|
4151
|
+
}(), Ve = be.prototype;
|
|
4152
|
+
return M.prototype = Ve, [["$ms", s], ["$s", a], ["$m", l], ["$H", o], ["$W", u], ["$M", d], ["$y", x], ["$D", H]].forEach(function(_) {
|
|
4153
|
+
Ve[_[1]] = function(g) {
|
|
4154
|
+
return this.$g(g, _[0], _[1]);
|
|
4154
4155
|
};
|
|
4155
|
-
}),
|
|
4156
|
-
return
|
|
4157
|
-
},
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4156
|
+
}), M.extend = function(_, g) {
|
|
4157
|
+
return _.$i || (_(g, be, M), _.$i = !0), M;
|
|
4158
|
+
}, M.locale = D, M.isDayjs = se, M.unix = function(_) {
|
|
4159
|
+
return M(1e3 * _);
|
|
4160
|
+
}, M.en = k[N], M.Ls = k, M.p = {}, M;
|
|
4160
4161
|
});
|
|
4161
|
-
})(
|
|
4162
|
-
var
|
|
4163
|
-
const
|
|
4164
|
-
var
|
|
4162
|
+
})(Mr);
|
|
4163
|
+
var ss = Mr.exports;
|
|
4164
|
+
const Zt = /* @__PURE__ */ wt(ss);
|
|
4165
|
+
var Cr = { exports: {} };
|
|
4165
4166
|
(function(e, t) {
|
|
4166
4167
|
(function(r, i) {
|
|
4167
4168
|
e.exports = i();
|
|
4168
|
-
})(
|
|
4169
|
+
})(or, function() {
|
|
4169
4170
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4170
4171
|
return function(s, a, l) {
|
|
4171
4172
|
var o = a.prototype;
|
|
@@ -4190,34 +4191,34 @@ var Mr = { exports: {} };
|
|
|
4190
4191
|
} else
|
|
4191
4192
|
h.call(this);
|
|
4192
4193
|
};
|
|
4193
|
-
var
|
|
4194
|
+
var d = o.utcOffset;
|
|
4194
4195
|
o.utcOffset = function(v, $) {
|
|
4195
|
-
var
|
|
4196
|
-
if (
|
|
4197
|
-
return this.$u ? 0 :
|
|
4198
|
-
if (typeof v == "string" && (v = function(
|
|
4199
|
-
|
|
4200
|
-
var
|
|
4201
|
-
if (!
|
|
4196
|
+
var U = this.$utils().u;
|
|
4197
|
+
if (U(v))
|
|
4198
|
+
return this.$u ? 0 : U(this.$offset) ? d.call(this) : this.$offset;
|
|
4199
|
+
if (typeof v == "string" && (v = function(N) {
|
|
4200
|
+
N === void 0 && (N = "");
|
|
4201
|
+
var k = N.match(i);
|
|
4202
|
+
if (!k)
|
|
4202
4203
|
return null;
|
|
4203
|
-
var
|
|
4204
|
-
return
|
|
4204
|
+
var z = ("" + k[0]).match(n) || ["-", 0, 0], se = z[0], D = 60 * +z[1] + +z[2];
|
|
4205
|
+
return D === 0 ? 0 : se === "+" ? D : -D;
|
|
4205
4206
|
}(v), v === null))
|
|
4206
4207
|
return this;
|
|
4207
|
-
var
|
|
4208
|
+
var F = Math.abs(v) <= 16 ? 60 * v : v, B = this;
|
|
4208
4209
|
if ($)
|
|
4209
|
-
return
|
|
4210
|
+
return B.$offset = F, B.$u = v === 0, B;
|
|
4210
4211
|
if (v !== 0) {
|
|
4211
|
-
var
|
|
4212
|
-
(
|
|
4212
|
+
var q = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4213
|
+
(B = this.local().add(F + q, r)).$offset = F, B.$x.$localOffset = q;
|
|
4213
4214
|
} else
|
|
4214
|
-
|
|
4215
|
-
return
|
|
4215
|
+
B = this.utc();
|
|
4216
|
+
return B;
|
|
4216
4217
|
};
|
|
4217
|
-
var
|
|
4218
|
+
var p = o.format;
|
|
4218
4219
|
o.format = function(v) {
|
|
4219
4220
|
var $ = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4220
|
-
return
|
|
4221
|
+
return p.call(this, $);
|
|
4221
4222
|
}, o.valueOf = function() {
|
|
4222
4223
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4223
4224
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -4228,61 +4229,61 @@ var Mr = { exports: {} };
|
|
|
4228
4229
|
}, o.toString = function() {
|
|
4229
4230
|
return this.toDate().toUTCString();
|
|
4230
4231
|
};
|
|
4231
|
-
var
|
|
4232
|
+
var x = o.toDate;
|
|
4232
4233
|
o.toDate = function(v) {
|
|
4233
|
-
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4234
|
+
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4234
4235
|
};
|
|
4235
4236
|
var H = o.diff;
|
|
4236
|
-
o.diff = function(v, $,
|
|
4237
|
+
o.diff = function(v, $, U) {
|
|
4237
4238
|
if (v && this.$u === v.$u)
|
|
4238
|
-
return H.call(this, v, $,
|
|
4239
|
-
var
|
|
4240
|
-
return H.call(
|
|
4239
|
+
return H.call(this, v, $, U);
|
|
4240
|
+
var F = this.local(), B = l(v).local();
|
|
4241
|
+
return H.call(F, B, $, U);
|
|
4241
4242
|
};
|
|
4242
4243
|
};
|
|
4243
4244
|
});
|
|
4244
|
-
})(
|
|
4245
|
-
var
|
|
4246
|
-
const
|
|
4247
|
-
function
|
|
4248
|
-
|
|
4245
|
+
})(Cr);
|
|
4246
|
+
var os = Cr.exports;
|
|
4247
|
+
const as = /* @__PURE__ */ wt(os);
|
|
4248
|
+
function us(e) {
|
|
4249
|
+
zr(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)}");
|
|
4249
4250
|
}
|
|
4250
|
-
function
|
|
4251
|
+
function Jt(e, t, r) {
|
|
4251
4252
|
const i = e.slice();
|
|
4252
|
-
return i[
|
|
4253
|
+
return i[51] = t[r], i[53] = r, i;
|
|
4253
4254
|
}
|
|
4254
|
-
function
|
|
4255
|
-
let t, r, i, n, s =
|
|
4255
|
+
function Qt(e) {
|
|
4256
|
+
let t, r, i, n, s = Ct(
|
|
4256
4257
|
/*displayMessages*/
|
|
4257
4258
|
e[4]
|
|
4258
4259
|
), a = [];
|
|
4259
4260
|
for (let o = 0; o < s.length; o += 1)
|
|
4260
|
-
a[o] =
|
|
4261
|
+
a[o] = er(Jt(e, s, o));
|
|
4261
4262
|
let l = (
|
|
4262
4263
|
/*videoExists*/
|
|
4263
|
-
e[7] &&
|
|
4264
|
+
e[7] && tr(e)
|
|
4264
4265
|
);
|
|
4265
4266
|
return {
|
|
4266
4267
|
c() {
|
|
4267
|
-
t =
|
|
4268
|
+
t = Z("div");
|
|
4268
4269
|
for (let o = 0; o < a.length; o += 1)
|
|
4269
4270
|
a[o].c();
|
|
4270
|
-
r = we(), l && l.c(), i = we(), n =
|
|
4271
|
+
r = we(), l && l.c(), i = we(), n = Z("cashier-video-modal"), Q(t, "class", "CashierVerificationsWrapper"), fe(
|
|
4271
4272
|
n,
|
|
4272
4273
|
"clientstylingurl",
|
|
4273
4274
|
/*clientstylingurl*/
|
|
4274
4275
|
e[1]
|
|
4275
|
-
),
|
|
4276
|
+
), fe(
|
|
4276
4277
|
n,
|
|
4277
4278
|
"clientstyling",
|
|
4278
4279
|
/*clientstyling*/
|
|
4279
4280
|
e[0]
|
|
4280
|
-
),
|
|
4281
|
+
), fe(
|
|
4281
4282
|
n,
|
|
4282
4283
|
"ismobileview",
|
|
4283
4284
|
/*ismobileview*/
|
|
4284
4285
|
e[2]
|
|
4285
|
-
),
|
|
4286
|
+
), fe(
|
|
4286
4287
|
n,
|
|
4287
4288
|
"videosrc",
|
|
4288
4289
|
/*videoSrc*/
|
|
@@ -4290,48 +4291,48 @@ function Jt(e) {
|
|
|
4290
4291
|
);
|
|
4291
4292
|
},
|
|
4292
4293
|
m(o, u) {
|
|
4293
|
-
|
|
4294
|
+
ue(o, t, u);
|
|
4294
4295
|
for (let h = 0; h < a.length; h += 1)
|
|
4295
4296
|
a[h] && a[h].m(t, null);
|
|
4296
|
-
|
|
4297
|
+
ue(o, r, u), l && l.m(o, u), ue(o, i, u), ue(o, n, u);
|
|
4297
4298
|
},
|
|
4298
4299
|
p(o, u) {
|
|
4299
4300
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4300
4301
|
1072) {
|
|
4301
|
-
s =
|
|
4302
|
+
s = Ct(
|
|
4302
4303
|
/*displayMessages*/
|
|
4303
4304
|
o[4]
|
|
4304
4305
|
);
|
|
4305
4306
|
let h;
|
|
4306
4307
|
for (h = 0; h < s.length; h += 1) {
|
|
4307
|
-
const
|
|
4308
|
-
a[h] ? a[h].p(
|
|
4308
|
+
const d = Jt(o, s, h);
|
|
4309
|
+
a[h] ? a[h].p(d, u) : (a[h] = er(d), a[h].c(), a[h].m(t, null));
|
|
4309
4310
|
}
|
|
4310
4311
|
for (; h < a.length; h += 1)
|
|
4311
4312
|
a[h].d(1);
|
|
4312
4313
|
a.length = s.length;
|
|
4313
4314
|
}
|
|
4314
4315
|
/*videoExists*/
|
|
4315
|
-
o[7] ? l ? l.p(o, u) : (l =
|
|
4316
|
-
2 &&
|
|
4316
|
+
o[7] ? l ? l.p(o, u) : (l = tr(o), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4317
|
+
2 && fe(
|
|
4317
4318
|
n,
|
|
4318
4319
|
"clientstylingurl",
|
|
4319
4320
|
/*clientstylingurl*/
|
|
4320
4321
|
o[1]
|
|
4321
4322
|
), u[0] & /*clientstyling*/
|
|
4322
|
-
1 &&
|
|
4323
|
+
1 && fe(
|
|
4323
4324
|
n,
|
|
4324
4325
|
"clientstyling",
|
|
4325
4326
|
/*clientstyling*/
|
|
4326
4327
|
o[0]
|
|
4327
4328
|
), u[0] & /*ismobileview*/
|
|
4328
|
-
4 &&
|
|
4329
|
+
4 && fe(
|
|
4329
4330
|
n,
|
|
4330
4331
|
"ismobileview",
|
|
4331
4332
|
/*ismobileview*/
|
|
4332
4333
|
o[2]
|
|
4333
4334
|
), u[0] & /*videoSrc*/
|
|
4334
|
-
256 &&
|
|
4335
|
+
256 && fe(
|
|
4335
4336
|
n,
|
|
4336
4337
|
"videosrc",
|
|
4337
4338
|
/*videoSrc*/
|
|
@@ -4339,74 +4340,74 @@ function Jt(e) {
|
|
|
4339
4340
|
);
|
|
4340
4341
|
},
|
|
4341
4342
|
d(o) {
|
|
4342
|
-
o && (
|
|
4343
|
+
o && (ne(t), ne(r), ne(i), ne(n)), qr(a, o), l && l.d(o);
|
|
4343
4344
|
}
|
|
4344
4345
|
};
|
|
4345
4346
|
}
|
|
4346
|
-
function
|
|
4347
|
+
function Kt(e) {
|
|
4347
4348
|
let t, r, i;
|
|
4348
4349
|
function n(...s) {
|
|
4349
4350
|
return (
|
|
4350
4351
|
/*click_handler*/
|
|
4351
4352
|
e[18](
|
|
4352
4353
|
/*index*/
|
|
4353
|
-
e[
|
|
4354
|
+
e[53],
|
|
4354
4355
|
...s
|
|
4355
4356
|
)
|
|
4356
4357
|
);
|
|
4357
4358
|
}
|
|
4358
4359
|
return {
|
|
4359
4360
|
c() {
|
|
4360
|
-
t =
|
|
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>', Q(t, "class", "CashierVerificationChevron");
|
|
4361
4362
|
},
|
|
4362
4363
|
m(s, a) {
|
|
4363
|
-
|
|
4364
|
+
ue(s, t, a), r || (i = Et(t, "click", n), r = !0);
|
|
4364
4365
|
},
|
|
4365
4366
|
p(s, a) {
|
|
4366
4367
|
e = s;
|
|
4367
4368
|
},
|
|
4368
4369
|
d(s) {
|
|
4369
|
-
s &&
|
|
4370
|
+
s && ne(t), r = !1, i();
|
|
4370
4371
|
}
|
|
4371
4372
|
};
|
|
4372
4373
|
}
|
|
4373
|
-
function
|
|
4374
|
+
function er(e) {
|
|
4374
4375
|
let t, r, i, n, s = (
|
|
4375
4376
|
/*message*/
|
|
4376
|
-
e[
|
|
4377
|
+
e[51] + ""
|
|
4377
4378
|
), a, l, o, u, h = (
|
|
4378
4379
|
/*displayMessages*/
|
|
4379
4380
|
e[4].length > 1 && /*index*/
|
|
4380
|
-
e[
|
|
4381
|
+
e[53] === 0 && Kt(e)
|
|
4381
4382
|
);
|
|
4382
|
-
function
|
|
4383
|
+
function d(...p) {
|
|
4383
4384
|
return (
|
|
4384
4385
|
/*click_handler_1*/
|
|
4385
4386
|
e[19](
|
|
4386
4387
|
/*index*/
|
|
4387
|
-
e[
|
|
4388
|
-
...
|
|
4388
|
+
e[53],
|
|
4389
|
+
...p
|
|
4389
4390
|
)
|
|
4390
4391
|
);
|
|
4391
4392
|
}
|
|
4392
4393
|
return {
|
|
4393
4394
|
c() {
|
|
4394
|
-
t =
|
|
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 = we(), n = Z("p"), a = we(), h && h.c(), l = we(), Q(r, "class", "IconVerification"), Q(n, "class", "text"), Q(t, "class", "CashierVerificationMessage"), Te(
|
|
4395
4396
|
t,
|
|
4396
4397
|
"ShowAll",
|
|
4397
4398
|
/*allVerificationsVisible*/
|
|
4398
4399
|
e[5]
|
|
4399
4400
|
);
|
|
4400
4401
|
},
|
|
4401
|
-
m(
|
|
4402
|
-
|
|
4402
|
+
m(p, x) {
|
|
4403
|
+
ue(p, t, x), re(t, r), re(t, i), re(t, n), n.innerHTML = s, re(t, a), h && h.m(t, null), re(t, l), o || (u = Et(t, "click", d), o = !0);
|
|
4403
4404
|
},
|
|
4404
|
-
p(
|
|
4405
|
-
e =
|
|
4405
|
+
p(p, x) {
|
|
4406
|
+
e = p, x[0] & /*displayMessages*/
|
|
4406
4407
|
16 && s !== (s = /*message*/
|
|
4407
|
-
e[
|
|
4408
|
+
e[51] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4408
4409
|
e[4].length > 1 && /*index*/
|
|
4409
|
-
e[
|
|
4410
|
+
e[53] === 0 ? h ? h.p(e, x) : (h = Kt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4410
4411
|
32 && Te(
|
|
4411
4412
|
t,
|
|
4412
4413
|
"ShowAll",
|
|
@@ -4414,27 +4415,27 @@ function Kt(e) {
|
|
|
4414
4415
|
e[5]
|
|
4415
4416
|
);
|
|
4416
4417
|
},
|
|
4417
|
-
d(
|
|
4418
|
-
|
|
4418
|
+
d(p) {
|
|
4419
|
+
p && ne(t), h && h.d(), o = !1, u();
|
|
4419
4420
|
}
|
|
4420
4421
|
};
|
|
4421
4422
|
}
|
|
4422
|
-
function
|
|
4423
|
+
function tr(e) {
|
|
4423
4424
|
let t, r, i, n, s = (
|
|
4424
4425
|
/*$_*/
|
|
4425
4426
|
e[9]("verification.video.how-to") + ""
|
|
4426
4427
|
), a, l, o;
|
|
4427
4428
|
return {
|
|
4428
4429
|
c() {
|
|
4429
|
-
t =
|
|
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 = we(), n = Z("div"), a = _t(s), Q(r, "class", "IconVideo"), Q(n, "class", "CashierVerificationVideoLink"), Te(
|
|
4430
4431
|
n,
|
|
4431
4432
|
"CashierVerificationVideoLinkDesktop",
|
|
4432
4433
|
/*desktopView*/
|
|
4433
4434
|
e[6]
|
|
4434
|
-
),
|
|
4435
|
+
), Q(t, "class", "CashierVerificationVideo");
|
|
4435
4436
|
},
|
|
4436
4437
|
m(u, h) {
|
|
4437
|
-
|
|
4438
|
+
ue(u, t, h), re(t, r), re(t, i), re(t, n), re(n, a), l || (o = Et(
|
|
4438
4439
|
n,
|
|
4439
4440
|
"click",
|
|
4440
4441
|
/*click_handler_2*/
|
|
@@ -4444,7 +4445,7 @@ function er(e) {
|
|
|
4444
4445
|
p(u, h) {
|
|
4445
4446
|
h[0] & /*$_*/
|
|
4446
4447
|
512 && s !== (s = /*$_*/
|
|
4447
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4448
|
+
u[9]("verification.video.how-to") + "") && Zr(a, s), h[0] & /*desktopView*/
|
|
4448
4449
|
64 && Te(
|
|
4449
4450
|
n,
|
|
4450
4451
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -4453,18 +4454,18 @@ function er(e) {
|
|
|
4453
4454
|
);
|
|
4454
4455
|
},
|
|
4455
4456
|
d(u) {
|
|
4456
|
-
u &&
|
|
4457
|
+
u && ne(t), l = !1, o();
|
|
4457
4458
|
}
|
|
4458
4459
|
};
|
|
4459
4460
|
}
|
|
4460
|
-
function
|
|
4461
|
+
function ls(e) {
|
|
4461
4462
|
let t, r = (
|
|
4462
4463
|
/*displayMessages*/
|
|
4463
|
-
e[4] &&
|
|
4464
|
+
e[4] && Qt(e)
|
|
4464
4465
|
);
|
|
4465
4466
|
return {
|
|
4466
4467
|
c() {
|
|
4467
|
-
t =
|
|
4468
|
+
t = Z("div"), r && r.c(), Q(t, "class", "CashierVerifications"), Te(
|
|
4468
4469
|
t,
|
|
4469
4470
|
"CashierVerificationsDesktop",
|
|
4470
4471
|
/*desktopView*/
|
|
@@ -4472,11 +4473,11 @@ function os(e) {
|
|
|
4472
4473
|
);
|
|
4473
4474
|
},
|
|
4474
4475
|
m(i, n) {
|
|
4475
|
-
|
|
4476
|
+
ue(i, t, n), r && r.m(t, null), e[21](t);
|
|
4476
4477
|
},
|
|
4477
4478
|
p(i, n) {
|
|
4478
4479
|
/*displayMessages*/
|
|
4479
|
-
i[4] ? r ? r.p(i, n) : (r =
|
|
4480
|
+
i[4] ? r ? r.p(i, n) : (r = Qt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4480
4481
|
64 && Te(
|
|
4481
4482
|
t,
|
|
4482
4483
|
"CashierVerificationsDesktop",
|
|
@@ -4484,76 +4485,76 @@ function os(e) {
|
|
|
4484
4485
|
i[6]
|
|
4485
4486
|
);
|
|
4486
4487
|
},
|
|
4487
|
-
i:
|
|
4488
|
-
o:
|
|
4488
|
+
i: J,
|
|
4489
|
+
o: J,
|
|
4489
4490
|
d(i) {
|
|
4490
|
-
i &&
|
|
4491
|
+
i && ne(t), r && r.d(), e[21](null);
|
|
4491
4492
|
}
|
|
4492
4493
|
};
|
|
4493
4494
|
}
|
|
4494
|
-
const
|
|
4495
|
-
function
|
|
4496
|
-
let i;
|
|
4497
|
-
|
|
4498
|
-
let { endpoint:
|
|
4499
|
-
var
|
|
4495
|
+
const hs = "verification_explanation_video_widgets.MP4";
|
|
4496
|
+
function fs(e, t, r) {
|
|
4497
|
+
let i, n;
|
|
4498
|
+
Bt(e, rs, (f) => r(9, i = f)), Bt(e, ns, (f) => r(27, n = f)), Zt.extend(as);
|
|
4499
|
+
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: d = "" } = t, { ismobileview: p = "" } = t, x, H = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), $, U, F, B = !0, q = !0, N = !1, k = "";
|
|
4500
|
+
var z;
|
|
4500
4501
|
(function(f) {
|
|
4501
4502
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4502
|
-
})(
|
|
4503
|
-
var
|
|
4503
|
+
})(z || (z = {}));
|
|
4504
|
+
var se;
|
|
4504
4505
|
(function(f) {
|
|
4505
4506
|
f.Requested = "Requested";
|
|
4506
|
-
})(
|
|
4507
|
-
var
|
|
4507
|
+
})(se || (se = {}));
|
|
4508
|
+
var D;
|
|
4508
4509
|
(function(f) {
|
|
4509
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";
|
|
4510
|
-
})(
|
|
4511
|
-
var
|
|
4511
|
+
})(D || (D = {}));
|
|
4512
|
+
var M;
|
|
4512
4513
|
(function(f) {
|
|
4513
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";
|
|
4514
|
-
})(
|
|
4515
|
-
const
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
],
|
|
4520
|
-
let f =
|
|
4515
|
+
})(M || (M = {}));
|
|
4516
|
+
const P = [
|
|
4517
|
+
D.InProgress,
|
|
4518
|
+
D.Referred,
|
|
4519
|
+
D.AwaitingForResponse
|
|
4520
|
+
], be = () => {
|
|
4521
|
+
let f = l;
|
|
4521
4522
|
if (f)
|
|
4522
4523
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4523
4524
|
Object.keys(y).forEach((S) => {
|
|
4524
|
-
|
|
4525
|
+
qt(S, y[S]);
|
|
4525
4526
|
});
|
|
4526
4527
|
}).catch((y) => {
|
|
4527
4528
|
console.log(y);
|
|
4528
4529
|
});
|
|
4529
4530
|
};
|
|
4530
|
-
Object.keys(
|
|
4531
|
-
|
|
4531
|
+
Object.keys(Yt).forEach((f) => {
|
|
4532
|
+
qt(f, Yt[f]);
|
|
4532
4533
|
});
|
|
4533
|
-
const
|
|
4534
|
-
|
|
4535
|
-
},
|
|
4534
|
+
const Ve = () => {
|
|
4535
|
+
is(a);
|
|
4536
|
+
}, _ = () => {
|
|
4536
4537
|
let f = document.createElement("style");
|
|
4537
|
-
f.innerHTML =
|
|
4538
|
-
},
|
|
4539
|
-
let f = new URL(
|
|
4538
|
+
f.innerHTML = o, x.appendChild(f);
|
|
4539
|
+
}, g = () => {
|
|
4540
|
+
let f = new URL(u), y = document.createElement("style");
|
|
4540
4541
|
fetch(f.href).then((S) => S.text()).then((S) => {
|
|
4541
4542
|
y.innerHTML = S, setTimeout(
|
|
4542
4543
|
() => {
|
|
4543
|
-
|
|
4544
|
+
x.appendChild(y);
|
|
4544
4545
|
},
|
|
4545
4546
|
1
|
|
4546
4547
|
);
|
|
4547
4548
|
});
|
|
4548
|
-
},
|
|
4549
|
-
const { merchantId: f, customerId: y } =
|
|
4549
|
+
}, c = () => {
|
|
4550
|
+
const { merchantId: f, customerId: y } = m();
|
|
4550
4551
|
if (!f)
|
|
4551
4552
|
return;
|
|
4552
|
-
const S = new URL(`${
|
|
4553
|
-
|
|
4554
|
-
const
|
|
4553
|
+
const S = new URL(`${s}/v1/player/verification/GetKYCStatus`), j = new Headers();
|
|
4554
|
+
j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-Client-Request-Timestamp", Zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4555
|
+
const he = {
|
|
4555
4556
|
method: "POST",
|
|
4556
|
-
headers:
|
|
4557
|
+
headers: j,
|
|
4557
4558
|
body: JSON.stringify({
|
|
4558
4559
|
MerchantId: f,
|
|
4559
4560
|
CustomerId: y,
|
|
@@ -4561,167 +4562,164 @@ function hs(e, t, r) {
|
|
|
4561
4562
|
AllParameters: !1
|
|
4562
4563
|
})
|
|
4563
4564
|
};
|
|
4564
|
-
fetch(S,
|
|
4565
|
-
r(17,
|
|
4566
|
-
|
|
4567
|
-
}), r(4,
|
|
4565
|
+
fetch(S, he).then((ye) => ye.json()).then((ye) => {
|
|
4566
|
+
r(17, U = ye.StaticCdnUrl + "/cashier/operator-assets/" + f), $ = E(ye.Verifications), $.VerificationStatuses.forEach((ee) => {
|
|
4567
|
+
ee.VerificationUrlType !== "Widget" && H.add(ee.Vendor);
|
|
4568
|
+
}), r(4, F = X());
|
|
4568
4569
|
});
|
|
4569
|
-
},
|
|
4570
|
-
|
|
4570
|
+
}, b = () => {
|
|
4571
|
+
n && c();
|
|
4572
|
+
}, m = () => {
|
|
4573
|
+
let f = (h || n).split(".")[1];
|
|
4571
4574
|
if (f) {
|
|
4572
4575
|
let y = JSON.parse(atob(f));
|
|
4573
4576
|
return {
|
|
4574
4577
|
merchantId: y == null ? void 0 : y.mid,
|
|
4575
|
-
customerId: `${y == null ? void 0 : y.mid}~${
|
|
4578
|
+
customerId: `${y == null ? void 0 : y.mid}~${d}`
|
|
4576
4579
|
};
|
|
4577
4580
|
}
|
|
4578
4581
|
return { merchantId: null, customerId: null };
|
|
4579
|
-
},
|
|
4582
|
+
}, E = (f) => {
|
|
4580
4583
|
var S;
|
|
4581
4584
|
if (!f || !f.length)
|
|
4582
4585
|
return {
|
|
4583
|
-
VerificationSummaryStatus:
|
|
4586
|
+
VerificationSummaryStatus: D.Unverified,
|
|
4584
4587
|
VerificationStatuses: []
|
|
4585
4588
|
};
|
|
4586
|
-
const y =
|
|
4589
|
+
const y = L(f);
|
|
4587
4590
|
if (y && y.length) {
|
|
4588
|
-
const
|
|
4591
|
+
const j = w(y);
|
|
4589
4592
|
return {
|
|
4590
|
-
VerificationSummaryStatus:
|
|
4591
|
-
VerificationUrl: (S =
|
|
4592
|
-
VerificationStatuses:
|
|
4593
|
+
VerificationSummaryStatus: j.Status,
|
|
4594
|
+
VerificationUrl: (S = j.Flags) == null ? void 0 : S.DeferredUrlKey,
|
|
4595
|
+
VerificationStatuses: A(y, j.Status)
|
|
4593
4596
|
};
|
|
4594
4597
|
} else
|
|
4595
4598
|
return {
|
|
4596
|
-
VerificationSummaryStatus: f.some((
|
|
4597
|
-
VerificationStatuses:
|
|
4599
|
+
VerificationSummaryStatus: f.some((he) => he.Status === D.Failed) ? D.Failed : D.Verified,
|
|
4600
|
+
VerificationStatuses: A(f, [D.Failed])
|
|
4598
4601
|
};
|
|
4599
|
-
},
|
|
4602
|
+
}, w = (f) => f.reduce(
|
|
4600
4603
|
(y, S) => y ? new Date(y) < new Date(S) ? S : y : S,
|
|
4601
4604
|
0
|
|
4602
|
-
),
|
|
4603
|
-
var
|
|
4605
|
+
), A = (f, y) => f.filter((S) => y.includes(S.Status)).map((S) => {
|
|
4606
|
+
var j, he;
|
|
4604
4607
|
return {
|
|
4605
4608
|
Type: S.Type,
|
|
4606
4609
|
Vendor: S.VendorName,
|
|
4607
4610
|
VerificationDocuments: S.Documents ? [...Object.values(S.Documents)] : [],
|
|
4608
|
-
VerificationUrlType: (
|
|
4609
|
-
VerificationUrl: (
|
|
4611
|
+
VerificationUrlType: (j = S.Flags) == null ? void 0 : j.DeferredUrlTypeKey,
|
|
4612
|
+
VerificationUrl: (he = S.Flags) == null ? void 0 : he.DeferredUrlKey
|
|
4610
4613
|
};
|
|
4611
|
-
}),
|
|
4612
|
-
const y = f.Documents && f.VendorName ===
|
|
4614
|
+
}), L = (f) => f.filter((y) => P.includes(y.Status) ? y.Flags && y.Flags.DeferredUrlKey || R(y) || V(y) : !1), R = (f) => {
|
|
4615
|
+
const y = f.Documents && f.VendorName === z.Manual, S = Object.values(f.Documents).some((j) => j.Status === se.Requested);
|
|
4613
4616
|
return y && S;
|
|
4614
|
-
},
|
|
4615
|
-
switch (
|
|
4616
|
-
case
|
|
4617
|
+
}, V = (f) => f.VendorName === z.ShuftiPro && f.Status === D.Referred, X = () => {
|
|
4618
|
+
switch ($.VerificationSummaryStatus) {
|
|
4619
|
+
case D.InProgress:
|
|
4617
4620
|
const f = [];
|
|
4618
|
-
return
|
|
4619
|
-
f.push(
|
|
4621
|
+
return H.forEach((y) => {
|
|
4622
|
+
f.push(le(y));
|
|
4620
4623
|
}), f;
|
|
4621
|
-
case
|
|
4624
|
+
case D.Referred:
|
|
4622
4625
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4623
|
-
case
|
|
4626
|
+
case D.Failed:
|
|
4624
4627
|
return [i("verification.message.failed")];
|
|
4625
4628
|
}
|
|
4626
|
-
},
|
|
4627
|
-
const y =
|
|
4628
|
-
if (f ===
|
|
4629
|
-
return
|
|
4629
|
+
}, le = (f) => {
|
|
4630
|
+
const y = $.VerificationStatuses.filter((S) => S.Vendor === f);
|
|
4631
|
+
if (f === z.ShuftiPro)
|
|
4632
|
+
return oe(y);
|
|
4630
4633
|
{
|
|
4631
|
-
const S = i("verification.idenfy.link-name"),
|
|
4634
|
+
const S = i("verification.idenfy.link-name"), j = {
|
|
4632
4635
|
link: `<a href="${y[0].VerificationUrl}" target="_blank">${S}</a>`
|
|
4633
4636
|
};
|
|
4634
|
-
return i("verification.idenfy.in-progress", { values:
|
|
4637
|
+
return i("verification.idenfy.in-progress", { values: j });
|
|
4635
4638
|
}
|
|
4636
|
-
},
|
|
4637
|
-
const y = [], S = {},
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4639
|
+
}, oe = (f) => {
|
|
4640
|
+
const y = [], S = {}, j = [
|
|
4641
|
+
M.Biometric,
|
|
4642
|
+
M.Documents,
|
|
4643
|
+
M.ProofOfAddress
|
|
4641
4644
|
];
|
|
4642
|
-
f.forEach((
|
|
4643
|
-
|
|
4645
|
+
f.forEach((ee) => {
|
|
4646
|
+
j.includes(ee.Type) && (y.push(ee.Type), S[ee.Type] = me(ee, ae(ee.Type)));
|
|
4644
4647
|
});
|
|
4645
|
-
let
|
|
4646
|
-
return
|
|
4647
|
-
},
|
|
4648
|
+
let he = y.every((ee) => v.has(ee)), ye = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4649
|
+
return he ? i("verification.shuftipro.validations-started") : i(ye, { values: S });
|
|
4650
|
+
}, me = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ae = (f) => i(`verification.shuftipro.link-name.${f}`), G = (f, y) => {
|
|
4648
4651
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4649
4652
|
if (f.target.closest(".verificationLink")) {
|
|
4650
4653
|
const S = f.target.className.split(" ")[1];
|
|
4651
|
-
|
|
4654
|
+
v.add(S), r(4, F = X());
|
|
4652
4655
|
}
|
|
4653
4656
|
return;
|
|
4654
4657
|
}
|
|
4655
|
-
y === 0 && r(5,
|
|
4656
|
-
},
|
|
4657
|
-
r(6,
|
|
4658
|
-
},
|
|
4659
|
-
r(8,
|
|
4658
|
+
y === 0 && r(5, B = !B);
|
|
4659
|
+
}, K = () => {
|
|
4660
|
+
r(6, q = p === "false");
|
|
4661
|
+
}, pe = () => {
|
|
4662
|
+
r(8, k = U + "/" + a + "/" + hs);
|
|
4660
4663
|
try {
|
|
4661
|
-
fetch(
|
|
4662
|
-
r(7,
|
|
4664
|
+
fetch(k, { method: "HEAD" }).then((f) => {
|
|
4665
|
+
r(7, N = f.ok);
|
|
4663
4666
|
});
|
|
4664
4667
|
} catch (f) {
|
|
4665
|
-
r(7,
|
|
4668
|
+
r(7, N = !1);
|
|
4666
4669
|
}
|
|
4667
|
-
},
|
|
4668
|
-
window.postMessage(
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
details: A ? us : ls
|
|
4672
|
-
},
|
|
4673
|
-
window.location.href
|
|
4674
|
-
);
|
|
4675
|
-
}, pe = (f, y) => ae(y, f), be = (f, y) => ae(y, f), Dr = () => Q();
|
|
4676
|
-
function Ir(f) {
|
|
4670
|
+
}, ge = () => {
|
|
4671
|
+
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4672
|
+
}, Lr = (f, y) => G(y, f), Ir = (f, y) => G(y, f), Nr = () => ge();
|
|
4673
|
+
function Rr(f) {
|
|
4677
4674
|
lt[f ? "unshift" : "push"](() => {
|
|
4678
|
-
|
|
4675
|
+
x = f, r(3, x);
|
|
4679
4676
|
});
|
|
4680
4677
|
}
|
|
4681
4678
|
return e.$$set = (f) => {
|
|
4682
|
-
"endpoint" in f && r(12,
|
|
4679
|
+
"endpoint" in f && r(12, s = f.endpoint), "lang" in f && r(13, a = f.lang), "translationurl" in f && r(14, l = f.translationurl), "clientstyling" in f && r(0, o = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(15, h = f.session), "customerid" in f && r(16, d = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview);
|
|
4683
4680
|
}, e.$$.update = () => {
|
|
4684
4681
|
e.$$.dirty[0] & /*lang*/
|
|
4685
|
-
8192 &&
|
|
4686
|
-
36864 &&
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4682
|
+
8192 && a && Ve(), e.$$.dirty[0] & /*endpoint, session*/
|
|
4683
|
+
36864 && s && h && c(), e.$$.dirty[0] & /*endpoint, session*/
|
|
4684
|
+
36864 && s && !h && b(), e.$$.dirty[0] & /*translationurl*/
|
|
4685
|
+
16384 && l && be(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4686
|
+
9 && o && x && _(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4687
|
+
10 && u && x && g(), e.$$.dirty[0] & /*ismobileview*/
|
|
4688
|
+
4 && p && K(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4689
|
+
131072 && U && pe();
|
|
4692
4690
|
}, [
|
|
4693
|
-
l,
|
|
4694
4691
|
o,
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4692
|
+
u,
|
|
4693
|
+
p,
|
|
4694
|
+
x,
|
|
4695
|
+
F,
|
|
4696
|
+
B,
|
|
4697
|
+
q,
|
|
4698
|
+
N,
|
|
4699
|
+
k,
|
|
4702
4700
|
i,
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
n,
|
|
4701
|
+
G,
|
|
4702
|
+
ge,
|
|
4706
4703
|
s,
|
|
4707
4704
|
a,
|
|
4708
|
-
|
|
4705
|
+
l,
|
|
4709
4706
|
h,
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4707
|
+
d,
|
|
4708
|
+
U,
|
|
4709
|
+
Lr,
|
|
4710
|
+
Ir,
|
|
4711
|
+
Nr,
|
|
4712
|
+
Rr
|
|
4715
4713
|
];
|
|
4716
4714
|
}
|
|
4717
|
-
class
|
|
4715
|
+
class Dr extends hi {
|
|
4718
4716
|
constructor(t) {
|
|
4719
|
-
super(),
|
|
4717
|
+
super(), ui(
|
|
4720
4718
|
this,
|
|
4721
4719
|
t,
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4720
|
+
fs,
|
|
4721
|
+
ls,
|
|
4722
|
+
ir,
|
|
4725
4723
|
{
|
|
4726
4724
|
endpoint: 12,
|
|
4727
4725
|
lang: 13,
|
|
@@ -4732,7 +4730,7 @@ class Cr extends ui {
|
|
|
4732
4730
|
customerid: 16,
|
|
4733
4731
|
ismobileview: 2
|
|
4734
4732
|
},
|
|
4735
|
-
|
|
4733
|
+
us,
|
|
4736
4734
|
[-1, -1]
|
|
4737
4735
|
);
|
|
4738
4736
|
}
|
|
@@ -4740,76 +4738,76 @@ class Cr extends ui {
|
|
|
4740
4738
|
return this.$$.ctx[12];
|
|
4741
4739
|
}
|
|
4742
4740
|
set endpoint(t) {
|
|
4743
|
-
this.$$set({ endpoint: t }),
|
|
4741
|
+
this.$$set({ endpoint: t }), te();
|
|
4744
4742
|
}
|
|
4745
4743
|
get lang() {
|
|
4746
4744
|
return this.$$.ctx[13];
|
|
4747
4745
|
}
|
|
4748
4746
|
set lang(t) {
|
|
4749
|
-
this.$$set({ lang: t }),
|
|
4747
|
+
this.$$set({ lang: t }), te();
|
|
4750
4748
|
}
|
|
4751
4749
|
get translationurl() {
|
|
4752
4750
|
return this.$$.ctx[14];
|
|
4753
4751
|
}
|
|
4754
4752
|
set translationurl(t) {
|
|
4755
|
-
this.$$set({ translationurl: t }),
|
|
4753
|
+
this.$$set({ translationurl: t }), te();
|
|
4756
4754
|
}
|
|
4757
4755
|
get clientstyling() {
|
|
4758
4756
|
return this.$$.ctx[0];
|
|
4759
4757
|
}
|
|
4760
4758
|
set clientstyling(t) {
|
|
4761
|
-
this.$$set({ clientstyling: t }),
|
|
4759
|
+
this.$$set({ clientstyling: t }), te();
|
|
4762
4760
|
}
|
|
4763
4761
|
get clientstylingurl() {
|
|
4764
4762
|
return this.$$.ctx[1];
|
|
4765
4763
|
}
|
|
4766
4764
|
set clientstylingurl(t) {
|
|
4767
|
-
this.$$set({ clientstylingurl: t }),
|
|
4765
|
+
this.$$set({ clientstylingurl: t }), te();
|
|
4768
4766
|
}
|
|
4769
4767
|
get session() {
|
|
4770
4768
|
return this.$$.ctx[15];
|
|
4771
4769
|
}
|
|
4772
4770
|
set session(t) {
|
|
4773
|
-
this.$$set({ session: t }),
|
|
4771
|
+
this.$$set({ session: t }), te();
|
|
4774
4772
|
}
|
|
4775
4773
|
get customerid() {
|
|
4776
4774
|
return this.$$.ctx[16];
|
|
4777
4775
|
}
|
|
4778
4776
|
set customerid(t) {
|
|
4779
|
-
this.$$set({ customerid: t }),
|
|
4777
|
+
this.$$set({ customerid: t }), te();
|
|
4780
4778
|
}
|
|
4781
4779
|
get ismobileview() {
|
|
4782
4780
|
return this.$$.ctx[2];
|
|
4783
4781
|
}
|
|
4784
4782
|
set ismobileview(t) {
|
|
4785
|
-
this.$$set({ ismobileview: t }),
|
|
4783
|
+
this.$$set({ ismobileview: t }), te();
|
|
4786
4784
|
}
|
|
4787
4785
|
}
|
|
4788
|
-
|
|
4789
|
-
const
|
|
4786
|
+
li(Dr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
4787
|
+
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4790
4788
|
__proto__: null,
|
|
4791
|
-
default:
|
|
4789
|
+
default: Dr
|
|
4792
4790
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4793
4791
|
export {
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4792
|
+
vs as C,
|
|
4793
|
+
hi as S,
|
|
4794
|
+
zr as a,
|
|
4795
|
+
ue as b,
|
|
4796
|
+
ds as c,
|
|
4797
|
+
ne as d,
|
|
4798
|
+
ps as e,
|
|
4799
|
+
te as f,
|
|
4800
|
+
Q as g,
|
|
4801
|
+
re as h,
|
|
4802
|
+
ui as i,
|
|
4803
|
+
Z as j,
|
|
4806
4804
|
we as k,
|
|
4807
4805
|
lt as l,
|
|
4808
4806
|
Et as m,
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4807
|
+
J as n,
|
|
4808
|
+
gs as o,
|
|
4809
|
+
ms as p,
|
|
4810
|
+
li as q,
|
|
4811
|
+
ir as s,
|
|
4814
4812
|
Te as t
|
|
4815
4813
|
};
|