@everymatrix/cashier-verifications 1.48.2 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierVerifications-BfMdVRLj.js → CashierVerifications-B5yMTtR9.js} +1511 -1341
- package/components/CashierVerifications-CKHauoyK.cjs +5 -0
- package/components/CashierVideoModal-BJBn3Hzn.js +191 -0
- package/components/CashierVideoModal-DdLPfB0q.cjs +1 -0
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +7 -7
- package/package.json +1 -1
- package/components/CashierVerifications-D4Im__RX.cjs +0 -5
|
@@ -1,75 +1,79 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Lr = Object.defineProperty, Nr = Object.defineProperties;
|
|
2
|
+
var Rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ht = Object.getOwnPropertySymbols;
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ke = (e, t, r) => t in e ? Lr(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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
kr.call(t, r) && Ke(e, r, t[r]);
|
|
8
|
+
if (Ht)
|
|
9
|
+
for (var r of Ht(t))
|
|
10
|
+
Ur.call(t, r) && Ke(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var s = (
|
|
12
|
+
}, At = (e, t) => Nr(e, Rr(t));
|
|
13
|
+
var Z = (e, t, r) => Ke(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var Pt = (e, t, r) => new Promise((i, n) => {
|
|
15
|
+
var s = (o) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
n(
|
|
17
|
+
l(r.next(o));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
n(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (o) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
n(
|
|
23
|
+
l(r.throw(o));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
n(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, l = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(s, a);
|
|
28
|
+
l((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ee() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function $t() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Le(e) {
|
|
39
|
+
e.forEach(tr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function bt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function rr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
let Ue;
|
|
48
|
+
function ls(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
|
|
50
|
+
}
|
|
51
|
+
function Fr(e) {
|
|
48
52
|
return Object.keys(e).length === 0;
|
|
49
53
|
}
|
|
50
|
-
function
|
|
54
|
+
function ir(e, ...t) {
|
|
51
55
|
if (e == null) {
|
|
52
56
|
for (const i of t)
|
|
53
57
|
i(void 0);
|
|
54
|
-
return
|
|
58
|
+
return ee;
|
|
55
59
|
}
|
|
56
60
|
const r = e.subscribe(...t);
|
|
57
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
62
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Gr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(ir(t, r));
|
|
61
65
|
}
|
|
62
|
-
function
|
|
66
|
+
function ie(e, t) {
|
|
63
67
|
e.appendChild(t);
|
|
64
68
|
}
|
|
65
|
-
function
|
|
66
|
-
const i =
|
|
69
|
+
function Vr(e, t, r) {
|
|
70
|
+
const i = jr(e);
|
|
67
71
|
if (!i.getElementById(t)) {
|
|
68
|
-
const n =
|
|
69
|
-
n.id = t, n.textContent = r,
|
|
72
|
+
const n = J("style");
|
|
73
|
+
n.id = t, n.textContent = r, zr(i, n);
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
|
-
function
|
|
76
|
+
function jr(e) {
|
|
73
77
|
if (!e) return document;
|
|
74
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,45 +82,59 @@ function Cr(e) {
|
|
|
78
82
|
t
|
|
79
83
|
) : e.ownerDocument;
|
|
80
84
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
85
|
+
function zr(e, t) {
|
|
86
|
+
return ie(
|
|
83
87
|
/** @type {Document} */
|
|
84
88
|
e.head || e,
|
|
85
89
|
t
|
|
86
90
|
), t.sheet;
|
|
87
91
|
}
|
|
88
|
-
function
|
|
92
|
+
function ue(e, t, r) {
|
|
89
93
|
e.insertBefore(t, r || null);
|
|
90
94
|
}
|
|
91
|
-
function
|
|
95
|
+
function ne(e) {
|
|
92
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
97
|
}
|
|
94
|
-
function
|
|
98
|
+
function Xr(e, t) {
|
|
95
99
|
for (let r = 0; r < e.length; r += 1)
|
|
96
100
|
e[r] && e[r].d(t);
|
|
97
101
|
}
|
|
98
|
-
function
|
|
102
|
+
function J(e) {
|
|
99
103
|
return document.createElement(e);
|
|
100
104
|
}
|
|
101
|
-
function
|
|
105
|
+
function hs(e) {
|
|
106
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
107
|
+
}
|
|
108
|
+
function yt(e) {
|
|
102
109
|
return document.createTextNode(e);
|
|
103
110
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
111
|
+
function _e() {
|
|
112
|
+
return yt(" ");
|
|
106
113
|
}
|
|
107
|
-
function
|
|
114
|
+
function fs() {
|
|
115
|
+
return yt("");
|
|
116
|
+
}
|
|
117
|
+
function xt(e, t, r, i) {
|
|
108
118
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
109
119
|
}
|
|
110
|
-
function
|
|
120
|
+
function te(e, t, r) {
|
|
111
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
122
|
}
|
|
113
|
-
function
|
|
123
|
+
function fe(e, t, r) {
|
|
124
|
+
const i = t.toLowerCase();
|
|
125
|
+
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);
|
|
126
|
+
}
|
|
127
|
+
function Wr(e) {
|
|
114
128
|
return Array.from(e.childNodes);
|
|
115
129
|
}
|
|
116
|
-
function
|
|
130
|
+
function qr(e, t) {
|
|
131
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
132
|
+
t);
|
|
133
|
+
}
|
|
134
|
+
function ze(e, t, r) {
|
|
117
135
|
e.classList.toggle(t, !!r);
|
|
118
136
|
}
|
|
119
|
-
function
|
|
137
|
+
function Yr(e) {
|
|
120
138
|
const t = {};
|
|
121
139
|
return e.childNodes.forEach(
|
|
122
140
|
/** @param {Element} node */
|
|
@@ -125,139 +143,146 @@ function Rr(e) {
|
|
|
125
143
|
}
|
|
126
144
|
), t;
|
|
127
145
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
146
|
+
let Ce;
|
|
147
|
+
function Me(e) {
|
|
148
|
+
Ce = e;
|
|
149
|
+
}
|
|
150
|
+
function Zr() {
|
|
151
|
+
if (!Ce) throw new Error("Function called outside component initialization");
|
|
152
|
+
return Ce;
|
|
153
|
+
}
|
|
154
|
+
function cs(e) {
|
|
155
|
+
Zr().$$.on_mount.push(e);
|
|
131
156
|
}
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
const
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
157
|
+
const xe = [], at = [];
|
|
158
|
+
let Ee = [];
|
|
159
|
+
const Bt = [], Jr = /* @__PURE__ */ Promise.resolve();
|
|
160
|
+
let ut = !1;
|
|
161
|
+
function Qr() {
|
|
162
|
+
ut || (ut = !0, Jr.then(K));
|
|
138
163
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
164
|
+
function lt(e) {
|
|
165
|
+
Ee.push(e);
|
|
141
166
|
}
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
if (
|
|
167
|
+
const et = /* @__PURE__ */ new Set();
|
|
168
|
+
let be = 0;
|
|
169
|
+
function K() {
|
|
170
|
+
if (be !== 0)
|
|
146
171
|
return;
|
|
147
|
-
const e =
|
|
172
|
+
const e = Ce;
|
|
148
173
|
do {
|
|
149
174
|
try {
|
|
150
|
-
for (;
|
|
151
|
-
const t =
|
|
152
|
-
|
|
175
|
+
for (; be < xe.length; ) {
|
|
176
|
+
const t = xe[be];
|
|
177
|
+
be++, Me(t), Kr(t.$$);
|
|
153
178
|
}
|
|
154
179
|
} catch (t) {
|
|
155
|
-
throw
|
|
180
|
+
throw xe.length = 0, be = 0, t;
|
|
156
181
|
}
|
|
157
|
-
for (
|
|
158
|
-
for (let t = 0; t <
|
|
159
|
-
const r =
|
|
160
|
-
|
|
182
|
+
for (Me(null), xe.length = 0, be = 0; at.length; ) at.pop()();
|
|
183
|
+
for (let t = 0; t < Ee.length; t += 1) {
|
|
184
|
+
const r = Ee[t];
|
|
185
|
+
et.has(r) || (et.add(r), r());
|
|
161
186
|
}
|
|
162
|
-
|
|
163
|
-
} while (
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
|
|
187
|
+
Ee.length = 0;
|
|
188
|
+
} while (xe.length);
|
|
189
|
+
for (; Bt.length; )
|
|
190
|
+
Bt.pop()();
|
|
191
|
+
ut = !1, et.clear(), Me(e);
|
|
167
192
|
}
|
|
168
|
-
function
|
|
193
|
+
function Kr(e) {
|
|
169
194
|
if (e.fragment !== null) {
|
|
170
|
-
e.update(),
|
|
195
|
+
e.update(), Le(e.before_update);
|
|
171
196
|
const t = e.dirty;
|
|
172
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
197
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
|
|
173
198
|
}
|
|
174
199
|
}
|
|
175
|
-
function
|
|
200
|
+
function ei(e) {
|
|
176
201
|
const t = [], r = [];
|
|
177
|
-
|
|
202
|
+
Ee.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), Ee = t;
|
|
178
203
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
e && e.i && (
|
|
204
|
+
const ti = /* @__PURE__ */ new Set();
|
|
205
|
+
function ri(e, t) {
|
|
206
|
+
e && e.i && (ti.delete(e), e.i(t));
|
|
182
207
|
}
|
|
183
|
-
function
|
|
208
|
+
function Mt(e) {
|
|
184
209
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
185
210
|
}
|
|
186
|
-
function
|
|
211
|
+
function ii(e, t, r) {
|
|
187
212
|
const { fragment: i, after_update: n } = e.$$;
|
|
188
|
-
i && i.m(t, r),
|
|
189
|
-
const s = e.$$.on_mount.map(
|
|
190
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
191
|
-
}), n.forEach(
|
|
213
|
+
i && i.m(t, r), lt(() => {
|
|
214
|
+
const s = e.$$.on_mount.map(tr).filter(bt);
|
|
215
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Le(s), e.$$.on_mount = [];
|
|
216
|
+
}), n.forEach(lt);
|
|
192
217
|
}
|
|
193
|
-
function
|
|
218
|
+
function ni(e, t) {
|
|
194
219
|
const r = e.$$;
|
|
195
|
-
r.fragment !== null && (
|
|
220
|
+
r.fragment !== null && (ei(r.after_update), Le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
196
221
|
}
|
|
197
|
-
function
|
|
198
|
-
e.$$.dirty[0] === -1 && (
|
|
222
|
+
function si(e, t) {
|
|
223
|
+
e.$$.dirty[0] === -1 && (xe.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
199
224
|
}
|
|
200
|
-
function
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
const
|
|
225
|
+
function oi(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
226
|
+
const o = Ce;
|
|
227
|
+
Me(e);
|
|
228
|
+
const u = e.$$ = {
|
|
204
229
|
fragment: null,
|
|
205
230
|
ctx: [],
|
|
206
231
|
// state
|
|
207
232
|
props: s,
|
|
208
|
-
update:
|
|
233
|
+
update: ee,
|
|
209
234
|
not_equal: n,
|
|
210
|
-
bound:
|
|
235
|
+
bound: $t(),
|
|
211
236
|
// lifecycle
|
|
212
237
|
on_mount: [],
|
|
213
238
|
on_destroy: [],
|
|
214
239
|
on_disconnect: [],
|
|
215
240
|
before_update: [],
|
|
216
241
|
after_update: [],
|
|
217
|
-
context: new Map(t.context || (
|
|
242
|
+
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
218
243
|
// everything else
|
|
219
|
-
callbacks:
|
|
220
|
-
dirty:
|
|
244
|
+
callbacks: $t(),
|
|
245
|
+
dirty: l,
|
|
221
246
|
skip_bound: !1,
|
|
222
|
-
root: t.target ||
|
|
247
|
+
root: t.target || o.$$.root
|
|
223
248
|
};
|
|
224
|
-
|
|
225
|
-
let
|
|
226
|
-
if (
|
|
227
|
-
const
|
|
228
|
-
return
|
|
229
|
-
}) : [],
|
|
249
|
+
a && a(u.root);
|
|
250
|
+
let h = !1;
|
|
251
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
252
|
+
const H = x.length ? x[0] : p;
|
|
253
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h && si(e, c)), p;
|
|
254
|
+
}) : [], u.update(), h = !0, Le(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
230
255
|
if (t.hydrate) {
|
|
231
|
-
const
|
|
232
|
-
|
|
256
|
+
const c = Wr(t.target);
|
|
257
|
+
u.fragment && u.fragment.l(c), c.forEach(ne);
|
|
233
258
|
} else
|
|
234
|
-
|
|
235
|
-
t.intro &&
|
|
259
|
+
u.fragment && u.fragment.c();
|
|
260
|
+
t.intro && ri(e.$$.fragment), ii(e, t.target, t.anchor), K();
|
|
236
261
|
}
|
|
237
|
-
|
|
262
|
+
Me(o);
|
|
238
263
|
}
|
|
239
|
-
let
|
|
240
|
-
typeof HTMLElement == "function" && (
|
|
264
|
+
let nr;
|
|
265
|
+
typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
241
266
|
constructor(t, r, i) {
|
|
242
267
|
super();
|
|
243
268
|
/** The Svelte component constructor */
|
|
244
|
-
|
|
269
|
+
Z(this, "$$ctor");
|
|
245
270
|
/** Slots */
|
|
246
|
-
|
|
271
|
+
Z(this, "$$s");
|
|
247
272
|
/** The Svelte component instance */
|
|
248
|
-
|
|
273
|
+
Z(this, "$$c");
|
|
249
274
|
/** Whether or not the custom element is connected */
|
|
250
|
-
|
|
275
|
+
Z(this, "$$cn", !1);
|
|
251
276
|
/** Component props data */
|
|
252
|
-
|
|
277
|
+
Z(this, "$$d", {});
|
|
253
278
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
254
|
-
|
|
279
|
+
Z(this, "$$r", !1);
|
|
255
280
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
256
|
-
|
|
281
|
+
Z(this, "$$p_d", {});
|
|
257
282
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
258
|
-
|
|
283
|
+
Z(this, "$$l", {});
|
|
259
284
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
260
|
-
|
|
285
|
+
Z(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
261
286
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
262
287
|
}
|
|
263
288
|
addEventListener(t, r, i) {
|
|
@@ -274,42 +299,42 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
274
299
|
}
|
|
275
300
|
}
|
|
276
301
|
connectedCallback() {
|
|
277
|
-
return
|
|
302
|
+
return Pt(this, null, function* () {
|
|
278
303
|
if (this.$$cn = !0, !this.$$c) {
|
|
279
304
|
let t = function(s) {
|
|
280
305
|
return () => {
|
|
281
|
-
let
|
|
306
|
+
let a;
|
|
282
307
|
return {
|
|
283
308
|
c: function() {
|
|
284
|
-
|
|
309
|
+
a = J("slot"), s !== "default" && te(a, "name", s);
|
|
285
310
|
},
|
|
286
311
|
/**
|
|
287
312
|
* @param {HTMLElement} target
|
|
288
313
|
* @param {HTMLElement} [anchor]
|
|
289
314
|
*/
|
|
290
|
-
m: function(
|
|
291
|
-
|
|
315
|
+
m: function(u, h) {
|
|
316
|
+
ue(u, a, h);
|
|
292
317
|
},
|
|
293
|
-
d: function(
|
|
294
|
-
|
|
318
|
+
d: function(u) {
|
|
319
|
+
u && ne(a);
|
|
295
320
|
}
|
|
296
321
|
};
|
|
297
322
|
};
|
|
298
323
|
};
|
|
299
324
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
300
325
|
return;
|
|
301
|
-
const r = {}, i =
|
|
326
|
+
const r = {}, i = Yr(this);
|
|
302
327
|
for (const s of this.$$s)
|
|
303
328
|
s in i && (r[s] = [t(s)]);
|
|
304
329
|
for (const s of this.attributes) {
|
|
305
|
-
const
|
|
306
|
-
|
|
330
|
+
const a = this.$$g_p(s.name);
|
|
331
|
+
a in this.$$d || (this.$$d[a] = Ge(a, s.value, this.$$p_d, "toProp"));
|
|
307
332
|
}
|
|
308
333
|
for (const s in this.$$p_d)
|
|
309
334
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
310
335
|
this.$$c = new this.$$ctor({
|
|
311
336
|
target: this.shadowRoot || this,
|
|
312
|
-
props:
|
|
337
|
+
props: At(Ot({}, this.$$d), {
|
|
313
338
|
$$slots: r,
|
|
314
339
|
$$scope: {
|
|
315
340
|
ctx: []
|
|
@@ -320,21 +345,21 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
320
345
|
this.$$r = !0;
|
|
321
346
|
for (const s in this.$$p_d)
|
|
322
347
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
323
|
-
const
|
|
348
|
+
const a = Ge(
|
|
324
349
|
s,
|
|
325
350
|
this.$$d[s],
|
|
326
351
|
this.$$p_d,
|
|
327
352
|
"toAttribute"
|
|
328
353
|
);
|
|
329
|
-
|
|
354
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
330
355
|
}
|
|
331
356
|
this.$$r = !1;
|
|
332
357
|
};
|
|
333
358
|
this.$$c.$$.after_update.push(n), n();
|
|
334
359
|
for (const s in this.$$l)
|
|
335
|
-
for (const
|
|
336
|
-
const
|
|
337
|
-
this.$$l_u.set(
|
|
360
|
+
for (const a of this.$$l[s]) {
|
|
361
|
+
const l = this.$$c.$on(s, a);
|
|
362
|
+
this.$$l_u.set(a, l);
|
|
338
363
|
}
|
|
339
364
|
this.$$l = {};
|
|
340
365
|
}
|
|
@@ -344,7 +369,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
344
369
|
// and setting attributes through setAttribute etc, this is helpful
|
|
345
370
|
attributeChangedCallback(t, r, i) {
|
|
346
371
|
var n;
|
|
347
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
372
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ge(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
348
373
|
}
|
|
349
374
|
disconnectedCallback() {
|
|
350
375
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -357,7 +382,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
357
382
|
) || t;
|
|
358
383
|
}
|
|
359
384
|
});
|
|
360
|
-
function
|
|
385
|
+
function Ge(e, t, r, i) {
|
|
361
386
|
var s;
|
|
362
387
|
const n = (s = r[e]) == null ? void 0 : s.type;
|
|
363
388
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -387,38 +412,38 @@ function De(e, t, r, i) {
|
|
|
387
412
|
return t;
|
|
388
413
|
}
|
|
389
414
|
}
|
|
390
|
-
function
|
|
391
|
-
let
|
|
415
|
+
function ai(e, t, r, i, n, s) {
|
|
416
|
+
let a = class extends nr {
|
|
392
417
|
constructor() {
|
|
393
418
|
super(e, r, n), this.$$p_d = t;
|
|
394
419
|
}
|
|
395
420
|
static get observedAttributes() {
|
|
396
421
|
return Object.keys(t).map(
|
|
397
|
-
(
|
|
422
|
+
(l) => (t[l].attribute || l).toLowerCase()
|
|
398
423
|
);
|
|
399
424
|
}
|
|
400
425
|
};
|
|
401
|
-
return Object.keys(t).forEach((
|
|
402
|
-
Object.defineProperty(
|
|
426
|
+
return Object.keys(t).forEach((l) => {
|
|
427
|
+
Object.defineProperty(a.prototype, l, {
|
|
403
428
|
get() {
|
|
404
|
-
return this.$$c &&
|
|
429
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
405
430
|
},
|
|
406
|
-
set(
|
|
407
|
-
var
|
|
408
|
-
|
|
431
|
+
set(o) {
|
|
432
|
+
var u;
|
|
433
|
+
o = Ge(l, o, t), this.$$d[l] = o, (u = this.$$c) == null || u.$set({ [l]: o });
|
|
409
434
|
}
|
|
410
435
|
});
|
|
411
|
-
}), i.forEach((
|
|
412
|
-
Object.defineProperty(
|
|
436
|
+
}), i.forEach((l) => {
|
|
437
|
+
Object.defineProperty(a.prototype, l, {
|
|
413
438
|
get() {
|
|
414
|
-
var
|
|
415
|
-
return (
|
|
439
|
+
var o;
|
|
440
|
+
return (o = this.$$c) == null ? void 0 : o[l];
|
|
416
441
|
}
|
|
417
442
|
});
|
|
418
443
|
}), e.element = /** @type {any} */
|
|
419
|
-
|
|
444
|
+
a, a;
|
|
420
445
|
}
|
|
421
|
-
class
|
|
446
|
+
class ui {
|
|
422
447
|
constructor() {
|
|
423
448
|
/**
|
|
424
449
|
* ### PRIVATE API
|
|
@@ -427,7 +452,7 @@ class Zr {
|
|
|
427
452
|
*
|
|
428
453
|
* @type {any}
|
|
429
454
|
*/
|
|
430
|
-
|
|
455
|
+
Z(this, "$$");
|
|
431
456
|
/**
|
|
432
457
|
* ### PRIVATE API
|
|
433
458
|
*
|
|
@@ -435,11 +460,11 @@ class Zr {
|
|
|
435
460
|
*
|
|
436
461
|
* @type {any}
|
|
437
462
|
*/
|
|
438
|
-
|
|
463
|
+
Z(this, "$$set");
|
|
439
464
|
}
|
|
440
465
|
/** @returns {void} */
|
|
441
466
|
$destroy() {
|
|
442
|
-
|
|
467
|
+
ni(this, 1), this.$destroy = ee;
|
|
443
468
|
}
|
|
444
469
|
/**
|
|
445
470
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -448,8 +473,8 @@ class Zr {
|
|
|
448
473
|
* @returns {() => void}
|
|
449
474
|
*/
|
|
450
475
|
$on(t, r) {
|
|
451
|
-
if (!
|
|
452
|
-
return
|
|
476
|
+
if (!bt(r))
|
|
477
|
+
return ee;
|
|
453
478
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
454
479
|
return i.push(r), () => {
|
|
455
480
|
const n = i.indexOf(r);
|
|
@@ -461,160 +486,160 @@ class Zr {
|
|
|
461
486
|
* @returns {void}
|
|
462
487
|
*/
|
|
463
488
|
$set(t) {
|
|
464
|
-
this.$$set && !
|
|
489
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
465
490
|
}
|
|
466
491
|
}
|
|
467
|
-
const
|
|
468
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
469
|
-
const
|
|
470
|
-
function
|
|
492
|
+
const li = "4";
|
|
493
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(li);
|
|
494
|
+
const ye = [];
|
|
495
|
+
function hi(e, t) {
|
|
471
496
|
return {
|
|
472
|
-
subscribe:
|
|
497
|
+
subscribe: Ye(e, t).subscribe
|
|
473
498
|
};
|
|
474
499
|
}
|
|
475
|
-
function
|
|
500
|
+
function Ye(e, t = ee) {
|
|
476
501
|
let r;
|
|
477
502
|
const i = /* @__PURE__ */ new Set();
|
|
478
|
-
function n(
|
|
479
|
-
if (
|
|
480
|
-
const
|
|
481
|
-
for (const
|
|
482
|
-
|
|
483
|
-
if (
|
|
484
|
-
for (let
|
|
485
|
-
|
|
486
|
-
|
|
503
|
+
function n(l) {
|
|
504
|
+
if (rr(e, l) && (e = l, r)) {
|
|
505
|
+
const o = !ye.length;
|
|
506
|
+
for (const u of i)
|
|
507
|
+
u[1](), ye.push(u, e);
|
|
508
|
+
if (o) {
|
|
509
|
+
for (let u = 0; u < ye.length; u += 2)
|
|
510
|
+
ye[u][0](ye[u + 1]);
|
|
511
|
+
ye.length = 0;
|
|
487
512
|
}
|
|
488
513
|
}
|
|
489
514
|
}
|
|
490
|
-
function s(
|
|
491
|
-
n(
|
|
515
|
+
function s(l) {
|
|
516
|
+
n(l(e));
|
|
492
517
|
}
|
|
493
|
-
function
|
|
494
|
-
const
|
|
495
|
-
return i.add(
|
|
496
|
-
i.delete(
|
|
518
|
+
function a(l, o = ee) {
|
|
519
|
+
const u = [l, o];
|
|
520
|
+
return i.add(u), i.size === 1 && (r = t(n, s) || ee), l(e), () => {
|
|
521
|
+
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
497
522
|
};
|
|
498
523
|
}
|
|
499
|
-
return { set: n, update: s, subscribe:
|
|
524
|
+
return { set: n, update: s, subscribe: a };
|
|
500
525
|
}
|
|
501
|
-
function
|
|
526
|
+
function Oe(e, t, r) {
|
|
502
527
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
503
528
|
if (!n.every(Boolean))
|
|
504
529
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
505
530
|
const s = t.length < 2;
|
|
506
|
-
return
|
|
507
|
-
let
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
const
|
|
511
|
-
if (
|
|
531
|
+
return hi(r, (a, l) => {
|
|
532
|
+
let o = !1;
|
|
533
|
+
const u = [];
|
|
534
|
+
let h = 0, c = ee;
|
|
535
|
+
const p = () => {
|
|
536
|
+
if (h)
|
|
512
537
|
return;
|
|
513
|
-
|
|
514
|
-
const
|
|
515
|
-
s ?
|
|
516
|
-
},
|
|
517
|
-
(
|
|
518
|
-
|
|
519
|
-
(
|
|
520
|
-
|
|
538
|
+
c();
|
|
539
|
+
const H = t(i ? u[0] : u, a, l);
|
|
540
|
+
s ? a(H) : c = bt(H) ? H : ee;
|
|
541
|
+
}, x = n.map(
|
|
542
|
+
(H, v) => ir(
|
|
543
|
+
H,
|
|
544
|
+
($) => {
|
|
545
|
+
u[v] = $, h &= ~(1 << v), o && p();
|
|
521
546
|
},
|
|
522
547
|
() => {
|
|
523
|
-
|
|
548
|
+
h |= 1 << v;
|
|
524
549
|
}
|
|
525
550
|
)
|
|
526
551
|
);
|
|
527
|
-
return
|
|
528
|
-
|
|
552
|
+
return o = !0, p(), function() {
|
|
553
|
+
Le(x), c(), o = !1;
|
|
529
554
|
};
|
|
530
555
|
});
|
|
531
556
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
557
|
+
var sr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
558
|
+
function _t(e) {
|
|
534
559
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
535
560
|
}
|
|
536
|
-
var
|
|
537
|
-
return
|
|
561
|
+
var fi = function(t) {
|
|
562
|
+
return ci(t) && !di(t);
|
|
538
563
|
};
|
|
539
|
-
function
|
|
564
|
+
function ci(e) {
|
|
540
565
|
return !!e && typeof e == "object";
|
|
541
566
|
}
|
|
542
|
-
function
|
|
567
|
+
function di(e) {
|
|
543
568
|
var t = Object.prototype.toString.call(e);
|
|
544
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
569
|
+
return t === "[object RegExp]" || t === "[object Date]" || gi(e);
|
|
545
570
|
}
|
|
546
|
-
var
|
|
547
|
-
function
|
|
548
|
-
return e.$$typeof ===
|
|
571
|
+
var mi = typeof Symbol == "function" && Symbol.for, pi = mi ? Symbol.for("react.element") : 60103;
|
|
572
|
+
function gi(e) {
|
|
573
|
+
return e.$$typeof === pi;
|
|
549
574
|
}
|
|
550
|
-
function
|
|
575
|
+
function vi(e) {
|
|
551
576
|
return Array.isArray(e) ? [] : {};
|
|
552
577
|
}
|
|
553
|
-
function
|
|
554
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
578
|
+
function De(e, t) {
|
|
579
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(vi(e), e, t) : e;
|
|
555
580
|
}
|
|
556
|
-
function
|
|
581
|
+
function bi(e, t, r) {
|
|
557
582
|
return e.concat(t).map(function(i) {
|
|
558
|
-
return
|
|
583
|
+
return De(i, r);
|
|
559
584
|
});
|
|
560
585
|
}
|
|
561
|
-
function
|
|
586
|
+
function yi(e, t) {
|
|
562
587
|
if (!t.customMerge)
|
|
563
|
-
return
|
|
588
|
+
return we;
|
|
564
589
|
var r = t.customMerge(e);
|
|
565
|
-
return typeof r == "function" ? r :
|
|
590
|
+
return typeof r == "function" ? r : we;
|
|
566
591
|
}
|
|
567
|
-
function
|
|
592
|
+
function xi(e) {
|
|
568
593
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
569
594
|
return Object.propertyIsEnumerable.call(e, t);
|
|
570
595
|
}) : [];
|
|
571
596
|
}
|
|
572
|
-
function
|
|
573
|
-
return Object.keys(e).concat(
|
|
597
|
+
function Ct(e) {
|
|
598
|
+
return Object.keys(e).concat(xi(e));
|
|
574
599
|
}
|
|
575
|
-
function
|
|
600
|
+
function or(e, t) {
|
|
576
601
|
try {
|
|
577
602
|
return t in e;
|
|
578
603
|
} catch (r) {
|
|
579
604
|
return !1;
|
|
580
605
|
}
|
|
581
606
|
}
|
|
582
|
-
function
|
|
583
|
-
return
|
|
607
|
+
function _i(e, t) {
|
|
608
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
584
609
|
}
|
|
585
|
-
function
|
|
610
|
+
function Ei(e, t, r) {
|
|
586
611
|
var i = {};
|
|
587
|
-
return r.isMergeableObject(e) &&
|
|
588
|
-
i[n] =
|
|
589
|
-
}),
|
|
590
|
-
|
|
612
|
+
return r.isMergeableObject(e) && Ct(e).forEach(function(n) {
|
|
613
|
+
i[n] = De(e[n], r);
|
|
614
|
+
}), Ct(t).forEach(function(n) {
|
|
615
|
+
_i(e, n) || (or(e, n) && r.isMergeableObject(t[n]) ? i[n] = yi(n, r)(e[n], t[n], r) : i[n] = De(t[n], r));
|
|
591
616
|
}), i;
|
|
592
617
|
}
|
|
593
|
-
function
|
|
594
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
618
|
+
function we(e, t, r) {
|
|
619
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || bi, r.isMergeableObject = r.isMergeableObject || fi, r.cloneUnlessOtherwiseSpecified = De;
|
|
595
620
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
596
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
621
|
+
return s ? i ? r.arrayMerge(e, t, r) : Ei(e, t, r) : De(t, r);
|
|
597
622
|
}
|
|
598
|
-
|
|
623
|
+
we.all = function(t, r) {
|
|
599
624
|
if (!Array.isArray(t))
|
|
600
625
|
throw new Error("first argument should be an array");
|
|
601
626
|
return t.reduce(function(i, n) {
|
|
602
|
-
return
|
|
627
|
+
return we(i, n, r);
|
|
603
628
|
}, {});
|
|
604
629
|
};
|
|
605
|
-
var
|
|
606
|
-
const
|
|
607
|
-
var
|
|
608
|
-
return
|
|
630
|
+
var wi = we, Si = wi;
|
|
631
|
+
const Ti = /* @__PURE__ */ _t(Si);
|
|
632
|
+
var ht = function(e, t) {
|
|
633
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
609
634
|
r.__proto__ = i;
|
|
610
635
|
} || function(r, i) {
|
|
611
636
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
612
|
-
},
|
|
637
|
+
}, ht(e, t);
|
|
613
638
|
};
|
|
614
|
-
function
|
|
639
|
+
function Ze(e, t) {
|
|
615
640
|
if (typeof t != "function" && t !== null)
|
|
616
641
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
617
|
-
|
|
642
|
+
ht(e, t);
|
|
618
643
|
function r() {
|
|
619
644
|
this.constructor = e;
|
|
620
645
|
}
|
|
@@ -629,7 +654,7 @@ var A = function() {
|
|
|
629
654
|
return t;
|
|
630
655
|
}, A.apply(this, arguments);
|
|
631
656
|
};
|
|
632
|
-
function
|
|
657
|
+
function Hi(e, t) {
|
|
633
658
|
var r = {};
|
|
634
659
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
635
660
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -637,7 +662,7 @@ function mi(e, t) {
|
|
|
637
662
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
638
663
|
return r;
|
|
639
664
|
}
|
|
640
|
-
function
|
|
665
|
+
function tt(e, t, r) {
|
|
641
666
|
if (r || arguments.length === 2) for (var i = 0, n = t.length, s; i < n; i++)
|
|
642
667
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
643
668
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
@@ -646,51 +671,51 @@ var T;
|
|
|
646
671
|
(function(e) {
|
|
647
672
|
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";
|
|
648
673
|
})(T || (T = {}));
|
|
649
|
-
var
|
|
674
|
+
var C;
|
|
650
675
|
(function(e) {
|
|
651
676
|
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";
|
|
652
|
-
})(
|
|
653
|
-
var
|
|
677
|
+
})(C || (C = {}));
|
|
678
|
+
var Se;
|
|
654
679
|
(function(e) {
|
|
655
680
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
656
|
-
})(
|
|
657
|
-
function
|
|
658
|
-
return e.type ===
|
|
681
|
+
})(Se || (Se = {}));
|
|
682
|
+
function Dt(e) {
|
|
683
|
+
return e.type === C.literal;
|
|
659
684
|
}
|
|
660
|
-
function
|
|
661
|
-
return e.type ===
|
|
685
|
+
function Oi(e) {
|
|
686
|
+
return e.type === C.argument;
|
|
662
687
|
}
|
|
663
|
-
function
|
|
664
|
-
return e.type ===
|
|
688
|
+
function ar(e) {
|
|
689
|
+
return e.type === C.number;
|
|
665
690
|
}
|
|
666
|
-
function
|
|
667
|
-
return e.type ===
|
|
691
|
+
function ur(e) {
|
|
692
|
+
return e.type === C.date;
|
|
668
693
|
}
|
|
669
|
-
function
|
|
670
|
-
return e.type ===
|
|
694
|
+
function lr(e) {
|
|
695
|
+
return e.type === C.time;
|
|
671
696
|
}
|
|
672
|
-
function
|
|
673
|
-
return e.type ===
|
|
697
|
+
function hr(e) {
|
|
698
|
+
return e.type === C.select;
|
|
674
699
|
}
|
|
675
|
-
function
|
|
676
|
-
return e.type ===
|
|
700
|
+
function fr(e) {
|
|
701
|
+
return e.type === C.plural;
|
|
677
702
|
}
|
|
678
|
-
function
|
|
679
|
-
return e.type ===
|
|
703
|
+
function Ai(e) {
|
|
704
|
+
return e.type === C.pound;
|
|
680
705
|
}
|
|
681
|
-
function
|
|
682
|
-
return e.type ===
|
|
706
|
+
function cr(e) {
|
|
707
|
+
return e.type === C.tag;
|
|
683
708
|
}
|
|
684
|
-
function
|
|
685
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
709
|
+
function dr(e) {
|
|
710
|
+
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
686
711
|
}
|
|
687
|
-
function
|
|
688
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
712
|
+
function ft(e) {
|
|
713
|
+
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
689
714
|
}
|
|
690
|
-
var
|
|
691
|
-
function
|
|
715
|
+
var mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
|
|
716
|
+
function $i(e) {
|
|
692
717
|
var t = {};
|
|
693
|
-
return e.replace(
|
|
718
|
+
return e.replace(Pi, function(r) {
|
|
694
719
|
var i = r.length;
|
|
695
720
|
switch (r[0]) {
|
|
696
721
|
case "G":
|
|
@@ -779,36 +804,36 @@ function bi(e) {
|
|
|
779
804
|
return "";
|
|
780
805
|
}), t;
|
|
781
806
|
}
|
|
782
|
-
var
|
|
783
|
-
function
|
|
807
|
+
var Bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
808
|
+
function Mi(e) {
|
|
784
809
|
if (e.length === 0)
|
|
785
810
|
throw new Error("Number skeleton cannot be empty");
|
|
786
|
-
for (var t = e.split(
|
|
787
|
-
return
|
|
811
|
+
for (var t = e.split(Bi).filter(function(p) {
|
|
812
|
+
return p.length > 0;
|
|
788
813
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
789
|
-
var s = n[i],
|
|
790
|
-
if (
|
|
814
|
+
var s = n[i], a = s.split("/");
|
|
815
|
+
if (a.length === 0)
|
|
791
816
|
throw new Error("Invalid number skeleton");
|
|
792
|
-
for (var
|
|
793
|
-
var
|
|
794
|
-
if (
|
|
817
|
+
for (var l = a[0], o = a.slice(1), u = 0, h = o; u < h.length; u++) {
|
|
818
|
+
var c = h[u];
|
|
819
|
+
if (c.length === 0)
|
|
795
820
|
throw new Error("Invalid number skeleton");
|
|
796
821
|
}
|
|
797
|
-
r.push({ stem:
|
|
822
|
+
r.push({ stem: l, options: o });
|
|
798
823
|
}
|
|
799
824
|
return r;
|
|
800
825
|
}
|
|
801
|
-
function
|
|
826
|
+
function Ci(e) {
|
|
802
827
|
return e.replace(/^(.*?)-/, "");
|
|
803
828
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
829
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Di = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
|
830
|
+
function Lt(e) {
|
|
806
831
|
var t = {};
|
|
807
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
832
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, i, n) {
|
|
808
833
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
809
834
|
}), t;
|
|
810
835
|
}
|
|
811
|
-
function
|
|
836
|
+
function vr(e) {
|
|
812
837
|
switch (e) {
|
|
813
838
|
case "sign-auto":
|
|
814
839
|
return {
|
|
@@ -848,7 +873,7 @@ function hr(e) {
|
|
|
848
873
|
};
|
|
849
874
|
}
|
|
850
875
|
}
|
|
851
|
-
function
|
|
876
|
+
function Ii(e) {
|
|
852
877
|
var t;
|
|
853
878
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
854
879
|
notation: "engineering"
|
|
@@ -856,17 +881,17 @@ function wi(e) {
|
|
|
856
881
|
notation: "scientific"
|
|
857
882
|
}, e = e.slice(1)), t) {
|
|
858
883
|
var r = e.slice(0, 2);
|
|
859
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
884
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
|
860
885
|
throw new Error("Malformed concise eng/scientific notation");
|
|
861
886
|
t.minimumIntegerDigits = e.length;
|
|
862
887
|
}
|
|
863
888
|
return t;
|
|
864
889
|
}
|
|
865
|
-
function
|
|
866
|
-
var t = {}, r =
|
|
890
|
+
function Nt(e) {
|
|
891
|
+
var t = {}, r = vr(e);
|
|
867
892
|
return r || t;
|
|
868
893
|
}
|
|
869
|
-
function
|
|
894
|
+
function Li(e) {
|
|
870
895
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
871
896
|
var n = i[r];
|
|
872
897
|
switch (n.stem) {
|
|
@@ -890,7 +915,7 @@ function Si(e) {
|
|
|
890
915
|
continue;
|
|
891
916
|
case "measure-unit":
|
|
892
917
|
case "unit":
|
|
893
|
-
t.style = "unit", t.unit =
|
|
918
|
+
t.style = "unit", t.unit = Ci(n.options[0]);
|
|
894
919
|
continue;
|
|
895
920
|
case "compact-short":
|
|
896
921
|
case "K":
|
|
@@ -901,13 +926,13 @@ function Si(e) {
|
|
|
901
926
|
t.notation = "compact", t.compactDisplay = "long";
|
|
902
927
|
continue;
|
|
903
928
|
case "scientific":
|
|
904
|
-
t = A(A(A({}, t), { notation: "scientific" }), n.options.reduce(function(
|
|
905
|
-
return A(A({},
|
|
929
|
+
t = A(A(A({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
930
|
+
return A(A({}, o), Nt(u));
|
|
906
931
|
}, {}));
|
|
907
932
|
continue;
|
|
908
933
|
case "engineering":
|
|
909
|
-
t = A(A(A({}, t), { notation: "engineering" }), n.options.reduce(function(
|
|
910
|
-
return A(A({},
|
|
934
|
+
t = A(A(A({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
935
|
+
return A(A({}, o), Nt(u));
|
|
911
936
|
}, {}));
|
|
912
937
|
continue;
|
|
913
938
|
case "notation-simple":
|
|
@@ -952,45 +977,45 @@ function Si(e) {
|
|
|
952
977
|
case "integer-width":
|
|
953
978
|
if (n.options.length > 1)
|
|
954
979
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
955
|
-
n.options[0].replace(
|
|
956
|
-
if (
|
|
957
|
-
t.minimumIntegerDigits =
|
|
980
|
+
n.options[0].replace(Di, function(o, u, h, c, p, x) {
|
|
981
|
+
if (u)
|
|
982
|
+
t.minimumIntegerDigits = h.length;
|
|
958
983
|
else {
|
|
959
|
-
if (
|
|
984
|
+
if (c && p)
|
|
960
985
|
throw new Error("We currently do not support maximum integer digits");
|
|
961
|
-
if (
|
|
986
|
+
if (x)
|
|
962
987
|
throw new Error("We currently do not support exact integer digits");
|
|
963
988
|
}
|
|
964
989
|
return "";
|
|
965
990
|
});
|
|
966
991
|
continue;
|
|
967
992
|
}
|
|
968
|
-
if (
|
|
993
|
+
if (gr.test(n.stem)) {
|
|
969
994
|
t.minimumIntegerDigits = n.stem.length;
|
|
970
995
|
continue;
|
|
971
996
|
}
|
|
972
|
-
if (
|
|
997
|
+
if (It.test(n.stem)) {
|
|
973
998
|
if (n.options.length > 1)
|
|
974
999
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
975
|
-
n.stem.replace(
|
|
976
|
-
return
|
|
1000
|
+
n.stem.replace(It, function(o, u, h, c, p, x) {
|
|
1001
|
+
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), "";
|
|
977
1002
|
});
|
|
978
1003
|
var s = n.options[0];
|
|
979
|
-
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t),
|
|
1004
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), Lt(s)));
|
|
980
1005
|
continue;
|
|
981
1006
|
}
|
|
982
|
-
if (
|
|
983
|
-
t = A(A({}, t),
|
|
1007
|
+
if (pr.test(n.stem)) {
|
|
1008
|
+
t = A(A({}, t), Lt(n.stem));
|
|
984
1009
|
continue;
|
|
985
1010
|
}
|
|
986
|
-
var
|
|
987
|
-
|
|
988
|
-
var
|
|
989
|
-
|
|
1011
|
+
var a = vr(n.stem);
|
|
1012
|
+
a && (t = A(A({}, t), a));
|
|
1013
|
+
var l = Ii(n.stem);
|
|
1014
|
+
l && (t = A(A({}, t), l));
|
|
990
1015
|
}
|
|
991
1016
|
return t;
|
|
992
1017
|
}
|
|
993
|
-
var
|
|
1018
|
+
var Fe = {
|
|
994
1019
|
"001": [
|
|
995
1020
|
"H",
|
|
996
1021
|
"h"
|
|
@@ -2399,22 +2424,22 @@ var Ce = {
|
|
|
2399
2424
|
"h"
|
|
2400
2425
|
]
|
|
2401
2426
|
};
|
|
2402
|
-
function
|
|
2427
|
+
function Ni(e, t) {
|
|
2403
2428
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2404
2429
|
var n = e.charAt(i);
|
|
2405
2430
|
if (n === "j") {
|
|
2406
2431
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2407
2432
|
s++, i++;
|
|
2408
|
-
var
|
|
2409
|
-
for ((
|
|
2410
|
-
r +=
|
|
2411
|
-
for (;
|
|
2412
|
-
r =
|
|
2433
|
+
var a = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = Ri(t);
|
|
2434
|
+
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2435
|
+
r += o;
|
|
2436
|
+
for (; a-- > 0; )
|
|
2437
|
+
r = u + r;
|
|
2413
2438
|
} else n === "J" ? r += "H" : r += n;
|
|
2414
2439
|
}
|
|
2415
2440
|
return r;
|
|
2416
2441
|
}
|
|
2417
|
-
function
|
|
2442
|
+
function Ri(e) {
|
|
2418
2443
|
var t = e.hourCycle;
|
|
2419
2444
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2420
2445
|
e.hourCycles && // @ts-ignore
|
|
@@ -2433,23 +2458,23 @@ function $i(e) {
|
|
|
2433
2458
|
}
|
|
2434
2459
|
var r = e.language, i;
|
|
2435
2460
|
r !== "root" && (i = e.maximize().region);
|
|
2436
|
-
var n =
|
|
2461
|
+
var n = Fe[i || ""] || Fe[r || ""] || Fe["".concat(r, "-001")] || Fe["001"];
|
|
2437
2462
|
return n[0];
|
|
2438
2463
|
}
|
|
2439
|
-
var
|
|
2440
|
-
function
|
|
2464
|
+
var rt, ki = new RegExp("^".concat(mr.source, "*")), Ui = new RegExp("".concat(mr.source, "*$"));
|
|
2465
|
+
function O(e, t) {
|
|
2441
2466
|
return { start: e, end: t };
|
|
2442
2467
|
}
|
|
2443
|
-
var
|
|
2468
|
+
var Fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gi = !!String.fromCodePoint, Vi = !!Object.fromEntries, ji = !!String.prototype.codePointAt, zi = !!String.prototype.trimStart, Xi = !!String.prototype.trimEnd, Wi = !!Number.isSafeInteger, qi = Wi ? Number.isSafeInteger : function(e) {
|
|
2444
2469
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2445
|
-
},
|
|
2470
|
+
}, ct = !0;
|
|
2446
2471
|
try {
|
|
2447
|
-
var
|
|
2448
|
-
|
|
2472
|
+
var Yi = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2473
|
+
ct = ((rt = Yi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2449
2474
|
} catch (e) {
|
|
2450
|
-
|
|
2475
|
+
ct = !1;
|
|
2451
2476
|
}
|
|
2452
|
-
var
|
|
2477
|
+
var Rt = Fi ? (
|
|
2453
2478
|
// Native
|
|
2454
2479
|
function(t, r, i) {
|
|
2455
2480
|
return t.startsWith(r, i);
|
|
@@ -2459,31 +2484,31 @@ var Ot = Ai ? (
|
|
|
2459
2484
|
function(t, r, i) {
|
|
2460
2485
|
return t.slice(i, i + r.length) === r;
|
|
2461
2486
|
}
|
|
2462
|
-
),
|
|
2487
|
+
), dt = Gi ? String.fromCodePoint : (
|
|
2463
2488
|
// IE11
|
|
2464
2489
|
function() {
|
|
2465
2490
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2466
2491
|
t[r] = arguments[r];
|
|
2467
|
-
for (var i = "", n = t.length, s = 0,
|
|
2468
|
-
if (
|
|
2469
|
-
throw RangeError(
|
|
2470
|
-
i +=
|
|
2492
|
+
for (var i = "", n = t.length, s = 0, a; n > s; ) {
|
|
2493
|
+
if (a = t[s++], a > 1114111)
|
|
2494
|
+
throw RangeError(a + " is not a valid code point");
|
|
2495
|
+
i += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2471
2496
|
}
|
|
2472
2497
|
return i;
|
|
2473
2498
|
}
|
|
2474
|
-
),
|
|
2499
|
+
), kt = (
|
|
2475
2500
|
// native
|
|
2476
|
-
|
|
2501
|
+
Vi ? Object.fromEntries : (
|
|
2477
2502
|
// Ponyfill
|
|
2478
2503
|
function(t) {
|
|
2479
2504
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
2480
|
-
var s = n[i],
|
|
2481
|
-
r[
|
|
2505
|
+
var s = n[i], a = s[0], l = s[1];
|
|
2506
|
+
r[a] = l;
|
|
2482
2507
|
}
|
|
2483
2508
|
return r;
|
|
2484
2509
|
}
|
|
2485
2510
|
)
|
|
2486
|
-
),
|
|
2511
|
+
), br = ji ? (
|
|
2487
2512
|
// Native
|
|
2488
2513
|
function(t, r) {
|
|
2489
2514
|
return t.codePointAt(r);
|
|
@@ -2497,7 +2522,7 @@ var Ot = Ai ? (
|
|
|
2497
2522
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2498
2523
|
}
|
|
2499
2524
|
}
|
|
2500
|
-
),
|
|
2525
|
+
), Zi = zi ? (
|
|
2501
2526
|
// Native
|
|
2502
2527
|
function(t) {
|
|
2503
2528
|
return t.trimStart();
|
|
@@ -2505,9 +2530,9 @@ var Ot = Ai ? (
|
|
|
2505
2530
|
) : (
|
|
2506
2531
|
// Ponyfill
|
|
2507
2532
|
function(t) {
|
|
2508
|
-
return t.replace(
|
|
2533
|
+
return t.replace(ki, "");
|
|
2509
2534
|
}
|
|
2510
|
-
),
|
|
2535
|
+
), Ji = Xi ? (
|
|
2511
2536
|
// Native
|
|
2512
2537
|
function(t) {
|
|
2513
2538
|
return t.trimEnd();
|
|
@@ -2515,32 +2540,32 @@ var Ot = Ai ? (
|
|
|
2515
2540
|
) : (
|
|
2516
2541
|
// Ponyfill
|
|
2517
2542
|
function(t) {
|
|
2518
|
-
return t.replace(
|
|
2543
|
+
return t.replace(Ui, "");
|
|
2519
2544
|
}
|
|
2520
2545
|
);
|
|
2521
|
-
function
|
|
2546
|
+
function yr(e, t) {
|
|
2522
2547
|
return new RegExp(e, t);
|
|
2523
2548
|
}
|
|
2524
|
-
var
|
|
2525
|
-
if (
|
|
2526
|
-
var
|
|
2527
|
-
|
|
2549
|
+
var mt;
|
|
2550
|
+
if (ct) {
|
|
2551
|
+
var Ut = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2552
|
+
mt = function(t, r) {
|
|
2528
2553
|
var i;
|
|
2529
|
-
|
|
2530
|
-
var n =
|
|
2554
|
+
Ut.lastIndex = r;
|
|
2555
|
+
var n = Ut.exec(t);
|
|
2531
2556
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2532
2557
|
};
|
|
2533
2558
|
} else
|
|
2534
|
-
|
|
2559
|
+
mt = function(t, r) {
|
|
2535
2560
|
for (var i = []; ; ) {
|
|
2536
|
-
var n =
|
|
2537
|
-
if (n === void 0 ||
|
|
2561
|
+
var n = br(t, r);
|
|
2562
|
+
if (n === void 0 || xr(n) || tn(n))
|
|
2538
2563
|
break;
|
|
2539
2564
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2540
2565
|
}
|
|
2541
|
-
return
|
|
2566
|
+
return dt.apply(void 0, i);
|
|
2542
2567
|
};
|
|
2543
|
-
var
|
|
2568
|
+
var Qi = (
|
|
2544
2569
|
/** @class */
|
|
2545
2570
|
function() {
|
|
2546
2571
|
function e(t, r) {
|
|
@@ -2554,33 +2579,33 @@ var ki = (
|
|
|
2554
2579
|
for (var n = []; !this.isEOF(); ) {
|
|
2555
2580
|
var s = this.char();
|
|
2556
2581
|
if (s === 123) {
|
|
2557
|
-
var
|
|
2558
|
-
if (
|
|
2559
|
-
return
|
|
2560
|
-
n.push(
|
|
2582
|
+
var a = this.parseArgument(t, i);
|
|
2583
|
+
if (a.err)
|
|
2584
|
+
return a;
|
|
2585
|
+
n.push(a.val);
|
|
2561
2586
|
} else {
|
|
2562
2587
|
if (s === 125 && t > 0)
|
|
2563
2588
|
break;
|
|
2564
2589
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2565
|
-
var
|
|
2590
|
+
var l = this.clonePosition();
|
|
2566
2591
|
this.bump(), n.push({
|
|
2567
|
-
type:
|
|
2568
|
-
location:
|
|
2592
|
+
type: C.pound,
|
|
2593
|
+
location: O(l, this.clonePosition())
|
|
2569
2594
|
});
|
|
2570
2595
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2571
2596
|
if (i)
|
|
2572
2597
|
break;
|
|
2573
|
-
return this.error(T.UNMATCHED_CLOSING_TAG,
|
|
2574
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2575
|
-
var
|
|
2576
|
-
if (
|
|
2577
|
-
return
|
|
2578
|
-
n.push(
|
|
2598
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2599
|
+
} else if (s === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
|
|
2600
|
+
var a = this.parseTag(t, r);
|
|
2601
|
+
if (a.err)
|
|
2602
|
+
return a;
|
|
2603
|
+
n.push(a.val);
|
|
2579
2604
|
} else {
|
|
2580
|
-
var
|
|
2581
|
-
if (
|
|
2582
|
-
return
|
|
2583
|
-
n.push(
|
|
2605
|
+
var a = this.parseLiteral(t, r);
|
|
2606
|
+
if (a.err)
|
|
2607
|
+
return a;
|
|
2608
|
+
n.push(a.val);
|
|
2584
2609
|
}
|
|
2585
2610
|
}
|
|
2586
2611
|
}
|
|
@@ -2592,9 +2617,9 @@ var ki = (
|
|
|
2592
2617
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2593
2618
|
return {
|
|
2594
2619
|
val: {
|
|
2595
|
-
type:
|
|
2620
|
+
type: C.literal,
|
|
2596
2621
|
value: "<".concat(n, "/>"),
|
|
2597
|
-
location:
|
|
2622
|
+
location: O(i, this.clonePosition())
|
|
2598
2623
|
},
|
|
2599
2624
|
err: null
|
|
2600
2625
|
};
|
|
@@ -2602,27 +2627,27 @@ var ki = (
|
|
|
2602
2627
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2603
2628
|
if (s.err)
|
|
2604
2629
|
return s;
|
|
2605
|
-
var
|
|
2630
|
+
var a = s.val, l = this.clonePosition();
|
|
2606
2631
|
if (this.bumpIf("</")) {
|
|
2607
|
-
if (this.isEOF() || !
|
|
2608
|
-
return this.error(T.INVALID_TAG,
|
|
2609
|
-
var
|
|
2610
|
-
return n !==
|
|
2632
|
+
if (this.isEOF() || !pt(this.char()))
|
|
2633
|
+
return this.error(T.INVALID_TAG, O(l, this.clonePosition()));
|
|
2634
|
+
var o = this.clonePosition(), u = this.parseTagName();
|
|
2635
|
+
return n !== u ? this.error(T.UNMATCHED_CLOSING_TAG, O(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2611
2636
|
val: {
|
|
2612
|
-
type:
|
|
2637
|
+
type: C.tag,
|
|
2613
2638
|
value: n,
|
|
2614
|
-
children:
|
|
2615
|
-
location:
|
|
2639
|
+
children: a,
|
|
2640
|
+
location: O(i, this.clonePosition())
|
|
2616
2641
|
},
|
|
2617
2642
|
err: null
|
|
2618
|
-
} : this.error(T.INVALID_TAG,
|
|
2643
|
+
} : this.error(T.INVALID_TAG, O(l, this.clonePosition())));
|
|
2619
2644
|
} else
|
|
2620
|
-
return this.error(T.UNCLOSED_TAG,
|
|
2645
|
+
return this.error(T.UNCLOSED_TAG, O(i, this.clonePosition()));
|
|
2621
2646
|
} else
|
|
2622
|
-
return this.error(T.INVALID_TAG,
|
|
2647
|
+
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2623
2648
|
}, e.prototype.parseTagName = function() {
|
|
2624
2649
|
var t = this.offset();
|
|
2625
|
-
for (this.bump(); !this.isEOF() &&
|
|
2650
|
+
for (this.bump(); !this.isEOF() && en(this.char()); )
|
|
2626
2651
|
this.bump();
|
|
2627
2652
|
return this.message.slice(t, this.offset());
|
|
2628
2653
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2632,26 +2657,26 @@ var ki = (
|
|
|
2632
2657
|
n += s;
|
|
2633
2658
|
continue;
|
|
2634
2659
|
}
|
|
2635
|
-
var
|
|
2636
|
-
if (
|
|
2637
|
-
n +=
|
|
2660
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2661
|
+
if (a) {
|
|
2662
|
+
n += a;
|
|
2638
2663
|
continue;
|
|
2639
2664
|
}
|
|
2640
|
-
var
|
|
2641
|
-
if (
|
|
2642
|
-
n +=
|
|
2665
|
+
var l = this.tryParseLeftAngleBracket();
|
|
2666
|
+
if (l) {
|
|
2667
|
+
n += l;
|
|
2643
2668
|
continue;
|
|
2644
2669
|
}
|
|
2645
2670
|
break;
|
|
2646
2671
|
}
|
|
2647
|
-
var
|
|
2672
|
+
var o = O(i, this.clonePosition());
|
|
2648
2673
|
return {
|
|
2649
|
-
val: { type:
|
|
2674
|
+
val: { type: C.literal, value: n, location: o },
|
|
2650
2675
|
err: null
|
|
2651
2676
|
};
|
|
2652
2677
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2653
2678
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2654
|
-
!
|
|
2679
|
+
!Ki(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2655
2680
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2656
2681
|
if (this.isEOF() || this.char() !== 39)
|
|
2657
2682
|
return null;
|
|
@@ -2685,100 +2710,100 @@ var ki = (
|
|
|
2685
2710
|
r.push(i);
|
|
2686
2711
|
this.bump();
|
|
2687
2712
|
}
|
|
2688
|
-
return
|
|
2713
|
+
return dt.apply(void 0, r);
|
|
2689
2714
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2690
2715
|
if (this.isEOF())
|
|
2691
2716
|
return null;
|
|
2692
2717
|
var i = this.char();
|
|
2693
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2718
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), dt(i));
|
|
2694
2719
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2695
2720
|
var i = this.clonePosition();
|
|
2696
2721
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2697
|
-
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2722
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2698
2723
|
if (this.char() === 125)
|
|
2699
|
-
return this.bump(), this.error(T.EMPTY_ARGUMENT,
|
|
2724
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, O(i, this.clonePosition()));
|
|
2700
2725
|
var n = this.parseIdentifierIfPossible().value;
|
|
2701
2726
|
if (!n)
|
|
2702
|
-
return this.error(T.MALFORMED_ARGUMENT,
|
|
2727
|
+
return this.error(T.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2703
2728
|
if (this.bumpSpace(), this.isEOF())
|
|
2704
|
-
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2729
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2705
2730
|
switch (this.char()) {
|
|
2706
2731
|
case 125:
|
|
2707
2732
|
return this.bump(), {
|
|
2708
2733
|
val: {
|
|
2709
|
-
type:
|
|
2734
|
+
type: C.argument,
|
|
2710
2735
|
// value does not include the opening and closing braces.
|
|
2711
2736
|
value: n,
|
|
2712
|
-
location:
|
|
2737
|
+
location: O(i, this.clonePosition())
|
|
2713
2738
|
},
|
|
2714
2739
|
err: null
|
|
2715
2740
|
};
|
|
2716
2741
|
case 44:
|
|
2717
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2742
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2718
2743
|
default:
|
|
2719
|
-
return this.error(T.MALFORMED_ARGUMENT,
|
|
2744
|
+
return this.error(T.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2720
2745
|
}
|
|
2721
2746
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2722
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2747
|
+
var t = this.clonePosition(), r = this.offset(), i = mt(this.message, r), n = r + i.length;
|
|
2723
2748
|
this.bumpTo(n);
|
|
2724
|
-
var s = this.clonePosition(),
|
|
2725
|
-
return { value: i, location:
|
|
2749
|
+
var s = this.clonePosition(), a = O(t, s);
|
|
2750
|
+
return { value: i, location: a };
|
|
2726
2751
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2727
|
-
var s,
|
|
2728
|
-
switch (
|
|
2752
|
+
var s, a = this.clonePosition(), l = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2753
|
+
switch (l) {
|
|
2729
2754
|
case "":
|
|
2730
|
-
return this.error(T.EXPECT_ARGUMENT_TYPE,
|
|
2755
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, O(a, o));
|
|
2731
2756
|
case "number":
|
|
2732
2757
|
case "date":
|
|
2733
2758
|
case "time": {
|
|
2734
2759
|
this.bumpSpace();
|
|
2735
|
-
var
|
|
2760
|
+
var u = null;
|
|
2736
2761
|
if (this.bumpIf(",")) {
|
|
2737
2762
|
this.bumpSpace();
|
|
2738
|
-
var
|
|
2739
|
-
if (
|
|
2740
|
-
return
|
|
2741
|
-
var
|
|
2742
|
-
if (
|
|
2743
|
-
return this.error(T.EXPECT_ARGUMENT_STYLE,
|
|
2744
|
-
var
|
|
2745
|
-
|
|
2763
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2764
|
+
if (c.err)
|
|
2765
|
+
return c;
|
|
2766
|
+
var p = Ji(c.val);
|
|
2767
|
+
if (p.length === 0)
|
|
2768
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2769
|
+
var x = O(h, this.clonePosition());
|
|
2770
|
+
u = { style: p, styleLocation: x };
|
|
2746
2771
|
}
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
return
|
|
2750
|
-
var
|
|
2751
|
-
if (
|
|
2752
|
-
var
|
|
2753
|
-
if (
|
|
2754
|
-
var
|
|
2755
|
-
return
|
|
2756
|
-
val: { type:
|
|
2772
|
+
var H = this.tryParseArgumentClose(n);
|
|
2773
|
+
if (H.err)
|
|
2774
|
+
return H;
|
|
2775
|
+
var v = O(n, this.clonePosition());
|
|
2776
|
+
if (u && Rt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2777
|
+
var $ = Zi(u.style.slice(2));
|
|
2778
|
+
if (l === "number") {
|
|
2779
|
+
var c = this.parseNumberSkeletonFromString($, u.styleLocation);
|
|
2780
|
+
return c.err ? c : {
|
|
2781
|
+
val: { type: C.number, value: i, location: v, style: c.val },
|
|
2757
2782
|
err: null
|
|
2758
2783
|
};
|
|
2759
2784
|
} else {
|
|
2760
|
-
if (
|
|
2761
|
-
return this.error(T.EXPECT_DATE_TIME_SKELETON,
|
|
2762
|
-
var
|
|
2763
|
-
this.locale && (
|
|
2764
|
-
var
|
|
2765
|
-
type:
|
|
2766
|
-
pattern:
|
|
2767
|
-
location:
|
|
2768
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2769
|
-
},
|
|
2785
|
+
if ($.length === 0)
|
|
2786
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2787
|
+
var V = $;
|
|
2788
|
+
this.locale && (V = Ni($, this.locale));
|
|
2789
|
+
var p = {
|
|
2790
|
+
type: Se.dateTime,
|
|
2791
|
+
pattern: V,
|
|
2792
|
+
location: u.styleLocation,
|
|
2793
|
+
parsedOptions: this.shouldParseSkeletons ? $i(V) : {}
|
|
2794
|
+
}, U = l === "date" ? C.date : C.time;
|
|
2770
2795
|
return {
|
|
2771
|
-
val: { type:
|
|
2796
|
+
val: { type: U, value: i, location: v, style: p },
|
|
2772
2797
|
err: null
|
|
2773
2798
|
};
|
|
2774
2799
|
}
|
|
2775
2800
|
}
|
|
2776
2801
|
return {
|
|
2777
2802
|
val: {
|
|
2778
|
-
type:
|
|
2803
|
+
type: l === "number" ? C.number : l === "date" ? C.date : C.time,
|
|
2779
2804
|
value: i,
|
|
2780
|
-
location:
|
|
2781
|
-
style: (s =
|
|
2805
|
+
location: v,
|
|
2806
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2782
2807
|
},
|
|
2783
2808
|
err: null
|
|
2784
2809
|
};
|
|
@@ -2786,52 +2811,52 @@ var ki = (
|
|
|
2786
2811
|
case "plural":
|
|
2787
2812
|
case "selectordinal":
|
|
2788
2813
|
case "select": {
|
|
2789
|
-
var
|
|
2814
|
+
var M = this.clonePosition();
|
|
2790
2815
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2791
|
-
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2816
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(M, A({}, M)));
|
|
2792
2817
|
this.bumpSpace();
|
|
2793
|
-
var X = this.parseIdentifierIfPossible(),
|
|
2794
|
-
if (
|
|
2818
|
+
var X = this.parseIdentifierIfPossible(), I = 0;
|
|
2819
|
+
if (l !== "select" && X.value === "offset") {
|
|
2795
2820
|
if (!this.bumpIf(":"))
|
|
2796
|
-
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2821
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2797
2822
|
this.bumpSpace();
|
|
2798
|
-
var
|
|
2799
|
-
if (
|
|
2800
|
-
return
|
|
2801
|
-
this.bumpSpace(), X = this.parseIdentifierIfPossible(),
|
|
2823
|
+
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2824
|
+
if (c.err)
|
|
2825
|
+
return c;
|
|
2826
|
+
this.bumpSpace(), X = this.parseIdentifierIfPossible(), I = c.val;
|
|
2802
2827
|
}
|
|
2803
|
-
var
|
|
2804
|
-
if (
|
|
2805
|
-
return
|
|
2806
|
-
var
|
|
2807
|
-
if (
|
|
2808
|
-
return
|
|
2809
|
-
var
|
|
2810
|
-
return
|
|
2828
|
+
var L = this.tryParsePluralOrSelectOptions(t, l, r, X);
|
|
2829
|
+
if (L.err)
|
|
2830
|
+
return L;
|
|
2831
|
+
var H = this.tryParseArgumentClose(n);
|
|
2832
|
+
if (H.err)
|
|
2833
|
+
return H;
|
|
2834
|
+
var Y = O(n, this.clonePosition());
|
|
2835
|
+
return l === "select" ? {
|
|
2811
2836
|
val: {
|
|
2812
|
-
type:
|
|
2837
|
+
type: C.select,
|
|
2813
2838
|
value: i,
|
|
2814
|
-
options:
|
|
2815
|
-
location:
|
|
2839
|
+
options: kt(L.val),
|
|
2840
|
+
location: Y
|
|
2816
2841
|
},
|
|
2817
2842
|
err: null
|
|
2818
2843
|
} : {
|
|
2819
2844
|
val: {
|
|
2820
|
-
type:
|
|
2845
|
+
type: C.plural,
|
|
2821
2846
|
value: i,
|
|
2822
|
-
options:
|
|
2823
|
-
offset:
|
|
2824
|
-
pluralType:
|
|
2825
|
-
location:
|
|
2847
|
+
options: kt(L.val),
|
|
2848
|
+
offset: I,
|
|
2849
|
+
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2850
|
+
location: Y
|
|
2826
2851
|
},
|
|
2827
2852
|
err: null
|
|
2828
2853
|
};
|
|
2829
2854
|
}
|
|
2830
2855
|
default:
|
|
2831
|
-
return this.error(T.INVALID_ARGUMENT_TYPE,
|
|
2856
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, O(a, o));
|
|
2832
2857
|
}
|
|
2833
2858
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2834
|
-
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2859
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2835
2860
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2836
2861
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2837
2862
|
var i = this.char();
|
|
@@ -2840,7 +2865,7 @@ var ki = (
|
|
|
2840
2865
|
this.bump();
|
|
2841
2866
|
var n = this.clonePosition();
|
|
2842
2867
|
if (!this.bumpUntil("'"))
|
|
2843
|
-
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2868
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(n, this.clonePosition()));
|
|
2844
2869
|
this.bump();
|
|
2845
2870
|
break;
|
|
2846
2871
|
}
|
|
@@ -2870,64 +2895,64 @@ var ki = (
|
|
|
2870
2895
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2871
2896
|
var i = [];
|
|
2872
2897
|
try {
|
|
2873
|
-
i =
|
|
2898
|
+
i = Mi(t);
|
|
2874
2899
|
} catch (n) {
|
|
2875
2900
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2876
2901
|
}
|
|
2877
2902
|
return {
|
|
2878
2903
|
val: {
|
|
2879
|
-
type:
|
|
2904
|
+
type: Se.number,
|
|
2880
2905
|
tokens: i,
|
|
2881
2906
|
location: r,
|
|
2882
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2907
|
+
parsedOptions: this.shouldParseSkeletons ? Li(i) : {}
|
|
2883
2908
|
},
|
|
2884
2909
|
err: null
|
|
2885
2910
|
};
|
|
2886
2911
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2887
|
-
for (var s,
|
|
2888
|
-
if (
|
|
2889
|
-
var
|
|
2912
|
+
for (var s, a = !1, l = [], o = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
2913
|
+
if (u.length === 0) {
|
|
2914
|
+
var c = this.clonePosition();
|
|
2890
2915
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2891
|
-
var
|
|
2892
|
-
if (
|
|
2893
|
-
return
|
|
2894
|
-
|
|
2916
|
+
var p = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2917
|
+
if (p.err)
|
|
2918
|
+
return p;
|
|
2919
|
+
h = O(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2895
2920
|
} else
|
|
2896
2921
|
break;
|
|
2897
2922
|
}
|
|
2898
|
-
if (
|
|
2899
|
-
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2900
|
-
|
|
2901
|
-
var
|
|
2923
|
+
if (o.has(u))
|
|
2924
|
+
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2925
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2926
|
+
var x = this.clonePosition();
|
|
2902
2927
|
if (!this.bumpIf("{"))
|
|
2903
|
-
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2904
|
-
var
|
|
2905
|
-
if (
|
|
2906
|
-
return
|
|
2907
|
-
var
|
|
2908
|
-
if (
|
|
2909
|
-
return
|
|
2910
|
-
|
|
2911
|
-
|
|
2928
|
+
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
2929
|
+
var H = this.parseMessage(t + 1, r, i);
|
|
2930
|
+
if (H.err)
|
|
2931
|
+
return H;
|
|
2932
|
+
var v = this.tryParseArgumentClose(x);
|
|
2933
|
+
if (v.err)
|
|
2934
|
+
return v;
|
|
2935
|
+
l.push([
|
|
2936
|
+
u,
|
|
2912
2937
|
{
|
|
2913
|
-
value:
|
|
2914
|
-
location:
|
|
2938
|
+
value: H.val,
|
|
2939
|
+
location: O(x, this.clonePosition())
|
|
2915
2940
|
}
|
|
2916
|
-
]),
|
|
2941
|
+
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2917
2942
|
}
|
|
2918
|
-
return
|
|
2943
|
+
return l.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(T.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
2919
2944
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2920
2945
|
var i = 1, n = this.clonePosition();
|
|
2921
2946
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
2922
|
-
for (var s = !1,
|
|
2923
|
-
var
|
|
2924
|
-
if (
|
|
2925
|
-
s = !0,
|
|
2947
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
2948
|
+
var l = this.char();
|
|
2949
|
+
if (l >= 48 && l <= 57)
|
|
2950
|
+
s = !0, a = a * 10 + (l - 48), this.bump();
|
|
2926
2951
|
else
|
|
2927
2952
|
break;
|
|
2928
2953
|
}
|
|
2929
|
-
var
|
|
2930
|
-
return s ? (
|
|
2954
|
+
var o = O(n, this.clonePosition());
|
|
2955
|
+
return s ? (a *= i, qi(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
|
|
2931
2956
|
}, e.prototype.offset = function() {
|
|
2932
2957
|
return this.position.offset;
|
|
2933
2958
|
}, e.prototype.isEOF = function() {
|
|
@@ -2942,7 +2967,7 @@ var ki = (
|
|
|
2942
2967
|
var t = this.position.offset;
|
|
2943
2968
|
if (t >= this.message.length)
|
|
2944
2969
|
throw Error("out of bound");
|
|
2945
|
-
var r =
|
|
2970
|
+
var r = br(this.message, t);
|
|
2946
2971
|
if (r === void 0)
|
|
2947
2972
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2948
2973
|
return r;
|
|
@@ -2961,7 +2986,7 @@ var ki = (
|
|
|
2961
2986
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2962
2987
|
}
|
|
2963
2988
|
}, e.prototype.bumpIf = function(t) {
|
|
2964
|
-
if (
|
|
2989
|
+
if (Rt(this.message, t, this.offset())) {
|
|
2965
2990
|
for (var r = 0; r < t.length; r++)
|
|
2966
2991
|
this.bump();
|
|
2967
2992
|
return !0;
|
|
@@ -2983,7 +3008,7 @@ var ki = (
|
|
|
2983
3008
|
break;
|
|
2984
3009
|
}
|
|
2985
3010
|
}, e.prototype.bumpSpace = function() {
|
|
2986
|
-
for (; !this.isEOF() &&
|
|
3011
|
+
for (; !this.isEOF() && xr(this.char()); )
|
|
2987
3012
|
this.bump();
|
|
2988
3013
|
}, e.prototype.peek = function() {
|
|
2989
3014
|
if (this.isEOF())
|
|
@@ -2993,96 +3018,96 @@ var ki = (
|
|
|
2993
3018
|
}, e;
|
|
2994
3019
|
}()
|
|
2995
3020
|
);
|
|
2996
|
-
function
|
|
3021
|
+
function pt(e) {
|
|
2997
3022
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2998
3023
|
}
|
|
2999
|
-
function
|
|
3000
|
-
return
|
|
3024
|
+
function Ki(e) {
|
|
3025
|
+
return pt(e) || e === 47;
|
|
3001
3026
|
}
|
|
3002
|
-
function
|
|
3027
|
+
function en(e) {
|
|
3003
3028
|
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;
|
|
3004
3029
|
}
|
|
3005
|
-
function
|
|
3030
|
+
function xr(e) {
|
|
3006
3031
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3007
3032
|
}
|
|
3008
|
-
function
|
|
3033
|
+
function tn(e) {
|
|
3009
3034
|
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;
|
|
3010
3035
|
}
|
|
3011
|
-
function
|
|
3036
|
+
function gt(e) {
|
|
3012
3037
|
e.forEach(function(t) {
|
|
3013
|
-
if (delete t.location,
|
|
3038
|
+
if (delete t.location, hr(t) || fr(t))
|
|
3014
3039
|
for (var r in t.options)
|
|
3015
|
-
delete t.options[r].location,
|
|
3016
|
-
else
|
|
3040
|
+
delete t.options[r].location, gt(t.options[r].value);
|
|
3041
|
+
else ar(t) && dr(t.style) || (ur(t) || lr(t)) && ft(t.style) ? delete t.style.location : cr(t) && gt(t.children);
|
|
3017
3042
|
});
|
|
3018
3043
|
}
|
|
3019
|
-
function
|
|
3044
|
+
function rn(e, t) {
|
|
3020
3045
|
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3021
|
-
var r = new
|
|
3046
|
+
var r = new Qi(e, t).parse();
|
|
3022
3047
|
if (r.err) {
|
|
3023
3048
|
var i = SyntaxError(T[r.err.kind]);
|
|
3024
3049
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3025
3050
|
}
|
|
3026
|
-
return t != null && t.captureLocation ||
|
|
3051
|
+
return t != null && t.captureLocation || gt(r.val), r.val;
|
|
3027
3052
|
}
|
|
3028
|
-
function
|
|
3029
|
-
var r = t && t.cache ? t.cache :
|
|
3053
|
+
function it(e, t) {
|
|
3054
|
+
var r = t && t.cache ? t.cache : ln, i = t && t.serializer ? t.serializer : un, n = t && t.strategy ? t.strategy : sn;
|
|
3030
3055
|
return n(e, {
|
|
3031
3056
|
cache: r,
|
|
3032
3057
|
serializer: i
|
|
3033
3058
|
});
|
|
3034
3059
|
}
|
|
3035
|
-
function
|
|
3060
|
+
function nn(e) {
|
|
3036
3061
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3037
3062
|
}
|
|
3038
|
-
function
|
|
3039
|
-
var n =
|
|
3063
|
+
function _r(e, t, r, i) {
|
|
3064
|
+
var n = nn(i) ? i : r(i), s = t.get(n);
|
|
3040
3065
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
3041
3066
|
}
|
|
3042
|
-
function
|
|
3067
|
+
function Er(e, t, r) {
|
|
3043
3068
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
3044
3069
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
3045
3070
|
}
|
|
3046
|
-
function
|
|
3071
|
+
function Et(e, t, r, i, n) {
|
|
3047
3072
|
return r.bind(t, e, i, n);
|
|
3048
3073
|
}
|
|
3049
|
-
function
|
|
3050
|
-
var r = e.length === 1 ?
|
|
3051
|
-
return
|
|
3074
|
+
function sn(e, t) {
|
|
3075
|
+
var r = e.length === 1 ? _r : Er;
|
|
3076
|
+
return Et(e, this, r, t.cache.create(), t.serializer);
|
|
3052
3077
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return
|
|
3078
|
+
function on(e, t) {
|
|
3079
|
+
return Et(e, this, Er, t.cache.create(), t.serializer);
|
|
3055
3080
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return
|
|
3081
|
+
function an(e, t) {
|
|
3082
|
+
return Et(e, this, _r, t.cache.create(), t.serializer);
|
|
3058
3083
|
}
|
|
3059
|
-
var
|
|
3084
|
+
var un = function() {
|
|
3060
3085
|
return JSON.stringify(arguments);
|
|
3061
3086
|
};
|
|
3062
|
-
function
|
|
3087
|
+
function wt() {
|
|
3063
3088
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
3064
3089
|
}
|
|
3065
|
-
|
|
3090
|
+
wt.prototype.get = function(e) {
|
|
3066
3091
|
return this.cache[e];
|
|
3067
3092
|
};
|
|
3068
|
-
|
|
3093
|
+
wt.prototype.set = function(e, t) {
|
|
3069
3094
|
this.cache[e] = t;
|
|
3070
3095
|
};
|
|
3071
|
-
var
|
|
3096
|
+
var ln = {
|
|
3072
3097
|
create: function() {
|
|
3073
|
-
return new
|
|
3098
|
+
return new wt();
|
|
3074
3099
|
}
|
|
3075
|
-
},
|
|
3076
|
-
variadic:
|
|
3077
|
-
monadic:
|
|
3078
|
-
},
|
|
3100
|
+
}, nt = {
|
|
3101
|
+
variadic: on,
|
|
3102
|
+
monadic: an
|
|
3103
|
+
}, Te;
|
|
3079
3104
|
(function(e) {
|
|
3080
3105
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3081
|
-
})(
|
|
3082
|
-
var
|
|
3106
|
+
})(Te || (Te = {}));
|
|
3107
|
+
var Je = (
|
|
3083
3108
|
/** @class */
|
|
3084
3109
|
function(e) {
|
|
3085
|
-
|
|
3110
|
+
Ze(t, e);
|
|
3086
3111
|
function t(r, i, n) {
|
|
3087
3112
|
var s = e.call(this, r) || this;
|
|
3088
3113
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3091,155 +3116,155 @@ var Ve = (
|
|
|
3091
3116
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3092
3117
|
}, t;
|
|
3093
3118
|
}(Error)
|
|
3094
|
-
),
|
|
3119
|
+
), Ft = (
|
|
3095
3120
|
/** @class */
|
|
3096
3121
|
function(e) {
|
|
3097
|
-
|
|
3122
|
+
Ze(t, e);
|
|
3098
3123
|
function t(r, i, n, s) {
|
|
3099
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3124
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Te.INVALID_VALUE, s) || this;
|
|
3100
3125
|
}
|
|
3101
3126
|
return t;
|
|
3102
|
-
}(
|
|
3103
|
-
),
|
|
3127
|
+
}(Je)
|
|
3128
|
+
), hn = (
|
|
3104
3129
|
/** @class */
|
|
3105
3130
|
function(e) {
|
|
3106
|
-
|
|
3131
|
+
Ze(t, e);
|
|
3107
3132
|
function t(r, i, n) {
|
|
3108
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3133
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Te.INVALID_VALUE, n) || this;
|
|
3109
3134
|
}
|
|
3110
3135
|
return t;
|
|
3111
|
-
}(
|
|
3112
|
-
),
|
|
3136
|
+
}(Je)
|
|
3137
|
+
), fn = (
|
|
3113
3138
|
/** @class */
|
|
3114
3139
|
function(e) {
|
|
3115
|
-
|
|
3140
|
+
Ze(t, e);
|
|
3116
3141
|
function t(r, i) {
|
|
3117
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3142
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Te.MISSING_VALUE, i) || this;
|
|
3118
3143
|
}
|
|
3119
3144
|
return t;
|
|
3120
|
-
}(
|
|
3121
|
-
),
|
|
3145
|
+
}(Je)
|
|
3146
|
+
), z;
|
|
3122
3147
|
(function(e) {
|
|
3123
3148
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3124
|
-
})(
|
|
3125
|
-
function
|
|
3149
|
+
})(z || (z = {}));
|
|
3150
|
+
function cn(e) {
|
|
3126
3151
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3127
3152
|
var i = t[t.length - 1];
|
|
3128
|
-
return !i || i.type !==
|
|
3153
|
+
return !i || i.type !== z.literal || r.type !== z.literal ? t.push(r) : i.value += r.value, t;
|
|
3129
3154
|
}, []);
|
|
3130
3155
|
}
|
|
3131
|
-
function
|
|
3156
|
+
function dn(e) {
|
|
3132
3157
|
return typeof e == "function";
|
|
3133
3158
|
}
|
|
3134
|
-
function
|
|
3135
|
-
if (e.length === 1 &&
|
|
3159
|
+
function Ve(e, t, r, i, n, s, a) {
|
|
3160
|
+
if (e.length === 1 && Dt(e[0]))
|
|
3136
3161
|
return [
|
|
3137
3162
|
{
|
|
3138
|
-
type:
|
|
3163
|
+
type: z.literal,
|
|
3139
3164
|
value: e[0].value
|
|
3140
3165
|
}
|
|
3141
3166
|
];
|
|
3142
|
-
for (var
|
|
3143
|
-
var
|
|
3144
|
-
if (
|
|
3145
|
-
|
|
3146
|
-
type:
|
|
3147
|
-
value:
|
|
3167
|
+
for (var l = [], o = 0, u = e; o < u.length; o++) {
|
|
3168
|
+
var h = u[o];
|
|
3169
|
+
if (Dt(h)) {
|
|
3170
|
+
l.push({
|
|
3171
|
+
type: z.literal,
|
|
3172
|
+
value: h.value
|
|
3148
3173
|
});
|
|
3149
3174
|
continue;
|
|
3150
3175
|
}
|
|
3151
|
-
if (
|
|
3152
|
-
typeof s == "number" &&
|
|
3153
|
-
type:
|
|
3176
|
+
if (Ai(h)) {
|
|
3177
|
+
typeof s == "number" && l.push({
|
|
3178
|
+
type: z.literal,
|
|
3154
3179
|
value: r.getNumberFormat(t).format(s)
|
|
3155
3180
|
});
|
|
3156
3181
|
continue;
|
|
3157
3182
|
}
|
|
3158
|
-
var
|
|
3159
|
-
if (!(n &&
|
|
3160
|
-
throw new
|
|
3161
|
-
var
|
|
3162
|
-
if (
|
|
3163
|
-
(!
|
|
3164
|
-
type: typeof
|
|
3165
|
-
value:
|
|
3183
|
+
var c = h.value;
|
|
3184
|
+
if (!(n && c in n))
|
|
3185
|
+
throw new fn(c, a);
|
|
3186
|
+
var p = n[c];
|
|
3187
|
+
if (Oi(h)) {
|
|
3188
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3189
|
+
type: typeof p == "string" ? z.literal : z.object,
|
|
3190
|
+
value: p
|
|
3166
3191
|
});
|
|
3167
3192
|
continue;
|
|
3168
3193
|
}
|
|
3169
|
-
if (
|
|
3170
|
-
var
|
|
3171
|
-
|
|
3172
|
-
type:
|
|
3173
|
-
value: r.getDateTimeFormat(t,
|
|
3194
|
+
if (ur(h)) {
|
|
3195
|
+
var x = typeof h.style == "string" ? i.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3196
|
+
l.push({
|
|
3197
|
+
type: z.literal,
|
|
3198
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3174
3199
|
});
|
|
3175
3200
|
continue;
|
|
3176
3201
|
}
|
|
3177
|
-
if (
|
|
3178
|
-
var
|
|
3179
|
-
|
|
3180
|
-
type:
|
|
3181
|
-
value: r.getDateTimeFormat(t,
|
|
3202
|
+
if (lr(h)) {
|
|
3203
|
+
var x = typeof h.style == "string" ? i.time[h.style] : ft(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3204
|
+
l.push({
|
|
3205
|
+
type: z.literal,
|
|
3206
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3182
3207
|
});
|
|
3183
3208
|
continue;
|
|
3184
3209
|
}
|
|
3185
|
-
if (
|
|
3186
|
-
var
|
|
3187
|
-
|
|
3188
|
-
type:
|
|
3189
|
-
value: r.getNumberFormat(t,
|
|
3210
|
+
if (ar(h)) {
|
|
3211
|
+
var x = typeof h.style == "string" ? i.number[h.style] : dr(h.style) ? h.style.parsedOptions : void 0;
|
|
3212
|
+
x && x.scale && (p = p * (x.scale || 1)), l.push({
|
|
3213
|
+
type: z.literal,
|
|
3214
|
+
value: r.getNumberFormat(t, x).format(p)
|
|
3190
3215
|
});
|
|
3191
3216
|
continue;
|
|
3192
3217
|
}
|
|
3193
|
-
if (
|
|
3194
|
-
var
|
|
3195
|
-
if (!
|
|
3196
|
-
throw new
|
|
3197
|
-
var
|
|
3198
|
-
return
|
|
3218
|
+
if (cr(h)) {
|
|
3219
|
+
var H = h.children, v = h.value, $ = n[v];
|
|
3220
|
+
if (!dn($))
|
|
3221
|
+
throw new hn(v, "function", a);
|
|
3222
|
+
var V = Ve(H, t, r, i, n, s), U = $(V.map(function(I) {
|
|
3223
|
+
return I.value;
|
|
3199
3224
|
}));
|
|
3200
|
-
Array.isArray(
|
|
3225
|
+
Array.isArray(U) || (U = [U]), l.push.apply(l, U.map(function(I) {
|
|
3201
3226
|
return {
|
|
3202
|
-
type: typeof
|
|
3203
|
-
value:
|
|
3227
|
+
type: typeof I == "string" ? z.literal : z.object,
|
|
3228
|
+
value: I
|
|
3204
3229
|
};
|
|
3205
3230
|
}));
|
|
3206
3231
|
}
|
|
3207
|
-
if (
|
|
3208
|
-
var
|
|
3209
|
-
if (!
|
|
3210
|
-
throw new
|
|
3211
|
-
|
|
3232
|
+
if (hr(h)) {
|
|
3233
|
+
var M = h.options[p] || h.options.other;
|
|
3234
|
+
if (!M)
|
|
3235
|
+
throw new Ft(h.value, p, Object.keys(h.options), a);
|
|
3236
|
+
l.push.apply(l, Ve(M.value, t, r, i, n));
|
|
3212
3237
|
continue;
|
|
3213
3238
|
}
|
|
3214
|
-
if (
|
|
3215
|
-
var
|
|
3216
|
-
if (!
|
|
3239
|
+
if (fr(h)) {
|
|
3240
|
+
var M = h.options["=".concat(p)];
|
|
3241
|
+
if (!M) {
|
|
3217
3242
|
if (!Intl.PluralRules)
|
|
3218
|
-
throw new
|
|
3243
|
+
throw new Je(`Intl.PluralRules is not available in this environment.
|
|
3219
3244
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3220
|
-
`,
|
|
3221
|
-
var X = r.getPluralRules(t, { type:
|
|
3222
|
-
|
|
3245
|
+
`, Te.MISSING_INTL_API, a);
|
|
3246
|
+
var X = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3247
|
+
M = h.options[X] || h.options.other;
|
|
3223
3248
|
}
|
|
3224
|
-
if (!
|
|
3225
|
-
throw new
|
|
3226
|
-
|
|
3249
|
+
if (!M)
|
|
3250
|
+
throw new Ft(h.value, p, Object.keys(h.options), a);
|
|
3251
|
+
l.push.apply(l, Ve(M.value, t, r, i, n, p - (h.offset || 0)));
|
|
3227
3252
|
continue;
|
|
3228
3253
|
}
|
|
3229
3254
|
}
|
|
3230
|
-
return
|
|
3255
|
+
return cn(l);
|
|
3231
3256
|
}
|
|
3232
|
-
function
|
|
3257
|
+
function mn(e, t) {
|
|
3233
3258
|
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3234
3259
|
return r[i] = A(A({}, e[i]), t[i] || {}), r;
|
|
3235
3260
|
}, {})) : e;
|
|
3236
3261
|
}
|
|
3237
|
-
function
|
|
3262
|
+
function pn(e, t) {
|
|
3238
3263
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3239
|
-
return r[i] =
|
|
3264
|
+
return r[i] = mn(e[i], t[i]), r;
|
|
3240
3265
|
}, A({}, e)) : e;
|
|
3241
3266
|
}
|
|
3242
|
-
function
|
|
3267
|
+
function st(e) {
|
|
3243
3268
|
return {
|
|
3244
3269
|
create: function() {
|
|
3245
3270
|
return {
|
|
@@ -3253,39 +3278,39 @@ function Qe(e) {
|
|
|
3253
3278
|
}
|
|
3254
3279
|
};
|
|
3255
3280
|
}
|
|
3256
|
-
function
|
|
3281
|
+
function gn(e) {
|
|
3257
3282
|
return e === void 0 && (e = {
|
|
3258
3283
|
number: {},
|
|
3259
3284
|
dateTime: {},
|
|
3260
3285
|
pluralRules: {}
|
|
3261
3286
|
}), {
|
|
3262
|
-
getNumberFormat:
|
|
3287
|
+
getNumberFormat: it(function() {
|
|
3263
3288
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3264
3289
|
r[i] = arguments[i];
|
|
3265
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3290
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3266
3291
|
}, {
|
|
3267
|
-
cache:
|
|
3268
|
-
strategy:
|
|
3292
|
+
cache: st(e.number),
|
|
3293
|
+
strategy: nt.variadic
|
|
3269
3294
|
}),
|
|
3270
|
-
getDateTimeFormat:
|
|
3295
|
+
getDateTimeFormat: it(function() {
|
|
3271
3296
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3272
3297
|
r[i] = arguments[i];
|
|
3273
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, tt([void 0], r, !1)))();
|
|
3274
3299
|
}, {
|
|
3275
|
-
cache:
|
|
3276
|
-
strategy:
|
|
3300
|
+
cache: st(e.dateTime),
|
|
3301
|
+
strategy: nt.variadic
|
|
3277
3302
|
}),
|
|
3278
|
-
getPluralRules:
|
|
3303
|
+
getPluralRules: it(function() {
|
|
3279
3304
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3280
3305
|
r[i] = arguments[i];
|
|
3281
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.PluralRules).bind.apply(t, tt([void 0], r, !1)))();
|
|
3282
3307
|
}, {
|
|
3283
|
-
cache:
|
|
3284
|
-
strategy:
|
|
3308
|
+
cache: st(e.pluralRules),
|
|
3309
|
+
strategy: nt.variadic
|
|
3285
3310
|
})
|
|
3286
3311
|
};
|
|
3287
3312
|
}
|
|
3288
|
-
var
|
|
3313
|
+
var wr = (
|
|
3289
3314
|
/** @class */
|
|
3290
3315
|
function() {
|
|
3291
3316
|
function e(t, r, i, n) {
|
|
@@ -3294,35 +3319,35 @@ var pr = (
|
|
|
3294
3319
|
number: {},
|
|
3295
3320
|
dateTime: {},
|
|
3296
3321
|
pluralRules: {}
|
|
3297
|
-
}, this.format = function(
|
|
3298
|
-
var
|
|
3299
|
-
if (
|
|
3300
|
-
return
|
|
3301
|
-
var
|
|
3302
|
-
return !
|
|
3322
|
+
}, this.format = function(o) {
|
|
3323
|
+
var u = s.formatToParts(o);
|
|
3324
|
+
if (u.length === 1)
|
|
3325
|
+
return u[0].value;
|
|
3326
|
+
var h = u.reduce(function(c, p) {
|
|
3327
|
+
return !c.length || p.type !== z.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3303
3328
|
}, []);
|
|
3304
|
-
return
|
|
3305
|
-
}, this.formatToParts = function(
|
|
3306
|
-
return
|
|
3329
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3330
|
+
}, this.formatToParts = function(o) {
|
|
3331
|
+
return Ve(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
|
|
3307
3332
|
}, this.resolvedOptions = function() {
|
|
3308
|
-
var
|
|
3333
|
+
var o;
|
|
3309
3334
|
return {
|
|
3310
|
-
locale: ((
|
|
3335
|
+
locale: ((o = s.resolvedLocale) === null || o === void 0 ? void 0 : o.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3311
3336
|
};
|
|
3312
3337
|
}, this.getAst = function() {
|
|
3313
3338
|
return s.ast;
|
|
3314
3339
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3315
3340
|
if (this.message = t, !e.__parse)
|
|
3316
3341
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3317
|
-
var
|
|
3318
|
-
|
|
3319
|
-
var
|
|
3320
|
-
this.ast = e.__parse(t, A(A({},
|
|
3342
|
+
var a = n || {};
|
|
3343
|
+
a.formatters;
|
|
3344
|
+
var l = Hi(a, ["formatters"]);
|
|
3345
|
+
this.ast = e.__parse(t, A(A({}, l), { locale: this.resolvedLocale }));
|
|
3321
3346
|
} else
|
|
3322
3347
|
this.ast = t;
|
|
3323
3348
|
if (!Array.isArray(this.ast))
|
|
3324
3349
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3350
|
+
this.formats = pn(e.formats, i), this.formatters = n && n.formatters || gn(this.formatterCache);
|
|
3326
3351
|
}
|
|
3327
3352
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3353
|
get: function() {
|
|
@@ -3335,7 +3360,7 @@ var pr = (
|
|
|
3335
3360
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3336
3361
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3362
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3363
|
+
}, e.__parse = rn, e.formats = {
|
|
3339
3364
|
number: {
|
|
3340
3365
|
integer: {
|
|
3341
3366
|
maximumFractionDigits: 0
|
|
@@ -3396,7 +3421,7 @@ var pr = (
|
|
|
3396
3421
|
}, e;
|
|
3397
3422
|
}()
|
|
3398
3423
|
);
|
|
3399
|
-
function
|
|
3424
|
+
function vn(e, t) {
|
|
3400
3425
|
if (t == null)
|
|
3401
3426
|
return;
|
|
3402
3427
|
if (t in e)
|
|
@@ -3417,101 +3442,101 @@ function sn(e, t) {
|
|
|
3417
3442
|
i = void 0;
|
|
3418
3443
|
return i;
|
|
3419
3444
|
}
|
|
3420
|
-
const
|
|
3445
|
+
const ce = {}, bn = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), Sr = (e, t) => {
|
|
3421
3446
|
if (t == null)
|
|
3422
3447
|
return;
|
|
3423
|
-
if (t in
|
|
3424
|
-
return
|
|
3425
|
-
const r =
|
|
3448
|
+
if (t in ce && e in ce[t])
|
|
3449
|
+
return ce[t][e];
|
|
3450
|
+
const r = Re(t);
|
|
3426
3451
|
for (let i = 0; i < r.length; i++) {
|
|
3427
|
-
const n = r[i], s =
|
|
3452
|
+
const n = r[i], s = xn(n, e);
|
|
3428
3453
|
if (s)
|
|
3429
|
-
return
|
|
3454
|
+
return bn(e, t, s);
|
|
3430
3455
|
}
|
|
3431
3456
|
};
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3434
|
-
function
|
|
3435
|
-
return
|
|
3457
|
+
let St;
|
|
3458
|
+
const Ne = Ye({});
|
|
3459
|
+
function yn(e) {
|
|
3460
|
+
return St[e] || null;
|
|
3436
3461
|
}
|
|
3437
|
-
function
|
|
3438
|
-
return e in
|
|
3462
|
+
function Tr(e) {
|
|
3463
|
+
return e in St;
|
|
3439
3464
|
}
|
|
3440
|
-
function
|
|
3441
|
-
if (!
|
|
3465
|
+
function xn(e, t) {
|
|
3466
|
+
if (!Tr(e))
|
|
3442
3467
|
return null;
|
|
3443
|
-
const r =
|
|
3444
|
-
return
|
|
3468
|
+
const r = yn(e);
|
|
3469
|
+
return vn(r, t);
|
|
3445
3470
|
}
|
|
3446
|
-
function
|
|
3471
|
+
function _n(e) {
|
|
3447
3472
|
if (e == null)
|
|
3448
3473
|
return;
|
|
3449
|
-
const t =
|
|
3474
|
+
const t = Re(e);
|
|
3450
3475
|
for (let r = 0; r < t.length; r++) {
|
|
3451
3476
|
const i = t[r];
|
|
3452
|
-
if (
|
|
3477
|
+
if (Tr(i))
|
|
3453
3478
|
return i;
|
|
3454
3479
|
}
|
|
3455
3480
|
}
|
|
3456
|
-
function
|
|
3457
|
-
delete
|
|
3481
|
+
function Hr(e, ...t) {
|
|
3482
|
+
delete ce[e], Ne.update((r) => (r[e] = Ti.all([r[e] || {}, ...t]), r));
|
|
3458
3483
|
}
|
|
3459
|
-
|
|
3460
|
-
[
|
|
3484
|
+
Oe(
|
|
3485
|
+
[Ne],
|
|
3461
3486
|
([e]) => Object.keys(e)
|
|
3462
3487
|
);
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
|
|
3488
|
+
Ne.subscribe((e) => St = e);
|
|
3489
|
+
const je = {};
|
|
3490
|
+
function En(e, t) {
|
|
3491
|
+
je[e].delete(t), je[e].size === 0 && delete je[e];
|
|
3467
3492
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3493
|
+
function Or(e) {
|
|
3494
|
+
return je[e];
|
|
3470
3495
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3473
|
-
const r =
|
|
3496
|
+
function wn(e) {
|
|
3497
|
+
return Re(e).map((t) => {
|
|
3498
|
+
const r = Or(t);
|
|
3474
3499
|
return [t, r ? [...r] : []];
|
|
3475
3500
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3501
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return e == null ? !1 :
|
|
3502
|
+
function Xe(e) {
|
|
3503
|
+
return e == null ? !1 : Re(e).some(
|
|
3479
3504
|
(t) => {
|
|
3480
3505
|
var r;
|
|
3481
|
-
return (r =
|
|
3506
|
+
return (r = Or(t)) == null ? void 0 : r.size;
|
|
3482
3507
|
}
|
|
3483
3508
|
);
|
|
3484
3509
|
}
|
|
3485
|
-
function
|
|
3510
|
+
function Sn(e, t) {
|
|
3486
3511
|
return Promise.all(
|
|
3487
|
-
t.map((i) => (
|
|
3488
|
-
).then((i) =>
|
|
3489
|
-
}
|
|
3490
|
-
const
|
|
3491
|
-
function
|
|
3492
|
-
if (!
|
|
3493
|
-
return e in
|
|
3494
|
-
const t =
|
|
3495
|
-
return
|
|
3512
|
+
t.map((i) => (En(e, i), i().then((n) => n.default || n)))
|
|
3513
|
+
).then((i) => Hr(e, ...i));
|
|
3514
|
+
}
|
|
3515
|
+
const $e = {};
|
|
3516
|
+
function Ar(e) {
|
|
3517
|
+
if (!Xe(e))
|
|
3518
|
+
return e in $e ? $e[e] : Promise.resolve();
|
|
3519
|
+
const t = wn(e);
|
|
3520
|
+
return $e[e] = Promise.all(
|
|
3496
3521
|
t.map(
|
|
3497
|
-
([r, i]) =>
|
|
3522
|
+
([r, i]) => Sn(r, i)
|
|
3498
3523
|
)
|
|
3499
3524
|
).then(() => {
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3502
|
-
delete
|
|
3503
|
-
}),
|
|
3525
|
+
if (Xe(e))
|
|
3526
|
+
return Ar(e);
|
|
3527
|
+
delete $e[e];
|
|
3528
|
+
}), $e[e];
|
|
3504
3529
|
}
|
|
3505
|
-
var
|
|
3530
|
+
var Gt = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, On = (e, t) => {
|
|
3506
3531
|
var r = {};
|
|
3507
3532
|
for (var i in e)
|
|
3508
|
-
|
|
3509
|
-
if (e != null &&
|
|
3510
|
-
for (var i of
|
|
3511
|
-
t.indexOf(i) < 0 &&
|
|
3533
|
+
Tn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3534
|
+
if (e != null && Gt)
|
|
3535
|
+
for (var i of Gt(e))
|
|
3536
|
+
t.indexOf(i) < 0 && Hn.call(e, i) && (r[i] = e[i]);
|
|
3512
3537
|
return r;
|
|
3513
3538
|
};
|
|
3514
|
-
const
|
|
3539
|
+
const An = {
|
|
3515
3540
|
number: {
|
|
3516
3541
|
scientific: { notation: "scientific" },
|
|
3517
3542
|
engineering: { notation: "engineering" },
|
|
@@ -3541,205 +3566,206 @@ const gn = {
|
|
|
3541
3566
|
}
|
|
3542
3567
|
}
|
|
3543
3568
|
};
|
|
3544
|
-
function
|
|
3569
|
+
function Pn({ locale: e, id: t }) {
|
|
3545
3570
|
console.warn(
|
|
3546
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3571
|
+
`[svelte-i18n] The message "${t}" was not found in "${Re(
|
|
3547
3572
|
e
|
|
3548
|
-
).join('", "')}".${
|
|
3573
|
+
).join('", "')}".${Xe(de()) ? `
|
|
3549
3574
|
|
|
3550
3575
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3551
3576
|
);
|
|
3552
3577
|
}
|
|
3553
|
-
const
|
|
3578
|
+
const $n = {
|
|
3554
3579
|
fallbackLocale: null,
|
|
3555
3580
|
loadingDelay: 200,
|
|
3556
|
-
formats:
|
|
3581
|
+
formats: An,
|
|
3557
3582
|
warnOnMissingMessages: !0,
|
|
3558
3583
|
handleMissingMessage: void 0,
|
|
3559
3584
|
ignoreTag: !0
|
|
3560
|
-
},
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3585
|
+
}, Be = $n;
|
|
3586
|
+
function He() {
|
|
3587
|
+
return Be;
|
|
3563
3588
|
}
|
|
3564
|
-
function
|
|
3565
|
-
const t = e, { formats: r } = t, i =
|
|
3589
|
+
function Bn(e) {
|
|
3590
|
+
const t = e, { formats: r } = t, i = On(t, ["formats"]);
|
|
3566
3591
|
let n = e.fallbackLocale;
|
|
3567
3592
|
if (e.initialLocale)
|
|
3568
3593
|
try {
|
|
3569
|
-
|
|
3594
|
+
wr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3570
3595
|
} catch (s) {
|
|
3571
3596
|
console.warn(
|
|
3572
3597
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3573
3598
|
);
|
|
3574
3599
|
}
|
|
3575
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3600
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Pn : console.warn(
|
|
3576
3601
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3577
|
-
)), Object.assign(
|
|
3602
|
+
)), Object.assign(Be, i, { initialLocale: n }), r && ("number" in r && Object.assign(Be.formats.number, r.number), "date" in r && Object.assign(Be.formats.date, r.date), "time" in r && Object.assign(Be.formats.time, r.time)), pe.set(n);
|
|
3578
3603
|
}
|
|
3579
|
-
const
|
|
3580
|
-
var
|
|
3604
|
+
const ot = Ye(!1);
|
|
3605
|
+
var Mn = Object.defineProperty, Cn = Object.defineProperties, Dn = Object.getOwnPropertyDescriptors, Vt = Object.getOwnPropertySymbols, In = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Nn = (e, t) => {
|
|
3581
3606
|
for (var r in t || (t = {}))
|
|
3582
|
-
|
|
3583
|
-
if (
|
|
3584
|
-
for (var r of
|
|
3585
|
-
|
|
3607
|
+
In.call(t, r) && jt(e, r, t[r]);
|
|
3608
|
+
if (Vt)
|
|
3609
|
+
for (var r of Vt(t))
|
|
3610
|
+
Ln.call(t, r) && jt(e, r, t[r]);
|
|
3586
3611
|
return e;
|
|
3587
|
-
},
|
|
3588
|
-
let
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3612
|
+
}, Rn = (e, t) => Cn(e, Dn(t));
|
|
3613
|
+
let vt;
|
|
3614
|
+
const We = Ye(null);
|
|
3615
|
+
function zt(e) {
|
|
3591
3616
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3592
3617
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const r =
|
|
3595
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3618
|
+
function Re(e, t = He().fallbackLocale) {
|
|
3619
|
+
const r = zt(e);
|
|
3620
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
|
|
3596
3621
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3622
|
+
function de() {
|
|
3623
|
+
return vt != null ? vt : void 0;
|
|
3599
3624
|
}
|
|
3600
|
-
|
|
3601
|
-
|
|
3625
|
+
We.subscribe((e) => {
|
|
3626
|
+
vt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3602
3627
|
});
|
|
3603
|
-
const
|
|
3604
|
-
if (e &&
|
|
3605
|
-
const { loadingDelay: t } =
|
|
3628
|
+
const kn = (e) => {
|
|
3629
|
+
if (e && _n(e) && Xe(e)) {
|
|
3630
|
+
const { loadingDelay: t } = He();
|
|
3606
3631
|
let r;
|
|
3607
|
-
return typeof window != "undefined" &&
|
|
3608
|
-
() =>
|
|
3632
|
+
return typeof window != "undefined" && de() != null && t ? r = window.setTimeout(
|
|
3633
|
+
() => ot.set(!0),
|
|
3609
3634
|
t
|
|
3610
|
-
) :
|
|
3611
|
-
|
|
3635
|
+
) : ot.set(!0), Ar(e).then(() => {
|
|
3636
|
+
We.set(e);
|
|
3612
3637
|
}).finally(() => {
|
|
3613
|
-
clearTimeout(r),
|
|
3638
|
+
clearTimeout(r), ot.set(!1);
|
|
3614
3639
|
});
|
|
3615
3640
|
}
|
|
3616
|
-
return
|
|
3617
|
-
},
|
|
3618
|
-
set:
|
|
3619
|
-
}),
|
|
3641
|
+
return We.set(e);
|
|
3642
|
+
}, pe = Rn(Nn({}, We), {
|
|
3643
|
+
set: kn
|
|
3644
|
+
}), Qe = (e) => {
|
|
3620
3645
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3621
3646
|
return (i) => {
|
|
3622
3647
|
const n = JSON.stringify(i);
|
|
3623
3648
|
return n in t ? t[n] : t[n] = e(i);
|
|
3624
3649
|
};
|
|
3625
3650
|
};
|
|
3626
|
-
var
|
|
3651
|
+
var Un = Object.defineProperty, qe = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
3627
3652
|
for (var r in t || (t = {}))
|
|
3628
|
-
|
|
3629
|
-
if (
|
|
3630
|
-
for (var r of
|
|
3631
|
-
|
|
3653
|
+
Pr.call(t, r) && Xt(e, r, t[r]);
|
|
3654
|
+
if (qe)
|
|
3655
|
+
for (var r of qe(t))
|
|
3656
|
+
$r.call(t, r) && Xt(e, r, t[r]);
|
|
3632
3657
|
return e;
|
|
3633
|
-
},
|
|
3658
|
+
}, Ae = (e, t) => {
|
|
3634
3659
|
var r = {};
|
|
3635
3660
|
for (var i in e)
|
|
3636
|
-
|
|
3637
|
-
if (e != null &&
|
|
3638
|
-
for (var i of
|
|
3639
|
-
t.indexOf(i) < 0 &&
|
|
3661
|
+
Pr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3662
|
+
if (e != null && qe)
|
|
3663
|
+
for (var i of qe(e))
|
|
3664
|
+
t.indexOf(i) < 0 && $r.call(e, i) && (r[i] = e[i]);
|
|
3640
3665
|
return r;
|
|
3641
3666
|
};
|
|
3642
|
-
const
|
|
3643
|
-
const { formats: r } =
|
|
3667
|
+
const Ie = (e, t) => {
|
|
3668
|
+
const { formats: r } = He();
|
|
3644
3669
|
if (e in r && t in r[e])
|
|
3645
3670
|
return r[e][t];
|
|
3646
3671
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3647
|
-
},
|
|
3672
|
+
}, Fn = Qe(
|
|
3648
3673
|
(e) => {
|
|
3649
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3674
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3650
3675
|
if (r == null)
|
|
3651
3676
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3652
|
-
return i && (n =
|
|
3677
|
+
return i && (n = Ie("number", i)), new Intl.NumberFormat(r, n);
|
|
3653
3678
|
}
|
|
3654
|
-
),
|
|
3679
|
+
), Gn = Qe(
|
|
3655
3680
|
(e) => {
|
|
3656
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3681
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3657
3682
|
if (r == null)
|
|
3658
3683
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3659
|
-
return i ? n =
|
|
3684
|
+
return i ? n = Ie("date", i) : Object.keys(n).length === 0 && (n = Ie("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3660
3685
|
}
|
|
3661
|
-
),
|
|
3686
|
+
), Vn = Qe(
|
|
3662
3687
|
(e) => {
|
|
3663
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3688
|
+
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3664
3689
|
if (r == null)
|
|
3665
3690
|
throw new Error(
|
|
3666
3691
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3667
3692
|
);
|
|
3668
|
-
return i ? n =
|
|
3693
|
+
return i ? n = Ie("time", i) : Object.keys(n).length === 0 && (n = Ie("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3669
3694
|
}
|
|
3670
|
-
),
|
|
3695
|
+
), jn = (e = {}) => {
|
|
3671
3696
|
var t = e, {
|
|
3672
|
-
locale: r =
|
|
3673
|
-
} = t, i =
|
|
3697
|
+
locale: r = de()
|
|
3698
|
+
} = t, i = Ae(t, [
|
|
3674
3699
|
"locale"
|
|
3675
3700
|
]);
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3701
|
+
return Fn(Tt({ locale: r }, i));
|
|
3702
|
+
}, zn = (e = {}) => {
|
|
3678
3703
|
var t = e, {
|
|
3679
|
-
locale: r =
|
|
3680
|
-
} = t, i =
|
|
3704
|
+
locale: r = de()
|
|
3705
|
+
} = t, i = Ae(t, [
|
|
3681
3706
|
"locale"
|
|
3682
3707
|
]);
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3708
|
+
return Gn(Tt({ locale: r }, i));
|
|
3709
|
+
}, Xn = (e = {}) => {
|
|
3685
3710
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3687
|
-
} = t, i =
|
|
3711
|
+
locale: r = de()
|
|
3712
|
+
} = t, i = Ae(t, [
|
|
3688
3713
|
"locale"
|
|
3689
3714
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3715
|
+
return Vn(Tt({ locale: r }, i));
|
|
3716
|
+
}, Wn = Qe(
|
|
3692
3717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3693
|
-
(e, t =
|
|
3694
|
-
ignoreTag:
|
|
3718
|
+
(e, t = de()) => new wr(e, t, He().formats, {
|
|
3719
|
+
ignoreTag: He().ignoreTag
|
|
3695
3720
|
})
|
|
3696
|
-
),
|
|
3721
|
+
), qn = (e, t = {}) => {
|
|
3697
3722
|
var r, i, n, s;
|
|
3698
|
-
let
|
|
3699
|
-
typeof e == "object" && (
|
|
3723
|
+
let a = t;
|
|
3724
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3700
3725
|
const {
|
|
3701
|
-
values:
|
|
3702
|
-
locale:
|
|
3703
|
-
default:
|
|
3704
|
-
} =
|
|
3705
|
-
if (
|
|
3726
|
+
values: l,
|
|
3727
|
+
locale: o = de(),
|
|
3728
|
+
default: u
|
|
3729
|
+
} = a;
|
|
3730
|
+
if (o == null)
|
|
3706
3731
|
throw new Error(
|
|
3707
3732
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3708
3733
|
);
|
|
3709
|
-
let
|
|
3710
|
-
if (!
|
|
3711
|
-
|
|
3712
|
-
else if (typeof
|
|
3734
|
+
let h = Sr(e, o);
|
|
3735
|
+
if (!h)
|
|
3736
|
+
h = (s = (n = (i = (r = He()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3737
|
+
else if (typeof h != "string")
|
|
3713
3738
|
return console.warn(
|
|
3714
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3715
|
-
),
|
|
3716
|
-
if (!
|
|
3717
|
-
return
|
|
3718
|
-
let
|
|
3739
|
+
`[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.`
|
|
3740
|
+
), h;
|
|
3741
|
+
if (!l)
|
|
3742
|
+
return h;
|
|
3743
|
+
let c = h;
|
|
3719
3744
|
try {
|
|
3720
|
-
|
|
3721
|
-
} catch (
|
|
3722
|
-
|
|
3745
|
+
c = Wn(h, o).format(l);
|
|
3746
|
+
} catch (p) {
|
|
3747
|
+
p instanceof Error && console.warn(
|
|
3723
3748
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3724
|
-
|
|
3749
|
+
p.message
|
|
3725
3750
|
);
|
|
3726
3751
|
}
|
|
3727
|
-
return
|
|
3728
|
-
},
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
function
|
|
3734
|
-
|
|
3735
|
-
}
|
|
3736
|
-
function
|
|
3737
|
-
|
|
3752
|
+
return c;
|
|
3753
|
+
}, Yn = (e, t) => Xn(t).format(e), Zn = (e, t) => zn(t).format(e), Jn = (e, t) => jn(t).format(e), Qn = (e, t = de()) => Sr(e, t), Kn = Oe([pe, Ne], () => qn);
|
|
3754
|
+
Oe([pe], () => Yn);
|
|
3755
|
+
Oe([pe], () => Zn);
|
|
3756
|
+
Oe([pe], () => Jn);
|
|
3757
|
+
Oe([pe, Ne], () => Qn);
|
|
3758
|
+
function Wt(e, t) {
|
|
3759
|
+
Hr(e, t);
|
|
3760
|
+
}
|
|
3761
|
+
function es(e) {
|
|
3762
|
+
Bn({
|
|
3738
3763
|
fallbackLocale: "en"
|
|
3739
|
-
}),
|
|
3764
|
+
}), pe.set(e);
|
|
3740
3765
|
}
|
|
3741
|
-
const
|
|
3766
|
+
const qt = {
|
|
3742
3767
|
en: {
|
|
3768
|
+
"verification.video.how-to": "How to verify yourself",
|
|
3743
3769
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
3744
3770
|
"verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
|
|
3745
3771
|
"verification.idenfy.link-name": "link",
|
|
@@ -3757,6 +3783,7 @@ const kt = {
|
|
|
3757
3783
|
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
3758
3784
|
},
|
|
3759
3785
|
tr: {
|
|
3786
|
+
"verification.video.how-to": "Kimlik doğrulama nasıl yapılır",
|
|
3760
3787
|
"verification.idenfy.referred-awaiting": "Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz",
|
|
3761
3788
|
"verification.message.failed": "Döküman doğrulama başarısız, hesabınız doğrulanamadı",
|
|
3762
3789
|
"verification.idenfy.link-name": "link",
|
|
@@ -3774,6 +3801,7 @@ const kt = {
|
|
|
3774
3801
|
"verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
|
|
3775
3802
|
},
|
|
3776
3803
|
hr: {
|
|
3804
|
+
"verification.video.how-to": "How to verify yourself",
|
|
3777
3805
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
3778
3806
|
"verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
|
|
3779
3807
|
"verification.idenfy.link-name": "link",
|
|
@@ -3791,261 +3819,277 @@ const kt = {
|
|
|
3791
3819
|
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
3792
3820
|
}
|
|
3793
3821
|
};
|
|
3794
|
-
|
|
3822
|
+
if (typeof window != "undefined") {
|
|
3823
|
+
let e = function(t) {
|
|
3824
|
+
return function(...r) {
|
|
3825
|
+
try {
|
|
3826
|
+
return t.apply(this, r);
|
|
3827
|
+
} catch (i) {
|
|
3828
|
+
if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3829
|
+
return !1;
|
|
3830
|
+
throw i;
|
|
3831
|
+
}
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-BJBn3Hzn.js").then(({ default: t }) => {
|
|
3835
|
+
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3836
|
+
});
|
|
3837
|
+
}
|
|
3838
|
+
var Br = { exports: {} };
|
|
3795
3839
|
(function(e, t) {
|
|
3796
3840
|
(function(r, i) {
|
|
3797
3841
|
e.exports = i();
|
|
3798
|
-
})(
|
|
3799
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond",
|
|
3800
|
-
var g = ["th", "st", "nd", "rd"],
|
|
3801
|
-
return "[" +
|
|
3802
|
-
} },
|
|
3803
|
-
var
|
|
3804
|
-
return !
|
|
3805
|
-
}, X = { s:
|
|
3806
|
-
var g = -
|
|
3807
|
-
return (g <= 0 ? "+" : "-") +
|
|
3808
|
-
}, m: function
|
|
3809
|
-
if (g.date() <
|
|
3810
|
-
var
|
|
3811
|
-
return +(-(
|
|
3812
|
-
}, a: function(
|
|
3813
|
-
return
|
|
3814
|
-
}, p: function(
|
|
3815
|
-
return { M:
|
|
3816
|
-
}, u: function(
|
|
3817
|
-
return
|
|
3818
|
-
} },
|
|
3819
|
-
|
|
3820
|
-
var
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3823
|
-
var
|
|
3824
|
-
if (!g) return
|
|
3842
|
+
})(sr, function() {
|
|
3843
|
+
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", H = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, U = { 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(_) {
|
|
3844
|
+
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3845
|
+
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3846
|
+
} }, M = function(_, g, d) {
|
|
3847
|
+
var b = String(_);
|
|
3848
|
+
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(d) + _;
|
|
3849
|
+
}, X = { s: M, z: function(_) {
|
|
3850
|
+
var g = -_.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3851
|
+
return (g <= 0 ? "+" : "-") + M(b, 2, "0") + ":" + M(m, 2, "0");
|
|
3852
|
+
}, m: function _(g, d) {
|
|
3853
|
+
if (g.date() < d.date()) return -_(d, g);
|
|
3854
|
+
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);
|
|
3855
|
+
return +(-(b + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3856
|
+
}, a: function(_) {
|
|
3857
|
+
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3858
|
+
}, p: function(_) {
|
|
3859
|
+
return { M: c, y: x, w: h, d: u, D: H, h: o, m: l, s: a, ms: s, Q: p }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
3860
|
+
}, u: function(_) {
|
|
3861
|
+
return _ === void 0;
|
|
3862
|
+
} }, I = "en", L = {};
|
|
3863
|
+
L[I] = U;
|
|
3864
|
+
var Y = "$isDayjsObject", R = function(_) {
|
|
3865
|
+
return _ instanceof ge || !(!_ || !_[Y]);
|
|
3866
|
+
}, W = function _(g, d, b) {
|
|
3867
|
+
var m;
|
|
3868
|
+
if (!g) return I;
|
|
3825
3869
|
if (typeof g == "string") {
|
|
3826
|
-
var
|
|
3827
|
-
|
|
3828
|
-
var
|
|
3829
|
-
if (!
|
|
3870
|
+
var E = g.toLowerCase();
|
|
3871
|
+
L[E] && (m = E), d && (L[E] = d, m = E);
|
|
3872
|
+
var w = g.split("-");
|
|
3873
|
+
if (!m && w.length > 1) return _(w[0]);
|
|
3830
3874
|
} else {
|
|
3831
|
-
var
|
|
3832
|
-
|
|
3875
|
+
var B = g.name;
|
|
3876
|
+
L[B] = g, m = B;
|
|
3833
3877
|
}
|
|
3834
|
-
return !
|
|
3835
|
-
},
|
|
3836
|
-
if (
|
|
3837
|
-
var
|
|
3838
|
-
return
|
|
3839
|
-
},
|
|
3840
|
-
|
|
3841
|
-
return
|
|
3878
|
+
return !b && m && (I = m), m || !b && I;
|
|
3879
|
+
}, k = function(_, g) {
|
|
3880
|
+
if (R(_)) return _.clone();
|
|
3881
|
+
var d = typeof g == "object" ? g : {};
|
|
3882
|
+
return d.date = _, d.args = arguments, new ge(d);
|
|
3883
|
+
}, P = X;
|
|
3884
|
+
P.l = W, P.i = R, P.w = function(_, g) {
|
|
3885
|
+
return k(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3842
3886
|
};
|
|
3843
|
-
var
|
|
3844
|
-
function
|
|
3845
|
-
this.$L =
|
|
3887
|
+
var ge = function() {
|
|
3888
|
+
function _(d) {
|
|
3889
|
+
this.$L = W(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[Y] = !0;
|
|
3846
3890
|
}
|
|
3847
|
-
var g =
|
|
3848
|
-
return g.parse = function(
|
|
3849
|
-
this.$d = function(
|
|
3850
|
-
var
|
|
3851
|
-
if (
|
|
3852
|
-
if (
|
|
3853
|
-
if (
|
|
3854
|
-
if (typeof
|
|
3855
|
-
var
|
|
3856
|
-
if (
|
|
3857
|
-
var
|
|
3858
|
-
return
|
|
3891
|
+
var g = _.prototype;
|
|
3892
|
+
return g.parse = function(d) {
|
|
3893
|
+
this.$d = function(b) {
|
|
3894
|
+
var m = b.date, E = b.utc;
|
|
3895
|
+
if (m === null) return /* @__PURE__ */ new Date(NaN);
|
|
3896
|
+
if (P.u(m)) return /* @__PURE__ */ new Date();
|
|
3897
|
+
if (m instanceof Date) return new Date(m);
|
|
3898
|
+
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3899
|
+
var w = m.match($);
|
|
3900
|
+
if (w) {
|
|
3901
|
+
var B = w[2] - 1 || 0, D = (w[7] || "0").substring(0, 3);
|
|
3902
|
+
return E ? new Date(Date.UTC(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D)) : new Date(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D);
|
|
3859
3903
|
}
|
|
3860
3904
|
}
|
|
3861
|
-
return new Date(
|
|
3862
|
-
}(
|
|
3905
|
+
return new Date(m);
|
|
3906
|
+
}(d), this.init();
|
|
3863
3907
|
}, g.init = function() {
|
|
3864
|
-
var
|
|
3865
|
-
this.$y =
|
|
3908
|
+
var d = this.$d;
|
|
3909
|
+
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();
|
|
3866
3910
|
}, g.$utils = function() {
|
|
3867
|
-
return
|
|
3911
|
+
return P;
|
|
3868
3912
|
}, g.isValid = function() {
|
|
3869
|
-
return this.$d.toString() !==
|
|
3870
|
-
}, g.isSame = function(
|
|
3871
|
-
var
|
|
3872
|
-
return this.startOf(
|
|
3873
|
-
}, g.isAfter = function(
|
|
3874
|
-
return
|
|
3875
|
-
}, g.isBefore = function(
|
|
3876
|
-
return this.endOf(
|
|
3877
|
-
}, g.$g = function(
|
|
3878
|
-
return
|
|
3913
|
+
return this.$d.toString() !== v;
|
|
3914
|
+
}, g.isSame = function(d, b) {
|
|
3915
|
+
var m = k(d);
|
|
3916
|
+
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3917
|
+
}, g.isAfter = function(d, b) {
|
|
3918
|
+
return k(d) < this.startOf(b);
|
|
3919
|
+
}, g.isBefore = function(d, b) {
|
|
3920
|
+
return this.endOf(b) < k(d);
|
|
3921
|
+
}, g.$g = function(d, b, m) {
|
|
3922
|
+
return P.u(d) ? this[b] : this.set(m, d);
|
|
3879
3923
|
}, g.unix = function() {
|
|
3880
3924
|
return Math.floor(this.valueOf() / 1e3);
|
|
3881
3925
|
}, g.valueOf = function() {
|
|
3882
3926
|
return this.$d.getTime();
|
|
3883
|
-
}, g.startOf = function(
|
|
3884
|
-
var
|
|
3885
|
-
var
|
|
3886
|
-
return
|
|
3887
|
-
},
|
|
3888
|
-
return
|
|
3889
|
-
},
|
|
3890
|
-
switch (
|
|
3891
|
-
case
|
|
3892
|
-
return
|
|
3893
|
-
case
|
|
3894
|
-
return
|
|
3895
|
-
case f:
|
|
3896
|
-
var Q = this.$locale().weekStart || 0, oe = (U < Q ? U + 7 : U) - Q;
|
|
3897
|
-
return M(w ? V - oe : V + (6 - oe), k);
|
|
3927
|
+
}, g.startOf = function(d, b) {
|
|
3928
|
+
var m = this, E = !!P.u(b) || b, w = P.p(d), B = function(ae, j) {
|
|
3929
|
+
var Q = P.w(m.$u ? Date.UTC(m.$y, j, ae) : new Date(m.$y, j, ae), m);
|
|
3930
|
+
return E ? Q : Q.endOf(u);
|
|
3931
|
+
}, D = function(ae, j) {
|
|
3932
|
+
return P.w(m.toDate()[ae].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), m);
|
|
3933
|
+
}, N = this.$W, F = this.$M, q = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
|
3934
|
+
switch (w) {
|
|
3935
|
+
case x:
|
|
3936
|
+
return E ? B(1, 0) : B(31, 11);
|
|
3937
|
+
case c:
|
|
3938
|
+
return E ? B(1, F) : B(0, F + 1);
|
|
3898
3939
|
case h:
|
|
3899
|
-
|
|
3900
|
-
return
|
|
3901
|
-
case l:
|
|
3902
|
-
return I(ee + "Minutes", 1);
|
|
3940
|
+
var se = this.$locale().weekStart || 0, oe = (N < se ? N + 7 : N) - se;
|
|
3941
|
+
return B(E ? q - oe : q + (6 - oe), F);
|
|
3903
3942
|
case u:
|
|
3904
|
-
|
|
3943
|
+
case H:
|
|
3944
|
+
return D(le + "Hours", 0);
|
|
3905
3945
|
case o:
|
|
3906
|
-
return
|
|
3946
|
+
return D(le + "Minutes", 1);
|
|
3947
|
+
case l:
|
|
3948
|
+
return D(le + "Seconds", 2);
|
|
3949
|
+
case a:
|
|
3950
|
+
return D(le + "Milliseconds", 3);
|
|
3907
3951
|
default:
|
|
3908
3952
|
return this.clone();
|
|
3909
3953
|
}
|
|
3910
|
-
}, g.endOf = function(
|
|
3911
|
-
return this.startOf(
|
|
3912
|
-
}, g.$set = function(
|
|
3913
|
-
var
|
|
3914
|
-
if (
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3917
|
-
} else
|
|
3954
|
+
}, g.endOf = function(d) {
|
|
3955
|
+
return this.startOf(d, !1);
|
|
3956
|
+
}, g.$set = function(d, b) {
|
|
3957
|
+
var m, E = P.p(d), w = "set" + (this.$u ? "UTC" : ""), B = (m = {}, m[u] = w + "Date", m[H] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[l] = w + "Minutes", m[a] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], D = E === u ? this.$D + (b - this.$W) : b;
|
|
3958
|
+
if (E === c || E === x) {
|
|
3959
|
+
var N = this.clone().set(H, 1);
|
|
3960
|
+
N.$d[B](D), N.init(), this.$d = N.set(H, Math.min(this.$D, N.daysInMonth())).$d;
|
|
3961
|
+
} else B && this.$d[B](D);
|
|
3918
3962
|
return this.init(), this;
|
|
3919
|
-
}, g.set = function(
|
|
3920
|
-
return this.clone().$set(
|
|
3921
|
-
}, g.get = function(
|
|
3922
|
-
return this[
|
|
3923
|
-
}, g.add = function(
|
|
3924
|
-
var
|
|
3925
|
-
|
|
3926
|
-
var
|
|
3927
|
-
var
|
|
3928
|
-
return
|
|
3963
|
+
}, g.set = function(d, b) {
|
|
3964
|
+
return this.clone().$set(d, b);
|
|
3965
|
+
}, g.get = function(d) {
|
|
3966
|
+
return this[P.p(d)]();
|
|
3967
|
+
}, g.add = function(d, b) {
|
|
3968
|
+
var m, E = this;
|
|
3969
|
+
d = Number(d);
|
|
3970
|
+
var w = P.p(b), B = function(F) {
|
|
3971
|
+
var q = k(E);
|
|
3972
|
+
return P.w(q.date(q.date() + Math.round(F * d)), E);
|
|
3929
3973
|
};
|
|
3930
|
-
if (
|
|
3931
|
-
if (
|
|
3932
|
-
if (
|
|
3933
|
-
if (
|
|
3934
|
-
var
|
|
3935
|
-
return
|
|
3936
|
-
}, g.subtract = function(
|
|
3937
|
-
return this.add(-1 *
|
|
3938
|
-
}, g.format = function(
|
|
3939
|
-
var
|
|
3940
|
-
if (!this.isValid()) return
|
|
3941
|
-
var
|
|
3942
|
-
return
|
|
3943
|
-
}, oe = function(
|
|
3944
|
-
return
|
|
3945
|
-
},
|
|
3946
|
-
var
|
|
3947
|
-
return
|
|
3974
|
+
if (w === c) return this.set(c, this.$M + d);
|
|
3975
|
+
if (w === x) return this.set(x, this.$y + d);
|
|
3976
|
+
if (w === u) return B(1);
|
|
3977
|
+
if (w === h) return B(7);
|
|
3978
|
+
var D = (m = {}, m[l] = i, m[o] = n, m[a] = r, m)[w] || 1, N = this.$d.getTime() + d * D;
|
|
3979
|
+
return P.w(N, this);
|
|
3980
|
+
}, g.subtract = function(d, b) {
|
|
3981
|
+
return this.add(-1 * d, b);
|
|
3982
|
+
}, g.format = function(d) {
|
|
3983
|
+
var b = this, m = this.$locale();
|
|
3984
|
+
if (!this.isValid()) return m.invalidDate || v;
|
|
3985
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), B = this.$H, D = this.$m, N = this.$M, F = m.weekdays, q = m.months, le = m.meridiem, se = function(j, Q, me, ve) {
|
|
3986
|
+
return j && (j[Q] || j(b, E)) || me[Q].slice(0, ve);
|
|
3987
|
+
}, oe = function(j) {
|
|
3988
|
+
return P.s(B % 12 || 12, j, "0");
|
|
3989
|
+
}, ae = le || function(j, Q, me) {
|
|
3990
|
+
var ve = j < 12 ? "AM" : "PM";
|
|
3991
|
+
return me ? ve.toLowerCase() : ve;
|
|
3948
3992
|
};
|
|
3949
|
-
return
|
|
3950
|
-
return
|
|
3951
|
-
switch (
|
|
3993
|
+
return E.replace(V, function(j, Q) {
|
|
3994
|
+
return Q || function(me) {
|
|
3995
|
+
switch (me) {
|
|
3952
3996
|
case "YY":
|
|
3953
|
-
return String(
|
|
3997
|
+
return String(b.$y).slice(-2);
|
|
3954
3998
|
case "YYYY":
|
|
3955
|
-
return
|
|
3999
|
+
return P.s(b.$y, 4, "0");
|
|
3956
4000
|
case "M":
|
|
3957
|
-
return
|
|
4001
|
+
return N + 1;
|
|
3958
4002
|
case "MM":
|
|
3959
|
-
return
|
|
4003
|
+
return P.s(N + 1, 2, "0");
|
|
3960
4004
|
case "MMM":
|
|
3961
|
-
return
|
|
4005
|
+
return se(m.monthsShort, N, q, 3);
|
|
3962
4006
|
case "MMMM":
|
|
3963
|
-
return
|
|
4007
|
+
return se(q, N);
|
|
3964
4008
|
case "D":
|
|
3965
|
-
return
|
|
4009
|
+
return b.$D;
|
|
3966
4010
|
case "DD":
|
|
3967
|
-
return
|
|
4011
|
+
return P.s(b.$D, 2, "0");
|
|
3968
4012
|
case "d":
|
|
3969
|
-
return String(
|
|
4013
|
+
return String(b.$W);
|
|
3970
4014
|
case "dd":
|
|
3971
|
-
return
|
|
4015
|
+
return se(m.weekdaysMin, b.$W, F, 2);
|
|
3972
4016
|
case "ddd":
|
|
3973
|
-
return
|
|
4017
|
+
return se(m.weekdaysShort, b.$W, F, 3);
|
|
3974
4018
|
case "dddd":
|
|
3975
|
-
return
|
|
4019
|
+
return F[b.$W];
|
|
3976
4020
|
case "H":
|
|
3977
|
-
return String(
|
|
4021
|
+
return String(B);
|
|
3978
4022
|
case "HH":
|
|
3979
|
-
return
|
|
4023
|
+
return P.s(B, 2, "0");
|
|
3980
4024
|
case "h":
|
|
3981
4025
|
return oe(1);
|
|
3982
4026
|
case "hh":
|
|
3983
4027
|
return oe(2);
|
|
3984
4028
|
case "a":
|
|
3985
|
-
return
|
|
4029
|
+
return ae(B, D, !0);
|
|
3986
4030
|
case "A":
|
|
3987
|
-
return
|
|
4031
|
+
return ae(B, D, !1);
|
|
3988
4032
|
case "m":
|
|
3989
|
-
return String(
|
|
4033
|
+
return String(D);
|
|
3990
4034
|
case "mm":
|
|
3991
|
-
return
|
|
4035
|
+
return P.s(D, 2, "0");
|
|
3992
4036
|
case "s":
|
|
3993
|
-
return String(
|
|
4037
|
+
return String(b.$s);
|
|
3994
4038
|
case "ss":
|
|
3995
|
-
return
|
|
4039
|
+
return P.s(b.$s, 2, "0");
|
|
3996
4040
|
case "SSS":
|
|
3997
|
-
return
|
|
4041
|
+
return P.s(b.$ms, 3, "0");
|
|
3998
4042
|
case "Z":
|
|
3999
|
-
return
|
|
4043
|
+
return w;
|
|
4000
4044
|
}
|
|
4001
4045
|
return null;
|
|
4002
|
-
}(
|
|
4046
|
+
}(j) || w.replace(":", "");
|
|
4003
4047
|
});
|
|
4004
4048
|
}, g.utcOffset = function() {
|
|
4005
4049
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4006
|
-
}, g.diff = function(
|
|
4007
|
-
var
|
|
4008
|
-
return
|
|
4050
|
+
}, g.diff = function(d, b, m) {
|
|
4051
|
+
var E, w = this, B = P.p(b), D = k(d), N = (D.utcOffset() - this.utcOffset()) * i, F = this - D, q = function() {
|
|
4052
|
+
return P.m(w, D);
|
|
4009
4053
|
};
|
|
4010
|
-
switch (
|
|
4011
|
-
case
|
|
4012
|
-
|
|
4013
|
-
break;
|
|
4014
|
-
case d:
|
|
4015
|
-
w = V();
|
|
4054
|
+
switch (B) {
|
|
4055
|
+
case x:
|
|
4056
|
+
E = q() / 12;
|
|
4016
4057
|
break;
|
|
4017
|
-
case
|
|
4018
|
-
|
|
4058
|
+
case c:
|
|
4059
|
+
E = q();
|
|
4019
4060
|
break;
|
|
4020
|
-
case
|
|
4021
|
-
|
|
4061
|
+
case p:
|
|
4062
|
+
E = q() / 3;
|
|
4022
4063
|
break;
|
|
4023
4064
|
case h:
|
|
4024
|
-
|
|
4025
|
-
break;
|
|
4026
|
-
case l:
|
|
4027
|
-
w = k / n;
|
|
4065
|
+
E = (F - N) / 6048e5;
|
|
4028
4066
|
break;
|
|
4029
4067
|
case u:
|
|
4030
|
-
|
|
4068
|
+
E = (F - N) / 864e5;
|
|
4031
4069
|
break;
|
|
4032
4070
|
case o:
|
|
4033
|
-
|
|
4071
|
+
E = F / n;
|
|
4072
|
+
break;
|
|
4073
|
+
case l:
|
|
4074
|
+
E = F / i;
|
|
4075
|
+
break;
|
|
4076
|
+
case a:
|
|
4077
|
+
E = F / r;
|
|
4034
4078
|
break;
|
|
4035
4079
|
default:
|
|
4036
|
-
|
|
4080
|
+
E = F;
|
|
4037
4081
|
}
|
|
4038
|
-
return
|
|
4082
|
+
return m ? E : P.a(E);
|
|
4039
4083
|
}, g.daysInMonth = function() {
|
|
4040
|
-
return this.endOf(
|
|
4084
|
+
return this.endOf(c).$D;
|
|
4041
4085
|
}, g.$locale = function() {
|
|
4042
|
-
return
|
|
4043
|
-
}, g.locale = function(
|
|
4044
|
-
if (!
|
|
4045
|
-
var
|
|
4046
|
-
return
|
|
4086
|
+
return L[this.$L];
|
|
4087
|
+
}, g.locale = function(d, b) {
|
|
4088
|
+
if (!d) return this.$L;
|
|
4089
|
+
var m = this.clone(), E = W(d, b, !0);
|
|
4090
|
+
return E && (m.$L = E), m;
|
|
4047
4091
|
}, g.clone = function() {
|
|
4048
|
-
return
|
|
4092
|
+
return P.w(this.$d, this);
|
|
4049
4093
|
}, g.toDate = function() {
|
|
4050
4094
|
return new Date(this.valueOf());
|
|
4051
4095
|
}, g.toJSON = function() {
|
|
@@ -4054,525 +4098,651 @@ var wr = { exports: {} };
|
|
|
4054
4098
|
return this.$d.toISOString();
|
|
4055
4099
|
}, g.toString = function() {
|
|
4056
4100
|
return this.$d.toUTCString();
|
|
4057
|
-
},
|
|
4058
|
-
}(),
|
|
4059
|
-
return
|
|
4060
|
-
|
|
4061
|
-
return this.$g(g,
|
|
4101
|
+
}, _;
|
|
4102
|
+
}(), ke = ge.prototype;
|
|
4103
|
+
return k.prototype = ke, [["$ms", s], ["$s", a], ["$m", l], ["$H", o], ["$W", u], ["$M", c], ["$y", x], ["$D", H]].forEach(function(_) {
|
|
4104
|
+
ke[_[1]] = function(g) {
|
|
4105
|
+
return this.$g(g, _[0], _[1]);
|
|
4062
4106
|
};
|
|
4063
|
-
}),
|
|
4064
|
-
return
|
|
4065
|
-
},
|
|
4066
|
-
return
|
|
4067
|
-
},
|
|
4107
|
+
}), k.extend = function(_, g) {
|
|
4108
|
+
return _.$i || (_(g, ge, k), _.$i = !0), k;
|
|
4109
|
+
}, k.locale = W, k.isDayjs = R, k.unix = function(_) {
|
|
4110
|
+
return k(1e3 * _);
|
|
4111
|
+
}, k.en = L[I], k.Ls = L, k.p = {}, k;
|
|
4068
4112
|
});
|
|
4069
|
-
})(
|
|
4070
|
-
var
|
|
4071
|
-
const
|
|
4072
|
-
var
|
|
4113
|
+
})(Br);
|
|
4114
|
+
var ts = Br.exports;
|
|
4115
|
+
const Yt = /* @__PURE__ */ _t(ts);
|
|
4116
|
+
var Mr = { exports: {} };
|
|
4073
4117
|
(function(e, t) {
|
|
4074
4118
|
(function(r, i) {
|
|
4075
4119
|
e.exports = i();
|
|
4076
|
-
})(
|
|
4120
|
+
})(sr, function() {
|
|
4077
4121
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4078
|
-
return function(s,
|
|
4079
|
-
var
|
|
4080
|
-
|
|
4081
|
-
var
|
|
4082
|
-
return new
|
|
4083
|
-
},
|
|
4084
|
-
var
|
|
4085
|
-
return
|
|
4086
|
-
},
|
|
4087
|
-
return
|
|
4122
|
+
return function(s, a, l) {
|
|
4123
|
+
var o = a.prototype;
|
|
4124
|
+
l.utc = function(v) {
|
|
4125
|
+
var $ = { date: v, utc: !0, args: arguments };
|
|
4126
|
+
return new a($);
|
|
4127
|
+
}, o.utc = function(v) {
|
|
4128
|
+
var $ = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4129
|
+
return v ? $.add(this.utcOffset(), r) : $;
|
|
4130
|
+
}, o.local = function() {
|
|
4131
|
+
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4088
4132
|
};
|
|
4089
|
-
var
|
|
4090
|
-
|
|
4091
|
-
|
|
4133
|
+
var u = o.parse;
|
|
4134
|
+
o.parse = function(v) {
|
|
4135
|
+
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), u.call(this, v);
|
|
4092
4136
|
};
|
|
4093
|
-
var
|
|
4094
|
-
|
|
4137
|
+
var h = o.init;
|
|
4138
|
+
o.init = function() {
|
|
4095
4139
|
if (this.$u) {
|
|
4096
|
-
var
|
|
4097
|
-
this.$y =
|
|
4098
|
-
} else
|
|
4140
|
+
var v = this.$d;
|
|
4141
|
+
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
4142
|
+
} else h.call(this);
|
|
4099
4143
|
};
|
|
4100
|
-
var
|
|
4101
|
-
|
|
4102
|
-
var
|
|
4103
|
-
if (
|
|
4104
|
-
if (typeof
|
|
4105
|
-
|
|
4106
|
-
var
|
|
4107
|
-
if (!
|
|
4108
|
-
var
|
|
4109
|
-
return
|
|
4110
|
-
}(
|
|
4111
|
-
var
|
|
4112
|
-
if (
|
|
4113
|
-
if (
|
|
4144
|
+
var c = o.utcOffset;
|
|
4145
|
+
o.utcOffset = function(v, $) {
|
|
4146
|
+
var V = this.$utils().u;
|
|
4147
|
+
if (V(v)) return this.$u ? 0 : V(this.$offset) ? c.call(this) : this.$offset;
|
|
4148
|
+
if (typeof v == "string" && (v = function(I) {
|
|
4149
|
+
I === void 0 && (I = "");
|
|
4150
|
+
var L = I.match(i);
|
|
4151
|
+
if (!L) return null;
|
|
4152
|
+
var Y = ("" + L[0]).match(n) || ["-", 0, 0], R = Y[0], W = 60 * +Y[1] + +Y[2];
|
|
4153
|
+
return W === 0 ? 0 : R === "+" ? W : -W;
|
|
4154
|
+
}(v), v === null)) return this;
|
|
4155
|
+
var U = Math.abs(v) <= 16 ? 60 * v : v, M = this;
|
|
4156
|
+
if ($) return M.$offset = U, M.$u = v === 0, M;
|
|
4157
|
+
if (v !== 0) {
|
|
4114
4158
|
var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4115
|
-
(
|
|
4116
|
-
} else
|
|
4117
|
-
return
|
|
4159
|
+
(M = this.local().add(U + X, r)).$offset = U, M.$x.$localOffset = X;
|
|
4160
|
+
} else M = this.utc();
|
|
4161
|
+
return M;
|
|
4118
4162
|
};
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
var
|
|
4122
|
-
return
|
|
4123
|
-
},
|
|
4124
|
-
var
|
|
4125
|
-
return this.$d.valueOf() - 6e4 *
|
|
4126
|
-
},
|
|
4163
|
+
var p = o.format;
|
|
4164
|
+
o.format = function(v) {
|
|
4165
|
+
var $ = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4166
|
+
return p.call(this, $);
|
|
4167
|
+
}, o.valueOf = function() {
|
|
4168
|
+
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4169
|
+
return this.$d.valueOf() - 6e4 * v;
|
|
4170
|
+
}, o.isUTC = function() {
|
|
4127
4171
|
return !!this.$u;
|
|
4128
|
-
},
|
|
4172
|
+
}, o.toISOString = function() {
|
|
4129
4173
|
return this.toDate().toISOString();
|
|
4130
|
-
},
|
|
4174
|
+
}, o.toString = function() {
|
|
4131
4175
|
return this.toDate().toUTCString();
|
|
4132
4176
|
};
|
|
4133
|
-
var
|
|
4134
|
-
|
|
4135
|
-
return
|
|
4177
|
+
var x = o.toDate;
|
|
4178
|
+
o.toDate = function(v) {
|
|
4179
|
+
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4136
4180
|
};
|
|
4137
|
-
var
|
|
4138
|
-
|
|
4139
|
-
if (
|
|
4140
|
-
var
|
|
4141
|
-
return
|
|
4181
|
+
var H = o.diff;
|
|
4182
|
+
o.diff = function(v, $, V) {
|
|
4183
|
+
if (v && this.$u === v.$u) return H.call(this, v, $, V);
|
|
4184
|
+
var U = this.local(), M = l(v).local();
|
|
4185
|
+
return H.call(U, M, $, V);
|
|
4142
4186
|
};
|
|
4143
4187
|
};
|
|
4144
4188
|
});
|
|
4145
|
-
})(
|
|
4146
|
-
var
|
|
4147
|
-
const
|
|
4148
|
-
function
|
|
4149
|
-
|
|
4189
|
+
})(Mr);
|
|
4190
|
+
var rs = Mr.exports;
|
|
4191
|
+
const is = /* @__PURE__ */ _t(rs);
|
|
4192
|
+
function ns(e) {
|
|
4193
|
+
Vr(e, "svelte-3l7kfy", "*,*::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{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;line-height:120%;margin:var(--emw--spacing-small, 12px)}");
|
|
4150
4194
|
}
|
|
4151
|
-
function
|
|
4195
|
+
function Zt(e, t, r) {
|
|
4152
4196
|
const i = e.slice();
|
|
4153
|
-
return i[
|
|
4197
|
+
return i[49] = t[r], i[51] = r, i;
|
|
4154
4198
|
}
|
|
4155
|
-
function
|
|
4156
|
-
let t, r =
|
|
4199
|
+
function Jt(e) {
|
|
4200
|
+
let t, r, i, n, s = Mt(
|
|
4157
4201
|
/*displayMessages*/
|
|
4158
|
-
e[
|
|
4159
|
-
),
|
|
4160
|
-
for (let
|
|
4161
|
-
|
|
4202
|
+
e[4]
|
|
4203
|
+
), a = [];
|
|
4204
|
+
for (let o = 0; o < s.length; o += 1)
|
|
4205
|
+
a[o] = Kt(Zt(e, s, o));
|
|
4206
|
+
let l = (
|
|
4207
|
+
/*videoExists*/
|
|
4208
|
+
e[7] && er(e)
|
|
4209
|
+
);
|
|
4162
4210
|
return {
|
|
4163
4211
|
c() {
|
|
4164
|
-
t =
|
|
4165
|
-
for (let
|
|
4166
|
-
|
|
4167
|
-
|
|
4212
|
+
t = J("div");
|
|
4213
|
+
for (let o = 0; o < a.length; o += 1)
|
|
4214
|
+
a[o].c();
|
|
4215
|
+
r = _e(), l && l.c(), i = _e(), n = J("cashier-video-modal"), te(t, "class", "CashierVerificationsWrapper"), fe(
|
|
4216
|
+
n,
|
|
4217
|
+
"clientstylingurl",
|
|
4218
|
+
/*clientstylingurl*/
|
|
4219
|
+
e[1]
|
|
4220
|
+
), fe(
|
|
4221
|
+
n,
|
|
4222
|
+
"clientstyling",
|
|
4223
|
+
/*clientstyling*/
|
|
4224
|
+
e[0]
|
|
4225
|
+
), fe(
|
|
4226
|
+
n,
|
|
4227
|
+
"ismobileview",
|
|
4228
|
+
/*ismobileview*/
|
|
4229
|
+
e[2]
|
|
4230
|
+
), fe(
|
|
4231
|
+
n,
|
|
4232
|
+
"videosrc",
|
|
4233
|
+
/*videoSrc*/
|
|
4234
|
+
e[8]
|
|
4235
|
+
);
|
|
4168
4236
|
},
|
|
4169
|
-
m(
|
|
4170
|
-
|
|
4171
|
-
for (let
|
|
4172
|
-
|
|
4237
|
+
m(o, u) {
|
|
4238
|
+
ue(o, t, u);
|
|
4239
|
+
for (let h = 0; h < a.length; h += 1)
|
|
4240
|
+
a[h] && a[h].m(t, null);
|
|
4241
|
+
ue(o, r, u), l && l.m(o, u), ue(o, i, u), ue(o, n, u);
|
|
4173
4242
|
},
|
|
4174
|
-
p(
|
|
4175
|
-
if (
|
|
4176
|
-
|
|
4177
|
-
|
|
4243
|
+
p(o, u) {
|
|
4244
|
+
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4245
|
+
1072) {
|
|
4246
|
+
s = Mt(
|
|
4178
4247
|
/*displayMessages*/
|
|
4179
|
-
|
|
4248
|
+
o[4]
|
|
4180
4249
|
);
|
|
4181
|
-
let
|
|
4182
|
-
for (
|
|
4183
|
-
const
|
|
4184
|
-
|
|
4250
|
+
let h;
|
|
4251
|
+
for (h = 0; h < s.length; h += 1) {
|
|
4252
|
+
const c = Zt(o, s, h);
|
|
4253
|
+
a[h] ? a[h].p(c, u) : (a[h] = Kt(c), a[h].c(), a[h].m(t, null));
|
|
4185
4254
|
}
|
|
4186
|
-
for (;
|
|
4187
|
-
|
|
4188
|
-
|
|
4255
|
+
for (; h < a.length; h += 1)
|
|
4256
|
+
a[h].d(1);
|
|
4257
|
+
a.length = s.length;
|
|
4189
4258
|
}
|
|
4259
|
+
/*videoExists*/
|
|
4260
|
+
o[7] ? l ? l.p(o, u) : (l = er(o), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4261
|
+
2 && fe(
|
|
4262
|
+
n,
|
|
4263
|
+
"clientstylingurl",
|
|
4264
|
+
/*clientstylingurl*/
|
|
4265
|
+
o[1]
|
|
4266
|
+
), u[0] & /*clientstyling*/
|
|
4267
|
+
1 && fe(
|
|
4268
|
+
n,
|
|
4269
|
+
"clientstyling",
|
|
4270
|
+
/*clientstyling*/
|
|
4271
|
+
o[0]
|
|
4272
|
+
), u[0] & /*ismobileview*/
|
|
4273
|
+
4 && fe(
|
|
4274
|
+
n,
|
|
4275
|
+
"ismobileview",
|
|
4276
|
+
/*ismobileview*/
|
|
4277
|
+
o[2]
|
|
4278
|
+
), u[0] & /*videoSrc*/
|
|
4279
|
+
256 && fe(
|
|
4280
|
+
n,
|
|
4281
|
+
"videosrc",
|
|
4282
|
+
/*videoSrc*/
|
|
4283
|
+
o[8]
|
|
4284
|
+
);
|
|
4190
4285
|
},
|
|
4191
|
-
d(
|
|
4192
|
-
|
|
4286
|
+
d(o) {
|
|
4287
|
+
o && (ne(t), ne(r), ne(i), ne(n)), Xr(a, o), l && l.d(o);
|
|
4193
4288
|
}
|
|
4194
4289
|
};
|
|
4195
4290
|
}
|
|
4196
|
-
function
|
|
4291
|
+
function Qt(e) {
|
|
4197
4292
|
let t, r, i;
|
|
4198
4293
|
function n(...s) {
|
|
4199
4294
|
return (
|
|
4200
4295
|
/*click_handler*/
|
|
4201
|
-
e[
|
|
4296
|
+
e[18](
|
|
4202
4297
|
/*index*/
|
|
4203
|
-
e[
|
|
4298
|
+
e[51],
|
|
4204
4299
|
...s
|
|
4205
4300
|
)
|
|
4206
4301
|
);
|
|
4207
4302
|
}
|
|
4208
4303
|
return {
|
|
4209
4304
|
c() {
|
|
4210
|
-
t =
|
|
4305
|
+
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");
|
|
4211
4306
|
},
|
|
4212
|
-
m(s,
|
|
4213
|
-
|
|
4307
|
+
m(s, a) {
|
|
4308
|
+
ue(s, t, a), r || (i = xt(t, "click", n), r = !0);
|
|
4214
4309
|
},
|
|
4215
|
-
p(s,
|
|
4310
|
+
p(s, a) {
|
|
4216
4311
|
e = s;
|
|
4217
4312
|
},
|
|
4218
4313
|
d(s) {
|
|
4219
|
-
s &&
|
|
4314
|
+
s && ne(t), r = !1, i();
|
|
4220
4315
|
}
|
|
4221
4316
|
};
|
|
4222
4317
|
}
|
|
4223
|
-
function
|
|
4318
|
+
function Kt(e) {
|
|
4224
4319
|
let t, r, i, n, s = (
|
|
4225
4320
|
/*message*/
|
|
4226
|
-
e[
|
|
4227
|
-
),
|
|
4321
|
+
e[49] + ""
|
|
4322
|
+
), a, l, o, u, h = (
|
|
4228
4323
|
/*displayMessages*/
|
|
4229
|
-
e[
|
|
4230
|
-
e[
|
|
4324
|
+
e[4].length > 1 && /*index*/
|
|
4325
|
+
e[51] === 0 && Qt(e)
|
|
4231
4326
|
);
|
|
4232
|
-
function
|
|
4327
|
+
function c(...p) {
|
|
4233
4328
|
return (
|
|
4234
4329
|
/*click_handler_1*/
|
|
4235
|
-
e[
|
|
4330
|
+
e[19](
|
|
4236
4331
|
/*index*/
|
|
4237
|
-
e[
|
|
4238
|
-
...
|
|
4332
|
+
e[51],
|
|
4333
|
+
...p
|
|
4239
4334
|
)
|
|
4240
4335
|
);
|
|
4241
4336
|
}
|
|
4242
4337
|
return {
|
|
4243
4338
|
c() {
|
|
4244
|
-
t =
|
|
4339
|
+
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 = _e(), n = J("p"), a = _e(), h && h.c(), l = _e(), te(r, "class", "IconVerification"), te(n, "class", "text"), te(t, "class", "CashierVerificationMessage"), ze(
|
|
4245
4340
|
t,
|
|
4246
4341
|
"ShowAll",
|
|
4247
4342
|
/*allVerificationsVisible*/
|
|
4248
|
-
e[
|
|
4343
|
+
e[5]
|
|
4249
4344
|
);
|
|
4250
4345
|
},
|
|
4251
|
-
m(
|
|
4252
|
-
|
|
4346
|
+
m(p, x) {
|
|
4347
|
+
ue(p, t, x), ie(t, r), ie(t, i), ie(t, n), n.innerHTML = s, ie(t, a), h && h.m(t, null), ie(t, l), o || (u = xt(t, "click", c), o = !0);
|
|
4253
4348
|
},
|
|
4254
|
-
p(
|
|
4255
|
-
e =
|
|
4256
|
-
|
|
4257
|
-
e[
|
|
4258
|
-
e[
|
|
4259
|
-
e[
|
|
4260
|
-
|
|
4349
|
+
p(p, x) {
|
|
4350
|
+
e = p, x[0] & /*displayMessages*/
|
|
4351
|
+
16 && s !== (s = /*message*/
|
|
4352
|
+
e[49] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4353
|
+
e[4].length > 1 && /*index*/
|
|
4354
|
+
e[51] === 0 ? h ? h.p(e, x) : (h = Qt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4355
|
+
32 && ze(
|
|
4261
4356
|
t,
|
|
4262
4357
|
"ShowAll",
|
|
4263
4358
|
/*allVerificationsVisible*/
|
|
4264
|
-
e[
|
|
4359
|
+
e[5]
|
|
4265
4360
|
);
|
|
4266
4361
|
},
|
|
4267
|
-
d(
|
|
4268
|
-
|
|
4362
|
+
d(p) {
|
|
4363
|
+
p && ne(t), h && h.d(), o = !1, u();
|
|
4269
4364
|
}
|
|
4270
4365
|
};
|
|
4271
4366
|
}
|
|
4272
|
-
function
|
|
4367
|
+
function er(e) {
|
|
4368
|
+
let t, r, i, n, s = (
|
|
4369
|
+
/*$_*/
|
|
4370
|
+
e[9]("verification.video.how-to") + ""
|
|
4371
|
+
), a, l, o;
|
|
4372
|
+
return {
|
|
4373
|
+
c() {
|
|
4374
|
+
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 = _e(), n = J("div"), a = yt(s), te(r, "class", "IconVideo"), te(n, "class", "CashierVerificationVideoLink"), te(t, "class", "CashierVerificationVideo");
|
|
4375
|
+
},
|
|
4376
|
+
m(u, h) {
|
|
4377
|
+
ue(u, t, h), ie(t, r), ie(t, i), ie(t, n), ie(n, a), l || (o = xt(
|
|
4378
|
+
n,
|
|
4379
|
+
"click",
|
|
4380
|
+
/*click_handler_2*/
|
|
4381
|
+
e[20]
|
|
4382
|
+
), l = !0);
|
|
4383
|
+
},
|
|
4384
|
+
p(u, h) {
|
|
4385
|
+
h[0] & /*$_*/
|
|
4386
|
+
512 && s !== (s = /*$_*/
|
|
4387
|
+
u[9]("verification.video.how-to") + "") && qr(a, s);
|
|
4388
|
+
},
|
|
4389
|
+
d(u) {
|
|
4390
|
+
u && ne(t), l = !1, o();
|
|
4391
|
+
}
|
|
4392
|
+
};
|
|
4393
|
+
}
|
|
4394
|
+
function ss(e) {
|
|
4273
4395
|
let t, r = (
|
|
4274
4396
|
/*displayMessages*/
|
|
4275
|
-
e[
|
|
4397
|
+
e[4] && Jt(e)
|
|
4276
4398
|
);
|
|
4277
4399
|
return {
|
|
4278
4400
|
c() {
|
|
4279
|
-
t =
|
|
4401
|
+
t = J("div"), r && r.c(), te(t, "class", "CashierVerifications"), ze(
|
|
4280
4402
|
t,
|
|
4281
4403
|
"CashierVerificationsDesktop",
|
|
4282
4404
|
/*desktopView*/
|
|
4283
|
-
e[
|
|
4405
|
+
e[6]
|
|
4284
4406
|
);
|
|
4285
4407
|
},
|
|
4286
4408
|
m(i, n) {
|
|
4287
|
-
|
|
4409
|
+
ue(i, t, n), r && r.m(t, null), e[21](t);
|
|
4288
4410
|
},
|
|
4289
4411
|
p(i, n) {
|
|
4290
4412
|
/*displayMessages*/
|
|
4291
|
-
i[
|
|
4292
|
-
|
|
4413
|
+
i[4] ? r ? r.p(i, n) : (r = Jt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4414
|
+
64 && ze(
|
|
4293
4415
|
t,
|
|
4294
4416
|
"CashierVerificationsDesktop",
|
|
4295
4417
|
/*desktopView*/
|
|
4296
|
-
i[
|
|
4418
|
+
i[6]
|
|
4297
4419
|
);
|
|
4298
4420
|
},
|
|
4299
|
-
i:
|
|
4300
|
-
o:
|
|
4421
|
+
i: ee,
|
|
4422
|
+
o: ee,
|
|
4301
4423
|
d(i) {
|
|
4302
|
-
i &&
|
|
4424
|
+
i && ne(t), r && r.d(), e[21](null);
|
|
4303
4425
|
}
|
|
4304
4426
|
};
|
|
4305
4427
|
}
|
|
4306
|
-
|
|
4428
|
+
const os = "verification_explanation_video_widgets.MP4";
|
|
4429
|
+
function as(e, t, r) {
|
|
4307
4430
|
let i;
|
|
4308
|
-
|
|
4309
|
-
let { endpoint: n } = t, { lang: s = "en" } = t, { translationurl:
|
|
4310
|
-
var
|
|
4311
|
-
(function(
|
|
4312
|
-
|
|
4313
|
-
})(
|
|
4314
|
-
var
|
|
4315
|
-
(function(
|
|
4316
|
-
|
|
4317
|
-
})(
|
|
4318
|
-
var
|
|
4319
|
-
(function(
|
|
4320
|
-
|
|
4321
|
-
})(
|
|
4322
|
-
var
|
|
4323
|
-
(function(
|
|
4324
|
-
|
|
4325
|
-
})(
|
|
4326
|
-
const
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
],
|
|
4331
|
-
let
|
|
4332
|
-
if (
|
|
4333
|
-
return fetch(
|
|
4334
|
-
Object.keys(
|
|
4335
|
-
|
|
4431
|
+
Gr(e, Kn, (f) => r(9, i = f)), Yt.extend(is);
|
|
4432
|
+
let { endpoint: n } = t, { lang: s = "en" } = t, { translationurl: a = "" } = t, { assetsurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, x, H = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), $, V, U = !0, M = !0, X = !1, I = "";
|
|
4433
|
+
var L;
|
|
4434
|
+
(function(f) {
|
|
4435
|
+
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4436
|
+
})(L || (L = {}));
|
|
4437
|
+
var Y;
|
|
4438
|
+
(function(f) {
|
|
4439
|
+
f.Requested = "Requested";
|
|
4440
|
+
})(Y || (Y = {}));
|
|
4441
|
+
var R;
|
|
4442
|
+
(function(f) {
|
|
4443
|
+
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";
|
|
4444
|
+
})(R || (R = {}));
|
|
4445
|
+
var W;
|
|
4446
|
+
(function(f) {
|
|
4447
|
+
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";
|
|
4448
|
+
})(W || (W = {}));
|
|
4449
|
+
const k = [
|
|
4450
|
+
R.InProgress,
|
|
4451
|
+
R.Referred,
|
|
4452
|
+
R.AwaitingForResponse
|
|
4453
|
+
], P = () => {
|
|
4454
|
+
let f = a;
|
|
4455
|
+
if (f)
|
|
4456
|
+
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4457
|
+
Object.keys(y).forEach((S) => {
|
|
4458
|
+
Wt(S, y[S]);
|
|
4336
4459
|
});
|
|
4337
|
-
}).catch((
|
|
4338
|
-
console.log(
|
|
4460
|
+
}).catch((y) => {
|
|
4461
|
+
console.log(y);
|
|
4339
4462
|
});
|
|
4340
4463
|
};
|
|
4341
|
-
Object.keys(
|
|
4342
|
-
|
|
4464
|
+
Object.keys(qt).forEach((f) => {
|
|
4465
|
+
Wt(f, qt[f]);
|
|
4343
4466
|
});
|
|
4344
|
-
const
|
|
4345
|
-
|
|
4346
|
-
},
|
|
4347
|
-
let
|
|
4348
|
-
|
|
4349
|
-
},
|
|
4350
|
-
let
|
|
4351
|
-
fetch(
|
|
4352
|
-
|
|
4467
|
+
const ge = () => {
|
|
4468
|
+
es(s);
|
|
4469
|
+
}, ke = () => {
|
|
4470
|
+
let f = document.createElement("style");
|
|
4471
|
+
f.innerHTML = o, x.appendChild(f);
|
|
4472
|
+
}, _ = () => {
|
|
4473
|
+
let f = new URL(u), y = document.createElement("style");
|
|
4474
|
+
fetch(f.href).then((S) => S.text()).then((S) => {
|
|
4475
|
+
y.innerHTML = S, setTimeout(
|
|
4353
4476
|
() => {
|
|
4354
|
-
|
|
4477
|
+
x.appendChild(y);
|
|
4355
4478
|
},
|
|
4356
4479
|
1
|
|
4357
4480
|
);
|
|
4358
4481
|
});
|
|
4359
|
-
},
|
|
4360
|
-
const { merchantId:
|
|
4361
|
-
if (!
|
|
4482
|
+
}, g = () => {
|
|
4483
|
+
const { merchantId: f, customerId: y } = d();
|
|
4484
|
+
if (!f)
|
|
4362
4485
|
return;
|
|
4363
|
-
const S = new URL(`${n}/v1/player/verification/GetKYCStatus`),
|
|
4364
|
-
|
|
4365
|
-
const
|
|
4486
|
+
const S = new URL(`${n}/v1/player/verification/GetKYCStatus`), G = new Headers();
|
|
4487
|
+
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4488
|
+
const he = {
|
|
4366
4489
|
method: "POST",
|
|
4367
|
-
headers:
|
|
4490
|
+
headers: G,
|
|
4368
4491
|
body: JSON.stringify({
|
|
4369
|
-
MerchantId:
|
|
4370
|
-
CustomerId:
|
|
4492
|
+
MerchantId: f,
|
|
4493
|
+
CustomerId: y,
|
|
4371
4494
|
All: !1,
|
|
4372
4495
|
AllParameters: !1
|
|
4373
4496
|
})
|
|
4374
4497
|
};
|
|
4375
|
-
fetch(S,
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
}), r(
|
|
4498
|
+
fetch(S, he).then((Pe) => Pe.json()).then((Pe) => {
|
|
4499
|
+
$ = b(Pe.Verifications), $.VerificationStatuses.forEach((re) => {
|
|
4500
|
+
re.VerificationUrlType !== "Widget" && H.add(re.Vendor);
|
|
4501
|
+
}), r(4, V = N());
|
|
4379
4502
|
});
|
|
4380
|
-
},
|
|
4381
|
-
let
|
|
4382
|
-
if (
|
|
4383
|
-
let
|
|
4503
|
+
}, d = () => {
|
|
4504
|
+
let f = h.split(".")[1];
|
|
4505
|
+
if (f) {
|
|
4506
|
+
let y = JSON.parse(atob(f));
|
|
4384
4507
|
return {
|
|
4385
|
-
merchantId:
|
|
4386
|
-
customerId: `${
|
|
4508
|
+
merchantId: y == null ? void 0 : y.mid,
|
|
4509
|
+
customerId: `${y == null ? void 0 : y.mid}~${c}`
|
|
4387
4510
|
};
|
|
4388
4511
|
}
|
|
4389
4512
|
return { merchantId: null, customerId: null };
|
|
4390
|
-
},
|
|
4513
|
+
}, b = (f) => {
|
|
4391
4514
|
var S;
|
|
4392
|
-
if (!
|
|
4515
|
+
if (!f || !f.length)
|
|
4393
4516
|
return {
|
|
4394
|
-
VerificationSummaryStatus:
|
|
4517
|
+
VerificationSummaryStatus: R.Unverified,
|
|
4395
4518
|
VerificationStatuses: []
|
|
4396
4519
|
};
|
|
4397
|
-
const
|
|
4398
|
-
if (
|
|
4399
|
-
const
|
|
4520
|
+
const y = w(f);
|
|
4521
|
+
if (y && y.length) {
|
|
4522
|
+
const G = m(y);
|
|
4400
4523
|
return {
|
|
4401
|
-
VerificationSummaryStatus:
|
|
4402
|
-
VerificationUrl: (S =
|
|
4403
|
-
VerificationStatuses:
|
|
4524
|
+
VerificationSummaryStatus: G.Status,
|
|
4525
|
+
VerificationUrl: (S = G.Flags) == null ? void 0 : S.DeferredUrlKey,
|
|
4526
|
+
VerificationStatuses: E(y, G.Status)
|
|
4404
4527
|
};
|
|
4405
4528
|
} else
|
|
4406
4529
|
return {
|
|
4407
|
-
VerificationSummaryStatus:
|
|
4408
|
-
VerificationStatuses:
|
|
4530
|
+
VerificationSummaryStatus: f.some((he) => he.Status === R.Failed) ? R.Failed : R.Verified,
|
|
4531
|
+
VerificationStatuses: E(f, [R.Failed])
|
|
4409
4532
|
};
|
|
4410
|
-
},
|
|
4411
|
-
(
|
|
4533
|
+
}, m = (f) => f.reduce(
|
|
4534
|
+
(y, S) => y ? new Date(y) < new Date(S) ? S : y : S,
|
|
4412
4535
|
0
|
|
4413
|
-
),
|
|
4414
|
-
var
|
|
4536
|
+
), E = (f, y) => f.filter((S) => y.includes(S.Status)).map((S) => {
|
|
4537
|
+
var G, he;
|
|
4415
4538
|
return {
|
|
4416
4539
|
Type: S.Type,
|
|
4417
4540
|
Vendor: S.VendorName,
|
|
4418
4541
|
VerificationDocuments: S.Documents ? [...Object.values(S.Documents)] : [],
|
|
4419
|
-
VerificationUrlType: (
|
|
4420
|
-
VerificationUrl: (
|
|
4542
|
+
VerificationUrlType: (G = S.Flags) == null ? void 0 : G.DeferredUrlTypeKey,
|
|
4543
|
+
VerificationUrl: (he = S.Flags) == null ? void 0 : he.DeferredUrlKey
|
|
4421
4544
|
};
|
|
4422
|
-
}),
|
|
4423
|
-
const
|
|
4424
|
-
return
|
|
4425
|
-
},
|
|
4426
|
-
switch (
|
|
4427
|
-
case
|
|
4428
|
-
const
|
|
4429
|
-
return
|
|
4430
|
-
|
|
4431
|
-
}),
|
|
4432
|
-
case
|
|
4545
|
+
}), w = (f) => f.filter((y) => k.includes(y.Status) ? y.Flags && y.Flags.DeferredUrlKey || B(y) || D(y) : !1), B = (f) => {
|
|
4546
|
+
const y = f.Documents && f.VendorName === L.Manual, S = Object.values(f.Documents).some((G) => G.Status === Y.Requested);
|
|
4547
|
+
return y && S;
|
|
4548
|
+
}, D = (f) => f.VendorName === L.ShuftiPro && f.Status === R.Referred, N = () => {
|
|
4549
|
+
switch ($.VerificationSummaryStatus) {
|
|
4550
|
+
case R.InProgress:
|
|
4551
|
+
const f = [];
|
|
4552
|
+
return H.forEach((y) => {
|
|
4553
|
+
f.push(F(y));
|
|
4554
|
+
}), f;
|
|
4555
|
+
case R.Referred:
|
|
4433
4556
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4434
|
-
case
|
|
4557
|
+
case R.Failed:
|
|
4435
4558
|
return [i("verification.message.failed")];
|
|
4436
4559
|
}
|
|
4437
|
-
},
|
|
4438
|
-
const
|
|
4439
|
-
if (
|
|
4440
|
-
return
|
|
4560
|
+
}, F = (f) => {
|
|
4561
|
+
const y = $.VerificationStatuses.filter((S) => S.Vendor === f);
|
|
4562
|
+
if (f === L.ShuftiPro)
|
|
4563
|
+
return q(y);
|
|
4441
4564
|
{
|
|
4442
|
-
const S = i("verification.idenfy.link-name"),
|
|
4443
|
-
link: `<a href="${
|
|
4565
|
+
const S = i("verification.idenfy.link-name"), G = {
|
|
4566
|
+
link: `<a href="${y[0].VerificationUrl}" target="_blank">${S}</a>`
|
|
4444
4567
|
};
|
|
4445
|
-
return i("verification.idenfy.in-progress", { values:
|
|
4568
|
+
return i("verification.idenfy.in-progress", { values: G });
|
|
4446
4569
|
}
|
|
4447
|
-
},
|
|
4448
|
-
const
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4570
|
+
}, q = (f) => {
|
|
4571
|
+
const y = [], S = {}, G = [
|
|
4572
|
+
W.Biometric,
|
|
4573
|
+
W.Documents,
|
|
4574
|
+
W.ProofOfAddress
|
|
4452
4575
|
];
|
|
4453
|
-
|
|
4454
|
-
|
|
4576
|
+
f.forEach((re) => {
|
|
4577
|
+
G.includes(re.Type) && (y.push(re.Type), S[re.Type] = le(re, se(re.Type)));
|
|
4455
4578
|
});
|
|
4456
|
-
let
|
|
4457
|
-
return
|
|
4458
|
-
},
|
|
4459
|
-
if (
|
|
4460
|
-
if (
|
|
4461
|
-
const S =
|
|
4462
|
-
|
|
4579
|
+
let he = y.every((re) => v.has(re)), Pe = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4580
|
+
return he ? i("verification.shuftipro.validations-started") : i(Pe, { values: S });
|
|
4581
|
+
}, le = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, se = (f) => i(`verification.shuftipro.link-name.${f}`), oe = (f, y) => {
|
|
4582
|
+
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4583
|
+
if (f.target.closest(".verificationLink")) {
|
|
4584
|
+
const S = f.target.className.split(" ")[1];
|
|
4585
|
+
v.add(S), r(4, V = N());
|
|
4463
4586
|
}
|
|
4464
4587
|
return;
|
|
4465
4588
|
}
|
|
4466
|
-
|
|
4467
|
-
},
|
|
4468
|
-
r(
|
|
4469
|
-
},
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4589
|
+
y === 0 && r(5, U = !U);
|
|
4590
|
+
}, ae = () => {
|
|
4591
|
+
r(6, M = p === "false");
|
|
4592
|
+
}, j = () => {
|
|
4593
|
+
r(8, I = l + "/" + s + "/" + os);
|
|
4594
|
+
try {
|
|
4595
|
+
fetch(I, { method: "HEAD" }).then((f) => {
|
|
4596
|
+
r(7, X = f.ok);
|
|
4597
|
+
});
|
|
4598
|
+
} catch (f) {
|
|
4599
|
+
r(7, X = !1);
|
|
4600
|
+
}
|
|
4601
|
+
}, Q = () => {
|
|
4602
|
+
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4603
|
+
}, me = (f, y) => oe(y, f), ve = (f, y) => oe(y, f), Dr = () => Q();
|
|
4604
|
+
function Ir(f) {
|
|
4605
|
+
at[f ? "unshift" : "push"](() => {
|
|
4606
|
+
x = f, r(3, x);
|
|
4473
4607
|
});
|
|
4474
4608
|
}
|
|
4475
|
-
return e.$$set = (
|
|
4476
|
-
"endpoint" in
|
|
4609
|
+
return e.$$set = (f) => {
|
|
4610
|
+
"endpoint" in f && r(12, n = f.endpoint), "lang" in f && r(13, s = f.lang), "translationurl" in f && r(14, a = f.translationurl), "assetsurl" in f && r(15, l = f.assetsurl), "clientstyling" in f && r(0, o = f.clientstyling), "clientstylingurl" in f && r(1, u = f.clientstylingurl), "session" in f && r(16, h = f.session), "customerid" in f && r(17, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview);
|
|
4477
4611
|
}, e.$$.update = () => {
|
|
4478
4612
|
e.$$.dirty[0] & /*lang*/
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
}, [
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4613
|
+
8192 && s && ge(), e.$$.dirty[0] & /*endpoint, session*/
|
|
4614
|
+
69632 && n && h && g(), e.$$.dirty[0] & /*translationurl*/
|
|
4615
|
+
16384 && a && P(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4616
|
+
9 && o && x && ke(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4617
|
+
10 && u && x && _(), e.$$.dirty[0] & /*ismobileview*/
|
|
4618
|
+
4 && p && ae();
|
|
4619
|
+
}, j(), [
|
|
4620
|
+
o,
|
|
4621
|
+
u,
|
|
4622
|
+
p,
|
|
4623
|
+
x,
|
|
4490
4624
|
V,
|
|
4625
|
+
U,
|
|
4626
|
+
M,
|
|
4627
|
+
X,
|
|
4628
|
+
I,
|
|
4629
|
+
i,
|
|
4630
|
+
oe,
|
|
4631
|
+
Q,
|
|
4491
4632
|
n,
|
|
4492
4633
|
s,
|
|
4493
|
-
|
|
4494
|
-
u,
|
|
4634
|
+
a,
|
|
4495
4635
|
l,
|
|
4496
4636
|
h,
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4637
|
+
c,
|
|
4638
|
+
me,
|
|
4639
|
+
ve,
|
|
4640
|
+
Dr,
|
|
4641
|
+
Ir
|
|
4502
4642
|
];
|
|
4503
4643
|
}
|
|
4504
|
-
class
|
|
4644
|
+
class Cr extends ui {
|
|
4505
4645
|
constructor(t) {
|
|
4506
|
-
super(),
|
|
4646
|
+
super(), oi(
|
|
4507
4647
|
this,
|
|
4508
4648
|
t,
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4649
|
+
as,
|
|
4650
|
+
ss,
|
|
4651
|
+
rr,
|
|
4512
4652
|
{
|
|
4513
|
-
endpoint:
|
|
4514
|
-
lang:
|
|
4515
|
-
translationurl:
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4653
|
+
endpoint: 12,
|
|
4654
|
+
lang: 13,
|
|
4655
|
+
translationurl: 14,
|
|
4656
|
+
assetsurl: 15,
|
|
4657
|
+
clientstyling: 0,
|
|
4658
|
+
clientstylingurl: 1,
|
|
4659
|
+
session: 16,
|
|
4660
|
+
customerid: 17,
|
|
4661
|
+
ismobileview: 2
|
|
4521
4662
|
},
|
|
4522
|
-
|
|
4663
|
+
ns,
|
|
4523
4664
|
[-1, -1]
|
|
4524
4665
|
);
|
|
4525
4666
|
}
|
|
4526
4667
|
get endpoint() {
|
|
4527
|
-
return this.$$.ctx[
|
|
4668
|
+
return this.$$.ctx[12];
|
|
4528
4669
|
}
|
|
4529
4670
|
set endpoint(t) {
|
|
4530
|
-
this.$$set({ endpoint: t }),
|
|
4671
|
+
this.$$set({ endpoint: t }), K();
|
|
4531
4672
|
}
|
|
4532
4673
|
get lang() {
|
|
4533
|
-
return this.$$.ctx[
|
|
4674
|
+
return this.$$.ctx[13];
|
|
4534
4675
|
}
|
|
4535
4676
|
set lang(t) {
|
|
4536
|
-
this.$$set({ lang: t }),
|
|
4677
|
+
this.$$set({ lang: t }), K();
|
|
4537
4678
|
}
|
|
4538
4679
|
get translationurl() {
|
|
4539
|
-
return this.$$.ctx[
|
|
4680
|
+
return this.$$.ctx[14];
|
|
4540
4681
|
}
|
|
4541
4682
|
set translationurl(t) {
|
|
4542
|
-
this.$$set({ translationurl: t }),
|
|
4683
|
+
this.$$set({ translationurl: t }), K();
|
|
4684
|
+
}
|
|
4685
|
+
get assetsurl() {
|
|
4686
|
+
return this.$$.ctx[15];
|
|
4687
|
+
}
|
|
4688
|
+
set assetsurl(t) {
|
|
4689
|
+
this.$$set({ assetsurl: t }), K();
|
|
4543
4690
|
}
|
|
4544
4691
|
get clientstyling() {
|
|
4545
|
-
return this.$$.ctx[
|
|
4692
|
+
return this.$$.ctx[0];
|
|
4546
4693
|
}
|
|
4547
4694
|
set clientstyling(t) {
|
|
4548
|
-
this.$$set({ clientstyling: t }),
|
|
4695
|
+
this.$$set({ clientstyling: t }), K();
|
|
4549
4696
|
}
|
|
4550
4697
|
get clientstylingurl() {
|
|
4551
|
-
return this.$$.ctx[
|
|
4698
|
+
return this.$$.ctx[1];
|
|
4552
4699
|
}
|
|
4553
4700
|
set clientstylingurl(t) {
|
|
4554
|
-
this.$$set({ clientstylingurl: t }),
|
|
4701
|
+
this.$$set({ clientstylingurl: t }), K();
|
|
4555
4702
|
}
|
|
4556
4703
|
get session() {
|
|
4557
|
-
return this.$$.ctx[
|
|
4704
|
+
return this.$$.ctx[16];
|
|
4558
4705
|
}
|
|
4559
4706
|
set session(t) {
|
|
4560
|
-
this.$$set({ session: t }),
|
|
4707
|
+
this.$$set({ session: t }), K();
|
|
4561
4708
|
}
|
|
4562
4709
|
get customerid() {
|
|
4563
|
-
return this.$$.ctx[
|
|
4710
|
+
return this.$$.ctx[17];
|
|
4564
4711
|
}
|
|
4565
4712
|
set customerid(t) {
|
|
4566
|
-
this.$$set({ customerid: t }),
|
|
4713
|
+
this.$$set({ customerid: t }), K();
|
|
4567
4714
|
}
|
|
4568
4715
|
get ismobileview() {
|
|
4569
|
-
return this.$$.ctx[
|
|
4716
|
+
return this.$$.ctx[2];
|
|
4570
4717
|
}
|
|
4571
4718
|
set ismobileview(t) {
|
|
4572
|
-
this.$$set({ ismobileview: t }),
|
|
4719
|
+
this.$$set({ ismobileview: t }), K();
|
|
4573
4720
|
}
|
|
4574
4721
|
}
|
|
4575
|
-
|
|
4722
|
+
ai(Cr, { endpoint: {}, lang: {}, translationurl: {}, assetsurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
4723
|
+
const ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4724
|
+
__proto__: null,
|
|
4725
|
+
default: Cr
|
|
4726
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4576
4727
|
export {
|
|
4577
|
-
|
|
4728
|
+
ds as C,
|
|
4729
|
+
ui as S,
|
|
4730
|
+
Vr as a,
|
|
4731
|
+
ue as b,
|
|
4732
|
+
ai as c,
|
|
4733
|
+
ne as d,
|
|
4734
|
+
fs as e,
|
|
4735
|
+
K as f,
|
|
4736
|
+
J as g,
|
|
4737
|
+
_e as h,
|
|
4738
|
+
oi as i,
|
|
4739
|
+
ls as j,
|
|
4740
|
+
te as k,
|
|
4741
|
+
ie as l,
|
|
4742
|
+
hs as m,
|
|
4743
|
+
ee as n,
|
|
4744
|
+
cs as o,
|
|
4745
|
+
xt as p,
|
|
4746
|
+
at as q,
|
|
4747
|
+
rr as s
|
|
4578
4748
|
};
|