bloom-player 2.20.1-alpha.5 → 2.20.1-alpha.6
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/dist/{bloomPlayer.CHWZogHU.js → bloomPlayer.Qdo1JLm9.js} +21 -21
- package/dist/bloomplayer.htm +1 -1
- package/lib/narration.d.ts +1 -0
- package/lib/shared.es.js +984 -979
- package/lib/shared.es.js.map +1 -1
- package/package.json +1 -1
- package/src/shared/dragActivityRuntime.ts +18 -3
- package/src/shared/narration.ts +116 -73
package/lib/shared.es.js
CHANGED
|
@@ -12,128 +12,128 @@ class mi {
|
|
|
12
12
|
this.handlers.slice(0).forEach((d) => d(c));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var ss = /* @__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))(ss || {});
|
|
16
16
|
let ei = 0;
|
|
17
17
|
function Kt(s) {
|
|
18
18
|
ei = s;
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
|
|
20
|
+
let Tr;
|
|
21
|
+
function ra(s) {
|
|
22
|
+
Tr = s;
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
let Pn;
|
|
25
|
+
function na(s) {
|
|
26
|
+
Pn = s;
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let Dn = () => {
|
|
29
29
|
};
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function oa(s) {
|
|
31
|
+
Dn = s ?? (() => {
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
let
|
|
35
|
-
function
|
|
36
|
-
|
|
34
|
+
let Sr = "";
|
|
35
|
+
function as(s) {
|
|
36
|
+
Sr = s;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function sa(s) {
|
|
39
|
+
as(Mn(s));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Mn(s) {
|
|
42
42
|
const c = s.lastIndexOf("/");
|
|
43
43
|
return s.substring(0, c);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function Pr() {
|
|
46
|
+
return Sr || Mn(window.location.href);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const c = s.map((d, h) => ({ tabindex:
|
|
48
|
+
function ls(s) {
|
|
49
|
+
const c = s.map((d, h) => ({ tabindex: cs(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 cs(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
|
|
59
|
-
let
|
|
60
|
-
function
|
|
61
|
-
|
|
58
|
+
const us = "bloom-highlightSegment", zn = "ui-enableHighlight", Dr = "ui-disableHighlight", yr = "ui-suppressHighlight";
|
|
59
|
+
let Di = 3;
|
|
60
|
+
function aa(s) {
|
|
61
|
+
Di = s;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const Mi = "audio-sentence", In = "bloom-imageDescription";
|
|
64
64
|
let Nt = null, di = 0;
|
|
65
|
-
function
|
|
65
|
+
function fs(s) {
|
|
66
66
|
s !== Nt && (di && clearTimeout(di), di = setTimeout(() => {
|
|
67
67
|
di = 0;
|
|
68
68
|
}, 3e3), Nt = s);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ds() {
|
|
71
71
|
return Nt;
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
const
|
|
75
|
-
let pi = 0,
|
|
76
|
-
function
|
|
77
|
-
|
|
73
|
+
let Mr, zi, Jt = "", Qe = [], Lt = [];
|
|
74
|
+
const Ii = new mi(), Er = new mi(), Tn = new mi(), la = new mi(), Hi = new mi();
|
|
75
|
+
let pi = 0, Hn = !0;
|
|
76
|
+
function ca(s) {
|
|
77
|
+
Hn = s;
|
|
78
78
|
}
|
|
79
|
-
let
|
|
80
|
-
function
|
|
79
|
+
let Oi = null;
|
|
80
|
+
function hs(s, c) {
|
|
81
81
|
if (!s && !Nt)
|
|
82
82
|
return;
|
|
83
83
|
const d = s ?? Nt;
|
|
84
|
-
gi(
|
|
84
|
+
gi(Br(d, c), d);
|
|
85
85
|
}
|
|
86
86
|
function gi(s, c) {
|
|
87
|
-
|
|
87
|
+
fs(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, ps(s), Qe = ls(s).reverse();
|
|
90
90
|
const h = Qe.length;
|
|
91
91
|
if (h === 0) {
|
|
92
|
-
|
|
92
|
+
Er && Er?.raise(c), Kt(
|
|
93
93
|
4
|
|
94
94
|
/* AudioPlaying */
|
|
95
|
-
),
|
|
95
|
+
), Ii && (Mr = window.setTimeout(() => {
|
|
96
96
|
Kt(
|
|
97
97
|
6
|
|
98
98
|
/* MediaFinished */
|
|
99
|
-
),
|
|
100
|
-
},
|
|
99
|
+
), Ii?.raise(c);
|
|
100
|
+
}, Di * 1e3));
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
const T = Qe[h - 1];
|
|
104
|
-
|
|
104
|
+
Yn(), h >= 2 && Xn(Qe[h - 2]), _n(T, !0), Kt(
|
|
105
105
|
4
|
|
106
106
|
/* AudioPlaying */
|
|
107
|
-
),
|
|
107
|
+
), Rn();
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
109
|
+
const On = /[ \u00a0\u200b]{3,}/, Ci = new RegExp(On, "g");
|
|
110
|
+
function ps(s) {
|
|
111
111
|
s.forEach((c) => {
|
|
112
|
-
|
|
112
|
+
Or(
|
|
113
113
|
"span[id]:not(.bloom-linebreak)",
|
|
114
114
|
c,
|
|
115
115
|
!0
|
|
116
116
|
).forEach((h) => {
|
|
117
|
-
|
|
117
|
+
Bn(h), h.innerText.match(On) && qn(h, h);
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
s.classList.remove(
|
|
123
|
-
|
|
121
|
+
function Bn(s) {
|
|
122
|
+
s.classList.remove(Dr), s.classList.remove(zn), Array.from(s.children).forEach((c) => {
|
|
123
|
+
Bn(c);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(
|
|
126
|
+
function qn(s, c) {
|
|
127
|
+
if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(Dr)))
|
|
128
128
|
if (s.nodeType === Node.TEXT_NODE) {
|
|
129
|
-
|
|
129
|
+
gs(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 gs(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"
|
|
@@ -154,42 +154,42 @@ function hs(s, c) {
|
|
|
154
154
|
});
|
|
155
155
|
const T = [];
|
|
156
156
|
if (d.length === 0)
|
|
157
|
-
T.push(
|
|
157
|
+
T.push(br(s.nodeValue));
|
|
158
158
|
else {
|
|
159
159
|
let z = 0;
|
|
160
160
|
for (let D = 0; D < d.length; ++D) {
|
|
161
|
-
const
|
|
161
|
+
const k = d[D], q = s.nodeValue.slice(
|
|
162
162
|
z,
|
|
163
|
-
|
|
163
|
+
k.startIndex
|
|
164
164
|
);
|
|
165
|
-
if (z =
|
|
166
|
-
const _ = s.nodeValue.slice(
|
|
167
|
-
_ && T.push(
|
|
165
|
+
if (z = k.endIndex, q && T.push(br(q)), T.push(document.createTextNode(k.text)), D === d.length - 1) {
|
|
166
|
+
const _ = s.nodeValue.slice(k.endIndex);
|
|
167
|
+
_ && T.push(br(_));
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
171
|
+
const L = s;
|
|
172
|
+
if (L.parentNode && T && T.length > 0) {
|
|
173
173
|
for (let z = 0; z < T.length; ++z) {
|
|
174
174
|
const D = T[z];
|
|
175
|
-
|
|
175
|
+
L.parentNode.insertBefore(D, L);
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
L.parentNode.removeChild(L), c.classList.add(Dr);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function br(s) {
|
|
181
181
|
const c = document.createElement("span");
|
|
182
|
-
return c.classList.add(
|
|
182
|
+
return c.classList.add(zn), c.appendChild(document.createTextNode(s)), c;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Rn() {
|
|
185
185
|
if (ei === 4) {
|
|
186
186
|
const s = Pt();
|
|
187
187
|
if (s) {
|
|
188
|
-
const c =
|
|
188
|
+
const c = ds().querySelector(
|
|
189
189
|
`#${Jt}`
|
|
190
190
|
);
|
|
191
191
|
if (!c) {
|
|
192
|
-
|
|
192
|
+
_i();
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
Lt = [];
|
|
@@ -198,12 +198,12 @@ function Bn() {
|
|
|
198
198
|
);
|
|
199
199
|
if (d) {
|
|
200
200
|
const z = c.querySelectorAll(
|
|
201
|
-
`span.${
|
|
202
|
-
), D = d.split(" "),
|
|
201
|
+
`span.${us}`
|
|
202
|
+
), D = d.split(" "), k = Math.min(
|
|
203
203
|
D.length,
|
|
204
204
|
z.length
|
|
205
205
|
);
|
|
206
|
-
for (let q =
|
|
206
|
+
for (let q = k - 1; q >= 0; --q) {
|
|
207
207
|
const _ = Number(D[q]);
|
|
208
208
|
isNaN(_) || Lt.push([
|
|
209
209
|
z.item(q),
|
|
@@ -212,36 +212,36 @@ function Bn() {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
const h = c;
|
|
215
|
-
h &&
|
|
216
|
-
|
|
217
|
-
),
|
|
215
|
+
h && Hi && Hi?.raise(
|
|
216
|
+
jn(h)
|
|
217
|
+
), Cr = !1;
|
|
218
218
|
const T = s.play();
|
|
219
|
-
++pi,
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
Qe[
|
|
223
|
-
),
|
|
219
|
+
++pi, Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
|
|
220
|
+
const L = Qe.length - 2;
|
|
221
|
+
L >= 0 && Xn(
|
|
222
|
+
Qe[L]
|
|
223
|
+
), Wn(T);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return s.closest("." +
|
|
227
|
+
function jn(s) {
|
|
228
|
+
return s.closest("." + In) !== null;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Wn(s, c) {
|
|
231
231
|
s && s.catch && s.catch((d) => {
|
|
232
232
|
console.log("could not play sound: " + d + " " + "unknown"), d && d.toString().includes(
|
|
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" && Tn && Tn?.raise();
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function zr(s, c = 0) {
|
|
240
240
|
const d = Lt.length;
|
|
241
241
|
if (d <= 0)
|
|
242
242
|
return;
|
|
243
|
-
const h = Lt[d - 1], T = h[0],
|
|
244
|
-
|
|
243
|
+
const h = Lt[d - 1], T = h[0], L = h[1];
|
|
244
|
+
Vn({
|
|
245
245
|
newElement: T,
|
|
246
246
|
shouldScrollToElement: !0,
|
|
247
247
|
disableHighlightIfNoAudio: !1
|
|
@@ -250,12 +250,12 @@ function Mr(s, c = 0) {
|
|
|
250
250
|
"bloom-audio-player"
|
|
251
251
|
).currentTime;
|
|
252
252
|
D <= 0 && (D = c);
|
|
253
|
-
const
|
|
253
|
+
const k = Math.max(L - D, 0.1);
|
|
254
254
|
setTimeout(() => {
|
|
255
|
-
|
|
256
|
-
},
|
|
255
|
+
Fn(s);
|
|
256
|
+
}, k * 1e3);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Fn(s) {
|
|
259
259
|
if (s !== pi || ei === 5)
|
|
260
260
|
return;
|
|
261
261
|
const c = Lt.length;
|
|
@@ -266,17 +266,17 @@ function jn(s) {
|
|
|
266
266
|
);
|
|
267
267
|
if (d.ended || d.error)
|
|
268
268
|
return;
|
|
269
|
-
const h = d.currentTime,
|
|
270
|
-
if (h && h <
|
|
271
|
-
const z =
|
|
269
|
+
const h = d.currentTime, L = Lt[c - 1][1];
|
|
270
|
+
if (h && h < L) {
|
|
271
|
+
const z = L - h;
|
|
272
272
|
setTimeout(() => {
|
|
273
|
-
|
|
273
|
+
Fn(s);
|
|
274
274
|
}, z * 1e3);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
Lt.pop(),
|
|
277
|
+
Lt.pop(), zr(s, L);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Ir(s = document.body) {
|
|
280
280
|
const c = Array.from(
|
|
281
281
|
s.ownerDocument.getElementsByClassName("ui-audioCurrent")
|
|
282
282
|
);
|
|
@@ -285,8 +285,8 @@ function zr(s = document.body) {
|
|
|
285
285
|
const d = s.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];
|
|
286
286
|
d && d.classList.remove("ui-audioCurrentImg");
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
288
|
+
function _n(s, c, d) {
|
|
289
|
+
ys(s), Vn({
|
|
290
290
|
newElement: s,
|
|
291
291
|
shouldScrollToElement: !0,
|
|
292
292
|
// Always true in bloom-player version
|
|
@@ -294,49 +294,49 @@ function Wn(s, c, d) {
|
|
|
294
294
|
oldElement: d
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Vn({
|
|
298
298
|
newElement: s,
|
|
299
299
|
shouldScrollToElement: c,
|
|
300
300
|
disableHighlightIfNoAudio: d,
|
|
301
301
|
oldElement: h
|
|
302
302
|
}) {
|
|
303
303
|
try {
|
|
304
|
-
|
|
304
|
+
ms(s);
|
|
305
305
|
} catch (D) {
|
|
306
306
|
console.error(D);
|
|
307
307
|
}
|
|
308
308
|
if (h === s)
|
|
309
309
|
return;
|
|
310
|
-
|
|
311
|
-
const T = Pt(),
|
|
312
|
-
!
|
|
310
|
+
Ir(h || s);
|
|
311
|
+
const T = Pt(), L = T.error !== null;
|
|
312
|
+
!L && d && (!T.paused && !T.ended || (s.classList.add(yr), Ai && T.removeEventListener(
|
|
313
313
|
"playing",
|
|
314
314
|
Ai
|
|
315
315
|
), ki && T.removeEventListener(
|
|
316
316
|
"error",
|
|
317
317
|
ki
|
|
318
318
|
), Ai = () => {
|
|
319
|
-
s.classList.remove(
|
|
319
|
+
s.classList.remove(yr);
|
|
320
320
|
}, ki = () => {
|
|
321
|
-
s.classList.remove("ui-audioCurrent"), s.classList.remove(
|
|
321
|
+
s.classList.remove("ui-audioCurrent"), s.classList.remove(yr);
|
|
322
322
|
}, T.addEventListener(
|
|
323
323
|
"playing",
|
|
324
324
|
Ai
|
|
325
325
|
), T.addEventListener(
|
|
326
326
|
"error",
|
|
327
327
|
ki
|
|
328
|
-
))),
|
|
328
|
+
))), L || s.classList.add("ui-audioCurrent");
|
|
329
329
|
const z = s.closest(".bloom-translationGroup");
|
|
330
|
-
if (z && z.classList.contains(
|
|
330
|
+
if (z && z.classList.contains(In)) {
|
|
331
331
|
const D = z.closest(
|
|
332
332
|
".bloom-imageContainer, .bloom-canvas"
|
|
333
333
|
);
|
|
334
334
|
D && D.classList.add("ui-audioCurrentImg");
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
if (
|
|
339
|
-
const d =
|
|
337
|
+
function ms(s) {
|
|
338
|
+
if (Pn?.() || di) {
|
|
339
|
+
const d = vs(s);
|
|
340
340
|
d && (d.scrollTop = 0);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
@@ -344,7 +344,7 @@ function ps(s) {
|
|
|
344
344
|
if (window.getComputedStyle(s.parentElement).position !== "static") {
|
|
345
345
|
const d = s;
|
|
346
346
|
c = document.createElement("div"), c.style.position = "absolute", c.style.top = d.offsetTop + "px";
|
|
347
|
-
const h = d.getBoundingClientRect(), T = d.parentElement,
|
|
347
|
+
const h = d.getBoundingClientRect(), T = d.parentElement, L = T?.getBoundingClientRect(), z = L.width / T.offsetWidth, D = (h.left - L.left) / z;
|
|
348
348
|
c.style.left = D + d.offsetWidth / 2 + "px", c.style.height = d.offsetHeight + "px", c.style.width = "0", s.parentElement?.insertBefore(c, s);
|
|
349
349
|
}
|
|
350
350
|
c.scrollIntoView({
|
|
@@ -359,24 +359,24 @@ function ps(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 vs(s) {
|
|
363
363
|
return s.classList.contains("bloom-editable") ? s : s.closest(".bloom-editable");
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
const c =
|
|
367
|
-
|
|
365
|
+
function ys(s) {
|
|
366
|
+
const c = $n(s), d = c ? c.id : s.id;
|
|
367
|
+
ws(d);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
const c =
|
|
369
|
+
function $n(s) {
|
|
370
|
+
const c = bs(s);
|
|
371
371
|
return !c || c.length === 0 ? null : c[0];
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function bs(s) {
|
|
374
374
|
const c = [];
|
|
375
375
|
if (s)
|
|
376
|
-
if (s.classList.contains(
|
|
376
|
+
if (s.classList.contains(Mi))
|
|
377
377
|
c.push(s);
|
|
378
378
|
else {
|
|
379
|
-
const d = s.getElementsByClassName(
|
|
379
|
+
const d = s.getElementsByClassName(Mi);
|
|
380
380
|
for (let h = 0; h < d.length; ++h) {
|
|
381
381
|
const T = d.item(h);
|
|
382
382
|
T && c.push(T);
|
|
@@ -384,200 +384,199 @@ function vs(s) {
|
|
|
384
384
|
}
|
|
385
385
|
return c;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
(!Jt || Jt !== s) && (Jt = s,
|
|
387
|
+
function ws(s) {
|
|
388
|
+
(!Jt || Jt !== s) && (Jt = s, Ts());
|
|
389
389
|
}
|
|
390
|
-
let
|
|
391
|
-
function
|
|
390
|
+
let Bi = "", qi = "", Ai = null, ki = null;
|
|
391
|
+
function xs() {
|
|
392
392
|
let s = document.getElementById(
|
|
393
393
|
"bloom-audio-preload"
|
|
394
394
|
);
|
|
395
395
|
return s || (s = document.createElement("audio"), s.id = "bloom-audio-preload", document.body.appendChild(s)), s;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
const c =
|
|
399
|
-
if (
|
|
400
|
-
const h =
|
|
401
|
-
|
|
402
|
-
const T =
|
|
397
|
+
function Xn(s) {
|
|
398
|
+
const c = $n(s), d = c ? c.id : s.id;
|
|
399
|
+
if (Bi === d) return;
|
|
400
|
+
const h = Un(d) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
|
|
401
|
+
Bi = d, qi = h;
|
|
402
|
+
const T = xs();
|
|
403
403
|
T.src = h, T.load();
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
405
|
+
function Yn() {
|
|
406
|
+
Bi = "", qi = "";
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ts() {
|
|
409
409
|
const s = Pt();
|
|
410
410
|
if (!s)
|
|
411
411
|
return;
|
|
412
|
-
s.currentTime > 0 && !s.paused && !s.ended &&
|
|
413
|
-
const c =
|
|
414
|
-
|
|
412
|
+
s.currentTime > 0 && !s.paused && !s.ended && Hr();
|
|
413
|
+
const c = Un(Jt);
|
|
414
|
+
Dn(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
|
|
419
|
-
return
|
|
418
|
+
function Un(s) {
|
|
419
|
+
return Pr() + "/audio/" + s + ".mp3";
|
|
420
420
|
}
|
|
421
421
|
function Pt() {
|
|
422
|
-
return
|
|
423
|
-
c.addEventListener("ended",
|
|
422
|
+
return Cs("bloom-audio-player", (c) => {
|
|
423
|
+
c.addEventListener("ended", Ss), c.addEventListener("error", As);
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
|
|
426
|
+
function Ss() {
|
|
427
|
+
_i();
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
ei === 4 &&
|
|
429
|
+
function ua() {
|
|
430
|
+
ei === 4 && _i(!1);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
if (
|
|
432
|
+
function _i(s = !0) {
|
|
433
|
+
if (Hi && Hi?.raise(!1), Hr(), Qe && Qe.length > 0) {
|
|
434
434
|
const c = Qe.pop(), d = Qe.length;
|
|
435
435
|
if (d > 0 && s) {
|
|
436
436
|
const h = Qe[d - 1];
|
|
437
|
-
|
|
437
|
+
_n(h, !0), Rn();
|
|
438
438
|
} else
|
|
439
|
-
|
|
439
|
+
Es(), Ir(c), Pt().pause();
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
Qe = [], Lt = [],
|
|
442
|
+
function Es() {
|
|
443
|
+
Qe = [], Lt = [], Ir(), Ii?.raise(Nt), Er?.raise();
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
if (!
|
|
445
|
+
function Hr() {
|
|
446
|
+
if (!Oi || !Tr)
|
|
447
447
|
return;
|
|
448
|
-
const c = ((/* @__PURE__ */ new Date()).getTime() -
|
|
449
|
-
|
|
448
|
+
const c = ((/* @__PURE__ */ new Date()).getTime() - Oi) / 1e3;
|
|
449
|
+
Tr(c);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Cs(s, c) {
|
|
452
452
|
let d = document.querySelector(
|
|
453
453
|
"#" + s
|
|
454
454
|
);
|
|
455
455
|
return d && !d.play && (d.remove(), d = null), d || (d = document.createElement("audio"), d.setAttribute("id", s), document.body.appendChild(d), c(d)), d;
|
|
456
456
|
}
|
|
457
|
-
let
|
|
458
|
-
function
|
|
459
|
-
if (
|
|
457
|
+
let Cr = !1;
|
|
458
|
+
function As() {
|
|
459
|
+
if (Cr) {
|
|
460
460
|
console.log("Already got error playing, not handling again");
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
Cr = !0, console.log("Error playing, handling"), setTimeout(() => {
|
|
464
|
+
_i();
|
|
465
465
|
}, 100);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Or(s, c, d = !1) {
|
|
468
468
|
const h = [].slice.call(
|
|
469
469
|
(c || document).querySelectorAll(s)
|
|
470
470
|
);
|
|
471
|
-
return d && c && c.matches(s) && h.push(c),
|
|
471
|
+
return d && c && c.matches(s) && h.push(c), Hn ? h : h.filter((T) => !jn(T));
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
var d =
|
|
473
|
+
function ks(s, c) {
|
|
474
|
+
var d = Or(".bloom-editable", s).filter(
|
|
475
475
|
(h) => window.getComputedStyle(h).display !== "none"
|
|
476
476
|
);
|
|
477
477
|
return c && (d = d.filter((h) => !c.contains(h))), d;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Ls(s, c) {
|
|
480
|
+
return ks(s || Nt, c);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Br(s, c) {
|
|
483
483
|
return [].concat.apply(
|
|
484
484
|
[],
|
|
485
|
-
|
|
486
|
-
(d) =>
|
|
485
|
+
Ls(s, c).map(
|
|
486
|
+
(d) => Or(".audio-sentence", d, !0)
|
|
487
487
|
)
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return !!
|
|
490
|
+
function fa(s) {
|
|
491
|
+
return !!Br(s).length;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function da() {
|
|
494
494
|
if (ei !== 4) {
|
|
495
495
|
if (Kt(
|
|
496
496
|
4
|
|
497
497
|
/* AudioPlaying */
|
|
498
|
-
),
|
|
498
|
+
), zi.length && Pt())
|
|
499
499
|
if (Qe.length) {
|
|
500
|
-
|
|
500
|
+
Wn(Pt().play()), Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
|
|
501
501
|
return;
|
|
502
502
|
} else {
|
|
503
|
-
|
|
503
|
+
hs(null);
|
|
504
504
|
return;
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
Ii?.raise(Nt);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
ei !== 5 && (
|
|
509
|
+
function ha() {
|
|
510
|
+
ei !== 5 && (Ns(), Kt(
|
|
511
511
|
5
|
|
512
512
|
/* AudioPaused */
|
|
513
513
|
));
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ns() {
|
|
516
516
|
const s = Pt();
|
|
517
|
-
clearTimeout(
|
|
517
|
+
clearTimeout(Mr), zi && zi.length && s && (s.currentTime > 0 && !s.paused && !s.ended && Hr(), s.pause());
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function pa(s) {
|
|
520
520
|
let c = 0;
|
|
521
|
-
return
|
|
521
|
+
return Br(s).forEach((d) => {
|
|
522
522
|
const h = d.getAttribute("data-duration");
|
|
523
523
|
h && (c += parseFloat(h));
|
|
524
|
-
}), c <
|
|
524
|
+
}), c < Di && (c = Di), c;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
clearTimeout(
|
|
526
|
+
function ga() {
|
|
527
|
+
clearTimeout(Mr), qr();
|
|
528
528
|
}
|
|
529
529
|
let Gt = 0, Zt;
|
|
530
530
|
const fi = /* @__PURE__ */ new WeakMap();
|
|
531
|
-
function
|
|
531
|
+
function qr() {
|
|
532
532
|
Gt++, Zt && (Zt.pause(), Zt.currentTime = 0, Zt = void 0);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Ps(s) {
|
|
535
535
|
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;
|
|
536
536
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
537
|
+
const Li = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
function Rr(s) {
|
|
539
|
+
Li.get(s)?.();
|
|
540
|
+
}
|
|
541
|
+
function Ds(s, c = () => !0, d = () => Gn(s)) {
|
|
542
|
+
if (!s.paused)
|
|
543
|
+
return;
|
|
544
|
+
Rr(s);
|
|
545
|
+
const h = s.muted;
|
|
546
|
+
let T, L = !1;
|
|
547
|
+
const z = () => {
|
|
548
|
+
L || (L = !0, Li.get(s) === D && Li.delete(s), window.clearTimeout(T), s.removeEventListener("playing", k), s.muted = h);
|
|
549
|
+
}, D = () => {
|
|
550
|
+
z(), s.removeAttribute("poster");
|
|
551
|
+
};
|
|
552
|
+
Li.set(s, D);
|
|
553
|
+
const k = () => {
|
|
554
|
+
if (Ri(s), !c()) {
|
|
555
|
+
z(), s.removeAttribute("poster");
|
|
541
556
|
return;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
L();
|
|
552
|
-
}, 4);
|
|
553
|
-
};
|
|
554
|
-
s.addEventListener("playing", A, { once: !0 });
|
|
555
|
-
const z = window.setTimeout(() => {
|
|
556
|
-
s.removeEventListener("playing", A);
|
|
557
|
-
}, 1e3);
|
|
558
|
-
qi(s);
|
|
559
|
-
const D = s.play();
|
|
560
|
-
D && D.catch && D.catch((L) => {
|
|
561
|
-
window.clearTimeout(z), s.removeEventListener("playing", A), L?.name === "NotAllowedError" && (s.removeAttribute("poster"), d());
|
|
562
|
-
});
|
|
557
|
+
}
|
|
558
|
+
const _ = () => {
|
|
559
|
+
L || (c() && s.pause(), z(), s.removeAttribute("poster"));
|
|
560
|
+
}, ye = s.requestVideoFrameCallback;
|
|
561
|
+
ye ? ye.call(s, () => {
|
|
562
|
+
_();
|
|
563
|
+
}) : setTimeout(() => {
|
|
564
|
+
_();
|
|
565
|
+
}, 4);
|
|
563
566
|
};
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
A = () => {
|
|
572
|
-
h = !0, s.removeEventListener("loadeddata", z), s.removeEventListener("play", A);
|
|
573
|
-
}, s.addEventListener("play", A, { once: !0 }), s.addEventListener("loadeddata", z, { once: !0 });
|
|
574
|
-
}
|
|
567
|
+
s.addEventListener("playing", k, { once: !0 }), T = window.setTimeout(() => {
|
|
568
|
+
c() && !s.paused && s.pause(), z(), s.removeAttribute("poster");
|
|
569
|
+
}, 3e3), Ri(s), s.muted = !0;
|
|
570
|
+
const q = s.play();
|
|
571
|
+
q && q.catch && q.catch((_) => {
|
|
572
|
+
z(), _?.name === "NotAllowedError" && (s.removeAttribute("poster"), d());
|
|
573
|
+
});
|
|
575
574
|
}
|
|
576
|
-
function
|
|
575
|
+
function jr(s, c) {
|
|
577
576
|
const d = ++Gt;
|
|
578
577
|
hi(s, c, d);
|
|
579
578
|
}
|
|
580
|
-
function
|
|
579
|
+
function Ms(s, c) {
|
|
581
580
|
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;
|
|
582
581
|
}
|
|
583
582
|
function hi(s, c, d) {
|
|
@@ -588,17 +587,17 @@ function hi(s, c, d) {
|
|
|
588
587
|
return;
|
|
589
588
|
}
|
|
590
589
|
const h = s[0];
|
|
591
|
-
if (Zt = h,
|
|
592
|
-
fi.delete(h),
|
|
590
|
+
if (Zt = h, Ms(h))
|
|
591
|
+
fi.delete(h), Sn(h), hi(s.slice(1), c, d);
|
|
593
592
|
else {
|
|
594
|
-
|
|
593
|
+
Is(h), Ri(h), Kt(
|
|
595
594
|
2
|
|
596
595
|
/* VideoPlaying */
|
|
597
|
-
), h.currentTime = 0;
|
|
598
|
-
let T = !1,
|
|
596
|
+
), Rr(h), h.currentTime = 0;
|
|
597
|
+
let T = !1, L;
|
|
599
598
|
const z = 250, D = () => {
|
|
600
|
-
|
|
601
|
-
},
|
|
599
|
+
L !== void 0 && (window.clearTimeout(L), L = void 0);
|
|
600
|
+
}, k = () => {
|
|
602
601
|
const V = h.duration;
|
|
603
602
|
if (!Number.isFinite(V) || V <= 0)
|
|
604
603
|
return;
|
|
@@ -607,78 +606,78 @@ function hi(s, c, d) {
|
|
|
607
606
|
V * 1e3 / G + z,
|
|
608
607
|
z
|
|
609
608
|
);
|
|
610
|
-
|
|
609
|
+
L = window.setTimeout(() => {
|
|
611
610
|
q();
|
|
612
611
|
}, Ee);
|
|
613
612
|
}, q = () => {
|
|
614
|
-
T || (T = !0, D(), h.removeEventListener("ended", _), h.removeEventListener("pause",
|
|
613
|
+
T || (T = !0, D(), h.removeEventListener("ended", _), h.removeEventListener("pause", ye), h.removeEventListener("loadedmetadata", Q), d === Gt && hi(s.slice(1), c, d));
|
|
615
614
|
}, _ = () => {
|
|
616
615
|
q();
|
|
617
|
-
},
|
|
616
|
+
}, ye = () => {
|
|
618
617
|
const V = h.duration;
|
|
619
618
|
!Number.isFinite(V) || V <= 0 || h.currentTime >= V - 0.05 && q();
|
|
620
619
|
}, Q = () => {
|
|
621
|
-
|
|
620
|
+
k();
|
|
622
621
|
};
|
|
623
|
-
h.addEventListener("ended", _, { once: !0 }), h.addEventListener("pause",
|
|
624
|
-
d === Gt && (fi.delete(h),
|
|
622
|
+
h.addEventListener("ended", _, { once: !0 }), h.addEventListener("pause", ye), h.addEventListener("loadedmetadata", Q), h.play().then(() => {
|
|
623
|
+
d === Gt && (fi.delete(h), Ri(h), k());
|
|
625
624
|
}).catch((V) => {
|
|
626
625
|
if (d !== Gt)
|
|
627
626
|
return;
|
|
628
|
-
if (D(), h.removeEventListener("ended", _), h.removeEventListener("pause",
|
|
627
|
+
if (D(), h.removeEventListener("ended", _), h.removeEventListener("pause", ye), h.removeEventListener("loadedmetadata", Q), V?.name === "NotAllowedError") {
|
|
629
628
|
console.debug(
|
|
630
629
|
"Video autoplay blocked until user interaction"
|
|
631
|
-
),
|
|
630
|
+
), Gn(h);
|
|
632
631
|
return;
|
|
633
632
|
}
|
|
634
633
|
const G = fi.get(h) ?? 0;
|
|
635
|
-
if (
|
|
634
|
+
if (Ps(V) && G < 2) {
|
|
636
635
|
fi.set(h, G + 1), window.setTimeout(() => {
|
|
637
636
|
hi(s, c, d);
|
|
638
637
|
}, 50);
|
|
639
638
|
return;
|
|
640
639
|
}
|
|
641
|
-
console.error("Video play failed", V), fi.delete(h),
|
|
640
|
+
console.error("Video play failed", V), fi.delete(h), Sn(h), hi(s.slice(1), c, d);
|
|
642
641
|
});
|
|
643
642
|
}
|
|
644
643
|
}
|
|
645
|
-
const
|
|
646
|
-
function
|
|
644
|
+
const zs = "Sorry, this video cannot be played in this browser.";
|
|
645
|
+
function Sn(s) {
|
|
647
646
|
const c = s.parentElement;
|
|
648
647
|
if (c && c.getElementsByClassName("video-error-message").length === 0) {
|
|
649
648
|
const h = c.ownerDocument.createElement("div");
|
|
650
|
-
h.className = "video-error-message normal-style", h.textContent =
|
|
649
|
+
h.className = "video-error-message normal-style", h.textContent = zs, 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);
|
|
651
650
|
}
|
|
652
651
|
}
|
|
653
|
-
function
|
|
652
|
+
function Gn(s) {
|
|
654
653
|
(s.closest(".bloom-videoContainer") || s.parentElement)?.classList.add("autoplayBlocked");
|
|
655
654
|
}
|
|
656
|
-
function
|
|
655
|
+
function Ri(s) {
|
|
657
656
|
(s.closest(".bloom-videoContainer") || s.parentElement)?.classList.remove("autoplayBlocked");
|
|
658
657
|
}
|
|
659
|
-
function
|
|
658
|
+
function Is(s) {
|
|
660
659
|
const c = s.parentElement;
|
|
661
660
|
if (c) {
|
|
662
661
|
const d = c.getElementsByClassName("video-error-message");
|
|
663
662
|
for (; d.length > 0; ) c.removeChild(d[0]);
|
|
664
663
|
}
|
|
665
664
|
}
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
665
|
+
const ji = ".bloom-textOverPicture, .bloom-canvas-element";
|
|
666
|
+
let Ar = [], Wi = /* @__PURE__ */ new Map(), pt, Zn, Fi = [];
|
|
667
|
+
const Hs = (s) => {
|
|
668
|
+
Fi = [], s.querySelectorAll("[data-draggable-id]").forEach((c) => {
|
|
669
|
+
Fi.push({
|
|
671
670
|
x: c.style.left,
|
|
672
671
|
y: c.style.top,
|
|
673
672
|
elt: c
|
|
674
673
|
});
|
|
675
674
|
});
|
|
676
|
-
},
|
|
677
|
-
|
|
675
|
+
}, Wr = () => {
|
|
676
|
+
Fi.forEach((s) => {
|
|
678
677
|
s.elt.style.left = s.x, s.elt.style.top = s.y, s.elt.classList.remove("bloom-draggedToTarget");
|
|
679
678
|
});
|
|
680
679
|
};
|
|
681
|
-
function
|
|
680
|
+
function Os(s) {
|
|
682
681
|
if (s.getAttribute("data-activity") !== "drag-letter-to-target")
|
|
683
682
|
return;
|
|
684
683
|
const c = Array.from(
|
|
@@ -689,23 +688,23 @@ function Is(s) {
|
|
|
689
688
|
"bloom-visibility-code-on"
|
|
690
689
|
)[0]?.innerText.trim();
|
|
691
690
|
d.classList.toggle("bloom-unused-in-lang", !h);
|
|
692
|
-
const T =
|
|
691
|
+
const T = Yr(d);
|
|
693
692
|
T && T.classList.toggle("bloom-unused-in-lang", !h);
|
|
694
693
|
});
|
|
695
694
|
}
|
|
696
|
-
function
|
|
695
|
+
function Fr(s) {
|
|
697
696
|
return s.closest("#page-scaling-container") !== null;
|
|
698
697
|
}
|
|
699
|
-
function
|
|
700
|
-
pt = s,
|
|
698
|
+
function ma(s, c) {
|
|
699
|
+
pt = s, Os(s), Zn = c, vo(
|
|
701
700
|
s.getAttribute("data-show-answers-in-targets") === "true" || s.getAttribute("data-show-target-as-shadow") === "true",
|
|
702
701
|
s
|
|
703
|
-
),
|
|
702
|
+
), Hs(s), Array.from(
|
|
704
703
|
s.getElementsByClassName(
|
|
705
704
|
"bloom-change-page-button"
|
|
706
705
|
)
|
|
707
706
|
).forEach(
|
|
708
|
-
(Q) => Q.addEventListener("click",
|
|
707
|
+
(Q) => Q.addEventListener("click", io)
|
|
709
708
|
), Array.from(document.getElementsByClassName("bloom-canvas")).forEach(
|
|
710
709
|
(Q) => {
|
|
711
710
|
Q.title = "";
|
|
@@ -716,7 +715,7 @@ function pa(s, c) {
|
|
|
716
715
|
}
|
|
717
716
|
), Array.from(s.getElementsByTagName("img")).forEach((Q) => {
|
|
718
717
|
Q.setAttribute("draggable", "false");
|
|
719
|
-
}),
|
|
718
|
+
}), Ar = [], Wi = /* @__PURE__ */ new Map();
|
|
720
719
|
const h = Array.from(
|
|
721
720
|
s.querySelectorAll("[data-draggable-id]")
|
|
722
721
|
), T = [];
|
|
@@ -726,16 +725,16 @@ function pa(s, c) {
|
|
|
726
725
|
);
|
|
727
726
|
if (V) {
|
|
728
727
|
const G = V.offsetLeft, Ee = V.offsetTop;
|
|
729
|
-
|
|
728
|
+
Ar.push({
|
|
730
729
|
x: G,
|
|
731
730
|
y: Ee,
|
|
732
731
|
width: V.offsetWidth,
|
|
733
732
|
height: V.offsetHeight
|
|
734
733
|
}), T.push(V);
|
|
735
734
|
}
|
|
736
|
-
|
|
735
|
+
Wi.set(Q, { x: Q.offsetLeft, y: Q.offsetTop }), Q.style.touchAction = "none", Q.addEventListener("pointerdown", oo, { capture: !0 });
|
|
737
736
|
}), Array.from(s.getElementsByTagName("video")).forEach((Q) => {
|
|
738
|
-
Q.closest(
|
|
737
|
+
Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn), Ds(Q));
|
|
739
738
|
});
|
|
740
739
|
const z = h.concat(T);
|
|
741
740
|
Array.from(
|
|
@@ -743,12 +742,12 @@ function pa(s, c) {
|
|
|
743
742
|
"bloom-visibility-code-on"
|
|
744
743
|
)
|
|
745
744
|
).filter((Q) => {
|
|
746
|
-
var _e = Q.closest(
|
|
745
|
+
var _e = Q.closest(ji);
|
|
747
746
|
return _e ? z.indexOf(_e) < 0 : !0;
|
|
748
747
|
}).forEach((Q) => {
|
|
749
|
-
Q.addEventListener("pointerdown",
|
|
748
|
+
Q.addEventListener("pointerdown", Qn);
|
|
750
749
|
});
|
|
751
|
-
const
|
|
750
|
+
const k = Array.from(
|
|
752
751
|
s.getElementsByClassName(
|
|
753
752
|
"check-button"
|
|
754
753
|
)
|
|
@@ -761,19 +760,19 @@ function pa(s, c) {
|
|
|
761
760
|
"show-correct-button"
|
|
762
761
|
)
|
|
763
762
|
);
|
|
764
|
-
|
|
765
|
-
Q.addEventListener("click",
|
|
763
|
+
k.forEach((Q) => {
|
|
764
|
+
Q.addEventListener("click", lo);
|
|
766
765
|
}), q.forEach((Q) => {
|
|
767
|
-
Q.addEventListener("click",
|
|
766
|
+
Q.addEventListener("click", co);
|
|
768
767
|
}), _.forEach((Q) => {
|
|
769
|
-
Q.addEventListener("click",
|
|
768
|
+
Q.addEventListener("click", no);
|
|
770
769
|
}), Array.from(
|
|
771
770
|
s.querySelectorAll("[data-sound]")
|
|
772
771
|
).forEach((Q) => {
|
|
773
|
-
Q.addEventListener("click",
|
|
774
|
-
}),
|
|
772
|
+
Q.addEventListener("click", Jn);
|
|
773
|
+
}), Bs(s), Ws(s);
|
|
775
774
|
}
|
|
776
|
-
const
|
|
775
|
+
const Bs = (s) => {
|
|
777
776
|
Array.from(
|
|
778
777
|
s.getElementsByClassName(
|
|
779
778
|
"drag-item-order-sentence"
|
|
@@ -784,32 +783,33 @@ const Hs = (s) => {
|
|
|
784
783
|
"bloom-content1 bloom-visibility-code-on"
|
|
785
784
|
)[0], h = d?.textContent?.trim();
|
|
786
785
|
if (!h) return;
|
|
787
|
-
const T = h.split(" "),
|
|
788
|
-
z.classList.add("drag-item-random-sentence"), z.setAttribute("data-answer", h),
|
|
786
|
+
const T = h.split(" "), L = Rs(T), z = s.ownerDocument.createElement("div");
|
|
787
|
+
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);
|
|
789
788
|
}
|
|
790
789
|
);
|
|
791
|
-
},
|
|
792
|
-
s.currentTarget
|
|
790
|
+
}, Kn = (s) => {
|
|
791
|
+
const c = s.currentTarget;
|
|
792
|
+
Rr(c), c.play();
|
|
793
793
|
};
|
|
794
|
-
function
|
|
795
|
-
|
|
794
|
+
function va(s) {
|
|
795
|
+
qr(), Wr(), Fi = [], Array.from(
|
|
796
796
|
s.getElementsByClassName(
|
|
797
797
|
"bloom-change-page-button"
|
|
798
798
|
)
|
|
799
799
|
).forEach(
|
|
800
|
-
(
|
|
800
|
+
(k) => k.removeEventListener("click", io)
|
|
801
801
|
), Array.from(
|
|
802
802
|
s.getElementsByClassName(
|
|
803
803
|
"bloom-visibility-code-on"
|
|
804
804
|
)
|
|
805
|
-
).forEach((
|
|
806
|
-
|
|
807
|
-
}), s.querySelectorAll("[data-draggable-id]").forEach((
|
|
808
|
-
|
|
809
|
-
}), Array.from(s.getElementsByTagName("img")).forEach((
|
|
810
|
-
|
|
811
|
-
}), Array.from(s.getElementsByTagName("video")).forEach((
|
|
812
|
-
|
|
805
|
+
).forEach((k) => {
|
|
806
|
+
k.removeEventListener("pointerdown", Qn);
|
|
807
|
+
}), s.querySelectorAll("[data-draggable-id]").forEach((k) => {
|
|
808
|
+
k.removeEventListener("pointerdown", oo, { capture: !0 });
|
|
809
|
+
}), Array.from(s.getElementsByTagName("img")).forEach((k) => {
|
|
810
|
+
k.removeAttribute("draggable");
|
|
811
|
+
}), Array.from(s.getElementsByTagName("video")).forEach((k) => {
|
|
812
|
+
k.removeEventListener("pointerdown", Kn), k.classList.remove("bloom-ui-no-controls");
|
|
813
813
|
});
|
|
814
814
|
const h = Array.from(
|
|
815
815
|
s.getElementsByClassName(
|
|
@@ -819,87 +819,87 @@ function ga(s) {
|
|
|
819
819
|
s.getElementsByClassName(
|
|
820
820
|
"try-again-button"
|
|
821
821
|
)
|
|
822
|
-
),
|
|
822
|
+
), L = Array.from(
|
|
823
823
|
s.getElementsByClassName(
|
|
824
824
|
"show-correct-button"
|
|
825
825
|
)
|
|
826
826
|
);
|
|
827
|
-
h.forEach((
|
|
828
|
-
|
|
829
|
-
}),
|
|
830
|
-
|
|
831
|
-
}), T.forEach((
|
|
832
|
-
|
|
827
|
+
h.forEach((k) => {
|
|
828
|
+
k.removeEventListener("click", lo);
|
|
829
|
+
}), L.forEach((k) => {
|
|
830
|
+
k.removeEventListener("click", no);
|
|
831
|
+
}), T.forEach((k) => {
|
|
832
|
+
k.removeEventListener("click", co);
|
|
833
833
|
}), Array.from(
|
|
834
834
|
s.querySelectorAll("[data-sound]")
|
|
835
|
-
).forEach((
|
|
836
|
-
|
|
835
|
+
).forEach((k) => {
|
|
836
|
+
k.removeEventListener("click", Jn);
|
|
837
837
|
}), Array.from(
|
|
838
838
|
s.getElementsByClassName(
|
|
839
839
|
"drag-item-random-sentence"
|
|
840
840
|
)
|
|
841
|
-
).forEach((
|
|
842
|
-
|
|
843
|
-
}),
|
|
841
|
+
).forEach((k) => {
|
|
842
|
+
k.parentElement?.removeChild(k);
|
|
843
|
+
}), js(s);
|
|
844
844
|
const D = s.closest(".swiper-slide") !== null;
|
|
845
|
-
|
|
845
|
+
vo(!D, s);
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const Jn = (s) => {
|
|
848
848
|
const c = s.currentTarget, d = c.getAttribute("data-sound");
|
|
849
|
-
d &&
|
|
850
|
-
},
|
|
849
|
+
d && uo(c, d), s.preventDefault(), s.stopPropagation();
|
|
850
|
+
}, Qn = (s) => {
|
|
851
851
|
const c = s.currentTarget;
|
|
852
|
-
|
|
853
|
-
},
|
|
854
|
-
const c =
|
|
852
|
+
eo(c);
|
|
853
|
+
}, eo = (s) => {
|
|
854
|
+
const c = qs(s);
|
|
855
855
|
gi(c, s.closest(".bloom-page"));
|
|
856
856
|
};
|
|
857
|
-
function
|
|
858
|
-
const c =
|
|
859
|
-
return
|
|
857
|
+
function qs(s) {
|
|
858
|
+
const c = Vi(s);
|
|
859
|
+
return _r(c);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
const
|
|
861
|
+
function to(s, c, d, h, T) {
|
|
862
|
+
const L = Array.from(h?.classList)?.find((D) => D.endsWith("-style")) ?? "Normal-style", z = h?.getAttribute("lang");
|
|
863
863
|
c.forEach((D) => {
|
|
864
|
-
const
|
|
865
|
-
|
|
864
|
+
const k = s.ownerDocument.createElement("div");
|
|
865
|
+
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", $s);
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function io(s) {
|
|
869
869
|
const c = s.currentTarget.classList.contains(
|
|
870
870
|
"bloom-next-page"
|
|
871
871
|
);
|
|
872
|
-
|
|
872
|
+
Zn?.(c);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
const d = (
|
|
876
|
-
const z =
|
|
874
|
+
function ya(s, c) {
|
|
875
|
+
const d = (L) => {
|
|
876
|
+
const z = L.closest(ji);
|
|
877
877
|
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"));
|
|
878
|
-
}, h =
|
|
878
|
+
}, h = Vi(s).filter(d), T = _r(h);
|
|
879
879
|
if (c) {
|
|
880
|
-
const
|
|
880
|
+
const L = Array.from(
|
|
881
881
|
s.getElementsByTagName("video")
|
|
882
882
|
).filter(d);
|
|
883
|
-
|
|
883
|
+
jr(L, () => gi(T, s));
|
|
884
884
|
} else
|
|
885
885
|
gi(T, s);
|
|
886
886
|
}
|
|
887
|
-
let
|
|
887
|
+
let ro = (s, c) => {
|
|
888
888
|
};
|
|
889
|
-
function
|
|
890
|
-
|
|
889
|
+
function ba(s) {
|
|
890
|
+
ro = s;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function _r(s) {
|
|
893
893
|
const c = [];
|
|
894
894
|
return s.forEach((d) => {
|
|
895
|
-
d.classList.contains(
|
|
895
|
+
d.classList.contains(Mi) && c.push(d), c.push(
|
|
896
896
|
...Array.from(
|
|
897
|
-
d.getElementsByClassName(
|
|
897
|
+
d.getElementsByClassName(Mi)
|
|
898
898
|
)
|
|
899
899
|
);
|
|
900
900
|
}), c;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Vi(s) {
|
|
903
903
|
const c = Array.from(
|
|
904
904
|
s.getElementsByClassName("bloom-editable")
|
|
905
905
|
).filter(
|
|
@@ -907,8 +907,8 @@ function _i(s) {
|
|
|
907
907
|
);
|
|
908
908
|
return s.classList.contains("bloom-editable") && window.getComputedStyle(s).display !== "none" && c.push(s), c;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
c || (c = (D,
|
|
910
|
+
function Rs(s, c) {
|
|
911
|
+
c || (c = (D, k) => D === k);
|
|
912
912
|
let d = !0;
|
|
913
913
|
for (let D = 1; D < s.length; ++D)
|
|
914
914
|
if (!c(s[0], s[D])) {
|
|
@@ -917,54 +917,54 @@ function Bs(s, c) {
|
|
|
917
917
|
}
|
|
918
918
|
if (d) return s;
|
|
919
919
|
const h = s.slice();
|
|
920
|
-
let T = 0,
|
|
920
|
+
let T = 0, L = h, z = 0;
|
|
921
921
|
for (; z++ < 10; ) {
|
|
922
|
-
let D = s.length,
|
|
922
|
+
let D = s.length, k;
|
|
923
923
|
for (; D !== 0; )
|
|
924
|
-
|
|
925
|
-
s[
|
|
924
|
+
k = Math.floor(Math.random() * D), D--, [s[D], s[k]] = [
|
|
925
|
+
s[k],
|
|
926
926
|
s[D]
|
|
927
927
|
];
|
|
928
928
|
let q = 0;
|
|
929
929
|
for (let _ = 0; _ < s.length; ++_)
|
|
930
930
|
c(s[_], h[_]) || ++q;
|
|
931
931
|
if (q === s.length) return s;
|
|
932
|
-
q > T && (T = q,
|
|
932
|
+
q > T && (T = q, L = s.slice());
|
|
933
933
|
}
|
|
934
|
-
for (let D = 0; D < s.length; ++D) s[D] =
|
|
934
|
+
for (let D = 0; D < s.length; ++D) s[D] = L[D];
|
|
935
935
|
return s;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function wa(s, c) {
|
|
938
938
|
return s.innerText.trim() === c.innerText.trim();
|
|
939
939
|
}
|
|
940
|
-
const
|
|
940
|
+
const no = (s) => {
|
|
941
941
|
if (!pt)
|
|
942
942
|
return;
|
|
943
|
-
|
|
943
|
+
Wr(), pt.querySelectorAll("[data-draggable-id]").forEach((d) => {
|
|
944
944
|
const h = d.getAttribute("data-draggable-id"), T = pt?.querySelector(
|
|
945
945
|
`[data-target-of="${h}"]`
|
|
946
946
|
);
|
|
947
947
|
if (!T)
|
|
948
948
|
return;
|
|
949
|
-
let
|
|
950
|
-
if (!
|
|
949
|
+
let L = d.offsetWidth;
|
|
950
|
+
if (!L) {
|
|
951
951
|
const q = d.style.width.replace("px", "");
|
|
952
|
-
|
|
952
|
+
L = Number.parseInt(q, 10);
|
|
953
953
|
}
|
|
954
954
|
let z = d.offsetHeight;
|
|
955
955
|
if (!z) {
|
|
956
956
|
const q = d.style.height.replace("px", "");
|
|
957
957
|
z = Number.parseInt(q, 10);
|
|
958
958
|
}
|
|
959
|
-
const D = T.offsetLeft + (T.offsetWidth -
|
|
960
|
-
d.style.left = D + "px", d.style.top =
|
|
959
|
+
const D = T.offsetLeft + (T.offsetWidth - L) / 2, k = T.offsetTop + (T.offsetHeight - z) / 2;
|
|
960
|
+
d.style.left = D + "px", d.style.top = k + "px";
|
|
961
961
|
}), Array.from(
|
|
962
962
|
pt.getElementsByClassName(
|
|
963
963
|
"drag-item-random-sentence"
|
|
964
964
|
)
|
|
965
965
|
).forEach((d) => {
|
|
966
966
|
const h = d.getAttribute("data-answer")?.split(" ") ?? [], T = d.children[0];
|
|
967
|
-
d.innerHTML = "",
|
|
967
|
+
d.innerHTML = "", to(
|
|
968
968
|
pt,
|
|
969
969
|
h,
|
|
970
970
|
d,
|
|
@@ -980,76 +980,76 @@ const io = (s) => {
|
|
|
980
980
|
) && c.push(
|
|
981
981
|
...Array.from(d.getElementsByTagName("video"))
|
|
982
982
|
);
|
|
983
|
-
}), c.length > 0 &&
|
|
983
|
+
}), c.length > 0 && jr(c, () => {
|
|
984
984
|
});
|
|
985
985
|
};
|
|
986
|
-
let
|
|
987
|
-
const
|
|
986
|
+
let $i = 0, Xi = 0, Me, kr = !1;
|
|
987
|
+
const Yi = (s) => s.getBoundingClientRect().width / s.offsetWidth, oo = (s) => {
|
|
988
988
|
if (s.button !== 0 || s.ctrlKey) return;
|
|
989
989
|
s.preventDefault();
|
|
990
990
|
const c = s.currentTarget;
|
|
991
991
|
Me = c;
|
|
992
|
-
const d = c.closest(".bloom-page"), h =
|
|
993
|
-
|
|
994
|
-
},
|
|
995
|
-
const c = Me.closest(".bloom-page"), d =
|
|
992
|
+
const d = c.closest(".bloom-page"), h = Yi(d);
|
|
993
|
+
$i = s.clientX / h - c.offsetLeft, Xi = s.clientY / h - c.offsetTop, c.setPointerCapture(s.pointerId), c.addEventListener("pointerup", ao), c.addEventListener("pointermove", so), eo(c), c.classList.add("bloom-ui-dragging"), Me.classList.remove("bloom-draggedToTarget");
|
|
994
|
+
}, so = (s) => {
|
|
995
|
+
const c = Me.closest(".bloom-page"), d = Yi(c);
|
|
996
996
|
s.preventDefault();
|
|
997
|
-
let h = s.clientX / d -
|
|
998
|
-
|
|
997
|
+
let h = s.clientX / d - $i, T = s.clientY / d - Xi, L = Number.MAX_VALUE;
|
|
998
|
+
kr = !1;
|
|
999
999
|
let z = h, D = T;
|
|
1000
|
-
for (const
|
|
1001
|
-
const q = (
|
|
1002
|
-
_e <
|
|
1000
|
+
for (const k of Ar) {
|
|
1001
|
+
const q = (k.width - Me.offsetWidth) / 2, _ = (k.height - Me.offsetHeight) / 2, ye = k.x + q - h, Q = k.y + _ - T, _e = Math.sqrt(ye * ye + Q * Q);
|
|
1002
|
+
_e < L && (L = _e, z = k.x + q, D = k.y + _);
|
|
1003
1003
|
}
|
|
1004
|
-
|
|
1005
|
-
},
|
|
1006
|
-
if (
|
|
1004
|
+
L < 50 && (h = z, T = D, kr = !0), Me.style.top = T + "px", Me.style.left = h + "px";
|
|
1005
|
+
}, ao = (s) => {
|
|
1006
|
+
if (kr)
|
|
1007
1007
|
Me.classList.add("bloom-draggedToTarget");
|
|
1008
1008
|
else {
|
|
1009
|
-
const h =
|
|
1009
|
+
const h = Wi.get(Me);
|
|
1010
1010
|
Me.style.top = h?.y + "px", Me.style.left = h?.x + "px", Me.classList.remove("bloom-draggedToTarget");
|
|
1011
1011
|
}
|
|
1012
|
-
Me.classList.remove("bloom-ui-dragging"), Me.removeEventListener("pointerup",
|
|
1012
|
+
Me.classList.remove("bloom-ui-dragging"), Me.removeEventListener("pointerup", ao), Me.removeEventListener("pointermove", so);
|
|
1013
1013
|
const c = Me.closest(".bloom-page");
|
|
1014
1014
|
Array.from(
|
|
1015
1015
|
c.querySelectorAll("[data-draggable-id]")
|
|
1016
1016
|
).forEach((h) => {
|
|
1017
|
-
if (h !== Me &&
|
|
1018
|
-
const T =
|
|
1017
|
+
if (h !== Me && Lr(h, Me)) {
|
|
1018
|
+
const T = Wi.get(h);
|
|
1019
1019
|
T && (h.style.left = T.x + "px", h.style.top = T.y + "px", h.classList.remove("bloom-draggedToTarget"));
|
|
1020
1020
|
}
|
|
1021
1021
|
});
|
|
1022
|
-
},
|
|
1023
|
-
const c =
|
|
1022
|
+
}, En = (s) => {
|
|
1023
|
+
const c = Vi(s);
|
|
1024
1024
|
return Array.from(c).map((d) => d.textContent).join(" ");
|
|
1025
|
-
},
|
|
1026
|
-
const d = s.offsetLeft, h = s.offsetTop, T = c.offsetLeft + (c.offsetWidth - s.offsetWidth) / 2,
|
|
1025
|
+
}, Lr = (s, c) => {
|
|
1026
|
+
const d = s.offsetLeft, h = s.offsetTop, T = c.offsetLeft + (c.offsetWidth - s.offsetWidth) / 2, L = c.offsetTop + (c.offsetHeight - s.offsetHeight) / 2;
|
|
1027
1027
|
return (
|
|
1028
1028
|
// At least a half-pixel error can occur just from centering the draggable in the target.
|
|
1029
|
-
Math.abs(T - d) < 0.6 && Math.abs(
|
|
1029
|
+
Math.abs(T - d) < 0.6 && Math.abs(L - h) < 0.6
|
|
1030
1030
|
);
|
|
1031
|
-
},
|
|
1032
|
-
const d = s.currentTarget.closest(".bloom-page"), h =
|
|
1033
|
-
return
|
|
1034
|
-
},
|
|
1031
|
+
}, lo = (s) => {
|
|
1032
|
+
const d = s.currentTarget.closest(".bloom-page"), h = Vs(d) && Xs(d);
|
|
1033
|
+
return _s(d, h), ro(1, h ? 1 : 0), h;
|
|
1034
|
+
}, co = (s) => {
|
|
1035
1035
|
const d = s.currentTarget.closest(".bloom-page");
|
|
1036
|
-
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1),
|
|
1036
|
+
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), Wr(), qr();
|
|
1037
1037
|
}, jt = (s, c, d) => {
|
|
1038
1038
|
d ? s.parentElement?.classList.add(c) : s.parentElement?.classList.remove(c);
|
|
1039
1039
|
};
|
|
1040
|
-
let Fe, fe,
|
|
1041
|
-
function
|
|
1042
|
-
|
|
1040
|
+
let Fe, fe, Vr, $r;
|
|
1041
|
+
function xa(s, c) {
|
|
1042
|
+
Vr = s, $r = c;
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1045
|
-
function
|
|
1044
|
+
const Xr = "data-preload-sound";
|
|
1045
|
+
function js(s) {
|
|
1046
1046
|
s.querySelectorAll(
|
|
1047
|
-
`audio[${
|
|
1047
|
+
`audio[${Xr}]`
|
|
1048
1048
|
).forEach((c) => {
|
|
1049
1049
|
c.src = "", c.remove();
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Ws(s) {
|
|
1053
1053
|
const c = (d, h) => {
|
|
1054
1054
|
const T = d !== null;
|
|
1055
1055
|
if (d === null)
|
|
@@ -1057,128 +1057,132 @@ function Rs(s) {
|
|
|
1057
1057
|
else if (d === "none")
|
|
1058
1058
|
return;
|
|
1059
1059
|
if (!d) return;
|
|
1060
|
-
const
|
|
1060
|
+
const L = (T ? Pr() + "/audio/" : "") + d;
|
|
1061
1061
|
if (Array.from(
|
|
1062
|
-
s.querySelectorAll(`audio[${
|
|
1063
|
-
).find((
|
|
1062
|
+
s.querySelectorAll(`audio[${Xr}]`)
|
|
1063
|
+
).find((k) => k.dataset.preloadSound === L)) return;
|
|
1064
1064
|
const D = document.createElement("audio");
|
|
1065
|
-
D.dataset.preloadSound =
|
|
1065
|
+
D.dataset.preloadSound = L, D.style.visibility = "hidden", Fr(s) && D.classList.add("bloom-ui"), D.src = L, D.load(), s.append(D);
|
|
1066
1066
|
};
|
|
1067
1067
|
c(
|
|
1068
1068
|
s.getAttribute("data-correct-sound"),
|
|
1069
|
-
|
|
1069
|
+
Vr
|
|
1070
1070
|
), c(
|
|
1071
1071
|
s.getAttribute("data-wrong-sound"),
|
|
1072
|
-
|
|
1072
|
+
$r
|
|
1073
1073
|
);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Fs(s, c, d) {
|
|
1076
1076
|
let h = s.getAttribute(
|
|
1077
1077
|
c ? "data-correct-sound" : "data-wrong-sound"
|
|
1078
1078
|
);
|
|
1079
1079
|
const T = h !== null;
|
|
1080
|
-
h === null ? h = c ?
|
|
1080
|
+
h === null ? h = c ? Vr : $r : h === "none" && (h = void 0), h ? uo(s, h, T, d) : d?.();
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1083
|
-
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c),
|
|
1082
|
+
function _s(s, c) {
|
|
1083
|
+
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c), Fs(s, c, () => {
|
|
1084
|
+
if (!s.parentElement?.classList.contains(
|
|
1085
|
+
c ? "drag-activity-correct" : "drag-activity-wrong"
|
|
1086
|
+
))
|
|
1087
|
+
return;
|
|
1084
1088
|
const h = Array.from(
|
|
1085
1089
|
s.getElementsByClassName(
|
|
1086
1090
|
c ? "drag-item-correct" : "drag-item-wrong"
|
|
1087
1091
|
)
|
|
1088
|
-
), T = [],
|
|
1092
|
+
), T = [], L = [];
|
|
1089
1093
|
h.forEach((D) => {
|
|
1090
|
-
T.push(...
|
|
1094
|
+
T.push(...Vi(D)), L.push(...Array.from(D.getElementsByTagName("video")));
|
|
1091
1095
|
});
|
|
1092
|
-
const z =
|
|
1093
|
-
|
|
1096
|
+
const z = _r(T);
|
|
1097
|
+
jr(L, () => gi(z, s));
|
|
1094
1098
|
});
|
|
1095
1099
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const T = (d ?
|
|
1098
|
-
s.querySelectorAll(`audio[${
|
|
1100
|
+
function uo(s, c, d = !0, h) {
|
|
1101
|
+
const T = (d ? Pr() + "/audio/" : "") + c, L = Array.from(
|
|
1102
|
+
s.querySelectorAll(`audio[${Xr}]`)
|
|
1099
1103
|
).find((_) => _.dataset.preloadSound === T);
|
|
1100
1104
|
let z;
|
|
1101
|
-
|
|
1105
|
+
L ? (delete L.dataset.preloadSound, L.currentTime = 0, z = L) : (z = new Audio(T), Fr(s) && z.classList.add("bloom-ui"), z.style.visibility = "hidden", s.append(z));
|
|
1102
1106
|
let D = !1;
|
|
1103
|
-
const
|
|
1107
|
+
const k = () => {
|
|
1104
1108
|
D || (D = !0, h?.());
|
|
1105
1109
|
};
|
|
1106
1110
|
z.play()?.catch(() => {
|
|
1107
|
-
|
|
1111
|
+
k();
|
|
1108
1112
|
}), z.addEventListener(
|
|
1109
1113
|
"ended",
|
|
1110
1114
|
() => {
|
|
1111
|
-
s.removeChild(z),
|
|
1115
|
+
s.removeChild(z), k();
|
|
1112
1116
|
},
|
|
1113
1117
|
{ once: !0 }
|
|
1114
1118
|
), z.addEventListener(
|
|
1115
1119
|
"error",
|
|
1116
1120
|
() => {
|
|
1117
|
-
z.parentElement === s && s.removeChild(z),
|
|
1121
|
+
z.parentElement === s && s.removeChild(z), k();
|
|
1118
1122
|
},
|
|
1119
1123
|
{ once: !0 }
|
|
1120
1124
|
);
|
|
1121
1125
|
}
|
|
1122
|
-
function
|
|
1126
|
+
function Vs(s) {
|
|
1123
1127
|
let c = !0;
|
|
1124
1128
|
const d = Array.from(
|
|
1125
1129
|
s.querySelectorAll("[data-draggable-id]")
|
|
1126
1130
|
);
|
|
1127
1131
|
return d.forEach((h) => {
|
|
1128
|
-
const T = h.getAttribute("data-draggable-id"),
|
|
1132
|
+
const T = h.getAttribute("data-draggable-id"), L = s.querySelector(
|
|
1129
1133
|
`[data-target-of="${T}"]`
|
|
1130
1134
|
);
|
|
1131
|
-
if (
|
|
1135
|
+
if (L && !Lr(h, L)) {
|
|
1132
1136
|
if (!Array.from(h.children).some(
|
|
1133
1137
|
(D) => D.classList.contains("bloom-translationGroup")
|
|
1134
1138
|
)) {
|
|
1135
1139
|
c = !1;
|
|
1136
1140
|
return;
|
|
1137
1141
|
}
|
|
1138
|
-
const z =
|
|
1139
|
-
d.some((D) => D === h ||
|
|
1142
|
+
const z = En(h);
|
|
1143
|
+
d.some((D) => D === h || En(D) !== z ? !1 : Lr(D, L)) || (c = !1);
|
|
1140
1144
|
}
|
|
1141
1145
|
}), c;
|
|
1142
1146
|
}
|
|
1143
|
-
let qe,
|
|
1144
|
-
const
|
|
1145
|
-
function
|
|
1147
|
+
let qe, Nr = 0;
|
|
1148
|
+
const fo = 5;
|
|
1149
|
+
function $s(s) {
|
|
1146
1150
|
if (s.button !== 0 || s.ctrlKey) return;
|
|
1147
|
-
fe = s.currentTarget,
|
|
1148
|
-
const c = fe.closest(".bloom-page"), d =
|
|
1149
|
-
|
|
1151
|
+
fe = s.currentTarget, Nr = fe.offsetWidth;
|
|
1152
|
+
const c = fe.closest(".bloom-page"), d = Yi(c);
|
|
1153
|
+
$i = s.clientX / d - fe.offsetLeft, Xi = s.clientY / d - fe.offsetTop, Fe = fe.ownerDocument.createElement("div"), fe.classList.forEach(
|
|
1150
1154
|
(h) => Fe.classList.add(h)
|
|
1151
1155
|
), Fe.textContent = fe.textContent, Fe.style.position = "absolute", Fe.style.left = fe.offsetLeft + "px", Fe.style.top = fe.offsetTop + "px", Fe.setAttribute(
|
|
1152
1156
|
"lang",
|
|
1153
1157
|
fe.getAttribute("lang")
|
|
1154
|
-
), qe =
|
|
1158
|
+
), qe = mo(fe), qe.style.width = Nr + fo + "px", fe.parentElement?.insertBefore(
|
|
1155
1159
|
qe,
|
|
1156
1160
|
fe
|
|
1157
|
-
), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup",
|
|
1161
|
+
), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup", go), fe.addEventListener("pointermove", po), fe.addEventListener("touchstart", ho), fe.parentElement?.appendChild(Fe);
|
|
1158
1162
|
}
|
|
1159
|
-
const
|
|
1163
|
+
const ho = (s) => {
|
|
1160
1164
|
s.preventDefault();
|
|
1161
1165
|
};
|
|
1162
|
-
let
|
|
1163
|
-
const
|
|
1164
|
-
const c = Fe.closest(".bloom-page"), d =
|
|
1166
|
+
let Cn;
|
|
1167
|
+
const po = (s) => {
|
|
1168
|
+
const c = Fe.closest(".bloom-page"), d = Yi(c);
|
|
1165
1169
|
s.preventDefault();
|
|
1166
|
-
const h = s.clientX / d -
|
|
1167
|
-
if (Fe.style.top = T + "px", Fe.style.left = h + "px",
|
|
1170
|
+
const h = s.clientX / d - $i, T = s.clientY / d - Xi;
|
|
1171
|
+
if (Fe.style.top = T + "px", Fe.style.left = h + "px", Ni)
|
|
1168
1172
|
return;
|
|
1169
|
-
const
|
|
1170
|
-
const
|
|
1171
|
-
return D !== fe && D !== qe && D !== Fe && s.clientX >
|
|
1173
|
+
const L = fe.parentElement, z = Array.from(L.children).find((D) => {
|
|
1174
|
+
const k = D.getBoundingClientRect();
|
|
1175
|
+
return D !== fe && D !== qe && D !== Fe && s.clientX > k.left && s.clientX < k.right && s.clientY > k.top && s.clientY < k.bottom;
|
|
1172
1176
|
});
|
|
1173
|
-
if (z && z !==
|
|
1174
|
-
const D = Array.from(
|
|
1175
|
-
D.indexOf(z) > D.indexOf(qe) ?
|
|
1176
|
-
|
|
1177
|
+
if (z && z !== Cn) {
|
|
1178
|
+
const D = Array.from(L.children);
|
|
1179
|
+
D.indexOf(z) > D.indexOf(qe) ? wr(() => {
|
|
1180
|
+
L.insertBefore(
|
|
1177
1181
|
qe,
|
|
1178
1182
|
z.nextSibling
|
|
1179
1183
|
);
|
|
1180
|
-
}) :
|
|
1181
|
-
|
|
1184
|
+
}) : wr(() => {
|
|
1185
|
+
L.insertBefore(qe, z);
|
|
1182
1186
|
});
|
|
1183
1187
|
} else {
|
|
1184
1188
|
const D = Array.from(
|
|
@@ -1188,66 +1192,66 @@ const fo = (s) => {
|
|
|
1188
1192
|
).filter(
|
|
1189
1193
|
(_) => _ !== fe && _ !== qe && _ !== Fe
|
|
1190
1194
|
), q = D[D.length - 1].getBoundingClientRect();
|
|
1191
|
-
(s.clientY > q.bottom || s.clientX > q.right && s.clientY > q.top) &&
|
|
1192
|
-
|
|
1195
|
+
(s.clientY > q.bottom || s.clientX > q.right && s.clientY > q.top) && wr(() => {
|
|
1196
|
+
L.appendChild(qe);
|
|
1193
1197
|
});
|
|
1194
1198
|
}
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1199
|
+
Cn = z;
|
|
1200
|
+
}, go = (s) => {
|
|
1197
1201
|
s.preventDefault(), fe.style.visibility = "visible", fe.removeEventListener(
|
|
1198
1202
|
"pointerup",
|
|
1199
|
-
|
|
1203
|
+
go
|
|
1200
1204
|
), fe.removeEventListener(
|
|
1201
1205
|
"pointermove",
|
|
1202
|
-
|
|
1206
|
+
po
|
|
1203
1207
|
), fe.releasePointerCapture(s.pointerId), fe.removeEventListener(
|
|
1204
1208
|
"touchstart",
|
|
1205
|
-
|
|
1209
|
+
ho
|
|
1206
1210
|
), Fe.parentElement?.removeChild(Fe), fe.parentElement?.insertBefore(
|
|
1207
1211
|
fe,
|
|
1208
1212
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1209
1213
|
qe
|
|
1210
1214
|
), fe.parentElement?.removeChild(qe), qe = void 0, fe.style.display = "";
|
|
1211
1215
|
};
|
|
1212
|
-
function
|
|
1216
|
+
function mo(s) {
|
|
1213
1217
|
const c = s.cloneNode(!0);
|
|
1214
1218
|
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;
|
|
1215
1219
|
}
|
|
1216
|
-
let
|
|
1217
|
-
function
|
|
1218
|
-
|
|
1219
|
-
const c = 200, d = fe.parentElement, h =
|
|
1220
|
+
let Ni = !1;
|
|
1221
|
+
function wr(s) {
|
|
1222
|
+
Ni = !0;
|
|
1223
|
+
const c = 200, d = fe.parentElement, h = mo(fe);
|
|
1220
1224
|
d.insertBefore(h, qe), s();
|
|
1221
|
-
const T = Date.now(),
|
|
1222
|
-
const z = Date.now() - T, D = Math.min(z / c, 1),
|
|
1225
|
+
const T = Date.now(), L = () => {
|
|
1226
|
+
const z = Date.now() - T, D = Math.min(z / c, 1), k = Nr + fo;
|
|
1223
1227
|
if (!qe) {
|
|
1224
|
-
d.removeChild(h),
|
|
1228
|
+
d.removeChild(h), Ni = !1;
|
|
1225
1229
|
return;
|
|
1226
1230
|
}
|
|
1227
|
-
qe.style.width =
|
|
1231
|
+
qe.style.width = k * D + "px", h.style.width = k * (1 - D) + "px", D < 1 ? requestAnimationFrame(L) : (d.removeChild(h), qe.style.width = k + "px", Ni = !1);
|
|
1228
1232
|
};
|
|
1229
|
-
requestAnimationFrame(
|
|
1233
|
+
requestAnimationFrame(L);
|
|
1230
1234
|
}
|
|
1231
|
-
function
|
|
1235
|
+
function Xs(s) {
|
|
1232
1236
|
const c = s.getElementsByClassName("drag-item-random-sentence");
|
|
1233
1237
|
for (let d = 0; d < c.length; d++) {
|
|
1234
|
-
const h = c[d], T = h.getAttribute("data-answer").split(" "),
|
|
1235
|
-
for (let z = 0; z <
|
|
1236
|
-
if (
|
|
1238
|
+
const h = c[d], T = h.getAttribute("data-answer").split(" "), L = Array.from(h.children);
|
|
1239
|
+
for (let z = 0; z < L.length; z++)
|
|
1240
|
+
if (L[z].textContent !== T[z])
|
|
1237
1241
|
return !1;
|
|
1238
1242
|
}
|
|
1239
1243
|
return !0;
|
|
1240
1244
|
}
|
|
1241
|
-
const
|
|
1245
|
+
const vo = (s, c) => {
|
|
1242
1246
|
const d = c.querySelectorAll(":scope [data-draggable-id]");
|
|
1243
1247
|
s ? d.forEach((h) => {
|
|
1244
|
-
|
|
1248
|
+
Ys(h);
|
|
1245
1249
|
}) : d.forEach((h) => {
|
|
1246
|
-
|
|
1250
|
+
Us(h);
|
|
1247
1251
|
});
|
|
1248
1252
|
};
|
|
1249
|
-
function
|
|
1250
|
-
const c =
|
|
1253
|
+
function Ys(s) {
|
|
1254
|
+
const c = Yr(s);
|
|
1251
1255
|
if (!c)
|
|
1252
1256
|
return;
|
|
1253
1257
|
let d = c.ownerDocument.createElement("div");
|
|
@@ -1282,42 +1286,42 @@ function $s(s) {
|
|
|
1282
1286
|
)[0]), h) {
|
|
1283
1287
|
const T = d;
|
|
1284
1288
|
d = c.ownerDocument.createElement("div"), d.appendChild(T), T.classList.add("bloom-targetWrapper"), h.style.width = s.style.width, h.style.height = s.style.height;
|
|
1285
|
-
let
|
|
1286
|
-
|
|
1289
|
+
let L = h.getAttribute("data-background");
|
|
1290
|
+
L && !h.style.backgroundImage && (L.startsWith("url(") || (L = "url(" + L + ")"), h.style.backgroundImage = L, h.removeAttribute("data-background"));
|
|
1287
1291
|
}
|
|
1288
1292
|
c.innerHTML !== d.innerHTML && (c.innerHTML = d.innerHTML);
|
|
1289
1293
|
}
|
|
1290
|
-
const
|
|
1294
|
+
const Yr = (s) => {
|
|
1291
1295
|
const c = s.getAttribute("data-draggable-id");
|
|
1292
1296
|
if (c)
|
|
1293
1297
|
return s.closest(".bloom-page").querySelector(`[data-target-of="${c}"]`);
|
|
1294
1298
|
};
|
|
1295
|
-
function
|
|
1296
|
-
const c =
|
|
1299
|
+
function Us(s) {
|
|
1300
|
+
const c = Yr(s);
|
|
1297
1301
|
c && (c.innerHTML = "");
|
|
1298
1302
|
}
|
|
1299
|
-
let
|
|
1300
|
-
function
|
|
1303
|
+
let Ta = !1;
|
|
1304
|
+
function Sa(s) {
|
|
1301
1305
|
}
|
|
1302
|
-
function
|
|
1306
|
+
function Gs(s) {
|
|
1303
1307
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
1304
1308
|
}
|
|
1305
|
-
var
|
|
1306
|
-
var
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
1309
|
+
var Pi = { exports: {} };
|
|
1310
|
+
var Zs = Pi.exports, An;
|
|
1311
|
+
function yo() {
|
|
1312
|
+
return An || (An = 1, (function(s) {
|
|
1309
1313
|
(function(c, d) {
|
|
1310
1314
|
s.exports = c.document ? d(c, !0) : function(h) {
|
|
1311
1315
|
if (!h.document)
|
|
1312
1316
|
throw new Error("jQuery requires a window with a document");
|
|
1313
1317
|
return d(h);
|
|
1314
1318
|
};
|
|
1315
|
-
})(typeof window < "u" ? window :
|
|
1316
|
-
var h = [], T = Object.getPrototypeOf,
|
|
1319
|
+
})(typeof window < "u" ? window : Zs, function(c, d) {
|
|
1320
|
+
var h = [], T = Object.getPrototypeOf, L = h.slice, z = h.flat ? function(t) {
|
|
1317
1321
|
return h.flat.call(t);
|
|
1318
1322
|
} : function(t) {
|
|
1319
1323
|
return h.concat.apply([], t);
|
|
1320
|
-
}, D = h.push,
|
|
1324
|
+
}, D = h.push, k = h.indexOf, q = {}, _ = q.toString, ye = q.hasOwnProperty, Q = ye.toString, _e = Q.call(Object), V = {}, G = function(i) {
|
|
1321
1325
|
return typeof i == "function" && typeof i.nodeType != "number" && typeof i.item != "function";
|
|
1322
1326
|
}, Ee = function(i) {
|
|
1323
1327
|
return i != null && i === i.window;
|
|
@@ -1348,12 +1352,12 @@ function mo() {
|
|
|
1348
1352
|
// The default length of a jQuery object is 0
|
|
1349
1353
|
length: 0,
|
|
1350
1354
|
toArray: function() {
|
|
1351
|
-
return
|
|
1355
|
+
return L.call(this);
|
|
1352
1356
|
},
|
|
1353
1357
|
// Get the Nth element in the matched element set OR
|
|
1354
1358
|
// Get the whole matched element set as a clean array
|
|
1355
1359
|
get: function(t) {
|
|
1356
|
-
return t == null ?
|
|
1360
|
+
return t == null ? L.call(this) : t < 0 ? this[t + this.length] : this[t];
|
|
1357
1361
|
},
|
|
1358
1362
|
// Take an array of elements and push it onto the stack
|
|
1359
1363
|
// (returning the new matched element set)
|
|
@@ -1371,7 +1375,7 @@ function mo() {
|
|
|
1371
1375
|
}));
|
|
1372
1376
|
},
|
|
1373
1377
|
slice: function() {
|
|
1374
|
-
return this.pushStack(
|
|
1378
|
+
return this.pushStack(L.apply(this, arguments));
|
|
1375
1379
|
},
|
|
1376
1380
|
first: function() {
|
|
1377
1381
|
return this.eq(0);
|
|
@@ -1420,7 +1424,7 @@ function mo() {
|
|
|
1420
1424
|
},
|
|
1421
1425
|
isPlainObject: function(t) {
|
|
1422
1426
|
var i, r;
|
|
1423
|
-
return !t || _.call(t) !== "[object Object]" ? !1 : (i = T(t), i ? (r =
|
|
1427
|
+
return !t || _.call(t) !== "[object Object]" ? !1 : (i = T(t), i ? (r = ye.call(i, "constructor") && i.constructor, typeof r == "function" && Q.call(r) === _e) : !0);
|
|
1424
1428
|
},
|
|
1425
1429
|
isEmptyObject: function(t) {
|
|
1426
1430
|
var i;
|
|
@@ -1461,7 +1465,7 @@ function mo() {
|
|
|
1461
1465
|
) : D.call(r, t)), r;
|
|
1462
1466
|
},
|
|
1463
1467
|
inArray: function(t, i, r) {
|
|
1464
|
-
return i == null ? -1 :
|
|
1468
|
+
return i == null ? -1 : k.call(i, t, r);
|
|
1465
1469
|
},
|
|
1466
1470
|
isXMLDoc: function(t) {
|
|
1467
1471
|
var i = t && t.namespaceURI, r = t && (t.ownerDocument || t).documentElement;
|
|
@@ -1508,7 +1512,7 @@ function mo() {
|
|
|
1508
1512
|
function me(t, i) {
|
|
1509
1513
|
return t.nodeName && t.nodeName.toLowerCase() === i.toLowerCase();
|
|
1510
1514
|
}
|
|
1511
|
-
var Wt = h.pop,
|
|
1515
|
+
var Wt = h.pop, Ui = h.sort, Gi = h.splice, j = "[\\x20\\t\\r\\n\\f]", C = new RegExp(
|
|
1512
1516
|
"^" + j + "+|((?:^|[^\\\\])(?:\\\\.)*)" + j + "+$",
|
|
1513
1517
|
"g"
|
|
1514
1518
|
);
|
|
@@ -1527,11 +1531,11 @@ function mo() {
|
|
|
1527
1531
|
};
|
|
1528
1532
|
var g = U, De = D;
|
|
1529
1533
|
(function() {
|
|
1530
|
-
var t, i, r, n, a, l = De, u, y, m, w, P, O = o.expando,
|
|
1534
|
+
var t, i, r, n, a, l = De, u, y, m, w, P, O = o.expando, A = 0, R = 0, ie = xi(), de = xi(), ne = xi(), Oe = xi(), Pe = function(p, b) {
|
|
1531
1535
|
return p === b && (a = !0), 0;
|
|
1532
1536
|
}, ct = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", ut = "(?:\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", ce = "\\[" + j + "*(" + ut + ")(?:" + j + // Operator (capture 2)
|
|
1533
1537
|
"*([*^$|!~]?=)" + j + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
|
1534
|
-
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + ut + "))|)" + j + "*\\]", qt = ":(" + ut + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + ce + ")*)|.*)\\)|)", he = new RegExp(j + "+", "g"), Se = new RegExp("^" + j + "*," + j + "*"), li = new RegExp("^" + j + "*([>+~]|" + j + ")" + j + "*"),
|
|
1538
|
+
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + ut + "))|)" + j + "*\\]", qt = ":(" + ut + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + ce + ")*)|.*)\\)|)", he = new RegExp(j + "+", "g"), Se = new RegExp("^" + j + "*," + j + "*"), li = new RegExp("^" + j + "*([>+~]|" + j + ")" + j + "*"), fr = new RegExp(j + "|>"), ft = new RegExp(qt), ci = new RegExp("^" + ut + "$"), dt = {
|
|
1535
1539
|
ID: new RegExp("^#(" + ut + ")"),
|
|
1536
1540
|
CLASS: new RegExp("^\\.(" + ut + ")"),
|
|
1537
1541
|
TAG: new RegExp("^(" + ut + "|[*])"),
|
|
@@ -1545,18 +1549,18 @@ function mo() {
|
|
|
1545
1549
|
// For use in libraries implementing .is()
|
|
1546
1550
|
// We use this for POS matching in `select`
|
|
1547
1551
|
needsContext: new RegExp("^" + j + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + j + "*((?:-\\d)?\\d*)" + j + "*\\)|)(?=[^-]|$)", "i")
|
|
1548
|
-
}, Ct = /^(?:input|select|textarea|button)$/i, At = /^h\d$/i, it = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
|
|
1552
|
+
}, Ct = /^(?:input|select|textarea|button)$/i, At = /^h\d$/i, it = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, dr = /[+~]/, yt = new RegExp("\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\([^\\r\\n\\f])", "g"), bt = function(p, b) {
|
|
1549
1553
|
var E = "0x" + p.slice(1) - 65536;
|
|
1550
1554
|
return b || (E < 0 ? String.fromCharCode(E + 65536) : String.fromCharCode(E >> 10 | 55296, E & 1023 | 56320));
|
|
1551
|
-
},
|
|
1555
|
+
}, Qo = function() {
|
|
1552
1556
|
kt();
|
|
1553
|
-
},
|
|
1557
|
+
}, es = Si(
|
|
1554
1558
|
function(p) {
|
|
1555
1559
|
return p.disabled === !0 && me(p, "fieldset");
|
|
1556
1560
|
},
|
|
1557
1561
|
{ dir: "parentNode", next: "legend" }
|
|
1558
1562
|
);
|
|
1559
|
-
function
|
|
1563
|
+
function ts() {
|
|
1560
1564
|
try {
|
|
1561
1565
|
return u.activeElement;
|
|
1562
1566
|
} catch {
|
|
@@ -1564,20 +1568,20 @@ function mo() {
|
|
|
1564
1568
|
}
|
|
1565
1569
|
try {
|
|
1566
1570
|
l.apply(
|
|
1567
|
-
h =
|
|
1571
|
+
h = L.call(g.childNodes),
|
|
1568
1572
|
g.childNodes
|
|
1569
1573
|
), h[g.childNodes.length].nodeType;
|
|
1570
1574
|
} catch {
|
|
1571
1575
|
l = {
|
|
1572
1576
|
apply: function(b, E) {
|
|
1573
|
-
De.apply(b,
|
|
1577
|
+
De.apply(b, L.call(E));
|
|
1574
1578
|
},
|
|
1575
1579
|
call: function(b) {
|
|
1576
|
-
De.apply(b,
|
|
1580
|
+
De.apply(b, L.call(arguments, 1));
|
|
1577
1581
|
}
|
|
1578
1582
|
};
|
|
1579
1583
|
}
|
|
1580
|
-
function
|
|
1584
|
+
function be(p, b, E, N) {
|
|
1581
1585
|
var I, F, $, Y, X, se, te, re = b && b.ownerDocument, ae = b ? b.nodeType : 9;
|
|
1582
1586
|
if (E = E || [], typeof p != "string" || !p || ae !== 1 && ae !== 9 && ae !== 11)
|
|
1583
1587
|
return E;
|
|
@@ -1590,7 +1594,7 @@ function mo() {
|
|
|
1590
1594
|
return l.call(E, $), E;
|
|
1591
1595
|
} else
|
|
1592
1596
|
return E;
|
|
1593
|
-
else if (re && ($ = re.getElementById(I)) &&
|
|
1597
|
+
else if (re && ($ = re.getElementById(I)) && be.contains(b, $) && $.id === I)
|
|
1594
1598
|
return l.call(E, $), E;
|
|
1595
1599
|
} else {
|
|
1596
1600
|
if (X[2])
|
|
@@ -1599,8 +1603,8 @@ function mo() {
|
|
|
1599
1603
|
return l.apply(E, b.getElementsByClassName(I)), E;
|
|
1600
1604
|
}
|
|
1601
1605
|
if (!Oe[p + " "] && (!w || !w.test(p))) {
|
|
1602
|
-
if (te = p, re = b, ae === 1 && (
|
|
1603
|
-
for (re =
|
|
1606
|
+
if (te = p, re = b, ae === 1 && (fr.test(p) || li.test(p))) {
|
|
1607
|
+
for (re = dr.test(p) && hr(b.parentNode) || b, (re != b || !V.scope) && ((Y = b.getAttribute("id")) ? Y = o.escapeSelector(Y) : b.setAttribute("id", Y = O)), se = ui(p), F = se.length; F--; )
|
|
1604
1608
|
se[F] = (Y ? "#" + Y : ":scope") + " " + Ti(se[F]);
|
|
1605
1609
|
te = se.join(",");
|
|
1606
1610
|
}
|
|
@@ -1616,7 +1620,7 @@ function mo() {
|
|
|
1616
1620
|
}
|
|
1617
1621
|
}
|
|
1618
1622
|
}
|
|
1619
|
-
return
|
|
1623
|
+
return xn(p.replace(C, "$1"), b, E, N);
|
|
1620
1624
|
}
|
|
1621
1625
|
function xi() {
|
|
1622
1626
|
var p = [];
|
|
@@ -1638,20 +1642,20 @@ function mo() {
|
|
|
1638
1642
|
b.parentNode && b.parentNode.removeChild(b), b = null;
|
|
1639
1643
|
}
|
|
1640
1644
|
}
|
|
1641
|
-
function
|
|
1645
|
+
function is(p) {
|
|
1642
1646
|
return function(b) {
|
|
1643
1647
|
return me(b, "input") && b.type === p;
|
|
1644
1648
|
};
|
|
1645
1649
|
}
|
|
1646
|
-
function
|
|
1650
|
+
function rs(p) {
|
|
1647
1651
|
return function(b) {
|
|
1648
1652
|
return (me(b, "input") || me(b, "button")) && b.type === p;
|
|
1649
1653
|
};
|
|
1650
1654
|
}
|
|
1651
|
-
function
|
|
1655
|
+
function bn(p) {
|
|
1652
1656
|
return function(b) {
|
|
1653
1657
|
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
|
|
1654
|
-
b.isDisabled !== !p &&
|
|
1658
|
+
b.isDisabled !== !p && es(b) === p : b.disabled === p : "label" in b ? b.disabled === p : !1;
|
|
1655
1659
|
};
|
|
1656
1660
|
}
|
|
1657
1661
|
function Rt(p) {
|
|
@@ -1662,7 +1666,7 @@ function mo() {
|
|
|
1662
1666
|
});
|
|
1663
1667
|
});
|
|
1664
1668
|
}
|
|
1665
|
-
function
|
|
1669
|
+
function hr(p) {
|
|
1666
1670
|
return p && typeof p.getElementsByTagName < "u" && p;
|
|
1667
1671
|
}
|
|
1668
1672
|
function kt(p) {
|
|
@@ -1671,7 +1675,7 @@ function mo() {
|
|
|
1671
1675
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
|
1672
1676
|
// two documents; shallow comparisons work.
|
|
1673
1677
|
// eslint-disable-next-line eqeqeq
|
|
1674
|
-
g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload",
|
|
1678
|
+
g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload", Qo), V.getById = Yt(function(N) {
|
|
1675
1679
|
return y.appendChild(N).id = o.expando, !u.getElementsByName || !u.getElementsByName(o.expando).length;
|
|
1676
1680
|
}), V.disconnectedMatch = Yt(function(N) {
|
|
1677
1681
|
return P.call(N, "*");
|
|
@@ -1726,12 +1730,12 @@ function mo() {
|
|
|
1726
1730
|
return F || (F = (N.ownerDocument || N) == (I.ownerDocument || I) ? N.compareDocumentPosition(I) : (
|
|
1727
1731
|
// Otherwise we know they are disconnected
|
|
1728
1732
|
1
|
|
1729
|
-
), F & 1 || !V.sortDetached && I.compareDocumentPosition(N) === F ? N === u || N.ownerDocument == g &&
|
|
1733
|
+
), F & 1 || !V.sortDetached && I.compareDocumentPosition(N) === F ? N === u || N.ownerDocument == g && be.contains(g, N) ? -1 : I === u || I.ownerDocument == g && be.contains(g, I) ? 1 : n ? k.call(n, N) - k.call(n, I) : 0 : F & 4 ? -1 : 1);
|
|
1730
1734
|
}), u;
|
|
1731
1735
|
}
|
|
1732
|
-
|
|
1733
|
-
return
|
|
1734
|
-
},
|
|
1736
|
+
be.matches = function(p, b) {
|
|
1737
|
+
return be(p, null, null, b);
|
|
1738
|
+
}, be.matchesSelector = function(p, b) {
|
|
1735
1739
|
if (kt(p), m && !Oe[b + " "] && (!w || !w.test(b)))
|
|
1736
1740
|
try {
|
|
1737
1741
|
var E = P.call(p, b);
|
|
@@ -1742,26 +1746,26 @@ function mo() {
|
|
|
1742
1746
|
} catch {
|
|
1743
1747
|
Oe(b, !0);
|
|
1744
1748
|
}
|
|
1745
|
-
return
|
|
1746
|
-
},
|
|
1749
|
+
return be(b, u, null, [p]).length > 0;
|
|
1750
|
+
}, be.contains = function(p, b) {
|
|
1747
1751
|
return (p.ownerDocument || p) != u && kt(p), o.contains(p, b);
|
|
1748
|
-
},
|
|
1752
|
+
}, be.attr = function(p, b) {
|
|
1749
1753
|
(p.ownerDocument || p) != u && kt(p);
|
|
1750
|
-
var E = i.attrHandle[b.toLowerCase()], N = E &&
|
|
1754
|
+
var E = i.attrHandle[b.toLowerCase()], N = E && ye.call(i.attrHandle, b.toLowerCase()) ? E(p, b, !m) : void 0;
|
|
1751
1755
|
return N !== void 0 ? N : p.getAttribute(b);
|
|
1752
|
-
},
|
|
1756
|
+
}, be.error = function(p) {
|
|
1753
1757
|
throw new Error("Syntax error, unrecognized expression: " + p);
|
|
1754
1758
|
}, o.uniqueSort = function(p) {
|
|
1755
1759
|
var b, E = [], N = 0, I = 0;
|
|
1756
|
-
if (a = !V.sortStable, n = !V.sortStable &&
|
|
1760
|
+
if (a = !V.sortStable, n = !V.sortStable && L.call(p, 0), Ui.call(p, Pe), a) {
|
|
1757
1761
|
for (; b = p[I++]; )
|
|
1758
1762
|
b === p[I] && (N = E.push(I));
|
|
1759
1763
|
for (; N--; )
|
|
1760
|
-
|
|
1764
|
+
Gi.call(p, E[N], 1);
|
|
1761
1765
|
}
|
|
1762
1766
|
return n = null, p;
|
|
1763
1767
|
}, o.fn.uniqueSort = function() {
|
|
1764
|
-
return this.pushStack(o.uniqueSort(
|
|
1768
|
+
return this.pushStack(o.uniqueSort(L.apply(this)));
|
|
1765
1769
|
}, i = o.expr = {
|
|
1766
1770
|
// Can be adjusted by the user
|
|
1767
1771
|
cacheLength: 50,
|
|
@@ -1780,7 +1784,7 @@ function mo() {
|
|
|
1780
1784
|
return p[1] = p[1].replace(yt, bt), p[3] = (p[3] || p[4] || p[5] || "").replace(yt, bt), p[2] === "~=" && (p[3] = " " + p[3] + " "), p.slice(0, 4);
|
|
1781
1785
|
},
|
|
1782
1786
|
CHILD: function(p) {
|
|
1783
|
-
return p[1] = p[1].toLowerCase(), p[1].slice(0, 3) === "nth" ? (p[3] ||
|
|
1787
|
+
return p[1] = p[1].toLowerCase(), p[1].slice(0, 3) === "nth" ? (p[3] || be.error(p[0]), p[4] = +(p[4] ? p[5] + (p[6] || 1) : 2 * (p[3] === "even" || p[3] === "odd")), p[5] = +(p[7] + p[8] || p[3] === "odd")) : p[3] && be.error(p[0]), p;
|
|
1784
1788
|
},
|
|
1785
1789
|
PSEUDO: function(p) {
|
|
1786
1790
|
var b, E = !p[6] && p[2];
|
|
@@ -1808,7 +1812,7 @@ function mo() {
|
|
|
1808
1812
|
},
|
|
1809
1813
|
ATTR: function(p, b, E) {
|
|
1810
1814
|
return function(N) {
|
|
1811
|
-
var I =
|
|
1815
|
+
var I = be.attr(N, p);
|
|
1812
1816
|
return I == null ? b === "!=" : b ? (I += "", b === "=" ? I === E : b === "!=" ? I !== E : b === "^=" ? E && I.indexOf(E) === 0 : b === "*=" ? E && I.indexOf(E) > -1 : b === "$=" ? E && I.slice(-E.length) === E : b === "~=" ? (" " + I.replace(he, " ") + " ").indexOf(E) > -1 : b === "|=" ? I === E || I.slice(0, E.length + 1) === E + "-" : !1) : !0;
|
|
1813
1817
|
};
|
|
1814
1818
|
},
|
|
@@ -1832,24 +1836,24 @@ function mo() {
|
|
|
1832
1836
|
return !0;
|
|
1833
1837
|
}
|
|
1834
1838
|
if (Ue = [$ ? rt.firstChild : rt.lastChild], $ && Ut) {
|
|
1835
|
-
for (ae = rt[O] || (rt[O] = {}), re = ae[p] || [], xe = re[0] ===
|
|
1839
|
+
for (ae = rt[O] || (rt[O] = {}), re = ae[p] || [], xe = re[0] === A && re[1], We = xe && re[2], J = xe && rt.childNodes[xe]; J = ++xe && J && J[Be] || // Fallback to seeking `elem` from the start
|
|
1836
1840
|
(We = xe = 0) || Ue.pop(); )
|
|
1837
1841
|
if (J.nodeType === 1 && ++We && J === X) {
|
|
1838
|
-
ae[p] = [
|
|
1842
|
+
ae[p] = [A, xe, We];
|
|
1839
1843
|
break;
|
|
1840
1844
|
}
|
|
1841
|
-
} else if (Ut && (ae = X[O] || (X[O] = {}), re = ae[p] || [], xe = re[0] ===
|
|
1842
|
-
for (; (J = ++xe && J && J[Be] || (We = xe = 0) || Ue.pop()) && !((Y ? me(J, ht) : J.nodeType === 1) && ++We && (Ut && (ae = J[O] || (J[O] = {}), ae[p] = [
|
|
1845
|
+
} else if (Ut && (ae = X[O] || (X[O] = {}), re = ae[p] || [], xe = re[0] === A && re[1], We = xe), We === !1)
|
|
1846
|
+
for (; (J = ++xe && J && J[Be] || (We = xe = 0) || Ue.pop()) && !((Y ? me(J, ht) : J.nodeType === 1) && ++We && (Ut && (ae = J[O] || (J[O] = {}), ae[p] = [A, We]), J === X)); )
|
|
1843
1847
|
;
|
|
1844
1848
|
return We -= I, We === N || We % N === 0 && We / N >= 0;
|
|
1845
1849
|
}
|
|
1846
1850
|
};
|
|
1847
1851
|
},
|
|
1848
1852
|
PSEUDO: function(p, b) {
|
|
1849
|
-
var E, N = i.pseudos[p] || i.setFilters[p.toLowerCase()] ||
|
|
1853
|
+
var E, N = i.pseudos[p] || i.setFilters[p.toLowerCase()] || be.error("unsupported pseudo: " + p);
|
|
1850
1854
|
return N[O] ? N(b) : N.length > 1 ? (E = [p, p, "", b], i.setFilters.hasOwnProperty(p.toLowerCase()) ? st(function(I, F) {
|
|
1851
1855
|
for (var $, Y = N(I, b), X = Y.length; X--; )
|
|
1852
|
-
$ =
|
|
1856
|
+
$ = k.call(I, Y[X]), I[$] = !(F[$] = Y[X]);
|
|
1853
1857
|
}) : function(I) {
|
|
1854
1858
|
return N(I, 0, E);
|
|
1855
1859
|
}) : N;
|
|
@@ -1858,7 +1862,7 @@ function mo() {
|
|
|
1858
1862
|
pseudos: {
|
|
1859
1863
|
// Potentially complex pseudos
|
|
1860
1864
|
not: st(function(p) {
|
|
1861
|
-
var b = [], E = [], N =
|
|
1865
|
+
var b = [], E = [], N = vr(p.replace(C, "$1"));
|
|
1862
1866
|
return N[O] ? st(function(I, F, $, Y) {
|
|
1863
1867
|
for (var X, se = N(I, null, Y, []), te = I.length; te--; )
|
|
1864
1868
|
(X = se[te]) && (I[te] = !(F[te] = X));
|
|
@@ -1868,7 +1872,7 @@ function mo() {
|
|
|
1868
1872
|
}),
|
|
1869
1873
|
has: st(function(p) {
|
|
1870
1874
|
return function(b) {
|
|
1871
|
-
return
|
|
1875
|
+
return be(p, b).length > 0;
|
|
1872
1876
|
};
|
|
1873
1877
|
}),
|
|
1874
1878
|
contains: st(function(p) {
|
|
@@ -1884,7 +1888,7 @@ function mo() {
|
|
|
1884
1888
|
// The identifier C does not have to be a valid language name."
|
|
1885
1889
|
// https://www.w3.org/TR/selectors/#lang-pseudo
|
|
1886
1890
|
lang: st(function(p) {
|
|
1887
|
-
return ci.test(p || "") ||
|
|
1891
|
+
return ci.test(p || "") || be.error("unsupported lang: " + p), p = p.replace(yt, bt).toLowerCase(), function(b) {
|
|
1888
1892
|
var E;
|
|
1889
1893
|
do
|
|
1890
1894
|
if (E = m ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang"))
|
|
@@ -1902,11 +1906,11 @@ function mo() {
|
|
|
1902
1906
|
return p === y;
|
|
1903
1907
|
},
|
|
1904
1908
|
focus: function(p) {
|
|
1905
|
-
return p ===
|
|
1909
|
+
return p === ts() && u.hasFocus() && !!(p.type || p.href || ~p.tabIndex);
|
|
1906
1910
|
},
|
|
1907
1911
|
// Boolean properties
|
|
1908
|
-
enabled:
|
|
1909
|
-
disabled:
|
|
1912
|
+
enabled: bn(!1),
|
|
1913
|
+
disabled: bn(!0),
|
|
1910
1914
|
checked: function(p) {
|
|
1911
1915
|
return me(p, "input") && !!p.checked || me(p, "option") && !!p.selected;
|
|
1912
1916
|
},
|
|
@@ -1974,12 +1978,12 @@ function mo() {
|
|
|
1974
1978
|
}
|
|
1975
1979
|
}, i.pseudos.nth = i.pseudos.eq;
|
|
1976
1980
|
for (t in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })
|
|
1977
|
-
i.pseudos[t] =
|
|
1981
|
+
i.pseudos[t] = is(t);
|
|
1978
1982
|
for (t in { submit: !0, reset: !0 })
|
|
1979
|
-
i.pseudos[t] =
|
|
1980
|
-
function
|
|
1983
|
+
i.pseudos[t] = rs(t);
|
|
1984
|
+
function wn() {
|
|
1981
1985
|
}
|
|
1982
|
-
|
|
1986
|
+
wn.prototype = i.filters = i.pseudos, i.setFilters = new wn();
|
|
1983
1987
|
function ui(p, b) {
|
|
1984
1988
|
var E, N, I, F, $, Y, X, se = de[p + " "];
|
|
1985
1989
|
if (se)
|
|
@@ -1999,7 +2003,7 @@ function mo() {
|
|
|
1999
2003
|
if (!E)
|
|
2000
2004
|
break;
|
|
2001
2005
|
}
|
|
2002
|
-
return b ? $.length : $ ?
|
|
2006
|
+
return b ? $.length : $ ? be.error(p) : (
|
|
2003
2007
|
// Cache the tokens
|
|
2004
2008
|
de(p, Y).slice(0)
|
|
2005
2009
|
);
|
|
@@ -2022,7 +2026,7 @@ function mo() {
|
|
|
2022
2026
|
) : (
|
|
2023
2027
|
// Check against all ancestor/preceding elements
|
|
2024
2028
|
function(X, se, te) {
|
|
2025
|
-
var re, ae, J = [
|
|
2029
|
+
var re, ae, J = [A, Y];
|
|
2026
2030
|
if (te) {
|
|
2027
2031
|
for (; X = X[N]; )
|
|
2028
2032
|
if ((X.nodeType === 1 || $) && p(X, se, te))
|
|
@@ -2033,7 +2037,7 @@ function mo() {
|
|
|
2033
2037
|
if (ae = X[O] || (X[O] = {}), I && me(X, I))
|
|
2034
2038
|
X = X[N] || X;
|
|
2035
2039
|
else {
|
|
2036
|
-
if ((re = ae[F]) && re[0] ===
|
|
2040
|
+
if ((re = ae[F]) && re[0] === A && re[1] === Y)
|
|
2037
2041
|
return J[2] = re[2];
|
|
2038
2042
|
if (ae[F] = J, J[2] = p(X, se, te))
|
|
2039
2043
|
return !0;
|
|
@@ -2042,7 +2046,7 @@ function mo() {
|
|
|
2042
2046
|
}
|
|
2043
2047
|
);
|
|
2044
2048
|
}
|
|
2045
|
-
function
|
|
2049
|
+
function pr(p) {
|
|
2046
2050
|
return p.length > 1 ? function(b, E, N) {
|
|
2047
2051
|
for (var I = p.length; I--; )
|
|
2048
2052
|
if (!p[I](b, E, N))
|
|
@@ -2050,9 +2054,9 @@ function mo() {
|
|
|
2050
2054
|
return !0;
|
|
2051
2055
|
} : p[0];
|
|
2052
2056
|
}
|
|
2053
|
-
function
|
|
2057
|
+
function ns(p, b, E) {
|
|
2054
2058
|
for (var N = 0, I = b.length; N < I; N++)
|
|
2055
|
-
|
|
2059
|
+
be(p, b[N], E);
|
|
2056
2060
|
return E;
|
|
2057
2061
|
}
|
|
2058
2062
|
function Ei(p, b, E, N, I) {
|
|
@@ -2060,9 +2064,9 @@ function mo() {
|
|
|
2060
2064
|
(F = p[Y]) && (!E || E(F, N, I)) && ($.push(F), se && b.push(Y));
|
|
2061
2065
|
return $;
|
|
2062
2066
|
}
|
|
2063
|
-
function
|
|
2064
|
-
return N && !N[O] && (N =
|
|
2065
|
-
var te, re, ae, J, xe = [], Ue = [], Be = Y.length, rt = $ ||
|
|
2067
|
+
function gr(p, b, E, N, I, F) {
|
|
2068
|
+
return N && !N[O] && (N = gr(N)), I && !I[O] && (I = gr(I, F)), st(function($, Y, X, se) {
|
|
2069
|
+
var te, re, ae, J, xe = [], Ue = [], Be = Y.length, rt = $ || ns(
|
|
2066
2070
|
b || "*",
|
|
2067
2071
|
X.nodeType ? [X] : X,
|
|
2068
2072
|
[]
|
|
@@ -2084,7 +2088,7 @@ function mo() {
|
|
|
2084
2088
|
I(null, J = [], te, se);
|
|
2085
2089
|
}
|
|
2086
2090
|
for (re = J.length; re--; )
|
|
2087
|
-
(ae = J[re]) && (te = I ?
|
|
2091
|
+
(ae = J[re]) && (te = I ? k.call($, ae) : xe[re]) > -1 && ($[te] = !(Y[te] = ae));
|
|
2088
2092
|
}
|
|
2089
2093
|
} else
|
|
2090
2094
|
J = Ei(
|
|
@@ -2092,40 +2096,40 @@ function mo() {
|
|
|
2092
2096
|
), I ? I(null, Y, J, se) : l.apply(Y, J);
|
|
2093
2097
|
});
|
|
2094
2098
|
}
|
|
2095
|
-
function
|
|
2099
|
+
function mr(p) {
|
|
2096
2100
|
for (var b, E, N, I = p.length, F = i.relative[p[0].type], $ = F || i.relative[" "], Y = F ? 1 : 0, X = Si(function(re) {
|
|
2097
2101
|
return re === b;
|
|
2098
2102
|
}, $, !0), se = Si(function(re) {
|
|
2099
|
-
return
|
|
2103
|
+
return k.call(b, re) > -1;
|
|
2100
2104
|
}, $, !0), te = [function(re, ae, J) {
|
|
2101
2105
|
var xe = !F && (J || ae != r) || ((b = ae).nodeType ? X(re, ae, J) : se(re, ae, J));
|
|
2102
2106
|
return b = null, xe;
|
|
2103
2107
|
}]; Y < I; Y++)
|
|
2104
2108
|
if (E = i.relative[p[Y].type])
|
|
2105
|
-
te = [Si(
|
|
2109
|
+
te = [Si(pr(te), E)];
|
|
2106
2110
|
else {
|
|
2107
2111
|
if (E = i.filter[p[Y].type].apply(null, p[Y].matches), E[O]) {
|
|
2108
2112
|
for (N = ++Y; N < I && !i.relative[p[N].type]; N++)
|
|
2109
2113
|
;
|
|
2110
|
-
return
|
|
2111
|
-
Y > 1 &&
|
|
2114
|
+
return gr(
|
|
2115
|
+
Y > 1 && pr(te),
|
|
2112
2116
|
Y > 1 && Ti(
|
|
2113
2117
|
// If the preceding token was a descendant combinator, insert an implicit any-element `*`
|
|
2114
2118
|
p.slice(0, Y - 1).concat({ value: p[Y - 2].type === " " ? "*" : "" })
|
|
2115
2119
|
).replace(C, "$1"),
|
|
2116
2120
|
E,
|
|
2117
|
-
Y < N &&
|
|
2118
|
-
N < I &&
|
|
2121
|
+
Y < N && mr(p.slice(Y, N)),
|
|
2122
|
+
N < I && mr(p = p.slice(N)),
|
|
2119
2123
|
N < I && Ti(p)
|
|
2120
2124
|
);
|
|
2121
2125
|
}
|
|
2122
2126
|
te.push(E);
|
|
2123
2127
|
}
|
|
2124
|
-
return
|
|
2128
|
+
return pr(te);
|
|
2125
2129
|
}
|
|
2126
|
-
function
|
|
2130
|
+
function os(p, b) {
|
|
2127
2131
|
var E = b.length > 0, N = p.length > 0, I = function(F, $, Y, X, se) {
|
|
2128
|
-
var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], rt = r, ht = F || N && i.find.TAG("*", se), Ut =
|
|
2132
|
+
var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], rt = r, ht = F || N && i.find.TAG("*", se), Ut = A += rt == null ? 1 : Math.random() || 0.1, We = ht.length;
|
|
2129
2133
|
for (se && (r = $ == u || $ || se); xe !== We && (te = ht[xe]) != null; xe++) {
|
|
2130
2134
|
if (N && te) {
|
|
2131
2135
|
for (re = 0, !$ && te.ownerDocument != u && (kt(te), Y = !m); ae = p[re++]; )
|
|
@@ -2133,7 +2137,7 @@ function mo() {
|
|
|
2133
2137
|
l.call(X, te);
|
|
2134
2138
|
break;
|
|
2135
2139
|
}
|
|
2136
|
-
se && (
|
|
2140
|
+
se && (A = Ut);
|
|
2137
2141
|
}
|
|
2138
2142
|
E && ((te = !ae && te) && J--, F && Ue.push(te));
|
|
2139
2143
|
}
|
|
@@ -2148,23 +2152,23 @@ function mo() {
|
|
|
2148
2152
|
}
|
|
2149
2153
|
l.apply(X, Be), se && !F && Be.length > 0 && J + b.length > 1 && o.uniqueSort(X);
|
|
2150
2154
|
}
|
|
2151
|
-
return se && (
|
|
2155
|
+
return se && (A = Ut, r = rt), Ue;
|
|
2152
2156
|
};
|
|
2153
2157
|
return E ? st(I) : I;
|
|
2154
2158
|
}
|
|
2155
|
-
function
|
|
2159
|
+
function vr(p, b) {
|
|
2156
2160
|
var E, N = [], I = [], F = ne[p + " "];
|
|
2157
2161
|
if (!F) {
|
|
2158
2162
|
for (b || (b = ui(p)), E = b.length; E--; )
|
|
2159
|
-
F =
|
|
2163
|
+
F = mr(b[E]), F[O] ? N.push(F) : I.push(F);
|
|
2160
2164
|
F = ne(
|
|
2161
2165
|
p,
|
|
2162
|
-
|
|
2166
|
+
os(I, N)
|
|
2163
2167
|
), F.selector = p;
|
|
2164
2168
|
}
|
|
2165
2169
|
return F;
|
|
2166
2170
|
}
|
|
2167
|
-
function
|
|
2171
|
+
function xn(p, b, E, N) {
|
|
2168
2172
|
var I, F, $, Y, X, se = typeof p == "function" && p, te = !N && ui(p = se.selector || p);
|
|
2169
2173
|
if (E = E || [], te.length === 1) {
|
|
2170
2174
|
if (F = te[0] = te[0].slice(0), F.length > 2 && ($ = F[0]).type === "ID" && b.nodeType === 9 && m && i.relative[F[1].type]) {
|
|
@@ -2179,24 +2183,24 @@ function mo() {
|
|
|
2179
2183
|
for (I = dt.needsContext.test(p) ? 0 : F.length; I-- && ($ = F[I], !i.relative[Y = $.type]); )
|
|
2180
2184
|
if ((X = i.find[Y]) && (N = X(
|
|
2181
2185
|
$.matches[0].replace(yt, bt),
|
|
2182
|
-
|
|
2186
|
+
dr.test(F[0].type) && hr(b.parentNode) || b
|
|
2183
2187
|
))) {
|
|
2184
2188
|
if (F.splice(I, 1), p = N.length && Ti(F), !p)
|
|
2185
2189
|
return l.apply(E, N), E;
|
|
2186
2190
|
break;
|
|
2187
2191
|
}
|
|
2188
2192
|
}
|
|
2189
|
-
return (se ||
|
|
2193
|
+
return (se || vr(p, te))(
|
|
2190
2194
|
N,
|
|
2191
2195
|
b,
|
|
2192
2196
|
!m,
|
|
2193
2197
|
E,
|
|
2194
|
-
!b ||
|
|
2198
|
+
!b || dr.test(p) && hr(b.parentNode) || b
|
|
2195
2199
|
), E;
|
|
2196
2200
|
}
|
|
2197
2201
|
V.sortStable = O.split("").sort(Pe).join("") === O, kt(), V.sortDetached = Yt(function(p) {
|
|
2198
2202
|
return p.compareDocumentPosition(u.createElement("fieldset")) & 1;
|
|
2199
|
-
}), o.find =
|
|
2203
|
+
}), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select = xn, be.setDocument = kt, 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;
|
|
2200
2204
|
})();
|
|
2201
2205
|
var ge = function(t, i, r) {
|
|
2202
2206
|
for (var n = [], a = r !== void 0; (t = t[i]) && t.nodeType !== 9; )
|
|
@@ -2217,7 +2221,7 @@ function mo() {
|
|
|
2217
2221
|
}) : i.nodeType ? o.grep(t, function(n) {
|
|
2218
2222
|
return n === i !== r;
|
|
2219
2223
|
}) : typeof i != "string" ? o.grep(t, function(n) {
|
|
2220
|
-
return
|
|
2224
|
+
return k.call(i, n) > -1 !== r;
|
|
2221
2225
|
}) : o.filter(i, t, r);
|
|
2222
2226
|
}
|
|
2223
2227
|
o.filter = function(t, i, r) {
|
|
@@ -2316,7 +2320,7 @@ function mo() {
|
|
|
2316
2320
|
},
|
|
2317
2321
|
// Determine the position of an element within the set
|
|
2318
2322
|
index: function(t) {
|
|
2319
|
-
return t ? typeof t == "string" ?
|
|
2323
|
+
return t ? typeof t == "string" ? k.call(o(t), this[0]) : k.call(
|
|
2320
2324
|
this,
|
|
2321
2325
|
// If it receives a jQuery object, the first element is used
|
|
2322
2326
|
t.jquery ? t[0] : t
|
|
@@ -2388,14 +2392,14 @@ function mo() {
|
|
|
2388
2392
|
};
|
|
2389
2393
|
});
|
|
2390
2394
|
var He = /[^\x20\t\r\n\f]+/g;
|
|
2391
|
-
function
|
|
2395
|
+
function Zi(t) {
|
|
2392
2396
|
var i = {};
|
|
2393
2397
|
return o.each(t.match(He) || [], function(r, n) {
|
|
2394
2398
|
i[n] = !0;
|
|
2395
2399
|
}), i;
|
|
2396
2400
|
}
|
|
2397
2401
|
o.Callbacks = function(t) {
|
|
2398
|
-
t = typeof t == "string" ?
|
|
2402
|
+
t = typeof t == "string" ? Zi(t) : o.extend({}, t);
|
|
2399
2403
|
var i, r, n, a, l = [], u = [], y = -1, m = function() {
|
|
2400
2404
|
for (a = a || t.once, n = i = !0; u.length; y = -1)
|
|
2401
2405
|
for (r = u.shift(); ++y < l.length; )
|
|
@@ -2405,7 +2409,7 @@ function mo() {
|
|
|
2405
2409
|
// Add a callback or a collection of callbacks to the list
|
|
2406
2410
|
add: function() {
|
|
2407
2411
|
return l && (r && !i && (y = l.length - 1, u.push(r)), (function P(O) {
|
|
2408
|
-
o.each(O, function(
|
|
2412
|
+
o.each(O, function(A, R) {
|
|
2409
2413
|
G(R) ? (!t.unique || !w.has(R)) && l.push(R) : R && R.length && Ve(R) !== "string" && P(R);
|
|
2410
2414
|
});
|
|
2411
2415
|
})(arguments), r && !i && m()), this;
|
|
@@ -2413,8 +2417,8 @@ function mo() {
|
|
|
2413
2417
|
// Remove a callback from the list
|
|
2414
2418
|
remove: function() {
|
|
2415
2419
|
return o.each(arguments, function(P, O) {
|
|
2416
|
-
for (var
|
|
2417
|
-
l.splice(
|
|
2420
|
+
for (var A; (A = o.inArray(O, l, A)) > -1; )
|
|
2421
|
+
l.splice(A, 1), A <= y && y--;
|
|
2418
2422
|
}), this;
|
|
2419
2423
|
},
|
|
2420
2424
|
// Check if a given callback is in the list.
|
|
@@ -2529,12 +2533,12 @@ function mo() {
|
|
|
2529
2533
|
},
|
|
2530
2534
|
then: function(l, u, y) {
|
|
2531
2535
|
var m = 0;
|
|
2532
|
-
function w(P, O,
|
|
2536
|
+
function w(P, O, A, R) {
|
|
2533
2537
|
return function() {
|
|
2534
2538
|
var ie = this, de = arguments, ne = function() {
|
|
2535
2539
|
var Pe, ct;
|
|
2536
2540
|
if (!(P < m)) {
|
|
2537
|
-
if (Pe =
|
|
2541
|
+
if (Pe = A.apply(ie, de), Pe === O.promise())
|
|
2538
2542
|
throw new TypeError("Thenable self-resolution");
|
|
2539
2543
|
ct = Pe && // Support: Promises/A+ section 2.3.4
|
|
2540
2544
|
// https://promisesaplus.com/#point-64
|
|
@@ -2553,7 +2557,7 @@ function mo() {
|
|
|
2553
2557
|
mt,
|
|
2554
2558
|
O.notifyWith
|
|
2555
2559
|
)
|
|
2556
|
-
)) : (
|
|
2560
|
+
)) : (A !== mt && (ie = void 0, de = [Pe]), (R || O.resolveWith)(ie, de));
|
|
2557
2561
|
}
|
|
2558
2562
|
}, Oe = R ? ne : function() {
|
|
2559
2563
|
try {
|
|
@@ -2562,7 +2566,7 @@ function mo() {
|
|
|
2562
2566
|
o.Deferred.exceptionHook && o.Deferred.exceptionHook(
|
|
2563
2567
|
Pe,
|
|
2564
2568
|
Oe.error
|
|
2565
|
-
), P + 1 >= m && (
|
|
2569
|
+
), P + 1 >= m && (A !== Mt && (ie = void 0, de = [Pe]), O.rejectWith(ie, de));
|
|
2566
2570
|
}
|
|
2567
2571
|
};
|
|
2568
2572
|
P ? Oe() : (o.Deferred.getErrorHook ? Oe.error = o.Deferred.getErrorHook() : o.Deferred.getStackHook && (Oe.error = o.Deferred.getStackHook()), c.setTimeout(Oe));
|
|
@@ -2620,9 +2624,9 @@ function mo() {
|
|
|
2620
2624
|
},
|
|
2621
2625
|
// Deferred helper
|
|
2622
2626
|
when: function(t) {
|
|
2623
|
-
var i = arguments.length, r = i, n = Array(r), a =
|
|
2627
|
+
var i = arguments.length, r = i, n = Array(r), a = L.call(arguments), l = o.Deferred(), u = function(y) {
|
|
2624
2628
|
return function(m) {
|
|
2625
|
-
n[y] = this, a[y] = arguments.length > 1 ?
|
|
2629
|
+
n[y] = this, a[y] = arguments.length > 1 ? L.call(arguments) : m, --i || l.resolveWith(n, a);
|
|
2626
2630
|
};
|
|
2627
2631
|
};
|
|
2628
2632
|
if (i <= 1 && (_t(
|
|
@@ -2675,8 +2679,8 @@ function mo() {
|
|
|
2675
2679
|
a = !0;
|
|
2676
2680
|
for (y in r)
|
|
2677
2681
|
et(t, i, y, r[y], !0, l, u);
|
|
2678
|
-
} else if (n !== void 0 && (a = !0, G(n) || (u = !0), w && (u ? (i.call(t, n), i = null) : (w = i, i = function(P, O,
|
|
2679
|
-
return w.call(o(P),
|
|
2682
|
+
} else if (n !== void 0 && (a = !0, G(n) || (u = !0), w && (u ? (i.call(t, n), i = null) : (w = i, i = function(P, O, A) {
|
|
2683
|
+
return w.call(o(P), A);
|
|
2680
2684
|
})), i))
|
|
2681
2685
|
for (; y < m; y++)
|
|
2682
2686
|
i(
|
|
@@ -2738,9 +2742,9 @@ function mo() {
|
|
|
2738
2742
|
return i !== void 0 && !o.isEmptyObject(i);
|
|
2739
2743
|
}
|
|
2740
2744
|
};
|
|
2741
|
-
var M = new W(), ee = new W(),
|
|
2745
|
+
var M = new W(), ee = new W(), we = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, Ae = /[A-Z]/g;
|
|
2742
2746
|
function oe(t) {
|
|
2743
|
-
return t === "true" ? !0 : t === "false" ? !1 : t === "null" ? null : t === +t + "" ? +t :
|
|
2747
|
+
return t === "true" ? !0 : t === "false" ? !1 : t === "null" ? null : t === +t + "" ? +t : we.test(t) ? JSON.parse(t) : t;
|
|
2744
2748
|
}
|
|
2745
2749
|
function Re(t, i, r) {
|
|
2746
2750
|
var n;
|
|
@@ -2851,9 +2855,9 @@ function mo() {
|
|
|
2851
2855
|
});
|
|
2852
2856
|
var Vt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, Ht = new RegExp("^(?:([+-])=|)(" + Vt + ")([a-z%]*)$", "i"), Xe = ["Top", "Right", "Bottom", "Left"], lt = U.documentElement, Et = function(t) {
|
|
2853
2857
|
return o.contains(t.ownerDocument, t);
|
|
2854
|
-
},
|
|
2858
|
+
}, Ki = { composed: !0 };
|
|
2855
2859
|
lt.getRootNode && (Et = function(t) {
|
|
2856
|
-
return o.contains(t.ownerDocument, t) || t.getRootNode(
|
|
2860
|
+
return o.contains(t.ownerDocument, t) || t.getRootNode(Ki) === t.ownerDocument;
|
|
2857
2861
|
});
|
|
2858
2862
|
var tt = function(t, i) {
|
|
2859
2863
|
return t = i || t, t.style.display === "none" || t.style.display === "" && // Otherwise, check computed style
|
|
@@ -2930,18 +2934,18 @@ function mo() {
|
|
|
2930
2934
|
}
|
|
2931
2935
|
var Le = /<|&#?\w+;/;
|
|
2932
2936
|
function Ne(t, i, r, n, a) {
|
|
2933
|
-
for (var l, u, y, m, w, P, O = i.createDocumentFragment(),
|
|
2937
|
+
for (var l, u, y, m, w, P, O = i.createDocumentFragment(), A = [], R = 0, ie = t.length; R < ie; R++)
|
|
2934
2938
|
if (l = t[R], l || l === 0)
|
|
2935
2939
|
if (Ve(l) === "object")
|
|
2936
|
-
o.merge(
|
|
2940
|
+
o.merge(A, l.nodeType ? [l] : l);
|
|
2937
2941
|
else if (!Le.test(l))
|
|
2938
|
-
|
|
2942
|
+
A.push(i.createTextNode(l));
|
|
2939
2943
|
else {
|
|
2940
2944
|
for (u = u || O.appendChild(i.createElement("div")), y = (Ze.exec(l) || ["", ""])[1].toLowerCase(), m = ve[y] || ve._default, u.innerHTML = m[1] + o.htmlPrefilter(l) + m[2], P = m[0]; P--; )
|
|
2941
2945
|
u = u.lastChild;
|
|
2942
|
-
o.merge(
|
|
2946
|
+
o.merge(A, u.childNodes), u = O.firstChild, u.textContent = "";
|
|
2943
2947
|
}
|
|
2944
|
-
for (O.textContent = "", R = 0; l =
|
|
2948
|
+
for (O.textContent = "", R = 0; l = A[R++]; ) {
|
|
2945
2949
|
if (n && o.inArray(l, n) > -1) {
|
|
2946
2950
|
a && a.push(l);
|
|
2947
2951
|
continue;
|
|
@@ -2959,12 +2963,12 @@ function mo() {
|
|
|
2959
2963
|
function je() {
|
|
2960
2964
|
return !1;
|
|
2961
2965
|
}
|
|
2962
|
-
function
|
|
2966
|
+
function Ji(t, i, r, n, a, l) {
|
|
2963
2967
|
var u, y;
|
|
2964
2968
|
if (typeof i == "object") {
|
|
2965
2969
|
typeof r != "string" && (n = n || r, r = void 0);
|
|
2966
2970
|
for (y in i)
|
|
2967
|
-
|
|
2971
|
+
Ji(t, y, r, n, i[y], l);
|
|
2968
2972
|
return t;
|
|
2969
2973
|
}
|
|
2970
2974
|
if (n == null && a == null ? (a = r, n = r = void 0) : a == null && (typeof r == "string" ? (a = n, n = void 0) : (a = n, n = r, r = void 0)), a === !1)
|
|
@@ -2980,7 +2984,7 @@ function mo() {
|
|
|
2980
2984
|
o.event = {
|
|
2981
2985
|
global: {},
|
|
2982
2986
|
add: function(t, i, r, n, a) {
|
|
2983
|
-
var l, u, y, m, w, P, O,
|
|
2987
|
+
var l, u, y, m, w, P, O, A, R, ie, de, ne = M.get(t);
|
|
2984
2988
|
if (H(t))
|
|
2985
2989
|
for (r.handler && (l = r, r = l.handler, a = l.selector), a && o.find.matchesSelector(lt, a), r.guid || (r.guid = o.guid++), (m = ne.events) || (m = ne.events = /* @__PURE__ */ Object.create(null)), (u = ne.handle) || (u = ne.handle = function(Oe) {
|
|
2986
2990
|
return typeof o < "u" && o.event.triggered !== Oe.type ? o.event.dispatch.apply(t, arguments) : void 0;
|
|
@@ -2994,11 +2998,11 @@ function mo() {
|
|
|
2994
2998
|
selector: a,
|
|
2995
2999
|
needsContext: a && o.expr.match.needsContext.test(a),
|
|
2996
3000
|
namespace: ie.join(".")
|
|
2997
|
-
}, l), (
|
|
3001
|
+
}, l), (A = m[R]) || (A = m[R] = [], A.delegateCount = 0, (!O.setup || O.setup.call(t, n, ie, u) === !1) && t.addEventListener && t.addEventListener(R, u)), O.add && (O.add.call(t, P), P.handler.guid || (P.handler.guid = r.guid)), a ? A.splice(A.delegateCount++, 0, P) : A.push(P), o.event.global[R] = !0);
|
|
2998
3002
|
},
|
|
2999
3003
|
// Detach an event or set of events from an element
|
|
3000
3004
|
remove: function(t, i, r, n, a) {
|
|
3001
|
-
var l, u, y, m, w, P, O,
|
|
3005
|
+
var l, u, y, m, w, P, O, A, R, ie, de, ne = M.hasData(t) && M.get(t);
|
|
3002
3006
|
if (!(!ne || !(m = ne.events))) {
|
|
3003
3007
|
for (i = (i || "").match(He) || [""], w = i.length; w--; ) {
|
|
3004
3008
|
if (y = nt.exec(i[w]) || [], R = de = y[1], ie = (y[2] || "").split(".").sort(), !R) {
|
|
@@ -3006,9 +3010,9 @@ function mo() {
|
|
|
3006
3010
|
o.event.remove(t, R + i[w], r, n, !0);
|
|
3007
3011
|
continue;
|
|
3008
3012
|
}
|
|
3009
|
-
for (O = o.event.special[R] || {}, R = (n ? O.delegateType : O.bindType) || R,
|
|
3010
|
-
P =
|
|
3011
|
-
u && !
|
|
3013
|
+
for (O = o.event.special[R] || {}, R = (n ? O.delegateType : O.bindType) || R, A = m[R] || [], y = y[2] && new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = l = A.length; l--; )
|
|
3014
|
+
P = A[l], (a || de === P.origType) && (!r || r.guid === P.guid) && (!y || y.test(P.namespace)) && (!n || n === P.selector || n === "**" && P.selector) && (A.splice(l, 1), P.selector && A.delegateCount--, O.remove && O.remove.call(t, P));
|
|
3015
|
+
u && !A.length && ((!O.teardown || O.teardown.call(t, ie, ne.handle) === !1) && o.removeEvent(t, R, ne.handle), delete m[R]);
|
|
3012
3016
|
}
|
|
3013
3017
|
o.isEmptyObject(m) && M.remove(t, "handle events");
|
|
3014
3018
|
}
|
|
@@ -3108,7 +3112,7 @@ function mo() {
|
|
|
3108
3112
|
if (n.isTrigger & 1 && this[i]) {
|
|
3109
3113
|
if (l)
|
|
3110
3114
|
(o.event.special[i] || {}).delegateType && n.stopPropagation();
|
|
3111
|
-
else if (l =
|
|
3115
|
+
else if (l = L.call(arguments), M.set(this, i, l), this[i](), a = M.get(this, i), M.set(this, i, !1), l !== a)
|
|
3112
3116
|
return n.stopImmediatePropagation(), n.preventDefault(), a;
|
|
3113
3117
|
} else l && (M.set(this, i, o.event.trigger(
|
|
3114
3118
|
l[0],
|
|
@@ -3238,10 +3242,10 @@ function mo() {
|
|
|
3238
3242
|
};
|
|
3239
3243
|
}), o.fn.extend({
|
|
3240
3244
|
on: function(t, i, r, n) {
|
|
3241
|
-
return
|
|
3245
|
+
return Ji(this, t, i, r, n);
|
|
3242
3246
|
},
|
|
3243
3247
|
one: function(t, i, r, n) {
|
|
3244
|
-
return
|
|
3248
|
+
return Ji(this, t, i, r, n, 1);
|
|
3245
3249
|
},
|
|
3246
3250
|
off: function(t, i, r) {
|
|
3247
3251
|
var n, a;
|
|
@@ -3261,17 +3265,17 @@ function mo() {
|
|
|
3261
3265
|
});
|
|
3262
3266
|
}
|
|
3263
3267
|
});
|
|
3264
|
-
var
|
|
3265
|
-
function
|
|
3268
|
+
var wo = /<script|<style|<link/i, xo = /checked\s*(?:[^=]|=\s*.checked.)/i, To = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
|
|
3269
|
+
function Gr(t, i) {
|
|
3266
3270
|
return me(t, "table") && me(i.nodeType !== 11 ? i : i.firstChild, "tr") && o(t).children("tbody")[0] || t;
|
|
3267
3271
|
}
|
|
3268
|
-
function
|
|
3272
|
+
function So(t) {
|
|
3269
3273
|
return t.type = (t.getAttribute("type") !== null) + "/" + t.type, t;
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3275
|
+
function Eo(t) {
|
|
3272
3276
|
return (t.type || "").slice(0, 5) === "true/" ? t.type = t.type.slice(5) : t.removeAttribute("type"), t;
|
|
3273
3277
|
}
|
|
3274
|
-
function
|
|
3278
|
+
function Zr(t, i) {
|
|
3275
3279
|
var r, n, a, l, u, y, m;
|
|
3276
3280
|
if (i.nodeType === 1) {
|
|
3277
3281
|
if (M.hasData(t) && (l = M.get(t), m = l.events, m)) {
|
|
@@ -3283,30 +3287,30 @@ function mo() {
|
|
|
3283
3287
|
ee.hasData(t) && (u = ee.access(t), y = o.extend({}, u), ee.set(i, y));
|
|
3284
3288
|
}
|
|
3285
3289
|
}
|
|
3286
|
-
function
|
|
3290
|
+
function Co(t, i) {
|
|
3287
3291
|
var r = i.nodeName.toLowerCase();
|
|
3288
3292
|
r === "input" && ke.test(t.type) ? i.checked = t.checked : (r === "input" || r === "textarea") && (i.defaultValue = t.defaultValue);
|
|
3289
3293
|
}
|
|
3290
3294
|
function $t(t, i, r, n) {
|
|
3291
3295
|
i = z(i);
|
|
3292
|
-
var a, l, u, y, m, w, P = 0, O = t.length,
|
|
3293
|
-
if (ie || O > 1 && typeof R == "string" && !V.checkClone &&
|
|
3296
|
+
var a, l, u, y, m, w, P = 0, O = t.length, A = O - 1, R = i[0], ie = G(R);
|
|
3297
|
+
if (ie || O > 1 && typeof R == "string" && !V.checkClone && xo.test(R))
|
|
3294
3298
|
return t.each(function(de) {
|
|
3295
3299
|
var ne = t.eq(de);
|
|
3296
3300
|
ie && (i[0] = R.call(this, de, ne.html())), $t(ne, i, r, n);
|
|
3297
3301
|
});
|
|
3298
3302
|
if (O && (a = Ne(i, t[0].ownerDocument, !1, t, n), l = a.firstChild, a.childNodes.length === 1 && (a = l), l || n)) {
|
|
3299
|
-
for (u = o.map(Ce(a, "script"),
|
|
3300
|
-
m = a, P !==
|
|
3303
|
+
for (u = o.map(Ce(a, "script"), So), y = u.length; P < O; P++)
|
|
3304
|
+
m = a, P !== A && (m = o.clone(m, !0, !0), y && o.merge(u, Ce(m, "script"))), r.call(t[P], m, P);
|
|
3301
3305
|
if (y)
|
|
3302
|
-
for (w = u[u.length - 1].ownerDocument, o.map(u,
|
|
3306
|
+
for (w = u[u.length - 1].ownerDocument, o.map(u, Eo), P = 0; P < y; P++)
|
|
3303
3307
|
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, {
|
|
3304
3308
|
nonce: m.nonce || m.getAttribute("nonce")
|
|
3305
|
-
}, w) : wt(m.textContent.replace(
|
|
3309
|
+
}, w) : wt(m.textContent.replace(To, ""), m, w));
|
|
3306
3310
|
}
|
|
3307
3311
|
return t;
|
|
3308
3312
|
}
|
|
3309
|
-
function
|
|
3313
|
+
function Kr(t, i, r) {
|
|
3310
3314
|
for (var n, a = i ? o.filter(i, t) : t, l = 0; (n = a[l]) != null; l++)
|
|
3311
3315
|
!r && n.nodeType === 1 && o.cleanData(Ce(n)), n.parentNode && (r && Et(n) && vt(Ce(n, "script")), n.parentNode.removeChild(n));
|
|
3312
3316
|
return t;
|
|
@@ -3319,13 +3323,13 @@ function mo() {
|
|
|
3319
3323
|
var n, a, l, u, y = t.cloneNode(!0), m = Et(t);
|
|
3320
3324
|
if (!V.noCloneChecked && (t.nodeType === 1 || t.nodeType === 11) && !o.isXMLDoc(t))
|
|
3321
3325
|
for (u = Ce(y), l = Ce(t), n = 0, a = l.length; n < a; n++)
|
|
3322
|
-
|
|
3326
|
+
Co(l[n], u[n]);
|
|
3323
3327
|
if (i)
|
|
3324
3328
|
if (r)
|
|
3325
3329
|
for (l = l || Ce(t), u = u || Ce(y), n = 0, a = l.length; n < a; n++)
|
|
3326
|
-
|
|
3330
|
+
Zr(l[n], u[n]);
|
|
3327
3331
|
else
|
|
3328
|
-
|
|
3332
|
+
Zr(t, y);
|
|
3329
3333
|
return u = Ce(y, "script"), u.length > 0 && vt(u, !m && Ce(t, "script")), y;
|
|
3330
3334
|
},
|
|
3331
3335
|
cleanData: function(t) {
|
|
@@ -3342,10 +3346,10 @@ function mo() {
|
|
|
3342
3346
|
}
|
|
3343
3347
|
}), o.fn.extend({
|
|
3344
3348
|
detach: function(t) {
|
|
3345
|
-
return
|
|
3349
|
+
return Kr(this, t, !0);
|
|
3346
3350
|
},
|
|
3347
3351
|
remove: function(t) {
|
|
3348
|
-
return
|
|
3352
|
+
return Kr(this, t);
|
|
3349
3353
|
},
|
|
3350
3354
|
text: function(t) {
|
|
3351
3355
|
return et(this, function(i) {
|
|
@@ -3357,7 +3361,7 @@ function mo() {
|
|
|
3357
3361
|
append: function() {
|
|
3358
3362
|
return $t(this, arguments, function(t) {
|
|
3359
3363
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3360
|
-
var i =
|
|
3364
|
+
var i = Gr(this, t);
|
|
3361
3365
|
i.appendChild(t);
|
|
3362
3366
|
}
|
|
3363
3367
|
});
|
|
@@ -3365,7 +3369,7 @@ function mo() {
|
|
|
3365
3369
|
prepend: function() {
|
|
3366
3370
|
return $t(this, arguments, function(t) {
|
|
3367
3371
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3368
|
-
var i =
|
|
3372
|
+
var i = Gr(this, t);
|
|
3369
3373
|
i.insertBefore(t, i.firstChild);
|
|
3370
3374
|
}
|
|
3371
3375
|
});
|
|
@@ -3395,7 +3399,7 @@ function mo() {
|
|
|
3395
3399
|
var r = this[0] || {}, n = 0, a = this.length;
|
|
3396
3400
|
if (i === void 0 && r.nodeType === 1)
|
|
3397
3401
|
return r.innerHTML;
|
|
3398
|
-
if (typeof i == "string" && !
|
|
3402
|
+
if (typeof i == "string" && !wo.test(i) && !ve[(Ze.exec(i) || ["", ""])[1].toLowerCase()]) {
|
|
3399
3403
|
i = o.htmlPrefilter(i);
|
|
3400
3404
|
try {
|
|
3401
3405
|
for (; n < a; n++)
|
|
@@ -3427,10 +3431,10 @@ function mo() {
|
|
|
3427
3431
|
return this.pushStack(a);
|
|
3428
3432
|
};
|
|
3429
3433
|
});
|
|
3430
|
-
var
|
|
3434
|
+
var Qi = new RegExp("^(" + Vt + ")(?!px)[a-z%]+$", "i"), er = /^--/, yi = function(t) {
|
|
3431
3435
|
var i = t.ownerDocument.defaultView;
|
|
3432
3436
|
return (!i || !i.opener) && (i = c), i.getComputedStyle(t);
|
|
3433
|
-
},
|
|
3437
|
+
}, Jr = function(t, i, r) {
|
|
3434
3438
|
var n, a, l = {};
|
|
3435
3439
|
for (a in i)
|
|
3436
3440
|
l[a] = t.style[a], t.style[a] = i[a];
|
|
@@ -3438,7 +3442,7 @@ function mo() {
|
|
|
3438
3442
|
for (a in i)
|
|
3439
3443
|
t.style[a] = l[a];
|
|
3440
3444
|
return n;
|
|
3441
|
-
},
|
|
3445
|
+
}, Ao = new RegExp(Xe.join("|"), "i");
|
|
3442
3446
|
(function() {
|
|
3443
3447
|
function t() {
|
|
3444
3448
|
if (w) {
|
|
@@ -3477,20 +3481,20 @@ function mo() {
|
|
|
3477
3481
|
// Only Firefox includes border widths
|
|
3478
3482
|
// in computed dimensions. (gh-4529)
|
|
3479
3483
|
reliableTrDimensions: function() {
|
|
3480
|
-
var P, O,
|
|
3481
|
-
return u == null && (P = U.createElement("table"), O = U.createElement("tr"),
|
|
3484
|
+
var P, O, A, R;
|
|
3485
|
+
return u == null && (P = U.createElement("table"), O = U.createElement("tr"), A = U.createElement("div"), P.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", O.style.cssText = "box-sizing:content-box;border:1px solid", O.style.height = "1px", A.style.height = "9px", A.style.display = "block", lt.appendChild(P).appendChild(O).appendChild(A), R = c.getComputedStyle(O), u = parseInt(R.height, 10) + parseInt(R.borderTopWidth, 10) + parseInt(R.borderBottomWidth, 10) === O.offsetHeight, lt.removeChild(P)), u;
|
|
3482
3486
|
}
|
|
3483
3487
|
}));
|
|
3484
3488
|
})();
|
|
3485
3489
|
function ni(t, i, r) {
|
|
3486
|
-
var n, a, l, u, y =
|
|
3487
|
-
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Et(t) && (u = o.style(t, i)), !V.pixelBoxStyles() &&
|
|
3490
|
+
var n, a, l, u, y = er.test(i), m = t.style;
|
|
3491
|
+
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Et(t) && (u = o.style(t, i)), !V.pixelBoxStyles() && Qi.test(u) && Ao.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 ? (
|
|
3488
3492
|
// Support: IE <=9 - 11 only
|
|
3489
3493
|
// IE returns zIndex value as an integer.
|
|
3490
3494
|
u + ""
|
|
3491
3495
|
) : u;
|
|
3492
3496
|
}
|
|
3493
|
-
function
|
|
3497
|
+
function Qr(t, i) {
|
|
3494
3498
|
return {
|
|
3495
3499
|
get: function() {
|
|
3496
3500
|
if (t()) {
|
|
@@ -3501,28 +3505,28 @@ function mo() {
|
|
|
3501
3505
|
}
|
|
3502
3506
|
};
|
|
3503
3507
|
}
|
|
3504
|
-
var
|
|
3505
|
-
function
|
|
3506
|
-
for (var i = t[0].toUpperCase() + t.slice(1), r =
|
|
3507
|
-
if (t =
|
|
3508
|
+
var en = ["Webkit", "Moz", "ms"], tn = U.createElement("div").style, rn = {};
|
|
3509
|
+
function ko(t) {
|
|
3510
|
+
for (var i = t[0].toUpperCase() + t.slice(1), r = en.length; r--; )
|
|
3511
|
+
if (t = en[r] + i, t in tn)
|
|
3508
3512
|
return t;
|
|
3509
3513
|
}
|
|
3510
|
-
function
|
|
3511
|
-
var i = o.cssProps[t] ||
|
|
3512
|
-
return i || (t in
|
|
3514
|
+
function tr(t) {
|
|
3515
|
+
var i = o.cssProps[t] || rn[t];
|
|
3516
|
+
return i || (t in tn ? t : rn[t] = ko(t) || t);
|
|
3513
3517
|
}
|
|
3514
|
-
var
|
|
3518
|
+
var Lo = /^(none|table(?!-c[ea]).+)/, No = { position: "absolute", visibility: "hidden", display: "block" }, nn = {
|
|
3515
3519
|
letterSpacing: "0",
|
|
3516
3520
|
fontWeight: "400"
|
|
3517
3521
|
};
|
|
3518
|
-
function
|
|
3522
|
+
function on(t, i, r) {
|
|
3519
3523
|
var n = Ht.exec(i);
|
|
3520
3524
|
return n ? (
|
|
3521
3525
|
// Guard against undefined "subtract", e.g., when used as in cssHooks
|
|
3522
3526
|
Math.max(0, n[2] - (r || 0)) + (n[3] || "px")
|
|
3523
3527
|
) : i;
|
|
3524
3528
|
}
|
|
3525
|
-
function
|
|
3529
|
+
function ir(t, i, r, n, a, l) {
|
|
3526
3530
|
var u = i === "width" ? 1 : 0, y = 0, m = 0, w = 0;
|
|
3527
3531
|
if (r === (n ? "border" : "content"))
|
|
3528
3532
|
return 0;
|
|
@@ -3534,9 +3538,9 @@ function mo() {
|
|
|
3534
3538
|
// Use an explicit zero to avoid NaN (gh-3964)
|
|
3535
3539
|
)) || 0), m + w;
|
|
3536
3540
|
}
|
|
3537
|
-
function
|
|
3541
|
+
function sn(t, i, r) {
|
|
3538
3542
|
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);
|
|
3539
|
-
if (
|
|
3543
|
+
if (Qi.test(y)) {
|
|
3540
3544
|
if (!r)
|
|
3541
3545
|
return y;
|
|
3542
3546
|
y = "auto";
|
|
@@ -3550,7 +3554,7 @@ function mo() {
|
|
|
3550
3554
|
y === "auto" || // Support: Android <=4.1 - 4.3 only
|
|
3551
3555
|
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
|
|
3552
3556
|
!parseFloat(y) && o.css(t, "display", !1, n) === "inline") && // Make sure the element is visible & connected
|
|
3553
|
-
t.getClientRects().length && (l = o.css(t, "boxSizing", !1, n) === "border-box", u = m in t, u && (y = t[m])), y = parseFloat(y) || 0, y +
|
|
3557
|
+
t.getClientRects().length && (l = o.css(t, "boxSizing", !1, n) === "border-box", u = m in t, u && (y = t[m])), y = parseFloat(y) || 0, y + ir(
|
|
3554
3558
|
t,
|
|
3555
3559
|
i,
|
|
3556
3560
|
r || (l ? "border" : "content"),
|
|
@@ -3610,8 +3614,8 @@ function mo() {
|
|
|
3610
3614
|
// Get and set the style property on a DOM Node
|
|
3611
3615
|
style: function(t, i, r, n) {
|
|
3612
3616
|
if (!(!t || t.nodeType === 3 || t.nodeType === 8 || !t.style)) {
|
|
3613
|
-
var a, l, u, y = S(i), m =
|
|
3614
|
-
if (m || (i =
|
|
3617
|
+
var a, l, u, y = S(i), m = er.test(i), w = t.style;
|
|
3618
|
+
if (m || (i = tr(y)), u = o.cssHooks[i] || o.cssHooks[y], r !== void 0) {
|
|
3615
3619
|
if (l = typeof r, l === "string" && (a = Ht.exec(r)) && a[1] && (r = ri(t, i, a), l = "number"), r == null || r !== r)
|
|
3616
3620
|
return;
|
|
3617
3621
|
l === "number" && !m && (r += a && a[3] || (o.cssNumber[y] ? "" : "px")), !V.clearCloneStyle && r === "" && i.indexOf("background") === 0 && (w[i] = "inherit"), (!u || !("set" in u) || (r = u.set(t, r, n)) !== void 0) && (m ? w.setProperty(i, r) : w[i] = r);
|
|
@@ -3620,25 +3624,25 @@ function mo() {
|
|
|
3620
3624
|
}
|
|
3621
3625
|
},
|
|
3622
3626
|
css: function(t, i, r, n) {
|
|
3623
|
-
var a, l, u, y = S(i), m =
|
|
3624
|
-
return m || (i =
|
|
3627
|
+
var a, l, u, y = S(i), m = er.test(i);
|
|
3628
|
+
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 nn && (a = nn[i]), r === "" || r ? (l = parseFloat(a), r === !0 || isFinite(l) ? l || 0 : a) : a;
|
|
3625
3629
|
}
|
|
3626
3630
|
}), o.each(["height", "width"], function(t, i) {
|
|
3627
3631
|
o.cssHooks[i] = {
|
|
3628
3632
|
get: function(r, n, a) {
|
|
3629
3633
|
if (n)
|
|
3630
|
-
return
|
|
3634
|
+
return Lo.test(o.css(r, "display")) && // Support: Safari 8+
|
|
3631
3635
|
// Table columns in Safari have non-zero offsetWidth & zero
|
|
3632
3636
|
// getBoundingClientRect().width unless display is changed.
|
|
3633
3637
|
// Support: IE <=11 only
|
|
3634
3638
|
// Running getBoundingClientRect on a disconnected node
|
|
3635
3639
|
// in IE throws an error.
|
|
3636
|
-
(!r.getClientRects().length || !r.getBoundingClientRect().width) ?
|
|
3637
|
-
return
|
|
3638
|
-
}) :
|
|
3640
|
+
(!r.getClientRects().length || !r.getBoundingClientRect().width) ? Jr(r, No, function() {
|
|
3641
|
+
return sn(r, i, a);
|
|
3642
|
+
}) : sn(r, i, a);
|
|
3639
3643
|
},
|
|
3640
3644
|
set: function(r, n, a) {
|
|
3641
|
-
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 ?
|
|
3645
|
+
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(
|
|
3642
3646
|
r,
|
|
3643
3647
|
i,
|
|
3644
3648
|
a,
|
|
@@ -3646,15 +3650,15 @@ function mo() {
|
|
|
3646
3650
|
u
|
|
3647
3651
|
) : 0;
|
|
3648
3652
|
return w && y && (P -= Math.ceil(
|
|
3649
|
-
r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) -
|
|
3650
|
-
)), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)),
|
|
3653
|
+
r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) - ir(r, i, "border", !1, u) - 0.5
|
|
3654
|
+
)), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), on(r, n, P);
|
|
3651
3655
|
}
|
|
3652
3656
|
};
|
|
3653
|
-
}), o.cssHooks.marginLeft =
|
|
3657
|
+
}), o.cssHooks.marginLeft = Qr(
|
|
3654
3658
|
V.reliableMarginLeft,
|
|
3655
3659
|
function(t, i) {
|
|
3656
3660
|
if (i)
|
|
3657
|
-
return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left -
|
|
3661
|
+
return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left - Jr(t, { marginLeft: 0 }, function() {
|
|
3658
3662
|
return t.getBoundingClientRect().left;
|
|
3659
3663
|
})) + "px";
|
|
3660
3664
|
}
|
|
@@ -3669,7 +3673,7 @@ function mo() {
|
|
|
3669
3673
|
a[t + Xe[n] + i] = l[n] || l[n - 2] || l[0];
|
|
3670
3674
|
return a;
|
|
3671
3675
|
}
|
|
3672
|
-
}, t !== "margin" && (o.cssHooks[t + i].set =
|
|
3676
|
+
}, t !== "margin" && (o.cssHooks[t + i].set = on);
|
|
3673
3677
|
}), o.fn.extend({
|
|
3674
3678
|
css: function(t, i) {
|
|
3675
3679
|
return et(this, function(r, n, a) {
|
|
@@ -3712,7 +3716,7 @@ function mo() {
|
|
|
3712
3716
|
return t.elem.nodeType !== 1 || t.elem[t.prop] != null && t.elem.style[t.prop] == null ? t.elem[t.prop] : (i = o.css(t.elem, t.prop, ""), !i || i === "auto" ? 0 : i);
|
|
3713
3717
|
},
|
|
3714
3718
|
set: function(t) {
|
|
3715
|
-
o.fx.step[t.prop] ? o.fx.step[t.prop](t) : t.elem.nodeType === 1 && (o.cssHooks[t.prop] || t.elem.style[
|
|
3719
|
+
o.fx.step[t.prop] ? o.fx.step[t.prop](t) : t.elem.nodeType === 1 && (o.cssHooks[t.prop] || t.elem.style[tr(t.prop)] != null) ? o.style(t.elem, t.prop, t.now + t.unit) : t.elem[t.prop] = t.now;
|
|
3716
3720
|
}
|
|
3717
3721
|
}
|
|
3718
3722
|
}, Ye.propHooks.scrollTop = Ye.propHooks.scrollLeft = {
|
|
@@ -3728,11 +3732,11 @@ function mo() {
|
|
|
3728
3732
|
},
|
|
3729
3733
|
_default: "swing"
|
|
3730
3734
|
}, o.fx = Ye.prototype.init, o.fx.step = {};
|
|
3731
|
-
var Xt, bi,
|
|
3732
|
-
function
|
|
3733
|
-
bi && (U.hidden === !1 && c.requestAnimationFrame ? c.requestAnimationFrame(
|
|
3735
|
+
var Xt, bi, Po = /^(?:toggle|show|hide)$/, Do = /queueHooks$/;
|
|
3736
|
+
function rr() {
|
|
3737
|
+
bi && (U.hidden === !1 && c.requestAnimationFrame ? c.requestAnimationFrame(rr) : c.setTimeout(rr, o.fx.interval), o.fx.tick());
|
|
3734
3738
|
}
|
|
3735
|
-
function
|
|
3739
|
+
function an() {
|
|
3736
3740
|
return c.setTimeout(function() {
|
|
3737
3741
|
Xt = void 0;
|
|
3738
3742
|
}), Xt = Date.now();
|
|
@@ -3743,22 +3747,22 @@ function mo() {
|
|
|
3743
3747
|
r = Xe[n], a["margin" + r] = a["padding" + r] = t;
|
|
3744
3748
|
return i && (a.opacity = a.width = t), a;
|
|
3745
3749
|
}
|
|
3746
|
-
function
|
|
3750
|
+
function ln(t, i, r) {
|
|
3747
3751
|
for (var n, a = (ot.tweeners[i] || []).concat(ot.tweeners["*"]), l = 0, u = a.length; l < u; l++)
|
|
3748
3752
|
if (n = a[l].call(r, i, t))
|
|
3749
3753
|
return n;
|
|
3750
3754
|
}
|
|
3751
|
-
function
|
|
3752
|
-
var n, a, l, u, y, m, w, P, O = "width" in i || "height" in i,
|
|
3755
|
+
function Mo(t, i, r) {
|
|
3756
|
+
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 && tt(t), ne = M.get(t, "fxshow");
|
|
3753
3757
|
r.queue || (u = o._queueHooks(t, "fx"), u.unqueued == null && (u.unqueued = 0, y = u.empty.fire, u.empty.fire = function() {
|
|
3754
3758
|
u.unqueued || y();
|
|
3755
|
-
}), u.unqueued++,
|
|
3756
|
-
|
|
3759
|
+
}), u.unqueued++, A.always(function() {
|
|
3760
|
+
A.always(function() {
|
|
3757
3761
|
u.unqueued--, o.queue(t, "fx").length || u.empty.fire();
|
|
3758
3762
|
});
|
|
3759
3763
|
}));
|
|
3760
3764
|
for (n in i)
|
|
3761
|
-
if (a = i[n],
|
|
3765
|
+
if (a = i[n], Po.test(a)) {
|
|
3762
3766
|
if (delete i[n], l = l || a === "toggle", a === (de ? "hide" : "show"))
|
|
3763
3767
|
if (a === "show" && ne && ne[n] !== void 0)
|
|
3764
3768
|
de = !0;
|
|
@@ -3767,20 +3771,20 @@ function mo() {
|
|
|
3767
3771
|
R[n] = ne && ne[n] || o.style(t, n);
|
|
3768
3772
|
}
|
|
3769
3773
|
if (m = !o.isEmptyObject(i), !(!m && o.isEmptyObject(R))) {
|
|
3770
|
-
O && t.nodeType === 1 && (r.overflow = [ie.overflow, ie.overflowX, ie.overflowY], w = ne && ne.display, w == null && (w = M.get(t, "display")), P = o.css(t, "display"), P === "none" && (w ? P = w : (ue([t], !0), w = t.style.display || w, P = o.css(t, "display"), ue([t]))), (P === "inline" || P === "inline-block" && w != null) && o.css(t, "float") === "none" && (m || (
|
|
3774
|
+
O && t.nodeType === 1 && (r.overflow = [ie.overflow, ie.overflowX, ie.overflowY], w = ne && ne.display, w == null && (w = M.get(t, "display")), P = o.css(t, "display"), P === "none" && (w ? P = w : (ue([t], !0), w = t.style.display || w, P = o.css(t, "display"), ue([t]))), (P === "inline" || P === "inline-block" && w != null) && o.css(t, "float") === "none" && (m || (A.done(function() {
|
|
3771
3775
|
ie.display = w;
|
|
3772
|
-
}), w == null && (P = ie.display, w = P === "none" ? "" : P)), ie.display = "inline-block")), r.overflow && (ie.overflow = "hidden",
|
|
3776
|
+
}), w == null && (P = ie.display, w = P === "none" ? "" : P)), ie.display = "inline-block")), r.overflow && (ie.overflow = "hidden", A.always(function() {
|
|
3773
3777
|
ie.overflow = r.overflow[0], ie.overflowX = r.overflow[1], ie.overflowY = r.overflow[2];
|
|
3774
3778
|
})), m = !1;
|
|
3775
3779
|
for (n in R)
|
|
3776
|
-
m || (ne ? "hidden" in ne && (de = ne.hidden) : ne = M.access(t, "fxshow", { display: w }), l && (ne.hidden = !de), de && ue([t], !0),
|
|
3780
|
+
m || (ne ? "hidden" in ne && (de = ne.hidden) : ne = M.access(t, "fxshow", { display: w }), l && (ne.hidden = !de), de && ue([t], !0), A.done(function() {
|
|
3777
3781
|
de || ue([t]), M.remove(t, "fxshow");
|
|
3778
3782
|
for (n in R)
|
|
3779
3783
|
o.style(t, n, R[n]);
|
|
3780
|
-
})), m =
|
|
3784
|
+
})), m = ln(de ? ne[n] : 0, n, A), n in ne || (ne[n] = m.start, de && (m.end = m.start, m.start = 0));
|
|
3781
3785
|
}
|
|
3782
3786
|
}
|
|
3783
|
-
function
|
|
3787
|
+
function zo(t, i) {
|
|
3784
3788
|
var r, n, a, l, u;
|
|
3785
3789
|
for (r in t)
|
|
3786
3790
|
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) {
|
|
@@ -3796,9 +3800,9 @@ function mo() {
|
|
|
3796
3800
|
}), m = function() {
|
|
3797
3801
|
if (a)
|
|
3798
3802
|
return !1;
|
|
3799
|
-
for (var O = Xt ||
|
|
3803
|
+
for (var O = Xt || an(), 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++)
|
|
3800
3804
|
w.tweens[de].run(ie);
|
|
3801
|
-
return y.notifyWith(t, [w, ie,
|
|
3805
|
+
return y.notifyWith(t, [w, ie, A]), ie < 1 && ne ? A : (ne || y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w]), !1);
|
|
3802
3806
|
}, w = y.promise({
|
|
3803
3807
|
elem: t,
|
|
3804
3808
|
props: o.extend({}, i),
|
|
@@ -3808,32 +3812,32 @@ function mo() {
|
|
|
3808
3812
|
}, r),
|
|
3809
3813
|
originalProperties: i,
|
|
3810
3814
|
originalOptions: r,
|
|
3811
|
-
startTime: Xt ||
|
|
3815
|
+
startTime: Xt || an(),
|
|
3812
3816
|
duration: r.duration,
|
|
3813
3817
|
tweens: [],
|
|
3814
|
-
createTween: function(O,
|
|
3818
|
+
createTween: function(O, A) {
|
|
3815
3819
|
var R = o.Tween(
|
|
3816
3820
|
t,
|
|
3817
3821
|
w.opts,
|
|
3818
3822
|
O,
|
|
3819
|
-
|
|
3823
|
+
A,
|
|
3820
3824
|
w.opts.specialEasing[O] || w.opts.easing
|
|
3821
3825
|
);
|
|
3822
3826
|
return w.tweens.push(R), R;
|
|
3823
3827
|
},
|
|
3824
3828
|
stop: function(O) {
|
|
3825
|
-
var
|
|
3829
|
+
var A = 0, R = O ? w.tweens.length : 0;
|
|
3826
3830
|
if (a)
|
|
3827
3831
|
return this;
|
|
3828
|
-
for (a = !0;
|
|
3829
|
-
w.tweens[
|
|
3832
|
+
for (a = !0; A < R; A++)
|
|
3833
|
+
w.tweens[A].run(1);
|
|
3830
3834
|
return O ? (y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w, O])) : y.rejectWith(t, [w, O]), this;
|
|
3831
3835
|
}
|
|
3832
3836
|
}), P = w.props;
|
|
3833
|
-
for (
|
|
3837
|
+
for (zo(P, w.opts.specialEasing); l < u; l++)
|
|
3834
3838
|
if (n = ot.prefilters[l].call(w, t, P, w.opts), n)
|
|
3835
3839
|
return G(n.stop) && (o._queueHooks(w.elem, w.opts.queue).stop = n.stop.bind(n)), n;
|
|
3836
|
-
return o.map(P,
|
|
3840
|
+
return o.map(P, ln, 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(
|
|
3837
3841
|
o.extend(m, {
|
|
3838
3842
|
elem: t,
|
|
3839
3843
|
anim: w,
|
|
@@ -3853,7 +3857,7 @@ function mo() {
|
|
|
3853
3857
|
for (var r, n = 0, a = t.length; n < a; n++)
|
|
3854
3858
|
r = t[n], ot.tweeners[r] = ot.tweeners[r] || [], ot.tweeners[r].unshift(i);
|
|
3855
3859
|
},
|
|
3856
|
-
prefilters: [
|
|
3860
|
+
prefilters: [Mo],
|
|
3857
3861
|
prefilter: function(t, i) {
|
|
3858
3862
|
i ? ot.prefilters.unshift(t) : ot.prefilters.push(t);
|
|
3859
3863
|
}
|
|
@@ -3888,7 +3892,7 @@ function mo() {
|
|
|
3888
3892
|
y[l] && y[l].stop && n(y[l]);
|
|
3889
3893
|
else
|
|
3890
3894
|
for (l in y)
|
|
3891
|
-
y[l] && y[l].stop &&
|
|
3895
|
+
y[l] && y[l].stop && Do.test(l) && n(y[l]);
|
|
3892
3896
|
for (l = u.length; l--; )
|
|
3893
3897
|
u[l].elem === this && (t == null || u[l].queue === t) && (u[l].anim.stop(r), a = !1, u.splice(l, 1));
|
|
3894
3898
|
(a || !r) && o.dequeue(this, t);
|
|
@@ -3928,7 +3932,7 @@ function mo() {
|
|
|
3928
3932
|
}, o.fx.timer = function(t) {
|
|
3929
3933
|
o.timers.push(t), o.fx.start();
|
|
3930
3934
|
}, o.fx.interval = 13, o.fx.start = function() {
|
|
3931
|
-
bi || (bi = !0,
|
|
3935
|
+
bi || (bi = !0, rr());
|
|
3932
3936
|
}, o.fx.stop = function() {
|
|
3933
3937
|
bi = null;
|
|
3934
3938
|
}, o.fx.speeds = {
|
|
@@ -3947,7 +3951,7 @@ function mo() {
|
|
|
3947
3951
|
var t = U.createElement("input"), i = U.createElement("select"), r = i.appendChild(U.createElement("option"));
|
|
3948
3952
|
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";
|
|
3949
3953
|
})();
|
|
3950
|
-
var
|
|
3954
|
+
var cn, oi = o.expr.attrHandle;
|
|
3951
3955
|
o.fn.extend({
|
|
3952
3956
|
attr: function(t, i) {
|
|
3953
3957
|
return et(this, o.attr, t, i, arguments.length > 1);
|
|
@@ -3963,7 +3967,7 @@ function mo() {
|
|
|
3963
3967
|
if (!(l === 3 || l === 8 || l === 2)) {
|
|
3964
3968
|
if (typeof t.getAttribute > "u")
|
|
3965
3969
|
return o.prop(t, i, r);
|
|
3966
|
-
if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ?
|
|
3970
|
+
if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ? cn : void 0)), r !== void 0) {
|
|
3967
3971
|
if (r === null) {
|
|
3968
3972
|
o.removeAttr(t, i);
|
|
3969
3973
|
return;
|
|
@@ -3989,7 +3993,7 @@ function mo() {
|
|
|
3989
3993
|
for (; r = a[n++]; )
|
|
3990
3994
|
t.removeAttribute(r);
|
|
3991
3995
|
}
|
|
3992
|
-
}),
|
|
3996
|
+
}), cn = {
|
|
3993
3997
|
set: function(t, i, r) {
|
|
3994
3998
|
return i === !1 ? o.removeAttr(t, r) : t.setAttribute(r, r), r;
|
|
3995
3999
|
}
|
|
@@ -4000,7 +4004,7 @@ function mo() {
|
|
|
4000
4004
|
return l || (y = oi[m], oi[m] = u, u = r(n, a, l) != null ? m : null, oi[m] = y), u;
|
|
4001
4005
|
};
|
|
4002
4006
|
});
|
|
4003
|
-
var
|
|
4007
|
+
var Io = /^(?:input|select|textarea|button)$/i, Ho = /^(?:a|area)$/i;
|
|
4004
4008
|
o.fn.extend({
|
|
4005
4009
|
prop: function(t, i) {
|
|
4006
4010
|
return et(this, o.prop, t, i, arguments.length > 1);
|
|
@@ -4020,7 +4024,7 @@ function mo() {
|
|
|
4020
4024
|
tabIndex: {
|
|
4021
4025
|
get: function(t) {
|
|
4022
4026
|
var i = o.find.attr(t, "tabindex");
|
|
4023
|
-
return i ? parseInt(i, 10) :
|
|
4027
|
+
return i ? parseInt(i, 10) : Io.test(t.nodeName) || Ho.test(t.nodeName) && t.href ? 0 : -1;
|
|
4024
4028
|
}
|
|
4025
4029
|
}
|
|
4026
4030
|
},
|
|
@@ -4058,7 +4062,7 @@ function mo() {
|
|
|
4058
4062
|
function Bt(t) {
|
|
4059
4063
|
return t.getAttribute && t.getAttribute("class") || "";
|
|
4060
4064
|
}
|
|
4061
|
-
function
|
|
4065
|
+
function nr(t) {
|
|
4062
4066
|
return Array.isArray(t) ? t : typeof t == "string" ? t.match(He) || [] : [];
|
|
4063
4067
|
}
|
|
4064
4068
|
o.fn.extend({
|
|
@@ -4066,7 +4070,7 @@ function mo() {
|
|
|
4066
4070
|
var i, r, n, a, l, u;
|
|
4067
4071
|
return G(t) ? this.each(function(y) {
|
|
4068
4072
|
o(this).addClass(t.call(this, y, Bt(this)));
|
|
4069
|
-
}) : (i =
|
|
4073
|
+
}) : (i = nr(t), i.length ? this.each(function() {
|
|
4070
4074
|
if (n = Bt(this), r = this.nodeType === 1 && " " + Ot(n) + " ", r) {
|
|
4071
4075
|
for (l = 0; l < i.length; l++)
|
|
4072
4076
|
a = i[l], r.indexOf(" " + a + " ") < 0 && (r += a + " ");
|
|
@@ -4078,7 +4082,7 @@ function mo() {
|
|
|
4078
4082
|
var i, r, n, a, l, u;
|
|
4079
4083
|
return G(t) ? this.each(function(y) {
|
|
4080
4084
|
o(this).removeClass(t.call(this, y, Bt(this)));
|
|
4081
|
-
}) : arguments.length ? (i =
|
|
4085
|
+
}) : arguments.length ? (i = nr(t), i.length ? this.each(function() {
|
|
4082
4086
|
if (n = Bt(this), r = this.nodeType === 1 && " " + Ot(n) + " ", r) {
|
|
4083
4087
|
for (l = 0; l < i.length; l++)
|
|
4084
4088
|
for (a = i[l]; r.indexOf(" " + a + " ") > -1; )
|
|
@@ -4094,7 +4098,7 @@ function mo() {
|
|
|
4094
4098
|
t.call(this, m, Bt(this), i),
|
|
4095
4099
|
i
|
|
4096
4100
|
);
|
|
4097
|
-
}) : typeof i == "boolean" && y ? i ? this.addClass(t) : this.removeClass(t) : (r =
|
|
4101
|
+
}) : typeof i == "boolean" && y ? i ? this.addClass(t) : this.removeClass(t) : (r = nr(t), this.each(function() {
|
|
4098
4102
|
if (y)
|
|
4099
4103
|
for (l = o(this), a = 0; a < r.length; a++)
|
|
4100
4104
|
n = r[a], l.hasClass(n) ? l.removeClass(n) : l.addClass(n);
|
|
@@ -4112,7 +4116,7 @@ function mo() {
|
|
|
4112
4116
|
return !1;
|
|
4113
4117
|
}
|
|
4114
4118
|
});
|
|
4115
|
-
var
|
|
4119
|
+
var Oo = /\r/g;
|
|
4116
4120
|
o.fn.extend({
|
|
4117
4121
|
val: function(t) {
|
|
4118
4122
|
var i, r, n, a = this[0];
|
|
@@ -4121,7 +4125,7 @@ function mo() {
|
|
|
4121
4125
|
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) {
|
|
4122
4126
|
return y == null ? "" : y + "";
|
|
4123
4127
|
})), i = o.valHooks[this.type] || o.valHooks[this.nodeName.toLowerCase()], (!i || !("set" in i) || i.set(this, u, "value") === void 0) && (this.value = u));
|
|
4124
|
-
})) : 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(
|
|
4128
|
+
})) : 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(Oo, "") : r ?? "")) : void 0;
|
|
4125
4129
|
}
|
|
4126
4130
|
}), o.extend({
|
|
4127
4131
|
valHooks: {
|
|
@@ -4164,7 +4168,7 @@ function mo() {
|
|
|
4164
4168
|
return t.getAttribute("value") === null ? "on" : t.value;
|
|
4165
4169
|
});
|
|
4166
4170
|
});
|
|
4167
|
-
var si = c.location,
|
|
4171
|
+
var si = c.location, un = { guid: Date.now() }, or = /\?/;
|
|
4168
4172
|
o.parseXML = function(t) {
|
|
4169
4173
|
var i, r;
|
|
4170
4174
|
if (!t || typeof t != "string")
|
|
@@ -4178,21 +4182,21 @@ function mo() {
|
|
|
4178
4182
|
}).join(`
|
|
4179
4183
|
`) : t)), i;
|
|
4180
4184
|
};
|
|
4181
|
-
var
|
|
4185
|
+
var fn = /^(?:focusinfocus|focusoutblur)$/, dn = function(t) {
|
|
4182
4186
|
t.stopPropagation();
|
|
4183
4187
|
};
|
|
4184
4188
|
o.extend(o.event, {
|
|
4185
4189
|
trigger: function(t, i, r, n) {
|
|
4186
|
-
var a, l, u, y, m, w, P, O,
|
|
4187
|
-
if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !
|
|
4190
|
+
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(".") : [];
|
|
4191
|
+
if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !fn.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))) {
|
|
4188
4192
|
if (!n && !P.noBubble && !Ee(r)) {
|
|
4189
|
-
for (y = P.delegateType || R,
|
|
4190
|
-
|
|
4191
|
-
u === (r.ownerDocument || U) &&
|
|
4193
|
+
for (y = P.delegateType || R, fn.test(y + R) || (l = l.parentNode); l; l = l.parentNode)
|
|
4194
|
+
A.push(l), u = l;
|
|
4195
|
+
u === (r.ownerDocument || U) && A.push(u.defaultView || u.parentWindow || c);
|
|
4192
4196
|
}
|
|
4193
|
-
for (a = 0; (l =
|
|
4197
|
+
for (a = 0; (l = A[a++]) && !t.isPropagationStopped(); )
|
|
4194
4198
|
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());
|
|
4195
|
-
return t.type = R, !n && !t.isDefaultPrevented() && (!P._default || P._default.apply(
|
|
4199
|
+
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, dn), r[R](), t.isPropagationStopped() && O.removeEventListener(R, dn), o.event.triggered = void 0, u && (r[m] = u)), t.result;
|
|
4196
4200
|
}
|
|
4197
4201
|
},
|
|
4198
4202
|
// Piggyback on a donor event to simulate a different one
|
|
@@ -4220,12 +4224,12 @@ function mo() {
|
|
|
4220
4224
|
return o.event.trigger(t, i, r, !0);
|
|
4221
4225
|
}
|
|
4222
4226
|
});
|
|
4223
|
-
var
|
|
4224
|
-
function
|
|
4227
|
+
var Bo = /\[\]$/, hn = /\r?\n/g, qo = /^(?:submit|button|image|reset|file)$/i, Ro = /^(?:input|select|textarea|keygen)/i;
|
|
4228
|
+
function sr(t, i, r, n) {
|
|
4225
4229
|
var a;
|
|
4226
4230
|
if (Array.isArray(i))
|
|
4227
4231
|
o.each(i, function(l, u) {
|
|
4228
|
-
r ||
|
|
4232
|
+
r || Bo.test(t) ? n(t, u) : sr(
|
|
4229
4233
|
t + "[" + (typeof u == "object" && u != null ? l : "") + "]",
|
|
4230
4234
|
u,
|
|
4231
4235
|
r,
|
|
@@ -4234,7 +4238,7 @@ function mo() {
|
|
|
4234
4238
|
});
|
|
4235
4239
|
else if (!r && Ve(i) === "object")
|
|
4236
4240
|
for (a in i)
|
|
4237
|
-
|
|
4241
|
+
sr(t + "[" + a + "]", i[a], r, n);
|
|
4238
4242
|
else
|
|
4239
4243
|
n(t, i);
|
|
4240
4244
|
}
|
|
@@ -4251,7 +4255,7 @@ function mo() {
|
|
|
4251
4255
|
});
|
|
4252
4256
|
else
|
|
4253
4257
|
for (r in t)
|
|
4254
|
-
|
|
4258
|
+
sr(r, t[r], i, a);
|
|
4255
4259
|
return n.join("&");
|
|
4256
4260
|
}, o.fn.extend({
|
|
4257
4261
|
serialize: function() {
|
|
@@ -4263,20 +4267,20 @@ function mo() {
|
|
|
4263
4267
|
return t ? o.makeArray(t) : this;
|
|
4264
4268
|
}).filter(function() {
|
|
4265
4269
|
var t = this.type;
|
|
4266
|
-
return this.name && !o(this).is(":disabled") &&
|
|
4270
|
+
return this.name && !o(this).is(":disabled") && Ro.test(this.nodeName) && !qo.test(t) && (this.checked || !ke.test(t));
|
|
4267
4271
|
}).map(function(t, i) {
|
|
4268
4272
|
var r = o(this).val();
|
|
4269
4273
|
return r == null ? null : Array.isArray(r) ? o.map(r, function(n) {
|
|
4270
|
-
return { name: i.name, value: n.replace(
|
|
4274
|
+
return { name: i.name, value: n.replace(hn, `\r
|
|
4271
4275
|
`) };
|
|
4272
|
-
}) : { name: i.name, value: r.replace(
|
|
4276
|
+
}) : { name: i.name, value: r.replace(hn, `\r
|
|
4273
4277
|
`) };
|
|
4274
4278
|
}).get();
|
|
4275
4279
|
}
|
|
4276
4280
|
});
|
|
4277
|
-
var
|
|
4278
|
-
|
|
4279
|
-
function
|
|
4281
|
+
var jo = /%20/g, Wo = /#.*$/, Fo = /([?&])_=[^&]*/, _o = /^(.*?):[ \t]*([^\r\n]*)$/mg, Vo = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, $o = /^(?:GET|HEAD)$/, Xo = /^\/\//, pn = {}, ar = {}, gn = "*/".concat("*"), lr = U.createElement("a");
|
|
4282
|
+
lr.href = si.href;
|
|
4283
|
+
function mn(t) {
|
|
4280
4284
|
return function(i, r) {
|
|
4281
4285
|
typeof i != "string" && (r = i, i = "*");
|
|
4282
4286
|
var n, a = 0, l = i.toLowerCase().match(He) || [];
|
|
@@ -4285,8 +4289,8 @@ function mo() {
|
|
|
4285
4289
|
n[0] === "+" ? (n = n.slice(1) || "*", (t[n] = t[n] || []).unshift(r)) : (t[n] = t[n] || []).push(r);
|
|
4286
4290
|
};
|
|
4287
4291
|
}
|
|
4288
|
-
function
|
|
4289
|
-
var a = {}, l = t ===
|
|
4292
|
+
function vn(t, i, r, n) {
|
|
4293
|
+
var a = {}, l = t === ar;
|
|
4290
4294
|
function u(y) {
|
|
4291
4295
|
var m;
|
|
4292
4296
|
return a[y] = !0, o.each(t[y] || [], function(w, P) {
|
|
@@ -4299,13 +4303,13 @@ function mo() {
|
|
|
4299
4303
|
}
|
|
4300
4304
|
return u(i.dataTypes[0]) || !a["*"] && u("*");
|
|
4301
4305
|
}
|
|
4302
|
-
function
|
|
4306
|
+
function cr(t, i) {
|
|
4303
4307
|
var r, n, a = o.ajaxSettings.flatOptions || {};
|
|
4304
4308
|
for (r in i)
|
|
4305
4309
|
i[r] !== void 0 && ((a[r] ? t : n || (n = {}))[r] = i[r]);
|
|
4306
4310
|
return n && o.extend(!0, t, n), t;
|
|
4307
4311
|
}
|
|
4308
|
-
function
|
|
4312
|
+
function Yo(t, i, r) {
|
|
4309
4313
|
for (var n, a, l, u, y = t.contents, m = t.dataTypes; m[0] === "*"; )
|
|
4310
4314
|
m.shift(), n === void 0 && (n = t.mimeType || i.getResponseHeader("Content-Type"));
|
|
4311
4315
|
if (n) {
|
|
@@ -4330,7 +4334,7 @@ function mo() {
|
|
|
4330
4334
|
if (l)
|
|
4331
4335
|
return l !== m[0] && m.unshift(l), r[l];
|
|
4332
4336
|
}
|
|
4333
|
-
function
|
|
4337
|
+
function Uo(t, i, r, n) {
|
|
4334
4338
|
var a, l, u, y, m, w = {}, P = t.dataTypes.slice();
|
|
4335
4339
|
if (P[1])
|
|
4336
4340
|
for (u in t.converters)
|
|
@@ -4372,7 +4376,7 @@ function mo() {
|
|
|
4372
4376
|
ajaxSettings: {
|
|
4373
4377
|
url: si.href,
|
|
4374
4378
|
type: "GET",
|
|
4375
|
-
isLocal:
|
|
4379
|
+
isLocal: Vo.test(si.protocol),
|
|
4376
4380
|
global: !0,
|
|
4377
4381
|
processData: !0,
|
|
4378
4382
|
async: !0,
|
|
@@ -4389,7 +4393,7 @@ function mo() {
|
|
|
4389
4393
|
headers: {},
|
|
4390
4394
|
*/
|
|
4391
4395
|
accepts: {
|
|
4392
|
-
"*":
|
|
4396
|
+
"*": gn,
|
|
4393
4397
|
text: "text/plain",
|
|
4394
4398
|
html: "text/html",
|
|
4395
4399
|
xml: "application/xml, text/xml",
|
|
@@ -4432,25 +4436,25 @@ function mo() {
|
|
|
4432
4436
|
ajaxSetup: function(t, i) {
|
|
4433
4437
|
return i ? (
|
|
4434
4438
|
// Building a settings object
|
|
4435
|
-
|
|
4439
|
+
cr(cr(t, o.ajaxSettings), i)
|
|
4436
4440
|
) : (
|
|
4437
4441
|
// Extending ajaxSettings
|
|
4438
|
-
|
|
4442
|
+
cr(o.ajaxSettings, t)
|
|
4439
4443
|
);
|
|
4440
4444
|
},
|
|
4441
|
-
ajaxPrefilter: pn
|
|
4442
|
-
ajaxTransport:
|
|
4445
|
+
ajaxPrefilter: mn(pn),
|
|
4446
|
+
ajaxTransport: mn(ar),
|
|
4443
4447
|
// Main method
|
|
4444
4448
|
ajax: function(t, i) {
|
|
4445
4449
|
typeof t == "object" && (i = t, t = void 0), i = i || {};
|
|
4446
|
-
var r, n, a, l, u, y, m, w, P, O,
|
|
4450
|
+
var r, n, a, l, u, y, m, w, P, O, A = o.ajaxSetup({}, i), R = A.context || A, ie = A.context && (R.nodeType || R.jquery) ? o(R) : o.event, de = o.Deferred(), ne = o.Callbacks("once memory"), Oe = A.statusCode || {}, Pe = {}, ct = {}, ut = "canceled", ce = {
|
|
4447
4451
|
readyState: 0,
|
|
4448
4452
|
// Builds headers hashtable if needed
|
|
4449
4453
|
getResponseHeader: function(he) {
|
|
4450
4454
|
var Se;
|
|
4451
4455
|
if (m) {
|
|
4452
4456
|
if (!l)
|
|
4453
|
-
for (l = {}; Se =
|
|
4457
|
+
for (l = {}; Se = _o.exec(a); )
|
|
4454
4458
|
l[Se[1].toLowerCase() + " "] = (l[Se[1].toLowerCase() + " "] || []).concat(Se[2]);
|
|
4455
4459
|
Se = l[he.toLowerCase() + " "];
|
|
4456
4460
|
}
|
|
@@ -4466,7 +4470,7 @@ function mo() {
|
|
|
4466
4470
|
},
|
|
4467
4471
|
// Overrides response content-type header
|
|
4468
4472
|
overrideMimeType: function(he) {
|
|
4469
|
-
return m == null && (
|
|
4473
|
+
return m == null && (A.mimeType = he), this;
|
|
4470
4474
|
},
|
|
4471
4475
|
// Status-dependent callbacks
|
|
4472
4476
|
statusCode: function(he) {
|
|
@@ -4485,32 +4489,32 @@ function mo() {
|
|
|
4485
4489
|
return r && r.abort(Se), qt(0, Se), this;
|
|
4486
4490
|
}
|
|
4487
4491
|
};
|
|
4488
|
-
if (de.promise(ce),
|
|
4492
|
+
if (de.promise(ce), A.url = ((t || A.url || si.href) + "").replace(Xo, si.protocol + "//"), A.type = i.method || i.type || A.method || A.type, A.dataTypes = (A.dataType || "*").toLowerCase().match(He) || [""], A.crossDomain == null) {
|
|
4489
4493
|
y = U.createElement("a");
|
|
4490
4494
|
try {
|
|
4491
|
-
y.href =
|
|
4495
|
+
y.href = A.url, y.href = y.href, A.crossDomain = lr.protocol + "//" + lr.host != y.protocol + "//" + y.host;
|
|
4492
4496
|
} catch {
|
|
4493
|
-
|
|
4497
|
+
A.crossDomain = !0;
|
|
4494
4498
|
}
|
|
4495
4499
|
}
|
|
4496
|
-
if (
|
|
4500
|
+
if (A.data && A.processData && typeof A.data != "string" && (A.data = o.param(A.data, A.traditional)), vn(pn, A, i, ce), m)
|
|
4497
4501
|
return ce;
|
|
4498
|
-
w = o.event &&
|
|
4502
|
+
w = o.event && A.global, w && o.active++ === 0 && o.event.trigger("ajaxStart"), A.type = A.type.toUpperCase(), A.hasContent = !$o.test(A.type), n = A.url.replace(Wo, ""), A.hasContent ? A.data && A.processData && (A.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (A.data = A.data.replace(jo, "+")) : (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(Fo, "$1"), O = (or.test(n) ? "&" : "?") + "_=" + un.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(
|
|
4499
4503
|
"Accept",
|
|
4500
|
-
|
|
4504
|
+
A.dataTypes[0] && A.accepts[A.dataTypes[0]] ? A.accepts[A.dataTypes[0]] + (A.dataTypes[0] !== "*" ? ", " + gn + "; q=0.01" : "") : A.accepts["*"]
|
|
4501
4505
|
);
|
|
4502
|
-
for (P in
|
|
4503
|
-
ce.setRequestHeader(P,
|
|
4504
|
-
if (
|
|
4506
|
+
for (P in A.headers)
|
|
4507
|
+
ce.setRequestHeader(P, A.headers[P]);
|
|
4508
|
+
if (A.beforeSend && (A.beforeSend.call(R, ce, A) === !1 || m))
|
|
4505
4509
|
return ce.abort();
|
|
4506
|
-
if (ut = "abort", ne.add(
|
|
4510
|
+
if (ut = "abort", ne.add(A.complete), ce.done(A.success), ce.fail(A.error), r = vn(ar, A, i, ce), !r)
|
|
4507
4511
|
qt(-1, "No Transport");
|
|
4508
4512
|
else {
|
|
4509
|
-
if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce,
|
|
4513
|
+
if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce, A]), m)
|
|
4510
4514
|
return ce;
|
|
4511
|
-
|
|
4515
|
+
A.async && A.timeout > 0 && (u = c.setTimeout(function() {
|
|
4512
4516
|
ce.abort("timeout");
|
|
4513
|
-
},
|
|
4517
|
+
}, A.timeout));
|
|
4514
4518
|
try {
|
|
4515
4519
|
m = !1, r.send(Pe, qt);
|
|
4516
4520
|
} catch (he) {
|
|
@@ -4519,13 +4523,13 @@ function mo() {
|
|
|
4519
4523
|
qt(-1, he);
|
|
4520
4524
|
}
|
|
4521
4525
|
}
|
|
4522
|
-
function qt(he, Se, li,
|
|
4526
|
+
function qt(he, Se, li, fr) {
|
|
4523
4527
|
var ft, ci, dt, Ct, At, it = Se;
|
|
4524
|
-
m || (m = !0, u && c.clearTimeout(u), r = void 0, a =
|
|
4525
|
-
}), Ct =
|
|
4528
|
+
m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0, ft = he >= 200 && he < 300 || he === 304, li && (Ct = Yo(A, ce, li)), !ft && o.inArray("script", A.dataTypes) > -1 && o.inArray("json", A.dataTypes) < 0 && (A.converters["text script"] = function() {
|
|
4529
|
+
}), Ct = Uo(A, Ct, ce, ft), ft ? (A.ifModified && (At = ce.getResponseHeader("Last-Modified"), At && (o.lastModified[n] = At), At = ce.getResponseHeader("etag"), At && (o.etag[n] = At)), he === 204 || A.type === "HEAD" ? it = "nocontent" : he === 304 ? it = "notmodified" : (it = Ct.state, ci = Ct.data, dt = Ct.error, ft = !dt)) : (dt = it, (he || !it) && (it = "error", he < 0 && (he = 0))), ce.status = he, ce.statusText = (Se || it) + "", ft ? de.resolveWith(R, [ci, it, ce]) : de.rejectWith(R, [ce, it, dt]), ce.statusCode(Oe), Oe = void 0, w && ie.trigger(
|
|
4526
4530
|
ft ? "ajaxSuccess" : "ajaxError",
|
|
4527
|
-
[ce,
|
|
4528
|
-
), ne.fireWith(R, [ce, it]), w && (ie.trigger("ajaxComplete", [ce,
|
|
4531
|
+
[ce, A, ft ? ci : dt]
|
|
4532
|
+
), ne.fireWith(R, [ce, it]), w && (ie.trigger("ajaxComplete", [ce, A]), --o.active || o.event.trigger("ajaxStop")));
|
|
4529
4533
|
}
|
|
4530
4534
|
return ce;
|
|
4531
4535
|
},
|
|
@@ -4607,7 +4611,7 @@ function mo() {
|
|
|
4607
4611
|
} catch {
|
|
4608
4612
|
}
|
|
4609
4613
|
};
|
|
4610
|
-
var
|
|
4614
|
+
var Go = {
|
|
4611
4615
|
// File protocol always yields status code 0, assume 200
|
|
4612
4616
|
0: 200,
|
|
4613
4617
|
// Support: IE <=9 only
|
|
@@ -4639,7 +4643,7 @@ function mo() {
|
|
|
4639
4643
|
u.status,
|
|
4640
4644
|
u.statusText
|
|
4641
4645
|
) : a(
|
|
4642
|
-
|
|
4646
|
+
Go[u.status] || u.status,
|
|
4643
4647
|
u.statusText,
|
|
4644
4648
|
// Support: IE <=9 only
|
|
4645
4649
|
// IE9 has no XHR2 but throws on binary (trac-11426)
|
|
@@ -4695,22 +4699,22 @@ function mo() {
|
|
|
4695
4699
|
};
|
|
4696
4700
|
}
|
|
4697
4701
|
});
|
|
4698
|
-
var
|
|
4702
|
+
var yn = [], ur = /(=)\?(?=&|$)|\?\?/;
|
|
4699
4703
|
o.ajaxSetup({
|
|
4700
4704
|
jsonp: "callback",
|
|
4701
4705
|
jsonpCallback: function() {
|
|
4702
|
-
var t =
|
|
4706
|
+
var t = yn.pop() || o.expando + "_" + un.guid++;
|
|
4703
4707
|
return this[t] = !0, t;
|
|
4704
4708
|
}
|
|
4705
4709
|
}), o.ajaxPrefilter("json jsonp", function(t, i, r) {
|
|
4706
|
-
var n, a, l, u = t.jsonp !== !1 && (
|
|
4710
|
+
var n, a, l, u = t.jsonp !== !1 && (ur.test(t.url) ? "url" : typeof t.data == "string" && (t.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && ur.test(t.data) && "data");
|
|
4707
4711
|
if (u || t.dataTypes[0] === "jsonp")
|
|
4708
|
-
return n = t.jsonpCallback = G(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, u ? t[u] = t[u].replace(
|
|
4712
|
+
return n = t.jsonpCallback = G(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, u ? t[u] = t[u].replace(ur, "$1" + n) : t.jsonp !== !1 && (t.url += (or.test(t.url) ? "&" : "?") + t.jsonp + "=" + n), t.converters["script json"] = function() {
|
|
4709
4713
|
return l || o.error(n + " was not called"), l[0];
|
|
4710
4714
|
}, t.dataTypes[0] = "json", a = c[n], c[n] = function() {
|
|
4711
4715
|
l = arguments;
|
|
4712
4716
|
}, r.always(function() {
|
|
4713
|
-
a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback,
|
|
4717
|
+
a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback, yn.push(n)), l && G(a) && a(l[0]), l = a = void 0;
|
|
4714
4718
|
}), "script";
|
|
4715
4719
|
}), V.createHTMLDocument = (function() {
|
|
4716
4720
|
var t = U.implementation.createHTMLDocument("").body;
|
|
@@ -4751,8 +4755,8 @@ function mo() {
|
|
|
4751
4755
|
}).length;
|
|
4752
4756
|
}, o.offset = {
|
|
4753
4757
|
setOffset: function(t, i, r) {
|
|
4754
|
-
var n, a, l, u, y, m, w, P = o.css(t, "position"), O = o(t),
|
|
4755
|
-
P === "static" && (t.style.position = "relative"), y = O.offset(), l = o.css(t, "top"), m = o.css(t, "left"), w = (P === "absolute" || P === "fixed") && (l + m).indexOf("auto") > -1, w ? (n = O.position(), u = n.top, a = n.left) : (u = parseFloat(l) || 0, a = parseFloat(m) || 0), G(i) && (i = i.call(t, r, o.extend({}, y))), i.top != null && (
|
|
4758
|
+
var n, a, l, u, y, m, w, P = o.css(t, "position"), O = o(t), A = {};
|
|
4759
|
+
P === "static" && (t.style.position = "relative"), y = O.offset(), l = o.css(t, "top"), m = o.css(t, "left"), w = (P === "absolute" || P === "fixed") && (l + m).indexOf("auto") > -1, w ? (n = O.position(), u = n.top, a = n.left) : (u = parseFloat(l) || 0, a = parseFloat(m) || 0), G(i) && (i = i.call(t, r, o.extend({}, y))), i.top != null && (A.top = i.top - y.top + u), i.left != null && (A.left = i.left - y.left + a), "using" in i ? i.using.call(t, A) : O.css(A);
|
|
4756
4760
|
}
|
|
4757
4761
|
}, o.fn.extend({
|
|
4758
4762
|
// offset() relates an element's border box to the document origin
|
|
@@ -4817,11 +4821,11 @@ function mo() {
|
|
|
4817
4821
|
}, t, n, arguments.length);
|
|
4818
4822
|
};
|
|
4819
4823
|
}), o.each(["top", "left"], function(t, i) {
|
|
4820
|
-
o.cssHooks[i] =
|
|
4824
|
+
o.cssHooks[i] = Qr(
|
|
4821
4825
|
V.pixelPosition,
|
|
4822
4826
|
function(r, n) {
|
|
4823
4827
|
if (n)
|
|
4824
|
-
return n = ni(r, i),
|
|
4828
|
+
return n = ni(r, i), Qi.test(n) ? o(r).position()[i] + "px" : n;
|
|
4825
4829
|
}
|
|
4826
4830
|
);
|
|
4827
4831
|
}), o.each({ Height: "height", Width: "width" }, function(t, i) {
|
|
@@ -4885,12 +4889,12 @@ function mo() {
|
|
|
4885
4889
|
};
|
|
4886
4890
|
}
|
|
4887
4891
|
);
|
|
4888
|
-
var
|
|
4892
|
+
var Zo = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
|
|
4889
4893
|
o.proxy = function(t, i) {
|
|
4890
4894
|
var r, n, a;
|
|
4891
4895
|
if (typeof i == "string" && (r = t[i], i = t, t = r), !!G(t))
|
|
4892
|
-
return n =
|
|
4893
|
-
return t.apply(i || this, n.concat(
|
|
4896
|
+
return n = L.call(arguments, 2), a = function() {
|
|
4897
|
+
return t.apply(i || this, n.concat(L.call(arguments)));
|
|
4894
4898
|
}, a.guid = t.guid = t.guid || o.guid++, a;
|
|
4895
4899
|
}, o.holdReady = function(t) {
|
|
4896
4900
|
t ? o.readyWait++ : o.ready(!0);
|
|
@@ -4901,24 +4905,24 @@ function mo() {
|
|
|
4901
4905
|
// subtraction forces infinities to NaN
|
|
4902
4906
|
!isNaN(t - parseFloat(t));
|
|
4903
4907
|
}, o.trim = function(t) {
|
|
4904
|
-
return t == null ? "" : (t + "").replace(
|
|
4908
|
+
return t == null ? "" : (t + "").replace(Zo, "$1");
|
|
4905
4909
|
};
|
|
4906
|
-
var
|
|
4910
|
+
var Ko = c.jQuery, Jo = c.$;
|
|
4907
4911
|
return o.noConflict = function(t) {
|
|
4908
|
-
return c.$ === o && (c.$ =
|
|
4912
|
+
return c.$ === o && (c.$ = Jo), t && c.jQuery === o && (c.jQuery = Ko), o;
|
|
4909
4913
|
}, typeof d > "u" && (c.jQuery = c.$ = o), o;
|
|
4910
4914
|
});
|
|
4911
|
-
})(
|
|
4915
|
+
})(Pi)), Pi.exports;
|
|
4912
4916
|
}
|
|
4913
|
-
var
|
|
4914
|
-
const Qt = /* @__PURE__ */
|
|
4915
|
-
var
|
|
4916
|
-
function
|
|
4917
|
-
return
|
|
4917
|
+
var Ks = yo();
|
|
4918
|
+
const Qt = /* @__PURE__ */ Gs(Ks);
|
|
4919
|
+
var xr = { exports: {} }, kn;
|
|
4920
|
+
function Js() {
|
|
4921
|
+
return kn || (kn = 1, (function(s, c) {
|
|
4918
4922
|
(function(d) {
|
|
4919
|
-
s.exports = d(
|
|
4923
|
+
s.exports = d(yo());
|
|
4920
4924
|
})(function(d) {
|
|
4921
|
-
var h = !1, T = !1,
|
|
4925
|
+
var h = !1, T = !1, L = 0, z = 2e3, D = 0, k = d, q = document, _ = window, ye = k(_), Q = [];
|
|
4922
4926
|
function _e() {
|
|
4923
4927
|
var j = q.currentScript || (function() {
|
|
4924
4928
|
var e = q.getElementsByTagName("script");
|
|
@@ -5040,14 +5044,14 @@ function Zs() {
|
|
|
5040
5044
|
}, ti = function(j, C) {
|
|
5041
5045
|
var e = this;
|
|
5042
5046
|
this.version = "3.7.6", this.name = "nicescroll", this.me = C;
|
|
5043
|
-
var Z =
|
|
5047
|
+
var Z = k("body"), g = this.opt = {
|
|
5044
5048
|
doc: Z,
|
|
5045
5049
|
win: !1
|
|
5046
5050
|
};
|
|
5047
|
-
if (
|
|
5051
|
+
if (k.extend(g, wt), g.snapbackspeed = 80, j)
|
|
5048
5052
|
for (var De in g)
|
|
5049
5053
|
j[De] !== void 0 && (g[De] = j[De]);
|
|
5050
|
-
if (g.disablemutationobserver && (U = !1), this.doc = g.doc, this.iddoc = this.doc && this.doc[0] && this.doc[0].id || "", this.ispage = /^BODY|HTML/.test(g.win ? g.win[0].nodeName : this.doc[0].nodeName), this.haswrapper = g.win !== !1, this.win = g.win || (this.ispage ?
|
|
5054
|
+
if (g.disablemutationobserver && (U = !1), this.doc = g.doc, this.iddoc = this.doc && this.doc[0] && this.doc[0].id || "", this.ispage = /^BODY|HTML/.test(g.win ? g.win[0].nodeName : this.doc[0].nodeName), this.haswrapper = g.win !== !1, this.win = g.win || (this.ispage ? ye : this.doc), this.docscroll = this.ispage && !this.haswrapper ? ye : this.win, this.body = Z, this.viewport = !1, this.isfixed = !1, this.iframe = !1, this.isiframe = this.doc[0].nodeName == "IFRAME" && this.win[0].nodeName == "IFRAME", this.istextarea = this.win[0].nodeName == "TEXTAREA", this.forcescreen = !1, this.canshowonmouseevent = g.autohidemode != "scroll", this.onmousedown = !1, this.onmouseup = !1, this.onmousemove = !1, this.onmousewheel = !1, this.onkeypress = !1, this.ongesturezoom = !1, this.onclick = !1, this.onscrollstart = !1, this.onscrollend = !1, this.onscrollcancel = !1, this.onzoomin = !1, this.onzoomout = !1, this.view = !1, this.page = !1, this.scroll = {
|
|
5051
5055
|
x: 0,
|
|
5052
5056
|
y: 0
|
|
5053
5057
|
}, this.scrollratio = {
|
|
@@ -5065,7 +5069,7 @@ function Zs() {
|
|
|
5065
5069
|
this.id = "ascrail" + z++;
|
|
5066
5070
|
while (q.getElementById(this.id));
|
|
5067
5071
|
this.rail = !1, this.cursor = !1, this.cursorfreezed = !1, this.selectiondrag = !1, this.zoom = !1, this.zoomactive = !1, this.hasfocus = !1, this.hasmousefocus = !1, this.railslocked = !1, this.locked = !1, this.hidden = !1, this.cursoractive = !0, this.wheelprevented = !1, this.overflowx = g.overflowx, this.overflowy = g.overflowy, this.nativescrollingarea = !1, this.checkarea = 0, this.events = [], this.saved = {}, this.delaylist = {}, this.synclist = {}, this.lastdeltax = 0, this.lastdeltay = 0, this.detected = $e();
|
|
5068
|
-
var B =
|
|
5072
|
+
var B = k.extend({}, this.detected);
|
|
5069
5073
|
this.canhwscroll = B.hastransform && g.hwacceleration, this.ishwscroll = this.canhwscroll && e.haswrapper, this.isrtlmode ? this.isvertical ? this.hasreversehr = !(B.iswebkit || B.isie || B.isie11) : this.hasreversehr = !(B.iswebkit || B.isie && !B.isie10 && !B.isie11) : this.hasreversehr = !1, this.istouchcapable = !1, !B.cantouch && (B.hasw3ctouch || B.hasmstouch) ? this.istouchcapable = !0 : B.cantouch && !B.isios && !B.isandroid && (B.iswebkit || B.ismozilla) && (this.istouchcapable = !0), g.enablemouselockapi || (B.hasmousecapture = !1, B.haspointerlock = !1), this.debounced = function(f, v, S) {
|
|
5070
5074
|
if (e) {
|
|
5071
5075
|
var H = e.delaylist[f] || !1;
|
|
@@ -5257,10 +5261,10 @@ function Zs() {
|
|
|
5257
5261
|
var f = { "overflow-y": "hidden" };
|
|
5258
5262
|
if ((B.isie11 || B.isie10) && (f["-ms-overflow-style"] = "none"), e.ishwscroll && (this.doc.css(B.transitionstyle, B.prefixstyle + "transform 0ms ease-out"), B.transitionend && e.bind(e.doc, B.transitionend, e.onScrollTransitionEnd, !1)), e.zindex = "auto", !e.ispage && g.zindex == "auto" ? e.zindex = xt() || "auto" : e.zindex = g.zindex, !e.ispage && e.zindex != "auto" && e.zindex > D && (D = e.zindex), e.isie && e.zindex === 0 && g.zindex == "auto" && (e.zindex = "auto"), !e.ispage || !B.isieold) {
|
|
5259
5263
|
var v = e.docscroll;
|
|
5260
|
-
e.ispage && (v = e.haswrapper ? e.win : e.doc), e.css(v, f), e.ispage && (B.isie11 || B.isie) && e.css(
|
|
5264
|
+
e.ispage && (v = e.haswrapper ? e.win : e.doc), e.css(v, f), e.ispage && (B.isie11 || B.isie) && e.css(k("html"), f), B.isios && !e.ispage && !e.haswrapper && e.css(Z, {
|
|
5261
5265
|
"-webkit-overflow-scrolling": "touch"
|
|
5262
5266
|
});
|
|
5263
|
-
var S =
|
|
5267
|
+
var S = k(q.createElement("div"));
|
|
5264
5268
|
S.css({
|
|
5265
5269
|
position: "relative",
|
|
5266
5270
|
top: 0,
|
|
@@ -5274,11 +5278,11 @@ function Zs() {
|
|
|
5274
5278
|
"-moz-border-radius": g.cursorborderradius,
|
|
5275
5279
|
"border-radius": g.cursorborderradius
|
|
5276
5280
|
}), S.addClass("nicescroll-cursors"), e.cursor = S;
|
|
5277
|
-
var H =
|
|
5281
|
+
var H = k(q.createElement("div"));
|
|
5278
5282
|
H.attr("id", e.id), H.addClass("nicescroll-rails nicescroll-rails-vr");
|
|
5279
5283
|
var W, M, ee = ["left", "right", "top", "bottom"];
|
|
5280
|
-
for (var
|
|
5281
|
-
M = ee[
|
|
5284
|
+
for (var we in ee)
|
|
5285
|
+
M = ee[we], W = g.railpadding[M] || 0, W && H.css("padding-" + M, W + "px");
|
|
5282
5286
|
H.append(S), H.width = Math.max(parseFloat(g.cursorwidth), S.outerWidth()), H.css({
|
|
5283
5287
|
width: H.width + "px",
|
|
5284
5288
|
zIndex: e.zindex,
|
|
@@ -5290,7 +5294,7 @@ function Zs() {
|
|
|
5290
5294
|
e.zoom.css("opacity", g.cursoropacitymax);
|
|
5291
5295
|
}), e.bind(Ae, "mouseleave", function() {
|
|
5292
5296
|
e.zoom.css("opacity", g.cursoropacitymin);
|
|
5293
|
-
}), e.zoom =
|
|
5297
|
+
}), e.zoom = k(Ae), e.zoom.css({
|
|
5294
5298
|
cursor: "pointer",
|
|
5295
5299
|
zIndex: e.zindex,
|
|
5296
5300
|
backgroundImage: "url(" + g.scriptpath + "zoomico.png)",
|
|
@@ -5303,7 +5307,7 @@ function Zs() {
|
|
|
5303
5307
|
var oe;
|
|
5304
5308
|
if (g.horizrailenabled && (e.css(v, {
|
|
5305
5309
|
overflowX: "hidden"
|
|
5306
|
-
}), S =
|
|
5310
|
+
}), S = k(q.createElement("div")), S.css({
|
|
5307
5311
|
position: "absolute",
|
|
5308
5312
|
top: 0,
|
|
5309
5313
|
height: g.cursorwidth,
|
|
@@ -5314,7 +5318,7 @@ function Zs() {
|
|
|
5314
5318
|
"-webkit-border-radius": g.cursorborderradius,
|
|
5315
5319
|
"-moz-border-radius": g.cursorborderradius,
|
|
5316
5320
|
"border-radius": g.cursorborderradius
|
|
5317
|
-
}), B.isieold && S.css("overflow", "hidden"), S.addClass("nicescroll-cursors"), e.cursorh = S, oe =
|
|
5321
|
+
}), B.isieold && S.css("overflow", "hidden"), S.addClass("nicescroll-cursors"), e.cursorh = S, oe = k(q.createElement("div")), oe.attr("id", e.id + "-hr"), oe.addClass("nicescroll-rails nicescroll-rails-hr"), oe.height = Math.max(parseFloat(g.cursorwidth), S.outerHeight()), oe.css({
|
|
5318
5322
|
height: oe.height + "px",
|
|
5319
5323
|
zIndex: e.zindex,
|
|
5320
5324
|
background: g.background
|
|
@@ -5332,7 +5336,7 @@ function Zs() {
|
|
|
5332
5336
|
if (e.ishwscroll) {
|
|
5333
5337
|
e.win.css("position") == "static" && e.css(e.win, { position: "relative" });
|
|
5334
5338
|
var Re = e.win[0].nodeName == "HTML" ? e.body : e.win;
|
|
5335
|
-
|
|
5339
|
+
k(Re).scrollTop(0).scrollLeft(0), e.zoom && (e.zoom.css({
|
|
5336
5340
|
position: "absolute",
|
|
5337
5341
|
top: 1,
|
|
5338
5342
|
right: 0,
|
|
@@ -5367,7 +5371,7 @@ function Zs() {
|
|
|
5367
5371
|
opacity: g.cursoropacitymax
|
|
5368
5372
|
}), e.railh && e.railh.css({
|
|
5369
5373
|
opacity: g.cursoropacitymax
|
|
5370
|
-
})) : g.autohidemode === !0 || g.autohidemode === "leave" ? (e.autohidedom =
|
|
5374
|
+
})) : g.autohidemode === !0 || g.autohidemode === "leave" ? (e.autohidedom = k().add(e.rail), B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursor)), e.railh && (e.autohidedom = e.autohidedom.add(e.railh)), e.railh && B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "scroll" ? (e.autohidedom = k().add(e.rail), e.railh && (e.autohidedom = e.autohidedom.add(e.railh))) : g.autohidemode == "cursor" ? (e.autohidedom = k().add(e.cursor), e.railh && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "hidden" && (e.autohidedom = !1, e.hide(), e.railslocked = !1), B.cantouch || e.istouchcapable || g.emulatetouch || B.hasmstouch) {
|
|
5371
5375
|
e.scrollmom = new o(e), e.ontouchstart = function(x) {
|
|
5372
5376
|
if (e.locked || x.pointerType && (x.pointerType === "mouse" || x.pointerType === x.MSPOINTER_TYPE_MOUSE)) return !1;
|
|
5373
5377
|
if (e.hasmoving = !1, e.scrollmom.timer && (e.triggerScrollEnd(), e.scrollmom.stop()), !e.railslocked) {
|
|
@@ -5397,8 +5401,8 @@ function Zs() {
|
|
|
5397
5401
|
e.rail.drag.dl = "f";
|
|
5398
5402
|
else {
|
|
5399
5403
|
var Ke = {
|
|
5400
|
-
w:
|
|
5401
|
-
h:
|
|
5404
|
+
w: ye.width(),
|
|
5405
|
+
h: ye.height()
|
|
5402
5406
|
}, ve = e.getContentSize(), Ce = ve.h - Ke.h, vt = ve.w - Ke.w;
|
|
5403
5407
|
e.rail.scrollable && !e.railh.scrollable ? e.rail.drag.ck = Ce > 0 ? "v" : !1 : !e.rail.scrollable && e.railh.scrollable ? e.rail.drag.ck = vt > 0 ? "h" : !1 : e.rail.drag.ck = !1;
|
|
5404
5408
|
}
|
|
@@ -5413,7 +5417,7 @@ function Zs() {
|
|
|
5413
5417
|
if (e.hasmoving) return !1;
|
|
5414
5418
|
K._onclick.call(this, nt);
|
|
5415
5419
|
}), e.cancelEvent(x)) : e.stopPropagation(x);
|
|
5416
|
-
/SUBMIT|CANCEL|BUTTON/i.test(
|
|
5420
|
+
/SUBMIT|CANCEL|BUTTON/i.test(k(K).attr("type")) && (e.preventclick = {
|
|
5417
5421
|
tg: K,
|
|
5418
5422
|
click: !1
|
|
5419
5423
|
});
|
|
@@ -5571,11 +5575,11 @@ function Zs() {
|
|
|
5571
5575
|
}, 250);
|
|
5572
5576
|
};
|
|
5573
5577
|
}
|
|
5574
|
-
if (B.hasw3ctouch ? (e.css(e.ispage ?
|
|
5578
|
+
if (B.hasw3ctouch ? (e.css(e.ispage ? k("html") : e.win, { "touch-action": "none" }), e.css(e.rail, {
|
|
5575
5579
|
"touch-action": "none"
|
|
5576
5580
|
}), e.css(e.cursor, {
|
|
5577
5581
|
"touch-action": "none"
|
|
5578
|
-
}), e.bind(e.win, "pointerdown", e.ontouchstart), e.bind(q, "pointerup", e.ontouchend), e.delegate(q, "pointermove", e.ontouchmove)) : B.hasmstouch ? (e.css(e.ispage ?
|
|
5582
|
+
}), e.bind(e.win, "pointerdown", e.ontouchstart), e.bind(q, "pointerup", e.ontouchend), e.delegate(q, "pointermove", e.ontouchmove)) : B.hasmstouch ? (e.css(e.ispage ? k("html") : e.win, { "-ms-touch-action": "none" }), e.css(e.rail, {
|
|
5579
5583
|
"-ms-touch-action": "none"
|
|
5580
5584
|
}), e.css(e.cursor, {
|
|
5581
5585
|
"-ms-touch-action": "none"
|
|
@@ -5628,7 +5632,7 @@ function Zs() {
|
|
|
5628
5632
|
}), e.railh && e.bind(e.railh, "mousedown", function(x) {
|
|
5629
5633
|
x.preventDefault();
|
|
5630
5634
|
}))), g.enablemousewheel && (e.isiframe || e.mousewheel(B.isie && e.ispage ? q : e.win, e.onmousewheel), e.mousewheel(e.rail, e.onmousewheel), e.railh && e.mousewheel(e.railh, e.onmousewheelhr)), !e.ispage && !B.cantouch && !/HTML|^BODY/.test(e.win[0].nodeName) && (e.win.attr("tabindex") || e.win.attr({
|
|
5631
|
-
tabindex: ++
|
|
5635
|
+
tabindex: ++L
|
|
5632
5636
|
}), e.bind(e.win, "focus", function(x) {
|
|
5633
5637
|
h = e.getTarget(x).id || e.getTarget(x) || !1, e.hasfocus = !0, e.canshowonmouseevent && e.noticeCursor();
|
|
5634
5638
|
}), e.bind(e.win, "blur", function(x) {
|
|
@@ -5645,7 +5649,7 @@ function Zs() {
|
|
|
5645
5649
|
var ue = K.getAttribute("type") || K.type || !1;
|
|
5646
5650
|
if (!ue || !/submit|button|cancel/i.tp) return !0;
|
|
5647
5651
|
}
|
|
5648
|
-
if (
|
|
5652
|
+
if (k(K).attr("contenteditable")) return !0;
|
|
5649
5653
|
if (e.hasfocus || e.hasmousefocus && !h || e.ispage && !h && !T) {
|
|
5650
5654
|
var ke = x.keyCode;
|
|
5651
5655
|
if (e.railslocked && ke != 27) return e.cancelEvent(x);
|
|
@@ -5701,8 +5705,8 @@ function Zs() {
|
|
|
5701
5705
|
}), e.bind(_, "blur", function(x) {
|
|
5702
5706
|
e.wheelprevented = !1;
|
|
5703
5707
|
}), e.bind(_, "resize", e.onscreenresize), e.bind(_, "orientationchange", e.onscreenresize), e.bind(_, "load", e.lazyResize), B.ischrome && !e.ispage && !e.haswrapper) {
|
|
5704
|
-
var Et = e.win.attr("style"),
|
|
5705
|
-
e.win.css("width",
|
|
5708
|
+
var Et = e.win.attr("style"), Ki = parseFloat(e.win.css("width")) + 1;
|
|
5709
|
+
e.win.css("width", Ki), e.synched("chromefix", function() {
|
|
5706
5710
|
e.win.attr("style", Et);
|
|
5707
5711
|
});
|
|
5708
5712
|
}
|
|
@@ -5711,7 +5715,7 @@ function Zs() {
|
|
|
5711
5715
|
}, g.enableobserver && (!e.isie11 && U !== !1 && (e.observerbody = new U(function(x) {
|
|
5712
5716
|
if (x.forEach(function(K) {
|
|
5713
5717
|
if (K.type == "attributes")
|
|
5714
|
-
return Z.hasClass("modal-open") && Z.hasClass("modal-dialog") && !
|
|
5718
|
+
return Z.hasClass("modal-open") && Z.hasClass("modal-dialog") && !k.contains(k(".modal-dialog")[0], e.doc[0]) ? e.hide() : e.show();
|
|
5715
5719
|
}), e.me.clientWidth != e.page.width || e.me.clientHeight != e.page.height) return e.lazyResize(30);
|
|
5716
5720
|
}), e.observerbody.observe(q.body, {
|
|
5717
5721
|
childList: !0,
|
|
@@ -5759,7 +5763,7 @@ function Zs() {
|
|
|
5759
5763
|
if (e.iframexd)
|
|
5760
5764
|
return "console" in _ && console.log("NiceScroll error: policy restriced iframe"), !0;
|
|
5761
5765
|
if (e.forcescreen = !0, e.isiframe && (e.iframe = {
|
|
5762
|
-
doc:
|
|
5766
|
+
doc: k(x),
|
|
5763
5767
|
html: e.doc.contents().find("html")[0],
|
|
5764
5768
|
body: e.doc.contents().find("body")[0]
|
|
5765
5769
|
}, e.getContentSize = function() {
|
|
@@ -5767,16 +5771,16 @@ function Zs() {
|
|
|
5767
5771
|
w: Math.max(e.iframe.html.scrollWidth, e.iframe.body.scrollWidth),
|
|
5768
5772
|
h: Math.max(e.iframe.html.scrollHeight, e.iframe.body.scrollHeight)
|
|
5769
5773
|
};
|
|
5770
|
-
}, e.docscroll =
|
|
5774
|
+
}, e.docscroll = k(e.iframe.body)), !B.isios && g.iframeautoresize && !e.isiframe) {
|
|
5771
5775
|
e.win.scrollTop(0), e.doc.height("");
|
|
5772
5776
|
var ue = Math.max(x.getElementsByTagName("html")[0].scrollHeight, x.body.scrollHeight);
|
|
5773
5777
|
e.doc.height(ue);
|
|
5774
5778
|
}
|
|
5775
|
-
e.lazyResize(30), e.css(
|
|
5779
|
+
e.lazyResize(30), e.css(k(e.iframe.body), f), B.isios && e.haswrapper && e.css(k(x.body), {
|
|
5776
5780
|
"-webkit-transform": "translate3d(0,0,0)"
|
|
5777
5781
|
}), "contentWindow" in this ? e.bind(this.contentWindow, "scroll", e.onscroll) : e.bind(x, "scroll", e.onscroll), g.enablemousewheel && e.mousewheel(x, e.onmousewheel), g.enablekeyboard && e.bind(x, B.isopera ? "keypress" : "keydown", e.onkeypress), B.cantouch ? (e.bind(x, "touchstart", e.ontouchstart), e.bind(x, "touchmove", e.ontouchmove)) : g.emulatetouch && (e.bind(x, "mousedown", e.ontouchstart), e.bind(x, "mousemove", function(ke) {
|
|
5778
5782
|
return e.ontouchmove(ke, !0);
|
|
5779
|
-
}), g.grabcursorenabled && B.cursorgrabvalue && e.css(
|
|
5783
|
+
}), g.grabcursorenabled && B.cursorgrabvalue && e.css(k(x.body), {
|
|
5780
5784
|
cursor: B.cursorgrabvalue
|
|
5781
5785
|
})), e.bind(x, "mouseup", e.ontouchend), e.zoom && (g.dblclickzoom && e.bind(x, "dblclick", e.doZoom), e.ongesturezoom && e.bind(x, "gestureend", e.ongesturezoom));
|
|
5782
5786
|
};
|
|
@@ -5838,8 +5842,8 @@ function Zs() {
|
|
|
5838
5842
|
return e;
|
|
5839
5843
|
var ee = e.win.offset();
|
|
5840
5844
|
if (e.lastposition) {
|
|
5841
|
-
var
|
|
5842
|
-
if (
|
|
5845
|
+
var we = e.lastposition;
|
|
5846
|
+
if (we.top == ee.top && we.left == ee.left) return e;
|
|
5843
5847
|
}
|
|
5844
5848
|
e.lastposition = ee;
|
|
5845
5849
|
}
|
|
@@ -5890,7 +5894,7 @@ function Zs() {
|
|
|
5890
5894
|
n: v,
|
|
5891
5895
|
f: S,
|
|
5892
5896
|
q: !0
|
|
5893
|
-
}),
|
|
5897
|
+
}), k(f).on(v, S);
|
|
5894
5898
|
}, this.mousewheel = function(f, v, S) {
|
|
5895
5899
|
var H = "jquery" in f ? f[0] : f;
|
|
5896
5900
|
if ("onwheel" in q.createElement("div"))
|
|
@@ -5903,10 +5907,10 @@ function Zs() {
|
|
|
5903
5907
|
var He = !1;
|
|
5904
5908
|
if (B.haseventlistener) {
|
|
5905
5909
|
try {
|
|
5906
|
-
var
|
|
5910
|
+
var Zi = Object.defineProperty({}, "passive", { get: function() {
|
|
5907
5911
|
He = !0;
|
|
5908
5912
|
} });
|
|
5909
|
-
_.addEventListener("test", null,
|
|
5913
|
+
_.addEventListener("test", null, Zi);
|
|
5910
5914
|
} catch {
|
|
5911
5915
|
}
|
|
5912
5916
|
this.stopPropagation = function(f) {
|
|
@@ -5934,15 +5938,15 @@ function Zs() {
|
|
|
5934
5938
|
a: [],
|
|
5935
5939
|
l: [],
|
|
5936
5940
|
f: function(ee) {
|
|
5937
|
-
for (var
|
|
5938
|
-
if (oe =
|
|
5941
|
+
for (var we = M.l, Ae = we.length - 1, oe = !1, Re = Ae; Re >= 0; Re--)
|
|
5942
|
+
if (oe = we[Re].call(ee.target, ee), oe === !1) return !1;
|
|
5939
5943
|
return oe;
|
|
5940
5944
|
}
|
|
5941
5945
|
}, e.bind(f, v, M.f, H, W), Q[v] = M), e.ispage ? (M.a = [e.id].concat(M.a), M.l = [S].concat(M.l)) : (M.a.push(e.id), M.l.push(S));
|
|
5942
5946
|
}, this.undelegate = function(f, v, S, H, W) {
|
|
5943
5947
|
var M = Q[v] || !1;
|
|
5944
5948
|
if (M && M.l)
|
|
5945
|
-
for (var ee = 0,
|
|
5949
|
+
for (var ee = 0, we = M.l.length; ee < we; ee++)
|
|
5946
5950
|
M.a[ee] === e.id && (M.a.splice(ee), M.l.splice(ee), M.a.length === 0 && (e._unbind(f, v, M.l.f), Q[v] = null));
|
|
5947
5951
|
}, this.bind = function(f, v, S, H, W) {
|
|
5948
5952
|
var M = "jquery" in f ? f[0] : f;
|
|
@@ -5989,7 +5993,7 @@ function Zs() {
|
|
|
5989
5993
|
S[0].css(S[1], S[2] === void 0 ? "" : S[2]);
|
|
5990
5994
|
}
|
|
5991
5995
|
e.saved = !1, e.me.data("__nicescroll", "");
|
|
5992
|
-
var H =
|
|
5996
|
+
var H = k.nicescroll;
|
|
5993
5997
|
H.each(function(M) {
|
|
5994
5998
|
if (this && this.id === e.id) {
|
|
5995
5999
|
delete H[M];
|
|
@@ -6014,14 +6018,14 @@ function Zs() {
|
|
|
6014
6018
|
var v = f.target ? f.target : f;
|
|
6015
6019
|
if (v.nodeName == "OPTION") return !0;
|
|
6016
6020
|
for (; v && v.nodeType == 1 && v !== this.me[0] && !/^BODY|HTML/.test(v.nodeName); ) {
|
|
6017
|
-
var S =
|
|
6021
|
+
var S = k(v), H = S.css("overflowY") || S.css("overflowX") || S.css("overflow") || "";
|
|
6018
6022
|
if (/scroll|auto/.test(H)) return v.clientHeight != v.scrollHeight;
|
|
6019
6023
|
v = v.parentNode ? v.parentNode : !1;
|
|
6020
6024
|
}
|
|
6021
6025
|
return !1;
|
|
6022
6026
|
}, this.getViewport = function(f) {
|
|
6023
6027
|
for (var v = f && f.parentNode ? f.parentNode : !1; v && v.nodeType == 1 && !/^BODY|HTML/.test(v.nodeName); ) {
|
|
6024
|
-
var S =
|
|
6028
|
+
var S = k(v);
|
|
6025
6029
|
if (/fixed|absolute/.test(S.css("position"))) return S;
|
|
6026
6030
|
var H = S.css("overflowY") || S.css("overflowX") || S.css("overflow") || "";
|
|
6027
6031
|
if (/scroll|auto/.test(H) && v.clientHeight != v.scrollHeight || S.getNiceScroll().length > 0) return S;
|
|
@@ -6086,8 +6090,8 @@ function Zs() {
|
|
|
6086
6090
|
})();
|
|
6087
6091
|
if (ee) {
|
|
6088
6092
|
if (g.nativeparentscrolling && S && !e.ispage && !e.zoomactive) return !0;
|
|
6089
|
-
var
|
|
6090
|
-
e.newscrolly < -
|
|
6093
|
+
var we = e.view.h >> 1;
|
|
6094
|
+
e.newscrolly < -we ? (e.newscrolly = -we, v = -1) : e.newscrolly > e.page.maxh + we ? (e.newscrolly = e.page.maxh + we, v = 1) : v = 0;
|
|
6091
6095
|
}
|
|
6092
6096
|
var Ae = v > 0 ? 1 : -1;
|
|
6093
6097
|
mt !== Ae && (e.scrollmom && e.scrollmom.stop(), e.newscrolly = e.getScrollTop(), mt = Ae), e.lastdeltay -= v;
|
|
@@ -6184,9 +6188,9 @@ function Zs() {
|
|
|
6184
6188
|
var H = e.getScrollTop(), W = e.getScrollLeft();
|
|
6185
6189
|
if (((e.newscrolly - H) * (v - H) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll(), g.bouncescroll ? (v < 0 ? v = v / 2 | 0 : v > e.page.maxh && (v = e.page.maxh + (v - e.page.maxh) / 2 | 0), f < 0 ? f = f / 2 | 0 : f > e.page.maxw && (f = e.page.maxw + (f - e.page.maxw) / 2 | 0)) : (v < 0 ? v = 0 : v > e.page.maxh && (v = e.page.maxh), f < 0 ? f = 0 : f > e.page.maxw && (f = e.page.maxw)), e.scrollrunning && f == e.newscrollx && v == e.newscrolly) return !1;
|
|
6186
6190
|
e.newscrolly = v, e.newscrollx = f;
|
|
6187
|
-
var M = e.getScrollTop(), ee = e.getScrollLeft(),
|
|
6188
|
-
|
|
6189
|
-
var Ae = Math.sqrt(
|
|
6191
|
+
var M = e.getScrollTop(), ee = e.getScrollLeft(), we = {};
|
|
6192
|
+
we.x = f - ee, we.y = v - M;
|
|
6193
|
+
var Ae = Math.sqrt(we.x * we.x + we.y * we.y) | 0, oe = e.prepareTransition(Ae);
|
|
6190
6194
|
e.scrollrunning || (e.scrollrunning = !0, e.triggerScrollStart(ee, M, f, v, oe), e.cursorupdate.start()), e.scrollendtrapped = !0, B.transitionend || (e.scrollendtrapped && clearTimeout(e.scrollendtrapped), e.scrollendtrapped = setTimeout(e.onScrollTransitionEnd, oe)), e.setScrollTop(e.newscrolly), e.setScrollLeft(e.newscrollx);
|
|
6191
6195
|
}, this.cancelScroll = function() {
|
|
6192
6196
|
if (!e.scrollendtrapped) return !0;
|
|
@@ -6212,17 +6216,17 @@ function Zs() {
|
|
|
6212
6216
|
var M = !1;
|
|
6213
6217
|
if ((!e.bouncescroll || !e.rail.visibility) && (v < 0 ? (v = 0, M = !0) : v > e.page.maxh && (v = e.page.maxh, M = !0)), (!e.bouncescroll || !e.railh.visibility) && (f < 0 ? (f = 0, M = !0) : f > e.page.maxw && (f = e.page.maxw, M = !0)), e.scrollrunning && e.newscrolly === v && e.newscrollx === f) return !0;
|
|
6214
6218
|
e.newscrolly = v, e.newscrollx = f, e.dst = {}, e.dst.x = f - W, e.dst.y = v - H, e.dst.px = W, e.dst.py = H;
|
|
6215
|
-
var ee = Math.sqrt(e.dst.x * e.dst.x + e.dst.y * e.dst.y) | 0,
|
|
6219
|
+
var ee = Math.sqrt(e.dst.x * e.dst.x + e.dst.y * e.dst.y) | 0, we = e.getTransitionSpeed(ee);
|
|
6216
6220
|
e.bzscroll = {};
|
|
6217
6221
|
var Ae = M ? 1 : 0.58;
|
|
6218
|
-
e.bzscroll.x = new Te(W, e.newscrollx,
|
|
6222
|
+
e.bzscroll.x = new Te(W, e.newscrollx, we, 0, 0, Ae, 1), e.bzscroll.y = new Te(H, e.newscrolly, we, 0, 0, Ae, 1), pe();
|
|
6219
6223
|
var oe = function() {
|
|
6220
6224
|
if (e.scrollrunning) {
|
|
6221
6225
|
var Re = e.bzscroll.y.getPos();
|
|
6222
6226
|
e.setScrollLeft(e.bzscroll.x.getNow()), e.setScrollTop(e.bzscroll.y.getNow()), Re <= 1 ? e.timer = V(oe) : (e.scrollrunning = !1, e.timer = 0, e.triggerScrollEnd());
|
|
6223
6227
|
}
|
|
6224
6228
|
};
|
|
6225
|
-
e.scrollrunning || (e.triggerScrollStart(W, H, f, v,
|
|
6229
|
+
e.scrollrunning || (e.triggerScrollStart(W, H, f, v, we), e.scrollrunning = !0, e.timer = V(oe));
|
|
6226
6230
|
}, this.cancelScroll = function() {
|
|
6227
6231
|
return e.timer && G(e.timer), e.timer = 0, e.bzscroll = !1, e.scrollrunning = !1, e;
|
|
6228
6232
|
};
|
|
@@ -6253,7 +6257,7 @@ function Zs() {
|
|
|
6253
6257
|
e.zoomrestore.style.width = e.win.css("width"), e.zoomrestore.style.height = e.win.css("height"), e.zoomrestore.padding = {
|
|
6254
6258
|
w: e.win.outerWidth() - e.win.width(),
|
|
6255
6259
|
h: e.win.outerHeight() - e.win.height()
|
|
6256
|
-
}, B.isios4 && (e.zoomrestore.scrollTop =
|
|
6260
|
+
}, B.isios4 && (e.zoomrestore.scrollTop = ye.scrollTop(), ye.scrollTop(0)), e.win.css({
|
|
6257
6261
|
position: B.isios4 ? "absolute" : "fixed",
|
|
6258
6262
|
top: 0,
|
|
6259
6263
|
left: 0,
|
|
@@ -6269,7 +6273,7 @@ function Zs() {
|
|
|
6269
6273
|
}
|
|
6270
6274
|
}, this.doZoomOut = function(f) {
|
|
6271
6275
|
if (e.zoomactive)
|
|
6272
|
-
return e.zoomactive = !1, e.win.css("margin", ""), e.win.css(e.zoomrestore.style), B.isios4 &&
|
|
6276
|
+
return e.zoomactive = !1, e.win.css("margin", ""), e.win.css(e.zoomrestore.style), B.isios4 && ye.scrollTop(e.zoomrestore.scrollTop), e.rail.css({
|
|
6273
6277
|
"z-index": e.zindex
|
|
6274
6278
|
}), e.zoom.css({
|
|
6275
6279
|
"z-index": e.zindex
|
|
@@ -6280,11 +6284,11 @@ function Zs() {
|
|
|
6280
6284
|
if (e.zoomactive) {
|
|
6281
6285
|
var f = e.getScrollTop();
|
|
6282
6286
|
e.win.css({
|
|
6283
|
-
width:
|
|
6284
|
-
height:
|
|
6287
|
+
width: ye.width() - e.zoomrestore.padding.w + "px",
|
|
6288
|
+
height: ye.height() - e.zoomrestore.padding.h + "px"
|
|
6285
6289
|
}), e.onResize(), e.setScrollTop(Math.min(e.page.maxh, f));
|
|
6286
6290
|
}
|
|
6287
|
-
}, this.init(),
|
|
6291
|
+
}, this.init(), k.nicescroll.push(this);
|
|
6288
6292
|
}, o = function(j) {
|
|
6289
6293
|
var C = this;
|
|
6290
6294
|
this.nc = j, this.lastx = 0, this.lasty = 0, this.speedx = 0, this.speedy = 0, this.lasttime = 0, this.steptime = 0, this.snapx = !1, this.snapy = !1, this.demulx = 0, this.demuly = 0, this.lastscrollx = -1, this.lastscrolly = -1, this.chkx = 0, this.chky = 0, this.timer = 0, this.reset = function(e, Z) {
|
|
@@ -6325,62 +6329,62 @@ function Zs() {
|
|
|
6325
6329
|
}, at = d.fn.scrollTop;
|
|
6326
6330
|
d.cssHooks.pageYOffset = {
|
|
6327
6331
|
get: function(j, C, e) {
|
|
6328
|
-
var Z =
|
|
6332
|
+
var Z = k.data(j, "__nicescroll") || !1;
|
|
6329
6333
|
return Z && Z.ishwscroll ? Z.getScrollTop() : at.call(j);
|
|
6330
6334
|
},
|
|
6331
6335
|
set: function(j, C) {
|
|
6332
|
-
var e =
|
|
6336
|
+
var e = k.data(j, "__nicescroll") || !1;
|
|
6333
6337
|
return e && e.ishwscroll ? e.setScrollTop(parseInt(C)) : at.call(j, C), this;
|
|
6334
6338
|
}
|
|
6335
6339
|
}, d.fn.scrollTop = function(j) {
|
|
6336
6340
|
if (j === void 0) {
|
|
6337
|
-
var C = this[0] &&
|
|
6341
|
+
var C = this[0] && k.data(this[0], "__nicescroll") || !1;
|
|
6338
6342
|
return C && C.ishwscroll ? C.getScrollTop() : at.call(this);
|
|
6339
6343
|
} else
|
|
6340
6344
|
return this.each(function() {
|
|
6341
|
-
var e =
|
|
6342
|
-
e && e.ishwscroll ? e.setScrollTop(parseInt(j)) : at.call(
|
|
6345
|
+
var e = k.data(this, "__nicescroll") || !1;
|
|
6346
|
+
e && e.ishwscroll ? e.setScrollTop(parseInt(j)) : at.call(k(this), j);
|
|
6343
6347
|
});
|
|
6344
6348
|
};
|
|
6345
6349
|
var me = d.fn.scrollLeft;
|
|
6346
|
-
|
|
6350
|
+
k.cssHooks.pageXOffset = {
|
|
6347
6351
|
get: function(j, C, e) {
|
|
6348
|
-
var Z =
|
|
6352
|
+
var Z = k.data(j, "__nicescroll") || !1;
|
|
6349
6353
|
return Z && Z.ishwscroll ? Z.getScrollLeft() : me.call(j);
|
|
6350
6354
|
},
|
|
6351
6355
|
set: function(j, C) {
|
|
6352
|
-
var e =
|
|
6356
|
+
var e = k.data(j, "__nicescroll") || !1;
|
|
6353
6357
|
return e && e.ishwscroll ? e.setScrollLeft(parseInt(C)) : me.call(j, C), this;
|
|
6354
6358
|
}
|
|
6355
6359
|
}, d.fn.scrollLeft = function(j) {
|
|
6356
6360
|
if (j === void 0) {
|
|
6357
|
-
var C = this[0] &&
|
|
6361
|
+
var C = this[0] && k.data(this[0], "__nicescroll") || !1;
|
|
6358
6362
|
return C && C.ishwscroll ? C.getScrollLeft() : me.call(this);
|
|
6359
6363
|
} else
|
|
6360
6364
|
return this.each(function() {
|
|
6361
|
-
var e =
|
|
6362
|
-
e && e.ishwscroll ? e.setScrollLeft(parseInt(j)) : me.call(
|
|
6365
|
+
var e = k.data(this, "__nicescroll") || !1;
|
|
6366
|
+
e && e.ishwscroll ? e.setScrollLeft(parseInt(j)) : me.call(k(this), j);
|
|
6363
6367
|
});
|
|
6364
6368
|
};
|
|
6365
6369
|
var Wt = function(j) {
|
|
6366
6370
|
var C = this;
|
|
6367
6371
|
if (this.length = 0, this.name = "nicescrollarray", this.each = function(g) {
|
|
6368
|
-
return
|
|
6372
|
+
return k.each(C, g), C;
|
|
6369
6373
|
}, this.push = function(g) {
|
|
6370
6374
|
C[C.length] = g, C.length++;
|
|
6371
6375
|
}, this.eq = function(g) {
|
|
6372
6376
|
return C[g];
|
|
6373
6377
|
}, j)
|
|
6374
6378
|
for (var e = 0; e < j.length; e++) {
|
|
6375
|
-
var Z =
|
|
6379
|
+
var Z = k.data(j[e], "__nicescroll") || !1;
|
|
6376
6380
|
Z && (this[this.length] = Z, this.length++);
|
|
6377
6381
|
}
|
|
6378
6382
|
return this;
|
|
6379
6383
|
};
|
|
6380
|
-
function
|
|
6384
|
+
function Ui(j, C, e) {
|
|
6381
6385
|
for (var Z = 0, g = C.length; Z < g; Z++) e(j, C[Z]);
|
|
6382
6386
|
}
|
|
6383
|
-
|
|
6387
|
+
Ui(
|
|
6384
6388
|
Wt.prototype,
|
|
6385
6389
|
["show", "hide", "toggle", "onResize", "resize", "remove", "stop", "doScrollPos"],
|
|
6386
6390
|
function(j, C) {
|
|
@@ -6392,19 +6396,19 @@ function Zs() {
|
|
|
6392
6396
|
};
|
|
6393
6397
|
}
|
|
6394
6398
|
), d.fn.getNiceScroll = function(j) {
|
|
6395
|
-
return j === void 0 ? new Wt(this) : this[j] &&
|
|
6399
|
+
return j === void 0 ? new Wt(this) : this[j] && k.data(this[j], "__nicescroll") || !1;
|
|
6396
6400
|
};
|
|
6397
|
-
var
|
|
6398
|
-
|
|
6399
|
-
return
|
|
6400
|
-
},
|
|
6401
|
+
var Gi = d.expr.pseudos || d.expr[":"];
|
|
6402
|
+
Gi.nicescroll = function(j) {
|
|
6403
|
+
return k.data(j, "__nicescroll") !== void 0;
|
|
6404
|
+
}, k.fn.niceScroll = function(j, C) {
|
|
6401
6405
|
C === void 0 && typeof j == "object" && !("jquery" in j) && (C = j, j = !1);
|
|
6402
6406
|
var e = new Wt();
|
|
6403
6407
|
return this.each(function() {
|
|
6404
|
-
var Z =
|
|
6408
|
+
var Z = k(this), g = k.extend({}, C);
|
|
6405
6409
|
if (j) {
|
|
6406
|
-
var De =
|
|
6407
|
-
g.doc = De.length > 1 ?
|
|
6410
|
+
var De = k(j);
|
|
6411
|
+
g.doc = De.length > 1 ? k(j, Z) : De, g.win = Z;
|
|
6408
6412
|
}
|
|
6409
6413
|
var ge = !("doc" in g);
|
|
6410
6414
|
!ge && !("win" in g) && (g.win = Z);
|
|
@@ -6415,28 +6419,28 @@ function Zs() {
|
|
|
6415
6419
|
getjQuery: function() {
|
|
6416
6420
|
return d;
|
|
6417
6421
|
}
|
|
6418
|
-
},
|
|
6422
|
+
}, k.nicescroll || (k.nicescroll = new Wt(), k.nicescroll.options = wt);
|
|
6419
6423
|
});
|
|
6420
|
-
})(
|
|
6424
|
+
})(xr)), xr.exports;
|
|
6421
6425
|
}
|
|
6422
|
-
|
|
6423
|
-
const
|
|
6424
|
-
function
|
|
6426
|
+
Js();
|
|
6427
|
+
const Ur = ".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";
|
|
6428
|
+
function Ea(s, c) {
|
|
6425
6429
|
if (s.classList.contains("cover"))
|
|
6426
6430
|
return;
|
|
6427
|
-
const d =
|
|
6431
|
+
const d = Fr(s);
|
|
6428
6432
|
if ("IntersectionObserver" in window) {
|
|
6429
|
-
let h = [], T = 0,
|
|
6430
|
-
Qt(s).find(
|
|
6431
|
-
const
|
|
6432
|
-
if (!
|
|
6433
|
+
let h = [], T = 0, L = 0;
|
|
6434
|
+
Qt(s).find(Ur).each((z, D) => {
|
|
6435
|
+
const k = D.firstElementChild, q = D.lastElementChild;
|
|
6436
|
+
if (!k || !q)
|
|
6433
6437
|
return;
|
|
6434
6438
|
let _ = 1;
|
|
6435
|
-
const
|
|
6439
|
+
const ye = document.querySelector(
|
|
6436
6440
|
"style#scale-style-sheet"
|
|
6437
6441
|
);
|
|
6438
|
-
if (
|
|
6439
|
-
const Ee =
|
|
6442
|
+
if (ye) {
|
|
6443
|
+
const Ee = ye.innerHTML.match(
|
|
6440
6444
|
/transform:[a-z0-9, ()]* scale\((\d+(\.\d+)?)\)/
|
|
6441
6445
|
);
|
|
6442
6446
|
Ee && (_ = parseFloat(Ee[1]));
|
|
@@ -6451,13 +6455,13 @@ function Ta(s, c) {
|
|
|
6451
6455
|
));
|
|
6452
6456
|
}
|
|
6453
6457
|
}
|
|
6454
|
-
const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } =
|
|
6458
|
+
const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } = bo(_, D), G = new IntersectionObserver(
|
|
6455
6459
|
(Ee, U) => {
|
|
6456
6460
|
Ee.forEach((pe) => {
|
|
6457
|
-
if (
|
|
6461
|
+
if (L++, U.unobserve(pe.target), !pe.target.parentElement)
|
|
6458
6462
|
return;
|
|
6459
6463
|
const wt = !!pe.target.closest(
|
|
6460
|
-
|
|
6464
|
+
ji
|
|
6461
6465
|
);
|
|
6462
6466
|
let Ve = pe.intersectionRatio < 0.999;
|
|
6463
6467
|
if (Ve && wt) {
|
|
@@ -6495,7 +6499,7 @@ function Ta(s, c) {
|
|
|
6495
6499
|
"scrolling-bubble"
|
|
6496
6500
|
);
|
|
6497
6501
|
}
|
|
6498
|
-
|
|
6502
|
+
L === T && (Qt(h).niceScroll({
|
|
6499
6503
|
autohidemode: !1,
|
|
6500
6504
|
railoffset: {
|
|
6501
6505
|
top: -Q,
|
|
@@ -6506,7 +6510,7 @@ function Ta(s, c) {
|
|
|
6506
6510
|
cursoropacitymax: 0.1,
|
|
6507
6511
|
cursorborderradius: V
|
|
6508
6512
|
// Make the corner more rounded than the 5px default.
|
|
6509
|
-
}),
|
|
6513
|
+
}), ea(
|
|
6510
6514
|
s,
|
|
6511
6515
|
c
|
|
6512
6516
|
), h = []);
|
|
@@ -6514,11 +6518,11 @@ function Ta(s, c) {
|
|
|
6514
6518
|
},
|
|
6515
6519
|
{ root: D }
|
|
6516
6520
|
);
|
|
6517
|
-
T++, G.observe(
|
|
6521
|
+
T++, G.observe(k), k !== q && (T++, G.observe(q));
|
|
6518
6522
|
});
|
|
6519
6523
|
}
|
|
6520
6524
|
}
|
|
6521
|
-
function
|
|
6525
|
+
function Qs(s) {
|
|
6522
6526
|
for (var c = s && s.parentNode ? s.parentNode : null; c && c.nodeType === Node.ELEMENT_NODE && !/^BODY|HTML/.test(c.nodeName); ) {
|
|
6523
6527
|
const d = window.getComputedStyle(c), h = d.getPropertyValue("position");
|
|
6524
6528
|
if (/fixed|absolute/.test(h)) return c;
|
|
@@ -6528,33 +6532,33 @@ function Ks(s) {
|
|
|
6528
6532
|
}
|
|
6529
6533
|
return null;
|
|
6530
6534
|
}
|
|
6531
|
-
function
|
|
6535
|
+
function bo(s, c) {
|
|
6532
6536
|
let d = 0, h = 0, T = "12px";
|
|
6533
6537
|
if (s !== 1) {
|
|
6534
|
-
const
|
|
6535
|
-
if (!
|
|
6538
|
+
const L = c.parentElement;
|
|
6539
|
+
if (!L || !L.classList.contains("bloom-translationGroup"))
|
|
6536
6540
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6537
|
-
if (
|
|
6538
|
-
const D = window.getComputedStyle(
|
|
6539
|
-
d = parseFloat(
|
|
6541
|
+
if (Qs(c)) {
|
|
6542
|
+
const D = window.getComputedStyle(L), k = D.getPropertyValue("padding-top") || "0", q = D.getPropertyValue("padding-left") || "0";
|
|
6543
|
+
d = parseFloat(k) * (s - 1), h = parseFloat(q) * (s - 1);
|
|
6540
6544
|
} else {
|
|
6541
|
-
const D =
|
|
6545
|
+
const D = L.parentElement;
|
|
6542
6546
|
if (!D)
|
|
6543
6547
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6544
6548
|
T = `${12 * s}px`;
|
|
6545
|
-
const
|
|
6546
|
-
d = -(
|
|
6549
|
+
const k = D?.offsetTop, q = D.offsetLeft + D.offsetWidth;
|
|
6550
|
+
d = -(k * (s - 1)), h = -(q * (s - 1));
|
|
6547
6551
|
}
|
|
6548
6552
|
}
|
|
6549
6553
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6550
6554
|
}
|
|
6551
|
-
function
|
|
6555
|
+
function ea(s, c) {
|
|
6552
6556
|
if (s.removeEventListener(
|
|
6553
6557
|
"pointerdown",
|
|
6554
|
-
|
|
6558
|
+
Ln
|
|
6555
6559
|
), s.addEventListener(
|
|
6556
6560
|
"pointerdown",
|
|
6557
|
-
|
|
6561
|
+
Ln
|
|
6558
6562
|
), !!c)
|
|
6559
6563
|
for (const d of ["pointermove", "pointerup"])
|
|
6560
6564
|
s.ownerDocument.body.addEventListener(
|
|
@@ -6565,22 +6569,22 @@ function Js(s, c) {
|
|
|
6565
6569
|
}
|
|
6566
6570
|
);
|
|
6567
6571
|
}
|
|
6568
|
-
function
|
|
6569
|
-
s.querySelectorAll(
|
|
6572
|
+
function Ca(s, c) {
|
|
6573
|
+
s.querySelectorAll(Ur).forEach(
|
|
6570
6574
|
(d) => {
|
|
6571
6575
|
const h = Qt(d).getNiceScroll();
|
|
6572
6576
|
if (h && h.length > 0) {
|
|
6573
|
-
let { topAdjust: T, leftAdjust:
|
|
6574
|
-
h[0].opt.railoffset.top = -T, h[0].opt.railoffset.left = -
|
|
6577
|
+
let { topAdjust: T, leftAdjust: L, thumbWidth: z } = bo(c, d);
|
|
6578
|
+
h[0].opt.railoffset.top = -T, h[0].opt.railoffset.left = -L, h[0].opt.cursorwidth = z, h[0].resize();
|
|
6575
6579
|
}
|
|
6576
6580
|
}
|
|
6577
6581
|
);
|
|
6578
6582
|
}
|
|
6579
|
-
function
|
|
6583
|
+
function Ln(s) {
|
|
6580
6584
|
s.target instanceof HTMLDivElement && s.target.classList.contains("nicescroll-cursors") && (s.target.setPointerCapture(s.pointerId), s.pointerType === "mouse" && s.stopPropagation());
|
|
6581
6585
|
}
|
|
6582
|
-
function
|
|
6583
|
-
Qt("div.bloom-page")[0]?.querySelectorAll(
|
|
6586
|
+
function Aa() {
|
|
6587
|
+
Qt("div.bloom-page")[0]?.querySelectorAll(Ur).forEach((s) => {
|
|
6584
6588
|
const c = Qt(
|
|
6585
6589
|
s
|
|
6586
6590
|
).getNiceScroll();
|
|
@@ -6597,7 +6601,7 @@ function Ea() {
|
|
|
6597
6601
|
), d.classList.add("bloom-vertical-align-bottom")), s.style.overflow = "", s.style.outline = "", s.style.width = "");
|
|
6598
6602
|
});
|
|
6599
6603
|
}
|
|
6600
|
-
class
|
|
6604
|
+
class ta {
|
|
6601
6605
|
static getActualUrlFromCSSPropertyValue(c) {
|
|
6602
6606
|
const d = c.match(/.*url\((['"])(.*?)\1\).*/i);
|
|
6603
6607
|
return d ? d[2] : "";
|
|
@@ -6678,16 +6682,16 @@ const gt = class gt {
|
|
|
6678
6682
|
this.animatableCanvas.classList[D]
|
|
6679
6683
|
);
|
|
6680
6684
|
h.classList.add("bloom-animationBackground");
|
|
6681
|
-
const
|
|
6685
|
+
const L = this.animatableCanvas.cloneNode(
|
|
6682
6686
|
!0
|
|
6683
6687
|
), z = () => {
|
|
6684
6688
|
const D = this.animatableCanvas.style.backgroundImage;
|
|
6685
|
-
D ?
|
|
6689
|
+
D ? L.style.backgroundImage = D : requestAnimationFrame(z);
|
|
6686
6690
|
};
|
|
6687
|
-
|
|
6691
|
+
L.hasAttribute("data-imgsizebasedon") || requestAnimationFrame(z), T = document.createElement("div"), T.classList.add(gt.wrapperClassName), T.appendChild(L), T.style.visibility = "hidden", h.appendChild(T), c.insertBefore(h, c.firstChild), this.applyCanvasAspectRatioToAnimationWrapper(
|
|
6688
6692
|
c,
|
|
6689
6693
|
T,
|
|
6690
|
-
|
|
6694
|
+
L,
|
|
6691
6695
|
d
|
|
6692
6696
|
);
|
|
6693
6697
|
} else
|
|
@@ -6701,10 +6705,10 @@ const gt = class gt {
|
|
|
6701
6705
|
createAndPlayAnimation(c, d) {
|
|
6702
6706
|
const h = gt.getAnimationCanvas(c);
|
|
6703
6707
|
if (this.animationEngine && this.animationEngine.endAnimation(), h) {
|
|
6704
|
-
const T = h.getAttribute("data-initialrect"),
|
|
6705
|
-
this.animationEngine = new
|
|
6708
|
+
const T = h.getAttribute("data-initialrect"), L = h.getAttribute("data-finalrect");
|
|
6709
|
+
this.animationEngine = new ia(
|
|
6706
6710
|
T,
|
|
6707
|
-
|
|
6711
|
+
L,
|
|
6708
6712
|
this.animationDuration,
|
|
6709
6713
|
h
|
|
6710
6714
|
), d ? this.animationEngine.setCurrentAnimationFrame() : this.animationEngine.startAnimation();
|
|
@@ -6714,13 +6718,13 @@ const gt = class gt {
|
|
|
6714
6718
|
if (c.hasAttribute("data-aspectRatio"))
|
|
6715
6719
|
this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
|
|
6716
6720
|
else if (h.hasAttribute("data-imgsizebasedon")) {
|
|
6717
|
-
const
|
|
6721
|
+
const L = h.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);
|
|
6718
6722
|
d.setAttribute(
|
|
6719
6723
|
"data-aspectRatio",
|
|
6720
|
-
(
|
|
6724
|
+
(L[0] / L[1]).toString()
|
|
6721
6725
|
), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
|
|
6722
6726
|
} else {
|
|
6723
|
-
const
|
|
6727
|
+
const L = () => {
|
|
6724
6728
|
if (h.style.backgroundImage) {
|
|
6725
6729
|
const z = new Image();
|
|
6726
6730
|
z.addEventListener("load", () => {
|
|
@@ -6728,13 +6732,13 @@ const gt = class gt {
|
|
|
6728
6732
|
"data-aspectRatio",
|
|
6729
6733
|
(z.naturalWidth / z.naturalHeight).toString()
|
|
6730
6734
|
), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
|
|
6731
|
-
}), z.src =
|
|
6735
|
+
}), z.src = ta.getActualUrlFromCSSPropertyValue(
|
|
6732
6736
|
h.style.backgroundImage
|
|
6733
6737
|
);
|
|
6734
6738
|
} else
|
|
6735
|
-
requestAnimationFrame(
|
|
6739
|
+
requestAnimationFrame(L);
|
|
6736
6740
|
};
|
|
6737
|
-
requestAnimationFrame(
|
|
6741
|
+
requestAnimationFrame(L);
|
|
6738
6742
|
}
|
|
6739
6743
|
}
|
|
6740
6744
|
// Enhance: some of the calculations here may require adjustment if we ever do
|
|
@@ -6744,13 +6748,13 @@ const gt = class gt {
|
|
|
6744
6748
|
placeAnimationWrapper(c) {
|
|
6745
6749
|
const d = parseFloat(
|
|
6746
6750
|
c.getAttribute("data-aspectRatio")
|
|
6747
|
-
), h = c.parentElement, T = h.clientWidth,
|
|
6751
|
+
), h = c.parentElement, T = h.clientWidth, L = h.clientHeight, z = T / L;
|
|
6748
6752
|
if (d < z) {
|
|
6749
|
-
const D =
|
|
6753
|
+
const D = L * d;
|
|
6750
6754
|
c.style.height = "100%", c.style.width = `${D}px`, c.style.left = `${(T - D) / 2}px`;
|
|
6751
6755
|
} else {
|
|
6752
6756
|
const D = T / d;
|
|
6753
|
-
c.style.width = "100%", c.style.height = `${D}px`, c.style.top = `${(
|
|
6757
|
+
c.style.width = "100%", c.style.height = `${D}px`, c.style.top = `${(L - D) / 2}px`;
|
|
6754
6758
|
}
|
|
6755
6759
|
c.style.overflow = "hidden", c.style.visibility = "visible", this.placeCanvasByScale(
|
|
6756
6760
|
c,
|
|
@@ -6812,8 +6816,8 @@ const gt = class gt {
|
|
|
6812
6816
|
}
|
|
6813
6817
|
};
|
|
6814
6818
|
gt.wrapperClassName = "bloom-ui-animationWrapper";
|
|
6815
|
-
let
|
|
6816
|
-
class
|
|
6819
|
+
let Nn = gt;
|
|
6820
|
+
class ia {
|
|
6817
6821
|
//initial and final rect strings come in as space-separated "left top width height"
|
|
6818
6822
|
// all four of these parameters are reperesented as fractions of the canvas
|
|
6819
6823
|
//duration is the length of the animation in seconds
|
|
@@ -6822,8 +6826,8 @@ class ea {
|
|
|
6822
6826
|
// the parent's transform can just be translateZ(0), but it needs to be moved out of the page stacking context in the same way as its child in order for overflow:hidden to have any effect
|
|
6823
6827
|
constructor(c, d, h, T) {
|
|
6824
6828
|
this.duration = h * 1e3, this.totalElapsedTime = 0, this.lastFrameTime = Date.now(), this.paused = !0, this.canvasToAnimate = T;
|
|
6825
|
-
const
|
|
6826
|
-
|
|
6829
|
+
const L = c.split(" ").map(parseFloat), z = d.split(" ").map(parseFloat);
|
|
6830
|
+
L.length != 4 || z.length != 4 || Math.min(...z) < 0 || Math.min(...L) < 0 || L[0] + L[2] > 1.01 || L[1] + L[3] > 1.01 || z[0] + z[2] > 1.01 || z[1] + z[3] > 1.01 ? (this.initialScale = 1, this.finalScale = 1, this.initialLeft = 0, this.finalLeft = 0, this.initialTop = 0, this.finalTop = 0) : (L[0], z[0], L[1], z[1], this.initialScale = 1 / Math.min(L[2], L[3]), this.initialScale == 1 && (this.initialScale = 1.0001), this.finalScale = 1 / Math.min(z[2], z[3]), this.finalScale == 1 && (this.finalScale = 1.0001), this.initialLeft = this.initialScale * 100 * (0.5 - (0.5 * L[2] + L[0])), this.initialTop = this.initialScale * 100 * (0.5 - (0.5 * L[3] + L[1])), this.finalLeft = this.finalScale * 100 * (0.5 - (0.5 * z[2] + z[0])), this.finalTop = this.finalScale * 100 * (0.5 - (0.5 * z[3] + z[1])));
|
|
6827
6831
|
}
|
|
6828
6832
|
//Enhance: changing scale while changing left/top can result in slightly choppy motion if the direction of apparent motion from scaling is opposite the direction of motion from left and/or top
|
|
6829
6833
|
//this is noticeable at low speeds.
|
|
@@ -6831,11 +6835,11 @@ class ea {
|
|
|
6831
6835
|
getScaleAndPosition() {
|
|
6832
6836
|
let c = this.totalElapsedTime / this.duration;
|
|
6833
6837
|
c = Math.min(1, Math.max(0, c));
|
|
6834
|
-
const d = this.easingFunction(c), h = this.initialScale + (this.finalScale - this.initialScale) * d, T = this.initialLeft + (this.finalLeft - this.initialLeft) * d,
|
|
6838
|
+
const d = this.easingFunction(c), h = this.initialScale + (this.finalScale - this.initialScale) * d, T = this.initialLeft + (this.finalLeft - this.initialLeft) * d, L = this.initialTop + (this.finalTop - this.initialTop) * d;
|
|
6835
6839
|
return {
|
|
6836
6840
|
scale: h,
|
|
6837
6841
|
left: T,
|
|
6838
|
-
top:
|
|
6842
|
+
top: L
|
|
6839
6843
|
};
|
|
6840
6844
|
}
|
|
6841
6845
|
//make the animation smoother by applying a non-linear transformation.
|
|
@@ -6868,78 +6872,79 @@ class ea {
|
|
|
6868
6872
|
}
|
|
6869
6873
|
}
|
|
6870
6874
|
export {
|
|
6871
|
-
|
|
6872
|
-
|
|
6875
|
+
Nn as Animation,
|
|
6876
|
+
Fr as IsRunningOnBloomDesktop,
|
|
6873
6877
|
mi as LiteEvent,
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6878
|
+
Ii as PageNarrationComplete,
|
|
6879
|
+
Er as PlayCompleted,
|
|
6880
|
+
Tn as PlayFailed,
|
|
6881
|
+
la as PlayUnblocked,
|
|
6882
|
+
ss as PlaybackMode,
|
|
6883
|
+
Hi as ToggleImageDescription,
|
|
6884
|
+
ia as TransformBasedAnimator,
|
|
6885
|
+
ua as abortNarrationPlayback,
|
|
6886
|
+
Ea as addScrollbarsToPage,
|
|
6887
|
+
Os as adjustDraggablesForLanguage,
|
|
6888
|
+
Rr as cancelVideoFirstFramePriming,
|
|
6884
6889
|
jt as classSetter,
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6890
|
+
js as cleanupActivitySounds,
|
|
6891
|
+
Aa as cleanupNiceScroll,
|
|
6892
|
+
pa as computeDuration,
|
|
6893
|
+
Ys as copyContentToTarget,
|
|
6889
6894
|
ei as currentPlaybackMode,
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6895
|
+
vo as doShowAnswersInTargets,
|
|
6896
|
+
Ta as draggingSlider,
|
|
6897
|
+
Tr as durationReporter,
|
|
6898
|
+
Ca as fixNiceScrollOffsets,
|
|
6899
|
+
qs as getAudioSentencesOfVisibleEditables,
|
|
6900
|
+
ds as getCurrentNarrationPage,
|
|
6901
|
+
Yr as getTarget,
|
|
6902
|
+
Mn as getUrlPrefixFromWindowHref,
|
|
6903
|
+
Ri as hideVideoAutoplayBlockedHint,
|
|
6904
|
+
Is as hideVideoError,
|
|
6905
|
+
ga as hidingPage,
|
|
6906
|
+
Ms as isDefiniteVideoPlaybackSupportFailure,
|
|
6907
|
+
Pn as isSwipeInProgress,
|
|
6908
|
+
wa as isTheTextInDraggablesTheSame,
|
|
6909
|
+
Ps as isTransientVideoPlayFailure,
|
|
6910
|
+
Mi as kAudioSentence,
|
|
6911
|
+
us as kHighlightSegmentClass,
|
|
6912
|
+
ji as kLegacyCanvasElementSelector,
|
|
6913
|
+
Ur as kSelectorForPotentialNiceScrollElements,
|
|
6914
|
+
ra as listenForPlayDuration,
|
|
6915
|
+
Dn as logNarration,
|
|
6916
|
+
fa as pageHasAudio,
|
|
6917
|
+
ha as pauseNarration,
|
|
6918
|
+
lo as performCheck,
|
|
6919
|
+
co as performTryAgain,
|
|
6915
6920
|
gi as playAllAudio,
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6921
|
+
hs as playAllSentences,
|
|
6922
|
+
jr as playAllVideo,
|
|
6923
|
+
Fs as playCorrectOrWrongSound,
|
|
6924
|
+
ya as playInitialElements,
|
|
6925
|
+
da as playNarration,
|
|
6926
|
+
Jn as playSoundOf,
|
|
6927
|
+
Ws as preloadSoundsForActivity,
|
|
6928
|
+
ma as prepareActivity,
|
|
6929
|
+
fs as setCurrentPage,
|
|
6925
6930
|
Kt as setCurrentPlaybackMode,
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6931
|
+
xa as setDefaultSoundUrls,
|
|
6932
|
+
aa as setDurationOfPagesWithoutNarration,
|
|
6933
|
+
ca as setIncludeImageDescriptions,
|
|
6934
|
+
oa as setLogNarration,
|
|
6935
|
+
as as setPlayerUrlPrefix,
|
|
6936
|
+
sa as setPlayerUrlPrefixFromWindowLocationHref,
|
|
6937
|
+
ba as setReportScore,
|
|
6938
|
+
na as setTestIsSwipeInProgress,
|
|
6939
|
+
ea as setupSpecialMouseTrackingForNiceScroll,
|
|
6940
|
+
Sa as setupWordChooserSlider,
|
|
6941
|
+
Gn as showVideoAutoplayBlockedHint,
|
|
6942
|
+
Sn as showVideoError,
|
|
6943
|
+
Ds as showVideoFirstFrameWhenReady,
|
|
6944
|
+
Rs as shuffle,
|
|
6945
|
+
ls as sortAudioElements,
|
|
6946
|
+
qr as stopPlayAllVideoPlayback,
|
|
6947
|
+
va as undoPrepareActivity,
|
|
6948
|
+
Pr as urlPrefix
|
|
6944
6949
|
};
|
|
6945
6950
|
//# sourceMappingURL=shared.es.js.map
|