bloom-player 2.22.0-alpha.1 → 2.22.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/shared.es.js
CHANGED
|
@@ -12,87 +12,87 @@ class mi {
|
|
|
12
12
|
this.handlers.slice(0).forEach((d) => d(c));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var as = /* @__PURE__ */ ((s) => (s[s.NewPage = 0] = "NewPage", s[s.NewPageMediaPaused = 1] = "NewPageMediaPaused", s[s.VideoPlaying = 2] = "VideoPlaying", s[s.VideoPaused = 3] = "VideoPaused", s[s.AudioPlaying = 4] = "AudioPlaying", s[s.AudioPaused = 5] = "AudioPaused", s[s.MediaFinished = 6] = "MediaFinished", s))(as || {});
|
|
16
16
|
let ei = 0;
|
|
17
17
|
function Kt(s) {
|
|
18
18
|
ei = s;
|
|
19
19
|
}
|
|
20
20
|
let Tr;
|
|
21
|
-
function
|
|
21
|
+
function oa(s) {
|
|
22
22
|
Tr = s;
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
let Nn;
|
|
25
|
+
function sa(s) {
|
|
26
|
+
Nn = s;
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let Pn = () => {
|
|
29
29
|
};
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function aa(s) {
|
|
31
|
+
Pn = s ?? (() => {
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
let Sr = "";
|
|
35
|
-
function
|
|
35
|
+
function ls(s) {
|
|
36
36
|
Sr = s;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function la(s) {
|
|
39
|
+
ls(Dn(s));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Dn(s) {
|
|
42
42
|
const c = s.lastIndexOf("/");
|
|
43
43
|
return s.substring(0, c);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return Sr ||
|
|
45
|
+
function Mn() {
|
|
46
|
+
return Sr || Dn(window.location.href);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const c = s.map((d, h) => ({ tabindex:
|
|
48
|
+
function cs(s) {
|
|
49
|
+
const c = s.map((d, h) => ({ tabindex: us(d), index: h, item: d }));
|
|
50
50
|
return c.sort((d, h) => !d.tabindex || !h.tabindex || d.tabindex === h.tabindex ? d.index - h.index : parseInt(d.tabindex, 10) - parseInt(h.tabindex, 10)), c.map((d) => d.item);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function us(s) {
|
|
53
53
|
let c = s;
|
|
54
54
|
for (; c && !c.classList.contains("bloom-translationGroup"); )
|
|
55
55
|
c = c.parentElement;
|
|
56
56
|
return c && c.getAttribute("tabindex") || "999";
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const fs = "bloom-highlightSegment", zn = "ui-enableHighlight", Pr = "ui-disableHighlight", yr = "ui-suppressHighlight";
|
|
59
59
|
let Di = 3;
|
|
60
|
-
function
|
|
60
|
+
function ca(s) {
|
|
61
61
|
Di = s;
|
|
62
62
|
}
|
|
63
63
|
const Mi = "audio-sentence", In = "bloom-imageDescription";
|
|
64
64
|
let wt = null, di = 0;
|
|
65
|
-
function
|
|
65
|
+
function ds(s) {
|
|
66
66
|
s !== wt && (di && clearTimeout(di), di = setTimeout(() => {
|
|
67
67
|
di = 0;
|
|
68
68
|
}, 3e3), wt = s);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function hs() {
|
|
71
71
|
return wt;
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
const Ii = new mi(), Er = new mi(),
|
|
73
|
+
let Dr, zi, Jt = "", et = [], Nt = [];
|
|
74
|
+
const Ii = new mi(), Er = new mi(), xn = new mi(), ua = new mi(), Hi = new mi();
|
|
75
75
|
let pi = 0, Hn = !0;
|
|
76
|
-
function
|
|
76
|
+
function fa(s) {
|
|
77
77
|
Hn = s;
|
|
78
78
|
}
|
|
79
79
|
let Oi = null;
|
|
80
|
-
function
|
|
80
|
+
function ps(s, c) {
|
|
81
81
|
if (!s && !wt)
|
|
82
82
|
return;
|
|
83
83
|
const d = s ?? wt;
|
|
84
|
-
gi(
|
|
84
|
+
gi(Or(d, c), d);
|
|
85
85
|
}
|
|
86
86
|
function gi(s, c) {
|
|
87
|
-
|
|
87
|
+
ds(c), zi = s;
|
|
88
88
|
const d = Pt();
|
|
89
|
-
d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi,
|
|
89
|
+
d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi, gs(s), et = cs(s).reverse();
|
|
90
90
|
const h = et.length;
|
|
91
91
|
if (h === 0) {
|
|
92
92
|
Er && Er?.raise(c), Kt(
|
|
93
93
|
4
|
|
94
94
|
/* AudioPlaying */
|
|
95
|
-
), Ii && (
|
|
95
|
+
), Ii && (Dr = window.setTimeout(() => {
|
|
96
96
|
Kt(
|
|
97
97
|
6
|
|
98
98
|
/* MediaFinished */
|
|
@@ -107,9 +107,9 @@ function gi(s, c) {
|
|
|
107
107
|
), Rn();
|
|
108
108
|
}
|
|
109
109
|
const On = /[ \u00a0\u200b]{3,}/, Ci = new RegExp(On, "g");
|
|
110
|
-
function
|
|
110
|
+
function gs(s) {
|
|
111
111
|
s.forEach((c) => {
|
|
112
|
-
|
|
112
|
+
Hr(
|
|
113
113
|
"span[id]:not(.bloom-linebreak)",
|
|
114
114
|
c,
|
|
115
115
|
!0
|
|
@@ -119,21 +119,21 @@ function ps(s) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function Bn(s) {
|
|
122
|
-
s.classList.remove(
|
|
122
|
+
s.classList.remove(Pr), s.classList.remove(zn), Array.from(s.children).forEach((c) => {
|
|
123
123
|
Bn(c);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function qn(s, c) {
|
|
127
|
-
if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(
|
|
127
|
+
if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(Pr)))
|
|
128
128
|
if (s.nodeType === Node.TEXT_NODE) {
|
|
129
|
-
|
|
129
|
+
ms(s, c);
|
|
130
130
|
return;
|
|
131
131
|
} else
|
|
132
132
|
Array.from(s.childNodes).forEach((h) => {
|
|
133
133
|
qn(h, c);
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ms(s, c) {
|
|
137
137
|
if (s.nodeType !== Node.TEXT_NODE)
|
|
138
138
|
throw new Error(
|
|
139
139
|
"Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode"
|
|
@@ -174,7 +174,7 @@ function gs(s, c) {
|
|
|
174
174
|
const D = T[z];
|
|
175
175
|
L.parentNode.insertBefore(D, L);
|
|
176
176
|
}
|
|
177
|
-
L.parentNode.removeChild(L), c.classList.add(
|
|
177
|
+
L.parentNode.removeChild(L), c.classList.add(Pr);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
function br(s) {
|
|
@@ -185,7 +185,7 @@ function Rn() {
|
|
|
185
185
|
if (ei === 4) {
|
|
186
186
|
const s = Pt();
|
|
187
187
|
if (s) {
|
|
188
|
-
const c =
|
|
188
|
+
const c = hs().querySelector(
|
|
189
189
|
`#${Jt}`
|
|
190
190
|
);
|
|
191
191
|
if (!c) {
|
|
@@ -198,7 +198,7 @@ function Rn() {
|
|
|
198
198
|
);
|
|
199
199
|
if (d) {
|
|
200
200
|
const z = c.querySelectorAll(
|
|
201
|
-
`span.${
|
|
201
|
+
`span.${fs}`
|
|
202
202
|
), D = d.split(" "), k = Math.min(
|
|
203
203
|
D.length,
|
|
204
204
|
z.length
|
|
@@ -216,7 +216,7 @@ function Rn() {
|
|
|
216
216
|
jn(h)
|
|
217
217
|
), Cr = !1;
|
|
218
218
|
const T = s.play();
|
|
219
|
-
++pi, Oi = (/* @__PURE__ */ new Date()).getTime(),
|
|
219
|
+
++pi, Oi = (/* @__PURE__ */ new Date()).getTime(), Mr(pi);
|
|
220
220
|
const L = et.length - 2;
|
|
221
221
|
L >= 0 && Xn(
|
|
222
222
|
et[L]
|
|
@@ -233,10 +233,10 @@ function Wn(s, c) {
|
|
|
233
233
|
"The play() request was interrupted by a call to pause()."
|
|
234
234
|
) && console.log(
|
|
235
235
|
"See comment in narration.ts for possibly useful information regarding this error."
|
|
236
|
-
), d.name === "NotAllowedError" &&
|
|
236
|
+
), d.name === "NotAllowedError" && xn && xn?.raise();
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Mr(s, c = 0) {
|
|
240
240
|
const d = Nt.length;
|
|
241
241
|
if (d <= 0)
|
|
242
242
|
return;
|
|
@@ -274,9 +274,9 @@ function Fn(s) {
|
|
|
274
274
|
}, z * 1e3);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
Nt.pop(),
|
|
277
|
+
Nt.pop(), Mr(s, L);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function zr(s = document.body) {
|
|
280
280
|
const c = Array.from(
|
|
281
281
|
s.ownerDocument.getElementsByClassName("ui-audioCurrent")
|
|
282
282
|
);
|
|
@@ -286,7 +286,7 @@ function Ir(s = document.body) {
|
|
|
286
286
|
d && d.classList.remove("ui-audioCurrentImg");
|
|
287
287
|
}
|
|
288
288
|
function _n(s, c, d) {
|
|
289
|
-
|
|
289
|
+
bs(s), Vn({
|
|
290
290
|
newElement: s,
|
|
291
291
|
shouldScrollToElement: !0,
|
|
292
292
|
// Always true in bloom-player version
|
|
@@ -301,13 +301,13 @@ function Vn({
|
|
|
301
301
|
oldElement: h
|
|
302
302
|
}) {
|
|
303
303
|
try {
|
|
304
|
-
|
|
304
|
+
vs(s);
|
|
305
305
|
} catch (D) {
|
|
306
306
|
console.error(D);
|
|
307
307
|
}
|
|
308
308
|
if (h === s)
|
|
309
309
|
return;
|
|
310
|
-
|
|
310
|
+
zr(h || s);
|
|
311
311
|
const T = Pt(), L = T.error !== null;
|
|
312
312
|
!L && d && (!T.paused && !T.ended || (s.classList.add(yr), Ai && T.removeEventListener(
|
|
313
313
|
"playing",
|
|
@@ -334,9 +334,9 @@ function Vn({
|
|
|
334
334
|
D && D.classList.add("ui-audioCurrentImg");
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
if (
|
|
339
|
-
const d =
|
|
337
|
+
function vs(s) {
|
|
338
|
+
if (Nn?.() || di) {
|
|
339
|
+
const d = ys(s);
|
|
340
340
|
d && (d.scrollTop = 0);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
@@ -359,18 +359,18 @@ function ms(s) {
|
|
|
359
359
|
// which typically won't move things at all horizontally
|
|
360
360
|
}), c !== s && c.parentElement?.removeChild(c);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function ys(s) {
|
|
363
363
|
return s.classList.contains("bloom-editable") ? s : s.closest(".bloom-editable");
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function bs(s) {
|
|
366
366
|
const c = $n(s), d = c ? c.id : s.id;
|
|
367
|
-
|
|
367
|
+
xs(d);
|
|
368
368
|
}
|
|
369
369
|
function $n(s) {
|
|
370
|
-
const c =
|
|
370
|
+
const c = ws(s);
|
|
371
371
|
return !c || c.length === 0 ? null : c[0];
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function ws(s) {
|
|
374
374
|
const c = [];
|
|
375
375
|
if (s)
|
|
376
376
|
if (s.classList.contains(Mi))
|
|
@@ -384,11 +384,11 @@ function bs(s) {
|
|
|
384
384
|
}
|
|
385
385
|
return c;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
(!Jt || Jt !== s) && (Jt = s,
|
|
387
|
+
function xs(s) {
|
|
388
|
+
(!Jt || Jt !== s) && (Jt = s, Ss());
|
|
389
389
|
}
|
|
390
390
|
let Bi = "", qi = "", Ai = null, ki = null;
|
|
391
|
-
function
|
|
391
|
+
function Ts() {
|
|
392
392
|
let s = document.getElementById(
|
|
393
393
|
"bloom-audio-preload"
|
|
394
394
|
);
|
|
@@ -399,67 +399,67 @@ function Xn(s) {
|
|
|
399
399
|
if (Bi === d) return;
|
|
400
400
|
const h = Un(d, c) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
|
|
401
401
|
Bi = d, qi = h;
|
|
402
|
-
const T =
|
|
402
|
+
const T = Ts();
|
|
403
403
|
T.src = h, T.load();
|
|
404
404
|
}
|
|
405
405
|
function Yn() {
|
|
406
406
|
Bi = "", qi = "";
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ss() {
|
|
409
409
|
const s = Pt();
|
|
410
410
|
if (!s)
|
|
411
411
|
return;
|
|
412
|
-
s.currentTime > 0 && !s.paused && !s.ended &&
|
|
412
|
+
s.currentTime > 0 && !s.paused && !s.ended && Ir();
|
|
413
413
|
const c = Un(Jt);
|
|
414
|
-
|
|
414
|
+
Pn(c);
|
|
415
415
|
let d;
|
|
416
416
|
Bi === Jt && qi ? (d = qi, Yn()) : d = c + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true", s.setAttribute("src", d);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Es(s, c) {
|
|
419
419
|
return c?.getAttribute("data-audio-src") || s + ".mp3";
|
|
420
420
|
}
|
|
421
421
|
function Un(s, c) {
|
|
422
422
|
const d = c ?? wt?.querySelector(`[id="${s}"]`) ?? document.getElementById(s);
|
|
423
|
-
return
|
|
423
|
+
return Mn() + "/audio/" + Es(s, d);
|
|
424
424
|
}
|
|
425
425
|
function Pt() {
|
|
426
|
-
return
|
|
427
|
-
c.addEventListener("ended",
|
|
426
|
+
return ks("bloom-audio-player", (c) => {
|
|
427
|
+
c.addEventListener("ended", Cs), c.addEventListener("error", Ls);
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Cs() {
|
|
431
431
|
_i();
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function da() {
|
|
434
434
|
ei === 4 && _i(!1);
|
|
435
435
|
}
|
|
436
436
|
function _i(s = !0) {
|
|
437
|
-
if (Hi && Hi?.raise(!1),
|
|
437
|
+
if (Hi && Hi?.raise(!1), Ir(), et && et.length > 0) {
|
|
438
438
|
const c = et.pop(), d = et.length;
|
|
439
439
|
if (d > 0 && s) {
|
|
440
440
|
const h = et[d - 1];
|
|
441
441
|
_n(h, !0), Rn();
|
|
442
442
|
} else
|
|
443
|
-
|
|
443
|
+
As(), zr(c), Pt().pause();
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
et = [], Nt = [],
|
|
446
|
+
function As() {
|
|
447
|
+
et = [], Nt = [], zr(), Ii?.raise(wt), Er?.raise();
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ir() {
|
|
450
450
|
if (!Oi || !Tr)
|
|
451
451
|
return;
|
|
452
452
|
const c = ((/* @__PURE__ */ new Date()).getTime() - Oi) / 1e3;
|
|
453
453
|
Tr(c);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function ks(s, c) {
|
|
456
456
|
let d = document.querySelector(
|
|
457
457
|
"#" + s
|
|
458
458
|
);
|
|
459
459
|
return d && !d.play && (d.remove(), d = null), d || (d = document.createElement("audio"), d.setAttribute("id", s), document.body.appendChild(d), c(d)), d;
|
|
460
460
|
}
|
|
461
461
|
let Cr = !1;
|
|
462
|
-
function
|
|
462
|
+
function Ls() {
|
|
463
463
|
if (Cr) {
|
|
464
464
|
console.log("Already got error playing, not handling again");
|
|
465
465
|
return;
|
|
@@ -468,84 +468,84 @@ function ks() {
|
|
|
468
468
|
_i();
|
|
469
469
|
}, 100);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Hr(s, c, d = !1) {
|
|
472
472
|
const h = [].slice.call(
|
|
473
473
|
(c || document).querySelectorAll(s)
|
|
474
474
|
);
|
|
475
475
|
return d && c && c.matches(s) && h.push(c), Hn ? h : h.filter((T) => !jn(T));
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
var d =
|
|
477
|
+
function Ns(s, c) {
|
|
478
|
+
var d = Hr(".bloom-editable", s).filter(
|
|
479
479
|
(h) => window.getComputedStyle(h).display !== "none"
|
|
480
480
|
);
|
|
481
481
|
return c && (d = d.filter((h) => !c.contains(h))), d;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function Ps(s, c) {
|
|
484
|
+
return Ns(s || wt, c);
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Or(s, c) {
|
|
487
487
|
return [].concat.apply(
|
|
488
488
|
[],
|
|
489
|
-
|
|
490
|
-
(d) =>
|
|
489
|
+
Ps(s, c).map(
|
|
490
|
+
(d) => Hr(".audio-sentence", d, !0)
|
|
491
491
|
)
|
|
492
492
|
);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
return !!
|
|
494
|
+
function ha(s) {
|
|
495
|
+
return !!Or(s).length;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function pa() {
|
|
498
498
|
if (ei !== 4) {
|
|
499
499
|
if (Kt(
|
|
500
500
|
4
|
|
501
501
|
/* AudioPlaying */
|
|
502
502
|
), zi.length && Pt())
|
|
503
503
|
if (et.length) {
|
|
504
|
-
Wn(Pt().play()), Oi = (/* @__PURE__ */ new Date()).getTime(),
|
|
504
|
+
Wn(Pt().play()), Oi = (/* @__PURE__ */ new Date()).getTime(), Mr(pi);
|
|
505
505
|
return;
|
|
506
506
|
} else {
|
|
507
|
-
|
|
507
|
+
ps(null);
|
|
508
508
|
return;
|
|
509
509
|
}
|
|
510
510
|
Ii?.raise(wt);
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
ei !== 5 && (
|
|
513
|
+
function ga() {
|
|
514
|
+
ei !== 5 && (Ds(), Kt(
|
|
515
515
|
5
|
|
516
516
|
/* AudioPaused */
|
|
517
517
|
));
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ds() {
|
|
520
520
|
const s = Pt();
|
|
521
|
-
clearTimeout(
|
|
521
|
+
clearTimeout(Dr), zi && zi.length && s && (s.currentTime > 0 && !s.paused && !s.ended && Ir(), s.pause());
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ma(s) {
|
|
524
524
|
let c = 0;
|
|
525
|
-
return
|
|
525
|
+
return Or(s).forEach((d) => {
|
|
526
526
|
const h = d.getAttribute("data-duration");
|
|
527
527
|
h && (c += parseFloat(h));
|
|
528
528
|
}), c < Di && (c = Di), c;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
clearTimeout(
|
|
530
|
+
function va() {
|
|
531
|
+
clearTimeout(Dr), Br();
|
|
532
532
|
}
|
|
533
533
|
let Gt = 0, Zt;
|
|
534
534
|
const fi = /* @__PURE__ */ new WeakMap();
|
|
535
|
-
function
|
|
535
|
+
function Br() {
|
|
536
536
|
Gt++, Zt && (Zt.pause(), Zt.currentTime = 0, Zt = void 0);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ms(s) {
|
|
539
539
|
return s ? s.name === "AbortError" ? !0 : (typeof s.message == "string" && s.message || (typeof s.toString == "function" ? s.toString() : "")).includes("interrupted by a call to pause()") : !1;
|
|
540
540
|
}
|
|
541
541
|
const Li = /* @__PURE__ */ new WeakMap();
|
|
542
|
-
function
|
|
542
|
+
function qr(s) {
|
|
543
543
|
Li.get(s)?.();
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function zs(s, c = () => !0, d = () => Gn(s)) {
|
|
546
546
|
if (!s.paused)
|
|
547
547
|
return;
|
|
548
|
-
|
|
548
|
+
qr(s);
|
|
549
549
|
const h = s.muted;
|
|
550
550
|
let T, L = !1;
|
|
551
551
|
const z = () => {
|
|
@@ -576,11 +576,11 @@ function Ms(s, c = () => !0, d = () => Gn(s)) {
|
|
|
576
576
|
z(), _?.name === "NotAllowedError" && (s.removeAttribute("poster"), d());
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Rr(s, c) {
|
|
580
580
|
const d = ++Gt;
|
|
581
581
|
hi(s, c, d);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Is(s, c) {
|
|
584
584
|
return s.networkState === HTMLMediaElement.NETWORK_NO_SOURCE && s.readyState === HTMLMediaElement.HAVE_NOTHING ? !0 : c ? c.name === "NotSupportedError" ? !0 : s.error?.code === (window.MediaError ? window.MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED : 4) : !1;
|
|
585
585
|
}
|
|
586
586
|
function hi(s, c, d) {
|
|
@@ -591,13 +591,13 @@ function hi(s, c, d) {
|
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
593
|
const h = s[0];
|
|
594
|
-
if (Zt = h,
|
|
595
|
-
fi.delete(h),
|
|
594
|
+
if (Zt = h, Is(h))
|
|
595
|
+
fi.delete(h), Tn(h), hi(s.slice(1), c, d);
|
|
596
596
|
else {
|
|
597
|
-
|
|
597
|
+
Os(h), Ri(h), Kt(
|
|
598
598
|
2
|
|
599
599
|
/* VideoPlaying */
|
|
600
|
-
),
|
|
600
|
+
), qr(h), h.currentTime = 0;
|
|
601
601
|
let T = !1, L;
|
|
602
602
|
const z = 250, D = () => {
|
|
603
603
|
L !== void 0 && (window.clearTimeout(L), L = void 0);
|
|
@@ -635,22 +635,22 @@ function hi(s, c, d) {
|
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
637
637
|
const G = fi.get(h) ?? 0;
|
|
638
|
-
if (
|
|
638
|
+
if (Ms(V) && G < 2) {
|
|
639
639
|
fi.set(h, G + 1), window.setTimeout(() => {
|
|
640
640
|
hi(s, c, d);
|
|
641
641
|
}, 50);
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
console.error("Video play failed", V), fi.delete(h),
|
|
644
|
+
console.error("Video play failed", V), fi.delete(h), Tn(h), hi(s.slice(1), c, d);
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
const
|
|
649
|
-
function
|
|
648
|
+
const Hs = "Sorry, this video cannot be played in this browser.";
|
|
649
|
+
function Tn(s) {
|
|
650
650
|
const c = s.parentElement;
|
|
651
651
|
if (c && c.getElementsByClassName("video-error-message").length === 0) {
|
|
652
652
|
const h = c.ownerDocument.createElement("div");
|
|
653
|
-
h.className = "video-error-message normal-style", h.textContent =
|
|
653
|
+
h.className = "video-error-message normal-style", h.textContent = Hs, h.style.display = "block", h.style.color = "black", h.style.backgroundColor = "rgba(255, 255, 255, 0.5)", h.style.position = "absolute", h.style.left = "10%", h.style.top = "10%", h.style.width = "80%", h.style.fontSize = "x-large", h.style.pointerEvents = "none", c.appendChild(h);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
function Gn(s) {
|
|
@@ -659,7 +659,7 @@ function Gn(s) {
|
|
|
659
659
|
function Ri(s) {
|
|
660
660
|
(s.closest(".bloom-videoContainer") || s.parentElement)?.classList.remove("autoplayBlocked");
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Os(s) {
|
|
663
663
|
const c = s.parentElement;
|
|
664
664
|
if (c) {
|
|
665
665
|
const d = c.getElementsByClassName("video-error-message");
|
|
@@ -668,14 +668,14 @@ function Hs(s) {
|
|
|
668
668
|
}
|
|
669
669
|
const ji = ".bloom-textOverPicture, .bloom-canvas-element";
|
|
670
670
|
let Ar = [], Wi = /* @__PURE__ */ new Map(), Qe, Zn, Fi = /* @__PURE__ */ new Map();
|
|
671
|
-
const
|
|
671
|
+
const Bs = (s) => {
|
|
672
672
|
Fi = /* @__PURE__ */ new Map(), s.querySelectorAll("[data-draggable-id]").forEach((c) => {
|
|
673
673
|
Fi.set(c.getAttribute("data-draggable-id"), {
|
|
674
674
|
x: c.style.left,
|
|
675
675
|
y: c.style.top
|
|
676
676
|
});
|
|
677
677
|
});
|
|
678
|
-
},
|
|
678
|
+
}, jr = (s) => {
|
|
679
679
|
s.querySelectorAll("[data-draggable-id]").forEach((c) => {
|
|
680
680
|
const d = Fi.get(
|
|
681
681
|
c.getAttribute("data-draggable-id")
|
|
@@ -683,7 +683,7 @@ const Os = (s) => {
|
|
|
683
683
|
d && (c.style.left = d.x, c.style.top = d.y, c.classList.remove("bloom-draggedToTarget"));
|
|
684
684
|
});
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function qs(s) {
|
|
687
687
|
if (s.getAttribute("data-activity") !== "drag-letter-to-target")
|
|
688
688
|
return;
|
|
689
689
|
const c = Array.from(
|
|
@@ -694,18 +694,18 @@ function Bs(s) {
|
|
|
694
694
|
"bloom-visibility-code-on"
|
|
695
695
|
)[0]?.innerText.trim();
|
|
696
696
|
d.classList.toggle("bloom-unused-in-lang", !h);
|
|
697
|
-
const T =
|
|
697
|
+
const T = Xr(d);
|
|
698
698
|
T && T.classList.toggle("bloom-unused-in-lang", !h);
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Wr(s) {
|
|
702
702
|
return s.closest("#page-scaling-container") !== null;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
Qe = s,
|
|
704
|
+
function ya(s, c) {
|
|
705
|
+
Qe = s, qs(s), Zn = c, yo(
|
|
706
706
|
s.getAttribute("data-show-answers-in-targets") === "true" || s.getAttribute("data-show-target-as-shadow") === "true",
|
|
707
707
|
s
|
|
708
|
-
),
|
|
708
|
+
), Bs(s), Array.from(
|
|
709
709
|
s.getElementsByClassName(
|
|
710
710
|
"bloom-change-page-button"
|
|
711
711
|
)
|
|
@@ -740,7 +740,7 @@ function va(s, c) {
|
|
|
740
740
|
}
|
|
741
741
|
Wi.set(Q, { x: Q.offsetLeft, y: Q.offsetTop }), Q.style.touchAction = "none", Q.addEventListener("pointerdown", oo, { capture: !0 });
|
|
742
742
|
}), Array.from(s.getElementsByTagName("video")).forEach((Q) => {
|
|
743
|
-
Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn),
|
|
743
|
+
Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn), zs(Q));
|
|
744
744
|
});
|
|
745
745
|
const z = h.concat(T);
|
|
746
746
|
Array.from(
|
|
@@ -776,9 +776,9 @@ function va(s, c) {
|
|
|
776
776
|
s.querySelectorAll("[data-sound]")
|
|
777
777
|
).forEach((Q) => {
|
|
778
778
|
Q.addEventListener("click", Jn);
|
|
779
|
-
}),
|
|
779
|
+
}), Rs(s), _s(s);
|
|
780
780
|
}
|
|
781
|
-
const
|
|
781
|
+
const Rs = (s) => {
|
|
782
782
|
Array.from(
|
|
783
783
|
s.getElementsByClassName(
|
|
784
784
|
"drag-item-order-sentence"
|
|
@@ -789,16 +789,16 @@ const qs = (s) => {
|
|
|
789
789
|
"bloom-content1 bloom-visibility-code-on"
|
|
790
790
|
)[0], h = d?.textContent?.trim();
|
|
791
791
|
if (!h) return;
|
|
792
|
-
const T = h.split(" "), L =
|
|
792
|
+
const T = h.split(" "), L = Ws(T), z = s.ownerDocument.createElement("div");
|
|
793
793
|
z.classList.add("drag-item-random-sentence"), z.setAttribute("data-answer", h), to(s, L, z, d, !0), z.style.left = c.style.left, z.style.top = c.style.top, z.style.width = c.style.width, c.parentElement?.insertBefore(z, c);
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}, Kn = (s) => {
|
|
797
797
|
const c = s.currentTarget;
|
|
798
|
-
|
|
798
|
+
qr(c), c.play();
|
|
799
799
|
};
|
|
800
|
-
function
|
|
801
|
-
s === Qe &&
|
|
800
|
+
function ba(s) {
|
|
801
|
+
s === Qe && Br(), jr(s), s === Qe && Fi.clear(), Array.from(
|
|
802
802
|
s.getElementsByClassName(
|
|
803
803
|
"bloom-change-page-button"
|
|
804
804
|
)
|
|
@@ -846,29 +846,29 @@ function ya(s) {
|
|
|
846
846
|
)
|
|
847
847
|
).forEach((k) => {
|
|
848
848
|
k.parentElement?.removeChild(k);
|
|
849
|
-
}),
|
|
849
|
+
}), Fs(s);
|
|
850
850
|
const D = s.closest(".swiper-slide") !== null;
|
|
851
|
-
|
|
851
|
+
yo(!D, s);
|
|
852
852
|
}
|
|
853
853
|
const Jn = (s) => {
|
|
854
854
|
const c = s.currentTarget, d = c.getAttribute("data-sound");
|
|
855
|
-
d &&
|
|
855
|
+
d && fo(c, d), s.preventDefault(), s.stopPropagation();
|
|
856
856
|
}, Qn = (s) => {
|
|
857
857
|
const c = s.currentTarget;
|
|
858
858
|
eo(c);
|
|
859
859
|
}, eo = (s) => {
|
|
860
|
-
const c =
|
|
860
|
+
const c = js(s);
|
|
861
861
|
gi(c, s.closest(".bloom-page"));
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function js(s) {
|
|
864
864
|
const c = Vi(s);
|
|
865
|
-
return
|
|
865
|
+
return Fr(c);
|
|
866
866
|
}
|
|
867
867
|
function to(s, c, d, h, T) {
|
|
868
868
|
const L = Array.from(h?.classList)?.find((D) => D.endsWith("-style")) ?? "Normal-style", z = h?.getAttribute("lang");
|
|
869
869
|
c.forEach((D) => {
|
|
870
870
|
const k = s.ownerDocument.createElement("div");
|
|
871
|
-
k.classList.add("drag-item-order-word"), k.textContent = D, d.appendChild(k), k.classList.add(L), z && k.setAttribute("lang", z), T && k.addEventListener("pointerdown",
|
|
871
|
+
k.classList.add("drag-item-order-word"), k.textContent = D, d.appendChild(k), k.classList.add(L), z && k.setAttribute("lang", z), T && k.addEventListener("pointerdown", Ys);
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
function io(s) {
|
|
@@ -877,25 +877,25 @@ function io(s) {
|
|
|
877
877
|
);
|
|
878
878
|
Zn?.(c);
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function wa(s, c) {
|
|
881
881
|
const d = (L) => {
|
|
882
882
|
const z = L.closest(ji);
|
|
883
883
|
return !(!z || z.classList.contains("draggable-text") || z.hasAttribute("data-draggable-id") || z.classList.contains("drag-item-order-sentence") || z.classList.contains("bloom-wordChoice") || z.classList.contains("drag-item-correct") || z.classList.contains("drag-item-wrong"));
|
|
884
|
-
}, h = Vi(s).filter(d), T =
|
|
884
|
+
}, h = Vi(s).filter(d), T = Fr(h);
|
|
885
885
|
if (c) {
|
|
886
886
|
const L = Array.from(
|
|
887
887
|
s.getElementsByTagName("video")
|
|
888
888
|
).filter(d);
|
|
889
|
-
|
|
889
|
+
Rr(L, () => gi(T, s));
|
|
890
890
|
} else
|
|
891
891
|
gi(T, s);
|
|
892
892
|
}
|
|
893
893
|
let ro = (s, c) => {
|
|
894
894
|
};
|
|
895
|
-
function
|
|
895
|
+
function xa(s) {
|
|
896
896
|
ro = s;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Fr(s) {
|
|
899
899
|
const c = [];
|
|
900
900
|
return s.forEach((d) => {
|
|
901
901
|
d.classList.contains(Mi) && c.push(d), c.push(
|
|
@@ -913,7 +913,7 @@ function Vi(s) {
|
|
|
913
913
|
);
|
|
914
914
|
return s.classList.contains("bloom-editable") && window.getComputedStyle(s).display !== "none" && c.push(s), c;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Ws(s, c) {
|
|
917
917
|
c || (c = (D, k) => D === k);
|
|
918
918
|
let d = !0;
|
|
919
919
|
for (let D = 1; D < s.length; ++D)
|
|
@@ -940,13 +940,13 @@ function js(s, c) {
|
|
|
940
940
|
for (let D = 0; D < s.length; ++D) s[D] = L[D];
|
|
941
941
|
return s;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Ta(s, c) {
|
|
944
944
|
return s.innerText.trim() === c.innerText.trim();
|
|
945
945
|
}
|
|
946
946
|
const no = (s) => {
|
|
947
947
|
if (!Qe)
|
|
948
948
|
return;
|
|
949
|
-
|
|
949
|
+
jr(Qe), Qe.querySelectorAll("[data-draggable-id]").forEach((d) => {
|
|
950
950
|
const h = d.getAttribute("data-draggable-id"), T = Qe?.querySelector(
|
|
951
951
|
`[data-target-of="${h}"]`
|
|
952
952
|
);
|
|
@@ -986,7 +986,7 @@ const no = (s) => {
|
|
|
986
986
|
) && c.push(
|
|
987
987
|
...Array.from(d.getElementsByTagName("video"))
|
|
988
988
|
);
|
|
989
|
-
}), c.length > 0 &&
|
|
989
|
+
}), c.length > 0 && Rr(c, () => {
|
|
990
990
|
});
|
|
991
991
|
};
|
|
992
992
|
let $i = 0, Xi = 0, Me, kr = !1;
|
|
@@ -1025,7 +1025,7 @@ const Yi = (s) => s.getBoundingClientRect().width / s.offsetWidth, oo = (s) => {
|
|
|
1025
1025
|
T && (h.style.left = T.x + "px", h.style.top = T.y + "px", h.classList.remove("bloom-draggedToTarget"));
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
},
|
|
1028
|
+
}, Sn = (s) => {
|
|
1029
1029
|
const c = Vi(s);
|
|
1030
1030
|
return Array.from(c).map((d) => d.textContent).join(" ");
|
|
1031
1031
|
}, Lr = (s, c) => {
|
|
@@ -1035,27 +1035,30 @@ const Yi = (s) => s.getBoundingClientRect().width / s.offsetWidth, oo = (s) => {
|
|
|
1035
1035
|
Math.abs(T - d) < 0.6 && Math.abs(L - h) < 0.6
|
|
1036
1036
|
);
|
|
1037
1037
|
}, lo = (s) => {
|
|
1038
|
-
const d = s.currentTarget.closest(".bloom-page"), h =
|
|
1039
|
-
return
|
|
1038
|
+
const d = s.currentTarget.closest(".bloom-page"), h = Xs(d) && Us(d);
|
|
1039
|
+
return $s(d, h), ro(1, h ? 1 : 0), h;
|
|
1040
1040
|
}, co = (s) => {
|
|
1041
1041
|
const d = s.currentTarget.closest(".bloom-page");
|
|
1042
|
-
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1),
|
|
1042
|
+
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), jr(d), Br();
|
|
1043
1043
|
}, jt = (s, c, d) => {
|
|
1044
1044
|
d ? s.parentElement?.classList.add(c) : s.parentElement?.classList.remove(c);
|
|
1045
1045
|
};
|
|
1046
|
-
let Fe, fe,
|
|
1047
|
-
function
|
|
1048
|
-
|
|
1046
|
+
let Fe, fe, _r, Vr;
|
|
1047
|
+
function Sa(s, c) {
|
|
1048
|
+
_r = s, Vr = c;
|
|
1049
|
+
}
|
|
1050
|
+
const $r = "data-preload-sound";
|
|
1051
|
+
function uo(s, c) {
|
|
1052
|
+
return c ? Mn() + "/audio/" + encodeURIComponent(s) : s;
|
|
1049
1053
|
}
|
|
1050
|
-
|
|
1051
|
-
function Ws(s) {
|
|
1054
|
+
function Fs(s) {
|
|
1052
1055
|
s.querySelectorAll(
|
|
1053
|
-
`audio[${
|
|
1056
|
+
`audio[${$r}]`
|
|
1054
1057
|
).forEach((c) => {
|
|
1055
1058
|
c.src = "", c.remove();
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1061
|
+
function _s(s) {
|
|
1059
1062
|
const c = (d, h) => {
|
|
1060
1063
|
const T = d !== null;
|
|
1061
1064
|
if (d === null)
|
|
@@ -1063,30 +1066,30 @@ function Fs(s) {
|
|
|
1063
1066
|
else if (d === "none")
|
|
1064
1067
|
return;
|
|
1065
1068
|
if (!d) return;
|
|
1066
|
-
const L = (T
|
|
1069
|
+
const L = uo(d, T);
|
|
1067
1070
|
if (Array.from(
|
|
1068
|
-
s.querySelectorAll(`audio[${
|
|
1071
|
+
s.querySelectorAll(`audio[${$r}]`)
|
|
1069
1072
|
).find((k) => k.dataset.preloadSound === L)) return;
|
|
1070
1073
|
const D = document.createElement("audio");
|
|
1071
|
-
D.dataset.preloadSound = L, D.style.visibility = "hidden",
|
|
1074
|
+
D.dataset.preloadSound = L, D.style.visibility = "hidden", Wr(s) && D.classList.add("bloom-ui"), D.src = L, D.load(), s.append(D);
|
|
1072
1075
|
};
|
|
1073
1076
|
c(
|
|
1074
1077
|
s.getAttribute("data-correct-sound"),
|
|
1075
|
-
|
|
1078
|
+
_r
|
|
1076
1079
|
), c(
|
|
1077
1080
|
s.getAttribute("data-wrong-sound"),
|
|
1078
|
-
|
|
1081
|
+
Vr
|
|
1079
1082
|
);
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1084
|
+
function Vs(s, c, d) {
|
|
1082
1085
|
let h = s.getAttribute(
|
|
1083
1086
|
c ? "data-correct-sound" : "data-wrong-sound"
|
|
1084
1087
|
);
|
|
1085
1088
|
const T = h !== null;
|
|
1086
|
-
h === null ? h = c ?
|
|
1089
|
+
h === null ? h = c ? _r : Vr : h === "none" && (h = void 0), h ? fo(s, h, T, d) : d?.();
|
|
1087
1090
|
}
|
|
1088
|
-
function
|
|
1089
|
-
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c),
|
|
1091
|
+
function $s(s, c) {
|
|
1092
|
+
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c), Vs(s, c, () => {
|
|
1090
1093
|
if (!s.parentElement?.classList.contains(
|
|
1091
1094
|
c ? "drag-activity-correct" : "drag-activity-wrong"
|
|
1092
1095
|
))
|
|
@@ -1099,16 +1102,16 @@ function Vs(s, c) {
|
|
|
1099
1102
|
h.forEach((D) => {
|
|
1100
1103
|
T.push(...Vi(D)), L.push(...Array.from(D.getElementsByTagName("video")));
|
|
1101
1104
|
});
|
|
1102
|
-
const z =
|
|
1103
|
-
|
|
1105
|
+
const z = Fr(T);
|
|
1106
|
+
Rr(L, () => gi(z, s));
|
|
1104
1107
|
});
|
|
1105
1108
|
}
|
|
1106
|
-
function
|
|
1107
|
-
const T = (d
|
|
1108
|
-
s.querySelectorAll(`audio[${
|
|
1109
|
+
function fo(s, c, d = !0, h) {
|
|
1110
|
+
const T = uo(c, d), L = Array.from(
|
|
1111
|
+
s.querySelectorAll(`audio[${$r}]`)
|
|
1109
1112
|
).find((_) => _.dataset.preloadSound === T);
|
|
1110
1113
|
let z;
|
|
1111
|
-
L ? (delete L.dataset.preloadSound, L.currentTime = 0, z = L) : (z = new Audio(T),
|
|
1114
|
+
L ? (delete L.dataset.preloadSound, L.currentTime = 0, z = L) : (z = new Audio(T), Wr(s) && z.classList.add("bloom-ui"), z.style.visibility = "hidden", s.append(z));
|
|
1112
1115
|
let D = !1;
|
|
1113
1116
|
const k = () => {
|
|
1114
1117
|
D || (D = !0, h?.());
|
|
@@ -1129,7 +1132,7 @@ function uo(s, c, d = !0, h) {
|
|
|
1129
1132
|
{ once: !0 }
|
|
1130
1133
|
);
|
|
1131
1134
|
}
|
|
1132
|
-
function
|
|
1135
|
+
function Xs(s) {
|
|
1133
1136
|
let c = !0;
|
|
1134
1137
|
const d = Array.from(
|
|
1135
1138
|
s.querySelectorAll("[data-draggable-id]")
|
|
@@ -1145,14 +1148,14 @@ function $s(s) {
|
|
|
1145
1148
|
c = !1;
|
|
1146
1149
|
return;
|
|
1147
1150
|
}
|
|
1148
|
-
const z =
|
|
1149
|
-
d.some((D) => D === h ||
|
|
1151
|
+
const z = Sn(h);
|
|
1152
|
+
d.some((D) => D === h || Sn(D) !== z ? !1 : Lr(D, L)) || (c = !1);
|
|
1150
1153
|
}
|
|
1151
1154
|
}), c;
|
|
1152
1155
|
}
|
|
1153
1156
|
let qe, Nr = 0;
|
|
1154
|
-
const
|
|
1155
|
-
function
|
|
1157
|
+
const ho = 5;
|
|
1158
|
+
function Ys(s) {
|
|
1156
1159
|
if (s.button !== 0 || s.ctrlKey) return;
|
|
1157
1160
|
fe = s.currentTarget, Nr = fe.offsetWidth;
|
|
1158
1161
|
const c = fe.closest(".bloom-page"), d = Yi(c);
|
|
@@ -1161,16 +1164,16 @@ function Xs(s) {
|
|
|
1161
1164
|
), Fe.textContent = fe.textContent, Fe.style.position = "absolute", Fe.style.left = fe.offsetLeft + "px", Fe.style.top = fe.offsetTop + "px", Fe.setAttribute(
|
|
1162
1165
|
"lang",
|
|
1163
1166
|
fe.getAttribute("lang")
|
|
1164
|
-
), qe =
|
|
1167
|
+
), qe = vo(fe), qe.style.width = Nr + ho + "px", fe.parentElement?.insertBefore(
|
|
1165
1168
|
qe,
|
|
1166
1169
|
fe
|
|
1167
|
-
), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup",
|
|
1170
|
+
), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup", mo), fe.addEventListener("pointermove", go), fe.addEventListener("touchstart", po), fe.parentElement?.appendChild(Fe);
|
|
1168
1171
|
}
|
|
1169
|
-
const
|
|
1172
|
+
const po = (s) => {
|
|
1170
1173
|
s.preventDefault();
|
|
1171
1174
|
};
|
|
1172
|
-
let
|
|
1173
|
-
const
|
|
1175
|
+
let En;
|
|
1176
|
+
const go = (s) => {
|
|
1174
1177
|
const c = Fe.closest(".bloom-page"), d = Yi(c);
|
|
1175
1178
|
s.preventDefault();
|
|
1176
1179
|
const h = s.clientX / d - $i, T = s.clientY / d - Xi;
|
|
@@ -1180,7 +1183,7 @@ const po = (s) => {
|
|
|
1180
1183
|
const k = D.getBoundingClientRect();
|
|
1181
1184
|
return D !== fe && D !== qe && D !== Fe && s.clientX > k.left && s.clientX < k.right && s.clientY > k.top && s.clientY < k.bottom;
|
|
1182
1185
|
});
|
|
1183
|
-
if (z && z !==
|
|
1186
|
+
if (z && z !== En) {
|
|
1184
1187
|
const D = Array.from(L.children);
|
|
1185
1188
|
D.indexOf(z) > D.indexOf(qe) ? wr(() => {
|
|
1186
1189
|
L.insertBefore(
|
|
@@ -1202,34 +1205,34 @@ const po = (s) => {
|
|
|
1202
1205
|
L.appendChild(qe);
|
|
1203
1206
|
});
|
|
1204
1207
|
}
|
|
1205
|
-
|
|
1206
|
-
},
|
|
1208
|
+
En = z;
|
|
1209
|
+
}, mo = (s) => {
|
|
1207
1210
|
s.preventDefault(), fe.style.visibility = "visible", fe.removeEventListener(
|
|
1208
1211
|
"pointerup",
|
|
1209
|
-
|
|
1212
|
+
mo
|
|
1210
1213
|
), fe.removeEventListener(
|
|
1211
1214
|
"pointermove",
|
|
1212
|
-
|
|
1215
|
+
go
|
|
1213
1216
|
), fe.releasePointerCapture(s.pointerId), fe.removeEventListener(
|
|
1214
1217
|
"touchstart",
|
|
1215
|
-
|
|
1218
|
+
po
|
|
1216
1219
|
), Fe.parentElement?.removeChild(Fe), fe.parentElement?.insertBefore(
|
|
1217
1220
|
fe,
|
|
1218
1221
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1219
1222
|
qe
|
|
1220
1223
|
), fe.parentElement?.removeChild(qe), qe = void 0, fe.style.display = "";
|
|
1221
1224
|
};
|
|
1222
|
-
function
|
|
1225
|
+
function vo(s) {
|
|
1223
1226
|
const c = s.cloneNode(!0);
|
|
1224
1227
|
return c.style.overflowX = "hidden", c.style.marginRight = "0", c.style.paddingLeft = "0", c.style.paddingRight = "0", c.style.display = "", c.style.visibility = "hidden", c;
|
|
1225
1228
|
}
|
|
1226
1229
|
let Ni = !1;
|
|
1227
1230
|
function wr(s) {
|
|
1228
1231
|
Ni = !0;
|
|
1229
|
-
const c = 200, d = fe.parentElement, h =
|
|
1232
|
+
const c = 200, d = fe.parentElement, h = vo(fe);
|
|
1230
1233
|
d.insertBefore(h, qe), s();
|
|
1231
1234
|
const T = Date.now(), L = () => {
|
|
1232
|
-
const z = Date.now() - T, D = Math.min(z / c, 1), k = Nr +
|
|
1235
|
+
const z = Date.now() - T, D = Math.min(z / c, 1), k = Nr + ho;
|
|
1233
1236
|
if (!qe) {
|
|
1234
1237
|
d.removeChild(h), Ni = !1;
|
|
1235
1238
|
return;
|
|
@@ -1238,7 +1241,7 @@ function wr(s) {
|
|
|
1238
1241
|
};
|
|
1239
1242
|
requestAnimationFrame(L);
|
|
1240
1243
|
}
|
|
1241
|
-
function
|
|
1244
|
+
function Us(s) {
|
|
1242
1245
|
const c = s.getElementsByClassName("drag-item-random-sentence");
|
|
1243
1246
|
for (let d = 0; d < c.length; d++) {
|
|
1244
1247
|
const h = c[d], T = h.getAttribute("data-answer").split(" "), L = Array.from(h.children);
|
|
@@ -1248,16 +1251,16 @@ function Ys(s) {
|
|
|
1248
1251
|
}
|
|
1249
1252
|
return !0;
|
|
1250
1253
|
}
|
|
1251
|
-
const
|
|
1254
|
+
const yo = (s, c) => {
|
|
1252
1255
|
const d = c.querySelectorAll(":scope [data-draggable-id]");
|
|
1253
1256
|
s ? d.forEach((h) => {
|
|
1254
|
-
Us(h);
|
|
1255
|
-
}) : d.forEach((h) => {
|
|
1256
1257
|
Gs(h);
|
|
1258
|
+
}) : d.forEach((h) => {
|
|
1259
|
+
Zs(h);
|
|
1257
1260
|
});
|
|
1258
1261
|
};
|
|
1259
|
-
function
|
|
1260
|
-
const c =
|
|
1262
|
+
function Gs(s) {
|
|
1263
|
+
const c = Xr(s);
|
|
1261
1264
|
if (!c)
|
|
1262
1265
|
return;
|
|
1263
1266
|
let d = c.ownerDocument.createElement("div");
|
|
@@ -1297,32 +1300,32 @@ function Us(s) {
|
|
|
1297
1300
|
}
|
|
1298
1301
|
c.innerHTML !== d.innerHTML && (c.innerHTML = d.innerHTML);
|
|
1299
1302
|
}
|
|
1300
|
-
const
|
|
1303
|
+
const Xr = (s) => {
|
|
1301
1304
|
const c = s.getAttribute("data-draggable-id");
|
|
1302
1305
|
if (c)
|
|
1303
1306
|
return s.closest(".bloom-page").querySelector(`[data-target-of="${c}"]`);
|
|
1304
1307
|
};
|
|
1305
|
-
function
|
|
1306
|
-
const c =
|
|
1308
|
+
function Zs(s) {
|
|
1309
|
+
const c = Xr(s);
|
|
1307
1310
|
c && (c.innerHTML = "");
|
|
1308
1311
|
}
|
|
1309
|
-
let
|
|
1310
|
-
function
|
|
1312
|
+
let Ea = !1;
|
|
1313
|
+
function Ca(s) {
|
|
1311
1314
|
}
|
|
1312
|
-
function
|
|
1315
|
+
function Ks(s) {
|
|
1313
1316
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
1314
1317
|
}
|
|
1315
1318
|
var Pi = { exports: {} };
|
|
1316
|
-
var
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1319
|
+
var Js = Pi.exports, Cn;
|
|
1320
|
+
function bo() {
|
|
1321
|
+
return Cn || (Cn = 1, (function(s) {
|
|
1319
1322
|
(function(c, d) {
|
|
1320
1323
|
s.exports = c.document ? d(c, !0) : function(h) {
|
|
1321
1324
|
if (!h.document)
|
|
1322
1325
|
throw new Error("jQuery requires a window with a document");
|
|
1323
1326
|
return d(h);
|
|
1324
1327
|
};
|
|
1325
|
-
})(typeof window < "u" ? window :
|
|
1328
|
+
})(typeof window < "u" ? window : Js, function(c, d) {
|
|
1326
1329
|
var h = [], T = Object.getPrototypeOf, L = h.slice, z = h.flat ? function(t) {
|
|
1327
1330
|
return h.flat.call(t);
|
|
1328
1331
|
} : function(t) {
|
|
@@ -1558,15 +1561,15 @@ function yo() {
|
|
|
1558
1561
|
}, At = /^(?:input|select|textarea|button)$/i, kt = /^h\d$/i, rt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, dr = /[+~]/, yt = new RegExp("\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\([^\\r\\n\\f])", "g"), bt = function(p, b) {
|
|
1559
1562
|
var E = "0x" + p.slice(1) - 65536;
|
|
1560
1563
|
return b || (E < 0 ? String.fromCharCode(E + 65536) : String.fromCharCode(E >> 10 | 55296, E & 1023 | 56320));
|
|
1561
|
-
},
|
|
1564
|
+
}, es = function() {
|
|
1562
1565
|
Lt();
|
|
1563
|
-
},
|
|
1566
|
+
}, ts = Si(
|
|
1564
1567
|
function(p) {
|
|
1565
1568
|
return p.disabled === !0 && me(p, "fieldset");
|
|
1566
1569
|
},
|
|
1567
1570
|
{ dir: "parentNode", next: "legend" }
|
|
1568
1571
|
);
|
|
1569
|
-
function
|
|
1572
|
+
function is() {
|
|
1570
1573
|
try {
|
|
1571
1574
|
return u.activeElement;
|
|
1572
1575
|
} catch {
|
|
@@ -1626,7 +1629,7 @@ function yo() {
|
|
|
1626
1629
|
}
|
|
1627
1630
|
}
|
|
1628
1631
|
}
|
|
1629
|
-
return
|
|
1632
|
+
return wn(p.replace(C, "$1"), b, E, N);
|
|
1630
1633
|
}
|
|
1631
1634
|
function xi() {
|
|
1632
1635
|
var p = [];
|
|
@@ -1648,20 +1651,20 @@ function yo() {
|
|
|
1648
1651
|
b.parentNode && b.parentNode.removeChild(b), b = null;
|
|
1649
1652
|
}
|
|
1650
1653
|
}
|
|
1651
|
-
function
|
|
1654
|
+
function rs(p) {
|
|
1652
1655
|
return function(b) {
|
|
1653
1656
|
return me(b, "input") && b.type === p;
|
|
1654
1657
|
};
|
|
1655
1658
|
}
|
|
1656
|
-
function
|
|
1659
|
+
function ns(p) {
|
|
1657
1660
|
return function(b) {
|
|
1658
1661
|
return (me(b, "input") || me(b, "button")) && b.type === p;
|
|
1659
1662
|
};
|
|
1660
1663
|
}
|
|
1661
|
-
function
|
|
1664
|
+
function yn(p) {
|
|
1662
1665
|
return function(b) {
|
|
1663
1666
|
return "form" in b ? b.parentNode && b.disabled === !1 ? "label" in b ? "label" in b.parentNode ? b.parentNode.disabled === p : b.disabled === p : b.isDisabled === p || // Where there is no isDisabled, check manually
|
|
1664
|
-
b.isDisabled !== !p &&
|
|
1667
|
+
b.isDisabled !== !p && ts(b) === p : b.disabled === p : "label" in b ? b.disabled === p : !1;
|
|
1665
1668
|
};
|
|
1666
1669
|
}
|
|
1667
1670
|
function Rt(p) {
|
|
@@ -1681,7 +1684,7 @@ function yo() {
|
|
|
1681
1684
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
|
1682
1685
|
// two documents; shallow comparisons work.
|
|
1683
1686
|
// eslint-disable-next-line eqeqeq
|
|
1684
|
-
g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload",
|
|
1687
|
+
g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload", es), V.getById = Yt(function(N) {
|
|
1685
1688
|
return y.appendChild(N).id = o.expando, !u.getElementsByName || !u.getElementsByName(o.expando).length;
|
|
1686
1689
|
}), V.disconnectedMatch = Yt(function(N) {
|
|
1687
1690
|
return P.call(N, "*");
|
|
@@ -1912,11 +1915,11 @@ function yo() {
|
|
|
1912
1915
|
return p === y;
|
|
1913
1916
|
},
|
|
1914
1917
|
focus: function(p) {
|
|
1915
|
-
return p ===
|
|
1918
|
+
return p === is() && u.hasFocus() && !!(p.type || p.href || ~p.tabIndex);
|
|
1916
1919
|
},
|
|
1917
1920
|
// Boolean properties
|
|
1918
|
-
enabled:
|
|
1919
|
-
disabled:
|
|
1921
|
+
enabled: yn(!1),
|
|
1922
|
+
disabled: yn(!0),
|
|
1920
1923
|
checked: function(p) {
|
|
1921
1924
|
return me(p, "input") && !!p.checked || me(p, "option") && !!p.selected;
|
|
1922
1925
|
},
|
|
@@ -1984,12 +1987,12 @@ function yo() {
|
|
|
1984
1987
|
}
|
|
1985
1988
|
}, i.pseudos.nth = i.pseudos.eq;
|
|
1986
1989
|
for (t in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })
|
|
1987
|
-
i.pseudos[t] = is(t);
|
|
1988
|
-
for (t in { submit: !0, reset: !0 })
|
|
1989
1990
|
i.pseudos[t] = rs(t);
|
|
1990
|
-
|
|
1991
|
+
for (t in { submit: !0, reset: !0 })
|
|
1992
|
+
i.pseudos[t] = ns(t);
|
|
1993
|
+
function bn() {
|
|
1991
1994
|
}
|
|
1992
|
-
|
|
1995
|
+
bn.prototype = i.filters = i.pseudos, i.setFilters = new bn();
|
|
1993
1996
|
function ui(p, b) {
|
|
1994
1997
|
var E, N, I, F, $, Y, X, se = de[p + " "];
|
|
1995
1998
|
if (se)
|
|
@@ -2060,7 +2063,7 @@ function yo() {
|
|
|
2060
2063
|
return !0;
|
|
2061
2064
|
} : p[0];
|
|
2062
2065
|
}
|
|
2063
|
-
function
|
|
2066
|
+
function os(p, b, E) {
|
|
2064
2067
|
for (var N = 0, I = b.length; N < I; N++)
|
|
2065
2068
|
be(p, b[N], E);
|
|
2066
2069
|
return E;
|
|
@@ -2072,7 +2075,7 @@ function yo() {
|
|
|
2072
2075
|
}
|
|
2073
2076
|
function gr(p, b, E, N, I, F) {
|
|
2074
2077
|
return N && !N[O] && (N = gr(N)), I && !I[O] && (I = gr(I, F)), at(function($, Y, X, se) {
|
|
2075
|
-
var te, re, ae, J, xe = [], Ue = [], Be = Y.length, nt = $ ||
|
|
2078
|
+
var te, re, ae, J, xe = [], Ue = [], Be = Y.length, nt = $ || os(
|
|
2076
2079
|
b || "*",
|
|
2077
2080
|
X.nodeType ? [X] : X,
|
|
2078
2081
|
[]
|
|
@@ -2133,7 +2136,7 @@ function yo() {
|
|
|
2133
2136
|
}
|
|
2134
2137
|
return pr(te);
|
|
2135
2138
|
}
|
|
2136
|
-
function
|
|
2139
|
+
function ss(p, b) {
|
|
2137
2140
|
var E = b.length > 0, N = p.length > 0, I = function(F, $, Y, X, se) {
|
|
2138
2141
|
var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], nt = r, pt = F || N && i.find.TAG("*", se), Ut = A += nt == null ? 1 : Math.random() || 0.1, We = pt.length;
|
|
2139
2142
|
for (se && (r = $ == u || $ || se); xe !== We && (te = pt[xe]) != null; xe++) {
|
|
@@ -2169,12 +2172,12 @@ function yo() {
|
|
|
2169
2172
|
F = mr(b[E]), F[O] ? N.push(F) : I.push(F);
|
|
2170
2173
|
F = ne(
|
|
2171
2174
|
p,
|
|
2172
|
-
|
|
2175
|
+
ss(I, N)
|
|
2173
2176
|
), F.selector = p;
|
|
2174
2177
|
}
|
|
2175
2178
|
return F;
|
|
2176
2179
|
}
|
|
2177
|
-
function
|
|
2180
|
+
function wn(p, b, E, N) {
|
|
2178
2181
|
var I, F, $, Y, X, se = typeof p == "function" && p, te = !N && ui(p = se.selector || p);
|
|
2179
2182
|
if (E = E || [], te.length === 1) {
|
|
2180
2183
|
if (F = te[0] = te[0].slice(0), F.length > 2 && ($ = F[0]).type === "ID" && b.nodeType === 9 && m && i.relative[F[1].type]) {
|
|
@@ -2206,7 +2209,7 @@ function yo() {
|
|
|
2206
2209
|
}
|
|
2207
2210
|
V.sortStable = O.split("").sort(Pe).join("") === O, Lt(), V.sortDetached = Yt(function(p) {
|
|
2208
2211
|
return p.compareDocumentPosition(u.createElement("fieldset")) & 1;
|
|
2209
|
-
}), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select =
|
|
2212
|
+
}), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select = wn, be.setDocument = Lt, be.tokenize = ui, be.escape = o.escapeSelector, be.getText = o.text, be.isXML = o.isXMLDoc, be.selectors = o.expr, be.support = o.support, be.uniqueSort = o.uniqueSort;
|
|
2210
2213
|
})();
|
|
2211
2214
|
var ge = function(t, i, r) {
|
|
2212
2215
|
for (var n = [], a = r !== void 0; (t = t[i]) && t.nodeType !== 9; )
|
|
@@ -3271,17 +3274,17 @@ function yo() {
|
|
|
3271
3274
|
});
|
|
3272
3275
|
}
|
|
3273
3276
|
});
|
|
3274
|
-
var
|
|
3275
|
-
function
|
|
3277
|
+
var xo = /<script|<style|<link/i, To = /checked\s*(?:[^=]|=\s*.checked.)/i, So = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
|
|
3278
|
+
function Ur(t, i) {
|
|
3276
3279
|
return me(t, "table") && me(i.nodeType !== 11 ? i : i.firstChild, "tr") && o(t).children("tbody")[0] || t;
|
|
3277
3280
|
}
|
|
3278
|
-
function
|
|
3281
|
+
function Eo(t) {
|
|
3279
3282
|
return t.type = (t.getAttribute("type") !== null) + "/" + t.type, t;
|
|
3280
3283
|
}
|
|
3281
|
-
function
|
|
3284
|
+
function Co(t) {
|
|
3282
3285
|
return (t.type || "").slice(0, 5) === "true/" ? t.type = t.type.slice(5) : t.removeAttribute("type"), t;
|
|
3283
3286
|
}
|
|
3284
|
-
function
|
|
3287
|
+
function Gr(t, i) {
|
|
3285
3288
|
var r, n, a, l, u, y, m;
|
|
3286
3289
|
if (i.nodeType === 1) {
|
|
3287
3290
|
if (M.hasData(t) && (l = M.get(t), m = l.events, m)) {
|
|
@@ -3293,30 +3296,30 @@ function yo() {
|
|
|
3293
3296
|
ee.hasData(t) && (u = ee.access(t), y = o.extend({}, u), ee.set(i, y));
|
|
3294
3297
|
}
|
|
3295
3298
|
}
|
|
3296
|
-
function
|
|
3299
|
+
function Ao(t, i) {
|
|
3297
3300
|
var r = i.nodeName.toLowerCase();
|
|
3298
3301
|
r === "input" && ke.test(t.type) ? i.checked = t.checked : (r === "input" || r === "textarea") && (i.defaultValue = t.defaultValue);
|
|
3299
3302
|
}
|
|
3300
3303
|
function $t(t, i, r, n) {
|
|
3301
3304
|
i = z(i);
|
|
3302
3305
|
var a, l, u, y, m, w, P = 0, O = t.length, A = O - 1, R = i[0], ie = G(R);
|
|
3303
|
-
if (ie || O > 1 && typeof R == "string" && !V.checkClone &&
|
|
3306
|
+
if (ie || O > 1 && typeof R == "string" && !V.checkClone && To.test(R))
|
|
3304
3307
|
return t.each(function(de) {
|
|
3305
3308
|
var ne = t.eq(de);
|
|
3306
3309
|
ie && (i[0] = R.call(this, de, ne.html())), $t(ne, i, r, n);
|
|
3307
3310
|
});
|
|
3308
3311
|
if (O && (a = Ne(i, t[0].ownerDocument, !1, t, n), l = a.firstChild, a.childNodes.length === 1 && (a = l), l || n)) {
|
|
3309
|
-
for (u = o.map(Ce(a, "script"),
|
|
3312
|
+
for (u = o.map(Ce(a, "script"), Eo), y = u.length; P < O; P++)
|
|
3310
3313
|
m = a, P !== A && (m = o.clone(m, !0, !0), y && o.merge(u, Ce(m, "script"))), r.call(t[P], m, P);
|
|
3311
3314
|
if (y)
|
|
3312
|
-
for (w = u[u.length - 1].ownerDocument, o.map(u,
|
|
3315
|
+
for (w = u[u.length - 1].ownerDocument, o.map(u, Co), P = 0; P < y; P++)
|
|
3313
3316
|
m = u[P], Ke.test(m.type || "") && !M.access(m, "globalEval") && o.contains(w, m) && (m.src && (m.type || "").toLowerCase() !== "module" ? o._evalUrl && !m.noModule && o._evalUrl(m.src, {
|
|
3314
3317
|
nonce: m.nonce || m.getAttribute("nonce")
|
|
3315
|
-
}, w) : xt(m.textContent.replace(
|
|
3318
|
+
}, w) : xt(m.textContent.replace(So, ""), m, w));
|
|
3316
3319
|
}
|
|
3317
3320
|
return t;
|
|
3318
3321
|
}
|
|
3319
|
-
function
|
|
3322
|
+
function Zr(t, i, r) {
|
|
3320
3323
|
for (var n, a = i ? o.filter(i, t) : t, l = 0; (n = a[l]) != null; l++)
|
|
3321
3324
|
!r && n.nodeType === 1 && o.cleanData(Ce(n)), n.parentNode && (r && Ct(n) && vt(Ce(n, "script")), n.parentNode.removeChild(n));
|
|
3322
3325
|
return t;
|
|
@@ -3329,13 +3332,13 @@ function yo() {
|
|
|
3329
3332
|
var n, a, l, u, y = t.cloneNode(!0), m = Ct(t);
|
|
3330
3333
|
if (!V.noCloneChecked && (t.nodeType === 1 || t.nodeType === 11) && !o.isXMLDoc(t))
|
|
3331
3334
|
for (u = Ce(y), l = Ce(t), n = 0, a = l.length; n < a; n++)
|
|
3332
|
-
|
|
3335
|
+
Ao(l[n], u[n]);
|
|
3333
3336
|
if (i)
|
|
3334
3337
|
if (r)
|
|
3335
3338
|
for (l = l || Ce(t), u = u || Ce(y), n = 0, a = l.length; n < a; n++)
|
|
3336
|
-
|
|
3339
|
+
Gr(l[n], u[n]);
|
|
3337
3340
|
else
|
|
3338
|
-
|
|
3341
|
+
Gr(t, y);
|
|
3339
3342
|
return u = Ce(y, "script"), u.length > 0 && vt(u, !m && Ce(t, "script")), y;
|
|
3340
3343
|
},
|
|
3341
3344
|
cleanData: function(t) {
|
|
@@ -3352,10 +3355,10 @@ function yo() {
|
|
|
3352
3355
|
}
|
|
3353
3356
|
}), o.fn.extend({
|
|
3354
3357
|
detach: function(t) {
|
|
3355
|
-
return
|
|
3358
|
+
return Zr(this, t, !0);
|
|
3356
3359
|
},
|
|
3357
3360
|
remove: function(t) {
|
|
3358
|
-
return
|
|
3361
|
+
return Zr(this, t);
|
|
3359
3362
|
},
|
|
3360
3363
|
text: function(t) {
|
|
3361
3364
|
return tt(this, function(i) {
|
|
@@ -3367,7 +3370,7 @@ function yo() {
|
|
|
3367
3370
|
append: function() {
|
|
3368
3371
|
return $t(this, arguments, function(t) {
|
|
3369
3372
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3370
|
-
var i =
|
|
3373
|
+
var i = Ur(this, t);
|
|
3371
3374
|
i.appendChild(t);
|
|
3372
3375
|
}
|
|
3373
3376
|
});
|
|
@@ -3375,7 +3378,7 @@ function yo() {
|
|
|
3375
3378
|
prepend: function() {
|
|
3376
3379
|
return $t(this, arguments, function(t) {
|
|
3377
3380
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3378
|
-
var i =
|
|
3381
|
+
var i = Ur(this, t);
|
|
3379
3382
|
i.insertBefore(t, i.firstChild);
|
|
3380
3383
|
}
|
|
3381
3384
|
});
|
|
@@ -3405,7 +3408,7 @@ function yo() {
|
|
|
3405
3408
|
var r = this[0] || {}, n = 0, a = this.length;
|
|
3406
3409
|
if (i === void 0 && r.nodeType === 1)
|
|
3407
3410
|
return r.innerHTML;
|
|
3408
|
-
if (typeof i == "string" && !
|
|
3411
|
+
if (typeof i == "string" && !xo.test(i) && !ve[(Ze.exec(i) || ["", ""])[1].toLowerCase()]) {
|
|
3409
3412
|
i = o.htmlPrefilter(i);
|
|
3410
3413
|
try {
|
|
3411
3414
|
for (; n < a; n++)
|
|
@@ -3440,7 +3443,7 @@ function yo() {
|
|
|
3440
3443
|
var Qi = new RegExp("^(" + Vt + ")(?!px)[a-z%]+$", "i"), er = /^--/, yi = function(t) {
|
|
3441
3444
|
var i = t.ownerDocument.defaultView;
|
|
3442
3445
|
return (!i || !i.opener) && (i = c), i.getComputedStyle(t);
|
|
3443
|
-
},
|
|
3446
|
+
}, Kr = function(t, i, r) {
|
|
3444
3447
|
var n, a, l = {};
|
|
3445
3448
|
for (a in i)
|
|
3446
3449
|
l[a] = t.style[a], t.style[a] = i[a];
|
|
@@ -3448,7 +3451,7 @@ function yo() {
|
|
|
3448
3451
|
for (a in i)
|
|
3449
3452
|
t.style[a] = l[a];
|
|
3450
3453
|
return n;
|
|
3451
|
-
},
|
|
3454
|
+
}, ko = new RegExp(Xe.join("|"), "i");
|
|
3452
3455
|
(function() {
|
|
3453
3456
|
function t() {
|
|
3454
3457
|
if (w) {
|
|
@@ -3494,13 +3497,13 @@ function yo() {
|
|
|
3494
3497
|
})();
|
|
3495
3498
|
function ni(t, i, r) {
|
|
3496
3499
|
var n, a, l, u, y = er.test(i), m = t.style;
|
|
3497
|
-
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Ct(t) && (u = o.style(t, i)), !V.pixelBoxStyles() && Qi.test(u) &&
|
|
3500
|
+
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Ct(t) && (u = o.style(t, i)), !V.pixelBoxStyles() && Qi.test(u) && ko.test(i) && (n = m.width, a = m.minWidth, l = m.maxWidth, m.minWidth = m.maxWidth = m.width = u, u = r.width, m.width = n, m.minWidth = a, m.maxWidth = l)), u !== void 0 ? (
|
|
3498
3501
|
// Support: IE <=9 - 11 only
|
|
3499
3502
|
// IE returns zIndex value as an integer.
|
|
3500
3503
|
u + ""
|
|
3501
3504
|
) : u;
|
|
3502
3505
|
}
|
|
3503
|
-
function
|
|
3506
|
+
function Jr(t, i) {
|
|
3504
3507
|
return {
|
|
3505
3508
|
get: function() {
|
|
3506
3509
|
if (t()) {
|
|
@@ -3511,21 +3514,21 @@ function yo() {
|
|
|
3511
3514
|
}
|
|
3512
3515
|
};
|
|
3513
3516
|
}
|
|
3514
|
-
var
|
|
3515
|
-
function
|
|
3516
|
-
for (var i = t[0].toUpperCase() + t.slice(1), r =
|
|
3517
|
-
if (t =
|
|
3517
|
+
var Qr = ["Webkit", "Moz", "ms"], en = U.createElement("div").style, tn = {};
|
|
3518
|
+
function Lo(t) {
|
|
3519
|
+
for (var i = t[0].toUpperCase() + t.slice(1), r = Qr.length; r--; )
|
|
3520
|
+
if (t = Qr[r] + i, t in en)
|
|
3518
3521
|
return t;
|
|
3519
3522
|
}
|
|
3520
3523
|
function tr(t) {
|
|
3521
|
-
var i = o.cssProps[t] ||
|
|
3522
|
-
return i || (t in
|
|
3524
|
+
var i = o.cssProps[t] || tn[t];
|
|
3525
|
+
return i || (t in en ? t : tn[t] = Lo(t) || t);
|
|
3523
3526
|
}
|
|
3524
|
-
var
|
|
3527
|
+
var No = /^(none|table(?!-c[ea]).+)/, Po = { position: "absolute", visibility: "hidden", display: "block" }, rn = {
|
|
3525
3528
|
letterSpacing: "0",
|
|
3526
3529
|
fontWeight: "400"
|
|
3527
3530
|
};
|
|
3528
|
-
function
|
|
3531
|
+
function nn(t, i, r) {
|
|
3529
3532
|
var n = Ht.exec(i);
|
|
3530
3533
|
return n ? (
|
|
3531
3534
|
// Guard against undefined "subtract", e.g., when used as in cssHooks
|
|
@@ -3544,7 +3547,7 @@ function yo() {
|
|
|
3544
3547
|
// Use an explicit zero to avoid NaN (gh-3964)
|
|
3545
3548
|
)) || 0), m + w;
|
|
3546
3549
|
}
|
|
3547
|
-
function
|
|
3550
|
+
function on(t, i, r) {
|
|
3548
3551
|
var n = yi(t), a = !V.boxSizingReliable() || r, l = a && o.css(t, "boxSizing", !1, n) === "border-box", u = l, y = ni(t, i, n), m = "offset" + i[0].toUpperCase() + i.slice(1);
|
|
3549
3552
|
if (Qi.test(y)) {
|
|
3550
3553
|
if (!r)
|
|
@@ -3631,21 +3634,21 @@ function yo() {
|
|
|
3631
3634
|
},
|
|
3632
3635
|
css: function(t, i, r, n) {
|
|
3633
3636
|
var a, l, u, y = S(i), m = er.test(i);
|
|
3634
|
-
return m || (i = tr(y)), u = o.cssHooks[i] || o.cssHooks[y], u && "get" in u && (a = u.get(t, !0, r)), a === void 0 && (a = ni(t, i, n)), a === "normal" && i in
|
|
3637
|
+
return m || (i = tr(y)), u = o.cssHooks[i] || o.cssHooks[y], u && "get" in u && (a = u.get(t, !0, r)), a === void 0 && (a = ni(t, i, n)), a === "normal" && i in rn && (a = rn[i]), r === "" || r ? (l = parseFloat(a), r === !0 || isFinite(l) ? l || 0 : a) : a;
|
|
3635
3638
|
}
|
|
3636
3639
|
}), o.each(["height", "width"], function(t, i) {
|
|
3637
3640
|
o.cssHooks[i] = {
|
|
3638
3641
|
get: function(r, n, a) {
|
|
3639
3642
|
if (n)
|
|
3640
|
-
return
|
|
3643
|
+
return No.test(o.css(r, "display")) && // Support: Safari 8+
|
|
3641
3644
|
// Table columns in Safari have non-zero offsetWidth & zero
|
|
3642
3645
|
// getBoundingClientRect().width unless display is changed.
|
|
3643
3646
|
// Support: IE <=11 only
|
|
3644
3647
|
// Running getBoundingClientRect on a disconnected node
|
|
3645
3648
|
// in IE throws an error.
|
|
3646
|
-
(!r.getClientRects().length || !r.getBoundingClientRect().width) ?
|
|
3647
|
-
return
|
|
3648
|
-
}) :
|
|
3649
|
+
(!r.getClientRects().length || !r.getBoundingClientRect().width) ? Kr(r, Po, function() {
|
|
3650
|
+
return on(r, i, a);
|
|
3651
|
+
}) : on(r, i, a);
|
|
3649
3652
|
},
|
|
3650
3653
|
set: function(r, n, a) {
|
|
3651
3654
|
var l, u = yi(r), y = !V.scrollboxSize() && u.position === "absolute", m = y || a, w = m && o.css(r, "boxSizing", !1, u) === "border-box", P = a ? ir(
|
|
@@ -3657,14 +3660,14 @@ function yo() {
|
|
|
3657
3660
|
) : 0;
|
|
3658
3661
|
return w && y && (P -= Math.ceil(
|
|
3659
3662
|
r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) - ir(r, i, "border", !1, u) - 0.5
|
|
3660
|
-
)), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)),
|
|
3663
|
+
)), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), nn(r, n, P);
|
|
3661
3664
|
}
|
|
3662
3665
|
};
|
|
3663
|
-
}), o.cssHooks.marginLeft =
|
|
3666
|
+
}), o.cssHooks.marginLeft = Jr(
|
|
3664
3667
|
V.reliableMarginLeft,
|
|
3665
3668
|
function(t, i) {
|
|
3666
3669
|
if (i)
|
|
3667
|
-
return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left -
|
|
3670
|
+
return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left - Kr(t, { marginLeft: 0 }, function() {
|
|
3668
3671
|
return t.getBoundingClientRect().left;
|
|
3669
3672
|
})) + "px";
|
|
3670
3673
|
}
|
|
@@ -3679,7 +3682,7 @@ function yo() {
|
|
|
3679
3682
|
a[t + Xe[n] + i] = l[n] || l[n - 2] || l[0];
|
|
3680
3683
|
return a;
|
|
3681
3684
|
}
|
|
3682
|
-
}, t !== "margin" && (o.cssHooks[t + i].set =
|
|
3685
|
+
}, t !== "margin" && (o.cssHooks[t + i].set = nn);
|
|
3683
3686
|
}), o.fn.extend({
|
|
3684
3687
|
css: function(t, i) {
|
|
3685
3688
|
return tt(this, function(r, n, a) {
|
|
@@ -3738,11 +3741,11 @@ function yo() {
|
|
|
3738
3741
|
},
|
|
3739
3742
|
_default: "swing"
|
|
3740
3743
|
}, o.fx = Ye.prototype.init, o.fx.step = {};
|
|
3741
|
-
var Xt, bi,
|
|
3744
|
+
var Xt, bi, Do = /^(?:toggle|show|hide)$/, Mo = /queueHooks$/;
|
|
3742
3745
|
function rr() {
|
|
3743
3746
|
bi && (U.hidden === !1 && c.requestAnimationFrame ? c.requestAnimationFrame(rr) : c.setTimeout(rr, o.fx.interval), o.fx.tick());
|
|
3744
3747
|
}
|
|
3745
|
-
function
|
|
3748
|
+
function sn() {
|
|
3746
3749
|
return c.setTimeout(function() {
|
|
3747
3750
|
Xt = void 0;
|
|
3748
3751
|
}), Xt = Date.now();
|
|
@@ -3753,12 +3756,12 @@ function yo() {
|
|
|
3753
3756
|
r = Xe[n], a["margin" + r] = a["padding" + r] = t;
|
|
3754
3757
|
return i && (a.opacity = a.width = t), a;
|
|
3755
3758
|
}
|
|
3756
|
-
function
|
|
3759
|
+
function an(t, i, r) {
|
|
3757
3760
|
for (var n, a = (st.tweeners[i] || []).concat(st.tweeners["*"]), l = 0, u = a.length; l < u; l++)
|
|
3758
3761
|
if (n = a[l].call(r, i, t))
|
|
3759
3762
|
return n;
|
|
3760
3763
|
}
|
|
3761
|
-
function
|
|
3764
|
+
function zo(t, i, r) {
|
|
3762
3765
|
var n, a, l, u, y, m, w, P, O = "width" in i || "height" in i, A = this, R = {}, ie = t.style, de = t.nodeType && it(t), ne = M.get(t, "fxshow");
|
|
3763
3766
|
r.queue || (u = o._queueHooks(t, "fx"), u.unqueued == null && (u.unqueued = 0, y = u.empty.fire, u.empty.fire = function() {
|
|
3764
3767
|
u.unqueued || y();
|
|
@@ -3768,7 +3771,7 @@ function yo() {
|
|
|
3768
3771
|
});
|
|
3769
3772
|
}));
|
|
3770
3773
|
for (n in i)
|
|
3771
|
-
if (a = i[n],
|
|
3774
|
+
if (a = i[n], Do.test(a)) {
|
|
3772
3775
|
if (delete i[n], l = l || a === "toggle", a === (de ? "hide" : "show"))
|
|
3773
3776
|
if (a === "show" && ne && ne[n] !== void 0)
|
|
3774
3777
|
de = !0;
|
|
@@ -3787,10 +3790,10 @@ function yo() {
|
|
|
3787
3790
|
de || ue([t]), M.remove(t, "fxshow");
|
|
3788
3791
|
for (n in R)
|
|
3789
3792
|
o.style(t, n, R[n]);
|
|
3790
|
-
})), m =
|
|
3793
|
+
})), m = an(de ? ne[n] : 0, n, A), n in ne || (ne[n] = m.start, de && (m.end = m.start, m.start = 0));
|
|
3791
3794
|
}
|
|
3792
3795
|
}
|
|
3793
|
-
function
|
|
3796
|
+
function Io(t, i) {
|
|
3794
3797
|
var r, n, a, l, u;
|
|
3795
3798
|
for (r in t)
|
|
3796
3799
|
if (n = S(r), a = i[n], l = t[r], Array.isArray(l) && (a = l[1], l = t[r] = l[0]), r !== n && (t[n] = l, delete t[r]), u = o.cssHooks[n], u && "expand" in u) {
|
|
@@ -3806,7 +3809,7 @@ function yo() {
|
|
|
3806
3809
|
}), m = function() {
|
|
3807
3810
|
if (a)
|
|
3808
3811
|
return !1;
|
|
3809
|
-
for (var O = Xt ||
|
|
3812
|
+
for (var O = Xt || sn(), A = Math.max(0, w.startTime + w.duration - O), R = A / w.duration || 0, ie = 1 - R, de = 0, ne = w.tweens.length; de < ne; de++)
|
|
3810
3813
|
w.tweens[de].run(ie);
|
|
3811
3814
|
return y.notifyWith(t, [w, ie, A]), ie < 1 && ne ? A : (ne || y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w]), !1);
|
|
3812
3815
|
}, w = y.promise({
|
|
@@ -3818,7 +3821,7 @@ function yo() {
|
|
|
3818
3821
|
}, r),
|
|
3819
3822
|
originalProperties: i,
|
|
3820
3823
|
originalOptions: r,
|
|
3821
|
-
startTime: Xt ||
|
|
3824
|
+
startTime: Xt || sn(),
|
|
3822
3825
|
duration: r.duration,
|
|
3823
3826
|
tweens: [],
|
|
3824
3827
|
createTween: function(O, A) {
|
|
@@ -3840,10 +3843,10 @@ function yo() {
|
|
|
3840
3843
|
return O ? (y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w, O])) : y.rejectWith(t, [w, O]), this;
|
|
3841
3844
|
}
|
|
3842
3845
|
}), P = w.props;
|
|
3843
|
-
for (
|
|
3846
|
+
for (Io(P, w.opts.specialEasing); l < u; l++)
|
|
3844
3847
|
if (n = st.prefilters[l].call(w, t, P, w.opts), n)
|
|
3845
3848
|
return G(n.stop) && (o._queueHooks(w.elem, w.opts.queue).stop = n.stop.bind(n)), n;
|
|
3846
|
-
return o.map(P,
|
|
3849
|
+
return o.map(P, an, w), G(w.opts.start) && w.opts.start.call(t, w), w.progress(w.opts.progress).done(w.opts.done, w.opts.complete).fail(w.opts.fail).always(w.opts.always), o.fx.timer(
|
|
3847
3850
|
o.extend(m, {
|
|
3848
3851
|
elem: t,
|
|
3849
3852
|
anim: w,
|
|
@@ -3863,7 +3866,7 @@ function yo() {
|
|
|
3863
3866
|
for (var r, n = 0, a = t.length; n < a; n++)
|
|
3864
3867
|
r = t[n], st.tweeners[r] = st.tweeners[r] || [], st.tweeners[r].unshift(i);
|
|
3865
3868
|
},
|
|
3866
|
-
prefilters: [
|
|
3869
|
+
prefilters: [zo],
|
|
3867
3870
|
prefilter: function(t, i) {
|
|
3868
3871
|
i ? st.prefilters.unshift(t) : st.prefilters.push(t);
|
|
3869
3872
|
}
|
|
@@ -3898,7 +3901,7 @@ function yo() {
|
|
|
3898
3901
|
y[l] && y[l].stop && n(y[l]);
|
|
3899
3902
|
else
|
|
3900
3903
|
for (l in y)
|
|
3901
|
-
y[l] && y[l].stop &&
|
|
3904
|
+
y[l] && y[l].stop && Mo.test(l) && n(y[l]);
|
|
3902
3905
|
for (l = u.length; l--; )
|
|
3903
3906
|
u[l].elem === this && (t == null || u[l].queue === t) && (u[l].anim.stop(r), a = !1, u.splice(l, 1));
|
|
3904
3907
|
(a || !r) && o.dequeue(this, t);
|
|
@@ -3957,7 +3960,7 @@ function yo() {
|
|
|
3957
3960
|
var t = U.createElement("input"), i = U.createElement("select"), r = i.appendChild(U.createElement("option"));
|
|
3958
3961
|
t.type = "checkbox", V.checkOn = t.value !== "", V.optSelected = r.selected, t = U.createElement("input"), t.value = "t", t.type = "radio", V.radioValue = t.value === "t";
|
|
3959
3962
|
})();
|
|
3960
|
-
var
|
|
3963
|
+
var ln, oi = o.expr.attrHandle;
|
|
3961
3964
|
o.fn.extend({
|
|
3962
3965
|
attr: function(t, i) {
|
|
3963
3966
|
return tt(this, o.attr, t, i, arguments.length > 1);
|
|
@@ -3973,7 +3976,7 @@ function yo() {
|
|
|
3973
3976
|
if (!(l === 3 || l === 8 || l === 2)) {
|
|
3974
3977
|
if (typeof t.getAttribute > "u")
|
|
3975
3978
|
return o.prop(t, i, r);
|
|
3976
|
-
if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ?
|
|
3979
|
+
if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ? ln : void 0)), r !== void 0) {
|
|
3977
3980
|
if (r === null) {
|
|
3978
3981
|
o.removeAttr(t, i);
|
|
3979
3982
|
return;
|
|
@@ -3999,7 +4002,7 @@ function yo() {
|
|
|
3999
4002
|
for (; r = a[n++]; )
|
|
4000
4003
|
t.removeAttribute(r);
|
|
4001
4004
|
}
|
|
4002
|
-
}),
|
|
4005
|
+
}), ln = {
|
|
4003
4006
|
set: function(t, i, r) {
|
|
4004
4007
|
return i === !1 ? o.removeAttr(t, r) : t.setAttribute(r, r), r;
|
|
4005
4008
|
}
|
|
@@ -4010,7 +4013,7 @@ function yo() {
|
|
|
4010
4013
|
return l || (y = oi[m], oi[m] = u, u = r(n, a, l) != null ? m : null, oi[m] = y), u;
|
|
4011
4014
|
};
|
|
4012
4015
|
});
|
|
4013
|
-
var
|
|
4016
|
+
var Ho = /^(?:input|select|textarea|button)$/i, Oo = /^(?:a|area)$/i;
|
|
4014
4017
|
o.fn.extend({
|
|
4015
4018
|
prop: function(t, i) {
|
|
4016
4019
|
return tt(this, o.prop, t, i, arguments.length > 1);
|
|
@@ -4030,7 +4033,7 @@ function yo() {
|
|
|
4030
4033
|
tabIndex: {
|
|
4031
4034
|
get: function(t) {
|
|
4032
4035
|
var i = o.find.attr(t, "tabindex");
|
|
4033
|
-
return i ? parseInt(i, 10) :
|
|
4036
|
+
return i ? parseInt(i, 10) : Ho.test(t.nodeName) || Oo.test(t.nodeName) && t.href ? 0 : -1;
|
|
4034
4037
|
}
|
|
4035
4038
|
}
|
|
4036
4039
|
},
|
|
@@ -4122,7 +4125,7 @@ function yo() {
|
|
|
4122
4125
|
return !1;
|
|
4123
4126
|
}
|
|
4124
4127
|
});
|
|
4125
|
-
var
|
|
4128
|
+
var Bo = /\r/g;
|
|
4126
4129
|
o.fn.extend({
|
|
4127
4130
|
val: function(t) {
|
|
4128
4131
|
var i, r, n, a = this[0];
|
|
@@ -4131,7 +4134,7 @@ function yo() {
|
|
|
4131
4134
|
this.nodeType === 1 && (n ? u = t.call(this, l, o(this).val()) : u = t, u == null ? u = "" : typeof u == "number" ? u += "" : Array.isArray(u) && (u = o.map(u, function(y) {
|
|
4132
4135
|
return y == null ? "" : y + "";
|
|
4133
4136
|
})), i = o.valHooks[this.type] || o.valHooks[this.nodeName.toLowerCase()], (!i || !("set" in i) || i.set(this, u, "value") === void 0) && (this.value = u));
|
|
4134
|
-
})) : a ? (i = o.valHooks[a.type] || o.valHooks[a.nodeName.toLowerCase()], i && "get" in i && (r = i.get(a, "value")) !== void 0 ? r : (r = a.value, typeof r == "string" ? r.replace(
|
|
4137
|
+
})) : a ? (i = o.valHooks[a.type] || o.valHooks[a.nodeName.toLowerCase()], i && "get" in i && (r = i.get(a, "value")) !== void 0 ? r : (r = a.value, typeof r == "string" ? r.replace(Bo, "") : r ?? "")) : void 0;
|
|
4135
4138
|
}
|
|
4136
4139
|
}), o.extend({
|
|
4137
4140
|
valHooks: {
|
|
@@ -4174,7 +4177,7 @@ function yo() {
|
|
|
4174
4177
|
return t.getAttribute("value") === null ? "on" : t.value;
|
|
4175
4178
|
});
|
|
4176
4179
|
});
|
|
4177
|
-
var si = c.location,
|
|
4180
|
+
var si = c.location, cn = { guid: Date.now() }, or = /\?/;
|
|
4178
4181
|
o.parseXML = function(t) {
|
|
4179
4182
|
var i, r;
|
|
4180
4183
|
if (!t || typeof t != "string")
|
|
@@ -4188,21 +4191,21 @@ function yo() {
|
|
|
4188
4191
|
}).join(`
|
|
4189
4192
|
`) : t)), i;
|
|
4190
4193
|
};
|
|
4191
|
-
var
|
|
4194
|
+
var un = /^(?:focusinfocus|focusoutblur)$/, fn = function(t) {
|
|
4192
4195
|
t.stopPropagation();
|
|
4193
4196
|
};
|
|
4194
4197
|
o.extend(o.event, {
|
|
4195
4198
|
trigger: function(t, i, r, n) {
|
|
4196
4199
|
var a, l, u, y, m, w, P, O, A = [r || U], R = ye.call(t, "type") ? t.type : t, ie = ye.call(t, "namespace") ? t.namespace.split(".") : [];
|
|
4197
|
-
if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !
|
|
4200
|
+
if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !un.test(R + o.event.triggered) && (R.indexOf(".") > -1 && (ie = R.split("."), R = ie.shift(), ie.sort()), m = R.indexOf(":") < 0 && "on" + R, t = t[o.expando] ? t : new o.Event(R, typeof t == "object" && t), t.isTrigger = n ? 2 : 3, t.namespace = ie.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), i = i == null ? [t] : o.makeArray(i, [t]), P = o.event.special[R] || {}, !(!n && P.trigger && P.trigger.apply(r, i) === !1))) {
|
|
4198
4201
|
if (!n && !P.noBubble && !Ee(r)) {
|
|
4199
|
-
for (y = P.delegateType || R,
|
|
4202
|
+
for (y = P.delegateType || R, un.test(y + R) || (l = l.parentNode); l; l = l.parentNode)
|
|
4200
4203
|
A.push(l), u = l;
|
|
4201
4204
|
u === (r.ownerDocument || U) && A.push(u.defaultView || u.parentWindow || c);
|
|
4202
4205
|
}
|
|
4203
4206
|
for (a = 0; (l = A[a++]) && !t.isPropagationStopped(); )
|
|
4204
4207
|
O = l, t.type = a > 1 ? y : P.bindType || R, w = (M.get(l, "events") || /* @__PURE__ */ Object.create(null))[t.type] && M.get(l, "handle"), w && w.apply(l, i), w = m && l[m], w && w.apply && H(l) && (t.result = w.apply(l, i), t.result === !1 && t.preventDefault());
|
|
4205
|
-
return t.type = R, !n && !t.isDefaultPrevented() && (!P._default || P._default.apply(A.pop(), i) === !1) && H(r) && m && G(r[R]) && !Ee(r) && (u = r[m], u && (r[m] = null), o.event.triggered = R, t.isPropagationStopped() && O.addEventListener(R,
|
|
4208
|
+
return t.type = R, !n && !t.isDefaultPrevented() && (!P._default || P._default.apply(A.pop(), i) === !1) && H(r) && m && G(r[R]) && !Ee(r) && (u = r[m], u && (r[m] = null), o.event.triggered = R, t.isPropagationStopped() && O.addEventListener(R, fn), r[R](), t.isPropagationStopped() && O.removeEventListener(R, fn), o.event.triggered = void 0, u && (r[m] = u)), t.result;
|
|
4206
4209
|
}
|
|
4207
4210
|
},
|
|
4208
4211
|
// Piggyback on a donor event to simulate a different one
|
|
@@ -4230,12 +4233,12 @@ function yo() {
|
|
|
4230
4233
|
return o.event.trigger(t, i, r, !0);
|
|
4231
4234
|
}
|
|
4232
4235
|
});
|
|
4233
|
-
var
|
|
4236
|
+
var qo = /\[\]$/, dn = /\r?\n/g, Ro = /^(?:submit|button|image|reset|file)$/i, jo = /^(?:input|select|textarea|keygen)/i;
|
|
4234
4237
|
function sr(t, i, r, n) {
|
|
4235
4238
|
var a;
|
|
4236
4239
|
if (Array.isArray(i))
|
|
4237
4240
|
o.each(i, function(l, u) {
|
|
4238
|
-
r ||
|
|
4241
|
+
r || qo.test(t) ? n(t, u) : sr(
|
|
4239
4242
|
t + "[" + (typeof u == "object" && u != null ? l : "") + "]",
|
|
4240
4243
|
u,
|
|
4241
4244
|
r,
|
|
@@ -4273,20 +4276,20 @@ function yo() {
|
|
|
4273
4276
|
return t ? o.makeArray(t) : this;
|
|
4274
4277
|
}).filter(function() {
|
|
4275
4278
|
var t = this.type;
|
|
4276
|
-
return this.name && !o(this).is(":disabled") &&
|
|
4279
|
+
return this.name && !o(this).is(":disabled") && jo.test(this.nodeName) && !Ro.test(t) && (this.checked || !ke.test(t));
|
|
4277
4280
|
}).map(function(t, i) {
|
|
4278
4281
|
var r = o(this).val();
|
|
4279
4282
|
return r == null ? null : Array.isArray(r) ? o.map(r, function(n) {
|
|
4280
|
-
return { name: i.name, value: n.replace(
|
|
4283
|
+
return { name: i.name, value: n.replace(dn, `\r
|
|
4281
4284
|
`) };
|
|
4282
|
-
}) : { name: i.name, value: r.replace(
|
|
4285
|
+
}) : { name: i.name, value: r.replace(dn, `\r
|
|
4283
4286
|
`) };
|
|
4284
4287
|
}).get();
|
|
4285
4288
|
}
|
|
4286
4289
|
});
|
|
4287
|
-
var
|
|
4290
|
+
var Wo = /%20/g, Fo = /#.*$/, _o = /([?&])_=[^&]*/, Vo = /^(.*?):[ \t]*([^\r\n]*)$/mg, $o = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Xo = /^(?:GET|HEAD)$/, Yo = /^\/\//, hn = {}, ar = {}, pn = "*/".concat("*"), lr = U.createElement("a");
|
|
4288
4291
|
lr.href = si.href;
|
|
4289
|
-
function
|
|
4292
|
+
function gn(t) {
|
|
4290
4293
|
return function(i, r) {
|
|
4291
4294
|
typeof i != "string" && (r = i, i = "*");
|
|
4292
4295
|
var n, a = 0, l = i.toLowerCase().match(He) || [];
|
|
@@ -4295,7 +4298,7 @@ function yo() {
|
|
|
4295
4298
|
n[0] === "+" ? (n = n.slice(1) || "*", (t[n] = t[n] || []).unshift(r)) : (t[n] = t[n] || []).push(r);
|
|
4296
4299
|
};
|
|
4297
4300
|
}
|
|
4298
|
-
function
|
|
4301
|
+
function mn(t, i, r, n) {
|
|
4299
4302
|
var a = {}, l = t === ar;
|
|
4300
4303
|
function u(y) {
|
|
4301
4304
|
var m;
|
|
@@ -4315,7 +4318,7 @@ function yo() {
|
|
|
4315
4318
|
i[r] !== void 0 && ((a[r] ? t : n || (n = {}))[r] = i[r]);
|
|
4316
4319
|
return n && o.extend(!0, t, n), t;
|
|
4317
4320
|
}
|
|
4318
|
-
function
|
|
4321
|
+
function Uo(t, i, r) {
|
|
4319
4322
|
for (var n, a, l, u, y = t.contents, m = t.dataTypes; m[0] === "*"; )
|
|
4320
4323
|
m.shift(), n === void 0 && (n = t.mimeType || i.getResponseHeader("Content-Type"));
|
|
4321
4324
|
if (n) {
|
|
@@ -4340,7 +4343,7 @@ function yo() {
|
|
|
4340
4343
|
if (l)
|
|
4341
4344
|
return l !== m[0] && m.unshift(l), r[l];
|
|
4342
4345
|
}
|
|
4343
|
-
function
|
|
4346
|
+
function Go(t, i, r, n) {
|
|
4344
4347
|
var a, l, u, y, m, w = {}, P = t.dataTypes.slice();
|
|
4345
4348
|
if (P[1])
|
|
4346
4349
|
for (u in t.converters)
|
|
@@ -4382,7 +4385,7 @@ function yo() {
|
|
|
4382
4385
|
ajaxSettings: {
|
|
4383
4386
|
url: si.href,
|
|
4384
4387
|
type: "GET",
|
|
4385
|
-
isLocal:
|
|
4388
|
+
isLocal: $o.test(si.protocol),
|
|
4386
4389
|
global: !0,
|
|
4387
4390
|
processData: !0,
|
|
4388
4391
|
async: !0,
|
|
@@ -4399,7 +4402,7 @@ function yo() {
|
|
|
4399
4402
|
headers: {},
|
|
4400
4403
|
*/
|
|
4401
4404
|
accepts: {
|
|
4402
|
-
"*":
|
|
4405
|
+
"*": pn,
|
|
4403
4406
|
text: "text/plain",
|
|
4404
4407
|
html: "text/html",
|
|
4405
4408
|
xml: "application/xml, text/xml",
|
|
@@ -4448,8 +4451,8 @@ function yo() {
|
|
|
4448
4451
|
cr(o.ajaxSettings, t)
|
|
4449
4452
|
);
|
|
4450
4453
|
},
|
|
4451
|
-
ajaxPrefilter:
|
|
4452
|
-
ajaxTransport:
|
|
4454
|
+
ajaxPrefilter: gn(hn),
|
|
4455
|
+
ajaxTransport: gn(ar),
|
|
4453
4456
|
// Main method
|
|
4454
4457
|
ajax: function(t, i) {
|
|
4455
4458
|
typeof t == "object" && (i = t, t = void 0), i = i || {};
|
|
@@ -4460,7 +4463,7 @@ function yo() {
|
|
|
4460
4463
|
var Se;
|
|
4461
4464
|
if (m) {
|
|
4462
4465
|
if (!l)
|
|
4463
|
-
for (l = {}; Se =
|
|
4466
|
+
for (l = {}; Se = Vo.exec(a); )
|
|
4464
4467
|
l[Se[1].toLowerCase() + " "] = (l[Se[1].toLowerCase() + " "] || []).concat(Se[2]);
|
|
4465
4468
|
Se = l[he.toLowerCase() + " "];
|
|
4466
4469
|
}
|
|
@@ -4495,7 +4498,7 @@ function yo() {
|
|
|
4495
4498
|
return r && r.abort(Se), qt(0, Se), this;
|
|
4496
4499
|
}
|
|
4497
4500
|
};
|
|
4498
|
-
if (de.promise(ce), A.url = ((t || A.url || si.href) + "").replace(
|
|
4501
|
+
if (de.promise(ce), A.url = ((t || A.url || si.href) + "").replace(Yo, si.protocol + "//"), A.type = i.method || i.type || A.method || A.type, A.dataTypes = (A.dataType || "*").toLowerCase().match(He) || [""], A.crossDomain == null) {
|
|
4499
4502
|
y = U.createElement("a");
|
|
4500
4503
|
try {
|
|
4501
4504
|
y.href = A.url, y.href = y.href, A.crossDomain = lr.protocol + "//" + lr.host != y.protocol + "//" + y.host;
|
|
@@ -4503,17 +4506,17 @@ function yo() {
|
|
|
4503
4506
|
A.crossDomain = !0;
|
|
4504
4507
|
}
|
|
4505
4508
|
}
|
|
4506
|
-
if (A.data && A.processData && typeof A.data != "string" && (A.data = o.param(A.data, A.traditional)),
|
|
4509
|
+
if (A.data && A.processData && typeof A.data != "string" && (A.data = o.param(A.data, A.traditional)), mn(hn, A, i, ce), m)
|
|
4507
4510
|
return ce;
|
|
4508
|
-
w = o.event && A.global, w && o.active++ === 0 && o.event.trigger("ajaxStart"), A.type = A.type.toUpperCase(), A.hasContent =
|
|
4511
|
+
w = o.event && A.global, w && o.active++ === 0 && o.event.trigger("ajaxStart"), A.type = A.type.toUpperCase(), A.hasContent = !Xo.test(A.type), n = A.url.replace(Fo, ""), A.hasContent ? A.data && A.processData && (A.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (A.data = A.data.replace(Wo, "+")) : (O = A.url.slice(n.length), A.data && (A.processData || typeof A.data == "string") && (n += (or.test(n) ? "&" : "?") + A.data, delete A.data), A.cache === !1 && (n = n.replace(_o, "$1"), O = (or.test(n) ? "&" : "?") + "_=" + cn.guid++ + O), A.url = n + O), A.ifModified && (o.lastModified[n] && ce.setRequestHeader("If-Modified-Since", o.lastModified[n]), o.etag[n] && ce.setRequestHeader("If-None-Match", o.etag[n])), (A.data && A.hasContent && A.contentType !== !1 || i.contentType) && ce.setRequestHeader("Content-Type", A.contentType), ce.setRequestHeader(
|
|
4509
4512
|
"Accept",
|
|
4510
|
-
A.dataTypes[0] && A.accepts[A.dataTypes[0]] ? A.accepts[A.dataTypes[0]] + (A.dataTypes[0] !== "*" ? ", " +
|
|
4513
|
+
A.dataTypes[0] && A.accepts[A.dataTypes[0]] ? A.accepts[A.dataTypes[0]] + (A.dataTypes[0] !== "*" ? ", " + pn + "; q=0.01" : "") : A.accepts["*"]
|
|
4511
4514
|
);
|
|
4512
4515
|
for (P in A.headers)
|
|
4513
4516
|
ce.setRequestHeader(P, A.headers[P]);
|
|
4514
4517
|
if (A.beforeSend && (A.beforeSend.call(R, ce, A) === !1 || m))
|
|
4515
4518
|
return ce.abort();
|
|
4516
|
-
if (ft = "abort", ne.add(A.complete), ce.done(A.success), ce.fail(A.error), r =
|
|
4519
|
+
if (ft = "abort", ne.add(A.complete), ce.done(A.success), ce.fail(A.error), r = mn(ar, A, i, ce), !r)
|
|
4517
4520
|
qt(-1, "No Transport");
|
|
4518
4521
|
else {
|
|
4519
4522
|
if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce, A]), m)
|
|
@@ -4531,8 +4534,8 @@ function yo() {
|
|
|
4531
4534
|
}
|
|
4532
4535
|
function qt(he, Se, li, fr) {
|
|
4533
4536
|
var dt, ci, ht, At, kt, rt = Se;
|
|
4534
|
-
m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0, dt = he >= 200 && he < 300 || he === 304, li && (At =
|
|
4535
|
-
}), At =
|
|
4537
|
+
m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0, dt = he >= 200 && he < 300 || he === 304, li && (At = Uo(A, ce, li)), !dt && o.inArray("script", A.dataTypes) > -1 && o.inArray("json", A.dataTypes) < 0 && (A.converters["text script"] = function() {
|
|
4538
|
+
}), At = Go(A, At, ce, dt), dt ? (A.ifModified && (kt = ce.getResponseHeader("Last-Modified"), kt && (o.lastModified[n] = kt), kt = ce.getResponseHeader("etag"), kt && (o.etag[n] = kt)), he === 204 || A.type === "HEAD" ? rt = "nocontent" : he === 304 ? rt = "notmodified" : (rt = At.state, ci = At.data, ht = At.error, dt = !ht)) : (ht = rt, (he || !rt) && (rt = "error", he < 0 && (he = 0))), ce.status = he, ce.statusText = (Se || rt) + "", dt ? de.resolveWith(R, [ci, rt, ce]) : de.rejectWith(R, [ce, rt, ht]), ce.statusCode(Oe), Oe = void 0, w && ie.trigger(
|
|
4536
4539
|
dt ? "ajaxSuccess" : "ajaxError",
|
|
4537
4540
|
[ce, A, dt ? ci : ht]
|
|
4538
4541
|
), ne.fireWith(R, [ce, rt]), w && (ie.trigger("ajaxComplete", [ce, A]), --o.active || o.event.trigger("ajaxStop")));
|
|
@@ -4617,7 +4620,7 @@ function yo() {
|
|
|
4617
4620
|
} catch {
|
|
4618
4621
|
}
|
|
4619
4622
|
};
|
|
4620
|
-
var
|
|
4623
|
+
var Zo = {
|
|
4621
4624
|
// File protocol always yields status code 0, assume 200
|
|
4622
4625
|
0: 200,
|
|
4623
4626
|
// Support: IE <=9 only
|
|
@@ -4649,7 +4652,7 @@ function yo() {
|
|
|
4649
4652
|
u.status,
|
|
4650
4653
|
u.statusText
|
|
4651
4654
|
) : a(
|
|
4652
|
-
|
|
4655
|
+
Zo[u.status] || u.status,
|
|
4653
4656
|
u.statusText,
|
|
4654
4657
|
// Support: IE <=9 only
|
|
4655
4658
|
// IE9 has no XHR2 but throws on binary (trac-11426)
|
|
@@ -4705,11 +4708,11 @@ function yo() {
|
|
|
4705
4708
|
};
|
|
4706
4709
|
}
|
|
4707
4710
|
});
|
|
4708
|
-
var
|
|
4711
|
+
var vn = [], ur = /(=)\?(?=&|$)|\?\?/;
|
|
4709
4712
|
o.ajaxSetup({
|
|
4710
4713
|
jsonp: "callback",
|
|
4711
4714
|
jsonpCallback: function() {
|
|
4712
|
-
var t =
|
|
4715
|
+
var t = vn.pop() || o.expando + "_" + cn.guid++;
|
|
4713
4716
|
return this[t] = !0, t;
|
|
4714
4717
|
}
|
|
4715
4718
|
}), o.ajaxPrefilter("json jsonp", function(t, i, r) {
|
|
@@ -4720,7 +4723,7 @@ function yo() {
|
|
|
4720
4723
|
}, t.dataTypes[0] = "json", a = c[n], c[n] = function() {
|
|
4721
4724
|
l = arguments;
|
|
4722
4725
|
}, r.always(function() {
|
|
4723
|
-
a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback,
|
|
4726
|
+
a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback, vn.push(n)), l && G(a) && a(l[0]), l = a = void 0;
|
|
4724
4727
|
}), "script";
|
|
4725
4728
|
}), V.createHTMLDocument = (function() {
|
|
4726
4729
|
var t = U.implementation.createHTMLDocument("").body;
|
|
@@ -4827,7 +4830,7 @@ function yo() {
|
|
|
4827
4830
|
}, t, n, arguments.length);
|
|
4828
4831
|
};
|
|
4829
4832
|
}), o.each(["top", "left"], function(t, i) {
|
|
4830
|
-
o.cssHooks[i] =
|
|
4833
|
+
o.cssHooks[i] = Jr(
|
|
4831
4834
|
V.pixelPosition,
|
|
4832
4835
|
function(r, n) {
|
|
4833
4836
|
if (n)
|
|
@@ -4895,7 +4898,7 @@ function yo() {
|
|
|
4895
4898
|
};
|
|
4896
4899
|
}
|
|
4897
4900
|
);
|
|
4898
|
-
var
|
|
4901
|
+
var Ko = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
|
|
4899
4902
|
o.proxy = function(t, i) {
|
|
4900
4903
|
var r, n, a;
|
|
4901
4904
|
if (typeof i == "string" && (r = t[i], i = t, t = r), !!G(t))
|
|
@@ -4911,22 +4914,22 @@ function yo() {
|
|
|
4911
4914
|
// subtraction forces infinities to NaN
|
|
4912
4915
|
!isNaN(t - parseFloat(t));
|
|
4913
4916
|
}, o.trim = function(t) {
|
|
4914
|
-
return t == null ? "" : (t + "").replace(
|
|
4917
|
+
return t == null ? "" : (t + "").replace(Ko, "$1");
|
|
4915
4918
|
};
|
|
4916
|
-
var
|
|
4919
|
+
var Jo = c.jQuery, Qo = c.$;
|
|
4917
4920
|
return o.noConflict = function(t) {
|
|
4918
|
-
return c.$ === o && (c.$ =
|
|
4921
|
+
return c.$ === o && (c.$ = Qo), t && c.jQuery === o && (c.jQuery = Jo), o;
|
|
4919
4922
|
}, typeof d > "u" && (c.jQuery = c.$ = o), o;
|
|
4920
4923
|
});
|
|
4921
4924
|
})(Pi)), Pi.exports;
|
|
4922
4925
|
}
|
|
4923
|
-
var
|
|
4924
|
-
const Qt = /* @__PURE__ */
|
|
4925
|
-
var xr = { exports: {} },
|
|
4926
|
-
function
|
|
4927
|
-
return
|
|
4926
|
+
var Qs = bo();
|
|
4927
|
+
const Qt = /* @__PURE__ */ Ks(Qs);
|
|
4928
|
+
var xr = { exports: {} }, An;
|
|
4929
|
+
function ea() {
|
|
4930
|
+
return An || (An = 1, (function(s, c) {
|
|
4928
4931
|
(function(d) {
|
|
4929
|
-
s.exports = d(
|
|
4932
|
+
s.exports = d(bo());
|
|
4930
4933
|
})(function(d) {
|
|
4931
4934
|
var h = !1, T = !1, L = 0, z = 2e3, D = 0, k = d, q = document, _ = window, ye = k(_), Q = [];
|
|
4932
4935
|
function _e() {
|
|
@@ -6429,15 +6432,15 @@ function Qs() {
|
|
|
6429
6432
|
});
|
|
6430
6433
|
})(xr)), xr.exports;
|
|
6431
6434
|
}
|
|
6432
|
-
|
|
6433
|
-
const
|
|
6434
|
-
function
|
|
6435
|
+
ea();
|
|
6436
|
+
const Yr = ".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";
|
|
6437
|
+
function Aa(s, c) {
|
|
6435
6438
|
if (s.classList.contains("cover"))
|
|
6436
6439
|
return;
|
|
6437
|
-
const d =
|
|
6440
|
+
const d = Wr(s);
|
|
6438
6441
|
if ("IntersectionObserver" in window) {
|
|
6439
6442
|
let h = [], T = 0, L = 0;
|
|
6440
|
-
Qt(s).find(
|
|
6443
|
+
Qt(s).find(Yr).each((z, D) => {
|
|
6441
6444
|
const k = D.firstElementChild, q = D.lastElementChild;
|
|
6442
6445
|
if (!k || !q)
|
|
6443
6446
|
return;
|
|
@@ -6461,7 +6464,7 @@ function Ca(s, c) {
|
|
|
6461
6464
|
));
|
|
6462
6465
|
}
|
|
6463
6466
|
}
|
|
6464
|
-
const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } =
|
|
6467
|
+
const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } = wo(_, D), G = new IntersectionObserver(
|
|
6465
6468
|
(Ee, U) => {
|
|
6466
6469
|
Ee.forEach((pe) => {
|
|
6467
6470
|
if (L++, U.unobserve(pe.target), !pe.target.parentElement)
|
|
@@ -6516,7 +6519,7 @@ function Ca(s, c) {
|
|
|
6516
6519
|
cursoropacitymax: 0.1,
|
|
6517
6520
|
cursorborderradius: V
|
|
6518
6521
|
// Make the corner more rounded than the 5px default.
|
|
6519
|
-
}),
|
|
6522
|
+
}), ia(
|
|
6520
6523
|
s,
|
|
6521
6524
|
c
|
|
6522
6525
|
), h = []);
|
|
@@ -6528,7 +6531,7 @@ function Ca(s, c) {
|
|
|
6528
6531
|
});
|
|
6529
6532
|
}
|
|
6530
6533
|
}
|
|
6531
|
-
function
|
|
6534
|
+
function ta(s) {
|
|
6532
6535
|
for (var c = s && s.parentNode ? s.parentNode : null; c && c.nodeType === Node.ELEMENT_NODE && !/^BODY|HTML/.test(c.nodeName); ) {
|
|
6533
6536
|
const d = window.getComputedStyle(c), h = d.getPropertyValue("position");
|
|
6534
6537
|
if (/fixed|absolute/.test(h)) return c;
|
|
@@ -6538,13 +6541,13 @@ function ea(s) {
|
|
|
6538
6541
|
}
|
|
6539
6542
|
return null;
|
|
6540
6543
|
}
|
|
6541
|
-
function
|
|
6544
|
+
function wo(s, c) {
|
|
6542
6545
|
let d = 0, h = 0, T = "12px";
|
|
6543
6546
|
if (s !== 1) {
|
|
6544
6547
|
const L = c.parentElement;
|
|
6545
6548
|
if (!L || !L.classList.contains("bloom-translationGroup"))
|
|
6546
6549
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6547
|
-
if (
|
|
6550
|
+
if (ta(c)) {
|
|
6548
6551
|
const D = window.getComputedStyle(L), k = D.getPropertyValue("padding-top") || "0", q = D.getPropertyValue("padding-left") || "0";
|
|
6549
6552
|
d = parseFloat(k) * (s - 1), h = parseFloat(q) * (s - 1);
|
|
6550
6553
|
} else {
|
|
@@ -6558,13 +6561,13 @@ function bo(s, c) {
|
|
|
6558
6561
|
}
|
|
6559
6562
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6560
6563
|
}
|
|
6561
|
-
function
|
|
6564
|
+
function ia(s, c) {
|
|
6562
6565
|
if (s.removeEventListener(
|
|
6563
6566
|
"pointerdown",
|
|
6564
|
-
|
|
6567
|
+
kn
|
|
6565
6568
|
), s.addEventListener(
|
|
6566
6569
|
"pointerdown",
|
|
6567
|
-
|
|
6570
|
+
kn
|
|
6568
6571
|
), !!c)
|
|
6569
6572
|
for (const d of ["pointermove", "pointerup"])
|
|
6570
6573
|
s.ownerDocument.body.addEventListener(
|
|
@@ -6575,22 +6578,22 @@ function ta(s, c) {
|
|
|
6575
6578
|
}
|
|
6576
6579
|
);
|
|
6577
6580
|
}
|
|
6578
|
-
function
|
|
6579
|
-
s.querySelectorAll(
|
|
6581
|
+
function ka(s, c) {
|
|
6582
|
+
s.querySelectorAll(Yr).forEach(
|
|
6580
6583
|
(d) => {
|
|
6581
6584
|
const h = Qt(d).getNiceScroll();
|
|
6582
6585
|
if (h && h.length > 0) {
|
|
6583
|
-
let { topAdjust: T, leftAdjust: L, thumbWidth: z } =
|
|
6586
|
+
let { topAdjust: T, leftAdjust: L, thumbWidth: z } = wo(c, d);
|
|
6584
6587
|
h[0].opt.railoffset.top = -T, h[0].opt.railoffset.left = -L, h[0].opt.cursorwidth = z, h[0].resize();
|
|
6585
6588
|
}
|
|
6586
6589
|
}
|
|
6587
6590
|
);
|
|
6588
6591
|
}
|
|
6589
|
-
function
|
|
6592
|
+
function kn(s) {
|
|
6590
6593
|
s.target instanceof HTMLDivElement && s.target.classList.contains("nicescroll-cursors") && (s.target.setPointerCapture(s.pointerId), s.pointerType === "mouse" && s.stopPropagation());
|
|
6591
6594
|
}
|
|
6592
|
-
function
|
|
6593
|
-
Qt("div.bloom-page")[0]?.querySelectorAll(
|
|
6595
|
+
function La() {
|
|
6596
|
+
Qt("div.bloom-page")[0]?.querySelectorAll(Yr).forEach((s) => {
|
|
6594
6597
|
const c = Qt(
|
|
6595
6598
|
s
|
|
6596
6599
|
).getNiceScroll();
|
|
@@ -6607,7 +6610,7 @@ function ka() {
|
|
|
6607
6610
|
), d.classList.add("bloom-vertical-align-bottom")), s.style.overflow = "", s.style.outline = "", s.style.width = "");
|
|
6608
6611
|
});
|
|
6609
6612
|
}
|
|
6610
|
-
class
|
|
6613
|
+
class ra {
|
|
6611
6614
|
static getActualUrlFromCSSPropertyValue(c) {
|
|
6612
6615
|
const d = c.match(/.*url\((['"])(.*?)\1\).*/i);
|
|
6613
6616
|
return d ? d[2] : "";
|
|
@@ -6712,7 +6715,7 @@ const gt = class gt {
|
|
|
6712
6715
|
const h = gt.getAnimationCanvas(c);
|
|
6713
6716
|
if (this.animationEngine && this.animationEngine.endAnimation(), h) {
|
|
6714
6717
|
const T = h.getAttribute("data-initialrect"), L = h.getAttribute("data-finalrect");
|
|
6715
|
-
this.animationEngine = new
|
|
6718
|
+
this.animationEngine = new na(
|
|
6716
6719
|
T,
|
|
6717
6720
|
L,
|
|
6718
6721
|
this.animationDuration,
|
|
@@ -6738,7 +6741,7 @@ const gt = class gt {
|
|
|
6738
6741
|
"data-aspectRatio",
|
|
6739
6742
|
(z.naturalWidth / z.naturalHeight).toString()
|
|
6740
6743
|
), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
|
|
6741
|
-
}), z.src =
|
|
6744
|
+
}), z.src = ra.getActualUrlFromCSSPropertyValue(
|
|
6742
6745
|
h.style.backgroundImage
|
|
6743
6746
|
);
|
|
6744
6747
|
} else
|
|
@@ -6822,8 +6825,8 @@ const gt = class gt {
|
|
|
6822
6825
|
}
|
|
6823
6826
|
};
|
|
6824
6827
|
gt.wrapperClassName = "bloom-ui-animationWrapper";
|
|
6825
|
-
let
|
|
6826
|
-
class
|
|
6828
|
+
let Ln = gt;
|
|
6829
|
+
class na {
|
|
6827
6830
|
//initial and final rect strings come in as space-separated "left top width height"
|
|
6828
6831
|
// all four of these parameters are reperesented as fractions of the canvas
|
|
6829
6832
|
//duration is the length of the animation in seconds
|
|
@@ -6878,81 +6881,81 @@ class ra {
|
|
|
6878
6881
|
}
|
|
6879
6882
|
}
|
|
6880
6883
|
export {
|
|
6881
|
-
|
|
6882
|
-
|
|
6884
|
+
Ln as Animation,
|
|
6885
|
+
Wr as IsRunningOnBloomDesktop,
|
|
6883
6886
|
mi as LiteEvent,
|
|
6884
6887
|
Ii as PageNarrationComplete,
|
|
6885
6888
|
Er as PlayCompleted,
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
+
xn as PlayFailed,
|
|
6890
|
+
ua as PlayUnblocked,
|
|
6891
|
+
as as PlaybackMode,
|
|
6889
6892
|
Hi as ToggleImageDescription,
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6893
|
+
na as TransformBasedAnimator,
|
|
6894
|
+
da as abortNarrationPlayback,
|
|
6895
|
+
Aa as addScrollbarsToPage,
|
|
6896
|
+
qs as adjustDraggablesForLanguage,
|
|
6897
|
+
qr as cancelVideoFirstFramePriming,
|
|
6895
6898
|
jt as classSetter,
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6899
|
+
Fs as cleanupActivitySounds,
|
|
6900
|
+
La as cleanupNiceScroll,
|
|
6901
|
+
ma as computeDuration,
|
|
6902
|
+
Gs as copyContentToTarget,
|
|
6900
6903
|
Un as currentAudioUrl,
|
|
6901
6904
|
ei as currentPlaybackMode,
|
|
6902
|
-
|
|
6903
|
-
|
|
6905
|
+
yo as doShowAnswersInTargets,
|
|
6906
|
+
Ea as draggingSlider,
|
|
6904
6907
|
Tr as durationReporter,
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6908
|
+
ka as fixNiceScrollOffsets,
|
|
6909
|
+
js as getAudioSentencesOfVisibleEditables,
|
|
6910
|
+
hs as getCurrentNarrationPage,
|
|
6911
|
+
Es as getNarrationFileName,
|
|
6912
|
+
Xr as getTarget,
|
|
6913
|
+
Dn as getUrlPrefixFromWindowHref,
|
|
6911
6914
|
Ri as hideVideoAutoplayBlockedHint,
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6915
|
+
Os as hideVideoError,
|
|
6916
|
+
va as hidingPage,
|
|
6917
|
+
Is as isDefiniteVideoPlaybackSupportFailure,
|
|
6918
|
+
Nn as isSwipeInProgress,
|
|
6919
|
+
Ta as isTheTextInDraggablesTheSame,
|
|
6920
|
+
Ms as isTransientVideoPlayFailure,
|
|
6918
6921
|
Mi as kAudioSentence,
|
|
6919
|
-
|
|
6922
|
+
fs as kHighlightSegmentClass,
|
|
6920
6923
|
ji as kLegacyCanvasElementSelector,
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6924
|
+
Yr as kSelectorForPotentialNiceScrollElements,
|
|
6925
|
+
oa as listenForPlayDuration,
|
|
6926
|
+
Pn as logNarration,
|
|
6927
|
+
ha as pageHasAudio,
|
|
6928
|
+
ga as pauseNarration,
|
|
6926
6929
|
lo as performCheck,
|
|
6927
6930
|
co as performTryAgain,
|
|
6928
6931
|
gi as playAllAudio,
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6932
|
+
ps as playAllSentences,
|
|
6933
|
+
Rr as playAllVideo,
|
|
6934
|
+
Vs as playCorrectOrWrongSound,
|
|
6935
|
+
wa as playInitialElements,
|
|
6936
|
+
pa as playNarration,
|
|
6934
6937
|
Jn as playSoundOf,
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
+
_s as preloadSoundsForActivity,
|
|
6939
|
+
ya as prepareActivity,
|
|
6940
|
+
ds as setCurrentPage,
|
|
6938
6941
|
Kt as setCurrentPlaybackMode,
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6942
|
+
Sa as setDefaultSoundUrls,
|
|
6943
|
+
ca as setDurationOfPagesWithoutNarration,
|
|
6944
|
+
fa as setIncludeImageDescriptions,
|
|
6945
|
+
aa as setLogNarration,
|
|
6946
|
+
ls as setPlayerUrlPrefix,
|
|
6947
|
+
la as setPlayerUrlPrefixFromWindowLocationHref,
|
|
6948
|
+
xa as setReportScore,
|
|
6949
|
+
sa as setTestIsSwipeInProgress,
|
|
6950
|
+
ia as setupSpecialMouseTrackingForNiceScroll,
|
|
6951
|
+
Ca as setupWordChooserSlider,
|
|
6949
6952
|
Gn as showVideoAutoplayBlockedHint,
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6953
|
+
Tn as showVideoError,
|
|
6954
|
+
zs as showVideoFirstFrameWhenReady,
|
|
6955
|
+
Ws as shuffle,
|
|
6956
|
+
cs as sortAudioElements,
|
|
6957
|
+
Br as stopPlayAllVideoPlayback,
|
|
6958
|
+
ba as undoPrepareActivity,
|
|
6959
|
+
Mn as urlPrefix
|
|
6957
6960
|
};
|
|
6958
6961
|
//# sourceMappingURL=shared.es.js.map
|