vendor: 27,333 bytes, lines 1-728
1/*! social-share 1.0.1 by harttle, 2016-10-20 2 * Social share widget supporting: wechat, weibo, linkedin, github, google+, rss, twitter, facebook and more. 3 * https://github.com/harttle/social-share */ 4 5var QRCode; 6! function() { 7 function a(a) { 8 this.mode = j.MODE_8BIT_BYTE, this.data = a, this.parsedData = []; 9 for (var b = [], c = 0, d = this.data.length; d > c; c++) { 10 var e = this.data.charCodeAt(c); 11 e > 65536 ? (b[0] = 240 | (1835008 & e) >>> 18, b[1] = 128 | ( 12 258048 & e) >>> 12, b[2] = 128 | (4032 & e) >>> 6, b[3] = 13 128 | 63 & e) : e > 2048 ? (b[0] = 224 | (61440 & e) >>> 12, 14 b[1] = 128 | (4032 & e) >>> 6, b[2] = 128 | 63 & e) : e > 15 128 ? (b[0] = 192 | (1984 & e) >>> 6, b[1] = 128 | 63 & e) : b[ 16 0] = e, this.parsedData = this.parsedData.concat(b) 17 } 18 this.parsedData.length != this.data.length && (this.parsedData.unshift( 19 191), this.parsedData.unshift(187), this.parsedData.unshift( 20 239)) 21 } 22 23 function b(a, b) { 24 this.typeNumber = a, this.errorCorrectLevel = b, this.modules = null, 25 this.moduleCount = 0, this.dataCache = null, this.dataList = [] 26 } 27 28 function c(a, b) { 29 if (void 0 == a.length) throw new Error(a.length + "/" + b); 30 for (var c = 0; c < a.length && 0 == a[c];) c++; 31 this.num = new Array(a.length - c + b); 32 for (var d = 0; d < a.length - c; d++) this.num[d] = a[d + c] 33 } 34 35 function d(a, b) { 36 this.totalCount = a, this.dataCount = b 37 } 38 39 function e() { 40 this.buffer = [], this.length = 0 41 } 42 43 function f() { 44 return "undefined" != typeof CanvasRenderingContext2D 45 } 46 47 function g() { 48 var a = !1, 49 b = navigator.userAgent; 50 return /android/i.test(b) && (a = !0, aMat = b.toString() 51 .match(/android ([0-9]\.[0-9])/i), aMat && aMat[1] && (a = 52 parseFloat(aMat[1]))), a 53 } 54 55 function h(a, b) { 56 for (var c = 1, d = i(a), e = 0, f = p.length; f >= e; e++) { 57 var g = 0; 58 switch (b) { 59 case k.L: 60 g = p[e][0]; 61 break; 62 case k.M: 63 g = p[e][1]; 64 break; 65 case k.Q: 66 g = p[e][2]; 67 break; 68 case k.H: 69 g = p[e][3] 70 } 71 if (g >= d) break; 72 c++ 73 } 74 if (c > p.length) throw new Error("Too long data"); 75 return c 76 } 77 78 function i(a) { 79 var b = encodeURI(a) 80 .toString() 81 .replace(/\%[0-9a-fA-F]{2}/g, "a"); 82 return b.length + (b.length != a ? 3 : 0) 83 } 84 a.prototype = { 85 getLength: function() { 86 return this.parsedData.length 87 }, 88 write: function(a) { 89 for (var b = 0, c = this.parsedData.length; c > b; b++) a.put( 90 this.parsedData[b], 8) 91 } 92 }, b.prototype = { 93 addData: function(b) { 94 var c = new a(b); 95 this.dataList.push(c), this.dataCache = null 96 }, 97 isDark: function(a, b) { 98 if (0 > a || this.moduleCount <= a || 0 > b || this.moduleCount <= 99 b) throw new Error(a + "," + b); 100 return this.modules[a][b] 101 }, 102 getModuleCount: function() { 103 return this.moduleCount 104 }, 105 make: function() { 106 this.makeImpl(!1, this.getBestMaskPattern()) 107 }, 108 makeImpl: function(a, c) { 109 this.moduleCount = 4 * this.typeNumber + 17, this.modules = 110 new Array(this.moduleCount); 111 for (var d = 0; d < this.moduleCount; d++) { 112 this.modules[d] = new Array(this.moduleCount); 113 for (var e = 0; e < this.moduleCount; e++) this.modules[ 114 d][e] = null 115 } 116 this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern( 117 this.moduleCount - 7, 0), this.setupPositionProbePattern( 118 0, this.moduleCount - 7), this.setupPositionAdjustPattern(), 119 this.setupTimingPattern(), this.setupTypeInfo(a, c), 120 this.typeNumber >= 7 && this.setupTypeNumber(a), null == 121 this.dataCache && (this.dataCache = b.createData(this.typeNumber, 122 this.errorCorrectLevel, this.dataList)), this.mapData( 123 this.dataCache, c) 124 }, 125 setupPositionProbePattern: function(a, b) { 126 for (var c = -1; 7 >= c; c++) 127 if (!(-1 >= a + c || this.moduleCount <= a + c)) 128 for (var d = -1; 7 >= d; d++) - 1 >= b + d || this.moduleCount <= 129 b + d || (this.modules[a + c][b + d] = c >= 0 && 130 6 >= c && (0 == d || 6 == d) || d >= 0 && 6 >= 131 d && (0 == c || 6 == c) || c >= 2 && 4 >= c && 132 d >= 2 && 4 >= d ? !0 : !1) 133 }, 134 getBestMaskPattern: function() { 135 for (var a = 0, b = 0, c = 0; 8 > c; c++) { 136 this.makeImpl(!0, c); 137 var d = m.getLostPoint(this); 138 (0 == c || a > d) && (a = d, b = c) 139 } 140 return b 141 }, 142 createMovieClip: function(a, b, c) { 143 var d = a.createEmptyMovieClip(b, c), 144 e = 1; 145 this.make(); 146 for (var f = 0; f < this.modules.length; f++) 147 for (var g = f * e, h = 0; h < this.modules[f].length; h++) { 148 var i = h * e, 149 j = this.modules[f][h]; 150 j && (d.beginFill(0, 100), d.moveTo(i, g), d.lineTo( 151 i + e, g), d.lineTo(i + e, g + e), d.lineTo( 152 i, g + e), d.endFill()) 153 } 154 return d 155 }, 156 setupTimingPattern: function() { 157 for (var a = 8; a < this.moduleCount - 8; a++) null == this 158 .modules[a][6] && (this.modules[a][6] = 0 == a % 2); 159 for (var b = 8; b < this.moduleCount - 8; b++) null == this 160 .modules[6][b] && (this.modules[6][b] = 0 == b % 2) 161 }, 162 setupPositionAdjustPattern: function() { 163 for (var a = m.getPatternPosition(this.typeNumber), b = 0; b < 164 a.length; b++) 165 for (var c = 0; c < a.length; c++) { 166 var d = a[b], 167 e = a[c]; 168 if (null == this.modules[d][e]) 169 for (var f = -2; 2 >= f; f++) 170 for (var g = -2; 2 >= g; g++) this.modules[ 171 d + f][e + g] = -2 == f || 2 == f || 172 -2 == g || 2 == g || 0 == f && 0 == g ? 173 !0 : !1 174 } 175 }, 176 setupTypeNumber: function(a) { 177 for (var b = m.getBCHTypeNumber(this.typeNumber), c = 0; 18 > 178 c; c++) { 179 var d = !a && 1 == (1 & b >> c); 180 this.modules[Math.floor(c / 3)][c % 3 + this.moduleCount - 181 8 - 3 182 ] = d 183 } 184 for (var c = 0; 18 > c; c++) { 185 var d = !a && 1 == (1 & b >> c); 186 this.modules[c % 3 + this.moduleCount - 8 - 3][Math.floor( 187 c / 3)] = d 188 } 189 }, 190 setupTypeInfo: function(a, b) { 191 for (var c = this.errorCorrectLevel << 3 | b, d = m.getBCHTypeInfo( 192 c), e = 0; 15 > e; e++) { 193 var f = !a && 1 == (1 & d >> e); 194 6 > e ? this.modules[e][8] = f : 8 > e ? this.modules[e + 195 1][8] = f : this.modules[this.moduleCount - 15 + 196 e][8] = f 197 } 198 for (var e = 0; 15 > e; e++) { 199 var f = !a && 1 == (1 & d >> e); 200 8 > e ? this.modules[8][this.moduleCount - e - 1] = f : 201 9 > e ? this.modules[8][15 - e - 1 + 1] = f : this.modules[ 202 8][15 - e - 1] = f 203 } 204 this.modules[this.moduleCount - 8][8] = !a 205 }, 206 mapData: function(a, b) { 207 for (var c = -1, d = this.moduleCount - 1, e = 7, f = 0, g = 208 this.moduleCount - 1; g > 0; g -= 2) 209 for (6 == g && g--;;) { 210 for (var h = 0; 2 > h; h++) 211 if (null == this.modules[d][g - h]) { 212 var i = !1; 213 f < a.length && (i = 1 == (1 & a[f] >>> e)); 214 var j = m.getMask(b, d, g - h); 215 j && (i = !i), this.modules[d][g - h] = i, 216 e--, -1 == e && (f++, e = 7) 217 } if (d += c, 0 > d || this.moduleCount <= d) { 218 d -= c, c = -c; 219 break 220 } 221 } 222 } 223 }, b.PAD0 = 236, b.PAD1 = 17, b.createData = function(a, c, f) { 224 for (var g = d.getRSBlocks(a, c), h = new e, i = 0; i < f.length; i++) { 225 var j = f[i]; 226 h.put(j.mode, 4), h.put(j.getLength(), m.getLengthInBits(j.mode, 227 a)), j.write(h) 228 } 229 for (var k = 0, i = 0; i < g.length; i++) k += g[i].dataCount; 230 if (h.getLengthInBits() > 8 * k) throw new Error( 231 "code length overflow. (" + h.getLengthInBits() + ">" + 232 8 * k + ")"); 233 for (h.getLengthInBits() + 4 <= 8 * k && h.put(0, 4); 0 != h.getLengthInBits() % 234 8;) h.putBit(!1); 235 for (; !(h.getLengthInBits() >= 8 * k) && (h.put(b.PAD0, 8), !(h.getLengthInBits() >= 236 8 * k));) h.put(b.PAD1, 8); 237 return b.createBytes(h, g) 238 }, b.createBytes = function(a, b) { 239 for (var d = 0, e = 0, f = 0, g = new Array(b.length), h = new Array( 240 b.length), i = 0; i < b.length; i++) { 241 var j = b[i].dataCount, 242 k = b[i].totalCount - j; 243 e = Math.max(e, j), f = Math.max(f, k), g[i] = new Array(j); 244 for (var l = 0; l < g[i].length; l++) g[i][l] = 255 & a.buffer[ 245 l + d]; 246 d += j; 247 var n = m.getErrorCorrectPolynomial(k), 248 o = new c(g[i], n.getLength() - 1), 249 p = o.mod(n); 250 h[i] = new Array(n.getLength() - 1); 251 for (var l = 0; l < h[i].length; l++) { 252 var q = l + p.getLength() - h[i].length; 253 h[i][l] = q >= 0 ? p.get(q) : 0 254 } 255 } 256 for (var r = 0, l = 0; l < b.length; l++) r += b[l].totalCount; 257 for (var s = new Array(r), t = 0, l = 0; e > l; l++) 258 for (var i = 0; i < b.length; i++) l < g[i].length && (s[t++] = 259 g[i][l]); 260 for (var l = 0; f > l; l++) 261 for (var i = 0; i < b.length; i++) l < h[i].length && (s[t++] = 262 h[i][l]); 263 return s 264 }; 265 for (var j = { 266 MODE_NUMBER: 1, 267 MODE_ALPHA_NUM: 2, 268 MODE_8BIT_BYTE: 4, 269 MODE_KANJI: 8 270 }, k = { 271 L: 1, 272 M: 0, 273 Q: 3, 274 H: 2 275 }, l = { 276 PATTERN000: 0, 277 PATTERN001: 1, 278 PATTERN010: 2, 279 PATTERN011: 3, 280 PATTERN100: 4, 281 PATTERN101: 5, 282 PATTERN110: 6, 283 PATTERN111: 7 284 }, m = { 285 PATTERN_POSITION_TABLE: [ 286 [], 287 [6, 18], 288 [6, 22], 289 [6, 26], 290 [6, 30], 291 [6, 34], 292 [6, 22, 38], 293 [6, 24, 42], 294 [6, 26, 46], 295 [6, 28, 50], 296 [6, 30, 54], 297 [6, 32, 58], 298 [6, 34, 62], 299 [6, 26, 46, 66], 300 [6, 26, 48, 70], 301 [6, 26, 50, 74], 302 [6, 30, 54, 78], 303 [6, 30, 56, 82], 304 [6, 30, 58, 86], 305 [6, 34, 62, 90], 306 [6, 28, 50, 72, 94], 307 [6, 26, 50, 74, 98], 308 [6, 30, 54, 78, 102], 309 [6, 28, 54, 80, 106], 310 [6, 32, 58, 84, 110], 311 [6, 30, 58, 86, 114], 312 [6, 34, 62, 90, 118], 313 [6, 26, 50, 74, 98, 122], 314 [6, 30, 54, 78, 102, 126], 315 [6, 26, 52, 78, 104, 130], 316 [6, 30, 56, 82, 108, 134], 317 [6, 34, 60, 86, 112, 138], 318 [6, 30, 58, 86, 114, 142], 319 [6, 34, 62, 90, 118, 146], 320 [6, 30, 54, 78, 102, 126, 150], 321 [6, 24, 50, 76, 102, 128, 154], 322 [6, 28, 54, 80, 106, 132, 158], 323 [6, 32, 58, 84, 110, 136, 162], 324 [6, 26, 54, 82, 110, 138, 166], 325 [6, 30, 58, 86, 114, 142, 170] 326 ], 327 G15: 1335, 328 G18: 7973, 329 G15_MASK: 21522, 330 getBCHTypeInfo: function(a) { 331 for (var b = a << 10; m.getBCHDigit(b) - m.getBCHDigit( 332 m.G15) >= 0;) b ^= m.G15 << m.getBCHDigit(b) - m.getBCHDigit( 333 m.G15); 334 return (a << 10 | b) ^ m.G15_MASK 335 }, 336 getBCHTypeNumber: function(a) { 337 for (var b = a << 12; m.getBCHDigit(b) - m.getBCHDigit( 338 m.G18) >= 0;) b ^= m.G18 << m.getBCHDigit(b) - m.getBCHDigit( 339 m.G18); 340 return a << 12 | b 341 }, 342 getBCHDigit: function(a) { 343 for (var b = 0; 0 != a;) b++, a >>>= 1; 344 return b 345 }, 346 getPatternPosition: function(a) { 347 return m.PATTERN_POSITION_TABLE[a - 1] 348 }, 349 getMask: function(a, b, c) { 350 switch (a) { 351 case l.PATTERN000: 352 return 0 == (b + c) % 2; 353 case l.PATTERN001: 354 return 0 == b % 2; 355 case l.PATTERN010: 356 return 0 == c % 3; 357 case l.PATTERN011: 358 return 0 == (b + c) % 3; 359 case l.PATTERN100: 360 return 0 == (Math.floor(b / 2) + Math.floor(c / 361 3)) % 2; 362 case l.PATTERN101: 363 return 0 == b * c % 2 + b * c % 3; 364 case l.PATTERN110: 365 return 0 == (b * c % 2 + b * c % 3) % 2; 366 case l.PATTERN111: 367 return 0 == (b * c % 3 + (b + c) % 2) % 2; 368 default: 369 throw new Error("bad maskPattern:" + a) 370 } 371 }, 372 getErrorCorrectPolynomial: function(a) { 373 for (var b = new c([1], 0), d = 0; a > d; d++) b = b.multiply( 374 new c([1, n.gexp(d)], 0)); 375 return b 376 }, 377 getLengthInBits: function(a, b) { 378 if (b >= 1 && 10 > b) switch (a) { 379 case j.MODE_NUMBER: 380 return 10; 381 case j.MODE_ALPHA_NUM: 382 return 9; 383 case j.MODE_8BIT_BYTE: 384 return 8; 385 case j.MODE_KANJI: 386 return 8; 387 default: 388 throw new Error("mode:" + a) 389 } else if (27 > b) switch (a) { 390 case j.MODE_NUMBER: 391 return 12; 392 case j.MODE_ALPHA_NUM: 393 return 11; 394 case j.MODE_8BIT_BYTE: 395 return 16; 396 case j.MODE_KANJI: 397 return 10; 398 default: 399 throw new Error("mode:" + a) 400 } else { 401 if (!(41 > b)) throw new Error("type:" + b); 402 switch (a) { 403 case j.MODE_NUMBER: 404 return 14; 405 case j.MODE_ALPHA_NUM: 406 return 13; 407 case j.MODE_8BIT_BYTE: 408 return 16; 409 case j.MODE_KANJI: 410 return 12; 411 default: 412 throw new Error("mode:" + a) 413 } 414 } 415 }, 416 getLostPoint: function(a) { 417 for (var b = a.getModuleCount(), c = 0, d = 0; b > d; d++) 418 for (var e = 0; b > e; e++) { 419 for (var f = 0, g = a.isDark(d, e), h = -1; 1 >= 420 h; h++) 421 if (!(0 > d + h || d + h >= b)) 422 for (var i = -1; 1 >= i; i++) 0 > e + i || 423 e + i >= b || (0 != h || 0 != i) && 424 g == a.isDark(d + h, e + i) && f++; 425 f > 5 && (c += 3 + f - 5) 426 } 427 for (var d = 0; b - 1 > d; d++) 428 for (var e = 0; b - 1 > e; e++) { 429 var j = 0; 430 a.isDark(d, e) && j++, a.isDark(d + 1, e) && j++, 431 a.isDark(d, e + 1) && j++, a.isDark(d + 1, 432 e + 1) && j++, (0 == j || 4 == j) && (c += 433 3) 434 } 435 for (var d = 0; b > d; d++) 436 for (var e = 0; b - 6 > e; e++) a.isDark(d, e) && ! 437 a.isDark(d, e + 1) && a.isDark(d, e + 2) && a.isDark( 438 d, e + 3) && a.isDark(d, e + 4) && !a.isDark( 439 d, e + 5) && a.isDark(d, e + 6) && (c += 40); 440 for (var e = 0; b > e; e++) 441 for (var d = 0; b - 6 > d; d++) a.isDark(d, e) && ! 442 a.isDark(d + 1, e) && a.isDark(d + 2, e) && a.isDark( 443 d + 3, e) && a.isDark(d + 4, e) && !a.isDark( 444 d + 5, e) && a.isDark(d + 6, e) && (c += 40); 445 for (var k = 0, e = 0; b > e; e++) 446 for (var d = 0; b > d; d++) a.isDark(d, e) && k++; 447 var l = Math.abs(100 * k / b / b - 50) / 5; 448 return c += 10 * l 449 } 450 }, n = { 451 glog: function(a) { 452 if (1 > a) throw new Error("glog(" + a + ")"); 453 return n.LOG_TABLE[a] 454 }, 455 gexp: function(a) { 456 for (; 0 > a;) a += 255; 457 for (; a >= 256;) a -= 255; 458 return n.EXP_TABLE[a] 459 }, 460 EXP_TABLE: new Array(256), 461 LOG_TABLE: new Array(256) 462 }, o = 0; 8 > o; o++) n.EXP_TABLE[o] = 1 << o; 463 for (var o = 8; 256 > o; o++) n.EXP_TABLE[o] = n.EXP_TABLE[o - 4] ^ n.EXP_TABLE[ 464 o - 5] ^ n.EXP_TABLE[o - 6] ^ n.EXP_TABLE[o - 8]; 465 for (var o = 0; 255 > o; o++) n.LOG_TABLE[n.EXP_TABLE[o]] = o; 466 c.prototype = { 467 get: function(a) { 468 return this.num[a] 469 }, 470 getLength: function() { 471 return this.num.length 472 }, 473 multiply: function(a) { 474 for (var b = new Array(this.getLength() + a.getLength() - 1), 475 d = 0; d < this.getLength(); d++) 476 for (var e = 0; e < a.getLength(); e++) b[d + e] ^= n.gexp( 477 n.glog(this.get(d)) + n.glog(a.get(e))); 478 return new c(b, 0) 479 }, 480 mod: function(a) { 481 if (this.getLength() - a.getLength() < 0) return this; 482 for (var b = n.glog(this.get(0)) - n.glog(a.get(0)), d = 483 new Array(this.getLength()), e = 0; e < this.getLength(); e++) 484 d[e] = this.get(e); 485 for (var e = 0; e < a.getLength(); e++) d[e] ^= n.gexp(n.glog( 486 a.get(e)) + b); 487 return new c(d, 0) 488 .mod(a) 489 } 490 }, d.RS_BLOCK_TABLE = [ 491 [1, 26, 19], 492 [1, 26, 16], 493 [1, 26, 13], 494 [1, 26, 9], 495 [1, 44, 34], 496 [1, 44, 28], 497 [1, 44, 22], 498 [1, 44, 16], 499 [1, 70, 55], 500 [1, 70, 44], 501 [2, 35, 17], 502 [2, 35, 13], 503 [1, 100, 80], 504 [2, 50, 32], 505 [2, 50, 24], 506 [4, 25, 9], 507 [1, 134, 108], 508 [2, 67, 43], 509 [2, 33, 15, 2, 34, 16], 510 [2, 33, 11, 2, 34, 12], 511 [2, 86, 68], 512 [4, 43, 27], 513 [4, 43, 19], 514 [4, 43, 15], 515 [2, 98, 78], 516 [4, 49, 31], 517 [2, 32, 14, 4, 33, 15], 518 [4, 39, 13, 1, 40, 14], 519 [2, 121, 97], 520 [2, 60, 38, 2, 61, 39], 521 [4, 40, 18, 2, 41, 19], 522 [4, 40, 14, 2, 41, 15], 523 [2, 146, 116], 524 [3, 58, 36, 2, 59, 37], 525 [4, 36, 16, 4, 37, 17], 526 [4, 36, 12, 4, 37, 13], 527 [2, 86, 68, 2, 87, 69], 528 [4, 69, 43, 1, 70, 44], 529 [6, 43, 19, 2, 44, 20], 530 [6, 43, 15, 2, 44, 16], 531 [4, 101, 81], 532 [1, 80, 50, 4, 81, 51], 533 [4, 50, 22, 4, 51, 23], 534 [3, 36, 12, 8, 37, 13], 535 [2, 116, 92, 2, 117, 93], 536 [6, 58, 36, 2, 59, 37], 537 [4, 46, 20, 6, 47, 21], 538 [7, 42, 14, 4, 43, 15], 539 [4, 133, 107], 540 [8, 59, 37, 1, 60, 38], 541 [8, 44, 20, 4, 45, 21], 542 [12, 33, 11, 4, 34, 12], 543 [3, 145, 115, 1, 146, 116], 544 [4, 64, 40, 5, 65, 41], 545 [11, 36, 16, 5, 37, 17], 546 [11, 36, 12, 5, 37, 13], 547 [5, 109, 87, 1, 110, 88], 548 [5, 65, 41, 5, 66, 42], 549 [5, 54, 24, 7, 55, 25], 550 [11, 36, 12], 551 [5, 122, 98, 1, 123, 99], 552 [7, 73, 45, 3, 74, 46], 553 [15, 43, 19, 2, 44, 20], 554 [3, 45, 15, 13, 46, 16], 555 [1, 135, 107, 5, 136, 108], 556 [10, 74, 46, 1, 75, 47], 557 [1, 50, 22, 15, 51, 23], 558 [2, 42, 14, 17, 43, 15], 559 [5, 150, 120, 1, 151, 121], 560 [9, 69, 43, 4, 70, 44], 561 [17, 50, 22, 1, 51, 23], 562 [2, 42, 14, 19, 43, 15], 563 [3, 141, 113, 4, 142, 114], 564 [3, 70, 44, 11, 71, 45], 565 [17, 47, 21, 4, 48, 22], 566 [9, 39, 13, 16, 40, 14], 567 [3, 135, 107, 5, 136, 108], 568 [3, 67, 41, 13, 68, 42], 569 [15, 54, 24, 5, 55, 25], 570 [15, 43, 15, 10, 44, 16], 571 [4, 144, 116, 4, 145, 117], 572 [17, 68, 42], 573 [17, 50, 22, 6, 51, 23], 574 [19, 46, 16, 6, 47, 17], 575 [2, 139, 111, 7, 140, 112], 576 [17, 74, 46], 577 [7, 54, 24, 16, 55, 25], 578 [34, 37, 13], 579 [4, 151, 121, 5, 152, 122], 580 [4, 75, 47, 14, 76, 48], 581 [11, 54, 24, 14, 55, 25], 582 [16, 45, 15, 14, 46, 16], 583 [6, 147, 117, 4, 148, 118], 584 [6, 73, 45, 14, 74, 46], 585 [11, 54, 24, 16, 55, 25], 586 [30, 46, 16, 2, 47, 17], 587 [8, 132, 106, 4, 133, 107], 588 [8, 75, 47, 13, 76, 48], 589 [7, 54, 24, 22, 55, 25], 590 [22, 45, 15, 13, 46, 16], 591 [10, 142, 114, 2, 143, 115], 592 [19, 74, 46, 4, 75, 47], 593 [28, 50, 22, 6, 51, 23], 594 [33, 46, 16, 4, 47, 17], 595 [8, 152, 122, 4, 153, 123], 596 [22, 73, 45, 3, 74, 46], 597 [8, 53, 23, 26, 54, 24], 598 [12, 45, 15, 28, 46, 16], 599 [3, 147, 117, 10, 148, 118], 600 [3, 73, 45, 23, 74, 46], 601 [4, 54, 24, 31, 55, 25], 602 [11, 45, 15, 31, 46, 16], 603 [7, 146, 116, 7, 147, 117], 604 [21, 73, 45, 7, 74, 46], 605 [1, 53, 23, 37, 54, 24], 606 [19, 45, 15, 26, 46, 16], 607 [5, 145, 115, 10, 146, 116], 608 [19, 75, 47, 10, 76, 48], 609 [15, 54, 24, 25, 55, 25], 610 [23, 45, 15, 25, 46, 16], 611 [13, 145, 115, 3, 146, 116], 612 [2, 74, 46, 29, 75, 47], 613 [42, 54, 24, 1, 55, 25], 614 [23, 45, 15, 28, 46, 16], 615 [17, 145, 115], 616 [10, 74, 46, 23, 75, 47], 617 [10, 54, 24, 35, 55, 25], 618 [19, 45, 15, 35, 46, 16], 619 [17, 145, 115, 1, 146, 116], 620 [14, 74, 46, 21, 75, 47], 621 [29, 54, 24, 19, 55, 25], 622 [11, 45, 15, 46, 46, 16], 623 [13, 145, 115, 6, 146, 116], 624 [14, 74, 46, 23, 75, 47], 625 [44, 54, 24, 7, 55, 25], 626 [59, 46, 16, 1, 47, 17], 627 [12, 151, 121, 7, 152, 122], 628 [12, 75, 47, 26, 76, 48], 629 [39, 54, 24, 14, 55, 25], 630 [22, 45, 15, 41, 46, 16], 631 [6, 151, 121, 14, 152, 122], 632 [6, 75, 47, 34, 76, 48], 633 [46, 54, 24, 10, 55, 25], 634 [2, 45, 15, 64, 46, 16], 635 [17, 152, 122, 4, 153, 123], 636 [29, 74, 46, 14, 75, 47], 637 [49, 54, 24, 10, 55, 25], 638 [24, 45, 15, 46, 46, 16], 639 [4, 152, 122, 18, 153, 123], 640 [13, 74, 46, 32, 75, 47], 641 [48, 54, 24, 14, 55, 25], 642 [42, 45, 15, 32, 46, 16], 643 [20, 147, 117, 4, 148, 118], 644 [40, 75, 47, 7, 76, 48], 645 [43, 54, 24, 22, 55, 25], 646 [10, 45, 15, 67, 46, 16], 647 [19, 148, 118, 6, 149, 119], 648 [18, 75, 47, 31, 76, 48], 649 [34, 54, 24, 34, 55, 25], 650 [20, 45, 15, 61, 46, 16] 651 ], d.getRSBlocks = function(a, b) { 652 var c = d.getRsBlockTable(a, b); 653 if (void 0 == c) throw new Error("bad rs block @ typeNumber:" + a + 654 "/errorCorrectLevel:" + b); 655 for (var e = c.length / 3, f = [], g = 0; e > g; g++) 656 for (var h = c[3 * g + 0], i = c[3 * g + 1], j = c[3 * g + 2], 657 k = 0; h > k; k++) f.push(new d(i, j)); 658 return f 659 }, d.getRsBlockTable = function(a, b) { 660 switch (b) { 661 case k.L: 662 return d.RS_BLOCK_TABLE[4 * (a - 1) + 0]; 663 case k.M: 664 return d.RS_BLOCK_TABLE[4 * (a - 1) + 1]; 665 case k.Q: 666 return d.RS_BLOCK_TABLE[4 * (a - 1) + 2]; 667 case k.H: 668 return d.RS_BLOCK_TABLE[4 * (a - 1) + 3]; 669 default: 670 return 671 } 672 }, e.prototype = { 673 get: function(a) { 674 var b = Math.floor(a / 8); 675 return 1 == (1 & this.buffer[b] >>> 7 - a % 8) 676 }, 677 put: function(a, b) { 678 for (var c = 0; b > c; c++) this.putBit(1 == (1 & a >>> b - 679 c - 1)) 680 }, 681 getLengthInBits: function() { 682 return this.length 683 }, 684 putBit: function(a) { 685 var b = Math.floor(this.length / 8); 686 this.buffer.length <= b && this.buffer.push(0), a && (this.buffer[ 687 b] |= 128 >>> this.length % 8), this.length++ 688 } 689 }; 690 var p = [ 691 [17, 14, 11, 7], 692 [32, 26, 20, 14], 693 [53, 42, 32, 24], 694 [78, 62, 46, 34], 695 [106, 84, 60, 44], 696 [134, 106, 74, 58], 697 [154, 122, 86, 64], 698 [192, 152, 108, 84], 699 [230, 180, 130, 98], 700 [271, 213, 151, 119], 701 [321, 251, 177, 137], 702 [367, 287, 203, 155], 703 [425, 331, 241, 177], 704 [458, 362, 258, 194], 705 [520, 412, 292, 220], 706 [586, 450, 322, 250], 707 [644, 504, 364, 280], 708 [718, 560, 394, 310], 709 [792, 624, 442, 338], 710 [858, 666, 482, 382], 711 [929, 711, 509, 403], 712 [1003, 779, 565, 439], 713 [1091, 857, 611, 461], 714 [1171, 911, 661, 511], 715 [1273, 997, 715, 535], 716 [1367, 1059, 751, 593], 717 [1465, 1125, 805, 625], 718 [1528, 1190, 868, 658], 719 [1628, 1264, 908, 698], 720 [1732, 1370, 982, 742], 721 [1840, 1452, 1030, 790], 722 [1952, 1538, 1112, 842], 723 [2068, 1628, 1168, 898], 724 [2188, 1722, 1228, 958], 725 [2303, 1809, 1283, 983], 726 [2431, 1911, 1351, 1051], 727 [2563, 1989, 1423, 1093], 728 [2699, 2099, 1499, 1139],
vendor: 4,730 bytes, lines 729-824
729 [2809, 2213, 1579, 1219], 730 [2953, 2331, 1663, 1273] 731 ], 732 q = function() { 733 var a = function(a, b) { 734 this._el = a, this._htOption = b 735 }; 736 return a.prototype.draw = function(a) { 737 function b(a, b) { 738 var c = document.createElementNS( 739 "http://www.w3.org/2000/svg", a); 740 for (var d in b) b.hasOwnProperty(d) && c.setAttribute( 741 d, b[d]); 742 return c 743 } 744 var c = this._htOption, 745 d = this._el, 746 e = a.getModuleCount(); 747 Math.floor(c.width / e), Math.floor(c.height / e), this.clear(); 748 var f = b("svg", { 749 viewBox: "0 0 " + String(e) + " " + String(e), 750 width: "100%", 751 height: "100%", 752 fill: c.colorLight 753 }); 754 f.setAttributeNS("http://www.w3.org/2000/xmlns/", 755 "xmlns:xlink", "http://www.w3.org/1999/xlink"), d.appendChild( 756 f), f.appendChild(b("rect", { 757 fill: c.colorDark, 758 width: "1", 759 height: "1", 760 id: "template" 761 })); 762 for (var g = 0; e > g; g++) 763 for (var h = 0; e > h; h++) 764 if (a.isDark(g, h)) { 765 var i = b("use", { 766 x: String(g), 767 y: String(h) 768 }); 769 i.setAttributeNS("http://www.w3.org/1999/xlink", 770 "href", "#template"), f.appendChild(i) 771 } 772 }, a.prototype.clear = function() { 773 for (; this._el.hasChildNodes();) this._el.removeChild(this 774 ._el.lastChild) 775 }, a 776 }(), 777 r = "svg" === document.documentElement.tagName.toLowerCase(), 778 s = r ? q : f() ? function() { 779 function a() { 780 this._elImage.src = this._elCanvas.toDataURL("image/png"), this 781 ._elImage.style.display = "block", this._elCanvas.style.display = 782 "none" 783 } 784 785 function b(a, b) { 786 var c = this; 787 if (c._fFail = b, c._fSuccess = a, null === c._bSupportDataURI) { 788 var d = document.createElement("img"), 789 e = function() { 790 c._bSupportDataURI = !1, c._fFail && _fFail.call(c) 791 }, 792 f = function() { 793 c._bSupportDataURI = !0, c._fSuccess && c._fSuccess 794 .call(c) 795 }; 796 return d.onabort = e, d.onerror = e, d.onload = f, void(d.src = 797 "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" 798 ) 799 } 800 c._bSupportDataURI === !0 && c._fSuccess ? c._fSuccess.call(c) : 801 c._bSupportDataURI === !1 && c._fFail && c._fFail.call(c) 802 } 803 if (this._android && this._android <= 2.1) { 804 var c = 1 / window.devicePixelRatio, 805 d = CanvasRenderingContext2D.prototype.drawImage; 806 CanvasRenderingContext2D.prototype.drawImage = function(a, b, e, 807 f, g, h, i, j) { 808 if ("nodeName" in a && /img/i.test(a.nodeName)) 809 for (var k = arguments.length - 1; k >= 1; k--) 810 arguments[k] = arguments[k] * c; 811 else "undefined" == typeof j && (arguments[1] *= c, 812 arguments[2] *= c, arguments[3] *= c, arguments[ 813 4] *= c); 814 d.apply(this, arguments) 815 } 816 } 817 var e = function(a, b) { 818 this._bIsPainted = !1, this._android = g(), this._htOption = 819 b, this._elCanvas = document.createElement("canvas"), 820 this._elCanvas.width = b.width, this._elCanvas.height = 821 b.height, a.appendChild(this._elCanvas), this._el = a, 822 this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = ! 823 1, this._elImage = document.createElement("img"), this._elImage 824 .style.display = "none", this._el.appendChild(this._elImage),
825 this._bSupportDataURI = null 826 }; 827 return e.prototype.draw = function(a) { 828 var b = this._elImage, 829 c = this._oContext, 830 d = this._htOption, 831 e = a.getModuleCount(), 832 f = d.width / e, 833 g = d.height / e, 834 h = Math.round(f), 835 i = Math.round(g); 836 b.style.display = "none", this.clear(); 837 for (var j = 0; e > j; j++) 838 for (var k = 0; e > k; k++) { 839 var l = a.isDark(j, k), 840 m = k * f, 841 n = j * g; 842 c.strokeStyle = l ? d.colorDark : d.colorLight, c.lineWidth = 843 1, c.fillStyle = l ? d.colorDark : d.colorLight, 844 c.fillRect(m, n, f, g), c.strokeRect(Math.floor( 845 m) + .5, Math.floor(n) + .5, h, i), c.strokeRect( 846 Math.ceil(m) - .5, Math.ceil(n) - .5, h, i) 847 } 848 this._bIsPainted = !0 849 }, e.prototype.makeImage = function() { 850 this._bIsPainted && b.call(this, a) 851 }, e.prototype.isPainted = function() { 852 return this._bIsPainted 853 }, e.prototype.clear = function() { 854 this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas 855 .height), this._bIsPainted = !1 856 }, e.prototype.round = function(a) { 857 return a ? Math.floor(1e3 * a) / 1e3 : a 858 }, e 859 }() : function() { 860 var a = function(a, b) { 861 this._el = a, this._htOption = b 862 }; 863 return a.prototype.draw = function(a) { 864 for (var b = this._htOption, c = this._el, d = a.getModuleCount(), 865 e = Math.floor(b.width / d), f = Math.floor(b.height / 866 d), g = [ 867 '<table style="border:0;border-collapse:collapse;">' 868 ], h = 0; d > h; h++) { 869 g.push("<tr>"); 870 for (var i = 0; d > i; i++) g.push( 871 '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + 872 e + "px;height:" + f + "px;background-color:" + 873 (a.isDark(h, i) ? b.colorDark : b.colorLight) + 874 ';"></td>'); 875 g.push("</tr>") 876 } 877 g.push("</table>"), c.innerHTML = g.join(""); 878 var j = c.childNodes[0], 879 k = (b.width - j.offsetWidth) / 2, 880 l = (b.height - j.offsetHeight) / 2; 881 k > 0 && l > 0 && (j.style.margin = l + "px " + k + "px") 882 }, a.prototype.clear = function() { 883 this._el.innerHTML = "" 884 }, a 885 }(); 886 QRCode = function(a, b) { 887 if (this._htOption = { 888 width: 256, 889 height: 256, 890 typeNumber: 4, 891 colorDark: "#000000", 892 colorLight: "#ffffff", 893 correctLevel: k.H 894 }, "string" == typeof b && (b = { 895 text: b 896 }), b) 897 for (var c in b) this._htOption[c] = b[c]; 898 "string" == typeof a && (a = document.getElementById(a)), this._android = 899 g(), this._el = a, this._oQRCode = null, this._oDrawing = new s( 900 this._el, this._htOption), this._htOption.text && this.makeCode( 901 this._htOption.text) 902 }, QRCode.prototype.makeCode = function(a) { 903 this._oQRCode = new b(h(a, this._htOption.correctLevel), this._htOption 904 .correctLevel), this._oQRCode.addData(a), this._oQRCode.make(), 905 this._el.title = a, this._oDrawing.draw(this._oQRCode), this.makeImage() 906 }, QRCode.prototype.makeImage = function() { 907 "function" == typeof this._oDrawing.makeImage && (!this._android || 908 this._android >= 3) && this._oDrawing.makeImage() 909 }, QRCode.prototype.clear = function() { 910 this._oDrawing.clear() 911 }, QRCode.CorrectLevel = k 912}(), 913function(a) { 914 function b(a, b, c) { 915 c = d({ 916 size: "md", 917 links: {} 918 }, c); 919 var e = document.createElement("ul"); 920 e.className = "list-unstyled social-share social-share-" + c.size, b.forEach( 921 function(a) { 922 e.appendChild(f(a)) 923 }), a.appendChild(e) 924 } 925 926 function c(a, b) { 927 var c = h[a]; 928 return c ? c(b) : (console.warn("[socialShare] plugin not found:" + a), 929 null) 930 } 931 932 function d(a, b) { 933 for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); 934 return a 935 } 936 937 function e(a) { 938 var b = { 939 url: location.href, 940 target: "", 941 icon: "fa-share-alt", 942 color: "#fff", 943 background: "#b5b5b5" 944 }; 945 return a.plugin && d(b, c(a.plugin, a.args || {})), d(b, a) 946 } 947 948 function f(a) { 949 a = e(a); 950 var b = document.createElement("li"); 951 b.className = "social-share-item"; 952 var c = document.createElement("a"); 953 c.href = a.url, c.target = a.target, c.style.background = a.background; 954 var d = document.createElement("i"); 955 return d.className = "fa " + a.icon, d.style.color = a.color, c.appendChild( 956 d), b.appendChild(c), "_qrcode" === a.target && (c.removeAttribute( 957 "target"), b.addEventListener("click", function(b) { 958 b.preventDefault(), g(a.url, a.title || "Share Link") 959 })), b 960 } 961 962 function g(a, b) { 963 function c(a) { 964 a.stopPropagation() 965 } 966 967 function d(a) { 968 27 == a.keyCode && e() 969 } 970 971 function e(a) { 972 document.body.removeChild(f), window.removeEventListener("keydown", 973 d) 974 } 975 var f = document.createElement("div"); 976 f.className = "social-share-dialog-bg"; 977 var g = document.createElement("div"); 978 g.className = "social-share-dialog"; 979 var h = document.createElement("div"); 980 h.className = "dialog-header", g.appendChild(h); 981 var i = document.createElement("span"); 982 i.className = "dismiss", i.innerHTML = "×", h.appendChild(i); 983 var j = document.createElement("header"); 984 j.innerHTML = b, h.appendChild(j); 985 var k = document.createElement("div"); 986 k.className = "dialog-body", g.appendChild(k); 987 new QRCode(k, { 988 text: a, 989 width: 256, 990 height: 256, 991 colorDark: "#000000", 992 colorLight: "#ffffff", 993 correctLevel: QRCode.CorrectLevel.H 994 }); 995 i.addEventListener("click", e), g.addEventListener("click", c), f.addEventListener( 996 "click", e), window.addEventListener("keydown", d), f.appendChild( 997 g), document.body.appendChild(f), setTimeout(function() { 998 f.className += " show" 999 }) 1000 } 1001 var h = {}; 1002 b.plugin = function(a, b) { 1003 h[a] = b 1004 }, a.socialShare = b 1005}(window), 1006function(a) { 1007 a.plugin("facebook", function(a) { 1008 return { 1009 url: "//www.facebook.com/" + a.id, 1010 icon: "fa-facebook", 1011 background: "#3B5998" 1012 } 1013 }) 1014}(window.socialShare), 1015function(a) { 1016 a.plugin("github", function(a) { 1017 return { 1018 url: "//github.com/" + a.id, 1019 background: "#b5b5b5", 1020 icon: "fa-github" 1021 } 1022 }) 1023}(window.socialShare), 1024function(a) { 1025 a.plugin("google-plus", function(a) { 1026 return { 1027 url: "//plus.google.com/+" + a.id, 1028 icon: "fa-google-plus", 1029 background: "#C63D2D" 1030 } 1031 }) 1032}(window.socialShare), 1033function(a) { 1034 a.plugin("linkedin", function(a) { 1035 return { 1036 url: "//www.linkedin.com/in/" + a.id, 1037 background: "#4875B4", 1038 icon: "fa-linkedin" 1039 } 1040 }) 1041}(window.socialShare), 1042function(a) { 1043 a.plugin("qrcode", function(a) { 1044 return { 1045 target: "_qrcode", 1046 icon: "fa-qrcode", 1047 title: "Here is the Link!", 1048 background: "#555" 1049 } 1050 }) 1051}(window.socialShare), 1052function(a) { 1053 a.plugin("rss", function(a) { 1054 return { 1055 icon: "fa-rss", 1056 background: "#FA9B39" 1057 } 1058 }) 1059}(window.socialShare), 1060function(a) { 1061 a.plugin("twitter", function(a) { 1062 return { 1063 url: "//twitter.com/" + a.id, 1064 icon: "fa-twitter", 1065 background: "#33CCFF" 1066 } 1067 }) 1068}(window.socialShare), 1069function(a) { 1070 a.plugin("wechat", function(a) { 1071 return { 1072 target: "_qrcode", 1073 icon: "fa-wechat", 1074 background: "#77cc6d" 1075 } 1076 }) 1077}(window.socialShare), 1078function(a) { 1079 function b(a) { 1080 var b = ""; 1081 for (var c in a) a.hasOwnProperty(c) && (b.length && (b += "&"), b += c + 1082 "=" + encodeURIComponent(a[c])); 1083 return b 1084 } 1085 a.plugin("weibo", function(a) { 1086 return a.title = a.title || document.title, a.url = a.url || 1087 location.href, { 1088 url: "https://service.weibo.com/share/share.php?url=" + b(a), 1089 background: "#E6162D", 1090 icon: "fa-weibo" 1091 } 1092 }) 1093}(window.socialShare);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.