PageSourceSearch

https://www.acquaticapark.it/Scripts/Libraries/qr-scanner-worker.js

js acquaticapark.it collected 2026-10-06 13:15:06 UTC 81,455 bytes, 3,321 lines download raw bytes

1'use strict';
2
3function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
4
5function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
7function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
9function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10
11function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12
13function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
14
15function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
16
17function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
18
19(function () {
20  function S(a, b) {
21    var c = [],
22        d = "";
23    b = a.readBits([8, 16, 16][b]);
24
25    for (var _d = 0; _d < b; _d++) {
26      var _b = a.readBits(8);
27
28      c.push(_b);
29    }
30
31    try {
32      d += decodeURIComponent(c.map(function (a) {
33        return "%".concat(("0" + a.toString(16)).substr(-2));
34      }).join(""));
35    } catch (e) {}
36
37    return {
38      bytes: c,
39      text: d
40    };
41  }
42
43  function T(a, b) {
44    a = new U(a);
45    b = 9 >= b ? 0 : 26 >= b ? 1 : 2;
46    var c = {
47      text: "",
48      bytes: [],
49      chunks: []
50    };
51
52    for (; 4 <= a.available();) {
53      var _c$bytes3;
54
55      var d = a.readBits(4);
56      if (d === y.Terminator) return c;
57      if (d === y.ECI) 0 === a.readBits(1) ? c.chunks.push({
58        type: u.ECI,
59        assignmentNumber: a.readBits(7)
60      }) : 0 === a.readBits(1) ? c.chunks.push({
61        type: u.ECI,
62        assignmentNumber: a.readBits(14)
63      }) : 0 === a.readBits(1) ? c.chunks.push({
64        type: u.ECI,
65        assignmentNumber: a.readBits(21)
66      }) : c.chunks.push({
67        type: u.ECI,
68        assignmentNumber: -1
69      });else if (d === y.Numeric) {
70        var _c$bytes;
71
72        var e = a;
73        d = [];
74
75        for (var g = "", f = e.readBits([10, 12, 14][b]); 3 <= f;) {
76          var h = e.readBits(10);
77          if (1E3 <= h) throw Error("Invalid numeric value above 999");
78          var k = Math.floor(h / 100),
79              m = Math.floor(h / 10) % 10;
80          h %= 10;
81          d.push(48 + k, 48 + m, 48 + h);
82          g += k.toString() + m.toString() + h.toString();
83          f -= 3;
84        }
85
86        if (2 === f) {
87          f = e.readBits(7);
88          if (100 <= f) throw Error("Invalid numeric value above 99");
89          e = Math.floor(f / 10);
90          f %= 10;
91          d.push(48 + e, 48 + f);
92          g += e.toString() + f.toString();
93        } else if (1 === f) {
94          e = e.readBits(4);
95          if (10 <= e) throw Error("Invalid numeric value above 9");
96          d.push(48 + e);
97          g += e.toString();
98        }
99
100        d = {
101          bytes: d,
102          text: g
103        };
104        c.text += d.text;
105
106        (_c$bytes = c.bytes).push.apply(_c$bytes, _toConsumableArray(d.bytes));
107
108        c.chunks.push({
109          type: u.Numeric,
110          text: d.text
111        });
112      } else if (d === y.Alphanumeric) {
113        var _c$bytes2;
114
115        e = a;
116        d = [];
117        g = "";
118
119        for (f = e.readBits([9, 11, 13][b]); 2 <= f;) {
120          m = e.readBits(11), k = Math.floor(m / 45), m %= 45, d.push(B[k].charCo
120deAt(0), B[m].charCodeAt(0)), g += B[k] + B[m], f -= 2;
121        }
122
123        1 === f && (e = e.readBits(6), d.push(B[e].charCodeAt(0)), g += B[e]);
124        d = {
125          bytes: d,
126          text: g
127        };
128        c.text += d.text;
129
130        (_c$bytes2 = c.bytes).push.apply(_c$bytes2, _toConsumableArray(d.bytes));
131
132        c.chunks.push({
133          type: u.Alphanumeric,
134          text: d.text
135        });
136      } else if (d === y.Byte) d = S(a, b), c.text += d.text, (_c$bytes3 = c.bytes).push.apply(_c$bytes3, _toConsumableArray(d.bytes)), c.chunks.push({
137        type: u.Byte,
138        bytes: d.bytes,
139        text: d.text
140      });else if (d === y.Kanji) {
141        var _c$bytes4;
142
143        g = a;
144        d = [];
145        e = g.readBits([8, 10, 12][b]);
146
147        for (f = 0; f < e; f++) {
148          k = g.readBits(13), k = Math.floor(k / 192) << 8 | k % 192, k = 7936 > k ? k + 33088 : k + 49472, d.push(k >> 8, k & 255);
149        }
150
151        g = new TextDecoder("shift-jis").decode(Uint8Array.from(d));
152        d = {
153          bytes: d,
154          text: g
155        };
156        c.text += d.text;
157
158        (_c$bytes4 = c.bytes).push.apply(_c$bytes4, _toConsumableArray(d.bytes));
159
160        c.chunks.push({
161          type: u.Kanji,
162          bytes: d.bytes,
163          text: d.text
164        });
165      }
166    }
167
168    if (0 === a.available() || 0 === a.readBits(a.available())) return c;
169  }
170
171  function J(a, b) {
172    return a ^ b;
173  }
174
175  function V(a, b, c, d) {
176    var _ref;
177
178    b.degree() < c.degree() && (_ref = [c, b], b = _ref[0], c = _ref[1], _ref);
179    var e = a.zero;
180
181    for (var g = a.one; c.degree() >= d / 2;) {
182      var f = b;
183      var _d2 = e;
184      b = c;
185      e = g;
186      if (b.isZero()) return null;
187      c = f;
188      g = a.zero;
189      f = b.getCoefficient(b.degree());
190
191      for (f = a.inverse(f); c.degree() >= b.degree() && !c.isZero();) {
192        var _d3 = c.degree() - b.degree(),
193            _e = a.multiply(c.getCoefficient(c.degree()), f);
194
195        g = g.addOrSubtract(a.buildMonomial(_d3, _e));
196        c = c.addOrSubtract(b.multiplyByMonomial(_d3, _e));
197      }
198
199      g = g.multiplyPoly(e).addOrSubtract(_d2);
200      if (c.degree() >= b.degree()) return null;
201    }
202
203    d = g.getCoefficient(0);
204    if (0 === d) return null;
205    a = a.inverse(d);
206    return [g.multiply(a), c.multiply(a)];
207  }
208
209  function W(a, b) {
210    var c = new Uint8ClampedArray(a.length);
211    c.set(a);
212    a = new X(285, 256, 0);
213    var d = new w(a, c),
214        e = new Uint8ClampedArray(b),
215        g = !1;
216
217    for (var f = 0; f < b; f++) {
218      var h = d.evaluateAt(a.exp(f + a.generatorBase));
219      e[e.length - 1 - f] = h;
220      0 !== h && (g = !0);
221    }
222
223    if (!g) return c;
224    d = new w(a, e);
225    d = V(a, a.buildMonomial(b, 1), d, b);
226    if (null === d) return null;
227    b = d[0];
228    f = b.degree();
229    if (1 === f) b = [b.getCoefficient(1)];else {
230      e = Array(f);
231      g = 0;
232
233      for (h = 1; h < a.size && g < f; h++) {
234        0 === b.evaluateAt(h) && (e[g] = a.inverse(h), g++);
235      }
236
237      b = g !== f ? null : e;
238    }
239    if (null == b) return null;
240    d = d[1];
241    e = b.length;
242    g = Array(e);
243
244    for (f = 0; f < e; f++) {
245      h = a.inverse(b[f]);
246      var _c = 1;
247
248      for (var _d4 = 0; _d4 < e; _d4++) {
249        f !== _d4 && (_c = a.multiply(_c, J(1, a.multiply(b[_d4], h))));
250      }
251
252      g[f] = a.multiply(d.evaluateAt(h), a.inverse(_c));
253      0 !== a.generatorBase && (g[f] = a.multiply(g[f], h));
254    }
255
256    d = g;
257
258    for (e = 0; e < b.length; e++) {
259      g = c.length - 1 - a.log(b[e]);
260      if (0 > g) return null;
261      c[g] ^= d[e];
262    }
263
264    return c;
265  }
266
267  function E(a, b) {
268    a ^= b;
269
270    for (b = 0; a;) {
271      b++, a &= a - 1;
272    }
273
274    return b;
275  }
276
277  function C(a, b) {
278    return b << 1 | a;
279  }
280
281  function Y(a, b, c) {
282    c = Z[c.dataMask];
283    var d = a.height;
284    var e = 17 + 4 * b.versionNumber,
285        g = A.createEmpty(e, e);
286    g.setRegion(0, 0, 9, 9, !0);
287    g.setRegion(e - 8, 0, 8, 9, !0);
288    g.setRegion(0, e - 8, 9, 8, !0);
289    var _iteratorNormalCompletion = true;
290    var _didIteratorError = false;
291    var _iteratorError = undefined;
292
293    try {
294      for (var _iterator = b.alignmentPatternCenters[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
295        var f = _step.value;
296        var _iteratorNormalCompletion2 = true;
297        var _didIteratorError2 = false;
298        var _iteratorError2 = undefined;
299
300        try {
301          for (var _iterator2 = b.alignmentPatternCenters[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
302            var h = _step2.value;
303            6 === f && 6 === h || 6 === f && h === e - 7 || f === e - 7 && 6 === h || g.setRegion(f - 2, h - 2, 5, 5, !0);
304          }
305        } catch (err) {
306          _didIteratorError2 = true;
307          _iteratorError2 = err;
308        } finally {
309          try {
310            if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
311              _iterator2.return();
312            }
313          } finally {
314            if (_didIteratorError2) {
315              throw _iteratorError2;
316            }
317          }
318        }
319      }
320    } catch (err) {
321      _didIteratorError = true;
322      _iteratorError = err;
323    } finally {
324      try {
325        if (!_iteratorNormalCompletion && _iterator.return != null) {
326          _iterator.return();
327        }
328      } finally {
329        if (_didIteratorError) {
330          throw _iteratorError;
331        }
332      }
333    }
334
335    g.setRegion(6, 9, 1, e - 17, !0);
336    g.setRegion(9, 6, e - 17, 1, !0);
337    6 < b.versionNumber && (g.setRegion(e - 11, 0, 3, 6, !0), g.setRegion(0, e - 11, 6, 3, !0));
338    b = g;
339    f = [];
340    e = h = 0;
341    g = !0;
342
343    for (var k = d - 1; 0 < k; k -= 2) {
344      6 === k && k--;
345
346      for (var m = 0; m < d; m++) {
347        var p = g ? d - 1 - m : m;
348
349        for (var _d5 = 0; 2 > _d5; _d5++) {
350          var _g = k - _d5;
351
352          if (!b.get(_g, p)) {
353            e++;
354
355            var _b2 = a.get(_g, p);
356
357            c({
358              y: p,
359              x: _g
360            }) && (_b2 = !_b2);
361            h = h << 1 | _b2;
362            8 === e && (f.push(h), h = e = 0);
363          }
364        }
365      }
366
367      g = !g;
368    }
369
370    return f;
371  }
372
373  function aa(a) {
374    var b = a.height,
375        c = Math.floor((b - 17) / 4);
376    if (6 >= c) return K[c - 1];
377    c = 0;
378
379    for (var d = 5; 0 <= d; d--) {
380      for (var e = b - 9; e >= b - 11; e--) {
381        c = C(a.get(e, d), c);
382      }
383    }
384
385    d = 0;
386
387    for (e = 5; 0 <= e; e--) {
388      for (var _c2 = b - 9; _c2 >= b - 11; _c2--) {
389        d = C(a.get(e, _c2), d);
390      }
391    }
392
393    a = Infinity;
394    var g;
395    var _iteratorNormalCompletion3 = true;
396    var _didIteratorError3 = false;
397    var _iteratorError3 = undefined;
398
399    try {
400      for (var _iterator3 = K[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
401        var _e2 = _step3.value;
402        if (_e2.infoBits === c || _e2.infoBits === d) return _e2;
403        b = E(c, _e2.infoBits);
404        b < a && (g = _e2, a = b);
405        b = E(d, _e2.infoBits);
406        b < a && (g = _e2, a = b);
407      }
408    } catch (err) {
409      _didIteratorError3 = true;
410      _iteratorError3 = err;
411    } finally {
412      try {
413        if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
414          _iterator3.return();
415        }
416      } finally {
417        if (_didIteratorError3) {
418          throw _iteratorError3;
419        }
420      }
421    }
422
423    if (3 >= a) return g;
424  }
425
426  function ba(a) {
427    var b = 0;
428
429    for (var c = 0; 8 >= c; c++) {
430      6 !== c && (b = C(a.get(c, 8), b));
431    }
432
433    for (c = 7; 0 <= c; c--) {
434      6 !== c && (b = C(a.get(8, c), b));
435    }
436
437    var d = a.height;
438    c = 0;
439
440    for (var e = d - 1; e >= d - 7; e--) {
441      c = C(a.get(8, e), c);
442    }
443
444    for (e = d - 8; e < d; e++) {
445      c = C(a.get(e, 8), c);
446    }
447
448    a = Infinity;
449    d = null;
450    var _iteratorNormalCompletion4 = true;
451    var _didIteratorError4 = false;
452    var _iteratorError4 = undefined;
453
454    try {
455      for (var _iterator4 = ca[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
456        var _step4$value = _step4.value,
457            g = _step4$value.bits,
458            f = _step4$value.formatInfo;
459        if (g === b || g === c) return f;
460        e = E(b, g);
461        e < a && (d = f, a = e);
462        b !== c && (e = E(c, g), e < a && (d = f, a = e));
463      }
464    } catch (err) {
465      _didIteratorError4 = true;
466      _iteratorError4 = err;
467    } finally {
468      try {
469        if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
470          _iterator4.return();
471        }
472      } finally {
473        if (_didIteratorError4) {
474          throw _iteratorError4;
475        }
476      }
477    }
478
479    return 3 >= a ? d : null;
480  }
481
482  function da(a, b, c) {
483    var d = b.errorCorrectionLevels[c],
484        e = [],
485        g = 0;
486    d.ecBlocks.forEach(function (a) {
487      for (var _b3 = 0; _b3 < a.numBlocks; _b3++) {
488        e.push({
489          numDataCodewords: a.dataCodewordsPerBlock,
490          codewords: []
491        }), g += a.dataCodewordsPerBlock + d.ecCodewordsPerBlock;
492      }
493    });
494    if (a.length < g) return null;
495    a = a.slice(0, g);
496    b = d.ecBlocks[0].dataCodewordsPerBlock;
497
498    for (c = 0; c < b; c++) {
499      for (var _i = 0, _e3 = e; _i < _e3.length; _i++) {
500        var f = _e3[_i];
501        f.codewords.push(a.shift());
502      }
503    }
504
505    if (1 < d.ecBlocks.length) for (f = d.ecBlocks[0].numBlocks, b = d.ecBlocks[1].numBlocks, c = 0; c < b; c++) {
506      e[f + c].codewords.push(a.shift());
507    }
508
509    for (; 0 < a.length;) {
510      for (var _i2 = 0, _e4 = e; _i2 < _e4.length; _i2++) {
511        var _b4 = _e4[_i2];
512
513        _b4.codewords.push(a.shift());
514      }
515    }
516
517    return e;
518  }
519
520  function L(a) {
521    var b = aa(a);
522    if (!b) return null;
523    var c = ba(a);
524    if (!c) return null;
525    a = Y(a, b, c);
526    var d = da(a, b, c.errorCorrectionLevel);
527    if (!d) return null;
528    c = d.reduce(function (a, b) {
529      return a + b.numDataCodewords;
530    }, 0);
531    c = new Uint8ClampedArray(c);
532    a = 0;
533    var _iteratorNormalCompletion5 = true;
534    var _didIteratorError5 = false;
535    var _iteratorError5 = undefined;
536
537    try {
538      for (var _iterator5 = d[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
539        var _b5 = _step5.value;
540        d = W(_b5.codewords, _b5.codewords.length - _b5.numDataCodewords);
541        if (!d) return null;
542
543        for (var e = 0; e < _b5.numDataCodewords; e++) {
544          c[a++] = d[e];
545        }
546      }
547    } catch (err) {
548      _didIteratorError5 = true;
549      _iteratorError5 = err;
550    } finally {
551      try {
552        if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
553          _iterator5.return();
554        }
555      } finally {
556        if (_didIteratorError5) {
557          throw _iteratorError5;
558        }
559      }
560    }
561
562    try {
563      return T(c, b.versionNumber);
564    } catch (e) {
565      return null;
566    }
567  }
568
569  function M(a, b, c, d) {
570    var e = a.x - b.x + c.x - d.x;
571    var g = a.y - b.y + c.y - d.y;
572    if (0 === e && 0 === g) return {
573      a11: b.x - a.x,
574      a12: b.y - a.y,
575      a13: 0,
576      a21: c.x - b.x,
577      a22: c.y - b.y,
578      a23: 0,
579      a31: a.x,
580      a32: a.y,
581      a33: 1
582    };
583    {
584      var h = b.x - c.x;
585      var f = d.x - c.x;
586      var k = b.y - c.y,
587          m = d.y - c.y;
588      c = h * m - f * k;
589      f = (e * m - f * g) / c;
590      e = (h * g - e * k) / c;
591      return {
592        a11: b.x - a.x + f * b.x,
593        a12: b.y - a.y + f * b.y,
594        a13: f,
595        a21: d.x - a.x + e * d.x,
596        a22: d.y - a.y + e * d.y,
597        a23: e,
598        a31: a.x,
599        a32: a.y,
600        a33: 1
601      };
602    }
603  }
604
605  function ea(a, b, c, d) {
606    a = M(a, b, c, d);
607    return {
608      a11: a.a22 * a.a33 - a.a23 * a.a32,
609      a12: a.a13 * a.a32 - a.a12 * a.a33,
610      a13: a.a12 * a.a23 - a.a13 * a.a22,
611      a21: a.a23 * a.a31 - a.a21 * a.a33,
612      a22: a.a11 * a.a33 - a.a13 * a.a31,
613      a23: a.a13 * a.a21 - a.a11 * a.a23,
614      a31: a.a21 * a.a32 - a.a22 * a.a31,
615      a32: a.a12 * a.a31 - a.a11 * a.a32,
616      a33: a.a11 * a.a22 - a.a12 * a.a21
617    };
618  }
619
620  function fa(a, b) {
621    var c = ea({
622      x: 3.5,
623      y: 3.5
624    }, {
625      x: b.dimension - 3.5,
626      y: 3.5
627    }, {
628      x: b.dimension - 6.5,
629      y: b.dimension - 6.5
630    }, {
631      x: 3.5,
632      y: b.dimension - 3.5
633    }),
634        d = M(b.topLeft, b.topRight, b.alignmentPattern, b.bottomLeft),
635        e = d.a11 * c.a11 + d.a21 * c.a12 + d.a31 * c.a13,
636        g = d.a12 * c.a11 + d.a22 * c.a12 + d.a32 * c.a13,
637        f = d.a13 * c.a11 + d.a23 * c.a12 + d.a33 * c.a13,
638        h = d.a11 * c.a21 + d.a21 * c.a22 + d.a31 * c.a23,
639        k = d.a12 * c.a21 + d.a22 * c.a22 + d.a32 * c.a23,
640        m = d.a13 * c.a21 + d.a23 * c.a22 + d.a33 * c.a23,
641        p = d.a11 * c.a31 + d.a21 * c.a32 + d.a31 * c.a33,
642        n = d.a12 * c.a31 + d.a22 * c.a32 + d.a32 * c.a33,
643        l = d.a13 * c.a31 + d.a23 * c.a32 + d.a33 * c.a33;
644    c = A.createEmpty(b.dimension, b.dimension);
645
646    d = function d(a, b) {
647      var c = f * a + m * b + l;
648      return {
649        x: (e * a + h * b + p) / c,
650        y: (g * a + k * b + n) / c
651      };
652    };
653
654    for (var _e5 = 0; _e5 < b.dimension; _e5++) {
655      for (var _f = 0; _f < b.dimension; _f++) {
656        var _b6 = d(_f + .5, _e5 + .5);
657
658        c.set(_f, _e5, a.get(Math.floor(_b6.x), Math.floor(_b6.y)));
659      }
660    }
661
662    return {
663      matrix: c,
664      mappingFunction: d
665    };
666  }
667
668  function t(a) {
669    return a.reduce(function (a, c) {
670      return a + c;
671    });
672  }
673
674  function ha(a, b, c) {
675    var _ref2, _ref3, _ref4, _ref5;
676
677    var d = x(a, b),
678        e = x(b, c),
679        g = x(a, c),
680        f,
681        h,
682        k;
683    e >= d && e >= g ? (_ref2 = [b, a, c], f = _ref2[0], h = _ref2[1], k = _ref2[2], _ref2) : g >= e && g >= d ? (_ref3 = [a, b, c], f = _ref3[0], h = _ref3[1], k = _ref3[2], _ref3) : (_ref4 = [a, c, b], f = _ref4[0], h = _ref4[1], k = _ref4[2], _ref4);
684    0 > (k.x - h.x) * (f.y - h.y) - (k.y - h.y) * (f.x - h.x) && (_ref5 = [k, f], f = _ref5[0], k = _ref5[1], _ref5);
685    return {
686      bottomLeft: f,
687      topLeft: h,
688      topRight: k
689    };
690  }
691
692  function ia(a, b, c, d) {
693    d = (t(z(a, c, d, 5)) / 7 + t(z(a, b, d, 5)) / 7 + t(z(c, a, d, 5)) / 7 + t(z(b, a, d, 5)) / 7) / 4;
694    if (1 > d) throw Error("Invalid module size");
695    b = Math.round(x(a, b) / d);
696    a = Math.round(x(a, c) / d);
697    a = Math.floor((b + a) / 2) + 7;
698
699    switch (a % 4) {
700      case 0:
701        a++;
702        break;
703
704      case 2:
705        a--;
706    }
707
708    return {
709      dimension: a,
710      moduleSize: d
711    };
712  }
713
714  function N(a, b, c, d) {
715    var e = [{
716      x: Math.floor(a.x),
717      y: Math.floor(a.y)
718    }];
719    var g = Math.abs(b.y - a.y) > Math.abs(b.x - a.x);
720
721    if (g) {
722      var f = Math.floor(a.y);
723      var h = Math.floor(a.x);
724      a = Math.floor(b.y);
725      b = Math.floor(b.x);
726    } else f = Math.floor(a.x), h = Math.floor(a.y), a = Math.floor(b.x), b = Math.floor(b.y);
727
728    var k = Math.abs(a - f),
729        m = Math.abs(b - h),
730        p = Math.floor(-k / 2),
731        n = f < a ? 1 : -1,
732        l = h < b ? 1 : -1,
733        q = !0;
734
735    for (var r = f, F = h;
735 r !== a + n; r += n) {
736      f = g ? F : r;
737      h = g ? r : F;
738      if (c.get(f, h) !== q && (q = !q, e.push({
739        x: f,
740        y: h
741      }), e.length === d + 1)) break;
742      p += m;
743
744      if (0 < p) {
745        if (F === b) break;
746        F += l;
747        p -= k;
748      }
749    }
750
751    c = [];
752
753    for (g = 0; g < d; g++) {
754      e[g] && e[g + 1] ? c.push(x(e[g], e[g + 1])) : c.push(0);
755    }
756
757    return c;
758  }
759
760  function z(a, b, c, d) {
761    var _a$concat;
762
763    var e = b.y - a.y,
764        g = b.x - a.x;
765    b = N(a, b, c, Math.ceil(d / 2));
766    a = N(a, {
767      x: a.x - g,
768      y: a.y - e
769    }, c, Math.ceil(d / 2));
770    c = b.shift() + a.shift() - 1;
771    return (_a$concat = a.concat(c)).concat.apply(_a$concat, _toConsumableArray(b));
772  }
773
774  function G(a, b) {
775    var c = t(a) / t(b),
776        d = 0;
777    b.forEach(function (b, g) {
778      d += Math.pow(a[g] - b * c, 2);
779    });
780    return {
781      averageSize: c,
782      error: d
783    };
784  }
785
786  function O(a, b, c) {
787    try {
788      var d = z(a, {
789        x: -1,
790        y: a.y
791      }, c, b.length),
792          e = z(a, {
793        x: a.x,
794        y: -1
795      }, c, b.length),
796          g = z(a, {
797        x: Math.max(0, a.x - a.y) - 1,
798        y: Math.max(0, a.y - a.x) - 1
799      }, c, b.length),
800          f = z(a, {
801        x: Math.min(c.width, a.x + a.y) + 1,
802        y: Math.min(c.height, a.y + a.x) + 1
803      }, c, b.length),
804          h = G(d, b),
805          k = G(e, b),
806          m = G(g, b),
807          p = G(f, b),
808          n = (h.averageSize + k.averageSize + m.averageSize + p.averageSize) / 4;
809      return Math.sqrt(h.error * h.error + k.error * k.error + m.error * m.error + p.error * p.error) + (Math.pow(h.averageSize - n, 2) + Math.pow(k.averageSize - n, 2) + Math.pow(m.averageSize - n, 2) + Math.pow(p.averageSize - n, 2)) / n;
810    } catch (d) {
811      return Infinity;
812    }
813  }
814
815  function ja(a) {
816    var _b7, _d6;
817
818    var b = [],
819        c = [],
820        d = [],
821        e = [];
822
823    var _loop = function _loop(r) {
824      var _b9, _d7;
825
826      var k = 0,
827          m = !1,
828          l = [0, 0, 0, 0, 0];
829
830      for (var _b8 = -1; _b8 <= a.width; _b8++) {
831        g = a.get(_b8, r);
832        if (g === m) k++;else {
833          l = [l[1], l[2], l[3], l[4], k];
834          k = 1;
835          m = g;
836          f = t(l) / 7;
837          f = Math.abs(l[0] - f) < f && Math.abs(l[1] - f) < f && Math.abs(l[2] - 3 * f) < 3 * f && Math.abs(l[3] - f) < f && Math.abs(l[4] - f) < f && !g;
838          h = t(l.slice(-3)) / 3;
839          g = Math.abs(l[2] - h) < h && Math.abs(l[3] - h) < h && Math.abs(l[4] - h) < h && g;
840
841          if (f) {
842            (function () {
843              var a = _b8 - l[3] - l[4],
844                  d = a - l[2];
845              f = {
846                startX: d,
847                endX: a,
848                y: r
849              };
850              h = c.filter(function (b) {
851                return d >= b.bottom.startX && d <= b.bottom.endX || a >= b.bottom.startX && d <= b.bottom.endX || d <= b.bottom.startX && a >= b.bottom.endX && 1.5 > l[2] / (b.bottom.endX - b.bottom.startX) && .5 < l[2] / (b.bottom.endX - b.bottom.startX);
852              });
853              0 < h.length ? h[0].bottom = f : c.push({
854                top: f,
855                bottom: f
856              });
857            })();
858          }
859
860          if (g) {
861            (function () {
862              var a = _b8 - l[4],
863                  c = a - l[3];
864              g = {
865                startX: c,
866                y: r,
867                endX: a
868              };
869              f = e.filter(function (b) {
870                return c >= b.bottom.startX && c <= b.bottom.endX || a >= b.bottom.startX && c <= b.bottom.endX || c <= b.bottom.startX && a >= b.bottom.endX && 1.5 > l[2] / (b.bottom.endX - b.bottom.startX) && .5 < l[2] / (b.bottom.endX - b.bottom.startX);
871              });
872              0 < f.length ? f[0].bottom = g : e.push({
873                top: g,
874                bottom: g
875              });
876            })();
877          }
878        }
879      }
880
881      (_b9 = b).push.apply(_b9, _toConsumableArray(c.filter(function (a) {
882        return a.bottom.y !== r && 2 <= a.bottom.y - a.top.y;
883      })));
884
885      c = c.filter(function (a) {
886        return a.bottom.y === r;
887      });
888
889      (_d7 = d).push.apply(_d7, _toConsumableArray(e.filter(function (a) {
890        return a.bottom.y !== r;
891      })));
892
893      e = e.filter(function (a) {
894        return a.bottom.y === r;
895      });
896    };
897
898    for (var r = 0; r <= a.height; r++) {
899      var g;
900      var f;
901      var h;
902
903      _loop(r);
904    }
905
906    (_b7 = b).push.apply(_b7, _toConsumableArray(c.filter(function (a) {
907      return 2 <= a.bottom.y - a.top.y;
908    }
908)));
909
910    (_d6 = d).push.apply(_d6, _toConsumableArray(e));
911
912    b = b.filter(function (a) {
913      return 2 <= a.bottom.y - a.top.y;
914    }).map(function (b) {
915      var c = (b.top.startX + b.top.endX + b.bottom.startX + b.bottom.endX) / 4,
916          d = (b.top.y + b.bottom.y + 1) / 2;
917      if (a.get(Math.round(c), Math.round(d))) return b = [b.top.endX - b.top.startX, b.bottom.endX - b.bottom.startX, b.bottom.y - b.top.y + 1], b = t(b) / b.length, {
918        score: O({
919          x: Math.round(c),
920          y: Math.round(d)
921        }, [1, 1, 3, 1, 1], a),
922        x: c,
923        y: d,
924        size: b
925      };
926    }).filter(function (a) {
927      return !!a;
928    }).sort(function (a, b) {
929      return a.score - b.score;
930    }).map(function (a, b, c) {
931      if (4 < b) return null;
932      c = c.filter(function (a, c) {
933        return b !== c;
934      }).map(function (b) {
935        return {
936          x: b.x,
937          y: b.y,
938          score: b.score + Math.pow(b.size - a.size, 2) / a.size,
939          size: b.size
940        };
941      }).sort(function (a, b) {
942        return a.score - b.score;
943      });
944      if (2 > c.length) return null;
945      var d = a.score + c[0].score + c[1].score;
946      return {
947        points: [a].concat(c.slice(0, 2)),
948        score: d
949      };
950    }).filter(function (a) {
951      return !!a;
952    }).sort(function (a, b) {
953      return a.score - b.score;
954    });
955    if (0 === b.length) return null;
956
957    var _ha = ha(b[0].points[0], b[0].points[1], b[0].points[2]),
958        k = _ha.topRight,
959        m = _ha.topLeft,
960        p = _ha.bottomLeft;
961
962    var n;
963
964    try {
965      var _ia = ia(m, k, p, a);
966
967      n = _ia.dimension;
968      l = _ia.moduleSize;
969    } catch (r) {
970      return null;
971    }
972
973    b = k.x - m.x + p.x;
974    c = k.y - m.y + p.y;
975    var l = (x(m, p) + x(m, k)) / 2 / l;
976    e = 1 - 3 / l;
977    var q = {
978      x: m.x + e * (b - m.x),
979      y: m.y + e * (c - m.y)
980    };
981    d = d.map(function (b) {
982      var c = (b.top.startX + b.top.endX + b.bottom.startX + b.bottom.endX) / 4,
983          d = (b.top.y + b.bottom.y + 1) / 2;
984      if (a.get(Math.floor(c), Math.floor(d))) return t([b.top.endX - b.top.startX, b.bottom.endX - b.bottom.startX, b.bottom.y - b.top.y + 1]), b = O({
985        x: Math.floor(c),
986        y: Math.floor(d)
987      }, [1, 1, 1], a) + x({
988        x: c,
989        y: d
990      }, q), {
991        x: c,
992        y: d,
993        score: b
994      };
995    }).filter(function (a) {
996      return !!a;
997    }).sort(function (a, b) {
998      return a.score - b.score;
999    });
1000    d = 15 <= l && d.length ? d[0] : q;
1001    return {
1002      alignmentPattern: {
1003        x: d.x,
1004        y: d.y
1005      },
1006      bottomLeft: {
1007        x: p.x,
1008        y: p.y
1009      },
1010      dimension: n,
1011      topLeft: {
1012        x: m.x,
1013        y: m.y
1014      },
1015      topRight: {
1016        x: k.x,
1017        y: k.y
1018      }
1019    };
1020  }
1021
1022  function P(a) {
1023    var b = ja(a);
1024    if (!b) return null;
1025    a = fa(a, b);
1026    var c = a.matrix;
1027    if (null == c) c = null;else {
1028      var d = L(c);
1029      if (d) c = d;else {
1030        for (d = 0; d < c.width; d++) {
1031          for (var _a = d + 1; _a < c.height; _a++) {
1032            c.get(d, _a) !== c.get(_a, d) && (c.set(d, _a, !c.get(d, _a)), c.set(_a, d, !c.get(_a, d)));
1033          }
1034        }
1035
1036        c = L(c);
1037      }
1038    }
1039    return c ? {
1040      binaryData: c.bytes,
1041      data: c.text,
1042      chunks: c.chunks,
1043      location: {
1044        topRightCorner: a.mappingFunction(b.dimension, 0),
1045        topLeftCorner: a.mappingFunction(0, 0),
1046        bottomRightCorner: a.mappingFunction(b.dimension, b.dimension),
1047        bottomLeftCorner: a.mappingFunction(0, b.dimension),
1048        topRightFinderPattern: b.topRight,
1049        topLeftFinderPattern: b.topLeft,
1050        bottomLeftFinderPattern: b.bottomLeft,
1051        bottomRightAlignmentPattern: b.alignmentPattern
1052      }
1053    } : null;
1054  }
1055
1056  function Q(a, b) {
1057    Object.keys(b).forEach(function (c) {
1058      a[c] = b[c];
1059    });
1060  }
1061
1062  function I(a, b, c) {
1063    var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1064    var e = Object.create(null);
1065    Q(e, ka);
1066    Q(e, d);
1067    d = "onlyInvert" === e.inversionAttempts || "invertFirst" === e.inversionAttempts;
1068    var g = "attemptBoth" === e.inversionAttempts || "invertFirst" === e.inversionAttempts;
1069    var f = e.greyScaleWeights,
1070        h = e.canOverwriteImage,
1071        k = b * c;
1072    if (a.length !== 4 * k) throw Error("Malformed data passed to binarizer.");
1073    var m = 0;
1074
1075    if (h) {
1076      var p = new Uint8ClampedArray(a.buffer, m, k);
1077      m += k;
1078    }
1079
1080    p = new R(b, c, p);
1081    if (f.useIntegerApproximation) for (var n = 0; n < c; n++) {
1082      for (var l = 0; l < b; l++) {
1083        var q = 4 * (n * b + l);
1084        p.set(l, n, f.red * a[q] + f.green * a[q + 1] + f.blue * a[q + 2] + 128 >> 8);
1085      }
1086    } else for (n = 0; n < c; n++) {
1087      for (l = 0; l < b; l++) {
1088        q = 4 * (n * b + l), p.set(l, n, f.red * a[q] + f.green * a[q + 1] + f.blue * a[q + 2]);
1089      }
1090    }
1091    f = Math.ceil(b / 8);
1092    n = Math.ceil(c / 8);
1093    l = f * n;
1094
1095    if (h) {
1096      var r = new Uint8ClampedArray(a.buffer, m, l);
1097      m += l;
1098    }
1099
1100    r = new R(f, n, r);
1101
1102    for (l = 0; l < n; l++) {
1103      for (q = 0; q < f; q++) {
1104        var u = 0,
1105            v = Infinity,
1106            t = 0;
1107
1108        for (var _a2 = 0; 8 > _a2; _a2++) {
1109          for (var _b10 = 0; 8 > _b10; _b10++) {
1110            var _c3 = p.get(8 * q + _b10, 8 * l + _a2);
1111
1112            u += _c3;
1113            v = Math.min(v, _c3);
1114            t = Math.max(t, _c3);
1115          }
1116        }
1117
1118        u /= Math.pow(8, 2);
1119        24 >= t - v && (u = v / 2, 0 < l && 0 < q && (t = (r.get(q, l - 1) + 2 * r.get(q - 1, l) + r.get(q - 1, l - 1)) / 4, v < t && (u = t)));
1120        r.set(q, l, u);
1121      }
1122    }
1123
1124    h ? (l = new Uint8ClampedArray(a.buffer, m, k), m += k, l = new A(l, b)) : l = A.createEmpty(b, c);
1125    q = null;
1126    g && (h ? (a = new Uint8ClampedArray(a.buffer, m, k), q = new A(a, b)) : q = A.createEmpty(b, c));
1127
1128    for (b = 0; b < n; b++) {
1129      for (a = 0; a < f; a++) {
1130        c = f - 3;
1131        c = 2 > a ? 2 : a > c ? c : a;
1132        h = n - 3;
1133        h = 2 > b ? 2 : b > h ? h : b;
1134        k = 0;
1135
1136        for (m = -2; 2 >= m; m++) {
1137          for (v = -2; 2 >= v; v++) {
1138            k += r.get(c + m, h + v);
1139          }
1140        }
1141
1142        c = k / 25;
1143
1144        for (h = 0; 8 > h; h++) {
1145          for (k = 0; 8 > k; k++) {
1146            m = 8 * a + h, v = 8 * b + k, t = p.get(m, v), l.set(m, v, t <= c), g && q.set(m, v, !(t <= c));
1147          }
1148        }
1149      }
1150    }
1151
1152    g = g ? {
1153      binarized: l,
1154      inverted: q
1155    } : {
1156      binarized: l
1157    };
1158    var _g2 = g,
1159        w = _g2.binarized,
1160        x = _g2.inverted;
1161    (g = P(d ? x : w)) || "attemptBoth" !== e.inversionAttempts && "invertFirst" !== e.inversionAttempts || (g = P(d ? w : x));
1162    return g;
1163  }
1164
1165  var A =
1166  /*#__PURE__*/
1167  function () {
1168    _createClass(A, null, [{
1169      key: "createEmpty",
1170      value: function createEmpty(a, b) {
1171        return new A(new Uint8ClampedArray(a * b), a);
1172      }
1173    }]);
1174
1175    function A(a, b) {
1176      _classCallCheck(this, A);
1177
1178      this.width = b;
1179      this.height = a.length / b;
1180      this.data = a;
1181    }
1182
1183    _createClass(A, [{
1184      key: "get",
1185      value: function get(a, b) {
1186        return 0 > a || a >= this.width || 0 > b || b >= this.height ? !1 : !!this.data[b * this.width + a];
1187      }
1188    }, {
1189      key: "set",
1190      value: function set(a, b, c) {
1191        this.data[b * this.width + a] = c ? 1 : 0;
1192      }
1193    }, {
1194      key: "setRegion",
1195      value: function setRegion(a, b, c, d, e) {
1196        for (var g = b; g < b + d; g++) {
1197          for (var _b11 = a; _b11 < a + c; _b11++) {
1198            this.set(_b11, g, !!e);
1199          }
1200        }
1201      }
1202    }]);
1203
1204    return A;
1205  }();
1206
1207  var R =
1208  /*#__PURE__*/
1209  function () {
1210    function R(a, b, c) {
1211      _classCallCheck(this, R);
1212
1213      this.width = a;
1214      a *= b;
1215      if (c && c.length !== a) throw Error("Wrong buffer size");
1216      this.data = c || new Uint8ClampedArray(a);
1217    }
1218
1219    _createClass(R, [{
1220      key: "get",
1221      value: function get(a, b) {
1222        return this.data[b * this.width + a];
1223      }
1224    }, {
1225      key: "set",
1226      value: function set(a, b, c) {
1227        this.data[b * this.width + a] = c;
1228      }
1229    }]);
1230
1231    return R;
1232  }();
1233
1234  var U =
1235  /*#__PURE__*/
1236  function () {
1237    function U(a) {
1238      _classCallCheck(this, U);
1239
1240      this.bitOffset = this.byteOffset = 0;
1241      this.bytes = a;
1242    }
1243
1244    _createClass(U, [{
1245      key: "readBits",
1246      value: function readBits(a) {
1247        if (1 > a || 32 < a || a > this.available()) throw Error("Cannot read " + a.toString() + " bits");
1248        var b = 0;
1249
1250        if (0 < this.bitOffset) {
1251          b = 8 - this.bitOffset;
1252          var c = a < b ? a : b;
1253          b -= c;
1254          b = (this.bytes[this.byteOffset] & 255 >> 8 - c << b) >> b;
1255          a -= c;
1256          this.bitOffset += c;
1257          8 === this.bitOffset && (this.bitOffset = 0, this.byteOffset++);
1258        }
1259
1260        if (0 < a) {
1261          for (; 8 <= a;) {
1262            b = b << 8 | this.bytes[this.byteOffset] & 255, this.byteOffset++, a -= 8;
1263          }
1264
1265          0 < a && (c = 8 - a, b = b << a | (this.bytes[this.byteOffset] & 255 >> c << c) >> c, this.bitOffset += a);
1266        }
1267
1268        return b;
1269      }
1270    }, {
1271      key: "available",
1272      value: function available() {
1273        return 8 * (this.bytes.length - this.byteOffset) - this.bitOffset;
1274      }
1275    }]);
1276
1277    return U;
1278  }();
1279
1280  var u;
1281
1282  (function (a) {
1283    a.Numeric = "numeric";
1284    a.Alphanumeric = "alphanumeric";
1285    a.Byte = "byte";
1286    a.Kanji = "kanji";
1287    a.ECI = "eci";
1288  })(u || (u = {}));
1289
1290  var y;
1291
1292  (function (a) {
1293    a[a.Terminator = 0] = "Terminator";
1294    a[a.Numeric = 1] = "Numeric";
1295    a[a.Alphanumeric = 2] = "Alphanumeric";
1296    a[a.Byte = 4] = "Byte";
1297    a[a.Kanji = 8] = "Kanji";
1298    a[a.ECI = 7] = "ECI";
1299  })(y || (y = {}));
1300
1301  var B = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
1302
1303  var w =
1304  /*#__PURE__*/
1305  function () {
1306    function w(a, b) {
1307      _classCallCheck(this, w);
1308
1309      if (0 === b.length) throw Error("No coefficients.");
1310      this.field = a;
1311      var c = b.length;
1312
1313      if (1 < c && 0 === b[0]) {
1314        var d = 1;
1315
1316        for (; d < c && 0 === b[d];) {
1317          d++;
1318        }
1319
1320        if (d === c) this.coefficients = a.zero.coefficients;else for (this.coefficients = new Uint8ClampedArray(c - d), a = 0; a < this.coefficients.length; a++) {
1321          this.coefficients[a] = b[d + a];
1322        }
1323      } else this.coefficients = b;
1324    }
1325
1326    _createClass(w, [{
1327      key: "degree",
1328      value: function degree() {
1329        return this.coefficients.length - 1;
1330      }
1331    }, {
1332      key: "isZero",
1333      value: function isZero() {
1334        return 0 === this.coefficients[0];
1335      }
1336    }, {
1337      key: "getCoefficient",
1338      value: function getCoefficient(a) {
1339        return this.coefficients[this.coefficients.length - 1 - a];
1340      }
1341    }, {
1342      key: "addOrSubtract",
1343      value: function addOrSubtract(a) {
1344        var _ref6;
1345
1346        if (this.isZero()) return a;
1347        if (a.isZero()) return this;
1348        var b = this.coefficients;
1349        a = a.coefficients;
1350        b.length > a.length && (_ref6 = [a, b], b = _ref6[0], a = _ref6[1], _ref6);
1351        var c = new Uint8ClampedArray(a.length),
1352            d = a.length - b.length;
1353
1354        for (var e = 0; e < d; e++) {
1355          c[e] = a[e];
1356        }
1357
1358        for (e = d; e < a.length; e++) {
1359          c[e] = b[e - d] ^ a[e];
1360        }
1361
1362        return new w(this.field, c);
1363      }
1364    }, {
1365      key: "multiply",
1366      value: function multiply(a) {
1367        if (0 === a) return this.field.zero;
1368        if (1 === a) return this;
1369        var b = this.coefficients.length,
1370            c = new Uint8ClampedArray(b);
1371
1372        for (var d = 0; d < b; d++) {
1373          c[d] = this.field.multiply(this.coefficients[d], a);
1374        }
1375
1376        return new w(this.field, c);
1377      }
1378    }, {
1379      key: "multiplyPoly",
1380      value: function multiplyPoly(a) {
1381        if (this.isZero() || a.isZero()) return this.field.zero;
1382        var b = this.coefficients,
1383            c = b.length;
1384        a = a.coefficients;
1385        var d = a.length,
1386            e = new Uint8ClampedArray(c + d - 1);
1387
1388        for (var h = 0; h < c; h++) {
1389          var _c4 = b[h];
1390
1391          for (var _b12 = 0; _b12 < d; _b12++) {
1392            var g = h + _b12,
1393                f = this.field.multiply(_c4, a[_b12]);
1394            e[g] = e[h + _b12] ^ f;
1395          }
1396        }
1397
1398        return new w(this.field, e);
1399      }
1400    }, {
1401      key: "multiplyByMonomial",
1402      value: function multiplyByMonomial(a, b) {
1403        if (0 > a) throw Error("Invalid degree less than 0");
1404        if (0 === b) return this.field.zero;
1405        var c = this.coefficients.length;
1406        a = new Uint8ClampedArray(c + a);
1407
1408        for (var d = 0; d < c; d++) {
1409          a[d] = this.field.multiply(this.coefficients[d], b);
1410        }
1411
1412        return new w(this.field, a);
1413      }
1414    }, {
1415      key: "evaluateAt",
1416      value: function evaluateAt(a) {
1417        var b = 0;
1418        if (0 === a) return this.getCoefficient(0);
1419        var c = this.coefficients.length;
1420        if (1 === a) return this.coefficients.forEach(function (a) {
1421          b ^= a;
1422        }), b;
1423        b = this.coefficients[0];
1424
1425        for (var d = 1; d < c; d++) {
1426          b = J(this.field.multiply(a, b), this.coefficients[d]);
1427        }
1428
1429        return b;
1430      }
1431    }]);
1432
1433    return w;
1434  }();
1435
1436  var X =
1437  /*#__PURE__*/
1438  function () {
1439    function X(a, b, c) {
1440      _classCallCheck(this, X);
1441
1442      this.primitive = a;
1443      this.size = b;
1444      this.generatorBase = c;
1445      this.expTable = Array(this.size);
1446      this.logTable = Array(this.size);
1447      a = 1;
1448
1449      for (b = 0; b < this.size; b++) {
1450        this.expTable[b] = a, a *= 2, a >= this.size && (a = (a ^ this.primitive) & this.size - 1);
1451      }
1452
1453      for (a = 0; a < this.size - 1; a++) {
1454        this.logTable[this.expTable[a]] = a;
1455      }
1456
1457      this.zero = new w(this, Uint8ClampedArray.from([0]));
1458      this.one = new w(this, Uint8ClampedArray.from([1]));
1459    }
1460
1461    _createClass(X, [{
1462      key: "multiply",
1463      value: function multiply(a, b) {
1464        return 0 === a || 0 === b ? 0 : this.expTable[(this.logTable[a] + this.logTable[b]) % (this.size - 1)];
1465      }
1466    }, {
1467      key: "inverse",
1468      value: function inverse(a) {
1469        if (0 === a) throw Error("Can't invert 0");
1470        return this.expTable[this.size - this.logTable[a] - 1];
1471      }
1472    }, {
1473      key: "buildMonomial",
1474      value: function buildMonomial(a, b) {
1475        if (0 > a) throw Error("Invalid monomial degree less than 0");
1476        if (0 === b) return this.zero;
1477        a = new Uint8ClampedArray(a + 1);
1478        a[0] = b;
1479        return new w(this, a);
1480      }
1481    }, {
1482      key: "log",
1483      value: function log(a) {
1484        if (0 === a) throw Error("Can't take log(0)");
1485        return this.logTable[a];
1486      }
1487    }, {
1488      key: "exp",
1489      value: function exp(a) {
1490        return this.expTable[a];
1491      }
1492    }]);
1493
1494    return X;
1495  }();
1496
1497  var K = [{
1498    infoBits: null,
1499    versionNumber: 1,
1500    alignmentPatternCenters: [],
1501    errorCorrectionLevels: [{
1502      ecCodewordsPerBlock: 7,
1503      ecBlocks: [{
1504        numBlocks: 1,
1505        dataCodewordsPerBlock: 19
1506      }]
1507    }, {
1508      ecCodewordsPerBlock: 10,
1509      ecBlocks: [{
1510        numBlocks: 1,
1511        dataCodewordsPerBlock: 16
1512      }]
1513    }, {
1514      ecCodewordsPerBlock: 13,
1515      ecBlocks: [{
1516        numBlocks: 1,
1517        dataCodewordsPerBlock: 13
1518      }]
1519    }, {
1520      ecCodewordsPerBlock: 17,
1521      ecBlocks: [{
1522        numBlocks: 1,
1523        dataCodewordsPerBlock: 9
1524      }]
1525    }]
1526  }, {
1527    infoBits: null,
1528    versionNumber: 2,
1529    alignmentPatternCenters: [6, 18],
1530    errorCorrectionLevels: [{
1531      ecCodewordsPerBlock: 10,
1532      ecBlocks: [{
1533        numBlocks: 1,
1534        dataCodewordsPerBlock: 34
1535      }]
1536    }, {
1537      ecCodewordsPerBlock: 16,
1538      ecBlocks: [{
1539        numBlocks: 1,
1540        dataCodewordsPerBlock: 28
1541      }]
1542    }, {
1543      ecCodewordsPerBlock: 22,
1544      ecBlocks: [{
1545        numBlocks: 1,
1546        dataCodewordsPerBlock: 22
1547      }]
1548    }, {
1549      ecCodewordsPerBlock: 28,
1550      ecBlocks: [{
1551        numBlocks: 1,
1552        dataCodewordsPerBlock: 16
1553      }]
1554    }]
1555  }, {
1556    infoBits: null,
1557    versionNumber: 3,
1558    alignmentPatternCenters: [6, 22],
1559    errorCorrectionLevels: [{
1560      ecCodewordsPerBlock: 15,
1561      ecBlocks: [{
1562        numBlocks: 1,
1563        dataCodewordsPerBlock: 55
1564      }]
1565    }, {
1566      ecCodewordsPerBlock: 26,
1567      ecBlocks: [{
1568        numBlocks: 1,
1569        dataCodewordsPerBlock: 44
1570      }]
1571    }, {
1572      ecCodewordsPerBlock: 18,
1573      ecBlocks: [{
1574        numBlocks: 2,
1575        dataCodewordsPerBlock: 17
1576      }]
1577    }, {
1578      ecCodewordsPerBlock: 22,
1579      ecBlocks: [{
1580        numBlocks: 2,
1581        dataCodewordsPerBlock: 13
1582      }]
1583    }]
1584  }, {
1585    infoBits: null,
1586    versionNumber: 4,
1587    alignmentPatternCenters: [6, 26],
1588    errorCorrectionLevels: [{
1589      ecCodewordsPerBlock: 20,
1590      ecBlocks: [{
1591        numBlocks: 1,
1592        dataCodewordsPerBlock: 80
1593      }]
1594    }, {
1595      ecCodewordsPerBlock: 18,
1596      ecBlocks: [{
1597        numBlocks: 2,
1598        dataCodewordsPerBlock: 32
1599      }]
1600    }, {
1601      ecCodewordsPerBlock: 26,
1602      ecBlocks: [{
1603        numBlocks: 2,
1604        dataCodewordsPerBlock: 24
1605      }]
1606    }, {
1607      ecCodewordsPerBlock: 16,
1608      ecBlocks: [{
1609        numBlocks: 4,
1610        dataCodewordsPerBlock: 9
1611      }]
1612    }]
1613  }, {
1614    infoBits: null,
1615    versionNumber: 5,
1616    alignmentPatternCenters: [6, 30],
1617    errorCorrectionLevels: [{
1618      ecCodewordsPerBlock: 26,
1619      ecBlocks: [{
1620        numBlocks: 1,
1621        dataCodewordsPerBlock: 108
1622      }]
1623    }, {
1624      ecCodewordsPerBlock: 24,
1625      ecBlocks: [{
1626        numBlocks: 2,
1627        dataCodewordsPerBlock: 43
1628      }]
1629    }, {
1630      ecCodewordsPerBlock: 18,
1631      ecBlocks: [{
1632        numBlocks: 2,
1633        dataCodewordsPerBlock: 15
1634      }, {
1635        numBlocks: 2,
1636        dataCodewordsPerBlock: 16
1637      }]
1638    }, {
1639      ecCodewordsPerBlock: 22,
1640      ecBlocks: [{
1641        numBlocks: 2,
1642        dataCodewordsPerBlock: 11
1643      }, {
1644        numBlocks: 2,
1645        dataCodewordsPerBlock: 12
1646      }]
1647    }]
1648  }, {
1649    infoBits: null,
1650    versionNumber: 6,
1651    alignmentPatternCenters: [6, 34],
1652    errorCorrectionLevels: [{
1653      ecCodewordsPerBlock: 18,
1654      ecBlocks: [{
1655        numBlocks: 2,
1656        dataCodewordsPerBlock: 68
1657      }]
1658    }, {
1659      ecCodewordsPerBlock: 16,
1660      ecBlocks: [{
1661        numBlocks: 4,
1662        dataCodewordsPerBlock: 27
1663      }]
1664    }, {
1665      ecCodewordsPerBlock: 24,
1666      ecBlocks: [{
1667        numBlocks: 4,
1668        dataCodewordsPerBlock: 19
1669      }]
1670    }, {
1671      ecCodewordsPerBlock: 28,
1672      ecBlocks: [{
1673        numBlocks: 4,
1674        dataCodewordsPerBlock: 15
1675      }]
1676    }]
1677  }, {
1678    infoBits: 31892,
1679    versionNumber: 7,
1680    alignmentPatternCenters: [6, 22, 38],
1681    errorCorrectionLevels: [{
1682      ecCodewordsPerBlock: 20,
1683      ecBlocks: [{
1684        numBlocks: 2,
1685        dataCodewordsPerBlock: 78
1686      }]
1687    }, {
1688      ecCodewordsPerBlock: 18,
1689      ecBlocks: [{
1690        numBlocks: 4,
1691        dataCodewordsPerBlock: 31
1692      }]
1693    }, {
1694      ecCodewordsPerBlock: 18,
1695      ecBlocks: [{
1696        numBlocks: 2,
1697        dataCodewordsPerBlock: 14
1698      }, {
1699        numBlocks: 4,
1700        dataCodewordsPerBlock: 15
1701      }]
1702    }, {
1703      ecCodewordsPerBlock: 26,
1704      ecBlocks: [{
1705        numBlocks: 4,
1706        dataCodewordsPerBlock: 13
1707      }, {
1708        numBlocks: 1,
1709        dataCodewordsPerBlock: 14
1710      }]
1711    }]
1712  }, {
1713    infoBits: 34236,
1714    versionNumber: 8,
1715    alignmentPatternCenters: [6, 24, 42],
1716    errorCorrectionLevels: [{
1717      ecCodewordsPerBlock: 24,
1718      ecBlocks: [{
1719        numBlocks: 2,
1720        dataCodewordsPerBlock: 97
1721      }]
1722    }, {
1723      ecCodewordsPerBlock: 22,
1724      ecBlocks: [{
1725        numBlocks: 2,
1726        dataCodewordsPerBlock: 38
1727      }, {
1728        numBlocks: 2,
1729        dataCodewordsPerBlock: 39
1730      }]
1731    }, {
1732      ecCodewordsPerBlock: 22,
1733      ecBlocks: [{
1734        numBlocks: 4,
1735        dataCodewordsPerBlock: 18
1736      }, {
1737        numBlocks: 2,
1738        dataCodewordsPerBlock: 19
1739      }]
1740    }, {
1741      ecCodewordsPerBlock: 26,
1742      ecBlocks: [{
1743        numBlocks: 4,
1744        dataCodewordsPerBlock: 14
1745      }, {
1746        numBlocks: 2,
1747        dataCodewordsPerBlock: 15
1748      }]
1749    }]
1750  }, {
1751    infoBits: 39577,
1752    versionNumber: 9,
1753    alignmentPatternCenters: [6, 26, 46],
1754    errorCorrectionLevels: [{
1755      ecCodewordsPerBlock: 30,
1756      ecBlocks: [{
1757        numBlocks: 2,
1758        dataCodewordsPerBlock: 116
1759      }]
1760    }, {
1761      ecCodewordsPerBlock: 22,
1762      ecBlocks: [{
1763        numBlocks: 3,
1764        dataCodewordsPerBlock: 36
1765      }, {
1766        numBlocks: 2,
1767        dataCodewordsPerBlock: 37
1768      }]
1769    }, {
1770      ecCodewordsPerBlock: 20,
1771      ecBlocks: [{
1772        numBlocks: 4,
1773        dataCodewordsPerBlock: 16
1774      }, {
1775        numBlocks: 4,
1776        dataCodewordsPerBlock: 17
1777      }]
1778    }, {
1779      ecCodewordsPerBlock: 24,
1780      ecBlocks: [{
1781        numBlocks: 4,
1782        dataCodewordsPerBlock: 12
1783      }, {
1784        numBlocks: 4,
1785        dataCodewordsPerBlock: 13
1786      }]
1787    }]
1788  }, {
1789    infoBits: 42195,
1790    versionNumber: 10,
1791    alignmentPatternCenters: [6, 28, 50],
1792    errorCorrectionLevels: [{
1793      ecCodewordsPerBlock: 18,
1794      ecBlocks: [{
1795        numBlocks: 2,
1796        dataCodewordsPerBlock: 68
1797      }, {
1798        numBlocks: 2,
1799        dataCodewordsPerBlock: 69
1800      }]
1801    }, {
1802      ecCodewordsPerBlock: 26,
1803      ecBlocks: [{
1804        numBlocks: 4,
1805        dataCodewordsPerBlock: 43
1806      }, {
1807        numBlocks: 1,
1808        dataCodewordsPerBlock: 44
1809      }]
1810    }, {
1811      ecCodewordsPerBlock: 24,
1812      ecBlocks: [{
1813        numBlocks: 6,
1814        dataCodewordsPerBlock: 19
1815      }, {
1816        numBlocks: 2,
1817        dataCodewordsPerBlock: 20
1818      }]
1819    }, {
1820      ecCodewordsPerBlock: 28,
1821      ecBlocks: [{
1822        numBlocks: 6,
1823        dataCodewordsPerBlock: 15
1824      }, {
1825        numBlocks: 2,
1826        dataCodewordsPerBlock: 16
1827      }]
1828    }]
1829  }, {
1830    infoBits: 48118,
1831    versionNumber: 11,
1832    alignmentPatternCenters: [6, 30, 54],
1833    errorCorrectionLevels: [{
1834      ecCodewordsPerBlock: 20,
1835      ecBlocks: [{
1836        numBlocks: 4,
1837        dataCodewordsPerBlock: 81
1838      }]
1839    }, {
1840      ecCodewordsPerBlock: 30,
1841      ecBlocks: [{
1842        numBlocks: 1,
1843        dataCodewordsPerBlock: 50
1844      }, {
1845        numBlocks: 4,
1846        dataCodewordsPerBlock: 51
1847      }]
1848    }, {
1849      ecCodewordsPerBlock: 28,
1850      ecBlocks: [{
1851        numBlocks: 4,
1852        dataCodewordsPerBlock: 22
1853      }, {
1854        numBlocks: 4,
1855        dataCodewordsPerBlock: 23
1856      }]
1857    }, {
1858      ecCodewordsPerBlock: 24,
1859      ecBlocks: [{
1860        numBlocks: 3,
1861        dataCodewordsPerBlock: 12
1862      }, {
1863        numBlocks: 8,
1864        dataCodewordsPerBlock: 13
1865      }]
1866    }]
1867  }, {
1868    infoBits: 51042,
1869    versionNumber: 12,
1870    alignmentPatternCenters: [6, 32, 58],
1871    errorCorrectionLevels: [{
1872      ecCodewordsPerBlock: 24,
1873      ecBlocks: [{
1874        numBlocks: 2,
1875        dataCodewordsPerBlock: 92
1876      }, {
1877        numBlocks: 2,
1878        dataCodewordsPerBlock: 93
1879      }]
1880    }, {
1881      ecCodewordsPerBlock: 22,
1882      ecBlocks: [{
1883        numBlocks: 6,
1884        dataCodewordsPerBlock: 36
1885      }, {
1886        numBlocks: 2,
1887        dataCodewordsPerBlock: 37
1888      }]
1889    }, {
1890      ecCodewordsPerBlock: 26,
1891      ecBlocks: [{
1892        numBlocks: 4,
1893        dataCodewordsPerBlock: 20
1894      }, {
1895        numBlocks: 6,
1896        dataCodewordsPerBlock: 21
1897      }]
1898    }, {
1899      ecCodewordsPerBlock: 28,
1900      ecBlocks: [{
1901        numBlocks: 7,
1902        dataCodewordsPerBlock: 14
1903      }, {
1904        numBlocks: 4,
1905        dataCodewordsPerBlock: 15
1906      }]
1907    }]
1908  }, {
1909    infoBits: 55367,
1910    versionNumber: 13,
1911    alignmentPatternCenters: [6, 34, 62],
1912    errorCorrectionLevels: [{
1913      ecCodewordsPerBlock: 26,
1914      ecBlocks: [{
1915        numBlocks: 4,
1916        dataCodewordsPerBlock: 107
1917      }]
1918    }, {
1919      ecCodewordsPerBlock: 22,
1920      ecBlocks: [{
1921        numBlocks: 8,
1922        dataCodewordsPerBlock: 37
1923      }, {
1924        numBlocks: 1,
1925        dataCodewordsPerBlock: 38
1926      }]
1927    }, {
1928      ecCodewordsPerBlock: 24,
1929      ecBlocks: [{
1930        numBlocks: 8,
1931        dataCodewordsPerBlock: 20
1932      }, {
1933        numBlocks: 4,
1934        dataCodewordsPerBlock: 21
1935      }]
1936    }, {
1937      ecCodewordsPerBlock: 22,
1938      ecBlocks: [{
1939        numBlocks: 12,
1940        dataCodewordsPerBlock: 11
1941      }, {
1942        numBlocks: 4,
1943        dataCodewordsPerBlock: 12
1944      }]
1945    }]
1946  }, {
1947    infoBits: 58893,
1948    versionNumber: 14,
1949    alignmentPatternCenters: [6, 26, 46, 66],
1950    errorCorrectionLevels: [{
1951      ecCodewordsPerBlock: 30,
1952      ecBlocks: [{
1953        numBlocks: 3,
1954        dataCodewordsPerBlock: 115
1955      }, {
1956        numBlocks: 1,
1957        dataCodewordsPerBlock: 116
1958      }]
1959    }, {
1960      ecCodewordsPerBlock: 24,
1961      ecBlocks: [{
1962        numBlocks: 4,
1963        dataCodewordsPerBlock: 40
1964      }, {
1965        numBlocks: 5,
1966        dataCodewordsPerBlock: 41
1967      }]
1968    }, {
1969      ecCodewordsPerBlock: 20,
1970      ecBlocks: [{
1971        numBlocks: 11,
1972        dataCodewordsPerBlock: 16
1973      }, {
1974        numBlocks: 5,
1975        dataCodewordsPerBlock: 17
1976      }]
1977    }, {
1978      ecCodewordsPerBlock: 24,
1979      ecBlocks: [{
1980        numBlocks: 11,
1981        dataCodewordsPerBlock: 12
1982      }, {
1983        numBlocks: 5,
1984        dataCodewordsPerBlock: 13
1985      }]
1986    }]
1987  }, {
1988    infoBits: 63784,
1989    versionNumber: 15,
1990    alignmentPatternCenters: [6, 26, 48, 70],
1991    errorCorrectionLevels: [{
1992      ecCodewordsPerBlock: 22,
1993      ecBlocks: [{
1994        numBlocks: 5,
1995        dataCodewordsPerBlock: 87
1996      }, {
1997        numBlocks: 1,
1998        dataCodewordsPerBlock: 88
1999      }]
2000    }, {
2001      ecCodewordsPerBlock: 24,
2002      ecBlocks: [{
2003        numBlocks: 5,
2004        dataCodewordsPerBlock: 41
2005      }, {
2006        numBlocks: 5,
2007        dataCodewordsPerBlock: 42
2008      }]
2009    }, {
2010      ecCodewordsPerBlock: 30,
2011      ecBlocks: [{
2012        numBlocks: 5,
2013        dataCodewordsPerBlock: 24
2014      }, {
2015        numBlocks: 7,
2016        dataCodewordsPerBlock: 25
2017      }]
2018    }, {
2019      ecCodewordsPerBlock: 24,
2020      ecBlocks: [{
2021        numBlocks: 11,
2022        dataCodewordsPerBlock: 12
2023      }, {
2024        numBlocks: 7,
2025        dataCodewordsPerBlock: 13
2026      }]
2027    }]
2028  }, {
2029    infoBits: 68472,
2030    versionNumber: 16,
2031    alignmentPatternCenters: [6, 26, 50, 74],
2032    errorCorrectionLevels: [{
2033      ecCodewordsPerBlock: 24,
2034      ecBlocks: [{
2035        numBlocks: 5,
2036        dataCodewordsPerBlock: 98
2037      }, {
2038        numBlocks: 1,
2039        dataCodewordsPerBlock: 99
2040      }]
2041    }, {
2042      ecCodewordsPerBlock: 28,
2043      ecBlocks: [{
2044        numBlocks: 7,
2045        dataCodewordsPerBlock: 45
2046      }, {
2047        numBlocks: 3,
2048        dataCodewordsPerBlock: 46
2049      }]
2050    }, {
2051      ecCodewordsPerBlock: 24,
2052      ecBlocks: [{
2053        numBlocks: 15,
2054        dataCodewordsPerBlock: 19
2055      }, {
2056        numBlocks: 2,
2057        dataCodewordsPerBlock: 20
2058      }]
2059    }, {
2060      ecCodewordsPerBlock: 30,
2061      ecBlocks: [{
2062        numBlocks: 3,
2063        dataCodewordsPerBlock: 15
2064      }, {
2065        numBlocks: 13,
2066        dataCodewordsPerBlock: 16
2067      }]
2068    }]
2069  }, {
2070    infoBits: 70749,
2071    versionNumber: 17,
2072    alignmentPatternCenters: [6, 30, 54, 78],
2073    errorCorrectionLevels: [{
2074      ecCodewordsPerBlock: 28,
2075      ecBlocks: [{
2076        numBlocks: 1,
2077        dataCodewordsPerBlock: 107
2078      }, {
2079        numBlocks: 5,
2080        dataCodewordsPerBlock: 108
2081      }]
2082    }, {
2083      ecCodewordsPerBlock: 28,
2084      ecBlocks: [{
2085        numBlocks: 10,
2086        dataCodewordsPerBlock: 46
2087      }, {
2088        numBlocks: 1,
2089        dataCodewordsPerBlock: 47
2090      }]
2091    }, {
2092      ecCodewordsPerBlock: 28,
2093      ecBlocks: [{
2094        numBlocks: 1,
2095        dataCodewordsPerBlock: 22
2096      }, {
2097        numBlocks: 15,
2098        dataCodewordsPerBlock: 23
2099      }]
2100    }, {
2101      ecCodewordsPerBlock: 28,
2102      ecBlocks: [{
2103        numBlocks: 2,
2104        dataCodewordsPerBlock: 14
2105      }, {
2106        numBlocks: 17,
2107        dataCodewordsPerBlock: 15
2108      }]
2109    }]
2110  }, {
2111    infoBits: 76311,
2112    versionNumber: 18,
2113    alignmentPatternCenters: [6, 30, 56, 82],
2114    errorCorrectionLevels: [{
2115      ecCodewordsPerBlock: 30,
2116      ecBlocks: [{
2117        numBlocks: 5,
2118        dataCodewordsPerBlock: 120
2119      }, {
2120        numBlocks: 1,
2121        dataCodewordsPerBlock: 121
2122      }]
2123    }, {
2124      ecCodewordsPerBlock: 26,
2125      ecBlocks: [{
2126        numBlocks: 9,
2127        dataCodewordsPerBlock: 43
2128      }, {
2129        numBlocks: 4,
2130        dataCodewordsPerBlock: 44
2131      }]
2132    }, {
2133      ecCodewordsPerBlock: 28,
2134      ecBlocks: [{
2135        numBlocks: 17,
2136        dataCodewordsPerBlock: 22
2137      }, {
2138        numBlocks: 1,
2139        dataCodewordsPerBlock: 23
2140      }]
2141    }, {
2142      ecCodewordsPerBlock: 28,
2143      ecBlocks: [{
2144        numBlocks: 2,
2145        dataCodewordsPerBlock: 14
2146      }, {
2147        numBlocks: 19,
2148        dataCodewordsPerBlock: 15
2149      }]
2150    }]
2151  }, {
2152    infoBits: 79154,
2153    versionNumber: 19,
2154    alignmentPatternCenters: [6, 30, 58, 86],
2155    errorCorrectionLevels: [{
2156      ecCodewordsPerBlock: 28,
2157      ecBlocks: [{
2158        numBlocks: 3,
2159        dataCodewordsPerBlock: 113
2160      }, {
2161        numBlocks: 4,
2162        dataCodewordsPerBlock: 114
2163      }]
2164    }, {
2165      ecCodewordsPerBlock: 26,
2166      ecBlocks: [{
2167        numBlocks: 3,
2168        dataCodewordsPerBlock: 44
2169      }, {
2170        numBlocks: 11,
2171        dataCodewordsPerBlock: 45
2172      }]
2173    }, {
2174      ecCodewordsPerBlock: 26,
2175      ecBlocks: [{
2176        numBlocks: 17,
2177        dataCodewordsPerBlock: 21
2178      }, {
2179        numBlocks: 4,
2180        dataCodewordsPerBlock: 22
2181      }]
2182    }, {
2183      ecCodewordsPerBlock: 26,
2184      ecBlocks: [{
2185        numBlocks: 9,
2186        dataCodewordsPerBlock: 13
2187      }, {
2188        numBlocks: 16,
2189        dataCodewordsPerBlock: 14
2190      }]
2191    }]
2192  }, {
2193    infoBits: 84390,
2194    versionNumber: 20,
2195    alignmentPatternCenters: [6, 34, 62, 90],
2196    errorCorrectionLevels: [{
2197      ecCodewordsPerBlock: 28,
2198      ecBlocks: [{
2199        numBlocks: 3,
2200        dataCodewordsPerBlock: 107
2201      }, {
2202        numBlocks: 5,
2203        dataCodewordsPerBlock: 108
2204      }]
2205    }, {
2206      ecCodewordsPerBlock: 26,
2207      ecBlocks: [{
2208        numBlocks: 3,
2209        dataCodewordsPerBlock: 41
2210      }, {
2211        numBlocks: 13,
2212        dataCodewordsPerBlock: 42
2213      }]
2214    }, {
2215      ecCodewordsPerBlock: 30,
2216      ecBlocks: [{
2217        numBlocks: 15,
2218        dataCodewordsPerBlock: 24
2219      }, {
2220        numBlocks: 5,
2221        dataCodewordsPerBlock: 25
2222      }]
2223    }, {
2224      ecCodewordsPerBlock: 28,
2225      ecBlocks: [{
2226        numBlocks: 15,
2227        dataCodewordsPerBlock: 15
2228      }, {
2229        numBlocks: 10,
2230        dataCodewordsPerBlock: 16
2231      }]
2232    }]
2233  }, {
2234    infoBits: 87683,
2235    versionNumber: 21,
2236    alignmentPatternCenters: [6, 28, 50, 72, 94],
2237    errorCorrectionLevels: [{
2238      ecCodewordsPerBlock: 28,
2239      ecBlocks: [{
2240        numBlocks: 4,
2241        dataCodewordsPerBlock: 116
2242      }, {
2243        numBlocks: 4,
2244        dataCodewordsPerBlock: 117
2245      }]
2246    }, {
2247      ecCodewordsPerBlock: 26,
2248      ecBlocks: [{
2249        numBlocks: 17,
2250        dataCodewordsPerBlock: 42
2251      }]
2252    }, {
2253      ecCodewordsPerBlock: 28,
2254      ecBlocks: [{
2255        numBlocks: 17,
2256        dataCodewordsPerBlock: 22
2257      }, {
2258        numBlocks: 6,
2259        dataCodewordsPerBlock: 23
2260      }]
2261    }, {
2262      ecCodewordsPerBlock: 30,
2263      ecBlocks: [{
2264        numBlocks: 19,
2265        dataCodewordsPerBlock: 16
2266      }, {
2267        numBlocks: 6,
2268        dataCodewordsPerBlock: 17
2269      }]
2270    }]
2271  }, {
2272    infoBits: 92361,
2273    versionNumber: 22,
2274    alignmentPatternCenters: [6, 26, 50, 74, 98],
2275    errorCorrectionLevels: [{
2276      ecCodewordsPerBlock: 28,
2277      ecBlocks: [{
2278        numBlocks: 2,
2279        dataCodewordsPerBlock: 111
2280      }, {
2281        numBlocks: 7,
2282        dataCodewordsPerBlock: 112
2283      }]
2284    }, {
2285      ecCodewordsPerBlock: 28,
2286      ecBlocks: [{
2287        numBlocks: 17,
2288        dataCodewordsPerBlock: 46
2289      }]
2290    }, {
2291      ecCodewordsPerBlock: 30,
2292      ecBlocks: [{
2293        numBlocks: 7,
2294        dataCodewordsPerBlock: 24
2295      }, {
2296        numBlocks: 16,
2297        dataCodewordsPerBlock: 25
2298      }]
2299    }, {
2300      ecCodewordsPerBlock: 24,
2301      ecBlocks: [{
2302        numBlocks: 34,
2303        dataCodewordsPerBlock: 13
2304      }]
2305    }]
2306  }, {
2307    infoBits: 96236,
2308    versionNumber: 23,
2309    alignmentPatternCenters: [6, 30, 54, 74, 102],
2310    errorCorrectionLevels: [{
2311      ecCodewordsPerBlock: 30,
2312      ecBlocks: [{
2313        numBlocks: 4,
2314        dataCodewordsPerBlock: 121
2315      }, {
2316        numBlocks: 5,
2317        dataCodewordsPerBlock: 122
2318      }]
2319    }, {
2320      ecCodewordsPerBlock: 28,
2321      ecBlocks: [{
2322        numBlocks: 4,
2323        dataCodewordsPerBlock: 47
2324      }, {
2325        numBlocks: 14,
2326        dataCodewordsPerBlock: 48
2327      }]
2328    }, {
2329      ecCodewordsPerBlock: 30,
2330      ecBlocks: [{
2331        numBlocks: 11,
2332        dataCodewordsPerBlock: 24
2333      }, {
2334        numBlocks: 14,
2335        dataCodewordsPerBlock: 25
2336      }]
2337    }, {
2338      ecCodewordsPerBlock: 30,
2339      ecBlocks: [{
2340        numBlocks: 16,
2341        dataCodewordsPerBlock: 15
2342      }, {
2343        numBlocks: 14,
2344        dataCodewordsPerBlock: 16
2345      }]
2346    }]
2347  }, {
2348    infoBits: 102084,
2349    versionNumber: 24,
2350    alignmentPatternCenters: [6, 28, 54, 80, 106],
2351    errorCorrectionLevels: [{
2352      ecCodewordsPerBlock: 30,
2353      ecBlocks: [{
2354        numBlocks: 6,
2355        dataCodewordsPerBlock: 117
2356      }, {
2357        numBlocks: 4,
2358        dataCodewordsPerBlock: 118
2359      }]
2360    }, {
2361      ecCodewordsPerBlock: 28,
2362      ecBlocks: [{
2363        numBlocks: 6,
2364        dataCodewordsPerBlock: 45
2365      }, {
2366        numBlocks: 14,
2367        dataCodewordsPerBlock: 46
2368      }]
2369    }, {
2370      ecCodewordsPerBlock: 30,
2371      ecBlocks: [{
2372        numBlocks: 11,
2373        dataCodewordsPerBlock: 24
2374      }, {
2375        numBlocks: 16,
2376        dataCodewordsPerBlock: 25
2377      }]
2378    }, {
2379      ecCodewordsPerBlock: 30,
2380      ecBlocks: [{
2381        numBlocks: 30,
2382        dataCodewordsPerBlock: 16
2383      }, {
2384        numBlocks: 2,
2385        dataCodewordsPerBlock: 17
2386      }]
2387    }]
2388  }, {
2389    infoBits: 102881,
2390    versionNumber: 25,
2391    alignmentPatternCenters: [6, 32, 58, 84, 110],
2392    errorCorrectionLevels: [{
2393      ecCodewordsPerBlock: 26,
2394      ecBlocks: [{
2395        numBlocks: 8,
2396        dataCodewordsPerBlock: 106
2397      }, {
2398        numBlocks: 4,
2399        dataCodewordsPerBlock: 107
2400      }]
2401    }, {
2402      ecCodewordsPerBlock: 28,
2403      ecBlocks: [{
2404        numBlocks: 8,
2405        dataCodewordsPerBlock: 47
2406      }, {
2407        numBlocks: 13,
2408        dataCodewordsPerBlock: 48
2409      }]
2410    }, {
2411      ecCodewordsPerBlock: 30,
2412      ecBlocks: [{
2413        numBlocks: 7,
2414        dataCodewordsPerBlock: 24
2415      }, {
2416        numBlocks: 22,
2417        dataCodewordsPerBlock: 25
2418      }]
2419    }, {
2420      ecCodewordsPerBlock: 30,
2421      ecBlocks: [{
2422        numBlocks: 22,
2423        dataCodewordsPerBlock: 15
2424      }, {
2425        numBlocks: 13,
2426        dataCodewordsPerBlock: 16
2427      }]
2428    }]
2429  }, {
2430    infoBits: 110507,
2431    versionNumber: 26,
2432    alignmentPatternCenters: [6, 30, 58, 86, 114],
2433    errorCorrectionLevels: [{
2434      ecCodewordsPerBlock: 28,
2435      ecBlocks: [{
2436        numBlocks: 10,
2437        dataCodewordsPerBlock: 114
2438      }, {
2439        numBlocks: 2,
2440        dataCodewordsPerBlock: 115
2441      }]
2442    }, {
2443      ecCodewordsPerBlock: 28,
2444      ecBlocks: [{
2445        numBlocks: 19,
2446        dataCodewordsPerBlock: 46
2447      }, {
2448        numBlocks: 4,
2449        dataCodewordsPerBlock: 47
2450      }]
2451    }, {
2452      ecCodewordsPerBlock: 28,
2453      ecBlocks: [{
2454        numBlocks: 28,
2455        dataCodewordsPerBlock: 22
2456      }, {
2457        numBlocks: 6,
2458        dataCodewordsPerBlock: 23
2459      }]
2460    }, {
2461      ecCodewordsPerBlock: 30,
2462      ecBlocks: [{
2463        numBlocks: 33,
2464        dataCodewordsPerBlock: 16
2465      }, {
2466        numBlocks: 4,
2467        dataCodewordsPerBlock: 17
2468      }]
2469    }]
2470  }, {
2471    infoBits: 110734,
2472    versionNumber: 27,
2473    alignmentPatternCenters: [6, 34, 62, 90, 118],
2474    errorCorrectionLevels: [{
2475      ecCodewordsPerBlock: 30,
2476      ecBlocks: [{
2477        numBlocks: 8,
2478        dataCodewordsPerBlock: 122
2479      }, {
2480        numBlocks: 4,
2481        dataCodewordsPerBlock: 123
2482      }]
2483    }, {
2484      ecCodewordsPerBlock: 28,
2485      ecBlocks: [{
2486        numBlocks: 22,
2487        dataCodewordsPerBlock: 45
2488      }, {
2489        numBlocks: 3,
2490        dataCodewordsPerBlock: 46
2491      }]
2492    }, {
2493      ecCodewordsPerBlock: 30,
2494      ecBlocks: [{
2495        numBlocks: 8,
2496        dataCodewordsPerBlock: 23
2497      }, {
2498        numBlocks: 26,
2499        dataCodewordsPerBlock: 24
2500      }]
2501    }, {
2502      ecCodewordsPerBlock: 30,
2503      ecBlocks: [{
2504        numBlocks: 12,
2505        dataCodewordsPerBlock: 15
2506      }, {
2507        numBlocks: 28,
2508        dataCodewordsPerBlock: 16
2509      }]
2510    }]
2511  }, {
2512    infoBits: 117786,
2513    versionNumber: 28,
2514    alignmentPatternCenters: [6, 26, 50, 74, 98, 122],
2515    errorCorrectionLevels: [{
2516      ecCodewordsPerBlock: 30,
2517      ecBlocks: [{
2518        numBlocks: 3,
2519        dataCodewordsPerBlock: 117
2520      }, {
2521        numBlocks: 10,
2522        dataCodewordsPerBlock: 118
2523      }]
2524    }, {
2525      ecCodewordsPerBlock: 28,
2526      ecBlocks: [{
2527        numBlocks: 3,
2528        dataCodewordsPerBlock: 45
2529      }, {
2530        numBlocks: 23,
2531        dataCodewordsPerBlock: 46
2532      }]
2533    }, {
2534      ecCodewordsPerBlock: 30,
2535      ecBlocks: [{
2536        numBlocks: 4,
2537        dataCodewordsPerBlock: 24
2538      }, {
2539        numBlocks: 31,
2540        dataCodewordsPerBlock: 25
2541      }]
2542    }, {
2543      ecCodewordsPerBlock: 30,
2544      ecBlocks: [{
2545        numBlocks: 11,
2546        dataCodewordsPerBlock: 15
2547      }, {
2548        numBlocks: 31,
2549        dataCodewordsPerBlock: 16
2550      }]
2551    }]
2552  }, {
2553    infoBits: 119615,
2554    versionNumber: 29,
2555    alignmentPatternCenters: [6, 30, 54, 78, 102, 126],
2556    errorCorrectionLevels: [{
2557      ecCodewordsPerBlock: 30,
2558      ecBlocks: [{
2559        numBlocks: 7,
2560        dataCodewordsPerBlock: 116
2561      }, {
2562        numBlocks: 7,
2563        dataCodewordsPerBlock: 117
2564      }]
2565    }, {
2566      ecCodewordsPerBlock: 28,
2567      ecBlocks: [{
2568        numBlocks: 21,
2569        dataCodewordsPerBlock: 45
2570      }, {
2571        numBlocks: 7,
2572        dataCodewordsPerBlock: 46
2573      }]
2574    }, {
2575      ecCodewordsPerBlock: 30,
2576      ecBlocks: [{
2577        numBlocks: 1,
2578        dataCodewordsPerBlock: 23
2579      }, {
2580        numBlocks: 37,
2581        dataCodewordsPerBlock: 24
2582      }]
2583    }, {
2584      ecCodewordsPerBlock: 30,
2585      ecBlocks: [{
2586        numBlocks: 19,
2587        dataCodewordsPerBlock: 15
2588      }, {
2589        numBlocks: 26,
2590        dataCodewordsPerBlock: 16
2591      }]
2592    }]
2593  }, {
2594    infoBits: 126325,
2595    versionNumber: 30,
2596    alignmentPatternCenters: [6, 26, 52, 78, 104, 130],
2597    errorCorrectionLevels: [{
2598      ecCodewordsPerBlock: 30,
2599      ecBlocks: [{
2600        numBlocks: 5,
2601        dataCodewordsPerBlock: 115
2602      }, {
2603        numBlocks: 10,
2604        dataCodewordsPerBlock: 116
2605      }]
2606    }, {
2607      ecCodewordsPerBlock: 28,
2608      ecBlocks: [{
2609        numBlocks: 19,
2610        dataCodewordsPerBlock: 47
2611      }, {
2612        numBlocks: 10,
2613        dataCodewordsPerBlock: 48
2614      }]
2615    }, {
2616      ecCodewordsPerBlock: 30,
2617      ecBlocks: [{
2618        numBlocks: 15,
2619        dataCodewordsPerBlock: 24
2620      }, {
2621        numBlocks: 25,
2622        dataCodewordsPerBlock: 25
2623      }]
2624    }, {
2625      ecCodewordsPerBlock: 30,
2626      ecBlocks: [{
2627        numBlocks: 23,
2628        dataCodewordsPerBlock: 15
2629      }, {
2630        numBlocks: 25,
2631        dataCodewordsPerBlock: 16
2632      }]
2633    }]
2634  }, {
2635    infoBits: 127568,
2636    versionNumber: 31,
2637    alignmentPatternCenters: [6, 30, 56, 82, 108, 134],
2638    errorCorrectionLevels: [{
2639      ecCodewordsPerBlock: 30,
2640      ecBlocks: [{
2641        numBlocks: 13,
2642        dataCodewordsPerBlock: 115
2643      }, {
2644        numBlocks: 3,
2645        dataCodewordsPerBlock: 116
2646      }]
2647    }, {
2648      ecCodewordsPerBlock: 28,
2649      ecBlocks: [{
2650        numBlocks: 2,
2651        dataCodewordsPerBlock: 46
2652      }, {
2653        numBlocks: 29,
2654        dataCodewordsPerBlock: 47
2655      }]
2656    }, {
2657      ecCodewordsPerBlock: 30,
2658      ecBlocks: [{
2659        numBlocks: 42,
2660        dataCodewordsPerBlock: 24
2661      }, {
2662        numBlocks: 1,
2663        dataCodewordsPerBlock: 25
2664      }]
2665    }, {
2666      ecCodewordsPerBlock: 30,
2667      ecBlocks: [{
2668        numBlocks: 23,
2669        dataCodewordsPerBlock: 15
2670      }, {
2671        numBlocks: 28,
2672        dataCodewordsPerBlock: 16
2673      }]
2674    }]
2675  }, {
2676    infoBits: 133589,
2677    versionNumber: 32,
2678    alignmentPatternCenters: [6, 34, 60, 86, 112, 138],
2679    errorCorrectionLevels: [{
2680      ecCodewordsPerBlock: 30,
2681      ecBlocks: [{
2682        numBlocks: 17,
2683        dataCodewordsPerBlock: 115
2684      }]
2685    }, {
2686      ecCodewordsPerBlock: 28,
2687      ecBlocks: [{
2688        numBlocks: 10,
2689        dataCodewordsPerBlock: 46
2690      }, {
2691        numBlocks: 23,
2692        dataCodewordsPerBlock: 47
2693      }]
2694    }, {
2695      ecCodewordsPerBlock: 30,
2696      ecBlocks: [{
2697        numBlocks: 10,
2698        dataCodewordsPerBlock: 24
2699      }, {
2700        numBlocks: 35,
2701        dataCodewordsPerBlock: 25
2702      }]
2703    }, {
2704      ecCodewordsPerBlock: 30,
2705      ecBlocks: [{
2706        numBlocks: 19,
2707        dataCodewordsPerBlock: 15
2708      }, {
2709        numBlocks: 35,
2710        dataCodewordsPerBlock: 16
2711      }]
2712    }]
2713  }, {
2714    infoBits: 136944,
2715    versionNumber: 33,
2716    alignmentPatternCenters: [6, 30, 58, 86, 114, 142],
2717    errorCorrectionLevels: [{
2718      ecCodewordsPerBlock: 30,
2719      ecBlocks: [{
2720        numBlocks: 17,
2721        dataCodewordsPerBlock: 115
2722      }, {
2723        numBlocks: 1,
2724        dataCodewordsPerBlock: 116
2725      }]
2726    }, {
2727      ecCodewordsPerBlock: 28,
2728      ecBlocks: [{
2729        numBlocks: 14,
2730        dataCodewordsPerBlock: 46
2731      }, {
2732        numBlocks: 21,
2733        dataCodewordsPerBlock: 47
2734      }]
2735    }, {
2736      ecCodewordsPerBlock: 30,
2737      ecBlocks: [{
2738        numBlocks: 29,
2739        dataCodewordsPerBlock: 24
2740      }, {
2741        numBlocks: 19,
2742        dataCodewordsPerBlock: 25
2743      }]
2744    }, {
2745      ecCodewordsPerBlock: 30,
2746      ecBlocks: [{
2747        numBlocks: 11,
2748        dataCodewordsPerBlock: 15
2749      }, {
2750        numBlocks: 46,
2751        dataCodewordsPerBlock: 16
2752      }]
2753    }]
2754  }, {
2755    infoBits: 141498,
2756    versionNumber: 34,
2757    alignmentPatternCenters: [6, 34, 62, 90, 118, 146],
2758    errorCorrectionLevels: [{
2759      ecCodewordsPerBlock: 30,
2760      ecBlocks: [{
2761        numBlocks: 13,
2762        dataCodewordsPerBlock: 115
2763      }, {
2764        numBlocks: 6,
2765        dataCodewordsPerBlock: 116
2766      }]
2767    }, {
2768      ecCodewordsPerBlock: 28,
2769      ecBlocks: [{
2770        numBlocks: 14,
2771        dataCodewordsPerBlock: 46
2772      }, {
2773        numBlocks: 23,
2774        dataCodewordsPerBlock: 47
2775      }]
2776    }, {
2777      ecCodewordsPerBlock: 30,
2778      ecBlocks: [{
2779        numBlocks: 44,
2780        dataCodewordsPerBlock: 24
2781      }, {
2782        numBlocks: 7,
2783        dataCodewordsPerBlock: 25
2784      }]
2785    }, {
2786      ecCodewordsPerBlock: 30,
2787      ecBlocks: [{
2788        numBlocks: 59,
2789        dataCodewordsPerBlock: 16
2790      }, {
2791        numBlocks: 1,
2792        dataCodewordsPerBlock: 17
2793      }]
2794    }]
2795  }, {
2796    infoBits: 145311,
2797    versionNumber: 35,
2798    alignmentPatternCenters: [6, 30, 54, 78, 102, 126, 150],
2799    errorCorrectionLevels: [{
2800      ecCodewordsPerBlock: 30,
2801      ecBlocks: [{
2802        numBlocks: 12,
2803        dataCodewordsPerBlock: 121
2804      }, {
2805        numBlocks: 7,
2806        dataCodewordsPerBlock: 122
2807      }]
2808    }, {
2809      ecCodewordsPerBlock: 28,
2810      ecBlocks: [{
2811        numBlocks: 12,
2812        dataCodewordsPerBlock: 47
2813      }, {
2814        numBlocks: 26,
2815        dataCodewordsPerBlock: 48
2816      }]
2817    }, {
2818      ecCodewordsPerBlock: 30,
2819      ecBlocks: [{
2820        numBlocks: 39,
2821        dataCodewordsPerBlock: 24
2822      }, {
2823        numBlocks: 14,
2824        dataCodewordsPerBlock: 25
2825      }]
2826    }, {
2827      ecCodewordsPerBlock: 30,
2828      ecBlocks: [{
2829        numBlocks: 22,
2830        dataCodewordsPerBlock: 15
2831      }, {
2832        numBlocks: 41,
2833        dataCodewordsPerBlock: 16
2834      }]
2835    }]
2836  }, {
2837    infoBits: 150283,
2838    versionNumber: 36,
2839    alignmentPatternCenters: [6, 24, 50, 76, 102, 128, 154],
2840    errorCorrectionLevels: [{
2841      ecCodewordsPerBlock: 30,
2842      ecBlocks: [{
2843        numBlocks: 6,
2844        dataCodewordsPerBlock: 121
2845      }, {
2846        numBlocks: 14,
2847        dataCodewordsPerBlock: 122
2848      }]
2849    }, {
2850      ecCodewordsPerBlock: 28,
2851      ecBlocks: [{
2852        numBlocks: 6,
2853        dataCodewordsPerBlock: 47
2854      }, {
2855        numBlocks: 34,
2856        dataCodewordsPerBlock: 48
2857      }]
2858    }, {
2859      ecCodewordsPerBlock: 30,
2860      ecBlocks: [{
2861        numBlocks: 46,
2862        dataCodewordsPerBlock: 24
2863      }, {
2864        numBlocks: 10,
2865        dataCodewordsPerBlock: 25
2866      }]
2867    }, {
2868      ecCodewordsPerBlock: 30,
2869      ecBlocks: [{
2870        numBlocks: 2,
2871        dataCodewordsPerBlock: 15
2872      }, {
2873        numBlocks: 64,
2874        dataCodewordsPerBlock: 16
2875      }]
2876    }]
2877  }, {
2878    infoBits: 152622,
2879    versionNumber: 37,
2880    alignmentPatternCenters: [6, 28, 54, 80, 106, 132, 158],
2881    errorCorrectionLevels: [{
2882      ecCodewordsPerBlock: 30,
2883      ecBlocks: [{
2884        numBlocks: 17,
2885        dataCodewordsPerBlock: 122
2886      }, {
2887        numBlocks: 4,
2888        dataCodewordsPerBlock: 123
2889      }]
2890    }, {
2891      ecCodewordsPerBlock: 28,
2892      ecBlocks: [{
2893        numBlocks: 29,
2894        dataCodewordsPerBlock: 46
2895      }, {
2896        numBlocks: 14,
2897        dataCodewordsPerBlock: 47
2898      }]
2899    }, {
2900      ecCodewordsPerBlock: 30,
2901      ecBlocks: [{
2902        numBlocks: 49,
2903        dataCodewordsPerBlock: 24
2904      }, {
2905        numBlocks: 10,
2906        dataCodewordsPerBlock: 25
2907      }]
2908    }, {
2909      ecCodewordsPerBlock: 30,
2910      ecBlocks: [{
2911        numBlocks: 24,
2912        dataCodewordsPerBlock: 15
2913      }, {
2914        numBlocks: 46,
2915        dataCodewordsPerBlock: 16
2916      }]
2917    }]
2918  }, {
2919    infoBits: 158308,
2920    versionNumber: 38,
2921    alignmentPatternCenters: [6, 32, 58, 84, 110, 136, 162],
2922    errorCorrectionLevels: [{
2923      ecCodewordsPerBlock: 30,
2924      ecBlocks: [{
2925        numBlocks: 4,
2926        dataCodewordsPerBlock: 122
2927      }, {
2928        numBlocks: 18,
2929        dataCodewordsPerBlock: 123
2930      }]
2931    }, {
2932      ecCodewordsPerBlock: 28,
2933      ecBlocks: [{
2934        numBlocks: 13,
2935        dataCodewordsPerBlock: 46
2936      }, {
2937        numBlocks: 32,
2938        dataCodewordsPerBlock: 47
2939      }]
2940    }, {
2941      ecCodewordsPerBlock: 30,
2942      ecBlocks: [{
2943        numBlocks: 48,
2944        dataCodewordsPerBlock: 24
2945      }, {
2946        numBlocks: 14,
2947        dataCodewordsPerBlock: 25
2948      }]
2949    }, {
2950      ecCodewordsPerBlock: 30,
2951      ecBlocks: [{
2952        numBlocks: 42,
2953        dataCodewordsPerBlock: 15
2954      }, {
2955        numBlocks: 32,
2956        dataCodewordsPerBlock: 16
2957      }]
2958    }]
2959  }, {
2960    infoBits: 161089,
2961    versionNumber: 39,
2962    alignmentPatternCenters: [6, 26, 54, 82, 110, 138, 166],
2963    errorCorrectionLevels: [{
2964      ecCodewordsPerBlock: 30,
2965      ecBlocks: [{
2966        numBlocks: 20,
2967        dataCodewordsPerBlock: 117
2968      }, {
2969        numBlocks: 4,
2970        dataCodewordsPerBlock: 118
2971      }]
2972    }, {
2973      ecCodewordsPerBlock: 28,
2974      ecBlocks: [{
2975        numBlocks: 40,
2976        dataCodewordsPerBlock: 47
2977      }, {
2978        numBlocks: 7,
2979        dataCodewordsPerBlock: 48
2980      }]
2981    }, {
2982      ecCodewordsPerBlock: 30,
2983      ecBlocks: [{
2984        numBlocks: 43,
2985        dataCodewordsPerBlock: 24
2986      }, {
2987        numBlocks: 22,
2988        dataCodewordsPerBlock: 25
2989      }]
2990    }, {
2991      ecCodewordsPerBlock: 30,
2992      ecBlocks: [{
2993        numBlocks: 10,
2994        dataCodewordsPerBlock: 15
2995      }, {
2996        numBlocks: 67,
2997        dataCodewordsPerBlock: 16
2998      }]
2999    }]
3000  }, {
3001    infoBits: 167017,
3002    versionNumber: 40,
3003    alignmentPatternCenters: [6, 30, 58, 86, 114, 142, 170],
3004    errorCorrectionLevels: [{
3005      ecCodewordsPerBlock: 30,
3006      ecBlocks: [{
3007        numBlocks: 19,
3008        dataCodewordsPerBlock: 118
3009      }, {
3010        numBlocks: 6,
3011        dataCodewordsPerBlock: 119
3012      }]
3013    }, {
3014      ecCodewordsPerBlock: 28,
3015      ecBlocks: [{
3016        numBlocks: 18,
3017        dataCodewordsPerBlock: 47
3018      }, {
3019        numBlocks: 31,
3020        dataCodewordsPerBlock: 48
3021      }]
3022    }, {
3023      ecCodewordsPerBlock: 30,
3024      ecBlocks: [{
3025        numBlocks: 34,
3026        dataCodewordsPerBlock: 24
3027      }, {
3028        numBlocks: 34,
3029        dataCodewordsPerBlock: 25
3030      }]
3031    }, {
3032      ecCodewordsPerBlock: 30,
3033      ecBlocks: [{
3034        numBlocks: 20,
3035        dataCodewordsPerBlock: 15
3036      }, {
3037        numBlocks: 61,
3038        dataCodewordsPerBlock: 16
3039      }]
3040    }]
3041  }],
3042      ca = [{
3043    bits: 21522,
3044    formatInfo: {
3045      errorCorrectionLevel: 1,
3046      dataMask: 0
3047    }
3048  }, {
3049    bits: 20773,
3050    formatInfo: {
3051      errorCorrectionLevel: 1,
3052      dataMask: 1
3053    }
3054  }, {
3055    bits: 24188,
3056    formatInfo: {
3057      errorCorrectionLevel: 1,
3058      dataMask: 2
3059    }
3060  }, {
3061    bits: 23371,
3062    formatInfo: {
3063      errorCorrectionLevel: 1,
3064      dataMask: 3
3065    }
3066  }, {
3067    bits: 17913,
3068    formatInfo: {
3069      errorCorrectionLevel: 1,
3070      dataMask: 4
3071    }
3072  }, {
3073    bits: 16590,
3074    formatInfo: {
3075      errorCorrectionLevel: 1,
3076      dataMask: 5
3077    }
3078  }, {
3079    bits: 20375,
3080    formatInfo: {
3081      errorCorrectionLevel: 1,
3082      dataMask: 6
3083    }
3084  }, {
3085    bits: 19104,
3086    formatInfo: {
3087      errorCorrectionLevel: 1,
3088      dataMask: 7
3089    }
3090  }, {
3091    bits: 30660,
3092    formatInfo: {
3093      errorCorrectionLevel: 0,
3094      dataMask: 0
3095    }
3096  }, {
3097    bits: 29427,
3098    formatInfo: {
3099      errorCorrectionLevel: 0,
3100      dataMask: 1
3101    }
3102  }, {
3103    bits: 32170,
3104    formatInfo: {
3105      errorCorrectionLevel: 0,
3106      dataMask: 2
3107    }
3108  }, {
3109    bits: 30877,
3110    formatInfo: {
3111      errorCorrectionLevel: 0,
3112      dataMask: 3
3113    }
3114  }, {
3115    bits: 26159,
3116    formatInfo: {
3117      errorCorrectionLevel: 0,
3118      dataMask: 4
3119    }
3120  }, {
3121    bits: 25368,
3122    formatInfo: {
3123      errorCorrectionLevel: 0,
3124      dataMask: 5
3125    }
3126  }, {
3127    bits: 27713,
3128    formatInfo: {
3129      errorCorrectionLevel: 0,
3130      dataMask: 6
3131    }
3132  }, {
3133    bits: 26998,
3134    formatInfo: {
3135      errorCorrectionLevel: 0,
3136      dataMask: 7
3137    }
3138  }, {
3139    bits: 5769,
3140    formatInfo: {
3141      errorCorrectionLevel: 3,
3142      dataMask: 0
3143    }
3144  }, {
3145    bits: 5054,
3146    formatInfo: {
3147      errorCorrectionLevel: 3,
3148      dataMask: 1
3149    }
3150  }, {
3151    bits: 7399,
3152    formatInfo: {
3153      errorCorrectionLevel: 3,
3154      dataMask: 2
3155    }
3156  }, {
3157    bits: 6608,
3158    formatInfo: {
3159      errorCorrectionLevel: 3,
3160      dataMask: 3
3161    }
3162  }, {
3163    bits: 1890,
3164    formatInfo: {
3165      errorCorrectionLevel: 3,
3166      dataMask: 4
3167    }
3168  }, {
3169    bits: 597,
3170    formatInfo: {
3171      errorCorrectionLevel: 3,
3172      dataMask: 5
3173    }
3174  }, {
3175    bits: 3340,
3176    formatInfo: {
3177      errorCorrectionLevel: 3,
3178      dataMask: 6
3179    }
3180  }, {
3181    bits: 2107,
3182    formatInfo: {
3183      errorCorrectionLevel: 3,
3184      dataMask: 7
3185    }
3186  }, {
3187    bits: 13663,
3188    formatInfo: {
3189      errorCorrectionLevel: 2,
3190      dataMask: 0
3191    }
3192  }, {
3193    bits: 12392,
3194    formatInfo: {
3195      errorCorrectionLevel: 2,
3196      dataMask: 1
3197    }
3198  }, {
3199    bits: 16177,
3200    formatInfo: {
3201      errorCorrectionLevel: 2,
3202      dataMask: 2
3203    }
3204  }, {
3205    bits: 14854,
3206    formatInfo: {
3207      errorCorrectionLevel: 2,
3208      dataMask: 3
3209    }
3210  }, {
3211    bits: 9396,
3212    formatInfo: {
3213      errorCorrectionLevel: 2,
3214      dataMask: 4
3215    }
3216  }, {
3217    bits: 8579,
3218    formatInfo: {
3219      errorCorrectionLevel: 2,
3220      dataMask: 5
3221    }
3222  }, {
3223    bits: 11994,
3224    formatInfo: {
3225      errorCorrectionLevel: 2,
3226      dataMask: 6
3227    }
3228  }, {
3229    bits: 11245,
3230    formatInfo: {
3231      errorCorrectionLevel: 2,
3232      dataMask: 7
3233    }
3234  }],
3235      Z = [function (a) {
3236    return 0 === (a.y + a.x) % 2;
3237  }, function (a) {
3238    return 0 === a.y % 2;
3239  }, function (a) {
3240    return 0 === a.x % 3;
3241  }, function (a) {
3242    return 0 === (a.y + a.x) % 3;
3243  }, function (a) {
3244    return 0 === (Math.floor(a.y / 2) + Math.floor(a.x / 3)) % 2;
3245  }, function (a) {
3246    return 0 === a.x * a.y % 2 + a.x * a.y % 3;
3247  }, function (a) {
3248    return 0 === (a.y * a.x % 2 + a.y * a.x % 3) % 2;
3249  }, function (a) {
3250    return 0 === ((a.y + a.x) % 2 + a.y * a.x % 3) % 2;
3251  }],
3252      x = function x(a, b) {
3253    return Math.sqrt(Math.pow(b.x - a.x, 2) + Math.pow(b.y - a.y, 2));
3254  },
3255      ka = {
3256    inversionAttempts: "attemptBoth",
3257    greyScaleWeights: {
3258      red: .2126,
3259      green: .7152,
3260      blue: .0722,
3261      useIntegerApproximation: !1
3262    },
3263    canOverwriteImage: !0
3264  };
3265
3266  I.default = I;
3267  var H = "dontInvert",
3268      D = {
3269    red: 77,
3270    green: 150,
3271    blue: 29,
3272    useIntegerApproximation: !0
3273  };
3274
3275  self.onmessage = function (a) {
3276    var b = a.data.data;
3277
3278    switch (a.data.type) {
3279      case "decode":
3280        a = I(b.data, b.width, b.height, {
3281          inversionAttempts: H,
3282          greyScaleWeights: D
3283        });
3284        self.postMessage({
3285          type: "qrResult",
3286          data: a ? a.data : null
3287        });
3288        break;
3289
3290      case "grayscaleWeights":
3291        D.red = b.red;
3292        D.green = b.green;
3293        D.blue = b.blue;
3294        D.useIntegerApproximation = b.useIntegerApproximation;
3295        break;
3296
3297      case "inversionMode":
3298        switch (b) {
3299          case "original":
3300            H = "dontInvert";
3301            break;
3302
3303          case "invert":
3304            H = "attemptBoth";
3305            break;
3306
3307          case "both":
3308            H = "attemptBoth";
3309            break;
3310
3311          default:
3312            throw Error("Invalid inversion mode");
3313        }
3314
3315        break;
3316
3317      case "close":
3318        self.close();
3319    }
3320  };
3321})();

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.