@everymatrix/cashier-verifications 1.66.0 → 1.66.2
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-DvEHzCEW.js → CashierVerifications-B5XQ-CD-.js} +1012 -1014
- package/components/{CashierVerifications-Dq8KwBcd.js → CashierVerifications-CVFiDWck.js} +978 -980
- package/components/CashierVerifications-dziXGbFA.cjs +5 -0
- package/components/{CashierVideoModal-BCigQaKQ.js → CashierVideoModal-AN6f2AIj.js} +1 -1
- package/components/{CashierVideoModal-ID_LmSyp.js → CashierVideoModal-D54H_jPz.js} +1 -1
- package/components/{CashierVideoModal-N67x74OZ.cjs → CashierVideoModal-DIGAFrLv.cjs} +1 -1
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-DFB1n9yM.cjs +0 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Fr = Object.defineProperties;
|
|
2
|
+
var Vr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ht = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Gr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var et = (e, t, r) => t in e ? Ur(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
|
+
Gr.call(t, r) && et(e, r, t[r]);
|
|
8
8
|
if (Ht)
|
|
9
9
|
for (var r of Ht(t))
|
|
10
|
-
|
|
10
|
+
jr.call(t, r) && et(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Pt = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Pt = (e, t) => Fr(e, Vr(t));
|
|
13
|
+
var Z = (e, t, r) => (et(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var At = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var s = (o) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var At = (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 ee() {
|
|
31
31
|
}
|
|
32
32
|
function rr(e) {
|
|
33
33
|
return e();
|
|
@@ -35,27 +35,27 @@ function rr(e) {
|
|
|
35
35
|
function $t() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ne(e) {
|
|
39
39
|
e.forEach(rr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
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 Ve;
|
|
48
|
+
function ms(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ve || (Ve = document.createElement("a")), Ve.href = t, e === Ve.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function zr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
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 ee;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -66,14 +66,14 @@ function Bt(e, t, r) {
|
|
|
66
66
|
function re(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
69
|
+
function Xr(e, t, r) {
|
|
70
|
+
const i = Wr(e);
|
|
71
71
|
if (!i.getElementById(t)) {
|
|
72
|
-
const n =
|
|
73
|
-
n.id = t, n.textContent = r,
|
|
72
|
+
const n = J("style");
|
|
73
|
+
n.id = t, n.textContent = r, qr(i, n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Wr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,59 +83,59 @@ function Xr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function qr(e, t) {
|
|
87
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 le(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
96
|
function ne(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Yr(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 J(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ps(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function xt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Ee() {
|
|
113
|
+
return xt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function gs() {
|
|
116
|
+
return xt("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function _t(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function te(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function he(e, t, r) {
|
|
125
125
|
const i = t.toLowerCase();
|
|
126
|
-
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 : te(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Zr(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Jr(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Se(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Qr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,96 +144,96 @@ function Jr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let De;
|
|
148
|
+
function Ce(e) {
|
|
149
|
+
De = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Kr() {
|
|
152
|
+
if (!De)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return De;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function vs(e) {
|
|
157
|
+
Kr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
const Mt = [],
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
const _e = [], ut = [];
|
|
160
|
+
let we = [];
|
|
161
|
+
const Mt = [], ei = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let lt = !1;
|
|
163
|
+
function ti() {
|
|
164
|
+
lt || (lt = !0, ei.then(K));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function ht(e) {
|
|
167
|
+
we.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
169
|
+
const tt = /* @__PURE__ */ new Set();
|
|
170
|
+
let ye = 0;
|
|
171
|
+
function K() {
|
|
172
|
+
if (ye !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = De;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
177
|
+
for (; ye < _e.length; ) {
|
|
178
|
+
const t = _e[ye];
|
|
179
|
+
ye++, Ce(t), ri(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw _e.length = 0, ye = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (Ce(null), _e.length = 0, ye = 0; ut.length; )
|
|
185
|
+
ut.pop()();
|
|
186
|
+
for (let t = 0; t < we.length; t += 1) {
|
|
187
|
+
const r = we[t];
|
|
188
|
+
tt.has(r) || (tt.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
190
|
+
we.length = 0;
|
|
191
|
+
} while (_e.length);
|
|
192
192
|
for (; Mt.length; )
|
|
193
193
|
Mt.pop()();
|
|
194
|
-
|
|
194
|
+
lt = !1, tt.clear(), Ce(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ri(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Ne(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ht);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ii(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
we.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), we = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
e && e.i && (
|
|
207
|
+
const ni = /* @__PURE__ */ new Set();
|
|
208
|
+
function si(e, t) {
|
|
209
|
+
e && e.i && (ni.delete(e), e.i(t));
|
|
210
210
|
}
|
|
211
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 oi(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
|
-
i && i.m(t, r),
|
|
217
|
-
const s = e.$$.on_mount.map(rr).filter(
|
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
219
|
-
}), n.forEach(
|
|
216
|
+
i && i.m(t, r), ht(() => {
|
|
217
|
+
const s = e.$$.on_mount.map(rr).filter(yt);
|
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ne(s), e.$$.on_mount = [];
|
|
219
|
+
}), n.forEach(ht);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ai(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (
|
|
223
|
+
r.fragment !== null && (ii(r.after_update), Ne(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 && (
|
|
225
|
+
function ui(e, t) {
|
|
226
|
+
e.$$.dirty[0] === -1 && (_e.push(e), ti(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const o =
|
|
230
|
-
|
|
228
|
+
function li(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
229
|
+
const o = De;
|
|
230
|
+
Ce(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
234
234
|
// state
|
|
235
235
|
props: s,
|
|
236
|
-
update:
|
|
236
|
+
update: ee,
|
|
237
237
|
not_equal: n,
|
|
238
238
|
bound: $t(),
|
|
239
239
|
// lifecycle
|
|
@@ -251,41 +251,41 @@ function ui(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
251
251
|
};
|
|
252
252
|
a && a(u.root);
|
|
253
253
|
let h = !1;
|
|
254
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
255
|
-
const
|
|
256
|
-
return u.ctx && n(u.ctx[
|
|
257
|
-
}) : [], u.update(), h = !0,
|
|
254
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
255
|
+
const S = x.length ? x[0] : p;
|
|
256
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h && ui(e, c)), p;
|
|
257
|
+
}) : [], u.update(), h = !0, Ne(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 c = Zr(t.target);
|
|
260
|
+
u.fragment && u.fragment.l(c), c.forEach(ne);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
|
-
t.intro &&
|
|
263
|
+
t.intro && si(e.$$.fragment), oi(e, t.target, t.anchor), K();
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
Ce(o);
|
|
266
266
|
}
|
|
267
267
|
let sr;
|
|
268
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
|
+
Z(this, "$$ctor");
|
|
273
273
|
/** Slots */
|
|
274
|
-
|
|
274
|
+
Z(this, "$$s");
|
|
275
275
|
/** The Svelte component instance */
|
|
276
|
-
|
|
276
|
+
Z(this, "$$c");
|
|
277
277
|
/** Whether or not the custom element is connected */
|
|
278
|
-
|
|
278
|
+
Z(this, "$$cn", !1);
|
|
279
279
|
/** Component props data */
|
|
280
|
-
|
|
280
|
+
Z(this, "$$d", {});
|
|
281
281
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
282
|
-
|
|
282
|
+
Z(this, "$$r", !1);
|
|
283
283
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
284
|
-
|
|
284
|
+
Z(this, "$$p_d", {});
|
|
285
285
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
286
|
-
|
|
286
|
+
Z(this, "$$l", {});
|
|
287
287
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
288
|
-
|
|
288
|
+
Z(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) {
|
|
@@ -309,14 +309,14 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
309
309
|
let a;
|
|
310
310
|
return {
|
|
311
311
|
c: function() {
|
|
312
|
-
a =
|
|
312
|
+
a = J("slot"), s !== "default" && te(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
|
+
le(u, a, h);
|
|
320
320
|
},
|
|
321
321
|
d: function(u) {
|
|
322
322
|
u && ne(a);
|
|
@@ -326,12 +326,12 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
326
326
|
};
|
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
328
|
return;
|
|
329
|
-
const r = {}, i =
|
|
329
|
+
const r = {}, i = Qr(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] = je(a, s.value, this.$$p_d, "toProp"));
|
|
335
335
|
}
|
|
336
336
|
for (const s in this.$$p_d)
|
|
337
337
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
348
348
|
this.$$r = !0;
|
|
349
349
|
for (const s in this.$$p_d)
|
|
350
350
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
351
|
-
const a =
|
|
351
|
+
const a = je(
|
|
352
352
|
s,
|
|
353
353
|
this.$$d[s],
|
|
354
354
|
this.$$p_d,
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
372
372
|
// and setting attributes through setAttribute etc, this is helpful
|
|
373
373
|
attributeChangedCallback(t, r, i) {
|
|
374
374
|
var n;
|
|
375
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
375
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = je(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
376
376
|
}
|
|
377
377
|
disconnectedCallback() {
|
|
378
378
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
385
385
|
) || t;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
function
|
|
388
|
+
function je(e, t, r, i) {
|
|
389
389
|
var s;
|
|
390
390
|
const n = (s = r[e]) == null ? void 0 : s.type;
|
|
391
391
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -415,7 +415,7 @@ function ze(e, t, r, i) {
|
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function hi(e, t, r, i, n, s) {
|
|
419
419
|
let a = class extends sr {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(e, r, n), this.$$p_d = t;
|
|
@@ -433,7 +433,7 @@ function li(e, t, r, i, n, s) {
|
|
|
433
433
|
},
|
|
434
434
|
set(o) {
|
|
435
435
|
var u;
|
|
436
|
-
o =
|
|
436
|
+
o = je(l, o, t), this.$$d[l] = o, (u = this.$$c) == null || u.$set({ [l]: o });
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), i.forEach((l) => {
|
|
@@ -446,7 +446,7 @@ function li(e, t, r, i, n, s) {
|
|
|
446
446
|
}), e.element = /** @type {any} */
|
|
447
447
|
a, a;
|
|
448
448
|
}
|
|
449
|
-
class
|
|
449
|
+
class fi {
|
|
450
450
|
constructor() {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
@@ -455,7 +455,7 @@ class hi {
|
|
|
455
455
|
*
|
|
456
456
|
* @type {any}
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
Z(this, "$$");
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -463,11 +463,11 @@ class hi {
|
|
|
463
463
|
*
|
|
464
464
|
* @type {any}
|
|
465
465
|
*/
|
|
466
|
-
|
|
466
|
+
Z(this, "$$set");
|
|
467
467
|
}
|
|
468
468
|
/** @returns {void} */
|
|
469
469
|
$destroy() {
|
|
470
|
-
|
|
470
|
+
ai(this, 1), this.$destroy = ee;
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,8 +476,8 @@ class hi {
|
|
|
476
476
|
* @returns {() => void}
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
|
-
if (!
|
|
480
|
-
return
|
|
479
|
+
if (!yt(r))
|
|
480
|
+
return ee;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
483
483
|
const n = i.indexOf(r);
|
|
@@ -489,63 +489,63 @@ class hi {
|
|
|
489
489
|
* @returns {void}
|
|
490
490
|
*/
|
|
491
491
|
$set(t) {
|
|
492
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !zr(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(
|
|
497
|
-
const
|
|
498
|
-
function
|
|
495
|
+
const ci = "4";
|
|
496
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ci);
|
|
497
|
+
const xe = [];
|
|
498
|
+
function di(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: Re(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Re(e, t = ee) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
507
|
if (ir(e, l) && (e = l, r)) {
|
|
508
|
-
const o = !
|
|
508
|
+
const o = !xe.length;
|
|
509
509
|
for (const u of i)
|
|
510
|
-
u[1](),
|
|
510
|
+
u[1](), xe.push(u, e);
|
|
511
511
|
if (o) {
|
|
512
|
-
for (let u = 0; u <
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
for (let u = 0; u < xe.length; u += 2)
|
|
513
|
+
xe[u][0](xe[u + 1]);
|
|
514
|
+
xe.length = 0;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function s(l) {
|
|
519
519
|
n(l(e));
|
|
520
520
|
}
|
|
521
|
-
function a(l, o =
|
|
521
|
+
function a(l, o = ee) {
|
|
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) || ee), 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 Ae(e, t, r) {
|
|
530
530
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
533
533
|
const s = t.length < 2;
|
|
534
|
-
return
|
|
534
|
+
return di(r, (a, l) => {
|
|
535
535
|
let o = !1;
|
|
536
536
|
const u = [];
|
|
537
|
-
let h = 0,
|
|
537
|
+
let h = 0, c = ee;
|
|
538
538
|
const p = () => {
|
|
539
539
|
if (h)
|
|
540
540
|
return;
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
s ? a(
|
|
541
|
+
c();
|
|
542
|
+
const S = t(i ? u[0] : u, a, l);
|
|
543
|
+
s ? a(S) : c = yt(S) ? S : ee;
|
|
544
544
|
}, x = n.map(
|
|
545
|
-
(
|
|
546
|
-
|
|
547
|
-
(
|
|
548
|
-
u[v] =
|
|
545
|
+
(S, v) => nr(
|
|
546
|
+
S,
|
|
547
|
+
(M) => {
|
|
548
|
+
u[v] = M, h &= ~(1 << v), o && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
551
|
h |= 1 << v;
|
|
@@ -553,52 +553,52 @@ function $e(e, t, r) {
|
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
555
|
return o = !0, p(), function() {
|
|
556
|
-
|
|
556
|
+
Ne(x), c(), o = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
var or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
|
-
function
|
|
561
|
+
function Et(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
565
|
-
return
|
|
564
|
+
var mi = function(t) {
|
|
565
|
+
return pi(t) && !gi(t);
|
|
566
566
|
};
|
|
567
|
-
function
|
|
567
|
+
function pi(e) {
|
|
568
568
|
return !!e && typeof e == "object";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function gi(e) {
|
|
571
571
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
573
|
-
}
|
|
574
|
-
var gi = typeof Symbol == "function" && Symbol.for, vi = gi ? Symbol.for("react.element") : 60103;
|
|
575
|
-
function bi(e) {
|
|
576
|
-
return e.$$typeof === vi;
|
|
572
|
+
return t === "[object RegExp]" || t === "[object Date]" || yi(e);
|
|
577
573
|
}
|
|
574
|
+
var vi = typeof Symbol == "function" && Symbol.for, bi = vi ? Symbol.for("react.element") : 60103;
|
|
578
575
|
function yi(e) {
|
|
576
|
+
return e.$$typeof === bi;
|
|
577
|
+
}
|
|
578
|
+
function xi(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
581
|
+
function Le(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Te(xi(e), e, t) : e;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function _i(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return Le(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ei(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
591
|
+
return Te;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
593
|
+
return typeof r == "function" ? r : Te;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function wi(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
600
|
function Dt(e) {
|
|
601
|
-
return Object.keys(e).concat(
|
|
601
|
+
return Object.keys(e).concat(wi(e));
|
|
602
602
|
}
|
|
603
603
|
function ar(e, t) {
|
|
604
604
|
try {
|
|
@@ -607,43 +607,43 @@ function ar(e, t) {
|
|
|
607
607
|
return !1;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Si(e, t) {
|
|
611
611
|
return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ti(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
615
|
return r.isMergeableObject(e) && Dt(e).forEach(function(n) {
|
|
616
|
-
i[n] =
|
|
616
|
+
i[n] = Le(e[n], r);
|
|
617
617
|
}), Dt(t).forEach(function(n) {
|
|
618
|
-
|
|
618
|
+
Si(e, n) || (ar(e, n) && r.isMergeableObject(t[n]) ? i[n] = Ei(n, r)(e[n], t[n], r) : i[n] = Le(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
621
|
+
function Te(e, t, r) {
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _i, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = Le;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Ti(e, t, r) : Le(t, r);
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
Te.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
628
628
|
throw new Error("first argument should be an array");
|
|
629
629
|
return t.reduce(function(i, n) {
|
|
630
|
-
return
|
|
630
|
+
return Te(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var
|
|
634
|
-
const
|
|
635
|
-
var
|
|
636
|
-
return
|
|
633
|
+
var Hi = Te, Oi = Hi;
|
|
634
|
+
const Pi = /* @__PURE__ */ Et(Oi);
|
|
635
|
+
var ft = function(e, t) {
|
|
636
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
637
637
|
r.__proto__ = i;
|
|
638
638
|
} || function(r, i) {
|
|
639
639
|
for (var n in i)
|
|
640
640
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
641
|
-
},
|
|
641
|
+
}, ft(e, t);
|
|
642
642
|
};
|
|
643
|
-
function
|
|
643
|
+
function Je(e, t) {
|
|
644
644
|
if (typeof t != "function" && t !== null)
|
|
645
645
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
646
|
+
ft(e, t);
|
|
647
647
|
function r() {
|
|
648
648
|
this.constructor = e;
|
|
649
649
|
}
|
|
@@ -659,7 +659,7 @@ var ie = function() {
|
|
|
659
659
|
return t;
|
|
660
660
|
}, ie.apply(this, arguments);
|
|
661
661
|
};
|
|
662
|
-
function
|
|
662
|
+
function Ai(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]);
|
|
@@ -668,24 +668,24 @@ function Pi(e, t) {
|
|
|
668
668
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
669
669
|
return r;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function rt(e, t, r) {
|
|
672
672
|
if (r || arguments.length === 2)
|
|
673
673
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
674
674
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
675
675
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
677
|
+
function it(e, t) {
|
|
678
|
+
var r = t && t.cache ? t.cache : Ii, i = t && t.serializer ? t.serializer : Di, n = t && t.strategy ? t.strategy : Mi;
|
|
679
679
|
return n(e, {
|
|
680
680
|
cache: r,
|
|
681
681
|
serializer: i
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function $i(e) {
|
|
685
685
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
var n =
|
|
687
|
+
function Bi(e, t, r, i) {
|
|
688
|
+
var n = $i(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
691
|
function ur(e, t, r) {
|
|
@@ -695,16 +695,16 @@ function ur(e, t, r) {
|
|
|
695
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 ?
|
|
698
|
+
function Mi(e, t) {
|
|
699
|
+
var r = e.length === 1 ? Bi : ur;
|
|
700
700
|
return lr(e, this, r, t.cache.create(), t.serializer);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Ci(e, t) {
|
|
703
703
|
return lr(e, this, ur, t.cache.create(), t.serializer);
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var Di = function() {
|
|
706
706
|
return JSON.stringify(arguments);
|
|
707
|
-
},
|
|
707
|
+
}, Li = (
|
|
708
708
|
/** @class */
|
|
709
709
|
function() {
|
|
710
710
|
function e() {
|
|
@@ -716,71 +716,71 @@ var Ci = function() {
|
|
|
716
716
|
this.cache[t] = r;
|
|
717
717
|
}, e;
|
|
718
718
|
}()
|
|
719
|
-
),
|
|
719
|
+
), Ii = {
|
|
720
720
|
create: function() {
|
|
721
|
-
return new
|
|
721
|
+
return new Li();
|
|
722
722
|
}
|
|
723
|
-
},
|
|
724
|
-
variadic:
|
|
725
|
-
},
|
|
726
|
-
return
|
|
723
|
+
}, nt = {
|
|
724
|
+
variadic: Ci
|
|
725
|
+
}, We = function() {
|
|
726
|
+
return We = 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
|
+
}, We.apply(this, arguments);
|
|
734
734
|
};
|
|
735
|
-
var
|
|
735
|
+
var H;
|
|
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
|
-
})(
|
|
739
|
-
var
|
|
738
|
+
})(H || (H = {}));
|
|
739
|
+
var D;
|
|
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
|
-
})(
|
|
743
|
-
var
|
|
742
|
+
})(D || (D = {}));
|
|
743
|
+
var He;
|
|
744
744
|
(function(e) {
|
|
745
745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
|
-
})(
|
|
746
|
+
})(He || (He = {}));
|
|
747
747
|
function Lt(e) {
|
|
748
|
-
return e.type ===
|
|
748
|
+
return e.type === D.literal;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return e.type ===
|
|
750
|
+
function Ni(e) {
|
|
751
|
+
return e.type === D.argument;
|
|
752
752
|
}
|
|
753
753
|
function hr(e) {
|
|
754
|
-
return e.type ===
|
|
754
|
+
return e.type === D.number;
|
|
755
755
|
}
|
|
756
756
|
function fr(e) {
|
|
757
|
-
return e.type ===
|
|
757
|
+
return e.type === D.date;
|
|
758
758
|
}
|
|
759
759
|
function cr(e) {
|
|
760
|
-
return e.type ===
|
|
760
|
+
return e.type === D.time;
|
|
761
761
|
}
|
|
762
762
|
function dr(e) {
|
|
763
|
-
return e.type ===
|
|
763
|
+
return e.type === D.select;
|
|
764
764
|
}
|
|
765
765
|
function mr(e) {
|
|
766
|
-
return e.type ===
|
|
766
|
+
return e.type === D.plural;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.type ===
|
|
768
|
+
function Ri(e) {
|
|
769
|
+
return e.type === D.pound;
|
|
770
770
|
}
|
|
771
771
|
function pr(e) {
|
|
772
|
-
return e.type ===
|
|
772
|
+
return e.type === D.tag;
|
|
773
773
|
}
|
|
774
774
|
function gr(e) {
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
775
|
+
return !!(e && typeof e == "object" && e.type === He.number);
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
777
|
+
function ct(e) {
|
|
778
|
+
return !!(e && typeof e == "object" && e.type === He.dateTime);
|
|
779
779
|
}
|
|
780
|
-
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
781
|
-
function
|
|
780
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ki = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
781
|
+
function Ui(e) {
|
|
782
782
|
var t = {};
|
|
783
|
-
return e.replace(
|
|
783
|
+
return e.replace(ki, function(r) {
|
|
784
784
|
var i = r.length;
|
|
785
785
|
switch (r[0]) {
|
|
786
786
|
case "G":
|
|
@@ -869,39 +869,39 @@ function ki(e) {
|
|
|
869
869
|
return "";
|
|
870
870
|
}), t;
|
|
871
871
|
}
|
|
872
|
-
var
|
|
873
|
-
return
|
|
872
|
+
var L = function() {
|
|
873
|
+
return L = 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
|
+
}, L.apply(this, arguments);
|
|
881
881
|
};
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
883
|
+
function Vi(e) {
|
|
884
884
|
if (e.length === 0)
|
|
885
885
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
886
|
+
for (var t = e.split(Fi).filter(function(p) {
|
|
887
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 c = h[u];
|
|
894
|
+
if (c.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 Gi(e) {
|
|
902
902
|
return e.replace(/^(.*?)-/, "");
|
|
903
903
|
}
|
|
904
|
-
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
904
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, ji = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
905
905
|
function Nt(e) {
|
|
906
906
|
var t = {};
|
|
907
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) {
|
|
@@ -948,7 +948,7 @@ function xr(e) {
|
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function zi(e) {
|
|
952
952
|
var t;
|
|
953
953
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
954
|
notation: "engineering"
|
|
@@ -966,7 +966,7 @@ function Rt(e) {
|
|
|
966
966
|
var t = {}, r = xr(e);
|
|
967
967
|
return r || t;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Xi(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 zi(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 = Gi(n.options[0]);
|
|
994
994
|
continue;
|
|
995
995
|
case "compact-short":
|
|
996
996
|
case "K":
|
|
@@ -1001,13 +1001,13 @@ function zi(e) {
|
|
|
1001
1001
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
1002
|
continue;
|
|
1003
1003
|
case "scientific":
|
|
1004
|
-
t =
|
|
1005
|
-
return
|
|
1004
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
1005
|
+
return L(L({}, o), Rt(u));
|
|
1006
1006
|
}, {}));
|
|
1007
1007
|
continue;
|
|
1008
1008
|
case "engineering":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1009
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
1010
|
+
return L(L({}, o), Rt(u));
|
|
1011
1011
|
}, {}));
|
|
1012
1012
|
continue;
|
|
1013
1013
|
case "notation-simple":
|
|
@@ -1052,11 +1052,11 @@ function zi(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(ji, function(o, u, h, c, p, x) {
|
|
1056
1056
|
if (u)
|
|
1057
1057
|
t.minimumIntegerDigits = h.length;
|
|
1058
1058
|
else {
|
|
1059
|
-
if (
|
|
1059
|
+
if (c && p)
|
|
1060
1060
|
throw new Error("We currently do not support maximum integer digits");
|
|
1061
1061
|
if (x)
|
|
1062
1062
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1072,25 +1072,25 @@ function zi(e) {
|
|
|
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, c, p, x) {
|
|
1076
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1077
1077
|
});
|
|
1078
1078
|
var s = n.options[0];
|
|
1079
|
-
s === "w" ? t =
|
|
1079
|
+
s === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = L(L({}, t), Nt(s)));
|
|
1080
1080
|
continue;
|
|
1081
1081
|
}
|
|
1082
1082
|
if (br.test(n.stem)) {
|
|
1083
|
-
t =
|
|
1083
|
+
t = L(L({}, t), Nt(n.stem));
|
|
1084
1084
|
continue;
|
|
1085
1085
|
}
|
|
1086
1086
|
var a = xr(n.stem);
|
|
1087
|
-
a && (t =
|
|
1088
|
-
var l =
|
|
1089
|
-
l && (t =
|
|
1087
|
+
a && (t = L(L({}, t), a));
|
|
1088
|
+
var l = zi(n.stem);
|
|
1089
|
+
l && (t = L(L({}, t), l));
|
|
1090
1090
|
}
|
|
1091
1091
|
return t;
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1093
|
+
var Ge = {
|
|
1094
1094
|
"001": [
|
|
1095
1095
|
"H",
|
|
1096
1096
|
"h"
|
|
@@ -2505,13 +2505,13 @@ var je = {
|
|
|
2505
2505
|
"h"
|
|
2506
2506
|
]
|
|
2507
2507
|
};
|
|
2508
|
-
function
|
|
2508
|
+
function Wi(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 = qi(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 Xi(e, t) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
return r;
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function qi(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 Wi(e) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
var r = e.language, i;
|
|
2542
2542
|
r !== "root" && (i = e.maximize().region);
|
|
2543
|
-
var n =
|
|
2543
|
+
var n = Ge[i || ""] || Ge[r || ""] || Ge["".concat(r, "-001")] || Ge["001"];
|
|
2544
2544
|
return n[0];
|
|
2545
2545
|
}
|
|
2546
|
-
var
|
|
2547
|
-
function
|
|
2546
|
+
var st, Yi = new RegExp("^".concat(vr.source, "*")), Zi = new RegExp("".concat(vr.source, "*$"));
|
|
2547
|
+
function P(e, t) {
|
|
2548
2548
|
return { start: e, end: t };
|
|
2549
2549
|
}
|
|
2550
|
-
var
|
|
2550
|
+
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qi = !!String.fromCodePoint, Ki = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
|
2551
2551
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2552
|
+
}, dt = !0;
|
|
2553
2553
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2554
|
+
var on = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
|
+
dt = ((st = on.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
|
|
2556
2556
|
} catch (e) {
|
|
2557
|
-
|
|
2557
|
+
dt = !1;
|
|
2558
2558
|
}
|
|
2559
|
-
var kt =
|
|
2559
|
+
var kt = Ji ? (
|
|
2560
2560
|
// Native
|
|
2561
2561
|
function(t, r, i) {
|
|
2562
2562
|
return t.startsWith(r, i);
|
|
@@ -2566,7 +2566,7 @@ var kt = Zi ? (
|
|
|
2566
2566
|
function(t, r, i) {
|
|
2567
2567
|
return t.slice(i, i + r.length) === r;
|
|
2568
2568
|
}
|
|
2569
|
-
),
|
|
2569
|
+
), mt = Qi ? String.fromCodePoint : (
|
|
2570
2570
|
// IE11
|
|
2571
2571
|
function() {
|
|
2572
2572
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2580,7 +2580,7 @@ var kt = Zi ? (
|
|
|
2580
2580
|
}
|
|
2581
2581
|
), Ut = (
|
|
2582
2582
|
// native
|
|
2583
|
-
|
|
2583
|
+
Ki ? 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 kt = Zi ? (
|
|
|
2590
2590
|
return r;
|
|
2591
2591
|
}
|
|
2592
2592
|
)
|
|
2593
|
-
), _r =
|
|
2593
|
+
), _r = en ? (
|
|
2594
2594
|
// Native
|
|
2595
2595
|
function(t, r) {
|
|
2596
2596
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2604,7 @@ var kt = Zi ? (
|
|
|
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
|
+
), an = tn ? (
|
|
2608
2608
|
// Native
|
|
2609
2609
|
function(t) {
|
|
2610
2610
|
return t.trimStart();
|
|
@@ -2612,9 +2612,9 @@ var kt = Zi ? (
|
|
|
2612
2612
|
) : (
|
|
2613
2613
|
// Ponyfill
|
|
2614
2614
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2615
|
+
return t.replace(Yi, "");
|
|
2616
2616
|
}
|
|
2617
|
-
),
|
|
2617
|
+
), un = rn ? (
|
|
2618
2618
|
// Native
|
|
2619
2619
|
function(t) {
|
|
2620
2620
|
return t.trimEnd();
|
|
@@ -2622,32 +2622,32 @@ var kt = Zi ? (
|
|
|
2622
2622
|
) : (
|
|
2623
2623
|
// Ponyfill
|
|
2624
2624
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2625
|
+
return t.replace(Zi, "");
|
|
2626
2626
|
}
|
|
2627
2627
|
);
|
|
2628
2628
|
function Er(e, t) {
|
|
2629
2629
|
return new RegExp(e, t);
|
|
2630
2630
|
}
|
|
2631
|
-
var
|
|
2632
|
-
if (
|
|
2631
|
+
var pt;
|
|
2632
|
+
if (dt) {
|
|
2633
2633
|
var Ft = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
|
-
|
|
2634
|
+
pt = function(t, r) {
|
|
2635
2635
|
var i;
|
|
2636
2636
|
Ft.lastIndex = r;
|
|
2637
2637
|
var n = Ft.exec(t);
|
|
2638
2638
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2639
2639
|
};
|
|
2640
2640
|
} else
|
|
2641
|
-
|
|
2641
|
+
pt = function(t, r) {
|
|
2642
2642
|
for (var i = []; ; ) {
|
|
2643
2643
|
var n = _r(t, r);
|
|
2644
|
-
if (n === void 0 || wr(n) ||
|
|
2644
|
+
if (n === void 0 || wr(n) || cn(n))
|
|
2645
2645
|
break;
|
|
2646
2646
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2647
2647
|
}
|
|
2648
|
-
return
|
|
2648
|
+
return mt.apply(void 0, i);
|
|
2649
2649
|
};
|
|
2650
|
-
var
|
|
2650
|
+
var ln = (
|
|
2651
2651
|
/** @class */
|
|
2652
2652
|
function() {
|
|
2653
2653
|
function e(t, r) {
|
|
@@ -2671,14 +2671,14 @@ var un = (
|
|
|
2671
2671
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2672
2672
|
var l = this.clonePosition();
|
|
2673
2673
|
this.bump(), n.push({
|
|
2674
|
-
type:
|
|
2675
|
-
location:
|
|
2674
|
+
type: D.pound,
|
|
2675
|
+
location: P(l, this.clonePosition())
|
|
2676
2676
|
});
|
|
2677
2677
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2678
|
if (i)
|
|
2679
2679
|
break;
|
|
2680
|
-
return this.error(
|
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2680
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2681
|
+
} else if (s === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
|
2682
2682
|
var a = this.parseTag(t, r);
|
|
2683
2683
|
if (a.err)
|
|
2684
2684
|
return a;
|
|
@@ -2699,9 +2699,9 @@ var un = (
|
|
|
2699
2699
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2700
2700
|
return {
|
|
2701
2701
|
val: {
|
|
2702
|
-
type:
|
|
2702
|
+
type: D.literal,
|
|
2703
2703
|
value: "<".concat(n, "/>"),
|
|
2704
|
-
location:
|
|
2704
|
+
location: P(i, this.clonePosition())
|
|
2705
2705
|
},
|
|
2706
2706
|
err: null
|
|
2707
2707
|
};
|
|
@@ -2711,25 +2711,25 @@ var un = (
|
|
|
2711
2711
|
return s;
|
|
2712
2712
|
var a = s.val, l = this.clonePosition();
|
|
2713
2713
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2715
|
-
return this.error(
|
|
2714
|
+
if (this.isEOF() || !gt(this.char()))
|
|
2715
|
+
return this.error(H.INVALID_TAG, P(l, this.clonePosition()));
|
|
2716
2716
|
var o = this.clonePosition(), u = this.parseTagName();
|
|
2717
|
-
return n !== u ? this.error(
|
|
2717
|
+
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG, P(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2718
|
val: {
|
|
2719
|
-
type:
|
|
2719
|
+
type: D.tag,
|
|
2720
2720
|
value: n,
|
|
2721
2721
|
children: a,
|
|
2722
|
-
location:
|
|
2722
|
+
location: P(i, this.clonePosition())
|
|
2723
2723
|
},
|
|
2724
2724
|
err: null
|
|
2725
|
-
} : this.error(
|
|
2725
|
+
} : this.error(H.INVALID_TAG, P(l, this.clonePosition())));
|
|
2726
2726
|
} else
|
|
2727
|
-
return this.error(
|
|
2727
|
+
return this.error(H.UNCLOSED_TAG, P(i, this.clonePosition()));
|
|
2728
2728
|
} else
|
|
2729
|
-
return this.error(
|
|
2729
|
+
return this.error(H.INVALID_TAG, P(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() && fn(this.char()); )
|
|
2733
2733
|
this.bump();
|
|
2734
2734
|
return this.message.slice(t, this.offset());
|
|
2735
2735
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2751,14 +2751,14 @@ var un = (
|
|
|
2751
2751
|
}
|
|
2752
2752
|
break;
|
|
2753
2753
|
}
|
|
2754
|
-
var o =
|
|
2754
|
+
var o = P(i, this.clonePosition());
|
|
2755
2755
|
return {
|
|
2756
|
-
val: { type:
|
|
2756
|
+
val: { type: D.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
|
+
!hn(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;
|
|
@@ -2792,49 +2792,49 @@ var un = (
|
|
|
2792
2792
|
r.push(i);
|
|
2793
2793
|
this.bump();
|
|
2794
2794
|
}
|
|
2795
|
-
return
|
|
2795
|
+
return mt.apply(void 0, r);
|
|
2796
2796
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2797
2797
|
if (this.isEOF())
|
|
2798
2798
|
return null;
|
|
2799
2799
|
var i = this.char();
|
|
2800
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2800
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), mt(i));
|
|
2801
2801
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2802
|
var i = this.clonePosition();
|
|
2803
2803
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(
|
|
2804
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2805
2805
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(
|
|
2806
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, P(i, this.clonePosition()));
|
|
2807
2807
|
var n = this.parseIdentifierIfPossible().value;
|
|
2808
2808
|
if (!n)
|
|
2809
|
-
return this.error(
|
|
2809
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2810
2810
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(
|
|
2811
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2812
2812
|
switch (this.char()) {
|
|
2813
2813
|
case 125:
|
|
2814
2814
|
return this.bump(), {
|
|
2815
2815
|
val: {
|
|
2816
|
-
type:
|
|
2816
|
+
type: D.argument,
|
|
2817
2817
|
// value does not include the opening and closing braces.
|
|
2818
2818
|
value: n,
|
|
2819
|
-
location:
|
|
2819
|
+
location: P(i, this.clonePosition())
|
|
2820
2820
|
},
|
|
2821
2821
|
err: null
|
|
2822
2822
|
};
|
|
2823
2823
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2824
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2825
2825
|
default:
|
|
2826
|
-
return this.error(
|
|
2826
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2827
2827
|
}
|
|
2828
2828
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2829
|
+
var t = this.clonePosition(), r = this.offset(), i = pt(this.message, r), n = r + i.length;
|
|
2830
2830
|
this.bumpTo(n);
|
|
2831
|
-
var s = this.clonePosition(), a =
|
|
2831
|
+
var s = this.clonePosition(), a = P(t, s);
|
|
2832
2832
|
return { value: i, location: a };
|
|
2833
2833
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2834
2834
|
var s, a = this.clonePosition(), l = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2835
2835
|
switch (l) {
|
|
2836
2836
|
case "":
|
|
2837
|
-
return this.error(
|
|
2837
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, P(a, o));
|
|
2838
2838
|
case "number":
|
|
2839
2839
|
case "date":
|
|
2840
2840
|
case "time": {
|
|
@@ -2842,47 +2842,47 @@ var un = (
|
|
|
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 p =
|
|
2845
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2846
|
+
if (c.err)
|
|
2847
|
+
return c;
|
|
2848
|
+
var p = un(c.val);
|
|
2849
2849
|
if (p.length === 0)
|
|
2850
|
-
return this.error(
|
|
2851
|
-
var x =
|
|
2850
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2851
|
+
var x = P(h, this.clonePosition());
|
|
2852
2852
|
u = { style: p, styleLocation: x };
|
|
2853
2853
|
}
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2856
|
-
return
|
|
2857
|
-
var v =
|
|
2854
|
+
var S = this.tryParseArgumentClose(n);
|
|
2855
|
+
if (S.err)
|
|
2856
|
+
return S;
|
|
2857
|
+
var v = P(n, this.clonePosition());
|
|
2858
2858
|
if (u && kt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2859
|
-
var
|
|
2859
|
+
var M = an(u.style.slice(2));
|
|
2860
2860
|
if (l === "number") {
|
|
2861
|
-
var
|
|
2862
|
-
return
|
|
2863
|
-
val: { type:
|
|
2861
|
+
var c = this.parseNumberSkeletonFromString(M, u.styleLocation);
|
|
2862
|
+
return c.err ? c : {
|
|
2863
|
+
val: { type: D.number, value: i, location: v, style: c.val },
|
|
2864
2864
|
err: null
|
|
2865
2865
|
};
|
|
2866
2866
|
} else {
|
|
2867
|
-
if (
|
|
2868
|
-
return this.error(
|
|
2869
|
-
var U =
|
|
2870
|
-
this.locale && (U =
|
|
2867
|
+
if (M.length === 0)
|
|
2868
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, v);
|
|
2869
|
+
var U = M;
|
|
2870
|
+
this.locale && (U = Wi(M, this.locale));
|
|
2871
2871
|
var p = {
|
|
2872
|
-
type:
|
|
2872
|
+
type: He.dateTime,
|
|
2873
2873
|
pattern: U,
|
|
2874
2874
|
location: u.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
},
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(U) : {}
|
|
2876
|
+
}, R = l === "date" ? D.date : D.time;
|
|
2877
2877
|
return {
|
|
2878
|
-
val: { type:
|
|
2878
|
+
val: { type: R, 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" ? D.number : l === "date" ? D.date : D.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,52 +2893,52 @@ var un = (
|
|
|
2893
2893
|
case "plural":
|
|
2894
2894
|
case "selectordinal":
|
|
2895
2895
|
case "select": {
|
|
2896
|
-
var
|
|
2896
|
+
var $ = this.clonePosition();
|
|
2897
2897
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(
|
|
2898
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, P($, We({}, $)));
|
|
2899
2899
|
this.bumpSpace();
|
|
2900
|
-
var
|
|
2901
|
-
if (l !== "select" &&
|
|
2900
|
+
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
2901
|
+
if (l !== "select" && z.value === "offset") {
|
|
2902
2902
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(
|
|
2903
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
2904
2904
|
this.bumpSpace();
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
return
|
|
2908
|
-
this.bumpSpace(),
|
|
2905
|
+
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
|
+
if (c.err)
|
|
2907
|
+
return c;
|
|
2908
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), I = c.val;
|
|
2909
2909
|
}
|
|
2910
|
-
var k = this.tryParsePluralOrSelectOptions(t, l, r,
|
|
2910
|
+
var k = this.tryParsePluralOrSelectOptions(t, l, r, z);
|
|
2911
2911
|
if (k.err)
|
|
2912
2912
|
return k;
|
|
2913
|
-
var
|
|
2914
|
-
if (
|
|
2915
|
-
return
|
|
2916
|
-
var
|
|
2913
|
+
var S = this.tryParseArgumentClose(n);
|
|
2914
|
+
if (S.err)
|
|
2915
|
+
return S;
|
|
2916
|
+
var W = P(n, this.clonePosition());
|
|
2917
2917
|
return l === "select" ? {
|
|
2918
2918
|
val: {
|
|
2919
|
-
type:
|
|
2919
|
+
type: D.select,
|
|
2920
2920
|
value: i,
|
|
2921
2921
|
options: Ut(k.val),
|
|
2922
|
-
location:
|
|
2922
|
+
location: W
|
|
2923
2923
|
},
|
|
2924
2924
|
err: null
|
|
2925
2925
|
} : {
|
|
2926
2926
|
val: {
|
|
2927
|
-
type:
|
|
2927
|
+
type: D.plural,
|
|
2928
2928
|
value: i,
|
|
2929
2929
|
options: Ut(k.val),
|
|
2930
|
-
offset:
|
|
2930
|
+
offset: I,
|
|
2931
2931
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2932
|
+
location: W
|
|
2933
2933
|
},
|
|
2934
2934
|
err: null
|
|
2935
2935
|
};
|
|
2936
2936
|
}
|
|
2937
2937
|
default:
|
|
2938
|
-
return this.error(
|
|
2938
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, P(a, o));
|
|
2939
2939
|
}
|
|
2940
2940
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2941
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2942
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2943
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2944
|
var i = this.char();
|
|
@@ -2947,7 +2947,7 @@ var un = (
|
|
|
2947
2947
|
this.bump();
|
|
2948
2948
|
var n = this.clonePosition();
|
|
2949
2949
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(
|
|
2950
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(n, this.clonePosition()));
|
|
2951
2951
|
this.bump();
|
|
2952
2952
|
break;
|
|
2953
2953
|
}
|
|
@@ -2977,52 +2977,52 @@ var un = (
|
|
|
2977
2977
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
2978
|
var i = [];
|
|
2979
2979
|
try {
|
|
2980
|
-
i =
|
|
2980
|
+
i = Vi(t);
|
|
2981
2981
|
} catch (n) {
|
|
2982
|
-
return this.error(
|
|
2982
|
+
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2983
2983
|
}
|
|
2984
2984
|
return {
|
|
2985
2985
|
val: {
|
|
2986
|
-
type:
|
|
2986
|
+
type: He.number,
|
|
2987
2987
|
tokens: i,
|
|
2988
2988
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2989
|
+
parsedOptions: this.shouldParseSkeletons ? Xi(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 c = this.clonePosition();
|
|
2997
2997
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2998
|
-
var p = this.tryParseDecimalInteger(
|
|
2998
|
+
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
2999
|
if (p.err)
|
|
3000
3000
|
return p;
|
|
3001
|
-
h =
|
|
3001
|
+
h = P(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3002
3002
|
} else
|
|
3003
3003
|
break;
|
|
3004
3004
|
}
|
|
3005
3005
|
if (o.has(u))
|
|
3006
|
-
return this.error(r === "select" ?
|
|
3006
|
+
return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3007
3007
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3008
3008
|
var x = this.clonePosition();
|
|
3009
3009
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(r === "select" ?
|
|
3011
|
-
var
|
|
3012
|
-
if (
|
|
3013
|
-
return
|
|
3010
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
3011
|
+
var S = this.parseMessage(t + 1, r, i);
|
|
3012
|
+
if (S.err)
|
|
3013
|
+
return S;
|
|
3014
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
|
-
value:
|
|
3021
|
-
location:
|
|
3020
|
+
value: S.val,
|
|
3021
|
+
location: P(x, this.clonePosition())
|
|
3022
3022
|
}
|
|
3023
3023
|
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3024
3024
|
}
|
|
3025
|
-
return l.length === 0 ? this.error(r === "select" ?
|
|
3025
|
+
return l.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
3026
3026
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3027
3027
|
var i = 1, n = this.clonePosition();
|
|
3028
3028
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -3033,8 +3033,8 @@ var un = (
|
|
|
3033
3033
|
else
|
|
3034
3034
|
break;
|
|
3035
3035
|
}
|
|
3036
|
-
var o =
|
|
3037
|
-
return s ? (a *= i,
|
|
3036
|
+
var o = P(n, this.clonePosition());
|
|
3037
|
+
return s ? (a *= i, sn(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() {
|
|
@@ -3100,47 +3100,47 @@ var un = (
|
|
|
3100
3100
|
}, e;
|
|
3101
3101
|
}()
|
|
3102
3102
|
);
|
|
3103
|
-
function
|
|
3103
|
+
function gt(e) {
|
|
3104
3104
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3105
|
}
|
|
3106
|
-
function ln(e) {
|
|
3107
|
-
return vt(e) || e === 47;
|
|
3108
|
-
}
|
|
3109
3106
|
function hn(e) {
|
|
3107
|
+
return gt(e) || e === 47;
|
|
3108
|
+
}
|
|
3109
|
+
function fn(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
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 cn(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
|
-
function
|
|
3118
|
+
function vt(e) {
|
|
3119
3119
|
e.forEach(function(t) {
|
|
3120
3120
|
if (delete t.location, dr(t) || mr(t))
|
|
3121
3121
|
for (var r in t.options)
|
|
3122
|
-
delete t.options[r].location,
|
|
3122
|
+
delete t.options[r].location, vt(t.options[r].value);
|
|
3123
3123
|
else
|
|
3124
|
-
hr(t) && gr(t.style) || (fr(t) || cr(t)) &&
|
|
3124
|
+
hr(t) && gr(t.style) || (fr(t) || cr(t)) && ct(t.style) ? delete t.style.location : pr(t) && vt(t.children);
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3128
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
-
var r = new
|
|
3127
|
+
function dn(e, t) {
|
|
3128
|
+
t === void 0 && (t = {}), t = We({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3129
|
+
var r = new ln(e, t).parse();
|
|
3130
3130
|
if (r.err) {
|
|
3131
|
-
var i = SyntaxError(
|
|
3131
|
+
var i = SyntaxError(H[r.err.kind]);
|
|
3132
3132
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3133
3133
|
}
|
|
3134
|
-
return t != null && t.captureLocation ||
|
|
3134
|
+
return t != null && t.captureLocation || vt(r.val), r.val;
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var Oe;
|
|
3137
3137
|
(function(e) {
|
|
3138
3138
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
|
-
})(
|
|
3140
|
-
var
|
|
3139
|
+
})(Oe || (Oe = {}));
|
|
3140
|
+
var Qe = (
|
|
3141
3141
|
/** @class */
|
|
3142
3142
|
function(e) {
|
|
3143
|
-
|
|
3143
|
+
Je(t, e);
|
|
3144
3144
|
function t(r, i, n) {
|
|
3145
3145
|
var s = e.call(this, r) || this;
|
|
3146
3146
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3152,48 +3152,48 @@ var Ke = (
|
|
|
3152
3152
|
), Vt = (
|
|
3153
3153
|
/** @class */
|
|
3154
3154
|
function(e) {
|
|
3155
|
-
|
|
3155
|
+
Je(t, e);
|
|
3156
3156
|
function t(r, i, n, s) {
|
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3157
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Oe.INVALID_VALUE, s) || this;
|
|
3158
3158
|
}
|
|
3159
3159
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3160
|
+
}(Qe)
|
|
3161
|
+
), mn = (
|
|
3162
3162
|
/** @class */
|
|
3163
3163
|
function(e) {
|
|
3164
|
-
|
|
3164
|
+
Je(t, e);
|
|
3165
3165
|
function t(r, i, n) {
|
|
3166
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3166
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Oe.INVALID_VALUE, n) || this;
|
|
3167
3167
|
}
|
|
3168
3168
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3169
|
+
}(Qe)
|
|
3170
|
+
), pn = (
|
|
3171
3171
|
/** @class */
|
|
3172
3172
|
function(e) {
|
|
3173
|
-
|
|
3173
|
+
Je(t, e);
|
|
3174
3174
|
function t(r, i) {
|
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3175
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Oe.MISSING_VALUE, i) || this;
|
|
3176
3176
|
}
|
|
3177
3177
|
return t;
|
|
3178
|
-
}(
|
|
3179
|
-
),
|
|
3178
|
+
}(Qe)
|
|
3179
|
+
), j;
|
|
3180
3180
|
(function(e) {
|
|
3181
3181
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
|
-
})(
|
|
3183
|
-
function
|
|
3182
|
+
})(j || (j = {}));
|
|
3183
|
+
function gn(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 !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3187
3187
|
}, []);
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3189
|
+
function vn(e) {
|
|
3190
3190
|
return typeof e == "function";
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function ze(e, t, r, i, n, s, a) {
|
|
3193
3193
|
if (e.length === 1 && Lt(e[0]))
|
|
3194
3194
|
return [
|
|
3195
3195
|
{
|
|
3196
|
-
type:
|
|
3196
|
+
type: j.literal,
|
|
3197
3197
|
value: e[0].value
|
|
3198
3198
|
}
|
|
3199
3199
|
];
|
|
@@ -3201,41 +3201,41 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3201
3201
|
var h = u[o];
|
|
3202
3202
|
if (Lt(h)) {
|
|
3203
3203
|
l.push({
|
|
3204
|
-
type:
|
|
3204
|
+
type: j.literal,
|
|
3205
3205
|
value: h.value
|
|
3206
3206
|
});
|
|
3207
3207
|
continue;
|
|
3208
3208
|
}
|
|
3209
|
-
if (
|
|
3209
|
+
if (Ri(h)) {
|
|
3210
3210
|
typeof s == "number" && l.push({
|
|
3211
|
-
type:
|
|
3211
|
+
type: j.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 p = n[
|
|
3220
|
-
if (
|
|
3216
|
+
var c = h.value;
|
|
3217
|
+
if (!(n && c in n))
|
|
3218
|
+
throw new pn(c, a);
|
|
3219
|
+
var p = n[c];
|
|
3220
|
+
if (Ni(h)) {
|
|
3221
3221
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3222
|
-
type: typeof p == "string" ?
|
|
3222
|
+
type: typeof p == "string" ? j.literal : j.object,
|
|
3223
3223
|
value: p
|
|
3224
3224
|
});
|
|
3225
3225
|
continue;
|
|
3226
3226
|
}
|
|
3227
3227
|
if (fr(h)) {
|
|
3228
|
-
var x = typeof h.style == "string" ? i.date[h.style] :
|
|
3228
|
+
var x = typeof h.style == "string" ? i.date[h.style] : ct(h.style) ? h.style.parsedOptions : void 0;
|
|
3229
3229
|
l.push({
|
|
3230
|
-
type:
|
|
3230
|
+
type: j.literal,
|
|
3231
3231
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
3232
3232
|
});
|
|
3233
3233
|
continue;
|
|
3234
3234
|
}
|
|
3235
3235
|
if (cr(h)) {
|
|
3236
|
-
var x = typeof h.style == "string" ? i.time[h.style] :
|
|
3236
|
+
var x = typeof h.style == "string" ? i.time[h.style] : ct(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3237
3237
|
l.push({
|
|
3238
|
-
type:
|
|
3238
|
+
type: j.literal,
|
|
3239
3239
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
3240
3240
|
});
|
|
3241
3241
|
continue;
|
|
@@ -3243,61 +3243,61 @@ function Xe(e, t, r, i, n, s, a) {
|
|
|
3243
3243
|
if (hr(h)) {
|
|
3244
3244
|
var x = typeof h.style == "string" ? i.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3245
3245
|
x && x.scale && (p = p * (x.scale || 1)), l.push({
|
|
3246
|
-
type:
|
|
3246
|
+
type: j.literal,
|
|
3247
3247
|
value: r.getNumberFormat(t, x).format(p)
|
|
3248
3248
|
});
|
|
3249
3249
|
continue;
|
|
3250
3250
|
}
|
|
3251
3251
|
if (pr(h)) {
|
|
3252
|
-
var
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new
|
|
3255
|
-
var U =
|
|
3256
|
-
return
|
|
3252
|
+
var S = h.children, v = h.value, M = n[v];
|
|
3253
|
+
if (!vn(M))
|
|
3254
|
+
throw new mn(v, "function", a);
|
|
3255
|
+
var U = ze(S, t, r, i, n, s), R = M(U.map(function(I) {
|
|
3256
|
+
return I.value;
|
|
3257
3257
|
}));
|
|
3258
|
-
Array.isArray(
|
|
3258
|
+
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(I) {
|
|
3259
3259
|
return {
|
|
3260
|
-
type: typeof
|
|
3261
|
-
value:
|
|
3260
|
+
type: typeof I == "string" ? j.literal : j.object,
|
|
3261
|
+
value: I
|
|
3262
3262
|
};
|
|
3263
3263
|
}));
|
|
3264
3264
|
}
|
|
3265
3265
|
if (dr(h)) {
|
|
3266
|
-
var
|
|
3267
|
-
if (
|
|
3266
|
+
var $ = h.options[p] || h.options.other;
|
|
3267
|
+
if (!$)
|
|
3268
3268
|
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3269
|
-
l.push.apply(l,
|
|
3269
|
+
l.push.apply(l, ze($.value, t, r, i, n));
|
|
3270
3270
|
continue;
|
|
3271
3271
|
}
|
|
3272
3272
|
if (mr(h)) {
|
|
3273
|
-
var
|
|
3274
|
-
if (
|
|
3273
|
+
var $ = h.options["=".concat(p)];
|
|
3274
|
+
if (!$) {
|
|
3275
3275
|
if (!Intl.PluralRules)
|
|
3276
|
-
throw new
|
|
3276
|
+
throw new Qe(`Intl.PluralRules is not available in this environment.
|
|
3277
3277
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
|
-
`,
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3278
|
+
`, Oe.MISSING_INTL_API, a);
|
|
3279
|
+
var z = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3280
|
+
$ = h.options[z] || h.options.other;
|
|
3281
3281
|
}
|
|
3282
|
-
if (
|
|
3282
|
+
if (!$)
|
|
3283
3283
|
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3284
|
-
l.push.apply(l,
|
|
3284
|
+
l.push.apply(l, ze($.value, t, r, i, n, p - (h.offset || 0)));
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
return
|
|
3288
|
+
return gn(l);
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function bn(e, t) {
|
|
3291
3291
|
return t ? ie(ie(ie({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3292
3292
|
return r[i] = ie(ie({}, e[i]), t[i] || {}), r;
|
|
3293
3293
|
}, {})) : e;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function yn(e, t) {
|
|
3296
3296
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3297
|
-
return r[i] =
|
|
3297
|
+
return r[i] = bn(e[i], t[i]), r;
|
|
3298
3298
|
}, ie({}, e)) : e;
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function ot(e) {
|
|
3301
3301
|
return {
|
|
3302
3302
|
create: function() {
|
|
3303
3303
|
return {
|
|
@@ -3311,35 +3311,35 @@ function at(e) {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function xn(e) {
|
|
3315
3315
|
return e === void 0 && (e = {
|
|
3316
3316
|
number: {},
|
|
3317
3317
|
dateTime: {},
|
|
3318
3318
|
pluralRules: {}
|
|
3319
3319
|
}), {
|
|
3320
|
-
getNumberFormat:
|
|
3320
|
+
getNumberFormat: it(function() {
|
|
3321
3321
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3322
3322
|
r[i] = arguments[i];
|
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3323
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, rt([void 0], r, !1)))();
|
|
3324
3324
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3325
|
+
cache: ot(e.number),
|
|
3326
|
+
strategy: nt.variadic
|
|
3327
3327
|
}),
|
|
3328
|
-
getDateTimeFormat:
|
|
3328
|
+
getDateTimeFormat: it(function() {
|
|
3329
3329
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3330
3330
|
r[i] = arguments[i];
|
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3331
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, rt([void 0], r, !1)))();
|
|
3332
3332
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3333
|
+
cache: ot(e.dateTime),
|
|
3334
|
+
strategy: nt.variadic
|
|
3335
3335
|
}),
|
|
3336
|
-
getPluralRules:
|
|
3336
|
+
getPluralRules: it(function() {
|
|
3337
3337
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3338
3338
|
r[i] = arguments[i];
|
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3339
|
+
return new ((t = Intl.PluralRules).bind.apply(t, rt([void 0], r, !1)))();
|
|
3340
3340
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3341
|
+
cache: ot(e.pluralRules),
|
|
3342
|
+
strategy: nt.variadic
|
|
3343
3343
|
})
|
|
3344
3344
|
};
|
|
3345
3345
|
}
|
|
@@ -3357,12 +3357,12 @@ var Sr = (
|
|
|
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(c, p) {
|
|
3361
|
+
return !c.length || p.type !== j.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3362
3362
|
}, []);
|
|
3363
3363
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3364
3364
|
}, this.formatToParts = function(o) {
|
|
3365
|
-
return
|
|
3365
|
+
return ze(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 Sr = (
|
|
|
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 =
|
|
3378
|
+
var l = Ai(a, ["formatters"]);
|
|
3379
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 = yn(e.formats, i), this.formatters = n && n.formatters || xn(this.formatterCache);
|
|
3385
3385
|
}
|
|
3386
3386
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3387
|
get: function() {
|
|
@@ -3394,7 +3394,7 @@ var Sr = (
|
|
|
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 = dn, e.formats = {
|
|
3398
3398
|
number: {
|
|
3399
3399
|
integer: {
|
|
3400
3400
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3455,7 @@ var Sr = (
|
|
|
3455
3455
|
}, e;
|
|
3456
3456
|
}()
|
|
3457
3457
|
);
|
|
3458
|
-
function
|
|
3458
|
+
function _n(e, t) {
|
|
3459
3459
|
if (t == null)
|
|
3460
3460
|
return;
|
|
3461
3461
|
if (t in e)
|
|
@@ -3476,36 +3476,36 @@ function xn(e, t) {
|
|
|
3476
3476
|
i = void 0;
|
|
3477
3477
|
return i;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const fe = {}, En = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[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 fe && e in fe[t])
|
|
3483
|
+
return fe[t][e];
|
|
3484
|
+
const r = Ue(t);
|
|
3485
3485
|
for (let i = 0; i < r.length; i++) {
|
|
3486
|
-
const n = r[i], s =
|
|
3486
|
+
const n = r[i], s = Sn(n, e);
|
|
3487
3487
|
if (s)
|
|
3488
|
-
return
|
|
3488
|
+
return En(e, t, s);
|
|
3489
3489
|
}
|
|
3490
3490
|
};
|
|
3491
|
-
let
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3491
|
+
let wt;
|
|
3492
|
+
const ke = Re({});
|
|
3493
|
+
function wn(e) {
|
|
3494
|
+
return wt[e] || null;
|
|
3495
3495
|
}
|
|
3496
3496
|
function Hr(e) {
|
|
3497
|
-
return e in
|
|
3497
|
+
return e in wt;
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function Sn(e, t) {
|
|
3500
3500
|
if (!Hr(e))
|
|
3501
3501
|
return null;
|
|
3502
|
-
const r =
|
|
3503
|
-
return
|
|
3502
|
+
const r = wn(e);
|
|
3503
|
+
return _n(r, t);
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function Tn(e) {
|
|
3506
3506
|
if (e == null)
|
|
3507
3507
|
return;
|
|
3508
|
-
const t =
|
|
3508
|
+
const t = Ue(e);
|
|
3509
3509
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3510
|
const i = t[r];
|
|
3511
3511
|
if (Hr(i))
|
|
@@ -3513,64 +3513,64 @@ function Sn(e) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
3515
|
function Or(e, ...t) {
|
|
3516
|
-
delete
|
|
3516
|
+
delete fe[e], ke.update((r) => (r[e] = Pi.all([r[e] || {}, ...t]), r));
|
|
3517
3517
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3518
|
+
Ae(
|
|
3519
|
+
[ke],
|
|
3520
3520
|
([e]) => Object.keys(e)
|
|
3521
3521
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3522
|
+
ke.subscribe((e) => wt = e);
|
|
3523
|
+
const Xe = {};
|
|
3524
|
+
function Hn(e, t) {
|
|
3525
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3526
3526
|
}
|
|
3527
3527
|
function Pr(e) {
|
|
3528
|
-
return
|
|
3528
|
+
return Xe[e];
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3530
|
+
function On(e) {
|
|
3531
|
+
return Ue(e).map((t) => {
|
|
3532
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 qe(e) {
|
|
3537
|
+
return e == null ? !1 : Ue(e).some(
|
|
3538
3538
|
(t) => {
|
|
3539
3539
|
var r;
|
|
3540
3540
|
return (r = Pr(t)) == null ? void 0 : r.size;
|
|
3541
3541
|
}
|
|
3542
3542
|
);
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function Pn(e, t) {
|
|
3545
3545
|
return Promise.all(
|
|
3546
|
-
t.map((i) => (
|
|
3546
|
+
t.map((i) => (Hn(e, i), i().then((n) => n.default || n)))
|
|
3547
3547
|
).then((i) => Or(e, ...i));
|
|
3548
3548
|
}
|
|
3549
|
-
const
|
|
3549
|
+
const Be = {};
|
|
3550
3550
|
function Ar(e) {
|
|
3551
|
-
if (!
|
|
3552
|
-
return e in
|
|
3553
|
-
const t =
|
|
3554
|
-
return
|
|
3551
|
+
if (!qe(e))
|
|
3552
|
+
return e in Be ? Be[e] : Promise.resolve();
|
|
3553
|
+
const t = On(e);
|
|
3554
|
+
return Be[e] = Promise.all(
|
|
3555
3555
|
t.map(
|
|
3556
|
-
([r, i]) =>
|
|
3556
|
+
([r, i]) => Pn(r, i)
|
|
3557
3557
|
)
|
|
3558
3558
|
).then(() => {
|
|
3559
|
-
if (
|
|
3559
|
+
if (qe(e))
|
|
3560
3560
|
return Ar(e);
|
|
3561
|
-
delete
|
|
3562
|
-
}),
|
|
3561
|
+
delete Be[e];
|
|
3562
|
+
}), Be[e];
|
|
3563
3563
|
}
|
|
3564
|
-
var Gt = Object.getOwnPropertySymbols,
|
|
3564
|
+
var Gt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Bn = (e, t) => {
|
|
3565
3565
|
var r = {};
|
|
3566
3566
|
for (var i in e)
|
|
3567
|
-
|
|
3567
|
+
An.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3568
3568
|
if (e != null && Gt)
|
|
3569
3569
|
for (var i of Gt(e))
|
|
3570
|
-
t.indexOf(i) < 0 &&
|
|
3570
|
+
t.indexOf(i) < 0 && $n.call(e, i) && (r[i] = e[i]);
|
|
3571
3571
|
return r;
|
|
3572
3572
|
};
|
|
3573
|
-
const
|
|
3573
|
+
const Mn = {
|
|
3574
3574
|
number: {
|
|
3575
3575
|
scientific: { notation: "scientific" },
|
|
3576
3576
|
engineering: { notation: "engineering" },
|
|
@@ -3600,28 +3600,28 @@ const Bn = {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
3602
|
};
|
|
3603
|
-
function
|
|
3603
|
+
function Cn({ 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 "${Ue(
|
|
3606
3606
|
e
|
|
3607
|
-
).join('", "')}".${
|
|
3607
|
+
).join('", "')}".${qe(ce()) ? `
|
|
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 Dn = {
|
|
3613
3613
|
fallbackLocale: null,
|
|
3614
3614
|
loadingDelay: 200,
|
|
3615
|
-
formats:
|
|
3615
|
+
formats: Mn,
|
|
3616
3616
|
warnOnMissingMessages: !0,
|
|
3617
3617
|
handleMissingMessage: void 0,
|
|
3618
3618
|
ignoreTag: !0
|
|
3619
|
-
},
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3619
|
+
}, Me = Dn;
|
|
3620
|
+
function Pe() {
|
|
3621
|
+
return Me;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
const t = e, { formats: r } = t, i =
|
|
3623
|
+
function Ln(e) {
|
|
3624
|
+
const t = e, { formats: r } = t, i = Bn(t, ["formats"]);
|
|
3625
3625
|
let n = e.fallbackLocale;
|
|
3626
3626
|
if (e.initialLocale)
|
|
3627
3627
|
try {
|
|
@@ -3631,134 +3631,134 @@ function Dn(e) {
|
|
|
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 = Cn : console.warn(
|
|
3635
3635
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3636
|
-
)), Object.assign(
|
|
3636
|
+
)), Object.assign(Me, i, { initialLocale: n }), r && ("number" in r && Object.assign(Me.formats.number, r.number), "date" in r && Object.assign(Me.formats.date, r.date), "time" in r && Object.assign(Me.formats.time, r.time)), ge.set(n);
|
|
3637
3637
|
}
|
|
3638
|
-
const
|
|
3639
|
-
var
|
|
3638
|
+
const at = Re(!1);
|
|
3639
|
+
var In = Object.defineProperty, Nn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3640
3640
|
for (var r in t || (t = {}))
|
|
3641
|
-
|
|
3641
|
+
kn.call(t, r) && zt(e, r, t[r]);
|
|
3642
3642
|
if (jt)
|
|
3643
3643
|
for (var r of jt(t))
|
|
3644
|
-
|
|
3644
|
+
Un.call(t, r) && zt(e, r, t[r]);
|
|
3645
3645
|
return e;
|
|
3646
|
-
},
|
|
3647
|
-
let
|
|
3648
|
-
const
|
|
3646
|
+
}, Vn = (e, t) => Nn(e, Rn(t));
|
|
3647
|
+
let bt;
|
|
3648
|
+
const Ye = Re(null);
|
|
3649
3649
|
function Xt(e) {
|
|
3650
3650
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function Ue(e, t = Pe().fallbackLocale) {
|
|
3653
3653
|
const r = Xt(e);
|
|
3654
3654
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return
|
|
3656
|
+
function ce() {
|
|
3657
|
+
return bt != null ? bt : void 0;
|
|
3658
3658
|
}
|
|
3659
|
-
|
|
3660
|
-
|
|
3659
|
+
Ye.subscribe((e) => {
|
|
3660
|
+
bt = 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 Gn = (e) => {
|
|
3663
|
+
if (e && Tn(e) && qe(e)) {
|
|
3664
|
+
const { loadingDelay: t } = Pe();
|
|
3665
3665
|
let r;
|
|
3666
|
-
return typeof window != "undefined" &&
|
|
3667
|
-
() =>
|
|
3666
|
+
return typeof window != "undefined" && ce() != null && t ? r = window.setTimeout(
|
|
3667
|
+
() => at.set(!0),
|
|
3668
3668
|
t
|
|
3669
|
-
) :
|
|
3670
|
-
|
|
3669
|
+
) : at.set(!0), Ar(e).then(() => {
|
|
3670
|
+
Ye.set(e);
|
|
3671
3671
|
}).finally(() => {
|
|
3672
|
-
clearTimeout(r),
|
|
3672
|
+
clearTimeout(r), at.set(!1);
|
|
3673
3673
|
});
|
|
3674
3674
|
}
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
-
set:
|
|
3678
|
-
}),
|
|
3675
|
+
return Ye.set(e);
|
|
3676
|
+
}, ge = Vn(Fn({}, Ye), {
|
|
3677
|
+
set: Gn
|
|
3678
|
+
}), Ke = (e) => {
|
|
3679
3679
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3680
|
return (i) => {
|
|
3681
3681
|
const n = JSON.stringify(i);
|
|
3682
3682
|
return n in t ? t[n] : t[n] = e(i);
|
|
3683
3683
|
};
|
|
3684
3684
|
};
|
|
3685
|
-
var
|
|
3685
|
+
var jn = Object.defineProperty, Ze = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
|
3686
3686
|
for (var r in t || (t = {}))
|
|
3687
3687
|
$r.call(t, r) && Wt(e, r, t[r]);
|
|
3688
|
-
if (
|
|
3689
|
-
for (var r of
|
|
3688
|
+
if (Ze)
|
|
3689
|
+
for (var r of Ze(t))
|
|
3690
3690
|
Br.call(t, r) && Wt(e, r, t[r]);
|
|
3691
3691
|
return e;
|
|
3692
|
-
},
|
|
3692
|
+
}, $e = (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
|
|
3696
|
+
if (e != null && Ze)
|
|
3697
|
+
for (var i of Ze(e))
|
|
3698
3698
|
t.indexOf(i) < 0 && Br.call(e, i) && (r[i] = e[i]);
|
|
3699
3699
|
return r;
|
|
3700
3700
|
};
|
|
3701
|
-
const
|
|
3702
|
-
const { formats: r } =
|
|
3701
|
+
const Ie = (e, t) => {
|
|
3702
|
+
const { formats: r } = Pe();
|
|
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
|
+
}, zn = Ke(
|
|
3707
3707
|
(e) => {
|
|
3708
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3708
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3709
3709
|
if (r == null)
|
|
3710
3710
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
|
-
return i && (n =
|
|
3711
|
+
return i && (n = Ie("number", i)), new Intl.NumberFormat(r, n);
|
|
3712
3712
|
}
|
|
3713
|
-
),
|
|
3713
|
+
), Xn = Ke(
|
|
3714
3714
|
(e) => {
|
|
3715
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3715
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3716
3716
|
if (r == null)
|
|
3717
3717
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
|
-
return i ? n =
|
|
3718
|
+
return i ? n = Ie("date", i) : Object.keys(n).length === 0 && (n = Ie("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3719
3719
|
}
|
|
3720
|
-
),
|
|
3720
|
+
), Wn = Ke(
|
|
3721
3721
|
(e) => {
|
|
3722
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3722
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3723
3723
|
if (r == null)
|
|
3724
3724
|
throw new Error(
|
|
3725
3725
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3726
3726
|
);
|
|
3727
|
-
return i ? n =
|
|
3727
|
+
return i ? n = Ie("time", i) : Object.keys(n).length === 0 && (n = Ie("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3728
3728
|
}
|
|
3729
|
-
),
|
|
3729
|
+
), qn = (e = {}) => {
|
|
3730
3730
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3732
|
-
} = t, i =
|
|
3731
|
+
locale: r = ce()
|
|
3732
|
+
} = t, i = $e(t, [
|
|
3733
3733
|
"locale"
|
|
3734
3734
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3735
|
+
return zn(St({ locale: r }, i));
|
|
3736
|
+
}, Yn = (e = {}) => {
|
|
3737
3737
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3739
|
-
} = t, i =
|
|
3738
|
+
locale: r = ce()
|
|
3739
|
+
} = t, i = $e(t, [
|
|
3740
3740
|
"locale"
|
|
3741
3741
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3742
|
+
return Xn(St({ locale: r }, i));
|
|
3743
|
+
}, Zn = (e = {}) => {
|
|
3744
3744
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3746
|
-
} = t, i =
|
|
3745
|
+
locale: r = ce()
|
|
3746
|
+
} = t, i = $e(t, [
|
|
3747
3747
|
"locale"
|
|
3748
3748
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3749
|
+
return Wn(St({ locale: r }, i));
|
|
3750
|
+
}, Jn = Ke(
|
|
3751
3751
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3753
|
-
ignoreTag:
|
|
3752
|
+
(e, t = ce()) => new Sr(e, t, Pe().formats, {
|
|
3753
|
+
ignoreTag: Pe().ignoreTag
|
|
3754
3754
|
})
|
|
3755
|
-
),
|
|
3755
|
+
), Qn = (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 = ce(),
|
|
3762
3762
|
default: u
|
|
3763
3763
|
} = a;
|
|
3764
3764
|
if (o == null)
|
|
@@ -3767,35 +3767,35 @@ const Ne = (e, t) => {
|
|
|
3767
3767
|
);
|
|
3768
3768
|
let h = Tr(e, o);
|
|
3769
3769
|
if (!h)
|
|
3770
|
-
h = (s = (n = (i = (r =
|
|
3770
|
+
h = (s = (n = (i = (r = Pe()).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 c = h;
|
|
3778
3778
|
try {
|
|
3779
|
-
|
|
3779
|
+
c = Jn(h, o).format(l);
|
|
3780
3780
|
} catch (p) {
|
|
3781
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
|
-
|
|
3786
|
+
return c;
|
|
3787
|
+
}, Kn = (e, t) => Zn(t).format(e), es = (e, t) => Yn(t).format(e), ts = (e, t) => qn(t).format(e), rs = (e, t = ce()) => Tr(e, t), is = Ae([ge, ke], () => Qn);
|
|
3788
|
+
Ae([ge], () => Kn);
|
|
3789
|
+
Ae([ge], () => es);
|
|
3790
|
+
Ae([ge], () => ts);
|
|
3791
|
+
Ae([ge, ke], () => rs);
|
|
3792
3792
|
function qt(e, t) {
|
|
3793
3793
|
Or(e, t);
|
|
3794
3794
|
}
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3795
|
+
function ns(e) {
|
|
3796
|
+
Ln({
|
|
3797
3797
|
fallbackLocale: "en"
|
|
3798
|
-
}),
|
|
3798
|
+
}), ge.set(e);
|
|
3799
3799
|
}
|
|
3800
3800
|
const Yt = {
|
|
3801
3801
|
en: {
|
|
@@ -3865,228 +3865,228 @@ 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-AN6f2AIj.js").then(({ default: t }) => {
|
|
3869
3869
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3870
3870
|
});
|
|
3871
3871
|
}
|
|
3872
|
-
let
|
|
3872
|
+
let ss = Re(null);
|
|
3873
3873
|
var Mr = { exports: {} };
|
|
3874
3874
|
(function(e, t) {
|
|
3875
3875
|
(function(r, i) {
|
|
3876
3876
|
e.exports = i();
|
|
3877
3877
|
})(or, function() {
|
|
3878
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week",
|
|
3879
|
-
var g = ["th", "st", "nd", "rd"],
|
|
3880
|
-
return "[" + _ + (g[(
|
|
3881
|
-
} },
|
|
3878
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date", v = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, 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, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
3879
|
+
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3880
|
+
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3881
|
+
} }, $ = function(_, g, d) {
|
|
3882
3882
|
var b = String(_);
|
|
3883
|
-
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(
|
|
3884
|
-
},
|
|
3885
|
-
var g = -_.utcOffset(),
|
|
3886
|
-
return (g <= 0 ? "+" : "-") +
|
|
3887
|
-
}, m: function _(g,
|
|
3888
|
-
if (g.date() <
|
|
3889
|
-
return -_(
|
|
3890
|
-
var b = 12 * (
|
|
3891
|
-
return +(-(b + (
|
|
3883
|
+
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(d) + _;
|
|
3884
|
+
}, z = { s: $, z: function(_) {
|
|
3885
|
+
var g = -_.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3886
|
+
return (g <= 0 ? "+" : "-") + $(b, 2, "0") + ":" + $(m, 2, "0");
|
|
3887
|
+
}, m: function _(g, d) {
|
|
3888
|
+
if (g.date() < d.date())
|
|
3889
|
+
return -_(d, g);
|
|
3890
|
+
var b = 12 * (d.year() - g.year()) + (d.month() - g.month()), m = g.clone().add(b, c), E = d - m < 0, w = g.clone().add(b + (E ? -1 : 1), c);
|
|
3891
|
+
return +(-(b + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3892
3892
|
}, a: function(_) {
|
|
3893
3893
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3894
3894
|
}, p: function(_) {
|
|
3895
|
-
return { M:
|
|
3895
|
+
return { M: c, y: x, w: h, d: u, D: S, h: o, m: l, s: a, ms: s, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
3896
3896
|
}, u: function(_) {
|
|
3897
3897
|
return _ === void 0;
|
|
3898
|
-
} },
|
|
3899
|
-
k[
|
|
3900
|
-
var
|
|
3901
|
-
return _ instanceof
|
|
3902
|
-
},
|
|
3898
|
+
} }, I = "en", k = {};
|
|
3899
|
+
k[I] = R;
|
|
3900
|
+
var W = "$isDayjsObject", Q = function(_) {
|
|
3901
|
+
return _ instanceof ve || !(!_ || !_[W]);
|
|
3902
|
+
}, q = function _(g, d, b) {
|
|
3903
3903
|
var m;
|
|
3904
3904
|
if (!g)
|
|
3905
|
-
return
|
|
3905
|
+
return I;
|
|
3906
3906
|
if (typeof g == "string") {
|
|
3907
3907
|
var E = g.toLowerCase();
|
|
3908
|
-
k[E] && (m = E),
|
|
3908
|
+
k[E] && (m = E), d && (k[E] = d, m = E);
|
|
3909
3909
|
var w = g.split("-");
|
|
3910
3910
|
if (!m && w.length > 1)
|
|
3911
3911
|
return _(w[0]);
|
|
3912
3912
|
} else {
|
|
3913
|
-
var
|
|
3914
|
-
k[
|
|
3913
|
+
var B = g.name;
|
|
3914
|
+
k[B] = g, m = B;
|
|
3915
3915
|
}
|
|
3916
|
-
return !b && m && (
|
|
3917
|
-
},
|
|
3918
|
-
if (
|
|
3916
|
+
return !b && m && (I = m), m || !b && I;
|
|
3917
|
+
}, A = function(_, g) {
|
|
3918
|
+
if (Q(_))
|
|
3919
3919
|
return _.clone();
|
|
3920
|
-
var
|
|
3921
|
-
return
|
|
3922
|
-
},
|
|
3923
|
-
|
|
3924
|
-
return
|
|
3920
|
+
var d = typeof g == "object" ? g : {};
|
|
3921
|
+
return d.date = _, d.args = arguments, new ve(d);
|
|
3922
|
+
}, O = z;
|
|
3923
|
+
O.l = q, O.i = Q, O.w = function(_, g) {
|
|
3924
|
+
return A(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3925
3925
|
};
|
|
3926
|
-
var
|
|
3927
|
-
function _(
|
|
3928
|
-
this.$L =
|
|
3926
|
+
var ve = function() {
|
|
3927
|
+
function _(d) {
|
|
3928
|
+
this.$L = q(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[W] = !0;
|
|
3929
3929
|
}
|
|
3930
3930
|
var g = _.prototype;
|
|
3931
|
-
return g.parse = function(
|
|
3931
|
+
return g.parse = function(d) {
|
|
3932
3932
|
this.$d = function(b) {
|
|
3933
3933
|
var m = b.date, E = b.utc;
|
|
3934
3934
|
if (m === null)
|
|
3935
3935
|
return /* @__PURE__ */ new Date(NaN);
|
|
3936
|
-
if (
|
|
3936
|
+
if (O.u(m))
|
|
3937
3937
|
return /* @__PURE__ */ new Date();
|
|
3938
3938
|
if (m instanceof Date)
|
|
3939
3939
|
return new Date(m);
|
|
3940
3940
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3941
|
-
var w = m.match(
|
|
3941
|
+
var w = m.match(M);
|
|
3942
3942
|
if (w) {
|
|
3943
|
-
var
|
|
3944
|
-
return E ? new Date(Date.UTC(w[1],
|
|
3943
|
+
var B = w[2] - 1 || 0, C = (w[7] || "0").substring(0, 3);
|
|
3944
|
+
return E ? new Date(Date.UTC(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, C)) : new Date(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, C);
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
return new Date(m);
|
|
3948
|
-
}(
|
|
3948
|
+
}(d), this.init();
|
|
3949
3949
|
}, g.init = function() {
|
|
3950
|
-
var
|
|
3951
|
-
this.$y =
|
|
3950
|
+
var d = this.$d;
|
|
3951
|
+
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3952
3952
|
}, g.$utils = function() {
|
|
3953
|
-
return
|
|
3953
|
+
return O;
|
|
3954
3954
|
}, g.isValid = function() {
|
|
3955
3955
|
return this.$d.toString() !== v;
|
|
3956
|
-
}, g.isSame = function(
|
|
3957
|
-
var m =
|
|
3956
|
+
}, g.isSame = function(d, b) {
|
|
3957
|
+
var m = A(d);
|
|
3958
3958
|
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3959
|
-
}, g.isAfter = function(
|
|
3960
|
-
return
|
|
3961
|
-
}, g.isBefore = function(
|
|
3962
|
-
return this.endOf(b) <
|
|
3963
|
-
}, g.$g = function(
|
|
3964
|
-
return
|
|
3959
|
+
}, g.isAfter = function(d, b) {
|
|
3960
|
+
return A(d) < this.startOf(b);
|
|
3961
|
+
}, g.isBefore = function(d, b) {
|
|
3962
|
+
return this.endOf(b) < A(d);
|
|
3963
|
+
}, g.$g = function(d, b, m) {
|
|
3964
|
+
return O.u(d) ? this[b] : this.set(m, d);
|
|
3965
3965
|
}, g.unix = function() {
|
|
3966
3966
|
return Math.floor(this.valueOf() / 1e3);
|
|
3967
3967
|
}, g.valueOf = function() {
|
|
3968
3968
|
return this.$d.getTime();
|
|
3969
|
-
}, g.startOf = function(
|
|
3970
|
-
var m = this, E = !!
|
|
3971
|
-
var
|
|
3972
|
-
return E ?
|
|
3973
|
-
},
|
|
3974
|
-
return
|
|
3975
|
-
},
|
|
3969
|
+
}, g.startOf = function(d, b) {
|
|
3970
|
+
var m = this, E = !!O.u(b) || b, w = O.p(d), B = function(ae, G) {
|
|
3971
|
+
var Y = O.w(m.$u ? Date.UTC(m.$y, G, ae) : new Date(m.$y, G, ae), m);
|
|
3972
|
+
return E ? Y : Y.endOf(u);
|
|
3973
|
+
}, C = function(ae, G) {
|
|
3974
|
+
return O.w(m.toDate()[ae].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), m);
|
|
3975
|
+
}, N = this.$W, F = this.$M, X = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
|
3976
3976
|
switch (w) {
|
|
3977
3977
|
case x:
|
|
3978
|
-
return E ?
|
|
3979
|
-
case
|
|
3980
|
-
return E ?
|
|
3978
|
+
return E ? B(1, 0) : B(31, 11);
|
|
3979
|
+
case c:
|
|
3980
|
+
return E ? B(1, F) : B(0, F + 1);
|
|
3981
3981
|
case h:
|
|
3982
|
-
var oe = this.$locale().weekStart || 0,
|
|
3983
|
-
return
|
|
3982
|
+
var oe = this.$locale().weekStart || 0, de = (N < oe ? N + 7 : N) - oe;
|
|
3983
|
+
return B(E ? X - de : X + (6 - de), F);
|
|
3984
3984
|
case u:
|
|
3985
|
-
case
|
|
3986
|
-
return
|
|
3985
|
+
case S:
|
|
3986
|
+
return C(se + "Hours", 0);
|
|
3987
3987
|
case o:
|
|
3988
|
-
return
|
|
3988
|
+
return C(se + "Minutes", 1);
|
|
3989
3989
|
case l:
|
|
3990
|
-
return
|
|
3990
|
+
return C(se + "Seconds", 2);
|
|
3991
3991
|
case a:
|
|
3992
|
-
return
|
|
3992
|
+
return C(se + "Milliseconds", 3);
|
|
3993
3993
|
default:
|
|
3994
3994
|
return this.clone();
|
|
3995
3995
|
}
|
|
3996
|
-
}, g.endOf = function(
|
|
3997
|
-
return this.startOf(
|
|
3998
|
-
}, g.$set = function(
|
|
3999
|
-
var m, E =
|
|
4000
|
-
if (E ===
|
|
4001
|
-
var
|
|
4002
|
-
|
|
3996
|
+
}, g.endOf = function(d) {
|
|
3997
|
+
return this.startOf(d, !1);
|
|
3998
|
+
}, g.$set = function(d, b) {
|
|
3999
|
+
var m, E = O.p(d), w = "set" + (this.$u ? "UTC" : ""), B = (m = {}, m[u] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[l] = w + "Minutes", m[a] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], C = E === u ? this.$D + (b - this.$W) : b;
|
|
4000
|
+
if (E === c || E === x) {
|
|
4001
|
+
var N = this.clone().set(S, 1);
|
|
4002
|
+
N.$d[B](C), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
|
|
4003
4003
|
} else
|
|
4004
|
-
|
|
4004
|
+
B && this.$d[B](C);
|
|
4005
4005
|
return this.init(), this;
|
|
4006
|
-
}, g.set = function(
|
|
4007
|
-
return this.clone().$set(
|
|
4008
|
-
}, g.get = function(
|
|
4009
|
-
return this[
|
|
4010
|
-
}, g.add = function(
|
|
4006
|
+
}, g.set = function(d, b) {
|
|
4007
|
+
return this.clone().$set(d, b);
|
|
4008
|
+
}, g.get = function(d) {
|
|
4009
|
+
return this[O.p(d)]();
|
|
4010
|
+
}, g.add = function(d, b) {
|
|
4011
4011
|
var m, E = this;
|
|
4012
|
-
|
|
4013
|
-
var w =
|
|
4014
|
-
var X =
|
|
4015
|
-
return
|
|
4012
|
+
d = Number(d);
|
|
4013
|
+
var w = O.p(b), B = function(F) {
|
|
4014
|
+
var X = A(E);
|
|
4015
|
+
return O.w(X.date(X.date() + Math.round(F * d)), E);
|
|
4016
4016
|
};
|
|
4017
|
-
if (w ===
|
|
4018
|
-
return this.set(
|
|
4017
|
+
if (w === c)
|
|
4018
|
+
return this.set(c, this.$M + d);
|
|
4019
4019
|
if (w === x)
|
|
4020
|
-
return this.set(x, this.$y +
|
|
4020
|
+
return this.set(x, this.$y + d);
|
|
4021
4021
|
if (w === u)
|
|
4022
|
-
return
|
|
4022
|
+
return B(1);
|
|
4023
4023
|
if (w === h)
|
|
4024
|
-
return
|
|
4025
|
-
var
|
|
4026
|
-
return
|
|
4027
|
-
}, g.subtract = function(
|
|
4028
|
-
return this.add(-1 *
|
|
4029
|
-
}, g.format = function(
|
|
4024
|
+
return B(7);
|
|
4025
|
+
var C = (m = {}, m[l] = i, m[o] = n, m[a] = r, m)[w] || 1, N = this.$d.getTime() + d * C;
|
|
4026
|
+
return O.w(N, this);
|
|
4027
|
+
}, g.subtract = function(d, b) {
|
|
4028
|
+
return this.add(-1 * d, b);
|
|
4029
|
+
}, g.format = function(d) {
|
|
4030
4030
|
var b = this, m = this.$locale();
|
|
4031
4031
|
if (!this.isValid())
|
|
4032
4032
|
return m.invalidDate || v;
|
|
4033
|
-
var E =
|
|
4034
|
-
return G && (G[
|
|
4035
|
-
},
|
|
4036
|
-
return
|
|
4037
|
-
}, ae =
|
|
4038
|
-
var
|
|
4039
|
-
return
|
|
4033
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = O.z(this), B = this.$H, C = this.$m, N = this.$M, F = m.weekdays, X = m.months, se = m.meridiem, oe = function(G, Y, me, be) {
|
|
4034
|
+
return G && (G[Y] || G(b, E)) || me[Y].slice(0, be);
|
|
4035
|
+
}, de = function(G) {
|
|
4036
|
+
return O.s(B % 12 || 12, G, "0");
|
|
4037
|
+
}, ae = se || function(G, Y, me) {
|
|
4038
|
+
var be = G < 12 ? "AM" : "PM";
|
|
4039
|
+
return me ? be.toLowerCase() : be;
|
|
4040
4040
|
};
|
|
4041
|
-
return E.replace(U, function(G,
|
|
4042
|
-
return
|
|
4043
|
-
switch (
|
|
4041
|
+
return E.replace(U, function(G, Y) {
|
|
4042
|
+
return Y || function(me) {
|
|
4043
|
+
switch (me) {
|
|
4044
4044
|
case "YY":
|
|
4045
4045
|
return String(b.$y).slice(-2);
|
|
4046
4046
|
case "YYYY":
|
|
4047
|
-
return
|
|
4047
|
+
return O.s(b.$y, 4, "0");
|
|
4048
4048
|
case "M":
|
|
4049
|
-
return
|
|
4049
|
+
return N + 1;
|
|
4050
4050
|
case "MM":
|
|
4051
|
-
return
|
|
4051
|
+
return O.s(N + 1, 2, "0");
|
|
4052
4052
|
case "MMM":
|
|
4053
|
-
return oe(m.monthsShort,
|
|
4053
|
+
return oe(m.monthsShort, N, X, 3);
|
|
4054
4054
|
case "MMMM":
|
|
4055
|
-
return oe(X,
|
|
4055
|
+
return oe(X, N);
|
|
4056
4056
|
case "D":
|
|
4057
4057
|
return b.$D;
|
|
4058
4058
|
case "DD":
|
|
4059
|
-
return
|
|
4059
|
+
return O.s(b.$D, 2, "0");
|
|
4060
4060
|
case "d":
|
|
4061
4061
|
return String(b.$W);
|
|
4062
4062
|
case "dd":
|
|
4063
|
-
return oe(m.weekdaysMin, b.$W,
|
|
4063
|
+
return oe(m.weekdaysMin, b.$W, F, 2);
|
|
4064
4064
|
case "ddd":
|
|
4065
|
-
return oe(m.weekdaysShort, b.$W,
|
|
4065
|
+
return oe(m.weekdaysShort, b.$W, F, 3);
|
|
4066
4066
|
case "dddd":
|
|
4067
|
-
return
|
|
4067
|
+
return F[b.$W];
|
|
4068
4068
|
case "H":
|
|
4069
|
-
return String(
|
|
4069
|
+
return String(B);
|
|
4070
4070
|
case "HH":
|
|
4071
|
-
return
|
|
4071
|
+
return O.s(B, 2, "0");
|
|
4072
4072
|
case "h":
|
|
4073
|
-
return
|
|
4073
|
+
return de(1);
|
|
4074
4074
|
case "hh":
|
|
4075
|
-
return
|
|
4075
|
+
return de(2);
|
|
4076
4076
|
case "a":
|
|
4077
|
-
return ae(
|
|
4077
|
+
return ae(B, C, !0);
|
|
4078
4078
|
case "A":
|
|
4079
|
-
return ae(
|
|
4079
|
+
return ae(B, C, !1);
|
|
4080
4080
|
case "m":
|
|
4081
|
-
return String(
|
|
4081
|
+
return String(C);
|
|
4082
4082
|
case "mm":
|
|
4083
|
-
return
|
|
4083
|
+
return O.s(C, 2, "0");
|
|
4084
4084
|
case "s":
|
|
4085
4085
|
return String(b.$s);
|
|
4086
4086
|
case "ss":
|
|
4087
|
-
return
|
|
4087
|
+
return O.s(b.$s, 2, "0");
|
|
4088
4088
|
case "SSS":
|
|
4089
|
-
return
|
|
4089
|
+
return O.s(b.$ms, 3, "0");
|
|
4090
4090
|
case "Z":
|
|
4091
4091
|
return w;
|
|
4092
4092
|
}
|
|
@@ -4095,50 +4095,50 @@ var Mr = { exports: {} };
|
|
|
4095
4095
|
});
|
|
4096
4096
|
}, g.utcOffset = function() {
|
|
4097
4097
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4098
|
-
}, g.diff = function(
|
|
4099
|
-
var E, w = this,
|
|
4100
|
-
return
|
|
4098
|
+
}, g.diff = function(d, b, m) {
|
|
4099
|
+
var E, w = this, B = O.p(b), C = A(d), N = (C.utcOffset() - this.utcOffset()) * i, F = this - C, X = function() {
|
|
4100
|
+
return O.m(w, C);
|
|
4101
4101
|
};
|
|
4102
|
-
switch (
|
|
4102
|
+
switch (B) {
|
|
4103
4103
|
case x:
|
|
4104
4104
|
E = X() / 12;
|
|
4105
4105
|
break;
|
|
4106
|
-
case
|
|
4106
|
+
case c:
|
|
4107
4107
|
E = X();
|
|
4108
4108
|
break;
|
|
4109
4109
|
case p:
|
|
4110
4110
|
E = X() / 3;
|
|
4111
4111
|
break;
|
|
4112
4112
|
case h:
|
|
4113
|
-
E = (
|
|
4113
|
+
E = (F - N) / 6048e5;
|
|
4114
4114
|
break;
|
|
4115
4115
|
case u:
|
|
4116
|
-
E = (
|
|
4116
|
+
E = (F - N) / 864e5;
|
|
4117
4117
|
break;
|
|
4118
4118
|
case o:
|
|
4119
|
-
E =
|
|
4119
|
+
E = F / n;
|
|
4120
4120
|
break;
|
|
4121
4121
|
case l:
|
|
4122
|
-
E =
|
|
4122
|
+
E = F / i;
|
|
4123
4123
|
break;
|
|
4124
4124
|
case a:
|
|
4125
|
-
E =
|
|
4125
|
+
E = F / r;
|
|
4126
4126
|
break;
|
|
4127
4127
|
default:
|
|
4128
|
-
E =
|
|
4128
|
+
E = F;
|
|
4129
4129
|
}
|
|
4130
|
-
return m ? E :
|
|
4130
|
+
return m ? E : O.a(E);
|
|
4131
4131
|
}, g.daysInMonth = function() {
|
|
4132
|
-
return this.endOf(
|
|
4132
|
+
return this.endOf(c).$D;
|
|
4133
4133
|
}, g.$locale = function() {
|
|
4134
4134
|
return k[this.$L];
|
|
4135
|
-
}, g.locale = function(
|
|
4136
|
-
if (!
|
|
4135
|
+
}, g.locale = function(d, b) {
|
|
4136
|
+
if (!d)
|
|
4137
4137
|
return this.$L;
|
|
4138
|
-
var m = this.clone(), E =
|
|
4138
|
+
var m = this.clone(), E = q(d, b, !0);
|
|
4139
4139
|
return E && (m.$L = E), m;
|
|
4140
4140
|
}, g.clone = function() {
|
|
4141
|
-
return
|
|
4141
|
+
return O.w(this.$d, this);
|
|
4142
4142
|
}, g.toDate = function() {
|
|
4143
4143
|
return new Date(this.valueOf());
|
|
4144
4144
|
}, g.toJSON = function() {
|
|
@@ -4148,20 +4148,20 @@ var Mr = { exports: {} };
|
|
|
4148
4148
|
}, g.toString = function() {
|
|
4149
4149
|
return this.$d.toUTCString();
|
|
4150
4150
|
}, _;
|
|
4151
|
-
}(),
|
|
4152
|
-
return
|
|
4153
|
-
|
|
4151
|
+
}(), Fe = ve.prototype;
|
|
4152
|
+
return A.prototype = Fe, [["$ms", s], ["$s", a], ["$m", l], ["$H", o], ["$W", u], ["$M", c], ["$y", x], ["$D", S]].forEach(function(_) {
|
|
4153
|
+
Fe[_[1]] = function(g) {
|
|
4154
4154
|
return this.$g(g, _[0], _[1]);
|
|
4155
4155
|
};
|
|
4156
|
-
}),
|
|
4157
|
-
return _.$i || (_(g,
|
|
4158
|
-
},
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4156
|
+
}), A.extend = function(_, g) {
|
|
4157
|
+
return _.$i || (_(g, ve, A), _.$i = !0), A;
|
|
4158
|
+
}, A.locale = q, A.isDayjs = Q, A.unix = function(_) {
|
|
4159
|
+
return A(1e3 * _);
|
|
4160
|
+
}, A.en = k[I], A.Ls = k, A.p = {}, A;
|
|
4161
4161
|
});
|
|
4162
4162
|
})(Mr);
|
|
4163
|
-
var
|
|
4164
|
-
const Zt = /* @__PURE__ */
|
|
4163
|
+
var os = Mr.exports;
|
|
4164
|
+
const Zt = /* @__PURE__ */ Et(os);
|
|
4165
4165
|
var Cr = { exports: {} };
|
|
4166
4166
|
(function(e, t) {
|
|
4167
4167
|
(function(r, i) {
|
|
@@ -4171,11 +4171,11 @@ var Cr = { exports: {} };
|
|
|
4171
4171
|
return function(s, a, l) {
|
|
4172
4172
|
var o = a.prototype;
|
|
4173
4173
|
l.utc = function(v) {
|
|
4174
|
-
var
|
|
4175
|
-
return new a(
|
|
4174
|
+
var M = { date: v, utc: !0, args: arguments };
|
|
4175
|
+
return new a(M);
|
|
4176
4176
|
}, o.utc = function(v) {
|
|
4177
|
-
var
|
|
4178
|
-
return v ?
|
|
4177
|
+
var M = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4178
|
+
return v ? M.add(this.utcOffset(), r) : M;
|
|
4179
4179
|
}, o.local = function() {
|
|
4180
4180
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4181
4181
|
};
|
|
@@ -4191,34 +4191,34 @@ var Cr = { exports: {} };
|
|
|
4191
4191
|
} else
|
|
4192
4192
|
h.call(this);
|
|
4193
4193
|
};
|
|
4194
|
-
var
|
|
4195
|
-
o.utcOffset = function(v,
|
|
4194
|
+
var c = o.utcOffset;
|
|
4195
|
+
o.utcOffset = function(v, M) {
|
|
4196
4196
|
var U = this.$utils().u;
|
|
4197
4197
|
if (U(v))
|
|
4198
|
-
return this.$u ? 0 : U(this.$offset) ?
|
|
4199
|
-
if (typeof v == "string" && (v = function(
|
|
4200
|
-
|
|
4201
|
-
var k =
|
|
4198
|
+
return this.$u ? 0 : U(this.$offset) ? c.call(this) : this.$offset;
|
|
4199
|
+
if (typeof v == "string" && (v = function(I) {
|
|
4200
|
+
I === void 0 && (I = "");
|
|
4201
|
+
var k = I.match(i);
|
|
4202
4202
|
if (!k)
|
|
4203
4203
|
return null;
|
|
4204
|
-
var
|
|
4205
|
-
return
|
|
4204
|
+
var W = ("" + k[0]).match(n) || ["-", 0, 0], Q = W[0], q = 60 * +W[1] + +W[2];
|
|
4205
|
+
return q === 0 ? 0 : Q === "+" ? q : -q;
|
|
4206
4206
|
}(v), v === null))
|
|
4207
4207
|
return this;
|
|
4208
|
-
var
|
|
4209
|
-
if (
|
|
4210
|
-
return
|
|
4208
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, $ = this;
|
|
4209
|
+
if (M)
|
|
4210
|
+
return $.$offset = R, $.$u = v === 0, $;
|
|
4211
4211
|
if (v !== 0) {
|
|
4212
|
-
var
|
|
4213
|
-
(
|
|
4212
|
+
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4213
|
+
($ = this.local().add(R + z, r)).$offset = R, $.$x.$localOffset = z;
|
|
4214
4214
|
} else
|
|
4215
|
-
|
|
4216
|
-
return
|
|
4215
|
+
$ = this.utc();
|
|
4216
|
+
return $;
|
|
4217
4217
|
};
|
|
4218
4218
|
var p = o.format;
|
|
4219
4219
|
o.format = function(v) {
|
|
4220
|
-
var
|
|
4221
|
-
return p.call(this,
|
|
4220
|
+
var M = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4221
|
+
return p.call(this, M);
|
|
4222
4222
|
}, o.valueOf = function() {
|
|
4223
4223
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4224
4224
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -4233,24 +4233,24 @@ var Cr = { exports: {} };
|
|
|
4233
4233
|
o.toDate = function(v) {
|
|
4234
4234
|
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4235
4235
|
};
|
|
4236
|
-
var
|
|
4237
|
-
o.diff = function(v,
|
|
4236
|
+
var S = o.diff;
|
|
4237
|
+
o.diff = function(v, M, U) {
|
|
4238
4238
|
if (v && this.$u === v.$u)
|
|
4239
|
-
return
|
|
4240
|
-
var
|
|
4241
|
-
return
|
|
4239
|
+
return S.call(this, v, M, U);
|
|
4240
|
+
var R = this.local(), $ = l(v).local();
|
|
4241
|
+
return S.call(R, $, M, U);
|
|
4242
4242
|
};
|
|
4243
4243
|
};
|
|
4244
4244
|
});
|
|
4245
4245
|
})(Cr);
|
|
4246
|
-
var
|
|
4247
|
-
const
|
|
4248
|
-
function
|
|
4249
|
-
|
|
4246
|
+
var as = Cr.exports;
|
|
4247
|
+
const us = /* @__PURE__ */ Et(as);
|
|
4248
|
+
function ls(e) {
|
|
4249
|
+
Xr(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4250
4250
|
}
|
|
4251
4251
|
function Jt(e, t, r) {
|
|
4252
4252
|
const i = e.slice();
|
|
4253
|
-
return i[
|
|
4253
|
+
return i[52] = t[r], i[54] = r, i;
|
|
4254
4254
|
}
|
|
4255
4255
|
function Qt(e) {
|
|
4256
4256
|
let t, r, i, n, s = Ct(
|
|
@@ -4265,25 +4265,25 @@ function Qt(e) {
|
|
|
4265
4265
|
);
|
|
4266
4266
|
return {
|
|
4267
4267
|
c() {
|
|
4268
|
-
t =
|
|
4268
|
+
t = J("div");
|
|
4269
4269
|
for (let o = 0; o < a.length; o += 1)
|
|
4270
4270
|
a[o].c();
|
|
4271
|
-
r =
|
|
4271
|
+
r = Ee(), l && l.c(), i = Ee(), n = J("cashier-video-modal"), te(t, "class", "CashierVerificationsWrapper"), he(
|
|
4272
4272
|
n,
|
|
4273
4273
|
"clientstylingurl",
|
|
4274
4274
|
/*clientstylingurl*/
|
|
4275
4275
|
e[1]
|
|
4276
|
-
),
|
|
4276
|
+
), he(
|
|
4277
4277
|
n,
|
|
4278
4278
|
"clientstyling",
|
|
4279
4279
|
/*clientstyling*/
|
|
4280
4280
|
e[0]
|
|
4281
|
-
),
|
|
4281
|
+
), he(
|
|
4282
4282
|
n,
|
|
4283
4283
|
"ismobileview",
|
|
4284
4284
|
/*ismobileview*/
|
|
4285
4285
|
e[2]
|
|
4286
|
-
),
|
|
4286
|
+
), he(
|
|
4287
4287
|
n,
|
|
4288
4288
|
"videosrc",
|
|
4289
4289
|
/*videoSrc*/
|
|
@@ -4291,10 +4291,10 @@ function Qt(e) {
|
|
|
4291
4291
|
);
|
|
4292
4292
|
},
|
|
4293
4293
|
m(o, u) {
|
|
4294
|
-
|
|
4294
|
+
le(o, t, u);
|
|
4295
4295
|
for (let h = 0; h < a.length; h += 1)
|
|
4296
4296
|
a[h] && a[h].m(t, null);
|
|
4297
|
-
|
|
4297
|
+
le(o, r, u), l && l.m(o, u), le(o, i, u), le(o, n, u);
|
|
4298
4298
|
},
|
|
4299
4299
|
p(o, u) {
|
|
4300
4300
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -4305,8 +4305,8 @@ function Qt(e) {
|
|
|
4305
4305
|
);
|
|
4306
4306
|
let h;
|
|
4307
4307
|
for (h = 0; h < s.length; h += 1) {
|
|
4308
|
-
const
|
|
4309
|
-
a[h] ? a[h].p(
|
|
4308
|
+
const c = Jt(o, s, h);
|
|
4309
|
+
a[h] ? a[h].p(c, u) : (a[h] = er(c), a[h].c(), a[h].m(t, null));
|
|
4310
4310
|
}
|
|
4311
4311
|
for (; h < a.length; h += 1)
|
|
4312
4312
|
a[h].d(1);
|
|
@@ -4314,25 +4314,25 @@ function Qt(e) {
|
|
|
4314
4314
|
}
|
|
4315
4315
|
/*videoExists*/
|
|
4316
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 &&
|
|
4317
|
+
2 && he(
|
|
4318
4318
|
n,
|
|
4319
4319
|
"clientstylingurl",
|
|
4320
4320
|
/*clientstylingurl*/
|
|
4321
4321
|
o[1]
|
|
4322
4322
|
), u[0] & /*clientstyling*/
|
|
4323
|
-
1 &&
|
|
4323
|
+
1 && he(
|
|
4324
4324
|
n,
|
|
4325
4325
|
"clientstyling",
|
|
4326
4326
|
/*clientstyling*/
|
|
4327
4327
|
o[0]
|
|
4328
4328
|
), u[0] & /*ismobileview*/
|
|
4329
|
-
4 &&
|
|
4329
|
+
4 && he(
|
|
4330
4330
|
n,
|
|
4331
4331
|
"ismobileview",
|
|
4332
4332
|
/*ismobileview*/
|
|
4333
4333
|
o[2]
|
|
4334
4334
|
), u[0] & /*videoSrc*/
|
|
4335
|
-
256 &&
|
|
4335
|
+
256 && he(
|
|
4336
4336
|
n,
|
|
4337
4337
|
"videosrc",
|
|
4338
4338
|
/*videoSrc*/
|
|
@@ -4340,7 +4340,7 @@ function Qt(e) {
|
|
|
4340
4340
|
);
|
|
4341
4341
|
},
|
|
4342
4342
|
d(o) {
|
|
4343
|
-
o && (ne(t), ne(r), ne(i), ne(n)),
|
|
4343
|
+
o && (ne(t), ne(r), ne(i), ne(n)), Yr(a, o), l && l.d(o);
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
4346
4346
|
}
|
|
@@ -4349,19 +4349,19 @@ function Kt(e) {
|
|
|
4349
4349
|
function n(...s) {
|
|
4350
4350
|
return (
|
|
4351
4351
|
/*click_handler*/
|
|
4352
|
-
e[
|
|
4352
|
+
e[19](
|
|
4353
4353
|
/*index*/
|
|
4354
|
-
e[
|
|
4354
|
+
e[54],
|
|
4355
4355
|
...s
|
|
4356
4356
|
)
|
|
4357
4357
|
);
|
|
4358
4358
|
}
|
|
4359
4359
|
return {
|
|
4360
4360
|
c() {
|
|
4361
|
-
t =
|
|
4361
|
+
t = J("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>', te(t, "class", "CashierVerificationChevron");
|
|
4362
4362
|
},
|
|
4363
4363
|
m(s, a) {
|
|
4364
|
-
|
|
4364
|
+
le(s, t, a), r || (i = _t(t, "click", n), r = !0);
|
|
4365
4365
|
},
|
|
4366
4366
|
p(s, a) {
|
|
4367
4367
|
e = s;
|
|
@@ -4374,25 +4374,25 @@ function Kt(e) {
|
|
|
4374
4374
|
function er(e) {
|
|
4375
4375
|
let t, r, i, n, s = (
|
|
4376
4376
|
/*message*/
|
|
4377
|
-
e[
|
|
4377
|
+
e[52] + ""
|
|
4378
4378
|
), a, l, o, u, h = (
|
|
4379
4379
|
/*displayMessages*/
|
|
4380
4380
|
e[4].length > 1 && /*index*/
|
|
4381
|
-
e[
|
|
4381
|
+
e[54] === 0 && Kt(e)
|
|
4382
4382
|
);
|
|
4383
|
-
function
|
|
4383
|
+
function c(...p) {
|
|
4384
4384
|
return (
|
|
4385
4385
|
/*click_handler_1*/
|
|
4386
|
-
e[
|
|
4386
|
+
e[20](
|
|
4387
4387
|
/*index*/
|
|
4388
|
-
e[
|
|
4388
|
+
e[54],
|
|
4389
4389
|
...p
|
|
4390
4390
|
)
|
|
4391
4391
|
);
|
|
4392
4392
|
}
|
|
4393
4393
|
return {
|
|
4394
4394
|
c() {
|
|
4395
|
-
t =
|
|
4395
|
+
t = J("div"), r = J("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = Ee(), n = J("p"), a = Ee(), h && h.c(), l = Ee(), te(r, "class", "IconVerification"), te(n, "class", "text"), te(t, "class", "CashierVerificationMessage"), Se(
|
|
4396
4396
|
t,
|
|
4397
4397
|
"ShowAll",
|
|
4398
4398
|
/*allVerificationsVisible*/
|
|
@@ -4400,15 +4400,15 @@ function er(e) {
|
|
|
4400
4400
|
);
|
|
4401
4401
|
},
|
|
4402
4402
|
m(p, x) {
|
|
4403
|
-
|
|
4403
|
+
le(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 = _t(t, "click", c), o = !0);
|
|
4404
4404
|
},
|
|
4405
4405
|
p(p, x) {
|
|
4406
4406
|
e = p, x[0] & /*displayMessages*/
|
|
4407
4407
|
16 && s !== (s = /*message*/
|
|
4408
|
-
e[
|
|
4408
|
+
e[52] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4409
4409
|
e[4].length > 1 && /*index*/
|
|
4410
|
-
e[
|
|
4411
|
-
32 &&
|
|
4410
|
+
e[54] === 0 ? h ? h.p(e, x) : (h = Kt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4411
|
+
32 && Se(
|
|
4412
4412
|
t,
|
|
4413
4413
|
"ShowAll",
|
|
4414
4414
|
/*allVerificationsVisible*/
|
|
@@ -4427,26 +4427,26 @@ function tr(e) {
|
|
|
4427
4427
|
), a, l, o;
|
|
4428
4428
|
return {
|
|
4429
4429
|
c() {
|
|
4430
|
-
t =
|
|
4430
|
+
t = J("div"), r = J("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = Ee(), n = J("div"), a = xt(s), te(r, "class", "IconVideo"), te(n, "class", "CashierVerificationVideoLink"), Se(
|
|
4431
4431
|
n,
|
|
4432
4432
|
"CashierVerificationVideoLinkDesktop",
|
|
4433
4433
|
/*desktopView*/
|
|
4434
4434
|
e[6]
|
|
4435
|
-
),
|
|
4435
|
+
), te(t, "class", "CashierVerificationVideo");
|
|
4436
4436
|
},
|
|
4437
4437
|
m(u, h) {
|
|
4438
|
-
|
|
4438
|
+
le(u, t, h), re(t, r), re(t, i), re(t, n), re(n, a), l || (o = _t(
|
|
4439
4439
|
n,
|
|
4440
4440
|
"click",
|
|
4441
4441
|
/*click_handler_2*/
|
|
4442
|
-
e[
|
|
4442
|
+
e[21]
|
|
4443
4443
|
), l = !0);
|
|
4444
4444
|
},
|
|
4445
4445
|
p(u, h) {
|
|
4446
4446
|
h[0] & /*$_*/
|
|
4447
4447
|
512 && s !== (s = /*$_*/
|
|
4448
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4449
|
-
64 &&
|
|
4448
|
+
u[9]("verification.video.how-to") + "") && Jr(a, s), h[0] & /*desktopView*/
|
|
4449
|
+
64 && Se(
|
|
4450
4450
|
n,
|
|
4451
4451
|
"CashierVerificationVideoLinkDesktop",
|
|
4452
4452
|
/*desktopView*/
|
|
@@ -4458,14 +4458,14 @@ function tr(e) {
|
|
|
4458
4458
|
}
|
|
4459
4459
|
};
|
|
4460
4460
|
}
|
|
4461
|
-
function
|
|
4461
|
+
function hs(e) {
|
|
4462
4462
|
let t, r = (
|
|
4463
4463
|
/*displayMessages*/
|
|
4464
4464
|
e[4] && Qt(e)
|
|
4465
4465
|
);
|
|
4466
4466
|
return {
|
|
4467
4467
|
c() {
|
|
4468
|
-
t =
|
|
4468
|
+
t = J("div"), r && r.c(), te(t, "class", "CashierVerifications"), Se(
|
|
4469
4469
|
t,
|
|
4470
4470
|
"CashierVerificationsDesktop",
|
|
4471
4471
|
/*desktopView*/
|
|
@@ -4473,56 +4473,56 @@ function ls(e) {
|
|
|
4473
4473
|
);
|
|
4474
4474
|
},
|
|
4475
4475
|
m(i, n) {
|
|
4476
|
-
|
|
4476
|
+
le(i, t, n), r && r.m(t, null), e[22](t);
|
|
4477
4477
|
},
|
|
4478
4478
|
p(i, n) {
|
|
4479
4479
|
/*displayMessages*/
|
|
4480
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*/
|
|
4481
|
-
64 &&
|
|
4481
|
+
64 && Se(
|
|
4482
4482
|
t,
|
|
4483
4483
|
"CashierVerificationsDesktop",
|
|
4484
4484
|
/*desktopView*/
|
|
4485
4485
|
i[6]
|
|
4486
4486
|
);
|
|
4487
4487
|
},
|
|
4488
|
-
i:
|
|
4489
|
-
o:
|
|
4488
|
+
i: ee,
|
|
4489
|
+
o: ee,
|
|
4490
4490
|
d(i) {
|
|
4491
|
-
i && ne(t), r && r.d(), e[
|
|
4491
|
+
i && ne(t), r && r.d(), e[22](null);
|
|
4492
4492
|
}
|
|
4493
4493
|
};
|
|
4494
4494
|
}
|
|
4495
|
-
const
|
|
4496
|
-
function
|
|
4495
|
+
const fs = "verification_explanation_video_widgets.MP4";
|
|
4496
|
+
function cs(e, t, r) {
|
|
4497
4497
|
let i, n;
|
|
4498
|
-
Bt(e,
|
|
4499
|
-
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid:
|
|
4500
|
-
var
|
|
4498
|
+
Bt(e, is, (f) => r(9, i = f)), Bt(e, ss, (f) => r(28, n = f)), Zt.extend(us);
|
|
4499
|
+
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, S, v = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set(), U, R, $, z = !0, I = !0, k = !1, W = "";
|
|
4500
|
+
var Q;
|
|
4501
4501
|
(function(f) {
|
|
4502
4502
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4503
|
-
})(
|
|
4504
|
-
var
|
|
4503
|
+
})(Q || (Q = {}));
|
|
4504
|
+
var q;
|
|
4505
4505
|
(function(f) {
|
|
4506
4506
|
f.Requested = "Requested";
|
|
4507
|
-
})(
|
|
4508
|
-
var
|
|
4507
|
+
})(q || (q = {}));
|
|
4508
|
+
var A;
|
|
4509
4509
|
(function(f) {
|
|
4510
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";
|
|
4511
|
-
})(
|
|
4512
|
-
var
|
|
4511
|
+
})(A || (A = {}));
|
|
4512
|
+
var O;
|
|
4513
4513
|
(function(f) {
|
|
4514
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";
|
|
4515
|
-
})(
|
|
4516
|
-
const
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
],
|
|
4515
|
+
})(O || (O = {}));
|
|
4516
|
+
const ve = [
|
|
4517
|
+
A.InProgress,
|
|
4518
|
+
A.Referred,
|
|
4519
|
+
A.AwaitingForResponse
|
|
4520
|
+
], Fe = () => {
|
|
4521
4521
|
let f = l;
|
|
4522
4522
|
if (f)
|
|
4523
4523
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4524
|
-
Object.keys(y).forEach((
|
|
4525
|
-
qt(
|
|
4524
|
+
Object.keys(y).forEach((T) => {
|
|
4525
|
+
qt(T, y[T]);
|
|
4526
4526
|
});
|
|
4527
4527
|
}).catch((y) => {
|
|
4528
4528
|
console.log(y);
|
|
@@ -4531,194 +4531,185 @@ function fs(e, t, r) {
|
|
|
4531
4531
|
Object.keys(Yt).forEach((f) => {
|
|
4532
4532
|
qt(f, Yt[f]);
|
|
4533
4533
|
});
|
|
4534
|
-
const
|
|
4535
|
-
|
|
4536
|
-
}, _ = () => {
|
|
4537
|
-
let f = document.createElement("style");
|
|
4538
|
-
f.innerHTML = o, x.appendChild(f);
|
|
4534
|
+
const _ = () => {
|
|
4535
|
+
ns(a);
|
|
4539
4536
|
}, g = () => {
|
|
4537
|
+
let f = document.createElement("style");
|
|
4538
|
+
f.innerHTML = o, S.appendChild(f);
|
|
4539
|
+
}, d = () => {
|
|
4540
4540
|
let f = new URL(u), y = document.createElement("style");
|
|
4541
|
-
fetch(f.href).then((
|
|
4542
|
-
y.innerHTML =
|
|
4541
|
+
fetch(f.href).then((T) => T.text()).then((T) => {
|
|
4542
|
+
y.innerHTML = T, setTimeout(
|
|
4543
4543
|
() => {
|
|
4544
|
-
|
|
4544
|
+
S.appendChild(y);
|
|
4545
4545
|
},
|
|
4546
4546
|
1
|
|
4547
4547
|
);
|
|
4548
4548
|
});
|
|
4549
|
-
},
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
const
|
|
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 = {
|
|
4549
|
+
}, b = () => {
|
|
4550
|
+
r(18, R = E());
|
|
4551
|
+
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${a}`), y = new Headers();
|
|
4552
|
+
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${x}`), y.append("X-Client-Request-Timestamp", Zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4553
|
+
const T = {
|
|
4556
4554
|
method: "POST",
|
|
4557
|
-
headers:
|
|
4558
|
-
body: JSON.stringify({
|
|
4559
|
-
MerchantId: f,
|
|
4560
|
-
CustomerId: y,
|
|
4561
|
-
All: !1,
|
|
4562
|
-
AllParameters: !1
|
|
4563
|
-
})
|
|
4555
|
+
headers: y,
|
|
4556
|
+
body: JSON.stringify({})
|
|
4564
4557
|
};
|
|
4565
|
-
fetch(
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
}), r(4,
|
|
4558
|
+
fetch(f, T).then((V) => V.json()).then((V) => {
|
|
4559
|
+
U = w(V.Verifications), U.VerificationStatuses.forEach((ue) => {
|
|
4560
|
+
ue.VerificationUrlType !== "Widget" && v.add(ue.Vendor);
|
|
4561
|
+
}), r(4, $ = se());
|
|
4569
4562
|
});
|
|
4570
|
-
}, b = () => {
|
|
4571
|
-
n && c();
|
|
4572
4563
|
}, m = () => {
|
|
4564
|
+
n && b();
|
|
4565
|
+
}, E = () => {
|
|
4573
4566
|
let f = (h || n).split(".")[1];
|
|
4574
4567
|
if (f) {
|
|
4575
4568
|
let y = JSON.parse(atob(f));
|
|
4576
|
-
return
|
|
4577
|
-
merchantId: y == null ? void 0 : y.mid,
|
|
4578
|
-
customerId: `${y == null ? void 0 : y.mid}~${d}`
|
|
4579
|
-
};
|
|
4569
|
+
return y.cdn + "/cashier/operator-assets/" + (y == null ? void 0 : y.mid);
|
|
4580
4570
|
}
|
|
4581
|
-
return
|
|
4582
|
-
},
|
|
4583
|
-
var
|
|
4571
|
+
return "";
|
|
4572
|
+
}, w = (f) => {
|
|
4573
|
+
var T;
|
|
4584
4574
|
if (!f || !f.length)
|
|
4585
4575
|
return {
|
|
4586
|
-
VerificationSummaryStatus:
|
|
4576
|
+
VerificationSummaryStatus: A.Unverified,
|
|
4587
4577
|
VerificationStatuses: []
|
|
4588
4578
|
};
|
|
4589
|
-
const y =
|
|
4579
|
+
const y = N(f);
|
|
4590
4580
|
if (y && y.length) {
|
|
4591
|
-
const
|
|
4581
|
+
const V = B(y);
|
|
4592
4582
|
return {
|
|
4593
|
-
VerificationSummaryStatus:
|
|
4594
|
-
VerificationUrl: (
|
|
4595
|
-
VerificationStatuses:
|
|
4583
|
+
VerificationSummaryStatus: V.Status,
|
|
4584
|
+
VerificationUrl: (T = V.Flags) == null ? void 0 : T.DeferredUrlKey,
|
|
4585
|
+
VerificationStatuses: C(y, V.Status)
|
|
4596
4586
|
};
|
|
4597
4587
|
} else
|
|
4598
4588
|
return {
|
|
4599
|
-
VerificationSummaryStatus: f.some((
|
|
4600
|
-
VerificationStatuses:
|
|
4589
|
+
VerificationSummaryStatus: f.some((ue) => ue.Status === A.Failed) ? A.Failed : A.Verified,
|
|
4590
|
+
VerificationStatuses: C(f, [A.Failed])
|
|
4601
4591
|
};
|
|
4602
|
-
},
|
|
4603
|
-
(y,
|
|
4592
|
+
}, B = (f) => f.reduce(
|
|
4593
|
+
(y, T) => y ? new Date(y) < new Date(T) ? T : y : T,
|
|
4604
4594
|
0
|
|
4605
|
-
),
|
|
4606
|
-
var
|
|
4595
|
+
), C = (f, y) => f.filter((T) => y.includes(T.Status)).map((T) => {
|
|
4596
|
+
var V, ue;
|
|
4607
4597
|
return {
|
|
4608
|
-
Type:
|
|
4609
|
-
Vendor:
|
|
4610
|
-
VerificationDocuments:
|
|
4611
|
-
VerificationUrlType: (
|
|
4612
|
-
VerificationUrl: (
|
|
4598
|
+
Type: T.Type,
|
|
4599
|
+
Vendor: T.VendorName,
|
|
4600
|
+
VerificationDocuments: T.Documents ? [...T.Documents] : [],
|
|
4601
|
+
VerificationUrlType: (V = T.FlowInfo) == null ? void 0 : V.Type,
|
|
4602
|
+
VerificationUrl: (ue = T.FlowInfo) == null ? void 0 : ue.Url
|
|
4613
4603
|
};
|
|
4614
|
-
}),
|
|
4615
|
-
const y = f.Documents && f.VendorName ===
|
|
4616
|
-
return y &&
|
|
4617
|
-
},
|
|
4618
|
-
switch (
|
|
4619
|
-
case
|
|
4604
|
+
}), N = (f) => f.filter((y) => ve.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || F(y) || X(y) : !1), F = (f) => {
|
|
4605
|
+
const y = f.Documents && f.VendorName === Q.Manual, T = f.Documents && f.Documents.some((V) => V.Status === q.Requested);
|
|
4606
|
+
return y && T;
|
|
4607
|
+
}, X = (f) => f.VendorName === Q.ShuftiPro && f.Status === A.Referred, se = () => {
|
|
4608
|
+
switch (U.VerificationSummaryStatus) {
|
|
4609
|
+
case A.InProgress:
|
|
4620
4610
|
const f = [];
|
|
4621
|
-
return
|
|
4622
|
-
f.push(
|
|
4611
|
+
return v.forEach((y) => {
|
|
4612
|
+
f.push(oe(y));
|
|
4623
4613
|
}), f;
|
|
4624
|
-
case
|
|
4614
|
+
case A.Referred:
|
|
4625
4615
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4626
|
-
case
|
|
4616
|
+
case A.Failed:
|
|
4627
4617
|
return [i("verification.message.failed")];
|
|
4628
4618
|
}
|
|
4629
|
-
},
|
|
4630
|
-
const y =
|
|
4631
|
-
if (f ===
|
|
4632
|
-
return
|
|
4619
|
+
}, oe = (f) => {
|
|
4620
|
+
const y = U.VerificationStatuses.filter((T) => T.Vendor === f);
|
|
4621
|
+
if (f === Q.ShuftiPro)
|
|
4622
|
+
return de(y);
|
|
4633
4623
|
{
|
|
4634
|
-
const
|
|
4635
|
-
link: `<a href="${y[0].VerificationUrl}" target="_blank">${
|
|
4624
|
+
const T = i("verification.idenfy.link-name"), V = {
|
|
4625
|
+
link: `<a href="${y[0].VerificationUrl}" target="_blank">${T}</a>`
|
|
4636
4626
|
};
|
|
4637
|
-
return i("verification.idenfy.in-progress", { values:
|
|
4627
|
+
return i("verification.idenfy.in-progress", { values: V });
|
|
4638
4628
|
}
|
|
4639
|
-
},
|
|
4640
|
-
const y = [],
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4629
|
+
}, de = (f) => {
|
|
4630
|
+
const y = [], T = {}, V = [
|
|
4631
|
+
O.Biometric,
|
|
4632
|
+
O.Documents,
|
|
4633
|
+
O.ProofOfAddress
|
|
4644
4634
|
];
|
|
4645
|
-
f.forEach((
|
|
4646
|
-
|
|
4635
|
+
f.forEach((pe) => {
|
|
4636
|
+
V.includes(pe.Type) && (y.push(pe.Type), T[pe.Type] = ae(pe, G(pe.Type)));
|
|
4647
4637
|
});
|
|
4648
|
-
let
|
|
4649
|
-
return
|
|
4650
|
-
},
|
|
4638
|
+
let ue = y.every((pe) => M.has(pe)), kr = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4639
|
+
return ue ? i("verification.shuftipro.validations-started") : i(kr, { values: T });
|
|
4640
|
+
}, ae = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, G = (f) => i(`verification.shuftipro.link-name.${f}`), Y = (f, y) => {
|
|
4651
4641
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4652
4642
|
if (f.target.closest(".verificationLink")) {
|
|
4653
|
-
const
|
|
4654
|
-
|
|
4643
|
+
const T = f.target.className.split(" ")[1];
|
|
4644
|
+
M.add(T), r(4, $ = se());
|
|
4655
4645
|
}
|
|
4656
4646
|
return;
|
|
4657
4647
|
}
|
|
4658
|
-
y === 0 && r(5,
|
|
4659
|
-
},
|
|
4660
|
-
r(6,
|
|
4661
|
-
},
|
|
4662
|
-
r(8,
|
|
4648
|
+
y === 0 && r(5, z = !z);
|
|
4649
|
+
}, me = () => {
|
|
4650
|
+
r(6, I = p === "false");
|
|
4651
|
+
}, be = () => {
|
|
4652
|
+
r(8, W = R + "/" + a + "/" + fs);
|
|
4663
4653
|
try {
|
|
4664
|
-
fetch(
|
|
4665
|
-
r(7,
|
|
4654
|
+
fetch(W, { method: "HEAD" }).then((f) => {
|
|
4655
|
+
r(7, k = f.ok);
|
|
4666
4656
|
});
|
|
4667
4657
|
} catch (f) {
|
|
4668
|
-
r(7,
|
|
4658
|
+
r(7, k = !1);
|
|
4669
4659
|
}
|
|
4670
|
-
},
|
|
4660
|
+
}, Tt = () => {
|
|
4671
4661
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4672
|
-
}, Lr = (f, y) =>
|
|
4662
|
+
}, Lr = (f, y) => Y(y, f), Ir = (f, y) => Y(y, f), Nr = () => Tt();
|
|
4673
4663
|
function Rr(f) {
|
|
4674
|
-
|
|
4675
|
-
|
|
4664
|
+
ut[f ? "unshift" : "push"](() => {
|
|
4665
|
+
S = f, r(3, S);
|
|
4676
4666
|
});
|
|
4677
4667
|
}
|
|
4678
4668
|
return e.$$set = (f) => {
|
|
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,
|
|
4669
|
+
"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, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(17, x = f.playersession);
|
|
4680
4670
|
}, e.$$.update = () => {
|
|
4681
4671
|
e.$$.dirty[0] & /*lang*/
|
|
4682
|
-
8192 && a &&
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
16384 && l &&
|
|
4686
|
-
9 && o &&
|
|
4687
|
-
10 && u &&
|
|
4688
|
-
4 && p &&
|
|
4689
|
-
|
|
4672
|
+
8192 && a && _(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4673
|
+
167936 && s && h && x && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4674
|
+
167936 && s && !h && x && m(), e.$$.dirty[0] & /*translationurl*/
|
|
4675
|
+
16384 && l && Fe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4676
|
+
9 && o && S && g(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4677
|
+
10 && u && S && d(), e.$$.dirty[0] & /*ismobileview*/
|
|
4678
|
+
4 && p && me(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4679
|
+
262144 && R && be();
|
|
4690
4680
|
}, [
|
|
4691
4681
|
o,
|
|
4692
4682
|
u,
|
|
4693
4683
|
p,
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
N,
|
|
4684
|
+
S,
|
|
4685
|
+
$,
|
|
4686
|
+
z,
|
|
4687
|
+
I,
|
|
4699
4688
|
k,
|
|
4689
|
+
W,
|
|
4700
4690
|
i,
|
|
4701
|
-
|
|
4702
|
-
|
|
4691
|
+
Y,
|
|
4692
|
+
Tt,
|
|
4703
4693
|
s,
|
|
4704
4694
|
a,
|
|
4705
4695
|
l,
|
|
4706
4696
|
h,
|
|
4707
|
-
|
|
4708
|
-
|
|
4697
|
+
c,
|
|
4698
|
+
x,
|
|
4699
|
+
R,
|
|
4709
4700
|
Lr,
|
|
4710
4701
|
Ir,
|
|
4711
4702
|
Nr,
|
|
4712
4703
|
Rr
|
|
4713
4704
|
];
|
|
4714
4705
|
}
|
|
4715
|
-
class Dr extends
|
|
4706
|
+
class Dr extends fi {
|
|
4716
4707
|
constructor(t) {
|
|
4717
|
-
super(),
|
|
4708
|
+
super(), li(
|
|
4718
4709
|
this,
|
|
4719
4710
|
t,
|
|
4720
|
-
|
|
4721
|
-
|
|
4711
|
+
cs,
|
|
4712
|
+
hs,
|
|
4722
4713
|
ir,
|
|
4723
4714
|
{
|
|
4724
4715
|
endpoint: 12,
|
|
@@ -4728,9 +4719,10 @@ class Dr extends hi {
|
|
|
4728
4719
|
clientstylingurl: 1,
|
|
4729
4720
|
session: 15,
|
|
4730
4721
|
customerid: 16,
|
|
4731
|
-
ismobileview: 2
|
|
4722
|
+
ismobileview: 2,
|
|
4723
|
+
playersession: 17
|
|
4732
4724
|
},
|
|
4733
|
-
|
|
4725
|
+
ls,
|
|
4734
4726
|
[-1, -1]
|
|
4735
4727
|
);
|
|
4736
4728
|
}
|
|
@@ -4738,76 +4730,82 @@ class Dr extends hi {
|
|
|
4738
4730
|
return this.$$.ctx[12];
|
|
4739
4731
|
}
|
|
4740
4732
|
set endpoint(t) {
|
|
4741
|
-
this.$$set({ endpoint: t }),
|
|
4733
|
+
this.$$set({ endpoint: t }), K();
|
|
4742
4734
|
}
|
|
4743
4735
|
get lang() {
|
|
4744
4736
|
return this.$$.ctx[13];
|
|
4745
4737
|
}
|
|
4746
4738
|
set lang(t) {
|
|
4747
|
-
this.$$set({ lang: t }),
|
|
4739
|
+
this.$$set({ lang: t }), K();
|
|
4748
4740
|
}
|
|
4749
4741
|
get translationurl() {
|
|
4750
4742
|
return this.$$.ctx[14];
|
|
4751
4743
|
}
|
|
4752
4744
|
set translationurl(t) {
|
|
4753
|
-
this.$$set({ translationurl: t }),
|
|
4745
|
+
this.$$set({ translationurl: t }), K();
|
|
4754
4746
|
}
|
|
4755
4747
|
get clientstyling() {
|
|
4756
4748
|
return this.$$.ctx[0];
|
|
4757
4749
|
}
|
|
4758
4750
|
set clientstyling(t) {
|
|
4759
|
-
this.$$set({ clientstyling: t }),
|
|
4751
|
+
this.$$set({ clientstyling: t }), K();
|
|
4760
4752
|
}
|
|
4761
4753
|
get clientstylingurl() {
|
|
4762
4754
|
return this.$$.ctx[1];
|
|
4763
4755
|
}
|
|
4764
4756
|
set clientstylingurl(t) {
|
|
4765
|
-
this.$$set({ clientstylingurl: t }),
|
|
4757
|
+
this.$$set({ clientstylingurl: t }), K();
|
|
4766
4758
|
}
|
|
4767
4759
|
get session() {
|
|
4768
4760
|
return this.$$.ctx[15];
|
|
4769
4761
|
}
|
|
4770
4762
|
set session(t) {
|
|
4771
|
-
this.$$set({ session: t }),
|
|
4763
|
+
this.$$set({ session: t }), K();
|
|
4772
4764
|
}
|
|
4773
4765
|
get customerid() {
|
|
4774
4766
|
return this.$$.ctx[16];
|
|
4775
4767
|
}
|
|
4776
4768
|
set customerid(t) {
|
|
4777
|
-
this.$$set({ customerid: t }),
|
|
4769
|
+
this.$$set({ customerid: t }), K();
|
|
4778
4770
|
}
|
|
4779
4771
|
get ismobileview() {
|
|
4780
4772
|
return this.$$.ctx[2];
|
|
4781
4773
|
}
|
|
4782
4774
|
set ismobileview(t) {
|
|
4783
|
-
this.$$set({ ismobileview: t }),
|
|
4775
|
+
this.$$set({ ismobileview: t }), K();
|
|
4776
|
+
}
|
|
4777
|
+
get playersession() {
|
|
4778
|
+
return this.$$.ctx[17];
|
|
4779
|
+
}
|
|
4780
|
+
set playersession(t) {
|
|
4781
|
+
this.$$set({ playersession: t }), K();
|
|
4784
4782
|
}
|
|
4785
4783
|
}
|
|
4786
|
-
|
|
4787
|
-
const
|
|
4784
|
+
hi(Dr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
4785
|
+
const bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4788
4786
|
__proto__: null,
|
|
4789
4787
|
default: Dr
|
|
4790
4788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4791
4789
|
export {
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4790
|
+
bs as C,
|
|
4791
|
+
fi as S,
|
|
4792
|
+
Xr as a,
|
|
4793
|
+
le as b,
|
|
4794
|
+
ms as c,
|
|
4797
4795
|
ne as d,
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4796
|
+
gs as e,
|
|
4797
|
+
K as f,
|
|
4798
|
+
te as g,
|
|
4801
4799
|
re as h,
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4800
|
+
li as i,
|
|
4801
|
+
J as j,
|
|
4802
|
+
Ee as k,
|
|
4803
|
+
ut as l,
|
|
4804
|
+
_t as m,
|
|
4805
|
+
ee as n,
|
|
4806
|
+
vs as o,
|
|
4807
|
+
ps as p,
|
|
4808
|
+
hi as q,
|
|
4811
4809
|
ir as s,
|
|
4812
|
-
|
|
4810
|
+
Se as t
|
|
4813
4811
|
};
|