@everymatrix/cashier-session-expiration-modal 1.86.4 → 1.86.5
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-DDVIqM4F.js → CashierSessionExpirationModal-CK3ySuQl.js} +1008 -1013
- package/components/{CashierSessionExpirationModal-KbvrKm7-.js → CashierSessionExpirationModal-Cc1S2bE-.js} +1006 -1011
- package/components/CashierSessionExpirationModal-Vubylti9.cjs +9 -0
- 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-D_XYcHGT.cjs +0 -22
|
@@ -2,15 +2,15 @@ var Zi = Object.defineProperty, qi = Object.defineProperties;
|
|
|
2
2
|
var Ji = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var sr = Object.getOwnPropertySymbols;
|
|
4
4
|
var Qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var un = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ar = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Qi.call(t, n) &&
|
|
7
|
+
Qi.call(t, n) && un(e, n, t[n]);
|
|
8
8
|
if (sr)
|
|
9
9
|
for (var n of sr(t))
|
|
10
|
-
Ki.call(t, n) &&
|
|
10
|
+
Ki.call(t, n) && un(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, lr = (e, t) => qi(e, Ji(t));
|
|
13
|
-
var ve = (e, t, n) => (
|
|
13
|
+
var ve = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var ur = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
@@ -44,18 +44,18 @@ function Jr(e) {
|
|
|
44
44
|
function cr() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ue(e) {
|
|
48
48
|
e.forEach(Jr);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Kt(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function Qr(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let Nt;
|
|
57
57
|
function fr(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (Nt || (Nt = document.createElement("a")), Nt.href = t, e === Nt.href);
|
|
59
59
|
}
|
|
60
60
|
function to(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -72,7 +72,7 @@ function Kr(e, ...t) {
|
|
|
72
72
|
function hr(e, t, n) {
|
|
73
73
|
e.$$.on_destroy.push(Kr(t, n));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Bt(e, t, n, r) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = ei(e, t, n, r);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,7 +81,7 @@ function Dt(e, t, n, r) {
|
|
|
81
81
|
function ei(e, t, n, r) {
|
|
82
82
|
return e[1] && r ? eo(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function $t(e, t, n, r) {
|
|
85
85
|
if (e[2] && r) {
|
|
86
86
|
const i = e[2](r(n));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -96,13 +96,13 @@ function Bt(e, t, n, r) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ut(e, t, n, r, i, o) {
|
|
100
100
|
if (i) {
|
|
101
101
|
const l = ei(t, n, r, o);
|
|
102
102
|
e.p(l, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function kt(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], n = e.ctx.length / 32;
|
|
108
108
|
for (let r = 0; r < n; r++)
|
|
@@ -112,21 +112,21 @@ function Ut(e) {
|
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
114
|
const ti = typeof window != "undefined";
|
|
115
|
-
let no = ti ? () => window.performance.now() : () => Date.now(),
|
|
116
|
-
const
|
|
115
|
+
let no = ti ? () => window.performance.now() : () => Date.now(), Pn = ti ? (e) => requestAnimationFrame(e) : ye;
|
|
116
|
+
const Ke = /* @__PURE__ */ new Set();
|
|
117
117
|
function ni(e) {
|
|
118
|
-
|
|
119
|
-
t.c(e) || (
|
|
120
|
-
}),
|
|
118
|
+
Ke.forEach((t) => {
|
|
119
|
+
t.c(e) || (Ke.delete(t), t.f());
|
|
120
|
+
}), Ke.size !== 0 && Pn(ni);
|
|
121
121
|
}
|
|
122
122
|
function ro(e) {
|
|
123
123
|
let t;
|
|
124
|
-
return
|
|
124
|
+
return Ke.size === 0 && Pn(ni), {
|
|
125
125
|
promise: new Promise((n) => {
|
|
126
|
-
|
|
126
|
+
Ke.add(t = { c: e, f: n });
|
|
127
127
|
}),
|
|
128
128
|
abort() {
|
|
129
|
-
|
|
129
|
+
Ke.delete(t);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -134,13 +134,13 @@ function B(e, t) {
|
|
|
134
134
|
e.appendChild(t);
|
|
135
135
|
}
|
|
136
136
|
function io(e, t, n) {
|
|
137
|
-
const r =
|
|
137
|
+
const r = Rn(e);
|
|
138
138
|
if (!r.getElementById(t)) {
|
|
139
|
-
const i =
|
|
139
|
+
const i = te("style");
|
|
140
140
|
i.id = t, i.textContent = n, ri(r, i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Rn(e) {
|
|
144
144
|
if (!e)
|
|
145
145
|
return document;
|
|
146
146
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -151,8 +151,8 @@ function In(e) {
|
|
|
151
151
|
) : e.ownerDocument;
|
|
152
152
|
}
|
|
153
153
|
function oo(e) {
|
|
154
|
-
const t =
|
|
155
|
-
return t.textContent = "/* empty */", ri(
|
|
154
|
+
const t = te("style");
|
|
155
|
+
return t.textContent = "/* empty */", ri(Rn(e), t), t.sheet;
|
|
156
156
|
}
|
|
157
157
|
function ri(e, t) {
|
|
158
158
|
return B(
|
|
@@ -161,28 +161,28 @@ function ri(e, t) {
|
|
|
161
161
|
t
|
|
162
162
|
), t.sheet;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ke(e, t, n) {
|
|
165
165
|
e.insertBefore(t, n || null);
|
|
166
166
|
}
|
|
167
167
|
function Ae(e) {
|
|
168
168
|
e.parentNode && e.parentNode.removeChild(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function te(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
173
|
function Se(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function je(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function Re() {
|
|
180
|
+
return je(" ");
|
|
181
181
|
}
|
|
182
182
|
function so() {
|
|
183
|
-
return
|
|
183
|
+
return je("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Qe(e, t, n, r) {
|
|
186
186
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
188
|
function w(e, t, n) {
|
|
@@ -191,32 +191,32 @@ function w(e, t, n) {
|
|
|
191
191
|
function ao(e) {
|
|
192
192
|
return Array.from(e.childNodes);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function yt(e, t) {
|
|
195
195
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
196
196
|
t);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
198
|
+
let It;
|
|
199
199
|
function lo() {
|
|
200
|
-
if (
|
|
201
|
-
|
|
200
|
+
if (It === void 0) {
|
|
201
|
+
It = !1;
|
|
202
202
|
try {
|
|
203
203
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
204
204
|
} catch (e) {
|
|
205
|
-
|
|
205
|
+
It = !0;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return It;
|
|
209
209
|
}
|
|
210
210
|
function uo(e, t) {
|
|
211
211
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
212
|
-
const r =
|
|
212
|
+
const r = te("iframe");
|
|
213
213
|
r.setAttribute(
|
|
214
214
|
"style",
|
|
215
215
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
216
216
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
217
217
|
const i = lo();
|
|
218
218
|
let o;
|
|
219
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
219
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Qe(
|
|
220
220
|
window,
|
|
221
221
|
"message",
|
|
222
222
|
/** @param {MessageEvent} event */
|
|
@@ -224,7 +224,7 @@ function uo(e, t) {
|
|
|
224
224
|
l.source === r.contentWindow && t();
|
|
225
225
|
}
|
|
226
226
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
227
|
-
o =
|
|
227
|
+
o = Qe(r.contentWindow, "resize", t), t();
|
|
228
228
|
}), B(e, r), () => {
|
|
229
229
|
(i || o && r.contentWindow) && o(), Ae(r);
|
|
230
230
|
};
|
|
@@ -241,8 +241,8 @@ function fo(e) {
|
|
|
241
241
|
}
|
|
242
242
|
), t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
let
|
|
244
|
+
const Vt = /* @__PURE__ */ new Map();
|
|
245
|
+
let Xt = 0;
|
|
246
246
|
function ho(e) {
|
|
247
247
|
let t = 5381, n = e.length;
|
|
248
248
|
for (; n--; )
|
|
@@ -251,7 +251,7 @@ function ho(e) {
|
|
|
251
251
|
}
|
|
252
252
|
function mo(e, t) {
|
|
253
253
|
const n = { stylesheet: oo(t), rules: {} };
|
|
254
|
-
return
|
|
254
|
+
return Vt.set(e, n), n;
|
|
255
255
|
}
|
|
256
256
|
function mr(e, t, n, r, i, o, l, a = 0) {
|
|
257
257
|
const c = 16.666 / r;
|
|
@@ -263,34 +263,34 @@ function mr(e, t, n, r, i, o, l, a = 0) {
|
|
|
263
263
|
`;
|
|
264
264
|
}
|
|
265
265
|
const f = u + `100% {${l(n, 1 - n)}}
|
|
266
|
-
}`, m = `__svelte_${ho(f)}_${a}`, y =
|
|
266
|
+
}`, m = `__svelte_${ho(f)}_${a}`, y = Rn(e), { stylesheet: A, rules: x } = Vt.get(y) || mo(y, e);
|
|
267
267
|
x[m] || (x[m] = !0, A.insertRule(`@keyframes ${m} ${f}`, A.cssRules.length));
|
|
268
268
|
const g = e.style.animation || "";
|
|
269
|
-
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`,
|
|
269
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`, Xt += 1, m;
|
|
270
270
|
}
|
|
271
271
|
function po(e, t) {
|
|
272
272
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
273
273
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
274
274
|
// remove all Svelte animations
|
|
275
275
|
), i = n.length - r.length;
|
|
276
|
-
i && (e.style.animation = r.join(", "),
|
|
276
|
+
i && (e.style.animation = r.join(", "), Xt -= i, Xt || go());
|
|
277
277
|
}
|
|
278
278
|
function go() {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
Pn(() => {
|
|
280
|
+
Xt || (Vt.forEach((e) => {
|
|
281
281
|
const { ownerNode: t } = e.stylesheet;
|
|
282
282
|
t && Ae(t);
|
|
283
|
-
}),
|
|
283
|
+
}), Vt.clear());
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
let
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
let xt;
|
|
287
|
+
function Et(e) {
|
|
288
|
+
xt = e;
|
|
289
289
|
}
|
|
290
290
|
function ii() {
|
|
291
|
-
if (!
|
|
291
|
+
if (!xt)
|
|
292
292
|
throw new Error("Function called outside component initialization");
|
|
293
|
-
return
|
|
293
|
+
return xt;
|
|
294
294
|
}
|
|
295
295
|
function _o(e) {
|
|
296
296
|
ii().$$.on_mount.push(e);
|
|
@@ -298,91 +298,91 @@ function _o(e) {
|
|
|
298
298
|
function bo(e) {
|
|
299
299
|
ii().$$.on_destroy.push(e);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
303
|
-
const
|
|
304
|
-
let
|
|
301
|
+
const Je = [], Yt = [];
|
|
302
|
+
let et = [];
|
|
303
|
+
const pr = [], Eo = /* @__PURE__ */ Promise.resolve();
|
|
304
|
+
let Tn = !1;
|
|
305
305
|
function yo() {
|
|
306
|
-
|
|
306
|
+
Tn || (Tn = !0, Eo.then(de));
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
308
|
+
function tt(e) {
|
|
309
|
+
et.push(e);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
313
|
-
function
|
|
314
|
-
if (
|
|
311
|
+
const cn = /* @__PURE__ */ new Set();
|
|
312
|
+
let Ze = 0;
|
|
313
|
+
function de() {
|
|
314
|
+
if (Ze !== 0)
|
|
315
315
|
return;
|
|
316
|
-
const e =
|
|
316
|
+
const e = xt;
|
|
317
317
|
do {
|
|
318
318
|
try {
|
|
319
|
-
for (;
|
|
320
|
-
const t =
|
|
321
|
-
|
|
319
|
+
for (; Ze < Je.length; ) {
|
|
320
|
+
const t = Je[Ze];
|
|
321
|
+
Ze++, Et(t), xo(t.$$);
|
|
322
322
|
}
|
|
323
323
|
} catch (t) {
|
|
324
|
-
throw
|
|
324
|
+
throw Je.length = 0, Ze = 0, t;
|
|
325
325
|
}
|
|
326
|
-
for (
|
|
327
|
-
|
|
328
|
-
for (let t = 0; t <
|
|
329
|
-
const n =
|
|
330
|
-
|
|
326
|
+
for (Et(null), Je.length = 0, Ze = 0; Yt.length; )
|
|
327
|
+
Yt.pop()();
|
|
328
|
+
for (let t = 0; t < et.length; t += 1) {
|
|
329
|
+
const n = et[t];
|
|
330
|
+
cn.has(n) || (cn.add(n), n());
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
} while (
|
|
334
|
-
for (;
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
et.length = 0;
|
|
333
|
+
} while (Je.length);
|
|
334
|
+
for (; pr.length; )
|
|
335
|
+
pr.pop()();
|
|
336
|
+
Tn = !1, cn.clear(), Et(e);
|
|
337
337
|
}
|
|
338
338
|
function xo(e) {
|
|
339
339
|
if (e.fragment !== null) {
|
|
340
|
-
e.update(),
|
|
340
|
+
e.update(), Ue(e.before_update);
|
|
341
341
|
const t = e.dirty;
|
|
342
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
342
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
function vo(e) {
|
|
346
346
|
const t = [], n = [];
|
|
347
|
-
|
|
347
|
+
et.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), et = t;
|
|
348
348
|
}
|
|
349
|
-
let
|
|
349
|
+
let ft;
|
|
350
350
|
function To() {
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
})),
|
|
351
|
+
return ft || (ft = Promise.resolve(), ft.then(() => {
|
|
352
|
+
ft = null;
|
|
353
|
+
})), ft;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function fn(e, t, n) {
|
|
356
356
|
e.dispatchEvent(co(`${t ? "intro" : "outro"}${n}`));
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
358
|
+
const Ft = /* @__PURE__ */ new Set();
|
|
359
|
+
let De;
|
|
360
360
|
function oi() {
|
|
361
|
-
|
|
361
|
+
De = {
|
|
362
362
|
r: 0,
|
|
363
363
|
c: [],
|
|
364
|
-
p:
|
|
364
|
+
p: De
|
|
365
365
|
// parent group
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function si() {
|
|
369
|
-
|
|
369
|
+
De.r || Ue(De.c), De = De.p;
|
|
370
370
|
}
|
|
371
371
|
function He(e, t) {
|
|
372
|
-
e && e.i && (
|
|
372
|
+
e && e.i && (Ft.delete(e), e.i(t));
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Be(e, t, n, r) {
|
|
375
375
|
if (e && e.o) {
|
|
376
|
-
if (
|
|
376
|
+
if (Ft.has(e))
|
|
377
377
|
return;
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
Ft.add(e), De.c.push(() => {
|
|
379
|
+
Ft.delete(e), r && (n && e.d(1), r());
|
|
380
380
|
}), e.o(t);
|
|
381
381
|
} else
|
|
382
382
|
r && r();
|
|
383
383
|
}
|
|
384
384
|
const So = { duration: 0 };
|
|
385
|
-
function
|
|
385
|
+
function dr(e, t, n, r) {
|
|
386
386
|
let o = t(e, n, { direction: "both" }), l = r ? 0 : 1, a = null, c = null, u = null, f;
|
|
387
387
|
function m() {
|
|
388
388
|
u && po(e, u);
|
|
@@ -407,15 +407,15 @@ function pr(e, t, n, r) {
|
|
|
407
407
|
delay: g = 0,
|
|
408
408
|
duration: N = 300,
|
|
409
409
|
easing: U = qr,
|
|
410
|
-
tick:
|
|
410
|
+
tick: V = ye,
|
|
411
411
|
css: R
|
|
412
412
|
} = o || So, H = {
|
|
413
413
|
start: no() + g,
|
|
414
414
|
b: x
|
|
415
415
|
};
|
|
416
|
-
x || (H.group =
|
|
417
|
-
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = mr(e, l, x, N, g, U, R)), x &&
|
|
418
|
-
if (c && I > c.start && (a = y(c, N), c = null,
|
|
416
|
+
x || (H.group = De, De.r += 1), "inert" in e && (x ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
417
|
+
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = mr(e, l, x, N, g, U, R)), x && V(0, 1), a = y(H, N), tt(() => fn(e, x, "start")), ro((I) => {
|
|
418
|
+
if (c && I > c.start && (a = y(c, N), c = null, fn(e, a.b, "start"), R && (m(), u = mr(
|
|
419
419
|
e,
|
|
420
420
|
l,
|
|
421
421
|
a.b,
|
|
@@ -425,10 +425,10 @@ function pr(e, t, n, r) {
|
|
|
425
425
|
o.css
|
|
426
426
|
))), a) {
|
|
427
427
|
if (I >= a.end)
|
|
428
|
-
|
|
428
|
+
V(l = a.b, 1 - l), fn(e, a.b, "end"), c || (a.b ? m() : --a.group.r || Ue(a.group.c)), a = null;
|
|
429
429
|
else if (I >= a.start) {
|
|
430
|
-
const
|
|
431
|
-
l = a.a + a.d * U(
|
|
430
|
+
const W = I - a.start;
|
|
431
|
+
l = a.a + a.d * U(W / a.duration), V(l, 1 - l);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return !!(a || c);
|
|
@@ -436,7 +436,7 @@ function pr(e, t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
return {
|
|
438
438
|
run(x) {
|
|
439
|
-
|
|
439
|
+
Kt(o) ? To().then(() => {
|
|
440
440
|
o = o({ direction: x ? "in" : "out" }), A(x);
|
|
441
441
|
}) : A(x);
|
|
442
442
|
},
|
|
@@ -447,21 +447,21 @@ function pr(e, t, n, r) {
|
|
|
447
447
|
}
|
|
448
448
|
function wo(e, t, n) {
|
|
449
449
|
const { fragment: r, after_update: i } = e.$$;
|
|
450
|
-
r && r.m(t, n),
|
|
451
|
-
const o = e.$$.on_mount.map(Jr).filter(
|
|
452
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
453
|
-
}), i.forEach(
|
|
450
|
+
r && r.m(t, n), tt(() => {
|
|
451
|
+
const o = e.$$.on_mount.map(Jr).filter(Kt);
|
|
452
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ue(o), e.$$.on_mount = [];
|
|
453
|
+
}), i.forEach(tt);
|
|
454
454
|
}
|
|
455
455
|
function Ao(e, t) {
|
|
456
456
|
const n = e.$$;
|
|
457
|
-
n.fragment !== null && (vo(n.after_update),
|
|
457
|
+
n.fragment !== null && (vo(n.after_update), Ue(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
e.$$.dirty[0] === -1 && (
|
|
459
|
+
function Oo(e, t) {
|
|
460
|
+
e.$$.dirty[0] === -1 && (Je.push(e), yo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const c =
|
|
464
|
-
|
|
462
|
+
function Mo(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
463
|
+
const c = xt;
|
|
464
|
+
Et(e);
|
|
465
465
|
const u = e.$$ = {
|
|
466
466
|
fragment: null,
|
|
467
467
|
ctx: [],
|
|
@@ -487,16 +487,16 @@ function Co(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
487
487
|
let f = !1;
|
|
488
488
|
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...A) => {
|
|
489
489
|
const x = A.length ? A[0] : y;
|
|
490
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f &&
|
|
491
|
-
}) : [], u.update(), f = !0,
|
|
490
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f && Oo(e, m)), y;
|
|
491
|
+
}) : [], u.update(), f = !0, Ue(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
492
492
|
if (t.hydrate) {
|
|
493
493
|
const m = ao(t.target);
|
|
494
494
|
u.fragment && u.fragment.l(m), m.forEach(Ae);
|
|
495
495
|
} else
|
|
496
496
|
u.fragment && u.fragment.c();
|
|
497
|
-
t.intro && He(e.$$.fragment), wo(e, t.target, t.anchor),
|
|
497
|
+
t.intro && He(e.$$.fragment), wo(e, t.target, t.anchor), de();
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
Et(c);
|
|
500
500
|
}
|
|
501
501
|
let ai;
|
|
502
502
|
typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
@@ -543,14 +543,14 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
543
543
|
let l;
|
|
544
544
|
return {
|
|
545
545
|
c: function() {
|
|
546
|
-
l =
|
|
546
|
+
l = te("slot"), o !== "default" && w(l, "name", o);
|
|
547
547
|
},
|
|
548
548
|
/**
|
|
549
549
|
* @param {HTMLElement} target
|
|
550
550
|
* @param {HTMLElement} [anchor]
|
|
551
551
|
*/
|
|
552
552
|
m: function(u, f) {
|
|
553
|
-
|
|
553
|
+
ke(u, l, f);
|
|
554
554
|
},
|
|
555
555
|
d: function(u) {
|
|
556
556
|
u && Ae(l);
|
|
@@ -565,7 +565,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
565
565
|
o in r && (n[o] = [t(o)]);
|
|
566
566
|
for (const o of this.attributes) {
|
|
567
567
|
const l = this.$$g_p(o.name);
|
|
568
|
-
l in this.$$d || (this.$$d[l] =
|
|
568
|
+
l in this.$$d || (this.$$d[l] = Gt(l, o.value, this.$$p_d, "toProp"));
|
|
569
569
|
}
|
|
570
570
|
for (const o in this.$$p_d)
|
|
571
571
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
582
582
|
this.$$r = !0;
|
|
583
583
|
for (const o in this.$$p_d)
|
|
584
584
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
585
|
-
const l =
|
|
585
|
+
const l = Gt(
|
|
586
586
|
o,
|
|
587
587
|
this.$$d[o],
|
|
588
588
|
this.$$p_d,
|
|
@@ -606,7 +606,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
606
606
|
// and setting attributes through setAttribute etc, this is helpful
|
|
607
607
|
attributeChangedCallback(t, n, r) {
|
|
608
608
|
var i;
|
|
609
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
609
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Gt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
610
610
|
}
|
|
611
611
|
disconnectedCallback() {
|
|
612
612
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,7 +619,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
619
619
|
) || t;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function
|
|
622
|
+
function Gt(e, t, n, r) {
|
|
623
623
|
var o;
|
|
624
624
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
625
625
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -649,7 +649,7 @@ function Ft(e, t, n, r) {
|
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Co(e, t, n, r, i, o) {
|
|
653
653
|
let l = class extends ai {
|
|
654
654
|
constructor() {
|
|
655
655
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -667,7 +667,7 @@ function Oo(e, t, n, r, i, o) {
|
|
|
667
667
|
},
|
|
668
668
|
set(c) {
|
|
669
669
|
var u;
|
|
670
|
-
c =
|
|
670
|
+
c = Gt(a, c, t), this.$$d[a] = c, (u = this.$$c) == null || u.$set({ [a]: c });
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}), r.forEach((a) => {
|
|
@@ -710,7 +710,7 @@ class Lo {
|
|
|
710
710
|
* @returns {() => void}
|
|
711
711
|
*/
|
|
712
712
|
$on(t, n) {
|
|
713
|
-
if (!
|
|
713
|
+
if (!Kt(n))
|
|
714
714
|
return ye;
|
|
715
715
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
716
716
|
return r.push(n), () => {
|
|
@@ -737,24 +737,24 @@ function gr(e, { delay: t = 0, duration: n = 400, easing: r = qr } = {}) {
|
|
|
737
737
|
css: (o) => `opacity: ${o * i}`
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const qe = [];
|
|
741
741
|
function No(e, t) {
|
|
742
742
|
return {
|
|
743
|
-
subscribe:
|
|
743
|
+
subscribe: St(e, t).subscribe
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function St(e, t = ye) {
|
|
747
747
|
let n;
|
|
748
748
|
const r = /* @__PURE__ */ new Set();
|
|
749
749
|
function i(a) {
|
|
750
750
|
if (Qr(e, a) && (e = a, n)) {
|
|
751
|
-
const c = !
|
|
751
|
+
const c = !qe.length;
|
|
752
752
|
for (const u of r)
|
|
753
|
-
u[1](),
|
|
753
|
+
u[1](), qe.push(u, e);
|
|
754
754
|
if (c) {
|
|
755
|
-
for (let u = 0; u <
|
|
756
|
-
|
|
757
|
-
|
|
755
|
+
for (let u = 0; u < qe.length; u += 2)
|
|
756
|
+
qe[u][0](qe[u + 1]);
|
|
757
|
+
qe.length = 0;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
}
|
|
@@ -769,7 +769,7 @@ function Tt(e, t = ye) {
|
|
|
769
769
|
}
|
|
770
770
|
return { set: i, update: o, subscribe: l };
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function st(e, t, n) {
|
|
773
773
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
774
774
|
if (!i.every(Boolean))
|
|
775
775
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -783,7 +783,7 @@ function ot(e, t, n) {
|
|
|
783
783
|
return;
|
|
784
784
|
m();
|
|
785
785
|
const x = t(r ? u[0] : u, l, a);
|
|
786
|
-
o ? l(x) : m =
|
|
786
|
+
o ? l(x) : m = Kt(x) ? x : ye;
|
|
787
787
|
}, A = i.map(
|
|
788
788
|
(x, g) => Kr(
|
|
789
789
|
x,
|
|
@@ -796,12 +796,12 @@ function ot(e, t, n) {
|
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
798
|
return c = !0, y(), function() {
|
|
799
|
-
|
|
799
|
+
Ue(A), m(), c = !1;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
var li = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
804
|
-
function
|
|
804
|
+
function Dn(e) {
|
|
805
805
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
806
806
|
}
|
|
807
807
|
var Io = function(t) {
|
|
@@ -821,19 +821,19 @@ function $o(e) {
|
|
|
821
821
|
function Uo(e) {
|
|
822
822
|
return Array.isArray(e) ? [] : {};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
824
|
+
function vt(e, t) {
|
|
825
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? nt(Uo(e), e, t) : e;
|
|
826
826
|
}
|
|
827
827
|
function ko(e, t, n) {
|
|
828
828
|
return e.concat(t).map(function(r) {
|
|
829
|
-
return
|
|
829
|
+
return vt(r, n);
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
function Fo(e, t) {
|
|
833
833
|
if (!t.customMerge)
|
|
834
|
-
return
|
|
834
|
+
return nt;
|
|
835
835
|
var n = t.customMerge(e);
|
|
836
|
-
return typeof n == "function" ? n :
|
|
836
|
+
return typeof n == "function" ? n : nt;
|
|
837
837
|
}
|
|
838
838
|
function Go(e) {
|
|
839
839
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -856,65 +856,51 @@ function jo(e, t) {
|
|
|
856
856
|
function zo(e, t, n) {
|
|
857
857
|
var r = {};
|
|
858
858
|
return n.isMergeableObject(e) && _r(e).forEach(function(i) {
|
|
859
|
-
r[i] =
|
|
859
|
+
r[i] = vt(e[i], n);
|
|
860
860
|
}), _r(t).forEach(function(i) {
|
|
861
|
-
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] =
|
|
861
|
+
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] = vt(t[i], n));
|
|
862
862
|
}), r;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified =
|
|
864
|
+
function nt(e, t, n) {
|
|
865
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified = vt;
|
|
866
866
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
867
|
-
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) :
|
|
867
|
+
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) : vt(t, n);
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
nt.all = function(t, n) {
|
|
870
870
|
if (!Array.isArray(t))
|
|
871
871
|
throw new Error("first argument should be an array");
|
|
872
872
|
return t.reduce(function(r, i) {
|
|
873
|
-
return
|
|
873
|
+
return nt(r, i, n);
|
|
874
874
|
}, {});
|
|
875
875
|
};
|
|
876
|
-
var Wo =
|
|
877
|
-
const Xo = /* @__PURE__ */
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
882
|
-
purpose with or without fee is hereby granted.
|
|
883
|
-
|
|
884
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
885
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
886
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
887
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
888
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
889
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
890
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
891
|
-
***************************************************************************** */
|
|
892
|
-
var vn = function(e, t) {
|
|
893
|
-
return vn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
876
|
+
var Wo = nt, Vo = Wo;
|
|
877
|
+
const Xo = /* @__PURE__ */ Dn(Vo);
|
|
878
|
+
var Sn = function(e, t) {
|
|
879
|
+
return Sn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
894
880
|
n.__proto__ = r;
|
|
895
881
|
} || function(n, r) {
|
|
896
882
|
for (var i in r)
|
|
897
883
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
898
|
-
},
|
|
884
|
+
}, Sn(e, t);
|
|
899
885
|
};
|
|
900
|
-
function
|
|
886
|
+
function en(e, t) {
|
|
901
887
|
if (typeof t != "function" && t !== null)
|
|
902
888
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
903
|
-
|
|
889
|
+
Sn(e, t);
|
|
904
890
|
function n() {
|
|
905
891
|
this.constructor = e;
|
|
906
892
|
}
|
|
907
893
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
908
894
|
}
|
|
909
|
-
var
|
|
910
|
-
return
|
|
895
|
+
var Ne = function() {
|
|
896
|
+
return Ne = Object.assign || function(t) {
|
|
911
897
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
912
898
|
n = arguments[r];
|
|
913
899
|
for (var o in n)
|
|
914
900
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
915
901
|
}
|
|
916
902
|
return t;
|
|
917
|
-
},
|
|
903
|
+
}, Ne.apply(this, arguments);
|
|
918
904
|
};
|
|
919
905
|
function Yo(e, t) {
|
|
920
906
|
var n = {};
|
|
@@ -925,14 +911,14 @@ function Yo(e, t) {
|
|
|
925
911
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
926
912
|
return n;
|
|
927
913
|
}
|
|
928
|
-
function
|
|
929
|
-
if (arguments.length === 2)
|
|
914
|
+
function hn(e, t, n) {
|
|
915
|
+
if (n || arguments.length === 2)
|
|
930
916
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
931
917
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
932
|
-
return e.concat(o || t);
|
|
918
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
933
919
|
}
|
|
934
|
-
function
|
|
935
|
-
var n = t && t.cache ? t.cache :
|
|
920
|
+
function mn(e, t) {
|
|
921
|
+
var n = t && t.cache ? t.cache : ts, r = t && t.serializer ? t.serializer : Ko, i = t && t.strategy ? t.strategy : Jo;
|
|
936
922
|
return i(e, {
|
|
937
923
|
cache: n,
|
|
938
924
|
serializer: r
|
|
@@ -941,95 +927,103 @@ function fn(e, t) {
|
|
|
941
927
|
function Zo(e) {
|
|
942
928
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
943
929
|
}
|
|
944
|
-
function
|
|
930
|
+
function qo(e, t, n, r) {
|
|
945
931
|
var i = Zo(r) ? r : n(r), o = t.get(i);
|
|
946
932
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
947
933
|
}
|
|
948
|
-
function
|
|
934
|
+
function ci(e, t, n) {
|
|
949
935
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
950
936
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
951
937
|
}
|
|
952
|
-
function
|
|
938
|
+
function fi(e, t, n, r, i) {
|
|
953
939
|
return n.bind(t, e, r, i);
|
|
954
940
|
}
|
|
955
|
-
function qo(e, t) {
|
|
956
|
-
var n = e.length === 1 ? ci : fi;
|
|
957
|
-
return Rn(e, this, n, t.cache.create(), t.serializer);
|
|
958
|
-
}
|
|
959
941
|
function Jo(e, t) {
|
|
960
|
-
|
|
942
|
+
var n = e.length === 1 ? qo : ci;
|
|
943
|
+
return fi(e, this, n, t.cache.create(), t.serializer);
|
|
961
944
|
}
|
|
962
945
|
function Qo(e, t) {
|
|
963
|
-
return
|
|
946
|
+
return fi(e, this, ci, t.cache.create(), t.serializer);
|
|
964
947
|
}
|
|
965
948
|
var Ko = function() {
|
|
966
949
|
return JSON.stringify(arguments);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
950
|
+
}, es = (
|
|
951
|
+
/** @class */
|
|
952
|
+
function() {
|
|
953
|
+
function e() {
|
|
954
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
955
|
+
}
|
|
956
|
+
return e.prototype.get = function(t) {
|
|
957
|
+
return this.cache[t];
|
|
958
|
+
}, e.prototype.set = function(t, n) {
|
|
959
|
+
this.cache[t] = n;
|
|
960
|
+
}, e;
|
|
961
|
+
}()
|
|
962
|
+
), ts = {
|
|
978
963
|
create: function() {
|
|
979
|
-
return new
|
|
964
|
+
return new es();
|
|
980
965
|
}
|
|
981
|
-
},
|
|
982
|
-
variadic:
|
|
983
|
-
|
|
984
|
-
|
|
966
|
+
}, pn = {
|
|
967
|
+
variadic: Qo
|
|
968
|
+
}, Zt = function() {
|
|
969
|
+
return Zt = Object.assign || function(t) {
|
|
970
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
971
|
+
n = arguments[r];
|
|
972
|
+
for (var o in n)
|
|
973
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
974
|
+
}
|
|
975
|
+
return t;
|
|
976
|
+
}, Zt.apply(this, arguments);
|
|
977
|
+
};
|
|
978
|
+
var F;
|
|
985
979
|
(function(e) {
|
|
986
980
|
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";
|
|
987
981
|
})(F || (F = {}));
|
|
988
|
-
var
|
|
982
|
+
var Q;
|
|
989
983
|
(function(e) {
|
|
990
984
|
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";
|
|
991
|
-
})(
|
|
992
|
-
var
|
|
985
|
+
})(Q || (Q = {}));
|
|
986
|
+
var rt;
|
|
993
987
|
(function(e) {
|
|
994
988
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
995
|
-
})(
|
|
989
|
+
})(rt || (rt = {}));
|
|
996
990
|
function br(e) {
|
|
997
|
-
return e.type ===
|
|
991
|
+
return e.type === Q.literal;
|
|
998
992
|
}
|
|
999
|
-
function
|
|
1000
|
-
return e.type ===
|
|
993
|
+
function ns(e) {
|
|
994
|
+
return e.type === Q.argument;
|
|
1001
995
|
}
|
|
1002
996
|
function hi(e) {
|
|
1003
|
-
return e.type ===
|
|
997
|
+
return e.type === Q.number;
|
|
1004
998
|
}
|
|
1005
999
|
function mi(e) {
|
|
1006
|
-
return e.type ===
|
|
1007
|
-
}
|
|
1008
|
-
function di(e) {
|
|
1009
|
-
return e.type === K.time;
|
|
1000
|
+
return e.type === Q.date;
|
|
1010
1001
|
}
|
|
1011
1002
|
function pi(e) {
|
|
1012
|
-
return e.type ===
|
|
1003
|
+
return e.type === Q.time;
|
|
1004
|
+
}
|
|
1005
|
+
function di(e) {
|
|
1006
|
+
return e.type === Q.select;
|
|
1013
1007
|
}
|
|
1014
1008
|
function gi(e) {
|
|
1015
|
-
return e.type ===
|
|
1009
|
+
return e.type === Q.plural;
|
|
1016
1010
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return e.type ===
|
|
1011
|
+
function rs(e) {
|
|
1012
|
+
return e.type === Q.pound;
|
|
1019
1013
|
}
|
|
1020
1014
|
function _i(e) {
|
|
1021
|
-
return e.type ===
|
|
1015
|
+
return e.type === Q.tag;
|
|
1022
1016
|
}
|
|
1023
1017
|
function bi(e) {
|
|
1024
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1018
|
+
return !!(e && typeof e == "object" && e.type === rt.number);
|
|
1025
1019
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1020
|
+
function wn(e) {
|
|
1021
|
+
return !!(e && typeof e == "object" && e.type === rt.dateTime);
|
|
1028
1022
|
}
|
|
1029
|
-
var Ei = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1030
|
-
function
|
|
1023
|
+
var Ei = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, is = /(?:[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;
|
|
1024
|
+
function os(e) {
|
|
1031
1025
|
var t = {};
|
|
1032
|
-
return e.replace(
|
|
1026
|
+
return e.replace(is, function(n) {
|
|
1033
1027
|
var r = n.length;
|
|
1034
1028
|
switch (n[0]) {
|
|
1035
1029
|
case "G":
|
|
@@ -1118,11 +1112,21 @@ function is(e) {
|
|
|
1118
1112
|
return "";
|
|
1119
1113
|
}), t;
|
|
1120
1114
|
}
|
|
1121
|
-
var
|
|
1122
|
-
function
|
|
1115
|
+
var ie = function() {
|
|
1116
|
+
return ie = Object.assign || function(t) {
|
|
1117
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1118
|
+
n = arguments[r];
|
|
1119
|
+
for (var o in n)
|
|
1120
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1121
|
+
}
|
|
1122
|
+
return t;
|
|
1123
|
+
}, ie.apply(this, arguments);
|
|
1124
|
+
};
|
|
1125
|
+
var ss = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1126
|
+
function as(e) {
|
|
1123
1127
|
if (e.length === 0)
|
|
1124
1128
|
throw new Error("Number skeleton cannot be empty");
|
|
1125
|
-
for (var t = e.split(
|
|
1129
|
+
for (var t = e.split(ss).filter(function(y) {
|
|
1126
1130
|
return y.length > 0;
|
|
1127
1131
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1128
1132
|
var o = i[r], l = o.split("/");
|
|
@@ -1137,10 +1141,10 @@ function ss(e) {
|
|
|
1137
1141
|
}
|
|
1138
1142
|
return n;
|
|
1139
1143
|
}
|
|
1140
|
-
function
|
|
1144
|
+
function ls(e) {
|
|
1141
1145
|
return e.replace(/^(.*?)-/, "");
|
|
1142
1146
|
}
|
|
1143
|
-
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1147
|
+
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yi = /^(@+)?(\+|#+)?[rs]?$/g, us = /(\*)(0+)|(#+)(0+)|(0+)/g, xi = /^(0+)$/;
|
|
1144
1148
|
function yr(e) {
|
|
1145
1149
|
var t = {};
|
|
1146
1150
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yi, function(n, r, i) {
|
|
@@ -1187,7 +1191,7 @@ function vi(e) {
|
|
|
1187
1191
|
};
|
|
1188
1192
|
}
|
|
1189
1193
|
}
|
|
1190
|
-
function
|
|
1194
|
+
function cs(e) {
|
|
1191
1195
|
var t;
|
|
1192
1196
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1193
1197
|
notation: "engineering"
|
|
@@ -1205,7 +1209,7 @@ function xr(e) {
|
|
|
1205
1209
|
var t = {}, n = vi(e);
|
|
1206
1210
|
return n || t;
|
|
1207
1211
|
}
|
|
1208
|
-
function
|
|
1212
|
+
function fs(e) {
|
|
1209
1213
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1210
1214
|
var i = r[n];
|
|
1211
1215
|
switch (i.stem) {
|
|
@@ -1229,7 +1233,7 @@ function cs(e) {
|
|
|
1229
1233
|
continue;
|
|
1230
1234
|
case "measure-unit":
|
|
1231
1235
|
case "unit":
|
|
1232
|
-
t.style = "unit", t.unit =
|
|
1236
|
+
t.style = "unit", t.unit = ls(i.options[0]);
|
|
1233
1237
|
continue;
|
|
1234
1238
|
case "compact-short":
|
|
1235
1239
|
case "K":
|
|
@@ -1240,13 +1244,13 @@ function cs(e) {
|
|
|
1240
1244
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1241
1245
|
continue;
|
|
1242
1246
|
case "scientific":
|
|
1243
|
-
t =
|
|
1244
|
-
return
|
|
1247
|
+
t = ie(ie(ie({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1248
|
+
return ie(ie({}, c), xr(u));
|
|
1245
1249
|
}, {}));
|
|
1246
1250
|
continue;
|
|
1247
1251
|
case "engineering":
|
|
1248
|
-
t =
|
|
1249
|
-
return
|
|
1252
|
+
t = ie(ie(ie({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1253
|
+
return ie(ie({}, c), xr(u));
|
|
1250
1254
|
}, {}));
|
|
1251
1255
|
continue;
|
|
1252
1256
|
case "notation-simple":
|
|
@@ -1291,7 +1295,7 @@ function cs(e) {
|
|
|
1291
1295
|
case "integer-width":
|
|
1292
1296
|
if (i.options.length > 1)
|
|
1293
1297
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1294
|
-
i.options[0].replace(
|
|
1298
|
+
i.options[0].replace(us, function(c, u, f, m, y, A) {
|
|
1295
1299
|
if (u)
|
|
1296
1300
|
t.minimumIntegerDigits = f.length;
|
|
1297
1301
|
else {
|
|
@@ -1315,21 +1319,21 @@ function cs(e) {
|
|
|
1315
1319
|
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : y && A ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + A.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1316
1320
|
});
|
|
1317
1321
|
var o = i.options[0];
|
|
1318
|
-
o === "w" ? t =
|
|
1322
|
+
o === "w" ? t = ie(ie({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = ie(ie({}, t), yr(o)));
|
|
1319
1323
|
continue;
|
|
1320
1324
|
}
|
|
1321
1325
|
if (yi.test(i.stem)) {
|
|
1322
|
-
t =
|
|
1326
|
+
t = ie(ie({}, t), yr(i.stem));
|
|
1323
1327
|
continue;
|
|
1324
1328
|
}
|
|
1325
1329
|
var l = vi(i.stem);
|
|
1326
|
-
l && (t =
|
|
1327
|
-
var a =
|
|
1328
|
-
a && (t =
|
|
1330
|
+
l && (t = ie(ie({}, t), l));
|
|
1331
|
+
var a = cs(i.stem);
|
|
1332
|
+
a && (t = ie(ie({}, t), a));
|
|
1329
1333
|
}
|
|
1330
1334
|
return t;
|
|
1331
1335
|
}
|
|
1332
|
-
var
|
|
1336
|
+
var Pt = {
|
|
1333
1337
|
"001": [
|
|
1334
1338
|
"H",
|
|
1335
1339
|
"h"
|
|
@@ -2744,13 +2748,13 @@ var It = {
|
|
|
2744
2748
|
"h"
|
|
2745
2749
|
]
|
|
2746
2750
|
};
|
|
2747
|
-
function
|
|
2751
|
+
function hs(e, t) {
|
|
2748
2752
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2749
2753
|
var i = e.charAt(r);
|
|
2750
2754
|
if (i === "j") {
|
|
2751
2755
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2752
2756
|
o++, r++;
|
|
2753
|
-
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u =
|
|
2757
|
+
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = ms(t);
|
|
2754
2758
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2755
2759
|
n += c;
|
|
2756
2760
|
for (; l-- > 0; )
|
|
@@ -2760,7 +2764,7 @@ function fs(e, t) {
|
|
|
2760
2764
|
}
|
|
2761
2765
|
return n;
|
|
2762
2766
|
}
|
|
2763
|
-
function
|
|
2767
|
+
function ms(e) {
|
|
2764
2768
|
var t = e.hourCycle;
|
|
2765
2769
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2766
2770
|
e.hourCycles && // @ts-ignore
|
|
@@ -2779,23 +2783,23 @@ function hs(e) {
|
|
|
2779
2783
|
}
|
|
2780
2784
|
var n = e.language, r;
|
|
2781
2785
|
n !== "root" && (r = e.maximize().region);
|
|
2782
|
-
var i =
|
|
2786
|
+
var i = Pt[r || ""] || Pt[n || ""] || Pt["".concat(n, "-001")] || Pt["001"];
|
|
2783
2787
|
return i[0];
|
|
2784
2788
|
}
|
|
2785
|
-
var
|
|
2789
|
+
var dn, ps = new RegExp("^".concat(Ei.source, "*")), ds = new RegExp("".concat(Ei.source, "*$"));
|
|
2786
2790
|
function G(e, t) {
|
|
2787
2791
|
return { start: e, end: t };
|
|
2788
2792
|
}
|
|
2789
|
-
var
|
|
2793
|
+
var gs = !!String.prototype.startsWith && "_a".startsWith("a", 1), _s = !!String.fromCodePoint, bs = !!Object.fromEntries, Es = !!String.prototype.codePointAt, ys = !!String.prototype.trimStart, xs = !!String.prototype.trimEnd, vs = !!Number.isSafeInteger, Ts = vs ? Number.isSafeInteger : function(e) {
|
|
2790
2794
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2791
|
-
},
|
|
2795
|
+
}, An = !0;
|
|
2792
2796
|
try {
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2797
|
+
var Ss = Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2798
|
+
An = ((dn = Ss.exec("a")) === null || dn === void 0 ? void 0 : dn[0]) === "a";
|
|
2795
2799
|
} catch (e) {
|
|
2796
|
-
|
|
2800
|
+
An = !1;
|
|
2797
2801
|
}
|
|
2798
|
-
var vr =
|
|
2802
|
+
var vr = gs ? (
|
|
2799
2803
|
// Native
|
|
2800
2804
|
function(t, n, r) {
|
|
2801
2805
|
return t.startsWith(n, r);
|
|
@@ -2805,7 +2809,7 @@ var vr = ps ? (
|
|
|
2805
2809
|
function(t, n, r) {
|
|
2806
2810
|
return t.slice(r, r + n.length) === n;
|
|
2807
2811
|
}
|
|
2808
|
-
),
|
|
2812
|
+
), On = _s ? String.fromCodePoint : (
|
|
2809
2813
|
// IE11
|
|
2810
2814
|
function() {
|
|
2811
2815
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2819,7 +2823,7 @@ var vr = ps ? (
|
|
|
2819
2823
|
}
|
|
2820
2824
|
), Tr = (
|
|
2821
2825
|
// native
|
|
2822
|
-
|
|
2826
|
+
bs ? Object.fromEntries : (
|
|
2823
2827
|
// Ponyfill
|
|
2824
2828
|
function(t) {
|
|
2825
2829
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2829,7 +2833,7 @@ var vr = ps ? (
|
|
|
2829
2833
|
return n;
|
|
2830
2834
|
}
|
|
2831
2835
|
)
|
|
2832
|
-
), Ti =
|
|
2836
|
+
), Ti = Es ? (
|
|
2833
2837
|
// Native
|
|
2834
2838
|
function(t, n) {
|
|
2835
2839
|
return t.codePointAt(n);
|
|
@@ -2843,7 +2847,7 @@ var vr = ps ? (
|
|
|
2843
2847
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2844
2848
|
}
|
|
2845
2849
|
}
|
|
2846
|
-
),
|
|
2850
|
+
), ws = ys ? (
|
|
2847
2851
|
// Native
|
|
2848
2852
|
function(t) {
|
|
2849
2853
|
return t.trimStart();
|
|
@@ -2851,9 +2855,9 @@ var vr = ps ? (
|
|
|
2851
2855
|
) : (
|
|
2852
2856
|
// Ponyfill
|
|
2853
2857
|
function(t) {
|
|
2854
|
-
return t.replace(
|
|
2858
|
+
return t.replace(ps, "");
|
|
2855
2859
|
}
|
|
2856
|
-
),
|
|
2860
|
+
), As = xs ? (
|
|
2857
2861
|
// Native
|
|
2858
2862
|
function(t) {
|
|
2859
2863
|
return t.trimEnd();
|
|
@@ -2867,26 +2871,26 @@ var vr = ps ? (
|
|
|
2867
2871
|
function Si(e, t) {
|
|
2868
2872
|
return new RegExp(e, t);
|
|
2869
2873
|
}
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2874
|
+
var Mn;
|
|
2875
|
+
if (An) {
|
|
2872
2876
|
var Sr = Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2873
|
-
|
|
2877
|
+
Mn = function(t, n) {
|
|
2874
2878
|
var r;
|
|
2875
2879
|
Sr.lastIndex = n;
|
|
2876
2880
|
var i = Sr.exec(t);
|
|
2877
2881
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2878
2882
|
};
|
|
2879
2883
|
} else
|
|
2880
|
-
|
|
2884
|
+
Mn = function(t, n) {
|
|
2881
2885
|
for (var r = []; ; ) {
|
|
2882
2886
|
var i = Ti(t, n);
|
|
2883
|
-
if (i === void 0 || wi(i) ||
|
|
2887
|
+
if (i === void 0 || wi(i) || Ls(i))
|
|
2884
2888
|
break;
|
|
2885
2889
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2886
2890
|
}
|
|
2887
|
-
return
|
|
2891
|
+
return On.apply(void 0, r);
|
|
2888
2892
|
};
|
|
2889
|
-
var
|
|
2893
|
+
var Os = (
|
|
2890
2894
|
/** @class */
|
|
2891
2895
|
function() {
|
|
2892
2896
|
function e(t, n) {
|
|
@@ -2910,14 +2914,14 @@ var As = (
|
|
|
2910
2914
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2911
2915
|
var a = this.clonePosition();
|
|
2912
2916
|
this.bump(), i.push({
|
|
2913
|
-
type:
|
|
2917
|
+
type: Q.pound,
|
|
2914
2918
|
location: G(a, this.clonePosition())
|
|
2915
2919
|
});
|
|
2916
2920
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2917
2921
|
if (r)
|
|
2918
2922
|
break;
|
|
2919
2923
|
return this.error(F.UNMATCHED_CLOSING_TAG, G(this.clonePosition(), this.clonePosition()));
|
|
2920
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2924
|
+
} else if (o === 60 && !this.ignoreTag && Cn(this.peek() || 0)) {
|
|
2921
2925
|
var l = this.parseTag(t, n);
|
|
2922
2926
|
if (l.err)
|
|
2923
2927
|
return l;
|
|
@@ -2938,7 +2942,7 @@ var As = (
|
|
|
2938
2942
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2939
2943
|
return {
|
|
2940
2944
|
val: {
|
|
2941
|
-
type:
|
|
2945
|
+
type: Q.literal,
|
|
2942
2946
|
value: "<".concat(i, "/>"),
|
|
2943
2947
|
location: G(r, this.clonePosition())
|
|
2944
2948
|
},
|
|
@@ -2950,12 +2954,12 @@ var As = (
|
|
|
2950
2954
|
return o;
|
|
2951
2955
|
var l = o.val, a = this.clonePosition();
|
|
2952
2956
|
if (this.bumpIf("</")) {
|
|
2953
|
-
if (this.isEOF() || !
|
|
2957
|
+
if (this.isEOF() || !Cn(this.char()))
|
|
2954
2958
|
return this.error(F.INVALID_TAG, G(a, this.clonePosition()));
|
|
2955
2959
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2956
2960
|
return i !== u ? this.error(F.UNMATCHED_CLOSING_TAG, G(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2957
2961
|
val: {
|
|
2958
|
-
type:
|
|
2962
|
+
type: Q.tag,
|
|
2959
2963
|
value: i,
|
|
2960
2964
|
children: l,
|
|
2961
2965
|
location: G(r, this.clonePosition())
|
|
@@ -2992,7 +2996,7 @@ var As = (
|
|
|
2992
2996
|
}
|
|
2993
2997
|
var c = G(r, this.clonePosition());
|
|
2994
2998
|
return {
|
|
2995
|
-
val: { type:
|
|
2999
|
+
val: { type: Q.literal, value: i, location: c },
|
|
2996
3000
|
err: null
|
|
2997
3001
|
};
|
|
2998
3002
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3031,12 +3035,12 @@ var As = (
|
|
|
3031
3035
|
n.push(r);
|
|
3032
3036
|
this.bump();
|
|
3033
3037
|
}
|
|
3034
|
-
return
|
|
3038
|
+
return On.apply(void 0, n);
|
|
3035
3039
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3036
3040
|
if (this.isEOF())
|
|
3037
3041
|
return null;
|
|
3038
3042
|
var r = this.char();
|
|
3039
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3043
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), On(r));
|
|
3040
3044
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3041
3045
|
var r = this.clonePosition();
|
|
3042
3046
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3052,7 +3056,7 @@ var As = (
|
|
|
3052
3056
|
case 125:
|
|
3053
3057
|
return this.bump(), {
|
|
3054
3058
|
val: {
|
|
3055
|
-
type:
|
|
3059
|
+
type: Q.argument,
|
|
3056
3060
|
// value does not include the opening and closing braces.
|
|
3057
3061
|
value: i,
|
|
3058
3062
|
location: G(r, this.clonePosition())
|
|
@@ -3065,7 +3069,7 @@ var As = (
|
|
|
3065
3069
|
return this.error(F.MALFORMED_ARGUMENT, G(r, this.clonePosition()));
|
|
3066
3070
|
}
|
|
3067
3071
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3068
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3072
|
+
var t = this.clonePosition(), n = this.offset(), r = Mn(this.message, n), i = n + r.length;
|
|
3069
3073
|
this.bumpTo(i);
|
|
3070
3074
|
var o = this.clonePosition(), l = G(t, o);
|
|
3071
3075
|
return { value: r, location: l };
|
|
@@ -3084,7 +3088,7 @@ var As = (
|
|
|
3084
3088
|
var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3085
3089
|
if (m.err)
|
|
3086
3090
|
return m;
|
|
3087
|
-
var y =
|
|
3091
|
+
var y = As(m.val);
|
|
3088
3092
|
if (y.length === 0)
|
|
3089
3093
|
return this.error(F.EXPECT_ARGUMENT_STYLE, G(this.clonePosition(), this.clonePosition()));
|
|
3090
3094
|
var A = G(f, this.clonePosition());
|
|
@@ -3095,33 +3099,33 @@ var As = (
|
|
|
3095
3099
|
return x;
|
|
3096
3100
|
var g = G(i, this.clonePosition());
|
|
3097
3101
|
if (u && vr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3098
|
-
var N =
|
|
3102
|
+
var N = ws(u.style.slice(2));
|
|
3099
3103
|
if (a === "number") {
|
|
3100
3104
|
var m = this.parseNumberSkeletonFromString(N, u.styleLocation);
|
|
3101
3105
|
return m.err ? m : {
|
|
3102
|
-
val: { type:
|
|
3106
|
+
val: { type: Q.number, value: r, location: g, style: m.val },
|
|
3103
3107
|
err: null
|
|
3104
3108
|
};
|
|
3105
3109
|
} else {
|
|
3106
3110
|
if (N.length === 0)
|
|
3107
3111
|
return this.error(F.EXPECT_DATE_TIME_SKELETON, g);
|
|
3108
3112
|
var U = N;
|
|
3109
|
-
this.locale && (U =
|
|
3113
|
+
this.locale && (U = hs(N, this.locale));
|
|
3110
3114
|
var y = {
|
|
3111
|
-
type:
|
|
3115
|
+
type: rt.dateTime,
|
|
3112
3116
|
pattern: U,
|
|
3113
3117
|
location: u.styleLocation,
|
|
3114
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3115
|
-
},
|
|
3118
|
+
parsedOptions: this.shouldParseSkeletons ? os(U) : {}
|
|
3119
|
+
}, V = a === "date" ? Q.date : Q.time;
|
|
3116
3120
|
return {
|
|
3117
|
-
val: { type:
|
|
3121
|
+
val: { type: V, value: r, location: g, style: y },
|
|
3118
3122
|
err: null
|
|
3119
3123
|
};
|
|
3120
3124
|
}
|
|
3121
3125
|
}
|
|
3122
3126
|
return {
|
|
3123
3127
|
val: {
|
|
3124
|
-
type: a === "number" ?
|
|
3128
|
+
type: a === "number" ? Q.number : a === "date" ? Q.date : Q.time,
|
|
3125
3129
|
value: r,
|
|
3126
3130
|
location: g,
|
|
3127
3131
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3134,7 +3138,7 @@ var As = (
|
|
|
3134
3138
|
case "select": {
|
|
3135
3139
|
var R = this.clonePosition();
|
|
3136
3140
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3137
|
-
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, G(R,
|
|
3141
|
+
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, G(R, Zt({}, R)));
|
|
3138
3142
|
this.bumpSpace();
|
|
3139
3143
|
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3140
3144
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3146,26 +3150,26 @@ var As = (
|
|
|
3146
3150
|
return m;
|
|
3147
3151
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = m.val;
|
|
3148
3152
|
}
|
|
3149
|
-
var
|
|
3150
|
-
if (
|
|
3151
|
-
return
|
|
3153
|
+
var W = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3154
|
+
if (W.err)
|
|
3155
|
+
return W;
|
|
3152
3156
|
var x = this.tryParseArgumentClose(i);
|
|
3153
3157
|
if (x.err)
|
|
3154
3158
|
return x;
|
|
3155
3159
|
var oe = G(i, this.clonePosition());
|
|
3156
3160
|
return a === "select" ? {
|
|
3157
3161
|
val: {
|
|
3158
|
-
type:
|
|
3162
|
+
type: Q.select,
|
|
3159
3163
|
value: r,
|
|
3160
|
-
options: Tr(
|
|
3164
|
+
options: Tr(W.val),
|
|
3161
3165
|
location: oe
|
|
3162
3166
|
},
|
|
3163
3167
|
err: null
|
|
3164
3168
|
} : {
|
|
3165
3169
|
val: {
|
|
3166
|
-
type:
|
|
3170
|
+
type: Q.plural,
|
|
3167
3171
|
value: r,
|
|
3168
|
-
options: Tr(
|
|
3172
|
+
options: Tr(W.val),
|
|
3169
3173
|
offset: I,
|
|
3170
3174
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3171
3175
|
location: oe
|
|
@@ -3216,16 +3220,16 @@ var As = (
|
|
|
3216
3220
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3217
3221
|
var r = [];
|
|
3218
3222
|
try {
|
|
3219
|
-
r =
|
|
3223
|
+
r = as(t);
|
|
3220
3224
|
} catch (i) {
|
|
3221
3225
|
return this.error(F.INVALID_NUMBER_SKELETON, n);
|
|
3222
3226
|
}
|
|
3223
3227
|
return {
|
|
3224
3228
|
val: {
|
|
3225
|
-
type:
|
|
3229
|
+
type: rt.number,
|
|
3226
3230
|
tokens: r,
|
|
3227
3231
|
location: n,
|
|
3228
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3232
|
+
parsedOptions: this.shouldParseSkeletons ? fs(r) : {}
|
|
3229
3233
|
},
|
|
3230
3234
|
err: null
|
|
3231
3235
|
};
|
|
@@ -3273,7 +3277,7 @@ var As = (
|
|
|
3273
3277
|
break;
|
|
3274
3278
|
}
|
|
3275
3279
|
var c = G(i, this.clonePosition());
|
|
3276
|
-
return o ? (l *= r,
|
|
3280
|
+
return o ? (l *= r, Ts(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3277
3281
|
}, e.prototype.offset = function() {
|
|
3278
3282
|
return this.position.offset;
|
|
3279
3283
|
}, e.prototype.isEOF = function() {
|
|
@@ -3339,11 +3343,11 @@ var As = (
|
|
|
3339
3343
|
}, e;
|
|
3340
3344
|
}()
|
|
3341
3345
|
);
|
|
3342
|
-
function
|
|
3346
|
+
function Cn(e) {
|
|
3343
3347
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3344
3348
|
}
|
|
3345
3349
|
function Ms(e) {
|
|
3346
|
-
return
|
|
3350
|
+
return Cn(e) || e === 47;
|
|
3347
3351
|
}
|
|
3348
3352
|
function Cs(e) {
|
|
3349
3353
|
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;
|
|
@@ -3351,35 +3355,35 @@ function Cs(e) {
|
|
|
3351
3355
|
function wi(e) {
|
|
3352
3356
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3353
3357
|
}
|
|
3354
|
-
function
|
|
3358
|
+
function Ls(e) {
|
|
3355
3359
|
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;
|
|
3356
3360
|
}
|
|
3357
|
-
function
|
|
3361
|
+
function Ln(e) {
|
|
3358
3362
|
e.forEach(function(t) {
|
|
3359
|
-
if (delete t.location,
|
|
3363
|
+
if (delete t.location, di(t) || gi(t))
|
|
3360
3364
|
for (var n in t.options)
|
|
3361
|
-
delete t.options[n].location,
|
|
3365
|
+
delete t.options[n].location, Ln(t.options[n].value);
|
|
3362
3366
|
else
|
|
3363
|
-
hi(t) && bi(t.style) || (mi(t) ||
|
|
3367
|
+
hi(t) && bi(t.style) || (mi(t) || pi(t)) && wn(t.style) ? delete t.style.location : _i(t) && Ln(t.children);
|
|
3364
3368
|
});
|
|
3365
3369
|
}
|
|
3366
|
-
function
|
|
3367
|
-
t === void 0 && (t = {}), t =
|
|
3368
|
-
var n = new
|
|
3370
|
+
function Hs(e, t) {
|
|
3371
|
+
t === void 0 && (t = {}), t = Zt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3372
|
+
var n = new Os(e, t).parse();
|
|
3369
3373
|
if (n.err) {
|
|
3370
3374
|
var r = SyntaxError(F[n.err.kind]);
|
|
3371
3375
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3372
3376
|
}
|
|
3373
|
-
return t != null && t.captureLocation ||
|
|
3377
|
+
return t != null && t.captureLocation || Ln(n.val), n.val;
|
|
3374
3378
|
}
|
|
3375
|
-
var
|
|
3379
|
+
var it;
|
|
3376
3380
|
(function(e) {
|
|
3377
3381
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3378
|
-
})(
|
|
3379
|
-
var
|
|
3382
|
+
})(it || (it = {}));
|
|
3383
|
+
var tn = (
|
|
3380
3384
|
/** @class */
|
|
3381
3385
|
function(e) {
|
|
3382
|
-
|
|
3386
|
+
en(t, e);
|
|
3383
3387
|
function t(n, r, i) {
|
|
3384
3388
|
var o = e.call(this, n) || this;
|
|
3385
3389
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3391,44 +3395,44 @@ var Kt = (
|
|
|
3391
3395
|
), wr = (
|
|
3392
3396
|
/** @class */
|
|
3393
3397
|
function(e) {
|
|
3394
|
-
|
|
3398
|
+
en(t, e);
|
|
3395
3399
|
function t(n, r, i, o) {
|
|
3396
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3400
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), it.INVALID_VALUE, o) || this;
|
|
3397
3401
|
}
|
|
3398
3402
|
return t;
|
|
3399
|
-
}(
|
|
3400
|
-
),
|
|
3403
|
+
}(tn)
|
|
3404
|
+
), Ns = (
|
|
3401
3405
|
/** @class */
|
|
3402
3406
|
function(e) {
|
|
3403
|
-
|
|
3407
|
+
en(t, e);
|
|
3404
3408
|
function t(n, r, i) {
|
|
3405
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3409
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), it.INVALID_VALUE, i) || this;
|
|
3406
3410
|
}
|
|
3407
3411
|
return t;
|
|
3408
|
-
}(
|
|
3409
|
-
),
|
|
3412
|
+
}(tn)
|
|
3413
|
+
), Is = (
|
|
3410
3414
|
/** @class */
|
|
3411
3415
|
function(e) {
|
|
3412
|
-
|
|
3416
|
+
en(t, e);
|
|
3413
3417
|
function t(n, r) {
|
|
3414
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3418
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), it.MISSING_VALUE, r) || this;
|
|
3415
3419
|
}
|
|
3416
3420
|
return t;
|
|
3417
|
-
}(
|
|
3421
|
+
}(tn)
|
|
3418
3422
|
), ge;
|
|
3419
3423
|
(function(e) {
|
|
3420
3424
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3421
3425
|
})(ge || (ge = {}));
|
|
3422
|
-
function
|
|
3426
|
+
function Ps(e) {
|
|
3423
3427
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3424
3428
|
var r = t[t.length - 1];
|
|
3425
3429
|
return !r || r.type !== ge.literal || n.type !== ge.literal ? t.push(n) : r.value += n.value, t;
|
|
3426
3430
|
}, []);
|
|
3427
3431
|
}
|
|
3428
|
-
function
|
|
3432
|
+
function Rs(e) {
|
|
3429
3433
|
return typeof e == "function";
|
|
3430
3434
|
}
|
|
3431
|
-
function
|
|
3435
|
+
function jt(e, t, n, r, i, o, l) {
|
|
3432
3436
|
if (e.length === 1 && br(e[0]))
|
|
3433
3437
|
return [
|
|
3434
3438
|
{
|
|
@@ -3445,7 +3449,7 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3445
3449
|
});
|
|
3446
3450
|
continue;
|
|
3447
3451
|
}
|
|
3448
|
-
if (
|
|
3452
|
+
if (rs(f)) {
|
|
3449
3453
|
typeof o == "number" && a.push({
|
|
3450
3454
|
type: ge.literal,
|
|
3451
3455
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3454,9 +3458,9 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3454
3458
|
}
|
|
3455
3459
|
var m = f.value;
|
|
3456
3460
|
if (!(i && m in i))
|
|
3457
|
-
throw new
|
|
3461
|
+
throw new Is(m, l);
|
|
3458
3462
|
var y = i[m];
|
|
3459
|
-
if (
|
|
3463
|
+
if (ns(f)) {
|
|
3460
3464
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3461
3465
|
type: typeof y == "string" ? ge.literal : ge.object,
|
|
3462
3466
|
value: y
|
|
@@ -3464,15 +3468,15 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3464
3468
|
continue;
|
|
3465
3469
|
}
|
|
3466
3470
|
if (mi(f)) {
|
|
3467
|
-
var A = typeof f.style == "string" ? r.date[f.style] :
|
|
3471
|
+
var A = typeof f.style == "string" ? r.date[f.style] : wn(f.style) ? f.style.parsedOptions : void 0;
|
|
3468
3472
|
a.push({
|
|
3469
3473
|
type: ge.literal,
|
|
3470
3474
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
3471
3475
|
});
|
|
3472
3476
|
continue;
|
|
3473
3477
|
}
|
|
3474
|
-
if (
|
|
3475
|
-
var A = typeof f.style == "string" ? r.time[f.style] :
|
|
3478
|
+
if (pi(f)) {
|
|
3479
|
+
var A = typeof f.style == "string" ? r.time[f.style] : wn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3476
3480
|
a.push({
|
|
3477
3481
|
type: ge.literal,
|
|
3478
3482
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
@@ -3489,54 +3493,54 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3489
3493
|
}
|
|
3490
3494
|
if (_i(f)) {
|
|
3491
3495
|
var x = f.children, g = f.value, N = i[g];
|
|
3492
|
-
if (!
|
|
3493
|
-
throw new
|
|
3494
|
-
var U =
|
|
3496
|
+
if (!Rs(N))
|
|
3497
|
+
throw new Ns(g, "function", l);
|
|
3498
|
+
var U = jt(x, t, n, r, i, o), V = N(U.map(function(I) {
|
|
3495
3499
|
return I.value;
|
|
3496
3500
|
}));
|
|
3497
|
-
Array.isArray(
|
|
3501
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(I) {
|
|
3498
3502
|
return {
|
|
3499
3503
|
type: typeof I == "string" ? ge.literal : ge.object,
|
|
3500
3504
|
value: I
|
|
3501
3505
|
};
|
|
3502
3506
|
}));
|
|
3503
3507
|
}
|
|
3504
|
-
if (
|
|
3508
|
+
if (di(f)) {
|
|
3505
3509
|
var R = f.options[y] || f.options.other;
|
|
3506
3510
|
if (!R)
|
|
3507
3511
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3508
|
-
a.push.apply(a,
|
|
3512
|
+
a.push.apply(a, jt(R.value, t, n, r, i));
|
|
3509
3513
|
continue;
|
|
3510
3514
|
}
|
|
3511
3515
|
if (gi(f)) {
|
|
3512
3516
|
var R = f.options["=".concat(y)];
|
|
3513
3517
|
if (!R) {
|
|
3514
3518
|
if (!Intl.PluralRules)
|
|
3515
|
-
throw new
|
|
3519
|
+
throw new tn(`Intl.PluralRules is not available in this environment.
|
|
3516
3520
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3517
|
-
`,
|
|
3521
|
+
`, it.MISSING_INTL_API, l);
|
|
3518
3522
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3519
3523
|
R = f.options[H] || f.options.other;
|
|
3520
3524
|
}
|
|
3521
3525
|
if (!R)
|
|
3522
3526
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3523
|
-
a.push.apply(a,
|
|
3527
|
+
a.push.apply(a, jt(R.value, t, n, r, i, y - (f.offset || 0)));
|
|
3524
3528
|
continue;
|
|
3525
3529
|
}
|
|
3526
3530
|
}
|
|
3527
|
-
return
|
|
3531
|
+
return Ps(a);
|
|
3528
3532
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return t ?
|
|
3531
|
-
return n[r] =
|
|
3533
|
+
function Ds(e, t) {
|
|
3534
|
+
return t ? Ne(Ne(Ne({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3535
|
+
return n[r] = Ne(Ne({}, e[r]), t[r] || {}), n;
|
|
3532
3536
|
}, {})) : e;
|
|
3533
3537
|
}
|
|
3534
|
-
function
|
|
3538
|
+
function Bs(e, t) {
|
|
3535
3539
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3536
|
-
return n[r] =
|
|
3537
|
-
},
|
|
3540
|
+
return n[r] = Ds(e[r], t[r]), n;
|
|
3541
|
+
}, Ne({}, e)) : e;
|
|
3538
3542
|
}
|
|
3539
|
-
function
|
|
3543
|
+
function gn(e) {
|
|
3540
3544
|
return {
|
|
3541
3545
|
create: function() {
|
|
3542
3546
|
return {
|
|
@@ -3550,35 +3554,35 @@ function dn(e) {
|
|
|
3550
3554
|
}
|
|
3551
3555
|
};
|
|
3552
3556
|
}
|
|
3553
|
-
function
|
|
3557
|
+
function $s(e) {
|
|
3554
3558
|
return e === void 0 && (e = {
|
|
3555
3559
|
number: {},
|
|
3556
3560
|
dateTime: {},
|
|
3557
3561
|
pluralRules: {}
|
|
3558
3562
|
}), {
|
|
3559
|
-
getNumberFormat:
|
|
3563
|
+
getNumberFormat: mn(function() {
|
|
3560
3564
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3561
3565
|
n[r] = arguments[r];
|
|
3562
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3566
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, hn([void 0], n, !1)))();
|
|
3563
3567
|
}, {
|
|
3564
|
-
cache:
|
|
3565
|
-
strategy:
|
|
3568
|
+
cache: gn(e.number),
|
|
3569
|
+
strategy: pn.variadic
|
|
3566
3570
|
}),
|
|
3567
|
-
getDateTimeFormat:
|
|
3571
|
+
getDateTimeFormat: mn(function() {
|
|
3568
3572
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3569
3573
|
n[r] = arguments[r];
|
|
3570
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3574
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, hn([void 0], n, !1)))();
|
|
3571
3575
|
}, {
|
|
3572
|
-
cache:
|
|
3573
|
-
strategy:
|
|
3576
|
+
cache: gn(e.dateTime),
|
|
3577
|
+
strategy: pn.variadic
|
|
3574
3578
|
}),
|
|
3575
|
-
getPluralRules:
|
|
3579
|
+
getPluralRules: mn(function() {
|
|
3576
3580
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3577
3581
|
n[r] = arguments[r];
|
|
3578
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3582
|
+
return new ((t = Intl.PluralRules).bind.apply(t, hn([void 0], n, !1)))();
|
|
3579
3583
|
}, {
|
|
3580
|
-
cache:
|
|
3581
|
-
strategy:
|
|
3584
|
+
cache: gn(e.pluralRules),
|
|
3585
|
+
strategy: pn.variadic
|
|
3582
3586
|
})
|
|
3583
3587
|
};
|
|
3584
3588
|
}
|
|
@@ -3601,7 +3605,7 @@ var Ai = (
|
|
|
3601
3605
|
}, []);
|
|
3602
3606
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3603
3607
|
}, this.formatToParts = function(c) {
|
|
3604
|
-
return
|
|
3608
|
+
return jt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3605
3609
|
}, this.resolvedOptions = function() {
|
|
3606
3610
|
var c;
|
|
3607
3611
|
return {
|
|
@@ -3615,12 +3619,12 @@ var Ai = (
|
|
|
3615
3619
|
var l = i || {};
|
|
3616
3620
|
l.formatters;
|
|
3617
3621
|
var a = Yo(l, ["formatters"]);
|
|
3618
|
-
this.ast = e.__parse(t,
|
|
3622
|
+
this.ast = e.__parse(t, Ne(Ne({}, a), { locale: this.resolvedLocale }));
|
|
3619
3623
|
} else
|
|
3620
3624
|
this.ast = t;
|
|
3621
3625
|
if (!Array.isArray(this.ast))
|
|
3622
3626
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3623
|
-
this.formats =
|
|
3627
|
+
this.formats = Bs(e.formats, r), this.formatters = i && i.formatters || $s(this.formatterCache);
|
|
3624
3628
|
}
|
|
3625
3629
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3626
3630
|
get: function() {
|
|
@@ -3633,7 +3637,7 @@ var Ai = (
|
|
|
3633
3637
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3634
3638
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3635
3639
|
}
|
|
3636
|
-
}, e.__parse =
|
|
3640
|
+
}, e.__parse = Hs, e.formats = {
|
|
3637
3641
|
number: {
|
|
3638
3642
|
integer: {
|
|
3639
3643
|
maximumFractionDigits: 0
|
|
@@ -3694,7 +3698,7 @@ var Ai = (
|
|
|
3694
3698
|
}, e;
|
|
3695
3699
|
}()
|
|
3696
3700
|
);
|
|
3697
|
-
function
|
|
3701
|
+
function Us(e, t) {
|
|
3698
3702
|
if (t == null)
|
|
3699
3703
|
return;
|
|
3700
3704
|
if (t in e)
|
|
@@ -3715,101 +3719,101 @@ function $s(e, t) {
|
|
|
3715
3719
|
r = void 0;
|
|
3716
3720
|
return r;
|
|
3717
3721
|
}
|
|
3718
|
-
const
|
|
3722
|
+
const $e = {}, ks = (e, t, n) => n && (t in $e || ($e[t] = {}), e in $e[t] || ($e[t][e] = n), n), Oi = (e, t) => {
|
|
3719
3723
|
if (t == null)
|
|
3720
3724
|
return;
|
|
3721
|
-
if (t in
|
|
3722
|
-
return
|
|
3723
|
-
const n =
|
|
3725
|
+
if (t in $e && e in $e[t])
|
|
3726
|
+
return $e[t][e];
|
|
3727
|
+
const n = At(t);
|
|
3724
3728
|
for (let r = 0; r < n.length; r++) {
|
|
3725
|
-
const i = n[r], o =
|
|
3729
|
+
const i = n[r], o = Gs(i, e);
|
|
3726
3730
|
if (o)
|
|
3727
|
-
return
|
|
3731
|
+
return ks(e, t, o);
|
|
3728
3732
|
}
|
|
3729
3733
|
};
|
|
3730
3734
|
let Bn;
|
|
3731
|
-
const
|
|
3732
|
-
function
|
|
3735
|
+
const wt = St({});
|
|
3736
|
+
function Fs(e) {
|
|
3733
3737
|
return Bn[e] || null;
|
|
3734
3738
|
}
|
|
3735
|
-
function
|
|
3739
|
+
function Mi(e) {
|
|
3736
3740
|
return e in Bn;
|
|
3737
3741
|
}
|
|
3738
|
-
function
|
|
3739
|
-
if (!
|
|
3742
|
+
function Gs(e, t) {
|
|
3743
|
+
if (!Mi(e))
|
|
3740
3744
|
return null;
|
|
3741
|
-
const n =
|
|
3742
|
-
return
|
|
3745
|
+
const n = Fs(e);
|
|
3746
|
+
return Us(n, t);
|
|
3743
3747
|
}
|
|
3744
|
-
function
|
|
3748
|
+
function js(e) {
|
|
3745
3749
|
if (e == null)
|
|
3746
3750
|
return;
|
|
3747
|
-
const t =
|
|
3751
|
+
const t = At(e);
|
|
3748
3752
|
for (let n = 0; n < t.length; n++) {
|
|
3749
3753
|
const r = t[n];
|
|
3750
|
-
if (
|
|
3754
|
+
if (Mi(r))
|
|
3751
3755
|
return r;
|
|
3752
3756
|
}
|
|
3753
3757
|
}
|
|
3754
|
-
function
|
|
3755
|
-
delete
|
|
3758
|
+
function Ci(e, ...t) {
|
|
3759
|
+
delete $e[e], wt.update((n) => (n[e] = Xo.all([n[e] || {}, ...t]), n));
|
|
3756
3760
|
}
|
|
3757
|
-
|
|
3758
|
-
[
|
|
3761
|
+
st(
|
|
3762
|
+
[wt],
|
|
3759
3763
|
([e]) => Object.keys(e)
|
|
3760
3764
|
);
|
|
3761
|
-
|
|
3762
|
-
const
|
|
3763
|
-
function
|
|
3764
|
-
|
|
3765
|
+
wt.subscribe((e) => Bn = e);
|
|
3766
|
+
const zt = {};
|
|
3767
|
+
function zs(e, t) {
|
|
3768
|
+
zt[e].delete(t), zt[e].size === 0 && delete zt[e];
|
|
3765
3769
|
}
|
|
3766
3770
|
function Li(e) {
|
|
3767
|
-
return
|
|
3771
|
+
return zt[e];
|
|
3768
3772
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return
|
|
3773
|
+
function Ws(e) {
|
|
3774
|
+
return At(e).map((t) => {
|
|
3771
3775
|
const n = Li(t);
|
|
3772
3776
|
return [t, n ? [...n] : []];
|
|
3773
3777
|
}).filter(([, t]) => t.length > 0);
|
|
3774
3778
|
}
|
|
3775
|
-
function
|
|
3776
|
-
return e == null ? !1 :
|
|
3779
|
+
function qt(e) {
|
|
3780
|
+
return e == null ? !1 : At(e).some(
|
|
3777
3781
|
(t) => {
|
|
3778
3782
|
var n;
|
|
3779
3783
|
return (n = Li(t)) == null ? void 0 : n.size;
|
|
3780
3784
|
}
|
|
3781
3785
|
);
|
|
3782
3786
|
}
|
|
3783
|
-
function
|
|
3787
|
+
function Vs(e, t) {
|
|
3784
3788
|
return Promise.all(
|
|
3785
|
-
t.map((r) => (
|
|
3786
|
-
).then((r) =>
|
|
3789
|
+
t.map((r) => (zs(e, r), r().then((i) => i.default || i)))
|
|
3790
|
+
).then((r) => Ci(e, ...r));
|
|
3787
3791
|
}
|
|
3788
|
-
const
|
|
3792
|
+
const ht = {};
|
|
3789
3793
|
function Hi(e) {
|
|
3790
|
-
if (!
|
|
3791
|
-
return e in
|
|
3792
|
-
const t =
|
|
3793
|
-
return
|
|
3794
|
+
if (!qt(e))
|
|
3795
|
+
return e in ht ? ht[e] : Promise.resolve();
|
|
3796
|
+
const t = Ws(e);
|
|
3797
|
+
return ht[e] = Promise.all(
|
|
3794
3798
|
t.map(
|
|
3795
|
-
([n, r]) =>
|
|
3799
|
+
([n, r]) => Vs(n, r)
|
|
3796
3800
|
)
|
|
3797
3801
|
).then(() => {
|
|
3798
|
-
if (
|
|
3802
|
+
if (qt(e))
|
|
3799
3803
|
return Hi(e);
|
|
3800
|
-
delete
|
|
3801
|
-
}),
|
|
3804
|
+
delete ht[e];
|
|
3805
|
+
}), ht[e];
|
|
3802
3806
|
}
|
|
3803
|
-
var Ar = Object.getOwnPropertySymbols,
|
|
3807
|
+
var Ar = Object.getOwnPropertySymbols, Xs = Object.prototype.hasOwnProperty, Ys = Object.prototype.propertyIsEnumerable, Zs = (e, t) => {
|
|
3804
3808
|
var n = {};
|
|
3805
3809
|
for (var r in e)
|
|
3806
|
-
|
|
3810
|
+
Xs.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3807
3811
|
if (e != null && Ar)
|
|
3808
3812
|
for (var r of Ar(e))
|
|
3809
|
-
t.indexOf(r) < 0 &&
|
|
3813
|
+
t.indexOf(r) < 0 && Ys.call(e, r) && (n[r] = e[r]);
|
|
3810
3814
|
return n;
|
|
3811
3815
|
};
|
|
3812
|
-
const
|
|
3816
|
+
const qs = {
|
|
3813
3817
|
number: {
|
|
3814
3818
|
scientific: { notation: "scientific" },
|
|
3815
3819
|
engineering: { notation: "engineering" },
|
|
@@ -3839,28 +3843,28 @@ const Zs = {
|
|
|
3839
3843
|
}
|
|
3840
3844
|
}
|
|
3841
3845
|
};
|
|
3842
|
-
function
|
|
3846
|
+
function Js({ locale: e, id: t }) {
|
|
3843
3847
|
console.warn(
|
|
3844
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3848
|
+
`[svelte-i18n] The message "${t}" was not found in "${At(
|
|
3845
3849
|
e
|
|
3846
|
-
).join('", "')}".${
|
|
3850
|
+
).join('", "')}".${qt(Fe()) ? `
|
|
3847
3851
|
|
|
3848
3852
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3849
3853
|
);
|
|
3850
3854
|
}
|
|
3851
|
-
const
|
|
3855
|
+
const Qs = {
|
|
3852
3856
|
fallbackLocale: null,
|
|
3853
3857
|
loadingDelay: 200,
|
|
3854
|
-
formats:
|
|
3858
|
+
formats: qs,
|
|
3855
3859
|
warnOnMissingMessages: !0,
|
|
3856
3860
|
handleMissingMessage: void 0,
|
|
3857
3861
|
ignoreTag: !0
|
|
3858
|
-
},
|
|
3859
|
-
function
|
|
3860
|
-
return
|
|
3862
|
+
}, bt = Qs;
|
|
3863
|
+
function ot() {
|
|
3864
|
+
return bt;
|
|
3861
3865
|
}
|
|
3862
|
-
function
|
|
3863
|
-
const t = e, { formats: n } = t, r =
|
|
3866
|
+
function Ks(e) {
|
|
3867
|
+
const t = e, { formats: n } = t, r = Zs(t, ["formats"]);
|
|
3864
3868
|
let i = e.fallbackLocale;
|
|
3865
3869
|
if (e.initialLocale)
|
|
3866
3870
|
try {
|
|
@@ -3870,143 +3874,143 @@ function Qs(e) {
|
|
|
3870
3874
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3871
3875
|
);
|
|
3872
3876
|
}
|
|
3873
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3877
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Js : console.warn(
|
|
3874
3878
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3875
|
-
)), Object.assign(
|
|
3879
|
+
)), Object.assign(bt, r, { initialLocale: i }), n && ("number" in n && Object.assign(bt.formats.number, n.number), "date" in n && Object.assign(bt.formats.date, n.date), "time" in n && Object.assign(bt.formats.time, n.time)), ze.set(i);
|
|
3876
3880
|
}
|
|
3877
|
-
const
|
|
3878
|
-
var
|
|
3881
|
+
const _n = St(!1);
|
|
3882
|
+
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Mr = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oa = (e, t) => {
|
|
3879
3883
|
for (var n in t || (t = {}))
|
|
3880
|
-
|
|
3881
|
-
if (
|
|
3882
|
-
for (var n of
|
|
3883
|
-
|
|
3884
|
+
ra.call(t, n) && Mr(e, n, t[n]);
|
|
3885
|
+
if (Or)
|
|
3886
|
+
for (var n of Or(t))
|
|
3887
|
+
ia.call(t, n) && Mr(e, n, t[n]);
|
|
3884
3888
|
return e;
|
|
3885
|
-
},
|
|
3886
|
-
let
|
|
3887
|
-
const
|
|
3888
|
-
function
|
|
3889
|
+
}, sa = (e, t) => ta(e, na(t));
|
|
3890
|
+
let Hn;
|
|
3891
|
+
const Jt = St(null);
|
|
3892
|
+
function Cr(e) {
|
|
3889
3893
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3890
3894
|
}
|
|
3891
|
-
function
|
|
3892
|
-
const n =
|
|
3893
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3895
|
+
function At(e, t = ot().fallbackLocale) {
|
|
3896
|
+
const n = Cr(e);
|
|
3897
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Cr(t)])] : n;
|
|
3894
3898
|
}
|
|
3895
|
-
function
|
|
3896
|
-
return
|
|
3899
|
+
function Fe() {
|
|
3900
|
+
return Hn != null ? Hn : void 0;
|
|
3897
3901
|
}
|
|
3898
|
-
|
|
3899
|
-
|
|
3902
|
+
Jt.subscribe((e) => {
|
|
3903
|
+
Hn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3900
3904
|
});
|
|
3901
|
-
const
|
|
3902
|
-
if (e &&
|
|
3903
|
-
const { loadingDelay: t } =
|
|
3905
|
+
const aa = (e) => {
|
|
3906
|
+
if (e && js(e) && qt(e)) {
|
|
3907
|
+
const { loadingDelay: t } = ot();
|
|
3904
3908
|
let n;
|
|
3905
|
-
return typeof window != "undefined" &&
|
|
3906
|
-
() =>
|
|
3909
|
+
return typeof window != "undefined" && Fe() != null && t ? n = window.setTimeout(
|
|
3910
|
+
() => _n.set(!0),
|
|
3907
3911
|
t
|
|
3908
|
-
) :
|
|
3909
|
-
|
|
3912
|
+
) : _n.set(!0), Hi(e).then(() => {
|
|
3913
|
+
Jt.set(e);
|
|
3910
3914
|
}).finally(() => {
|
|
3911
|
-
clearTimeout(n),
|
|
3915
|
+
clearTimeout(n), _n.set(!1);
|
|
3912
3916
|
});
|
|
3913
3917
|
}
|
|
3914
|
-
return
|
|
3915
|
-
},
|
|
3916
|
-
set:
|
|
3917
|
-
}),
|
|
3918
|
+
return Jt.set(e);
|
|
3919
|
+
}, ze = sa(oa({}, Jt), {
|
|
3920
|
+
set: aa
|
|
3921
|
+
}), nn = (e) => {
|
|
3918
3922
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3919
3923
|
return (r) => {
|
|
3920
3924
|
const i = JSON.stringify(r);
|
|
3921
3925
|
return i in t ? t[i] : t[i] = e(r);
|
|
3922
3926
|
};
|
|
3923
3927
|
};
|
|
3924
|
-
var
|
|
3928
|
+
var la = Object.defineProperty, Qt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Lr = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $n = (e, t) => {
|
|
3925
3929
|
for (var n in t || (t = {}))
|
|
3926
3930
|
Ni.call(t, n) && Lr(e, n, t[n]);
|
|
3927
|
-
if (
|
|
3928
|
-
for (var n of
|
|
3931
|
+
if (Qt)
|
|
3932
|
+
for (var n of Qt(t))
|
|
3929
3933
|
Ii.call(t, n) && Lr(e, n, t[n]);
|
|
3930
3934
|
return e;
|
|
3931
|
-
},
|
|
3935
|
+
}, at = (e, t) => {
|
|
3932
3936
|
var n = {};
|
|
3933
3937
|
for (var r in e)
|
|
3934
3938
|
Ni.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3935
|
-
if (e != null &&
|
|
3936
|
-
for (var r of
|
|
3939
|
+
if (e != null && Qt)
|
|
3940
|
+
for (var r of Qt(e))
|
|
3937
3941
|
t.indexOf(r) < 0 && Ii.call(e, r) && (n[r] = e[r]);
|
|
3938
3942
|
return n;
|
|
3939
3943
|
};
|
|
3940
|
-
const
|
|
3941
|
-
const { formats: n } =
|
|
3944
|
+
const Tt = (e, t) => {
|
|
3945
|
+
const { formats: n } = ot();
|
|
3942
3946
|
if (e in n && t in n[e])
|
|
3943
3947
|
return n[e][t];
|
|
3944
3948
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3945
|
-
},
|
|
3949
|
+
}, ua = nn(
|
|
3946
3950
|
(e) => {
|
|
3947
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3951
|
+
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3948
3952
|
if (n == null)
|
|
3949
3953
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3950
|
-
return r && (i =
|
|
3954
|
+
return r && (i = Tt("number", r)), new Intl.NumberFormat(n, i);
|
|
3951
3955
|
}
|
|
3952
|
-
),
|
|
3956
|
+
), ca = nn(
|
|
3953
3957
|
(e) => {
|
|
3954
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3958
|
+
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3955
3959
|
if (n == null)
|
|
3956
3960
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3957
|
-
return r ? i =
|
|
3961
|
+
return r ? i = Tt("date", r) : Object.keys(i).length === 0 && (i = Tt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3958
3962
|
}
|
|
3959
|
-
),
|
|
3963
|
+
), fa = nn(
|
|
3960
3964
|
(e) => {
|
|
3961
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3965
|
+
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3962
3966
|
if (n == null)
|
|
3963
3967
|
throw new Error(
|
|
3964
3968
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3965
3969
|
);
|
|
3966
|
-
return r ? i =
|
|
3970
|
+
return r ? i = Tt("time", r) : Object.keys(i).length === 0 && (i = Tt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3967
3971
|
}
|
|
3968
|
-
),
|
|
3969
|
-
var t = e, {
|
|
3970
|
-
locale: n = ke()
|
|
3971
|
-
} = t, r = st(t, [
|
|
3972
|
-
"locale"
|
|
3973
|
-
]);
|
|
3974
|
-
return la($n({ locale: n }, r));
|
|
3975
|
-
}, ha = (e = {}) => {
|
|
3972
|
+
), ha = (e = {}) => {
|
|
3976
3973
|
var t = e, {
|
|
3977
|
-
locale: n =
|
|
3978
|
-
} = t, r =
|
|
3974
|
+
locale: n = Fe()
|
|
3975
|
+
} = t, r = at(t, [
|
|
3979
3976
|
"locale"
|
|
3980
3977
|
]);
|
|
3981
3978
|
return ua($n({ locale: n }, r));
|
|
3982
3979
|
}, ma = (e = {}) => {
|
|
3983
3980
|
var t = e, {
|
|
3984
|
-
locale: n =
|
|
3985
|
-
} = t, r =
|
|
3981
|
+
locale: n = Fe()
|
|
3982
|
+
} = t, r = at(t, [
|
|
3986
3983
|
"locale"
|
|
3987
3984
|
]);
|
|
3988
3985
|
return ca($n({ locale: n }, r));
|
|
3989
|
-
},
|
|
3986
|
+
}, pa = (e = {}) => {
|
|
3987
|
+
var t = e, {
|
|
3988
|
+
locale: n = Fe()
|
|
3989
|
+
} = t, r = at(t, [
|
|
3990
|
+
"locale"
|
|
3991
|
+
]);
|
|
3992
|
+
return fa($n({ locale: n }, r));
|
|
3993
|
+
}, da = nn(
|
|
3990
3994
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3991
|
-
(e, t =
|
|
3992
|
-
ignoreTag:
|
|
3995
|
+
(e, t = Fe()) => new Ai(e, t, ot().formats, {
|
|
3996
|
+
ignoreTag: ot().ignoreTag
|
|
3993
3997
|
})
|
|
3994
|
-
),
|
|
3998
|
+
), ga = (e, t = {}) => {
|
|
3995
3999
|
var n, r, i, o;
|
|
3996
4000
|
let l = t;
|
|
3997
4001
|
typeof e == "object" && (l = e, e = l.id);
|
|
3998
4002
|
const {
|
|
3999
4003
|
values: a,
|
|
4000
|
-
locale: c =
|
|
4004
|
+
locale: c = Fe(),
|
|
4001
4005
|
default: u
|
|
4002
4006
|
} = l;
|
|
4003
4007
|
if (c == null)
|
|
4004
4008
|
throw new Error(
|
|
4005
4009
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4006
4010
|
);
|
|
4007
|
-
let f =
|
|
4011
|
+
let f = Oi(e, c);
|
|
4008
4012
|
if (!f)
|
|
4009
|
-
f = (o = (i = (r = (n =
|
|
4013
|
+
f = (o = (i = (r = (n = ot()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4010
4014
|
else if (typeof f != "string")
|
|
4011
4015
|
return console.warn(
|
|
4012
4016
|
`[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.`
|
|
@@ -4023,18 +4027,18 @@ const vt = (e, t) => {
|
|
|
4023
4027
|
);
|
|
4024
4028
|
}
|
|
4025
4029
|
return m;
|
|
4026
|
-
},
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4030
|
+
}, _a = (e, t) => pa(t).format(e), ba = (e, t) => ma(t).format(e), Ea = (e, t) => ha(t).format(e), ya = (e, t = Fe()) => Oi(e, t), xa = st([ze, wt], () => ga);
|
|
4031
|
+
st([ze], () => _a);
|
|
4032
|
+
st([ze], () => ba);
|
|
4033
|
+
st([ze], () => Ea);
|
|
4034
|
+
st([ze, wt], () => ya);
|
|
4031
4035
|
function Hr(e, t) {
|
|
4032
|
-
|
|
4036
|
+
Ci(e, t);
|
|
4033
4037
|
}
|
|
4034
|
-
function
|
|
4035
|
-
|
|
4038
|
+
function va(e) {
|
|
4039
|
+
Ks({
|
|
4036
4040
|
fallbackLocale: "en"
|
|
4037
|
-
}),
|
|
4041
|
+
}), ze.set(e);
|
|
4038
4042
|
}
|
|
4039
4043
|
const Nr = {
|
|
4040
4044
|
en: {
|
|
@@ -4058,17 +4062,17 @@ const Nr = {
|
|
|
4058
4062
|
const {
|
|
4059
4063
|
entries: Pi,
|
|
4060
4064
|
setPrototypeOf: Ir,
|
|
4061
|
-
isFrozen:
|
|
4062
|
-
getPrototypeOf:
|
|
4063
|
-
getOwnPropertyDescriptor:
|
|
4065
|
+
isFrozen: Ta,
|
|
4066
|
+
getPrototypeOf: Sa,
|
|
4067
|
+
getOwnPropertyDescriptor: wa
|
|
4064
4068
|
} = Object;
|
|
4065
4069
|
let {
|
|
4066
4070
|
freeze: _e,
|
|
4067
4071
|
seal: Te,
|
|
4068
4072
|
create: Ri
|
|
4069
4073
|
} = Object, {
|
|
4070
|
-
apply:
|
|
4071
|
-
construct:
|
|
4074
|
+
apply: Nn,
|
|
4075
|
+
construct: In
|
|
4072
4076
|
} = typeof Reflect != "undefined" && Reflect;
|
|
4073
4077
|
_e || (_e = function(t) {
|
|
4074
4078
|
return t;
|
|
@@ -4076,36 +4080,36 @@ _e || (_e = function(t) {
|
|
|
4076
4080
|
Te || (Te = function(t) {
|
|
4077
4081
|
return t;
|
|
4078
4082
|
});
|
|
4079
|
-
|
|
4083
|
+
Nn || (Nn = function(t, n, r) {
|
|
4080
4084
|
return t.apply(n, r);
|
|
4081
4085
|
});
|
|
4082
|
-
|
|
4086
|
+
In || (In = function(t, n) {
|
|
4083
4087
|
return new t(...n);
|
|
4084
4088
|
});
|
|
4085
|
-
const
|
|
4089
|
+
const Rt = xe(Array.prototype.forEach), Pr = xe(Array.prototype.pop), mt = xe(Array.prototype.push), Wt = xe(String.prototype.toLowerCase), bn = xe(String.prototype.toString), Rr = xe(String.prototype.match), pt = xe(String.prototype.replace), Aa = xe(String.prototype.indexOf), Oa = xe(String.prototype.trim), we = xe(Object.prototype.hasOwnProperty), pe = xe(RegExp.prototype.test), dt = Ma(TypeError);
|
|
4086
4090
|
function xe(e) {
|
|
4087
4091
|
return function(t) {
|
|
4088
4092
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4089
4093
|
r[i - 1] = arguments[i];
|
|
4090
|
-
return
|
|
4094
|
+
return Nn(e, t, r);
|
|
4091
4095
|
};
|
|
4092
4096
|
}
|
|
4093
4097
|
function Ma(e) {
|
|
4094
4098
|
return function() {
|
|
4095
4099
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4096
4100
|
n[r] = arguments[r];
|
|
4097
|
-
return
|
|
4101
|
+
return In(e, n);
|
|
4098
4102
|
};
|
|
4099
4103
|
}
|
|
4100
4104
|
function $(e, t) {
|
|
4101
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4105
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Wt;
|
|
4102
4106
|
Ir && Ir(e, null);
|
|
4103
4107
|
let r = t.length;
|
|
4104
4108
|
for (; r--; ) {
|
|
4105
4109
|
let i = t[r];
|
|
4106
4110
|
if (typeof i == "string") {
|
|
4107
4111
|
const o = n(i);
|
|
4108
|
-
o !== i && (
|
|
4112
|
+
o !== i && (Ta(t) || (t[r] = o), i = o);
|
|
4109
4113
|
}
|
|
4110
4114
|
e[i] = !0;
|
|
4111
4115
|
}
|
|
@@ -4116,67 +4120,58 @@ function Ca(e) {
|
|
|
4116
4120
|
we(e, t) || (e[t] = null);
|
|
4117
4121
|
return e;
|
|
4118
4122
|
}
|
|
4119
|
-
function
|
|
4123
|
+
function Ge(e) {
|
|
4120
4124
|
const t = Ri(null);
|
|
4121
4125
|
for (const [n, r] of Pi(e))
|
|
4122
|
-
we(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] =
|
|
4126
|
+
we(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ge(r) : t[n] = r);
|
|
4123
4127
|
return t;
|
|
4124
4128
|
}
|
|
4125
|
-
function
|
|
4129
|
+
function gt(e, t) {
|
|
4126
4130
|
for (; e !== null; ) {
|
|
4127
|
-
const r =
|
|
4131
|
+
const r = wa(e, t);
|
|
4128
4132
|
if (r) {
|
|
4129
4133
|
if (r.get)
|
|
4130
4134
|
return xe(r.get);
|
|
4131
4135
|
if (typeof r.value == "function")
|
|
4132
4136
|
return xe(r.value);
|
|
4133
4137
|
}
|
|
4134
|
-
e =
|
|
4138
|
+
e = Sa(e);
|
|
4135
4139
|
}
|
|
4136
4140
|
function n() {
|
|
4137
4141
|
return null;
|
|
4138
4142
|
}
|
|
4139
4143
|
return n;
|
|
4140
4144
|
}
|
|
4141
|
-
const Dr = _e(["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"]),
|
|
4145
|
+
const Dr = _e(["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"]), En = _e(["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"]), yn = _e(["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"]), La = _e(["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"]), xn = _e(["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"]), Ha = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Br = _e(["#text"]), $r = _e(["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"]), vn = _e(["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"]), Ur = _e(["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"]), Dt = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Na = Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ia = Te(/<%[\w\W]*|[\w\W]*%>/gm), Pa = Te(/\${[\w\W]*}/gm), Ra = Te(/^data-[\-\w.\u00B7-\uFFFF]/), Da = Te(/^aria-[\-\w]+$/), Di = Te(
|
|
4142
4146
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4143
4147
|
// eslint-disable-line no-useless-escape
|
|
4144
|
-
),
|
|
4148
|
+
), Ba = Te(/^(?:\w+script|data):/i), $a = Te(
|
|
4145
4149
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4146
4150
|
// eslint-disable-line no-control-regex
|
|
4147
|
-
), Bi = Te(/^html$/i),
|
|
4151
|
+
), Bi = Te(/^html$/i), Ua = Te(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4148
4152
|
var kr = /* @__PURE__ */ Object.freeze({
|
|
4149
4153
|
__proto__: null,
|
|
4150
|
-
MUSTACHE_EXPR:
|
|
4151
|
-
ERB_EXPR:
|
|
4152
|
-
TMPLIT_EXPR:
|
|
4153
|
-
DATA_ATTR:
|
|
4154
|
-
ARIA_ATTR:
|
|
4154
|
+
MUSTACHE_EXPR: Na,
|
|
4155
|
+
ERB_EXPR: Ia,
|
|
4156
|
+
TMPLIT_EXPR: Pa,
|
|
4157
|
+
DATA_ATTR: Ra,
|
|
4158
|
+
ARIA_ATTR: Da,
|
|
4155
4159
|
IS_ALLOWED_URI: Di,
|
|
4156
|
-
IS_SCRIPT_OR_DATA:
|
|
4157
|
-
ATTR_WHITESPACE:
|
|
4160
|
+
IS_SCRIPT_OR_DATA: Ba,
|
|
4161
|
+
ATTR_WHITESPACE: $a,
|
|
4158
4162
|
DOCTYPE_NAME: Bi,
|
|
4159
|
-
CUSTOM_ELEMENT:
|
|
4163
|
+
CUSTOM_ELEMENT: Ua
|
|
4160
4164
|
});
|
|
4161
|
-
const
|
|
4165
|
+
const _t = {
|
|
4162
4166
|
element: 1,
|
|
4163
|
-
attribute: 2,
|
|
4164
4167
|
text: 3,
|
|
4165
|
-
cdataSection: 4,
|
|
4166
|
-
entityReference: 5,
|
|
4167
|
-
// Deprecated
|
|
4168
|
-
entityNode: 6,
|
|
4169
4168
|
// Deprecated
|
|
4170
4169
|
progressingInstruction: 7,
|
|
4171
4170
|
comment: 8,
|
|
4172
|
-
document: 9
|
|
4173
|
-
|
|
4174
|
-
documentFragment: 11,
|
|
4175
|
-
notation: 12
|
|
4176
|
-
// Deprecated
|
|
4177
|
-
}, Ua = function() {
|
|
4171
|
+
document: 9
|
|
4172
|
+
}, ka = function() {
|
|
4178
4173
|
return typeof window == "undefined" ? null : window;
|
|
4179
|
-
},
|
|
4174
|
+
}, Fa = function(t, n) {
|
|
4180
4175
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4181
4176
|
return null;
|
|
4182
4177
|
let r = null;
|
|
@@ -4197,9 +4192,9 @@ const gt = {
|
|
|
4197
4192
|
}
|
|
4198
4193
|
};
|
|
4199
4194
|
function $i() {
|
|
4200
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4195
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ka();
|
|
4201
4196
|
const t = (S) => $i(S);
|
|
4202
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4197
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== _t.document)
|
|
4203
4198
|
return t.isSupported = !1, t;
|
|
4204
4199
|
let {
|
|
4205
4200
|
document: n
|
|
@@ -4214,26 +4209,26 @@ function $i() {
|
|
|
4214
4209
|
HTMLFormElement: m,
|
|
4215
4210
|
DOMParser: y,
|
|
4216
4211
|
trustedTypes: A
|
|
4217
|
-
} = e, x = c.prototype, g =
|
|
4212
|
+
} = e, x = c.prototype, g = gt(x, "cloneNode"), N = gt(x, "remove"), U = gt(x, "nextSibling"), V = gt(x, "childNodes"), R = gt(x, "parentNode");
|
|
4218
4213
|
if (typeof l == "function") {
|
|
4219
4214
|
const S = n.createElement("template");
|
|
4220
4215
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
4221
4216
|
}
|
|
4222
4217
|
let H, I = "";
|
|
4223
4218
|
const {
|
|
4224
|
-
implementation:
|
|
4219
|
+
implementation: W,
|
|
4225
4220
|
createNodeIterator: oe,
|
|
4226
4221
|
createDocumentFragment: fe,
|
|
4227
|
-
getElementsByTagName:
|
|
4222
|
+
getElementsByTagName: K
|
|
4228
4223
|
} = n, {
|
|
4229
|
-
importNode:
|
|
4224
|
+
importNode: j
|
|
4230
4225
|
} = r;
|
|
4231
|
-
let
|
|
4232
|
-
t.isSupported = typeof Pi == "function" && typeof R == "function" &&
|
|
4226
|
+
let C = {};
|
|
4227
|
+
t.isSupported = typeof Pi == "function" && typeof R == "function" && W && W.createHTMLDocument !== void 0;
|
|
4233
4228
|
const {
|
|
4234
4229
|
MUSTACHE_EXPR: se,
|
|
4235
4230
|
ERB_EXPR: Ee,
|
|
4236
|
-
TMPLIT_EXPR:
|
|
4231
|
+
TMPLIT_EXPR: M,
|
|
4237
4232
|
DATA_ATTR: _,
|
|
4238
4233
|
ARIA_ATTR: h,
|
|
4239
4234
|
IS_SCRIPT_OR_DATA: E,
|
|
@@ -4241,11 +4236,11 @@ function $i() {
|
|
|
4241
4236
|
CUSTOM_ELEMENT: L
|
|
4242
4237
|
} = kr;
|
|
4243
4238
|
let {
|
|
4244
|
-
IS_ALLOWED_URI:
|
|
4239
|
+
IS_ALLOWED_URI: O
|
|
4245
4240
|
} = kr, v = null;
|
|
4246
|
-
const
|
|
4241
|
+
const z = $({}, [...Dr, ...En, ...yn, ...xn, ...Br]);
|
|
4247
4242
|
let P = null;
|
|
4248
|
-
const
|
|
4243
|
+
const q = $({}, [...$r, ...vn, ...Ur, ...Dt]);
|
|
4249
4244
|
let D = Object.seal(Ri(null, {
|
|
4250
4245
|
tagNameCheck: {
|
|
4251
4246
|
writable: !0,
|
|
@@ -4265,113 +4260,113 @@ function $i() {
|
|
|
4265
4260
|
enumerable: !0,
|
|
4266
4261
|
value: !1
|
|
4267
4262
|
}
|
|
4268
|
-
})),
|
|
4263
|
+
})), d = null, k = null, X = !0, Y = !0, ne = !1, ee = !0, he = !1, le = !0, Oe = !1, J = !1, re = !1, Me = !1, Ot = !1, Mt = !1, Un = !0, kn = !1;
|
|
4269
4264
|
const Fi = "user-content-";
|
|
4270
|
-
let
|
|
4265
|
+
let rn = !0, lt = !1, We = {}, Ve = null;
|
|
4271
4266
|
const Fn = $({}, ["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"]);
|
|
4272
4267
|
let Gn = null;
|
|
4273
4268
|
const jn = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4274
|
-
let
|
|
4275
|
-
const zn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML",
|
|
4276
|
-
let
|
|
4277
|
-
const Gi = $({}, [Ct,
|
|
4278
|
-
let
|
|
4269
|
+
let on = null;
|
|
4270
|
+
const zn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
|
|
4271
|
+
let Xe = Ie, sn = !1, an = null;
|
|
4272
|
+
const Gi = $({}, [Ct, Lt, Ie], bn);
|
|
4273
|
+
let ut = null;
|
|
4279
4274
|
const ji = ["application/xhtml+xml", "text/html"], zi = "text/html";
|
|
4280
|
-
let ae = null,
|
|
4275
|
+
let ae = null, Ye = null;
|
|
4281
4276
|
const Wi = n.createElement("form"), Wn = function(s) {
|
|
4282
4277
|
return s instanceof RegExp || s instanceof Function;
|
|
4283
|
-
},
|
|
4278
|
+
}, ln = function() {
|
|
4284
4279
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4285
|
-
if (!(
|
|
4286
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4287
|
-
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae =
|
|
4288
|
-
|
|
4280
|
+
if (!(Ye && Ye === s)) {
|
|
4281
|
+
if ((!s || typeof s != "object") && (s = {}), s = Ge(s), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4282
|
+
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae = ut === "application/xhtml+xml" ? bn : Wt, v = we(s, "ALLOWED_TAGS") ? $({}, s.ALLOWED_TAGS, ae) : z, P = we(s, "ALLOWED_ATTR") ? $({}, s.ALLOWED_ATTR, ae) : q, an = we(s, "ALLOWED_NAMESPACES") ? $({}, s.ALLOWED_NAMESPACES, bn) : Gi, on = we(s, "ADD_URI_SAFE_ATTR") ? $(
|
|
4283
|
+
Ge(zn),
|
|
4289
4284
|
// eslint-disable-line indent
|
|
4290
4285
|
s.ADD_URI_SAFE_ATTR,
|
|
4291
4286
|
// eslint-disable-line indent
|
|
4292
4287
|
ae
|
|
4293
4288
|
// eslint-disable-line indent
|
|
4294
4289
|
) : zn, Gn = we(s, "ADD_DATA_URI_TAGS") ? $(
|
|
4295
|
-
|
|
4290
|
+
Ge(jn),
|
|
4296
4291
|
// eslint-disable-line indent
|
|
4297
4292
|
s.ADD_DATA_URI_TAGS,
|
|
4298
4293
|
// eslint-disable-line indent
|
|
4299
4294
|
ae
|
|
4300
4295
|
// eslint-disable-line indent
|
|
4301
|
-
) : jn,
|
|
4296
|
+
) : jn, Ve = we(s, "FORBID_CONTENTS") ? $({}, s.FORBID_CONTENTS, ae) : Fn, d = we(s, "FORBID_TAGS") ? $({}, s.FORBID_TAGS, ae) : {}, k = we(s, "FORBID_ATTR") ? $({}, s.FORBID_ATTR, ae) : {}, We = we(s, "USE_PROFILES") ? s.USE_PROFILES : !1, X = s.ALLOW_ARIA_ATTR !== !1, Y = s.ALLOW_DATA_ATTR !== !1, ne = s.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, he = s.SAFE_FOR_TEMPLATES || !1, le = s.SAFE_FOR_XML !== !1, Oe = s.WHOLE_DOCUMENT || !1, Me = s.RETURN_DOM || !1, Ot = s.RETURN_DOM_FRAGMENT || !1, Mt = s.RETURN_TRUSTED_TYPE || !1, re = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, kn = s.SANITIZE_NAMED_PROPS || !1, rn = s.KEEP_CONTENT !== !1, lt = s.IN_PLACE || !1, O = s.ALLOWED_URI_REGEXP || Di, Xe = s.NAMESPACE || Ie, D = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Wn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (D.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (D.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), he && (Y = !1), Ot && (Me = !0), We && (v = $({}, Br), P = [], We.html === !0 && ($(v, Dr), $(P, $r)), We.svg === !0 && ($(v, En), $(P, vn), $(P, Dt)), We.svgFilters === !0 && ($(v, yn), $(P, vn), $(P, Dt)), We.mathMl === !0 && ($(v, xn), $(P, Ur), $(P, Dt))), s.ADD_TAGS && (v === z && (v = Ge(v)), $(v, s.ADD_TAGS, ae)), s.ADD_ATTR && (P === q && (P = Ge(P)), $(P, s.ADD_ATTR, ae)), s.ADD_URI_SAFE_ATTR && $(on, s.ADD_URI_SAFE_ATTR, ae), s.FORBID_CONTENTS && (Ve === Fn && (Ve = Ge(Ve)), $(Ve, s.FORBID_CONTENTS, ae)), rn && (v["#text"] = !0), Oe && $(v, ["html", "head", "body"]), v.table && ($(v, ["tbody"]), delete d.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4302
4297
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4303
4298
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4304
4299
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4305
4300
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4306
4301
|
H = s.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4307
4302
|
} else
|
|
4308
|
-
H === void 0 && (H =
|
|
4309
|
-
_e && _e(s),
|
|
4303
|
+
H === void 0 && (H = Fa(A, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4304
|
+
_e && _e(s), Ye = s;
|
|
4310
4305
|
}
|
|
4311
|
-
}, Vn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Xn = $({}, ["foreignobject", "annotation-xml"]), Vi = $({}, ["title", "style", "font", "a", "script"]), Yn = $({}, [...
|
|
4312
|
-
let
|
|
4313
|
-
(!
|
|
4314
|
-
namespaceURI:
|
|
4306
|
+
}, Vn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Xn = $({}, ["foreignobject", "annotation-xml"]), Vi = $({}, ["title", "style", "font", "a", "script"]), Yn = $({}, [...En, ...yn, ...La]), Zn = $({}, [...xn, ...Ha]), Xi = function(s) {
|
|
4307
|
+
let p = R(s);
|
|
4308
|
+
(!p || !p.tagName) && (p = {
|
|
4309
|
+
namespaceURI: Xe,
|
|
4315
4310
|
tagName: "template"
|
|
4316
4311
|
});
|
|
4317
|
-
const T =
|
|
4318
|
-
return
|
|
4319
|
-
},
|
|
4320
|
-
|
|
4312
|
+
const T = Wt(s.tagName), Z = Wt(p.tagName);
|
|
4313
|
+
return an[s.namespaceURI] ? s.namespaceURI === Lt ? p.namespaceURI === Ie ? T === "svg" : p.namespaceURI === Ct ? T === "svg" && (Z === "annotation-xml" || Vn[Z]) : !!Yn[T] : s.namespaceURI === Ct ? p.namespaceURI === Ie ? T === "math" : p.namespaceURI === Lt ? T === "math" && Xn[Z] : !!Zn[T] : s.namespaceURI === Ie ? p.namespaceURI === Lt && !Xn[Z] || p.namespaceURI === Ct && !Vn[Z] ? !1 : !Zn[T] && (Vi[T] || !Yn[T]) : !!(ut === "application/xhtml+xml" && an[s.namespaceURI]) : !1;
|
|
4314
|
+
}, Ce = function(s) {
|
|
4315
|
+
mt(t.removed, {
|
|
4321
4316
|
element: s
|
|
4322
4317
|
});
|
|
4323
4318
|
try {
|
|
4324
4319
|
R(s).removeChild(s);
|
|
4325
|
-
} catch (
|
|
4320
|
+
} catch (p) {
|
|
4326
4321
|
N(s);
|
|
4327
4322
|
}
|
|
4328
|
-
},
|
|
4323
|
+
}, Ht = function(s, p) {
|
|
4329
4324
|
try {
|
|
4330
|
-
|
|
4331
|
-
attribute:
|
|
4332
|
-
from:
|
|
4325
|
+
mt(t.removed, {
|
|
4326
|
+
attribute: p.getAttributeNode(s),
|
|
4327
|
+
from: p
|
|
4333
4328
|
});
|
|
4334
4329
|
} catch (T) {
|
|
4335
|
-
|
|
4330
|
+
mt(t.removed, {
|
|
4336
4331
|
attribute: null,
|
|
4337
|
-
from:
|
|
4332
|
+
from: p
|
|
4338
4333
|
});
|
|
4339
4334
|
}
|
|
4340
|
-
if (
|
|
4341
|
-
if (
|
|
4335
|
+
if (p.removeAttribute(s), s === "is" && !P[s])
|
|
4336
|
+
if (Me || Ot)
|
|
4342
4337
|
try {
|
|
4343
|
-
|
|
4338
|
+
Ce(p);
|
|
4344
4339
|
} catch (T) {
|
|
4345
4340
|
}
|
|
4346
4341
|
else
|
|
4347
4342
|
try {
|
|
4348
|
-
|
|
4343
|
+
p.setAttribute(s, "");
|
|
4349
4344
|
} catch (T) {
|
|
4350
4345
|
}
|
|
4351
4346
|
}, qn = function(s) {
|
|
4352
|
-
let
|
|
4353
|
-
if (
|
|
4347
|
+
let p = null, T = null;
|
|
4348
|
+
if (re)
|
|
4354
4349
|
s = "<remove></remove>" + s;
|
|
4355
4350
|
else {
|
|
4356
4351
|
const ue = Rr(s, /^[\r\n\t ]+/);
|
|
4357
4352
|
T = ue && ue[0];
|
|
4358
4353
|
}
|
|
4359
|
-
|
|
4360
|
-
const
|
|
4361
|
-
if (
|
|
4354
|
+
ut === "application/xhtml+xml" && Xe === Ie && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4355
|
+
const Z = H ? H.createHTML(s) : s;
|
|
4356
|
+
if (Xe === Ie)
|
|
4362
4357
|
try {
|
|
4363
|
-
|
|
4358
|
+
p = new y().parseFromString(Z, ut);
|
|
4364
4359
|
} catch (ue) {
|
|
4365
4360
|
}
|
|
4366
|
-
if (!
|
|
4367
|
-
|
|
4361
|
+
if (!p || !p.documentElement) {
|
|
4362
|
+
p = W.createDocument(Xe, "template", null);
|
|
4368
4363
|
try {
|
|
4369
|
-
|
|
4364
|
+
p.documentElement.innerHTML = sn ? I : Z;
|
|
4370
4365
|
} catch (ue) {
|
|
4371
4366
|
}
|
|
4372
4367
|
}
|
|
4373
|
-
const ce =
|
|
4374
|
-
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null),
|
|
4368
|
+
const ce = p.body || p.documentElement;
|
|
4369
|
+
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null), Xe === Ie ? K.call(p, Oe ? "html" : "body")[0] : Oe ? p.documentElement : ce;
|
|
4375
4370
|
}, Jn = function(s) {
|
|
4376
4371
|
return oe.call(
|
|
4377
4372
|
s.ownerDocument || s,
|
|
@@ -4384,59 +4379,59 @@ function $i() {
|
|
|
4384
4379
|
return s instanceof m && (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");
|
|
4385
4380
|
}, Kn = function(s) {
|
|
4386
4381
|
return typeof a == "function" && s instanceof a;
|
|
4387
|
-
},
|
|
4388
|
-
|
|
4389
|
-
|
|
4382
|
+
}, Pe = function(s, p, T) {
|
|
4383
|
+
C[s] && Rt(C[s], (Z) => {
|
|
4384
|
+
Z.call(t, p, T, Ye);
|
|
4390
4385
|
});
|
|
4391
4386
|
}, er = function(s) {
|
|
4392
|
-
let
|
|
4393
|
-
if (
|
|
4394
|
-
return
|
|
4387
|
+
let p = null;
|
|
4388
|
+
if (Pe("beforeSanitizeElements", s, null), Qn(s))
|
|
4389
|
+
return Ce(s), !0;
|
|
4395
4390
|
const T = ae(s.nodeName);
|
|
4396
|
-
if (
|
|
4391
|
+
if (Pe("uponSanitizeElement", s, {
|
|
4397
4392
|
tagName: T,
|
|
4398
4393
|
allowedTags: v
|
|
4399
|
-
}), s.hasChildNodes() && !Kn(s.firstElementChild) &&
|
|
4400
|
-
return
|
|
4401
|
-
if (!v[T] ||
|
|
4402
|
-
if (!
|
|
4394
|
+
}), s.hasChildNodes() && !Kn(s.firstElementChild) && pe(/<[/\w]/g, s.innerHTML) && pe(/<[/\w]/g, s.textContent) || s.nodeType === _t.progressingInstruction || le && s.nodeType === _t.comment && pe(/<[/\w]/g, s.data))
|
|
4395
|
+
return Ce(s), !0;
|
|
4396
|
+
if (!v[T] || d[T]) {
|
|
4397
|
+
if (!d[T] && nr(T) && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4403
4398
|
return !1;
|
|
4404
|
-
if (
|
|
4405
|
-
const
|
|
4406
|
-
if (ce &&
|
|
4399
|
+
if (rn && !Ve[T]) {
|
|
4400
|
+
const Z = R(s) || s.parentNode, ce = V(s) || s.childNodes;
|
|
4401
|
+
if (ce && Z) {
|
|
4407
4402
|
const ue = ce.length;
|
|
4408
4403
|
for (let be = ue - 1; be >= 0; --be) {
|
|
4409
4404
|
const Le = g(ce[be], !0);
|
|
4410
|
-
Le.__removalCount = (s.__removalCount || 0) + 1,
|
|
4405
|
+
Le.__removalCount = (s.__removalCount || 0) + 1, Z.insertBefore(Le, U(s));
|
|
4411
4406
|
}
|
|
4412
4407
|
}
|
|
4413
4408
|
}
|
|
4414
|
-
return
|
|
4409
|
+
return Ce(s), !0;
|
|
4415
4410
|
}
|
|
4416
|
-
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") &&
|
|
4417
|
-
|
|
4418
|
-
}), s.textContent !==
|
|
4411
|
+
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") && pe(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Ce(s), !0) : (he && s.nodeType === _t.text && (p = s.textContent, Rt([se, Ee, M], (Z) => {
|
|
4412
|
+
p = pt(p, Z, " ");
|
|
4413
|
+
}), s.textContent !== p && (mt(t.removed, {
|
|
4419
4414
|
element: s.cloneNode()
|
|
4420
|
-
}), s.textContent =
|
|
4421
|
-
}, tr = function(s,
|
|
4422
|
-
if (Un && (
|
|
4415
|
+
}), s.textContent = p)), Pe("afterSanitizeElements", s, null), !1);
|
|
4416
|
+
}, tr = function(s, p, T) {
|
|
4417
|
+
if (Un && (p === "id" || p === "name") && (T in n || T in Wi))
|
|
4423
4418
|
return !1;
|
|
4424
|
-
if (!(
|
|
4425
|
-
if (!(
|
|
4426
|
-
if (!P[
|
|
4419
|
+
if (!(Y && !k[p] && pe(_, p))) {
|
|
4420
|
+
if (!(X && pe(h, p))) {
|
|
4421
|
+
if (!P[p] || k[p]) {
|
|
4427
4422
|
if (
|
|
4428
4423
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4429
4424
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4430
4425
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4431
|
-
!(nr(s) && (D.tagNameCheck instanceof RegExp &&
|
|
4426
|
+
!(nr(s) && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, s) || D.tagNameCheck instanceof Function && D.tagNameCheck(s)) && (D.attributeNameCheck instanceof RegExp && pe(D.attributeNameCheck, p) || D.attributeNameCheck instanceof Function && D.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4432
4427
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4433
|
-
|
|
4428
|
+
p === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4434
4429
|
)
|
|
4435
4430
|
return !1;
|
|
4436
|
-
} else if (!
|
|
4437
|
-
if (!
|
|
4438
|
-
if (!((
|
|
4439
|
-
if (!(
|
|
4431
|
+
} else if (!on[p]) {
|
|
4432
|
+
if (!pe(O, pt(T, b, ""))) {
|
|
4433
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && Aa(T, "data:") === 0 && Gn[s])) {
|
|
4434
|
+
if (!(ne && !pe(E, pt(T, b, "")))) {
|
|
4440
4435
|
if (T)
|
|
4441
4436
|
return !1;
|
|
4442
4437
|
}
|
|
@@ -4449,11 +4444,11 @@ function $i() {
|
|
|
4449
4444
|
}, nr = function(s) {
|
|
4450
4445
|
return s !== "annotation-xml" && Rr(s, L);
|
|
4451
4446
|
}, rr = function(s) {
|
|
4452
|
-
|
|
4447
|
+
Pe("beforeSanitizeAttributes", s, null);
|
|
4453
4448
|
const {
|
|
4454
|
-
attributes:
|
|
4449
|
+
attributes: p
|
|
4455
4450
|
} = s;
|
|
4456
|
-
if (!
|
|
4451
|
+
if (!p)
|
|
4457
4452
|
return;
|
|
4458
4453
|
const T = {
|
|
4459
4454
|
attrName: "",
|
|
@@ -4461,31 +4456,31 @@ function $i() {
|
|
|
4461
4456
|
keepAttr: !0,
|
|
4462
4457
|
allowedAttributes: P
|
|
4463
4458
|
};
|
|
4464
|
-
let
|
|
4465
|
-
for (;
|
|
4466
|
-
const ce =
|
|
4459
|
+
let Z = p.length;
|
|
4460
|
+
for (; Z--; ) {
|
|
4461
|
+
const ce = p[Z], {
|
|
4467
4462
|
name: ue,
|
|
4468
4463
|
namespaceURI: be,
|
|
4469
4464
|
value: Le
|
|
4470
|
-
} = ce,
|
|
4471
|
-
let me = ue === "value" ? Le :
|
|
4472
|
-
if (T.attrName =
|
|
4473
|
-
|
|
4465
|
+
} = ce, ct = ae(ue);
|
|
4466
|
+
let me = ue === "value" ? Le : Oa(Le);
|
|
4467
|
+
if (T.attrName = ct, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Pe("uponSanitizeAttribute", s, T), me = T.attrValue, le && pe(/((--!?|])>)|<\/(style|title)/i, me)) {
|
|
4468
|
+
Ht(ue, s);
|
|
4474
4469
|
continue;
|
|
4475
4470
|
}
|
|
4476
|
-
if (T.forceKeepAttr || (
|
|
4471
|
+
if (T.forceKeepAttr || (Ht(ue, s), !T.keepAttr))
|
|
4477
4472
|
continue;
|
|
4478
|
-
if (!
|
|
4479
|
-
|
|
4473
|
+
if (!ee && pe(/\/>/i, me)) {
|
|
4474
|
+
Ht(ue, s);
|
|
4480
4475
|
continue;
|
|
4481
4476
|
}
|
|
4482
|
-
he &&
|
|
4483
|
-
me =
|
|
4477
|
+
he && Rt([se, Ee, M], (or) => {
|
|
4478
|
+
me = pt(me, or, " ");
|
|
4484
4479
|
});
|
|
4485
4480
|
const ir = ae(s.nodeName);
|
|
4486
|
-
if (tr(ir,
|
|
4487
|
-
if (kn && (
|
|
4488
|
-
switch (A.getAttributeType(ir,
|
|
4481
|
+
if (tr(ir, ct, me)) {
|
|
4482
|
+
if (kn && (ct === "id" || ct === "name") && (Ht(ue, s), me = Fi + me), H && typeof A == "object" && typeof A.getAttributeType == "function" && !be)
|
|
4483
|
+
switch (A.getAttributeType(ir, ct)) {
|
|
4489
4484
|
case "TrustedHTML": {
|
|
4490
4485
|
me = H.createHTML(me);
|
|
4491
4486
|
break;
|
|
@@ -4496,22 +4491,22 @@ function $i() {
|
|
|
4496
4491
|
}
|
|
4497
4492
|
}
|
|
4498
4493
|
try {
|
|
4499
|
-
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), Qn(s) ?
|
|
4494
|
+
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), Qn(s) ? Ce(s) : Pr(t.removed);
|
|
4500
4495
|
} catch (or) {
|
|
4501
4496
|
}
|
|
4502
4497
|
}
|
|
4503
4498
|
}
|
|
4504
|
-
|
|
4499
|
+
Pe("afterSanitizeAttributes", s, null);
|
|
4505
4500
|
}, Yi = function S(s) {
|
|
4506
|
-
let
|
|
4501
|
+
let p = null;
|
|
4507
4502
|
const T = Jn(s);
|
|
4508
|
-
for (
|
|
4509
|
-
|
|
4510
|
-
|
|
4503
|
+
for (Pe("beforeSanitizeShadowDOM", s, null); p = T.nextNode(); )
|
|
4504
|
+
Pe("uponSanitizeShadowNode", p, null), !er(p) && (p.content instanceof o && S(p.content), rr(p));
|
|
4505
|
+
Pe("afterSanitizeShadowDOM", s, null);
|
|
4511
4506
|
};
|
|
4512
4507
|
return t.sanitize = function(S) {
|
|
4513
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
4514
|
-
if (
|
|
4508
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, T = null, Z = null, ce = null;
|
|
4509
|
+
if (sn = !S, sn && (S = "<!-->"), typeof S != "string" && !Kn(S))
|
|
4515
4510
|
if (typeof S.toString == "function") {
|
|
4516
4511
|
if (S = S.toString(), typeof S != "string")
|
|
4517
4512
|
throw dt("dirty is not a string, aborting");
|
|
@@ -4519,58 +4514,58 @@ function $i() {
|
|
|
4519
4514
|
throw dt("toString is not a function");
|
|
4520
4515
|
if (!t.isSupported)
|
|
4521
4516
|
return S;
|
|
4522
|
-
if (
|
|
4517
|
+
if (J || ln(s), t.removed = [], typeof S == "string" && (lt = !1), lt) {
|
|
4523
4518
|
if (S.nodeName) {
|
|
4524
4519
|
const Le = ae(S.nodeName);
|
|
4525
|
-
if (!v[Le] ||
|
|
4520
|
+
if (!v[Le] || d[Le])
|
|
4526
4521
|
throw dt("root node is forbidden and cannot be sanitized in-place");
|
|
4527
4522
|
}
|
|
4528
4523
|
} else if (S instanceof a)
|
|
4529
|
-
|
|
4524
|
+
p = qn("<!---->"), T = p.ownerDocument.importNode(S, !0), T.nodeType === _t.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? p = T : p.appendChild(T);
|
|
4530
4525
|
else {
|
|
4531
|
-
if (!
|
|
4526
|
+
if (!Me && !he && !Oe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4532
4527
|
S.indexOf("<") === -1)
|
|
4533
4528
|
return H && Mt ? H.createHTML(S) : S;
|
|
4534
|
-
if (
|
|
4535
|
-
return
|
|
4529
|
+
if (p = qn(S), !p)
|
|
4530
|
+
return Me ? null : Mt ? I : "";
|
|
4536
4531
|
}
|
|
4537
|
-
|
|
4538
|
-
const ue = Jn(
|
|
4539
|
-
for (;
|
|
4540
|
-
er(
|
|
4541
|
-
if (
|
|
4532
|
+
p && re && Ce(p.firstChild);
|
|
4533
|
+
const ue = Jn(lt ? S : p);
|
|
4534
|
+
for (; Z = ue.nextNode(); )
|
|
4535
|
+
er(Z) || (Z.content instanceof o && Yi(Z.content), rr(Z));
|
|
4536
|
+
if (lt)
|
|
4542
4537
|
return S;
|
|
4543
|
-
if (
|
|
4544
|
-
if (
|
|
4545
|
-
for (ce = fe.call(
|
|
4546
|
-
ce.appendChild(
|
|
4538
|
+
if (Me) {
|
|
4539
|
+
if (Ot)
|
|
4540
|
+
for (ce = fe.call(p.ownerDocument); p.firstChild; )
|
|
4541
|
+
ce.appendChild(p.firstChild);
|
|
4547
4542
|
else
|
|
4548
|
-
ce =
|
|
4549
|
-
return (P.shadowroot || P.shadowrootmode) && (ce =
|
|
4543
|
+
ce = p;
|
|
4544
|
+
return (P.shadowroot || P.shadowrootmode) && (ce = j.call(r, ce, !0)), ce;
|
|
4550
4545
|
}
|
|
4551
|
-
let be =
|
|
4552
|
-
return
|
|
4553
|
-
` + be), he &&
|
|
4554
|
-
be =
|
|
4546
|
+
let be = Oe ? p.outerHTML : p.innerHTML;
|
|
4547
|
+
return Oe && v["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && pe(Bi, p.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4548
|
+
` + be), he && Rt([se, Ee, M], (Le) => {
|
|
4549
|
+
be = pt(be, Le, " ");
|
|
4555
4550
|
}), H && Mt ? H.createHTML(be) : be;
|
|
4556
4551
|
}, t.setConfig = function() {
|
|
4557
4552
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4558
|
-
|
|
4553
|
+
ln(S), J = !0;
|
|
4559
4554
|
}, t.clearConfig = function() {
|
|
4560
|
-
|
|
4561
|
-
}, t.isValidAttribute = function(S, s,
|
|
4562
|
-
|
|
4563
|
-
const T = ae(S),
|
|
4564
|
-
return tr(T,
|
|
4555
|
+
Ye = null, J = !1;
|
|
4556
|
+
}, t.isValidAttribute = function(S, s, p) {
|
|
4557
|
+
Ye || ln({});
|
|
4558
|
+
const T = ae(S), Z = ae(s);
|
|
4559
|
+
return tr(T, Z, p);
|
|
4565
4560
|
}, t.addHook = function(S, s) {
|
|
4566
|
-
typeof s == "function" && (
|
|
4561
|
+
typeof s == "function" && (C[S] = C[S] || [], mt(C[S], s));
|
|
4567
4562
|
}, t.removeHook = function(S) {
|
|
4568
|
-
if (
|
|
4569
|
-
return Pr(
|
|
4563
|
+
if (C[S])
|
|
4564
|
+
return Pr(C[S]);
|
|
4570
4565
|
}, t.removeHooks = function(S) {
|
|
4571
|
-
|
|
4566
|
+
C[S] && (C[S] = []);
|
|
4572
4567
|
}, t.removeAllHooks = function() {
|
|
4573
|
-
|
|
4568
|
+
C = {};
|
|
4574
4569
|
}, t;
|
|
4575
4570
|
}
|
|
4576
4571
|
var Fr = $i(), Ui = { exports: {} };
|
|
@@ -4578,73 +4573,73 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4578
4573
|
(function(n, r) {
|
|
4579
4574
|
e.exports = r();
|
|
4580
4575
|
})(li, function() {
|
|
4581
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter", A = "year", x = "date", g = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
4582
|
-
var _ = ["th", "st", "nd", "rd"], h =
|
|
4583
|
-
return "[" +
|
|
4584
|
-
} }, R = function(
|
|
4585
|
-
var E = String(
|
|
4586
|
-
return !E || E.length >= _ ?
|
|
4587
|
-
}, H = { s: R, z: function(
|
|
4588
|
-
var _ = -
|
|
4576
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter", A = "year", x = "date", g = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { 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(M) {
|
|
4577
|
+
var _ = ["th", "st", "nd", "rd"], h = M % 100;
|
|
4578
|
+
return "[" + M + (_[(h - 20) % 10] || _[h] || _[0]) + "]";
|
|
4579
|
+
} }, R = function(M, _, h) {
|
|
4580
|
+
var E = String(M);
|
|
4581
|
+
return !E || E.length >= _ ? M : "" + Array(_ + 1 - E.length).join(h) + M;
|
|
4582
|
+
}, H = { s: R, z: function(M) {
|
|
4583
|
+
var _ = -M.utcOffset(), h = Math.abs(_), E = Math.floor(h / 60), b = h % 60;
|
|
4589
4584
|
return (_ <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(b, 2, "0");
|
|
4590
|
-
}, m: function
|
|
4585
|
+
}, m: function M(_, h) {
|
|
4591
4586
|
if (_.date() < h.date())
|
|
4592
|
-
return -
|
|
4593
|
-
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0,
|
|
4594
|
-
return +(-(E + (h - b) / (L ? b -
|
|
4595
|
-
}, a: function(
|
|
4596
|
-
return
|
|
4597
|
-
}, p: function(
|
|
4598
|
-
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[
|
|
4599
|
-
}, u: function(
|
|
4600
|
-
return
|
|
4601
|
-
} }, I = "en",
|
|
4602
|
-
|
|
4603
|
-
var oe = "$isDayjsObject", fe = function(
|
|
4604
|
-
return
|
|
4605
|
-
},
|
|
4587
|
+
return -M(h, _);
|
|
4588
|
+
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0, O = _.clone().add(E + (L ? -1 : 1), m);
|
|
4589
|
+
return +(-(E + (h - b) / (L ? b - O : O - b)) || 0);
|
|
4590
|
+
}, a: function(M) {
|
|
4591
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4592
|
+
}, p: function(M) {
|
|
4593
|
+
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
4594
|
+
}, u: function(M) {
|
|
4595
|
+
return M === void 0;
|
|
4596
|
+
} }, I = "en", W = {};
|
|
4597
|
+
W[I] = V;
|
|
4598
|
+
var oe = "$isDayjsObject", fe = function(M) {
|
|
4599
|
+
return M instanceof se || !(!M || !M[oe]);
|
|
4600
|
+
}, K = function M(_, h, E) {
|
|
4606
4601
|
var b;
|
|
4607
4602
|
if (!_)
|
|
4608
4603
|
return I;
|
|
4609
4604
|
if (typeof _ == "string") {
|
|
4610
4605
|
var L = _.toLowerCase();
|
|
4611
|
-
|
|
4612
|
-
var
|
|
4613
|
-
if (!b &&
|
|
4614
|
-
return
|
|
4606
|
+
W[L] && (b = L), h && (W[L] = h, b = L);
|
|
4607
|
+
var O = _.split("-");
|
|
4608
|
+
if (!b && O.length > 1)
|
|
4609
|
+
return M(O[0]);
|
|
4615
4610
|
} else {
|
|
4616
4611
|
var v = _.name;
|
|
4617
|
-
|
|
4612
|
+
W[v] = _, b = v;
|
|
4618
4613
|
}
|
|
4619
4614
|
return !E && b && (I = b), b || !E && I;
|
|
4620
|
-
},
|
|
4621
|
-
if (fe(
|
|
4622
|
-
return
|
|
4615
|
+
}, j = function(M, _) {
|
|
4616
|
+
if (fe(M))
|
|
4617
|
+
return M.clone();
|
|
4623
4618
|
var h = typeof _ == "object" ? _ : {};
|
|
4624
|
-
return h.date =
|
|
4625
|
-
},
|
|
4626
|
-
|
|
4627
|
-
return
|
|
4619
|
+
return h.date = M, h.args = arguments, new se(h);
|
|
4620
|
+
}, C = H;
|
|
4621
|
+
C.l = K, C.i = fe, C.w = function(M, _) {
|
|
4622
|
+
return j(M, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4628
4623
|
};
|
|
4629
4624
|
var se = function() {
|
|
4630
|
-
function
|
|
4631
|
-
this.$L =
|
|
4625
|
+
function M(h) {
|
|
4626
|
+
this.$L = K(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[oe] = !0;
|
|
4632
4627
|
}
|
|
4633
|
-
var _ =
|
|
4628
|
+
var _ = M.prototype;
|
|
4634
4629
|
return _.parse = function(h) {
|
|
4635
4630
|
this.$d = function(E) {
|
|
4636
4631
|
var b = E.date, L = E.utc;
|
|
4637
4632
|
if (b === null)
|
|
4638
4633
|
return /* @__PURE__ */ new Date(NaN);
|
|
4639
|
-
if (
|
|
4634
|
+
if (C.u(b))
|
|
4640
4635
|
return /* @__PURE__ */ new Date();
|
|
4641
4636
|
if (b instanceof Date)
|
|
4642
4637
|
return new Date(b);
|
|
4643
4638
|
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4644
|
-
var
|
|
4645
|
-
if (
|
|
4646
|
-
var v =
|
|
4647
|
-
return L ? new Date(Date.UTC(
|
|
4639
|
+
var O = b.match(N);
|
|
4640
|
+
if (O) {
|
|
4641
|
+
var v = O[2] - 1 || 0, z = (O[7] || "0").substring(0, 3);
|
|
4642
|
+
return L ? new Date(Date.UTC(O[1], v, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z)) : new Date(O[1], v, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z);
|
|
4648
4643
|
}
|
|
4649
4644
|
}
|
|
4650
4645
|
return new Date(b);
|
|
@@ -4653,105 +4648,105 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4653
4648
|
var h = this.$d;
|
|
4654
4649
|
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
4655
4650
|
}, _.$utils = function() {
|
|
4656
|
-
return
|
|
4651
|
+
return C;
|
|
4657
4652
|
}, _.isValid = function() {
|
|
4658
4653
|
return this.$d.toString() !== g;
|
|
4659
4654
|
}, _.isSame = function(h, E) {
|
|
4660
|
-
var b =
|
|
4655
|
+
var b = j(h);
|
|
4661
4656
|
return this.startOf(E) <= b && b <= this.endOf(E);
|
|
4662
4657
|
}, _.isAfter = function(h, E) {
|
|
4663
|
-
return
|
|
4658
|
+
return j(h) < this.startOf(E);
|
|
4664
4659
|
}, _.isBefore = function(h, E) {
|
|
4665
|
-
return this.endOf(E) <
|
|
4660
|
+
return this.endOf(E) < j(h);
|
|
4666
4661
|
}, _.$g = function(h, E, b) {
|
|
4667
|
-
return
|
|
4662
|
+
return C.u(h) ? this[E] : this.set(b, h);
|
|
4668
4663
|
}, _.unix = function() {
|
|
4669
4664
|
return Math.floor(this.valueOf() / 1e3);
|
|
4670
4665
|
}, _.valueOf = function() {
|
|
4671
4666
|
return this.$d.getTime();
|
|
4672
4667
|
}, _.startOf = function(h, E) {
|
|
4673
|
-
var b = this, L = !!
|
|
4674
|
-
var
|
|
4675
|
-
return L ?
|
|
4676
|
-
},
|
|
4677
|
-
return
|
|
4678
|
-
}, P = this.$W,
|
|
4679
|
-
switch (
|
|
4668
|
+
var b = this, L = !!C.u(E) || E, O = C.p(h), v = function(Y, ne) {
|
|
4669
|
+
var ee = C.w(b.$u ? Date.UTC(b.$y, ne, Y) : new Date(b.$y, ne, Y), b);
|
|
4670
|
+
return L ? ee : ee.endOf(u);
|
|
4671
|
+
}, z = function(Y, ne) {
|
|
4672
|
+
return C.w(b.toDate()[Y].apply(b.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), b);
|
|
4673
|
+
}, P = this.$W, q = this.$M, D = this.$D, d = "set" + (this.$u ? "UTC" : "");
|
|
4674
|
+
switch (O) {
|
|
4680
4675
|
case A:
|
|
4681
4676
|
return L ? v(1, 0) : v(31, 11);
|
|
4682
4677
|
case m:
|
|
4683
|
-
return L ? v(1,
|
|
4678
|
+
return L ? v(1, q) : v(0, q + 1);
|
|
4684
4679
|
case f:
|
|
4685
|
-
var k = this.$locale().weekStart || 0,
|
|
4686
|
-
return v(L ? D -
|
|
4680
|
+
var k = this.$locale().weekStart || 0, X = (P < k ? P + 7 : P) - k;
|
|
4681
|
+
return v(L ? D - X : D + (6 - X), q);
|
|
4687
4682
|
case u:
|
|
4688
4683
|
case x:
|
|
4689
|
-
return
|
|
4684
|
+
return z(d + "Hours", 0);
|
|
4690
4685
|
case c:
|
|
4691
|
-
return
|
|
4686
|
+
return z(d + "Minutes", 1);
|
|
4692
4687
|
case a:
|
|
4693
|
-
return
|
|
4688
|
+
return z(d + "Seconds", 2);
|
|
4694
4689
|
case l:
|
|
4695
|
-
return
|
|
4690
|
+
return z(d + "Milliseconds", 3);
|
|
4696
4691
|
default:
|
|
4697
4692
|
return this.clone();
|
|
4698
4693
|
}
|
|
4699
4694
|
}, _.endOf = function(h) {
|
|
4700
4695
|
return this.startOf(h, !1);
|
|
4701
4696
|
}, _.$set = function(h, E) {
|
|
4702
|
-
var b, L =
|
|
4697
|
+
var b, L = C.p(h), O = "set" + (this.$u ? "UTC" : ""), v = (b = {}, b[u] = O + "Date", b[x] = O + "Date", b[m] = O + "Month", b[A] = O + "FullYear", b[c] = O + "Hours", b[a] = O + "Minutes", b[l] = O + "Seconds", b[o] = O + "Milliseconds", b)[L], z = L === u ? this.$D + (E - this.$W) : E;
|
|
4703
4698
|
if (L === m || L === A) {
|
|
4704
4699
|
var P = this.clone().set(x, 1);
|
|
4705
|
-
P.$d[v](
|
|
4700
|
+
P.$d[v](z), P.init(), this.$d = P.set(x, Math.min(this.$D, P.daysInMonth())).$d;
|
|
4706
4701
|
} else
|
|
4707
|
-
v && this.$d[v](
|
|
4702
|
+
v && this.$d[v](z);
|
|
4708
4703
|
return this.init(), this;
|
|
4709
4704
|
}, _.set = function(h, E) {
|
|
4710
4705
|
return this.clone().$set(h, E);
|
|
4711
4706
|
}, _.get = function(h) {
|
|
4712
|
-
return this[
|
|
4707
|
+
return this[C.p(h)]();
|
|
4713
4708
|
}, _.add = function(h, E) {
|
|
4714
4709
|
var b, L = this;
|
|
4715
4710
|
h = Number(h);
|
|
4716
|
-
var
|
|
4717
|
-
var D =
|
|
4718
|
-
return
|
|
4711
|
+
var O = C.p(E), v = function(q) {
|
|
4712
|
+
var D = j(L);
|
|
4713
|
+
return C.w(D.date(D.date() + Math.round(q * h)), L);
|
|
4719
4714
|
};
|
|
4720
|
-
if (
|
|
4715
|
+
if (O === m)
|
|
4721
4716
|
return this.set(m, this.$M + h);
|
|
4722
|
-
if (
|
|
4717
|
+
if (O === A)
|
|
4723
4718
|
return this.set(A, this.$y + h);
|
|
4724
|
-
if (
|
|
4719
|
+
if (O === u)
|
|
4725
4720
|
return v(1);
|
|
4726
|
-
if (
|
|
4721
|
+
if (O === f)
|
|
4727
4722
|
return v(7);
|
|
4728
|
-
var
|
|
4729
|
-
return
|
|
4723
|
+
var z = (b = {}, b[a] = r, b[c] = i, b[l] = n, b)[O] || 1, P = this.$d.getTime() + h * z;
|
|
4724
|
+
return C.w(P, this);
|
|
4730
4725
|
}, _.subtract = function(h, E) {
|
|
4731
4726
|
return this.add(-1 * h, E);
|
|
4732
4727
|
}, _.format = function(h) {
|
|
4733
4728
|
var E = this, b = this.$locale();
|
|
4734
4729
|
if (!this.isValid())
|
|
4735
4730
|
return b.invalidDate || g;
|
|
4736
|
-
var L = h || "YYYY-MM-DDTHH:mm:ssZ",
|
|
4737
|
-
return
|
|
4738
|
-
},
|
|
4739
|
-
return
|
|
4740
|
-
},
|
|
4741
|
-
var le =
|
|
4731
|
+
var L = h || "YYYY-MM-DDTHH:mm:ssZ", O = C.z(this), v = this.$H, z = this.$m, P = this.$M, q = b.weekdays, D = b.months, d = b.meridiem, k = function(ne, ee, he, le) {
|
|
4732
|
+
return ne && (ne[ee] || ne(E, L)) || he[ee].slice(0, le);
|
|
4733
|
+
}, X = function(ne) {
|
|
4734
|
+
return C.s(v % 12 || 12, ne, "0");
|
|
4735
|
+
}, Y = d || function(ne, ee, he) {
|
|
4736
|
+
var le = ne < 12 ? "AM" : "PM";
|
|
4742
4737
|
return he ? le.toLowerCase() : le;
|
|
4743
4738
|
};
|
|
4744
|
-
return L.replace(U, function(
|
|
4745
|
-
return
|
|
4739
|
+
return L.replace(U, function(ne, ee) {
|
|
4740
|
+
return ee || function(he) {
|
|
4746
4741
|
switch (he) {
|
|
4747
4742
|
case "YY":
|
|
4748
4743
|
return String(E.$y).slice(-2);
|
|
4749
4744
|
case "YYYY":
|
|
4750
|
-
return
|
|
4745
|
+
return C.s(E.$y, 4, "0");
|
|
4751
4746
|
case "M":
|
|
4752
4747
|
return P + 1;
|
|
4753
4748
|
case "MM":
|
|
4754
|
-
return
|
|
4749
|
+
return C.s(P + 1, 2, "0");
|
|
4755
4750
|
case "MMM":
|
|
4756
4751
|
return k(b.monthsShort, P, D, 3);
|
|
4757
4752
|
case "MMMM":
|
|
@@ -4759,48 +4754,48 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4759
4754
|
case "D":
|
|
4760
4755
|
return E.$D;
|
|
4761
4756
|
case "DD":
|
|
4762
|
-
return
|
|
4757
|
+
return C.s(E.$D, 2, "0");
|
|
4763
4758
|
case "d":
|
|
4764
4759
|
return String(E.$W);
|
|
4765
4760
|
case "dd":
|
|
4766
|
-
return k(b.weekdaysMin, E.$W,
|
|
4761
|
+
return k(b.weekdaysMin, E.$W, q, 2);
|
|
4767
4762
|
case "ddd":
|
|
4768
|
-
return k(b.weekdaysShort, E.$W,
|
|
4763
|
+
return k(b.weekdaysShort, E.$W, q, 3);
|
|
4769
4764
|
case "dddd":
|
|
4770
|
-
return
|
|
4765
|
+
return q[E.$W];
|
|
4771
4766
|
case "H":
|
|
4772
4767
|
return String(v);
|
|
4773
4768
|
case "HH":
|
|
4774
|
-
return
|
|
4769
|
+
return C.s(v, 2, "0");
|
|
4775
4770
|
case "h":
|
|
4776
|
-
return
|
|
4771
|
+
return X(1);
|
|
4777
4772
|
case "hh":
|
|
4778
|
-
return
|
|
4773
|
+
return X(2);
|
|
4779
4774
|
case "a":
|
|
4780
|
-
return
|
|
4775
|
+
return Y(v, z, !0);
|
|
4781
4776
|
case "A":
|
|
4782
|
-
return
|
|
4777
|
+
return Y(v, z, !1);
|
|
4783
4778
|
case "m":
|
|
4784
|
-
return String(
|
|
4779
|
+
return String(z);
|
|
4785
4780
|
case "mm":
|
|
4786
|
-
return
|
|
4781
|
+
return C.s(z, 2, "0");
|
|
4787
4782
|
case "s":
|
|
4788
4783
|
return String(E.$s);
|
|
4789
4784
|
case "ss":
|
|
4790
|
-
return
|
|
4785
|
+
return C.s(E.$s, 2, "0");
|
|
4791
4786
|
case "SSS":
|
|
4792
|
-
return
|
|
4787
|
+
return C.s(E.$ms, 3, "0");
|
|
4793
4788
|
case "Z":
|
|
4794
|
-
return
|
|
4789
|
+
return O;
|
|
4795
4790
|
}
|
|
4796
4791
|
return null;
|
|
4797
|
-
}(
|
|
4792
|
+
}(ne) || O.replace(":", "");
|
|
4798
4793
|
});
|
|
4799
4794
|
}, _.utcOffset = function() {
|
|
4800
4795
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4801
4796
|
}, _.diff = function(h, E, b) {
|
|
4802
|
-
var L,
|
|
4803
|
-
return
|
|
4797
|
+
var L, O = this, v = C.p(E), z = j(h), P = (z.utcOffset() - this.utcOffset()) * r, q = this - z, D = function() {
|
|
4798
|
+
return C.m(O, z);
|
|
4804
4799
|
};
|
|
4805
4800
|
switch (v) {
|
|
4806
4801
|
case A:
|
|
@@ -4813,35 +4808,35 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4813
4808
|
L = D() / 3;
|
|
4814
4809
|
break;
|
|
4815
4810
|
case f:
|
|
4816
|
-
L = (
|
|
4811
|
+
L = (q - P) / 6048e5;
|
|
4817
4812
|
break;
|
|
4818
4813
|
case u:
|
|
4819
|
-
L = (
|
|
4814
|
+
L = (q - P) / 864e5;
|
|
4820
4815
|
break;
|
|
4821
4816
|
case c:
|
|
4822
|
-
L =
|
|
4817
|
+
L = q / i;
|
|
4823
4818
|
break;
|
|
4824
4819
|
case a:
|
|
4825
|
-
L =
|
|
4820
|
+
L = q / r;
|
|
4826
4821
|
break;
|
|
4827
4822
|
case l:
|
|
4828
|
-
L =
|
|
4823
|
+
L = q / n;
|
|
4829
4824
|
break;
|
|
4830
4825
|
default:
|
|
4831
|
-
L =
|
|
4826
|
+
L = q;
|
|
4832
4827
|
}
|
|
4833
|
-
return b ? L :
|
|
4828
|
+
return b ? L : C.a(L);
|
|
4834
4829
|
}, _.daysInMonth = function() {
|
|
4835
4830
|
return this.endOf(m).$D;
|
|
4836
4831
|
}, _.$locale = function() {
|
|
4837
|
-
return
|
|
4832
|
+
return W[this.$L];
|
|
4838
4833
|
}, _.locale = function(h, E) {
|
|
4839
4834
|
if (!h)
|
|
4840
4835
|
return this.$L;
|
|
4841
|
-
var b = this.clone(), L =
|
|
4836
|
+
var b = this.clone(), L = K(h, E, !0);
|
|
4842
4837
|
return L && (b.$L = L), b;
|
|
4843
4838
|
}, _.clone = function() {
|
|
4844
|
-
return
|
|
4839
|
+
return C.w(this.$d, this);
|
|
4845
4840
|
}, _.toDate = function() {
|
|
4846
4841
|
return new Date(this.valueOf());
|
|
4847
4842
|
}, _.toJSON = function() {
|
|
@@ -4850,21 +4845,21 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4850
4845
|
return this.$d.toISOString();
|
|
4851
4846
|
}, _.toString = function() {
|
|
4852
4847
|
return this.$d.toUTCString();
|
|
4853
|
-
},
|
|
4848
|
+
}, M;
|
|
4854
4849
|
}(), Ee = se.prototype;
|
|
4855
|
-
return
|
|
4856
|
-
Ee[
|
|
4857
|
-
return this.$g(_,
|
|
4850
|
+
return j.prototype = Ee, [["$ms", o], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", m], ["$y", A], ["$D", x]].forEach(function(M) {
|
|
4851
|
+
Ee[M[1]] = function(_) {
|
|
4852
|
+
return this.$g(_, M[0], M[1]);
|
|
4858
4853
|
};
|
|
4859
|
-
}),
|
|
4860
|
-
return
|
|
4861
|
-
},
|
|
4862
|
-
return
|
|
4863
|
-
},
|
|
4854
|
+
}), j.extend = function(M, _) {
|
|
4855
|
+
return M.$i || (M(_, se, j), M.$i = !0), j;
|
|
4856
|
+
}, j.locale = K, j.isDayjs = fe, j.unix = function(M) {
|
|
4857
|
+
return j(1e3 * M);
|
|
4858
|
+
}, j.en = W[I], j.Ls = W, j.p = {}, j;
|
|
4864
4859
|
});
|
|
4865
4860
|
})(Ui);
|
|
4866
|
-
var
|
|
4867
|
-
const Gr = /* @__PURE__ */
|
|
4861
|
+
var Ga = Ui.exports;
|
|
4862
|
+
const Gr = /* @__PURE__ */ Dn(Ga);
|
|
4868
4863
|
var ki = { exports: {} };
|
|
4869
4864
|
(function(e, t) {
|
|
4870
4865
|
(function(n, r) {
|
|
@@ -4901,19 +4896,19 @@ var ki = { exports: {} };
|
|
|
4901
4896
|
return this.$u ? 0 : U(this.$offset) ? m.call(this) : this.$offset;
|
|
4902
4897
|
if (typeof g == "string" && (g = function(I) {
|
|
4903
4898
|
I === void 0 && (I = "");
|
|
4904
|
-
var
|
|
4905
|
-
if (!
|
|
4899
|
+
var W = I.match(r);
|
|
4900
|
+
if (!W)
|
|
4906
4901
|
return null;
|
|
4907
|
-
var oe = ("" +
|
|
4908
|
-
return
|
|
4902
|
+
var oe = ("" + W[0]).match(i) || ["-", 0, 0], fe = oe[0], K = 60 * +oe[1] + +oe[2];
|
|
4903
|
+
return K === 0 ? 0 : fe === "+" ? K : -K;
|
|
4909
4904
|
}(g), g === null))
|
|
4910
4905
|
return this;
|
|
4911
|
-
var
|
|
4906
|
+
var V = Math.abs(g) <= 16 ? 60 * g : g, R = this;
|
|
4912
4907
|
if (N)
|
|
4913
|
-
return R.$offset =
|
|
4908
|
+
return R.$offset = V, R.$u = g === 0, R;
|
|
4914
4909
|
if (g !== 0) {
|
|
4915
4910
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4916
|
-
(R = this.local().add(
|
|
4911
|
+
(R = this.local().add(V + H, n)).$offset = V, R.$x.$localOffset = H;
|
|
4917
4912
|
} else
|
|
4918
4913
|
R = this.utc();
|
|
4919
4914
|
return R;
|
|
@@ -4940,22 +4935,22 @@ var ki = { exports: {} };
|
|
|
4940
4935
|
c.diff = function(g, N, U) {
|
|
4941
4936
|
if (g && this.$u === g.$u)
|
|
4942
4937
|
return x.call(this, g, N, U);
|
|
4943
|
-
var
|
|
4944
|
-
return x.call(
|
|
4938
|
+
var V = this.local(), R = a(g).local();
|
|
4939
|
+
return x.call(V, R, N, U);
|
|
4945
4940
|
};
|
|
4946
4941
|
};
|
|
4947
4942
|
});
|
|
4948
4943
|
})(ki);
|
|
4949
|
-
var
|
|
4950
|
-
const
|
|
4951
|
-
let jr =
|
|
4952
|
-
function
|
|
4944
|
+
var ja = ki.exports;
|
|
4945
|
+
const za = /* @__PURE__ */ Dn(ja);
|
|
4946
|
+
let jr = St(null);
|
|
4947
|
+
function Wa(e, t) {
|
|
4953
4948
|
if (e) {
|
|
4954
4949
|
const n = document.createElement("style");
|
|
4955
4950
|
n.innerHTML = t, e.appendChild(n);
|
|
4956
4951
|
}
|
|
4957
4952
|
}
|
|
4958
|
-
function
|
|
4953
|
+
function Va(e, t) {
|
|
4959
4954
|
if (!e || !t)
|
|
4960
4955
|
return;
|
|
4961
4956
|
const n = new URL(t);
|
|
@@ -4966,7 +4961,7 @@ function Wa(e, t) {
|
|
|
4966
4961
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4967
4962
|
});
|
|
4968
4963
|
}
|
|
4969
|
-
function
|
|
4964
|
+
function Xa(e, t, n) {
|
|
4970
4965
|
if (window.emMessageBus) {
|
|
4971
4966
|
const r = document.createElement("style");
|
|
4972
4967
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4974,177 +4969,177 @@ function Va(e, t, n) {
|
|
|
4974
4969
|
});
|
|
4975
4970
|
}
|
|
4976
4971
|
}
|
|
4977
|
-
function
|
|
4972
|
+
function Ya(e) {
|
|
4978
4973
|
io(e, "svelte-1kjup2o", '*,*::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:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;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;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));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;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);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, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);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}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
|
|
4979
4974
|
}
|
|
4980
|
-
const
|
|
4975
|
+
const Za = (e) => ({}), zr = (e) => ({}), qa = (e) => ({}), Wr = (e) => ({}), Ja = (e) => ({}), Vr = (e) => ({}), Qa = (e) => ({}), Xr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4981
4976
|
function Yr(e) {
|
|
4982
4977
|
let t, n, r, i, o, l, a, c, u, f, m, y, A = (
|
|
4983
4978
|
/*$_*/
|
|
4984
4979
|
e[8]("sessionExpirationHeader") + ""
|
|
4985
|
-
), x, g, N, U,
|
|
4980
|
+
), x, g, N, U, V, R, H, I, W, oe, fe, K, j, C, se = (
|
|
4986
4981
|
/*$_*/
|
|
4987
4982
|
e[8]("sessionExpirationEnd") + ""
|
|
4988
|
-
), Ee,
|
|
4989
|
-
const
|
|
4983
|
+
), Ee, M, _, h, E, b, L, O, v, z, P;
|
|
4984
|
+
const q = (
|
|
4990
4985
|
/*#slots*/
|
|
4991
4986
|
e[23].icon
|
|
4992
|
-
), D =
|
|
4993
|
-
|
|
4987
|
+
), D = Bt(
|
|
4988
|
+
q,
|
|
4994
4989
|
e,
|
|
4995
4990
|
/*$$scope*/
|
|
4996
4991
|
e[22],
|
|
4997
4992
|
Xr
|
|
4998
|
-
),
|
|
4993
|
+
), d = D || Ka(e), k = (
|
|
4999
4994
|
/*#slots*/
|
|
5000
4995
|
e[23].title
|
|
5001
|
-
),
|
|
4996
|
+
), X = Bt(
|
|
5002
4997
|
k,
|
|
5003
4998
|
e,
|
|
5004
4999
|
/*$$scope*/
|
|
5005
5000
|
e[22],
|
|
5006
5001
|
Vr
|
|
5007
|
-
),
|
|
5002
|
+
), Y = (
|
|
5008
5003
|
/*#slots*/
|
|
5009
5004
|
e[23].text
|
|
5010
|
-
),
|
|
5011
|
-
|
|
5005
|
+
), ne = Bt(
|
|
5006
|
+
Y,
|
|
5012
5007
|
e,
|
|
5013
5008
|
/*$$scope*/
|
|
5014
5009
|
e[22],
|
|
5015
5010
|
Wr
|
|
5016
|
-
),
|
|
5017
|
-
function
|
|
5011
|
+
), ee = ne || el(e), he = [nl, tl], le = [];
|
|
5012
|
+
function Oe(J, re) {
|
|
5018
5013
|
return (
|
|
5019
5014
|
/*showLoaderButton*/
|
|
5020
|
-
|
|
5015
|
+
J[6] ? 0 : 1
|
|
5021
5016
|
);
|
|
5022
5017
|
}
|
|
5023
|
-
return h =
|
|
5018
|
+
return h = Oe(e), E = le[h] = he[h](e), {
|
|
5024
5019
|
c() {
|
|
5025
|
-
t =
|
|
5026
|
-
(e[6] ? "Disabled" : "")), w(
|
|
5020
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), o = Se("svg"), l = Se("defs"), a = Se("mask"), c = Se("circle"), u = Se("rect"), f = Se("circle"), m = Se("circle"), y = Re(), x = je(A), g = Re(), N = te("div"), U = Se("svg"), V = Se("path"), R = Re(), H = te("div"), I = te("div"), d && d.c(), W = Re(), X && X.c(), oe = Re(), ee && ee.c(), fe = Re(), K = te("div"), j = te("button"), C = te("span"), Ee = je(se), M = Re(), _ = te("button"), E.c(), w(c, "cx", "100"), w(c, "cy", "100"), w(c, "r", "90"), w(u, "x", "88"), w(u, "y", "40"), w(u, "width", "24"), w(u, "height", "80"), w(u, "rx", "12"), w(u, "fill", "black"), w(f, "cx", "100"), w(f, "cy", "150"), w(f, "r", "14"), w(f, "fill", "black"), w(a, "id", "exclamation-mask"), w(m, "cx", "100"), w(m, "cy", "100"), w(m, "r", "90"), w(m, "mask", "url(#exclamation-mask)"), w(o, "viewBox", "0 0 200 200"), w(o, "xmlns", "http://www.w3.org/2000/svg"), w(i, "class", "CashierSessionExpirationModalHeaderTitle"), w(V, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), w(U, "xmlns", "http://www.w3.org/2000/svg"), w(U, "viewBox", "0 0 13 13"), w(U, "fill", "none"), w(U, "class", "CloseButton"), w(N, "class", "ModalCloseIcon"), w(r, "class", "CashierSessionExpirationModalHeader"), w(C, "class", "CashierSessionExpirationButtonText"), w(j, "type", "button"), w(j, "class", "ModalButton Secondary"), w(_, "type", "button"), w(_, "class", b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5021
|
+
(e[6] ? "Disabled" : "")), w(K, "class", "ButtonsContainer"), w(I, "class", "CashierSessionExpiration"), w(H, "class", "CashierSessionExpirationModalContainer"), w(n, "class", "CashierSessionExpirationModalWrapper"), w(t, "class", "CashierSessionExpirationModalWindow"), w(t, "id", "CashierSessionExpirationModal"), tt(() => (
|
|
5027
5022
|
/*div7_elementresize_handler*/
|
|
5028
5023
|
e[25].call(t)
|
|
5029
5024
|
));
|
|
5030
5025
|
},
|
|
5031
|
-
m(
|
|
5032
|
-
|
|
5026
|
+
m(J, re) {
|
|
5027
|
+
ke(J, t, re), B(t, n), B(n, r), B(r, i), B(i, o), B(o, l), B(l, a), B(a, c), B(a, u), B(a, f), B(o, m), B(i, y), B(i, x), B(r, g), B(r, N), B(N, U), B(U, V), B(n, R), B(n, H), B(H, I), d && d.m(I, null), B(I, W), X && X.m(I, null), B(I, oe), ee && ee.m(I, null), B(I, fe), B(I, K), B(K, j), B(j, C), B(C, Ee), B(K, M), B(K, _), le[h].m(_, null), e[24](I), L = uo(
|
|
5033
5028
|
t,
|
|
5034
5029
|
/*div7_elementresize_handler*/
|
|
5035
5030
|
e[25].bind(t)
|
|
5036
|
-
), v = !0,
|
|
5037
|
-
|
|
5031
|
+
), v = !0, z || (P = [
|
|
5032
|
+
Qe(
|
|
5038
5033
|
U,
|
|
5039
5034
|
"click",
|
|
5040
5035
|
/*goToHome*/
|
|
5041
5036
|
e[11]
|
|
5042
5037
|
),
|
|
5043
|
-
|
|
5044
|
-
|
|
5038
|
+
Qe(
|
|
5039
|
+
j,
|
|
5045
5040
|
"click",
|
|
5046
5041
|
/*goToHome*/
|
|
5047
5042
|
e[11]
|
|
5048
5043
|
),
|
|
5049
|
-
|
|
5044
|
+
Qe(
|
|
5050
5045
|
_,
|
|
5051
5046
|
"click",
|
|
5052
5047
|
/*renewSession*/
|
|
5053
5048
|
e[9]
|
|
5054
5049
|
),
|
|
5055
|
-
|
|
5050
|
+
Qe(
|
|
5056
5051
|
t,
|
|
5057
5052
|
"click",
|
|
5058
5053
|
/*outOfModalClick*/
|
|
5059
5054
|
e[10]
|
|
5060
5055
|
)
|
|
5061
|
-
],
|
|
5056
|
+
], z = !0);
|
|
5062
5057
|
},
|
|
5063
|
-
p(
|
|
5064
|
-
e =
|
|
5058
|
+
p(J, re) {
|
|
5059
|
+
e = J, (!v || re[0] & /*$_*/
|
|
5065
5060
|
256) && A !== (A = /*$_*/
|
|
5066
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5067
|
-
4194304) &&
|
|
5061
|
+
e[8]("sessionExpirationHeader") + "") && yt(x, A), D ? D.p && (!v || re[0] & /*$$scope*/
|
|
5062
|
+
4194304) && Ut(
|
|
5068
5063
|
D,
|
|
5069
|
-
|
|
5064
|
+
q,
|
|
5070
5065
|
e,
|
|
5071
5066
|
/*$$scope*/
|
|
5072
5067
|
e[22],
|
|
5073
|
-
v ?
|
|
5074
|
-
|
|
5068
|
+
v ? $t(
|
|
5069
|
+
q,
|
|
5075
5070
|
/*$$scope*/
|
|
5076
5071
|
e[22],
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
) :
|
|
5072
|
+
re,
|
|
5073
|
+
Qa
|
|
5074
|
+
) : kt(
|
|
5080
5075
|
/*$$scope*/
|
|
5081
5076
|
e[22]
|
|
5082
5077
|
),
|
|
5083
5078
|
Xr
|
|
5084
|
-
) :
|
|
5085
|
-
8) &&
|
|
5086
|
-
4194304) &&
|
|
5087
|
-
|
|
5079
|
+
) : d && d.p && (!v || re[0] & /*assetsurl*/
|
|
5080
|
+
8) && d.p(e, v ? re : [-1, -1]), X && X.p && (!v || re[0] & /*$$scope*/
|
|
5081
|
+
4194304) && Ut(
|
|
5082
|
+
X,
|
|
5088
5083
|
k,
|
|
5089
5084
|
e,
|
|
5090
5085
|
/*$$scope*/
|
|
5091
5086
|
e[22],
|
|
5092
|
-
v ?
|
|
5087
|
+
v ? $t(
|
|
5093
5088
|
k,
|
|
5094
5089
|
/*$$scope*/
|
|
5095
5090
|
e[22],
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
) :
|
|
5091
|
+
re,
|
|
5092
|
+
Ja
|
|
5093
|
+
) : kt(
|
|
5099
5094
|
/*$$scope*/
|
|
5100
5095
|
e[22]
|
|
5101
5096
|
),
|
|
5102
5097
|
Vr
|
|
5103
|
-
),
|
|
5104
|
-
4194304) &&
|
|
5105
|
-
|
|
5106
|
-
|
|
5098
|
+
), ne ? ne.p && (!v || re[0] & /*$$scope*/
|
|
5099
|
+
4194304) && Ut(
|
|
5100
|
+
ne,
|
|
5101
|
+
Y,
|
|
5107
5102
|
e,
|
|
5108
5103
|
/*$$scope*/
|
|
5109
5104
|
e[22],
|
|
5110
|
-
v ?
|
|
5111
|
-
|
|
5105
|
+
v ? $t(
|
|
5106
|
+
Y,
|
|
5112
5107
|
/*$$scope*/
|
|
5113
5108
|
e[22],
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
) :
|
|
5109
|
+
re,
|
|
5110
|
+
qa
|
|
5111
|
+
) : kt(
|
|
5117
5112
|
/*$$scope*/
|
|
5118
5113
|
e[22]
|
|
5119
5114
|
),
|
|
5120
5115
|
Wr
|
|
5121
|
-
) :
|
|
5122
|
-
384) &&
|
|
5116
|
+
) : ee && ee.p && (!v || re[0] & /*$_, timeLeft*/
|
|
5117
|
+
384) && ee.p(e, v ? re : [-1, -1]), (!v || re[0] & /*$_*/
|
|
5123
5118
|
256) && se !== (se = /*$_*/
|
|
5124
|
-
e[8]("sessionExpirationEnd") + "") &&
|
|
5125
|
-
let
|
|
5126
|
-
h =
|
|
5127
|
-
le[
|
|
5128
|
-
}), si(), E = le[h], E ? E.p(e,
|
|
5119
|
+
e[8]("sessionExpirationEnd") + "") && yt(Ee, se);
|
|
5120
|
+
let Me = h;
|
|
5121
|
+
h = Oe(e), h === Me ? le[h].p(e, re) : (oi(), Be(le[Me], 1, 1, () => {
|
|
5122
|
+
le[Me] = null;
|
|
5123
|
+
}), si(), E = le[h], E ? E.p(e, re) : (E = le[h] = he[h](e), E.c()), He(E, 1), E.m(_, null)), (!v || re[0] & /*showLoaderButton*/
|
|
5129
5124
|
64 && b !== (b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5130
5125
|
(e[6] ? "Disabled" : ""))) && w(_, "class", b);
|
|
5131
5126
|
},
|
|
5132
|
-
i(
|
|
5133
|
-
v || (He(
|
|
5134
|
-
v && (
|
|
5127
|
+
i(J) {
|
|
5128
|
+
v || (He(d, J), He(X, J), He(ee, J), He(E), J && tt(() => {
|
|
5129
|
+
v && (O || (O = dr(t, gr, { duration: (
|
|
5135
5130
|
/*duration*/
|
|
5136
5131
|
e[2]
|
|
5137
|
-
) }, !0)),
|
|
5132
|
+
) }, !0)), O.run(1));
|
|
5138
5133
|
}), v = !0);
|
|
5139
5134
|
},
|
|
5140
|
-
o(
|
|
5141
|
-
|
|
5135
|
+
o(J) {
|
|
5136
|
+
Be(d, J), Be(X, J), Be(ee, J), Be(E), J && (O || (O = dr(t, gr, { duration: (
|
|
5142
5137
|
/*duration*/
|
|
5143
5138
|
e[2]
|
|
5144
|
-
) }, !1)),
|
|
5139
|
+
) }, !1)), O.run(0)), v = !1;
|
|
5145
5140
|
},
|
|
5146
|
-
d(
|
|
5147
|
-
|
|
5141
|
+
d(J) {
|
|
5142
|
+
J && Ae(t), d && d.d(J), X && X.d(J), ee && ee.d(J), le[h].d(), e[24](null), L(), J && O && O.end(), z = !1, Ue(P);
|
|
5148
5143
|
}
|
|
5149
5144
|
};
|
|
5150
5145
|
}
|
|
@@ -5152,11 +5147,11 @@ function Zr(e) {
|
|
|
5152
5147
|
let t, n;
|
|
5153
5148
|
return {
|
|
5154
5149
|
c() {
|
|
5155
|
-
t =
|
|
5150
|
+
t = te("img"), fr(t.src, n = `${/*assetsurl*/
|
|
5156
5151
|
e[3]}/set-timeout-icon.png`) || w(t, "src", n), w(t, "width", "300px"), w(t, "alt", "error");
|
|
5157
5152
|
},
|
|
5158
5153
|
m(r, i) {
|
|
5159
|
-
|
|
5154
|
+
ke(r, t, i);
|
|
5160
5155
|
},
|
|
5161
5156
|
p(r, i) {
|
|
5162
5157
|
i[0] & /*assetsurl*/
|
|
@@ -5168,7 +5163,7 @@ function Zr(e) {
|
|
|
5168
5163
|
}
|
|
5169
5164
|
};
|
|
5170
5165
|
}
|
|
5171
|
-
function
|
|
5166
|
+
function Ka(e) {
|
|
5172
5167
|
let t, n = (
|
|
5173
5168
|
/*assetsurl*/
|
|
5174
5169
|
e[3] && Zr(e)
|
|
@@ -5178,7 +5173,7 @@ function Qa(e) {
|
|
|
5178
5173
|
n && n.c(), t = so();
|
|
5179
5174
|
},
|
|
5180
5175
|
m(r, i) {
|
|
5181
|
-
n && n.m(r, i),
|
|
5176
|
+
n && n.m(r, i), ke(r, t, i);
|
|
5182
5177
|
},
|
|
5183
5178
|
p(r, i) {
|
|
5184
5179
|
/*assetsurl*/
|
|
@@ -5189,7 +5184,7 @@ function Qa(e) {
|
|
|
5189
5184
|
}
|
|
5190
5185
|
};
|
|
5191
5186
|
}
|
|
5192
|
-
function
|
|
5187
|
+
function el(e) {
|
|
5193
5188
|
let t, n, r = (
|
|
5194
5189
|
/*$_*/
|
|
5195
5190
|
e[8]("sessionExpirationTitle") + ""
|
|
@@ -5202,15 +5197,15 @@ function Ka(e) {
|
|
|
5202
5197
|
) + "";
|
|
5203
5198
|
return {
|
|
5204
5199
|
c() {
|
|
5205
|
-
t =
|
|
5200
|
+
t = te("span"), n = te("p"), i = je(r), o = Re(), l = te("p"), w(t, "class", "CashierSessionExpirationText");
|
|
5206
5201
|
},
|
|
5207
5202
|
m(c, u) {
|
|
5208
|
-
|
|
5203
|
+
ke(c, t, u), B(t, n), B(n, i), B(t, o), B(t, l), l.innerHTML = a;
|
|
5209
5204
|
},
|
|
5210
5205
|
p(c, u) {
|
|
5211
5206
|
u[0] & /*$_*/
|
|
5212
5207
|
256 && r !== (r = /*$_*/
|
|
5213
|
-
c[8]("sessionExpirationTitle") + "") &&
|
|
5208
|
+
c[8]("sessionExpirationTitle") + "") && yt(i, r), u[0] & /*$_, timeLeft*/
|
|
5214
5209
|
384 && a !== (a = Fr.sanitize(
|
|
5215
5210
|
/*$_*/
|
|
5216
5211
|
c[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5224,18 +5219,18 @@ function Ka(e) {
|
|
|
5224
5219
|
}
|
|
5225
5220
|
};
|
|
5226
5221
|
}
|
|
5227
|
-
function
|
|
5222
|
+
function tl(e) {
|
|
5228
5223
|
let t;
|
|
5229
5224
|
const n = (
|
|
5230
5225
|
/*#slots*/
|
|
5231
5226
|
e[23].button
|
|
5232
|
-
), r =
|
|
5227
|
+
), r = Bt(
|
|
5233
5228
|
n,
|
|
5234
5229
|
e,
|
|
5235
5230
|
/*$$scope*/
|
|
5236
5231
|
e[22],
|
|
5237
5232
|
zr
|
|
5238
|
-
), i = r ||
|
|
5233
|
+
), i = r || rl(e);
|
|
5239
5234
|
return {
|
|
5240
5235
|
c() {
|
|
5241
5236
|
i && i.c();
|
|
@@ -5245,19 +5240,19 @@ function el(e) {
|
|
|
5245
5240
|
},
|
|
5246
5241
|
p(o, l) {
|
|
5247
5242
|
r ? r.p && (!t || l[0] & /*$$scope*/
|
|
5248
|
-
4194304) &&
|
|
5243
|
+
4194304) && Ut(
|
|
5249
5244
|
r,
|
|
5250
5245
|
n,
|
|
5251
5246
|
o,
|
|
5252
5247
|
/*$$scope*/
|
|
5253
5248
|
o[22],
|
|
5254
|
-
t ?
|
|
5249
|
+
t ? $t(
|
|
5255
5250
|
n,
|
|
5256
5251
|
/*$$scope*/
|
|
5257
5252
|
o[22],
|
|
5258
5253
|
l,
|
|
5259
|
-
|
|
5260
|
-
) :
|
|
5254
|
+
Za
|
|
5255
|
+
) : kt(
|
|
5261
5256
|
/*$$scope*/
|
|
5262
5257
|
o[22]
|
|
5263
5258
|
),
|
|
@@ -5269,29 +5264,29 @@ function el(e) {
|
|
|
5269
5264
|
t || (He(i, o), t = !0);
|
|
5270
5265
|
},
|
|
5271
5266
|
o(o) {
|
|
5272
|
-
|
|
5267
|
+
Be(i, o), t = !1;
|
|
5273
5268
|
},
|
|
5274
5269
|
d(o) {
|
|
5275
5270
|
i && i.d(o);
|
|
5276
5271
|
}
|
|
5277
5272
|
};
|
|
5278
5273
|
}
|
|
5279
|
-
function
|
|
5274
|
+
function nl(e) {
|
|
5280
5275
|
let t, n, r, i, o, l = (
|
|
5281
5276
|
/*$_*/
|
|
5282
5277
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5283
5278
|
), a;
|
|
5284
5279
|
return {
|
|
5285
5280
|
c() {
|
|
5286
|
-
t =
|
|
5281
|
+
t = te("div"), n = Se("svg"), r = Se("path"), i = Re(), o = te("span"), a = je(l), 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");
|
|
5287
5282
|
},
|
|
5288
5283
|
m(c, u) {
|
|
5289
|
-
|
|
5284
|
+
ke(c, t, u), B(t, n), B(n, r), B(t, i), B(t, o), B(o, a);
|
|
5290
5285
|
},
|
|
5291
5286
|
p(c, u) {
|
|
5292
5287
|
u[0] & /*$_*/
|
|
5293
5288
|
256 && l !== (l = /*$_*/
|
|
5294
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5289
|
+
c[8]("sessionExpirationLoadingButton") + "") && yt(a, l);
|
|
5295
5290
|
},
|
|
5296
5291
|
i: ye,
|
|
5297
5292
|
o: ye,
|
|
@@ -5300,44 +5295,44 @@ function tl(e) {
|
|
|
5300
5295
|
}
|
|
5301
5296
|
};
|
|
5302
5297
|
}
|
|
5303
|
-
function
|
|
5298
|
+
function rl(e) {
|
|
5304
5299
|
let t, n = (
|
|
5305
5300
|
/*$_*/
|
|
5306
5301
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5307
5302
|
), r;
|
|
5308
5303
|
return {
|
|
5309
5304
|
c() {
|
|
5310
|
-
t =
|
|
5305
|
+
t = te("span"), r = je(n), w(t, "class", "CashierSessionExpirationButtonText");
|
|
5311
5306
|
},
|
|
5312
5307
|
m(i, o) {
|
|
5313
|
-
|
|
5308
|
+
ke(i, t, o), B(t, r);
|
|
5314
5309
|
},
|
|
5315
5310
|
p(i, o) {
|
|
5316
5311
|
o[0] & /*$_*/
|
|
5317
5312
|
256 && n !== (n = /*$_*/
|
|
5318
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5313
|
+
i[8]("sessionExpirationGeneralButton") + "") && yt(r, n);
|
|
5319
5314
|
},
|
|
5320
5315
|
d(i) {
|
|
5321
5316
|
i && Ae(t);
|
|
5322
5317
|
}
|
|
5323
5318
|
};
|
|
5324
5319
|
}
|
|
5325
|
-
function
|
|
5320
|
+
function il(e) {
|
|
5326
5321
|
let t, n, r = (
|
|
5327
5322
|
/*show*/
|
|
5328
5323
|
e[5] && Yr(e)
|
|
5329
5324
|
);
|
|
5330
5325
|
return {
|
|
5331
5326
|
c() {
|
|
5332
|
-
t =
|
|
5327
|
+
t = te("div"), r && r.c();
|
|
5333
5328
|
},
|
|
5334
5329
|
m(i, o) {
|
|
5335
|
-
|
|
5330
|
+
ke(i, t, o), r && r.m(t, null), e[26](t), n = !0;
|
|
5336
5331
|
},
|
|
5337
5332
|
p(i, o) {
|
|
5338
5333
|
/*show*/
|
|
5339
5334
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5340
|
-
32 && He(r, 1)) : (r = Yr(i), r.c(), He(r, 1), r.m(t, null)) : r && (oi(),
|
|
5335
|
+
32 && He(r, 1)) : (r = Yr(i), r.c(), He(r, 1), r.m(t, null)) : r && (oi(), Be(r, 1, 1, () => {
|
|
5341
5336
|
r = null;
|
|
5342
5337
|
}), si());
|
|
5343
5338
|
},
|
|
@@ -5345,29 +5340,29 @@ function rl(e) {
|
|
|
5345
5340
|
n || (He(r), n = !0);
|
|
5346
5341
|
},
|
|
5347
5342
|
o(i) {
|
|
5348
|
-
|
|
5343
|
+
Be(r), n = !1;
|
|
5349
5344
|
},
|
|
5350
5345
|
d(i) {
|
|
5351
5346
|
i && Ae(t), r && r.d(), e[26](null);
|
|
5352
5347
|
}
|
|
5353
5348
|
};
|
|
5354
5349
|
}
|
|
5355
|
-
const
|
|
5356
|
-
function
|
|
5350
|
+
const ol = 90;
|
|
5351
|
+
function sl(e, t, n) {
|
|
5357
5352
|
let r, i;
|
|
5358
|
-
hr(e, jr, (
|
|
5353
|
+
hr(e, jr, (d) => n(21, r = d)), hr(e, xa, (d) => n(8, i = d));
|
|
5359
5354
|
let { $$slots: o = {}, $$scope: l } = t;
|
|
5360
|
-
Gr.extend(
|
|
5361
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang: A = "en" } = t, { translationurl: x = "" } = t, { endpoint: g } = t, { currency: N } = t, { customerid: U } = t, { selectedpaymentmethodname:
|
|
5355
|
+
Gr.extend(za);
|
|
5356
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang: A = "en" } = t, { translationurl: x = "" } = t, { endpoint: g } = t, { currency: N } = t, { customerid: U } = t, { selectedpaymentmethodname: V } = t, { mbsource: R = "" } = t, H, I = !1, W = !1, oe, fe, K, j, C;
|
|
5362
5357
|
var se;
|
|
5363
|
-
(function(
|
|
5364
|
-
|
|
5358
|
+
(function(d) {
|
|
5359
|
+
d.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", d.Success = "Success", d.JwtTokenError = "JwtTokenError";
|
|
5365
5360
|
})(se || (se = {}));
|
|
5366
|
-
const Ee = (
|
|
5367
|
-
|
|
5368
|
-
},
|
|
5361
|
+
const Ee = (d) => {
|
|
5362
|
+
d.data.type === "StartSessionCountdown" && (j = d.data.paymentMethodName);
|
|
5363
|
+
}, M = (d) => {
|
|
5369
5364
|
try {
|
|
5370
|
-
return JSON.parse(atob(
|
|
5365
|
+
return JSON.parse(atob(d.split(".")[1]));
|
|
5371
5366
|
} catch (k) {
|
|
5372
5367
|
return null;
|
|
5373
5368
|
}
|
|
@@ -5375,65 +5370,65 @@ function ol(e, t, n) {
|
|
|
5375
5370
|
window.postMessage(
|
|
5376
5371
|
{
|
|
5377
5372
|
type: "ErrorResponseCode",
|
|
5378
|
-
errorResponseCode:
|
|
5373
|
+
errorResponseCode: C
|
|
5379
5374
|
},
|
|
5380
5375
|
window.location.href
|
|
5381
5376
|
);
|
|
5382
|
-
}, h = (
|
|
5377
|
+
}, h = (d) => {
|
|
5383
5378
|
n(5, I = !1);
|
|
5384
|
-
const k =
|
|
5385
|
-
k && (fe = k == null ? void 0 : k.exp, n(7, oe = fe),
|
|
5379
|
+
const k = M(d);
|
|
5380
|
+
k && (fe = k == null ? void 0 : k.exp, n(7, oe = fe), K && clearInterval(K), K = setInterval(
|
|
5386
5381
|
() => {
|
|
5387
|
-
const
|
|
5388
|
-
n(7, oe = fe -
|
|
5382
|
+
const X = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5383
|
+
n(7, oe = fe - X), oe <= ol && n(5, I = !0), X >= fe && (E(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5389
5384
|
},
|
|
5390
5385
|
1e3
|
|
5391
5386
|
));
|
|
5392
5387
|
}, E = () => {
|
|
5393
|
-
n(7, oe = 0), n(5, I = !1), clearInterval(
|
|
5388
|
+
n(7, oe = 0), n(5, I = !1), clearInterval(K);
|
|
5394
5389
|
}, b = () => {
|
|
5395
|
-
if (
|
|
5390
|
+
if (W)
|
|
5396
5391
|
return;
|
|
5397
|
-
const
|
|
5398
|
-
n(6,
|
|
5399
|
-
const
|
|
5392
|
+
const d = new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`), k = new Headers();
|
|
5393
|
+
n(6, W = !0), k.append("accept", "application/json"), k.append("Content-Type", "application/json"), k.append("X-Client-Request-Timestamp", Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5394
|
+
const X = {
|
|
5400
5395
|
method: "POST",
|
|
5401
5396
|
mode: "cors",
|
|
5402
5397
|
headers: k,
|
|
5403
5398
|
body: JSON.stringify({
|
|
5404
|
-
PaymentMethodName:
|
|
5399
|
+
PaymentMethodName: j || V,
|
|
5405
5400
|
Currency: N,
|
|
5406
5401
|
XPaymentSessionToken: r
|
|
5407
5402
|
})
|
|
5408
5403
|
};
|
|
5409
|
-
fetch(
|
|
5410
|
-
if (
|
|
5404
|
+
fetch(d, X).then((Y) => Y.json()).then((Y) => {
|
|
5405
|
+
if (Y.error) {
|
|
5411
5406
|
window.postMessage(
|
|
5412
5407
|
{
|
|
5413
5408
|
type: "ShowSessionError",
|
|
5414
|
-
error:
|
|
5409
|
+
error: Y.error
|
|
5415
5410
|
},
|
|
5416
5411
|
window.location.href
|
|
5417
5412
|
), E();
|
|
5418
5413
|
return;
|
|
5419
5414
|
}
|
|
5420
|
-
if (
|
|
5421
|
-
|
|
5415
|
+
if (Y.ResponseCode === se.PlayerSessionIsNotValid || Y.ResponseCode === se.JwtTokenError) {
|
|
5416
|
+
C = Y.ResponseCode, E(), _();
|
|
5422
5417
|
return;
|
|
5423
5418
|
}
|
|
5424
|
-
if (
|
|
5425
|
-
|
|
5419
|
+
if (Y.ResponseCode !== se.Success) {
|
|
5420
|
+
C = Y.ResponseCode, E();
|
|
5426
5421
|
return;
|
|
5427
5422
|
}
|
|
5428
|
-
|
|
5429
|
-
}).finally(() => n(6,
|
|
5430
|
-
}, L = (
|
|
5431
|
-
const k =
|
|
5432
|
-
|
|
5433
|
-
},
|
|
5423
|
+
Y.XPaymentSessionToken && jr.set(Y.XPaymentSessionToken);
|
|
5424
|
+
}).finally(() => n(6, W = !1));
|
|
5425
|
+
}, L = (d) => {
|
|
5426
|
+
const k = d.currentTarget;
|
|
5427
|
+
d.target === k && b();
|
|
5428
|
+
}, O = () => {
|
|
5434
5429
|
fetch(x).then((k) => k.json()).then((k) => {
|
|
5435
|
-
Object.keys(k).forEach((
|
|
5436
|
-
Hr(
|
|
5430
|
+
Object.keys(k).forEach((X) => {
|
|
5431
|
+
Hr(X, k[X]);
|
|
5437
5432
|
});
|
|
5438
5433
|
}).catch((k) => {
|
|
5439
5434
|
console.log(k);
|
|
@@ -5441,40 +5436,40 @@ function ol(e, t, n) {
|
|
|
5441
5436
|
}, v = () => {
|
|
5442
5437
|
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5, I = !1);
|
|
5443
5438
|
};
|
|
5444
|
-
Object.keys(Nr).forEach((
|
|
5445
|
-
Hr(
|
|
5439
|
+
Object.keys(Nr).forEach((d) => {
|
|
5440
|
+
Hr(d, Nr[d]);
|
|
5446
5441
|
});
|
|
5447
|
-
const
|
|
5448
|
-
|
|
5442
|
+
const z = () => {
|
|
5443
|
+
va(A);
|
|
5449
5444
|
};
|
|
5450
5445
|
_o(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5451
5446
|
window.removeEventListener("message", Ee);
|
|
5452
5447
|
})), bo(() => {
|
|
5453
|
-
clearInterval(
|
|
5448
|
+
clearInterval(K);
|
|
5454
5449
|
});
|
|
5455
|
-
function P(
|
|
5456
|
-
|
|
5457
|
-
H =
|
|
5450
|
+
function P(d) {
|
|
5451
|
+
Yt[d ? "unshift" : "push"](() => {
|
|
5452
|
+
H = d, n(4, H);
|
|
5458
5453
|
});
|
|
5459
5454
|
}
|
|
5460
|
-
function
|
|
5455
|
+
function q() {
|
|
5461
5456
|
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5462
5457
|
}
|
|
5463
|
-
function D(
|
|
5464
|
-
|
|
5465
|
-
H =
|
|
5458
|
+
function D(d) {
|
|
5459
|
+
Yt[d ? "unshift" : "push"](() => {
|
|
5460
|
+
H = d, n(4, H);
|
|
5466
5461
|
});
|
|
5467
5462
|
}
|
|
5468
|
-
return e.$$set = (
|
|
5469
|
-
"clientstyling" in
|
|
5463
|
+
return e.$$set = (d) => {
|
|
5464
|
+
"clientstyling" in d && n(12, a = d.clientstyling), "clientstylingurl" in d && n(13, c = d.clientstylingurl), "width" in d && n(0, u = d.width), "height" in d && n(1, f = d.height), "duration" in d && n(2, m = d.duration), "assetsurl" in d && n(3, y = d.assetsurl), "lang" in d && n(14, A = d.lang), "translationurl" in d && n(15, x = d.translationurl), "endpoint" in d && n(16, g = d.endpoint), "currency" in d && n(17, N = d.currency), "customerid" in d && n(18, U = d.customerid), "selectedpaymentmethodname" in d && n(19, V = d.selectedpaymentmethodname), "mbsource" in d && n(20, R = d.mbsource), "$$scope" in d && n(22, l = d.$$scope);
|
|
5470
5465
|
}, e.$$.update = () => {
|
|
5471
5466
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5472
5467
|
2097152 && h(r), e.$$.dirty[0] & /*lang*/
|
|
5473
|
-
16384 && A &&
|
|
5474
|
-
4112 && a && H &&
|
|
5475
|
-
8208 && c && H &&
|
|
5476
|
-
1048592 && R && H &&
|
|
5477
|
-
32768 && x &&
|
|
5468
|
+
16384 && A && z(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5469
|
+
4112 && a && H && Wa(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5470
|
+
8208 && c && H && Va(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5471
|
+
1048592 && R && H && Xa(H, `${R}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5472
|
+
32768 && x && O();
|
|
5478
5473
|
}, [
|
|
5479
5474
|
u,
|
|
5480
5475
|
f,
|
|
@@ -5482,7 +5477,7 @@ function ol(e, t, n) {
|
|
|
5482
5477
|
y,
|
|
5483
5478
|
H,
|
|
5484
5479
|
I,
|
|
5485
|
-
|
|
5480
|
+
W,
|
|
5486
5481
|
oe,
|
|
5487
5482
|
i,
|
|
5488
5483
|
b,
|
|
@@ -5495,23 +5490,23 @@ function ol(e, t, n) {
|
|
|
5495
5490
|
g,
|
|
5496
5491
|
N,
|
|
5497
5492
|
U,
|
|
5498
|
-
|
|
5493
|
+
V,
|
|
5499
5494
|
R,
|
|
5500
5495
|
r,
|
|
5501
5496
|
l,
|
|
5502
5497
|
o,
|
|
5503
5498
|
P,
|
|
5504
|
-
|
|
5499
|
+
q,
|
|
5505
5500
|
D
|
|
5506
5501
|
];
|
|
5507
5502
|
}
|
|
5508
|
-
class
|
|
5503
|
+
class al extends Lo {
|
|
5509
5504
|
constructor(t) {
|
|
5510
|
-
super(),
|
|
5505
|
+
super(), Mo(
|
|
5511
5506
|
this,
|
|
5512
5507
|
t,
|
|
5513
|
-
|
|
5514
|
-
|
|
5508
|
+
sl,
|
|
5509
|
+
il,
|
|
5515
5510
|
Qr,
|
|
5516
5511
|
{
|
|
5517
5512
|
clientstyling: 12,
|
|
@@ -5528,7 +5523,7 @@ class sl extends Lo {
|
|
|
5528
5523
|
selectedpaymentmethodname: 19,
|
|
5529
5524
|
mbsource: 20
|
|
5530
5525
|
},
|
|
5531
|
-
|
|
5526
|
+
Ya,
|
|
5532
5527
|
[-1, -1]
|
|
5533
5528
|
);
|
|
5534
5529
|
}
|
|
@@ -5536,82 +5531,82 @@ class sl extends Lo {
|
|
|
5536
5531
|
return this.$$.ctx[12];
|
|
5537
5532
|
}
|
|
5538
5533
|
set clientstyling(t) {
|
|
5539
|
-
this.$$set({ clientstyling: t }),
|
|
5534
|
+
this.$$set({ clientstyling: t }), de();
|
|
5540
5535
|
}
|
|
5541
5536
|
get clientstylingurl() {
|
|
5542
5537
|
return this.$$.ctx[13];
|
|
5543
5538
|
}
|
|
5544
5539
|
set clientstylingurl(t) {
|
|
5545
|
-
this.$$set({ clientstylingurl: t }),
|
|
5540
|
+
this.$$set({ clientstylingurl: t }), de();
|
|
5546
5541
|
}
|
|
5547
5542
|
get width() {
|
|
5548
5543
|
return this.$$.ctx[0];
|
|
5549
5544
|
}
|
|
5550
5545
|
set width(t) {
|
|
5551
|
-
this.$$set({ width: t }),
|
|
5546
|
+
this.$$set({ width: t }), de();
|
|
5552
5547
|
}
|
|
5553
5548
|
get height() {
|
|
5554
5549
|
return this.$$.ctx[1];
|
|
5555
5550
|
}
|
|
5556
5551
|
set height(t) {
|
|
5557
|
-
this.$$set({ height: t }),
|
|
5552
|
+
this.$$set({ height: t }), de();
|
|
5558
5553
|
}
|
|
5559
5554
|
get duration() {
|
|
5560
5555
|
return this.$$.ctx[2];
|
|
5561
5556
|
}
|
|
5562
5557
|
set duration(t) {
|
|
5563
|
-
this.$$set({ duration: t }),
|
|
5558
|
+
this.$$set({ duration: t }), de();
|
|
5564
5559
|
}
|
|
5565
5560
|
get assetsurl() {
|
|
5566
5561
|
return this.$$.ctx[3];
|
|
5567
5562
|
}
|
|
5568
5563
|
set assetsurl(t) {
|
|
5569
|
-
this.$$set({ assetsurl: t }),
|
|
5564
|
+
this.$$set({ assetsurl: t }), de();
|
|
5570
5565
|
}
|
|
5571
5566
|
get lang() {
|
|
5572
5567
|
return this.$$.ctx[14];
|
|
5573
5568
|
}
|
|
5574
5569
|
set lang(t) {
|
|
5575
|
-
this.$$set({ lang: t }),
|
|
5570
|
+
this.$$set({ lang: t }), de();
|
|
5576
5571
|
}
|
|
5577
5572
|
get translationurl() {
|
|
5578
5573
|
return this.$$.ctx[15];
|
|
5579
5574
|
}
|
|
5580
5575
|
set translationurl(t) {
|
|
5581
|
-
this.$$set({ translationurl: t }),
|
|
5576
|
+
this.$$set({ translationurl: t }), de();
|
|
5582
5577
|
}
|
|
5583
5578
|
get endpoint() {
|
|
5584
5579
|
return this.$$.ctx[16];
|
|
5585
5580
|
}
|
|
5586
5581
|
set endpoint(t) {
|
|
5587
|
-
this.$$set({ endpoint: t }),
|
|
5582
|
+
this.$$set({ endpoint: t }), de();
|
|
5588
5583
|
}
|
|
5589
5584
|
get currency() {
|
|
5590
5585
|
return this.$$.ctx[17];
|
|
5591
5586
|
}
|
|
5592
5587
|
set currency(t) {
|
|
5593
|
-
this.$$set({ currency: t }),
|
|
5588
|
+
this.$$set({ currency: t }), de();
|
|
5594
5589
|
}
|
|
5595
5590
|
get customerid() {
|
|
5596
5591
|
return this.$$.ctx[18];
|
|
5597
5592
|
}
|
|
5598
5593
|
set customerid(t) {
|
|
5599
|
-
this.$$set({ customerid: t }),
|
|
5594
|
+
this.$$set({ customerid: t }), de();
|
|
5600
5595
|
}
|
|
5601
5596
|
get selectedpaymentmethodname() {
|
|
5602
5597
|
return this.$$.ctx[19];
|
|
5603
5598
|
}
|
|
5604
5599
|
set selectedpaymentmethodname(t) {
|
|
5605
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5600
|
+
this.$$set({ selectedpaymentmethodname: t }), de();
|
|
5606
5601
|
}
|
|
5607
5602
|
get mbsource() {
|
|
5608
5603
|
return this.$$.ctx[20];
|
|
5609
5604
|
}
|
|
5610
5605
|
set mbsource(t) {
|
|
5611
|
-
this.$$set({ mbsource: t }),
|
|
5606
|
+
this.$$set({ mbsource: t }), de();
|
|
5612
5607
|
}
|
|
5613
5608
|
}
|
|
5614
|
-
|
|
5609
|
+
Co(al, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5615
5610
|
export {
|
|
5616
|
-
|
|
5611
|
+
al as default
|
|
5617
5612
|
};
|