mn-video-player 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -51,12 +51,12 @@ Je.prototype.initGL = function(R) {
|
|
|
51
51
|
a.shaderSource(D, w), a.compileShader(D), a.attachShader(p, k), a.attachShader(p, D), a.linkProgram(p), a.useProgram(p), a.getProgramParameter(p, a.LINK_STATUS) || console.log("[ER] Shader link failed.");
|
|
52
52
|
var $ = a.getAttribLocation(p, "aVertexPosition");
|
|
53
53
|
a.enableVertexAttribArray($);
|
|
54
|
-
var
|
|
55
|
-
a.enableVertexAttribArray(
|
|
54
|
+
var q = a.getAttribLocation(p, "aTextureCoord");
|
|
55
|
+
a.enableVertexAttribArray(q);
|
|
56
56
|
var F = a.createBuffer();
|
|
57
57
|
a.bindBuffer(a.ARRAY_BUFFER, F), a.bufferData(a.ARRAY_BUFFER, new Float32Array([1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0]), a.STATIC_DRAW), a.vertexAttribPointer($, 3, a.FLOAT, !1, 0, 0);
|
|
58
58
|
var re = a.createBuffer();
|
|
59
|
-
a.bindBuffer(a.ARRAY_BUFFER, re), a.bufferData(a.ARRAY_BUFFER, new Float32Array([1, 0, 0, 0, 1, 1, 0, 1]), a.STATIC_DRAW), a.vertexAttribPointer(
|
|
59
|
+
a.bindBuffer(a.ARRAY_BUFFER, re), a.bufferData(a.ARRAY_BUFFER, new Float32Array([1, 0, 0, 0, 1, 1, 0, 1]), a.STATIC_DRAW), a.vertexAttribPointer(q, 2, a.FLOAT, !1, 0, 0), a.y = new dt(a), a.u = new dt(a), a.v = new dt(a), a.y.bind(0, p, "YTexture"), a.u.bind(1, p, "UTexture"), a.v.bind(2, p, "VTexture");
|
|
60
60
|
};
|
|
61
61
|
Je.prototype.renderFrame = function(R, a, p, y, k) {
|
|
62
62
|
if (!this.gl) {
|
|
@@ -166,28 +166,28 @@ class Jn {
|
|
|
166
166
|
let w = 0;
|
|
167
167
|
for (const L of p)
|
|
168
168
|
k.set(L.data, w), w += L.data.length;
|
|
169
|
-
const D = this.audioCtx.createBufferSource(), $ = k.length / this.option.channels,
|
|
169
|
+
const D = this.audioCtx.createBufferSource(), $ = k.length / this.option.channels, q = this.audioCtx.createBuffer(
|
|
170
170
|
this.option.channels,
|
|
171
171
|
$,
|
|
172
172
|
this.option.sampleRate
|
|
173
173
|
);
|
|
174
174
|
let F, re, Z, ie, de;
|
|
175
175
|
for (re = 0; re < this.option.channels; re++)
|
|
176
|
-
for (F =
|
|
176
|
+
for (F = q.getChannelData(re), Z = re, de = 50, ie = 0; ie < $; ie++)
|
|
177
177
|
F[ie] = k[Z], ie < 50 && (F[ie] = F[ie] * ie / 50), ie >= $ - 51 && (F[ie] = F[ie] * de-- / 50), Z += this.option.channels;
|
|
178
178
|
let j;
|
|
179
|
-
p[0].timestamp !== null ? j = Math.max(p[0].timestamp, this.startTime) : j = Math.max(a, this.startTime), D.buffer =
|
|
179
|
+
p[0].timestamp !== null ? j = Math.max(p[0].timestamp, this.startTime) : j = Math.max(a, this.startTime), D.buffer = q, D.connect(this.gainNode), D.playbackRate.value = this.playbackRate;
|
|
180
180
|
const W = {
|
|
181
181
|
bufferSource: D,
|
|
182
|
-
buffer:
|
|
182
|
+
buffer: q,
|
|
183
183
|
startTime: j,
|
|
184
|
-
endTime: j +
|
|
184
|
+
endTime: j + q.duration / this.playbackRate,
|
|
185
185
|
rawData: p
|
|
186
186
|
};
|
|
187
187
|
this.playingBuffers.push(W), D.onended = () => {
|
|
188
188
|
const L = this.playingBuffers.findIndex((Le) => Le.bufferSource === D);
|
|
189
189
|
L !== -1 && this.playingBuffers.splice(L, 1);
|
|
190
|
-
}, D.start(j), this.startTime = j +
|
|
190
|
+
}, D.start(j), this.startTime = j + q.duration / this.playbackRate;
|
|
191
191
|
const Ne = new Set(p.map(
|
|
192
192
|
(L, Le) => this.cacheDataList.findIndex(
|
|
193
193
|
(Ke) => Ke.data === L.data && Ke.timestamp === L.timestamp
|
|
@@ -208,10 +208,10 @@ class Jn {
|
|
|
208
208
|
k,
|
|
209
209
|
this.option.sampleRate
|
|
210
210
|
);
|
|
211
|
-
let D, $,
|
|
211
|
+
let D, $, q, F, re;
|
|
212
212
|
for ($ = 0; $ < this.option.channels; $++)
|
|
213
|
-
for (D = w.getChannelData($),
|
|
214
|
-
D[F] = a[
|
|
213
|
+
for (D = w.getChannelData($), q = $, re = 50, F = 0; F < k; F++)
|
|
214
|
+
D[F] = a[q], F < 50 && (D[F] = D[F] * F / 50), F >= k - 51 && (D[F] = D[F] * re-- / 50), q += this.option.channels;
|
|
215
215
|
let Z;
|
|
216
216
|
p !== null ? this.baseTime !== null ? Z = this.baseAudioTime + (p - this.baseTime) : Z = this.audioCtx.currentTime : Z = Math.max(this.audioCtx.currentTime, this.startTime), y.buffer = w, y.connect(this.gainNode), y.playbackRate.value = this.playbackRate;
|
|
217
217
|
const ie = {
|
|
@@ -252,8 +252,8 @@ class br {
|
|
|
252
252
|
console.log("[" + this.currentTimeStr() + "][" + this.module + "][DT] " + a);
|
|
253
253
|
}
|
|
254
254
|
currentTimeStr() {
|
|
255
|
-
const a = new Date(Date.now()), p = a.getFullYear(), y = a.getMonth() + 1, k = a.getDate(), w = a.getHours(), D = a.getMinutes(), $ = a.getSeconds(),
|
|
256
|
-
return p + "-" + y + "-" + k + " " + w + ":" + D + ":" + $ + ":" +
|
|
255
|
+
const a = new Date(Date.now()), p = a.getFullYear(), y = a.getMonth() + 1, k = a.getDate(), w = a.getHours(), D = a.getMinutes(), $ = a.getSeconds(), q = a.getMilliseconds();
|
|
256
|
+
return p + "-" + y + "-" + k + " " + w + ":" + D + ":" + $ + ":" + q;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
const G = {
|
|
@@ -283,7 +283,7 @@ const G = {
|
|
|
283
283
|
}, Tr = "data:image/svg+xml,%3c!--%20By%20Sam%20Herbert%20(@sherb),%20for%20everyone.%20More%20@%20http://goo.gl/7AJzbL%20--%3e%3c!--%20Todo:%20add%20easing%20--%3e%3csvg%20width='57'%20height='57'%20viewBox='0%200%2057%2057'%20xmlns='http://www.w3.org/2000/svg'%20stroke='%23fff'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(1%201)'%20stroke-width='2'%3e%3ccircle%20cx='5'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;5;50;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20values='5;27;49;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='27'%20cy='5'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20from='5'%20to='5'%20values='5;50;50;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20from='27'%20to='27'%20values='27;49;5;27'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='49'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;50;5;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20from='49'%20to='49'%20begin='0s'%20dur='2.2s'%20values='49;5;27;49'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
284
284
|
function Bi(R) {
|
|
285
285
|
return new Worker(
|
|
286
|
-
"" + new URL("mn-worker-
|
|
286
|
+
"" + new URL("mn-worker-CYIBI-Fh.js", import.meta.url).href,
|
|
287
287
|
{
|
|
288
288
|
name: R?.name
|
|
289
289
|
}
|
|
@@ -317,10 +317,10 @@ class ee {
|
|
|
317
317
|
$.online();
|
|
318
318
|
}), window.addEventListener("offline", function() {
|
|
319
319
|
$.offline();
|
|
320
|
-
}), this.isSupportH264().then((
|
|
321
|
-
this.supportH264 =
|
|
322
|
-
}), this.isSupportH265().then((
|
|
323
|
-
this.supportH265 =
|
|
320
|
+
}), this.isSupportH264().then((q) => {
|
|
321
|
+
this.supportH264 = q;
|
|
322
|
+
}), this.isSupportH265().then((q) => {
|
|
323
|
+
this.supportH265 = q;
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
@@ -836,12 +836,12 @@ class ee {
|
|
|
836
836
|
for (; k + 4 < a.length; )
|
|
837
837
|
if (a[k] === 0 && a[k + 1] === 0 && (a[k + 2] === 1 || a[k + 2] === 0 && a[k + 3] === 1)) {
|
|
838
838
|
const w = a[k + 2] === 1 ? 3 : 4, D = k + w, $ = a[D] & 31;
|
|
839
|
-
let
|
|
840
|
-
for (;
|
|
841
|
-
|
|
842
|
-
const F = a.slice(D,
|
|
839
|
+
let q = D + 1;
|
|
840
|
+
for (; q + 3 < a.length && !(a[q] === 0 && a[q + 1] === 0 && (a[q + 2] === 1 || a[q + 2] === 0 && a[q + 3] === 1)); )
|
|
841
|
+
q++;
|
|
842
|
+
const F = a.slice(D, q);
|
|
843
843
|
if ($ === 7 && !p && (p = F), $ === 8 && !y && (y = F), $ === 32 && !p && (p = F), $ === 33 && !y && (y = F), p && y) break;
|
|
844
|
-
k =
|
|
844
|
+
k = q;
|
|
845
845
|
} else
|
|
846
846
|
k++;
|
|
847
847
|
return { sps: p, pps: y };
|
|
@@ -849,21 +849,21 @@ class ee {
|
|
|
849
849
|
extractVpsSpsPps(a) {
|
|
850
850
|
const p = [];
|
|
851
851
|
let y = 0;
|
|
852
|
-
function k(
|
|
853
|
-
for (let F =
|
|
852
|
+
function k(q) {
|
|
853
|
+
for (let F = q; F + 3 < a.length; F++)
|
|
854
854
|
if (a[F] === 0 && a[F + 1] === 0 && (a[F + 2] === 1 || a[F + 2] === 0 && a[F + 3] === 1))
|
|
855
855
|
return F;
|
|
856
856
|
return -1;
|
|
857
857
|
}
|
|
858
858
|
for (; y < a.length; ) {
|
|
859
|
-
const
|
|
860
|
-
if (
|
|
861
|
-
let F = a[
|
|
859
|
+
const q = k(y);
|
|
860
|
+
if (q === -1) break;
|
|
861
|
+
let F = a[q + 2] === 1 ? 3 : 4, re = q + F, Z = k(re);
|
|
862
862
|
Z === -1 && (Z = a.length);
|
|
863
863
|
const ie = a.subarray(re, Z), de = ie[0] >> 1 & 63;
|
|
864
864
|
(de === 32 || de === 33 || de === 34) && p.push({ type: de, data: ie }), y = Z;
|
|
865
865
|
}
|
|
866
|
-
const w = p.find((
|
|
866
|
+
const w = p.find((q) => q.type === 32)?.data, D = p.find((q) => q.type === 33)?.data, $ = p.find((q) => q.type === 34)?.data;
|
|
867
867
|
return { vps: w, sps: D, pps: $ };
|
|
868
868
|
}
|
|
869
869
|
guessCodec(a) {
|
|
@@ -928,9 +928,9 @@ class ee {
|
|
|
928
928
|
const { sps: w, pps: D } = this.extractSpsPps(a);
|
|
929
929
|
if (!w || !D) return;
|
|
930
930
|
this.sps = w, this.pps = D, this.avcC = this.makeAvcC(w, D), console.warn("avcC", this.avcC);
|
|
931
|
-
let
|
|
932
|
-
if (console.log("codec",
|
|
933
|
-
codec:
|
|
931
|
+
let q = $(w);
|
|
932
|
+
if (console.log("codec", q), this.videoDecoder.configure({
|
|
933
|
+
codec: q,
|
|
934
934
|
// ⚠️ 要和 SPS 一致
|
|
935
935
|
codedWidth: this.width || 640,
|
|
936
936
|
codedHeight: this.height || 480,
|
|
@@ -1030,7 +1030,7 @@ function Cr() {
|
|
|
1030
1030
|
return y.flat.call(e);
|
|
1031
1031
|
} : function(e) {
|
|
1032
1032
|
return y.concat.apply([], e);
|
|
1033
|
-
}, $ = y.push,
|
|
1033
|
+
}, $ = y.push, q = y.indexOf, F = {}, re = F.toString, Z = F.hasOwnProperty, ie = Z.toString, de = ie.call(Object), j = {}, W = function(t) {
|
|
1034
1034
|
return typeof t == "function" && typeof t.nodeType != "number" && typeof t.item != "function";
|
|
1035
1035
|
}, Ne = function(t) {
|
|
1036
1036
|
return t != null && t === t.window;
|
|
@@ -1174,7 +1174,7 @@ function Cr() {
|
|
|
1174
1174
|
) : $.call(i, e)), i;
|
|
1175
1175
|
},
|
|
1176
1176
|
inArray: function(e, t, i) {
|
|
1177
|
-
return t == null ? -1 :
|
|
1177
|
+
return t == null ? -1 : q.call(t, e, i);
|
|
1178
1178
|
},
|
|
1179
1179
|
isXMLDoc: function(e) {
|
|
1180
1180
|
var t = e && e.namespaceURI, i = e && (e.ownerDocument || e).documentElement;
|
|
@@ -1258,11 +1258,11 @@ function Cr() {
|
|
|
1258
1258
|
// For use in libraries implementing .is()
|
|
1259
1259
|
// We use this for POS matching in `select`
|
|
1260
1260
|
needsContext: new RegExp("^" + Q + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + Q + "*((?:-\\d)?\\d*)" + Q + "*\\)|)(?=[^-]|$)", "i")
|
|
1261
|
-
}, Ie = /^(?:input|select|textarea|button)$/i,
|
|
1261
|
+
}, Ie = /^(?:input|select|textarea|button)$/i, qe = /^h\d$/i, pe = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, $t = /[+~]/, De = new RegExp("\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\([^\\r\\n\\f])", "g"), Re = function(l, d) {
|
|
1262
1262
|
var g = "0x" + l.slice(1) - 65536;
|
|
1263
1263
|
return d || (g < 0 ? String.fromCharCode(g + 65536) : String.fromCharCode(g >> 10 | 55296, g & 1023 | 56320));
|
|
1264
1264
|
}, Un = function() {
|
|
1265
|
-
|
|
1265
|
+
Me();
|
|
1266
1266
|
}, $n = wt(
|
|
1267
1267
|
function(l) {
|
|
1268
1268
|
return l.disabled === !0 && K(l, "fieldset");
|
|
@@ -1294,7 +1294,7 @@ function Cr() {
|
|
|
1294
1294
|
var b, C, E, N, A, B, H, O = d && d.ownerDocument, V = d ? d.nodeType : 9;
|
|
1295
1295
|
if (g = g || [], typeof l != "string" || !l || V !== 1 && V !== 9 && V !== 11)
|
|
1296
1296
|
return g;
|
|
1297
|
-
if (!v && (
|
|
1297
|
+
if (!v && (Me(d), d = d || u, f)) {
|
|
1298
1298
|
if (V !== 11 && (A = pe.exec(l)))
|
|
1299
1299
|
if (b = A[1]) {
|
|
1300
1300
|
if (V === 9)
|
|
@@ -1378,7 +1378,7 @@ function Cr() {
|
|
|
1378
1378
|
function zt(l) {
|
|
1379
1379
|
return l && typeof l.getElementsByTagName < "u" && l;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Me(l) {
|
|
1382
1382
|
var d, g = l ? l.ownerDocument || l : ke;
|
|
1383
1383
|
return g == u || g.nodeType !== 9 || !g.documentElement || (u = g, c = u.documentElement, f = !r.isXMLDoc(u), x = c.matches || c.webkitMatchesSelector || c.msMatchesSelector, c.msMatchesSelector && // Support: IE 11+, Edge 17 - 18+
|
|
1384
1384
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
|
@@ -1439,13 +1439,13 @@ function Cr() {
|
|
|
1439
1439
|
return C || (C = (v.ownerDocument || v) == (b.ownerDocument || b) ? v.compareDocumentPosition(b) : (
|
|
1440
1440
|
// Otherwise we know they are disconnected
|
|
1441
1441
|
1
|
|
1442
|
-
), C & 1 || !j.sortDetached && b.compareDocumentPosition(v) === C ? v === u || v.ownerDocument == ke && Y.contains(ke, v) ? -1 : b === u || b.ownerDocument == ke && Y.contains(ke, b) ? 1 : n ?
|
|
1442
|
+
), C & 1 || !j.sortDetached && b.compareDocumentPosition(v) === C ? v === u || v.ownerDocument == ke && Y.contains(ke, v) ? -1 : b === u || b.ownerDocument == ke && Y.contains(ke, b) ? 1 : n ? q.call(n, v) - q.call(n, b) : 0 : C & 4 ? -1 : 1);
|
|
1443
1443
|
}), u;
|
|
1444
1444
|
}
|
|
1445
1445
|
Y.matches = function(l, d) {
|
|
1446
1446
|
return Y(l, null, null, d);
|
|
1447
1447
|
}, Y.matchesSelector = function(l, d) {
|
|
1448
|
-
if (
|
|
1448
|
+
if (Me(l), f && !oe[d + " "] && (!h || !h.test(d)))
|
|
1449
1449
|
try {
|
|
1450
1450
|
var g = x.call(l, d);
|
|
1451
1451
|
if (g || j.disconnectedMatch || // As well, disconnected nodes are said to be in a document
|
|
@@ -1457,9 +1457,9 @@ function Cr() {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
return Y(d, u, null, [l]).length > 0;
|
|
1459
1459
|
}, Y.contains = function(l, d) {
|
|
1460
|
-
return (l.ownerDocument || l) != u &&
|
|
1460
|
+
return (l.ownerDocument || l) != u && Me(l), r.contains(l, d);
|
|
1461
1461
|
}, Y.attr = function(l, d) {
|
|
1462
|
-
(l.ownerDocument || l) != u &&
|
|
1462
|
+
(l.ownerDocument || l) != u && Me(l);
|
|
1463
1463
|
var g = t.attrHandle[d.toLowerCase()], v = g && Z.call(t.attrHandle, d.toLowerCase()) ? g(l, d, !f) : void 0;
|
|
1464
1464
|
return v !== void 0 ? v : l.getAttribute(d);
|
|
1465
1465
|
}, Y.error = function(l) {
|
|
@@ -1533,26 +1533,26 @@ function Cr() {
|
|
|
1533
1533
|
return !!A.parentNode;
|
|
1534
1534
|
}
|
|
1535
1535
|
) : function(A, B, H) {
|
|
1536
|
-
var O, V,
|
|
1536
|
+
var O, V, M, J, ce, se = C !== E ? "nextSibling" : "previousSibling", ge = A.parentNode, Ce = N && A.nodeName.toLowerCase(), Qe = !H && !N, ae = !1;
|
|
1537
1537
|
if (ge) {
|
|
1538
1538
|
if (C) {
|
|
1539
1539
|
for (; se; ) {
|
|
1540
|
-
for (
|
|
1541
|
-
if (N ? K(
|
|
1540
|
+
for (M = A; M = M[se]; )
|
|
1541
|
+
if (N ? K(M, Ce) : M.nodeType === 1)
|
|
1542
1542
|
return !1;
|
|
1543
1543
|
ce = se = l === "only" && !ce && "nextSibling";
|
|
1544
1544
|
}
|
|
1545
1545
|
return !0;
|
|
1546
1546
|
}
|
|
1547
1547
|
if (ce = [E ? ge.firstChild : ge.lastChild], E && Qe) {
|
|
1548
|
-
for (V = ge[T] || (ge[T] = {}), O = V[l] || [], J = O[0] === m && O[1], ae = J && O[2],
|
|
1548
|
+
for (V = ge[T] || (ge[T] = {}), O = V[l] || [], J = O[0] === m && O[1], ae = J && O[2], M = J && ge.childNodes[J]; M = ++J && M && M[se] || // Fallback to seeking `elem` from the start
|
|
1549
1549
|
(ae = J = 0) || ce.pop(); )
|
|
1550
|
-
if (
|
|
1550
|
+
if (M.nodeType === 1 && ++ae && M === A) {
|
|
1551
1551
|
V[l] = [m, J, ae];
|
|
1552
1552
|
break;
|
|
1553
1553
|
}
|
|
1554
1554
|
} else if (Qe && (V = A[T] || (A[T] = {}), O = V[l] || [], J = O[0] === m && O[1], ae = J), ae === !1)
|
|
1555
|
-
for (; (
|
|
1555
|
+
for (; (M = ++J && M && M[se] || (ae = J = 0) || ce.pop()) && !((N ? K(M, Ce) : M.nodeType === 1) && ++ae && (Qe && (V = M[T] || (M[T] = {}), V[l] = [m, ae]), M === A)); )
|
|
1556
1556
|
;
|
|
1557
1557
|
return ae -= b, ae === v || ae % v === 0 && ae / v >= 0;
|
|
1558
1558
|
}
|
|
@@ -1562,7 +1562,7 @@ function Cr() {
|
|
|
1562
1562
|
var g, v = t.pseudos[l] || t.setFilters[l.toLowerCase()] || Y.error("unsupported pseudo: " + l);
|
|
1563
1563
|
return v[T] ? v(d) : v.length > 1 ? (g = [l, l, "", d], t.setFilters.hasOwnProperty(l.toLowerCase()) ? me(function(b, C) {
|
|
1564
1564
|
for (var E, N = v(b, d), A = N.length; A--; )
|
|
1565
|
-
E =
|
|
1565
|
+
E = q.call(b, N[A]), b[E] = !(C[E] = N[A]);
|
|
1566
1566
|
}) : function(b) {
|
|
1567
1567
|
return v(b, 0, g);
|
|
1568
1568
|
}) : v;
|
|
@@ -1638,7 +1638,7 @@ function Cr() {
|
|
|
1638
1638
|
},
|
|
1639
1639
|
// Element/input types
|
|
1640
1640
|
header: function(l) {
|
|
1641
|
-
return
|
|
1641
|
+
return qe.test(l.nodeName);
|
|
1642
1642
|
},
|
|
1643
1643
|
input: function(l) {
|
|
1644
1644
|
return Ie.test(l.nodeName);
|
|
@@ -1735,7 +1735,7 @@ function Cr() {
|
|
|
1735
1735
|
) : (
|
|
1736
1736
|
// Check against all ancestor/preceding elements
|
|
1737
1737
|
function(A, B, H) {
|
|
1738
|
-
var O, V,
|
|
1738
|
+
var O, V, M = [m, N];
|
|
1739
1739
|
if (H) {
|
|
1740
1740
|
for (; A = A[v]; )
|
|
1741
1741
|
if ((A.nodeType === 1 || E) && l(A, B, H))
|
|
@@ -1747,8 +1747,8 @@ function Cr() {
|
|
|
1747
1747
|
A = A[v] || A;
|
|
1748
1748
|
else {
|
|
1749
1749
|
if ((O = V[C]) && O[0] === m && O[1] === N)
|
|
1750
|
-
return
|
|
1751
|
-
if (V[C] =
|
|
1750
|
+
return M[2] = O[2];
|
|
1751
|
+
if (V[C] = M, M[2] = l(A, B, H))
|
|
1752
1752
|
return !0;
|
|
1753
1753
|
}
|
|
1754
1754
|
return !1;
|
|
@@ -1775,43 +1775,43 @@ function Cr() {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
function Gt(l, d, g, v, b, C) {
|
|
1777
1777
|
return v && !v[T] && (v = Gt(v)), b && !b[T] && (b = Gt(b, C)), me(function(E, N, A, B) {
|
|
1778
|
-
var H, O, V,
|
|
1778
|
+
var H, O, V, M, J = [], ce = [], se = N.length, ge = E || Yn(
|
|
1779
1779
|
d || "*",
|
|
1780
1780
|
A.nodeType ? [A] : A,
|
|
1781
1781
|
[]
|
|
1782
1782
|
), Ce = l && (E || !d) ? St(ge, J, l, A, B) : ge;
|
|
1783
|
-
if (g ? (
|
|
1783
|
+
if (g ? (M = b || (E ? l : se || v) ? (
|
|
1784
1784
|
// ...intermediate processing is necessary
|
|
1785
1785
|
[]
|
|
1786
1786
|
) : (
|
|
1787
1787
|
// ...otherwise use results directly
|
|
1788
1788
|
N
|
|
1789
|
-
), g(Ce,
|
|
1790
|
-
for (H = St(
|
|
1791
|
-
(V = H[O]) && (
|
|
1789
|
+
), g(Ce, M, A, B)) : M = Ce, v)
|
|
1790
|
+
for (H = St(M, ce), v(H, [], A, B), O = H.length; O--; )
|
|
1791
|
+
(V = H[O]) && (M[ce[O]] = !(Ce[ce[O]] = V));
|
|
1792
1792
|
if (E) {
|
|
1793
1793
|
if (b || l) {
|
|
1794
1794
|
if (b) {
|
|
1795
|
-
for (H = [], O =
|
|
1796
|
-
(V =
|
|
1797
|
-
b(null,
|
|
1795
|
+
for (H = [], O = M.length; O--; )
|
|
1796
|
+
(V = M[O]) && H.push(Ce[O] = V);
|
|
1797
|
+
b(null, M = [], H, B);
|
|
1798
1798
|
}
|
|
1799
|
-
for (O =
|
|
1800
|
-
(V =
|
|
1799
|
+
for (O = M.length; O--; )
|
|
1800
|
+
(V = M[O]) && (H = b ? q.call(E, V) : J[O]) > -1 && (E[H] = !(N[H] = V));
|
|
1801
1801
|
}
|
|
1802
1802
|
} else
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
), b ? b(null, N,
|
|
1803
|
+
M = St(
|
|
1804
|
+
M === N ? M.splice(se, M.length) : M
|
|
1805
|
+
), b ? b(null, N, M, B) : s.apply(N, M);
|
|
1806
1806
|
});
|
|
1807
1807
|
}
|
|
1808
1808
|
function Yt(l) {
|
|
1809
1809
|
for (var d, g, v, b = l.length, C = t.relative[l[0].type], E = C || t.relative[" "], N = C ? 1 : 0, A = wt(function(O) {
|
|
1810
1810
|
return O === d;
|
|
1811
1811
|
}, E, !0), B = wt(function(O) {
|
|
1812
|
-
return
|
|
1813
|
-
}, E, !0), H = [function(O, V,
|
|
1814
|
-
var J = !C && (
|
|
1812
|
+
return q.call(d, O) > -1;
|
|
1813
|
+
}, E, !0), H = [function(O, V, M) {
|
|
1814
|
+
var J = !C && (M || V != i) || ((d = V).nodeType ? A(O, V, M) : B(O, V, M));
|
|
1815
1815
|
return d = null, J;
|
|
1816
1816
|
}]; N < b; N++)
|
|
1817
1817
|
if (g = t.relative[l[N].type])
|
|
@@ -1838,28 +1838,28 @@ function Cr() {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
function Qn(l, d) {
|
|
1840
1840
|
var g = d.length > 0, v = l.length > 0, b = function(C, E, N, A, B) {
|
|
1841
|
-
var H, O, V,
|
|
1841
|
+
var H, O, V, M = 0, J = "0", ce = C && [], se = [], ge = i, Ce = C || v && t.find.TAG("*", B), Qe = m += ge == null ? 1 : Math.random() || 0.1, ae = Ce.length;
|
|
1842
1842
|
for (B && (i = E == u || E || B); J !== ae && (H = Ce[J]) != null; J++) {
|
|
1843
1843
|
if (v && H) {
|
|
1844
|
-
for (O = 0, !E && H.ownerDocument != u && (
|
|
1844
|
+
for (O = 0, !E && H.ownerDocument != u && (Me(H), N = !f); V = l[O++]; )
|
|
1845
1845
|
if (V(H, E || u, N)) {
|
|
1846
1846
|
s.call(A, H);
|
|
1847
1847
|
break;
|
|
1848
1848
|
}
|
|
1849
1849
|
B && (m = Qe);
|
|
1850
1850
|
}
|
|
1851
|
-
g && ((H = !V && H) &&
|
|
1851
|
+
g && ((H = !V && H) && M--, C && ce.push(H));
|
|
1852
1852
|
}
|
|
1853
|
-
if (
|
|
1853
|
+
if (M += J, g && J !== M) {
|
|
1854
1854
|
for (O = 0; V = d[O++]; )
|
|
1855
1855
|
V(ce, se, E, N);
|
|
1856
1856
|
if (C) {
|
|
1857
|
-
if (
|
|
1857
|
+
if (M > 0)
|
|
1858
1858
|
for (; J--; )
|
|
1859
1859
|
ce[J] || se[J] || (se[J] = Ui.call(A));
|
|
1860
1860
|
se = St(se);
|
|
1861
1861
|
}
|
|
1862
|
-
s.apply(A, se), B && !C && se.length > 0 &&
|
|
1862
|
+
s.apply(A, se), B && !C && se.length > 0 && M + d.length > 1 && r.uniqueSort(A);
|
|
1863
1863
|
}
|
|
1864
1864
|
return B && (m = Qe, i = ge), ce;
|
|
1865
1865
|
};
|
|
@@ -1907,9 +1907,9 @@ function Cr() {
|
|
|
1907
1907
|
!d || $t.test(l) && zt(d.parentNode) || d
|
|
1908
1908
|
), g;
|
|
1909
1909
|
}
|
|
1910
|
-
j.sortStable = T.split("").sort(ne).join("") === T,
|
|
1910
|
+
j.sortStable = T.split("").sort(ne).join("") === T, Me(), j.sortDetached = Ye(function(l) {
|
|
1911
1911
|
return l.compareDocumentPosition(u.createElement("fieldset")) & 1;
|
|
1912
|
-
}), r.find = Y, r.expr[":"] = r.expr.pseudos, r.unique = r.uniqueSort, Y.compile = Qt, Y.select = Oi, Y.setDocument =
|
|
1912
|
+
}), r.find = Y, r.expr[":"] = r.expr.pseudos, r.unique = r.uniqueSort, Y.compile = Qt, Y.select = Oi, Y.setDocument = Me, Y.tokenize = ft, Y.escape = r.escapeSelector, Y.getText = r.text, Y.isXML = r.isXMLDoc, Y.selectors = r.expr, Y.support = r.support, Y.uniqueSort = r.uniqueSort;
|
|
1913
1913
|
})();
|
|
1914
1914
|
var _e = function(e, t, i) {
|
|
1915
1915
|
for (var n = [], o = i !== void 0; (e = e[t]) && e.nodeType !== 9; )
|
|
@@ -1930,7 +1930,7 @@ function Cr() {
|
|
|
1930
1930
|
}) : t.nodeType ? r.grep(e, function(n) {
|
|
1931
1931
|
return n === t !== i;
|
|
1932
1932
|
}) : typeof t != "string" ? r.grep(e, function(n) {
|
|
1933
|
-
return
|
|
1933
|
+
return q.call(t, n) > -1 !== i;
|
|
1934
1934
|
}) : r.filter(t, e, i);
|
|
1935
1935
|
}
|
|
1936
1936
|
r.filter = function(e, t, i) {
|
|
@@ -2029,7 +2029,7 @@ function Cr() {
|
|
|
2029
2029
|
},
|
|
2030
2030
|
// Determine the position of an element within the set
|
|
2031
2031
|
index: function(e) {
|
|
2032
|
-
return e ? typeof e == "string" ?
|
|
2032
|
+
return e ? typeof e == "string" ? q.call(r(e), this[0]) : q.call(
|
|
2033
2033
|
this,
|
|
2034
2034
|
// If it receives a jQuery object, the first element is used
|
|
2035
2035
|
e.jquery ? e[0] : e
|
|
@@ -3140,7 +3140,7 @@ function Cr() {
|
|
|
3140
3140
|
return this.pushStack(o);
|
|
3141
3141
|
};
|
|
3142
3142
|
});
|
|
3143
|
-
var It = new RegExp("^(" + ai + ")(?!px)[a-z%]+$", "i"),
|
|
3143
|
+
var It = new RegExp("^(" + ai + ")(?!px)[a-z%]+$", "i"), qt = /^--/, mt = function(e) {
|
|
3144
3144
|
var t = e.ownerDocument.defaultView;
|
|
3145
3145
|
return (!t || !t.opener) && (t = a), t.getComputedStyle(e);
|
|
3146
3146
|
}, mi = function(e, t, i) {
|
|
@@ -3196,7 +3196,7 @@ function Cr() {
|
|
|
3196
3196
|
}));
|
|
3197
3197
|
})();
|
|
3198
3198
|
function rt(e, t, i) {
|
|
3199
|
-
var n, o, s, u, c =
|
|
3199
|
+
var n, o, s, u, c = qt.test(t), f = e.style;
|
|
3200
3200
|
return i = i || mt(e), i && (u = i.getPropertyValue(t) || i[t], c && u && (u = u.replace(Ze, "$1") || void 0), u === "" && !Ve(e) && (u = r.style(e, t)), !j.pixelBoxStyles() && It.test(u) && mn.test(t) && (n = f.width, o = f.minWidth, s = f.maxWidth, f.minWidth = f.maxWidth = f.width = u, u = i.width, f.width = n, f.minWidth = o, f.maxWidth = s)), u !== void 0 ? (
|
|
3201
3201
|
// Support: IE <=9 - 11 only
|
|
3202
3202
|
// IE returns zIndex value as an integer.
|
|
@@ -3220,7 +3220,7 @@ function Cr() {
|
|
|
3220
3220
|
if (e = xi[i] + t, e in bi)
|
|
3221
3221
|
return e;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function Mt(e) {
|
|
3224
3224
|
var t = r.cssProps[e] || Ti[e];
|
|
3225
3225
|
return t || (e in bi ? e : Ti[e] = vn(e) || e);
|
|
3226
3226
|
}
|
|
@@ -3323,8 +3323,8 @@ function Cr() {
|
|
|
3323
3323
|
// Get and set the style property on a DOM Node
|
|
3324
3324
|
style: function(e, t, i, n) {
|
|
3325
3325
|
if (!(!e || e.nodeType === 3 || e.nodeType === 8 || !e.style)) {
|
|
3326
|
-
var o, s, u, c = xe(t), f =
|
|
3327
|
-
if (f || (t =
|
|
3326
|
+
var o, s, u, c = xe(t), f = qt.test(t), h = e.style;
|
|
3327
|
+
if (f || (t = Mt(c)), u = r.cssHooks[t] || r.cssHooks[c], i !== void 0) {
|
|
3328
3328
|
if (s = typeof i, s === "string" && (o = it.exec(i)) && o[1] && (i = ui(e, t, o), s = "number"), i == null || i !== i)
|
|
3329
3329
|
return;
|
|
3330
3330
|
s === "number" && !f && (i += o && o[3] || (r.cssNumber[c] ? "" : "px")), !j.clearCloneStyle && i === "" && t.indexOf("background") === 0 && (h[t] = "inherit"), (!u || !("set" in u) || (i = u.set(e, i, n)) !== void 0) && (f ? h.setProperty(t, i) : h[t] = i);
|
|
@@ -3333,8 +3333,8 @@ function Cr() {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
},
|
|
3335
3335
|
css: function(e, t, i, n) {
|
|
3336
|
-
var o, s, u, c = xe(t), f =
|
|
3337
|
-
return f || (t =
|
|
3336
|
+
var o, s, u, c = xe(t), f = qt.test(t);
|
|
3337
|
+
return f || (t = Mt(c)), u = r.cssHooks[t] || r.cssHooks[c], u && "get" in u && (o = u.get(e, !0, i)), o === void 0 && (o = rt(e, t, n)), o === "normal" && t in wi && (o = wi[t]), i === "" || i ? (s = parseFloat(o), i === !0 || isFinite(s) ? s || 0 : o) : o;
|
|
3338
3338
|
}
|
|
3339
3339
|
}), r.each(["height", "width"], function(e, t) {
|
|
3340
3340
|
r.cssHooks[t] = {
|
|
@@ -3425,7 +3425,7 @@ function Cr() {
|
|
|
3425
3425
|
return e.elem.nodeType !== 1 || e.elem[e.prop] != null && e.elem.style[e.prop] == null ? e.elem[e.prop] : (t = r.css(e.elem, e.prop, ""), !t || t === "auto" ? 0 : t);
|
|
3426
3426
|
},
|
|
3427
3427
|
set: function(e) {
|
|
3428
|
-
r.fx.step[e.prop] ? r.fx.step[e.prop](e) : e.elem.nodeType === 1 && (r.cssHooks[e.prop] || e.elem.style[
|
|
3428
|
+
r.fx.step[e.prop] ? r.fx.step[e.prop](e) : e.elem.nodeType === 1 && (r.cssHooks[e.prop] || e.elem.style[Mt(e.prop)] != null) ? r.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now;
|
|
3429
3429
|
}
|
|
3430
3430
|
}
|
|
3431
3431
|
}, fe.propHooks.scrollTop = fe.propHooks.scrollLeft = {
|
|
@@ -3987,9 +3987,9 @@ function Cr() {
|
|
|
3987
3987
|
}).get();
|
|
3988
3988
|
}
|
|
3989
3989
|
});
|
|
3990
|
-
var Ln = /%20/g, In = /#.*$/,
|
|
3990
|
+
var Ln = /%20/g, In = /#.*$/, qn = /([?&])_=[^&]*/, Mn = /^(.*?):[ \t]*([^\r\n]*)$/mg, jn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Hn = /^(?:GET|HEAD)$/, Pn = /^\/\//, Ii = {}, Wt = {}, qi = "*/".concat("*"), _t = L.createElement("a");
|
|
3991
3991
|
_t.href = st.href;
|
|
3992
|
-
function
|
|
3992
|
+
function Mi(e) {
|
|
3993
3993
|
return function(t, i) {
|
|
3994
3994
|
typeof t != "string" && (i = t, t = "*");
|
|
3995
3995
|
var n, o = 0, s = t.toLowerCase().match(ve) || [];
|
|
@@ -4102,7 +4102,7 @@ function Cr() {
|
|
|
4102
4102
|
headers: {},
|
|
4103
4103
|
*/
|
|
4104
4104
|
accepts: {
|
|
4105
|
-
"*":
|
|
4105
|
+
"*": qi,
|
|
4106
4106
|
text: "text/plain",
|
|
4107
4107
|
html: "text/html",
|
|
4108
4108
|
xml: "application/xml, text/xml",
|
|
@@ -4151,8 +4151,8 @@ function Cr() {
|
|
|
4151
4151
|
Bt(r.ajaxSettings, e)
|
|
4152
4152
|
);
|
|
4153
4153
|
},
|
|
4154
|
-
ajaxPrefilter:
|
|
4155
|
-
ajaxTransport:
|
|
4154
|
+
ajaxPrefilter: Mi(Ii),
|
|
4155
|
+
ajaxTransport: Mi(Wt),
|
|
4156
4156
|
// Main method
|
|
4157
4157
|
ajax: function(e, t) {
|
|
4158
4158
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
@@ -4163,7 +4163,7 @@ function Cr() {
|
|
|
4163
4163
|
var te;
|
|
4164
4164
|
if (f) {
|
|
4165
4165
|
if (!s)
|
|
4166
|
-
for (s = {}; te =
|
|
4166
|
+
for (s = {}; te = Mn.exec(o); )
|
|
4167
4167
|
s[te[1].toLowerCase() + " "] = (s[te[1].toLowerCase() + " "] || []).concat(te[2]);
|
|
4168
4168
|
te = s[X.toLowerCase() + " "];
|
|
4169
4169
|
}
|
|
@@ -4208,9 +4208,9 @@ function Cr() {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
if (m.data && m.processData && typeof m.data != "string" && (m.data = r.param(m.data, m.traditional)), ji(Ii, m, t, U), f)
|
|
4210
4210
|
return U;
|
|
4211
|
-
h = r.event && m.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), m.type = m.type.toUpperCase(), m.hasContent = !Hn.test(m.type), n = m.url.replace(In, ""), m.hasContent ? m.data && m.processData && (m.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (m.data = m.data.replace(Ln, "+")) : (T = m.url.slice(n.length), m.data && (m.processData || typeof m.data == "string") && (n += (Ft.test(n) ? "&" : "?") + m.data, delete m.data), m.cache === !1 && (n = n.replace(
|
|
4211
|
+
h = r.event && m.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), m.type = m.type.toUpperCase(), m.hasContent = !Hn.test(m.type), n = m.url.replace(In, ""), m.hasContent ? m.data && m.processData && (m.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (m.data = m.data.replace(Ln, "+")) : (T = m.url.slice(n.length), m.data && (m.processData || typeof m.data == "string") && (n += (Ft.test(n) ? "&" : "?") + m.data, delete m.data), m.cache === !1 && (n = n.replace(qn, "$1"), T = (Ft.test(n) ? "&" : "?") + "_=" + Di.guid++ + T), m.url = n + T), m.ifModified && (r.lastModified[n] && U.setRequestHeader("If-Modified-Since", r.lastModified[n]), r.etag[n] && U.setRequestHeader("If-None-Match", r.etag[n])), (m.data && m.hasContent && m.contentType !== !1 || t.contentType) && U.setRequestHeader("Content-Type", m.contentType), U.setRequestHeader(
|
|
4212
4212
|
"Accept",
|
|
4213
|
-
m.dataTypes[0] && m.accepts[m.dataTypes[0]] ? m.accepts[m.dataTypes[0]] + (m.dataTypes[0] !== "*" ? ", " +
|
|
4213
|
+
m.dataTypes[0] && m.accepts[m.dataTypes[0]] ? m.accepts[m.dataTypes[0]] + (m.dataTypes[0] !== "*" ? ", " + qi + "; q=0.01" : "") : m.accepts["*"]
|
|
4214
4214
|
);
|
|
4215
4215
|
for (x in m.headers)
|
|
4216
4216
|
U.setRequestHeader(x, m.headers[x]);
|
|
@@ -4233,9 +4233,9 @@ function Cr() {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
4235
|
function Fe(X, te, ut, Ut) {
|
|
4236
|
-
var we, lt, Se, Ie,
|
|
4236
|
+
var we, lt, Se, Ie, qe, pe = te;
|
|
4237
4237
|
f || (f = !0, u && a.clearTimeout(u), i = void 0, o = Ut || "", U.readyState = X > 0 ? 4 : 0, we = X >= 200 && X < 300 || X === 304, ut && (Ie = Fn(m, U, ut)), !we && r.inArray("script", m.dataTypes) > -1 && r.inArray("json", m.dataTypes) < 0 && (m.converters["text script"] = function() {
|
|
4238
|
-
}), Ie = On(m, Ie, U, we), we ? (m.ifModified && (
|
|
4238
|
+
}), Ie = On(m, Ie, U, we), we ? (m.ifModified && (qe = U.getResponseHeader("Last-Modified"), qe && (r.lastModified[n] = qe), qe = U.getResponseHeader("etag"), qe && (r.etag[n] = qe)), X === 204 || m.type === "HEAD" ? pe = "nocontent" : X === 304 ? pe = "notmodified" : (pe = Ie.state, lt = Ie.data, Se = Ie.error, we = !Se)) : (Se = pe, (X || !pe) && (pe = "error", X < 0 && (X = 0))), U.status = X, U.statusText = (te || pe) + "", we ? z.resolveWith(S, [lt, pe, U]) : z.rejectWith(S, [U, pe, Se]), U.statusCode(oe), oe = void 0, h && P.trigger(
|
|
4239
4239
|
we ? "ajaxSuccess" : "ajaxError",
|
|
4240
4240
|
[U, m, we ? lt : Se]
|
|
4241
4241
|
), _.fireWith(S, [U, pe]), h && (P.trigger("ajaxComplete", [U, m]), --r.active || r.event.trigger("ajaxStop")));
|