|
32 | 32 | } |
33 | 33 | function G() { |
34 | 34 | d = a.indexOf("<", d + 1); |
35 | | - if (-1 === d && (d = a.length, q())) { |
| 35 | + if (d === -1 && (d = a.length, q())) { |
36 | 36 | return !0; |
37 | 37 | } |
38 | 38 | } |
|
42 | 42 | p = a.substr(0, d); |
43 | 43 | a = a.substr(d); |
44 | 44 | d = 0; |
45 | | - if ((z || x && !ja[D]) && !0 === e.na(U && !ba[D] ? p : M(p))) { |
| 45 | + if ((z || x && !ja[D]) && e.na(U && !ba[D] ? p : M(p)) === !0) { |
46 | 46 | return I(), !0; |
47 | 47 | } |
48 | 48 | } |
|
54 | 54 | e.fa && e.fa(p); |
55 | 55 | } |
56 | 56 | function ka(p) { |
57 | | - for (var h = 0, y = a.length, k = 3, c, u; k < y && 2 !== h; ++k) { |
| 57 | + for (var h = 0, y = a.length, k = 3, c, u; k < y && h !== 2; ++k) { |
58 | 58 | switch(c = a.charAt(k), h) { |
59 | 59 | case 0: |
60 | 60 | if (A[c] & 4) { |
|
63 | 63 | break; |
64 | 64 | } |
65 | 65 | case 1: |
66 | | - ">" === c && (h = 2, u = k); |
| 66 | + c === ">" && (h = 2, u = k); |
67 | 67 | } |
68 | 68 | } |
69 | | - if (2 === h) { |
| 69 | + if (h === 2) { |
70 | 70 | h = a.substring(2, u), a = a.substr(k), v || 0 < h.indexOf(":") ? Q(p, h, !1) : (k = h.toUpperCase(), ca[k] || Q(p, f ? h : k, !1)); |
71 | 71 | } else { |
72 | 72 | return J(a), !0; |
|
104 | 104 | } |
105 | 105 | function y(B) { |
106 | 106 | var S = a.substring(V, O); |
107 | | - B = null != B ? a.substring(W, B) : !0; |
108 | | - R[S] = !0 === B ? f || N ? S : B : ma[S.toLowerCase()] ? f || N ? Z(B || S) : !0 : Z(B || ""); |
| 107 | + B = B != null ? a.substring(W, B) : !0; |
| 108 | + R[S] = B === !0 ? f || N ? S : B : ma[S.toLowerCase()] ? f || N ? Z(B || S) : !0 : Z(B || ""); |
109 | 109 | ++fa; |
110 | 110 | } |
111 | 111 | function k() { |
112 | | - (K = "/>" === a.substr(g, 2)) && ++g; |
| 112 | + (K = a.substr(g, 2) === "/>") && ++g; |
113 | 113 | return K; |
114 | 114 | } |
115 | | - for (var c = 1, u = a.length, g = 2, R = {}, fa = 0, K = !1, ea = v, l, V, O, W, H, ha, T, N, P; g < u && 9 > c; ++g) { |
| 115 | + for (var c = 1, u = a.length, g = 2, R = {}, fa = 0, K = !1, ea = v, l, V, O, W, H, ha, T, N, P; g < u && c < 9; ++g) { |
116 | 116 | switch(l = a.charAt(g), c) { |
117 | 117 | case 1: |
118 | | - A[l] & 4 ? (c = 2, h(g)) : ">" === l ? (c = 9, h(g)) : k() && (c = 9, h(g - 1)); |
| 118 | + A[l] & 4 ? (c = 2, h(g)) : l === ">" ? (c = 9, h(g)) : k() && (c = 9, h(g - 1)); |
119 | 119 | break; |
120 | 120 | case 2: |
121 | | - ">" === l || k() ? c = 9 : A[l] & 4 || (c = 3, V = g); |
| 121 | + l === ">" || k() ? c = 9 : A[l] & 4 || (c = 3, V = g); |
122 | 122 | break; |
123 | 123 | case 3: |
124 | | - "=" === l ? (c = 5, O = g) : A[l] & 4 ? (c = 4, O = g) : ">" === l ? (c = 9, O = g, y()) : k() && (c = 9, O = g - 1, y()); |
| 124 | + l === "=" ? (c = 5, O = g) : A[l] & 4 ? (c = 4, O = g) : l === ">" ? (c = 9, O = g, y()) : k() && (c = 9, O = g - 1, y()); |
125 | 125 | break; |
126 | 126 | case 4: |
127 | | - "=" === l ? c = 5 : ">" === l || k() ? (c = 9, y()) : A[l] & 4 || (c = 3, y(), V = g); |
| 127 | + l === "=" ? c = 5 : l === ">" || k() ? (c = 9, y()) : A[l] & 4 || (c = 3, y(), V = g); |
128 | 128 | break; |
129 | 129 | case 5: |
130 | | - '"' === l || "'" === l ? (c = 6, ha = l, W = g + 1) : A[l] & 4 || (c = 7, W = g); |
| 130 | + l === '"' || l === "'" ? (c = 6, ha = l, W = g + 1) : A[l] & 4 || (c = 7, W = g); |
131 | 131 | T = !1; |
132 | 132 | break; |
133 | 133 | case 6: |
134 | 134 | T || l !== ha || (c = 2, y(g)); |
135 | | - T = "\\" === l && !T; |
| 135 | + T = l === "\\" && !T; |
136 | 136 | break; |
137 | 137 | case 7: |
138 | | - A[l] & 4 ? (c = 2, y(g)) : ">" === l && (c = 9, y(g)); |
| 138 | + A[l] & 4 ? (c = 2, y(g)) : l === ">" && (c = 9, y(g)); |
139 | 139 | } |
140 | 140 | } |
141 | | - if (9 === c) { |
| 141 | + if (c === 9) { |
142 | 142 | if (N) { |
143 | 143 | K ? v = ea : (x = m[m.length] = H, n()); |
144 | 144 | } else { |
|
152 | 152 | (K = K || !!ca[P]) || (x = m[m.length] = f ? H : P, n()); |
153 | 153 | } |
154 | 154 | a = a.substr(g); |
155 | | - if (!0 === e.ma(f || N ? H : P, fa ? R : null, K, g)) { |
| 155 | + if (e.ma(f || N ? H : P, fa ? R : null, K, g) === !0) { |
156 | 156 | return I(), !0; |
157 | 157 | } |
158 | 158 | } else { |
|
170 | 170 | return; |
171 | 171 | } |
172 | 172 | r = a.indexOf("?>"); |
173 | | - if (-1 !== r) { |
| 173 | + if (r !== -1) { |
174 | 174 | E = a.substring(2, r); |
175 | 175 | a = a.substr(r + 2); |
176 | | - if (!0 === e.la(M(E))) { |
| 176 | + if (e.la(M(E)) === !0) { |
177 | 177 | I(); |
178 | 178 | return; |
179 | 179 | } |
|
196 | 196 | if (G()) { |
197 | 197 | return; |
198 | 198 | } |
199 | | - } else if ("<" === a.charAt(d) && A[a.charAt(d + 1)] & 3) { |
| 199 | + } else if (a.charAt(d) === "<" && A[a.charAt(d + 1)] & 3) { |
200 | 200 | if (q() || la(m)) { |
201 | 201 | return; |
202 | 202 | } |
|
205 | 205 | return; |
206 | 206 | } |
207 | 207 | r = a.indexOf("--\x3e"); |
208 | | - if (-1 !== r) { |
209 | | - if (E = a.substring(4, r), a = a.substr(r + 3), !0 === e.ja(M(E))) { |
| 208 | + if (r !== -1) { |
| 209 | + if (E = a.substring(4, r), a = a.substr(r + 3), e.ja(M(E)) === !0) { |
210 | 210 | I(); |
211 | 211 | return; |
212 | 212 | } |
|
219 | 219 | return; |
220 | 220 | } |
221 | 221 | r = a.indexOf("]]\x3e"); |
222 | | - if (-1 !== r) { |
223 | | - if (E = a.substring(9, r), a = a.substr(r + 3), !0 === e.ia(M(E))) { |
| 222 | + if (r !== -1) { |
| 223 | + if (E = a.substring(9, r), a = a.substr(r + 3), e.ia(M(E)) === !0) { |
224 | 224 | I(); |
225 | 225 | return; |
226 | 226 | } |
|
229 | 229 | return; |
230 | 230 | } |
231 | 231 | } else if (a.indexOf("<!DOCTYPE ") === d || a.indexOf("<!doctype ") === d) { |
232 | | - if (a = a.substr(d), d = 0, r = a.indexOf(">"), -1 !== r) { |
233 | | - if (E = a.substring(0, r + 1), a = a.substr(r + 1), z && (f = 0 < E.indexOf("-//W3C//DTD XHTML ")), z = !1, !0 === e.ka(E)) { |
| 232 | + if (a = a.substr(d), d = 0, r = a.indexOf(">"), r !== -1) { |
| 233 | + if (E = a.substring(0, r + 1), a = a.substr(r + 1), z && (f = 0 < E.indexOf("-//W3C//DTD XHTML ")), z = !1, e.ka(E) === !0) { |
234 | 234 | I(); |
235 | 235 | return; |
236 | 236 | } |
|
274 | 274 | b.$ += "<" + a; |
275 | 275 | for (m in e) { |
276 | 276 | w = e[m]; |
277 | | - b.$ += " " + m + (!0 !== w ? '="' + Y(w).split('"').join('\\"').split('\\\\"').join('\\"') + '"' : ""); |
| 277 | + b.$ += " " + m + (w !== !0 ? '="' + Y(w).split('"').join('\\"').split('\\\\"').join('\\"') + '"' : ""); |
278 | 278 | } |
279 | 279 | b.$ += (f ? "/" : "") + ">"; |
280 | 280 | f || b.ba.push(a.toUpperCase()); |
|
292 | 292 | for (a = a.split("\n").join(" ").split("\t").join(" "); 0 <= a.indexOf(" ");) { |
293 | 293 | a = a.split(" ").join(" "); |
294 | 294 | } |
295 | | - a.split(" ").join("") && (a = " " === a.charAt(0) ? a.substr(1) : a, a = a.length && " " === a.charAt(a.length - 1) ? a.substr(0, a.length - 1) : a, b.$ += Y(a)); |
| 295 | + a.split(" ").join("") && (a = a.charAt(0) === " " ? a.substr(1) : a, a = a.length && a.charAt(a.length - 1) === " " ? a.substr(0, a.length - 1) : a, b.$ += Y(a)); |
296 | 296 | } |
297 | 297 | if (b.aa && b.aa + 16 < +new C()) { |
298 | 298 | return !0; |
|
306 | 306 | return !0; |
307 | 307 | } |
308 | 308 | }, la:function(a) { |
309 | | - 0 === a.indexOf("xml ") && (b.ca = "\x3c?" + a + "?>\n"); |
| 309 | + a.indexOf("xml ") === 0 && (b.ca = "\x3c?" + a + "?>\n"); |
310 | 310 | if (b.aa && b.aa + 16 < +new C()) { |
311 | 311 | return !0; |
312 | 312 | } |
|
325 | 325 | }; |
326 | 326 | m.onsubmit = function(n) { |
327 | 327 | n && n.preventDefault(); |
328 | | - "undefined" != typeof event && (event.returnValue = !1); |
| 328 | + typeof event != "undefined" && (event.returnValue = !1); |
329 | 329 | n = e.value.split("\r\n").join("\n").split("\n\r").join("\n").split("\r").join("\n"); |
330 | 330 | a ? f.firstChild.data = "" : f.value = ""; |
331 | 331 | z.value = v = n.length; |
|
335 | 335 | return !1; |
336 | 336 | }; |
337 | 337 | function bz(n, G, q) { |
338 | | - w.style.width = 100 * n + "%"; |
| 338 | + w.style.width = n * 100 + "%"; |
339 | 339 | setTimeout(function() { |
340 | 340 | b.aa = +new C(); |
341 | 341 | a ? G(q[0], q[1], q[2], q[3], q[4], q[5], q[6]) : G.apply(null, q); |
|
0 commit comments