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