@everymatrix/cashier-session-expiration-modal 1.77.26 → 1.77.28
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/{CashierSessionExpirationModal-_PoHG-vX.js → CashierSessionExpirationModal-BAFxIrEq.js} +927 -932
- package/components/CashierSessionExpirationModal-DqNHgUjj.cjs +9 -0
- package/components/{CashierSessionExpirationModal-DXQECF5R.js → CashierSessionExpirationModal-ge0R8xm0.js} +908 -913
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-BIRBjf6M.cjs +0 -22
|
@@ -15,18 +15,18 @@ function Wr(e) {
|
|
|
15
15
|
function rr() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ie(e) {
|
|
19
19
|
e.forEach(Wr);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Yt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Vr(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let At;
|
|
28
28
|
function ir(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (At || (At = document.createElement("a")), At.href = t, e === At.href);
|
|
30
30
|
}
|
|
31
31
|
function Wi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -43,7 +43,7 @@ function Xr(e, ...t) {
|
|
|
43
43
|
function or(e, t, n) {
|
|
44
44
|
e.$$.on_destroy.push(Xr(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Nt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Yr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,7 +52,7 @@ function Lt(e, t, n, r) {
|
|
|
52
52
|
function Yr(e, t, n, r) {
|
|
53
53
|
return e[1] && r ? zi(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ht(e, t, n, r) {
|
|
56
56
|
if (e[2] && r) {
|
|
57
57
|
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
@@ -67,13 +67,13 @@ function Nt(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function It(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
72
|
const u = Yr(t, n, r, o);
|
|
73
73
|
e.p(u, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Pt(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], n = e.ctx.length / 32;
|
|
79
79
|
for (let r = 0; r < n; r++)
|
|
@@ -83,21 +83,21 @@ function It(e) {
|
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
85
|
const Zr = typeof window < "u";
|
|
86
|
-
let Vi = Zr ? () => window.performance.now() : () => Date.now(),
|
|
87
|
-
const
|
|
86
|
+
let Vi = Zr ? () => window.performance.now() : () => Date.now(), Nn = Zr ? (e) => requestAnimationFrame(e) : de;
|
|
87
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
88
88
|
function qr(e) {
|
|
89
|
-
|
|
90
|
-
t.c(e) || (
|
|
91
|
-
}),
|
|
89
|
+
Ve.forEach((t) => {
|
|
90
|
+
t.c(e) || (Ve.delete(t), t.f());
|
|
91
|
+
}), Ve.size !== 0 && Nn(qr);
|
|
92
92
|
}
|
|
93
93
|
function Xi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return
|
|
95
|
+
return Ve.size === 0 && Nn(qr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
|
-
|
|
97
|
+
Ve.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
99
99
|
abort() {
|
|
100
|
-
|
|
100
|
+
Ve.delete(t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -105,13 +105,13 @@ function J(e, t) {
|
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
107
|
function Yi(e, t, n) {
|
|
108
|
-
const r =
|
|
108
|
+
const r = Hn(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
110
|
const i = re("style");
|
|
111
111
|
i.id = t, i.textContent = n, Jr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Hn(e) {
|
|
115
115
|
if (!e)
|
|
116
116
|
return document;
|
|
117
117
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -123,7 +123,7 @@ function Ln(e) {
|
|
|
123
123
|
}
|
|
124
124
|
function Zi(e) {
|
|
125
125
|
const t = re("style");
|
|
126
|
-
return t.textContent = "/* empty */", Jr(
|
|
126
|
+
return t.textContent = "/* empty */", Jr(Hn(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
128
|
function Jr(e, t) {
|
|
129
129
|
return J(
|
|
@@ -132,7 +132,7 @@ function Jr(e, t) {
|
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ce(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function be(e) {
|
|
@@ -144,39 +144,39 @@ function re(e) {
|
|
|
144
144
|
function sr(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ke(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function ht() {
|
|
151
|
+
return Ke(" ");
|
|
152
152
|
}
|
|
153
153
|
function Qr() {
|
|
154
|
-
return
|
|
154
|
+
return Ke("");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function kt(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function W(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
162
|
function qi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Zt(e, t) {
|
|
166
166
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let Ot;
|
|
170
170
|
function Ji() {
|
|
171
|
-
if (
|
|
172
|
-
|
|
171
|
+
if (Ot === void 0) {
|
|
172
|
+
Ot = !1;
|
|
173
173
|
try {
|
|
174
174
|
typeof window < "u" && window.parent && window.parent.document;
|
|
175
175
|
} catch {
|
|
176
|
-
|
|
176
|
+
Ot = !0;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return Ot;
|
|
180
180
|
}
|
|
181
181
|
function Qi(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -187,7 +187,7 @@ function Qi(e, t) {
|
|
|
187
187
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
188
188
|
const i = Ji();
|
|
189
189
|
let o;
|
|
190
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
190
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
|
|
191
191
|
window,
|
|
192
192
|
"message",
|
|
193
193
|
/** @param {MessageEvent} event */
|
|
@@ -195,7 +195,7 @@ function Qi(e, t) {
|
|
|
195
195
|
u.source === r.contentWindow && t();
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
|
-
o =
|
|
198
|
+
o = kt(r.contentWindow, "resize", t), t();
|
|
199
199
|
}), J(e, r), () => {
|
|
200
200
|
(i || o && r.contentWindow) && o(), be(r);
|
|
201
201
|
};
|
|
@@ -212,8 +212,8 @@ function eo(e) {
|
|
|
212
212
|
}
|
|
213
213
|
), t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
215
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
216
|
+
let Gt = 0;
|
|
217
217
|
function to(e) {
|
|
218
218
|
let t = 5381, n = e.length;
|
|
219
219
|
for (; n--; )
|
|
@@ -222,46 +222,46 @@ function to(e) {
|
|
|
222
222
|
}
|
|
223
223
|
function no(e, t) {
|
|
224
224
|
const n = { stylesheet: Zi(t), rules: {} };
|
|
225
|
-
return
|
|
225
|
+
return Ft.set(e, n), n;
|
|
226
226
|
}
|
|
227
227
|
function ar(e, t, n, r, i, o, u, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
229
229
|
let l = `{
|
|
230
230
|
`;
|
|
231
231
|
for (let C = 0; C <= 1; C += c) {
|
|
232
|
-
const
|
|
233
|
-
l += C * 100 + `%{${u(
|
|
232
|
+
const F = t + (n - t) * o(C);
|
|
233
|
+
l += C * 100 + `%{${u(F, 1 - F)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const f = l + `100% {${u(n, 1 - n)}}
|
|
237
|
-
}`, _ = `__svelte_${to(f)}_${a}`, y =
|
|
237
|
+
}`, _ = `__svelte_${to(f)}_${a}`, y = Hn(e), { stylesheet: M, rules: b } = Ft.get(y) || no(y, e);
|
|
238
238
|
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${f}`, M.cssRules.length));
|
|
239
239
|
const d = e.style.animation || "";
|
|
240
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`,
|
|
240
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, Gt += 1, _;
|
|
241
241
|
}
|
|
242
242
|
function ro(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
244
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "),
|
|
247
|
+
i && (e.style.animation = r.join(", "), Gt -= i, Gt || io());
|
|
248
248
|
}
|
|
249
249
|
function io() {
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
Nn(() => {
|
|
251
|
+
Gt || (Ft.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
253
253
|
t && be(t);
|
|
254
|
-
}),
|
|
254
|
+
}), Ft.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let pt;
|
|
258
|
+
function dt(e) {
|
|
259
|
+
pt = e;
|
|
260
260
|
}
|
|
261
261
|
function Kr() {
|
|
262
|
-
if (!
|
|
262
|
+
if (!pt)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
|
-
return
|
|
264
|
+
return pt;
|
|
265
265
|
}
|
|
266
266
|
function oo(e) {
|
|
267
267
|
Kr().$$.on_mount.push(e);
|
|
@@ -269,84 +269,84 @@ function oo(e) {
|
|
|
269
269
|
function so(e) {
|
|
270
270
|
Kr().$$.on_destroy.push(e);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
let
|
|
272
|
+
const We = [], jt = [];
|
|
273
|
+
let Xe = [];
|
|
274
274
|
const ur = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
275
|
-
let
|
|
275
|
+
let yn = !1;
|
|
276
276
|
function uo() {
|
|
277
|
-
|
|
277
|
+
yn || (yn = !0, ao.then(le));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function Ye(e) {
|
|
280
|
+
Xe.push(e);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
let
|
|
282
|
+
const an = /* @__PURE__ */ new Set();
|
|
283
|
+
let je = 0;
|
|
284
284
|
function le() {
|
|
285
|
-
if (
|
|
285
|
+
if (je !== 0)
|
|
286
286
|
return;
|
|
287
|
-
const e =
|
|
287
|
+
const e = pt;
|
|
288
288
|
do {
|
|
289
289
|
try {
|
|
290
|
-
for (;
|
|
291
|
-
const t =
|
|
292
|
-
|
|
290
|
+
for (; je < We.length; ) {
|
|
291
|
+
const t = We[je];
|
|
292
|
+
je++, dt(t), lo(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
|
-
throw
|
|
295
|
+
throw We.length = 0, je = 0, t;
|
|
296
296
|
}
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
for (let t = 0; t <
|
|
300
|
-
const n =
|
|
301
|
-
|
|
297
|
+
for (dt(null), We.length = 0, je = 0; jt.length; )
|
|
298
|
+
jt.pop()();
|
|
299
|
+
for (let t = 0; t < Xe.length; t += 1) {
|
|
300
|
+
const n = Xe[t];
|
|
301
|
+
an.has(n) || (an.add(n), n());
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
} while (
|
|
303
|
+
Xe.length = 0;
|
|
304
|
+
} while (We.length);
|
|
305
305
|
for (; ur.length; )
|
|
306
306
|
ur.pop()();
|
|
307
|
-
|
|
307
|
+
yn = !1, an.clear(), dt(e);
|
|
308
308
|
}
|
|
309
309
|
function lo(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), Ie(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
313
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
function co(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
|
-
|
|
318
|
+
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
320
|
+
let ot;
|
|
321
321
|
function fo() {
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
322
|
+
return ot || (ot = Promise.resolve(), ot.then(() => {
|
|
323
|
+
ot = null;
|
|
324
|
+
})), ot;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function un(e, t, n) {
|
|
327
327
|
e.dispatchEvent(Ki(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
329
|
const Rt = /* @__PURE__ */ new Set();
|
|
330
|
-
let
|
|
330
|
+
let Me;
|
|
331
331
|
function ei() {
|
|
332
|
-
|
|
332
|
+
Me = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Me
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function ti() {
|
|
340
|
-
|
|
340
|
+
Me.r || Ie(Me.c), Me = Me.p;
|
|
341
341
|
}
|
|
342
342
|
function Se(e, t) {
|
|
343
343
|
e && e.i && (Rt.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Ne(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
347
|
if (Rt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
Rt.add(e),
|
|
349
|
+
Rt.add(e), Me.c.push(() => {
|
|
350
350
|
Rt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
@@ -377,29 +377,29 @@ function lr(e, t, n, r) {
|
|
|
377
377
|
const {
|
|
378
378
|
delay: d = 0,
|
|
379
379
|
duration: C = 300,
|
|
380
|
-
easing:
|
|
380
|
+
easing: F = zr,
|
|
381
381
|
tick: $ = de,
|
|
382
382
|
css: w
|
|
383
383
|
} = o || ho, H = {
|
|
384
384
|
start: Vi() + d,
|
|
385
385
|
b
|
|
386
386
|
};
|
|
387
|
-
b || (H.group =
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (w && (_(), l = ar(e, u, b, C, d,
|
|
389
|
-
if (c &&
|
|
387
|
+
b || (H.group = Me, Me.r += 1), "inert" in e && (b ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (w && (_(), l = ar(e, u, b, C, d, F, w)), b && $(0, 1), a = y(H, C), Ye(() => un(e, b, "start")), Xi((R) => {
|
|
389
|
+
if (c && R > c.start && (a = y(c, C), c = null, un(e, a.b, "start"), w && (_(), l = ar(
|
|
390
390
|
e,
|
|
391
391
|
u,
|
|
392
392
|
a.b,
|
|
393
393
|
a.duration,
|
|
394
394
|
0,
|
|
395
|
-
|
|
395
|
+
F,
|
|
396
396
|
o.css
|
|
397
397
|
))), a) {
|
|
398
|
-
if (
|
|
399
|
-
$(u = a.b, 1 - u),
|
|
400
|
-
else if (
|
|
401
|
-
const
|
|
402
|
-
u = a.a + a.d *
|
|
398
|
+
if (R >= a.end)
|
|
399
|
+
$(u = a.b, 1 - u), un(e, a.b, "end"), c || (a.b ? _() : --a.group.r || Ie(a.group.c)), a = null;
|
|
400
|
+
else if (R >= a.start) {
|
|
401
|
+
const U = R - a.start;
|
|
402
|
+
u = a.a + a.d * F(U / a.duration), $(u, 1 - u);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
@@ -407,7 +407,7 @@ function lr(e, t, n, r) {
|
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
409
|
run(b) {
|
|
410
|
-
|
|
410
|
+
Yt(o) ? fo().then(() => {
|
|
411
411
|
o = o({ direction: b ? "in" : "out" }), M(b);
|
|
412
412
|
}) : M(b);
|
|
413
413
|
},
|
|
@@ -418,21 +418,21 @@ function lr(e, t, n, r) {
|
|
|
418
418
|
}
|
|
419
419
|
function mo(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
|
-
r && r.m(t, n),
|
|
422
|
-
const o = e.$$.on_mount.map(Wr).filter(
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
424
|
-
}), i.forEach(
|
|
421
|
+
r && r.m(t, n), Ye(() => {
|
|
422
|
+
const o = e.$$.on_mount.map(Wr).filter(Yt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ie(o), e.$$.on_mount = [];
|
|
424
|
+
}), i.forEach(Ye);
|
|
425
425
|
}
|
|
426
426
|
function po(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (co(n.after_update),
|
|
428
|
+
n.fragment !== null && (co(n.after_update), Ie(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
430
|
function go(e, t) {
|
|
431
|
-
e.$$.dirty[0] === -1 && (
|
|
431
|
+
e.$$.dirty[0] === -1 && (We.push(e), uo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
433
|
function _o(e, t, n, r, i, o, u = null, a = [-1]) {
|
|
434
|
-
const c =
|
|
435
|
-
|
|
434
|
+
const c = pt;
|
|
435
|
+
dt(e);
|
|
436
436
|
const l = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
@@ -459,7 +459,7 @@ function _o(e, t, n, r, i, o, u = null, a = [-1]) {
|
|
|
459
459
|
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
460
460
|
const b = M.length ? M[0] : y;
|
|
461
461
|
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f && go(e, _)), y;
|
|
462
|
-
}) : [], l.update(), f = !0,
|
|
462
|
+
}) : [], l.update(), f = !0, Ie(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const _ = qi(t.target);
|
|
465
465
|
l.fragment && l.fragment.l(_), _.forEach(be);
|
|
@@ -467,7 +467,7 @@ function _o(e, t, n, r, i, o, u = null, a = [-1]) {
|
|
|
467
467
|
l.fragment && l.fragment.c();
|
|
468
468
|
t.intro && Se(e.$$.fragment), mo(e, t.target, t.anchor), le();
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
dt(c);
|
|
471
471
|
}
|
|
472
472
|
let ni;
|
|
473
473
|
typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
@@ -512,14 +512,14 @@ typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
|
512
512
|
let o;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
o = re("slot"), i !== "default" &&
|
|
515
|
+
o = re("slot"), i !== "default" && W(o, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, l) {
|
|
522
|
-
|
|
522
|
+
Ce(c, o, l);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
525
|
c && be(o);
|
|
@@ -534,7 +534,7 @@ typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
536
|
const o = this.$$g_p(i.name);
|
|
537
|
-
o in this.$$d || (this.$$d[o] =
|
|
537
|
+
o in this.$$d || (this.$$d[o] = Dt(o, i.value, this.$$p_d, "toProp"));
|
|
538
538
|
}
|
|
539
539
|
for (const i in this.$$p_d)
|
|
540
540
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,7 +552,7 @@ typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
|
552
552
|
this.$$r = !0;
|
|
553
553
|
for (const i in this.$$p_d)
|
|
554
554
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
555
|
-
const o =
|
|
555
|
+
const o = Dt(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
|
574
574
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
575
575
|
// and setting attributes through setAttribute etc, this is helpful
|
|
576
576
|
attributeChangedCallback(e, t, n) {
|
|
577
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
577
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Dt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
578
578
|
}
|
|
579
579
|
disconnectedCallback() {
|
|
580
580
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function Dt(e, t, n, r) {
|
|
591
591
|
const i = n[e]?.type;
|
|
592
592
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
593
593
|
return t;
|
|
@@ -633,7 +633,7 @@ function bo(e, t, n, r, i, o) {
|
|
|
633
633
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
634
634
|
},
|
|
635
635
|
set(c) {
|
|
636
|
-
c =
|
|
636
|
+
c = Dt(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}), r.forEach((a) => {
|
|
@@ -673,7 +673,7 @@ class Eo {
|
|
|
673
673
|
* @returns {() => void}
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
|
-
if (!
|
|
676
|
+
if (!Yt(n))
|
|
677
677
|
return de;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
@@ -700,24 +700,24 @@ function cr(e, { delay: t = 0, duration: n = 400, easing: r = zr } = {}) {
|
|
|
700
700
|
css: (o) => `opacity: ${o * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const ze = [];
|
|
704
704
|
function xo(e, t) {
|
|
705
705
|
return {
|
|
706
|
-
subscribe:
|
|
706
|
+
subscribe: bt(e, t).subscribe
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function bt(e, t = de) {
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
713
|
if (Vr(e, a) && (e = a, n)) {
|
|
714
|
-
const c = !
|
|
714
|
+
const c = !ze.length;
|
|
715
715
|
for (const l of r)
|
|
716
|
-
l[1](),
|
|
716
|
+
l[1](), ze.push(l, e);
|
|
717
717
|
if (c) {
|
|
718
|
-
for (let l = 0; l <
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
for (let l = 0; l < ze.length; l += 2)
|
|
719
|
+
ze[l][0](ze[l + 1]);
|
|
720
|
+
ze.length = 0;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -732,7 +732,7 @@ function _t(e, t = de) {
|
|
|
732
732
|
}
|
|
733
733
|
return { set: i, update: o, subscribe: u };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function et(e, t, n) {
|
|
736
736
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
737
737
|
if (!i.every(Boolean))
|
|
738
738
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -746,7 +746,7 @@ function Ke(e, t, n) {
|
|
|
746
746
|
return;
|
|
747
747
|
_();
|
|
748
748
|
const b = t(r ? l[0] : l, u, a);
|
|
749
|
-
o ? u(b) : _ =
|
|
749
|
+
o ? u(b) : _ = Yt(b) ? b : de;
|
|
750
750
|
}, M = i.map(
|
|
751
751
|
(b, d) => Xr(
|
|
752
752
|
b,
|
|
@@ -759,18 +759,18 @@ function Ke(e, t, n) {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
Ie(M), _(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
var ri = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
|
-
function
|
|
767
|
+
function In(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
|
-
var
|
|
771
|
-
return
|
|
770
|
+
var vo = function(t) {
|
|
771
|
+
return To(t) && !So(t);
|
|
772
772
|
};
|
|
773
|
-
function
|
|
773
|
+
function To(e) {
|
|
774
774
|
return !!e && typeof e == "object";
|
|
775
775
|
}
|
|
776
776
|
function So(e) {
|
|
@@ -784,19 +784,19 @@ function Oo(e) {
|
|
|
784
784
|
function Mo(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
787
|
+
function gt(e, t) {
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(Mo(e), e, t) : e;
|
|
789
789
|
}
|
|
790
790
|
function Co(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
|
-
return
|
|
792
|
+
return gt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
795
|
function Lo(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
|
-
return
|
|
797
|
+
return Ze;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
|
-
return typeof n == "function" ? n :
|
|
799
|
+
return typeof n == "function" ? n : Ze;
|
|
800
800
|
}
|
|
801
801
|
function No(e) {
|
|
802
802
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -819,65 +819,51 @@ function Ho(e, t) {
|
|
|
819
819
|
function Io(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
821
|
return n.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
822
|
-
r[i] =
|
|
822
|
+
r[i] = gt(e[i], n);
|
|
823
823
|
}), fr(t).forEach(function(i) {
|
|
824
|
-
Ho(e, i) || (ii(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lo(i, n)(e[i], t[i], n) : r[i] =
|
|
824
|
+
Ho(e, i) || (ii(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lo(i, n)(e[i], t[i], n) : r[i] = gt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || Co, n.isMergeableObject = n.isMergeableObject ||
|
|
827
|
+
function Ze(e, t, n) {
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Co, n.isMergeableObject = n.isMergeableObject || vo, n.cloneUnlessOtherwiseSpecified = gt;
|
|
829
829
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
830
|
-
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) :
|
|
830
|
+
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) : gt(t, n);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
Ze.all = function(t, n) {
|
|
833
833
|
if (!Array.isArray(t))
|
|
834
834
|
throw new Error("first argument should be an array");
|
|
835
835
|
return t.reduce(function(r, i) {
|
|
836
|
-
return
|
|
836
|
+
return Ze(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var
|
|
840
|
-
const Do = /* @__PURE__ */
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
845
|
-
purpose with or without fee is hereby granted.
|
|
846
|
-
|
|
847
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
848
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
849
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
850
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
851
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
852
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
853
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
854
|
-
***************************************************************************** */
|
|
855
|
-
var En = function(e, t) {
|
|
856
|
-
return En = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
839
|
+
var Po = Ze, Ro = Po;
|
|
840
|
+
const Do = /* @__PURE__ */ In(Ro);
|
|
841
|
+
var xn = function(e, t) {
|
|
842
|
+
return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
857
843
|
n.__proto__ = r;
|
|
858
844
|
} || function(n, r) {
|
|
859
845
|
for (var i in r)
|
|
860
846
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
861
|
-
},
|
|
847
|
+
}, xn(e, t);
|
|
862
848
|
};
|
|
863
|
-
function
|
|
849
|
+
function qt(e, t) {
|
|
864
850
|
if (typeof t != "function" && t !== null)
|
|
865
851
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
866
|
-
|
|
852
|
+
xn(e, t);
|
|
867
853
|
function n() {
|
|
868
854
|
this.constructor = e;
|
|
869
855
|
}
|
|
870
856
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
871
857
|
}
|
|
872
|
-
var
|
|
873
|
-
return
|
|
858
|
+
var we = function() {
|
|
859
|
+
return we = Object.assign || function(t) {
|
|
874
860
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
875
861
|
n = arguments[r];
|
|
876
862
|
for (var o in n)
|
|
877
863
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
878
864
|
}
|
|
879
865
|
return t;
|
|
880
|
-
},
|
|
866
|
+
}, we.apply(this, arguments);
|
|
881
867
|
};
|
|
882
868
|
function Bo(e, t) {
|
|
883
869
|
var n = {};
|
|
@@ -888,14 +874,14 @@ function Bo(e, t) {
|
|
|
888
874
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
889
875
|
return n;
|
|
890
876
|
}
|
|
891
|
-
function
|
|
892
|
-
if (arguments.length === 2)
|
|
877
|
+
function ln(e, t, n) {
|
|
878
|
+
if (n || arguments.length === 2)
|
|
893
879
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
894
880
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
895
|
-
return e.concat(o || t);
|
|
881
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
896
882
|
}
|
|
897
|
-
function
|
|
898
|
-
var n = t && t.cache ? t.cache :
|
|
883
|
+
function cn(e, t) {
|
|
884
|
+
var n = t && t.cache ? t.cache : zo, r = t && t.serializer ? t.serializer : Go, i = t && t.strategy ? t.strategy : ko;
|
|
899
885
|
return i(e, {
|
|
900
886
|
cache: n,
|
|
901
887
|
serializer: r
|
|
@@ -904,95 +890,103 @@ function un(e, t) {
|
|
|
904
890
|
function $o(e) {
|
|
905
891
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
906
892
|
}
|
|
907
|
-
function
|
|
893
|
+
function Uo(e, t, n, r) {
|
|
908
894
|
var i = $o(r) ? r : n(r), o = t.get(i);
|
|
909
895
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
910
896
|
}
|
|
911
|
-
function
|
|
897
|
+
function oi(e, t, n) {
|
|
912
898
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
913
899
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
914
900
|
}
|
|
915
|
-
function
|
|
901
|
+
function si(e, t, n, r, i) {
|
|
916
902
|
return n.bind(t, e, r, i);
|
|
917
903
|
}
|
|
918
|
-
function Uo(e, t) {
|
|
919
|
-
var n = e.length === 1 ? oi : si;
|
|
920
|
-
return Hn(e, this, n, t.cache.create(), t.serializer);
|
|
921
|
-
}
|
|
922
904
|
function ko(e, t) {
|
|
923
|
-
|
|
905
|
+
var n = e.length === 1 ? Uo : oi;
|
|
906
|
+
return si(e, this, n, t.cache.create(), t.serializer);
|
|
924
907
|
}
|
|
925
908
|
function Fo(e, t) {
|
|
926
|
-
return
|
|
909
|
+
return si(e, this, oi, t.cache.create(), t.serializer);
|
|
927
910
|
}
|
|
928
911
|
var Go = function() {
|
|
929
912
|
return JSON.stringify(arguments);
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
913
|
+
}, jo = (
|
|
914
|
+
/** @class */
|
|
915
|
+
function() {
|
|
916
|
+
function e() {
|
|
917
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
918
|
+
}
|
|
919
|
+
return e.prototype.get = function(t) {
|
|
920
|
+
return this.cache[t];
|
|
921
|
+
}, e.prototype.set = function(t, n) {
|
|
922
|
+
this.cache[t] = n;
|
|
923
|
+
}, e;
|
|
924
|
+
}()
|
|
925
|
+
), zo = {
|
|
941
926
|
create: function() {
|
|
942
|
-
return new
|
|
927
|
+
return new jo();
|
|
943
928
|
}
|
|
944
|
-
},
|
|
945
|
-
variadic:
|
|
946
|
-
|
|
947
|
-
|
|
929
|
+
}, fn = {
|
|
930
|
+
variadic: Fo
|
|
931
|
+
}, zt = function() {
|
|
932
|
+
return zt = Object.assign || function(t) {
|
|
933
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
934
|
+
n = arguments[r];
|
|
935
|
+
for (var o in n)
|
|
936
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
937
|
+
}
|
|
938
|
+
return t;
|
|
939
|
+
}, zt.apply(this, arguments);
|
|
940
|
+
};
|
|
941
|
+
var D;
|
|
948
942
|
(function(e) {
|
|
949
943
|
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";
|
|
950
944
|
})(D || (D = {}));
|
|
951
|
-
var
|
|
945
|
+
var X;
|
|
952
946
|
(function(e) {
|
|
953
947
|
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";
|
|
954
|
-
})(
|
|
955
|
-
var
|
|
948
|
+
})(X || (X = {}));
|
|
949
|
+
var qe;
|
|
956
950
|
(function(e) {
|
|
957
951
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
958
|
-
})(
|
|
952
|
+
})(qe || (qe = {}));
|
|
959
953
|
function hr(e) {
|
|
960
|
-
return e.type ===
|
|
954
|
+
return e.type === X.literal;
|
|
961
955
|
}
|
|
962
|
-
function
|
|
963
|
-
return e.type ===
|
|
956
|
+
function Wo(e) {
|
|
957
|
+
return e.type === X.argument;
|
|
964
958
|
}
|
|
965
959
|
function ai(e) {
|
|
966
|
-
return e.type ===
|
|
960
|
+
return e.type === X.number;
|
|
967
961
|
}
|
|
968
962
|
function ui(e) {
|
|
969
|
-
return e.type ===
|
|
963
|
+
return e.type === X.date;
|
|
970
964
|
}
|
|
971
965
|
function li(e) {
|
|
972
|
-
return e.type ===
|
|
966
|
+
return e.type === X.time;
|
|
973
967
|
}
|
|
974
968
|
function ci(e) {
|
|
975
|
-
return e.type ===
|
|
969
|
+
return e.type === X.select;
|
|
976
970
|
}
|
|
977
971
|
function fi(e) {
|
|
978
|
-
return e.type ===
|
|
972
|
+
return e.type === X.plural;
|
|
979
973
|
}
|
|
980
|
-
function
|
|
981
|
-
return e.type ===
|
|
974
|
+
function Vo(e) {
|
|
975
|
+
return e.type === X.pound;
|
|
982
976
|
}
|
|
983
977
|
function hi(e) {
|
|
984
|
-
return e.type ===
|
|
978
|
+
return e.type === X.tag;
|
|
985
979
|
}
|
|
986
980
|
function mi(e) {
|
|
987
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
981
|
+
return !!(e && typeof e == "object" && e.type === qe.number);
|
|
988
982
|
}
|
|
989
|
-
function
|
|
990
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
983
|
+
function vn(e) {
|
|
984
|
+
return !!(e && typeof e == "object" && e.type === qe.dateTime);
|
|
991
985
|
}
|
|
992
|
-
var di = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
993
|
-
function
|
|
986
|
+
var di = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xo = /(?:[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;
|
|
987
|
+
function Yo(e) {
|
|
994
988
|
var t = {};
|
|
995
|
-
return e.replace(
|
|
989
|
+
return e.replace(Xo, function(n) {
|
|
996
990
|
var r = n.length;
|
|
997
991
|
switch (n[0]) {
|
|
998
992
|
case "G":
|
|
@@ -1081,11 +1075,21 @@ function Xo(e) {
|
|
|
1081
1075
|
return "";
|
|
1082
1076
|
}), t;
|
|
1083
1077
|
}
|
|
1084
|
-
var
|
|
1085
|
-
function
|
|
1078
|
+
var Z = function() {
|
|
1079
|
+
return Z = Object.assign || function(t) {
|
|
1080
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
|
+
n = arguments[r];
|
|
1082
|
+
for (var o in n)
|
|
1083
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1084
|
+
}
|
|
1085
|
+
return t;
|
|
1086
|
+
}, Z.apply(this, arguments);
|
|
1087
|
+
};
|
|
1088
|
+
var Zo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
|
+
function qo(e) {
|
|
1086
1090
|
if (e.length === 0)
|
|
1087
1091
|
throw new Error("Number skeleton cannot be empty");
|
|
1088
|
-
for (var t = e.split(
|
|
1092
|
+
for (var t = e.split(Zo).filter(function(y) {
|
|
1089
1093
|
return y.length > 0;
|
|
1090
1094
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1091
1095
|
var o = i[r], u = o.split("/");
|
|
@@ -1100,10 +1104,10 @@ function Zo(e) {
|
|
|
1100
1104
|
}
|
|
1101
1105
|
return n;
|
|
1102
1106
|
}
|
|
1103
|
-
function
|
|
1107
|
+
function Jo(e) {
|
|
1104
1108
|
return e.replace(/^(.*?)-/, "");
|
|
1105
1109
|
}
|
|
1106
|
-
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1110
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pi = /^(@+)?(\+|#+)?[rs]?$/g, Qo = /(\*)(0+)|(#+)(0+)|(0+)/g, gi = /^(0+)$/;
|
|
1107
1111
|
function dr(e) {
|
|
1108
1112
|
var t = {};
|
|
1109
1113
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pi, function(n, r, i) {
|
|
@@ -1150,7 +1154,7 @@ function _i(e) {
|
|
|
1150
1154
|
};
|
|
1151
1155
|
}
|
|
1152
1156
|
}
|
|
1153
|
-
function
|
|
1157
|
+
function Ko(e) {
|
|
1154
1158
|
var t;
|
|
1155
1159
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1156
1160
|
notation: "engineering"
|
|
@@ -1168,7 +1172,7 @@ function pr(e) {
|
|
|
1168
1172
|
var t = {}, n = _i(e);
|
|
1169
1173
|
return n || t;
|
|
1170
1174
|
}
|
|
1171
|
-
function
|
|
1175
|
+
function es(e) {
|
|
1172
1176
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1173
1177
|
var i = r[n];
|
|
1174
1178
|
switch (i.stem) {
|
|
@@ -1192,7 +1196,7 @@ function Ko(e) {
|
|
|
1192
1196
|
continue;
|
|
1193
1197
|
case "measure-unit":
|
|
1194
1198
|
case "unit":
|
|
1195
|
-
t.style = "unit", t.unit =
|
|
1199
|
+
t.style = "unit", t.unit = Jo(i.options[0]);
|
|
1196
1200
|
continue;
|
|
1197
1201
|
case "compact-short":
|
|
1198
1202
|
case "K":
|
|
@@ -1203,13 +1207,13 @@ function Ko(e) {
|
|
|
1203
1207
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1204
1208
|
continue;
|
|
1205
1209
|
case "scientific":
|
|
1206
|
-
t =
|
|
1207
|
-
return
|
|
1210
|
+
t = Z(Z(Z({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1211
|
+
return Z(Z({}, c), pr(l));
|
|
1208
1212
|
}, {}));
|
|
1209
1213
|
continue;
|
|
1210
1214
|
case "engineering":
|
|
1211
|
-
t =
|
|
1212
|
-
return
|
|
1215
|
+
t = Z(Z(Z({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1216
|
+
return Z(Z({}, c), pr(l));
|
|
1213
1217
|
}, {}));
|
|
1214
1218
|
continue;
|
|
1215
1219
|
case "notation-simple":
|
|
@@ -1254,7 +1258,7 @@ function Ko(e) {
|
|
|
1254
1258
|
case "integer-width":
|
|
1255
1259
|
if (i.options.length > 1)
|
|
1256
1260
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1257
|
-
i.options[0].replace(
|
|
1261
|
+
i.options[0].replace(Qo, function(c, l, f, _, y, M) {
|
|
1258
1262
|
if (l)
|
|
1259
1263
|
t.minimumIntegerDigits = f.length;
|
|
1260
1264
|
else {
|
|
@@ -1278,21 +1282,21 @@ function Ko(e) {
|
|
|
1278
1282
|
return f === "*" ? t.minimumFractionDigits = l.length : _ && _[0] === "#" ? t.maximumFractionDigits = _.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1279
1283
|
});
|
|
1280
1284
|
var o = i.options[0];
|
|
1281
|
-
o === "w" ? t =
|
|
1285
|
+
o === "w" ? t = Z(Z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = Z(Z({}, t), dr(o)));
|
|
1282
1286
|
continue;
|
|
1283
1287
|
}
|
|
1284
1288
|
if (pi.test(i.stem)) {
|
|
1285
|
-
t =
|
|
1289
|
+
t = Z(Z({}, t), dr(i.stem));
|
|
1286
1290
|
continue;
|
|
1287
1291
|
}
|
|
1288
1292
|
var u = _i(i.stem);
|
|
1289
|
-
u && (t =
|
|
1290
|
-
var a =
|
|
1291
|
-
a && (t =
|
|
1293
|
+
u && (t = Z(Z({}, t), u));
|
|
1294
|
+
var a = Ko(i.stem);
|
|
1295
|
+
a && (t = Z(Z({}, t), a));
|
|
1292
1296
|
}
|
|
1293
1297
|
return t;
|
|
1294
1298
|
}
|
|
1295
|
-
var
|
|
1299
|
+
var Mt = {
|
|
1296
1300
|
"001": [
|
|
1297
1301
|
"H",
|
|
1298
1302
|
"h"
|
|
@@ -2707,13 +2711,13 @@ var Ot = {
|
|
|
2707
2711
|
"h"
|
|
2708
2712
|
]
|
|
2709
2713
|
};
|
|
2710
|
-
function
|
|
2714
|
+
function ts(e, t) {
|
|
2711
2715
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2712
2716
|
var i = e.charAt(r);
|
|
2713
2717
|
if (i === "j") {
|
|
2714
2718
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2715
2719
|
o++, r++;
|
|
2716
|
-
var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2720
|
+
var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = ns(t);
|
|
2717
2721
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2718
2722
|
n += c;
|
|
2719
2723
|
for (; u-- > 0; )
|
|
@@ -2723,7 +2727,7 @@ function es(e, t) {
|
|
|
2723
2727
|
}
|
|
2724
2728
|
return n;
|
|
2725
2729
|
}
|
|
2726
|
-
function
|
|
2730
|
+
function ns(e) {
|
|
2727
2731
|
var t = e.hourCycle;
|
|
2728
2732
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2729
2733
|
e.hourCycles && // @ts-ignore
|
|
@@ -2742,23 +2746,23 @@ function ts(e) {
|
|
|
2742
2746
|
}
|
|
2743
2747
|
var n = e.language, r;
|
|
2744
2748
|
n !== "root" && (r = e.maximize().region);
|
|
2745
|
-
var i =
|
|
2749
|
+
var i = Mt[r || ""] || Mt[n || ""] || Mt["".concat(n, "-001")] || Mt["001"];
|
|
2746
2750
|
return i[0];
|
|
2747
2751
|
}
|
|
2748
|
-
var
|
|
2752
|
+
var hn, rs = new RegExp("^".concat(di.source, "*")), is = new RegExp("".concat(di.source, "*$"));
|
|
2749
2753
|
function B(e, t) {
|
|
2750
2754
|
return { start: e, end: t };
|
|
2751
2755
|
}
|
|
2752
|
-
var
|
|
2756
|
+
var os = !!String.prototype.startsWith && "_a".startsWith("a", 1), ss = !!String.fromCodePoint, as = !!Object.fromEntries, us = !!String.prototype.codePointAt, ls = !!String.prototype.trimStart, cs = !!String.prototype.trimEnd, fs = !!Number.isSafeInteger, hs = fs ? Number.isSafeInteger : function(e) {
|
|
2753
2757
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2754
|
-
},
|
|
2758
|
+
}, Tn = !0;
|
|
2755
2759
|
try {
|
|
2756
|
-
var
|
|
2757
|
-
|
|
2760
|
+
var ms = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2761
|
+
Tn = ((hn = ms.exec("a")) === null || hn === void 0 ? void 0 : hn[0]) === "a";
|
|
2758
2762
|
} catch {
|
|
2759
|
-
|
|
2763
|
+
Tn = !1;
|
|
2760
2764
|
}
|
|
2761
|
-
var gr =
|
|
2765
|
+
var gr = os ? (
|
|
2762
2766
|
// Native
|
|
2763
2767
|
function(t, n, r) {
|
|
2764
2768
|
return t.startsWith(n, r);
|
|
@@ -2768,7 +2772,7 @@ var gr = is ? (
|
|
|
2768
2772
|
function(t, n, r) {
|
|
2769
2773
|
return t.slice(r, r + n.length) === n;
|
|
2770
2774
|
}
|
|
2771
|
-
),
|
|
2775
|
+
), Sn = ss ? String.fromCodePoint : (
|
|
2772
2776
|
// IE11
|
|
2773
2777
|
function() {
|
|
2774
2778
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2782,7 +2786,7 @@ var gr = is ? (
|
|
|
2782
2786
|
}
|
|
2783
2787
|
), _r = (
|
|
2784
2788
|
// native
|
|
2785
|
-
|
|
2789
|
+
as ? Object.fromEntries : (
|
|
2786
2790
|
// Ponyfill
|
|
2787
2791
|
function(t) {
|
|
2788
2792
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2792,7 +2796,7 @@ var gr = is ? (
|
|
|
2792
2796
|
return n;
|
|
2793
2797
|
}
|
|
2794
2798
|
)
|
|
2795
|
-
), bi =
|
|
2799
|
+
), bi = us ? (
|
|
2796
2800
|
// Native
|
|
2797
2801
|
function(t, n) {
|
|
2798
2802
|
return t.codePointAt(n);
|
|
@@ -2806,7 +2810,7 @@ var gr = is ? (
|
|
|
2806
2810
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2807
2811
|
}
|
|
2808
2812
|
}
|
|
2809
|
-
),
|
|
2813
|
+
), ds = ls ? (
|
|
2810
2814
|
// Native
|
|
2811
2815
|
function(t) {
|
|
2812
2816
|
return t.trimStart();
|
|
@@ -2814,9 +2818,9 @@ var gr = is ? (
|
|
|
2814
2818
|
) : (
|
|
2815
2819
|
// Ponyfill
|
|
2816
2820
|
function(t) {
|
|
2817
|
-
return t.replace(
|
|
2821
|
+
return t.replace(rs, "");
|
|
2818
2822
|
}
|
|
2819
|
-
),
|
|
2823
|
+
), ps = cs ? (
|
|
2820
2824
|
// Native
|
|
2821
2825
|
function(t) {
|
|
2822
2826
|
return t.trimEnd();
|
|
@@ -2824,32 +2828,32 @@ var gr = is ? (
|
|
|
2824
2828
|
) : (
|
|
2825
2829
|
// Ponyfill
|
|
2826
2830
|
function(t) {
|
|
2827
|
-
return t.replace(
|
|
2831
|
+
return t.replace(is, "");
|
|
2828
2832
|
}
|
|
2829
2833
|
);
|
|
2830
2834
|
function Ei(e, t) {
|
|
2831
2835
|
return new RegExp(e, t);
|
|
2832
2836
|
}
|
|
2833
|
-
var
|
|
2834
|
-
if (
|
|
2837
|
+
var wn;
|
|
2838
|
+
if (Tn) {
|
|
2835
2839
|
var br = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2836
|
-
|
|
2840
|
+
wn = function(t, n) {
|
|
2837
2841
|
var r;
|
|
2838
2842
|
br.lastIndex = n;
|
|
2839
2843
|
var i = br.exec(t);
|
|
2840
2844
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2841
2845
|
};
|
|
2842
2846
|
} else
|
|
2843
|
-
|
|
2847
|
+
wn = function(t, n) {
|
|
2844
2848
|
for (var r = []; ; ) {
|
|
2845
2849
|
var i = bi(t, n);
|
|
2846
|
-
if (i === void 0 || yi(i) ||
|
|
2850
|
+
if (i === void 0 || yi(i) || Es(i))
|
|
2847
2851
|
break;
|
|
2848
2852
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2849
2853
|
}
|
|
2850
|
-
return
|
|
2854
|
+
return Sn.apply(void 0, r);
|
|
2851
2855
|
};
|
|
2852
|
-
var
|
|
2856
|
+
var gs = (
|
|
2853
2857
|
/** @class */
|
|
2854
2858
|
function() {
|
|
2855
2859
|
function e(t, n) {
|
|
@@ -2873,14 +2877,14 @@ var ps = (
|
|
|
2873
2877
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2874
2878
|
var a = this.clonePosition();
|
|
2875
2879
|
this.bump(), i.push({
|
|
2876
|
-
type:
|
|
2880
|
+
type: X.pound,
|
|
2877
2881
|
location: B(a, this.clonePosition())
|
|
2878
2882
|
});
|
|
2879
2883
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2880
2884
|
if (r)
|
|
2881
2885
|
break;
|
|
2882
2886
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2883
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2887
|
+
} else if (o === 60 && !this.ignoreTag && An(this.peek() || 0)) {
|
|
2884
2888
|
var u = this.parseTag(t, n);
|
|
2885
2889
|
if (u.err)
|
|
2886
2890
|
return u;
|
|
@@ -2901,7 +2905,7 @@ var ps = (
|
|
|
2901
2905
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2902
2906
|
return {
|
|
2903
2907
|
val: {
|
|
2904
|
-
type:
|
|
2908
|
+
type: X.literal,
|
|
2905
2909
|
value: "<".concat(i, "/>"),
|
|
2906
2910
|
location: B(r, this.clonePosition())
|
|
2907
2911
|
},
|
|
@@ -2913,12 +2917,12 @@ var ps = (
|
|
|
2913
2917
|
return o;
|
|
2914
2918
|
var u = o.val, a = this.clonePosition();
|
|
2915
2919
|
if (this.bumpIf("</")) {
|
|
2916
|
-
if (this.isEOF() || !
|
|
2920
|
+
if (this.isEOF() || !An(this.char()))
|
|
2917
2921
|
return this.error(D.INVALID_TAG, B(a, this.clonePosition()));
|
|
2918
2922
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2919
2923
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2920
2924
|
val: {
|
|
2921
|
-
type:
|
|
2925
|
+
type: X.tag,
|
|
2922
2926
|
value: i,
|
|
2923
2927
|
children: u,
|
|
2924
2928
|
location: B(r, this.clonePosition())
|
|
@@ -2931,7 +2935,7 @@ var ps = (
|
|
|
2931
2935
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2932
2936
|
}, e.prototype.parseTagName = function() {
|
|
2933
2937
|
var t = this.offset();
|
|
2934
|
-
for (this.bump(); !this.isEOF() &&
|
|
2938
|
+
for (this.bump(); !this.isEOF() && bs(this.char()); )
|
|
2935
2939
|
this.bump();
|
|
2936
2940
|
return this.message.slice(t, this.offset());
|
|
2937
2941
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2955,12 +2959,12 @@ var ps = (
|
|
|
2955
2959
|
}
|
|
2956
2960
|
var c = B(r, this.clonePosition());
|
|
2957
2961
|
return {
|
|
2958
|
-
val: { type:
|
|
2962
|
+
val: { type: X.literal, value: i, location: c },
|
|
2959
2963
|
err: null
|
|
2960
2964
|
};
|
|
2961
2965
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2962
2966
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2963
|
-
!
|
|
2967
|
+
!_s(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2964
2968
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2965
2969
|
if (this.isEOF() || this.char() !== 39)
|
|
2966
2970
|
return null;
|
|
@@ -2994,12 +2998,12 @@ var ps = (
|
|
|
2994
2998
|
n.push(r);
|
|
2995
2999
|
this.bump();
|
|
2996
3000
|
}
|
|
2997
|
-
return
|
|
3001
|
+
return Sn.apply(void 0, n);
|
|
2998
3002
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2999
3003
|
if (this.isEOF())
|
|
3000
3004
|
return null;
|
|
3001
3005
|
var r = this.char();
|
|
3002
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3006
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Sn(r));
|
|
3003
3007
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3004
3008
|
var r = this.clonePosition();
|
|
3005
3009
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3015,7 +3019,7 @@ var ps = (
|
|
|
3015
3019
|
case 125:
|
|
3016
3020
|
return this.bump(), {
|
|
3017
3021
|
val: {
|
|
3018
|
-
type:
|
|
3022
|
+
type: X.argument,
|
|
3019
3023
|
// value does not include the opening and closing braces.
|
|
3020
3024
|
value: i,
|
|
3021
3025
|
location: B(r, this.clonePosition())
|
|
@@ -3028,7 +3032,7 @@ var ps = (
|
|
|
3028
3032
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3029
3033
|
}
|
|
3030
3034
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3031
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3035
|
+
var t = this.clonePosition(), n = this.offset(), r = wn(this.message, n), i = n + r.length;
|
|
3032
3036
|
this.bumpTo(i);
|
|
3033
3037
|
var o = this.clonePosition(), u = B(t, o);
|
|
3034
3038
|
return { value: r, location: u };
|
|
@@ -3047,7 +3051,7 @@ var ps = (
|
|
|
3047
3051
|
var f = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3048
3052
|
if (_.err)
|
|
3049
3053
|
return _;
|
|
3050
|
-
var y =
|
|
3054
|
+
var y = ps(_.val);
|
|
3051
3055
|
if (y.length === 0)
|
|
3052
3056
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3053
3057
|
var M = B(f, this.clonePosition());
|
|
@@ -3058,24 +3062,24 @@ var ps = (
|
|
|
3058
3062
|
return b;
|
|
3059
3063
|
var d = B(i, this.clonePosition());
|
|
3060
3064
|
if (l && gr(l?.style, "::", 0)) {
|
|
3061
|
-
var C =
|
|
3065
|
+
var C = ds(l.style.slice(2));
|
|
3062
3066
|
if (a === "number") {
|
|
3063
3067
|
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3064
3068
|
return _.err ? _ : {
|
|
3065
|
-
val: { type:
|
|
3069
|
+
val: { type: X.number, value: r, location: d, style: _.val },
|
|
3066
3070
|
err: null
|
|
3067
3071
|
};
|
|
3068
3072
|
} else {
|
|
3069
3073
|
if (C.length === 0)
|
|
3070
3074
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3071
|
-
var
|
|
3072
|
-
this.locale && (
|
|
3075
|
+
var F = C;
|
|
3076
|
+
this.locale && (F = ts(C, this.locale));
|
|
3073
3077
|
var y = {
|
|
3074
|
-
type:
|
|
3075
|
-
pattern:
|
|
3078
|
+
type: qe.dateTime,
|
|
3079
|
+
pattern: F,
|
|
3076
3080
|
location: l.styleLocation,
|
|
3077
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3078
|
-
}, $ = a === "date" ?
|
|
3081
|
+
parsedOptions: this.shouldParseSkeletons ? Yo(F) : {}
|
|
3082
|
+
}, $ = a === "date" ? X.date : X.time;
|
|
3079
3083
|
return {
|
|
3080
3084
|
val: { type: $, value: r, location: d, style: y },
|
|
3081
3085
|
err: null
|
|
@@ -3084,7 +3088,7 @@ var ps = (
|
|
|
3084
3088
|
}
|
|
3085
3089
|
return {
|
|
3086
3090
|
val: {
|
|
3087
|
-
type: a === "number" ?
|
|
3091
|
+
type: a === "number" ? X.number : a === "date" ? X.date : X.time,
|
|
3088
3092
|
value: r,
|
|
3089
3093
|
location: d,
|
|
3090
3094
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3097,9 +3101,9 @@ var ps = (
|
|
|
3097
3101
|
case "select": {
|
|
3098
3102
|
var w = this.clonePosition();
|
|
3099
3103
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3100
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w,
|
|
3104
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w, zt({}, w)));
|
|
3101
3105
|
this.bumpSpace();
|
|
3102
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3106
|
+
var H = this.parseIdentifierIfPossible(), R = 0;
|
|
3103
3107
|
if (a !== "select" && H.value === "offset") {
|
|
3104
3108
|
if (!this.bumpIf(":"))
|
|
3105
3109
|
return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B(this.clonePosition(), this.clonePosition()));
|
|
@@ -3107,31 +3111,31 @@ var ps = (
|
|
|
3107
3111
|
var _ = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3108
3112
|
if (_.err)
|
|
3109
3113
|
return _;
|
|
3110
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3114
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), R = _.val;
|
|
3111
3115
|
}
|
|
3112
|
-
var
|
|
3113
|
-
if (
|
|
3114
|
-
return
|
|
3116
|
+
var U = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3117
|
+
if (U.err)
|
|
3118
|
+
return U;
|
|
3115
3119
|
var b = this.tryParseArgumentClose(i);
|
|
3116
3120
|
if (b.err)
|
|
3117
3121
|
return b;
|
|
3118
|
-
var
|
|
3122
|
+
var Y = B(i, this.clonePosition());
|
|
3119
3123
|
return a === "select" ? {
|
|
3120
3124
|
val: {
|
|
3121
|
-
type:
|
|
3125
|
+
type: X.select,
|
|
3122
3126
|
value: r,
|
|
3123
|
-
options: _r(
|
|
3124
|
-
location:
|
|
3127
|
+
options: _r(U.val),
|
|
3128
|
+
location: Y
|
|
3125
3129
|
},
|
|
3126
3130
|
err: null
|
|
3127
3131
|
} : {
|
|
3128
3132
|
val: {
|
|
3129
|
-
type:
|
|
3133
|
+
type: X.plural,
|
|
3130
3134
|
value: r,
|
|
3131
|
-
options: _r(
|
|
3132
|
-
offset:
|
|
3135
|
+
options: _r(U.val),
|
|
3136
|
+
offset: R,
|
|
3133
3137
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3134
|
-
location:
|
|
3138
|
+
location: Y
|
|
3135
3139
|
},
|
|
3136
3140
|
err: null
|
|
3137
3141
|
};
|
|
@@ -3179,16 +3183,16 @@ var ps = (
|
|
|
3179
3183
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3180
3184
|
var r = [];
|
|
3181
3185
|
try {
|
|
3182
|
-
r =
|
|
3186
|
+
r = qo(t);
|
|
3183
3187
|
} catch {
|
|
3184
3188
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3185
3189
|
}
|
|
3186
3190
|
return {
|
|
3187
3191
|
val: {
|
|
3188
|
-
type:
|
|
3192
|
+
type: qe.number,
|
|
3189
3193
|
tokens: r,
|
|
3190
3194
|
location: n,
|
|
3191
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3195
|
+
parsedOptions: this.shouldParseSkeletons ? es(r) : {}
|
|
3192
3196
|
},
|
|
3193
3197
|
err: null
|
|
3194
3198
|
};
|
|
@@ -3236,7 +3240,7 @@ var ps = (
|
|
|
3236
3240
|
break;
|
|
3237
3241
|
}
|
|
3238
3242
|
var c = B(i, this.clonePosition());
|
|
3239
|
-
return o ? (u *= r,
|
|
3243
|
+
return o ? (u *= r, hs(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3240
3244
|
}, e.prototype.offset = function() {
|
|
3241
3245
|
return this.position.offset;
|
|
3242
3246
|
}, e.prototype.isEOF = function() {
|
|
@@ -3302,47 +3306,47 @@ var ps = (
|
|
|
3302
3306
|
}, e;
|
|
3303
3307
|
}()
|
|
3304
3308
|
);
|
|
3305
|
-
function
|
|
3309
|
+
function An(e) {
|
|
3306
3310
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3307
3311
|
}
|
|
3308
|
-
function gs(e) {
|
|
3309
|
-
return Sn(e) || e === 47;
|
|
3310
|
-
}
|
|
3311
3312
|
function _s(e) {
|
|
3313
|
+
return An(e) || e === 47;
|
|
3314
|
+
}
|
|
3315
|
+
function bs(e) {
|
|
3312
3316
|
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;
|
|
3313
3317
|
}
|
|
3314
3318
|
function yi(e) {
|
|
3315
3319
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3316
3320
|
}
|
|
3317
|
-
function
|
|
3321
|
+
function Es(e) {
|
|
3318
3322
|
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;
|
|
3319
3323
|
}
|
|
3320
|
-
function
|
|
3324
|
+
function On(e) {
|
|
3321
3325
|
e.forEach(function(t) {
|
|
3322
3326
|
if (delete t.location, ci(t) || fi(t))
|
|
3323
3327
|
for (var n in t.options)
|
|
3324
|
-
delete t.options[n].location,
|
|
3328
|
+
delete t.options[n].location, On(t.options[n].value);
|
|
3325
3329
|
else
|
|
3326
|
-
ai(t) && mi(t.style) || (ui(t) || li(t)) &&
|
|
3330
|
+
ai(t) && mi(t.style) || (ui(t) || li(t)) && vn(t.style) ? delete t.style.location : hi(t) && On(t.children);
|
|
3327
3331
|
});
|
|
3328
3332
|
}
|
|
3329
|
-
function
|
|
3330
|
-
t === void 0 && (t = {}), t =
|
|
3331
|
-
var n = new
|
|
3333
|
+
function ys(e, t) {
|
|
3334
|
+
t === void 0 && (t = {}), t = zt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3335
|
+
var n = new gs(e, t).parse();
|
|
3332
3336
|
if (n.err) {
|
|
3333
3337
|
var r = SyntaxError(D[n.err.kind]);
|
|
3334
3338
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3335
3339
|
}
|
|
3336
|
-
return t?.captureLocation ||
|
|
3340
|
+
return t?.captureLocation || On(n.val), n.val;
|
|
3337
3341
|
}
|
|
3338
|
-
var
|
|
3342
|
+
var Je;
|
|
3339
3343
|
(function(e) {
|
|
3340
3344
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3341
|
-
})(
|
|
3342
|
-
var
|
|
3345
|
+
})(Je || (Je = {}));
|
|
3346
|
+
var Jt = (
|
|
3343
3347
|
/** @class */
|
|
3344
3348
|
function(e) {
|
|
3345
|
-
|
|
3349
|
+
qt(t, e);
|
|
3346
3350
|
function t(n, r, i) {
|
|
3347
3351
|
var o = e.call(this, n) || this;
|
|
3348
3352
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3354,30 +3358,30 @@ var Zt = (
|
|
|
3354
3358
|
), Er = (
|
|
3355
3359
|
/** @class */
|
|
3356
3360
|
function(e) {
|
|
3357
|
-
|
|
3361
|
+
qt(t, e);
|
|
3358
3362
|
function t(n, r, i, o) {
|
|
3359
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3363
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Je.INVALID_VALUE, o) || this;
|
|
3360
3364
|
}
|
|
3361
3365
|
return t;
|
|
3362
|
-
}(
|
|
3363
|
-
),
|
|
3366
|
+
}(Jt)
|
|
3367
|
+
), xs = (
|
|
3364
3368
|
/** @class */
|
|
3365
3369
|
function(e) {
|
|
3366
|
-
|
|
3370
|
+
qt(t, e);
|
|
3367
3371
|
function t(n, r, i) {
|
|
3368
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3372
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Je.INVALID_VALUE, i) || this;
|
|
3369
3373
|
}
|
|
3370
3374
|
return t;
|
|
3371
|
-
}(
|
|
3372
|
-
),
|
|
3375
|
+
}(Jt)
|
|
3376
|
+
), vs = (
|
|
3373
3377
|
/** @class */
|
|
3374
3378
|
function(e) {
|
|
3375
|
-
|
|
3379
|
+
qt(t, e);
|
|
3376
3380
|
function t(n, r) {
|
|
3377
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3381
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Je.MISSING_VALUE, r) || this;
|
|
3378
3382
|
}
|
|
3379
3383
|
return t;
|
|
3380
|
-
}(
|
|
3384
|
+
}(Jt)
|
|
3381
3385
|
), ce;
|
|
3382
3386
|
(function(e) {
|
|
3383
3387
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3388,10 +3392,10 @@ function Ts(e) {
|
|
|
3388
3392
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3389
3393
|
}, []);
|
|
3390
3394
|
}
|
|
3391
|
-
function
|
|
3395
|
+
function Ss(e) {
|
|
3392
3396
|
return typeof e == "function";
|
|
3393
3397
|
}
|
|
3394
|
-
function
|
|
3398
|
+
function Bt(e, t, n, r, i, o, u) {
|
|
3395
3399
|
if (e.length === 1 && hr(e[0]))
|
|
3396
3400
|
return [
|
|
3397
3401
|
{
|
|
@@ -3408,7 +3412,7 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3408
3412
|
});
|
|
3409
3413
|
continue;
|
|
3410
3414
|
}
|
|
3411
|
-
if (
|
|
3415
|
+
if (Vo(f)) {
|
|
3412
3416
|
typeof o == "number" && a.push({
|
|
3413
3417
|
type: ce.literal,
|
|
3414
3418
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3417,9 +3421,9 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3417
3421
|
}
|
|
3418
3422
|
var _ = f.value;
|
|
3419
3423
|
if (!(i && _ in i))
|
|
3420
|
-
throw new
|
|
3424
|
+
throw new vs(_, u);
|
|
3421
3425
|
var y = i[_];
|
|
3422
|
-
if (
|
|
3426
|
+
if (Wo(f)) {
|
|
3423
3427
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3424
3428
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3425
3429
|
value: y
|
|
@@ -3427,7 +3431,7 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3427
3431
|
continue;
|
|
3428
3432
|
}
|
|
3429
3433
|
if (ui(f)) {
|
|
3430
|
-
var M = typeof f.style == "string" ? r.date[f.style] :
|
|
3434
|
+
var M = typeof f.style == "string" ? r.date[f.style] : vn(f.style) ? f.style.parsedOptions : void 0;
|
|
3431
3435
|
a.push({
|
|
3432
3436
|
type: ce.literal,
|
|
3433
3437
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
@@ -3435,7 +3439,7 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3435
3439
|
continue;
|
|
3436
3440
|
}
|
|
3437
3441
|
if (li(f)) {
|
|
3438
|
-
var M = typeof f.style == "string" ? r.time[f.style] :
|
|
3442
|
+
var M = typeof f.style == "string" ? r.time[f.style] : vn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3439
3443
|
a.push({
|
|
3440
3444
|
type: ce.literal,
|
|
3441
3445
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
@@ -3452,15 +3456,15 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3452
3456
|
}
|
|
3453
3457
|
if (hi(f)) {
|
|
3454
3458
|
var b = f.children, d = f.value, C = i[d];
|
|
3455
|
-
if (!
|
|
3456
|
-
throw new
|
|
3457
|
-
var
|
|
3458
|
-
return
|
|
3459
|
+
if (!Ss(C))
|
|
3460
|
+
throw new xs(d, "function", u);
|
|
3461
|
+
var F = Bt(b, t, n, r, i, o), $ = C(F.map(function(R) {
|
|
3462
|
+
return R.value;
|
|
3459
3463
|
}));
|
|
3460
|
-
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(
|
|
3464
|
+
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(R) {
|
|
3461
3465
|
return {
|
|
3462
|
-
type: typeof
|
|
3463
|
-
value:
|
|
3466
|
+
type: typeof R == "string" ? ce.literal : ce.object,
|
|
3467
|
+
value: R
|
|
3464
3468
|
};
|
|
3465
3469
|
}));
|
|
3466
3470
|
}
|
|
@@ -3468,38 +3472,38 @@ function Dt(e, t, n, r, i, o, u) {
|
|
|
3468
3472
|
var w = f.options[y] || f.options.other;
|
|
3469
3473
|
if (!w)
|
|
3470
3474
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3471
|
-
a.push.apply(a,
|
|
3475
|
+
a.push.apply(a, Bt(w.value, t, n, r, i));
|
|
3472
3476
|
continue;
|
|
3473
3477
|
}
|
|
3474
3478
|
if (fi(f)) {
|
|
3475
3479
|
var w = f.options["=".concat(y)];
|
|
3476
3480
|
if (!w) {
|
|
3477
3481
|
if (!Intl.PluralRules)
|
|
3478
|
-
throw new
|
|
3482
|
+
throw new Jt(`Intl.PluralRules is not available in this environment.
|
|
3479
3483
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3480
|
-
`,
|
|
3484
|
+
`, Je.MISSING_INTL_API, u);
|
|
3481
3485
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3482
3486
|
w = f.options[H] || f.options.other;
|
|
3483
3487
|
}
|
|
3484
3488
|
if (!w)
|
|
3485
3489
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3486
|
-
a.push.apply(a,
|
|
3490
|
+
a.push.apply(a, Bt(w.value, t, n, r, i, y - (f.offset || 0)));
|
|
3487
3491
|
continue;
|
|
3488
3492
|
}
|
|
3489
3493
|
}
|
|
3490
3494
|
return Ts(a);
|
|
3491
3495
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return t ?
|
|
3494
|
-
return n[r] =
|
|
3496
|
+
function ws(e, t) {
|
|
3497
|
+
return t ? we(we(we({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3498
|
+
return n[r] = we(we({}, e[r]), t[r] || {}), n;
|
|
3495
3499
|
}, {})) : e;
|
|
3496
3500
|
}
|
|
3497
|
-
function
|
|
3501
|
+
function As(e, t) {
|
|
3498
3502
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3499
|
-
return n[r] =
|
|
3500
|
-
},
|
|
3503
|
+
return n[r] = ws(e[r], t[r]), n;
|
|
3504
|
+
}, we({}, e)) : e;
|
|
3501
3505
|
}
|
|
3502
|
-
function
|
|
3506
|
+
function mn(e) {
|
|
3503
3507
|
return {
|
|
3504
3508
|
create: function() {
|
|
3505
3509
|
return {
|
|
@@ -3513,35 +3517,35 @@ function fn(e) {
|
|
|
3513
3517
|
}
|
|
3514
3518
|
};
|
|
3515
3519
|
}
|
|
3516
|
-
function
|
|
3520
|
+
function Os(e) {
|
|
3517
3521
|
return e === void 0 && (e = {
|
|
3518
3522
|
number: {},
|
|
3519
3523
|
dateTime: {},
|
|
3520
3524
|
pluralRules: {}
|
|
3521
3525
|
}), {
|
|
3522
|
-
getNumberFormat:
|
|
3526
|
+
getNumberFormat: cn(function() {
|
|
3523
3527
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3524
3528
|
n[r] = arguments[r];
|
|
3525
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3529
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3526
3530
|
}, {
|
|
3527
|
-
cache:
|
|
3528
|
-
strategy:
|
|
3531
|
+
cache: mn(e.number),
|
|
3532
|
+
strategy: fn.variadic
|
|
3529
3533
|
}),
|
|
3530
|
-
getDateTimeFormat:
|
|
3534
|
+
getDateTimeFormat: cn(function() {
|
|
3531
3535
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3532
3536
|
n[r] = arguments[r];
|
|
3533
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3537
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3534
3538
|
}, {
|
|
3535
|
-
cache:
|
|
3536
|
-
strategy:
|
|
3539
|
+
cache: mn(e.dateTime),
|
|
3540
|
+
strategy: fn.variadic
|
|
3537
3541
|
}),
|
|
3538
|
-
getPluralRules:
|
|
3542
|
+
getPluralRules: cn(function() {
|
|
3539
3543
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3540
3544
|
n[r] = arguments[r];
|
|
3541
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3545
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ln([void 0], n, !1)))();
|
|
3542
3546
|
}, {
|
|
3543
|
-
cache:
|
|
3544
|
-
strategy:
|
|
3547
|
+
cache: mn(e.pluralRules),
|
|
3548
|
+
strategy: fn.variadic
|
|
3545
3549
|
})
|
|
3546
3550
|
};
|
|
3547
3551
|
}
|
|
@@ -3564,7 +3568,7 @@ var xi = (
|
|
|
3564
3568
|
}, []);
|
|
3565
3569
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3566
3570
|
}, this.formatToParts = function(c) {
|
|
3567
|
-
return
|
|
3571
|
+
return Bt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3568
3572
|
}, this.resolvedOptions = function() {
|
|
3569
3573
|
var c;
|
|
3570
3574
|
return {
|
|
@@ -3578,12 +3582,12 @@ var xi = (
|
|
|
3578
3582
|
var u = i || {};
|
|
3579
3583
|
u.formatters;
|
|
3580
3584
|
var a = Bo(u, ["formatters"]);
|
|
3581
|
-
this.ast = e.__parse(t,
|
|
3585
|
+
this.ast = e.__parse(t, we(we({}, a), { locale: this.resolvedLocale }));
|
|
3582
3586
|
} else
|
|
3583
3587
|
this.ast = t;
|
|
3584
3588
|
if (!Array.isArray(this.ast))
|
|
3585
3589
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3586
|
-
this.formats =
|
|
3590
|
+
this.formats = As(e.formats, r), this.formatters = i && i.formatters || Os(this.formatterCache);
|
|
3587
3591
|
}
|
|
3588
3592
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3589
3593
|
get: function() {
|
|
@@ -3596,7 +3600,7 @@ var xi = (
|
|
|
3596
3600
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3597
3601
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3598
3602
|
}
|
|
3599
|
-
}, e.__parse =
|
|
3603
|
+
}, e.__parse = ys, e.formats = {
|
|
3600
3604
|
number: {
|
|
3601
3605
|
integer: {
|
|
3602
3606
|
maximumFractionDigits: 0
|
|
@@ -3657,7 +3661,7 @@ var xi = (
|
|
|
3657
3661
|
}, e;
|
|
3658
3662
|
}()
|
|
3659
3663
|
);
|
|
3660
|
-
function
|
|
3664
|
+
function Ms(e, t) {
|
|
3661
3665
|
if (t == null)
|
|
3662
3666
|
return;
|
|
3663
3667
|
if (t in e)
|
|
@@ -3678,65 +3682,65 @@ function Os(e, t) {
|
|
|
3678
3682
|
r = void 0;
|
|
3679
3683
|
return r;
|
|
3680
3684
|
}
|
|
3681
|
-
const
|
|
3685
|
+
const He = {}, Cs = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), vi = (e, t) => {
|
|
3682
3686
|
if (t == null)
|
|
3683
3687
|
return;
|
|
3684
|
-
if (t in
|
|
3685
|
-
return
|
|
3686
|
-
const n =
|
|
3688
|
+
if (t in He && e in He[t])
|
|
3689
|
+
return He[t][e];
|
|
3690
|
+
const n = yt(t);
|
|
3687
3691
|
for (let r = 0; r < n.length; r++) {
|
|
3688
|
-
const i = n[r], o =
|
|
3692
|
+
const i = n[r], o = Ns(i, e);
|
|
3689
3693
|
if (o)
|
|
3690
|
-
return
|
|
3694
|
+
return Cs(e, t, o);
|
|
3691
3695
|
}
|
|
3692
3696
|
};
|
|
3693
|
-
let
|
|
3694
|
-
const
|
|
3695
|
-
function
|
|
3696
|
-
return
|
|
3697
|
+
let Pn;
|
|
3698
|
+
const Et = bt({});
|
|
3699
|
+
function Ls(e) {
|
|
3700
|
+
return Pn[e] || null;
|
|
3697
3701
|
}
|
|
3698
|
-
function
|
|
3699
|
-
return e in
|
|
3702
|
+
function Ti(e) {
|
|
3703
|
+
return e in Pn;
|
|
3700
3704
|
}
|
|
3701
|
-
function
|
|
3702
|
-
if (!
|
|
3705
|
+
function Ns(e, t) {
|
|
3706
|
+
if (!Ti(e))
|
|
3703
3707
|
return null;
|
|
3704
|
-
const n =
|
|
3705
|
-
return
|
|
3708
|
+
const n = Ls(e);
|
|
3709
|
+
return Ms(n, t);
|
|
3706
3710
|
}
|
|
3707
|
-
function
|
|
3711
|
+
function Hs(e) {
|
|
3708
3712
|
if (e == null)
|
|
3709
3713
|
return;
|
|
3710
|
-
const t =
|
|
3714
|
+
const t = yt(e);
|
|
3711
3715
|
for (let n = 0; n < t.length; n++) {
|
|
3712
3716
|
const r = t[n];
|
|
3713
|
-
if (
|
|
3717
|
+
if (Ti(r))
|
|
3714
3718
|
return r;
|
|
3715
3719
|
}
|
|
3716
3720
|
}
|
|
3717
3721
|
function Si(e, ...t) {
|
|
3718
|
-
delete
|
|
3722
|
+
delete He[e], Et.update((n) => (n[e] = Do.all([n[e] || {}, ...t]), n));
|
|
3719
3723
|
}
|
|
3720
|
-
|
|
3721
|
-
[
|
|
3724
|
+
et(
|
|
3725
|
+
[Et],
|
|
3722
3726
|
([e]) => Object.keys(e)
|
|
3723
3727
|
);
|
|
3724
|
-
|
|
3725
|
-
const
|
|
3726
|
-
function
|
|
3727
|
-
|
|
3728
|
+
Et.subscribe((e) => Pn = e);
|
|
3729
|
+
const $t = {};
|
|
3730
|
+
function Is(e, t) {
|
|
3731
|
+
$t[e].delete(t), $t[e].size === 0 && delete $t[e];
|
|
3728
3732
|
}
|
|
3729
3733
|
function wi(e) {
|
|
3730
|
-
return
|
|
3734
|
+
return $t[e];
|
|
3731
3735
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return
|
|
3736
|
+
function Ps(e) {
|
|
3737
|
+
return yt(e).map((t) => {
|
|
3734
3738
|
const n = wi(t);
|
|
3735
3739
|
return [t, n ? [...n] : []];
|
|
3736
3740
|
}).filter(([, t]) => t.length > 0);
|
|
3737
3741
|
}
|
|
3738
|
-
function
|
|
3739
|
-
return e == null ? !1 :
|
|
3742
|
+
function Wt(e) {
|
|
3743
|
+
return e == null ? !1 : yt(e).some(
|
|
3740
3744
|
(t) => {
|
|
3741
3745
|
var n;
|
|
3742
3746
|
return (n = wi(t)) == null ? void 0 : n.size;
|
|
@@ -3745,34 +3749,34 @@ function jt(e) {
|
|
|
3745
3749
|
}
|
|
3746
3750
|
function Rs(e, t) {
|
|
3747
3751
|
return Promise.all(
|
|
3748
|
-
t.map((r) => (
|
|
3752
|
+
t.map((r) => (Is(e, r), r().then((i) => i.default || i)))
|
|
3749
3753
|
).then((r) => Si(e, ...r));
|
|
3750
3754
|
}
|
|
3751
|
-
const
|
|
3755
|
+
const st = {};
|
|
3752
3756
|
function Ai(e) {
|
|
3753
|
-
if (!
|
|
3754
|
-
return e in
|
|
3755
|
-
const t =
|
|
3756
|
-
return
|
|
3757
|
+
if (!Wt(e))
|
|
3758
|
+
return e in st ? st[e] : Promise.resolve();
|
|
3759
|
+
const t = Ps(e);
|
|
3760
|
+
return st[e] = Promise.all(
|
|
3757
3761
|
t.map(
|
|
3758
3762
|
([n, r]) => Rs(n, r)
|
|
3759
3763
|
)
|
|
3760
3764
|
).then(() => {
|
|
3761
|
-
if (
|
|
3765
|
+
if (Wt(e))
|
|
3762
3766
|
return Ai(e);
|
|
3763
|
-
delete
|
|
3764
|
-
}),
|
|
3767
|
+
delete st[e];
|
|
3768
|
+
}), st[e];
|
|
3765
3769
|
}
|
|
3766
|
-
var yr = Object.getOwnPropertySymbols,
|
|
3770
|
+
var yr = Object.getOwnPropertySymbols, Ds = Object.prototype.hasOwnProperty, Bs = Object.prototype.propertyIsEnumerable, $s = (e, t) => {
|
|
3767
3771
|
var n = {};
|
|
3768
3772
|
for (var r in e)
|
|
3769
|
-
|
|
3773
|
+
Ds.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3770
3774
|
if (e != null && yr)
|
|
3771
3775
|
for (var r of yr(e))
|
|
3772
|
-
t.indexOf(r) < 0 &&
|
|
3776
|
+
t.indexOf(r) < 0 && Bs.call(e, r) && (n[r] = e[r]);
|
|
3773
3777
|
return n;
|
|
3774
3778
|
};
|
|
3775
|
-
const
|
|
3779
|
+
const Us = {
|
|
3776
3780
|
number: {
|
|
3777
3781
|
scientific: { notation: "scientific" },
|
|
3778
3782
|
engineering: { notation: "engineering" },
|
|
@@ -3802,28 +3806,28 @@ const $s = {
|
|
|
3802
3806
|
}
|
|
3803
3807
|
}
|
|
3804
3808
|
};
|
|
3805
|
-
function
|
|
3809
|
+
function ks({ locale: e, id: t }) {
|
|
3806
3810
|
console.warn(
|
|
3807
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3811
|
+
`[svelte-i18n] The message "${t}" was not found in "${yt(
|
|
3808
3812
|
e
|
|
3809
|
-
).join('", "')}".${
|
|
3813
|
+
).join('", "')}".${Wt(Pe()) ? `
|
|
3810
3814
|
|
|
3811
3815
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3812
3816
|
);
|
|
3813
3817
|
}
|
|
3814
|
-
const
|
|
3818
|
+
const Fs = {
|
|
3815
3819
|
fallbackLocale: null,
|
|
3816
3820
|
loadingDelay: 200,
|
|
3817
|
-
formats:
|
|
3821
|
+
formats: Us,
|
|
3818
3822
|
warnOnMissingMessages: !0,
|
|
3819
3823
|
handleMissingMessage: void 0,
|
|
3820
3824
|
ignoreTag: !0
|
|
3821
|
-
},
|
|
3822
|
-
function
|
|
3823
|
-
return
|
|
3825
|
+
}, mt = Fs;
|
|
3826
|
+
function Qe() {
|
|
3827
|
+
return mt;
|
|
3824
3828
|
}
|
|
3825
|
-
function
|
|
3826
|
-
const t = e, { formats: n } = t, r =
|
|
3829
|
+
function Gs(e) {
|
|
3830
|
+
const t = e, { formats: n } = t, r = $s(t, ["formats"]);
|
|
3827
3831
|
let i = e.fallbackLocale;
|
|
3828
3832
|
if (e.initialLocale)
|
|
3829
3833
|
try {
|
|
@@ -3833,143 +3837,143 @@ function Fs(e) {
|
|
|
3833
3837
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3834
3838
|
);
|
|
3835
3839
|
}
|
|
3836
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3840
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ks : console.warn(
|
|
3837
3841
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3838
|
-
)), Object.assign(
|
|
3842
|
+
)), Object.assign(mt, r, { initialLocale: i }), n && ("number" in n && Object.assign(mt.formats.number, n.number), "date" in n && Object.assign(mt.formats.date, n.date), "time" in n && Object.assign(mt.formats.time, n.time)), Be.set(i);
|
|
3839
3843
|
}
|
|
3840
|
-
const
|
|
3841
|
-
var
|
|
3844
|
+
const dn = bt(!1);
|
|
3845
|
+
var js = Object.defineProperty, zs = Object.defineProperties, Ws = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, Vs = Object.prototype.hasOwnProperty, Xs = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ys = (e, t) => {
|
|
3842
3846
|
for (var n in t || (t = {}))
|
|
3843
|
-
|
|
3847
|
+
Vs.call(t, n) && vr(e, n, t[n]);
|
|
3844
3848
|
if (xr)
|
|
3845
3849
|
for (var n of xr(t))
|
|
3846
|
-
|
|
3850
|
+
Xs.call(t, n) && vr(e, n, t[n]);
|
|
3847
3851
|
return e;
|
|
3848
|
-
},
|
|
3849
|
-
let
|
|
3850
|
-
const
|
|
3851
|
-
function
|
|
3852
|
+
}, Zs = (e, t) => zs(e, Ws(t));
|
|
3853
|
+
let Mn;
|
|
3854
|
+
const Vt = bt(null);
|
|
3855
|
+
function Tr(e) {
|
|
3852
3856
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3853
3857
|
}
|
|
3854
|
-
function
|
|
3855
|
-
const n =
|
|
3856
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3858
|
+
function yt(e, t = Qe().fallbackLocale) {
|
|
3859
|
+
const n = Tr(e);
|
|
3860
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tr(t)])] : n;
|
|
3857
3861
|
}
|
|
3858
|
-
function
|
|
3859
|
-
return
|
|
3862
|
+
function Pe() {
|
|
3863
|
+
return Mn ?? void 0;
|
|
3860
3864
|
}
|
|
3861
|
-
|
|
3862
|
-
|
|
3865
|
+
Vt.subscribe((e) => {
|
|
3866
|
+
Mn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3863
3867
|
});
|
|
3864
|
-
const
|
|
3865
|
-
if (e &&
|
|
3866
|
-
const { loadingDelay: t } =
|
|
3868
|
+
const qs = (e) => {
|
|
3869
|
+
if (e && Hs(e) && Wt(e)) {
|
|
3870
|
+
const { loadingDelay: t } = Qe();
|
|
3867
3871
|
let n;
|
|
3868
|
-
return typeof window < "u" &&
|
|
3869
|
-
() =>
|
|
3872
|
+
return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
|
|
3873
|
+
() => dn.set(!0),
|
|
3870
3874
|
t
|
|
3871
|
-
) :
|
|
3872
|
-
|
|
3875
|
+
) : dn.set(!0), Ai(e).then(() => {
|
|
3876
|
+
Vt.set(e);
|
|
3873
3877
|
}).finally(() => {
|
|
3874
|
-
clearTimeout(n),
|
|
3878
|
+
clearTimeout(n), dn.set(!1);
|
|
3875
3879
|
});
|
|
3876
3880
|
}
|
|
3877
|
-
return
|
|
3878
|
-
},
|
|
3879
|
-
set:
|
|
3880
|
-
}),
|
|
3881
|
+
return Vt.set(e);
|
|
3882
|
+
}, Be = Zs(Ys({}, Vt), {
|
|
3883
|
+
set: qs
|
|
3884
|
+
}), Qt = (e) => {
|
|
3881
3885
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3882
3886
|
return (r) => {
|
|
3883
3887
|
const i = JSON.stringify(r);
|
|
3884
3888
|
return i in t ? t[i] : t[i] = e(r);
|
|
3885
3889
|
};
|
|
3886
3890
|
};
|
|
3887
|
-
var
|
|
3891
|
+
var Js = Object.defineProperty, Xt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Rn = (e, t) => {
|
|
3888
3892
|
for (var n in t || (t = {}))
|
|
3889
3893
|
Oi.call(t, n) && Sr(e, n, t[n]);
|
|
3890
|
-
if (
|
|
3891
|
-
for (var n of
|
|
3894
|
+
if (Xt)
|
|
3895
|
+
for (var n of Xt(t))
|
|
3892
3896
|
Mi.call(t, n) && Sr(e, n, t[n]);
|
|
3893
3897
|
return e;
|
|
3894
|
-
},
|
|
3898
|
+
}, tt = (e, t) => {
|
|
3895
3899
|
var n = {};
|
|
3896
3900
|
for (var r in e)
|
|
3897
3901
|
Oi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3898
|
-
if (e != null &&
|
|
3899
|
-
for (var r of
|
|
3902
|
+
if (e != null && Xt)
|
|
3903
|
+
for (var r of Xt(e))
|
|
3900
3904
|
t.indexOf(r) < 0 && Mi.call(e, r) && (n[r] = e[r]);
|
|
3901
3905
|
return n;
|
|
3902
3906
|
};
|
|
3903
|
-
const
|
|
3904
|
-
const { formats: n } =
|
|
3907
|
+
const _t = (e, t) => {
|
|
3908
|
+
const { formats: n } = Qe();
|
|
3905
3909
|
if (e in n && t in n[e])
|
|
3906
3910
|
return n[e][t];
|
|
3907
3911
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3908
|
-
},
|
|
3912
|
+
}, Qs = Qt(
|
|
3909
3913
|
(e) => {
|
|
3910
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3914
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3911
3915
|
if (n == null)
|
|
3912
3916
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3913
|
-
return r && (i =
|
|
3917
|
+
return r && (i = _t("number", r)), new Intl.NumberFormat(n, i);
|
|
3914
3918
|
}
|
|
3915
|
-
),
|
|
3919
|
+
), Ks = Qt(
|
|
3916
3920
|
(e) => {
|
|
3917
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3921
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3918
3922
|
if (n == null)
|
|
3919
3923
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3920
|
-
return r ? i =
|
|
3924
|
+
return r ? i = _t("date", r) : Object.keys(i).length === 0 && (i = _t("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3921
3925
|
}
|
|
3922
|
-
),
|
|
3926
|
+
), ea = Qt(
|
|
3923
3927
|
(e) => {
|
|
3924
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3928
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3925
3929
|
if (n == null)
|
|
3926
3930
|
throw new Error(
|
|
3927
3931
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3928
3932
|
);
|
|
3929
|
-
return r ? i =
|
|
3933
|
+
return r ? i = _t("time", r) : Object.keys(i).length === 0 && (i = _t("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3930
3934
|
}
|
|
3931
|
-
),
|
|
3935
|
+
), ta = (e = {}) => {
|
|
3932
3936
|
var t = e, {
|
|
3933
|
-
locale: n =
|
|
3934
|
-
} = t, r =
|
|
3937
|
+
locale: n = Pe()
|
|
3938
|
+
} = t, r = tt(t, [
|
|
3935
3939
|
"locale"
|
|
3936
3940
|
]);
|
|
3937
|
-
return
|
|
3938
|
-
},
|
|
3941
|
+
return Qs(Rn({ locale: n }, r));
|
|
3942
|
+
}, na = (e = {}) => {
|
|
3939
3943
|
var t = e, {
|
|
3940
|
-
locale: n =
|
|
3941
|
-
} = t, r =
|
|
3944
|
+
locale: n = Pe()
|
|
3945
|
+
} = t, r = tt(t, [
|
|
3942
3946
|
"locale"
|
|
3943
3947
|
]);
|
|
3944
|
-
return
|
|
3945
|
-
},
|
|
3948
|
+
return Ks(Rn({ locale: n }, r));
|
|
3949
|
+
}, ra = (e = {}) => {
|
|
3946
3950
|
var t = e, {
|
|
3947
|
-
locale: n =
|
|
3948
|
-
} = t, r =
|
|
3951
|
+
locale: n = Pe()
|
|
3952
|
+
} = t, r = tt(t, [
|
|
3949
3953
|
"locale"
|
|
3950
3954
|
]);
|
|
3951
|
-
return
|
|
3952
|
-
},
|
|
3955
|
+
return ea(Rn({ locale: n }, r));
|
|
3956
|
+
}, ia = Qt(
|
|
3953
3957
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3954
|
-
(e, t =
|
|
3955
|
-
ignoreTag:
|
|
3958
|
+
(e, t = Pe()) => new xi(e, t, Qe().formats, {
|
|
3959
|
+
ignoreTag: Qe().ignoreTag
|
|
3956
3960
|
})
|
|
3957
|
-
),
|
|
3961
|
+
), oa = (e, t = {}) => {
|
|
3958
3962
|
var n, r, i, o;
|
|
3959
3963
|
let u = t;
|
|
3960
3964
|
typeof e == "object" && (u = e, e = u.id);
|
|
3961
3965
|
const {
|
|
3962
3966
|
values: a,
|
|
3963
|
-
locale: c =
|
|
3967
|
+
locale: c = Pe(),
|
|
3964
3968
|
default: l
|
|
3965
3969
|
} = u;
|
|
3966
3970
|
if (c == null)
|
|
3967
3971
|
throw new Error(
|
|
3968
3972
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3969
3973
|
);
|
|
3970
|
-
let f =
|
|
3974
|
+
let f = vi(e, c);
|
|
3971
3975
|
if (!f)
|
|
3972
|
-
f = (o = (i = (r = (n =
|
|
3976
|
+
f = (o = (i = (r = (n = Qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3973
3977
|
else if (typeof f != "string")
|
|
3974
3978
|
return console.warn(
|
|
3975
3979
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3978,7 +3982,7 @@ const gt = (e, t) => {
|
|
|
3978
3982
|
return f;
|
|
3979
3983
|
let _ = f;
|
|
3980
3984
|
try {
|
|
3981
|
-
_ =
|
|
3985
|
+
_ = ia(f, c).format(a);
|
|
3982
3986
|
} catch (y) {
|
|
3983
3987
|
y instanceof Error && console.warn(
|
|
3984
3988
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3986,18 +3990,18 @@ const gt = (e, t) => {
|
|
|
3986
3990
|
);
|
|
3987
3991
|
}
|
|
3988
3992
|
return _;
|
|
3989
|
-
},
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3993
|
+
}, sa = (e, t) => ra(t).format(e), aa = (e, t) => na(t).format(e), ua = (e, t) => ta(t).format(e), la = (e, t = Pe()) => vi(e, t), ca = et([Be, Et], () => oa);
|
|
3994
|
+
et([Be], () => sa);
|
|
3995
|
+
et([Be], () => aa);
|
|
3996
|
+
et([Be], () => ua);
|
|
3997
|
+
et([Be, Et], () => la);
|
|
3994
3998
|
function wr(e, t) {
|
|
3995
3999
|
Si(e, t);
|
|
3996
4000
|
}
|
|
3997
|
-
function
|
|
3998
|
-
|
|
4001
|
+
function fa(e) {
|
|
4002
|
+
Gs({
|
|
3999
4003
|
fallbackLocale: "en"
|
|
4000
|
-
}),
|
|
4004
|
+
}), Be.set(e);
|
|
4001
4005
|
}
|
|
4002
4006
|
const Ar = {
|
|
4003
4007
|
en: {
|
|
@@ -4026,17 +4030,17 @@ const Ar = {
|
|
|
4026
4030
|
const {
|
|
4027
4031
|
entries: Ci,
|
|
4028
4032
|
setPrototypeOf: Or,
|
|
4029
|
-
isFrozen:
|
|
4030
|
-
getPrototypeOf:
|
|
4031
|
-
getOwnPropertyDescriptor:
|
|
4033
|
+
isFrozen: ha,
|
|
4034
|
+
getPrototypeOf: ma,
|
|
4035
|
+
getOwnPropertyDescriptor: da
|
|
4032
4036
|
} = Object;
|
|
4033
4037
|
let {
|
|
4034
4038
|
freeze: fe,
|
|
4035
4039
|
seal: _e,
|
|
4036
4040
|
create: Li
|
|
4037
4041
|
} = Object, {
|
|
4038
|
-
apply:
|
|
4039
|
-
construct:
|
|
4042
|
+
apply: Cn,
|
|
4043
|
+
construct: Ln
|
|
4040
4044
|
} = typeof Reflect < "u" && Reflect;
|
|
4041
4045
|
fe || (fe = function(t) {
|
|
4042
4046
|
return t;
|
|
@@ -4044,107 +4048,98 @@ fe || (fe = function(t) {
|
|
|
4044
4048
|
_e || (_e = function(t) {
|
|
4045
4049
|
return t;
|
|
4046
4050
|
});
|
|
4047
|
-
|
|
4051
|
+
Cn || (Cn = function(t, n, r) {
|
|
4048
4052
|
return t.apply(n, r);
|
|
4049
4053
|
});
|
|
4050
|
-
|
|
4054
|
+
Ln || (Ln = function(t, n) {
|
|
4051
4055
|
return new t(...n);
|
|
4052
4056
|
});
|
|
4053
|
-
const
|
|
4057
|
+
const Ct = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), at = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), pn = pe(String.prototype.toString), Cr = pe(String.prototype.match), ut = pe(String.prototype.replace), pa = pe(String.prototype.indexOf), ga = pe(String.prototype.trim), xe = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), lt = _a(TypeError);
|
|
4054
4058
|
function pe(e) {
|
|
4055
4059
|
return function(t) {
|
|
4056
4060
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4057
4061
|
r[i - 1] = arguments[i];
|
|
4058
|
-
return
|
|
4062
|
+
return Cn(e, t, r);
|
|
4059
4063
|
};
|
|
4060
4064
|
}
|
|
4061
|
-
function
|
|
4065
|
+
function _a(e) {
|
|
4062
4066
|
return function() {
|
|
4063
4067
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4064
4068
|
n[r] = arguments[r];
|
|
4065
|
-
return
|
|
4069
|
+
return Ln(e, n);
|
|
4066
4070
|
};
|
|
4067
4071
|
}
|
|
4068
|
-
function
|
|
4069
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4072
|
+
function P(e, t) {
|
|
4073
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ut;
|
|
4070
4074
|
Or && Or(e, null);
|
|
4071
4075
|
let r = t.length;
|
|
4072
4076
|
for (; r--; ) {
|
|
4073
4077
|
let i = t[r];
|
|
4074
4078
|
if (typeof i == "string") {
|
|
4075
4079
|
const o = n(i);
|
|
4076
|
-
o !== i && (
|
|
4080
|
+
o !== i && (ha(t) || (t[r] = o), i = o);
|
|
4077
4081
|
}
|
|
4078
4082
|
e[i] = !0;
|
|
4079
4083
|
}
|
|
4080
4084
|
return e;
|
|
4081
4085
|
}
|
|
4082
|
-
function
|
|
4086
|
+
function ba(e) {
|
|
4083
4087
|
for (let t = 0; t < e.length; t++)
|
|
4084
4088
|
xe(e, t) || (e[t] = null);
|
|
4085
4089
|
return e;
|
|
4086
4090
|
}
|
|
4087
|
-
function
|
|
4091
|
+
function De(e) {
|
|
4088
4092
|
const t = Li(null);
|
|
4089
4093
|
for (const [n, r] of Ci(e))
|
|
4090
|
-
xe(e, n) && (Array.isArray(r) ? t[n] =
|
|
4094
|
+
xe(e, n) && (Array.isArray(r) ? t[n] = ba(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = De(r) : t[n] = r);
|
|
4091
4095
|
return t;
|
|
4092
4096
|
}
|
|
4093
|
-
function
|
|
4097
|
+
function ct(e, t) {
|
|
4094
4098
|
for (; e !== null; ) {
|
|
4095
|
-
const r =
|
|
4099
|
+
const r = da(e, t);
|
|
4096
4100
|
if (r) {
|
|
4097
4101
|
if (r.get)
|
|
4098
4102
|
return pe(r.get);
|
|
4099
4103
|
if (typeof r.value == "function")
|
|
4100
4104
|
return pe(r.value);
|
|
4101
4105
|
}
|
|
4102
|
-
e =
|
|
4106
|
+
e = ma(e);
|
|
4103
4107
|
}
|
|
4104
4108
|
function n() {
|
|
4105
4109
|
return null;
|
|
4106
4110
|
}
|
|
4107
4111
|
return n;
|
|
4108
4112
|
}
|
|
4109
|
-
const Lr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
4113
|
+
const Lr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _n = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ea = fe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), bn = fe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ya = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Nr = fe(["#text"]), Hr = fe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), En = fe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ir = fe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Lt = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xa = _e(/\{\{[\w\W]*|[\w\W]*\}\}/gm), va = _e(/<%[\w\W]*|[\w\W]*%>/gm), Ta = _e(/\${[\w\W]*}/gm), Sa = _e(/^data-[\-\w.\u00B7-\uFFFF]/), wa = _e(/^aria-[\-\w]+$/), Ni = _e(
|
|
4110
4114
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4111
4115
|
// eslint-disable-line no-useless-escape
|
|
4112
|
-
),
|
|
4116
|
+
), Aa = _e(/^(?:\w+script|data):/i), Oa = _e(
|
|
4113
4117
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4114
4118
|
// eslint-disable-line no-control-regex
|
|
4115
|
-
), Hi = _e(/^html$/i),
|
|
4116
|
-
var
|
|
4119
|
+
), Hi = _e(/^html$/i), Ma = _e(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4120
|
+
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4117
4121
|
__proto__: null,
|
|
4118
|
-
MUSTACHE_EXPR:
|
|
4119
|
-
ERB_EXPR:
|
|
4122
|
+
MUSTACHE_EXPR: xa,
|
|
4123
|
+
ERB_EXPR: va,
|
|
4120
4124
|
TMPLIT_EXPR: Ta,
|
|
4121
|
-
DATA_ATTR:
|
|
4122
|
-
ARIA_ATTR:
|
|
4125
|
+
DATA_ATTR: Sa,
|
|
4126
|
+
ARIA_ATTR: wa,
|
|
4123
4127
|
IS_ALLOWED_URI: Ni,
|
|
4124
|
-
IS_SCRIPT_OR_DATA:
|
|
4125
|
-
ATTR_WHITESPACE:
|
|
4128
|
+
IS_SCRIPT_OR_DATA: Aa,
|
|
4129
|
+
ATTR_WHITESPACE: Oa,
|
|
4126
4130
|
DOCTYPE_NAME: Hi,
|
|
4127
|
-
CUSTOM_ELEMENT:
|
|
4131
|
+
CUSTOM_ELEMENT: Ma
|
|
4128
4132
|
});
|
|
4129
|
-
const
|
|
4133
|
+
const ft = {
|
|
4130
4134
|
element: 1,
|
|
4131
|
-
attribute: 2,
|
|
4132
4135
|
text: 3,
|
|
4133
|
-
cdataSection: 4,
|
|
4134
|
-
entityReference: 5,
|
|
4135
|
-
// Deprecated
|
|
4136
|
-
entityNode: 6,
|
|
4137
4136
|
// Deprecated
|
|
4138
4137
|
progressingInstruction: 7,
|
|
4139
4138
|
comment: 8,
|
|
4140
|
-
document: 9
|
|
4141
|
-
|
|
4142
|
-
documentFragment: 11,
|
|
4143
|
-
notation: 12
|
|
4144
|
-
// Deprecated
|
|
4145
|
-
}, Ma = function() {
|
|
4139
|
+
document: 9
|
|
4140
|
+
}, Ca = function() {
|
|
4146
4141
|
return typeof window > "u" ? null : window;
|
|
4147
|
-
},
|
|
4142
|
+
}, La = function(t, n) {
|
|
4148
4143
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4149
4144
|
return null;
|
|
4150
4145
|
let r = null;
|
|
@@ -4165,9 +4160,9 @@ const ct = {
|
|
|
4165
4160
|
}
|
|
4166
4161
|
};
|
|
4167
4162
|
function Ii() {
|
|
4168
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4163
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
4169
4164
|
const t = (A) => Ii(A);
|
|
4170
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4165
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ft.document)
|
|
4171
4166
|
return t.isSupported = !1, t;
|
|
4172
4167
|
let {
|
|
4173
4168
|
document: n
|
|
@@ -4182,38 +4177,38 @@ function Ii() {
|
|
|
4182
4177
|
HTMLFormElement: _,
|
|
4183
4178
|
DOMParser: y,
|
|
4184
4179
|
trustedTypes: M
|
|
4185
|
-
} = e, b = c.prototype, d =
|
|
4180
|
+
} = e, b = c.prototype, d = ct(b, "cloneNode"), C = ct(b, "remove"), F = ct(b, "nextSibling"), $ = ct(b, "childNodes"), w = ct(b, "parentNode");
|
|
4186
4181
|
if (typeof u == "function") {
|
|
4187
4182
|
const A = n.createElement("template");
|
|
4188
4183
|
A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
|
|
4189
4184
|
}
|
|
4190
|
-
let H,
|
|
4185
|
+
let H, R = "";
|
|
4191
4186
|
const {
|
|
4192
|
-
implementation:
|
|
4193
|
-
createNodeIterator:
|
|
4194
|
-
createDocumentFragment:
|
|
4187
|
+
implementation: U,
|
|
4188
|
+
createNodeIterator: Y,
|
|
4189
|
+
createDocumentFragment: V,
|
|
4195
4190
|
getElementsByTagName: Q
|
|
4196
4191
|
} = n, {
|
|
4197
|
-
importNode:
|
|
4192
|
+
importNode: G
|
|
4198
4193
|
} = r;
|
|
4199
4194
|
let O = {};
|
|
4200
|
-
t.isSupported = typeof Ci == "function" && typeof w == "function" &&
|
|
4195
|
+
t.isSupported = typeof Ci == "function" && typeof w == "function" && U && U.createHTMLDocument !== void 0;
|
|
4201
4196
|
const {
|
|
4202
4197
|
MUSTACHE_EXPR: te,
|
|
4203
4198
|
ERB_EXPR: he,
|
|
4204
|
-
TMPLIT_EXPR:
|
|
4199
|
+
TMPLIT_EXPR: T,
|
|
4205
4200
|
DATA_ATTR: E,
|
|
4206
4201
|
ARIA_ATTR: g,
|
|
4207
|
-
IS_SCRIPT_OR_DATA:
|
|
4202
|
+
IS_SCRIPT_OR_DATA: v,
|
|
4208
4203
|
ATTR_WHITESPACE: h,
|
|
4209
4204
|
CUSTOM_ELEMENT: x
|
|
4210
|
-
} =
|
|
4205
|
+
} = Pr;
|
|
4211
4206
|
let {
|
|
4212
4207
|
IS_ALLOWED_URI: L
|
|
4213
|
-
} =
|
|
4214
|
-
const
|
|
4208
|
+
} = Pr, N = null;
|
|
4209
|
+
const j = P({}, [...Lr, ...gn, ..._n, ...bn, ...Nr]);
|
|
4215
4210
|
let I = null;
|
|
4216
|
-
const q =
|
|
4211
|
+
const q = P({}, [...Hr, ...En, ...Ir, ...Lt]);
|
|
4217
4212
|
let m = Object.seal(Li(null, {
|
|
4218
4213
|
tagNameCheck: {
|
|
4219
4214
|
writable: !0,
|
|
@@ -4233,59 +4228,59 @@ function Ii() {
|
|
|
4233
4228
|
enumerable: !0,
|
|
4234
4229
|
value: !1
|
|
4235
4230
|
}
|
|
4236
|
-
})),
|
|
4231
|
+
})), k = null, ee = null, K = !0, Ee = !0, ie = !1, ye = !0, ge = !1, Le = !0, Re = !1, Kt = !1, en = !1, $e = !1, xt = !1, vt = !1, Dn = !0, Bn = !1;
|
|
4237
4232
|
const Di = "user-content-";
|
|
4238
|
-
let
|
|
4239
|
-
const $n =
|
|
4233
|
+
let tn = !0, nt = !1, Ue = {}, ke = null;
|
|
4234
|
+
const $n = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4240
4235
|
let Un = null;
|
|
4241
|
-
const kn =
|
|
4242
|
-
let
|
|
4243
|
-
const Fn =
|
|
4244
|
-
let
|
|
4245
|
-
const Bi =
|
|
4246
|
-
let
|
|
4236
|
+
const kn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4237
|
+
let nn = null;
|
|
4238
|
+
const Fn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Tt = "http://www.w3.org/1998/Math/MathML", St = "http://www.w3.org/2000/svg", Ae = "http://www.w3.org/1999/xhtml";
|
|
4239
|
+
let Fe = Ae, rn = !1, on = null;
|
|
4240
|
+
const Bi = P({}, [Tt, St, Ae], pn);
|
|
4241
|
+
let rt = null;
|
|
4247
4242
|
const $i = ["application/xhtml+xml", "text/html"], Ui = "text/html";
|
|
4248
|
-
let ne = null,
|
|
4243
|
+
let ne = null, Ge = null;
|
|
4249
4244
|
const ki = n.createElement("form"), Gn = function(s) {
|
|
4250
4245
|
return s instanceof RegExp || s instanceof Function;
|
|
4251
|
-
},
|
|
4246
|
+
}, sn = function() {
|
|
4252
4247
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4253
|
-
if (!(
|
|
4254
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4255
|
-
$i.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ui : s.PARSER_MEDIA_TYPE, ne =
|
|
4256
|
-
|
|
4248
|
+
if (!(Ge && Ge === s)) {
|
|
4249
|
+
if ((!s || typeof s != "object") && (s = {}), s = De(s), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4250
|
+
$i.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ui : s.PARSER_MEDIA_TYPE, ne = rt === "application/xhtml+xml" ? pn : Ut, N = xe(s, "ALLOWED_TAGS") ? P({}, s.ALLOWED_TAGS, ne) : j, I = xe(s, "ALLOWED_ATTR") ? P({}, s.ALLOWED_ATTR, ne) : q, on = xe(s, "ALLOWED_NAMESPACES") ? P({}, s.ALLOWED_NAMESPACES, pn) : Bi, nn = xe(s, "ADD_URI_SAFE_ATTR") ? P(
|
|
4251
|
+
De(Fn),
|
|
4257
4252
|
// eslint-disable-line indent
|
|
4258
4253
|
s.ADD_URI_SAFE_ATTR,
|
|
4259
4254
|
// eslint-disable-line indent
|
|
4260
4255
|
ne
|
|
4261
4256
|
// eslint-disable-line indent
|
|
4262
|
-
) : Fn, Un = xe(s, "ADD_DATA_URI_TAGS") ?
|
|
4263
|
-
|
|
4257
|
+
) : Fn, Un = xe(s, "ADD_DATA_URI_TAGS") ? P(
|
|
4258
|
+
De(kn),
|
|
4264
4259
|
// eslint-disable-line indent
|
|
4265
4260
|
s.ADD_DATA_URI_TAGS,
|
|
4266
4261
|
// eslint-disable-line indent
|
|
4267
4262
|
ne
|
|
4268
4263
|
// eslint-disable-line indent
|
|
4269
|
-
) : kn,
|
|
4264
|
+
) : kn, ke = xe(s, "FORBID_CONTENTS") ? P({}, s.FORBID_CONTENTS, ne) : $n, k = xe(s, "FORBID_TAGS") ? P({}, s.FORBID_TAGS, ne) : {}, ee = xe(s, "FORBID_ATTR") ? P({}, s.FORBID_ATTR, ne) : {}, Ue = xe(s, "USE_PROFILES") ? s.USE_PROFILES : !1, K = s.ALLOW_ARIA_ATTR !== !1, Ee = s.ALLOW_DATA_ATTR !== !1, ie = s.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ge = s.SAFE_FOR_TEMPLATES || !1, Le = s.SAFE_FOR_XML !== !1, Re = s.WHOLE_DOCUMENT || !1, $e = s.RETURN_DOM || !1, xt = s.RETURN_DOM_FRAGMENT || !1, vt = s.RETURN_TRUSTED_TYPE || !1, en = s.FORCE_BODY || !1, Dn = s.SANITIZE_DOM !== !1, Bn = s.SANITIZE_NAMED_PROPS || !1, tn = s.KEEP_CONTENT !== !1, nt = s.IN_PLACE || !1, L = s.ALLOWED_URI_REGEXP || Ni, Fe = s.NAMESPACE || Ae, m = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ge && (Ee = !1), xt && ($e = !0), Ue && (N = P({}, Nr), I = [], Ue.html === !0 && (P(N, Lr), P(I, Hr)), Ue.svg === !0 && (P(N, gn), P(I, En), P(I, Lt)), Ue.svgFilters === !0 && (P(N, _n), P(I, En), P(I, Lt)), Ue.mathMl === !0 && (P(N, bn), P(I, Ir), P(I, Lt))), s.ADD_TAGS && (N === j && (N = De(N)), P(N, s.ADD_TAGS, ne)), s.ADD_ATTR && (I === q && (I = De(I)), P(I, s.ADD_ATTR, ne)), s.ADD_URI_SAFE_ATTR && P(nn, s.ADD_URI_SAFE_ATTR, ne), s.FORBID_CONTENTS && (ke === $n && (ke = De(ke)), P(ke, s.FORBID_CONTENTS, ne)), tn && (N["#text"] = !0), Re && P(N, ["html", "head", "body"]), N.table && (P(N, ["tbody"]), delete k.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4270
4265
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4271
|
-
throw
|
|
4266
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4272
4267
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4273
|
-
throw
|
|
4274
|
-
H = s.TRUSTED_TYPES_POLICY,
|
|
4268
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4269
|
+
H = s.TRUSTED_TYPES_POLICY, R = H.createHTML("");
|
|
4275
4270
|
} else
|
|
4276
|
-
H === void 0 && (H =
|
|
4277
|
-
fe && fe(s),
|
|
4271
|
+
H === void 0 && (H = La(M, i)), H !== null && typeof R == "string" && (R = H.createHTML(""));
|
|
4272
|
+
fe && fe(s), Ge = s;
|
|
4278
4273
|
}
|
|
4279
|
-
}, jn =
|
|
4274
|
+
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), Fi = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...gn, ..._n, ...Ea]), Vn = P({}, [...bn, ...ya]), Gi = function(s) {
|
|
4280
4275
|
let p = w(s);
|
|
4281
4276
|
(!p || !p.tagName) && (p = {
|
|
4282
|
-
namespaceURI:
|
|
4277
|
+
namespaceURI: Fe,
|
|
4283
4278
|
tagName: "template"
|
|
4284
4279
|
});
|
|
4285
|
-
const S =
|
|
4286
|
-
return
|
|
4287
|
-
},
|
|
4288
|
-
|
|
4280
|
+
const S = Ut(s.tagName), z = Ut(p.tagName);
|
|
4281
|
+
return on[s.namespaceURI] ? s.namespaceURI === St ? p.namespaceURI === Ae ? S === "svg" : p.namespaceURI === Tt ? S === "svg" && (z === "annotation-xml" || jn[z]) : !!Wn[S] : s.namespaceURI === Tt ? p.namespaceURI === Ae ? S === "math" : p.namespaceURI === St ? S === "math" && zn[z] : !!Vn[S] : s.namespaceURI === Ae ? p.namespaceURI === St && !zn[z] || p.namespaceURI === Tt && !jn[z] ? !1 : !Vn[S] && (Fi[S] || !Wn[S]) : !!(rt === "application/xhtml+xml" && on[s.namespaceURI]) : !1;
|
|
4282
|
+
}, ve = function(s) {
|
|
4283
|
+
at(t.removed, {
|
|
4289
4284
|
element: s
|
|
4290
4285
|
});
|
|
4291
4286
|
try {
|
|
@@ -4293,22 +4288,22 @@ function Ii() {
|
|
|
4293
4288
|
} catch {
|
|
4294
4289
|
C(s);
|
|
4295
4290
|
}
|
|
4296
|
-
},
|
|
4291
|
+
}, wt = function(s, p) {
|
|
4297
4292
|
try {
|
|
4298
|
-
|
|
4293
|
+
at(t.removed, {
|
|
4299
4294
|
attribute: p.getAttributeNode(s),
|
|
4300
4295
|
from: p
|
|
4301
4296
|
});
|
|
4302
4297
|
} catch {
|
|
4303
|
-
|
|
4298
|
+
at(t.removed, {
|
|
4304
4299
|
attribute: null,
|
|
4305
4300
|
from: p
|
|
4306
4301
|
});
|
|
4307
4302
|
}
|
|
4308
4303
|
if (p.removeAttribute(s), s === "is" && !I[s])
|
|
4309
|
-
if (
|
|
4304
|
+
if ($e || xt)
|
|
4310
4305
|
try {
|
|
4311
|
-
|
|
4306
|
+
ve(p);
|
|
4312
4307
|
} catch {
|
|
4313
4308
|
}
|
|
4314
4309
|
else
|
|
@@ -4318,30 +4313,30 @@ function Ii() {
|
|
|
4318
4313
|
}
|
|
4319
4314
|
}, Xn = function(s) {
|
|
4320
4315
|
let p = null, S = null;
|
|
4321
|
-
if (
|
|
4316
|
+
if (en)
|
|
4322
4317
|
s = "<remove></remove>" + s;
|
|
4323
4318
|
else {
|
|
4324
4319
|
const oe = Cr(s, /^[\r\n\t ]+/);
|
|
4325
4320
|
S = oe && oe[0];
|
|
4326
4321
|
}
|
|
4327
|
-
|
|
4328
|
-
const
|
|
4329
|
-
if (
|
|
4322
|
+
rt === "application/xhtml+xml" && Fe === Ae && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4323
|
+
const z = H ? H.createHTML(s) : s;
|
|
4324
|
+
if (Fe === Ae)
|
|
4330
4325
|
try {
|
|
4331
|
-
p = new y().parseFromString(
|
|
4326
|
+
p = new y().parseFromString(z, rt);
|
|
4332
4327
|
} catch {
|
|
4333
4328
|
}
|
|
4334
4329
|
if (!p || !p.documentElement) {
|
|
4335
|
-
p =
|
|
4330
|
+
p = U.createDocument(Fe, "template", null);
|
|
4336
4331
|
try {
|
|
4337
|
-
p.documentElement.innerHTML =
|
|
4332
|
+
p.documentElement.innerHTML = rn ? R : z;
|
|
4338
4333
|
} catch {
|
|
4339
4334
|
}
|
|
4340
4335
|
}
|
|
4341
4336
|
const se = p.body || p.documentElement;
|
|
4342
|
-
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null),
|
|
4337
|
+
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null), Fe === Ae ? Q.call(p, Re ? "html" : "body")[0] : Re ? p.documentElement : se;
|
|
4343
4338
|
}, Yn = function(s) {
|
|
4344
|
-
return
|
|
4339
|
+
return Y.call(
|
|
4345
4340
|
s.ownerDocument || s,
|
|
4346
4341
|
s,
|
|
4347
4342
|
// eslint-disable-next-line no-bitwise
|
|
@@ -4352,40 +4347,40 @@ function Ii() {
|
|
|
4352
4347
|
return s instanceof _ && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4353
4348
|
}, qn = function(s) {
|
|
4354
4349
|
return typeof a == "function" && s instanceof a;
|
|
4355
|
-
},
|
|
4356
|
-
O[s] &&
|
|
4357
|
-
|
|
4350
|
+
}, Oe = function(s, p, S) {
|
|
4351
|
+
O[s] && Ct(O[s], (z) => {
|
|
4352
|
+
z.call(t, p, S, Ge);
|
|
4358
4353
|
});
|
|
4359
4354
|
}, Jn = function(s) {
|
|
4360
4355
|
let p = null;
|
|
4361
|
-
if (
|
|
4362
|
-
return
|
|
4356
|
+
if (Oe("beforeSanitizeElements", s, null), Zn(s))
|
|
4357
|
+
return ve(s), !0;
|
|
4363
4358
|
const S = ne(s.nodeName);
|
|
4364
|
-
if (
|
|
4359
|
+
if (Oe("uponSanitizeElement", s, {
|
|
4365
4360
|
tagName: S,
|
|
4366
4361
|
allowedTags: N
|
|
4367
|
-
}), s.hasChildNodes() && !qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType ===
|
|
4368
|
-
return
|
|
4369
|
-
if (!N[S] ||
|
|
4370
|
-
if (!
|
|
4362
|
+
}), s.hasChildNodes() && !qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType === ft.progressingInstruction || Le && s.nodeType === ft.comment && ue(/<[/\w]/g, s.data))
|
|
4363
|
+
return ve(s), !0;
|
|
4364
|
+
if (!N[S] || k[S]) {
|
|
4365
|
+
if (!k[S] && Kn(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4371
4366
|
return !1;
|
|
4372
|
-
if (
|
|
4373
|
-
const
|
|
4374
|
-
if (se &&
|
|
4367
|
+
if (tn && !ke[S]) {
|
|
4368
|
+
const z = w(s) || s.parentNode, se = $(s) || s.childNodes;
|
|
4369
|
+
if (se && z) {
|
|
4375
4370
|
const oe = se.length;
|
|
4376
4371
|
for (let me = oe - 1; me >= 0; --me) {
|
|
4377
|
-
const
|
|
4378
|
-
|
|
4372
|
+
const Te = d(se[me], !0);
|
|
4373
|
+
Te.__removalCount = (s.__removalCount || 0) + 1, z.insertBefore(Te, F(s));
|
|
4379
4374
|
}
|
|
4380
4375
|
}
|
|
4381
4376
|
}
|
|
4382
|
-
return
|
|
4377
|
+
return ve(s), !0;
|
|
4383
4378
|
}
|
|
4384
|
-
return s instanceof c && !Gi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (
|
|
4385
|
-
p =
|
|
4386
|
-
}), s.textContent !== p && (
|
|
4379
|
+
return s instanceof c && !Gi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (ve(s), !0) : (ge && s.nodeType === ft.text && (p = s.textContent, Ct([te, he, T], (z) => {
|
|
4380
|
+
p = ut(p, z, " ");
|
|
4381
|
+
}), s.textContent !== p && (at(t.removed, {
|
|
4387
4382
|
element: s.cloneNode()
|
|
4388
|
-
}), s.textContent = p)),
|
|
4383
|
+
}), s.textContent = p)), Oe("afterSanitizeElements", s, null), !1);
|
|
4389
4384
|
}, Qn = function(s, p, S) {
|
|
4390
4385
|
if (Dn && (p === "id" || p === "name") && (S in n || S in ki))
|
|
4391
4386
|
return !1;
|
|
@@ -4401,10 +4396,10 @@ function Ii() {
|
|
|
4401
4396
|
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4402
4397
|
)
|
|
4403
4398
|
return !1;
|
|
4404
|
-
} else if (!
|
|
4405
|
-
if (!ue(L,
|
|
4406
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" &&
|
|
4407
|
-
if (!(ie && !ue(
|
|
4399
|
+
} else if (!nn[p]) {
|
|
4400
|
+
if (!ue(L, ut(S, h, ""))) {
|
|
4401
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && pa(S, "data:") === 0 && Un[s])) {
|
|
4402
|
+
if (!(ie && !ue(v, ut(S, h, "")))) {
|
|
4408
4403
|
if (S)
|
|
4409
4404
|
return !1;
|
|
4410
4405
|
}
|
|
@@ -4417,7 +4412,7 @@ function Ii() {
|
|
|
4417
4412
|
}, Kn = function(s) {
|
|
4418
4413
|
return s !== "annotation-xml" && Cr(s, x);
|
|
4419
4414
|
}, er = function(s) {
|
|
4420
|
-
|
|
4415
|
+
Oe("beforeSanitizeAttributes", s, null);
|
|
4421
4416
|
const {
|
|
4422
4417
|
attributes: p
|
|
4423
4418
|
} = s;
|
|
@@ -4429,31 +4424,31 @@ function Ii() {
|
|
|
4429
4424
|
keepAttr: !0,
|
|
4430
4425
|
allowedAttributes: I
|
|
4431
4426
|
};
|
|
4432
|
-
let
|
|
4433
|
-
for (;
|
|
4434
|
-
const se = p[
|
|
4427
|
+
let z = p.length;
|
|
4428
|
+
for (; z--; ) {
|
|
4429
|
+
const se = p[z], {
|
|
4435
4430
|
name: oe,
|
|
4436
4431
|
namespaceURI: me,
|
|
4437
|
-
value:
|
|
4438
|
-
} = se,
|
|
4439
|
-
let ae = oe === "value" ?
|
|
4440
|
-
if (S.attrName =
|
|
4441
|
-
|
|
4432
|
+
value: Te
|
|
4433
|
+
} = se, it = ne(oe);
|
|
4434
|
+
let ae = oe === "value" ? Te : ga(Te);
|
|
4435
|
+
if (S.attrName = it, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", s, S), ae = S.attrValue, Le && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4436
|
+
wt(oe, s);
|
|
4442
4437
|
continue;
|
|
4443
4438
|
}
|
|
4444
|
-
if (S.forceKeepAttr || (
|
|
4439
|
+
if (S.forceKeepAttr || (wt(oe, s), !S.keepAttr))
|
|
4445
4440
|
continue;
|
|
4446
4441
|
if (!ye && ue(/\/>/i, ae)) {
|
|
4447
|
-
|
|
4442
|
+
wt(oe, s);
|
|
4448
4443
|
continue;
|
|
4449
4444
|
}
|
|
4450
|
-
ge &&
|
|
4451
|
-
ae =
|
|
4445
|
+
ge && Ct([te, he, T], (nr) => {
|
|
4446
|
+
ae = ut(ae, nr, " ");
|
|
4452
4447
|
});
|
|
4453
4448
|
const tr = ne(s.nodeName);
|
|
4454
|
-
if (Qn(tr,
|
|
4455
|
-
if (Bn && (
|
|
4456
|
-
switch (M.getAttributeType(tr,
|
|
4449
|
+
if (Qn(tr, it, ae)) {
|
|
4450
|
+
if (Bn && (it === "id" || it === "name") && (wt(oe, s), ae = Di + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4451
|
+
switch (M.getAttributeType(tr, it)) {
|
|
4457
4452
|
case "TrustedHTML": {
|
|
4458
4453
|
ae = H.createHTML(ae);
|
|
4459
4454
|
break;
|
|
@@ -4464,74 +4459,74 @@ function Ii() {
|
|
|
4464
4459
|
}
|
|
4465
4460
|
}
|
|
4466
4461
|
try {
|
|
4467
|
-
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Zn(s) ?
|
|
4462
|
+
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Zn(s) ? ve(s) : Mr(t.removed);
|
|
4468
4463
|
} catch {
|
|
4469
4464
|
}
|
|
4470
4465
|
}
|
|
4471
4466
|
}
|
|
4472
|
-
|
|
4467
|
+
Oe("afterSanitizeAttributes", s, null);
|
|
4473
4468
|
}, ji = function A(s) {
|
|
4474
4469
|
let p = null;
|
|
4475
4470
|
const S = Yn(s);
|
|
4476
|
-
for (
|
|
4477
|
-
|
|
4478
|
-
|
|
4471
|
+
for (Oe("beforeSanitizeShadowDOM", s, null); p = S.nextNode(); )
|
|
4472
|
+
Oe("uponSanitizeShadowNode", p, null), !Jn(p) && (p.content instanceof o && A(p.content), er(p));
|
|
4473
|
+
Oe("afterSanitizeShadowDOM", s, null);
|
|
4479
4474
|
};
|
|
4480
4475
|
return t.sanitize = function(A) {
|
|
4481
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null,
|
|
4482
|
-
if (
|
|
4476
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, z = null, se = null;
|
|
4477
|
+
if (rn = !A, rn && (A = "<!-->"), typeof A != "string" && !qn(A))
|
|
4483
4478
|
if (typeof A.toString == "function") {
|
|
4484
4479
|
if (A = A.toString(), typeof A != "string")
|
|
4485
|
-
throw
|
|
4480
|
+
throw lt("dirty is not a string, aborting");
|
|
4486
4481
|
} else
|
|
4487
|
-
throw
|
|
4482
|
+
throw lt("toString is not a function");
|
|
4488
4483
|
if (!t.isSupported)
|
|
4489
4484
|
return A;
|
|
4490
|
-
if (
|
|
4485
|
+
if (Kt || sn(s), t.removed = [], typeof A == "string" && (nt = !1), nt) {
|
|
4491
4486
|
if (A.nodeName) {
|
|
4492
|
-
const
|
|
4493
|
-
if (!N[
|
|
4494
|
-
throw
|
|
4487
|
+
const Te = ne(A.nodeName);
|
|
4488
|
+
if (!N[Te] || k[Te])
|
|
4489
|
+
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4495
4490
|
}
|
|
4496
4491
|
} else if (A instanceof a)
|
|
4497
|
-
p = Xn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType ===
|
|
4492
|
+
p = Xn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType === ft.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4498
4493
|
else {
|
|
4499
|
-
if (
|
|
4494
|
+
if (!$e && !ge && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4500
4495
|
A.indexOf("<") === -1)
|
|
4501
|
-
return H &&
|
|
4496
|
+
return H && vt ? H.createHTML(A) : A;
|
|
4502
4497
|
if (p = Xn(A), !p)
|
|
4503
|
-
return
|
|
4498
|
+
return $e ? null : vt ? R : "";
|
|
4504
4499
|
}
|
|
4505
|
-
p &&
|
|
4506
|
-
const oe = Yn(
|
|
4507
|
-
for (;
|
|
4508
|
-
Jn(
|
|
4509
|
-
if (
|
|
4500
|
+
p && en && ve(p.firstChild);
|
|
4501
|
+
const oe = Yn(nt ? A : p);
|
|
4502
|
+
for (; z = oe.nextNode(); )
|
|
4503
|
+
Jn(z) || (z.content instanceof o && ji(z.content), er(z));
|
|
4504
|
+
if (nt)
|
|
4510
4505
|
return A;
|
|
4511
|
-
if (
|
|
4512
|
-
if (
|
|
4513
|
-
for (se =
|
|
4506
|
+
if ($e) {
|
|
4507
|
+
if (xt)
|
|
4508
|
+
for (se = V.call(p.ownerDocument); p.firstChild; )
|
|
4514
4509
|
se.appendChild(p.firstChild);
|
|
4515
4510
|
else
|
|
4516
4511
|
se = p;
|
|
4517
|
-
return (I.shadowroot || I.shadowrootmode) && (se =
|
|
4512
|
+
return (I.shadowroot || I.shadowrootmode) && (se = G.call(r, se, !0)), se;
|
|
4518
4513
|
}
|
|
4519
4514
|
let me = Re ? p.outerHTML : p.innerHTML;
|
|
4520
4515
|
return Re && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(Hi, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4521
|
-
` + me), ge &&
|
|
4522
|
-
me =
|
|
4523
|
-
}), H &&
|
|
4516
|
+
` + me), ge && Ct([te, he, T], (Te) => {
|
|
4517
|
+
me = ut(me, Te, " ");
|
|
4518
|
+
}), H && vt ? H.createHTML(me) : me;
|
|
4524
4519
|
}, t.setConfig = function() {
|
|
4525
4520
|
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4526
|
-
|
|
4521
|
+
sn(A), Kt = !0;
|
|
4527
4522
|
}, t.clearConfig = function() {
|
|
4528
|
-
|
|
4523
|
+
Ge = null, Kt = !1;
|
|
4529
4524
|
}, t.isValidAttribute = function(A, s, p) {
|
|
4530
|
-
|
|
4531
|
-
const S = ne(A),
|
|
4532
|
-
return Qn(S,
|
|
4525
|
+
Ge || sn({});
|
|
4526
|
+
const S = ne(A), z = ne(s);
|
|
4527
|
+
return Qn(S, z, p);
|
|
4533
4528
|
}, t.addHook = function(A, s) {
|
|
4534
|
-
typeof s == "function" && (O[A] = O[A] || [],
|
|
4529
|
+
typeof s == "function" && (O[A] = O[A] || [], at(O[A], s));
|
|
4535
4530
|
}, t.removeHook = function(A) {
|
|
4536
4531
|
if (O[A])
|
|
4537
4532
|
return Mr(O[A]);
|
|
@@ -4541,67 +4536,67 @@ function Ii() {
|
|
|
4541
4536
|
O = {};
|
|
4542
4537
|
}, t;
|
|
4543
4538
|
}
|
|
4544
|
-
var
|
|
4539
|
+
var Rr = Ii(), Pi = { exports: {} };
|
|
4545
4540
|
(function(e, t) {
|
|
4546
4541
|
(function(n, r) {
|
|
4547
4542
|
e.exports = r();
|
|
4548
4543
|
})(ri, function() {
|
|
4549
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", u = "second", a = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
4550
|
-
var E = ["th", "st", "nd", "rd"], g =
|
|
4551
|
-
return "[" +
|
|
4552
|
-
} }, w = function(
|
|
4553
|
-
var
|
|
4554
|
-
return !
|
|
4555
|
-
}, H = { s: w, z: function(
|
|
4556
|
-
var E = -
|
|
4557
|
-
return (E <= 0 ? "+" : "-") + w(
|
|
4558
|
-
}, m: function
|
|
4544
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", u = "second", a = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { 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(T) {
|
|
4545
|
+
var E = ["th", "st", "nd", "rd"], g = T % 100;
|
|
4546
|
+
return "[" + T + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4547
|
+
} }, w = function(T, E, g) {
|
|
4548
|
+
var v = String(T);
|
|
4549
|
+
return !v || v.length >= E ? T : "" + Array(E + 1 - v.length).join(g) + T;
|
|
4550
|
+
}, H = { s: w, z: function(T) {
|
|
4551
|
+
var E = -T.utcOffset(), g = Math.abs(E), v = Math.floor(g / 60), h = g % 60;
|
|
4552
|
+
return (E <= 0 ? "+" : "-") + w(v, 2, "0") + ":" + w(h, 2, "0");
|
|
4553
|
+
}, m: function T(E, g) {
|
|
4559
4554
|
if (E.date() < g.date())
|
|
4560
|
-
return -
|
|
4561
|
-
var
|
|
4562
|
-
return +(-(
|
|
4563
|
-
}, a: function(
|
|
4564
|
-
return
|
|
4565
|
-
}, p: function(
|
|
4566
|
-
return { M: _, y: M, w: f, d: l, D: b, h: c, m: a, s: u, ms: o, Q: y }[
|
|
4567
|
-
}, u: function(
|
|
4568
|
-
return
|
|
4569
|
-
} },
|
|
4570
|
-
|
|
4571
|
-
var
|
|
4572
|
-
return
|
|
4573
|
-
}, Q = function
|
|
4555
|
+
return -T(g, E);
|
|
4556
|
+
var v = 12 * (g.year() - E.year()) + (g.month() - E.month()), h = E.clone().add(v, _), x = g - h < 0, L = E.clone().add(v + (x ? -1 : 1), _);
|
|
4557
|
+
return +(-(v + (g - h) / (x ? h - L : L - h)) || 0);
|
|
4558
|
+
}, a: function(T) {
|
|
4559
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
4560
|
+
}, p: function(T) {
|
|
4561
|
+
return { M: _, y: M, w: f, d: l, D: b, h: c, m: a, s: u, ms: o, Q: y }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4562
|
+
}, u: function(T) {
|
|
4563
|
+
return T === void 0;
|
|
4564
|
+
} }, R = "en", U = {};
|
|
4565
|
+
U[R] = $;
|
|
4566
|
+
var Y = "$isDayjsObject", V = function(T) {
|
|
4567
|
+
return T instanceof te || !(!T || !T[Y]);
|
|
4568
|
+
}, Q = function T(E, g, v) {
|
|
4574
4569
|
var h;
|
|
4575
4570
|
if (!E)
|
|
4576
|
-
return
|
|
4571
|
+
return R;
|
|
4577
4572
|
if (typeof E == "string") {
|
|
4578
4573
|
var x = E.toLowerCase();
|
|
4579
|
-
|
|
4574
|
+
U[x] && (h = x), g && (U[x] = g, h = x);
|
|
4580
4575
|
var L = E.split("-");
|
|
4581
4576
|
if (!h && L.length > 1)
|
|
4582
|
-
return
|
|
4577
|
+
return T(L[0]);
|
|
4583
4578
|
} else {
|
|
4584
4579
|
var N = E.name;
|
|
4585
|
-
|
|
4580
|
+
U[N] = E, h = N;
|
|
4586
4581
|
}
|
|
4587
|
-
return !
|
|
4588
|
-
},
|
|
4589
|
-
if (
|
|
4590
|
-
return
|
|
4582
|
+
return !v && h && (R = h), h || !v && R;
|
|
4583
|
+
}, G = function(T, E) {
|
|
4584
|
+
if (V(T))
|
|
4585
|
+
return T.clone();
|
|
4591
4586
|
var g = typeof E == "object" ? E : {};
|
|
4592
|
-
return g.date =
|
|
4587
|
+
return g.date = T, g.args = arguments, new te(g);
|
|
4593
4588
|
}, O = H;
|
|
4594
|
-
O.l = Q, O.i =
|
|
4595
|
-
return
|
|
4589
|
+
O.l = Q, O.i = V, O.w = function(T, E) {
|
|
4590
|
+
return G(T, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4596
4591
|
};
|
|
4597
4592
|
var te = function() {
|
|
4598
|
-
function
|
|
4599
|
-
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[
|
|
4593
|
+
function T(g) {
|
|
4594
|
+
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Y] = !0;
|
|
4600
4595
|
}
|
|
4601
|
-
var E =
|
|
4596
|
+
var E = T.prototype;
|
|
4602
4597
|
return E.parse = function(g) {
|
|
4603
|
-
this.$d = function(
|
|
4604
|
-
var h =
|
|
4598
|
+
this.$d = function(v) {
|
|
4599
|
+
var h = v.date, x = v.utc;
|
|
4605
4600
|
if (h === null)
|
|
4606
4601
|
return /* @__PURE__ */ new Date(NaN);
|
|
4607
4602
|
if (O.u(h))
|
|
@@ -4611,8 +4606,8 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4611
4606
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4612
4607
|
var L = h.match(C);
|
|
4613
4608
|
if (L) {
|
|
4614
|
-
var N = L[2] - 1 || 0,
|
|
4615
|
-
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
4609
|
+
var N = L[2] - 1 || 0, j = (L[7] || "0").substring(0, 3);
|
|
4610
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j);
|
|
4616
4611
|
}
|
|
4617
4612
|
}
|
|
4618
4613
|
return new Date(h);
|
|
@@ -4624,26 +4619,26 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4624
4619
|
return O;
|
|
4625
4620
|
}, E.isValid = function() {
|
|
4626
4621
|
return this.$d.toString() !== d;
|
|
4627
|
-
}, E.isSame = function(g,
|
|
4628
|
-
var h =
|
|
4629
|
-
return this.startOf(
|
|
4630
|
-
}, E.isAfter = function(g,
|
|
4631
|
-
return
|
|
4632
|
-
}, E.isBefore = function(g,
|
|
4633
|
-
return this.endOf(
|
|
4634
|
-
}, E.$g = function(g,
|
|
4635
|
-
return O.u(g) ? this[
|
|
4622
|
+
}, E.isSame = function(g, v) {
|
|
4623
|
+
var h = G(g);
|
|
4624
|
+
return this.startOf(v) <= h && h <= this.endOf(v);
|
|
4625
|
+
}, E.isAfter = function(g, v) {
|
|
4626
|
+
return G(g) < this.startOf(v);
|
|
4627
|
+
}, E.isBefore = function(g, v) {
|
|
4628
|
+
return this.endOf(v) < G(g);
|
|
4629
|
+
}, E.$g = function(g, v, h) {
|
|
4630
|
+
return O.u(g) ? this[v] : this.set(h, g);
|
|
4636
4631
|
}, E.unix = function() {
|
|
4637
4632
|
return Math.floor(this.valueOf() / 1e3);
|
|
4638
4633
|
}, E.valueOf = function() {
|
|
4639
4634
|
return this.$d.getTime();
|
|
4640
|
-
}, E.startOf = function(g,
|
|
4641
|
-
var h = this, x = !!O.u(
|
|
4635
|
+
}, E.startOf = function(g, v) {
|
|
4636
|
+
var h = this, x = !!O.u(v) || v, L = O.p(g), N = function(Ee, ie) {
|
|
4642
4637
|
var ye = O.w(h.$u ? Date.UTC(h.$y, ie, Ee) : new Date(h.$y, ie, Ee), h);
|
|
4643
4638
|
return x ? ye : ye.endOf(l);
|
|
4644
|
-
},
|
|
4639
|
+
}, j = function(Ee, ie) {
|
|
4645
4640
|
return O.w(h.toDate()[Ee].apply(h.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4646
|
-
}, I = this.$W, q = this.$M, m = this.$D,
|
|
4641
|
+
}, I = this.$W, q = this.$M, m = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
4647
4642
|
switch (L) {
|
|
4648
4643
|
case M:
|
|
4649
4644
|
return x ? N(1, 0) : N(31, 11);
|
|
@@ -4654,35 +4649,35 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4654
4649
|
return N(x ? m - K : m + (6 - K), q);
|
|
4655
4650
|
case l:
|
|
4656
4651
|
case b:
|
|
4657
|
-
return
|
|
4652
|
+
return j(k + "Hours", 0);
|
|
4658
4653
|
case c:
|
|
4659
|
-
return
|
|
4654
|
+
return j(k + "Minutes", 1);
|
|
4660
4655
|
case a:
|
|
4661
|
-
return
|
|
4656
|
+
return j(k + "Seconds", 2);
|
|
4662
4657
|
case u:
|
|
4663
|
-
return
|
|
4658
|
+
return j(k + "Milliseconds", 3);
|
|
4664
4659
|
default:
|
|
4665
4660
|
return this.clone();
|
|
4666
4661
|
}
|
|
4667
4662
|
}, E.endOf = function(g) {
|
|
4668
4663
|
return this.startOf(g, !1);
|
|
4669
|
-
}, E.$set = function(g,
|
|
4670
|
-
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[a] = L + "Minutes", h[u] = L + "Seconds", h[o] = L + "Milliseconds", h)[x],
|
|
4664
|
+
}, E.$set = function(g, v) {
|
|
4665
|
+
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[a] = L + "Minutes", h[u] = L + "Seconds", h[o] = L + "Milliseconds", h)[x], j = x === l ? this.$D + (v - this.$W) : v;
|
|
4671
4666
|
if (x === _ || x === M) {
|
|
4672
4667
|
var I = this.clone().set(b, 1);
|
|
4673
|
-
I.$d[N](
|
|
4668
|
+
I.$d[N](j), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4674
4669
|
} else
|
|
4675
|
-
N && this.$d[N](
|
|
4670
|
+
N && this.$d[N](j);
|
|
4676
4671
|
return this.init(), this;
|
|
4677
|
-
}, E.set = function(g,
|
|
4678
|
-
return this.clone().$set(g,
|
|
4672
|
+
}, E.set = function(g, v) {
|
|
4673
|
+
return this.clone().$set(g, v);
|
|
4679
4674
|
}, E.get = function(g) {
|
|
4680
4675
|
return this[O.p(g)]();
|
|
4681
|
-
}, E.add = function(g,
|
|
4676
|
+
}, E.add = function(g, v) {
|
|
4682
4677
|
var h, x = this;
|
|
4683
4678
|
g = Number(g);
|
|
4684
|
-
var L = O.p(
|
|
4685
|
-
var m =
|
|
4679
|
+
var L = O.p(v), N = function(q) {
|
|
4680
|
+
var m = G(x);
|
|
4686
4681
|
return O.w(m.date(m.date() + Math.round(q * g)), x);
|
|
4687
4682
|
};
|
|
4688
4683
|
if (L === _)
|
|
@@ -4693,29 +4688,29 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4693
4688
|
return N(1);
|
|
4694
4689
|
if (L === f)
|
|
4695
4690
|
return N(7);
|
|
4696
|
-
var
|
|
4691
|
+
var j = (h = {}, h[a] = r, h[c] = i, h[u] = n, h)[L] || 1, I = this.$d.getTime() + g * j;
|
|
4697
4692
|
return O.w(I, this);
|
|
4698
|
-
}, E.subtract = function(g,
|
|
4699
|
-
return this.add(-1 * g,
|
|
4693
|
+
}, E.subtract = function(g, v) {
|
|
4694
|
+
return this.add(-1 * g, v);
|
|
4700
4695
|
}, E.format = function(g) {
|
|
4701
|
-
var
|
|
4696
|
+
var v = this, h = this.$locale();
|
|
4702
4697
|
if (!this.isValid())
|
|
4703
4698
|
return h.invalidDate || d;
|
|
4704
|
-
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H,
|
|
4705
|
-
return ie && (ie[ye] || ie(
|
|
4699
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, j = this.$m, I = this.$M, q = h.weekdays, m = h.months, k = h.meridiem, ee = function(ie, ye, ge, Le) {
|
|
4700
|
+
return ie && (ie[ye] || ie(v, x)) || ge[ye].slice(0, Le);
|
|
4706
4701
|
}, K = function(ie) {
|
|
4707
4702
|
return O.s(N % 12 || 12, ie, "0");
|
|
4708
|
-
}, Ee =
|
|
4709
|
-
var
|
|
4710
|
-
return ge ?
|
|
4703
|
+
}, Ee = k || function(ie, ye, ge) {
|
|
4704
|
+
var Le = ie < 12 ? "AM" : "PM";
|
|
4705
|
+
return ge ? Le.toLowerCase() : Le;
|
|
4711
4706
|
};
|
|
4712
|
-
return x.replace(
|
|
4707
|
+
return x.replace(F, function(ie, ye) {
|
|
4713
4708
|
return ye || function(ge) {
|
|
4714
4709
|
switch (ge) {
|
|
4715
4710
|
case "YY":
|
|
4716
|
-
return String(
|
|
4711
|
+
return String(v.$y).slice(-2);
|
|
4717
4712
|
case "YYYY":
|
|
4718
|
-
return O.s(
|
|
4713
|
+
return O.s(v.$y, 4, "0");
|
|
4719
4714
|
case "M":
|
|
4720
4715
|
return I + 1;
|
|
4721
4716
|
case "MM":
|
|
@@ -4725,17 +4720,17 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4725
4720
|
case "MMMM":
|
|
4726
4721
|
return ee(m, I);
|
|
4727
4722
|
case "D":
|
|
4728
|
-
return
|
|
4723
|
+
return v.$D;
|
|
4729
4724
|
case "DD":
|
|
4730
|
-
return O.s(
|
|
4725
|
+
return O.s(v.$D, 2, "0");
|
|
4731
4726
|
case "d":
|
|
4732
|
-
return String(
|
|
4727
|
+
return String(v.$W);
|
|
4733
4728
|
case "dd":
|
|
4734
|
-
return ee(h.weekdaysMin,
|
|
4729
|
+
return ee(h.weekdaysMin, v.$W, q, 2);
|
|
4735
4730
|
case "ddd":
|
|
4736
|
-
return ee(h.weekdaysShort,
|
|
4731
|
+
return ee(h.weekdaysShort, v.$W, q, 3);
|
|
4737
4732
|
case "dddd":
|
|
4738
|
-
return q[
|
|
4733
|
+
return q[v.$W];
|
|
4739
4734
|
case "H":
|
|
4740
4735
|
return String(N);
|
|
4741
4736
|
case "HH":
|
|
@@ -4745,19 +4740,19 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4745
4740
|
case "hh":
|
|
4746
4741
|
return K(2);
|
|
4747
4742
|
case "a":
|
|
4748
|
-
return Ee(N,
|
|
4743
|
+
return Ee(N, j, !0);
|
|
4749
4744
|
case "A":
|
|
4750
|
-
return Ee(N,
|
|
4745
|
+
return Ee(N, j, !1);
|
|
4751
4746
|
case "m":
|
|
4752
|
-
return String(
|
|
4747
|
+
return String(j);
|
|
4753
4748
|
case "mm":
|
|
4754
|
-
return O.s(
|
|
4749
|
+
return O.s(j, 2, "0");
|
|
4755
4750
|
case "s":
|
|
4756
|
-
return String(
|
|
4751
|
+
return String(v.$s);
|
|
4757
4752
|
case "ss":
|
|
4758
|
-
return O.s(
|
|
4753
|
+
return O.s(v.$s, 2, "0");
|
|
4759
4754
|
case "SSS":
|
|
4760
|
-
return O.s(
|
|
4755
|
+
return O.s(v.$ms, 3, "0");
|
|
4761
4756
|
case "Z":
|
|
4762
4757
|
return L;
|
|
4763
4758
|
}
|
|
@@ -4766,9 +4761,9 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4766
4761
|
});
|
|
4767
4762
|
}, E.utcOffset = function() {
|
|
4768
4763
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4769
|
-
}, E.diff = function(g,
|
|
4770
|
-
var x, L = this, N = O.p(
|
|
4771
|
-
return O.m(L,
|
|
4764
|
+
}, E.diff = function(g, v, h) {
|
|
4765
|
+
var x, L = this, N = O.p(v), j = G(g), I = (j.utcOffset() - this.utcOffset()) * r, q = this - j, m = function() {
|
|
4766
|
+
return O.m(L, j);
|
|
4772
4767
|
};
|
|
4773
4768
|
switch (N) {
|
|
4774
4769
|
case M:
|
|
@@ -4802,11 +4797,11 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4802
4797
|
}, E.daysInMonth = function() {
|
|
4803
4798
|
return this.endOf(_).$D;
|
|
4804
4799
|
}, E.$locale = function() {
|
|
4805
|
-
return
|
|
4806
|
-
}, E.locale = function(g,
|
|
4800
|
+
return U[this.$L];
|
|
4801
|
+
}, E.locale = function(g, v) {
|
|
4807
4802
|
if (!g)
|
|
4808
4803
|
return this.$L;
|
|
4809
|
-
var h = this.clone(), x = Q(g,
|
|
4804
|
+
var h = this.clone(), x = Q(g, v, !0);
|
|
4810
4805
|
return x && (h.$L = x), h;
|
|
4811
4806
|
}, E.clone = function() {
|
|
4812
4807
|
return O.w(this.$d, this);
|
|
@@ -4818,22 +4813,22 @@ var Pr = Ii(), Ri = { exports: {} };
|
|
|
4818
4813
|
return this.$d.toISOString();
|
|
4819
4814
|
}, E.toString = function() {
|
|
4820
4815
|
return this.$d.toUTCString();
|
|
4821
|
-
},
|
|
4816
|
+
}, T;
|
|
4822
4817
|
}(), he = te.prototype;
|
|
4823
|
-
return
|
|
4824
|
-
he[
|
|
4825
|
-
return this.$g(E,
|
|
4818
|
+
return G.prototype = he, [["$ms", o], ["$s", u], ["$m", a], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(T) {
|
|
4819
|
+
he[T[1]] = function(E) {
|
|
4820
|
+
return this.$g(E, T[0], T[1]);
|
|
4826
4821
|
};
|
|
4827
|
-
}),
|
|
4828
|
-
return
|
|
4829
|
-
},
|
|
4830
|
-
return
|
|
4831
|
-
},
|
|
4822
|
+
}), G.extend = function(T, E) {
|
|
4823
|
+
return T.$i || (T(E, te, G), T.$i = !0), G;
|
|
4824
|
+
}, G.locale = Q, G.isDayjs = V, G.unix = function(T) {
|
|
4825
|
+
return G(1e3 * T);
|
|
4826
|
+
}, G.en = U[R], G.Ls = U, G.p = {}, G;
|
|
4832
4827
|
});
|
|
4833
|
-
})(
|
|
4834
|
-
var
|
|
4835
|
-
const Dr = /* @__PURE__ */
|
|
4836
|
-
var
|
|
4828
|
+
})(Pi);
|
|
4829
|
+
var Na = Pi.exports;
|
|
4830
|
+
const Dr = /* @__PURE__ */ In(Na);
|
|
4831
|
+
var Ri = { exports: {} };
|
|
4837
4832
|
(function(e, t) {
|
|
4838
4833
|
(function(n, r) {
|
|
4839
4834
|
e.exports = r();
|
|
@@ -4864,16 +4859,16 @@ var Pi = { exports: {} };
|
|
|
4864
4859
|
};
|
|
4865
4860
|
var _ = c.utcOffset;
|
|
4866
4861
|
c.utcOffset = function(d, C) {
|
|
4867
|
-
var
|
|
4868
|
-
if (
|
|
4869
|
-
return this.$u ? 0 :
|
|
4870
|
-
if (typeof d == "string" && (d = function(
|
|
4871
|
-
|
|
4872
|
-
var
|
|
4873
|
-
if (!
|
|
4862
|
+
var F = this.$utils().u;
|
|
4863
|
+
if (F(d))
|
|
4864
|
+
return this.$u ? 0 : F(this.$offset) ? _.call(this) : this.$offset;
|
|
4865
|
+
if (typeof d == "string" && (d = function(R) {
|
|
4866
|
+
R === void 0 && (R = "");
|
|
4867
|
+
var U = R.match(r);
|
|
4868
|
+
if (!U)
|
|
4874
4869
|
return null;
|
|
4875
|
-
var
|
|
4876
|
-
return Q === 0 ? 0 :
|
|
4870
|
+
var Y = ("" + U[0]).match(i) || ["-", 0, 0], V = Y[0], Q = 60 * +Y[1] + +Y[2];
|
|
4871
|
+
return Q === 0 ? 0 : V === "+" ? Q : -Q;
|
|
4877
4872
|
}(d), d === null))
|
|
4878
4873
|
return this;
|
|
4879
4874
|
var $ = Math.abs(d) <= 16 ? 60 * d : d, w = this;
|
|
@@ -4905,19 +4900,19 @@ var Pi = { exports: {} };
|
|
|
4905
4900
|
return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4906
4901
|
};
|
|
4907
4902
|
var b = c.diff;
|
|
4908
|
-
c.diff = function(d, C,
|
|
4903
|
+
c.diff = function(d, C, F) {
|
|
4909
4904
|
if (d && this.$u === d.$u)
|
|
4910
|
-
return b.call(this, d, C,
|
|
4905
|
+
return b.call(this, d, C, F);
|
|
4911
4906
|
var $ = this.local(), w = a(d).local();
|
|
4912
|
-
return b.call($, w, C,
|
|
4907
|
+
return b.call($, w, C, F);
|
|
4913
4908
|
};
|
|
4914
4909
|
};
|
|
4915
4910
|
});
|
|
4916
|
-
})(
|
|
4917
|
-
var
|
|
4918
|
-
const
|
|
4919
|
-
let Br =
|
|
4920
|
-
function
|
|
4911
|
+
})(Ri);
|
|
4912
|
+
var Ha = Ri.exports;
|
|
4913
|
+
const Ia = /* @__PURE__ */ In(Ha);
|
|
4914
|
+
let Br = bt(null);
|
|
4915
|
+
function Pa(e, t) {
|
|
4921
4916
|
if (e) {
|
|
4922
4917
|
const n = document.createElement("style");
|
|
4923
4918
|
n.innerHTML = t, e.appendChild(n);
|
|
@@ -4932,7 +4927,7 @@ function Ra(e, t) {
|
|
|
4932
4927
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4933
4928
|
});
|
|
4934
4929
|
}
|
|
4935
|
-
function
|
|
4930
|
+
function Da(e, t, n) {
|
|
4936
4931
|
if (window.emMessageBus) {
|
|
4937
4932
|
const r = document.createElement("style");
|
|
4938
4933
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4940,70 +4935,70 @@ function Pa(e, t, n) {
|
|
|
4940
4935
|
});
|
|
4941
4936
|
}
|
|
4942
4937
|
}
|
|
4943
|
-
function
|
|
4938
|
+
function Ba(e) {
|
|
4944
4939
|
Yi(e, "svelte-878602", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
4945
4940
|
}
|
|
4946
|
-
const
|
|
4941
|
+
const $a = (e) => ({}), $r = (e) => ({}), Ua = (e) => ({}), Ur = (e) => ({}), ka = (e) => ({}), kr = (e) => ({}), Fa = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4947
4942
|
function Gr(e) {
|
|
4948
4943
|
let t, n, r, i, o, u = (
|
|
4949
4944
|
/*$_*/
|
|
4950
4945
|
e[8]("sessionExpirationHeader") + ""
|
|
4951
|
-
), a, c, l, f, _, y, M, b, d, C,
|
|
4952
|
-
const
|
|
4946
|
+
), a, c, l, f, _, y, M, b, d, C, F, $, w, H, R;
|
|
4947
|
+
const U = (
|
|
4953
4948
|
/*#slots*/
|
|
4954
4949
|
e[22].icon
|
|
4955
|
-
),
|
|
4956
|
-
|
|
4950
|
+
), Y = Nt(
|
|
4951
|
+
U,
|
|
4957
4952
|
e,
|
|
4958
4953
|
/*$$scope*/
|
|
4959
4954
|
e[21],
|
|
4960
4955
|
Fr
|
|
4961
|
-
),
|
|
4956
|
+
), V = Y || Ga(e), Q = (
|
|
4962
4957
|
/*#slots*/
|
|
4963
4958
|
e[22].title
|
|
4964
|
-
),
|
|
4959
|
+
), G = Nt(
|
|
4965
4960
|
Q,
|
|
4966
4961
|
e,
|
|
4967
4962
|
/*$$scope*/
|
|
4968
4963
|
e[21],
|
|
4969
4964
|
kr
|
|
4970
|
-
), O =
|
|
4965
|
+
), O = G || ja(e), te = (
|
|
4971
4966
|
/*#slots*/
|
|
4972
4967
|
e[22].text
|
|
4973
|
-
), he =
|
|
4968
|
+
), he = Nt(
|
|
4974
4969
|
te,
|
|
4975
4970
|
e,
|
|
4976
4971
|
/*$$scope*/
|
|
4977
4972
|
e[21],
|
|
4978
4973
|
Ur
|
|
4979
|
-
),
|
|
4980
|
-
function
|
|
4974
|
+
), T = he || za(e), E = [Va, Wa], g = [];
|
|
4975
|
+
function v(h, x) {
|
|
4981
4976
|
return (
|
|
4982
4977
|
/*showLoaderButton*/
|
|
4983
4978
|
h[6] ? 0 : 1
|
|
4984
4979
|
);
|
|
4985
4980
|
}
|
|
4986
|
-
return d =
|
|
4981
|
+
return d = v(e), C = g[d] = E[d](e), {
|
|
4987
4982
|
c() {
|
|
4988
|
-
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), a =
|
|
4989
|
-
e[6],
|
|
4983
|
+
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), a = Ke(u), c = ht(), l = re("div"), f = re("div"), V && V.c(), _ = ht(), O && O.c(), y = ht(), T && T.c(), M = ht(), b = re("button"), C.c(), W(o, "class", "CashierSessionExpirationModalHeaderTitle"), W(i, "class", "CashierSessionExpirationModalHeader"), W(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
4984
|
+
e[6], W(b, "class", "CashierSessionExpirationButton"), W(f, "class", "CashierSessionExpiration"), W(l, "class", "CashierSessionExpirationModalContainer"), W(r, "class", "CashierSessionExpirationModalWrapper"), W(n, "class", "CashierSessionExpirationModalWindow"), W(n, "id", "CashierSessionExpirationModal"), Ye(() => (
|
|
4990
4985
|
/*div5_elementresize_handler*/
|
|
4991
4986
|
e[24].call(n)
|
|
4992
4987
|
));
|
|
4993
4988
|
},
|
|
4994
4989
|
m(h, x) {
|
|
4995
|
-
|
|
4990
|
+
Ce(h, t, x), J(t, n), J(n, r), J(r, i), J(i, o), J(o, a), J(r, c), J(r, l), J(l, f), V && V.m(f, null), J(f, _), O && O.m(f, null), J(f, y), T && T.m(f, null), J(f, M), J(f, b), g[d].m(b, null), e[23](f), F = Qi(
|
|
4996
4991
|
n,
|
|
4997
4992
|
/*div5_elementresize_handler*/
|
|
4998
4993
|
e[24].bind(n)
|
|
4999
|
-
), e[25](t), w = !0, H || (
|
|
5000
|
-
|
|
4994
|
+
), e[25](t), w = !0, H || (R = [
|
|
4995
|
+
kt(
|
|
5001
4996
|
b,
|
|
5002
4997
|
"click",
|
|
5003
4998
|
/*renewSession*/
|
|
5004
4999
|
e[9]
|
|
5005
5000
|
),
|
|
5006
|
-
|
|
5001
|
+
kt(
|
|
5007
5002
|
n,
|
|
5008
5003
|
"click",
|
|
5009
5004
|
/*outOfModalClick*/
|
|
@@ -5014,73 +5009,73 @@ function Gr(e) {
|
|
|
5014
5009
|
p(h, x) {
|
|
5015
5010
|
e = h, (!w || x[0] & /*$_*/
|
|
5016
5011
|
256) && u !== (u = /*$_*/
|
|
5017
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5018
|
-
2097152) &&
|
|
5019
|
-
|
|
5020
|
-
|
|
5012
|
+
e[8]("sessionExpirationHeader") + "") && Zt(a, u), Y ? Y.p && (!w || x[0] & /*$$scope*/
|
|
5013
|
+
2097152) && It(
|
|
5014
|
+
Y,
|
|
5015
|
+
U,
|
|
5021
5016
|
e,
|
|
5022
5017
|
/*$$scope*/
|
|
5023
5018
|
e[21],
|
|
5024
|
-
w ?
|
|
5025
|
-
|
|
5019
|
+
w ? Ht(
|
|
5020
|
+
U,
|
|
5026
5021
|
/*$$scope*/
|
|
5027
5022
|
e[21],
|
|
5028
5023
|
x,
|
|
5029
|
-
|
|
5030
|
-
) :
|
|
5024
|
+
Fa
|
|
5025
|
+
) : Pt(
|
|
5031
5026
|
/*$$scope*/
|
|
5032
5027
|
e[21]
|
|
5033
5028
|
),
|
|
5034
5029
|
Fr
|
|
5035
|
-
) :
|
|
5036
|
-
8) &&
|
|
5037
|
-
2097152) &&
|
|
5038
|
-
|
|
5030
|
+
) : V && V.p && (!w || x[0] & /*assetsurl*/
|
|
5031
|
+
8) && V.p(e, w ? x : [-1, -1]), G ? G.p && (!w || x[0] & /*$$scope*/
|
|
5032
|
+
2097152) && It(
|
|
5033
|
+
G,
|
|
5039
5034
|
Q,
|
|
5040
5035
|
e,
|
|
5041
5036
|
/*$$scope*/
|
|
5042
5037
|
e[21],
|
|
5043
|
-
w ?
|
|
5038
|
+
w ? Ht(
|
|
5044
5039
|
Q,
|
|
5045
5040
|
/*$$scope*/
|
|
5046
5041
|
e[21],
|
|
5047
5042
|
x,
|
|
5048
|
-
|
|
5049
|
-
) :
|
|
5043
|
+
ka
|
|
5044
|
+
) : Pt(
|
|
5050
5045
|
/*$$scope*/
|
|
5051
5046
|
e[21]
|
|
5052
5047
|
),
|
|
5053
5048
|
kr
|
|
5054
5049
|
) : O && O.p && (!w || x[0] & /*$_*/
|
|
5055
5050
|
256) && O.p(e, w ? x : [-1, -1]), he ? he.p && (!w || x[0] & /*$$scope*/
|
|
5056
|
-
2097152) &&
|
|
5051
|
+
2097152) && It(
|
|
5057
5052
|
he,
|
|
5058
5053
|
te,
|
|
5059
5054
|
e,
|
|
5060
5055
|
/*$$scope*/
|
|
5061
5056
|
e[21],
|
|
5062
|
-
w ?
|
|
5057
|
+
w ? Ht(
|
|
5063
5058
|
te,
|
|
5064
5059
|
/*$$scope*/
|
|
5065
5060
|
e[21],
|
|
5066
5061
|
x,
|
|
5067
|
-
|
|
5068
|
-
) :
|
|
5062
|
+
Ua
|
|
5063
|
+
) : Pt(
|
|
5069
5064
|
/*$$scope*/
|
|
5070
5065
|
e[21]
|
|
5071
5066
|
),
|
|
5072
5067
|
Ur
|
|
5073
|
-
) :
|
|
5074
|
-
384) &&
|
|
5068
|
+
) : T && T.p && (!w || x[0] & /*$_, timeLeft*/
|
|
5069
|
+
384) && T.p(e, w ? x : [-1, -1]);
|
|
5075
5070
|
let L = d;
|
|
5076
|
-
d =
|
|
5071
|
+
d = v(e), d === L ? g[d].p(e, x) : (ei(), Ne(g[L], 1, 1, () => {
|
|
5077
5072
|
g[L] = null;
|
|
5078
5073
|
}), ti(), C = g[d], C ? C.p(e, x) : (C = g[d] = E[d](e), C.c()), Se(C, 1), C.m(b, null)), (!w || x[0] & /*showLoaderButton*/
|
|
5079
5074
|
64) && (b.disabled = /*showLoaderButton*/
|
|
5080
5075
|
e[6]);
|
|
5081
5076
|
},
|
|
5082
5077
|
i(h) {
|
|
5083
|
-
w || (Se(
|
|
5078
|
+
w || (Se(V, h), Se(O, h), Se(T, h), Se(C), h && Ye(() => {
|
|
5084
5079
|
w && ($ || ($ = lr(n, cr, { duration: (
|
|
5085
5080
|
/*duration*/
|
|
5086
5081
|
e[2]
|
|
@@ -5088,13 +5083,13 @@ function Gr(e) {
|
|
|
5088
5083
|
}), w = !0);
|
|
5089
5084
|
},
|
|
5090
5085
|
o(h) {
|
|
5091
|
-
|
|
5086
|
+
Ne(V, h), Ne(O, h), Ne(T, h), Ne(C), h && ($ || ($ = lr(n, cr, { duration: (
|
|
5092
5087
|
/*duration*/
|
|
5093
5088
|
e[2]
|
|
5094
5089
|
) }, !1)), $.run(0)), w = !1;
|
|
5095
5090
|
},
|
|
5096
5091
|
d(h) {
|
|
5097
|
-
h && be(t),
|
|
5092
|
+
h && be(t), V && V.d(h), O && O.d(h), T && T.d(h), g[d].d(), e[23](null), F(), h && $ && $.end(), e[25](null), H = !1, Ie(R);
|
|
5098
5093
|
}
|
|
5099
5094
|
};
|
|
5100
5095
|
}
|
|
@@ -5103,22 +5098,22 @@ function jr(e) {
|
|
|
5103
5098
|
return {
|
|
5104
5099
|
c() {
|
|
5105
5100
|
t = re("img"), ir(t.src, n = `${/*assetsurl*/
|
|
5106
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5101
|
+
e[3]}/set-timeout-icon.png`) || W(t, "src", n), W(t, "width", "300px"), W(t, "alt", "error");
|
|
5107
5102
|
},
|
|
5108
5103
|
m(r, i) {
|
|
5109
|
-
|
|
5104
|
+
Ce(r, t, i);
|
|
5110
5105
|
},
|
|
5111
5106
|
p(r, i) {
|
|
5112
5107
|
i[0] & /*assetsurl*/
|
|
5113
5108
|
8 && !ir(t.src, n = `${/*assetsurl*/
|
|
5114
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5109
|
+
r[3]}/set-timeout-icon.png`) && W(t, "src", n);
|
|
5115
5110
|
},
|
|
5116
5111
|
d(r) {
|
|
5117
5112
|
r && be(t);
|
|
5118
5113
|
}
|
|
5119
5114
|
};
|
|
5120
5115
|
}
|
|
5121
|
-
function
|
|
5116
|
+
function Ga(e) {
|
|
5122
5117
|
let t, n = (
|
|
5123
5118
|
/*assetsurl*/
|
|
5124
5119
|
e[3] && jr(e)
|
|
@@ -5128,7 +5123,7 @@ function Fa(e) {
|
|
|
5128
5123
|
n && n.c(), t = Qr();
|
|
5129
5124
|
},
|
|
5130
5125
|
m(r, i) {
|
|
5131
|
-
n && n.m(r, i),
|
|
5126
|
+
n && n.m(r, i), Ce(r, t, i);
|
|
5132
5127
|
},
|
|
5133
5128
|
p(r, i) {
|
|
5134
5129
|
/*assetsurl*/
|
|
@@ -5139,30 +5134,30 @@ function Fa(e) {
|
|
|
5139
5134
|
}
|
|
5140
5135
|
};
|
|
5141
5136
|
}
|
|
5142
|
-
function
|
|
5137
|
+
function ja(e) {
|
|
5143
5138
|
let t, n = (
|
|
5144
5139
|
/*$_*/
|
|
5145
5140
|
e[8]("sessionExpirationTitle") + ""
|
|
5146
5141
|
), r;
|
|
5147
5142
|
return {
|
|
5148
5143
|
c() {
|
|
5149
|
-
t = re("span"), r =
|
|
5144
|
+
t = re("span"), r = Ke(n), W(t, "class", "CashierSessionExpirationTitle");
|
|
5150
5145
|
},
|
|
5151
5146
|
m(i, o) {
|
|
5152
|
-
|
|
5147
|
+
Ce(i, t, o), J(t, r);
|
|
5153
5148
|
},
|
|
5154
5149
|
p(i, o) {
|
|
5155
5150
|
o[0] & /*$_*/
|
|
5156
5151
|
256 && n !== (n = /*$_*/
|
|
5157
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5152
|
+
i[8]("sessionExpirationTitle") + "") && Zt(r, n);
|
|
5158
5153
|
},
|
|
5159
5154
|
d(i) {
|
|
5160
5155
|
i && be(t);
|
|
5161
5156
|
}
|
|
5162
5157
|
};
|
|
5163
5158
|
}
|
|
5164
|
-
function
|
|
5165
|
-
let t, n =
|
|
5159
|
+
function za(e) {
|
|
5160
|
+
let t, n = Rr.sanitize(
|
|
5166
5161
|
/*$_*/
|
|
5167
5162
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5168
5163
|
/*timeLeft*/
|
|
@@ -5171,14 +5166,14 @@ function ja(e) {
|
|
|
5171
5166
|
) + "";
|
|
5172
5167
|
return {
|
|
5173
5168
|
c() {
|
|
5174
|
-
t = re("span"),
|
|
5169
|
+
t = re("span"), W(t, "class", "CashierSessionExpirationText");
|
|
5175
5170
|
},
|
|
5176
5171
|
m(r, i) {
|
|
5177
|
-
|
|
5172
|
+
Ce(r, t, i), t.innerHTML = n;
|
|
5178
5173
|
},
|
|
5179
5174
|
p(r, i) {
|
|
5180
5175
|
i[0] & /*$_, timeLeft*/
|
|
5181
|
-
384 && n !== (n =
|
|
5176
|
+
384 && n !== (n = Rr.sanitize(
|
|
5182
5177
|
/*$_*/
|
|
5183
5178
|
r[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5184
5179
|
/*timeLeft*/
|
|
@@ -5191,18 +5186,18 @@ function ja(e) {
|
|
|
5191
5186
|
}
|
|
5192
5187
|
};
|
|
5193
5188
|
}
|
|
5194
|
-
function
|
|
5189
|
+
function Wa(e) {
|
|
5195
5190
|
let t;
|
|
5196
5191
|
const n = (
|
|
5197
5192
|
/*#slots*/
|
|
5198
5193
|
e[22].button
|
|
5199
|
-
), r =
|
|
5194
|
+
), r = Nt(
|
|
5200
5195
|
n,
|
|
5201
5196
|
e,
|
|
5202
5197
|
/*$$scope*/
|
|
5203
5198
|
e[21],
|
|
5204
5199
|
$r
|
|
5205
|
-
), i = r ||
|
|
5200
|
+
), i = r || Xa(e);
|
|
5206
5201
|
return {
|
|
5207
5202
|
c() {
|
|
5208
5203
|
i && i.c();
|
|
@@ -5212,19 +5207,19 @@ function za(e) {
|
|
|
5212
5207
|
},
|
|
5213
5208
|
p(o, u) {
|
|
5214
5209
|
r ? r.p && (!t || u[0] & /*$$scope*/
|
|
5215
|
-
2097152) &&
|
|
5210
|
+
2097152) && It(
|
|
5216
5211
|
r,
|
|
5217
5212
|
n,
|
|
5218
5213
|
o,
|
|
5219
5214
|
/*$$scope*/
|
|
5220
5215
|
o[21],
|
|
5221
|
-
t ?
|
|
5216
|
+
t ? Ht(
|
|
5222
5217
|
n,
|
|
5223
5218
|
/*$$scope*/
|
|
5224
5219
|
o[21],
|
|
5225
5220
|
u,
|
|
5226
|
-
|
|
5227
|
-
) :
|
|
5221
|
+
$a
|
|
5222
|
+
) : Pt(
|
|
5228
5223
|
/*$$scope*/
|
|
5229
5224
|
o[21]
|
|
5230
5225
|
),
|
|
@@ -5236,29 +5231,29 @@ function za(e) {
|
|
|
5236
5231
|
t || (Se(i, o), t = !0);
|
|
5237
5232
|
},
|
|
5238
5233
|
o(o) {
|
|
5239
|
-
|
|
5234
|
+
Ne(i, o), t = !1;
|
|
5240
5235
|
},
|
|
5241
5236
|
d(o) {
|
|
5242
5237
|
i && i.d(o);
|
|
5243
5238
|
}
|
|
5244
5239
|
};
|
|
5245
5240
|
}
|
|
5246
|
-
function
|
|
5241
|
+
function Va(e) {
|
|
5247
5242
|
let t, n, r, i, o, u = (
|
|
5248
5243
|
/*$_*/
|
|
5249
5244
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5250
5245
|
), a;
|
|
5251
5246
|
return {
|
|
5252
5247
|
c() {
|
|
5253
|
-
t = re("div"), n = sr("svg"), r = sr("path"), i =
|
|
5248
|
+
t = re("div"), n = sr("svg"), r = sr("path"), i = ht(), o = re("span"), a = Ke(u), W(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), W(r, "fill", "white"), W(n, "class", "CashierSessionExpirationButtonSpinner"), W(n, "xmlns", "http://www.w3.org/2000/svg"), W(n, "width", "15"), W(n, "height", "14"), W(n, "viewBox", "0 0 15 14"), W(n, "fill", "none"), W(o, "class", "CashierSessionExpirationButtonText");
|
|
5254
5249
|
},
|
|
5255
5250
|
m(c, l) {
|
|
5256
|
-
|
|
5251
|
+
Ce(c, t, l), J(t, n), J(n, r), J(t, i), J(t, o), J(o, a);
|
|
5257
5252
|
},
|
|
5258
5253
|
p(c, l) {
|
|
5259
5254
|
l[0] & /*$_*/
|
|
5260
5255
|
256 && u !== (u = /*$_*/
|
|
5261
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5256
|
+
c[8]("sessionExpirationLoadingButton") + "") && Zt(a, u);
|
|
5262
5257
|
},
|
|
5263
5258
|
i: de,
|
|
5264
5259
|
o: de,
|
|
@@ -5267,29 +5262,29 @@ function Wa(e) {
|
|
|
5267
5262
|
}
|
|
5268
5263
|
};
|
|
5269
5264
|
}
|
|
5270
|
-
function
|
|
5265
|
+
function Xa(e) {
|
|
5271
5266
|
let t, n = (
|
|
5272
5267
|
/*$_*/
|
|
5273
5268
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5274
5269
|
), r;
|
|
5275
5270
|
return {
|
|
5276
5271
|
c() {
|
|
5277
|
-
t = re("span"), r =
|
|
5272
|
+
t = re("span"), r = Ke(n), W(t, "class", "CashierSessionExpirationButtonText");
|
|
5278
5273
|
},
|
|
5279
5274
|
m(i, o) {
|
|
5280
|
-
|
|
5275
|
+
Ce(i, t, o), J(t, r);
|
|
5281
5276
|
},
|
|
5282
5277
|
p(i, o) {
|
|
5283
5278
|
o[0] & /*$_*/
|
|
5284
5279
|
256 && n !== (n = /*$_*/
|
|
5285
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5280
|
+
i[8]("sessionExpirationGeneralButton") + "") && Zt(r, n);
|
|
5286
5281
|
},
|
|
5287
5282
|
d(i) {
|
|
5288
5283
|
i && be(t);
|
|
5289
5284
|
}
|
|
5290
5285
|
};
|
|
5291
5286
|
}
|
|
5292
|
-
function
|
|
5287
|
+
function Ya(e) {
|
|
5293
5288
|
let t, n, r = (
|
|
5294
5289
|
/*show*/
|
|
5295
5290
|
e[5] && Gr(e)
|
|
@@ -5299,12 +5294,12 @@ function Xa(e) {
|
|
|
5299
5294
|
r && r.c(), t = Qr();
|
|
5300
5295
|
},
|
|
5301
5296
|
m(i, o) {
|
|
5302
|
-
r && r.m(i, o),
|
|
5297
|
+
r && r.m(i, o), Ce(i, t, o), n = !0;
|
|
5303
5298
|
},
|
|
5304
5299
|
p(i, o) {
|
|
5305
5300
|
/*show*/
|
|
5306
5301
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5307
|
-
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (ei(),
|
|
5302
|
+
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (ei(), Ne(r, 1, 1, () => {
|
|
5308
5303
|
r = null;
|
|
5309
5304
|
}), ti());
|
|
5310
5305
|
},
|
|
@@ -5312,27 +5307,27 @@ function Xa(e) {
|
|
|
5312
5307
|
n || (Se(r), n = !0);
|
|
5313
5308
|
},
|
|
5314
5309
|
o(i) {
|
|
5315
|
-
|
|
5310
|
+
Ne(r), n = !1;
|
|
5316
5311
|
},
|
|
5317
5312
|
d(i) {
|
|
5318
5313
|
i && be(t), r && r.d(i);
|
|
5319
5314
|
}
|
|
5320
5315
|
};
|
|
5321
5316
|
}
|
|
5322
|
-
const
|
|
5323
|
-
function
|
|
5317
|
+
const Za = 90;
|
|
5318
|
+
function qa(e, t, n) {
|
|
5324
5319
|
let r, i;
|
|
5325
|
-
or(e, Br, (m) => n(20, r = m)), or(e,
|
|
5320
|
+
or(e, Br, (m) => n(20, r = m)), or(e, ca, (m) => n(8, i = m));
|
|
5326
5321
|
let { $$slots: o = {}, $$scope: u } = t;
|
|
5327
|
-
Dr.extend(
|
|
5328
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid:
|
|
5322
|
+
Dr.extend(Ia);
|
|
5323
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: F } = t, { selectedpaymentmethodname: $ } = t, { mbsource: w = "" } = t, H, R = !1, U = !1, Y, V, Q, G, O;
|
|
5329
5324
|
var te;
|
|
5330
5325
|
(function(m) {
|
|
5331
5326
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5332
5327
|
})(te || (te = {}));
|
|
5333
5328
|
const he = (m) => {
|
|
5334
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5335
|
-
},
|
|
5329
|
+
m.data.type === "StartSessionCountdown" && (G = m.data.paymentMethodName);
|
|
5330
|
+
}, T = (m) => {
|
|
5336
5331
|
try {
|
|
5337
5332
|
return JSON.parse(atob(m.split(".")[1]));
|
|
5338
5333
|
} catch {
|
|
@@ -5347,28 +5342,28 @@ function Za(e, t, n) {
|
|
|
5347
5342
|
window.location.href
|
|
5348
5343
|
);
|
|
5349
5344
|
}, g = (m) => {
|
|
5350
|
-
n(5,
|
|
5351
|
-
const
|
|
5352
|
-
|
|
5345
|
+
n(5, R = !1);
|
|
5346
|
+
const k = T(m);
|
|
5347
|
+
k && (V = k?.exp, n(7, Y = V), Q && clearInterval(Q), Q = setInterval(
|
|
5353
5348
|
() => {
|
|
5354
5349
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5355
|
-
n(7,
|
|
5350
|
+
n(7, Y = V - ee), Y <= Za && n(5, R = !0), ee >= V && (v(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5356
5351
|
},
|
|
5357
5352
|
1e3
|
|
5358
5353
|
));
|
|
5359
|
-
},
|
|
5360
|
-
n(7,
|
|
5354
|
+
}, v = () => {
|
|
5355
|
+
n(7, Y = 0), n(5, R = !1), clearInterval(Q);
|
|
5361
5356
|
}, h = () => {
|
|
5362
|
-
if (
|
|
5357
|
+
if (U)
|
|
5363
5358
|
return;
|
|
5364
|
-
const m = new URL(`${d}/v1/player/${
|
|
5365
|
-
n(6,
|
|
5359
|
+
const m = new URL(`${d}/v1/player/${F}/payment/GetPaymentMethod`), k = new Headers();
|
|
5360
|
+
n(6, U = !0), k.append("accept", "application/json"), k.append("Content-Type", "application/json"), k.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5366
5361
|
const ee = {
|
|
5367
5362
|
method: "POST",
|
|
5368
5363
|
mode: "cors",
|
|
5369
|
-
headers:
|
|
5364
|
+
headers: k,
|
|
5370
5365
|
body: JSON.stringify({
|
|
5371
|
-
PaymentMethodName:
|
|
5366
|
+
PaymentMethodName: G || $,
|
|
5372
5367
|
Currency: C,
|
|
5373
5368
|
XPaymentSessionToken: r
|
|
5374
5369
|
})
|
|
@@ -5381,44 +5376,44 @@ function Za(e, t, n) {
|
|
|
5381
5376
|
error: K.error
|
|
5382
5377
|
},
|
|
5383
5378
|
window.location.href
|
|
5384
|
-
),
|
|
5379
|
+
), v();
|
|
5385
5380
|
return;
|
|
5386
5381
|
}
|
|
5387
5382
|
if (K.ResponseCode === te.PlayerSessionIsNotValid || K.ResponseCode === te.JwtTokenError) {
|
|
5388
|
-
O = K.ResponseCode,
|
|
5383
|
+
O = K.ResponseCode, v(), E();
|
|
5389
5384
|
return;
|
|
5390
5385
|
}
|
|
5391
5386
|
if (K.ResponseCode !== te.Success) {
|
|
5392
|
-
O = K.ResponseCode,
|
|
5387
|
+
O = K.ResponseCode, v();
|
|
5393
5388
|
return;
|
|
5394
5389
|
}
|
|
5395
5390
|
K.XPaymentSessionToken && Br.set(K.XPaymentSessionToken);
|
|
5396
|
-
}).finally(() => n(6,
|
|
5391
|
+
}).finally(() => n(6, U = !1));
|
|
5397
5392
|
}, x = (m) => {
|
|
5398
|
-
const
|
|
5399
|
-
m.target ===
|
|
5393
|
+
const k = m.currentTarget;
|
|
5394
|
+
m.target === k && h();
|
|
5400
5395
|
}, L = () => {
|
|
5401
|
-
fetch(b).then((
|
|
5402
|
-
Object.keys(
|
|
5403
|
-
wr(ee,
|
|
5396
|
+
fetch(b).then((k) => k.json()).then((k) => {
|
|
5397
|
+
Object.keys(k).forEach((ee) => {
|
|
5398
|
+
wr(ee, k[ee]);
|
|
5404
5399
|
});
|
|
5405
|
-
}).catch((
|
|
5406
|
-
console.log(
|
|
5400
|
+
}).catch((k) => {
|
|
5401
|
+
console.log(k);
|
|
5407
5402
|
});
|
|
5408
5403
|
};
|
|
5409
5404
|
Object.keys(Ar).forEach((m) => {
|
|
5410
5405
|
wr(m, Ar[m]);
|
|
5411
5406
|
});
|
|
5412
5407
|
const N = () => {
|
|
5413
|
-
|
|
5408
|
+
fa(M);
|
|
5414
5409
|
};
|
|
5415
5410
|
oo(() => (window.addEventListener("message", he, !1), () => {
|
|
5416
5411
|
window.removeEventListener("message", he);
|
|
5417
5412
|
})), so(() => {
|
|
5418
5413
|
clearInterval(Q);
|
|
5419
5414
|
});
|
|
5420
|
-
function
|
|
5421
|
-
|
|
5415
|
+
function j(m) {
|
|
5416
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5422
5417
|
H = m, n(4, H);
|
|
5423
5418
|
});
|
|
5424
5419
|
}
|
|
@@ -5426,19 +5421,19 @@ function Za(e, t, n) {
|
|
|
5426
5421
|
l = this.clientWidth, f = this.clientHeight, n(0, l), n(1, f);
|
|
5427
5422
|
}
|
|
5428
5423
|
function q(m) {
|
|
5429
|
-
|
|
5424
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5430
5425
|
H = m, n(4, H);
|
|
5431
5426
|
});
|
|
5432
5427
|
}
|
|
5433
5428
|
return e.$$set = (m) => {
|
|
5434
|
-
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17,
|
|
5429
|
+
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, F = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19, w = m.mbsource), "$$scope" in m && n(21, u = m.$$scope);
|
|
5435
5430
|
}, e.$$.update = () => {
|
|
5436
5431
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5437
5432
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5438
5433
|
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5439
|
-
2064 && a && H &&
|
|
5434
|
+
2064 && a && H && Pa(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5440
5435
|
4112 && c && H && Ra(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5441
|
-
524304 && w && H &&
|
|
5436
|
+
524304 && w && H && Da(H, `${w}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5442
5437
|
16384 && b && L();
|
|
5443
5438
|
}, [
|
|
5444
5439
|
l,
|
|
@@ -5446,9 +5441,9 @@ function Za(e, t, n) {
|
|
|
5446
5441
|
_,
|
|
5447
5442
|
y,
|
|
5448
5443
|
H,
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5444
|
+
R,
|
|
5445
|
+
U,
|
|
5446
|
+
Y,
|
|
5452
5447
|
i,
|
|
5453
5448
|
h,
|
|
5454
5449
|
x,
|
|
@@ -5458,24 +5453,24 @@ function Za(e, t, n) {
|
|
|
5458
5453
|
b,
|
|
5459
5454
|
d,
|
|
5460
5455
|
C,
|
|
5461
|
-
|
|
5456
|
+
F,
|
|
5462
5457
|
$,
|
|
5463
5458
|
w,
|
|
5464
5459
|
r,
|
|
5465
5460
|
u,
|
|
5466
5461
|
o,
|
|
5467
|
-
|
|
5462
|
+
j,
|
|
5468
5463
|
I,
|
|
5469
5464
|
q
|
|
5470
5465
|
];
|
|
5471
5466
|
}
|
|
5472
|
-
class
|
|
5467
|
+
class Ja extends Eo {
|
|
5473
5468
|
constructor(t) {
|
|
5474
5469
|
super(), _o(
|
|
5475
5470
|
this,
|
|
5476
5471
|
t,
|
|
5477
|
-
|
|
5478
|
-
|
|
5472
|
+
qa,
|
|
5473
|
+
Ya,
|
|
5479
5474
|
Vr,
|
|
5480
5475
|
{
|
|
5481
5476
|
clientstyling: 11,
|
|
@@ -5492,7 +5487,7 @@ class qa extends Eo {
|
|
|
5492
5487
|
selectedpaymentmethodname: 18,
|
|
5493
5488
|
mbsource: 19
|
|
5494
5489
|
},
|
|
5495
|
-
|
|
5490
|
+
Ba,
|
|
5496
5491
|
[-1, -1]
|
|
5497
5492
|
);
|
|
5498
5493
|
}
|
|
@@ -5575,7 +5570,7 @@ class qa extends Eo {
|
|
|
5575
5570
|
this.$$set({ mbsource: t }), le();
|
|
5576
5571
|
}
|
|
5577
5572
|
}
|
|
5578
|
-
bo(
|
|
5573
|
+
bo(Ja, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5579
5574
|
export {
|
|
5580
|
-
|
|
5575
|
+
Ja as C
|
|
5581
5576
|
};
|